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-18T17:55:10.992093+00:00
2016-05-28T15:11:41
a8ef69b930ddba7e0ec0c3fc0c569233d92f8f79
{ "blob_id": "a8ef69b930ddba7e0ec0c3fc0c569233d92f8f79", "branch_name": "refs/heads/master", "committer_date": "2016-05-28T15:11:41", "content_id": "e5e4b7fd625c61bee72d6c95980e3be49b98588c", "detected_licenses": [ "MIT" ], "directory_id": "8cef59884c787adbb1ac3b6e4ed7ab785a4067c9", "extension": "c"...
stackv2
#include <gtk/gtk.h> #include <glib.h> #include <string.h> #include <stdlib.h> #include <libnotify/notify.h> #include <glib/gi18n.h> #include <locale.h> GMainLoop *ml; void closed (NotifyNotification *n, gpointer p) { g_main_loop_quit(ml); } void action_cb(NotifyNotification *n, char *action, gpointer user_data) {...
2.046875
2
2024-11-18T17:55:11.173032+00:00
2022-09-19T10:50:29
068fb3f36931d22bf4627a41774937d2429fce15
{ "blob_id": "068fb3f36931d22bf4627a41774937d2429fce15", "branch_name": "refs/heads/main", "committer_date": "2022-09-19T10:50:29", "content_id": "2591c89c840754bfa639e1212abcf37b1f2bccbc", "detected_licenses": [ "MIT" ], "directory_id": "af8b553fafb5cb931f8e0a652777b8bf86a99897", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> struct string_count { char seen[80]; int count; }; int compare_and_add(char *string, struct string_count strings[]) { int i; for (i = 0; strings[i].count != 0; i++) { if (!strcmp(string, strings[i].seen)) { strings[i].count++; return 1; } } s...
3.109375
3
2024-11-18T17:55:12.475083+00:00
2017-03-03T15:10:27
d1673f90cb9e4da9bdfdbf6e65541560bdea1969
{ "blob_id": "d1673f90cb9e4da9bdfdbf6e65541560bdea1969", "branch_name": "refs/heads/master", "committer_date": "2017-03-03T15:10:27", "content_id": "9cf6d92d0f0de366a18da8b1615c0b57beaabffa", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ced30d7d096e0c44f886d2dce51fe35dfaf35d38", "extens...
stackv2
#include <string.h> #include <stdio.h> #include <stdarg.h> #include "util/types.h" #include "error.h" void n_error_clear(NError* error) { n_error_set(error, N_E_OK); } bool n_error_ok(NError* error) { return (error == NULL || error->code == N_E_OK); } void n_error_set(NError* error, uint32_t code) { if (error !=...
2.578125
3
2024-11-18T17:55:12.645739+00:00
2016-10-28T15:57:42
6e932b7ea42e0b48d0ac48e586cf188da8eadd9e
{ "blob_id": "6e932b7ea42e0b48d0ac48e586cf188da8eadd9e", "branch_name": "refs/heads/master", "committer_date": "2016-10-28T15:57:42", "content_id": "b990a1beef6888bf0b7dcb7c12640c9653770ba0", "detected_licenses": [ "MIT" ], "directory_id": "405d706b88ceb98a38673b7ad7a5e5f56861b000", "extension": "c"...
stackv2
/** * @file ws2812.c * * @author David Betz * * @version 0.01 * * @copyright * Copyright (c) David Betz 2014, All Rights MIT Licensed. * * @brief Driver for WS2812 and WS2812B RGB LEDs. */ #include <propeller.h> #include "ws2812.h" // driver header structure typedef struct { uint32_t jmp_inst; u...
2.359375
2
2024-11-18T17:55:12.879130+00:00
2020-04-15T02:45:04
73bbebc5c1cc8cb63968b5ba741f53c16b65b576
{ "blob_id": "73bbebc5c1cc8cb63968b5ba741f53c16b65b576", "branch_name": "refs/heads/master", "committer_date": "2020-04-15T02:45:04", "content_id": "9c9a9297fc458def709328742db3089a9a01953d", "detected_licenses": [ "MIT" ], "directory_id": "946593e7bbaffbaaec50845d43db61c4f52f967e", "extension": "c"...
stackv2
#include <stdio.h> int main(){ //variables int n; //input printf("Digite um numero: "); scanf("%d",&n); //process + output if (n % 2 == 0){ if (n > 0){ printf("O numero %d e PAR e POSITIVO",n); }else{ printf("O numero %d e PAR e NEGATIVO",n); }...
3.671875
4
2024-11-18T17:55:14.609356+00:00
2021-11-04T16:38:21
39657cebc042af44a093fce38488669d3e41ee19
{ "blob_id": "39657cebc042af44a093fce38488669d3e41ee19", "branch_name": "refs/heads/main", "committer_date": "2021-11-04T16:38:21", "content_id": "b1f64c773def384c5d30ff17f3324a2095433e3a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "23f4f691085b5b1bdfc047153da97f23ad1a673c", "extensio...
stackv2
#ifndef STDIO_H #define STDIO_H #define EOF (-1) /* Print function flags: %d - displaying the decimal number from the argument of the int type; %s - displaying the string from the argument of the const char* type; %x - displaying the hexadecimal number from the argument of the int type; */ void printf...
2.640625
3
2024-11-18T17:55:14.812381+00:00
2020-07-10T19:06:49
9da9b8cad2abc3f843eb3b2560feb6befed50269
{ "blob_id": "9da9b8cad2abc3f843eb3b2560feb6befed50269", "branch_name": "refs/heads/master", "committer_date": "2020-07-10T19:06:49", "content_id": "0d7aec62045439176178c54e526e59c975252eba", "detected_licenses": [ "MIT" ], "directory_id": "3d5fab0210b4b069042bbf4440d4bdd470c5fa35", "extension": "h"...
stackv2
#ifndef IMMUNIZATION_H #define IMMUNIZATION_H #include <stddef.h> struct ll_node { struct ll_node *next; void *data; }; typedef void (*ll_free_func)(void *ptr); struct ll_node* ll_new(void *data); struct ll_node* ll_end(struct ll_node **head); struct ll_node* ll_append(struct ll_node **head, void *d...
2.34375
2
2024-11-18T17:55:15.024477+00:00
2021-08-24T12:23:49
0e182d31fbfa283f91a6748dd9307bdcdef5cd1c
{ "blob_id": "0e182d31fbfa283f91a6748dd9307bdcdef5cd1c", "branch_name": "refs/heads/master", "committer_date": "2021-08-24T12:23:49", "content_id": "5b3830294bd3107440819ff42c2d36386727bc79", "detected_licenses": [ "MIT" ], "directory_id": "8d3753fb220a49ef19c8f4448ffdfbcd3dbdfe4f", "extension": "c"...
stackv2
#include <string.h> #include "platform.h" #if defined(_WIN32) || defined(_WIN64) #include <math.h> #if !defined(_MSC_VER) || _MSC_VER < 1800 double round (double v) { return (v > 0.0) ? floor(v + 0.5) : ceil(v - 0.5); } #endif // _MSC_VER < 1800 // strndup() is not available on Windows char *strndup( const char *s...
2.484375
2
2024-11-18T17:55:15.322787+00:00
2023-06-21T12:52:04
df4de745da9677d496f1c0b18ea887f52bafe64d
{ "blob_id": "df4de745da9677d496f1c0b18ea887f52bafe64d", "branch_name": "refs/heads/develop", "committer_date": "2023-06-21T12:52:04", "content_id": "19faafdcd8a8b37c3b1bf03c4a49f62292e9eb55", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3f97df4f7e06c653be69c547c7e2efb7a9b5aad0", "extensi...
stackv2
/*---------------------------------------------------------------------------- * CMSIS-RTOS - RTX *---------------------------------------------------------------------------- * Name: RT_SEMAPHORE.C * Purpose: Implements binary and counting semaphores * Rev.: V4.79 *-------------------...
2.046875
2
2024-11-18T17:55:16.097625+00:00
2023-07-16T07:17:50
8837072dfd7dc4dce6899d44c49fa73ee05363cc
{ "blob_id": "8837072dfd7dc4dce6899d44c49fa73ee05363cc", "branch_name": "refs/heads/master", "committer_date": "2023-07-16T07:17:50", "content_id": "5dd8bfbe00f471efd43b6638ca5e87b1e2e40765", "detected_licenses": [ "MIT" ], "directory_id": "821128c7e0c6b41c08474e98dffc9dd5f72b8857", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/time.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/socket.h> #include <sys/stat.h> #include <netinet/in.h> #include <pthread.h> #include <sys/socket.h> #include <sys/param.h> #include <netinet/in.h> #include <ar...
2
2
2024-11-18T17:55:16.170761+00:00
2020-05-09T00:01:05
ff0b3994e2a18e3e7ea549e9df8e97f95e1f80ba
{ "blob_id": "ff0b3994e2a18e3e7ea549e9df8e97f95e1f80ba", "branch_name": "refs/heads/master", "committer_date": "2020-05-09T00:01:05", "content_id": "a1b73eee18a5b251a5d675017d3472bc71d05ca9", "detected_licenses": [ "MIT" ], "directory_id": "6fc1d15289393775793c9cf687b60a04bd160db7", "extension": "c"...
stackv2
/** * @file hcsr_config.c * @brief pin configuration of hcsr04 device on Intel Galileo board * @author Xiangyu Guo */ #include <linux/gpio.h> #include "hcsr_config.h" typedef struct multi_plexing { int logic; /**< Linux Logic Pin */ int dir; /**< Directi...
2.40625
2
2024-11-18T17:55:16.231837+00:00
2019-12-01T12:25:45
ff0bb749b52822f16d2cd333e85879b4ecf224b1
{ "blob_id": "ff0bb749b52822f16d2cd333e85879b4ecf224b1", "branch_name": "refs/heads/master", "committer_date": "2019-12-01T12:25:45", "content_id": "267aa59af95cbad42a37c515a78d48aed119098c", "detected_licenses": [ "MIT" ], "directory_id": "afb5e2c1f91dd4ae749d0fb22a3db4ac783e37f8", "extension": "c"...
stackv2
#include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> /* * Constant definitions */ #define MAX_INSTR_SIZE 20 #define ARG_SIZE 20 #define MAX_NO_OF_ARGS 10 #define MAX_PATH_SIZE 20 /* * Functions prototypes */ void log_process_handler(int sig, siginfo_t siginfo); char * ...
2.890625
3
2024-11-18T17:55:17.685286+00:00
2022-04-06T02:15:30
77a706c3c7fb1869e6dcc65686f9c026142fd0c8
{ "blob_id": "77a706c3c7fb1869e6dcc65686f9c026142fd0c8", "branch_name": "refs/heads/master", "committer_date": "2022-04-06T02:15:30", "content_id": "dc69abed383d3500142aabb3af9fdbc7d2ec5178", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9ce5f2161212b7c95269f5d04252629582ca5f2d", "extensio...
stackv2
#include<stdio.h> //7 void print(int m, int n, int arr[m][n]) { //8 int i, j; //9 for (i = 0; i < m; i++) { for (j = 0; j < n; j++) { printf("%d ", arr[i][j]); } //10 printf("\n"); } printf("\n"); } int main() { //1 int rowCount, co...
3.296875
3
2024-11-18T17:55:17.748096+00:00
2021-06-07T17:50:38
43a030e18a7efb32b6731c4267359c16135daffc
{ "blob_id": "43a030e18a7efb32b6731c4267359c16135daffc", "branch_name": "refs/heads/main", "committer_date": "2021-06-07T17:50:38", "content_id": "17e34a5e3971ab1c396e35d9eddf9b127632b15b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "3a37e93e07b32abc3b8fc9480f0a6b63c82f0b4a", "extensio...
stackv2
/* * Copyright (c) 2021 Vaishnav M A. BeagleBoard.org Foundation * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdint.h> #include <zephyr.h> #include <errno.h> #include <kernel.h> #include <stdlib.h> #include <stddef.h> #include <drivers/gpio.h> #include "w1-gpio.h" #include <logging/log.h> LOG_MODULE...
2.640625
3
2024-11-18T17:55:18.072640+00:00
2023-08-13T07:00:15
6984744857419394e354afe1405153ee82a5e1b1
{ "blob_id": "6984744857419394e354afe1405153ee82a5e1b1", "branch_name": "refs/heads/master", "committer_date": "2023-08-13T07:00:15", "content_id": "e9634f368afdb6361fe95dcd07b5393f9cf80ba5", "detected_licenses": [ "MIT" ], "directory_id": "2266eb133fc3121daf0aa7f4560626b46b94afe0", "extension": "c"...
stackv2
// Room: /d/shaolin/zhonglou1.c // Date: YZC 96/01/19 #include <ansi.h> inherit ROOM; void close_passage(); string look_floor(); //int do_open(); int do_open(string arg); void create() { set("short", "钟楼一层"); set("long", @LONG 这里是塔楼的底层,一缕缕阳光从墙上的花砖缝隙里透射 进来,在青砖地上投下别致的光影,如同一格格棋盘相似。往 上看,长长的木楼梯盘绕而上,似乎永无尽头。墙角,梯级都...
2.03125
2
2024-11-18T17:55:20.178528+00:00
2021-06-29T02:10:14
464513cd76db45b6e3c7ae570009136e4fce136d
{ "blob_id": "464513cd76db45b6e3c7ae570009136e4fce136d", "branch_name": "refs/heads/main", "committer_date": "2021-06-29T02:10:14", "content_id": "546f35f192f278831968aecb40a9d2cb4fcc46b7", "detected_licenses": [ "MIT" ], "directory_id": "61545ffb3d820850e3fd849b1b7c3e2f6e64fbcf", "extension": "c", ...
stackv2
#include <iostream> using namespace std; int main(){ int qntV, qntD, qntE, a,v1,e1,d1; cout << "\nQuantidade de vitorias: " << endl; cin >> qntV; cout << "\nQuantidade de derrotas: " << endl; cin >> qntD; cout << "\nQuantidade de empates: " << endl; cin >> qntE; a = qntV + qntE + qntD; v1 = qntV * 100 / a; e...
2.5625
3
2024-11-18T17:55:20.587136+00:00
2018-09-17T13:04:04
309cbb1b5df053cdcfce3d385d1c4243c9daf13b
{ "blob_id": "309cbb1b5df053cdcfce3d385d1c4243c9daf13b", "branch_name": "refs/heads/master", "committer_date": "2018-09-17T13:04:04", "content_id": "a5c933b5aec08ff560243b85573c601cd65d96b3", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "cd6fb8310bb94bd240bbf2cabad59142...
stackv2
/*- * BSD LICENSE * * Copyright(c) 2017 Huawei Technologies Co., Ltd. All rights reserved. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of sou...
2.1875
2
2024-11-18T17:55:22.253237+00:00
2016-08-17T16:48:51
1cb81348e258bd0de3e6c5099ba700981c6f7ddd
{ "blob_id": "1cb81348e258bd0de3e6c5099ba700981c6f7ddd", "branch_name": "refs/heads/master", "committer_date": "2016-08-17T16:48:51", "content_id": "c540fe8d59550b2346fe14d1009bda1e897b18c9", "detected_licenses": [ "MIT" ], "directory_id": "cbd6c6a7c4e555e26c76dea6c827a3f36f8f449a", "extension": "h"...
stackv2
/* adrb.h */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define MAXLEN 200 struct adrb { char *name; char *posc; char *adre; char *tell; char *mail; int count; }; struct tree { struct adrb *value; struct tree *child_l; struct tree *child_r; }; void greet(void); void g...
2.53125
3
2024-11-18T17:55:22.792819+00:00
2023-05-19T06:18:42
1b943b2b339dd08b4132756883a54242fc59a89e
{ "blob_id": "1b943b2b339dd08b4132756883a54242fc59a89e", "branch_name": "refs/heads/master", "committer_date": "2023-05-19T06:18:42", "content_id": "29842b67707140b281186cf8a731fea45d104372", "detected_licenses": [ "DSDP" ], "directory_id": "59f20431baec50dc25de4292f4b8de5c70e9c7e2", "extension": "h...
stackv2
#if !defined(__DSDP_VECTORS_H) #define __DSDP_VECTORS_H #include <math.h> /*! \file dsdpvec.h \brief Vector operations used by the solver */ /* Define DSDP Vector Structure */ /*! \typedef struct DSDPVec_C DSDPVec; \brief This object hold m+2 variables: a scaling of C, the y variables, and r. Unscaled, this vec...
2.125
2
2024-11-18T17:55:22.865111+00:00
2018-09-26T03:14:59
5ec72e262829e2435af4a0089358b5b830ea9c4d
{ "blob_id": "5ec72e262829e2435af4a0089358b5b830ea9c4d", "branch_name": "refs/heads/master", "committer_date": "2018-09-26T03:14:59", "content_id": "16283fb66411e735fabe6de1325c1c622084658a", "detected_licenses": [ "MIT" ], "directory_id": "09b6f5f8e5e76b1fff8f5b8d8d92bacba0177e64", "extension": "c"...
stackv2
#include <stdio.h> int main() { /* * fgets函数的注意点 * 1.每次只能读取n-1个字符, 会在末尾自动添加\0 * 2.遇到\n会自动停止读取, 并且\n也会被读取进来 * 3.遇到EOF也会自动停止读取 */ // 1.打开一个文件 // abcdefg FILE *fp = fopen("test.txt", "r+"); // 2.读取一行数据 // 2.1定义一个字符数组, 用于保存读取到的数据 // char buf[1024]; // fgets(buf, 4, ...
3.40625
3
2024-11-18T17:55:24.234435+00:00
2022-01-12T20:57:21
9c6ffa71de4ea8fa028140c778a3df82b00b9663
{ "blob_id": "9c6ffa71de4ea8fa028140c778a3df82b00b9663", "branch_name": "refs/heads/master", "committer_date": "2022-01-12T20:57:21", "content_id": "d015f81879939c6d0c9d23a0b5a5597c9398bacc", "detected_licenses": [ "MIT" ], "directory_id": "8a779bea3a89795496c01c8767e687782522b25b", "extension": "c"...
stackv2
/** example_servo_sequence app: Demonstrates how to write blocking code on the Wixel by showing how to generate a timed sequence of movements. Pin P0_2 is configured as a the servo pulse output. Most of the functions in the Wixel SDK is non-blocking, which mean they return within a few tens of microseconds or less. ...
3
3
2024-11-18T17:55:24.574557+00:00
2013-07-21T14:23:35
678caf409ff0e804c3a571aab062dc83664e2754
{ "blob_id": "678caf409ff0e804c3a571aab062dc83664e2754", "branch_name": "refs/heads/master", "committer_date": "2013-07-21T14:23:35", "content_id": "a75a3ab06d6fae303de84a9c4396d0871a063787", "detected_licenses": [ "MIT" ], "directory_id": "655fde7a7bd47970fece063c35ae832e48a08b74", "extension": "c"...
stackv2
#include "server.h" #define MAXLINE 512 typedef struct my_struct{ char cv[MAXLINE]; char ex[MAXLINE]; char c; }t_char; int sockfdex; GDBM_FILE bz; void smsg(char *msg){ int n; n = strlen(msg); if (writen(sockfdex, msg, n) != n) err_dump("<server> : strecho - eroare in writen"); } int count_cuv(const char *ch...
2.46875
2
2024-11-18T17:55:24.699539+00:00
2016-07-04T21:52:48
fc16b34c2e28fb5c3f9d0e1b719664ef57ef6eea
{ "blob_id": "fc16b34c2e28fb5c3f9d0e1b719664ef57ef6eea", "branch_name": "refs/heads/master", "committer_date": "2016-07-04T21:52:48", "content_id": "00fdec84bc3ee22a823ed7bcefb26a0bbd66a014", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ca819d339b1bac101565856b3503568bfc4cfdd6", "extens...
stackv2
#include <tty.h> #include <keyboard.h> #include <video.h> #define STDIN_BUFFER_SIZE 1024 #define STDOUT_BUFFER_SIZE 1024 #define STDERR_BUFFER_SIZE 1024 /* Typedefs */ typedef enum {OTHER = 0, NUMBER, LETTER, SYMBOL} charTypes; /* STDIN */ static char stdinBuffer[STDIN_BUFFER_SIZE]; static uint64_t stdinBufferSi...
2.53125
3
2024-11-18T17:55:24.869090+00:00
2019-02-21T22:28:42
38a759983c1e0006e94f49143b1efcba8ab6ee3e
{ "blob_id": "38a759983c1e0006e94f49143b1efcba8ab6ee3e", "branch_name": "refs/heads/master", "committer_date": "2019-02-21T22:28:42", "content_id": "ca40b0a7d474ae22e0fbd6ec962df878655b7557", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "dbe74fdf6bded2ceb98eec965fe05ddf7d6dd931", "extens...
stackv2
/* This file has been autogenerated by Ivory * Compiler version 0.1.0.5 */ #include "sequence_numbered_lidarlite_sample_types.h" void sequence_numbered_lidarlite_sample_get_le(const uint8_t *n_var0, uint32_t n_var1, struct sequence_numbered_lidarlite_sample *n_var2) { sequence_num_t_get_le(n_var0, n_var1, &n_va...
2.046875
2
2024-11-18T17:55:24.933037+00:00
2022-03-12T03:16:16
023ac8ca86971d9769bd1cfbf1f9d91e4d63d1a6
{ "blob_id": "023ac8ca86971d9769bd1cfbf1f9d91e4d63d1a6", "branch_name": "refs/heads/master", "committer_date": "2022-03-12T03:16:16", "content_id": "c7483f1d81f3ae4bc1fdbd5d6afb168a1ae27ed3", "detected_licenses": [ "MIT" ], "directory_id": "e912c5622fb8d5867cf7bf760d53871e79534310", "extension": "h"...
stackv2
#pragma once // Wrapper over SPV1020 driver for selecting between multiple MPPTs. // Requires GPIO and SPI to be initialized. SPI must be initialized with SPI_MODE_3. #include <stdbool.h> #include "solar_boards.h" #include "spi.h" #include "status.h" // needs to initialized first in order to use mppt StatusCode mpp...
2.1875
2
2024-11-18T17:55:25.067945+00:00
2011-06-14T07:08:11
b4fa539c94f2847f0504611d8b0ff6436cd22368
{ "blob_id": "b4fa539c94f2847f0504611d8b0ff6436cd22368", "branch_name": "refs/heads/master", "committer_date": "2011-06-14T07:08:11", "content_id": "d3d031645e9ded2039442ed03a3a7a91fdf40d29", "detected_licenses": [ "Apache-2.0" ], "directory_id": "797c702a8cf3760273509c8f0bb39236e1435835", "extensio...
stackv2
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
2.359375
2
2024-11-18T17:55:25.163243+00:00
2021-06-30T07:41:18
f2bc7d4fad78fe988749d875dfd19e4a68c4759e
{ "blob_id": "f2bc7d4fad78fe988749d875dfd19e4a68c4759e", "branch_name": "refs/heads/master", "committer_date": "2021-06-30T07:42:19", "content_id": "2d14c99686c432cc8b5f727aaba8c2386856ef7a", "detected_licenses": [ "MIT" ], "directory_id": "154d54aea1abded813439ad14650a0573c50e4ba", "extension": "c"...
stackv2
#include "CircleBuffer.h" #include <stdint.h> #include <stdbool.h> #include <string.h> void CircleBuffer_Init(CircleBuffer* self) { memset((uint8_t*)self->data, 0, 128*sizeof(uint8_t)); self->read_offset = 0; self->write_offset = 0; self->length = 128; } uint16_t CircleBuffer_Write(CircleBuffer* self, const ...
2.75
3
2024-11-18T17:55:25.536753+00:00
2021-08-31T10:00:34
10686db508d95beac5070681ebc399f252cd2ea1
{ "blob_id": "10686db508d95beac5070681ebc399f252cd2ea1", "branch_name": "refs/heads/master", "committer_date": "2021-09-08T22:22:25", "content_id": "5d26f23ee9bbaf2c5140284be4a0fbf4a7986efc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1c9ebad44485a33e797e608b8d2c795190115242", "extensio...
stackv2
/** * libxnvme_sgl - NVMe Scatter-Gather Lists * * Copyright (C) Simon A. F. Lund <simon.lund@samsung.com> * Copyright (C) Klaus B. A. Jensen <k.jensen@samsung.com> * SPDX-License-Identifier: Apache-2.0 * * @headerfile libxnvme_sgl.h */ #ifndef __LIBXNVME_SGL_H #define __LIBXNVME_SGL_H /** * Opaque handle for...
2.28125
2
2024-11-18T17:55:25.610465+00:00
2020-06-14T02:53:36
b3cb691bfe9e2382cc01e17355bb5d67a094e65d
{ "blob_id": "b3cb691bfe9e2382cc01e17355bb5d67a094e65d", "branch_name": "refs/heads/master", "committer_date": "2020-06-14T02:53:36", "content_id": "26c6a8cdbf7389fa4110eb94404eb7cab3d2436c", "detected_licenses": [ "MIT" ], "directory_id": "049f1090cb89083e662893119c11d8ce01846ac6", "extension": "c"...
stackv2
/* * hba.c * * This is the SCSI hba specific routines. * * Author : Aboo Valappil. Email: aboo@aboo.org * * */ #include "vscsihba.h" MODULE_AUTHOR("Aboo Valappil"); MODULE_DESCRIPTION("vscsihba"); MODULE_LICENSE("GPL"); MODULE_VERSION("2.0.5"); /* * scsi_host templates */ struct scsi_host_template sc...
2.0625
2
2024-11-18T17:55:26.151505+00:00
2019-03-01T05:16:46
3e2c96531d356031106bd42656ab591cc22ff03f
{ "blob_id": "3e2c96531d356031106bd42656ab591cc22ff03f", "branch_name": "refs/heads/master", "committer_date": "2019-03-01T05:16:46", "content_id": "2fa0c247c54c79e4b500a744b88cb7a975886a27", "detected_licenses": [ "MIT" ], "directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f", "extension": "c"...
stackv2
// longnv.c 白衣少女 // by April 01/09/26 #include <ansi.h> inherit NPC; int ask_aoyao(); void create() { object bj; set_name("白衣少女", ({ "baiyi girl", "girl"})); set("long", "她披著一襲輕紗般的白衣,面容秀美絕俗。\n"); set("gender", "女性"); set("age", 26); set("attitude", "pe...
2.21875
2
2024-11-18T17:55:26.361408+00:00
2022-12-13T10:00:46
cef5d1e5058ef11f4192a57a228f64505c42dba8
{ "blob_id": "cef5d1e5058ef11f4192a57a228f64505c42dba8", "branch_name": "refs/heads/master", "committer_date": "2022-12-14T09:42:32", "content_id": "7e8a715aeed060c55cf4b1553a7155a9ea9a1543", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "89b5db5ec10df28254b68f4c2352396f...
stackv2
// SPDX-License-Identifier: BSD-3-Clause /****************************************************************************** * * Copyright (C) 2018 Xilinx, Inc. * ******************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal...
2.484375
2
2024-11-18T17:55:26.664856+00:00
2013-12-05T22:08:00
a8c3b50b58bcb50978cd285cbb3108ca25b98615
{ "blob_id": "a8c3b50b58bcb50978cd285cbb3108ca25b98615", "branch_name": "refs/heads/master", "committer_date": "2013-12-05T22:08:00", "content_id": "1b0e0f5d9f61fa9be4b8eddacd8a1911f2a97335", "detected_licenses": [ "MIT" ], "directory_id": "7e5b5ddd69477f11e5925e3c2e5aada568360329", "extension": "h"...
stackv2
/** * sha1.h * * License: MIT * * Copyright (c) 2013 Karsten-Kai König <kkoenig@posteo.de> */ // Definitions of the functions specified in the NIST-standard #define cycleWord(a, n) \ ((((a) << (n))&0xFFFFFFFF) | ((a) >> (32 - n))) #define f0(B, C, D) \ ((B & C) | ((~B) & D)) #define f13(B, C, D) \ (B ^ C ^ D) ...
2.609375
3
2024-11-18T17:55:27.204657+00:00
2015-08-16T21:05:58
df21bb2b2a59d1907dc01fe76af76a2e21b7c354
{ "blob_id": "df21bb2b2a59d1907dc01fe76af76a2e21b7c354", "branch_name": "refs/heads/develop", "committer_date": "2015-08-16T21:16:43", "content_id": "ac671695c68e392d737ca4a5ed690b06c515c3b1", "detected_licenses": [ "MIT" ], "directory_id": "be26ae0d9c823f3bf0ad7afc5f0d200469cc5287", "extension": "t...
stackv2
#ifndef PUSH_TH_ #define PUSH_TH_ #define _paste(X,Y) _paste_(X,Y) #define _paste_(X,Y) X ## Y #define _post_0( Op,Inc,Ud,Off,One,...) /* no-op */ #define _post_1( Op,Inc,Ud,Off,One,...) Op(Ud,Off,One) #define _post_2( Op,Inc,Ud,Off,One,...) _post_1( Op,In...
2.125
2
2024-11-18T17:55:27.480316+00:00
2020-06-09T09:45:24
644036adbe4ab7738488b4ad8748245557472f54
{ "blob_id": "644036adbe4ab7738488b4ad8748245557472f54", "branch_name": "refs/heads/master", "committer_date": "2020-06-09T09:45:24", "content_id": "addf5540b6705cbae481436700e24edb11fcc0e1", "detected_licenses": [ "MIT" ], "directory_id": "31a9b4f41dd66b69c0007727c0268235be1c3b76", "extension": "h"...
stackv2
/* MIT License Copyright (c) 2020 Arsharaj Chauhan 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, publi...
2.9375
3
2024-11-18T17:55:27.943865+00:00
2018-02-03T13:07:46
aa6605b3f929972524168431b8b68904bd739f90
{ "blob_id": "aa6605b3f929972524168431b8b68904bd739f90", "branch_name": "refs/heads/master", "committer_date": "2018-02-03T13:07:46", "content_id": "9db881747308448ea9220c29835173730865cd9b", "detected_licenses": [ "MIT" ], "directory_id": "879f7b9a266aabe8b0ed0c48892d5374ecea120d", "extension": "c"...
stackv2
#include "http_request_handler.h" /********************************************************************** * function : serve_request * * arguments : int sockfd, fd_set *master, GHashTable **hash, * char *client_ip_address, GHashTable** config_hash, GHashTable** redirect_hash * * description : check the r...
2.3125
2
2024-11-18T17:55:28.007361+00:00
2023-08-31T17:08:02
c017c13b69732a573b36c5e0d5f89c645b6a7adc
{ "blob_id": "c017c13b69732a573b36c5e0d5f89c645b6a7adc", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T17:08:02", "content_id": "b641d2743456b7de3e63358d8d4ba8c0288b694f", "detected_licenses": [ "MIT" ], "directory_id": "cce9747d80ed880b97b509660a3c6a7f733dd1c0", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { struct tm date1, date2; time_t time1, time2; // 첫 번째 날짜 date1.tm_year = 2020 - 1900; // year - 1900 date1.tm_mon = 1 - 1; // month (0-11) date1.tm_mday = 15; // day of the month (1-31) date1.tm_...
3.390625
3
2024-11-18T17:55:28.408181+00:00
2017-06-07T04:45:49
0d49cc1b4a0b8e8410bf14f243f9cda6fe13a7d3
{ "blob_id": "0d49cc1b4a0b8e8410bf14f243f9cda6fe13a7d3", "branch_name": "refs/heads/master", "committer_date": "2017-06-07T04:45:49", "content_id": "dc7e4fcf11724862e2f56d0a4625a39e85235789", "detected_licenses": [ "MIT" ], "directory_id": "1223beef2fb69cf3933a75e94eac358d868dfc30", "extension": "c"...
stackv2
#include <limits.h> typedef struct { int max_left; int max_right; int sum; } tuple; /* finds the maximum subarray crossing the midpoint * * array array to inspect * low starting offset * mid middle offset * hight ending offset * * returns the tuple containing the indices demarcating a maximum subar...
3.53125
4
2024-11-18T17:55:28.482308+00:00
2023-08-30T04:20:48
2b43ac134f90a9c649ae3f73c95831bd918484e3
{ "blob_id": "2b43ac134f90a9c649ae3f73c95831bd918484e3", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T04:20:48", "content_id": "af90799c5e5d6fc8fa4a0d8c1bffafb44f752bed", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ec6a71b57ebe88538269197fd16bede6bc2062ae", "extensio...
stackv2
/* * %CopyrightBegin% * * Copyright Ericsson AB 2002-2021. All Rights Reserved. * * 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 ...
2.28125
2
2024-11-18T17:55:28.608361+00:00
2020-08-26T09:43:30
53fdaae39b9e6b66ea3ea889c488c520f0c43e92
{ "blob_id": "53fdaae39b9e6b66ea3ea889c488c520f0c43e92", "branch_name": "refs/heads/master", "committer_date": "2020-08-26T09:43:30", "content_id": "d1f83cb6be60e307c0dea1bb3c19e5d4fe80f1ee", "detected_licenses": [ "Unlicense" ], "directory_id": "f3c2407dc8864a5cf5b4d33d62cae57d63add0e8", "extension...
stackv2
#include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <ngx_string.h> #include <openssl/evp.h> #include <openssl/hmac.h> #include <openssl/crypto.h> #include <stdbool.h> #define NGX_DEFAULT_HASH_FUNCTION "sha256" static const char * wdays[7] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "...
2.03125
2
2024-11-18T17:55:28.846262+00:00
2017-12-23T14:30:50
63a8192aeac90f7c15db3c4d7dec60e3a7aaf189
{ "blob_id": "63a8192aeac90f7c15db3c4d7dec60e3a7aaf189", "branch_name": "refs/heads/master", "committer_date": "2017-12-23T14:30:50", "content_id": "cc8981697e67086c4ad36dc80c4c212c2a120d28", "detected_licenses": [ "MIT" ], "directory_id": "32c1cb02fef24306e486f26327ab0c48c71477cd", "extension": "c"...
stackv2
#ifdef PROTOTYPE int isGreater(int, int); int test_isGreater(int, int); #endif #ifdef DECL {"isGreater", (funct_t) isGreater, (funct_t) test_isGreater, 2, "! ~ & ^ | + << >>", 24, 3, {{TMin, TMax},{TMin,TMax},{TMin,TMax}}}, #endif #ifdef CODE /* * isGreater - if x > y then return 1, else return 0 * Exampl...
2.78125
3
2024-11-18T17:55:32.702322+00:00
2020-07-03T12:52:46
2554dc71ac7df3fd18f3412290146ebb8e48ba14
{ "blob_id": "2554dc71ac7df3fd18f3412290146ebb8e48ba14", "branch_name": "refs/heads/master", "committer_date": "2020-07-03T12:52:46", "content_id": "2f776306cf03d436cf27216c3811b4d8b93b1703", "detected_licenses": [ "Zlib", "ISC", "Apache-2.0", "MIT" ], "directory_id": "06dfc13ac428efbc97ee...
stackv2
/* Ellipse Workstation 1100 (fictitious computer) Emulator (e1100em) VPU header Copyright (c) 2020 Sampo Hippeläinen (hisahi) 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, ...
2.140625
2
2024-11-18T18:30:20.904362+00:00
2018-07-13T14:52:41
c5970afa83600dd02dbbedfd5f29dc228f2ffcb2
{ "blob_id": "c5970afa83600dd02dbbedfd5f29dc228f2ffcb2", "branch_name": "refs/heads/master", "committer_date": "2018-07-13T14:52:41", "content_id": "6ffa402566f7f784b09aeea0d4d014235d83c2c6", "detected_licenses": [ "MIT" ], "directory_id": "70d9d86a607e074a7f393a8310593419bffbcb44", "extension": "c"...
stackv2
#include <evmc/evmc.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "examplevm/examplevm.h" struct evmc_uint256be balance(struct evmc_context* context, const struct evmc_address* address) { (void)context; (void)address; struct evmc_uint256be ret = {.bytes = {...
2.5
2
2024-11-18T18:30:21.510492+00:00
2021-11-04T22:34:06
c24b53ca90fb20676bf21828283c27c7bf05d4a0
{ "blob_id": "c24b53ca90fb20676bf21828283c27c7bf05d4a0", "branch_name": "refs/heads/main", "committer_date": "2021-11-04T22:34:06", "content_id": "344f63ce915412e125babf0392e2759b2540e522", "detected_licenses": [ "ISC", "MIT" ], "directory_id": "cb2a75fe1706f43c269ec8008ac9f6ca4501fd05", "extens...
stackv2
#include "fox.h" #include "print.h" int foxStages; int xOffset; int yOffset; int resultXCoord; int resultYCoord; long my_A[MATRIX_SIZE * MATRIX_SIZE]; long stage_A[MATRIX_SIZE * MATRIX_SIZE]; long stage_B[MATRIX_SIZE * MATRIX_SIZE]; long result_C[MATRIX_SIZE * MATRIX_SIZE]; #ifdef RESULT long total_C[TOTAL_MATRIX...
2.140625
2
2024-11-18T19:20:29.479814+00:00
2018-06-11T12:49:57
9a5e4a09c17e768891291f6571f787b0b592cdaf
{ "blob_id": "9a5e4a09c17e768891291f6571f787b0b592cdaf", "branch_name": "refs/heads/master", "committer_date": "2018-06-11T12:49:57", "content_id": "29de46a6303f24a8e5c747d4ebdf715bcaaf1397", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "602417c2fb8af27d8f653e35659f60836d5df15d", "extens...
stackv2
//metadoc Box copyright Steve Dekorte 2002 //metadoc Box license BSD revised //metadoc Box category API /*metadoc Box description A primitive for fast operations on rectangles. */ #include <math.h> #include "IoBox.h" #include "IoState.h" #include "IoSeq.h" #include "IoNumber.h" static const char *protoId = "Box"; #d...
2.4375
2
2024-11-18T19:22:10.758556+00:00
2021-09-12T05:21:02
e8fd1fd60a8bb5cca8b855fd14416e1f43b0600c
{ "blob_id": "e8fd1fd60a8bb5cca8b855fd14416e1f43b0600c", "branch_name": "refs/heads/master", "committer_date": "2021-09-12T05:21:02", "content_id": "d3fcd959afe2279c7d6903a857a37ad4fe1b158d", "detected_licenses": [ "MIT" ], "directory_id": "045f9ad2722216f8e8f6db61786a101d2a745473", "extension": "c"...
stackv2
#include "syscall.h" #include "types.h" #include "memory.h" #include "proc.h" #include "fs.h" #include "string.h" #include "io.h" #include "util.h" #include "sys_file.h" #include "sys_proc.h" typedef int (*handler_t)(struct int_regs *int_frame); int read_user_mem(void *addr, uint32_t *data) { if ((uint32_t)addr...
2.390625
2
2024-11-18T19:22:10.929553+00:00
2020-12-24T10:06:56
a839b5fe772995bc727960f822f875adae1b3146
{ "blob_id": "a839b5fe772995bc727960f822f875adae1b3146", "branch_name": "refs/heads/master", "committer_date": "2020-12-24T10:06:56", "content_id": "71fc88b0222b8dfe04cbff38adda2ca9d5ea67db", "detected_licenses": [ "MIT" ], "directory_id": "1e465c29d62f87f8310ab2c8f1ea7c02f60fa561", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> int duplicate_exist(char *array , int start , int end) ; void main(){ char a[] = "ABBBA" ; int len = strlen(a); permute(a , 0 , len); } void swap(char *x, char *y) { char temp; temp = *x; *x = *y; *y = temp; } int duplicate_exist(char array[] ...
3.515625
4
2024-11-18T20:08:13.807352+00:00
2019-05-07T22:23:24
eda6d3670c7a37eb8cf2eabc4f22bc8f612e47ae
{ "blob_id": "eda6d3670c7a37eb8cf2eabc4f22bc8f612e47ae", "branch_name": "refs/heads/master", "committer_date": "2019-05-07T22:23:24", "content_id": "6b5d5f329fc0bb3cac6ae438d43a0d7c03fa8978", "detected_licenses": [ "MIT" ], "directory_id": "1f98e4880752a6e2f34489c5e18118f533c8b0cf", "extension": "h"...
stackv2
//This program will analyze 'all' pixels of our subimage, and create a radial profile of the intensity //'all' is in quotes because we actually only care about pixels that will form full and complete circles thus corners will be ignored to a certain extent //NOTE we have a bit of discrepency in the last values for th...
2.5
2
2024-11-18T20:08:13.930828+00:00
2018-07-26T18:55:45
a3db5dd9a93296e001a5cc60c9a03ec4962f9774
{ "blob_id": "a3db5dd9a93296e001a5cc60c9a03ec4962f9774", "branch_name": "refs/heads/master", "committer_date": "2018-07-26T18:55:45", "content_id": "765dde96857dbebb1fae80694ad736a3973c85b8", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "43126f93ca7a9192d9124e4c9429441d781475c1", "extens...
stackv2
#include <errno.h> #include "ruby.h" #include "ruby/encoding.h" #if defined HAVE_STRING_CRYPT_R # if defined HAVE_STRING_CRYPT_H # include <crypt.h> # endif #elif !defined HAVE_STRING_CRYPT # include "missing/crypt.h" # include "missing/crypt.c" # define HAVE_STRING_CRYPT_R 1 #endif static void mustnot_wchar(VALUE s...
2.359375
2
2024-11-18T20:08:14.208816+00:00
2019-03-18T16:41:47
f408b82c1cd6f3ca68adf00cf50ec4c957e9d89f
{ "blob_id": "f408b82c1cd6f3ca68adf00cf50ec4c957e9d89f", "branch_name": "refs/heads/master", "committer_date": "2019-03-18T16:41:47", "content_id": "d2d20d4976aee3382068887c740e9e309377a8de", "detected_licenses": [ "MIT" ], "directory_id": "fdb74ec3bb7e02ebce48d85d83c62f0a2ef047d6", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "FileUtils.h" #include "MatrixUtils.h" #define SEPERATOR " " #define DELIM "," #define MAX_LINE_LENGTH 1024 /* simply removes trailing \r\n*/ char *strpret(char *szString) { char *szTemp; szTemp = strpbrk(szString,"\n"); if(...
2.609375
3
2024-11-18T20:08:14.349518+00:00
2019-08-24T06:06:51
5010aaa71c4461affe4de4a6355f91af661fa559
{ "blob_id": "5010aaa71c4461affe4de4a6355f91af661fa559", "branch_name": "refs/heads/master", "committer_date": "2019-08-24T06:06:51", "content_id": "29e80f0948c09e3ff720f5dfb5d515218883fb5b", "detected_licenses": [ "BSD-4-Clause-UC" ], "directory_id": "d59c044a7292e6c8a7bcb48320510eb2104ba139", "ext...
stackv2
#ifndef JOS_KERN_E1000_H #define JOS_KERN_E1000_H #include <kern/pci.h> #define E1000_VENDOR_82540EM 0x8086 #define E1000_DEVICE_82540EM 0x100E /* Register Set. (82543, 82544) * * Registers are defined to be 32 bits and should be accessed as 32 bit values. * These registers are physically located on the NIC, but...
2.078125
2
2024-11-18T18:08:18.761229+00:00
2020-06-22T13:10:17
e9e9098aa24cfc168a2c8171968d18fd5dc8c8dd
{ "blob_id": "e9e9098aa24cfc168a2c8171968d18fd5dc8c8dd", "branch_name": "refs/heads/master", "committer_date": "2020-06-22T13:10:17", "content_id": "0fe187765b7d774beef31ab10a060ee1a43f478c", "detected_licenses": [ "MIT" ], "directory_id": "d266acd9f105858acfa78f01e3c34ded62c02f12", "extension": "c"...
stackv2
/* sdl_picofont http://nurd.se/~noname/sdl_picofont File authors: Fredrik Hultin License: GPLv2 */ #include <SDL.h> #include <SDL_picofont.h> int main() { SDL_Surface *screen, *text; SDL_Event event; SDL_Color color = {255, 255, 255}; screen = SDL_SetVideoMode(320, 240, 16, SDL_SWSURFACE); /*...
2.890625
3
2024-11-18T18:09:49.617133+00:00
2021-08-22T04:32:04
f592ec0197e6c12f43cc5ec4d59626bc4bc4b0fe
{ "blob_id": "f592ec0197e6c12f43cc5ec4d59626bc4bc4b0fe", "branch_name": "refs/heads/master", "committer_date": "2021-08-22T04:32:04", "content_id": "c9f4b0c2768272b93387b1203770be3aa0005ece", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "e5e5e8b07e8cd21f23fd4befbc7e7aceb1bf61f5"...
stackv2
/* chacha-merged.c version 20080118 D. J. Bernstein Public domain. */ #include <memory.h> #ifndef _MSC_VER #endif #include "chacha.h" #include "int-util.h" #include "warnings.h" /* * The following macros are used to obtain exact-width results. */ #define U8V(v) ((uint8_t)(v) & UINT8_C(0xFF)) #define U32V(v) ((uin...
2.53125
3
2024-11-18T18:09:49.848182+00:00
2015-08-25T00:41:21
52107f8e4395a356599f9d952ed76cca53e38831
{ "blob_id": "52107f8e4395a356599f9d952ed76cca53e38831", "branch_name": "refs/heads/master", "committer_date": "2015-08-25T00:41:21", "content_id": "5cf7b18e2d5074ed53e22c4bb13b3c85841cb33d", "detected_licenses": [ "CC0-1.0" ], "directory_id": "2a8ea6f2b72383f982f48a115371431d5480f34b", "extension":...
stackv2
/* tneltext - a simple text adventure engine in C */ /* Written in 2015 by tnelsond tnelsond@gmail.com */ /* You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.*/ #include "tneltext.h" #include <stdio.h> #includ...
3.03125
3
2024-11-18T18:55:04.262736+00:00
2021-01-22T22:20:06
2ab57df40c5fc265306d1404daddcb4218a60d09
{ "blob_id": "2ab57df40c5fc265306d1404daddcb4218a60d09", "branch_name": "refs/heads/master", "committer_date": "2021-01-22T22:20:06", "content_id": "706c05989ac096eb84778152e4e5a04db5b5848e", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c3ac780e5fa6ecde494af5fd46488a9af847d17e", "extens...
stackv2
/* This file is part of ParTI!. ParTI! is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ParTI! is distributed...
2.625
3
2024-11-18T18:57:41.693484+00:00
2017-05-15T04:46:23
1808176e153e4780fd47b78c6256561820f20de3
{ "blob_id": "1808176e153e4780fd47b78c6256561820f20de3", "branch_name": "refs/heads/master", "committer_date": "2017-05-15T04:46:23", "content_id": "c1c53c1ca14c099d464b31baca09d938451dfd29", "detected_licenses": [ "MIT" ], "directory_id": "6b3ab347e3c24427fcab6b13741193ea6be072f5", "extension": "c"...
stackv2
/* Portions of this file derived from boot.h v1.20 from avr-libc project. See the following link for details: http://www.nongnu.org/avr-libc/ Original copyright notice included below: Copyright (c) 2002, 2003, 2004, 2005 Eric B. Weddington All rights reserved. Redistribution and use in ...
2.265625
2
2024-11-18T18:57:41.779030+00:00
2018-07-11T06:08:27
97a1ce5499b5aa0beedf6f29b01f983715b52f4e
{ "blob_id": "97a1ce5499b5aa0beedf6f29b01f983715b52f4e", "branch_name": "refs/heads/master", "committer_date": "2018-07-11T06:08:27", "content_id": "f19da7602b74e027060b769ad1f4cab9f9649dfe", "detected_licenses": [ "MIT" ], "directory_id": "81d737600afe2422da681b7b307ab67a2c5aeada", "extension": "c"...
stackv2
/* * RFM_TEST_RAW_ATMEGA32.c * * Created: 12-06-2018 14:15:49 * Author: Bhushan Deo */ #define F_CPU 11059200 #include<avr/io.h> #include<avr/interrupt.h> #include<util/delay.h> void SPI_init(); void UART_init(); void UART_transmit(unsigned char); void SPI_write(unsigned char ,unsigned char ); unsigned char SPI...
2.296875
2
2024-11-18T18:57:41.950947+00:00
2019-06-26T13:53:10
98c57d90f4849d4937241f1e2dea4758c406f0af
{ "blob_id": "98c57d90f4849d4937241f1e2dea4758c406f0af", "branch_name": "refs/heads/master", "committer_date": "2019-06-26T13:53:10", "content_id": "1441caa230c1725f7397b08258e5be5a8adce13f", "detected_licenses": [ "MIT" ], "directory_id": "449a6f830c9725d10b656f83f729c0bb65dcb93a", "extension": "h"...
stackv2
// // Created by IvanLu on 2019/1/20. // #ifndef CUTILITY_LIST_H #define CUTILITY_LIST_H #include "Common.h" typedef struct LIST { Object object; void *(*get)(void *, int); int (*set)(void *, int, void *); int (*locate)(void *, void *); int (*insert)(void *, int, void *); int (*delete)(v...
2.375
2
2024-11-18T18:57:42.015036+00:00
2021-01-10T11:28:52
60b1cda48e7662a8e7cd07b00c9d80455f6939bb
{ "blob_id": "60b1cda48e7662a8e7cd07b00c9d80455f6939bb", "branch_name": "refs/heads/main", "committer_date": "2021-01-10T11:28:52", "content_id": "e0e7d4412519fc21ca74835c1135d8ff40592981", "detected_licenses": [ "MIT" ], "directory_id": "89a0ef5afbfcbb9438891a2286d83eb30c6baac2", "extension": "c", ...
stackv2
#include <stdio.h> #include <pcap.h> #include <time.h> void capture_packet1(pcap_t* device) { struct pcap_pkthdr packet; char errbuf[1024]; //capture the packet const u_char* pkt=pcap_next(device,&packet); if(!pkt){ printf("couldn't capture packet: %s\n",errbuf); return; ...
2.875
3
2024-11-18T19:00:00.825803+00:00
2023-08-28T02:04:44
8db8ceacd9b5816623d9bba5ed1fbce8aed11863
{ "blob_id": "8db8ceacd9b5816623d9bba5ed1fbce8aed11863", "branch_name": "refs/heads/master", "committer_date": "2023-08-28T02:04:44", "content_id": "baf62909100bad5feb57eb54ea772b1de0ddd30a", "detected_licenses": [ "CC0-1.0" ], "directory_id": "0ed989776ac5584ad1a02f2619dd747d88ac60b3", "extension":...
stackv2
/* SPDX-FileCopyrightText: 2011-2012 Collabora Ltd. <info@collabora.com> SPDX-License-Identifier: LGPL-2.1-only */ #ifndef UTILS_H #define UTILS_H #include <QRectF> #include <QSize> #include <QMetaType> // utilities for GST_DEBUG #define QSIZE_FORMAT "(%d x %d)" #define QSIZE_FORMAT_ARGS(size) \ size.wid...
2.171875
2
2024-11-18T19:00:01.186466+00:00
2020-06-05T05:48:27
52c743bd40ea58b3e533e0cc745fa93eb6e3b95c
{ "blob_id": "52c743bd40ea58b3e533e0cc745fa93eb6e3b95c", "branch_name": "refs/heads/master", "committer_date": "2020-06-05T05:48:27", "content_id": "c033a546da5d97e53265d4e23ce8d28b31026096", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "ee8d74387ffb644d35137b95cae9fcf6af3b0e02"...
stackv2
/* * $Id: yrdwr.c,v 1.1 2005-09-18 22:04:16 dhmunro Exp $ * Implement YRead and YWrite functions, plus general gather/scatter * routines with StructDef format Converter. */ /* Copyright (c) 2005, The Regents of the University of California. * All rights reserved. * This file is part of yorick (http://yorick.sourc...
2.421875
2
2024-11-18T18:35:09.201430+00:00
2019-06-26T11:56:43
ce6983985e04c1c1d0a6beea5e548d29da17fa29
{ "blob_id": "ce6983985e04c1c1d0a6beea5e548d29da17fa29", "branch_name": "refs/heads/master", "committer_date": "2019-06-26T11:56:43", "content_id": "721870dcd4a433d905a01d542c686b4276a71336", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3e58ad435cb8cb2158c2318dff621fa06f1d4963", "extensio...
stackv2
/* \file syscalls-utils.h * * Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> * - Ryad Benadjila * - Arnauld Michelizza * - Mathieu Renard * - Philippe Thierry * - Philippe Trebuchet * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exc...
2.03125
2
2024-11-18T18:35:09.563828+00:00
2018-12-31T11:12:32
3c66874384804cda8188e8b49cbcacc22af4a245
{ "blob_id": "3c66874384804cda8188e8b49cbcacc22af4a245", "branch_name": "refs/heads/master", "committer_date": "2018-12-31T11:12:32", "content_id": "7548a9ba1707fbab2eb0a880c0948c2bfedd41e7", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "23deeccd51d6a3f6099e26b0238e8935f0f6457a"...
stackv2
// Copyright (C) 2004-2011 Christoph Kubisch // This file is part of the "Luxinia Engine". // See copyright notice in luxplatform.h #include <luxinia/luxmath/geometry.h> #include <luxinia/luxmath/vector3.h> #include <luxinia/luxmath/vector4.h> #include <luxinia/luxmath/matrix44.h> LUX_API void lxPlaneSet (lxPlanePTR ...
2.390625
2
2024-11-18T18:43:47.506932+00:00
2020-05-08T11:27:02
b727930c27774f97f2336b2c913c112c9e6c38af
{ "blob_id": "b727930c27774f97f2336b2c913c112c9e6c38af", "branch_name": "refs/heads/trunk", "committer_date": "2020-05-08T11:27:02", "content_id": "443b985f54d74e250f398df8b8f605ac785d366a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c26e82f084e617962acc9531fa2b4eb0d0abf699", "extension...
stackv2
void assert(int cond) { if (!cond) { ERROR: return; } } extern int __VERIFIER_nondet_int(); int main() { int i = 1; for (int k=0; k<__VERIFIER_nondet_int(); k++) { i += __VERIFIER_nondet_int(); } assert(i >= 0); }
2
2
2024-11-18T18:43:47.584078+00:00
2019-05-03T14:34:39
c87fe8214c95405c1081654574ec65ecd38a8e58
{ "blob_id": "c87fe8214c95405c1081654574ec65ecd38a8e58", "branch_name": "refs/heads/master", "committer_date": "2019-05-03T14:34:39", "content_id": "f09b9ec541c3fe4e2dd160bf959e808a0e591cac", "detected_licenses": [ "MIT" ], "directory_id": "2be676145f1df4edcd793692cc9d274df200a5d2", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "Producto.h" #include "Proveedor.h" #define LIBRE 0 #define OCUPADO 1 #define BORRADO -1 eProducto pedirProducto() { eProducto productoParaRetornar; printf("Ingrese nombre: "); fflush(stdin); gets(productoParaRetornar.nombre); pr...
3.171875
3
2024-11-18T18:45:17.802012+00:00
2021-07-08T18:23:08
83f02c3e5b8280c6d47c566105e7075668f312af
{ "blob_id": "83f02c3e5b8280c6d47c566105e7075668f312af", "branch_name": "refs/heads/main", "committer_date": "2021-07-08T18:23:08", "content_id": "6a1b32e175f6a458e76066933bc537736f0d9c6c", "detected_licenses": [ "MIT" ], "directory_id": "264af1e6616fc3d71c0e632734faa16799c04630", "extension": "c", ...
stackv2
/* * ov7670.c * * Created on: 6 Haz 2021 * Author: H3RK3S */ /* * ov7670 camera initializing codes are taken by Engin KAVAK * */ #include "ov7670.h" #include "stm32f0xx_hal.h" #include "main.h" #include "ILI9341_GFX.h" extern I2C_HandleTypeDef hi2c1; extern SPI_HandleTypeDef hspi1; extern TIM_HandleTyp...
2
2
2024-11-18T19:19:58.536216+00:00
2018-09-06T04:19:31
9eaf00ae2055b091ad55912df6ba8757e1f1a65e
{ "blob_id": "9eaf00ae2055b091ad55912df6ba8757e1f1a65e", "branch_name": "refs/heads/master", "committer_date": "2018-09-06T04:19:31", "content_id": "1c33f6d6b58707e2a74a84dc8ab6d45ffc4feef6", "detected_licenses": [ "MIT" ], "directory_id": "134fca5b62ca6bac59ba1af5a5ebd271d9b53281", "extension": "c"...
stackv2
/* $XConsortium: FontNames.c,v 11.27 94/04/17 20:19:24 rws Exp $ */ /* Copyright (c) 1986 X Consortium 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 limi...
2.03125
2
2024-11-18T19:19:58.646571+00:00
2018-05-23T06:55:18
b6bad64914f61170a27ba3cc090669a7187e7168
{ "blob_id": "b6bad64914f61170a27ba3cc090669a7187e7168", "branch_name": "refs/heads/master", "committer_date": "2018-05-23T06:55:18", "content_id": "6e4d58f639e1453d180ea34cc9be0c5dad8e3dd6", "detected_licenses": [ "MIT" ], "directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd", "extension": "c"...
stackv2
//Created by Redhat@Sjmud 2009/4/7 //updated by Zhuifeng@SJFY 2010/7/27 inherit ROOM; #include <ansi.h> #define QUESTDIR "quest/射雕英雄传/风雪惊变/" void create() { set("short", "杨家小屋"); set("long", @LONG 这是一座十分清爽的民房,家具摆设一应俱全,只是都附着一层灰土。屋 子中间是一张小桌,桌上的杯碗还都没有撤去,看来主人去的很匆忙。墙上挂 着一杆短柄生了锈的铁枪(Tieqiang)。 LONG ); set("item_desc", (...
2.0625
2
2024-11-18T19:20:41.968410+00:00
2020-12-04T14:29:25
d68a3eccb7ea03957dada2dbf8f2ff653262aac0
{ "blob_id": "d68a3eccb7ea03957dada2dbf8f2ff653262aac0", "branch_name": "refs/heads/master", "committer_date": "2020-12-04T14:29:25", "content_id": "5743968855a12fcb4c6893ec17b162543daab8d9", "detected_licenses": [ "MIT" ], "directory_id": "a066c87cd6f6f01541ff8c1f0713fcf2fe364357", "extension": "c"...
stackv2
#include "stdio.h" int binarySearch(int arr[], int l, int r, int x) { if (r >= l) { int mid = l + (r - l)/2; if (arr[mid] == x) return mid; if (arr[mid] > x) return binarySearch(arr, l, mid-1, x); return binarySearch(arr, mid+1, r, x); } return -1; ...
3.65625
4
2024-11-18T19:20:42.074107+00:00
2016-07-06T02:27:50
c0fce0d5413dd9be57e445c05d1d80bb11d44e35
{ "blob_id": "c0fce0d5413dd9be57e445c05d1d80bb11d44e35", "branch_name": "refs/heads/master", "committer_date": "2016-07-06T02:27:50", "content_id": "2ba13277392e8233a15791a5eb5b99161f4956f7", "detected_licenses": [ "MIT" ], "directory_id": "fdffd080760d1660c7e408981a92d048c46a8f77", "extension": "c"...
stackv2
/*****************************************************************/ /* Copyright (C) 2015 Jeff Ciesielski <jeffciesielski@gmail.com> */ /* */ /* Interrupt driven SPI Master driver for STM32F0 */ /* ...
2.203125
2
2024-11-18T19:28:56.156801+00:00
2016-01-27T17:19:21
20eaeda82c30921e1c34e6794dff58930338cdbd
{ "blob_id": "20eaeda82c30921e1c34e6794dff58930338cdbd", "branch_name": "refs/heads/master", "committer_date": "2016-01-27T17:19:21", "content_id": "5357c4a0c7cf12784011f9e61fa6051f54dce4c2", "detected_licenses": [ "MIT" ], "directory_id": "649edc1598dbe9f17462ece9992295cb0832f274", "extension": "c"...
stackv2
#include <stdio.h> int exact_square(int n); int main(){ int b; int n; printf("Enter a number:\n"); scanf("%d", &n); b = exact_square(n); printf("%d\n", b); } int exact_square(int n){ int a; for (a = 0; a * a <= n; a++){ if (n == a * a){ return 1; } } return 0; }
3.375
3
2024-11-18T19:29:41.859620+00:00
2009-09-30T00:03:29
aab07819bcde69afa900c99ed16104b12efa6d56
{ "blob_id": "aab07819bcde69afa900c99ed16104b12efa6d56", "branch_name": "refs/heads/master", "committer_date": "2009-09-30T00:03:29", "content_id": "4734a95d8b680b51c570bd89416cb62666714f1e", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "dc0b60b426aaf6dfebe4a1a3d33350eb8f2c5d34", "extens...
stackv2
/* -*- mode: C -*- * * Copyright (c) 2007, 2008 The University of Utah * All rights reserved. * * This file is part of `randprog', a random generator of C programs. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met...
2.234375
2
2024-11-18T19:57:14.523403+00:00
2017-11-10T14:45:04
c2e5eec1f4798f0fe1b09cf2141427878298218f
{ "blob_id": "c2e5eec1f4798f0fe1b09cf2141427878298218f", "branch_name": "refs/heads/master", "committer_date": "2017-11-10T14:45:04", "content_id": "eb36dee4ffba4f5dcdd4cb4d3c9a1349d767b334", "detected_licenses": [ "Unlicense" ], "directory_id": "a333d535a4de639b3a449414f3504b59a7388831", "extension...
stackv2
// Written by Simon Cahill // Copyright (c) 2016 // All Right Reserved // Copies and modifications of this file are prohibited and punishable by law, // unless done with EXPRESS PERMISSION by the author of this file. #ifndef UI_H_INCLUDED #define UI_H_INCLUDED #define TOPIC_GENERAL 0 #define TOPIC_LEVEL_SELECTION 1 #...
2.15625
2
2024-11-18T18:19:10.426907+00:00
2018-04-23T21:23:41
eb6277fb16fbde4ba957deea7e6f3c51906fb93e
{ "blob_id": "eb6277fb16fbde4ba957deea7e6f3c51906fb93e", "branch_name": "refs/heads/develop", "committer_date": "2018-04-23T21:23:41", "content_id": "8679af28e26417485e4e4f4dced38031a111e8f8", "detected_licenses": [ "BSL-1.0" ], "directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d", "extension"...
stackv2
/* *********************************************************************** */ /* *********************************************************************** */ /* Automated Documentation Facility (ADF) Program Module */ /* *********************************************************************** */ /* File Name : %M...
2.375
2
2024-11-18T18:44:09.372374+00:00
2020-01-20T11:14:30
a910edb583296229b7bbe74f60b7fcac3cfca863
{ "blob_id": "a910edb583296229b7bbe74f60b7fcac3cfca863", "branch_name": "refs/heads/master", "committer_date": "2020-01-20T11:14:30", "content_id": "6947c5596135e1fa2d836c9fb31d693f5897338d", "detected_licenses": [], "directory_id": "a03e2ad742f8a424bc66745a2a17e7e1e0fd917b", "extension": "h", "filename...
stackv2
#ifndef _SYS_DEVICE_H_ #define _SYS_DEVICE_H_ #include <sys/queue.h> #include <sys/malloc.h> #include <sys/linker_set.h> #include <sys/rman.h> typedef struct device device_t; typedef struct driver driver_t; typedef struct resource resource_t; typedef struct bus_space bus_space_t; typedef TAILQ_HEAD(, device) device_l...
2.25
2
2024-11-18T18:44:09.529794+00:00
2020-01-21T17:11:20
a3932c7a39e02f1504c5ec8850d317393f4f44b3
{ "blob_id": "a3932c7a39e02f1504c5ec8850d317393f4f44b3", "branch_name": "refs/heads/master", "committer_date": "2020-01-21T17:11:20", "content_id": "12e5449d8aaea87c78ae75a5d8c7b511e651df2a", "detected_licenses": [ "MIT" ], "directory_id": "5d9c21e9e943d254a5b5d991cf3c32c8f8708578", "extension": "c"...
stackv2
#include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> int main(int argc, char *argv[]) { if (argc < 2) return 1; int fd = open(argv[1], O_RDONLY); if (fd < 0) return 1; char c; int size = read(fd, &c, sizeof(c));...
2.703125
3
2024-11-18T18:44:09.679568+00:00
2019-06-15T23:21:50
2ee9919390f9006e1e65be704cd987ad1a05dc91
{ "blob_id": "2ee9919390f9006e1e65be704cd987ad1a05dc91", "branch_name": "refs/heads/master", "committer_date": "2019-06-15T23:21:50", "content_id": "f8cf0dba6ca1e81d84f412bb2c91c5e8213c0a52", "detected_licenses": [ "MIT" ], "directory_id": "1f3b4e1fa1f2fd35dfcd5eba476f5cecffd2af17", "extension": "c"...
stackv2
#include <stdint.h> #include "shell.h" #include "string.h" #include "../drivers/io.h" // A convenient define which gives a char ptr to the frame buffer #define FB_CHAR_PTR ((unsigned char *) FB_BASE_ADDRESS) // A define that gives us uint16 ptr to the frame buffer. // Cells are 2 bytes wide (16 bits) so this makes in...
2.78125
3
2024-11-18T18:44:09.748115+00:00
2018-04-07T20:26:53
a0d6d7882620eb66ff2d386dc396dd38c0fffd8f
{ "blob_id": "a0d6d7882620eb66ff2d386dc396dd38c0fffd8f", "branch_name": "refs/heads/master", "committer_date": "2018-04-07T20:49:35", "content_id": "414c6a9290d27d52f3c1f92447fc023644afe44f", "detected_licenses": [ "MIT" ], "directory_id": "09d9890cac969c565cf3d9c25d83e6e63158047f", "extension": "c"...
stackv2
#include <evil-config.h> #include "stdio.h" #include "internal/file.h" #include "internal/memory.h" #include "internal/undefined_behavior.h" size_t fwrite(const void* restrict ptr, size_t size, size_t nmemb, FILE* restrict stream) { if (__evil_is_null(ptr) || __evil_is_n...
2.796875
3
2024-11-18T18:54:17.706722+00:00
2021-06-28T08:12:41
e972566fc7a0b25518f6029ea0d6f558d3701f7f
{ "blob_id": "e972566fc7a0b25518f6029ea0d6f558d3701f7f", "branch_name": "refs/heads/master", "committer_date": "2021-06-28T08:12:41", "content_id": "98662c8d5e6cfeea604daeb2eaf879c0488cabd8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ddda55fcfc84ac5cd78cfc5c336a3df0b9096157", "extensio...
stackv2
/** *********************************************************************************************************************** * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the ...
2.1875
2
2024-11-18T18:54:18.125289+00:00
2023-08-29T06:33:10
569a2149496867ff5f2b645c6d1b38df6312bf49
{ "blob_id": "569a2149496867ff5f2b645c6d1b38df6312bf49", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T06:33:10", "content_id": "005d8c4d56acc3ddcd20ee78bbbc293335befa33", "detected_licenses": [ "Apache-2.0" ], "directory_id": "676acab8ff535019faff7da3afb8eecc3fa127f5", "extensio...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include "efuse.h" #include "reg_rw.h" #include "hal.h" #include "debuglog.h" #include "mpu.h" #include "drv_systick.h" #define EFUSE_EFUSEDATA0 (0x40B000FC) #define EFUSE_EFUSEDATA1 (0x40B00100) #define EFUSE_EF...
2.359375
2
2024-11-18T19:03:54.036774+00:00
2013-02-19T11:52:18
1d11ef2681bba341e332561bc2e7559c4ed3ba00
{ "blob_id": "1d11ef2681bba341e332561bc2e7559c4ed3ba00", "branch_name": "refs/heads/master", "committer_date": "2013-02-19T11:52:18", "content_id": "b7e288100c5925fc3381065efd8cf09380379a09", "detected_licenses": [ "ISC" ], "directory_id": "c1ea525a56131081fb463cacefc56a89cd0bd70e", "extension": "c"...
stackv2
#include <stdlib.h> #include <string.h> #include "strtab.h" static struct strtab_elem * newelem(size_t size) { struct strtab_elem *p; if ((p = malloc(sizeof(struct strtab_elem))) == NULL) return NULL; if ((p->data = calloc(size, sizeof(char))) == NULL) { free(p); return NULL; } return p; } static void fr...
2.921875
3
2024-11-18T19:03:54.109068+00:00
2020-09-25T16:28:49
0b08be34ec7438e248516a9711ddfc34327c7aa3
{ "blob_id": "0b08be34ec7438e248516a9711ddfc34327c7aa3", "branch_name": "refs/heads/master", "committer_date": "2020-09-25T16:28:49", "content_id": "f1bba4ba8469ec7e9029e6fde3678a47bd5b97e2", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c8ed2c54a96073fbc0d3c9b3c35c4e796500339d", "extensio...
stackv2
#include "18F4520.H" #include "proyecto1.h" #fuses HS, NOPROTECT, BROWNOUT, PUT, NOLVP, NOXINST, WDT2048 #use delay(clock=8000000, restart_wdt) #use rs232(baud=4800, xmit=PIN_C6,rcv=PIN_C7) #include "PCF8583.c" #include "LCDeasy.c" #include "1wire.c" #include "ds1820.c" #include "teclado.c" #include "eeprom.c" #use ...
2.390625
2
2024-11-18T19:27:05.242679+00:00
2017-07-02T23:40:16
4b2a1a410885b46a205b1cbb5f97054259c48582
{ "blob_id": "4b2a1a410885b46a205b1cbb5f97054259c48582", "branch_name": "refs/heads/master", "committer_date": "2017-07-02T23:40:16", "content_id": "3c917cbbee92e8642a7d08e9259e1414f324c489", "detected_licenses": [ "MIT" ], "directory_id": "3e13202aeaec0280f90b434ee214a4f667728e46", "extension": "c"...
stackv2
#include <errno.h> #include <stdlib.h> #include <string.h> #include "str.h" #include "util.h" #include "vec.h" int str_append(char **dst, char src) { int err = 0; size_t avail = 0; avail = vec_mem(*dst) - vec_len(*dst); if (avail < 3) { err = vec_concat(dst, "\0\0", 2); if (err) return err; } return vec_...
2.625
3
2024-11-18T19:27:06.243561+00:00
2015-07-08T18:45:18
f1462e967658eb925b27abf81b20a3ab38c3c455
{ "blob_id": "f1462e967658eb925b27abf81b20a3ab38c3c455", "branch_name": "refs/heads/master", "committer_date": "2015-07-08T18:45:18", "content_id": "757ea54a60ea79aed43a40ae79b4e56a8e35f462", "detected_licenses": [ "MIT" ], "directory_id": "bbdfccd71c41c774dbed9ab5b0ef4b61b05c055e", "extension": "c"...
stackv2
#include <linux/module.h> /* Needed by all modules */ #include <linux/kernel.h> /* Needed for KERN_INFO */ #include <linux/init.h> /* Needed for the macros */ MODULE_LICENSE("license type"); MODULE_AUTHOR("Author name"); MODULE_DESCRIPTION("what does your module do?"); static int __init init_function(void) { ...
2.109375
2
2024-11-18T19:27:06.314872+00:00
2021-05-22T11:20:04
5f24ad7e3afbb2439cb6ce39bf393594c60c598f
{ "blob_id": "5f24ad7e3afbb2439cb6ce39bf393594c60c598f", "branch_name": "refs/heads/master", "committer_date": "2021-05-22T11:20:04", "content_id": "00c96064f5c7bc52041e4515f9a122d38894fba1", "detected_licenses": [ "MIT" ], "directory_id": "2b680c54c706db66dfe4e4e73a609e49f474a11f", "extension": "c"...
stackv2
/* * buzzer.c * * Created on: Sep 13, 2020 * Author: tuannv */ #include <stdbool.h> #include "buzzer.h" #include <gpio.h> #include <application/timer/timer.h> TID(gbuzzer_id); static bool gstatus; static bool gdone = true; void buzzer_cb(void *ctx){ if(gstatus){ gstatus = false; HAL_GPIO_WritePin(...
2.109375
2
2024-11-18T19:27:06.392160+00:00
2015-04-14T20:24:43
88c6ced1ab87cd32c54e441af7788949a8ab920f
{ "blob_id": "88c6ced1ab87cd32c54e441af7788949a8ab920f", "branch_name": "refs/heads/master", "committer_date": "2015-04-14T20:24:43", "content_id": "643b64d9f7b396d3ba9ab00d88bf9a6df5c8f4c4", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "45a175e1a470bf15f4a2aa5b066250d6f8ec5327", "extens...
stackv2
/** * @file * @brief Demonstrates repository creation with ARRAY_SPREAD API * @details This example demonstrates work on repository which was create with * ARRAY_SPREAD macro. You can use this technique for creation local * repositories build during compilation and item for this repository * ...
3.203125
3
2024-11-18T19:27:07.465515+00:00
2019-08-28T12:13:17
56d4b884bcd02317cb27f0b5e61d769e0a013a70
{ "blob_id": "56d4b884bcd02317cb27f0b5e61d769e0a013a70", "branch_name": "refs/heads/master", "committer_date": "2019-08-28T12:13:17", "content_id": "10049e97fb8a749b08670ab4565b874594387aad", "detected_licenses": [ "MIT" ], "directory_id": "18856961b968841851d5ce9ec71c033229402ae1", "extension": "c"...
stackv2
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <stdio.h> #include <string.h> #include "libeconf.h" /* Test case: * Provide a NULL pointer for key_file. We should return an error, not crash */ int main(int argc, char **argv) { Key_File *key_file; const char *val; econf_err error; key_file = eco...
2.53125
3
2024-11-18T19:27:07.595313+00:00
2021-09-13T11:59:15
09e27ad4092b5f10ee41a358c3c047a6d1cba389
{ "blob_id": "09e27ad4092b5f10ee41a358c3c047a6d1cba389", "branch_name": "refs/heads/master", "committer_date": "2021-09-13T11:59:15", "content_id": "25f86a8c2062b48d9fdcf35aa26ba2c3260c3a29", "detected_licenses": [ "MIT" ], "directory_id": "ffb44c7e1639bdbbf6bcbeb37aef7a5867766f87", "extension": "h"...
stackv2
#ifndef _QUEUE_H_ #define _QUEUE_H_ #include "c99defs.h" #include <pthread.h> #ifdef __cplusplus extern "C" { #endif #define MAX_REPEAT 5 //never greater than 10 repeat typedef struct d_node { int action; int delay; void *data; void *priv_data; //private data free by user struct d_node *next...
2.21875
2
2024-11-18T19:27:07.660892+00:00
2021-11-01T15:06:38
671a9537a15265d78a2db672ab935b08299a5eda
{ "blob_id": "671a9537a15265d78a2db672ab935b08299a5eda", "branch_name": "refs/heads/main", "committer_date": "2021-11-01T15:06:38", "content_id": "1e789da5c7e5e9c527a9bbb3759271211fc627bf", "detected_licenses": [ "CC0-1.0" ], "directory_id": "1b3c7412cb3e3f7f653fd7a2c166fe13c6400986", "extension": "...
stackv2
/** Exercise: Write a program to print the corresponding Celcius to Fahrenheit table. * * Author: Shaikh Aquib */ #include <stdio.h> int main() { printf("Celcius\tFahrenheits\n"); float fahr, celcius; int lower, upper, step; lower = 0; upper = 300; step = 20; celcius = lower; whi...
3.4375
3
2024-11-18T19:27:08.315379+00:00
2019-10-17T19:48:21
a76d1e1d43d721fbd3a8ee4ffc3da820bac2d4ae
{ "blob_id": "a76d1e1d43d721fbd3a8ee4ffc3da820bac2d4ae", "branch_name": "refs/heads/master", "committer_date": "2019-10-17T19:48:21", "content_id": "55eb7c88712b41a39b62e1c2fd973a9a6be71f0e", "detected_licenses": [ "MIT" ], "directory_id": "047d22db09c8ee3babc425082088fe5551cc80fe", "extension": "h"...
stackv2
#ifndef IO_H #define IO_H #include <stdbool.h> #define F_KEY(x) ((x) + 0x6f) #define CTRL_KEY(k) ((k) & 0x1f) enum key { BACKSPACE = 8, TAB, ENTER = 13, ESC = 27, PAGE_UP = 33, PAGE_DOWN, END, HOME, ARROW_LEFT, ARROW_UP, ARROW_RIGHT, ARROW_DOWN, SELECT, PRINT, EXECUTE, PRINT_SCREEN, INSERT, DEL, C...
2.078125
2
2024-11-18T19:27:08.377692+00:00
2019-03-25T16:21:57
cb6f0e9c01e535f416aefadc9884743005371de6
{ "blob_id": "cb6f0e9c01e535f416aefadc9884743005371de6", "branch_name": "refs/heads/master", "committer_date": "2019-03-25T16:21:57", "content_id": "aa20f015629cc5a193d7a7b56ff54a220c1e8235", "detected_licenses": [ "MIT" ], "directory_id": "92cc28add0cecf3d2a6953a2ef3677acb8788966", "extension": "c"...
stackv2
#include "test_common.h" #include "reverse.h" #include <string.h> typedef struct { char *string; char *expected_result; } test; static test tests[] = { {"", ""}, {"a", "a"}, {"ab", "ba"}, {"aba", "aba"}, {"abab", "baba"}, {"aabb", "bbaa"}, }; int main() { printf("Running %s\n", __FILE__); for ...
2.828125
3
2024-11-18T19:27:08.662219+00:00
2018-05-08T20:11:06
681bb359306b67f75e42d7ed39fb92c18f6fe4ef
{ "blob_id": "681bb359306b67f75e42d7ed39fb92c18f6fe4ef", "branch_name": "refs/heads/master", "committer_date": "2018-05-08T20:11:06", "content_id": "a6a3d2c2cac66ba5d5ae8a27c1c92b209139a8dc", "detected_licenses": [ "MIT" ], "directory_id": "3a3b797e503f84dd966f5d7c15dfcc34443efa10", "extension": "c"...
stackv2
/* MIGUEL ANGEL MONTOYA ZARAGOZA A01226045 Descripción del problema Funciones: - insert(char *string, char *insert, int pos) Inserta la string 'insert' en la posición 'pos' en la string 'string' 1.- Crea un buffer con el que se estará trabajando 2.- Copia los elementos de string hasta la ...
3.625
4
2024-11-18T19:27:09.487006+00:00
2020-02-25T11:30:55
1956a9980606c2765e79a0ab8f75afd8d7f35982
{ "blob_id": "1956a9980606c2765e79a0ab8f75afd8d7f35982", "branch_name": "refs/heads/master", "committer_date": "2020-02-25T11:30:55", "content_id": "40e0226c1ba895e711c7ac76b70abf3433317a57", "detected_licenses": [ "MIT" ], "directory_id": "80a8401264df042728a0be8cd0c385eacc9ebf7c", "extension": "c"...
stackv2
// // dishiyizhang20.c // dishiyizhang // // Created by mingyue on 15/11/3. // Copyright © 2015年 G. All rights reserved. // #include <stdio.h> int main(int argc, char* argv[]){ int count; printf("The command line has %d arguments:\n",argc - 1); for (count = 0; count <= argc; count++) { ...
2.359375
2
2024-11-18T19:27:10.027151+00:00
2023-03-25T17:57:33
786d718bb660713fae03d196e389fca4bbe50ac2
{ "blob_id": "786d718bb660713fae03d196e389fca4bbe50ac2", "branch_name": "refs/heads/master", "committer_date": "2023-03-25T17:57:33", "content_id": "085ddea5021922598715608f2c1df131f1a48324", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "6601ed1b6c24e8b7e78312aeaadf816262c4bee3", "extens...
stackv2
/* * update.c - implementation of the elf_update(3) function. * Copyright (C) 1995 - 2006 Michael Riepe * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of th...
2.171875
2
2024-11-18T19:27:10.112607+00:00
2018-09-29T13:29:28
018d70d234f1ef74494399a72aa992fb4c7d3b77
{ "blob_id": "018d70d234f1ef74494399a72aa992fb4c7d3b77", "branch_name": "refs/heads/master", "committer_date": "2018-09-29T13:29:28", "content_id": "c05aedb24aa4186bd75a22e6f46bdb3fffec7a6e", "detected_licenses": [ "Unlicense" ], "directory_id": "0e8f506b4c9d44b93253a70d9ba16b6480e0a097", "extension...
stackv2
#include <stdio.h> #include <stdlib.h> #include <xcb/xcb.h> #include <xcb/xcb_aux.h> #include <err.h> #include <unistd.h> #include "com.h" #include "xcb.h" enum { ABSOLUTE = 0, RELATIVE = 1 }; static xcb_connection_t *conn; static xcb_screen_t *scr; static void resize(xcb_window_t, int, int, int); int main(int a...
2.5
2
2024-11-18T19:27:10.411987+00:00
2023-06-13T13:09:20
0252404d0b5dd92bc9f78b30b084b7f186f4bdf3
{ "blob_id": "0252404d0b5dd92bc9f78b30b084b7f186f4bdf3", "branch_name": "refs/heads/master", "committer_date": "2023-06-13T13:09:20", "content_id": "6a20c83e06a0bbb99dee04b780ac54e1d0097a2b", "detected_licenses": [ "MIT" ], "directory_id": "ff56a3767dcd36e8352e0a91dec5cd22057fddf3", "extension": "c"...
stackv2
// // simple-emulator.c // RadarKit // // Created by Boonleng Cheong on 5/13/18. // Copyright (c) 2018-2021 Boonleng Cheong. All rights reserved. // #include <RadarKit.h> #include <getopt.h> RKRadar *myRadar = NULL; static void handleSignals(int signal) { if (myRadar == NULL) { return; } fpri...
2.765625
3
2024-11-18T19:27:11.514844+00:00
2018-06-10T15:06:05
eeadcc7576d5a2a71db8162978c90cc21e4fb69e
{ "blob_id": "eeadcc7576d5a2a71db8162978c90cc21e4fb69e", "branch_name": "refs/heads/master", "committer_date": "2018-06-10T15:06:05", "content_id": "dd32c3409a74757d7c67524d375126268a200104", "detected_licenses": [ "MIT" ], "directory_id": "e60ded645953479c253616557ec4cab64ba04744", "extension": "c"...
stackv2
/* ** EPITECH PROJECT, 2018 ** minishell ** File description: ** minishell */ #include "my.h" #include "minishell.h" char **my_add_env(char *s1, char *s2, char **env) { int a = 0; char *str; str = my_strcat(s1, "="); str = my_strcat(str, s2); while (env[a]) a++; env[a] = my_strdup(str); return (env); }
2.296875
2
2024-11-18T19:40:36.201658+00:00
2023-07-12T17:05:45
873a3b6725e827403e787680181dfe6e9ad29549
{ "blob_id": "873a3b6725e827403e787680181dfe6e9ad29549", "branch_name": "refs/heads/master", "committer_date": "2023-07-12T17:05:45", "content_id": "11d413273384a57481f90dda6621d4c78e6fb88e", "detected_licenses": [ "MIT" ], "directory_id": "51a0da6db94fbe7fb0d4e8c0d3713f25e24d52fd", "extension": "c"...
stackv2
#include "pbbslib/parse_command_line.h" #include "common/graph.h" #include "common/graphIO.h" #include "common/graphUtils.h" #include "pbbslib/parallel.h" using namespace benchIO; using namespace std; int main(int argc, char* argv[]) { commandLine P(argc,argv,"-o <outFile>"); char* iFile = P.getArgument(0); cha...
2.1875
2
2024-11-18T19:52:23.729580+00:00
2023-07-10T16:06:35
50f238aa78aa4a391c2ccc87d0b618a384237fed
{ "blob_id": "50f238aa78aa4a391c2ccc87d0b618a384237fed", "branch_name": "refs/heads/master", "committer_date": "2023-07-10T16:06:35", "content_id": "99d388f7e69eb22753869622de00c726c1029b8a", "detected_licenses": [ "ISC", "MIT" ], "directory_id": "d2e0fb3fdad7fc2cb70894591d358f40d8db13d2", "exte...
stackv2
/* Copyright (c) 2016, 2017, 2019, 2022 Dennis Wölfing * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ...
2.28125
2
2024-11-18T20:03:46.963378+00:00
2013-09-01T15:21:49
ed60643f2b1e80be37514fd7b735db0934cc28f8
{ "blob_id": "ed60643f2b1e80be37514fd7b735db0934cc28f8", "branch_name": "refs/heads/master", "committer_date": "2013-09-01T15:21:49", "content_id": "21b4e6a4392f3a545d3c2f0845d5b8471e0c9c90", "detected_licenses": [ "MIT" ], "directory_id": "9c0123b779b953ef8eeec19d0ba5ddc1d8954caf", "extension": "c"...
stackv2
#include <services.h> #include <klib.h> #include <unistd.h> #define COM_BUFFER_SIZE 4096 #define SEND_NOTIFIER_PRIORITY 0 #define RECEIVE_NOTIFIER_PRIORITY 0 #define IO_QUERY_TYPE_GETC 0 #define IO_QUERY_TYPE_PUTC 1 #define IO_QUERY_TYPE_PUTS 2 #define GETTER_BUFFER_SIZE 10 typedef struct putc_query { int ty...
2.484375
2
2024-11-18T20:03:47.081527+00:00
2017-01-30T10:15:58
a4b5b3d26bdded0e5af02b92801eec8cb7364447
{ "blob_id": "a4b5b3d26bdded0e5af02b92801eec8cb7364447", "branch_name": "refs/heads/master", "committer_date": "2017-01-30T10:15:58", "content_id": "b9edde8658f6cf491e328d529d4b2ec90c841b7d", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "42f586e2f1de854ee917e4338857b4bb3322bead", "extens...
stackv2
/* * ===================================================================================== * * Filename: qsort.c * * Description: try qsort * * Version: 1.0 * Created: 06/15/2012 03:09:05 PM * Revision: none * Compiler: gcc * * Author: FamiHug (), famihug@gm...
3.125
3