added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T21:50:54.682523+00:00 | 2017-03-12T22:32:10 | e61ff21bc433dbe79d33bbf5e523174fb8885221 | {
"blob_id": "e61ff21bc433dbe79d33bbf5e523174fb8885221",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-12T22:32:10",
"content_id": "c8635204d0f62c25aff9be1a92bfca9e152f2af7",
"detected_licenses": [
"MIT"
],
"directory_id": "334408de542ac67466689ba665bb8a700dd9be8d",
"extension": "c"... | stackv2 | #include "include/city.h"
#include <string.h>
static int string_begins_with(const char* str, const char* match) {
if (strlen(match) > strlen(str))
return 0;
for (int i = 0; i < strlen(match); ++i) {
if (str[i] != match[i]) {
return 0;
}
}
return 1;
}
int city_s... | 2.421875 | 2 |
2024-11-18T21:50:56.485733+00:00 | 2017-12-29T02:38:48 | 7e94a3f3d8ddcc1507291338af7b582a769d7b86 | {
"blob_id": "7e94a3f3d8ddcc1507291338af7b582a769d7b86",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-29T02:38:48",
"content_id": "d7c1fc2878b34afa9d8229136c7b19f45a5a9916",
"detected_licenses": [
"MIT"
],
"directory_id": "b019a1dc9d93bbd551279e2d07c1aecf1e5cc7c8",
"extension": "h"... | stackv2 | #ifndef _MM_H_LOADED
#define _MM_H_LOADED
/* size_t */
#include <stddef.h>
/* Request a memory block with s bytes */
void *Mmalloc(size_t s);
/* Relocate memory block p to s bytes */
void *Mrealloc(void *p, size_t s);
/* When the system is out of memory, the functions above will immediately crash the program, inste... | 2.0625 | 2 |
2024-11-18T21:50:56.728769+00:00 | 2023-08-09T12:19:02 | 7bbf49b2d98276df0de2c5c0e3606a7d013cef53 | {
"blob_id": "7bbf49b2d98276df0de2c5c0e3606a7d013cef53",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-09T12:19:02",
"content_id": "d5a8e2ef9ba921a2551412b02e65deb7c8b1dfd6",
"detected_licenses": [
"Unlicense"
],
"directory_id": "e60b457a42892430eef7ead48ca55ad0a169b542",
"extension... | stackv2 | /* DannyNiu/NJF, 2021-01-13. Public Domain. */
#ifndef MySuiteA_rsa_h
#define MySuiteA_rsa_h 1
#include "../1-integers/vlong.h"
// -- For *ALL* working context data structures defined in this file --
// data model: SIP16 | ILP32 | LP64
// ----------+-------+-------+------
// align spec: 4 * n .
// The... | 2.296875 | 2 |
2024-11-18T21:50:56.789479+00:00 | 2023-07-03T01:27:29 | 90a230490f4c090654470f9b230e169b6d7e73d9 | {
"blob_id": "90a230490f4c090654470f9b230e169b6d7e73d9",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-03T01:27:29",
"content_id": "3d0435a2e03e8a953dd2b2a721a6945b2da7e629",
"detected_licenses": [
"MIT"
],
"directory_id": "382a4dacbf7d6e6da096ddac660ba7a40af350cf",
"extension": "c"... | stackv2 | /**
* @file lv_test_label.c
*
*/
/*********************
* INCLUDES
*********************/
#include "../../lvgl.h"
#include "../lv_test_assert.h"
#include "lv_test_label.h"
#if LV_BUILD_TEST
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
***********... | 2.46875 | 2 |
2024-11-18T21:50:56.952536+00:00 | 2020-06-07T12:52:37 | dff72839d730400b770bf156657c0454fb45ef0c | {
"blob_id": "dff72839d730400b770bf156657c0454fb45ef0c",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-07T12:52:37",
"content_id": "99069267d8fbd29a501c9bbcf633085a32d5d0a2",
"detected_licenses": [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "75f02962b72bdf87fa57f... | stackv2 | /*
** $Id$
** Library to use the keyboard with Scrupp
** See Copyright Notice in COPYRIGHT
*/
#include "Main.h"
#include "Keyboard.h"
#include <SDL_keysym.h>
#define E(name, val) \
lua_pushliteral(L, name); \
lua_pushinteger(L, val); \
lua_rawset(L, -3); \
lua_pushliteral(L, name); \
lua_rawseti(L, -2, val... | 2.28125 | 2 |
2024-11-18T21:50:57.710666+00:00 | 2021-09-14T01:06:12 | cd9a97ce7039307972245c0f4b6bdbde4f0f4a37 | {
"blob_id": "cd9a97ce7039307972245c0f4b6bdbde4f0f4a37",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-14T01:06:12",
"content_id": "7bd975786fbe80aaed643fdb343a99eeacbeddef",
"detected_licenses": [
"MIT"
],
"directory_id": "a68ba3fc0eb86b0ea1fa21152ba253eeee06b63e",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
/*
Suponha que um caixa disponha apenas de cédulas de R$ 100, 10 e 1. Escreva um programa para ler o valor de uma conta e o valor fornecido pelo usuário para
pagar essa conta, e calcule e troco. Calcular e mostrar a quantidade de cada tipo de cédula que o caixa deve fornecer com... | 3.59375 | 4 |
2024-11-18T21:50:58.132564+00:00 | 2015-01-06T16:55:14 | 48a3ee2502cf341c8ae51a2d2234d6f406c1319b | {
"blob_id": "48a3ee2502cf341c8ae51a2d2234d6f406c1319b",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-06T16:55:14",
"content_id": "a9eb0b3729a3bc0cbf2ee68c96443fb29c3ee0cb",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "09ef8d57e6a8beea151c38b4ca32d8e7e49cde25",
"extens... | stackv2 |
#define MSGSIZE 1024
#define MAXPATH 256
#define EXEC_NORMAL 0x00000000
#define EXEC_TRACED 0X00000001
#define EXEC_DETACHED 0X00000002
#define EXEC_RELATED 0X00000004
#define EXEC_FULLSCR 0X00000008
#define EXEC_FOREGRD 0x00000010
#define EXEC_TERMQ 0x00000020
#define EXEC_INHERIT 0x00000040
#define EXE... | 2.109375 | 2 |
2024-11-18T21:50:58.488198+00:00 | 2020-03-25T18:03:26 | f7dfb7939b6acfc7c670d7eeb9922c745e13704b | {
"blob_id": "f7dfb7939b6acfc7c670d7eeb9922c745e13704b",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-25T18:03:26",
"content_id": "063038b2eda0f7756bc06b86273a91ad65d999f4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a069fd4318106128316b689f2a64e8508b1191b5",
"extensio... | stackv2 | /****************************************************/
/* */
/* Author : Hassan Askar */
/* Date : 08/04/2019 */
/* Version : 1.0 V */
/* Description : EMG_Program ... | 2.203125 | 2 |
2024-11-18T21:50:59.154485+00:00 | 2017-02-17T12:14:53 | bd8d1c402a59de0b609382afdc3da6605f16190e | {
"blob_id": "bd8d1c402a59de0b609382afdc3da6605f16190e",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-17T12:14:53",
"content_id": "f94b920f223fdf7d7c0690689ce294020748a9b4",
"detected_licenses": [
"Unlicense"
],
"directory_id": "317f727d5c57072c1b1a673f0b212c2cfcd0a7e7",
"extension... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct ht_table ht_table;
typedef struct ht_cell ht_cell;
typedef enum ht_cell_status ht_cell_status;
ht_table * ht_init(int size);
void ht_insert(ht_table * hash_table, char key[100], char value[100]);
void ht_delete(ht_table * hash_table, char key[1... | 3.046875 | 3 |
2024-11-18T21:50:59.541267+00:00 | 2023-07-05T12:19:20 | 41aa21be6114741f33517237d9fb9a874b15e1e1 | {
"blob_id": "41aa21be6114741f33517237d9fb9a874b15e1e1",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-05T12:19:20",
"content_id": "99f61eca3a87fbbe5cb23001192a160728db5e09",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b71097386a6da0e3ca65f19a1906f0ebe11eac18",
"extens... | stackv2 | #if defined HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include "dt-core.h"
#define CHECK_RES(rc, pred, args...) \
if (pred) { \
fprintf(stderr, args); \
res = rc; \
}
#define CHECK(pred, args...) \
CHECK_RES(1, pred, args... | 2.609375 | 3 |
2024-11-18T21:51:00.920174+00:00 | 2016-09-29T20:00:22 | e023881a79d4708fcb839224f83bf5526392fd97 | {
"blob_id": "e023881a79d4708fcb839224f83bf5526392fd97",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-29T20:00:22",
"content_id": "4c5c908beb2d8250523dee97d9ac9603cafea05c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "2e76b30ef1c144d449c66c6744addb2249890dad",
"extens... | stackv2 | /* Run all cases and calculate the error rate
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "computepi.h"
static double error_rate(double sample, double groundTruth)
{
return ((sample > groundTruth) ? (sample - groundTruth) :
(groundTruth - sample)) / groundTruth;
}
int main(int ar... | 2.4375 | 2 |
2024-11-18T21:51:01.036021+00:00 | 2021-02-08T13:39:57 | a6b5ac25e074df9bcf2aae77f8fedacf6e8bae98 | {
"blob_id": "a6b5ac25e074df9bcf2aae77f8fedacf6e8bae98",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-08T13:39:57",
"content_id": "fa276549030f6a23b4c6ec55584ea8ae72c9a75d",
"detected_licenses": [
"MIT"
],
"directory_id": "c06c9e62f939cc3388c48c09468da02bab772f7e",
"extension": "c"... | stackv2 | // https://www.hackerrank.com/challenges/frequency-of-digits-1/problem
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
char s[1000];
int arr[10] = {0};
scanf("%s",s);
for(in... | 3.09375 | 3 |
2024-11-18T21:51:01.466047+00:00 | 2021-03-08T05:12:39 | 1600a5b70839f3f622c0677897b7b4ad976b8ccc | {
"blob_id": "1600a5b70839f3f622c0677897b7b4ad976b8ccc",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-08T05:12:39",
"content_id": "b89b1ba5af067303205b8d548c1e5d593173d2bd",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "21775c243fb7f40b5fa503eddebeb470530d1fbc",
"extens... | stackv2 | #include "../include/siphon/json.h"
#include "parser.h"
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
static const uint8_t rng_non_ws[] = "\x00\x08\x0b\x0c\x0e\x1f\x21\xff";
#include "stack.h"
#define STACK_ARR 0
#define STACK_OBJ 1
#define STACK_PUSH_ARR(p) STACK_PUSH_FALSE(p, SP_JSON_ESTACK)
#define... | 2.15625 | 2 |
2024-11-18T21:51:02.250858+00:00 | 2023-03-12T22:18:23 | e5bf63d38eaf035f11d897497034a3c4d5724ae1 | {
"blob_id": "e5bf63d38eaf035f11d897497034a3c4d5724ae1",
"branch_name": "refs/heads/zephyr-v2.7.4",
"committer_date": "2023-03-12T22:18:23",
"content_id": "69305b73cb4582edd5f1c0020bbdfde5dee8d5f2",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9d13589cf70df3b53b422e11bd15c678ecae429d",
... | stackv2 | #include <zephyr.h>
#include <device.h>
#include <drivers/gpio.h>
#include <drivers/uart.h>
#include <sys/printk.h>
#include <sys/__assert.h>
#include <string.h>
#include "util.h"
#define LED_PORT DT_ALIAS_LED0_GPIOS_CONTROLLER
#define LED0 DT_ALIAS_LED0_GPIOS_PIN
#define LED1 DT_ALIAS_LED1_GPIOS_PIN
#define LED2 DT_A... | 2.65625 | 3 |
2024-11-18T21:51:02.458539+00:00 | 2016-12-30T19:22:02 | 6ea196295d8de5877d11c5f147a68c3e551987fb | {
"blob_id": "6ea196295d8de5877d11c5f147a68c3e551987fb",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-30T19:22:02",
"content_id": "675ffdca9a5d17bb82c62f4dcc21caabed01089d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1034555b8beb176279c51479c22470904c4cbbf1",
"extens... | stackv2 | //
// Created by svalov on 8/9/16.
//
#include <moarTime.h>
#include <sys/time.h>
#include <time.h>
moarTime_T timeGetCurrent(){
struct timeval tv;
// TODO switch to clock_gettime later
int res = gettimeofday(&tv, NULL);
if(0 == res){
moarTime_T seconds = tv.tv_sec;
moarTime_T curTime = seconds * 1000 + tv.tv... | 2.625 | 3 |
2024-11-18T21:51:03.021946+00:00 | 2021-09-09T01:41:50 | 35bf962d7bf492c8d28c694878225b9cf4a9a987 | {
"blob_id": "35bf962d7bf492c8d28c694878225b9cf4a9a987",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-09T01:41:50",
"content_id": "f42ef85ea3166b0daa72161dcb11968ce0bd6878",
"detected_licenses": [
"MIT"
],
"directory_id": "5a23bbb2059e4a5b0f4698f9053636af050ff24b",
"extension": "h"... | stackv2 | #include <time.h>
#include <unistd.h>
#include "tad_pacman.h"
#include "tad_lde.h"
#define BLINKY 010
#define PINKY 020
#define INKY 030
#define CLYDE 040
#define COR_BLINKY 1
#define COR_CLYDE 3
#define COR_PINKY 8
#define COR_INKY 6
#define DELAY_FANTASMAS 9
#define LIMITE_DELAY_FANTASMAS 3
struct fantasm... | 2.375 | 2 |
2024-11-18T21:51:03.618693+00:00 | 2014-09-10T17:05:36 | ee95d34406d99de3558e7c65d5a0f65fa08b5090 | {
"blob_id": "ee95d34406d99de3558e7c65d5a0f65fa08b5090",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-10T17:05:36",
"content_id": "784e3f6ab3766c9077a30608ee2301b61ced7948",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "eb723810d9538d36e4c4756ab9958793585cc977",
"extensio... | stackv2 | #include <stdio.h>
#include <math.h>
#include "linus.h"
double dist_const_score(LinusProtein *p,DcList *dclist, int size)
{
double edist = 0.0;
int i;
for(i=0;i<size;i++)
{
double dist = distance(&p->atoms[dclist[i].a1],&p->atoms[dclist[i].a2]);
double dmax = dclist[i].d + dclist[i].dma... | 2.21875 | 2 |
2024-11-18T21:51:03.990371+00:00 | 2017-09-24T21:10:45 | cad8512188d27fbabfbb7c21fa58ba46140397ba | {
"blob_id": "cad8512188d27fbabfbb7c21fa58ba46140397ba",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-25T00:04:37",
"content_id": "58ba1031c27e2c292380ddf6a0b43bbf48931f39",
"detected_licenses": [
"Artistic-2.0"
],
"directory_id": "17df654bc8b3ca4f0c0c1c14d0f1adea76a215fe",
"extens... | stackv2 | /*****************************************************************************
* Copyright (c) 2017 by Ian G. Tayler <ian.g.tayler@gmail.com> *
* This file is part of TenC. *
* *
* T... | 2.390625 | 2 |
2024-11-18T21:51:04.056535+00:00 | 2019-06-27T00:49:40 | 325e9cb6a4fb62b8ed62ffe8dc729b6dffe9cb67 | {
"blob_id": "325e9cb6a4fb62b8ed62ffe8dc729b6dffe9cb67",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-27T00:49:40",
"content_id": "3d1658f97b7a6a1059950a1e04231e84564df25f",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "7047c2ebf8d7944c6b4467560e190b184d54697d",
... | stackv2 | /*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... | 2.1875 | 2 |
2024-11-18T21:51:04.197891+00:00 | 2022-07-13T06:14:38 | ff3c720cfd410eaaa7400ad893504d60fe0efe09 | {
"blob_id": "ff3c720cfd410eaaa7400ad893504d60fe0efe09",
"branch_name": "refs/heads/unstable",
"committer_date": "2022-07-13T06:14:38",
"content_id": "52d0db4c89c69c4fbcabd5859f0461b0f53edd41",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "6745143949ea51b00b884c5cf2282f... | stackv2 | #ifndef JEMALLOC_INTERNAL_TICKER_H
#define JEMALLOC_INTERNAL_TICKER_H
#include "jemalloc/internal/util.h"
/**
* A ticker makes it easy to count-down events until some limit. You
* ticker_init the ticker to trigger every nticks events. You then notify it
* that an event has occurred with calls to ticker_tick (or ... | 2.703125 | 3 |
2024-11-18T21:51:11.102571+00:00 | 2023-08-07T19:18:32 | 9e5616c67b95169d3a2693f7bc7be92158cf0d6b | {
"blob_id": "9e5616c67b95169d3a2693f7bc7be92158cf0d6b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T19:18:32",
"content_id": "d65ea2ca7eea04c49d1c419a88eceb33b3948a76",
"detected_licenses": [
"Apache-2.0",
"curl"
],
"directory_id": "e1d9c54e9925e30e388a255b53a93cccad0b94cb",... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "v1_service.h"
v1_service_t *v1_service_create(
char *api_version,
char *kind,
v1_object_meta_t *metadata,
v1_service_spec_t *spec,
v1_service_status_t *status
) {
v1_service_t *v1_service_local_var = malloc(sizeof(v1_ser... | 2.234375 | 2 |
2024-11-18T21:51:11.491584+00:00 | 2019-09-15T09:58:00 | e7be07730b3c44e4d40a28a80a262b9d5df1cef0 | {
"blob_id": "e7be07730b3c44e4d40a28a80a262b9d5df1cef0",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-15T09:58:00",
"content_id": "af4694004275313508f02e2c375f35e0e730bc42",
"detected_licenses": [
"MIT"
],
"directory_id": "2785e9b16e33292fbf56c17250d0b3b4cce5377d",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* validate_BST.c :+: :+: :+: ... | 2.8125 | 3 |
2024-11-18T21:51:11.592138+00:00 | 2020-01-29T21:45:25 | 4ce0fc46dcc7bd71bb766a569f4a38a453e36ade | {
"blob_id": "4ce0fc46dcc7bd71bb766a569f4a38a453e36ade",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-29T21:45:25",
"content_id": "c4b6f14dcd14c1cf06f07704dac2a1d3b00dade1",
"detected_licenses": [
"MIT"
],
"directory_id": "995dd8ecf9ed79cbab3c87eada2687b1fe909134",
"extension": "c"... | stackv2 | #include <stdint.h>
#include <stdio.h>
#include <string.h>
#define IOREG(X) (*(volatile uint32_t *) (X))
// GPIO registers
#define GPFSEL0 IOREG(0x20200000)
#define GPFSEL1 IOREG(0x20200004)
#define GPFSEL2 IOREG(0x20200008)
#define GPFSEL3 IOREG(0x2020000C)
#define GPFSEL4 IOREG(0x20200010)
#define GPFSEL5 IOREG(0x... | 2.09375 | 2 |
2024-11-18T21:51:11.776734+00:00 | 2023-08-07T19:18:32 | 8535804803f87a676d0fcab53977f23490b77d2c | {
"blob_id": "8535804803f87a676d0fcab53977f23490b77d2c",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T19:18:32",
"content_id": "125f3d621987457ee0c7a8f609d82a15792c252a",
"detected_licenses": [
"Apache-2.0",
"curl"
],
"directory_id": "e1d9c54e9925e30e388a255b53a93cccad0b94cb",... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "v1_container_image.h"
v1_container_image_t *v1_container_image_create(
list_t *names,
long size_bytes
) {
v1_container_image_t *v1_container_image_local_var = malloc(sizeof(v1_container_image_t));
if (!v1_container_image_local_v... | 2.65625 | 3 |
2024-11-18T21:51:11.931258+00:00 | 2015-09-30T18:12:49 | e4b2f3e4f32783e8de62aff43c86845ab49f80c6 | {
"blob_id": "e4b2f3e4f32783e8de62aff43c86845ab49f80c6",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-30T18:12:49",
"content_id": "5157b82915da848abadabfe9ee8b15bc085193e3",
"detected_licenses": [
"Unlicense"
],
"directory_id": "1d201504615b58da4b39e660a9afdaa547e7c2dd",
"extension... | stackv2 | /*
Grading Program
Requires:
variables, data types, and numerical operators
basic input/output
logic (if statements, switch statements)
Write a program that allows the user to enter the grade scored in a programming class (0-100).
If the user scored a 100 then notify the user that they got a perfect score.
★ Modify t... | 3.234375 | 3 |
2024-11-18T21:51:12.219348+00:00 | 2020-01-17T22:54:11 | 028463a255eab82920b88867973f3a5ef1481d97 | {
"blob_id": "028463a255eab82920b88867973f3a5ef1481d97",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-17T22:54:11",
"content_id": "1424858c8f6062ae657b02bc6b4fd0be50c61310",
"detected_licenses": [
"MIT"
],
"directory_id": "95c16b6aa72d29f1d6e3f6020dfdd86ec5fb553e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "utils.c"
struct digit {
long dig;
struct digit *next;
};
// transforms number (123456) into list representing number (<root> 6->5->4->3->2->1 <tail>)
struct digit *create_num_as_list(struct digit *a, long number) {
if (!a) return NULL;
... | 3.3125 | 3 |
2024-11-18T21:51:14.230687+00:00 | 2018-07-23T14:32:23 | 079b86f63a8704a2c8d4015ce824e6989c64bbe0 | {
"blob_id": "079b86f63a8704a2c8d4015ce824e6989c64bbe0",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-24T13:42:22",
"content_id": "f69f9bf7d19d4ed63615d335d867cf2630bed378",
"detected_licenses": [
"MIT"
],
"directory_id": "1d8ac479f9b53b9d106cf321fd19835eb6ac4f0d",
"extension": "h"... | stackv2 | /*
* File: error.h
* Author: Project2100
* Author: llde
* Brief: Common includes for all headers
*
*
* Implementation notes:
*
* - errno is thread-safe since C11:
* http://en.cppreference.com/w/c/error/errno
* - [WINAPI] GetLastError() is thread-safe:
* https://msdn.microsoft.com/en-us/library/window... | 2.125 | 2 |
2024-11-18T21:51:15.103376+00:00 | 2016-11-06T03:10:47 | 2e4749e742ccb36de2e0c7bc80161cfc79d70708 | {
"blob_id": "2e4749e742ccb36de2e0c7bc80161cfc79d70708",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-06T03:10:47",
"content_id": "bb6d64b54aef08ee6f7634f4d05cb727990042ab",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "bcdf5410cd0d6188ee523e82b95fad77cf08128b"... | stackv2 | /*
* Copyright (c) 2016 DeNA Co., Ltd., Kazuho Oku
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify,... | 2 | 2 |
2024-11-18T21:51:15.725682+00:00 | 2012-02-09T14:58:18 | 3e068b546860983dff4336eb54c6e9b905a8a807 | {
"blob_id": "3e068b546860983dff4336eb54c6e9b905a8a807",
"branch_name": "refs/heads/master",
"committer_date": "2012-02-09T14:58:18",
"content_id": "7d3b52eba0fb48242182e3a7628453ab1cd252d8",
"detected_licenses": [
"MIT"
],
"directory_id": "89d98e05bcda9007f5af2c093d5575d954ea2e02",
"extension": "h"... | stackv2 | /*
* Lista simplemente enlazada
*/
#ifndef LISTA_HEADER_SEEN
#define LISTA_HEADER_SEEN
struct nodo {
struct nodo *next;
void *value;
};
typedef struct {
struct nodo *header;
struct nodo *current;
} LISTA;
/* inicializa una nueva lista vacía */
LISTA *init_l();
/* agrega el elemento p al comie... | 2.5625 | 3 |
2024-11-18T21:51:15.970237+00:00 | 2020-12-20T14:44:33 | 1eeb26e7d6ce98e211f8ed99756593205932ea94 | {
"blob_id": "1eeb26e7d6ce98e211f8ed99756593205932ea94",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-20T14:44:33",
"content_id": "322833339724acfb1e16b0fab70da2f14ad95eeb",
"detected_licenses": [
"MIT"
],
"directory_id": "f0139a7135c3454b6b3948259eb034661764ebb0",
"extension": "c"... | stackv2 | #include "fat32.h"
static inline uint64 cluster2lba(FAT32Tool *fat, uint32 cluster) {
uint64 data_lba = fat->fat_lba + fat->num_fat * fat->sectors_per_fat;
return data_lba + (cluster-2) * fat->sectors_per_cluster;
//(cluster-2)而不是cluster,因为前两个簇被保留了。FAT32只是保留前2个FAT表项,并不保留前两个簇。
//gt... | 2.78125 | 3 |
2024-11-18T21:51:49.264829+00:00 | 2023-01-09T16:20:48 | 1039a813f15ff76450943fb41448ebdcc1cad6e8 | {
"blob_id": "1039a813f15ff76450943fb41448ebdcc1cad6e8",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-09T16:20:48",
"content_id": "2a4533bed1349458dcc5008471b1a008edcc0d28",
"detected_licenses": [
"MIT"
],
"directory_id": "94f9d3863c93f4a990ab87d4933e0498ed3e2ba1",
"extension": "h"... | stackv2 | #include <ddraw.h>
#include <dinput.h>
#define SafeRelease(x) if (x) { x->Release(); x=NULL;}
//-------------------DIRECTDRAW----------------------
//-- Définit la résolution d'écran.
const int ResolutionX=640;
const int ResolutionY=480;
//-- Définit les pointeurs DirectDraw globaux.
LPDIRECTDRAW4 lpDD=NULL;
LPDI... | 2.140625 | 2 |
2024-11-18T21:51:50.491120+00:00 | 2021-04-15T14:11:21 | 261e352ee70ea8ae0397138971dfc9575bbfbba6 | {
"blob_id": "261e352ee70ea8ae0397138971dfc9575bbfbba6",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-15T14:11:21",
"content_id": "a19a1dcd2bdf8c0beec48c97bf14355d6dfc5e25",
"detected_licenses": [
"MIT"
],
"directory_id": "043ea4d5da70c7acf5d78f8915d2b4a2dbc4d9cb",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
/* Aula 23
caracteres de escape
Quebra de linha -> \n
Tabulação -> \t
Aspa dupla -> \"
Aspa simples -> \'
Contrabarra -> \\
*/
int main(){
printf("\n\n\tIsto e uma mensagem \\a ser impressa na tela.\n\n");
return 0;
} | 2.71875 | 3 |
2024-11-18T21:51:50.582716+00:00 | 2021-08-08T09:34:27 | 57ffb8d01c0e12d01a32024a46f3501a290a0e75 | {
"blob_id": "57ffb8d01c0e12d01a32024a46f3501a290a0e75",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-08T09:34:27",
"content_id": "9f4737d95bb081a0d46eb43ec616609769e9e926",
"detected_licenses": [
"Unlicense"
],
"directory_id": "c793401ee5230e9ad0f502e9539b5770240e70d7",
"extension":... | stackv2 | #include <stdio.h>
int main()
{
int grade;
printf("학년은?"); scanf("%d", &grade);
switch (grade)
{
case 1: printf("Freshman\n"); break;
case 2: printf("Sophomore\n"); break;
case 3: printf("Junior\n"); break;
case 4: printf("Senior\n"); break;
default:printf("잘못된 학년\n");
}
return 0;
} | 3.296875 | 3 |
2024-11-18T21:51:50.656525+00:00 | 2019-07-05T13:26:35 | 618f8b87ca2592e41478e361548f137cd6c924f0 | {
"blob_id": "618f8b87ca2592e41478e361548f137cd6c924f0",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-05T13:26:35",
"content_id": "ed9f350b5fe952878421678435386c803936fd0e",
"detected_licenses": [
"MIT"
],
"directory_id": "f07acf3594b21458f44e22a4c77451d900127474",
"extension": "c"... | stackv2 | /**
******************************************************************************
*FileName : AutoAimTask.c
*Description : 自瞄程序
*Author : 管易恒
******************************************************************************
*
* Copyright (c) 2019 Team JiaoLong-ShanghaiJiaoTong University
* All rig... | 2.15625 | 2 |
2024-11-18T21:51:50.735620+00:00 | 2018-07-18T07:25:30 | 007c3cd340c68f5f33eafabdfda429f8caa5ecb8 | {
"blob_id": "007c3cd340c68f5f33eafabdfda429f8caa5ecb8",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-18T07:25:30",
"content_id": "aab3df939db143e6505135af4ee66af796a7e8ad",
"detected_licenses": [
"MIT"
],
"directory_id": "3eac6bdf5b81d9c480d2c7207ad5a6b7addcad96",
"extension": "h"... | stackv2 | #ifndef _HS_USART_H_
#define _HS_USART_H_
#include "Nano100Series.h"
#define FRAME_BUF_LEN 128
typedef enum {
RX_STATE_F_HEAD = 1,
RX_STATE_F_LEN,
RX_STATE_F_FINISH
} RxState_t;
#pragma pack(1)
typedef struct {
uint16_t header;
uint16_t frame_len;
uint16_t command;
uint8_t cmd_t... | 2.03125 | 2 |
2024-11-18T21:51:52.774338+00:00 | 2019-04-18T03:55:32 | ef23831900f1eede4e4be47dd6aeab83bcf37f65 | {
"blob_id": "ef23831900f1eede4e4be47dd6aeab83bcf37f65",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-18T03:55:32",
"content_id": "9e3e8d75dc11813ee786dd63f9657cd7e04b318d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "925b868eeee9d27bb792f50ac1a597d3cf44417a",
"extensio... | stackv2 | // SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2018,2019 IBM Corp.
#include "array.h"
#include "rev.h"
#include <assert.h>
#include <stdint.h>
struct bmc_silicon_rev {
uint32_t rev;
const char *name;
};
static const struct bmc_silicon_rev bmc_silicon_revs[] = {
{ 0x02000303, "AST2400 A0" },
... | 2.359375 | 2 |
2024-11-18T21:51:53.198643+00:00 | 2021-07-17T07:48:23 | 71d504616874ad7b93a0525ccd83126708b5c3a8 | {
"blob_id": "71d504616874ad7b93a0525ccd83126708b5c3a8",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-17T07:48:23",
"content_id": "9959d985b68ea48f5eb77c81db477f4f093f6bdd",
"detected_licenses": [
"MIT"
],
"directory_id": "3fdf4d2b0ec2f2108a9604ebb6ba557ed48c2a76",
"extension": "c"... | stackv2 | #include "fastfetch.h"
#include <string.h>
#define FF_WMTHEME_MODULE_NAME "WM Theme"
#define FF_WMTHEME_NUM_FORMAT_ARGS 1
static void printWMTheme(FFinstance* instance, const char* theme)
{
if(instance->config.wmThemeFormat.length == 0)
{
ffPrintLogoAndKey(instance, FF_WMTHEME_MODULE_NAME, 0, &instanc... | 2.03125 | 2 |
2024-11-18T21:51:54.354168+00:00 | 2016-04-25T03:08:39 | 3cfbcc9485bf6c003f356e09ec5e9b184e4a12de | {
"blob_id": "3cfbcc9485bf6c003f356e09ec5e9b184e4a12de",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-25T03:08:39",
"content_id": "425dbb6485cd701fbdcb26a00231fc5ad460368b",
"detected_licenses": [
"MIT"
],
"directory_id": "aa6e0b1c20c7f29a26ef51eda0ec2fc8848c525c",
"extension": "c"... | stackv2 | /**
******************************************************************************
* File Name : main.c
* Description : Main program subroutine
* Author : Auguste Lalande, Felix Dube, Juan Morency Trudel
* Version : 1.0.0
* Date : February 2016
************************... | 2.953125 | 3 |
2024-11-18T21:51:54.554414+00:00 | 2015-05-23T17:29:05 | 1bc941294a387e279fee89d9ca09c65b06e85571 | {
"blob_id": "1bc941294a387e279fee89d9ca09c65b06e85571",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-23T17:29:05",
"content_id": "372e270cf0daf617bfeea49db3b68df2f4bcb03f",
"detected_licenses": [
"Artistic-2.0"
],
"directory_id": "3226ca0264ba3fc6c3e6e3482e823b7014a8ef71",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <mach/mach_time.h>
#include <pthread.h>
void* do_nothing_thread_main(void* ignored) {
return NULL;
}
int main(int argc, char ** argv) {
pthread_t tid = 0;
uint64_t start = mach_absolute_time();
pthread_create(&tid, NULL, do_nothing_thread_main, NULL);
... | 2.734375 | 3 |
2024-11-18T21:51:55.124141+00:00 | 2023-07-13T14:53:27 | 7f45aa466e4200b9aa9bd2f6ab3ead32a6c920e4 | {
"blob_id": "7f45aa466e4200b9aa9bd2f6ab3ead32a6c920e4",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-13T14:53:27",
"content_id": "3dd5d6a08909780a802e7bdb21facc5ba8766f0b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3d48e97f98f8c5871b60e05aab8a0d5bd45cffd9",
"extens... | stackv2 | #include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "fsl_os_abstraction.h"
#include "fsl_interrupt_manager.h"
#include "fsl_power_manager.h"
#include "fsl_gpio_driver.h"
#include "fsl_llwu_hal.h"
#include "fsl_smc_hal.h"
#include "fsl_clock_manager.h"
#include "fsl_sim_hal.h"
#include "fsl_misc_utilit... | 2.09375 | 2 |
2024-11-18T21:51:55.251746+00:00 | 2019-10-17T17:45:10 | 3e51b7aa6399619ec9edbcbed00877aec1f05831 | {
"blob_id": "3e51b7aa6399619ec9edbcbed00877aec1f05831",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-17T17:45:10",
"content_id": "7a2c0af420b9cafa07b38795f03045b10c2c7d3d",
"detected_licenses": [
"MIT"
],
"directory_id": "671c73e7bfc492f9853ccbc1e14e7ee5bc013948",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<conio.h>
int main()
{
int a,b;
printf("Enter 2 numbers");
scanf("%d %d",&a,&b);
printf("Sum of the given numbers is : %d",a+b);
getch();
return 0;
} | 2.578125 | 3 |
2024-11-18T21:51:55.461803+00:00 | 2015-03-10T08:34:45 | f1ac7bb53d006586d9b8acfcdff6d1b64a9a53b1 | {
"blob_id": "f1ac7bb53d006586d9b8acfcdff6d1b64a9a53b1",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-10T08:34:45",
"content_id": "f6e119802007f8e5a295f47d6a3092d6e214ae84",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "27ac23e4b496713d5d0ce999ff60c0c173d01b4d",
"extensio... | stackv2 | /*
* Copyright 2014-2015 CyberVision, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 2 | 2 |
2024-11-18T21:51:55.709585+00:00 | 2023-07-17T17:25:58 | b7062f6419703e73dbe24f512d677fa7dcd9bb48 | {
"blob_id": "b7062f6419703e73dbe24f512d677fa7dcd9bb48",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-17T17:25:58",
"content_id": "e582ccb667e49c5522dbb73051ddcd8185f32d1f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d76510005376f12e0bf00af0dd0d3d0625dd8cdb",
"extensio... | stackv2 | /*
* These routines provides a means to safely receive calls from interrupt
* handlers or other tasks/threads/contexts.
*/
typedef void ( * interleaved_bridge_t )( void );
static interleaved_bridge_t interleaved_bridges[ ${te_ilb.define_name} ];
typedef struct { u4_t space[ (${te_ilb.data_define_name} + sizeof(u4_t... | 2.484375 | 2 |
2024-11-18T21:51:55.972423+00:00 | 2010-10-10T11:30:37 | 20c205e4c9f11892e1277b4b8d0529b65681ea1b | {
"blob_id": "20c205e4c9f11892e1277b4b8d0529b65681ea1b",
"branch_name": "refs/heads/master",
"committer_date": "2010-10-10T11:30:37",
"content_id": "ec904085018391dfa900f166a11d97a800bb6db7",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "450ff8fcd04f109e31bcdc44622c30dfc295fc85",
"extens... | stackv2 | #ifndef STONEAGE_LEVEL_H
#define STONEAGE_LEVEL_H
#include "common.h"
/** @file level.h
* includes definition of class Level.
*/
/** number of builtin levels
*/
#define BUILTIN_LEVELS 3
struct Board;
struct Entity;
struct Resource;
struct Level_impl;
/** A class representing a level in the game.
* This class ... | 2.234375 | 2 |
2024-11-18T21:51:56.289519+00:00 | 2021-12-16T13:04:22 | 131614c8de6fbd2aefe0ea9835a827805403aab5 | {
"blob_id": "131614c8de6fbd2aefe0ea9835a827805403aab5",
"branch_name": "refs/heads/master",
"committer_date": "2021-12-16T13:04:22",
"content_id": "78b4fdee92fd096a933030cdee58660bab4a626a",
"detected_licenses": [
"MIT"
],
"directory_id": "ae57abcd8749d9dded05a17b437d11d64c75fbd9",
"extension": "c"... | stackv2 | #include <pebble.h>
#include "timeCalculator.h"
// Rollover happens when doing laps and there is 1 time band
// no rollover is like a race multiple bands
static bool s_noRollover = true;
static time_tds s_startTime;
static time_tds s_realStartTime;
static time_tds s_pauseTime;
static time_tds s_actualTimes[MAX_BANDS... | 2.484375 | 2 |
2024-11-18T21:51:58.289421+00:00 | 2015-01-24T10:46:50 | 7dc0d4531c87656b0d476a2b4e31f02efba69207 | {
"blob_id": "7dc0d4531c87656b0d476a2b4e31f02efba69207",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-24T10:46:50",
"content_id": "ce00b9563b2970c412e99dd89efe5c1459ea12bb",
"detected_licenses": [
"MIT"
],
"directory_id": "399f23dfb7f9e5ff59dd83c6d04834a1db4df72e",
"extension": "c"... | stackv2 | #include "string.h"
#include "types.h"
void memset(void *dest, int val, size_t len) {
char *temp = (char *)dest;
for ( ; len != 0; len--) *temp++ = val;
}
| 2.3125 | 2 |
2024-11-18T21:51:58.493478+00:00 | 2018-07-11T11:40:14 | 9289855439be69ee530a513bcc8f614fcb0e0afb | {
"blob_id": "9289855439be69ee530a513bcc8f614fcb0e0afb",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-11T11:40:14",
"content_id": "69210d23c0bbcd50f2a9ba405209d532b2b9c64c",
"detected_licenses": [
"MIT"
],
"directory_id": "dd8da3aa401818453ee919c3236616911cc46b60",
"extension": "c"... | stackv2 | /**
* \file
* \brief Implementation of a driver for the LEDs on the PRG_G board.
* \author Erich Styger, erich.styger@hslu.ch
*
* This module implements functions for the LEDs.
*/
#include "Platform.h"
#include "Led.h"
#include <stdbool.h>
#if 0 /* not used */
#if PL_CONFIG_BOARD==PL_CONFIG_BOARD_ID_STM32_NUCLEO
... | 2.46875 | 2 |
2024-11-18T21:51:58.615177+00:00 | 2019-10-11T18:39:42 | cb52aedacb44ae7734159b7caecdf7ed30d29490 | {
"blob_id": "cb52aedacb44ae7734159b7caecdf7ed30d29490",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-11T18:39:42",
"content_id": "64f4b9f7717859074452a55e8731ae9945b2538a",
"detected_licenses": [
"MIT"
],
"directory_id": "3679455627086aade8a0038ab00ca83ec37aeaf8",
"extension": "c"... | stackv2 | #include <num.h>
#include <str.h>
#include <value.h>
#include <basic.h>
#include <standard.h>
#include <type_cmp.h>
#include <type_num.h>
#include <type_str.h>
static value op_cmp(value f, int op(int))
{
if (!f->L || !f->L->L) return 0;
{
value x = arg(f->L->R);
value y = arg(f->R);
if (x->T == type_num && y->T... | 2.53125 | 3 |
2024-11-18T21:51:59.002091+00:00 | 2018-06-08T11:54:28 | 39a16e707e6fc213eb7a1bfa07341789cf5d3fee | {
"blob_id": "39a16e707e6fc213eb7a1bfa07341789cf5d3fee",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-08T11:54:28",
"content_id": "9758af9cd0226eb32f39ceeec8f1bac1a5c179b6",
"detected_licenses": [
"MIT"
],
"directory_id": "f569fb842cb225affaabe991a51b30e1900053ee",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* socket_bind.c :+: :+: :+: ... | 2.109375 | 2 |
2024-11-18T21:52:01.505249+00:00 | 2015-03-12T05:41:44 | 6b677c49bc250d3dcf50fc4c436712372c6304bf | {
"blob_id": "6b677c49bc250d3dcf50fc4c436712372c6304bf",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-12T05:41:44",
"content_id": "33d533a2b5bf3ff5296e1aa79a9541287d6c26a4",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "b8382ed7cbbba58621218cc9bb986a8c17695a1e",
"extens... | stackv2 |
// Copyright (c) 2015 Connor Taffe. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <infix_internal.h>
#include <stdlib.h>
#include <stdio.h>
Obj *make_tobj(Operator op) {
Obj *obj = calloc(sizeof(Obj), 1);
obj->t = OP;
obj->op... | 2.859375 | 3 |
2024-11-18T21:52:01.885251+00:00 | 2014-09-01T20:16:34 | dfde5adca4f1bd2e56960f45d701c71d31d5c3fa | {
"blob_id": "dfde5adca4f1bd2e56960f45d701c71d31d5c3fa",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-01T20:16:34",
"content_id": "50bc10a1315629172de10465959094f8e6d201b8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dc100e6e2d711d53f54f298a44ca63ce94350272",
"extensio... | stackv2 | /*
Copyright (c) 2010 Jennifer Holt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, s... | 2.6875 | 3 |
2024-11-18T21:52:02.067875+00:00 | 2023-08-31T16:38:00 | 4c36ab730bce0ca8f1185ab60b0b4702a5b60b9e | {
"blob_id": "4c36ab730bce0ca8f1185ab60b0b4702a5b60b9e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T16:38:00",
"content_id": "557655de4ebabd884950c33ec3eb51f2a404172b",
"detected_licenses": [
"BSD-2-Clause",
"BSD-2-Clause-Patent"
],
"directory_id": "1efd2de8bf77ec00eb2fcaf57... | stackv2 | /**
* (C) Copyright 2015-2023 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
#ifndef __DAOS_COMMON_H__
#define __DAOS_COMMON_H__
#include <sys/time.h>
#include <sys/types.h>
#include <sys/param.h>
#include <stdint.h>
#include <inttypes.h>
#include <unistd.h>
#include <stdbool.h>
#include <... | 2.203125 | 2 |
2024-11-18T21:52:02.313844+00:00 | 2014-12-08T07:20:39 | e617b777dbd68ad2c55cb92e53b69cd355221d27 | {
"blob_id": "e617b777dbd68ad2c55cb92e53b69cd355221d27",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-08T07:20:39",
"content_id": "ada4b33cc90bd3635a36014cbcc42b420aacb2cf",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "d3220d05b7e7ad34846e1227b3fdb21dd932f756",
"extens... | stackv2 | #include <windows.h>
#include <stdio.h>
#include <ctype.h>
char ____DEVICE_BASENAME[128];
//
// Get system error message string
//
PCSTR SystemMessage(
DWORD nError)
{
static CHAR msg[256];
if (!FormatMessage(
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, nError, 0, msg, sizeof(msg), N... | 2.453125 | 2 |
2024-11-18T21:52:02.552735+00:00 | 2018-05-14T01:33:49 | ed48695567e9d8235bd97dfa37d6fd490202f749 | {
"blob_id": "ed48695567e9d8235bd97dfa37d6fd490202f749",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-14T01:33:49",
"content_id": "7fcf893fd07c6740d4e46dc8f06dadac00f5a5e0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a4727cd05d69c04b4ffa9898c9d92590ff6f1300",
"extensio... | stackv2 | #include "camerahal.h"
camerahal_device_t camera;
static const char device[] = { "/dev/video0" };
int
main(int argc, char *argv[])
{
camerahal_error_t err;
printf("CameraHal Example \n");
if (argc < 0) {
printf("[Usage] : ./example [Options]\n "
" [Options] may be /dev/videoX\n"
" ... | 2.484375 | 2 |
2024-11-18T21:52:04.181034+00:00 | 2022-11-14T10:07:26 | 61691e3740c3e37d6fb745aae0f40bcfc798db89 | {
"blob_id": "61691e3740c3e37d6fb745aae0f40bcfc798db89",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-14T10:07:26",
"content_id": "50b1680deaacab9f2addd9e2cabb477604a40683",
"detected_licenses": [
"MIT"
],
"directory_id": "e8b4d2fb71f37cda050a600c0b566a1717a833b2",
"extension": "c"... | stackv2 | // Run-Time environment
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct args {
int data[16];
};
int __MINIK_read()
{
char line[32];
int val = 0;
fgets(line, 19, stdin);
line[31] = 0;
sscanf(line, "%i", &val);
return val;
}
void __MINIK_write(int x)
{
printf("%i\n", x... | 2.328125 | 2 |
2024-11-18T21:52:05.206595+00:00 | 2016-06-02T23:25:36 | 09903862078e00d6847fd628c86f1f5398f28518 | {
"blob_id": "09903862078e00d6847fd628c86f1f5398f28518",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-02T23:25:36",
"content_id": "59513334134ee4543dc2ba0077be5e176a7e4db3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "962daae186afad97e1f848f3306f8393ecbd905a",
"extensio... | stackv2 | /*
* ListaTestCase.c
*
* Created on: 02/04/2011
* Author: anibal
*/
#include "straight_list.h"
#include "test_case_straight_list.h"
#include "TDATestCase.h"
void destruir_int(void* e);
int copiar_int(void* destino, const void* origen);
void destruir_string(void* e);
int copiar_string(void* destino, const... | 2.953125 | 3 |
2024-11-18T21:52:05.351344+00:00 | 2019-01-13T08:14:26 | 901a8f00e68a1e152621fe277ad0f0fecec300a9 | {
"blob_id": "901a8f00e68a1e152621fe277ad0f0fecec300a9",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-13T08:14:26",
"content_id": "964a2156767163153368f1d3dbaf76ced1df727a",
"detected_licenses": [
"Unlicense"
],
"directory_id": "41ba7af5cc059c046bbcb5730ab3edf90babedf4",
"extension... | stackv2 | // This is free and unencumbered software released into the public domain.
// For more information, see UNLICENSE.
#include "common/time.h"
#include <dirent.h>
#include <fcntl.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
// Note: The maximum number of files in ... | 2.78125 | 3 |
2024-11-18T21:52:06.159663+00:00 | 2023-01-05T16:43:25 | 272670df01e3a773f61eb404e11b3fb363c06121 | {
"blob_id": "272670df01e3a773f61eb404e11b3fb363c06121",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-05T17:02:26",
"content_id": "725ab0d940bea3047797b7b003ba50eb8a1dcafa",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "e7df8a455a730a9750e9bac5dd2840434f1ba8bc",
"extens... | stackv2 | /* SPDX-License-Identifier: BSD-2 */
#ifndef EDK2_BUILD
#include <efi/efi.h>
#include <efi/efilib.h>
#else
#include <Uefi.h>
#include <Library/UefiLib.h>
#include <Library/ShellCommandLib.h>
#endif
#include <inttypes.h>
#include <stdlib.h>
#include <tss2/tss2_tpm2_types.h>
#include "tcg2-protocol.h"
#include "tcg2-u... | 2.375 | 2 |
2024-11-18T21:52:10.881405+00:00 | 2023-07-19T12:46:37 | 1237cc724fd494bac296bf11608ec7a61636a0c9 | {
"blob_id": "1237cc724fd494bac296bf11608ec7a61636a0c9",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-19T12:46:37",
"content_id": "c25299661dae3cd4c0e2eccb3fd28685c0d7bc28",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "03f6ad21c4332b9b26dfb11ed04e63bdb9236b3c",
"extensio... | stackv2 | //------------------------------------------------------------------------------
// Project: arrayfunc
// Module: sub_simd_x86.h
// Purpose: Calculate the sub of values in an array.
// This file provides an SIMD version of the functions.
// Language: C
// Date: 1-Apr-2019
// Ver: 31-Oct-2021.
//
... | 2.03125 | 2 |
2024-11-18T21:52:10.952580+00:00 | 2019-10-04T22:55:10 | 3e6cda19e1ec08a23711046f6a6afb5d350af26d | {
"blob_id": "3e6cda19e1ec08a23711046f6a6afb5d350af26d",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-04T22:55:10",
"content_id": "9d9e381f459c163003ed276b7f39bbf5e9f34cad",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5142f82be506c47a04e572091300979ad85d0220",
"extensio... | stackv2 | /* Lab Section: 021
* Assignment: Lab 1 Exercise 2
*
* Created: 2019-10-04 오후 3:37:30
* Author : Minwhan Oh
*
* I acknowledge all content contained herein, excluding template
* or example code, is my own original work.
*/
#include <avr/io.h>
#include <avr/interrupt.h>
#include "Timer.h"
#include "io.c"
enum... | 2.640625 | 3 |
2024-11-18T21:52:11.117515+00:00 | 2018-09-06T04:19:31 | 11761685d1306ed48850cfc670e1eb87019d3025 | {
"blob_id": "11761685d1306ed48850cfc670e1eb87019d3025",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-06T04:19:31",
"content_id": "02af203afc996dbb70dd3cb39ee267f0e38bd054",
"detected_licenses": [
"MIT"
],
"directory_id": "134fca5b62ca6bac59ba1af5a5ebd271d9b53281",
"extension": "c"... | stackv2 | /*dkf5k*/
#include <stdlib.h>
#include <stdio.h>
int main()
{
char buffer[12] = "hello world";
int i;
printf("Enter the character you want: ");
scanf("%i", &i);
if ( i >= sizeof(buffer))
{
fprintf(stderr, "Error: %i is greater than or equal to the range which is %i", i, sizeof(buffer));
exi... | 3.265625 | 3 |
2024-11-18T21:52:11.257057+00:00 | 2014-10-01T19:07:07 | 0df8361237b1b22a5414a754852fa5682640a614 | {
"blob_id": "0df8361237b1b22a5414a754852fa5682640a614",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-01T19:07:07",
"content_id": "ceee95684c95ade5a742050b9ec1d8e16221c642",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "ae7c18a47b72580fe4f48fafadafe6c79397c579",
... | stackv2 | /*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee and The University
* of Tennessee Resea... | 2.09375 | 2 |
2024-11-18T21:52:13.527975+00:00 | 2015-02-03T21:19:40 | 2da190bf09a49ab4da15b26a15be70b72149b58d | {
"blob_id": "2da190bf09a49ab4da15b26a15be70b72149b58d",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-03T21:19:40",
"content_id": "105040da8cf3b4ccc489f23b323f1b1e85b366fa",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "171d04578c725c0884fd7abd820fa1eb25330247",
"extensio... | stackv2 | #include <stdio.h>
#include <string.h>
void crypt(const char* originalMessage, char* codedMessage, char key) {
unsigned int size = strlen(originalMessage);
unsigned int i = 0;
for(i=0; i<size; i++){
codedMessage[i] = originalMessage[i];
codedMessage[i] ^= key;
}
codedMessage[i] =... | 2.71875 | 3 |
2024-11-18T21:52:13.882277+00:00 | 2020-02-22T10:26:11 | 27b14e5eb102ee4787c251ff16ac2ef75b0f09cc | {
"blob_id": "27b14e5eb102ee4787c251ff16ac2ef75b0f09cc",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-22T10:26:11",
"content_id": "886f5b42735a59c00a69c471f2b27c46208ae51f",
"detected_licenses": [
"Unlicense"
],
"directory_id": "c5d1257a3081681e0eb935d30b250a8a0cd29641",
"extension... | stackv2 | #include "lak_memory.h"
#include <sys/mman.h>
void lak_array_malloc(lak_array_t *array, size_t size)
{
array->data = mmap(NULL, size, PROT_READ | PROT_WRITE,
MAP_SHARED | MAP_ANONYMOUS, -1, 0);
array->size = size;
}
void lak_array_free(lak_array_t *array)
{
munmap(array->data, array->size)... | 2.359375 | 2 |
2024-11-18T21:52:14.006088+00:00 | 2021-05-03T01:10:25 | 0681d0b2fc45cb13a192d48235cde9d6e458d24d | {
"blob_id": "0681d0b2fc45cb13a192d48235cde9d6e458d24d",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-03T01:10:25",
"content_id": "67ce3ff924df54ba0ca9ad4421c1e88cf56c3430",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "09d792a135d4d5eb06af247452228a2538ee097f",
"extensio... | stackv2 | /**
* @file pkcs1.h
* @author Hidenori BABA (BabaH@dotpro.jp)
* @brief
*
* @copyright Copyright (c) 2020 Hidenori BABA
*
*/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#ifndef __PKCS1_H__
#define __PKCS1_H__
#define PKCS1_E_OK (0)
#define PKCS1_E_PARAM (-1... | 2.09375 | 2 |
2024-11-18T21:52:14.071924+00:00 | 2023-08-29T11:09:10 | 9c9ac28076566c475ec34eb6cd0b02283bf65143 | {
"blob_id": "9c9ac28076566c475ec34eb6cd0b02283bf65143",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T11:09:10",
"content_id": "ef4c2b296c06dfe4b681dec19ce436793692b922",
"detected_licenses": [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
],
"directory_id": "11269038e69d038803de79f... | stackv2 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
/*
This file corresponds to the following commit:
https://github.com/awslabs/aws-c-common/tree/bb797381f3468e6f076e53eddbb399a99f54f67b
*/
#include "byte_buf.h"
int aws_byte_buf_init(struct aws_byt... | 2.953125 | 3 |
2024-11-18T21:52:14.554903+00:00 | 2018-12-06T09:32:40 | 4ee6df9a0adb0f618abe8a74d259114c62bca6d2 | {
"blob_id": "4ee6df9a0adb0f618abe8a74d259114c62bca6d2",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-06T09:32:40",
"content_id": "aac129c81292166674cec13ecc6b947fd8cbe135",
"detected_licenses": [
"MIT"
],
"directory_id": "37bc077121ea77fba64c51e68e6add1f4c8d509e",
"extension": "c"... | stackv2 | //
// Created by CYRO4S <me@ralf.ren> on 2018/10/4.
// from: https://www.geeksforgeeks.org/queue-set-2-linked-list-implementation/
//
#include "queue_linked_list.h"
#include <malloc.h>
struct QueueNode* createNode(int key)
{
struct QueueNode *temp = (struct QueueNode*)malloc(sizeof(struct QueueNode));
temp->k... | 3.5 | 4 |
2024-11-18T21:52:14.617708+00:00 | 2015-12-24T20:14:42 | 7433ff5203fbfc229b0687f7a50e1a2f8b95a93c | {
"blob_id": "7433ff5203fbfc229b0687f7a50e1a2f8b95a93c",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-24T20:14:42",
"content_id": "a9f14886a8fd20265f163fe594d5e1b70523950a",
"detected_licenses": [
"MIT"
],
"directory_id": "31ba1efd8035b9d51d0d8565df20bfb1871a5850",
"extension": "c"... | stackv2 | #include "types.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
#include "defs.h"
#include "x86.h"
#include "elf.h"
#define RECURSION_LIMIT 5
static int cleverexec(char *, char **, int);
static char checkshebang(struct inode *);
static int scriptexec(struct inode *, char *, char **, in... | 2.421875 | 2 |
2024-11-18T21:52:14.693214+00:00 | 2018-03-22T02:13:11 | 51495e6a7de1807451378a698d4ce84b1e63cdea | {
"blob_id": "51495e6a7de1807451378a698d4ce84b1e63cdea",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-22T02:13:11",
"content_id": "3a1510fc2356ba50c49a2be35ea0295cabdd0027",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "fa4deb7f4cbfc8083fbacd5ccdd5137850a76fe3",
"extens... | stackv2 | /*****************************************************************************/
/* FILE NAME: main_z4_0.c COPYRIGHT (c) NXP Semiconductors 2016 */
/* All Rights Reserved */
/* PLATFORM: DEVKIT-MPC5748G */
/* DESCRIPTION: Main C program for c... | 2.234375 | 2 |
2024-11-18T21:52:14.802617+00:00 | 2018-04-10T08:04:05 | c1e2a2bfa95bb9a9cf89279e2a3395e47443a37b | {
"blob_id": "c1e2a2bfa95bb9a9cf89279e2a3395e47443a37b",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-10T08:04:05",
"content_id": "8e86b5822a5a6671f13c37366ebf5765750932a3",
"detected_licenses": [
"MIT"
],
"directory_id": "4e7ae8fcc98c6aecf3658c48cbfb262349389ad8",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "raspicture.h"
#define DEFAULT_SCREEN 0
int init_dispmanx(DISPMANX_STATE_T *state)
{
int32_t success = 0;
success = graphics_get_display_size(
DEFAULT_SCREEN,
&state->screen_width,
&state->screen_height
);
if (success < 0) {
PRINT_ERR("Couldn't get display size. Make su... | 2.28125 | 2 |
2024-11-18T21:52:15.032979+00:00 | 2018-05-20T20:06:55 | 40e6579cd6a6d9158abd813e515047e374ac0418 | {
"blob_id": "40e6579cd6a6d9158abd813e515047e374ac0418",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-20T20:06:55",
"content_id": "e5be96a14690eaa5147e3b9552602c4b3df087c9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d023a4214e796ee137de2fe2232bc82bf1031040",
"extensio... | stackv2 | #include <avr/io.h>
#define F_CPU 120000
#include <util/delay.h>
int main (void)
{
DDRB = 0x1F; //set PB.0-4 as output pins
TCCR0B=0x02; //Set Prescaler to 8
while (1) {
if(TCNT0==0)
{
PORTB^=0x1F; //Toggle all outputs
}
}
}
| 2.09375 | 2 |
2024-11-18T21:52:15.629223+00:00 | 2015-08-21T12:11:06 | b087aa5e3207ef2d88fe1e64244a608a21428312 | {
"blob_id": "b087aa5e3207ef2d88fe1e64244a608a21428312",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-21T12:11:06",
"content_id": "2f80e0e8dccb176e11794b753208e3dcbd7eb5f4",
"detected_licenses": [
"MIT"
],
"directory_id": "fa2afc6b8dd7d65ebbddd96d136358dd9cf80f2e",
"extension": "c"... | stackv2 | /*
**
** Main.c
**
**
**********************************************************************/
/*
Last committed: $Revision: 00 $
Last changed by: $Author: $
Last changed date: $Date: $
ID: $Id: $
***********************************************************... | 2.421875 | 2 |
2024-11-18T21:52:15.687835+00:00 | 2019-06-19T18:13:44 | 079e59364dcb5f616a37e5e3673ebccda213513c | {
"blob_id": "079e59364dcb5f616a37e5e3673ebccda213513c",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-19T23:03:30",
"content_id": "8a7c57c587cf00ef36b6455dea7bca6007733c0c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "98c49475f1093066d8f4aab4a45b11d8a835d727",
"extens... | stackv2 | /* Copyright 2019 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* GBB accessor functions.
*/
#include "2common.h"
#include "2misc.h"
static int vb2_gbb_read_key(struct vb2_context *ctx,
uint32_t offset,... | 2.296875 | 2 |
2024-11-18T21:52:16.224872+00:00 | 2023-04-20T08:33:55 | 3d87b626e3673b28c8c9a92e9a9a6e9be8b14055 | {
"blob_id": "3d87b626e3673b28c8c9a92e9a9a6e9be8b14055",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-20T08:33:55",
"content_id": "dd25e5e1d3fbff0010d30964778ddca900128962",
"detected_licenses": [
"MIT"
],
"directory_id": "5409096061379d97b455896e02d9701dcf71868c",
"extension": "c"... | stackv2 | // 神话世界·西游记·版本4.50
/* <SecCrypt CPL V3R05> */
inherit ITEM;
void init();
void eat();
void create()
{
set_name("葡萄干", ({"putao gan", "gan"}));
set_weight(300);
if (clonep())
set_default_object(__FILE__);
else
{
set("long", "葡萄干是西北边疆的特产,吃起来香甜可口.\n"... | 2.296875 | 2 |
2024-11-18T21:52:16.299117+00:00 | 2015-12-15T23:53:21 | 17f9cbcb41682347bd8d3610656086a22f4a587a | {
"blob_id": "17f9cbcb41682347bd8d3610656086a22f4a587a",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-15T23:53:21",
"content_id": "100bacc267c9ee3bd4d30165dfb41966ce9c7ee2",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "5518f5a958b10ae9459fa5792d1a0b77c4c0a62f",
"extension":... | stackv2 | #include <avr/io.h>
#include "motor.h"
void motor_init( void ) {
PORTD &= ~(1<<PD4);
PORTD &= ~(1<<PD5);
PORTC &= ~(1<<PC2);
PORTC &= ~(1<<PC3);
DDRD |= (1<<PD4); // left motor
DDRD |= (1<<PD5); // right motor
DDRC |= (1<<PC2); // left motor direction output
DDRC |= (1<<PC3); // right motor direction output
}... | 2.703125 | 3 |
2024-11-18T21:52:16.352841+00:00 | 2013-11-07T00:39:26 | 0cbbdb25fb758dd54940c2eabe103f73b996cb89 | {
"blob_id": "0cbbdb25fb758dd54940c2eabe103f73b996cb89",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-28T08:50:36",
"content_id": "254d76365be9e6384a71c5ffbcbdfe5658a54cf4",
"detected_licenses": [
"MIT"
],
"directory_id": "6437a0e48a9d4b51d8f1910d171b037892e06747",
"extension": "c"... | stackv2 | #include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "foo-wm.h"
#include "util.h"
#include "tree.h"
#include "responses.h"
char * jsonMarks(void) {
char * marksResponse = malloc(1024);
sprintf(marksResponse, "{\"marks\":[");
Mark *n = NULL;
for(n = markTail; n; n = n -> previous) {
sprintf(... | 2.46875 | 2 |
2024-11-18T21:52:17.277401+00:00 | 2019-05-23T16:37:53 | 3b0e05e1b51488f34d0498a7b2463c2c43636a71 | {
"blob_id": "3b0e05e1b51488f34d0498a7b2463c2c43636a71",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-23T16:37:53",
"content_id": "6384e6df097de4609bc7b833bd33aa67470351fb",
"detected_licenses": [
"MIT"
],
"directory_id": "7af24000854a3442229abf0e393f859ce265cbcc",
"extension": "h"... | stackv2 | /// \file
/// \brief Efficiently stores a growing array of character or binary strings (AKA string table)
#ifndef ANALYTICSAPI_BINBAG_H
#define ANALYTICSAPI_BINBAG_H
#include "ds-config.h"
#include <stdint.h>
#include <cstdlib>
#ifdef __cplusplus
extern "C" {
#endif
// split string flags
#define SF_NONE ... | 2.671875 | 3 |
2024-11-18T21:52:17.359476+00:00 | 2022-08-22T19:03:28 | 90566188f004f88d3f6019e3411359b05575ef2f | {
"blob_id": "90566188f004f88d3f6019e3411359b05575ef2f",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-22T19:03:28",
"content_id": "091a49afd86666c7e0a1aa9ea58c1922610fd3fa",
"detected_licenses": [
"Unlicense",
"Zlib"
],
"directory_id": "d91637e9d05bd0f7ccc44741abbbec21955b5010",
... | stackv2 | #include <memset.h>
#include <3ds/types.h>
#include <3ds/result.h>
#include <3ds/svc.h>
#include <3ds/errf.h>
#include <3ds/ipc.h>
static Handle errfHandle;
static int errfRefCount;
Result errfInit(void)
{
Result rc = 0;
if (errfRefCount++) return 0;
rc = svcConnectToPort(&errfHandle, "err:f");
if (R_FAILED(rc... | 2.25 | 2 |
2024-11-18T21:52:17.429808+00:00 | 2020-08-25T20:38:15 | 5b1a07ee3b2ba5a601b3c42b3fced1eed2e89218 | {
"blob_id": "5b1a07ee3b2ba5a601b3c42b3fced1eed2e89218",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-25T20:38:15",
"content_id": "694a885daa64be55fbc9f5ecaf7e1d7654d04d1b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a14d55701c73640a7fad21a8b4300da3b6140730",
"extens... | stackv2 | /****************************************************************************
i106_decode_1553f1.c
****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "stdint.h"
#include "irig106ch10.h"
#include "i106_decode_1553f1.h"
... | 2.375 | 2 |
2024-11-18T21:52:17.744366+00:00 | 2014-12-03T20:29:00 | 1036924c1c56ffcb0c8444417b0f046eeab09b16 | {
"blob_id": "1036924c1c56ffcb0c8444417b0f046eeab09b16",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-03T20:29:00",
"content_id": "173b9a648e97cae79eb7173698d58650329f497c",
"detected_licenses": [
"MIT"
],
"directory_id": "b665e617edc30ce87dc0a1b3f24fea12ce1c584a",
"extension": "h"... | stackv2 | #ifndef MINIRPC_SERVICE_H_
#define MINIRPC_SERVICE_H_
#include <stddef.h>
/*
* This is the default Mini RPC service module. A service means a reigetered
* RPC routine. This service module provides infrastructure to register,execute
* service using multi-thread. To make it more flexible, the user is able to
* call ... | 2.015625 | 2 |
2024-11-18T21:52:17.832961+00:00 | 2020-12-08T15:06:55 | 80640b01f592ef473250675d086cce68c9fb4404 | {
"blob_id": "80640b01f592ef473250675d086cce68c9fb4404",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-08T15:06:55",
"content_id": "3da7713b407667b8984e20c4a2af4d0b107892c5",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1464d42c09403ab7e7b6dd493d32067af7a4eb10",
"extensio... | stackv2 | #include <nrf.h>
int main(void)
{
// Start LFCLK (32kHz) crystal oscillator. If you don't have crystal on your board, choose RCOSC instead.
NRF_CLOCK->LFCLKSRC = CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos;
NRF_CLOCK->TASKS_LFCLKSTART = 1;
while (NRF_CLOCK->EVENTS_LFCLKSTARTED == 0);
NRF_CLOCK->EVENTS_... | 2.3125 | 2 |
2024-11-18T21:52:18.925019+00:00 | 2017-05-09T01:08:07 | f1f30f5b72d5e040a4a93fc3232147c6d3559bd0 | {
"blob_id": "f1f30f5b72d5e040a4a93fc3232147c6d3559bd0",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-09T01:08:07",
"content_id": "8077e126cf20e855b74d2d3495738a97d4a0b1ba",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "3c02fb266dce02969c002499393aec5a41557cf6",
"extension":... | stackv2 | #include<cstdio>
#include<iostream>
#include<vector>
#include<algorithm>
#define N 100
using namespace std;
int parent[N];
struct edge{
int u,v,weight; // pre, post,cost
bool operator <(edge p)const{ // operator overloading used to sort the weight
return weight<p.weight;
}
};
... | 3.3125 | 3 |
2024-11-18T21:52:19.509252+00:00 | 2020-01-28T02:17:01 | 826603b33b32b12479163b70c70767111504435f | {
"blob_id": "826603b33b32b12479163b70c70767111504435f",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-28T02:17:01",
"content_id": "a52ddfe66d3a1f06866819a2a04febb267fd3999",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "51baca18a6813c0f26b292012c5c89d2... | stackv2 | /*
* File: unistd.c
*
* Unix standard.
*
* History:
* 2019 - Created by Fred Nora.
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/mman.h>
//#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
//#todo
//nice() precisa disso.
#include <sys/time.h>
#... | 2.3125 | 2 |
2024-11-18T21:52:19.611567+00:00 | 2013-02-06T10:30:06 | 930f0d1017dccac3833d1e250b0b11f72e116534 | {
"blob_id": "930f0d1017dccac3833d1e250b0b11f72e116534",
"branch_name": "refs/heads/master",
"committer_date": "2013-02-06T10:30:06",
"content_id": "ec46630b472d118939c72b2b8b92c47e5f440a67",
"detected_licenses": [
"MIT"
],
"directory_id": "8e15ac379fe3745057a6ef0e29595aafcbfd73be",
"extension": "c"... | stackv2 |
/* tmpcache/tmpcache_writeto.c */
#include "../config.h"
#include "utility.h"
#include "cache.h"
#include <zmq.h>
#include <argtable2.h>
struct arg_lit *delete;
struct arg_lit *verbose, *help;
struct arg_str *key;
struct arg_file *netaddress0;
struct arg_end *end;
#define zmq_assertmsg(s,str) if ( ! (s) ) {\
f... | 2.21875 | 2 |
2024-11-18T21:52:19.709344+00:00 | 2018-09-25T18:21:40 | 93c861e969459438cb77bff1a8503bfb448e657c | {
"blob_id": "93c861e969459438cb77bff1a8503bfb448e657c",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-25T18:21:40",
"content_id": "934b4641f4058121aa37c50fd37df2e24883ee60",
"detected_licenses": [
"MIT"
],
"directory_id": "d356e3ff16d02ea041703c02dd1efcfdcce4f424",
"extension": "c"... | stackv2 | /** @file
* Implementacja operacji na liście słów z interfejsem w pliku
* @ref string_list.h
*
* @author Witalis Domitrz <witekdomitrz@gmail.com>
* @date 13.05.2018
*/
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "string_list.h"
void stringListDestroy(struct StringList const *stringList... | 3.421875 | 3 |
2024-11-18T21:52:20.805257+00:00 | 2021-05-25T18:54:51 | 613f28c1d58fbabb71b9bf13c7329b6b8935e500 | {
"blob_id": "613f28c1d58fbabb71b9bf13c7329b6b8935e500",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-25T18:54:51",
"content_id": "5eea6852a9e4efef923dfcf5827d9d2f39cfda02",
"detected_licenses": [
"MIT",
"CC0-1.0",
"BSD-2-Clause"
],
"directory_id": "830d155080fd1eee594100b0da... | stackv2 | /*
* File: sys_write.c
* Description: Writes a buffer to the corresponding descriptor
* *****************************************************************************
* Copyright 2021 Scott Maday
* Check the LICENSE file that came with this program for licensing terms
*/
#define __NEED_struct_iovec
#include <st... | 2.828125 | 3 |
2024-11-18T22:02:35.767920+00:00 | 2023-07-10T19:21:33 | dd2575f5885804607ef60aeca18ca76b88523522 | {
"blob_id": "dd2575f5885804607ef60aeca18ca76b88523522",
"branch_name": "refs/heads/develop",
"committer_date": "2023-07-10T19:21:33",
"content_id": "12bfb524b8bb5974eae51bbb409b15e95282905e",
"detected_licenses": [
"MIT"
],
"directory_id": "1c015973d4df0f85787c93c486ce7917c1f0af0d",
"extension": "h... | stackv2 | // Copyright (c) 2018, Peter Ohler, All rights reserved.
#ifndef AGOO_DEBUG_H
#define AGOO_DEBUG_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef MEM_DEBUG
#define AGOO_MALLOC(size) agoo_malloc(size, __FILE__, __LINE__)
#define AGOO_CALLOC(count, size) agoo_calloc(count, size, __FILE__, __LINE__)... | 2.265625 | 2 |
2024-11-18T22:02:35.891682+00:00 | 2018-05-09T16:56:18 | e23a14571f98fdda473212e6b0ebba0938ee4bd7 | {
"blob_id": "e23a14571f98fdda473212e6b0ebba0938ee4bd7",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-09T16:57:52",
"content_id": "0fac86fc9c964b1836f689f3fd17be7ea7485a70",
"detected_licenses": [
"MIT"
],
"directory_id": "ea0df21abb8b38fa9a5d7b9e376433da27f7c522",
"extension": "c"... | stackv2 |
/* ###--------------------------------------------------------------### */
/* file : utl_frebyt.c */
/* date : Apr 19 2004 */
/* version : v200 */
/* authors : Pirouz Bazagan Sabet */
/* description : Utility function */
/* ###--------------------------------------------------------------### ... | 2.4375 | 2 |
2024-11-18T22:02:35.958588+00:00 | 2019-06-06T23:48:47 | fe16b3e960abdb305ff878c8a249ccf42c386073 | {
"blob_id": "fe16b3e960abdb305ff878c8a249ccf42c386073",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-06T23:48:47",
"content_id": "f9bf84f85c5958bb2d1a70eb447ad09c667ec73a",
"detected_licenses": [
"MIT"
],
"directory_id": "f47d09f661be9c8031229c95da011b6e2ad7d8eb",
"extension": "c"... | stackv2 | /******* ms2SFSVector.c ********
converts ms output to SFS Vector
representation.
by convention fixed sites are
treated as monomorphic
********************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "msGeneralStats.h"
#define LINEBUF 1000000
void usage();... | 2.4375 | 2 |
2024-11-18T22:02:36.127627+00:00 | 2013-12-30T08:26:11 | 12610e606215f3ac0d271ec8ee5cec9c4901563e | {
"blob_id": "12610e606215f3ac0d271ec8ee5cec9c4901563e",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-30T08:26:11",
"content_id": "3908fdbe7e76f0d8849132847027775c664a63d5",
"detected_licenses": [
"Unlicense"
],
"directory_id": "62bbabe5820d2d10c0e7c22334ddebe9f161d631",
"extension... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <sys/ptrace.h>
#include <signal.h>
#include <errno.h>
#include <string.h>
void getErrmsg(char*);
int main(int argc, char** argv) {
if (argc <= 1) {
printf("Usage: xtrace pid\n");
return -1;
}
int pid = atoi(argv[1]);
long ret = ptrace(PTRACE_ATTACH, pid,... | 2.671875 | 3 |
2024-11-18T22:02:36.231407+00:00 | 2016-01-15T19:18:26 | 2df5b22e6e68c083820e6ed6398828ede1fea035 | {
"blob_id": "2df5b22e6e68c083820e6ed6398828ede1fea035",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-15T19:18:26",
"content_id": "fcb171094d9a1310ffaf2646c76cb91f2c63bb3a",
"detected_licenses": [
"MIT"
],
"directory_id": "387b2c3208310ad3a1e534efb92a004d12377448",
"extension": "c"... | stackv2 | #include <tyranscript/tyran_symbol_table.h>
#include <tyranscript/tyran_symbol.h>
#include <tyranscript/tyran_memory.h>
#include <tyranscript/tyran_clib.h>
#include <tyranscript/tyran_log.h>
tyran_symbol_table* tyran_symbol_table_new(tyran_memory* memory)
{
tyran_symbol_table* table = TYRAN_MALLOC_NO_POOL_TYPE(memory... | 2.6875 | 3 |
2024-11-18T22:02:36.545954+00:00 | 2022-04-19T13:57:58 | 666fb69bb02fd58483e2be3dd94db697cd17cd86 | {
"blob_id": "666fb69bb02fd58483e2be3dd94db697cd17cd86",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-27T10:51:02",
"content_id": "c50576b33addfdc383a75706ff9af1ba2ccb0847",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "99ffc8da5d27bd1fd7e1082da6911e1ff984dd2f",
"extens... | stackv2 | /*
* Arm SCP/MCP Software
* Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef MOD_MORELLO_SENSOR_DRIVER_H
#define MOD_MORELLO_SENSOR_DRIVER_H
#include <mod_morello_sensor.h>
/*!
* \brief Get the sampled value of the sensor
*
* \param v... | 2.140625 | 2 |
2024-11-18T22:02:41.497184+00:00 | 2021-03-24T12:05:18 | a9eb265c1d92de58b8b1c45489d0e5329b6dd042 | {
"blob_id": "a9eb265c1d92de58b8b1c45489d0e5329b6dd042",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-24T12:05:18",
"content_id": "50b9727d061f4f35d0fa0da3a794a39503443d26",
"detected_licenses": [
"MIT"
],
"directory_id": "7edb1623b51db39907cbfff71375d0b93feedabc",
"extension": "h",
... | stackv2 | #pragma once
#include <stdint.h>
// utils.c
int to_int(char *str);
long long to_long_long(char *str);
uint8_t int_to_str(int dec, char *buffer, size_t size);
uint8_t long_long_to_str(long long dec, char *buffer, size_t size);
char chr_to_lower(char c);
char chr_to_upper(char c);
int reverse_integer(int n);
void conver... | 2.25 | 2 |
2024-11-18T22:02:41.783403+00:00 | 2019-05-07T20:59:17 | 37804617ac183e89b3870dbea5b022b7dd757a0e | {
"blob_id": "37804617ac183e89b3870dbea5b022b7dd757a0e",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-07T20:59:17",
"content_id": "98a744ac1d6211560b23283b1ea88c9a6372a33d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0653d544fed62c4db586b831a8146ebf2f7b14b8",
"extens... | stackv2 | #ifndef LMP_TESTBIT
inline size_t lmp_testbit(
const lmp_limb_t *const restrict ap, const size_t an,
const size_t bi)
{
size_t ai = bi / LMP_LIMB_W;
size_t wi = bi % LMP_LIMB_W;
return ai < an && (ap[ai] & (1 << wi));
}
#endif
| 2.046875 | 2 |
2024-11-18T22:02:41.924535+00:00 | 2023-08-30T05:21:33 | 695eb114c3d948bd8ae8576a2f7ea880d8a25fa6 | {
"blob_id": "695eb114c3d948bd8ae8576a2f7ea880d8a25fa6",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T05:21:33",
"content_id": "9de143e820fd187579521eff4a31943e7abd8abb",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3b1223e5259c580cbf107d1f45960d9f08aff27f",
"extens... | stackv2 | #define INCL_GPIPATHS /* GPI Path functions */
#include <os2.h>
int main(VOID)
{
HPS hps; /* presentation space handle */
POINTL ptlStart = { 0, 0 }; /* first vertex */
POINTL ptlTriangle[] = { 100, 100, 200, 0, 0, 0 }; /* vertices */
GpiBeginPa... | 2.28125 | 2 |
2024-11-18T22:02:42.152914+00:00 | 2016-12-08T04:52:26 | 1e60b9b799469023075c00ea6534d75514b43f90 | {
"blob_id": "1e60b9b799469023075c00ea6534d75514b43f90",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-08T04:52:26",
"content_id": "a61f24c57168d962118ff4362e2bafbfd76c4117",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f96a001244df5f6379409b639f250ef60d363d17",
"extens... | stackv2 | //
// stack.c
// tinycalc
//
// Created by Dakota Schneider on 12/2/16.
// Copyright © 2016 Code From Above. All rights reserved.
//
#include "stack.h"
#include <stdlib.h>
Stack * newStack() {
Stack * stack= malloc(sizeof(StackNode));
if (!stack) return NULL;
stack->size = 0;
stack->top = ... | 3 | 3 |
2024-11-18T22:02:42.388794+00:00 | 2020-09-30T15:34:02 | cefec8dfebb19fb276afa2a97b5600d195a74c82 | {
"blob_id": "cefec8dfebb19fb276afa2a97b5600d195a74c82",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-30T15:34:02",
"content_id": "38ab69d255803f475450e6a30a6a5fa9df8c95d6",
"detected_licenses": [
"MIT"
],
"directory_id": "3ac78caf28163a075b51f3216f83a998e515f894",
"extension": "h"... | stackv2 | #ifndef QUEUE_H
#define QUEUE_H
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
enum enqueue_result {
ENQUEUE_RESULT_SUCCESS,
ENQUEUE_RESULT_FULL,
};
enum dequeue_result {
DEQUEUE_RESULT_SUCCESS,
DEQUEUE_RESULT_EMPTY,
};
#define ARRAY_LENGTH(A) (sizeof(A)/sizeof((A)[0]))
#define QUEUE_DECLARAT... | 2.734375 | 3 |
2024-11-18T22:02:42.451535+00:00 | 2019-07-05T15:59:48 | 1f58bc5a1ad5c865fbf9d29702485afff4cbafea | {
"blob_id": "1f58bc5a1ad5c865fbf9d29702485afff4cbafea",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-05T15:59:48",
"content_id": "ac57ee0307220e7ea2b2141a2449e1a9f5dff44b",
"detected_licenses": [
"MIT"
],
"directory_id": "771f0672af49ab9e95d614c75ae591bb43baee9f",
"extension": "c"... | stackv2 | //
// Created by maxim on 2/8/19.
//
#include "obj_rotatable_light.h"
void rotatableLight_update(gameObject_t* this, void* data)
{
rotatableLight_data_t* ld = (rotatableLight_data_t*) this->data;
ld->obj->angle += ld->speed;
ld->obj->pos = vec_add(this->pos, vec_mult(vec(
cos(ld->obj->angle), ... | 2.40625 | 2 |
2024-11-18T22:02:42.575171+00:00 | 2023-02-20T04:47:34 | 59a11c9755862848f0f86d5d5d7c879568b6e1cf | {
"blob_id": "59a11c9755862848f0f86d5d5d7c879568b6e1cf",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-20T04:47:34",
"content_id": "b9ec7126324c63f5eedbfcf0993392a06a738371",
"detected_licenses": [
"BSD-3-Clause",
"Apache-2.0"
],
"directory_id": "5d10803709cf47332ad49a137a571c6bd2... | stackv2 | #include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <cmockery.h>
#include <fam.h>
#include <fam.c>
#include <fam_parse.c>
#include "plink_txt_parse.c"
#include "mock.h"
/**
* Tests that iids are correctly parsed.
*/
void
test_parse_iid(voi... | 2.171875 | 2 |
2024-11-18T22:02:42.663987+00:00 | 2018-08-28T20:51:36 | 2e49d1975b241e2e0f29292b9cdff0c7e523b6e9 | {
"blob_id": "2e49d1975b241e2e0f29292b9cdff0c7e523b6e9",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-28T20:51:36",
"content_id": "12f9a9a39e47182e3cd841983b149c7b5d3fad24",
"detected_licenses": [
"MIT"
],
"directory_id": "8722e20e5de43c099dc44998853079eecb8cab92",
"extension": "c"... | stackv2 | #include "mesh.h"
typedef struct {
int element;
int face;
int v1;
int v2;
}face_t;
int compareFaces(const void *a, const void*b){
face_t *faceA = (face_t*) a;
face_t *faceB = (face_t*) b;
// assume that v1 is the 2nd digit
if(faceA->v1 < faceB->v1)
return -1;
if(faceA->v1 > faceB->v1)
re... | 3 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.