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-18T22:50:07.836603+00:00
2021-07-06T12:19:48
af81f7893bb87ac51678f386ad9ca68785087181
{ "blob_id": "af81f7893bb87ac51678f386ad9ca68785087181", "branch_name": "refs/heads/main", "committer_date": "2021-07-06T12:19:48", "content_id": "2c670e119f38223bc7157f44164197aec90119ad", "detected_licenses": [ "MIT" ], "directory_id": "e28838a5d220c17219acc55ee4f9ec6517b86871", "extension": "h", ...
stackv2
#ifndef inout_h #define inout_h #include "../../vortex.h" //operacje plikowe, alokacja i zwalnianie pamieci //sprawdza czy str1 kończy się na str2 (sprawdzanie rozszerzeń plików) int strEnd(const char* str1, const char* str2); //zmienia rozszerzenie pliku na ext - należy podać ".ext" jako parametr //wcześniej użyc ...
2.046875
2
2024-11-18T22:50:07.912884+00:00
2021-09-10T09:19:15
89c5a457b199b0e564158d8ad81a9e293fe92de3
{ "blob_id": "89c5a457b199b0e564158d8ad81a9e293fe92de3", "branch_name": "refs/heads/master", "committer_date": "2021-09-10T09:19:15", "content_id": "77594b354c8938bb7f2ecefee72b3c5a8a7a6c9a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "755deeaa74d9ea7612c5830cfe19a80041d9b2f0", "extensio...
stackv2
#include <windows.h> // Windows API definitions #include <windowsx.h> // Windows API definitions #include "ameolapi.h" // Ameol API definitions #include "winhorus.h" // Windows global memory allocation routines #include "moderate.h" // Reso...
2.046875
2
2024-11-18T22:50:07.988850+00:00
2023-04-03T13:40:26
da3de4ae4e8410d1069d74901fe48d79b4b9bc24
{ "blob_id": "da3de4ae4e8410d1069d74901fe48d79b4b9bc24", "branch_name": "refs/heads/master", "committer_date": "2023-04-03T13:40:26", "content_id": "5b2700d1a3472098db611292a3e8cbe2f05e3fcc", "detected_licenses": [ "MIT" ], "directory_id": "7e8cd86aa7ac4fb21fb472b460e95357f0e71eff", "extension": "c"...
stackv2
#include "board.h" #include <tm1638.h> #include <spi_3wire_soft.h> #define TM_ACTIVATE 0x8F // display on #define TM_DEACTIVATE 0x80 // display off #define TM_BUTTONS_MODE 0x42 // Buttons mode #define TM_WRITE_LOC 0x44 // Write to a location #define TM_WRITE_INC 0x40 // Incremental write #define TM_SEG_ADR 0xC0 // le...
2.515625
3
2024-11-18T22:50:08.297310+00:00
2017-11-29T15:12:44
f89910da6e9acdb58545b0ca29591ab465861c76
{ "blob_id": "f89910da6e9acdb58545b0ca29591ab465861c76", "branch_name": "refs/heads/master", "committer_date": "2017-11-29T15:12:44", "content_id": "3fd685a0a4db35e54a77037b653173321c7d26fc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9fa1e31f7ed2bada19b8c3090c677bb7dc4d5025", "extensio...
stackv2
#include "juma_sys_res_manage.h" #include "juma_error_code.h" #include "stdlib.h" #define RES_CURRENT_BUSY 1 #define RES_CURRENT_FREE 0 ///////////////////TIMER1/////////////////////////////// JUMA_Sys_Res juma_sys_res_timer1 = { .Current_Statue = RES_CURRENT_FREE, .Point = NULL, }; void TIM...
2.46875
2
2024-11-18T22:50:10.769506+00:00
2016-11-22T00:23:35
33bac07da1a38df6def577eac255f988d323abcc
{ "blob_id": "33bac07da1a38df6def577eac255f988d323abcc", "branch_name": "refs/heads/master", "committer_date": "2016-11-22T00:23:35", "content_id": "e3063e55dd8db93accf7c69023736ea46eaf9878", "detected_licenses": [ "MIT" ], "directory_id": "3ef5e345184799bbdcef1a331f7e93aa69d5b003", "extension": "c"...
stackv2
#include "main.h" static bool active = false; static color game_color = C_PIXEL; static MenuResult StartGame(void) { SDL_Event ev; MenuResult result = MENU_CONT; SDL_TimerID timer = SDL_ADDTIMER(SPEEDS[LEVEL-1]); if (!active) { maze_import(&mazes[MAZE]); snakes_new(PLAYERS, SNAKE...
2.15625
2
2024-11-18T22:50:10.843678+00:00
2010-06-04T11:09:28
e476523621e161e4d558bcbd47986c2bbd1484ed
{ "blob_id": "e476523621e161e4d558bcbd47986c2bbd1484ed", "branch_name": "refs/heads/master", "committer_date": "2010-06-04T11:09:38", "content_id": "ba41a93a3bf4f51f18d7bf414ad3921d5242accd", "detected_licenses": [ "OpenSSL" ], "directory_id": "b072260a04d827a67bd1b43a767f64b98daa1d17", "extension":...
stackv2
/* * $Id: util.c 399 2009-07-29 11:50:46Z noah-w $ * * Various support routines * */ #include <stdio.h> #include <string.h> #ifdef _MSC_VER #include <ws2tcpip.h> #include <windows.h> #else #include <unistd.h> #include <sys/socket.h> #include <sys/select.h> #include <time.h> #endif #include <ctype.h> #include <err...
2.453125
2
2024-11-18T22:50:11.053344+00:00
2021-01-09T01:17:05
04fcf481e0018c05782c01c18048e2fb663b60d1
{ "blob_id": "04fcf481e0018c05782c01c18048e2fb663b60d1", "branch_name": "refs/heads/main", "committer_date": "2021-01-09T01:17:05", "content_id": "8688f71ed90d9ddc94c2b248385e8aeb3cb54ec4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "736187b16021b25d5bbb86ead7d94c09206ca712", "extension"...
stackv2
#include <stdio.h> int level; int arrayFish[6]; int* cursor; void initData(); int main(void) { long startTime = 0; long totalElapsedTime = 0; long prevElapsedTime = 0; int num = 0; initData(); cursor = arrayFish; return 0; } void initData() { level = 1 ; for (int i = 0;...
2.671875
3
2024-11-18T22:50:12.435075+00:00
2018-07-03T02:38:04
60b4774f9e1ea69a7da2e59950b77360a11ddc85
{ "blob_id": "60b4774f9e1ea69a7da2e59950b77360a11ddc85", "branch_name": "refs/heads/master", "committer_date": "2018-07-03T02:38:04", "content_id": "2e4af0e5feee18351b2a1811fd1fc0dd059c22dd", "detected_licenses": [ "MIT" ], "directory_id": "e9aa331d5dccc6349b592e7bbdedccc455a28966", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <helpers.h> #include <dadosOnibus.h> //Arquivo para testar a biblioteca dadosOnibus.h //Esse programa pede uma linha e imprime todas as ordens de onibus circulando naquela linha int main (void){ int bus_count; int t_sec; char** ordemVector; char linha[8]; Matrix m...
3.09375
3
2024-11-18T22:50:12.589745+00:00
2023-08-29T11:36:58
466fb2f425d22cc3fcd359081b2dd0ea8cc78b57
{ "blob_id": "466fb2f425d22cc3fcd359081b2dd0ea8cc78b57", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T11:36:58", "content_id": "7744bdf9207555355ead073c9f9de8e46e0188cc", "detected_licenses": [ "MIT" ], "directory_id": "8551168c7b71c31eebad0f9b0c71eebbcc743000", "extension": "h"...
stackv2
#ifndef _GU_H_ #define _GU_H_ /************************************************************************** * * * Copyright (C) 1994, Silicon Graphics, Inc. * * * * These coded instructions, statements, and computer programs contain * * unpublished proprietary information of Silicon G...
2.15625
2
2024-11-18T22:50:12.873993+00:00
2018-07-20T22:26:11
158a9658971db02e708c2c48af432928a8a86084
{ "blob_id": "158a9658971db02e708c2c48af432928a8a86084", "branch_name": "refs/heads/master", "committer_date": "2018-07-20T22:26:11", "content_id": "fec32644eef8aca7ba2413500f1b686650177b18", "detected_licenses": [ "Unlicense" ], "directory_id": "ca70827f6bd10c3a55caae395ba73612e6622ae8", "extension...
stackv2
// // euler // // {{{ Headers #include <math.h> #include <errno.h> #include <float.h> #include <inttypes.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> #include <lauxlib.h> #include <lua.h> #include <lualib.h> #include <occa_c.h> #include ...
2.234375
2
2024-11-18T22:50:12.990217+00:00
2021-04-12T18:43:27
7e461e31a868ffc0a24703e816c4702f497a5f57
{ "blob_id": "7e461e31a868ffc0a24703e816c4702f497a5f57", "branch_name": "refs/heads/main", "committer_date": "2021-04-12T18:43:27", "content_id": "bbd7e12eef0da5443e61f2dfca2f4d9fab788560", "detected_licenses": [ "Unlicense" ], "directory_id": "70daefa178fa2ff7ce6a2d5e426a9e65608eb5c6", "extension":...
stackv2
//***************************************************** //** ** //** By: Christian Seepold, ** //** Thema: Fakultaeten bis 19 ** //** Version 1.0 ** //** Datum: 26.06.2018 ...
3.109375
3
2024-11-18T22:50:13.121141+00:00
2021-10-24T20:38:39
e3260896af69147c778a02d0ad826044fe762930
{ "blob_id": "e3260896af69147c778a02d0ad826044fe762930", "branch_name": "refs/heads/master", "committer_date": "2021-10-24T20:38:39", "content_id": "2d5eb66b740aa42cb9246672f4822dd6fa4f83d4", "detected_licenses": [ "Zlib" ], "directory_id": "5b987f35cc6b4f3465ac084a3e0476a52b6b47a8", "extension": "h...
stackv2
#if !defined(KORE_CONSOLE) #include "filewriter.h" #include <kinc/error.h> #include <kinc/log.h> #include <kinc/system.h> #include <stdio.h> #include <string.h> #if defined(KORE_WINDOWS) #define NOMINMAX #include <Windows.h> #endif #if defined(KORE_PS4) || defined(KORE_SWITCH) #define MOUNT_SAVES bool mountSaveDat...
2.359375
2
2024-11-18T22:50:13.425015+00:00
2017-06-02T05:15:07
00e6ddb53cd1ecc9070254b9c85dda7d7f0cc783
{ "blob_id": "00e6ddb53cd1ecc9070254b9c85dda7d7f0cc783", "branch_name": "refs/heads/master", "committer_date": "2017-06-02T05:15:07", "content_id": "c50792066b5b348d2e85b13d2ed1a41e272ef3bd", "detected_licenses": [ "MIT" ], "directory_id": "cc2cf54fec2a124531b74615f4fb25659486b454", "extension": "c"...
stackv2
/***************************************************** ^> File Name: touch.c ^> Author: AoEiuV020 ^> Mail: 490674483@qq.com ^> Created Time: 2015/08/08 - 07:15:32 ****************************************************/ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <sys/stat.h>...
2.25
2
2024-11-18T22:50:13.497203+00:00
2022-11-08T15:36:04
bc2c71775e2fedf1fdcfe0abea3eacc111ae41a9
{ "blob_id": "bc2c71775e2fedf1fdcfe0abea3eacc111ae41a9", "branch_name": "refs/heads/master", "committer_date": "2022-11-08T15:36:04", "content_id": "3359f3055131f56c63d3198e490f17a11cf99638", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0634ad96c50b99eb4200e7a9cf38df5d07cd9064", "extensio...
stackv2
// // Little cms // Copyright (C) 1998-2007 Marti Maria // // 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...
2.078125
2
2024-11-18T22:50:13.623323+00:00
2022-06-13T16:57:08
ab405b38554c0e79b992e73d925348b2e1dfa3d0
{ "blob_id": "ab405b38554c0e79b992e73d925348b2e1dfa3d0", "branch_name": "refs/heads/master", "committer_date": "2022-06-13T16:57:08", "content_id": "a9dca14aa128e6c991ce6679bea337c8563d6429", "detected_licenses": [ "MIT" ], "directory_id": "d83db66cdcf44da6507be7f1e030b89453109e3d", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include "board.h" static const int tile_num[] = {0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072 }; void board_start(Board *board) { memset(board, 0, sizeof(Board)); /* add only 2's on start...
3.046875
3
2024-11-18T22:50:13.681730+00:00
2020-01-02T17:47:50
ec9eca83b8cacaa3dffcbd10a72c27cfb0c99a30
{ "blob_id": "ec9eca83b8cacaa3dffcbd10a72c27cfb0c99a30", "branch_name": "refs/heads/master", "committer_date": "2020-01-02T17:47:50", "content_id": "c6521b1e353db85e7f3885fc6f99b7ce087a3128", "detected_licenses": [ "MIT" ], "directory_id": "ba3c943e12361accdc98116d27d72a2c992072ed", "extension": "h"...
stackv2
#ifndef DSY_SAI_H #define DSY_SAI_H #ifdef __cplusplus extern "C" { #endif #include "stm32h7xx_hal.h" #include "core_hw.h" typedef enum { DSY_AUDIO_INIT_SAI1, DSY_AUDIO_INIT_SAI2, DSY_AUDIO_INIT_BOTH, DSY_AUDIO_INIT_NONE, DSY_AUDIO_INIT_LAST, } dsy_audio_sai; // Currently Sample Rates are not correclty supporte...
2.0625
2
2024-11-18T22:50:14.185221+00:00
2018-11-02T18:34:29
b64407395e8e27142f65b86cc26f2afcdf5c83ae
{ "blob_id": "b64407395e8e27142f65b86cc26f2afcdf5c83ae", "branch_name": "refs/heads/master", "committer_date": "2018-11-02T18:34:29", "content_id": "d4230e99f8290759c9a2d9fda051a7fc0f4573e2", "detected_licenses": [ "MIT" ], "directory_id": "21714406957d92dec2068432c11ab789e37a8ded", "extension": "h"...
stackv2
#ifndef HYPE_PUB_SUB_LIST_SUBSCRIPTIONS_H_INCLUDED_ #define HYPE_PUB_SUB_LIST_SUBSCRIPTIONS_H_INCLUDED_ #include <string.h> #include "linked_list.h" #include "hpb_subscription.h" #include "hpb_constants.h" typedef LinkedListNode HpbSubscriptionsListNode; typedef LinkedList HpbSubscriptionsList; /** * @brief Allo...
2.078125
2
2024-11-18T22:50:15.575932+00:00
2018-06-28T13:40:00
75f7a10f8399454cf5c4dc937c39d27827f2f99f
{ "blob_id": "75f7a10f8399454cf5c4dc937c39d27827f2f99f", "branch_name": "refs/heads/master", "committer_date": "2018-06-28T13:40:00", "content_id": "af80d74b925a762b5236f42c9aafb8c56d3bf580", "detected_licenses": [ "MIT" ], "directory_id": "3c41f65732613bfeae2ffdceff6458413273459e", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <math.h> #define PI 3.1416 double_t integral(double_t(*func)(double_t), double_t xlow, double_t xup, unsigned int depth); double_t f(double_t x) { //return 3.0 * tan(x) / (1.0 + pow(cos(x), 2)); return 6.0 * tan(x) / (cos(2.0 * x) + 3.0); } int main(int argc...
2.984375
3
2024-11-18T22:50:16.716611+00:00
2020-10-18T06:42:15
e5056ed5b10d2a49b1fdf64b0d6adb5ac7a3508f
{ "blob_id": "e5056ed5b10d2a49b1fdf64b0d6adb5ac7a3508f", "branch_name": "refs/heads/main", "committer_date": "2020-10-18T06:42:15", "content_id": "197af900c5cb042afb98ed7f1919b9cf1521503a", "detected_licenses": [ "MIT" ], "directory_id": "e6dc121bcfe1e5872d6d9433a8f8c162bd842735", "extension": "c", ...
stackv2
/* Serialization is converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be reconstructed later in the same or another computer environment. Design an algorithm to serialize and deserialize a binary search ...
3.421875
3
2024-11-18T22:50:17.049190+00:00
2023-08-08T09:39:15
694a2dc5ceff64dd1827c552cf7ff1e09acfbc39
{ "blob_id": "694a2dc5ceff64dd1827c552cf7ff1e09acfbc39", "branch_name": "refs/heads/master", "committer_date": "2023-08-08T09:39:15", "content_id": "6dfe954d2405a2b298bbf0b5633717c0638b5a77", "detected_licenses": [ "ISC" ], "directory_id": "f8cc1dd4b1378490386def2e0571561fab10b275", "extension": "h"...
stackv2
/* ISC license. */ #ifndef SKALIBS_POSIXPLZ_H #define SKALIBS_POSIXPLZ_H #include <sys/types.h> #include <sys/stat.h> #include <regex.h> #include <skalibs/gccattributes.h> #include <skalibs/functypes.h> /* Stuff that doesn't have its own POSIX header for some reason. */ extern char **environ ; /* Non...
2.03125
2
2024-11-18T22:50:17.300222+00:00
2019-01-16T17:28:26
e3cb50c2286267e0eef9787eea538f5bb7c014f2
{ "blob_id": "e3cb50c2286267e0eef9787eea538f5bb7c014f2", "branch_name": "refs/heads/master", "committer_date": "2019-01-16T17:28:26", "content_id": "4f60b4adf93d18c82823cef1f64b9df0a2eaf787", "detected_licenses": [ "ISC" ], "directory_id": "188f2cb71a42cf155114898e65c04a544581081a", "extension": "c"...
stackv2
/* * %ISC_START_LICENSE% * --------------------------------------------------------------------- * Copyright 2008-2018, Pittsburgh Supercomputing Center * All rights reserved. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that ...
2.125
2
2024-11-18T22:50:17.461147+00:00
2023-08-15T14:37:02
b128424c42adad7cee08371c8584ecd0367a9c3e
{ "blob_id": "b128424c42adad7cee08371c8584ecd0367a9c3e", "branch_name": "refs/heads/master", "committer_date": "2023-08-15T14:37:02", "content_id": "0ea632653195b664ecac992b5c903426454ca570", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ea02c5d09c489c747f92a8a17acc0e7041365faa", "extens...
stackv2
/* calstis11 -- subtract science from wavecal This file contains: CalStis11 StisInit11 PrintInfo11 */ # include <stdio.h> # include <string.h> # include "hstio.h" # include "stis.h" # include "calstis11.h" # include "hstcalerr.h" # include "stisshutter.h" /* for EXT_SHUTTER_CLOSED */ static void StisInit11 (...
2.515625
3
2024-11-18T22:50:17.809970+00:00
2020-01-29T14:53:56
d222a033fb63010d59020e567a4f90289849e71b
{ "blob_id": "d222a033fb63010d59020e567a4f90289849e71b", "branch_name": "refs/heads/master", "committer_date": "2020-01-29T14:53:56", "content_id": "89d06eb7accaa14a4cfa9c18e8a912e234f26594", "detected_licenses": [ "MIT" ], "directory_id": "dba0b14c459b7f7851e23dfa90cd99719ca6869f", "extension": "c"...
stackv2
#include "types.h" #include "mem_abs.h" #define MASK_RD 0xF80 #define MASK_RS1 0xF8000 #define MASK_OFFSET 0xFFF00000 #define SHIFT_RD 7 #define SHIFT_RS1 15 #define SHIFT_OFFSET 20 #define GET(name) (T & MASK_##name) >> SHIFT_##name void F_LHU(CodeType T) { AddressType rd, rs1, offset; DataType data; rd = GET(...
2.546875
3
2024-11-18T22:50:18.122038+00:00
2020-08-21T22:27:10
5afee6027769a266ee16737dc2d9116b71ba9f63
{ "blob_id": "5afee6027769a266ee16737dc2d9116b71ba9f63", "branch_name": "refs/heads/master", "committer_date": "2020-08-21T22:27:10", "content_id": "98e443ecf051abca0b9b1dedde66567c333766f7", "detected_licenses": [ "MIT" ], "directory_id": "976e876b5a8067f9b682cad8646fb339284ee682", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> void wrapper_calc (int *box, int total[1]); int smallest_numb(int one, int two, int three); void ribon_calc (int *box, int total_rib[1]); int main() { FILE *entry; char file_name[50]; int **matrix_presents; int size_matrix = 25; int a = 0; int total[1] = {0};...
2.875
3
2024-11-18T22:50:18.729957+00:00
2014-12-10T01:41:46
1517f6823334f5e9130ecc059f898d5790563de0
{ "blob_id": "1517f6823334f5e9130ecc059f898d5790563de0", "branch_name": "refs/heads/master", "committer_date": "2014-12-10T01:41:46", "content_id": "85b9f7a882f5294344570fd76ba006214c1819a8", "detected_licenses": [ "Unlicense" ], "directory_id": "8146d847d1bd2fc2539afe7135072f898ae777b3", "extension...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(){ int x_int; double x_double; float x_float; int temp_bool_1; int temp_bool_2; int temp_bool_3; int temp_bool_4; int temp_bool_5; int temp_bool_6; int temp_bool_7; int temp_bool_8; int temp_bool_9; int temp_bool_10; int ...
2.328125
2
2024-11-18T22:50:18.836972+00:00
2020-05-12T18:06:22
e8c7f654d894f0e448cf79f83ccc939d20c31feb
{ "blob_id": "e8c7f654d894f0e448cf79f83ccc939d20c31feb", "branch_name": "refs/heads/master", "committer_date": "2020-05-12T18:06:22", "content_id": "6f3e5f6bfe56e5b7bc276bff2d979034a7d161b0", "detected_licenses": [ "MIT" ], "directory_id": "5101cc524c8907785393389f29e32b79b1cf57cd", "extension": "c"...
stackv2
#include <stdio.h> #include <assert.h> #include "vector.h" DECLARE_DYNAMIC_ARRAY(ivec, int); void print_ivec(ivec_t *v) { int i; for (i = 0; i < ivec_length(v); ++i) { int val = ivec_get(v, i); printf("%d", val); if (i != ivec_length(v) - 1) printf(", "); else printf("\n"); } } int main(int a...
3.359375
3
2024-11-18T22:50:18.940774+00:00
2021-04-01T22:05:31
c9200048ccce439314942f6d9178af5401e240df
{ "blob_id": "c9200048ccce439314942f6d9178af5401e240df", "branch_name": "refs/heads/master", "committer_date": "2021-04-01T22:05:31", "content_id": "96ee4a6abd17e49a50b1a34a121b15195acb245b", "detected_licenses": [ "UPL-1.0", "Apache-2.0" ], "directory_id": "6cda72e2b8dd0b1821ca5676db972c58a4ad7ec...
stackv2
//----------------------------------------------------------------------------- // Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. // This program is free software: you can modify it and/or redistribute it // under the terms of: // // (i) the Universal Permissive License v 1.0 or at your option,...
2.125
2
2024-11-18T22:50:19.405355+00:00
2021-02-18T08:32:27
9c71a383152934fe4e389324485be33b5b9bbe30
{ "blob_id": "9c71a383152934fe4e389324485be33b5b9bbe30", "branch_name": "refs/heads/master", "committer_date": "2021-02-18T08:32:27", "content_id": "64ca630f83df3e562041a89e5c64131b02447c04", "detected_licenses": [ "MIT" ], "directory_id": "b97aa4e80143efb7af74997a837f8705555ee76d", "extension": "h"...
stackv2
# pragma once int fibonacci(int index); int divmod(int a, int b, int* remainder); int* choose(bool returnNull, int* willBeFive);
2.015625
2
2024-11-18T22:50:21.798444+00:00
2021-11-11T09:39:13
ce3ed9e64c8b0f73f49903a82e384edb60e01b6e
{ "blob_id": "ce3ed9e64c8b0f73f49903a82e384edb60e01b6e", "branch_name": "refs/heads/master", "committer_date": "2021-11-11T09:39:13", "content_id": "6bb1759aa3703daa56a5a177457273647044ece9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d72d1976a2641f5adbeab1fa67979544bf8e1975", "extensio...
stackv2
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions ...
2.078125
2
2024-11-18T22:50:22.111739+00:00
2015-02-20T01:08:23
213b5601f422d336a77ef9b0db43f385ec72d948
{ "blob_id": "213b5601f422d336a77ef9b0db43f385ec72d948", "branch_name": "refs/heads/master", "committer_date": "2015-02-20T01:08:23", "content_id": "ce66d34e4d31fe15f7ad32d65e3972c9e359e489", "detected_licenses": [ "CC0-1.0" ], "directory_id": "af467da373f347998e2e37720f426300a21d58b0", "extension":...
stackv2
#pragma config(Sensor, S1, IR, sensorHiTechnicIRSeeker1200) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*// #include "JoystickDriver.c" /* Written by 6699 Tempest programmer Aaron Cook, for 9399 Raven The IR seeker is rather simple to use, for your usage it has ...
2.53125
3
2024-11-18T22:50:22.827020+00:00
2019-02-22T04:18:06
8afcc9c3b996fb683607c308d3d60d595c42296a
{ "blob_id": "8afcc9c3b996fb683607c308d3d60d595c42296a", "branch_name": "refs/heads/master", "committer_date": "2019-02-22T04:18:06", "content_id": "bf5e39f2e135efe10523c0aaa048fe1cbdaa0293", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d428eae22911a85f25d3796b7c46a3c3f4e6ab0b", "extensio...
stackv2
#include <stdio.h> int main(void) { int counter, no; printf("\n Enter No :: "); scanf("%d", &no); /* for(counter=1; counter<=no; ++counter) { printf("%5d", counter ); }*/ /* for(counter=no; counter>=1; --counter) { printf("%5d", counter ); }*/ /* counter=1; for(;;) { printf("%5d", counter ); +...
2.953125
3
2024-11-18T22:50:22.926287+00:00
2016-02-01T02:01:00
d9d35b7acec68e3cd6926f6fef3b4b0bdbd6ee9e
{ "blob_id": "d9d35b7acec68e3cd6926f6fef3b4b0bdbd6ee9e", "branch_name": "refs/heads/master", "committer_date": "2016-02-01T02:01:00", "content_id": "27977f026d66de2260d78d5eb21dabe27216c130", "detected_licenses": [ "MIT" ], "directory_id": "7ec23900d864c802bd0c104d8eff64147ad9ea91", "extension": "c"...
stackv2
/* vim: set ts=4 sw=4 et ai : */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <libsoc_gpio.h> #define GPIO_PIN 60 int count = 0; int last_state = 0; int timeval_cmp(struct timeval *a, struct timeval *b) { /* Compare two struct timevals, returning -1 is a < b, +1 if a > b...
3.0625
3
2024-11-18T22:50:23.002337+00:00
2020-10-24T18:57:50
6a27daba81dc77e20b5e9d70844208191a1affa8
{ "blob_id": "6a27daba81dc77e20b5e9d70844208191a1affa8", "branch_name": "refs/heads/master", "committer_date": "2020-10-24T18:57:50", "content_id": "07cf1f8cec5938bff8a5b6681f5475ca326c0c51", "detected_licenses": [ "MIT" ], "directory_id": "5341e5f3d2752592c17828cbdbc4f24be643677d", "extension": "c"...
stackv2
#include <assert.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include "../include/cgen.h" #define MAX_TYPE_LEN 32 extern int line_num; int yyerror_count = 0; const char* c_prologue = "#include \"ptuclib.h\"\n"; void ssopen(sstream* S) { S->stream = open_memstream(& S->buffer, &...
2.59375
3
2024-11-18T22:50:23.075483+00:00
2014-07-12T06:35:28
3e740e001586ff778456d672053e5178bc93aafc
{ "blob_id": "3e740e001586ff778456d672053e5178bc93aafc", "branch_name": "refs/heads/master", "committer_date": "2014-07-12T06:35:28", "content_id": "bc2af06ac1295a2d7b17398caa5bf2fd2f18cf9c", "detected_licenses": [ "MIT" ], "directory_id": "1fd49068cb87adfdb3b99ee02d0a06cc56f2643b", "extension": "c"...
stackv2
#include <inttypes.h> #include <avr/io.h> #include <avr/pgmspace.h> #include "avrlaunch/avrlaunch.h" #include "avrlaunch/log.h" #include "avrlaunch/shell.h" #include "avrlaunch/pgmspace/pgm_strings.h" #include "avrlaunch/hal/atmega328p/hal_adc.h" #define NO_DUMMY -1 static int8_t dummy_channel = NO_DUMMY; static v...
2.6875
3
2024-11-18T22:50:23.199387+00:00
2020-09-09T20:06:07
fd686b0de8dc6fd98128ad1d2f40077531a7be03
{ "blob_id": "fd686b0de8dc6fd98128ad1d2f40077531a7be03", "branch_name": "refs/heads/master", "committer_date": "2020-09-09T20:06:07", "content_id": "84f9ce740cfd320a570deb34aeefad240eda93ff", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7fb121fb19dc2ff23202e99eaa907e18b1de26d4", "extensio...
stackv2
/* Hello World program */ #include<stdio.h> int foo(){ printf("never reach this line"); } int main() { printf("Hello World\n"); return 0; }
2.40625
2
2024-11-18T22:50:23.257986+00:00
2017-02-12T11:53:18
598ac01716df94b4b6319e0ca2476785ebf170e0
{ "blob_id": "598ac01716df94b4b6319e0ca2476785ebf170e0", "branch_name": "refs/heads/master", "committer_date": "2017-02-12T11:53:18", "content_id": "0fe4b71b98496bac28b421718a991a35c2354ecd", "detected_licenses": [ "MIT" ], "directory_id": "78652a84f03f21198265a0d42ccb219564747b38", "extension": "h"...
stackv2
#ifndef _NETWORK_UTIL #define _NETWORK_UTIL /** * So this doesn't really work yet, but I'm puttng it here as a placeholder * Eventually this needs to just return a line up until our defined * * Not sure what to do about return values, if we're not blocking we need * to consider the possibility that there was no l...
2.546875
3
2024-11-18T22:50:23.399307+00:00
2020-06-25T07:09:50
ff29fa83dfc83b3afc6a3edaff26397f5d17e963
{ "blob_id": "ff29fa83dfc83b3afc6a3edaff26397f5d17e963", "branch_name": "refs/heads/master", "committer_date": "2020-06-25T07:09:50", "content_id": "6b8514ae8fc467617229ae96408b274522ddac0d", "detected_licenses": [ "MIT" ], "directory_id": "4dfafcd26ebf06fa92b064b16278f93518726de7", "extension": "c"...
stackv2
#include <hardware/hardware.h> #include <stdlib.h> #include <fcntl.h> #include <hardware/hello.h> #include <stdio.h> #define pr_err printf struct hw_module_methods_t hello_method = { open : hello_dri_open }; struct hello_module_t HAL_MODULE_INFO_SYM = { common : { tag : HARDWARE_MODULE_...
2.453125
2
2024-11-18T23:13:49.614450+00:00
2021-05-08T19:46:42
b1436738cdb83572686442b96370e483b004b2b1
{ "blob_id": "b1436738cdb83572686442b96370e483b004b2b1", "branch_name": "refs/heads/main", "committer_date": "2021-05-08T19:46:42", "content_id": "44c24b60ef1324a21f39f129430287021b0a4252", "detected_licenses": [ "MIT" ], "directory_id": "85780d50b0125b741a3075d11986d7b8af685cf5", "extension": "h", ...
stackv2
#ifndef HZ_BASE_H #define HZ_BASE_H #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <inttypes.h> #include <wchar.h> #define CMAS_IMPL #include "cmas.h" #include <stdarg.h> #ifdef HZ_ENABLE_LOGGING #define HZ_LOG(...) fprintf(stdout, __VA_ARGS__) #define HZ_DBGLOG(...) fprintf...
2.203125
2
2024-11-18T23:13:49.997726+00:00
2018-06-21T00:38:45
8544bd03086580cf6e11197be05e17d4514a3818
{ "blob_id": "8544bd03086580cf6e11197be05e17d4514a3818", "branch_name": "refs/heads/master", "committer_date": "2018-06-21T00:38:45", "content_id": "5e3e21e4cdae9b3b18f7b646684ce890a9f3f297", "detected_licenses": [ "MIT" ], "directory_id": "bed8f5edc382691f82492e3c52f3262e9ab5e7cf", "extension": "c"...
stackv2
/* * rtc-sm5010.c * * Copyright (c) 2016 SILICONMITUS COMPANY,LTD * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any l...
2.1875
2
2024-11-18T23:13:50.104416+00:00
2020-04-09T04:03:54
8cff56eebb025f45383bda36849d528f60ccf750
{ "blob_id": "8cff56eebb025f45383bda36849d528f60ccf750", "branch_name": "refs/heads/master", "committer_date": "2020-04-09T04:03:54", "content_id": "cac9357ed37684fcfeb2e0763bccef01bfcc428c", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "bb34fff90c9e688155c3d530966b06f5a52f04c9", "extens...
stackv2
/* ov13880_lib.c * *Copyright (c) 2017 Qualcomm Technologies, Inc. *All Rights Reserved. *Confidential and Proprietary - Qualcomm Technologies, Inc. */ #include <stdio.h> #include "debug_lib.h" #include "ov13880_lib.h" /** * FUNCTION: ov13880_real_to_register_gain * * DESCRIPTION: Calcuate sensor analog gain ...
2.21875
2
2024-11-18T23:13:50.808041+00:00
2014-02-26T12:27:14
65bb844f71758e40c1ac4c9ef6487fad86507527
{ "blob_id": "65bb844f71758e40c1ac4c9ef6487fad86507527", "branch_name": "refs/heads/master", "committer_date": "2014-02-26T12:27:14", "content_id": "c801caefaf79881c7974599c9a65857e3795c8b0", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "08817288d46ec91d1e28309ed229981084720fec", "extens...
stackv2
#include <stdlib.h> #include <string.h> #include "sad.h" #include "tinybits.h" #define AIVDM_PREFIX "!AIVDM,1,1,,A," /* * |============================================================================ * |Field |Len |Description |Member |T|Units * |0-5 | 6 |Message Type |type |...
2.0625
2
2024-11-18T23:13:50.952755+00:00
2020-01-20T04:02:10
56b6bd7f32968669e297a2c3238224f5b42a885a
{ "blob_id": "56b6bd7f32968669e297a2c3238224f5b42a885a", "branch_name": "refs/heads/master", "committer_date": "2020-01-20T04:02:10", "content_id": "83438f1eeda4dc958c877e8ed9491cad8648bc2c", "detected_licenses": [ "NCSA" ], "directory_id": "7232d5ddc5484b6574ea63f283ef6d46ed368c93", "extension": "c...
stackv2
#include <stdio.h> #include "Test.h" void Java_Test_println__Z(JNIEnv *env, jclass clazz, jboolean aBoolean) { if (aBoolean) puts("true"); else puts("false"); } void Java_Test_println__I(JNIEnv *env, jclass clazz, jint aInt) { printf("%d\n", aInt); } void Java_Test_println__J(JNIEnv *env, jclass clazz...
2.515625
3
2024-11-18T23:13:51.292148+00:00
2022-09-04T08:35:55
58103df1c2aceba41fb272e685a91db1b52acab4
{ "blob_id": "58103df1c2aceba41fb272e685a91db1b52acab4", "branch_name": "refs/heads/master", "committer_date": "2022-09-04T08:35:55", "content_id": "433e421cae8e64483ea4d9f529cd94812622fcd4", "detected_licenses": [ "MIT" ], "directory_id": "52f9639cd09e73d43da9aba789d4cae8ab35e33d", "extension": "c"...
stackv2
#include <stdbool.h> #include <stdint.h> #include <hw_memmap.h> #include <sysctl.h> #include <gpio.h> uint32_t switch_inputs; void main(void) { SysCtlPeripheralEnable (SYSCTL_PERIPH_GPIOJ); while (!SysCtlPeripheralReady (SYSCTL_PERIPH_GPIOJ)) { } GPIOPinTypeGPIOInput (GPIO_PORTJ_BASE, GPIO_PIN_0...
2.046875
2
2024-11-18T23:13:51.412814+00:00
2021-02-24T00:08:21
e0b31789fe5e283798f6e7f0c0e7b37a80605038
{ "blob_id": "e0b31789fe5e283798f6e7f0c0e7b37a80605038", "branch_name": "refs/heads/master", "committer_date": "2021-02-24T00:08:21", "content_id": "145351806d25ae75c93c9cab02a26eb3e089c879", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a8d6d9978c3ccb150139aee1c84fb16ce8f2fedb", "extensio...
stackv2
// JGilmore (07/12/2020 12:26) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <syslog.h> #include <time.h> // To seed the rand() function #include <openssl/engine.h> #include <openssl/evp.h> #include "../ibrand_common/my_utilslib.h" static const int ENGINE_STATUS_OK = 1; static const int ENGINE...
2.375
2
2024-11-18T23:13:51.529488+00:00
2019-10-02T10:47:51
1cf8f8c9c8a436462476f50a29406c7721e77a2e
{ "blob_id": "1cf8f8c9c8a436462476f50a29406c7721e77a2e", "branch_name": "refs/heads/master", "committer_date": "2019-10-02T10:47:51", "content_id": "e4b62bd1b840c1250f93ff5dad8501f4f2e771dd", "detected_licenses": [ "MIT" ], "directory_id": "edcb4cd5cf4fa368a05174fda3f7f9f9560845fb", "extension": "c"...
stackv2
// UTMSPACE_2018-2019-sem2_SCSJ1013_Programming_Techniques_I // SX180357CSJS04 // Randy Tan Shaoxian // Algorithm for the program: total_cost_of_apples // 1. Begin. // 2. Read in the value for the amount in kg of the apples, store it in amount. // 3. Read in the value for the cost per kg of the apples in RM, store it ...
3.34375
3
2024-11-18T23:13:52.462835+00:00
2022-03-01T22:33:16
92474643a1ab215c33418a7df32d440797441156
{ "blob_id": "92474643a1ab215c33418a7df32d440797441156", "branch_name": "refs/heads/master", "committer_date": "2022-12-12T17:03:27", "content_id": "30acbd782140118da4637a7927ca5245062852c6", "detected_licenses": [ "MIT" ], "directory_id": "c7308b6f7534ec1d08d02ff7882020636f42a2cb", "extension": "c"...
stackv2
#include "ops.h" #include "stmt_return.h" #include "expr_block.h" #include "../funcargs.h" #include "../type_is.h" #include "../type_nav.h" #include "../cc1_out_ctx.h" #include "../inline.h" #include "../sanitize.h" const char *str_stmt_return(void) { return "return"; } void fold_stmt_return(stmt *s) { decl *in_f...
2.109375
2
2024-11-18T23:13:52.520818+00:00
2019-03-17T13:15:58
53dc3ddec0745f8c3afb12c57d40e5ca9cf98b68
{ "blob_id": "53dc3ddec0745f8c3afb12c57d40e5ca9cf98b68", "branch_name": "refs/heads/master", "committer_date": "2019-03-17T13:15:58", "content_id": "03a51fe5029fbfe3b4a1ab9ea64dc0dc071e1ce4", "detected_licenses": [ "Zlib" ], "directory_id": "7cc3ed1e26b231d97abf33f3c6f897328df0693f", "extension": "c...
stackv2
#include "ppu.h" /* Reverse bits lookup table for an 8 bit number */ static const uint8_t reverse_bits[256] = { 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, 0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8, 0x18, 0x98, 0x58, 0xd8, 0x38, 0xb8, 0x78, 0xf8, 0x04, 0x84, ...
2.21875
2
2024-11-18T23:13:52.610647+00:00
2021-03-10T05:08:44
8b24ba436cc1ab665f5ac966d745fa7c6047e99b
{ "blob_id": "8b24ba436cc1ab665f5ac966d745fa7c6047e99b", "branch_name": "refs/heads/master", "committer_date": "2021-03-10T05:08:44", "content_id": "e0389cb02e935c05793d48d663034e8ba55ae2fe", "detected_licenses": [ "MIT" ], "directory_id": "63025dd4e97f4b1a4ebb91fbf39089ad6fa8f88e", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> unsigned long int tcalls = 0; void swap(int array[], int a, int b) { tcalls++; int aux = array[a]; array[a] = array[b]; array[b] = aux; }
2.28125
2
2024-11-18T23:13:52.711401+00:00
2016-11-27T16:11:35
eed4c3825c1e927d83882ca7e29c32760e457259
{ "blob_id": "eed4c3825c1e927d83882ca7e29c32760e457259", "branch_name": "refs/heads/master", "committer_date": "2016-11-27T16:11:35", "content_id": "5dbeb50d0261d27a8274dcaa5c26efab2b4eb7f8", "detected_licenses": [ "MIT" ], "directory_id": "6a927c08d3f80613b3503aa1e1df28eb1a517560", "extension": "c"...
stackv2
/** * @file Graphics.c * Graphics driver ported from Chip Gracy's Graphics.spin * Users should comment out unused functions to save code space if necessary. * Copyright (c) 2009, Steve Denson * See end of file for MIT license terms. */ #include <stdio.h> #include <string.h> #include <propeller.h> #include "Graphi...
2.40625
2
2024-11-18T23:13:53.239342+00:00
2014-03-14T20:10:38
741f60adc45517719a6f8f662d3c3a66e87be1df
{ "blob_id": "741f60adc45517719a6f8f662d3c3a66e87be1df", "branch_name": "refs/heads/master", "committer_date": "2014-03-14T20:10:38", "content_id": "e75e2ec224f2dca1663f0fb3d725e2d381cb22e5", "detected_licenses": [ "Zlib" ], "directory_id": "c9d4c78e19488743f392e062fd92f7e959174367", "extension": "c...
stackv2
#include "tex.h" #include "asset/image.h" #include "util/log.h" void ilG_tex_loadfile(ilG_tex *self, const char *file) { ilA_img *img = ilA_img_loadfile(file); if (!img) { return; } ilG_tex_loadimage(self, img); } void ilG_tex_loadasset(ilG_tex *self, const struct ilA_file *iface, void *file)...
2.390625
2
2024-11-18T23:13:53.312804+00:00
2016-05-17T02:11:31
7dc3723c474def59c408e0cf0fc432783f5d19ba
{ "blob_id": "7dc3723c474def59c408e0cf0fc432783f5d19ba", "branch_name": "refs/heads/master", "committer_date": "2016-05-17T02:11:31", "content_id": "10cd6d593ee648e7e39fd2f00d2fef1bbd7a3fb4", "detected_licenses": [ "MIT" ], "directory_id": "54d2f6400e9fcd840695a72c8a967bcf2fd1bc64", "extension": "c"...
stackv2
#include <database.h> #include <define.h> #include <dblib.h> #include <stdio.h> #include <stdlib.h> #include <smemory.h> #include <signal.h> #include <dbsvlib.h> #include <tpl.h> #include <sys/ipc.h> #define DATABASE_PATH_DEFAULT "database.sql" #define KEY_ID 1 static void handle_int(int sign); static int handle(voi...
2.328125
2
2024-11-18T23:13:53.695288+00:00
2018-02-15T17:08:24
c1d7cccf7d31262582cff373406799fb1b25efbb
{ "blob_id": "c1d7cccf7d31262582cff373406799fb1b25efbb", "branch_name": "refs/heads/master", "committer_date": "2018-02-15T17:08:24", "content_id": "a48b0a566cf2d8970bf02a948eb27c12c6dda90d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a20bd0a22427d7f5e1fbdea4a2a267e9f8de23d6", "extensio...
stackv2
//Extended Gordonian Rectangles Processing for Sudoku....********************* /* //Function Declarations ******************************* void extendGordRectRow (void); void extendGordRectColumn (void); */ //extendGordRectRow Function ******************************* void extendGordRectRow (void) { int x, y, z, a...
2.234375
2
2024-11-18T23:51:19.573748+00:00
2017-12-01T08:29:42
84797042a6538e7980d27bd919b74126fd12edf5
{ "blob_id": "84797042a6538e7980d27bd919b74126fd12edf5", "branch_name": "refs/heads/master", "committer_date": "2017-12-01T08:29:42", "content_id": "ed390fea0533052adff59693da7640879bf4a1c1", "detected_licenses": [ "MIT" ], "directory_id": "818e191b51017109feed5a562cdecc5e8931006a", "extension": "c"...
stackv2
//ping //given a source and destination, find the minimum hop /*-------------------------------------------------------*/ #include<sys/types.h> #include<sys/socket.h> #include<netinet/in.h> #include<stdio.h> #include<stdlib.h> #include<string.h> #include<time.h> /*------------------------------------------------------...
2.984375
3
2024-11-18T23:51:19.824935+00:00
2017-11-30T12:04:43
399d43090053b4d4c82f488623789ef30d465b3d
{ "blob_id": "399d43090053b4d4c82f488623789ef30d465b3d", "branch_name": "refs/heads/master", "committer_date": "2017-11-30T12:04:43", "content_id": "c97736e939eaf441f0f5fb9a84cce34529a787dc", "detected_licenses": [ "MIT" ], "directory_id": "6e2df4d9bbba70d443d0f91383512fb6acde0d27", "extension": "c"...
stackv2
#include <gtest/gtest.h> #include <forward_list> #include <list> #include <m7/type_traits.H> #include <vector> using namespace m7; TEST(TypeTraits, StaticTests) { static_assert(isInputRangeV<std::forward_list<int>>, "RangeCheck"); // static_assert(isOutputRangeV<std::forward_list<int>>, "RangeCheck"); static_asser...
2.046875
2
2024-11-18T23:51:20.207457+00:00
2014-03-03T04:23:29
59ff508427012218940d737b7bad97933fe16b09
{ "blob_id": "59ff508427012218940d737b7bad97933fe16b09", "branch_name": "refs/heads/master", "committer_date": "2014-03-03T04:23:29", "content_id": "760d2aa346226f87a57b28e1d386498438cc162e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a92a91a02b97334487fd89deb29064dd109b965d", "extensio...
stackv2
/* * Copyright (C) ST-Ericsson SA 2010. All rights reserved. * This code is ST-Ericsson proprietary and confidential. * Any use of the code for whatever purpose is subject to * specific written permission of ST-Ericsson SA. * * \brief PS Connection Control run script */ /*************************************...
2.109375
2
2024-11-18T23:51:20.482530+00:00
2022-07-15T04:12:21
f2d3f35c08a3ef036c488c9031a5536af37f00b8
{ "blob_id": "f2d3f35c08a3ef036c488c9031a5536af37f00b8", "branch_name": "refs/heads/master", "committer_date": "2022-07-15T04:12:49", "content_id": "c600fe169c9a597f251708ded70fab47a7569e2a", "detected_licenses": [ "MIT" ], "directory_id": "23cfb52f97a153f4d9a21436f7f4982eae5fb21e", "extension": "c"...
stackv2
#include <errno.h> #include <stdio.h> #include "foo.h" #include "nala.h" TEST(foo_every_call) { foo_mock(1, 2); /* All calls to foo() expects its parameter to be 1 and returns 2. */ ASSERT_EQ(foo(1), 2); ASSERT_EQ(foo(1), 2); } TEST(foo_per_call) { foo_mock_once(1, 2); foo_mock_once(4, 5); ...
3.046875
3
2024-11-18T23:51:21.898396+00:00
2021-05-03T01:33:11
47443950ef4adc99818dcdd36c76d73bd27d954d
{ "blob_id": "47443950ef4adc99818dcdd36c76d73bd27d954d", "branch_name": "refs/heads/master", "committer_date": "2021-05-03T01:33:11", "content_id": "8a9d543d67340a56640f82f781af1d81ef9b0185", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "87c2b3b746e97b2442b6fbfc3845e88e27130a75", "extens...
stackv2
#include "common/include/inttypes.h" #include "common/include/stdarg.h" #include "common/include/abi.h" #include "libk/include/math.h" #include "libk/include/kprintf.h" /* * Helpers */ static void u32_to_hex(u32 num, char *buf) { for (int i = 0; i < 8; i++) { int digit = (int)((num << (i << 2)) >> 28); ...
2.859375
3
2024-11-18T23:51:22.050181+00:00
2020-01-30T15:52:16
b68df89731d7456032fd4a89d249e040d2eac7ac
{ "blob_id": "b68df89731d7456032fd4a89d249e040d2eac7ac", "branch_name": "refs/heads/master", "committer_date": "2020-01-30T15:52:16", "content_id": "b313fca34f7e0666b2f1a6461e10262e07dc9f88", "detected_licenses": [ "MIT" ], "directory_id": "40de3da30239862f11a946166b50438174c2fd4e", "extension": "c"...
stackv2
#define REBIRTH "/obj/rebirth" inherit "/room/room"; reset(status arg) { if(arg) return; short_desc = "Beside the fountain of life"; add_exit("south", "/wizards/celtron/maze/necro/6"); long_desc = "The divine fountain of life emits a bright light allover the room.\n"+ "The beams reflect from the white marble of ...
2.125
2
2024-11-18T23:51:22.130959+00:00
2020-11-12T23:42:18
1830e364533fcb40a521350302892a27f7d81b39
{ "blob_id": "1830e364533fcb40a521350302892a27f7d81b39", "branch_name": "refs/heads/master", "committer_date": "2020-11-12T23:42:18", "content_id": "fc9d39281b1edd61bdd56ad3c175b07aed3d8527", "detected_licenses": [ "MIT" ], "directory_id": "ffb03571bad61884bc5b52732426c0c4af5a5192", "extension": "c"...
stackv2
#include "stdlib.h" /* --- */ #include "xc/common/xc_random.h" /* --- */ int xc_rand_range_int(const int range_min, const int range_max) { int retv=0; retv=( rand() % (range_max - range_min + 1 ) ) + range_min; /* even if it overflows, it's acceptable */ return retv; } unsigned int xc_rand_range_uint(const un...
2.296875
2
2024-11-18T23:51:27.630745+00:00
2020-02-26T19:56:20
b3431c276a5e02437885bd97885cf2f35adaa567
{ "blob_id": "b3431c276a5e02437885bd97885cf2f35adaa567", "branch_name": "refs/heads/master", "committer_date": "2020-02-26T19:56:20", "content_id": "a24d9adc587c8267abd76451f80607263dea727e", "detected_licenses": [ "MIT" ], "directory_id": "36ea6b751f2ce3cd0e7d11a4ef6f83c62788d6a2", "extension": "c"...
stackv2
#include "list.h" void list_init(list_t *list, list_func_t func) { list->func = func; list->head = NULL; list->tail = NULL; list->num_elem = 0; } void list_push_front(list_t *list, list_node_t *node) { if(list->head == NULL){ list->head = node; list->tail = node; ...
2.9375
3
2024-11-18T23:51:31.493786+00:00
2023-04-04T21:36:15
b9fa76533fa598b726aea1ce0e30d53bf711050a
{ "blob_id": "b9fa76533fa598b726aea1ce0e30d53bf711050a", "branch_name": "refs/heads/main", "committer_date": "2023-04-04T21:36:15", "content_id": "2bd5dbaacab77f098672404f390676de5a9e1f4e", "detected_licenses": [ "MIT" ], "directory_id": "d5dbf666fc140d5de4e9b91394aa3839bb2713b9", "extension": "h", ...
stackv2
#ifndef SHUFFILE_UTIL_H #define SHUFFILE_UTIL_H #include "mpi.h" #include "kvtree.h" #define SHUFFILE_SUCCESS (0) #define SHUFFILE_FAILURE (1) #define SHUFFILE_VERSION "0.3.0" #define SHUFFILE_MAX_FILENAME (1024) extern int shuffile_debug; extern int shuffile_rank; extern char* shuffile_hostname; extern int shuff...
2.1875
2
2024-11-18T23:51:33.070220+00:00
2016-01-29T03:58:53
18e950e677f0091e44f0f14af0da5468d345c79e
{ "blob_id": "18e950e677f0091e44f0f14af0da5468d345c79e", "branch_name": "refs/heads/master", "committer_date": "2016-01-29T03:58:53", "content_id": "626b955de681f657953fa27d1da744eb3a8d5faa", "detected_licenses": [ "MIT" ], "directory_id": "007a5e0919394ea8d42461833c09d6ba9085c060", "extension": "c"...
stackv2
#include <task.h> #include <scheduler.h> #include <raspberrypi.h> #include <framebuffer_info.h> #include <defaults.h> #include <bwio.h> #include <font.h> #include <langton.h> int activate(struct task*); void kenter(void); void hard_kenter(void); /* * In CS452 we passed basically the entire kernel stack to initializ...
2.328125
2
2024-11-18T23:51:33.173577+00:00
2016-01-14T20:55:42
d1d561f9d9ecefc32225bf3e6df3eb351abe3d68
{ "blob_id": "d1d561f9d9ecefc32225bf3e6df3eb351abe3d68", "branch_name": "refs/heads/master", "committer_date": "2016-01-14T20:55:42", "content_id": "90a81622d92ecad9535df6fc7ad896d6660983c7", "detected_licenses": [ "MIT" ], "directory_id": "a1f35e9771909ac47ee908081a06b41e5d8a7bdd", "extension": "c"...
stackv2
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <imp/token.h> void iToken_clean(iToken *token) { assert(token); if(token->type == iTOKEN_ROUTE || token->type == iTOKEN_COMMENT || token->type == iTOKEN_STRING){ free(token->data.text); token->data.text = NULL;...
2.640625
3
2024-11-18T23:51:35.339808+00:00
2020-11-26T19:33:06
9825a1057f5f782016b523e4fa0002a42fb6dcf7
{ "blob_id": "9825a1057f5f782016b523e4fa0002a42fb6dcf7", "branch_name": "refs/heads/main", "committer_date": "2020-11-26T19:33:06", "content_id": "5a5525ff3a8638fb2333119a820dd01033aacb12", "detected_licenses": [ "MIT" ], "directory_id": "e877169fdabe371cbc332b3f61c2989b9405f5f4", "extension": "c", ...
stackv2
#include <GL/glut.h> #include <math.h> #include <time.h> #define pi 3.1459 int ambiente, figura, size; float r1, g1, b1, r2, g2, b2, x, y; void corpo() { glBegin(GL_TRIANGLE_STRIP); glColor3f(0.9, 0.7, 0.0); glVertex2i(-130, 20); glVertex2i(-100, 0); glVertex2i(-100, 130); glVertex2i(100, 0); ...
2.3125
2
2024-11-18T23:51:35.465060+00:00
2019-03-31T01:53:26
36615a1fc18928e2fb8595a9163113a699a49d31
{ "blob_id": "36615a1fc18928e2fb8595a9163113a699a49d31", "branch_name": "refs/heads/master", "committer_date": "2019-03-31T01:53:26", "content_id": "3a74873294f6dfeea33289afa728d0d560b7bd8b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ce0ba99d328946998a36d928158be8c1f122cd50", "extens...
stackv2
#include <stdlib.h> #ifndef NXSH_H #define NXSH_H /* Useful constants */ #define NXSH_WELCOME "Welcome to nxsh! Type 'help' for a list of available commands.\r\n" #define NXSH_SEPARATOR "-------------------------------------------------------------\r\n" #define NXSH_HELP "List of available commands:\r\n" \ ...
2.0625
2
2024-11-18T23:51:35.519778+00:00
2019-08-26T15:36:05
1a49710cbd2c4f24b5ea4cc9c6821400751b7302
{ "blob_id": "1a49710cbd2c4f24b5ea4cc9c6821400751b7302", "branch_name": "refs/heads/master", "committer_date": "2019-08-26T15:36:05", "content_id": "e07ccd54cf1e58a2547eda9e0131c997696efe62", "detected_licenses": [ "MIT" ], "directory_id": "8f874b212edfc7555eac52aae6140830a6756a99", "extension": "c"...
stackv2
#include "f1_helper.h" #include <stdlib.h> // 4 x 4 - 4 ( the 1st row is in charge of io ) #define X1 0 #define Y1 1 #define X2 4 #define Y2 4 #define NUM_TILES (X2 - X1) * (Y2 - Y1) void print_vector(int* v, int start, int length) { for (int i = start; i < start + length; i++) { int val = v[i]; if (i == s...
2.875
3
2024-11-18T23:51:40.573281+00:00
2023-07-08T13:52:39
75906075faed46ef9d8040935604c31367af495a
{ "blob_id": "75906075faed46ef9d8040935604c31367af495a", "branch_name": "refs/heads/master", "committer_date": "2023-07-08T13:52:39", "content_id": "dc2cd80f5c1edfa2441d4b07f70b7e3b4fee4cff", "detected_licenses": [ "MIT" ], "directory_id": "3c2eea2cd95650c9870d9b4d7a85dbe38feb33c6", "extension": "c"...
stackv2
/* * Copyright (c) 2017 lalawue * * This library is free software; you can redistribute it and/or modify it * under the terms of the MIT license. See LICENSE for details. */ #ifdef EXAMPLE_ECHO_CNT_C #include <stdio.h> #include <string.h> #include "mnet_core.h" static void _on_cnt_event(chann_msg_t *msg) { i...
2.578125
3
2024-11-18T23:51:40.670803+00:00
2020-09-09T14:52:51
3b02c764b22a7f3d41bcdadf5ea16ca7cb4c767e
{ "blob_id": "3b02c764b22a7f3d41bcdadf5ea16ca7cb4c767e", "branch_name": "refs/heads/master", "committer_date": "2020-09-09T14:52:51", "content_id": "88e12c2c2860eccf16e82f786012d743634819ed", "detected_licenses": [ "MIT" ], "directory_id": "ef3a5c0d60c111233c3f37bf9253116a1ef72f3f", "extension": "h"...
stackv2
/********************************************************************************************************* ** 文件功能 :LCD1602驱动程序 ** 工程作者 :Blue Sky Teams——ZZL ** 工程版本 :V1.0 *********************************************************************************************************/ #include<intrins.h> /*********************...
2.296875
2
2024-11-18T23:51:40.773826+00:00
2017-01-14T11:19:03
0fa2b716834ecc3e7d53e0cd021c80fc7039687f
{ "blob_id": "0fa2b716834ecc3e7d53e0cd021c80fc7039687f", "branch_name": "refs/heads/master", "committer_date": "2017-01-14T11:19:03", "content_id": "13d04bc48b343499be3dcafae4a7fd75c3cc3b23", "detected_licenses": [ "MIT" ], "directory_id": "015ded1a91bfd3204983b3333a3627a77383b074", "extension": "h"...
stackv2
/* MMA8652 C library - small 3-axis digital accelerometer from Freescale * * 2014 - Tom Magnier : magnier.tom@gmail.com */ #ifndef MMA8652_H #define MMA8652_H #include <stdint.h> #include <stdbool.h> #define MMA8652_I2C_ADDR (0x1D) //7-bit I2C address #define MMA8652_DEVICE_ID (0x4A) //Device ID, to be co...
2.09375
2
2024-11-18T23:51:40.847817+00:00
2021-10-04T18:23:26
6716d475d01dd4125286ac4a65bc629f92f5c8ad
{ "blob_id": "6716d475d01dd4125286ac4a65bc629f92f5c8ad", "branch_name": "refs/heads/master", "committer_date": "2021-10-04T18:23:26", "content_id": "005d095b2c098c93d038ef40d82e7d59d5502f44", "detected_licenses": [ "MIT" ], "directory_id": "1bb4e590785f6d1e4281a710f4925817a3c07120", "extension": "c"...
stackv2
#include "source/menus/game_over.h" #include "source/graphics/palettes.h" #include "source/configuration/system_constants.h" #include "source/globals.h" #include "source/neslib_asm/neslib.h" #include "source/configuration/game_states.h" #include "source/menus/text_helpers.h" #include "source/menus/input_helpers.h" COD...
2.109375
2
2024-11-18T23:51:40.912351+00:00
2021-02-09T22:18:54
caf7491a56e35f88571a4b2021e27c2b7dac42ad
{ "blob_id": "caf7491a56e35f88571a4b2021e27c2b7dac42ad", "branch_name": "refs/heads/main", "committer_date": "2021-02-09T22:18:54", "content_id": "20fa959e61ecd26547042ca81b8ade81c311f819", "detected_licenses": [ "MIT" ], "directory_id": "15c539f0971af12a0abfa54c43f2c4641002a570", "extension": "c", ...
stackv2
#include "types.h" #include "stat.h" #include "user.h" int main (int argc, char *argv[]){ int input=atoi(argv[1]); // int ppid=getpid(); // printf(1,"im root %d \n",getpid()); int res=changePolicy(input); printf(1,"policy changed to = %d \n",res); exit(); }
2.09375
2
2024-11-18T23:51:40.999354+00:00
2012-02-15T13:58:35
fc51d86430cbdd8ea0394d63bd258b44b900e24c
{ "blob_id": "fc51d86430cbdd8ea0394d63bd258b44b900e24c", "branch_name": "refs/heads/master", "committer_date": "2012-02-15T14:11:52", "content_id": "5bcbabea6464ca209ca793779583f9bf5ed2bad1", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "56d0b5062e9503d75d2528646e0478959df04092", "extens...
stackv2
/* ----------------------------------------------------------------------------- * spnegohelp.c declares RFC 2478 SPNEGO GSS-API mechanism APIs. * * Author: Frank Balluffi * * Copyright (C) 2002-2003. All rights reserved. * ----------------------------------------------------------------------------- */ #ifndef...
2.015625
2
2024-11-18T23:51:42.334009+00:00
2021-10-02T20:56:26
6a7354ceceb5e21e31de33302035a28b33eef19b
{ "blob_id": "6a7354ceceb5e21e31de33302035a28b33eef19b", "branch_name": "refs/heads/main", "committer_date": "2021-10-02T20:56:26", "content_id": "78b4b3067516288c78b135911b45f2c3f991dc9c", "detected_licenses": [ "MIT" ], "directory_id": "c65d8d686d892b5d600aa9a5da88955afb091f12", "extension": "c", ...
stackv2
#include "math.h" double pow(double base, double exponent) // only positive numbers { double result = 1; while (exponent > 0) { result *= base; --exponent; } return result; } double abs(double number) { if (number < 0) return -number; return number; }
2.609375
3
2024-11-18T23:51:43.958868+00:00
2017-11-13T21:00:35
68283bcf5b50484b5c90f93563cac2f060a8d2c4
{ "blob_id": "68283bcf5b50484b5c90f93563cac2f060a8d2c4", "branch_name": "refs/heads/master", "committer_date": "2017-11-13T21:00:35", "content_id": "2176172b99f4e03fa00840950e11698e07c437dd", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f017d47b326bbe6400fb35eb427c13ea0d4f9b8a", "extensio...
stackv2
/* Finite Element Method Module * * Author: ignacio.romero@imdea.org * * Copyright 2014 IMDEA Materials Institute, Getafe, Madrid, Spain, * and Technical University of Madrid (UPM), Madrid, Spain * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in...
2.671875
3
2024-11-18T23:51:44.298798+00:00
2021-07-14T01:52:36
466f042ae16cf4e733d447d39bbc716fc07aaa79
{ "blob_id": "466f042ae16cf4e733d447d39bbc716fc07aaa79", "branch_name": "refs/heads/main", "committer_date": "2021-07-14T01:52:36", "content_id": "ca22105bb4b5831503b3ef945624defadc71b646", "detected_licenses": [ "MIT" ], "directory_id": "f21310abd16353739a54259964a162424e1a8805", "extension": "c", ...
stackv2
/* INCLUDES ***********************************************************/ #include "ses_motorFrequency.h" #include "ses_lcd.h" /* DEFINES ************************************************************/ #define FREQUENCY_COUNTER_PORT PORTD #define FREQUENCY_COUNTER_PIN 0 #define PULSES_PER_REVOLUTION 6 #define TIMER5...
2.921875
3
2024-11-18T23:51:44.572586+00:00
2018-02-17T06:33:09
b6582763ad959a7187ba721cade02d29e022b4e4
{ "blob_id": "b6582763ad959a7187ba721cade02d29e022b4e4", "branch_name": "refs/heads/master", "committer_date": "2018-02-17T06:33:09", "content_id": "4a6935ee5fd6120cdba32111bda0d964bc641316", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a277bd2f527a154a0ec78093e8608c386d772e84", "extens...
stackv2
/** * @brief Implementation of a default statistics collector **/ /* * This file is subject to the license agreement located in the file LICENSE * and cannot be distributed without it. This notice cannot be * removed or modified. */ #ifdef OCR_ENABLE_STATISTICS #include "debug.h" #include "ocr-policy-domain.h"...
2.0625
2
2024-11-18T23:51:44.709830+00:00
2021-02-01T05:43:55
f346a7872f226e4eaf73a409a5c4277ddfeecb71
{ "blob_id": "f346a7872f226e4eaf73a409a5c4277ddfeecb71", "branch_name": "refs/heads/main", "committer_date": "2021-02-01T05:43:55", "content_id": "d4d0758a9b2d7e0bcec6b9876326f7b364e4eec2", "detected_licenses": [ "MIT" ], "directory_id": "acf6a4f91ea4c40dd70dfdb1405d431d20ed2c99", "extension": "c", ...
stackv2
//============================================================================= // Copyright (C) 2020 Nu-Gate Technology. All rights reserved. // SPDX-License-Identifier: MIT //============================================================================= //===============================================================...
2.0625
2
2024-11-18T23:51:44.917087+00:00
2017-04-20T10:17:49
f46b98f651c1d1f6ff981f1c97d2a59de88fe071
{ "blob_id": "f46b98f651c1d1f6ff981f1c97d2a59de88fe071", "branch_name": "refs/heads/master", "committer_date": "2017-04-20T10:17:49", "content_id": "2db3fbf34fff2b131f18f8f1fd0d47d8b3ef9b20", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ebd585fdafb22d31fcd6d04b209f81e88d1a2083", "extensio...
stackv2
/* =========================================================================== FILE: HALmpmint.c DESCRIPTION: This is the generic hardware abstraction layer implementation for the MPM interrupt controller. =========================================================================== ...
2.0625
2
2024-11-18T23:51:45.267169+00:00
2020-04-09T08:27:14
df19b5f7795fc6b6e976957f9ef49266e2248b5a
{ "blob_id": "df19b5f7795fc6b6e976957f9ef49266e2248b5a", "branch_name": "refs/heads/develop", "committer_date": "2020-04-09T08:27:14", "content_id": "e494fa1ecb84d55cb76b077ba45a2bddb77edb4a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a392ff99d3be9b8fbb3326d01c005930a0079131", "extensi...
stackv2
/* * Copyright (C) 2019 BiiLabs Co., Ltd. and Contributors * All Rights Reserved. * This is free software; you can redistribute it and/or modify it under the * terms of the MIT license. A copy of the license can be found in the file * "LICENSE" at the root of this distribution. */ #include "uart_utils.h" #includ...
2.609375
3
2024-11-18T23:51:45.435814+00:00
2013-10-01T08:51:29
b458af3b2ad8760571369871a5941c071e8b9cf0
{ "blob_id": "b458af3b2ad8760571369871a5941c071e8b9cf0", "branch_name": "refs/heads/master", "committer_date": "2013-10-01T08:51:29", "content_id": "14272027a288677dbb633690c30de4775de48469", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "596c31b047ca731e4908aaf9f056b6ec39623380", "extens...
stackv2
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include "e_dbus_private.h" static inline DBusMessage * _dbus_message_method_call(const char *method_name) { DBusMessage *msg; msg = dbus_message_new_method_call (E_DBUS_FDO_BUS, E_DBUS_FDO_PATH, E_DBUS_FDO_INTERFACE, method_name); if (!msg) ER...
2.09375
2
2024-11-18T23:51:45.497656+00:00
2014-06-30T09:48:24
acb02fa6edeb94a25f468beb797bb59d93123d1e
{ "blob_id": "acb02fa6edeb94a25f468beb797bb59d93123d1e", "branch_name": "refs/heads/master", "committer_date": "2014-06-30T09:48:24", "content_id": "b8db6bea03fb981ce7e57177505d073acbbfb467", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a9a96cedb90df9c16cc7f635169d24186a495cc9", "extens...
stackv2
long v; int main() { int i; long l; unsigned int u; l = (int)(3.14); // Implicit conversion. // NOTE: Constant propagation should compute (int)3.14 as 3 at compile time v = (long)9; // Explicit conversion (although not required) i = (int)l; // Explicit conversion v = i + l; /...
2.8125
3
2024-11-18T23:51:45.585749+00:00
2019-05-02T08:29:41
c7cf235917a5ceb1575d7bdc62fe6161e5b2f303
{ "blob_id": "c7cf235917a5ceb1575d7bdc62fe6161e5b2f303", "branch_name": "refs/heads/develop", "committer_date": "2019-05-02T08:29:41", "content_id": "158e845afebb305ca093554b0054c40a8e4a4f14", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "74a42d20a727264bffc7088422360e507c5ba01c", "exten...
stackv2
/* * Copyright (C) 2015 sjbiwa All rights reserved. */ /* * arch_ptbl_lpae.c * support ARMv7-A LPAE(LargePhysicalAddressExtension) * * Created on: 2015/10/07 * Author: biwa */ #include "kernel.h" #include "armv8.h" #include "my_board.h" #include "memmgr.h" /*******************************************...
2.3125
2
2024-11-18T23:51:45.645016+00:00
2020-07-01T02:41:36
b07b61f4d7f525285e27a5e9fea5f3dc30685741
{ "blob_id": "b07b61f4d7f525285e27a5e9fea5f3dc30685741", "branch_name": "refs/heads/master", "committer_date": "2020-07-01T02:41:36", "content_id": "10376d26f1f1625b4f2584a234c03a5c4712145d", "detected_licenses": [ "MIT" ], "directory_id": "e23ca77cb4ef1071df967038397e8dad6231918a", "extension": "c"...
stackv2
#include "uart.h" #include "string.h" #include "buddy.h" #include "vfs.h" #include "tmpfs.h" void set_tmpfs_vnode(struct vnode* vnode){ // create root directory's vnode vnode->v_ops = tmpfs_v_ops; vnode->f_ops = tmpfs_f_ops; } int setup_mount_tmpfs(struct filesystem* fs, struct mount* mnt){ struct vno...
2.8125
3
2024-11-18T23:51:45.721495+00:00
2020-09-16T14:18:24
ebb1c4e47f3cc5832716a91e60fb0fec76983e79
{ "blob_id": "ebb1c4e47f3cc5832716a91e60fb0fec76983e79", "branch_name": "refs/heads/master", "committer_date": "2020-09-21T13:54:04", "content_id": "0b02ca0cfde0269af9c7e56af3e493ecc3f6cb10", "detected_licenses": [ "MIT" ], "directory_id": "d4291d275e17a0986c5dea27ac229ecdd9894b08", "extension": "h"...
stackv2
#ifndef __IIO_GRAB_H__ #define __IIO_GRAB_H__ #include <stdint.h> #include <inttypes.h> #include "c_bitops.h" #define IIO_BYTE_TO_FLOAT(value, input, is_be, is_signed, shift, bits) \ input = is_be ? betoh(input) : letoh(input); \ input >>= shift; \ input &= BIT_MASK(bits); \ value = is_signed ? (floa...
2.453125
2
2024-11-18T23:51:45.876850+00:00
2019-04-04T14:32:36
02df597376c1b8cbe421f37bd88eac1ae1d51763
{ "blob_id": "02df597376c1b8cbe421f37bd88eac1ae1d51763", "branch_name": "refs/heads/master", "committer_date": "2019-04-04T14:32:36", "content_id": "21f23f9d2d0558f9dec03f6aa2114ae070192d3e", "detected_licenses": [ "MIT" ], "directory_id": "7244fb4b09a07944ac1b10acbe11f902d6a6dfd9", "extension": "c"...
stackv2
// // storage.c // simpleblocksd // // Created by David Harris on 12/20/2018. // Copyright (c) 2018 MegaApps. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include <string.h> // #include <file.h> #include <errno.h> #include <time.h> #include "storage.h" stor_t* stor_alloc(void); int l_compare...
2.28125
2
2024-11-18T23:51:45.944171+00:00
2011-11-25T21:02:52
b4a8a000101d0d65fcf986d39d28f4ec45811047
{ "blob_id": "b4a8a000101d0d65fcf986d39d28f4ec45811047", "branch_name": "refs/heads/master", "committer_date": "2011-11-25T21:02:52", "content_id": "9d2ffd11e93e1305d49c9e778045a40fb55e1424", "detected_licenses": [ "MIT" ], "directory_id": "12ec24c3deddecac95ff85b3859dc6078fb893c8", "extension": "c"...
stackv2
#include "xalloc.h" #include <stdlib.h> #include <stdint.h> #include <assert.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #define HEADER_MAGIC_GUARD 0xAABB #define MEM_HEADER(size, num_children, children, parent) \ (struct mem_header){ HEADER_MAGIC_GUARD, size, num_children, children...
2.984375
3
2024-11-18T23:51:46.025469+00:00
2020-12-07T16:39:47
6fdb99eb83fd37af7bb1bc578dea34d0472686e4
{ "blob_id": "6fdb99eb83fd37af7bb1bc578dea34d0472686e4", "branch_name": "refs/heads/master", "committer_date": "2020-12-07T16:39:47", "content_id": "2ab893d1ea48f51ccdc1da77a952e4be6bf02862", "detected_licenses": [ "Unlicense" ], "directory_id": "3ac515f191b174d7aceb6414215e677eddc36b6c", "extension...
stackv2
//Made by rdbo //https://github.com/rdbo/libmem #include "libmem.h" #if defined(MEM_COMPATIBLE) //mem_string_t struct _mem_string_t mem_string_init() { struct _mem_string_t _string; mem_size_t _size = sizeof(mem_char_t) * 1; _string.buffer = (mem_char_t*)malloc(_size); _string.npos = (mem_size_t)-1; _string.is_v...
2.546875
3
2024-11-18T23:51:46.120870+00:00
2018-01-08T15:22:03
bb716ca23ee30430e6eb79de262e96332fbafde9
{ "blob_id": "bb716ca23ee30430e6eb79de262e96332fbafde9", "branch_name": "refs/heads/master", "committer_date": "2018-01-08T15:22:03", "content_id": "6d22440e78a8ece3e4f1e031eea9b097b7af65fe", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "2911910bbd05a77ba23c83e6a58e942b7aeccf05"...
stackv2
#include "th_sensor.h" uint16_t POLYNOMIAL = 0x131; I2C_HandleTypeDef th_iic; void _IIC_Error_Handler(char *File, int Line) { osDelay(1000); } static void th_iic_gpio_Init(void) { /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOB_CLK_ENABLE(); } void th_iic_Init(void) { th_iic_gpio_Init(); th_iic.Instance ...
2.40625
2
2024-11-18T23:51:46.207467+00:00
2021-03-13T20:57:24
dbb003426d7be2bf2794673f075dbfa3b71bddb2
{ "blob_id": "dbb003426d7be2bf2794673f075dbfa3b71bddb2", "branch_name": "refs/heads/master", "committer_date": "2021-03-13T20:57:24", "content_id": "b928cb22c55f689bb90c220788d8260d5f57d72c", "detected_licenses": [ "MIT" ], "directory_id": "0777f795e14d7c21ef40d715f3148a83952b42e1", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* free_structs.c :+: :+: :+: ...
2.328125
2
2024-11-18T23:51:46.698856+00:00
2023-03-27T00:00:00
680cf8d8ee041a4fb8fbb1274dd466f656187912
{ "blob_id": "680cf8d8ee041a4fb8fbb1274dd466f656187912", "branch_name": "refs/heads/master", "committer_date": "2023-03-27T00:00:00", "content_id": "e32ad841e0ebbb6504fa274817efd687f669562c", "detected_licenses": [ "TCL" ], "directory_id": "1577e1cf4e89584a125cffb855ca50a9654c6d55", "extension": "c"...
stackv2
/* * tclThreadAlloc.c -- * * This is a very fast storage allocator for used with threads (designed * avoid lock contention). The basic strategy is to allocate memory in * fixed size blocks from block caches. * * The Initial Developer of the Original Code is America Online, Inc. * Portions created by AOL are Cop...
2.171875
2
2024-11-18T23:51:46.963422+00:00
2017-07-29T20:28:19
0db1e1b0e09ef5ebbb3d65d811518b15fb4d17aa
{ "blob_id": "0db1e1b0e09ef5ebbb3d65d811518b15fb4d17aa", "branch_name": "refs/heads/master", "committer_date": "2017-07-29T20:28:19", "content_id": "37b07ed2b789210037bc2196be7b8877141a7891", "detected_licenses": [ "MIT" ], "directory_id": "f86794fd1ea869214bafd1a700a1640fe256754f", "extension": "c"...
stackv2
/** ****************************************************************************** * @file UartRx.c * @author Constantin CHABIRAND * @version V0.1 * @brief Source file for the UartReception component * ****************************************************************************** */ /********************...
2.28125
2
2024-11-18T23:51:47.046101+00:00
2023-08-31T05:17:33
e89d9568f1fe2cd53f53b23ca5629a2b84eaad77
{ "blob_id": "e89d9568f1fe2cd53f53b23ca5629a2b84eaad77", "branch_name": "refs/heads/main", "committer_date": "2023-08-31T05:17:33", "content_id": "ef4ef5ba648d0285e14caecb1551f07152bd00a9", "detected_licenses": [ "Apache-2.0", "MIT" ], "directory_id": "58fe7cb3949dd1930e709696659a0296500b64a6", ...
stackv2
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file ...
2.0625
2
2024-11-18T23:51:47.173364+00:00
2021-09-30T07:05:59
9ca5fe72260ba60db19015de566a1f53a8a6f88f
{ "blob_id": "9ca5fe72260ba60db19015de566a1f53a8a6f88f", "branch_name": "refs/heads/rdk-next", "committer_date": "2021-09-30T07:05:59", "content_id": "fb6403a160c25690eed8ead1bc2f413865a35f9a", "detected_licenses": [ "Apache-2.0", "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "e8374e3fd2ec...
stackv2
/* * If not stated otherwise in this file or this component's Licenses.txt file * the following copyright and licenses apply: * * Copyright 2019 RDK Management * * 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 ...
2.28125
2
2024-11-18T23:51:47.354933+00:00
2016-01-30T16:19:34
32dd0f453998da238f1e4f4ab904effbb2ba944c
{ "blob_id": "32dd0f453998da238f1e4f4ab904effbb2ba944c", "branch_name": "refs/heads/master", "committer_date": "2016-01-30T16:19:34", "content_id": "bf6c43ef4caf92c2563e0c1d54b2f58992d99c34", "detected_licenses": [ "MIT" ], "directory_id": "7d63ee3ffdcdb004e1a51aefb0bad5302687caff", "extension": "c"...
stackv2
#include <stddef.h> #include "network.h" int sock = -1; struct sockaddr_in server; char outBuf[128], rcvBuf[128]; socklen_t sockaddr_in_sizePtr = (int)sizeof(struct sockaddr_in); bool openSocket(char *addr, int port) { if(sock > 0) return false; sock = socket(AF_INET, SOCK_STREAM, 0); server.sin_family...
2.734375
3
2024-11-18T23:51:47.481524+00:00
2016-03-30T18:13:08
260216b8ba6d06a24c99b6de55167ac29e8a5b81
{ "blob_id": "260216b8ba6d06a24c99b6de55167ac29e8a5b81", "branch_name": "refs/heads/master", "committer_date": "2016-03-30T18:13:08", "content_id": "def8a1114e6e52e6e0948e30840cdb5a64910d1f", "detected_licenses": [ "MIT" ], "directory_id": "c2566b6136497849a5c959dd8072bae797af042a", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> /** author: mayukh * github.com/mayukh42 */ /** A simple file encrypter * based on the Caesar Cipher * usage: $ ./sealer -e rawfile key $ ./sealer -d encryptedfile key */ const char * efile = "text/sealed.txt"; const char * dfile = "text/unsealed.txt"; void encrypt ...
3.140625
3
2024-11-18T23:51:47.550457+00:00
2017-12-20T16:24:56
0a7b823f1eaf2ef5324fd2f94cde678d93c5bf67
{ "blob_id": "0a7b823f1eaf2ef5324fd2f94cde678d93c5bf67", "branch_name": "refs/heads/master", "committer_date": "2017-12-20T16:25:44", "content_id": "df9b4eb7047d37b1ee30da33d30130473a6adace", "detected_licenses": [ "MIT" ], "directory_id": "e8e4188dc534dbd55257d060d952128cac875c58", "extension": "c"...
stackv2
/*------------------------------------------------------------------ * test_wcsset_s * File 'wcsset_s.c' * Lines executed:100.00% of 17 * *------------------------------------------------------------------ */ #include "test_private.h" #include "safe_str_lib.h" #define LEN ( 128 ) int main() { errno_t rc;...
2.578125
3
2024-11-18T23:51:47.633724+00:00
2019-01-31T10:21:40
7eaf266270820dfb18169e54f13eb15981942437
{ "blob_id": "7eaf266270820dfb18169e54f13eb15981942437", "branch_name": "refs/heads/master", "committer_date": "2019-01-31T10:21:40", "content_id": "bd9fcb034d4c5fdb4146e90aea03448a2ee10f13", "detected_licenses": [ "MIT" ], "directory_id": "58b671900a959c3c079d773e5923ce35a0aa8d0d", "extension": "c"...
stackv2
int missingNumber(int* nums, int numsSize) { int sum = ((numsSize + 1) * numsSize) / 2; int i = 0; for (; i < numsSize; i++) { sum -= nums[i]; } return sum; }
2.96875
3
2024-11-18T23:51:47.781821+00:00
2020-10-29T02:13:10
0975c98553baed1774de74ed557fc527e1fa39b7
{ "blob_id": "0975c98553baed1774de74ed557fc527e1fa39b7", "branch_name": "refs/heads/master", "committer_date": "2020-10-29T02:13:10", "content_id": "32f7454064a8ab7ee5a35cb37daabb23317f777f", "detected_licenses": [ "MIT" ], "directory_id": "66d4b2d338d6179966cec4362ed83073d2395715", "extension": "h"...
stackv2
#pragma once #include "plattform.h" #include "types.h" #include "math.h" #include <assert.h> static inline ureg floor_double_to_ureg(double d) { assert(d < UREG_MAX && d >= 0); return (ureg)d; } // ulog2(0) = 0 // ulog2(1) = 1 // ulog2(2) = 2 // ulog2(3) = 2 // ulog2(4) = 3 static inline ureg ulog2(ureg v) {...
2.703125
3
2024-11-18T23:51:48.057310+00:00
2020-10-29T18:12:24
d2df626cbce04ff2e080057fc7443e7ffa35d054
{ "blob_id": "d2df626cbce04ff2e080057fc7443e7ffa35d054", "branch_name": "refs/heads/master", "committer_date": "2020-10-29T18:12:24", "content_id": "2d0323e51b2a5d3c448fa9d15fb76b983416cd80", "detected_licenses": [ "MIT" ], "directory_id": "0afd48de67cf5752f798e67973e1aed6f3eb4a9b", "extension": "h"...
stackv2
#define TRUE 1 #define FALSE 0 #define PESOBIT(bpos) 1<<bpos #define CONSULTARBIT(var,bpos) (*(unsigned*)&var & PESOBIT(bpos))?1:0 #define PONE_1(var,bpos) *(unsigned*)&var |= PESOBIT(bpos) #define PONE_0(var,bpos) *(unsigned*)&var &= ~(PESOBIT(bpos)) #define CAMBIA(var,bpos) *(unsigned*)&var ^= PESOBIT(bpos) typedef...
2.671875
3
2024-11-18T23:51:48.220205+00:00
2021-09-18T16:53:40
3843208acce07752a89e66425fd6c14f84e74a34
{ "blob_id": "3843208acce07752a89e66425fd6c14f84e74a34", "branch_name": "refs/heads/master", "committer_date": "2021-09-18T16:53:40", "content_id": "9299e89edb3007d8985591f6ed744a026884bdad", "detected_licenses": [ "MIT" ], "directory_id": "bb79e9cdfb70b48ac53f5b8be1d5cfebaa8fce9b", "extension": "c"...
stackv2
/* glkmain.c: Sample Glk program for IosGlk, the iOS implementation of the Glk API. Designed by Andrew Plotkin <erkyrath@eblong.com> http://eblong.com/zarf/glk/ */ #include <stdio.h> #include <string.h> #include "glk.h" #include "iosglk_startup.h" void iosglk_startup_code() { } extern void nslogc(char *str); sta...
2.609375
3