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-18T19:35:02.395399+00:00
2020-12-11T02:41:09
600243aec74bda6cf66e4ce4e9718b3cf5e556f2
{ "blob_id": "600243aec74bda6cf66e4ce4e9718b3cf5e556f2", "branch_name": "refs/heads/main", "committer_date": "2020-12-11T02:41:09", "content_id": "5cce5aaf1640f81424bdd42ad22d2adf27fb94ee", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "90116cb448dc5c05e7ad44ca9fb217b2e6151064", "extensio...
stackv2
#include <limits.h> /* for INT_MAX */ #include <stdlib.h> /* for drand48 */ #include <stdint.h> #define readfe(ptr) (*(ptr)) #define writeef(ptr, val) (*(ptr) = (val)) /* #define int_fetch_add(ptr, val) ({ int64_t * pi = (ptr); int64_t tmp = *pi; *pi += (val); tmp; }) */ static inline int int_fetch_add (int64_t *p, int...
2.578125
3
2024-11-18T19:35:02.518874+00:00
2019-05-06T07:13:58
6cc1a3153099344310294b8da93e2822a883ab1e
{ "blob_id": "6cc1a3153099344310294b8da93e2822a883ab1e", "branch_name": "refs/heads/master", "committer_date": "2019-05-06T07:13:58", "content_id": "b372bc4662a48bce864214f3c9b7c8796ae570b3", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "3e805d87669a772393787b4ecdda28ad3fa42a01"...
stackv2
/* * $Id: hashctx.c,v 1.1 2005-09-18 22:05:44 dhmunro Exp $ * generic pointer<->context association functions */ /* Copyright (c) 2005, The Regents of the University of California. * All rights reserved. * This file is part of yorick (http://yorick.sourceforge.net). * Read the accompanying LICENSE file for detail...
2.09375
2
2024-11-18T19:35:02.658612+00:00
2022-02-01T17:50:31
28cf82cc9488dd392f780e41e39917139f4db3ba
{ "blob_id": "28cf82cc9488dd392f780e41e39917139f4db3ba", "branch_name": "refs/heads/master", "committer_date": "2022-02-01T17:50:31", "content_id": "3c6b5d25294844f4ef8af030435e366398001ab5", "detected_licenses": [ "NCSA" ], "directory_id": "2898fa4f2ad766afa0495a837f59fe95daa081a7", "extension": "c...
stackv2
#include <stdlib.h> /* PR middle-end/26561 */ extern void abort(void); int always_one_1 (int a) { if (a/100 >= -999999999) return 1; else return 0; } int always_one_2 (int a) { if (a/100 < -999999999) return 0; else return 1; } int main(void) { if (always_one_1 (0) != 1) abort (); i...
2.390625
2
2024-11-18T19:35:02.922185+00:00
2021-07-01T04:12:58
5d8978918bcd9a23788427a095cf7737b3d4ee47
{ "blob_id": "5d8978918bcd9a23788427a095cf7737b3d4ee47", "branch_name": "refs/heads/master", "committer_date": "2021-07-01T04:12:58", "content_id": "5ff5c5b4ea185c61a14d9f49347a3654fad127d2", "detected_licenses": [ "MIT" ], "directory_id": "1ece3e16d5e900e9d6a005e77893e4961856642c", "extension": "c"...
stackv2
/* * split_data.c * * Created on: August 14, 2014 * Author: Wenyuan Li */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "matutils.h" void split_data_and_write_for_one_worker(char *input_mat_file, int taskid, int start_row, int end_row, int total_column, float mem_si...
2.703125
3
2024-11-18T20:01:53.079341+00:00
2020-09-26T14:31:12
1dacba89b56531d085868aece085f8eda2178be2
{ "blob_id": "1dacba89b56531d085868aece085f8eda2178be2", "branch_name": "refs/heads/master", "committer_date": "2020-09-26T14:31:12", "content_id": "a3072c71de25705314b31ea34d84249bc21bffa7", "detected_licenses": [ "MIT" ], "directory_id": "32a2cb8169d8f38d672a6005ea96a6883eb80c2d", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include "funcaoLista.c" void menuLista(); void tadMenu(); void tadMenu() { printf("1-Insere na lista(insLista )\n"); printf("2-Elimina na lista(elimLista )\n"); printf("3-Primeiro No(primLista)\n"); printf("4-Ultimo No(ultLista)\n"); printf("5-Segue para o pro...
3.078125
3
2024-11-18T20:13:09.095338+00:00
2019-11-04T16:50:16
6a04da0a73497586c814cad1afc66d199b45069e
{ "blob_id": "6a04da0a73497586c814cad1afc66d199b45069e", "branch_name": "refs/heads/master", "committer_date": "2019-11-04T16:50:16", "content_id": "5ccabededddbffd5dec209c9cdec1fbaf48703d9", "detected_licenses": [ "MIT" ], "directory_id": "f3277b1c41eb85f4cf04ea0a3c1518700874dd50", "extension": "c"...
stackv2
#include <stdio.h> int main(void) { int num = 1; if (num == 1) { int num = 7; num += 10; printf("if local variable num : %d\n", num); } printf("main local variable num : %d\n", num); return 0; }
2.828125
3
2024-11-18T20:13:09.325445+00:00
2023-07-21T05:49:53
6f3ee422b8c318a5953c29752a5a683345165261
{ "blob_id": "6f3ee422b8c318a5953c29752a5a683345165261", "branch_name": "refs/heads/master", "committer_date": "2023-07-21T11:16:09", "content_id": "eee4f08d5c5c3cb731fd9d03754833dcdbef2010", "detected_licenses": [ "MIT" ], "directory_id": "cd4eb25911d3e3b092aa97aaa7b8fbba6c3a0704", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <dlfcn.h> #define Log printf int main() { void *handle; double (*cosine)(double); char *error; // handle = dlopen ("/lib/i386-linux-gnu/libm.so.6", RTLD_LAZY); const char *dlfn = "/lib/x86_64-linux-gnu/libm.so.6"; Log("loading dl=%s\n", ...
2.671875
3
2024-11-18T20:13:46.724207+00:00
2022-12-15T02:37:18
3dbf6e370997c8d96c5861e28a160f6cddabe619
{ "blob_id": "3dbf6e370997c8d96c5861e28a160f6cddabe619", "branch_name": "refs/heads/master", "committer_date": "2022-12-15T02:37:18", "content_id": "e4a66f781fd9497b839409ae8c63431ac3a84a26", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ea1328695989667c9ab168facfa1095ffe55639c", "extensio...
stackv2
/* * Copyright 2006 The Android Open Source Project * * Hash table. The dominant calls are add and lookup, with removals * happening very infrequently. We use probing, and don't worry much * about tombstone removal. */ #include <stdlib.h> #include <assert.h> #define LOG_TAG "minzip" #include "Log.h" #include "...
2.796875
3
2024-11-18T20:13:46.821479+00:00
2023-03-23T15:28:34
e7435a8d19c31c24cb94cd9ab6efedcc2666ab50
{ "blob_id": "e7435a8d19c31c24cb94cd9ab6efedcc2666ab50", "branch_name": "refs/heads/master", "committer_date": "2023-03-23T15:28:34", "content_id": "b99274824fdf73a9d6fd44c513c74bd492f557c2", "detected_licenses": [ "Apache-2.0" ], "directory_id": "efd8f23fdf1b48cc8d9954430b8ceae8aebe91f0", "extensio...
stackv2
#include <stdio.h> #include "klist.h" #define list_bs_elem_destroy(x) #define list_bs_elem_bak_destroy(x) free(x->data) #define list_int_set_destroy(x) KLIST_INIT(list_bs_elems, char *, list_bs_elem_destroy); KLIST_INIT(list_bs_elems_bak, char *, list_bs_elem_bak_destroy); KLIST_INIT(list_int_set, int, list_int_set_d...
2.765625
3
2024-11-18T20:13:46.926506+00:00
2021-01-02T22:42:11
7e4a4d8c609143d58b8d6a57a9250413b4217a95
{ "blob_id": "7e4a4d8c609143d58b8d6a57a9250413b4217a95", "branch_name": "refs/heads/master", "committer_date": "2021-01-02T22:42:11", "content_id": "1661cc38cc0ffdc2c046742f29864365604c2574", "detected_licenses": [ "MIT" ], "directory_id": "56452cfc1df4cc48f164418395de219d6e9d3bfe", "extension": "c"...
stackv2
#include <stdbool.h> #include <errno.h> #include <time.h> #include <stdio.h> #include <string.h> #include <strings.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <netdb.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #include <pthread.h> #include...
2.390625
2
2024-11-18T20:13:47.053608+00:00
2021-03-03T15:37:06
58db90dcb477226af2d13e63623844bc04373713
{ "blob_id": "58db90dcb477226af2d13e63623844bc04373713", "branch_name": "refs/heads/main", "committer_date": "2021-03-03T15:37:06", "content_id": "b4e1202dbe93325ab9bfec1177f428dd5cce6e2d", "detected_licenses": [ "MIT" ], "directory_id": "4aa0b38413a462d0fa9f3d0e3048eb9dd8bc3b8f", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> int main(int argc, char* argv[]) { int numbers_count = 0, sum = 0; char temp_str[50]; printf("The value of argc: %d\n", argc); printf("The value(s) in argv:\n"); for(int i = 0; i < argc; i++) { printf("> argv[%d]=%s\n", i, argv[i]); } numbers_count = atoi(argv[1...
3.296875
3
2024-11-18T20:14:20.047746+00:00
2014-10-22T19:54:16
2632549b9b3b79e3f0cc31f944f71dc0d4a89a35
{ "blob_id": "2632549b9b3b79e3f0cc31f944f71dc0d4a89a35", "branch_name": "refs/heads/master", "committer_date": "2014-10-22T19:54:16", "content_id": "bf292dae467529f2813e82bab7dd777c9e6ceda9", "detected_licenses": [ "Unlicense" ], "directory_id": "467948b57f8bd6939650bb8fbb94fa1530ae2234", "extension...
stackv2
/* PHONED.C - servidor rpcgen Compilador: GNU C Autor: Joanmi Bardera, 1995 */ #include <stdio.h> #include <string.h> #include <sts.c> char *sts_m1(char *caracters) { static char torna[tamany_text]; FILE *fitxer; int i,j; /* el primer a fer, incialitzar globals */ prepara_pari(); /* l...
2.734375
3
2024-11-18T20:14:25.145727+00:00
2012-06-30T22:38:33
6588386979029fb9f93f130af809c343ec482aa3
{ "blob_id": "6588386979029fb9f93f130af809c343ec482aa3", "branch_name": "refs/heads/master", "committer_date": "2012-06-30T22:38:33", "content_id": "5085e54fa1e1fe05ce6dc4c714deb5dc6b0c2cae", "detected_licenses": [ "MIT" ], "directory_id": "1587be5bbcd099beaa6136e5459e392610460d8f", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <glib.h> #include <glib/gprintf.h> #include <glib-object.h> #include <stdbool.h> #include "ssk.h" static const char ssk[]= SSK_SIGNATURE SSK_STRUCT; GPtrArray* get_serial_array(GError **error); #define USAGE g_printf("Usage: %s prog there_to_insta...
2.53125
3
2024-11-18T20:14:25.191733+00:00
2020-08-06T16:54:45
82760e4b6b651c67ada76e74e66b088e48868fee
{ "blob_id": "82760e4b6b651c67ada76e74e66b088e48868fee", "branch_name": "refs/heads/master", "committer_date": "2020-08-06T16:54:45", "content_id": "2e778126381b4f9485aa82996db9dfee39a1fe9f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6926d2f48852d7ba3cb06248117df127315edd9a", "extensio...
stackv2
//for ssd output detection fprop //conf is a matrix with len*4*bs //loc is a matrix with len*num_class*bs //result is a matrix with bs #include <stdlib.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <mkl_trans.h> #include <omp.h> //self.bbox_transform_inv(prior_boxes, loc_view[:, :, k], self.prop...
2.46875
2
2024-11-18T20:14:25.396564+00:00
2020-09-04T16:42:51
55e8ed3b257eb02d6992612285fea33c7a72a4c4
{ "blob_id": "55e8ed3b257eb02d6992612285fea33c7a72a4c4", "branch_name": "refs/heads/master", "committer_date": "2020-09-04T16:42:51", "content_id": "4bce5d9ebf7473c2c147ba7849b57dff19d752bd", "detected_licenses": [ "MIT" ], "directory_id": "656e326157e505f934c5c1da5dad31505dfa9e5a", "extension": "c"...
stackv2
/* vim: set ts=4 sw=4: */ /* Filename : omp_loop_ordered.c * Description : simple OpenMP model * Author : SunYoung Kim <sunyzero@gmail.com> * Notes : */ #include <stdio.h> int main() { int i; #pragma omp parallel #pragma omp for ordered for (i=0; i<8; i++) { printf("[%d] Hello OpenMP\n", i); #pr...
2.96875
3
2024-11-18T20:14:25.811955+00:00
2017-09-22T15:52:04
c1406be92adc9b8a7f9418a95d896dd4afff2842
{ "blob_id": "c1406be92adc9b8a7f9418a95d896dd4afff2842", "branch_name": "refs/heads/master", "committer_date": "2017-09-22T15:52:04", "content_id": "b93b59c41b66518c60487b40efc2de9957dcb958", "detected_licenses": [ "Unlicense" ], "directory_id": "7724791a46a102a52b96e2b4fccf4d7ea68cec53", "extension...
stackv2
/** * fifteen.c * * Implements Game of Fifteen (generalized to d x d). * * Usage: fifteen d * * whereby the board's dimensions are to be d x d, * where d must be in [DIM_MIN,DIM_MAX] * * Note that usleep is obsolete, but it offers more granularity than * sleep and is simpler to use than nanosleep; `man uslee...
3.671875
4
2024-11-18T20:14:28.635249+00:00
2017-10-07T14:12:17
29e96377454fcf4968ea6a76e2ed060c085fdc9f
{ "blob_id": "29e96377454fcf4968ea6a76e2ed060c085fdc9f", "branch_name": "refs/heads/master", "committer_date": "2017-10-07T14:12:17", "content_id": "04a88ee20a3104910e43c656eaecaeb2a2f8446d", "detected_licenses": [ "MIT" ], "directory_id": "9a23e623ebee4e9194f451d80f49362531452c98", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> int main(int argc, char **argv) { time_t mytime; struct tm *mytm; mytime = time(NULL); /*Print the system time */ printf("%s\n", ctime(&mytime)); mytm = localtime(&mytime); printf("Year: %d\n", 1900 + mytm->tm_year); printf("Month: %d \n", 1 + mytm->...
3.125
3
2024-11-18T20:14:29.004462+00:00
2015-12-01T20:09:02
efeeee130be14c656f16d4b2a64a172afec3688d
{ "blob_id": "efeeee130be14c656f16d4b2a64a172afec3688d", "branch_name": "refs/heads/master", "committer_date": "2015-12-01T20:09:02", "content_id": "78366a28276c78ce5e06f10a0d5d9495d8a65a38", "detected_licenses": [ "MIT" ], "directory_id": "29e4340950e6e24efc80affc5e043d1b3a260628", "extension": "c"...
stackv2
#include <RASLib/inc/common.h> #include <RASLib/inc/gpio.h> #include <RASLib/inc/time.h> #include <RASLib/inc/spi.h> // Blink the LED to show we're on tBoolean blink_on = true; tSPI * SpiPt; void SendReq(void); void RecReq(void); uint32_t TestData[4]; uint32_t TestData2[4]; uint32_t rTestD[4]; uint32_t rTestD2[4]; uin...
2.59375
3
2024-11-18T20:14:29.110806+00:00
2021-06-14T18:16:31
486c2ac40a7a8ace82f664193c1bf9c43a15f7cb
{ "blob_id": "486c2ac40a7a8ace82f664193c1bf9c43a15f7cb", "branch_name": "refs/heads/master", "committer_date": "2021-06-14T18:16:31", "content_id": "92ff7647d91b1e45402d30c24c482fc05076fdfc", "detected_licenses": [ "MIT" ], "directory_id": "2f92be16606b6022fc1e5b5b59dc2e226c465545", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <string.h> #include <eerno.h> #include <unistd.h> const int portnum = 1243; void complain(int sock); void do_hof(int sock) { const int NOT_AUTH = 0; char buf[500]; //strcpy(buf, "Got it!\n"); ...
2.546875
3
2024-11-18T20:14:29.344539+00:00
2021-06-02T18:57:18
76c383ca442013631cdbc4b640720f7c882de0ef
{ "blob_id": "76c383ca442013631cdbc4b640720f7c882de0ef", "branch_name": "refs/heads/main", "committer_date": "2021-06-02T18:57:18", "content_id": "ea777d2388519f9c7f86f334b353fa2a1c2b9922", "detected_licenses": [ "Unlicense" ], "directory_id": "d023d5d3f7204443fd5583be4d57562262c7bff1", "extension":...
stackv2
#include <stdlib.h> #include <string.h> #define BASE32_CHARSET "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567" #define min(x, y) ((x) < (y) ? (x) : (y)) /* * Generic functions. */ void pad(char *buffer, int length) { for (int i = 0; i < length; i++) buffer[i] = '='; } size_t getlen(size_t length) { return (len...
3.078125
3
2024-11-18T20:14:29.621875+00:00
2023-03-11T22:41:10
727c175042399ccc194f43411f2a9b0aef86c00e
{ "blob_id": "727c175042399ccc194f43411f2a9b0aef86c00e", "branch_name": "refs/heads/main", "committer_date": "2023-03-11T22:41:10", "content_id": "f828142e7ffcb99dd9067c5301dce0649b10dfc1", "detected_licenses": [ "MIT" ], "directory_id": "5ac9fe1ea7495a759472b1e566f43ae2fc109eda", "extension": "c", ...
stackv2
/*! * @file * @brief */ #include <stddef.h> #include <stdbool.h> #include "stm32f0xx_ll_bus.h" #include "stm32f0xx_ll_gpio.h" #include "heartbeat.h" enum { half_period_in_msec = 500, }; static struct { tiny_timer_t timer; } self; static void blink(void* context) { (void)context; LL_GPIO_TogglePin(GPIOA, ...
2.375
2
2024-11-18T20:14:29.690946+00:00
2017-09-23T03:41:19
abb5a2c7ef7f08c00e3dd3c3ed0414f5cc0332d1
{ "blob_id": "abb5a2c7ef7f08c00e3dd3c3ed0414f5cc0332d1", "branch_name": "refs/heads/master", "committer_date": "2017-09-23T03:41:19", "content_id": "669b564fbf070cddb5e8f01169dbb16527f4e67d", "detected_licenses": [ "MIT" ], "directory_id": "a73a37a201de695ce807aa48b5028a5b31626b5e", "extension": "c"...
stackv2
#include<stdio.h> void main(){ float salario, prestacao; printf("Digite o salario\n"); printf("--->>>"); scanf("%f",&salario); printf("Digite a prestacao\n"); printf("--->>>"); scanf("%f",&prestacao); if(prestacao > salario * 0,3) printf("Emprestimo nao concedido\n"); els...
2.890625
3
2024-11-18T20:14:29.766503+00:00
2016-09-18T20:20:41
0bf8fd1111c7ced5ebac0304726e71fd8c63ca1b
{ "blob_id": "0bf8fd1111c7ced5ebac0304726e71fd8c63ca1b", "branch_name": "refs/heads/master", "committer_date": "2016-09-18T20:20:41", "content_id": "34f0157c94979cf381cafbbb088ce52d090ef9a1", "detected_licenses": [ "MIT" ], "directory_id": "a074b4cd3170f65822f23916ceb3e4ae28681247", "extension": "h"...
stackv2
#ifndef GPIO_H #define GPIO_H #define GPIO_MAX 54 /* Functions for Raspberry Pi GPIO. */ enum { GPIO_PIN_FIRST = 0, GPIO_PIN0 = 0, GPIO_PIN1 = 1, GPIO_PIN2 = 2, GPIO_PIN3 = 3, GPIO_PIN4 = 4, GPIO_PIN5 = 5, GPIO_PIN6 = 6, GPIO_PIN7 = 7, GPIO_PIN8 = 8, GPIO_PIN9 = 9, GPIO_PIN10 = 10, GPIO_PIN...
2.4375
2
2024-11-18T20:14:29.842447+00:00
2015-08-28T16:27:24
f62105feffdc70d627323ea5125e274d40cd63b2
{ "blob_id": "f62105feffdc70d627323ea5125e274d40cd63b2", "branch_name": "refs/heads/master", "committer_date": "2015-08-28T16:27:24", "content_id": "8fbe5ba173eec0a1f0b884841fc5251975e1e273", "detected_licenses": [ "MIT" ], "directory_id": "8fa7c4cef1cdf3be2d356b7b426ee4baba93e2fd", "extension": "h"...
stackv2
#include "stdafx.h" //Generates a parsing table for an input LL(1) grammer. See documentation for details on how to call the function // a linked list of terminals/nonterminals struct TerList{ struct TerList *Next; int Value; }; struct TerList **InitializeArr(int __size); int Add(struct TerList *__ptrHeader, int __...
2.296875
2
2024-11-18T20:14:29.937867+00:00
2016-06-23T08:53:21
51ec0367e19af8959e931d1004c9d611e107da93
{ "blob_id": "51ec0367e19af8959e931d1004c9d611e107da93", "branch_name": "refs/heads/master", "committer_date": "2016-06-23T08:53:21", "content_id": "e56ab7cce2552376e87c142d2d03c7c0f2ee2cba", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "03688557b03ec6fec931a43ff88e30ecd3383442", "extens...
stackv2
/* * Copyright (C) Roman Arutyunyan */ #ifndef _NGX_RTMP_LIVE_H_INCLUDED_ #define _NGX_RTMP_LIVE_H_INCLUDED_ #include <ngx_config.h> #include <ngx_core.h> #include "ngx_rtmp.h" #include "ngx_rtmp_cmd_module.h" #include "ngx_rtmp_bandwidth.h" #include "ngx_rtmp_streams.h" typedef struct ngx_rtmp_live_ctx_s ngx_...
2.109375
2
2024-11-18T20:14:30.156543+00:00
2017-06-01T19:44:24
515ece61752c4471c0a4fabdf446362af6993841
{ "blob_id": "515ece61752c4471c0a4fabdf446362af6993841", "branch_name": "refs/heads/master", "committer_date": "2017-06-01T19:44:24", "content_id": "cfc032348a9fdb95b0985f7912bd5bdad2de889f", "detected_licenses": [ "MIT" ], "directory_id": "aab2e0f196d05612ad5d6cf11bc9211c6b32bf17", "extension": "c"...
stackv2
#include <malloc.h> #include <time.h> #include <math.h> #include <stdlib.h> #include "bint.h" void randomize_buffer(word *b, ulong l) { ulong k; for (; l; l--) { b[l - 1] = rand(); for (k = 0; k < WORDSIZE; k += 16) b[l - 1] *= rand(); } } bool bmc_resize(bmc *context, ulong si...
2.703125
3
2024-11-18T20:14:30.885667+00:00
2020-10-17T15:50:54
3e284277916e67f366544dc4becd98b9333fd0ce
{ "blob_id": "3e284277916e67f366544dc4becd98b9333fd0ce", "branch_name": "refs/heads/main", "committer_date": "2020-10-17T15:50:54", "content_id": "e4b25be3982a91f02a222b80df41367f84c64370", "detected_licenses": [ "MIT" ], "directory_id": "760f4e5984425799743a14ceb4a4644fd10e9780", "extension": "c", ...
stackv2
/* * menu.c * This program shows a simple implementation * of a pop-up menu (with sub-menu) using the GLUT library. * * Click right mouse button. */ #include <GL/glut.h> void sub_menu(int); static GLfloat square_color[3] = {1.0, 1.0, 1.0}; void display(void) { glClear (GL_COLOR_BUFFER_BIT); glColor3fv ...
3.203125
3
2024-11-18T18:58:18.319919+00:00
2020-10-18T16:33:47
638968150762caa2bea1d3142888cd6efd53d457
{ "blob_id": "638968150762caa2bea1d3142888cd6efd53d457", "branch_name": "refs/heads/master", "committer_date": "2020-10-18T16:33:47", "content_id": "794ffc471a8658d12f136d1d89e3f3a463cf9509", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "11a64eb4c73a0fceb38372b09b6aa8a3d367d9b3", "extens...
stackv2
#include "funcoes.h" void imprimir(Crianca *criancas, int indice) { printf("\n"); printf("|Nome: %s\n", criancas[indice].nomeCrianca); printf("|Nome do pai: %s\n", criancas[indice].nomePai); printf("|Nome da mae: %s\n", criancas[indice].nomeMae); printf("|Data de nascimento: %d/%d/%d\n", criancas[i...
3.359375
3
2024-11-18T18:58:59.349782+00:00
2017-06-19T13:06:25
8f379991c2a64cd172f928d9119d7f5639418360
{ "blob_id": "8f379991c2a64cd172f928d9119d7f5639418360", "branch_name": "refs/heads/master", "committer_date": "2017-06-19T13:06:25", "content_id": "9dd56ccbac1ba8fa2c09072399af6c6f530d4b71", "detected_licenses": [ "MIT" ], "directory_id": "02d8df6267dd75dd92760ab9b8e924f4f4b8b400", "extension": "c"...
stackv2
#include "string.h" void * memset(void *dest, const int8_t src, size_t n) { void *dp = dest; while (n--) *dp++ = src; return dest; } void *memcpy(void *dest, void *src, size_t n) { char *dp = dest; char *sp = src; while (n--) { *dp++ = *sp++; } return dest; } int8...
2.828125
3
2024-11-18T18:58:59.597076+00:00
2021-09-16T05:41:10
f20748f901689c0f61a7d9e7b972b160f86eab1c
{ "blob_id": "f20748f901689c0f61a7d9e7b972b160f86eab1c", "branch_name": "refs/heads/main", "committer_date": "2021-09-16T05:41:10", "content_id": "a43f4ca871e55bcc5bc4308f41c244190a7b9802", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "61bb985424e4f2ceb15389dd865205f1e112a309", "extensio...
stackv2
/* ****************************************************************************** * @file apt32f102_crc.c * @author APT AE Team * @version V1.02 * @date 2020/11/20 ****************************************************************************** *THIS SOFTWARE WHICH IS FOR ILLUSTRATIVE PURPOSES ONLY W...
2.171875
2
2024-11-18T19:34:54.489743+00:00
2018-12-31T02:27:40
2f590bbc33708edf063c5290071abbf1e12af96f
{ "blob_id": "2f590bbc33708edf063c5290071abbf1e12af96f", "branch_name": "refs/heads/master", "committer_date": "2018-12-31T02:27:40", "content_id": "027e7848d1369e51d7f9e4364f3938a0b3cdcd71", "detected_licenses": [ "MIT" ], "directory_id": "7b61f6c98535a61800968cb78dd15f0c458d6b81", "extension": "h"...
stackv2
/* eeprom_device.h * * Justin S. Selig * Hardware Tier */ #ifndef _eeprom_device_h #define _eeprom_device_h #include <stdint.h> #include <stdio.h> #include <errno.h> #define DEVICE_FILE_NAME "device/eeprom.dat" //---------------------------------------------------------- // eeprom_device_write // // Fakes an EE...
2.484375
2
2024-11-18T19:34:54.538840+00:00
2021-04-26T02:22:13
a79cc3e733fe1d7814a1142ffe07a0cf78728fde
{ "blob_id": "a79cc3e733fe1d7814a1142ffe07a0cf78728fde", "branch_name": "refs/heads/master", "committer_date": "2021-04-26T02:22:13", "content_id": "d3917fbab3959aeb0947af6e3277ff72c572f0c7", "detected_licenses": [ "MIT" ], "directory_id": "c96be8e84626dd9df916271dc14708f6b0ec3626", "extension": "c"...
stackv2
#include "image.h" #include <assert.h> #include <stdlib.h> void heman_draw_points(heman_image* target, heman_points* pts, HEMAN_FLOAT val) { HEMAN_FLOAT* src = pts->data; for (int k = 0; k < pts->width; k++) { HEMAN_FLOAT x = src[0]; HEMAN_FLOAT y = src[1]; src += pts->nbands; i...
2.65625
3
2024-11-18T19:34:55.320434+00:00
2018-06-01T19:26:05
2f71db7b5f84b03bbec35790fa51eed38d534b2f
{ "blob_id": "2f71db7b5f84b03bbec35790fa51eed38d534b2f", "branch_name": "refs/heads/master", "committer_date": "2018-06-01T19:26:05", "content_id": "14dd6b7a1da194cc26520a468a7ae8197ddba039", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f2bf1d6b060b33d8cd63ef37da50a2f41c1ec4af", "extensio...
stackv2
/** * Copyright 2018 Comcast Cable Communications Management, 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 requir...
2.296875
2
2024-11-18T19:34:55.421499+00:00
2023-02-16T11:27:40
622fc78d5d106b276406f18179e78f8785c4baf0
{ "blob_id": "622fc78d5d106b276406f18179e78f8785c4baf0", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "9a4a4e78bfcd82d5240115910b81c5e7b7eee387", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2016 Open-RnD Sp. z o.o. * * SPDX-License-Identifier: Apache-2.0 */ /** * @brief Driver for UART port on STM32 family processor. * */ #ifndef ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_ #define ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_ #include <zephyr/drivers/pinctrl.h> #include <stm32_ll_usart.h> /* ...
2.171875
2
2024-11-18T19:34:56.299912+00:00
2022-07-31T08:11:25
e784754e93a644de9b4a1d77cb657ad16af97fab
{ "blob_id": "e784754e93a644de9b4a1d77cb657ad16af97fab", "branch_name": "refs/heads/master", "committer_date": "2022-07-31T08:11:25", "content_id": "e29d8518cf27050714743a3da9dce84a61ed341e", "detected_licenses": [ "MIT" ], "directory_id": "fbe2ac502cb6542638d3ab50cf15c1ffa515cb4e", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <time.h> #include <unistd.h> #include <sys/time.h> #include <sys/types.h> #define WAIT 60 static const char* flag = "[REDACTED]"; char* hands[3] = {"rock", "paper", "scissors"}; char* loses[3] = {"paper", "scissors", "rock"};...
2.96875
3
2024-11-18T19:34:56.781886+00:00
2023-08-06T04:30:26
aeaa7aa2337f61868aff5341f3a093576bb35902
{ "blob_id": "aeaa7aa2337f61868aff5341f3a093576bb35902", "branch_name": "refs/heads/master", "committer_date": "2023-08-06T04:30:26", "content_id": "99e0ce1e3e8efab8fe703923bedb109b55eab191", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4ce87e69f189f840b883c50a8643025e91fbdbba", "extensio...
stackv2
/* * file: prettyprint.c * * description: This program takes two arguments. The name of the input * file and the maximum line length (M). It prints the * optimal division of the words into lines. This * implementation is a straightforward O(nM) algorithm. */ /* Include standard C headers for IO operation...
3.40625
3
2024-11-18T19:34:56.915146+00:00
2017-08-27T05:11:59
d6f13fe86ae251b52cddee3fa65096eecce178a7
{ "blob_id": "d6f13fe86ae251b52cddee3fa65096eecce178a7", "branch_name": "refs/heads/master", "committer_date": "2017-08-27T05:11:59", "content_id": "421beec89cb91d57d13b3e69fae5ef90df2d0c1c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "43409a4ef5418d631c2c1713365463d57834077a", "extensio...
stackv2
#include <stdio.h> #include <cs50.h> #include <math.h> //bool int MyFsumsum(long long c); int main(void){ //bool int MyFsumsum(long long c){ long long c; long long d; int di; int sumznep = 0; int sumzpar = 0; int sumsum = 0; do{ printf("Number: "); c= get_long_long(); if((sumsum == 0 &...
2.375
2
2024-11-18T19:34:57.000970+00:00
2020-04-25T05:23:16
dd325b4a3e4a3b00e5d54f63cdebc5df0a0c6e37
{ "blob_id": "dd325b4a3e4a3b00e5d54f63cdebc5df0a0c6e37", "branch_name": "refs/heads/master", "committer_date": "2020-04-25T05:23:16", "content_id": "a662e5e68a2b7b5d4a1674e40afc1b380652fb1b", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ab29742037f569530a7c1cdb44e5212c7cec975c", "extensio...
stackv2
#include <stddef.h> #include <stdint.h> #include "memops.h" #include "hmac.h" #include "sha512.h" #include "sha1.h" #include "constants.h" #define KDF_USE_HMAC // <- use with length-extension vulnerable hashes (md-based like SHA2) void hmac_sha1(uint8_t key[HASH_BLKSIZE], const uint8_t* msg, size_t msgsize, uint...
2.609375
3
2024-11-18T19:34:57.082194+00:00
2022-08-23T11:39:21
49d7b2cd284698582bd6196945943cd684a3cb7b
{ "blob_id": "49d7b2cd284698582bd6196945943cd684a3cb7b", "branch_name": "refs/heads/master", "committer_date": "2022-08-23T11:39:21", "content_id": "23067bf0b7a579691b3460a80b9983897a712015", "detected_licenses": [ "MIT" ], "directory_id": "f0daff9d5cf8b9c82e4e3608575677446a0853f0", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "uri_encode.h" /* uri_encode.c - functions for URI percent encoding / decoding */ size_t uri_encode (const char *src, const size_t len, char *dst) { size_t i = 0, j = 0; while (i < len) { const char octet = src[i++]; const int32_t code...
2.796875
3
2024-11-18T19:34:57.225401+00:00
2022-10-18T00:18:31
bf2cb221f35c43601219b95750967b9d2f32949e
{ "blob_id": "bf2cb221f35c43601219b95750967b9d2f32949e", "branch_name": "refs/heads/master", "committer_date": "2022-10-18T00:28:23", "content_id": "208150dcb95b4ca0f02d51df5245cfde5008d233", "detected_licenses": [ "MIT" ], "directory_id": "b2533795ce207d24c552d5bf4336f4150713a197", "extension": "c"...
stackv2
/* * paf_tile: Greedily assign a "level" to each alignment, so that alignments with the lowest level are tesslating, high-scoring alignments. * * Released under the MIT license, see LICENSE.txt * * Rough outline: * (1) Load local alignments files (PAF) * (2) Sort alignments by score, from best-to-worst * (3) Cr...
2.84375
3
2024-11-18T19:34:57.301603+00:00
2009-10-10T17:37:18
6ecaf0a587019ea396cae13ef2cf6e0512162f28
{ "blob_id": "6ecaf0a587019ea396cae13ef2cf6e0512162f28", "branch_name": "refs/heads/master", "committer_date": "2009-10-10T17:37:18", "content_id": "408080a396a07dfdc96a9f0802dc47447a37a45b", "detected_licenses": [ "TCL" ], "directory_id": "3e555464fc20f3e90ee240aed1f6e8ab887ff7fe", "extension": "c"...
stackv2
/* * tclMain.c -- * * Main program for Tcl shells and other Tcl-based applications. * * Copyright (c) 1988-1994 The Regents of the University of California. * Copyright (c) 1994-1997 Sun Microsystems, Inc. * Copyright (c) 2000 Ajuba Solutions. * * See the file "license.terms" for information on usage and redi...
2.03125
2
2024-11-18T19:34:57.373795+00:00
2021-09-27T12:14:24
4c5f8ec7d669560875f6fc7ee93af9ba32317927
{ "blob_id": "4c5f8ec7d669560875f6fc7ee93af9ba32317927", "branch_name": "refs/heads/master", "committer_date": "2021-09-27T12:14:24", "content_id": "33eb757d793001801af358627270943d83f40c6f", "detected_licenses": [ "MIT" ], "directory_id": "42aff8f66a731e274cd688efaba96f32aa889279", "extension": "c"...
stackv2
// Standard Library Header Files #include <stdbool.h> #include "../test_lib/test_lib.h" // Module Header Files //#include "../../path_to_header_file/header_file.h" // Global Variables // Test Functions bool test_one() { return (1 == 1); } bool test_two() { return (2 == 2); } //Number Of Tests To Run #def...
2.375
2
2024-11-18T19:34:57.444820+00:00
2021-06-06T05:57:33
fc14cb5dac328d2f83ea638bba5f6b7a437d2738
{ "blob_id": "fc14cb5dac328d2f83ea638bba5f6b7a437d2738", "branch_name": "refs/heads/main", "committer_date": "2021-06-06T05:57:33", "content_id": "794e49ade398a30e1d8fd0ab8210af5b2e1dd432", "detected_licenses": [ "MIT" ], "directory_id": "bb78e5d2d1894aad64c5b5ed4634a0dd112e3018", "extension": "c", ...
stackv2
#include "msp430.h" // Get period of waveform from freuency of note int getperiod(int frequency) { int period = 1000000/frequency; return period; } // Waits by decrementing counter 10000 times (one quarter note) void wait() { for(volatile int i = 12500; i > 0; i--) { } } // Plays given note, for a period of wait...
2.671875
3
2024-11-18T19:34:58.041242+00:00
2020-08-09T20:18:23
e4ceed6585df9c1ef9961ffd57ccc2a8e2e74b38
{ "blob_id": "e4ceed6585df9c1ef9961ffd57ccc2a8e2e74b38", "branch_name": "refs/heads/master", "committer_date": "2020-08-09T20:18:23", "content_id": "3b1c5f3f7c08cdbb60f9b0d1bb793df325ecce8e", "detected_licenses": [ "MIT" ], "directory_id": "8970365b7a53bf6da4c0a824aa1e8768c133beab", "extension": "c"...
stackv2
#include <stdio.h> #include "utone.h" #define NOTEDUR 8000 typedef struct{ ut_posc3 *posc[8]; ut_tenv *tenv[8]; ut_revsc *rev; ut_ftbl *ft; }UserData; void make_note(ut_data *ut, ut_tenv *tenv, ut_posc3 *posc3, unsigned long counter, unsigned long clock, UTFLOAT *output) { unsigned long count = c...
2.46875
2
2024-11-18T19:34:58.164228+00:00
2016-01-27T09:29:19
483065a9eec6a17bb355ffa601217dd76f431146
{ "blob_id": "483065a9eec6a17bb355ffa601217dd76f431146", "branch_name": "refs/heads/develop", "committer_date": "2016-01-27T09:29:19", "content_id": "034d51d823e45cea064b41488a1262593731b832", "detected_licenses": [ "Apache-2.0" ], "directory_id": "5583f01860f4014978c5fe9fcec8e75604bc75df", "extensi...
stackv2
#include "fireball.h" Entity* fireball_create(float x, float y, char* direction) { Entity* enemy = entity_create(); enemy->component_mask = CMP_BULLET | CMP_POSITION | CMP_VELOCITY | CMP_COLLISION | CMP_RENDER | CMP_STRAIGHT_MOVEMENT; enemy->bullet.type = "fireball"; enemy->position.x = x; enemy->p...
2.3125
2
2024-11-18T19:34:58.259334+00:00
2023-07-07T18:41:40
5df141829a5ac05bc01bbc3c0b87a20df50f6ee4
{ "blob_id": "5df141829a5ac05bc01bbc3c0b87a20df50f6ee4", "branch_name": "refs/heads/master", "committer_date": "2023-07-07T18:41:40", "content_id": "1e36c5ddab9722d066aa1cd693f2dda6f2333851", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c26d7b0ed875357278e61627da2da0650da77986", "extens...
stackv2
/* * Copyright (c) 1983 Regents of the University of California, * All rights reserved. Redistribution permitted subject to * the terms of the Berkeley Software License Agreement. */ #include "externs.h" void dig() { if (testbit(inven,SHOVEL)){ puts("OK"); Time++; switch(position){ case 144: /* copse n...
2.21875
2
2024-11-18T19:34:58.418175+00:00
2020-06-17T07:32:58
99501e3dda2551e16089ed4334c8f66df43fb2fd
{ "blob_id": "99501e3dda2551e16089ed4334c8f66df43fb2fd", "branch_name": "refs/heads/master", "committer_date": "2020-06-17T07:32:58", "content_id": "0c5175fe05780aa33d435d87a7f16607d55464ac", "detected_licenses": [ "MIT" ], "directory_id": "db14659483d57a3386163fb6c6a203175a3bf978", "extension": "c"...
stackv2
#include "types.h" #include "stat.h" #include "user.h" int MAX_LIMIT = 10; int read_inputfile(char *filename, char *actions, int *sleeptimes) { int fd; int bufferSize = 1024; int bytesRead; char buffer[bufferSize]; fd = open(filename, 0); bytesRead = read(fd, buffer, bufferSize); // find number of lines int...
3.109375
3
2024-11-18T19:34:58.908458+00:00
2020-12-14T22:28:04
418da74c1cabd946f02820ca2b53a3f84f5330a0
{ "blob_id": "418da74c1cabd946f02820ca2b53a3f84f5330a0", "branch_name": "refs/heads/master", "committer_date": "2020-12-14T22:28:04", "content_id": "9a8e371d09e23b70ab66090fa52853317ab279ae", "detected_licenses": [ "MIT" ], "directory_id": "d24fd8eb9c93395f8477bd5d0ab3333493038660", "extension": "c"...
stackv2
/* Out of memory error message * Distributed under The MIT License * (as if anything so trivial deserves a license) * By Jody Bruchon <jody@jodybruchon.com> * (as if anything so trivial will serve my ego) */ #include <stdio.h> #include <stdlib.h> #include "oom.h" extern void oom(const char * const restrict msg) ...
2.140625
2
2024-11-18T19:34:59.024494+00:00
2022-03-12T03:16:16
d8aca0221e752529f00c11766611d2a9a9d3ec3e
{ "blob_id": "d8aca0221e752529f00c11766611d2a9a9d3ec3e", "branch_name": "refs/heads/master", "committer_date": "2022-03-12T03:16:16", "content_id": "301ea4432706b101b3c4feb2a8507d2a4256e3e9", "detected_licenses": [ "MIT" ], "directory_id": "e912c5622fb8d5867cf7bf760d53871e79534310", "extension": "c"...
stackv2
#include <string.h> #include "adc_read.h" #include "can_transmit.h" #include "dispatcher.h" #include "ms_test_helper_can.h" #include "ms_test_helpers.h" typedef enum { TEST_CAN_EVENT_TX = 0, TEST_CAN_EVENT_RX, TEST_CAN_EVENT_FAULT, NUM_TEST_CAN_EVENTS, } TestCanEvent; static GpioAddress s_test_adc_pin_addr =...
2.46875
2
2024-11-18T19:34:59.451746+00:00
2022-07-20T02:35:14
41daddb833b7ced8fb21665d67f11ce7564a2acb
{ "blob_id": "41daddb833b7ced8fb21665d67f11ce7564a2acb", "branch_name": "refs/heads/master", "committer_date": "2022-07-20T02:35:14", "content_id": "96435648097952e04ebccd2f495716986c130220", "detected_licenses": [ "ISC" ], "directory_id": "42778e20949a4d1f8bb52cea4a1e6b240c5c2100", "extension": "c"...
stackv2
/* Simple C library for querying your IP address using http://ipify.org * * Copyright (c) 2015-2022 Joachim Wiberg <troglobit@gmail.com> * * 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 thi...
2.234375
2
2024-11-18T19:35:00.832585+00:00
2018-10-14T17:58:06
1afe55ccc22906d112100ccd7a26b49737c2c389
{ "blob_id": "1afe55ccc22906d112100ccd7a26b49737c2c389", "branch_name": "refs/heads/master", "committer_date": "2018-10-14T17:58:06", "content_id": "ed8852c1481a7463e76ce56c10b503f0265f28e7", "detected_licenses": [ "Apache-2.0" ], "directory_id": "984b56190546b21a8007009dd3db9ca2bacfdcdd", "extensio...
stackv2
/* * Copyright 2018 Vladimir Balun * * 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.609375
3
2024-11-18T19:35:01.070067+00:00
2023-07-14T21:37:19
691bc060045d2e78306f56c6cd4e5c78cc4e637f
{ "blob_id": "691bc060045d2e78306f56c6cd4e5c78cc4e637f", "branch_name": "refs/heads/master", "committer_date": "2023-07-14T21:37:19", "content_id": "1448f7522047d21d59ff47ec4c39f3f974a2a9a9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d0ac17e80437561bcfe9370fa7444fb4ff3273ed", "extensio...
stackv2
#ifndef SC_BYTEBUF_H #define SC_BYTEBUF_H #include "common.h" #include <stdbool.h> #include <stdint.h> struct sc_bytebuf { uint8_t *data; // The actual capacity is (allocated - 1) so that head == tail is // non-ambiguous size_t alloc_size; size_t head; // writter cursor size_t tail; // reader...
2.859375
3
2024-11-18T19:35:01.225230+00:00
2023-08-19T09:59:45
db11459cb561cb83b158892e90cfa48288445a1b
{ "blob_id": "db11459cb561cb83b158892e90cfa48288445a1b", "branch_name": "refs/heads/master", "committer_date": "2023-08-19T10:54:51", "content_id": "a9f375fd5a078a4ba4689e2b1a33a08f7fddd44c", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "3e4fcc5e2d14f759f8e9e061857cd5be0abcfb78", "extens...
stackv2
/* Copyright (C) 2001 by Alex Kompel <shurikk@pacbell.net> */ /* NetHack may be freely redistributed. See license for details. */ #include "winMS.h" #include "mhstatus.h" #include "mhmsg.h" #include "mhfont.h" #define NHSW_LINES 2 #define MAXWINDOWTEXT BUFSZ typedef struct mswin_nethack_status_window { int in...
2.125
2
2024-11-18T19:35:02.078038+00:00
2013-12-13T16:25:05
c44e7ac5c89242da6fc2cbae219a72cea1513f85
{ "blob_id": "c44e7ac5c89242da6fc2cbae219a72cea1513f85", "branch_name": "refs/heads/master", "committer_date": "2013-12-13T16:25:05", "content_id": "347f06bcbba05aabab52efb4092215e9e7290528", "detected_licenses": [ "MIT" ], "directory_id": "3c070505b691c045bb3ad5efe45202b9d0a5c514", "extension": "h"...
stackv2
/****************************************************************************** * * * The MIT License (MIT) * * *...
2.1875
2
2024-11-18T19:35:02.146526+00:00
2021-10-28T21:47:59
3e3c61556561e55e1ea6c910d25958f3c24039ed
{ "blob_id": "3e3c61556561e55e1ea6c910d25958f3c24039ed", "branch_name": "refs/heads/master", "committer_date": "2021-10-28T21:47:59", "content_id": "2535d8e1a6972ef0a7e8708e1022b98dd266bc81", "detected_licenses": [ "MIT" ], "directory_id": "1825c47773944b11240bb568c2af7bf7b0ae075e", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> // 1 type - H // 2 type - S // 3 type - O typedef struct Message { long mtype; } Message; enum atom { hydrogen = 1, sulfur, oxygen }; void fetchAtoms(int msgQueueId, int atomType, int times...
2.71875
3
2024-11-18T19:35:02.302821+00:00
2023-08-17T16:08:06
1565518759de62781074c48ed66d12edc93d11ac
{ "blob_id": "1565518759de62781074c48ed66d12edc93d11ac", "branch_name": "refs/heads/main", "committer_date": "2023-08-17T16:08:06", "content_id": "f53c1960c064269b0b5373e74c26293e308bc89e", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066", "extensio...
stackv2
#include <petscsys.h> #include <errno.h> #if defined(PETSC_HAVE_PWD_H) #include <pwd.h> #endif #include <ctype.h> #include <sys/stat.h> #if defined(PETSC_HAVE_UNISTD_H) #include <unistd.h> #endif #if defined(PETSC_HAVE_SYS_UTSNAME_H) #include <sys/utsname.h> #endif #if defined(PETSC_HAVE_IO_H) #include <io.h> ...
2.46875
2
2024-11-18T19:35:02.512941+00:00
2017-06-25T22:02:49
4deb749a0af8f0c4df2b16177f7095986a627629
{ "blob_id": "4deb749a0af8f0c4df2b16177f7095986a627629", "branch_name": "refs/heads/master", "committer_date": "2017-06-25T22:02:49", "content_id": "5ab466ff509c0a8164fa9634001f2cacaa927393", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "3af01d052fed576dcf51db0cf2d07d855f7d7591", "extens...
stackv2
/* * Copyright (c) 2017, [Ribose Inc](https://www.ribose.com). * * 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, this list of condi...
2.125
2
2024-11-18T19:35:03.265586+00:00
2021-10-23T20:21:42
9dc94bcd28d2e3fd20636532ba5e68c6c7cce5cf
{ "blob_id": "9dc94bcd28d2e3fd20636532ba5e68c6c7cce5cf", "branch_name": "refs/heads/master", "committer_date": "2021-10-23T20:21:42", "content_id": "9e5bc1b57e28406fdf7b45715719ff2eaa766804", "detected_licenses": [ "MIT" ], "directory_id": "12bfc97bbbcddae2427754f42237a0d1192138c3", "extension": "c"...
stackv2
#include <map.h> ECS_BITMASK(Toppings, { Bacon = 0x1, Lettuce = 0x2, Tomato = 0x4, Onion = 0x8, Egg = 0x10, Turkey = 0x20 }) ECS_STRUCT(Sandwich, { int32_t cost; Toppings toppings; }) ECS_STRUCT(Menu, { ecs_map(ecs_string_t, Sandwich) items; }) int main(int argc, char *argv[]) { ...
2.734375
3
2024-11-18T19:35:03.333865+00:00
2022-12-12T16:35:29
82c1b48a94fb63d5dd4dc8c6c23371ce44f5e6d1
{ "blob_id": "82c1b48a94fb63d5dd4dc8c6c23371ce44f5e6d1", "branch_name": "refs/heads/master", "committer_date": "2022-12-12T16:35:29", "content_id": "75fb08bf2b893b8b47cf102a3713bbe8ec830d05", "detected_licenses": [ "MIT" ], "directory_id": "51a62cf6043094e32b4c75da5fe20ac31f53d711", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> /*O typedef serve para apelidar o nome de uma struct por exemplo ou até mesmo um tipo de dado, da seguinte forma: typedef nome_struct nome_apelidado */ struct cadastro{ char nome[50]; int idade, telefone; } typedef cadastro, ficha; int main() { ficha ...
3.515625
4
2024-11-18T19:35:03.486874+00:00
2021-03-10T09:40:49
e3c051ae3d0d57d8b4f15c11df1cbca47335a94f
{ "blob_id": "e3c051ae3d0d57d8b4f15c11df1cbca47335a94f", "branch_name": "refs/heads/master", "committer_date": "2021-03-10T09:40:49", "content_id": "2c055a7c2101449ea55600beb322cebf668e7a0d", "detected_licenses": [ "MIT" ], "directory_id": "e319268d2e1da33d6d18d9c6c6277bb97843ad8c", "extension": "c"...
stackv2
#include "BMS_BatteryCheck.h" BatteryData_t Temparature_Specification = { 0.0, 45.0, 2.25, 42.75, "Temparature" }; /** *************************************************************************************************** * Function Name: IsTemperatureStable * * Function Description: Ch...
2.34375
2
2024-11-18T19:35:03.783673+00:00
2023-02-08T08:05:17
bda3acdf11ad838e7f23b752d25d71c0a57f3f78
{ "blob_id": "bda3acdf11ad838e7f23b752d25d71c0a57f3f78", "branch_name": "refs/heads/master", "committer_date": "2023-02-08T08:05:17", "content_id": "681057d705e0abc66dd73c10047dfc0dd2974211", "detected_licenses": [ "MIT" ], "directory_id": "0e311f3197baac2efea92039be9fce5d648a8969", "extension": "c"...
stackv2
#include <stdio.h> char lower_to_upper(char c1 ) /* function definition */ { char c2; c2 = (c1 >= 'a' && c1 <= 'z') ? ('A' + c1 - 'a') : c1 ; return(c2) ; } int main() { char lower, upper; printf ( "Please enter a lowercase character: "); scanf("%c", &lower); upper = lower_to_upper(lower); printf ( "\nThe upper...
3.53125
4
2024-11-18T19:35:06.312670+00:00
2023-06-23T10:11:23
79dff80b3c5b1b71f678cde068d0facfacead458
{ "blob_id": "79dff80b3c5b1b71f678cde068d0facfacead458", "branch_name": "refs/heads/main", "committer_date": "2023-06-23T10:11:23", "content_id": "41ce619631fd81a377fa808cf1b3d1509eca6cec", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "803898f95f34521f4fc08ff42534888367ff4028", "extensio...
stackv2
/* * Set_Edition_MasterTab - VERSION: %I% %E% %T% */ #include <mel_bufr.h> #if PROTOTYPE_NEEDED int Set_Edition_MasterTab ( BUFR_Info_t* BI, int edition, int master_table_num ) #else int Set_Edition_MasterTab ( BI, edition, master_table_num ) BUFR_Info_t* BI; int edition; int master_table_num; #endif { BI...
2.078125
2
2024-11-18T19:35:06.400401+00:00
2021-01-15T11:06:04
098cf99f83322e802e2ad9404a410f03ab626206
{ "blob_id": "098cf99f83322e802e2ad9404a410f03ab626206", "branch_name": "refs/heads/master", "committer_date": "2021-01-15T11:06:04", "content_id": "18b28c9d61ac5b808b62486d7a3c4f2a910ab3ca", "detected_licenses": [ "MIT" ], "directory_id": "a83a76dfd1d13699f3cc513a3433ecd2aa515789", "extension": "c"...
stackv2
#include <FreeRTOS.h> #include <task.h> #include <timers.h> #include <stm32f4xx_hal.h> // STM32F4-Discovery green led - PD12 #define LED_PORT GPIOD #define LED_PIN GPIO_PIN_12 #define LED_PORT_CLK_ENABLE __HAL_RCC_GPIOD_CLK_ENABLE static void blinky(void *arg) { for(;;) { ...
2.171875
2
2024-11-18T19:35:06.600191+00:00
2018-04-23T21:23:41
b92b2346bd5a56e470f170e4c16107f82baf5aaf
{ "blob_id": "b92b2346bd5a56e470f170e4c16107f82baf5aaf", "branch_name": "refs/heads/develop", "committer_date": "2018-04-23T21:23:41", "content_id": "ad71148a3d465e538a8b9ffa361efe36a2a9eb38", "detected_licenses": [ "BSL-1.0" ], "directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d", "extension"...
stackv2
/* *********************************************************************** */ /* *********************************************************************** */ /* STRFUNCS String and Memory Functions Library Module */ /* *********************************************************************** */ /* File Name : %M% ...
2.03125
2
2024-11-18T19:35:07.098879+00:00
2023-08-08T09:39:15
cf49a4e074d545b6fee6308e9c9cea99e6483089
{ "blob_id": "cf49a4e074d545b6fee6308e9c9cea99e6483089", "branch_name": "refs/heads/master", "committer_date": "2023-08-08T09:39:15", "content_id": "81e991f5032f34c3f1bcb8179b3f7928db8599f1", "detected_licenses": [ "ISC" ], "directory_id": "f8cc1dd4b1378490386def2e0571561fab10b275", "extension": "c"...
stackv2
/* ISC license. */ #include <skalibs/nonposix.h> #include <sys/socket.h> #include <netinet/in.h> #include <string.h> #include <errno.h> #include <skalibs/uint16.h> #include <skalibs/socket.h> ssize_t socket_send4 (int s, char const *buf, size_t len, char const *ip, uint16_t port) { ssize_t r ; struct sockaddr_i...
2.34375
2
2024-11-18T19:35:07.287101+00:00
2023-08-17T06:56:31
b71e9affe055830a779f230e704dece9bb81793c
{ "blob_id": "b71e9affe055830a779f230e704dece9bb81793c", "branch_name": "refs/heads/main", "committer_date": "2023-08-17T06:56:31", "content_id": "1aeb7fc1fe91b621b1b05834a68273214c8355c6", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8149d6751e142ecbc200b43c2da2d5a94c0735df", "extensio...
stackv2
/** * @file sndio.c SndIO sound driver * * Copyright (C) 2014 Alfred E. Heggestad */ #include <stdlib.h> #include <string.h> #include <sndio.h> #include <re.h> #include <rem.h> #include <baresip.h> /** * @defgroup sndio sndio * * This module implements audio driver for OpenBSD sndio */ struct ausrc_st { s...
2.453125
2
2024-11-18T19:35:07.528659+00:00
2016-04-11T17:15:20
b0a2c879ba0f134ed04ac37572374c68bd23675a
{ "blob_id": "b0a2c879ba0f134ed04ac37572374c68bd23675a", "branch_name": "refs/heads/master", "committer_date": "2016-04-11T17:15:20", "content_id": "b6943e4193a4218bf567d3ea9876ae2820fa5760", "detected_licenses": [ "MIT" ], "directory_id": "486f79c1673d135e3f886a9f05bfa69c2624973d", "extension": "c"...
stackv2
#include "libortc.h" #include "events.h" #include "common.h" void *_ortc_job_onConnected(void *ptr){ ortc_context *context; context = (ortc_context *) ptr; context->onConnected(context); pthread_detach(pthread_self()); return 0; } void _ortc_fireOnConnected(ortc_context *context){ pthread_t thr; if(context->o...
2.125
2
2024-11-18T19:35:07.828869+00:00
2018-12-07T07:03:18
b38f3d1a34c7776e6aa8fceb1acfe7ee122f0d12
{ "blob_id": "b38f3d1a34c7776e6aa8fceb1acfe7ee122f0d12", "branch_name": "refs/heads/master", "committer_date": "2018-12-07T07:03:18", "content_id": "446544d853f0c80e6f99de49c2a239435533583a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1a5ab9009f113e2746bcdca6f362903fec321feb", "extensio...
stackv2
#include <stdlib.h> #include <stdio.h> #include "contiki.h" #include "contiki-lib.h" #include "dev/watchdog.h" #include "topologycontrol-aktc.h" #include "../../app-conf.h" #include "../../lib/boot.h" #include "../../lib/components.h" #include "../../lib/neighbors.h" #include "../../lib/networkaddr.h" #include "../../...
2.140625
2
2024-11-18T19:35:07.908422+00:00
2021-05-13T21:16:04
b757efe7518991c0f0810745ff1bc597d55bf943
{ "blob_id": "b757efe7518991c0f0810745ff1bc597d55bf943", "branch_name": "refs/heads/main", "committer_date": "2021-05-13T21:16:04", "content_id": "f121b16c5dec9aa24a13f3f98bd31298b13e7c8c", "detected_licenses": [ "MIT" ], "directory_id": "81bac81028e9347bd4ae38a0e46af66ad05dbcd5", "extension": "c", ...
stackv2
/* Autor: Rub\'i E. Ram\'irez Mili\'an Compliador: gcc (Debian 8.3.0-6) 8.3.0 Para compilar: gcc -o problema2 problema2.c Fecha: Sun Apr 18 00:18:31 CST 2021 Librerías: stdio (u otras) Entradas, Salidas, Resumen: */ //Librerias #include <stdio.h> //Declaraci\'on e inicializaci\'on de variables globales void print_...
3.59375
4
2024-11-18T19:35:08.633565+00:00
2020-11-30T19:09:49
384f444811764d15bebe2534fe5517b5226a4b36
{ "blob_id": "384f444811764d15bebe2534fe5517b5226a4b36", "branch_name": "refs/heads/master", "committer_date": "2020-11-30T19:09:49", "content_id": "672415615cec1d2b78e8049729775ca90d21d6fd", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "9646047ca1f4b6f4a54e749d8670b11d940bf616", "extens...
stackv2
/** * @file manifest.h */ #ifndef SPM_MANIFEST_H #define SPM_MANIFEST_H #define SHA256_DIGEST_STRING_LENGTH (SHA256_DIGEST_LENGTH * 2) + 1 #define SPM_MANIFEST_SEPARATOR '|' #define SPM_MANIFEST_SEPARATOR_MAX 7 #define SPM_MANIFEST_NODATA "*" #define SPM_MANIFEST_HEADER "# SPM PACKAGE MANIFEST" #define SPM_MANIFEST...
2.078125
2
2024-11-18T19:35:08.885534+00:00
2015-03-05T07:52:36
99354299fe732044e413913ef8905f1b085617f4
{ "blob_id": "99354299fe732044e413913ef8905f1b085617f4", "branch_name": "refs/heads/master", "committer_date": "2015-03-05T07:52:36", "content_id": "26417690c8528790a0cfdc48e426cbdc0a6997b0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0af3587f57c1c62e78dbff4ae9fe248f87f333d8", "extensio...
stackv2
// Copyright 2014 Colin Sherratt // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
2.09375
2
2024-11-18T19:35:09.666433+00:00
2020-04-12T23:02:36
c492d968677d91ad411a8fc95018e54edc2cc0e8
{ "blob_id": "c492d968677d91ad411a8fc95018e54edc2cc0e8", "branch_name": "refs/heads/master", "committer_date": "2020-04-12T23:02:36", "content_id": "ecd756e65363c961993e84cfa52aa56f5177bfce", "detected_licenses": [ "MIT" ], "directory_id": "e2c3e37a817ee6197a1cfcd8969c4e9285632574", "extension": "c"...
stackv2
#include <stdio.h> #define NILE_INCLUDE_PROCESS_API #include "nile.h" #include "test/nile-print.h" #include "gezira.h" #include "gezira-image.h" #include "utils/all.h" #define NBYTES_PER_THREAD 1000000 #define WINDOW_WIDTH 600 #define WINDOW_HEIGHT 600 #define NSTARS 500 #define PEN_WIDTH 5 #define MITER_LIMIT 4 #def...
2.15625
2
2024-11-18T19:35:10.534574+00:00
2015-06-30T20:23:05
4a4ad9cfd1ea973d81eb357d05a2652bee90207d
{ "blob_id": "4a4ad9cfd1ea973d81eb357d05a2652bee90207d", "branch_name": "refs/heads/master", "committer_date": "2015-06-30T20:23:05", "content_id": "d2b8218402842a879e4f704c2eed9021bdf1fccd", "detected_licenses": [ "Intel" ], "directory_id": "73b5d880fa06943c20ff0a9aee9d0c1d1eeebe10", "extension": "...
stackv2
/* snoop.c tab:4 * * To be used with apps/snooper/SNOOPER.c * Similar to listen.c but support different length of packet. * The first byte is packet length * * Author: Wei Ye, Eric Osterweil * */ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <t...
2.46875
2
2024-11-18T19:35:10.659762+00:00
2017-11-08T10:21:56
f3f6b0fd454ce7e9bbe5b6a9d3cc4044b0d43e04
{ "blob_id": "f3f6b0fd454ce7e9bbe5b6a9d3cc4044b0d43e04", "branch_name": "refs/heads/master", "committer_date": "2017-11-08T10:21:56", "content_id": "6cdf3364b498e290884eefe637a3b03a4fa0cd5f", "detected_licenses": [ "MIT" ], "directory_id": "11d3da0466bc7fa35786b658e40c7e78ce3f20da", "extension": "c"...
stackv2
#include <netinet/ip.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> int main() { int sockfd = socket(AF_INET, SOCK_DGRAM, 0); if (sockfd < 0) { fprintf(stderr, "socket error: %s\n", strerror(errno)); return EXIT_FAILURE; } struct soc...
2.890625
3
2024-11-18T19:35:10.757248+00:00
2019-05-09T13:42:41
e2f1abc14c82aee64c6afd378cd18d859e712d71
{ "blob_id": "e2f1abc14c82aee64c6afd378cd18d859e712d71", "branch_name": "refs/heads/master", "committer_date": "2019-05-09T13:42:41", "content_id": "99aad4ddcb12bdac6bc5e9be720724ff0ba9ad14", "detected_licenses": [ "MIT" ], "directory_id": "dbe0f4a287cb8ea5f3c218ecd6d35583db7170e9", "extension": "c"...
stackv2
#include <fcntl.h> main() { int arquivo = open("testeSync.txt", O_RDWR | O_CREAT, 0777); int i = 0; while (i < 1000) { write(arquivo, "0", 1); fsync(arquivo); i++; } close(arquivo); }
2.46875
2
2024-11-18T19:35:11.061357+00:00
2020-08-13T03:32:13
0f0e396eb3c0b63d1f2579cebc37cd3b10aa38ea
{ "blob_id": "0f0e396eb3c0b63d1f2579cebc37cd3b10aa38ea", "branch_name": "refs/heads/master", "committer_date": "2020-08-13T03:32:13", "content_id": "0fbbd45345664902b08e513dc9123ea8f4f69c96", "detected_licenses": [ "MIT" ], "directory_id": "76bcaa12198ed8f644694fdc7c6107440835c351", "extension": "c"...
stackv2
/* * The MIT License (MIT) * * Copyright (c) 2019 Ha Thach (tinyusb.org) * * 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...
2.328125
2
2024-11-18T19:35:11.150224+00:00
2023-07-12T07:38:29
cec4c8e2e79df0f05c544ade22bc622ef6fe4779
{ "blob_id": "cec4c8e2e79df0f05c544ade22bc622ef6fe4779", "branch_name": "refs/heads/master", "committer_date": "2023-07-12T07:38:29", "content_id": "5778b8a7e3e9de912340ac401df7f6d67bc9c197", "detected_licenses": [ "MIT" ], "directory_id": "52c8ed39b32ccc7c0673278c1adea3638797c9ff", "extension": "c"...
stackv2
/* * kernel/command/cmd-rm.c * * Copyright(c) 2007-2023 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Sof...
2.3125
2
2024-11-18T19:35:11.594517+00:00
2021-05-22T07:20:33
c4561c49949ab7beec62a5582702af10bc385083
{ "blob_id": "c4561c49949ab7beec62a5582702af10bc385083", "branch_name": "refs/heads/main", "committer_date": "2021-05-22T07:20:33", "content_id": "ceff6ac735283c61280c9382701e52b5ba3deae4", "detected_licenses": [ "MIT" ], "directory_id": "464d1374a04b3410bd6e515bc8bd4d6417661546", "extension": "c", ...
stackv2
// Write a C program for swapping of two arrays #include<stdio.h> int main() { int n,i; printf("Enter number of array elements\n"); scanf("%d",&n); int a[n],b[n],c[n]; printf("Enter %d numbers\n",n); for(i=0;i<n;i++) scanf("%d",&a[i]); printf("Enter %d numbers\n",n); for(i=0;i<n...
3.8125
4
2024-11-18T19:35:11.926702+00:00
2017-04-20T10:17:49
9261366ea60e2a8e361a6392f8ee984659afa2b4
{ "blob_id": "9261366ea60e2a8e361a6392f8ee984659afa2b4", "branch_name": "refs/heads/master", "committer_date": "2017-04-20T10:17:49", "content_id": "56e3f412854919505e32e33bb143e953c07954f8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ebd585fdafb22d31fcd6d04b209f81e88d1a2083", "extensio...
stackv2
/*========================================================================== E C A L L F E C . C GENERAL DESCRIPTION Turbo encoder and decoder C Reference code 3GPP TS 26.268 EXTERNALIZED FUNCTIONS INITIALIZATION AND SEQUENCING REQUIREMENTS Copyright (c) 2002 by QUALCOMM Techno...
2
2
2024-11-18T19:35:12.261625+00:00
2020-09-07T23:37:22
fb22837619eab8c65b0c5521eb611c227a1734ad
{ "blob_id": "fb22837619eab8c65b0c5521eb611c227a1734ad", "branch_name": "refs/heads/master", "committer_date": "2020-09-07T23:37:22", "content_id": "34101e913cff228b77857865dff487e4fb451843", "detected_licenses": [ "Apache-2.0" ], "directory_id": "479bb1c1997fc69ef2283b638366f596bea86fc5", "extensio...
stackv2
/** * @file write.c * @date 19.06.2020 * @author Klemens D. Morgenstern * */ // !!! This test is line sensitive, do NOT change lines around. #include <metal/serial/core.h> #include <stdio.h> char metal_serial_read() { return fgetc(stdin);} void metal_serial_write(char c) { fputc(c, stdout);} int main(int ...
2.796875
3
2024-11-18T19:35:12.523800+00:00
2019-09-10T16:39:26
e8d01819d669bcc4c2feea5f1bb63634838986ff
{ "blob_id": "e8d01819d669bcc4c2feea5f1bb63634838986ff", "branch_name": "refs/heads/master", "committer_date": "2019-09-10T16:39:26", "content_id": "89847c9484c40d3655c0a38fddf1b2bb34db831d", "detected_licenses": [ "MIT" ], "directory_id": "d00e91918b55fdd66a2cd2c5a799293ca113e323", "extension": "c"...
stackv2
/* * MIT License Copyright (c) 2017 DeeplyEmbedded 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.234375
2
2024-11-18T19:35:12.847711+00:00
2021-02-01T07:13:24
3586320c60bcea72a468507441a60959ec87eaaa
{ "blob_id": "3586320c60bcea72a468507441a60959ec87eaaa", "branch_name": "refs/heads/master", "committer_date": "2021-02-01T07:13:24", "content_id": "8947c93168d12346c4feff7d3467ba60f72c9857", "detected_licenses": [ "MIT" ], "directory_id": "d7021630adf18e3f8c819720e66f1b0eb953ccc4", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> void primeTest(int num) { int i = 2; while (i < num && num % i++) ; if (i == num) { printf("%d", num); } } int main(int argc, char const *argv[]) { int num; printf("Szam: "); scanf("%d", &num); primeTest(num); return 0; } /*void csere(int first, int se...
3.5625
4
2024-11-18T19:35:13.654898+00:00
2021-02-05T03:30:55
872265e878bd052cbadab3163d59975dcb7286ee
{ "blob_id": "872265e878bd052cbadab3163d59975dcb7286ee", "branch_name": "refs/heads/master", "committer_date": "2021-02-05T03:30:55", "content_id": "57226fb883893a860928543f1b6582f73a2d2e10", "detected_licenses": [ "MIT" ], "directory_id": "1fc6356cae7f763aac966ceae79b50f3eaad5413", "extension": "c"...
stackv2
/* ** EPITECH PROJECT, 2020 ** libtilix ** File description: ** Properties fetching (primitive types) */ #include "my/my.h" #include "tilix/property.h" i64_t tl_properties_get_i64(const tl_properties_t *self, const char *name) { const tl_property_t *prop = tl_properties_get(self, name); if (prop == NULL || p...
2.421875
2
2024-11-18T19:35:13.940019+00:00
2019-03-11T01:53:14
294dbccab4e9e9784bfaaf969665e8c96597c713
{ "blob_id": "294dbccab4e9e9784bfaaf969665e8c96597c713", "branch_name": "refs/heads/master", "committer_date": "2019-03-11T01:53:14", "content_id": "35620702671f06f0dc297b4e8bad92b8aba1d949", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1e03ef14b4bc218a84f42d6780c40ec516edd520", "extensio...
stackv2
// // MacrosDefines.h // DYLTool // // Created by sky on 2018/9/26. // Copyright © 2018年 DYL. All rights reserved. // #ifndef MacrosDefines_h #define MacrosDefines_h /** 如果 fromClass 里面存在 originSelector, 则这个函数会将 fromClass 里的 originSelector 与 toClass 里的 newSelector 交换实现 如果 fromClass 里面不存在 originSelector, 则这个函数会为...
2.484375
2
2024-11-18T19:35:14.316727+00:00
2020-10-21T00:24:57
ec4f386585fa2649c164960c0d22ce970b8e9cf6
{ "blob_id": "ec4f386585fa2649c164960c0d22ce970b8e9cf6", "branch_name": "refs/heads/master", "committer_date": "2020-10-21T00:24:57", "content_id": "2767a6e3dd7cf11009657b3146f9effa7a403f8f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b1125cb7680ff1dc1085224db94b9727dd686ce8", "extensio...
stackv2
int do_setitimer(int which, struct itimerval *value, struct itimerval *ovalue) { struct task_struct *tsk = current; struct hrtimer *timer; ktime_t expires; /* * Validate the timevals in value. */ if (!timeval_valid(&value->it_value) || !timeval_valid(&value->it_interval)) return -EINVAL; switch (whic...
2.09375
2
2024-11-18T19:35:14.947295+00:00
2019-03-09T04:57:17
59111e9bece55b11ba8424ebba9289aaddb503c8
{ "blob_id": "59111e9bece55b11ba8424ebba9289aaddb503c8", "branch_name": "refs/heads/master", "committer_date": "2019-03-09T04:57:17", "content_id": "0303b931bcc6afb9c713ac54322ca3e41e2cf86f", "detected_licenses": [ "MIT" ], "directory_id": "65ba9a8e33c86e6524073a7d816b5b63d206bdc6", "extension": "c"...
stackv2
#include "../driver.h" static int logic_should_prepare_write(struct memory_domain_struct *p, int *can_write,int *should_free) { int should_write,system_free_number; struct block_trigger *t=&(p->trigger); system_free_number=((memory_body->head->free_block_number)); if(system_free_number<(t->system_free_block_num...
2.34375
2
2024-11-18T19:35:15.009252+00:00
2016-07-07T13:48:36
40f0b0c4cee013580970bbfe5ed940e339ad2dd5
{ "blob_id": "40f0b0c4cee013580970bbfe5ed940e339ad2dd5", "branch_name": "refs/heads/master", "committer_date": "2016-07-07T13:48:36", "content_id": "f1ad83f48f98931fc11e5ab22d5f7579502a04c5", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "61db09fcc7b97afc453ee1650e94436165adf971", "extens...
stackv2
#include "config.h" #ifdef RFM12_PHY #include <avr/interrupt.h> #define RFM12_SELECT() RFM12_PORT &= ~(1<<RFM12_PIN_SS); #define RFM12_RELEASE() RFM12_PORT |= (1<<RFM12_PIN_SS); // HAL section void hal_rfm12_init_hw(void) { // ToDo IRQ only for UNode. // Disable IRQ #ifdef RFM12_INT0 // IRQ...
2.421875
2
2024-11-18T19:35:15.471415+00:00
2015-05-14T20:11:08
e6d7a74e9d252202d9cdc4847d2a561139e16746
{ "blob_id": "e6d7a74e9d252202d9cdc4847d2a561139e16746", "branch_name": "refs/heads/master", "committer_date": "2015-05-14T20:11:08", "content_id": "51370b219445e813d267838c81ec3418b527680e", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "797658537921cc5ce902baf1f719c8d11c81c093", "extens...
stackv2
/********************************************************** * helper stuff for client/server iface. **********************************************************/ /* * $Id: qipc.c,v 1.4 2005/05/16 11:17:30 mitry Exp $ * * $Log: qipc.c,v $ * Revision 1.4 2005/05/16 11:17:30 mitry * Updated function prototypes. Cha...
2.203125
2
2024-11-18T19:35:15.553577+00:00
2016-09-23T21:49:33
7504b17e4ec8a4442a26ec86480c569d4f92da5f
{ "blob_id": "7504b17e4ec8a4442a26ec86480c569d4f92da5f", "branch_name": "refs/heads/master", "committer_date": "2016-09-23T21:49:33", "content_id": "8c08e398a896eca71ea98a06048047aa94d6ddc9", "detected_licenses": [ "Unlicense" ], "directory_id": "8dc4fda86cd76862a5cef736dc67cb60a2def90d", "extension...
stackv2
/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * Win32 dialog patching. */ #include "thcrap.h" #include "dialog.h" /** * Oh boy. Where should I start. * * Win32 dialog resources consist of one DLGTEMPLATE(EX) followed by a number * of DLGITEMTEMPLATE(EX) structures. All s...
2.03125
2
2024-11-18T19:35:16.126207+00:00
2019-01-08T06:56:32
e31e708f2cf55fefd00c74aa7379e2ef4b31b511
{ "blob_id": "e31e708f2cf55fefd00c74aa7379e2ef4b31b511", "branch_name": "refs/heads/master", "committer_date": "2019-01-08T06:56:32", "content_id": "0084c2c543264a2aa4c37d23c7b76735ba6c8ae5", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "9435432ac0c8c5a75925419e0a2d816d5450b5cb", "extens...
stackv2
/* * Copyright (C) Igor Sysoev */ #ifndef _NGX_ALLOC_H_INCLUDED_ #define _NGX_ALLOC_H_INCLUDED_ #include <ngx_config.h> #include <ngx_core.h> void *ngx_alloc(size_t size, ngx_log_t *log); void *ngx_calloc(size_t size, ngx_log_t *log); #define ngx_free free /* * Linux has memalign() or posix_memali...
2.25
2
2024-11-18T19:35:16.910306+00:00
2021-09-05T15:06:44
6e36a05ac4279c38b4df59998cc0ddadc84a53ba
{ "blob_id": "6e36a05ac4279c38b4df59998cc0ddadc84a53ba", "branch_name": "refs/heads/main", "committer_date": "2021-09-05T15:06:44", "content_id": "469eedcccfd61dc4c20d6242e9f85a1f6e704bf4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1e706bd5edd9c6d7a8c34341456c987359f3a1a3", "extension"...
stackv2
#pragma once #ifdef CN_PLATFORM_WINDOWS extern Coconut::Application* Coconut::CreateApplication(); int main(int argc, char** argv) { int a = 5; Coconut::Log::Init(); CN_CORE_WARN("Initialized Log!"); CN_INFO("Hello Var = {0}", a); auto app = Coconut::CreateApplication(); app->Run(); delete app; } #endif
2
2
2024-11-18T19:35:20.377171+00:00
2020-08-17T19:39:58
72b648d893df96665e4dcf17d2badc97082f1246
{ "blob_id": "72b648d893df96665e4dcf17d2badc97082f1246", "branch_name": "refs/heads/master", "committer_date": "2020-08-17T19:39:58", "content_id": "0b583011fbfbe47ff31d3fdd039ee4d61530066e", "detected_licenses": [ "MIT" ], "directory_id": "a78b4255c76bb1e292c17c86a50816473dfd6006", "extension": "c"...
stackv2
#include <wchar.h> wchar_t * wmemcpy(wchar_t * restrict s1, const wchar_t * restrict s2, size_t n) { size_t i; for (i = 0; i < n; i++) { s1[i] = s2[i]; } return s1; } /* STDC(199409) */
2.265625
2
2024-11-18T19:35:20.645631+00:00
2019-07-18T03:31:52
82f870b9a815d7366ccc643a41c60495d20e3cf6
{ "blob_id": "82f870b9a815d7366ccc643a41c60495d20e3cf6", "branch_name": "refs/heads/master", "committer_date": "2019-07-18T03:31:52", "content_id": "4fd396f4c28ceea7282ba9ddba9e3176775d8ce9", "detected_licenses": [ "MIT" ], "directory_id": "b94e77442656b4d50062a805ebb701dc955a33da", "extension": "h"...
stackv2
/** * @file hashtable.h * @brief A fixed-size hashtable with chaining * * This implementation was taken from linux/hashtable.h in the Linux kernel. */ #ifndef AMBER_UTIL_LINUX_HASHTABLE_H #define AMBER_UTIL_LINUX_HASHTABLE_H #include <Amber/util/common.h> #include <Amber/util/hlist.h> #include <stddef.h> #include...
2.6875
3
2024-11-18T19:35:22.312006+00:00
2016-05-19T12:34:11
29558273f8bf3d379123ed5108868d493265d736
{ "blob_id": "29558273f8bf3d379123ed5108868d493265d736", "branch_name": "refs/heads/master", "committer_date": "2016-05-19T12:34:11", "content_id": "01ff3a09cf3e7d8191ef2cb6d0a91a53428af415", "detected_licenses": [ "NCSA" ], "directory_id": "921c689451ff3b6e472cc6ae6a34774c4f57e68b", "extension": "c...
stackv2
// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: cp %s %t // RUN: %clang_cc1 -fsyntax-only -fixit -x c %t || true // RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -x c %t struct Point { float x, y; }; struct Rectangle { struct Point top_left, // expected-note{{'top_left' declared here}} bottom_...
2.1875
2
2024-11-18T19:35:22.629966+00:00
2020-06-22T06:00:49
e21df8db55471feae1cee3dc994dd62881d58add
{ "blob_id": "e21df8db55471feae1cee3dc994dd62881d58add", "branch_name": "refs/heads/master", "committer_date": "2020-06-22T06:00:49", "content_id": "378bef719c05c1e5b552ba48fd1e25dddc811365", "detected_licenses": [ "BSD-3-Clause", "PSF-2.0", "Python-2.0", "Zlib", "BSD-4-Clause", "BSD-2...
stackv2
/*! * @file unhook.c * @brief Entry point and intialisation functionality for the unhook extention. */ #include "common.h" #include "common_metapi.h" #include "../../ReflectiveDLLInjection/dll/src/ReflectiveLoader.c" #include "unhook.h" #include "refresh.h" // Required so that use of the API works. MetApi* met_ap...
2.40625
2
2024-11-18T19:35:22.740659+00:00
2023-08-16T13:18:51
bd159a2ed930d4a0f2ee7b92b2e4ab25f5cb9d94
{ "blob_id": "bd159a2ed930d4a0f2ee7b92b2e4ab25f5cb9d94", "branch_name": "refs/heads/master", "committer_date": "2023-08-16T13:18:51", "content_id": "125252ba5b8c69bbc50b2a0374a67ca67caf3386", "detected_licenses": [ "MIT" ], "directory_id": "b2d5907cb1777f897154eb408b67240e30af26a6", "extension": "c"...
stackv2
#define unsafetype(type, name) \ void name() \ { \ type t; \ type* pt = &t; \ (void)(t); \ (void)(pt); \ } struct str { int i; }; union un { int i; double d; }; typedef double...
2.171875
2
2024-11-18T19:35:23.935319+00:00
2022-08-30T09:20:06
17ba707afb11f8570d200c25c6351f703be82750
{ "blob_id": "17ba707afb11f8570d200c25c6351f703be82750", "branch_name": "refs/heads/master", "committer_date": "2022-08-30T09:20:06", "content_id": "fcf8d17f77caf5fd10226e4b4acaad59dfe970a1", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "578a154fcdbebf1bb54f03d56edf85791e48ab3b", "extens...
stackv2
#include "cw/mod.h" #include "cw/log.h" #include "cw/dbg.h" #include "cw/val.h" #include "cw/keys.h" #include "cw/dtls.h" #include "cw/cfg.h" #include "mod_capwap.h" static int init(struct cw_Mod * mod, mavl_t global_cfg, int role) { cw_dbg(DBG_INFO,"CAPWAP: Inititalizing mod_capwap."); switch (role){ case CW_...
2.015625
2
2024-11-18T19:35:24.338707+00:00
2017-12-20T20:38:59
729c221b02d661518898c71046c1ce6dc946f783
{ "blob_id": "729c221b02d661518898c71046c1ce6dc946f783", "branch_name": "refs/heads/master", "committer_date": "2017-12-20T20:38:59", "content_id": "6afd6d1efebe0be26bb35a766a86e0cfdf51125e", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "7c19f76d5b3746741520bb35ae07df4166d2fd4f", "extens...
stackv2
#include "common.h" #include "ip.h" #include "str.h" #include "tun.h" #include <fcntl.h> #include <stdio.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <sys/uio.h> #include <net/if.h> #ifdef __linux__ #define IFF_TUN 0x0001 #define IFF_NO_PI 0x1000 #define TUNSETIFF _IOW('T', 202, int) #define TUNSETPE...
2.171875
2
2024-11-18T19:35:24.622024+00:00
2015-07-22T05:40:57
b09c8c63b85f100321f5d96c18d688a2b6c5b31d
{ "blob_id": "b09c8c63b85f100321f5d96c18d688a2b6c5b31d", "branch_name": "refs/heads/develop", "committer_date": "2015-07-22T05:40:57", "content_id": "9daf0f205bc36abd1fefd4b4892c9c13548eac7d", "detected_licenses": [ "MIT" ], "directory_id": "75d97697511245d99544c0940d4174e2a546b5cf", "extension": "c...
stackv2
#include "server.h" volatile server server_peer[MAX_SERVERS] = {{ 0 }}; volatile int server_self; volatile uint32_t server_alive_count = 0; volatile pthread_rwlock_t server_list_lock = PTHREAD_RWLOCK_INITIALIZER; volatile uint64_t server_list_revision = 0; uint8_t server_cluster_saltpepper[SALT_LEN]; uint8_t server_cl...
2.03125
2
2024-11-18T19:35:25.281123+00:00
2020-04-17T19:24:47
88f5a87ab70d3c3dc4e249ee3f520e468780f79b
{ "blob_id": "88f5a87ab70d3c3dc4e249ee3f520e468780f79b", "branch_name": "refs/heads/master", "committer_date": "2020-04-17T19:24:47", "content_id": "533be375de561c63846fc8f854f32861100b82fb", "detected_licenses": [ "Apache-2.0" ], "directory_id": "36d67d3222ec0ba269f6f4503503481e89865c81", "extensio...
stackv2
#include "flexaid.h" #include "boinc.h" /****************************************************************************** * SUBROUTINE bondedlist creates the list of atoms nloops bonds away from atom * anum, outputs the list in the blist vector. ***********************************************************************...
2.390625
2