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:53:07.498534+00:00
2023-08-30T05:36:57
59990c99eea2f9a961b5f481665e7cc24875ba5c
{ "blob_id": "59990c99eea2f9a961b5f481665e7cc24875ba5c", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T05:36:57", "content_id": "bdd1e646282b2090416c1208aa9080f9bf239633", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "bfb49b61aeca694f7c5d15de1df3e397ec3e8247", "extens...
stackv2
/* module : chr.c version : 1.2 date : 08/23/23 */ #ifndef CHR_C #define CHR_C /** OK 1470 chr : DA I -> C C is the character whose Ascii value is integer I (or logical or character). */ void chr_(pEnv env) { Node node; PARM(1, PREDSUCC); node = lst_pop(env->stck); node.op = CHAR_...
2.1875
2
2024-11-18T19:53:08.353068+00:00
2020-08-09T20:18:23
6733750268665b649845ffe2321a9570c7fb667c
{ "blob_id": "6733750268665b649845ffe2321a9570c7fb667c", "branch_name": "refs/heads/master", "committer_date": "2020-08-09T20:18:23", "content_id": "e66e362ecf31b640d9e57173bd165593960f2293", "detected_licenses": [ "MIT" ], "directory_id": "8970365b7a53bf6da4c0a824aa1e8768c133beab", "extension": "c"...
stackv2
#include <stdlib.h> #include "utone.h" int ut_tin_create(ut_tin **p) { *p = malloc(sizeof(ut_tin)); return UT_OK; } int ut_tin_destroy(ut_tin **p) { free(*p); return UT_OK; } int ut_tin_init(ut_data *ut, ut_tin *p) { p->fp = stdin; p->val = 0; return UT_OK; } int ut_tin_compute(ut_data ...
2.265625
2
2024-11-18T19:53:08.487906+00:00
2023-05-09T20:08:24
07928acb09a99e854153e3efe7a8e468e0a44ba0
{ "blob_id": "07928acb09a99e854153e3efe7a8e468e0a44ba0", "branch_name": "refs/heads/master", "committer_date": "2023-05-09T20:08:24", "content_id": "3d252aeef1f5f711013b389bd04d9c39fdda9779", "detected_licenses": [ "MIT" ], "directory_id": "b5d28de0f81d800758bc8234f265e5290bc303df", "extension": "c"...
stackv2
#include <I2C.h> #include <stdlib.h> #include <string.h> #include "lcd02.h" void lcd02_setCursorAtHome(void) { lcd02_sendCommand(1); } void lcd02_sendCommand(char command) { IdleI2C(); //attend que le bus soit libre StartI2C(); /* Wait till Start sequence is completed */ while (I2CCONbits.SEN);...
2.734375
3
2024-11-18T19:53:08.813055+00:00
2017-08-03T08:39:43
b1ee09291d9eb649efb1ac59c57496cb3fa6db53
{ "blob_id": "b1ee09291d9eb649efb1ac59c57496cb3fa6db53", "branch_name": "refs/heads/master", "committer_date": "2017-08-03T08:39:43", "content_id": "dcaf93694559a8bab7eecce15b1c440cb80c944a", "detected_licenses": [ "MIT" ], "directory_id": "8700fa500c760a8049c65df590632783cd64940a", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <signal.h> #include <sys/time.h> #include <unistd.h> void catch_alarm (int sig) { printf("Alarm event\n"); signal(sig, catch_alarm); } int main(void) { struct itimerval new; signal(SIGALRM, catch_alarm); new.it_interval.tv_sec = 1; new.it_interval.tv_usec = 500000...
2.859375
3
2024-11-18T19:53:08.921064+00:00
2013-05-28T03:02:44
e4b588ca00daf27bc631755c9fcb2d593b2ee208
{ "blob_id": "e4b588ca00daf27bc631755c9fcb2d593b2ee208", "branch_name": "refs/heads/master", "committer_date": "2013-05-28T03:02:44", "content_id": "37aabc12a27c348884517f7a057ec4993491c89c", "detected_licenses": [ "MIT" ], "directory_id": "02771a2a22ad014a037e8b74f7bc0b3291decb68", "extension": "c"...
stackv2
#include <math.h> #include "matrix.h" #include "tests.h" void sanity_check_zero ( void ) { ASSERT ( 0 == 0, "Zero failed to be equal to zero." ); } void initialize_matrix ( void ) { SquareMatrix * mat = initialize_square_matrix ( 22, sizeof(Int) ); ASSERT(mat != NULL, "Wrong value for square matrix pointer aft...
2.921875
3
2024-11-18T19:53:08.976650+00:00
2023-08-17T12:05:52
65acf70f9de2c64c1397b46764f8a59047cf7114
{ "blob_id": "65acf70f9de2c64c1397b46764f8a59047cf7114", "branch_name": "refs/heads/master", "committer_date": "2023-08-17T12:05:52", "content_id": "1cdac4687ed1069ab7d850f40c72add3b17b00a7", "detected_licenses": [ "ISC" ], "directory_id": "d453a1364f27ae3c99c1f77f46b084b93d616ccb", "extension": "h"...
stackv2
// Start of values.h. //// Text I/O typedef int (*writer)(FILE*, const void*); typedef int (*bin_reader)(void*); typedef int (*str_reader)(const char *, void*); struct array_reader { char* elems; int64_t n_elems_space; int64_t elem_size; int64_t n_elems_used; int64_t *shape; str_reader elem_reader; }; s...
2.75
3
2024-11-18T19:53:10.761335+00:00
2012-11-14T15:53:24
234b2f985dd9ce03a37478ad7bce9d4878fb04b0
{ "blob_id": "234b2f985dd9ce03a37478ad7bce9d4878fb04b0", "branch_name": "refs/heads/master", "committer_date": "2012-11-14T15:53:24", "content_id": "5d2823eecfe806e8d349ccac048afdc02d3099ac", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8e9c02e194b85009f21f082183de211161e3b030", "extens...
stackv2
#include <stdint.h> #include <stdlib.h> #include <gpio.h> #include <stm32l_i2c.h> #include <stm32l_rcc.h> #include "i2c.h" uint32_t i2c_buses[] = { I2C1_BASE, I2C2_BASE, NULL }; /* This is painful. I2C operations implemented according to app. note AN2824 - "STM32F10xxx I2C optimized examples" using polling rea...
2.390625
2
2024-11-18T19:53:11.267857+00:00
2021-11-15T23:48:57
eec5190df3790dce1c5a8e5381773bb8236ad954
{ "blob_id": "eec5190df3790dce1c5a8e5381773bb8236ad954", "branch_name": "refs/heads/main", "committer_date": "2021-11-15T23:48:57", "content_id": "de82e2bf577266847590debced3e7ca95b0d5cf5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "28e4073b48688904621621d82820138496400f5a", "extension"...
stackv2
/* CONTESTI.H Giovanni Toffoli 990919 uso di #pragma pack per passaggio /Zp1 -> /Zp8 (standard) 981224 DIM_LSTACK: 1000 -> 10000; MAX_CONTESTO: 10 -> 100 980831 eliminato node 980127 estratto da ILCOMUNE.C */ #define DIM_LSTACK 10000 // dimensione dello stack logo in elementi di array typedef unsigned long ...
2.421875
2
2024-11-18T19:53:11.477471+00:00
2021-07-06T13:27:18
9c6d9434fac1a34797bb6dff88636aee312d0ab6
{ "blob_id": "9c6d9434fac1a34797bb6dff88636aee312d0ab6", "branch_name": "refs/heads/master", "committer_date": "2021-07-06T13:27:18", "content_id": "c9f0ddee3ef20db0f913646d2c1ce7ea2ff6581e", "detected_licenses": [ "MIT" ], "directory_id": "094f891c992a9c1406b5b7ffe681b35967a5dcfd", "extension": "h"...
stackv2
/* Copyright 2021 Bastian Kuth bastian.kuth@stud.hs-coburg.de, Quirin Meyer 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, cop...
2.234375
2
2024-11-18T19:53:12.364591+00:00
2012-12-22T05:59:30
8f9e675ba5fddb4db9b34430c1f9894f54d7c3e4
{ "blob_id": "8f9e675ba5fddb4db9b34430c1f9894f54d7c3e4", "branch_name": "refs/heads/master", "committer_date": "2012-12-22T06:02:05", "content_id": "5bdee51851df3ece90e55676d6e64c465835da78", "detected_licenses": [ "MIT" ], "directory_id": "afee5a2565216ff1958d9f698002b5453d71d0d3", "extension": "c"...
stackv2
#include <SDL/SDL.h> #include "main.h" int check_collision ( SDL_Rect A, SDL_Rect B ) { int leftA, leftB; int rightA, rightB; int topA, topB; int bottomA, bottomB; leftA = A.x; rightA = A.x + A.w; topA = A.y; bottomA = A.y + A.h; leftB = B.x; rightB = B.x + B.w; topB = B.y; ...
2.453125
2
2024-11-18T19:53:12.745920+00:00
2021-07-13T10:41:07
956605be410ec9646125335ae96533d534110048
{ "blob_id": "956605be410ec9646125335ae96533d534110048", "branch_name": "refs/heads/master", "committer_date": "2021-07-13T10:41:07", "content_id": "3fe551821e13281857131586b9bee0c08982449c", "detected_licenses": [ "MIT" ], "directory_id": "07b73cd7a7a00829a3c234d73f9e14cdd1a774d9", "extension": "h"...
stackv2
// duplication.py - functions for generating graphs by duplicating nodes // // Copyright 2016-2018 XNetwork developers. // Copyright (C) 2004-2018 by // Wai-Shing Luk <luk036@gmail.com> // Dan Schult <dschult@colgate.edu> // Pieter Swart <swart@lanl.gov> // // This file is part of XNetwork. // // XNetwork is distribute...
2.25
2
2024-11-18T19:53:13.204341+00:00
2023-04-03T09:05:33
39037378822447cdeec05d4654c60851dd894156
{ "blob_id": "39037378822447cdeec05d4654c60851dd894156", "branch_name": "refs/heads/master", "committer_date": "2023-04-03T09:05:33", "content_id": "4b012649fb0a88f142efc7380a5e0a35e9c3e3fc", "detected_licenses": [ "MIT" ], "directory_id": "9dfd4730250717a816da4516f2da5b2eb9649d84", "extension": "c"...
stackv2
#include <string.h> #include <stdio.h> #include <stdlib.h> #include "timer/stopwatch.h" #include "unity.h" void setUp() {} void tearDown() {} void test_start_timer() { stopwatch_t timer; stopwatch_init(&timer); TEST_ASSERT_EQUAL(TIMER_STOPPED, stopwatch_get_state(&timer)); TEST_ASSERT_EQUAL(0, stopw...
2.5
2
2024-11-18T19:53:13.263293+00:00
2014-05-18T23:09:40
ed3602cb3ca428a191f9d9c8874d57a8fc0c43af
{ "blob_id": "ed3602cb3ca428a191f9d9c8874d57a8fc0c43af", "branch_name": "refs/heads/master", "committer_date": "2014-05-18T23:09:40", "content_id": "9a93f91394fa3860d19753dac419e0807b0e1b7a", "detected_licenses": [ "MIT" ], "directory_id": "44f5e95f7f34ec63d35215de61e21d14dff212a2", "extension": "c"...
stackv2
/* This file implements custom C string streams for read-only collective file system access. For more information about custom C strings, see: http://www.gnu.org/software/libc/manual/html_node/Custom-Streams.html#Custom-Streams */ #define _GNU_SOURCE // needed to expose cookie_io_functions_t #include <errno.h> #inc...
2.65625
3
2024-11-18T19:53:13.343346+00:00
2021-06-20T16:12:14
1704370fc2b408fab664c2850999a78472cef61c
{ "blob_id": "1704370fc2b408fab664c2850999a78472cef61c", "branch_name": "refs/heads/main", "committer_date": "2021-06-20T16:12:14", "content_id": "b7b58f733192768abfa10bb001c0c5ef98a572a1", "detected_licenses": [ "MIT" ], "directory_id": "1a8727fb395c611176da7dc9c8b3613787d7b8c1", "extension": "c", ...
stackv2
#include <stdio.h> #include <unistd.h> #include <sys/syscall.h> #include <fcntl.h> int main() { int d; d = open("foo.txt", O_RDWR | O_CREAT); write(d, "Hello World!\n", 13); close(d); return 0; }
2.3125
2
2024-11-18T20:30:35.970904+00:00
2018-04-17T02:07:29
bd57683d96f0af191365a20d0da2f960c6c7fe2f
{ "blob_id": "bd57683d96f0af191365a20d0da2f960c6c7fe2f", "branch_name": "refs/heads/master", "committer_date": "2018-04-17T02:07:29", "content_id": "8831a1721be25c363feeae8ae4f22fe0e7512eaa", "detected_licenses": [ "MIT" ], "directory_id": "a00e10d3a0f1143910b338ec0952ead97b7e05bb", "extension": "h"...
stackv2
/* * Copyright (C) 2013 F4OS 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, publis...
2.15625
2
2024-11-18T20:30:36.072714+00:00
2023-08-18T12:54:06
31d158b81b870a8e382732563daaf17ef63080c5
{ "blob_id": "31d158b81b870a8e382732563daaf17ef63080c5", "branch_name": "refs/heads/master", "committer_date": "2023-08-18T12:54:06", "content_id": "4019e4f2e7199f61e7e0e9b02618fa495621e87f", "detected_licenses": [ "MIT" ], "directory_id": "22446075c2e71ef96b4a4777fe966714ac96b405", "extension": "c"...
stackv2
/*! * @file main.c * @brief Alcohol Click Example. * * # Description * The demo application shows the reading of the adc * values given by the sensors. * * The demo application is composed of two sections : * * ## Application Init * Configuring clicks and log objects. * * ## Application Task * Reads the...
2.84375
3
2024-11-18T20:30:36.214546+00:00
2015-04-27T06:53:07
405f727db68acebcae83328ed66bdde7484ff181
{ "blob_id": "405f727db68acebcae83328ed66bdde7484ff181", "branch_name": "refs/heads/master", "committer_date": "2015-04-27T06:53:07", "content_id": "79eca78dec0d8ada989e83c92dba149fc6d1be07", "detected_licenses": [ "MIT" ], "directory_id": "63923259f3d7342350e2d8549b84485367c88fc5", "extension": "c"...
stackv2
/* * test_main.c * * Created on: Mar 28, 2015 * Author: yulongb */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <pthread.h> #include <string.h> /** * interfaces design * @ */ #include "lift_task_queue.h" #define N_LENGTH_OF_TASK_POOL 19 request_type_t request_pool[N_LENGTH_OF_TASK...
2.421875
2
2024-11-18T20:57:34.930050+00:00
2011-08-22T16:52:58
ccf7357ac9f6c772ab2250a8b1e6c3dadf3ed7db
{ "blob_id": "ccf7357ac9f6c772ab2250a8b1e6c3dadf3ed7db", "branch_name": "refs/heads/master", "committer_date": "2011-08-22T16:52:58", "content_id": "0541b52258a14533f75f372658aa28061823ab67", "detected_licenses": [ "ISC" ], "directory_id": "a1446c3f95df2dfe097a9bd6b463767b00f18140", "extension": "c"...
stackv2
/* * Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2002 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission...
2.046875
2
2024-11-18T20:57:36.637851+00:00
2021-01-21T14:26:47
307d42a395b713b46be44c0d1f787961644740f4
{ "blob_id": "307d42a395b713b46be44c0d1f787961644740f4", "branch_name": "refs/heads/master", "committer_date": "2021-01-21T14:26:47", "content_id": "63f4b871b3fe286945bbedfe6f48141a2afb4114", "detected_licenses": [ "MIT" ], "directory_id": "3cca537e780ba900087b187d1494713f0c81a24d", "extension": "c"...
stackv2
int min_int(int i,int j){ if(i<j){ return i; } else{ return j; } } int max_int(int i,int j){ if(i>j) return i; else return j; } long min_long(long i,long j){ if(i<j){ return i; } else{ return j; } }
2.15625
2
2024-11-18T20:57:36.845012+00:00
2021-06-01T14:00:16
ae2b0d32ad3ad5f2574eac7e2984d65d62f23a33
{ "blob_id": "ae2b0d32ad3ad5f2574eac7e2984d65d62f23a33", "branch_name": "refs/heads/master", "committer_date": "2021-06-01T14:00:16", "content_id": "2692e866d3d19c43a3b3fa68245e2bf7312ebc3e", "detected_licenses": [ "MIT" ], "directory_id": "f8d99958a090df19e3367e7e770befa763f5c73a", "extension": "c"...
stackv2
#include "mm.h" #include "hypercall.h" #include "string.h" #include "utils.h" #include <linux/kvm.h> #define _OFFSET(v, bits) (((uint64_t)(v) >> (bits)) & 0x1ff) #define PML4OFF(v) _OFFSET(v, 39) #define PDPOFF(v) _OFFSET(v, 30) #define PDOFF(v) _OFFSET(v, 21) #define PTOFF(v) _OFFSET(v, 12) #define INVALID ((uint6...
2.21875
2
2024-11-18T20:57:36.933973+00:00
2019-10-14T09:53:15
f70ebbc3890b795e2d25781b9bc1e4d296e2b873
{ "blob_id": "f70ebbc3890b795e2d25781b9bc1e4d296e2b873", "branch_name": "refs/heads/master", "committer_date": "2019-10-14T09:53:15", "content_id": "059ccad3285c771f246a34ebdeee2a5535a0c244", "detected_licenses": [ "MIT" ], "directory_id": "a70e2dac8f266f5f9c3cb7679043621cfeef5acf", "extension": "c"...
stackv2
#include <efi.h> #include <efilib.h> #include <efishellparm.h> #define PARAMETER_MAX_CHAR_COUNT (64) #define BUFFER_SIZE (4096 * 4) static const EFI_GUID simpleFileSystemGUID = SIMPLE_FILE_SYSTEM_PROTOCOL; static const EFI_GUID loadedImageGUID = LOADED_IMAGE_PROTOCOL; static const EFI_GUID blkGUID = E...
2.328125
2
2024-11-18T20:57:37.353866+00:00
2016-02-11T17:26:09
2ff0438b26d9828c5c594ba5f45d49e4f40335e2
{ "blob_id": "2ff0438b26d9828c5c594ba5f45d49e4f40335e2", "branch_name": "refs/heads/master", "committer_date": "2016-02-11T17:26:09", "content_id": "12d2cd5d152bfffca7d31484d0675a7f92255b7f", "detected_licenses": [ "MIT" ], "directory_id": "34edab51b4e6966c1b6666152926d505dfbd11a5", "extension": "c"...
stackv2
/** Copyright (C) 2003-2005 Michael Ahlberg, Måns Rullgård 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,...
2.15625
2
2024-11-18T20:57:37.446039+00:00
2012-12-14T00:32:54
0946e7b08b4a562c803590f3853da68f0bcc5dd3
{ "blob_id": "0946e7b08b4a562c803590f3853da68f0bcc5dd3", "branch_name": "refs/heads/master", "committer_date": "2012-12-14T00:32:54", "content_id": "669b78872b81a91bb968ee420755943006715755", "detected_licenses": [ "MIT" ], "directory_id": "09dbb5a4fb108719b66f86626aba7f4448e942f7", "extension": "c"...
stackv2
#include "filebuffer.h" #include "../array.h" #include <stddef.h> #include <stdio.h> #include <string.h> void write_file(filebuffer *buffer, FILE *file) { int x; char *line; for(x = 0; x < buffer->num_lines; x++) { line = c_string(buffer->lines[x]); fprintf(file, "%s\n", line); free(line); } } voi...
3.109375
3
2024-11-18T20:57:37.516563+00:00
2020-05-18T08:40:13
5195ad4d2574f57de2e97d76bdd9b95802ca6231
{ "blob_id": "5195ad4d2574f57de2e97d76bdd9b95802ca6231", "branch_name": "refs/heads/master", "committer_date": "2020-05-18T08:40:13", "content_id": "11dc0d7ee36f3e0e0fb5f453496329706461d198", "detected_licenses": [ "MIT" ], "directory_id": "7787ef9628a6c46f756df61789379eeb158bbe6a", "extension": "c"...
stackv2
/****************************************************************************** * MIT License * * Copyright (c) 2020 Robin Doer * * 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 withou...
2.546875
3
2024-11-18T20:57:37.753916+00:00
2019-12-31T09:38:56
baa14f515d45b7c5e04c02635061c931f1476ba8
{ "blob_id": "baa14f515d45b7c5e04c02635061c931f1476ba8", "branch_name": "refs/heads/master", "committer_date": "2019-12-31T09:38:56", "content_id": "fd7c5159f238a7f913cf95ae7c3f7fd9701054ea", "detected_licenses": [ "MIT" ], "directory_id": "adf0e69f92394a12eecb7a956363c5985af7fd4d", "extension": "h"...
stackv2
#pragma once #include <arpa/inet.h> #include <netdb.h> #include <stdlib.h> #include "common/util.h" struct sockaddr_in create_sockaddr_in(char *host, int port) { struct hostent *hp = gethostbyname(host); struct sockaddr_in sin; bzero(&sin, sizeof(sin)); sin.sin_family = PF_INET; sin.sin_addr = *(struct i...
2.53125
3
2024-11-18T20:57:37.877414+00:00
2017-07-25T23:57:00
63494d87034e4ce7df00419aa67f26398394700b
{ "blob_id": "63494d87034e4ce7df00419aa67f26398394700b", "branch_name": "refs/heads/master", "committer_date": "2017-07-25T23:57:00", "content_id": "18b87bc4714373dd9c87ffacd601c99be91ac127", "detected_licenses": [ "MIT" ], "directory_id": "ca9626a52becfd4e10cc19a2c8ff0510a8358672", "extension": "c"...
stackv2
/* draw.c * * Draw the elements in state.c to the terminal. * * Assumes vt-100 compatible escape codes, as such YMMV */ #include <alloca.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../config.h" #include "input.h" #include "state.h" #include "utils.h" #define ESC "...
2.59375
3
2024-11-18T20:57:37.946105+00:00
2022-03-20T17:53:25
abf0e7bb643a3d459bebd0ef2c94a403413f879e
{ "blob_id": "abf0e7bb643a3d459bebd0ef2c94a403413f879e", "branch_name": "refs/heads/master", "committer_date": "2022-03-20T17:53:25", "content_id": "e6ba557db7ee08efe3b999ab1374c3f1a2b154d7", "detected_licenses": [ "MIT" ], "directory_id": "15fbb35cb68bd707f6a1eee9485e2ee37fc52876", "extension": "c"...
stackv2
#include <ch.h> #include <hal.h> #include "vl6180x.h" #ifdef HAL_USE_I2C void vl6180x_write_register(vl6180x_t* dev, uint16_t reg, uint8_t val) { uint8_t buf[] = {(reg >> 8), reg & 0xff, val}; i2cMasterTransmit(dev->i2c, dev->address, buf, 3, NULL, 0); } uint8_t vl6180x_read_register(vl6180x_t* dev, uint16_t ...
2.328125
2
2024-11-18T20:57:38.463350+00:00
2018-10-30T05:48:31
386b64a206db3986e332d9ce50c18ce045177537
{ "blob_id": "386b64a206db3986e332d9ce50c18ce045177537", "branch_name": "refs/heads/master", "committer_date": "2018-10-30T05:48:31", "content_id": "2e1da200847f55ecca5b30de3b3da46a0a1f16fb", "detected_licenses": [ "MIT" ], "directory_id": "d7c47cc2dd4f94c45549a26e7367c0e86848039f", "extension": "c"...
stackv2
#include "pchandler.h" #include "value_helper.h" #include "bsearch.h" // #include "values.h" #include <string.h> #include <stdlib.h> #include <assert.h> #ifdef JOS_USER // #include <inc/compiler.h> #endif enum { type_leaf = 0, type_internal }; static key_cmp_t JSHARED_ATTR keycmp = NULL; static void pch_set_util(key...
2.390625
2
2024-11-18T20:57:38.530167+00:00
2023-03-25T18:48:23
212365030a8049088d1f23d79fdad403ca23abf0
{ "blob_id": "212365030a8049088d1f23d79fdad403ca23abf0", "branch_name": "refs/heads/master", "committer_date": "2023-03-25T18:48:23", "content_id": "559ff54e310968a5181ae58239250ae8fccc54cb", "detected_licenses": [ "MIT" ], "directory_id": "a7da48e8ea1eba569076e4eb20affd2a80630f8c", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <yaml.h> typedef struct { int len; int cap; char *data; } char_slice; void char_slice_init(char_slice *a) { a->len = 0; a->cap = 0; a->data = NULL; } int char_slice_do_grow(char_slice *a, int n) { int cap = a->cap > 0 ?...
2.734375
3
2024-11-18T20:57:38.683324+00:00
2023-03-31T07:55:02
a61ff7852c74aff6bcefdc614768722b86233418
{ "blob_id": "a61ff7852c74aff6bcefdc614768722b86233418", "branch_name": "refs/heads/master", "committer_date": "2023-03-31T14:23:11", "content_id": "09d9e76be9c0c7e27d73632a4a65a34566fe5815", "detected_licenses": [ "Apache-2.0" ], "directory_id": "997a173e1a758750ca90e5f15e5f826344916c74", "extensio...
stackv2
#ifndef __NICESTREAM__ #define __NICESTREAM__ #include "async.h" #include "bytestream_1.h" #ifdef __cplusplus extern "C" { #endif typedef struct nicestream nicestream_t; /* * Open a stream wrapper that prevents the underlying stream from * monopolizing the scheduler. The returned stream yields whenever the * giv...
2.0625
2
2024-11-18T20:57:38.744781+00:00
2017-04-30T12:02:41
2f08f7b171bccfd535e49da82fcbc9208778c248
{ "blob_id": "2f08f7b171bccfd535e49da82fcbc9208778c248", "branch_name": "refs/heads/master", "committer_date": "2017-04-30T12:02:41", "content_id": "1583829f0df7b03fd6b5ba125432972fa677961b", "detected_licenses": [ "MIT" ], "directory_id": "9953f2a34f58ac311100c8de2bd8496dbf396216", "extension": "c"...
stackv2
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "object.h" #include "gc.h" extern Object *Nil,*True,*False; extern Object *Procedure; Object* new_object(ObjectType type) { Object* obj = (Object*) GC_MALLOC(sizeof(Object)); obj->type = type; return obj; } void pair...
2.859375
3
2024-11-18T20:57:38.810974+00:00
2020-08-24T04:53:02
bec097c58221c25008e05b558e34f390f9a31ff3
{ "blob_id": "bec097c58221c25008e05b558e34f390f9a31ff3", "branch_name": "refs/heads/master", "committer_date": "2020-08-24T04:54:28", "content_id": "18e7eee387aa452256078149a316cce9121a3d99", "detected_licenses": [ "MIT" ], "directory_id": "c7ad4d19731635a8a0eb0d98715fb7f2f8b90a5c", "extension": "c"...
stackv2
#include "Cmd.H" #include "Log.H" #include "Code.H" #include "Exception.H" namespace Cmd { lcf::rpg::EventCommand END() { lcf::rpg::EventCommand cmd; cmd.code = static_cast<int>(lcf::rpg::EventCommand::Code::END); return cmd; } static lcf::rpg::EventCommand makeControlSwitches(int sub, int arg1, int arg2...
2.109375
2
2024-11-18T20:57:43.670679+00:00
2023-05-03T01:44:35
87117818347dda9030553a31ad420be76a4877c3
{ "blob_id": "87117818347dda9030553a31ad420be76a4877c3", "branch_name": "refs/heads/master", "committer_date": "2023-05-03T01:44:35", "content_id": "ba317f58733af08755f0931ce535142d6d15652a", "detected_licenses": [ "MIT" ], "directory_id": "d5cc073b986be4e44f5bfd310e8465c4d1bc0b52", "extension": "c"...
stackv2
#include <stdio.h> #include <stdbool.h> //== Declear States == // [SYN-G-GEN OUTPUT START] $/^S_/->#static$ static void S_START(bool bFirst); static void S_END(bool bFirst); // [SYN-G-GEN OUTPUT END] // == manager == static void *m_curfunc ...
2.484375
2
2024-11-18T20:57:44.279333+00:00
2022-02-20T01:13:52
ff138d9b511c34917ac6f0f4ac2970942fb6673d
{ "blob_id": "ff138d9b511c34917ac6f0f4ac2970942fb6673d", "branch_name": "refs/heads/master", "committer_date": "2022-02-21T19:38:33", "content_id": "40d1c24bc96ee228c6e2ed821ce097b6b99582ed", "detected_licenses": [ "MIT" ], "directory_id": "ae8d0783918ca0476c4ea617fc014c7436538c5a", "extension": "c"...
stackv2
/* * Copyright (c) 2015 Kaprica Security, Inc. * * 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, mer...
2.328125
2
2024-11-18T20:57:44.345268+00:00
2021-08-30T09:16:27
c5365c53225730d5132003410bb5164f367da815
{ "blob_id": "c5365c53225730d5132003410bb5164f367da815", "branch_name": "refs/heads/main", "committer_date": "2021-08-30T09:16:27", "content_id": "dbcbdeef481642e190aced9cc953c4f8c20d2890", "detected_licenses": [ "MIT" ], "directory_id": "82dbccdbaae8a985c887e1ec808fe8b90eec8e33", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> // 反轉鏈結串列 struct node { int data; struct node *link; }; typedef struct node *nodeptr; nodeptr create(int a[],int length); //建立Linked list void printlist(nodeptr linklist); // 列印鏈結串列 nodeptr invert(nodeptr first); int main() { int arr[] = {12,43,56,3...
3.578125
4
2024-11-18T20:57:44.514975+00:00
2017-04-19T17:12:49
f21867ec56538d9100562a2c6073d1e7a0936ffb
{ "blob_id": "f21867ec56538d9100562a2c6073d1e7a0936ffb", "branch_name": "refs/heads/master", "committer_date": "2017-04-19T17:12:49", "content_id": "7c9f4435f30da1aa6c9e4aa74ee400f9f58194b2", "detected_licenses": [ "MIT" ], "directory_id": "a761aa7edbc0eec7576f007e026b4778964c5ee9", "extension": "c"...
stackv2
/* read-file.c - send UDP datagram to remote application */ #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <sys/time.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <signal.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #in...
2.515625
3
2024-11-18T20:57:45.023421+00:00
2021-10-17T01:31:27
325d7a5bc92144b6f59c60ece42f84770cc74579
{ "blob_id": "325d7a5bc92144b6f59c60ece42f84770cc74579", "branch_name": "refs/heads/master", "committer_date": "2021-10-17T01:31:27", "content_id": "7110fa5309ca5f70c4b050e8d2475fe8909fec75", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "32e48bb5c7b9714e25bc9312f185a85e02338cc5", "extens...
stackv2
#include <string.h> int memcmp(const void* s1, const void* s2, size_t n) { unsigned char* cs1 = (unsigned char*)s1; unsigned char* cs2 = (unsigned char*)s2; for (size_t i = 0; i < n; i++) { if (cs1[i] < cs2[i]) return -1; if (cs1[i] > cs2[i]) return 1; } return 0; }
2.625
3
2024-11-18T20:57:47.392283+00:00
2022-03-12T03:16:16
876df2c5ab67ba23023010082736ce8947027662
{ "blob_id": "876df2c5ab67ba23023010082736ce8947027662", "branch_name": "refs/heads/master", "committer_date": "2022-03-12T03:16:16", "content_id": "3b9ecd1fff6df8159ea65b5f15733260305f88a9", "detected_licenses": [ "MIT" ], "directory_id": "e912c5622fb8d5867cf7bf760d53871e79534310", "extension": "h"...
stackv2
#pragma once // This module implements a 2-state FSM to switch between race mode and normal // mode. In normal mode the infotainment system and fan control run, however, // in race mode these are disabled to conserve power. Disabling and enabling // the features is managed using the 5V regulator. // Requires GPIO, so...
2.171875
2
2024-11-18T20:57:47.457433+00:00
2021-05-06T21:27:14
a2af0ad0f74391c125690040d9f61059bc4a3633
{ "blob_id": "a2af0ad0f74391c125690040d9f61059bc4a3633", "branch_name": "refs/heads/main", "committer_date": "2021-05-06T21:27:14", "content_id": "bf93572ee8f02d1ced9f597e27c82d9b8dd27d1f", "detected_licenses": [ "MIT" ], "directory_id": "d8cad73652b03ed55825177bfc038ea8efd4ae08", "extension": "c", ...
stackv2
#include <iostream> #include <stdio.h> /*• Declare um vetor de caracteres e inicialize com a string "algoritmos". Então conte quantos caracteres tem esta string e imprima. */ int main(int argc, char** argv) { char str[]= "algoritmos"; int i; for(i=0;str[i];++i){ printf("Caractere: %c\n",str[i]); } printf("Quant...
3.65625
4
2024-11-18T20:57:47.626286+00:00
2013-10-10T07:20:26
656341f6e9e2c391c8aec6764f1fc436ef3d45fd
{ "blob_id": "656341f6e9e2c391c8aec6764f1fc436ef3d45fd", "branch_name": "refs/heads/master", "committer_date": "2013-10-10T07:20:26", "content_id": "2f6d3477642299c667452b1af68fec288b7a6e78", "detected_licenses": [ "MIT" ], "directory_id": "b86843a72bc3938d26e8036c67145cd07059bf19", "extension": "c"...
stackv2
/* * cConfig.c * * Copyright (c) 2012 "cConfig" Niels Vanden Eynde * * 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.359375
2
2024-11-18T20:57:48.634861+00:00
2023-05-24T19:48:55
158f57ab3e02a0e727e3087cb2a0b381e16b7a3d
{ "blob_id": "158f57ab3e02a0e727e3087cb2a0b381e16b7a3d", "branch_name": "refs/heads/master", "committer_date": "2023-05-24T19:48:55", "content_id": "5479735291c58d92e5b92a2b300c87ed7f335a40", "detected_licenses": [ "MIT" ], "directory_id": "0541cc80602b7ddaa62197e8eecdc0235a4df8bf", "extension": "h"...
stackv2
#ifndef RENDER_DRM_FORMAT_SET_H #define RENDER_DRM_FORMAT_SET_H #include <stdbool.h> #include <stddef.h> #include <stdint.h> /** A single DRM format, with a set of modifiers attached. */ struct drm_format { // The actual DRM format, from `drm_fourcc.h` uint32_t format; // The number of modifiers size_...
2.5
2
2024-11-18T20:57:48.809277+00:00
2016-09-09T04:31:49
74f94f7dacd8ba0dc81ee6d279a9562f02d35296
{ "blob_id": "74f94f7dacd8ba0dc81ee6d279a9562f02d35296", "branch_name": "refs/heads/master", "committer_date": "2016-09-09T04:31:49", "content_id": "baf95ef91904efffc8905ed10960773d7a10771f", "detected_licenses": [ "MIT" ], "directory_id": "95cb3e87fc75a11579dedac362408d402f86b3dd", "extension": "c"...
stackv2
#include <stdlib.h> #include <math.h> #include <time.h> #include "cab202_graphics.h" #include "cab202_timers.h" #include "cab202_sprites.h" #include "pong.h" int main() { setup_screen(); setup(); while (running) { clear_screen(); process(); show_screen(); timer_pause(DELA...
2.703125
3
2024-11-18T20:57:48.872432+00:00
2021-01-22T22:20:06
c4f86d4edfd3ea3df0480f7f88d388f96ec3cdb9
{ "blob_id": "c4f86d4edfd3ea3df0480f7f88d388f96ec3cdb9", "branch_name": "refs/heads/master", "committer_date": "2021-01-22T22:20:06", "content_id": "f8a3e51de9fff6b9592b74f5a7e37de1a0bdb2b7", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c3ac780e5fa6ecde494af5fd46488a9af847d17e", "extens...
stackv2
/* This file is part of ParTI!. ParTI! is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ParTI! is distributed...
2.265625
2
2024-11-18T20:57:51.819062+00:00
2015-04-24T14:08:42
ff21cc73b2ecc154ef96916f8a5d056ee983e364
{ "blob_id": "ff21cc73b2ecc154ef96916f8a5d056ee983e364", "branch_name": "refs/heads/webupload", "committer_date": "2015-04-24T14:08:42", "content_id": "59d620e59454ef5c3f45bd76abf96a28e2627c6a", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "582c4802cef0aea802dc556ab5c14...
stackv2
/**************************************************************************** * Copyright (C) 1998 WIDE Project. All rights reserved. * Copyright (C) 1999,2000,2001,2002 University of Tromso. All rights reserved. * Copyright (C) 2002 Invenia Innovation AS. All rights reserved. * * Author: Feike W. Dillema, feico@p...
2.265625
2
2024-11-18T20:57:53.223048+00:00
2023-07-27T14:49:11
b807d2927248348bd58a4697e8b3f43e411d17a2
{ "blob_id": "b807d2927248348bd58a4697e8b3f43e411d17a2", "branch_name": "refs/heads/master", "committer_date": "2023-07-27T14:49:11", "content_id": "fdd9918c8e22b52dcb8afd813bfa0974a1e5fb5f", "detected_licenses": [ "MIT" ], "directory_id": "13e2a9bf3ebb4d2c6cdcc5b3cadaa9d87d94933e", "extension": "c"...
stackv2
#include "game/scenes/newsroom.h" #include "audio/music.h" #include "game/gui/dialog.h" #include "game/gui/menu_background.h" #include "game/gui/text_render.h" #include "game/utils/settings.h" #include "resources/ids.h" #include "resources/languages.h" #include "resources/pilots.h" #include "utils/allocator.h" #include...
2.09375
2
2024-11-18T20:58:01.473857+00:00
2021-09-12T05:21:02
962c78dd15134e5355bcfdef6dac5b105103bc7b
{ "blob_id": "962c78dd15134e5355bcfdef6dac5b105103bc7b", "branch_name": "refs/heads/master", "committer_date": "2021-09-12T05:21:02", "content_id": "4b5b13cad10974923cdfce5ee4d0505d5f50eea0", "detected_licenses": [ "MIT" ], "directory_id": "045f9ad2722216f8e8f6db61786a101d2a745473", "extension": "c"...
stackv2
#include "syscall.h" #include "types.h" #include "memory.h" #include "proc.h" #include "fs.h" #include "string.h" #include "io.h" #include "util.h" #include "sys_file.h" extern struct file console_file; int sys_open(struct int_regs *int_frame) { uint32_t user_esp = int_frame->esp; char *path = NULL; if (...
2.5
2
2024-11-18T20:58:01.988492+00:00
2015-10-17T14:03:47
950f2bf2a3b9d7c8174c2cea24cd0a47448cf931
{ "blob_id": "950f2bf2a3b9d7c8174c2cea24cd0a47448cf931", "branch_name": "refs/heads/master", "committer_date": "2015-10-17T14:03:47", "content_id": "a0284142181636607852ea3a91e6420a2f48739a", "detected_licenses": [ "MIT" ], "directory_id": "e207c098396b97f5a3d38639400df7616acf0f88", "extension": "c"...
stackv2
#include <stdio.h> #include "linked_list.h" int main(int argc, char** argv) { t_maillon* list = new_maillon(4); list->next = new_maillon(19); list->next->next = new_maillon(2); list->next->next->next = new_maillon(7); int found; printf("Taille liste : %u \n", linked_list_size(list)); printf("Valeur po...
2.828125
3
2024-11-18T20:58:02.090476+00:00
2020-03-25T05:50:33
d967546c4880f6c5d5b25161367d76c1d66b699c
{ "blob_id": "d967546c4880f6c5d5b25161367d76c1d66b699c", "branch_name": "refs/heads/master", "committer_date": "2020-03-25T05:50:33", "content_id": "868d5f1c56956f18138a60d3d530b2d92c0d902a", "detected_licenses": [ "MIT" ], "directory_id": "85c84a8a0b71414a9c04ff097b39c085ff562eb3", "extension": "c"...
stackv2
#include "bootpack.h" // 初期化関数 void fifo8_init(struct FIFO8 *fifo, int size, unsigned char *buf) { fifo -> size = size; fifo -> buf = buf; fifo -> free = size; fifo -> flags = 0; fifo -> p = 0; fifo -> q = 0; return; } // FIFOに8bit(1byte)記録する int fifo8_put(struct FIFO8 *fifo, unsigned char...
2.921875
3
2024-11-18T21:09:16.066946+00:00
2022-04-24T17:49:12
4bbfe010912b2c7f67a737c1f6f8237a43a7f9cb
{ "blob_id": "4bbfe010912b2c7f67a737c1f6f8237a43a7f9cb", "branch_name": "refs/heads/master", "committer_date": "2022-04-24T17:49:12", "content_id": "cd8a897eadab24c4d53b17a54da8ed0aa87fa455", "detected_licenses": [ "MIT" ], "directory_id": "ccbc18f1ae7327778b978aa6e9cf02322db3bc0d", "extension": "c"...
stackv2
package dijkstra.c.simple; import java.util.Arrays; /** * Used to perform the dijkstra Algorithm using adjacency matrices. * For a faster implementation, see @see ../fast/Dijkstra.java (using adjacency Lists) */ public class Dijkstra { /** * Implementation of dijkstra using adjacency matrix. * This r...
3.65625
4
2024-11-18T21:09:16.293787+00:00
2023-09-01T09:21:17
079b4a057f2fb612e18abe8e44d36b18733ad359
{ "blob_id": "079b4a057f2fb612e18abe8e44d36b18733ad359", "branch_name": "refs/heads/master", "committer_date": "2023-09-01T09:45:00", "content_id": "d4f2af34724ed6bc685d7fa0ff37349b050938b3", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "011e552512f45ca313615e428924d001...
stackv2
/* * Phoenix-RTOS * * Operating system kernel * * Standard routines - red-black tree * * Copyright 2017 Phoenix Systems * Author: Jakub Sejdak * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #ifndef _LIB_RB_H_ #define _LIB_RB_H_ //#include "../hal/hal.h" #define lib_treeof(type, node_field, nod...
2.234375
2
2024-11-18T21:09:16.606789+00:00
2023-08-17T16:08:06
fd6d6cc0f145b91d645f5829956a999ea914703c
{ "blob_id": "fd6d6cc0f145b91d645f5829956a999ea914703c", "branch_name": "refs/heads/main", "committer_date": "2023-08-17T16:08:06", "content_id": "6581631f1c1c2ac27eae839a37e734a899db2d42", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066", "extensio...
stackv2
#include <../src/vec/vec/impls/nest/vecnestimpl.h> /*I "petscvec.h" I*/ /* check all blocks are filled */ static PetscErrorCode VecAssemblyBegin_Nest(Vec v) { Vec_Nest *vs = (Vec_Nest *)v->data; PetscInt i; PetscFunctionBegin; for (i = 0; i < vs->nb; i++) { PetscCheck(vs->v[i], PetscObjectComm((Petsc...
2.421875
2
2024-11-18T21:09:16.745539+00:00
2017-12-12T13:35:23
545c7b296300d1244ac74423c8d57678e197bf3f
{ "blob_id": "545c7b296300d1244ac74423c8d57678e197bf3f", "branch_name": "refs/heads/master", "committer_date": "2017-12-12T13:35:23", "content_id": "4eb13e22d7f4a9da415f72c41dd3b8ebf1ba95ae", "detected_licenses": [ "Unlicense", "BSD-2-Clause" ], "directory_id": "b9db971eebe2f3d52129004b96cee08971b...
stackv2
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copy...
2.125
2
2024-11-18T21:09:16.840811+00:00
2014-10-27T16:21:41
3d64c3cb2a9d232b6228f7e32a365615cca75ed8
{ "blob_id": "3d64c3cb2a9d232b6228f7e32a365615cca75ed8", "branch_name": "refs/heads/master", "committer_date": "2014-10-27T16:21:41", "content_id": "f8f1b7354ed49fa050e817e4443ba417ba56031f", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "b27e6f98905a4e9d213010320175111841b6c23e", "extens...
stackv2
#include <assert.h> #include <stdlib.h> #include <stdint.h> #include <math.h> /* Comparing function for qsort */ int compare_int64(const void *p1, const void *p2) { return (*(const int64_t *)p1 > *(const int64_t *)p2); } int main(int argc, char *argv[], char *arge[]) { size_t size = 67108864; // size_t size = (size...
2.46875
2
2024-11-18T21:09:16.913393+00:00
2023-05-14T06:13:40
d1cb05a21d65e9bd0a5dc1f28bc935c2fc7196f8
{ "blob_id": "d1cb05a21d65e9bd0a5dc1f28bc935c2fc7196f8", "branch_name": "refs/heads/master", "committer_date": "2023-05-14T06:13:40", "content_id": "119ce78dca2083af8ae3f4f8b62d89d9d0048947", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "9264a389f2bd761284f155accdbd190a...
stackv2
/* * Project : SIMD_Utils * Version : 0.2.5 * Author : JishinMaster * Licence : BSD-2 */ #pragma once #include <stdint.h> #include "immintrin.h" static inline void add512s(int32_t *src1, int32_t *src2, int32_t *dst, int len) { int stop_len = len / AVX512_LEN_INT32; stop_len *= AVX512_LEN_INT32; if ...
2.5
2
2024-11-18T21:09:17.079801+00:00
2017-04-04T14:49:50
5049ae7a8e76b6bdcd1cf6c7b97b0393d2271c24
{ "blob_id": "5049ae7a8e76b6bdcd1cf6c7b97b0393d2271c24", "branch_name": "refs/heads/master", "committer_date": "2017-04-04T14:49:50", "content_id": "93fa17e56ac2ea3ad3e21fd06abeb9a72d472ee2", "detected_licenses": [ "Unlicense" ], "directory_id": "9c67774e6de2d46701573df5b86a838c5bde0a90", "extension...
stackv2
// functions containing stuff for LED matrix // Matrix pins #define LED_CS P1_4 #define LED_DATA P1_3 #define LED_CLK P1_2 // libraries #include <stdio.h> #include <c8051f38x.h> #include "robot_header.h" // LED MATRIX IMAGE IN MEMORY (COMPRESSED) unsigned char MX_TURN[8] = {0x10, 0x30, 0x70, 0xFC, 0x76, 0x32, 0x12, ...
2.921875
3
2024-11-18T21:09:17.353721+00:00
2017-05-24T16:18:49
3b367c95536a8e7239d646978721ffe1d69b024c
{ "blob_id": "3b367c95536a8e7239d646978721ffe1d69b024c", "branch_name": "refs/heads/master", "committer_date": "2017-05-24T16:18:49", "content_id": "49709f5017242b7cc760e09e90db0a55e2a2c052", "detected_licenses": [ "MIT" ], "directory_id": "d762099b49fc8a6e4bad96e067f5328d22051794", "extension": "h"...
stackv2
// // Vertex.h // GeneticEvolution // // Created by Christian Cosgrove on 11/21/14. // Copyright (c) 2014 Christian. All rights reserved. // #pragma once #include "glm/glm.hpp" struct Vertex { glm::vec3 position; glm::vec3 color; Vertex(glm::vec3 pos, glm::vec3 col) : position(pos), color(col) {} Ve...
2.28125
2
2024-11-18T21:09:17.548378+00:00
2013-02-18T01:19:24
238da9f977abd5c4580553be1c0b23d4d5af3ea3
{ "blob_id": "238da9f977abd5c4580553be1c0b23d4d5af3ea3", "branch_name": "refs/heads/master", "committer_date": "2013-02-18T01:19:24", "content_id": "bcc54e99aedf68337cf9f7426c9e939519ef8468", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0ff4f88bed6c524eddc45cdef217a9ece457376d", "extensio...
stackv2
/***************************************************************************** * * * Copyright 2012 Thomas Lee * * * * L...
2.203125
2
2024-11-18T21:09:18.482531+00:00
2013-12-20T21:27:09
4b835e034a986767a12bfb7cd44bf3c47d187a09
{ "blob_id": "4b835e034a986767a12bfb7cd44bf3c47d187a09", "branch_name": "refs/heads/master", "committer_date": "2013-12-20T21:27:09", "content_id": "f6d265d97e1a60c96100f26cdfabe2206df0af84", "detected_licenses": [ "MIT" ], "directory_id": "043da47d8825018be200680174227adef5456959", "extension": "h"...
stackv2
/******************************************************************************* Copyright (c) 2010, Limbic Software, Inc. All rights reserved. ******************************************************************************/ #ifndef LAMB_MATH_MATRIX44F_H_ #define LAMB_MATH_MATRIX44F_H_ #include "lamb/codinggui...
2.203125
2
2024-11-18T21:09:18.622359+00:00
2020-02-17T09:35:14
5910188904db139a86b3661192b5e2b18692b0ec
{ "blob_id": "5910188904db139a86b3661192b5e2b18692b0ec", "branch_name": "refs/heads/master", "committer_date": "2020-02-17T09:35:14", "content_id": "d776affc756e236d10781aea6be56146036408c8", "detected_licenses": [ "MIT" ], "directory_id": "b6cd08e111ef200fe739c9bae4383088ff1fe2bb", "extension": "h"...
stackv2
#ifndef __PID_H__ #define __PID_H__ struct PID { float kp; //比例系数 float ki; //积分系数 float kd; //微分系数 float kc; //积分门限 double targetPoint; //目标点 double lastError; //Error[-1] double prevError; ...
2.140625
2
2024-11-18T21:09:19.458716+00:00
2021-10-10T04:51:52
726e991e3af9ced7779fec965384a370d90a666e
{ "blob_id": "726e991e3af9ced7779fec965384a370d90a666e", "branch_name": "refs/heads/main", "committer_date": "2021-10-10T04:51:52", "content_id": "0b8e2a4bb69636785cd96ea74cb00abc6d99dc65", "detected_licenses": [ "MIT" ], "directory_id": "cadaa9654fa3a29c38ccdbc522e9dd900a70cbe7", "extension": "c", ...
stackv2
#include <stdio.h> int logging_mode = 0; int set_logging_mode(int value) { /* * Sets logging mode to verbose (1) or quiet (0) */ logging_mode = value; } void log_message(char *message) { if (logging_mode == 0) { return; } printf("%s", message); } void log_error(char *error) { ...
2.734375
3
2024-11-18T21:09:19.573630+00:00
2023-05-31T14:21:53
29b584d36fb4af4f39a00985b547bd06d9eaeef4
{ "blob_id": "29b584d36fb4af4f39a00985b547bd06d9eaeef4", "branch_name": "refs/heads/main", "committer_date": "2023-05-31T14:21:53", "content_id": "6457788babcd650177f694c1bb186a6549a5f8a5", "detected_licenses": [ "MIT" ], "directory_id": "089a5095283e7cd2d23553f17fcc4a2faa1ef98e", "extension": "c", ...
stackv2
typedef struct Node { struct Node* next; struct Node* prev; int val; } Node; typedef struct { Node* head; Node* tail; int length; } MyLinkedList; Node* createNode(int val) { Node* new_node = (Node*)malloc(sizeof(Node) ); new_node->next = NULL; new_node->prev = NULL; new_node->v...
3.265625
3
2024-11-18T21:09:19.851010+00:00
2023-08-29T06:33:10
e3a9ee302a799fa563cd68dfad9d25290b07f33e
{ "blob_id": "e3a9ee302a799fa563cd68dfad9d25290b07f33e", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T06:33:10", "content_id": "f1de41a5713ebacea0797cb66a2ff18ff9e179e7", "detected_licenses": [ "Apache-2.0" ], "directory_id": "676acab8ff535019faff7da3afb8eecc3fa127f5", "extensio...
stackv2
/****************************************************************************** * Copyright 2022 The Firmament Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License ...
2.203125
2
2024-11-18T21:09:20.156268+00:00
2022-03-10T21:08:40
cedc613799901b58a4acadce3478fa8c5da63d74
{ "blob_id": "cedc613799901b58a4acadce3478fa8c5da63d74", "branch_name": "refs/heads/main", "committer_date": "2022-03-10T21:08:40", "content_id": "81968004085ad06c1c27def608d233f71a780536", "detected_licenses": [ "MIT" ], "directory_id": "d3e4ff2671841b86dd7744efc770e723a233b1da", "extension": "c", ...
stackv2
#include "common.h" #include "device/mmio.h" #include "misc.h" #define MMIO_SPACE_MAX (256 * 1024) #define NR_MAP 8 static uint8_t mmio_space_pool[MMIO_SPACE_MAX]; static uint32_t mmio_space_free_index = 0; typedef struct { hwaddr_t low; hwaddr_t high; uint8_t *mmio_space; mmio_callback_t callback; } MMIO_t; st...
2.625
3
2024-11-18T21:09:20.284056+00:00
2023-05-24T20:22:32
62a2fbf4fe6c1641594d94c59917c74981a35fa6
{ "blob_id": "62a2fbf4fe6c1641594d94c59917c74981a35fa6", "branch_name": "refs/heads/main", "committer_date": "2023-05-24T20:22:32", "content_id": "99c64fa5f88ffd2244d2837d1996f9576902f341", "detected_licenses": [ "MIT" ], "directory_id": "cc56c569de3931944b38ed23671e38e79c15a248", "extension": "c", ...
stackv2
/* The MIT License (MIT) Copyright (c) 2013-16 Frank Hunleth 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, mer...
2.546875
3
2024-11-18T21:09:20.454922+00:00
2018-07-08T16:35:01
db160948a4687246bf1b6c88de98fdfef9702623
{ "blob_id": "db160948a4687246bf1b6c88de98fdfef9702623", "branch_name": "refs/heads/master", "committer_date": "2018-07-08T16:35:01", "content_id": "3fc0821451cc620a76fb395ad97c813e26fc4c86", "detected_licenses": [ "MIT" ], "directory_id": "a6f9fbd87e8f6c18588d496aec2c28c1d4129933", "extension": "c"...
stackv2
#include <stdio.h> #define SUNNY 01 // 001 #define RAINING 02 // 010 #define WINDY 04 // 100 struct flags { unsigned is_sunny: 1; unsigned is_raining: 1; unsigned is_windy: 1; }; typedef struct flags flags_t; void forecast_flags( flags_t f ) { // test if any of the fs are set // test if none of the f are s...
2.78125
3
2024-11-18T21:09:21.256750+00:00
2019-08-06T14:24:54
3c20a57d2218c3cd5a3adf46eeb4943f60db8db6
{ "blob_id": "3c20a57d2218c3cd5a3adf46eeb4943f60db8db6", "branch_name": "refs/heads/master", "committer_date": "2019-08-06T14:24:54", "content_id": "a720c9e92df7fa093087bb0bd13d7d14d39fda77", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "021a3ccdcb91d84629f1de7343981b572840b169", "extens...
stackv2
static char help[] = "Tests the PetscByteSwap()\n"; #include <petscsys.h> int main(int argc,char **argv) { PetscErrorCode ierr; PetscInt oint[2],sint[2]; PetscBool obool[2],sbool[2]; PetscScalar oscalar[2],sscalar[2]; double odouble[2],sdouble[2]; float ofloat[2],sfloat[2]; ...
2.453125
2
2024-11-18T21:09:22.781966+00:00
2019-08-06T07:35:08
ebc409fb2629747dc4f915ceb6f52ae47089128a
{ "blob_id": "ebc409fb2629747dc4f915ceb6f52ae47089128a", "branch_name": "refs/heads/master", "committer_date": "2019-08-06T07:35:08", "content_id": "9eed9f2f8a00da687c1973526e78f5ae6f08e2f7", "detected_licenses": [ "MIT" ], "directory_id": "9d8178f3401860259e8e27220cb2e9e035a0af44", "extension": "c"...
stackv2
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
2.203125
2
2024-11-18T21:09:24.714581+00:00
2020-05-23T02:32:38
13c34207d0b4317e05b6ba075b7a432f6ddf5997
{ "blob_id": "13c34207d0b4317e05b6ba075b7a432f6ddf5997", "branch_name": "refs/heads/master", "committer_date": "2020-05-23T02:32:38", "content_id": "6654918b93c09594a297b0f32493dcacd3b5aee6", "detected_licenses": [ "MIT" ], "directory_id": "3cf9c3a914dcab63f68c0209082c07a26521e3ec", "extension": "c"...
stackv2
#include <fcntl.h> #include <assert.h> #include <string.h> #include "backprop.h" #include <unistd.h> #include <sys/stat.h> char *readfile(int fd) { char *p; struct stat s; off_t len; ssize_t bytes_read, status; assert(fd>1 && "Invalid file descriptor"); assert(0==fstat(fd, &s) && "Couldn't determine file...
2.78125
3
2024-11-18T21:09:25.582825+00:00
2019-12-19T03:59:22
7d49d3e76d949674c82ef5ade712dd779b3c6258
{ "blob_id": "7d49d3e76d949674c82ef5ade712dd779b3c6258", "branch_name": "refs/heads/master", "committer_date": "2019-12-19T03:59:22", "content_id": "9f90b37d4162f71b9ed57993e51ffcd52d7bbf8a", "detected_licenses": [ "BSD-2-Clause", "NCSA" ], "directory_id": "83964e7fb41ee62e3084eef5d3deef07eecdd93e...
stackv2
// Test this without pch. // RUN: %clang_cc1 -include %s -fsyntax-only -verify %s // Test with pch. // RUN: %clang_cc1 -emit-pch -o %t %s // RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s #ifndef HEADER #define HEADER extern float y; extern int *ip, x; float z; // expected-note{{previous}} int z2 = 17; ...
2.125
2
2024-11-18T21:09:25.730757+00:00
2017-09-05T15:38:22
35273729a6a8f351f6b13c70e31f208481aba131
{ "blob_id": "35273729a6a8f351f6b13c70e31f208481aba131", "branch_name": "refs/heads/master", "committer_date": "2017-09-05T15:38:22", "content_id": "ceb5cfe8e9721f3d0c3cb9f28238a8e915b9f017", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "14088b589c1a818eb044c7d2326a4cf5cf881ef8", "extens...
stackv2
/* -*- c-basic-offset:4; indent-tabs-mode: nil -*- */ #include "parse_cmd_ln.h" #include <s3/cmd_ln.h> #include <s3/ckd_alloc.h> #include <s3/feat.h> #include <s3/s3io.h> #include <s3/matrix.h> #include <s3/clapack_lite.h> #include <s3/vector.h> #include <s3/corpus.h> #include <s3/model_def_io.h> #include <s3/err.h> ...
2.140625
2
2024-11-18T21:09:25.964227+00:00
2020-11-30T03:52:58
a299cb26fe8ea4d1d8e40a9817b7792ab3a9843f
{ "blob_id": "a299cb26fe8ea4d1d8e40a9817b7792ab3a9843f", "branch_name": "refs/heads/main", "committer_date": "2020-11-30T03:52:58", "content_id": "f3b2f2a441d83aa7e340e306ea176ec5192f3426", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c438005959127098709e83471884ff37369ce5a4", "extension"...
stackv2
// // main.c // 3.1 示例程序 // // Created by 郭龙飞 on 2020/11/4. // /* platinum.c -- your weight in platinum */ #include <stdio.h> int main(void) { float weight; // 体重 float value; //白金价值 printf("Are you worth your weight in platinum?\n"); printf("Let's check it out.\n"); printf("please enter your w...
3.375
3
2024-11-18T21:09:26.254587+00:00
2021-03-13T14:30:41
ed92fa3b224628f4c2fa7bd136ba5de4c1865403
{ "blob_id": "ed92fa3b224628f4c2fa7bd136ba5de4c1865403", "branch_name": "refs/heads/main", "committer_date": "2021-03-13T14:30:41", "content_id": "dd1e5cb26248c818f4b1252beaba459d6c9b7a32", "detected_licenses": [ "MIT" ], "directory_id": "673487fc58f63c24b4f1fa1836d443c89e286a1c", "extension": "c", ...
stackv2
#include "input.h" /* Function to read the parameters from the input file and store them in variables */ INPUT * readFile(char *fileName, INPUT *I, FILE *outputFile) { char c[100]; FILE *fp = NULL; if ((fp = fopen(fileName, "r")) == NULL) { fprintf(stderr, "Unable to ope...
2.859375
3
2024-11-18T21:09:26.474539+00:00
2021-03-30T22:38:12
a4e3a36d1f8c5bd23b797f0a4d647430ffdcc768
{ "blob_id": "a4e3a36d1f8c5bd23b797f0a4d647430ffdcc768", "branch_name": "refs/heads/main", "committer_date": "2021-03-30T22:38:12", "content_id": "9e36f5c8c8762f9d89ce712f901b62bac407dcc1", "detected_licenses": [ "MIT" ], "directory_id": "b8584c95fb8845398cd5e6e81c1d141897f3a75b", "extension": "c", ...
stackv2
/* * This file is where you should implement your stack. It already contains * skeletons of the functions you need to implement (along with documentation * for each function). Feel free to implement any additional functions you * might need. Also, don't forget to include your name and @oregonstate.edu * email a...
3.390625
3
2024-11-18T21:09:26.818048+00:00
2022-07-26T19:29:48
89f7f4378506d9e85a6c38b1cc93b612338d2c9d
{ "blob_id": "89f7f4378506d9e85a6c38b1cc93b612338d2c9d", "branch_name": "refs/heads/master", "committer_date": "2022-07-26T19:29:48", "content_id": "7d490387558d7d95c3e52c6c25ddf575a6eb1009", "detected_licenses": [ "Unlicense" ], "directory_id": "05557c0fc6d922cddb2d827defe85c8a0dd5f34e", "extension...
stackv2
/* * Mathematical expression evaluator. * * See eval.h for more info * * This is free and unencumbered software released into the public domain. * http://unlicense.org/ */ /* * You can use the following awk script to obtain the syntax of the parser in * [my own] EBNF form: * * awk '/\*#/{a=index($0,"#")+2...
2.6875
3
2024-11-18T21:09:27.317020+00:00
2018-06-20T04:41:26
43316a1104e6d3d489eb6868a3bc217df66ebcc1
{ "blob_id": "43316a1104e6d3d489eb6868a3bc217df66ebcc1", "branch_name": "refs/heads/master", "committer_date": "2018-06-20T04:41:26", "content_id": "db8fe142fcac642cdca84f5071ed0e111c1271fe", "detected_licenses": [ "MIT" ], "directory_id": "a03f87c7f99d4f2f330df782de80958a5c19815a", "extension": "h"...
stackv2
#ifndef FRIENDS_MEMORY_H #define FRIENDS_MEMORY_H #include "friends_defs.h" /** * @brief 新しいメモリ管理領域を作るのです。 * @param e NULL でなければ、そこにエラーの情報を書き込むのです。 * @return 新しく作ったメモリ管理領域を返すのです。 */ friendsMemory *friendsNewMemory(friendsError *e); /** * @brief メモリ管理領域を削除するのです。 * @param pool 削除するメモリ管理領域をよこすのです。 * * 登録されているす...
2.578125
3
2024-11-18T21:09:27.514272+00:00
2018-09-16T17:31:31
fccff303c04b90336b0c092ffb86dec0933c24f2
{ "blob_id": "fccff303c04b90336b0c092ffb86dec0933c24f2", "branch_name": "refs/heads/master", "committer_date": "2018-09-16T17:31:31", "content_id": "5e7e0afa799a895790525d5cc10ac85759952f12", "detected_licenses": [ "MIT" ], "directory_id": "9bb3569bda64843a4a968e2bccd0701003545f26", "extension": "c"...
stackv2
#include "bitmap.h" #include <stdio.h> // converts a block index to an index in the array, // and a char that indicates the offset of the bit inside the array BitMapEntryKey BitMap_blockToIndex(int num){ int entry_num = num/8; char bit_num = (char)(num%8); BitMapEntryKey res; res.entry_num = entry_nu...
3.28125
3
2024-11-18T21:09:28.268584+00:00
2016-02-11T17:26:09
7767ecd29ae41bd4c1a2deb252f898e450437e43
{ "blob_id": "7767ecd29ae41bd4c1a2deb252f898e450437e43", "branch_name": "refs/heads/master", "committer_date": "2016-02-11T17:26:09", "content_id": "9e49c595743534693bbf0b3aab3006d84f900b27", "detected_licenses": [ "MIT" ], "directory_id": "34edab51b4e6966c1b6666152926d505dfbd11a5", "extension": "c"...
stackv2
/** Copyright (C) 2003-2006 Michael Ahlberg, Måns Rullgård 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,...
2.0625
2
2024-11-18T21:09:29.722709+00:00
2019-01-26T21:44:49
960380497b4e337f5aecb62c4601a1eceea25d5d
{ "blob_id": "960380497b4e337f5aecb62c4601a1eceea25d5d", "branch_name": "refs/heads/master", "committer_date": "2019-01-26T21:44:49", "content_id": "b66115aae951fc3288d233d932174752ec6bddd4", "detected_licenses": [ "MIT" ], "directory_id": "ab83049141b3a1f35166e11c7e74e7db8be0950d", "extension": "c"...
stackv2
#include "sprite.h" #include "tonc.h" void setSpriteObjectPosition(OBJ_ATTR* spriteObject, ObjectPoint position) { BFN_SET(spriteObject->attr0, position.y - 8, ATTR0_Y); BFN_SET(spriteObject->attr1, position.x - 8, ATTR1_X); }
2.015625
2
2024-11-18T21:09:29.993380+00:00
2019-03-23T01:35:07
3cb7e0591b0c0d3eac7df34e53a3e24202420edf
{ "blob_id": "3cb7e0591b0c0d3eac7df34e53a3e24202420edf", "branch_name": "refs/heads/master", "committer_date": "2019-03-23T01:35:07", "content_id": "58c44b617aa73ae428d3feecb493f0dece494754", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "df33f1348277ef3bacda73a99c3fcfa8269e73e4", "extens...
stackv2
/** * Copyright (C) 2018, Hao Hou **/ #if HAS_ZLIB #include <stdint.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <zlib.h> #include <pservlet.h> #include <pstd.h> #include <pstd/mempool.h> #include <pstd/types/trans.h> #include <zlib_token.h> typedef struct { uint32_t data_source_eos:1...
2.5625
3
2024-11-18T21:09:30.673800+00:00
2014-10-11T15:35:31
63f9578436c434002ccfeb26949c053e542a39fe
{ "blob_id": "63f9578436c434002ccfeb26949c053e542a39fe", "branch_name": "refs/heads/master", "committer_date": "2014-10-11T15:35:31", "content_id": "b95f4810f2c4e8d5f6b386f70fcede6de56ec7da", "detected_licenses": [ "MIT" ], "directory_id": "fada3491749cc3f2274ed5439f2232097dd0d1fc", "extension": "c"...
stackv2
#include "board.h" /* DMA UART routines idea lifted from AutoQuad Copyright © 2011 Bill Nesbitt */ static uartPort_t uartPort1; static uartPort_t uartPort2; // USART1 - Telemetry (RX/TX by DMA) uartPort_t *serialUSART1(uint32_t baudRate, portMode_t mode) { uartPort_t *s; static volatile uint8_t rx1Bu...
2.140625
2
2024-11-18T21:09:30.765752+00:00
2019-12-06T00:05:17
56df9620f08bae3535e838dc202fe281a7689a56
{ "blob_id": "56df9620f08bae3535e838dc202fe281a7689a56", "branch_name": "refs/heads/master", "committer_date": "2019-12-06T00:05:17", "content_id": "621337327b824a11b1ad2e440485285c5185e48b", "detected_licenses": [ "MIT" ], "directory_id": "3a91fc3584707a2db8777bcc7639c39baac06855", "extension": "c"...
stackv2
#include "tests.h" #include "avocc.h" #include <stdio.h> #include <string.h> void test_source_init_free() { avoc_source src0; avoc_source_init(&src0, NULL, NULL, 0L); assert_okb(src0.buf_data == NULL); assert_eql(src0.buf_len, 0L); assert_eql(src0.buf_pos, 0L); assert_eq(src0.cur_cp, 0); assert_eq(src0.n...
2.5
2
2024-11-18T21:09:31.092178+00:00
2023-09-01T13:55:35
b844963299f610e07abb6282d69d675a27aca53e
{ "blob_id": "b844963299f610e07abb6282d69d675a27aca53e", "branch_name": "refs/heads/master", "committer_date": "2023-09-01T13:55:35", "content_id": "f67cf17820994f791d37eea79b11c21a07533c14", "detected_licenses": [ "NIST-Software" ], "directory_id": "198a497422f10ce47985a32136e4bf547a47b1e4", "exten...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> void usage(void); int batchfile_exists(char *filename); /* ------------------ main ------------------------ */ int main(int argc, char **argv){ int i; char *arg; if(argc==1){ usage(); return 1; } for(i=1;i<argc;i++){ arg=argv[i]; i...
2.8125
3
2024-11-18T21:09:31.233028+00:00
2018-02-19T09:28:52
da53beeaa09ea2687b0a8844f3a287a5d1e21a61
{ "blob_id": "da53beeaa09ea2687b0a8844f3a287a5d1e21a61", "branch_name": "refs/heads/master", "committer_date": "2018-02-19T09:28:52", "content_id": "6ed47e1cf175a285daa6d4527903c11213cda70f", "detected_licenses": [ "MIT" ], "directory_id": "aec0c01cb1e098dd0a021c8c46f5b598dee3f7b0", "extension": "c"...
stackv2
#include "mysh.h" //shell main process void myproc(FILE* instream, int model) { char Redir[2] = ">"; char Backgd[2] = "&"; char Pipe[2] = "|"; char error_message[30] = "An error has occurred\n"; int BackProc_cnt = 0; pid_t BackProc[MAXNBGPROC]; int status; char* buffer = (char*)malloc(size...
2.15625
2
2024-11-18T21:09:31.653297+00:00
2022-04-15T07:49:21
ca665ff03125f17ac7e69fce2f7e67404105ccf3
{ "blob_id": "ca665ff03125f17ac7e69fce2f7e67404105ccf3", "branch_name": "refs/heads/master", "committer_date": "2022-04-15T07:49:21", "content_id": "afa441ee63ac7ad62467cb48acca08f0907c1f06", "detected_licenses": [ "MIT" ], "directory_id": "3224e35e1ec1d387bf50990a2e59157f6f84f98c", "extension": "c"...
stackv2
#include "mq4.h" #include "stm32f10x.h" #include "stm32f10x_adc.h" void MQ4_ADC_init(void) { GPIO_InitTypeDef GPIO_InitStructure; ADC_InitTypeDef ADC_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_AFIO|RCC_APB2Periph_ADC2,ENABLE); RCC_ADCCLKConfig(RCC_PCLK2_Div6);//12M 最大14M 设置ADC时钟(...
2.234375
2
2024-11-18T21:09:33.185393+00:00
2023-06-01T17:48:37
23aa854120a2f853b042e2760be5a18e539c3f9a
{ "blob_id": "23aa854120a2f853b042e2760be5a18e539c3f9a", "branch_name": "refs/heads/master", "committer_date": "2023-06-01T17:48:37", "content_id": "6350275a56c56269a11d5c827ccc475e49eb80b7", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0a97b814e4e90c6abb25c1fdc00eb5bc7015cabf", "extensio...
stackv2
#include <lexer.h> #include <wchar.h> #define LEXER_ERROR_BUFFER_LENGTH 64 /**/ #define is_blank( c ) \ (c == L' ') #define is_tab( c ) \ (c == L'\t') #define is_newline( c ) \ (c == L'\n') #define is_whitespace( c ) \ (is_blank( c ) || is_tab( c ) || is_newline( c )) /**/ #define is_number( c ) \ ...
2.40625
2
2024-11-18T21:09:33.311822+00:00
2018-07-26T03:35:32
32ee97f193661ea0b3998bad2aa23da9dee890a0
{ "blob_id": "32ee97f193661ea0b3998bad2aa23da9dee890a0", "branch_name": "refs/heads/master", "committer_date": "2018-07-26T03:35:32", "content_id": "befc76b4956679e17a1643be5f3363f2bd7eba82", "detected_licenses": [ "MIT" ], "directory_id": "076d746eef1db0837a86cf314fb041fd35572801", "extension": "c"...
stackv2
// sdd_ast.c // // Copyright (c) 2016 CharlesLee // // 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, me...
2.25
2
2024-11-18T21:09:34.256831+00:00
2020-03-03T19:33:34
85bf64586355a9a0e6fc4cf3a74e325ba2f3e560
{ "blob_id": "85bf64586355a9a0e6fc4cf3a74e325ba2f3e560", "branch_name": "refs/heads/master", "committer_date": "2020-03-03T19:33:34", "content_id": "4c850f63b69a9316421a874c58d99b3182922aa5", "detected_licenses": [ "Unlicense" ], "directory_id": "0d98ad615a7ee36eb65f311197f0251c52e1761a", "extension...
stackv2
#include<stdio.h> #include<stdlib.h> #include"linkedList.h" void append(Node** head_ref, Song new_data) { /* 1. allocate node */ Node* new_node = (Node*) malloc(sizeof(Node)); Node *last = *head_ref; /* used in step 5*/ /* 2. put in the data */ new_node->data = new_data; ...
3.796875
4
2024-11-18T21:09:34.332624+00:00
2017-12-21T02:39:22
50d65d1c3c893f6cb48e463cfa8ec9ae5cde901b
{ "blob_id": "50d65d1c3c893f6cb48e463cfa8ec9ae5cde901b", "branch_name": "refs/heads/master", "committer_date": "2017-12-21T02:39:22", "content_id": "6990e53b7a9d10d5df7fb2bc61c21ce0595c8320", "detected_licenses": [ "MIT" ], "directory_id": "455e8a95cffe9da26eca6d4d1c03847b3175aba7", "extension": "c"...
stackv2
#include<stdio.h> void tower(int,char,char,char); void main() { int n; printf("Enter no of disks: "); scanf("%d",&n); printf("Sequence involved are\n"); tower(n,'A','C','B'); } void tower(int n, char from, char top, char aux) { if(n==1) { printf("Move Disk 1 from %c to %c\n",from,top); return; } tower(n-1...
3.375
3
2024-11-18T21:09:34.493928+00:00
2019-11-16T22:07:55
fbdf12aa0c38f947a4c8c092d3c78dcc1d727f98
{ "blob_id": "fbdf12aa0c38f947a4c8c092d3c78dcc1d727f98", "branch_name": "refs/heads/master", "committer_date": "2019-11-16T22:15:13", "content_id": "897d3c1aed2df773e6ce756fd7c13e258fa8a343", "detected_licenses": [ "MIT" ], "directory_id": "218a7b74dd777cc502309cb2d99bd2dafa886db6", "extension": "h"...
stackv2
/* mem_pool.h -- memory pool v1.11 A c_vector of memory blocks. Allocates a contiguous piece of memory, gives you pointers to a preset number of bytes at a time. When it reaches the end of the current memory block, allocates another. Allocated memory is only freed at once upon reset, or on des...
2.90625
3
2024-11-18T21:09:34.766020+00:00
2020-09-08T02:52:56
1f49f437b3b958c2204e897587ca92f97cce523e
{ "blob_id": "1f49f437b3b958c2204e897587ca92f97cce523e", "branch_name": "refs/heads/master", "committer_date": "2020-09-08T02:52:56", "content_id": "3fd559460293681ea2deb13bf3401b15b7b1b08c", "detected_licenses": [ "MIT" ], "directory_id": "efb25a20ecddb3a0a8795bc616069fc1a94e5375", "extension": "h"...
stackv2
/* * Copyright (c) 2008-2015 Freescale Semiconductor, Inc. * Copyright 2016-2018 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #if !defined(_ELF_h_) #define _ELF_h_ //! \name ELF types //! Types used in ELF file structures. //@{ typedef uint32_t Elf32_Addr; typedef uint16_t Elf32_Half;...
2.34375
2
2024-11-18T21:09:34.833980+00:00
2023-08-27T19:14:02
bfd5a653dc85877c1ee373f608cae287322391cb
{ "blob_id": "bfd5a653dc85877c1ee373f608cae287322391cb", "branch_name": "refs/heads/master", "committer_date": "2023-08-27T19:14:02", "content_id": "9c04d52037de5045a1e4f269bdd4dd03b0832c01", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "7c857119fe1505b1d80d6e62969661c06dc1a2f4", "extens...
stackv2
/** @file Service Processor Management Interface (SPMI) ACPI table definition from Intelligent Platform Management Interface Specification Second Generation. Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent @par Revision Reference: - Intelligen...
2.15625
2
2024-11-18T21:09:34.918966+00:00
2021-05-13T15:45:50
43a99ff1e687bd3f87cb116c28cd8e50c13da57d
{ "blob_id": "43a99ff1e687bd3f87cb116c28cd8e50c13da57d", "branch_name": "refs/heads/main", "committer_date": "2021-05-13T15:45:50", "content_id": "54846b967b7eb013363107c04cae75e83ee58d21", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e52a03615c9237b53432ceb30584abbbdd5e4d45", "extension"...
stackv2
// // Created by rytong on 2021/4/27. // #include "security.h" #include <android/log.h> #include <string.h> #include <stdlib.h> #include <openssl/evp.h> #include <openssl/pem.h> #include <stdio.h> #define LOG_TAG "LOG_C" #define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__) jbyteArray J...
2.203125
2
2024-11-18T21:09:35.273839+00:00
2014-04-04T18:21:15
ce1f993c5f3e19d3fcf5e083564c9d607d811d90
{ "blob_id": "ce1f993c5f3e19d3fcf5e083564c9d607d811d90", "branch_name": "refs/heads/master", "committer_date": "2014-04-04T18:21:15", "content_id": "a7ae15c1f73958a8eacc5ead8cb3ba27ee634488", "detected_licenses": [ "MIT" ], "directory_id": "7e2c9ea8a31c3c955af74f0daf952ba6d7697651", "extension": "c"...
stackv2
/* Copyright (C) 2014 Patrick Demian 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, distrib...
2.625
3
2024-11-18T21:09:35.333755+00:00
2019-05-13T13:40:29
b270ddb984aac0c8388d9b1e7707465d40ba6716
{ "blob_id": "b270ddb984aac0c8388d9b1e7707465d40ba6716", "branch_name": "refs/heads/master", "committer_date": "2019-05-13T13:40:29", "content_id": "a09d48adb9e720a7e6dca88a60b18e7465caa682", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "2818e84c898daa580ce32b99a1d2bd295b2481de", "extens...
stackv2
/** * Copyright (c) 2019, Tsingtao Freqchip * * All rights reserved. * * */ /* * INCLUDE FILES **************************************************************************************** */ #include <stdio.h> #include <string.h> #include "gap_api.h" #include "driver_gpio.h" #include "driver_iomux.h" #inclu...
2.25
2
2024-11-18T21:09:35.638515+00:00
2021-09-14T04:49:56
1e44879fed96890845b3867bf5ef44a7fbcb6c1f
{ "blob_id": "1e44879fed96890845b3867bf5ef44a7fbcb6c1f", "branch_name": "refs/heads/master", "committer_date": "2021-09-14T04:49:56", "content_id": "152d5d9d61cdfcefb3fee57ef2e7476a4b59e711", "detected_licenses": [ "MIT" ], "directory_id": "10bacc7cc5a7a1cbd82f41bfc4e201360517e9b0", "extension": "c"...
stackv2
/*============================================================================== decode_max.c -- Used for code size measurement of max size of decoder. Copyright (c) 2020, Laurence Lundblade. All rights reserved. SPDX-License-Identifier: BSD-3-Clause See BSD-3-Clause license in README.md ======================...
2.328125
2
2024-11-18T21:09:35.853553+00:00
2022-06-16T13:42:25
8da63c5af7c3ee0769f9880b9e0b3e90a907ef77
{ "blob_id": "8da63c5af7c3ee0769f9880b9e0b3e90a907ef77", "branch_name": "refs/heads/master", "committer_date": "2022-06-16T13:42:25", "content_id": "62eb64fd156860627d3e33591e230119bfd295e0", "detected_licenses": [ "MIT" ], "directory_id": "a6c41a3afec655e173d520edbb8cd2fed827e052", "extension": "h"...
stackv2
#ifndef CHAR_IO_H_ #define CHAR_IO_H_ // stream ("flusso") di caratteri: sequenza di caratteri // TEXT stream: sequenza di caratteri divisa in linee; // ogni linea si compone di zero o più caratteri seguita dal carattere "new line" (\n) /* * c = getchar() legge il prossimo carattere dall'input (stdin, di solito è...
2.3125
2
2024-11-18T21:09:36.066441+00:00
2019-06-28T20:13:58
f6c16b36c7cb9e75419b12281cb960f825d96519
{ "blob_id": "f6c16b36c7cb9e75419b12281cb960f825d96519", "branch_name": "refs/heads/master", "committer_date": "2019-06-28T20:13:58", "content_id": "56c6e2627b6588a6c8ff291859fd3632ad02d125", "detected_licenses": [ "MIT" ], "directory_id": "47af4690b6e26285d37e388dcce594378fc1e21c", "extension": "c"...
stackv2
#include "types.h" #include "stat.h" #include "user.h" int main(void) { printf(1, "Father pid is %d\n", getpid()); sleep(10); int pid = fork(); for(int i = 0; i < 50; i++) { printf(1, "process %d is printing for the %d time\n", getpid(), i); } // wait for child if(pid > 0) { ...
2.5625
3
2024-11-18T21:09:36.321568+00:00
2017-11-29T02:08:36
85b4fac0af269ed5c735c2830e53cdc18c2fe2de
{ "blob_id": "85b4fac0af269ed5c735c2830e53cdc18c2fe2de", "branch_name": "refs/heads/master", "committer_date": "2017-11-29T02:08:36", "content_id": "304ef647807dacf6c1e6eb444e17c3b39a40091f", "detected_licenses": [ "MIT" ], "directory_id": "d9adf88fb5e7f6b6e5a1e3263259e69306220e4b", "extension": "c"...
stackv2
#include <stdio.h> #include <sys/socket.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <pthread.h> #include <sys/types.h> #include <netinet/in.h> #include <arpa/inet.h> #include "client_fun.h" int main(int argc,char *argv[]) { int sockfd = 0; //定义套接字 int err_log = 0; //绑定监听的返回值 int connfd...
2.78125
3
2024-11-18T21:09:38.015539+00:00
2021-05-05T21:10:19
70e0f3b9a9c91be5edb4fc58f1e71da5fbfeb78d
{ "blob_id": "70e0f3b9a9c91be5edb4fc58f1e71da5fbfeb78d", "branch_name": "refs/heads/master", "committer_date": "2021-05-05T21:10:19", "content_id": "75b5ba1d78437713c30cbdbd417bee80cc36b53b", "detected_licenses": [ "ISC" ], "directory_id": "aeaecf0810848f85f4a01b6bfdbec1b583b79ce9", "extension": "c"...
stackv2
/* * Fast 2D Delaunay triangulation in C. Yet another port of Delaunator. * https://github.com/mapbox/delaunator * * Copyright (c) 2017, Mapbox * Copyright (c) 2021, Rain Therrien * Distributed under the ISC license. * See accompanying LICENSE */ #include "delaunay/delaunay.h" #include "delaunay/helper.h" #in...
2.40625
2
2024-11-18T21:09:38.279390+00:00
2023-03-08T20:42:48
454f5690174c5e1df880f8efc42ad4aa95d7d130
{ "blob_id": "454f5690174c5e1df880f8efc42ad4aa95d7d130", "branch_name": "refs/heads/master", "committer_date": "2023-03-08T20:42:48", "content_id": "8ef8478308fe4c9384f6353d6d1fb241f586eb62", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "0ab78d9b913d22b626508ab993367555cc099fcb", "extens...
stackv2
/* * Copyright (c) 2015, Andrea Mazzoleni. All rights reserved. * * 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 c...
2.5
2