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:13:40.840993+00:00
2017-09-08T07:15:53
247c0f215b0f9ce36aff63bb3b32074c170bbc93
{ "blob_id": "247c0f215b0f9ce36aff63bb3b32074c170bbc93", "branch_name": "refs/heads/master", "committer_date": "2017-09-08T07:15:53", "content_id": "e4460bb1a284b172a72a9e9102604a25984005de", "detected_licenses": [ "Unlicense" ], "directory_id": "e615bf3653da8bd41852c32eb030066e0a3a1612", "extension...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <pthread.h> //----------------------------------------------------------------------------*/ /* 전처리기 선언 //----------------------------------------------------------------------------*/ #ifndef true #define true (1) #endif #ifnd...
2.46875
2
2024-11-18T22:13:41.226712+00:00
2018-04-18T14:19:10
77293b98dd3b75e3361e049c04a23430c3284a4d
{ "blob_id": "77293b98dd3b75e3361e049c04a23430c3284a4d", "branch_name": "refs/heads/master", "committer_date": "2018-04-18T14:19:10", "content_id": "2d4ae77be9a9c44aa1abbaf1e26efe5f0e763845", "detected_licenses": [ "MIT" ], "directory_id": "92fe5848a0ff52561f85da339a57ccef504f4346", "extension": "h"...
stackv2
#ifndef __SHELTER_H__ #define __SHELTER_H__ /** * Procedure which displays binary usage * by printing on stdout all available options * * \param char* binName bin name * \return void */ void printUsage(char* binName); /** * Return a copy of the string of the command in parameter * * \see man 3 strndup * \...
2.203125
2
2024-11-18T22:13:41.318746+00:00
2021-07-12T08:35:49
777c522a229e5b99b539d1f2f5b0379e7dcf5ed5
{ "blob_id": "777c522a229e5b99b539d1f2f5b0379e7dcf5ed5", "branch_name": "refs/heads/main", "committer_date": "2021-07-12T08:35:49", "content_id": "e01dd3a058046e27299a4c850cc0a1b076971d1c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "44370b8e5980b4590267bfd184d39317f92bb2c5", "extension"...
stackv2
/* Program to demonstrate 'extern' storage class: Highlight: Variable delcared with 'extern' keyword is defined at one location(globally/other file) and used in other location. a. storage area: Data segment b. default value: zero (0) c. scope: global/across files d. lifetime: till program ends */ #include <stdio.h> ex...
3.34375
3
2024-11-18T22:13:41.562369+00:00
2021-01-25T21:37:20
bd8191c727904aa919c5e93590a0f16b62c9f1de
{ "blob_id": "bd8191c727904aa919c5e93590a0f16b62c9f1de", "branch_name": "refs/heads/master", "committer_date": "2021-01-25T21:37:20", "content_id": "3cfbca1458183a78e5dfe1d24d9c7d9b3465a827", "detected_licenses": [ "MIT" ], "directory_id": "ebe87059e15a0d0f910e6848543c0f909c472b15", "extension": "c"...
stackv2
#include <linux/i2c-dev.h> #ifdef HAVE_SMBUS_H # include <i2c/smbus.h> #endif #include <linux/uinput.h> #include <sys/ioctl.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include <stdint.h> #define UINPUT_DEV_NAME "Nintendo I²C Controller" int hq = 0; int analog...
2.359375
2
2024-11-18T22:13:42.664888+00:00
2019-08-21T12:26:17
7127648dbec2402b34f5c50e5bc07d4da6a5d00e
{ "blob_id": "7127648dbec2402b34f5c50e5bc07d4da6a5d00e", "branch_name": "refs/heads/master", "committer_date": "2019-08-21T12:26:17", "content_id": "f6354ba71613de460f32048e8e146374c0fb886c", "detected_licenses": [ "MIT" ], "directory_id": "8de5c1ce62aa6d87e094cd454cd4ff2bbb7091ed", "extension": "c"...
stackv2
#ifndef F_CPU #define F_CPU 16000000UL //This is just a macro, it has no data type. #endif #include <math.h> #include <avr/io.h> #include <util/delay.h> #include <stdint.h> #include <avr/interrupt.h> #include "bit_macros.h" #include "DAC_driver.h" #include "MOTOR_driver.h" #include "PID_controller.h" void MOTOR_init...
2.671875
3
2024-11-18T22:13:43.235137+00:00
2023-09-03T15:11:13
f4d361857803ea2effc35efdfd9d44d07a38be2f
{ "blob_id": "f4d361857803ea2effc35efdfd9d44d07a38be2f", "branch_name": "refs/heads/main", "committer_date": "2023-09-03T15:11:13", "content_id": "88a3a35375ce32cc6b04dfb103b98c13a35e3b41", "detected_licenses": [ "Zlib" ], "directory_id": "9eedaea06306b20520151321854f989a73c7daf8", "extension": "c",...
stackv2
/* Simple DirectMedia Layer Copyright (C) 1997-2023 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
2.09375
2
2024-11-18T22:13:43.374348+00:00
2019-02-25T17:14:30
64af2fcee4ed062613c67031b820a3af137a70c7
{ "blob_id": "64af2fcee4ed062613c67031b820a3af137a70c7", "branch_name": "refs/heads/master", "committer_date": "2019-02-25T17:14:30", "content_id": "b53cc6551e2a9d1ea94467a6d605bcdb47e65c8c", "detected_licenses": [ "MIT" ], "directory_id": "bd4a9cd0ff7ddc64e4f4529d4fa60a59db07261e", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> /*Estrategia a utilizar: Se elaborará un procedimiento iterativo que funcione de la misma manera que un procedimiento recursivo por medio de la utilización de pilas expliícitas. Para ello se definirá una pila especial para QuickSort, puesto que sus nodos podran almacenar el valor ...
3.671875
4
2024-11-18T22:13:43.784324+00:00
2020-01-10T23:27:02
daf9993d68ecd1597b4ff2e63a2af8cf04fa0eaa
{ "blob_id": "daf9993d68ecd1597b4ff2e63a2af8cf04fa0eaa", "branch_name": "refs/heads/master", "committer_date": "2020-01-10T23:27:02", "content_id": "5f25345ade884f07304fad430cd7a3c584c47f75", "detected_licenses": [ "MIT" ], "directory_id": "309af9a63d4ff78b67912394d3f55b8e619fc169", "extension": "c"...
stackv2
#include "arduboy.h" ArduboyC arduboy; #define AVATAR_SPEED 5 typedef struct { int x, y; } avatar; avatar avi; void avatar_init(avatar *a) { a->x = 0; a->y = 32; } void avatar_draw(avatar *a, ArduboyC *ab) { arduboy_draw_rect(ab, a->x, a->y, 8, 8, WHITE); } void avatar_move_right(avatar *a) { ...
2.625
3
2024-11-18T22:13:44.002061+00:00
2019-11-25T18:13:40
67a430e4ad906bb0c77e0a09b6a594707528fdc7
{ "blob_id": "67a430e4ad906bb0c77e0a09b6a594707528fdc7", "branch_name": "refs/heads/master", "committer_date": "2019-11-25T18:13:40", "content_id": "053007971ccfebe552750ec5b532279fb62506de", "detected_licenses": [ "Unlicense" ], "directory_id": "bfbad69b0cab1db2aa658d713cb3cc0bda7b808a", "extension...
stackv2
#include "includes.h" struct SSfxGene { u8 nInit; // Son initialisé (1) ou pas (0). SDL_AudioSpec sAudioSpec; SDL_AudioCVT pCvt[e_Sfx_LAST]; }; struct SSfxGene gSfx; #define SFX_MAX_SOUNDS 2 struct SSample { u8 *pData; u32 nDPos; u32 nDLen; u8 nPrio; // Priorité du son en cours. } gpSounds[SFX_MAX_SOUN...
2.46875
2
2024-11-18T22:13:44.176172+00:00
2020-11-25T10:12:44
12daa98ae098414719e732e24e0ba939b5f2b9a8
{ "blob_id": "12daa98ae098414719e732e24e0ba939b5f2b9a8", "branch_name": "refs/heads/master", "committer_date": "2020-11-25T10:12:44", "content_id": "27c7903df7a6abd487a8b21c5eb42d2a5822abe6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "18f5ad4645abf3d9c70ba63a919c1f60b57892a1", "extensio...
stackv2
#include "control_msg.h" #include <assert.h> #include <string.h> #include "config.h" #include "util/buffer_util.h" #include "util/log.h" #include "util/str_util.h" static void write_position(uint8_t *buf, const struct position *position) { buffer_write32be(&buf[0], position->point.x); buffer_write32be(&buf[4...
2.109375
2
2024-11-18T22:13:44.489952+00:00
2016-03-16T02:26:25
ce2f84618a0fd64d6f9a61198c3f9239bba4f03c
{ "blob_id": "ce2f84618a0fd64d6f9a61198c3f9239bba4f03c", "branch_name": "refs/heads/master", "committer_date": "2016-03-16T02:26:25", "content_id": "001ced054658e5c45f89b5573cc231448f37a9f6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fcdc7b3957634a6d785537b9feaa16e4d3e67b3b", "extensio...
stackv2
#include "showCH.h" #include "ILI93xx.h" #include "lcd.h" #include "chinese.h" #include "showEN.h" /*............................................................................. @Name : Show_HZ16 @Param : u16 Xpos 横坐标 u16 Ypos 纵坐标 u8 *string 中文显示的数组 u8 mode 显示模式 HAVE_BK NO_BK @return : void @Info : ...
2.640625
3
2024-11-18T22:13:44.725195+00:00
2023-06-26T11:52:17
76e66c53267bc3cb57984efd16439843bfc4bed2
{ "blob_id": "76e66c53267bc3cb57984efd16439843bfc4bed2", "branch_name": "refs/heads/master", "committer_date": "2023-06-26T11:52:17", "content_id": "961f04bf3c46dbad2a6d4d06ccdf9db71a861e7d", "detected_licenses": [ "MIT" ], "directory_id": "eacf503924db0760033586b9975a6ec0007db154", "extension": "c"...
stackv2
/** * @file tlc5947-rgb-micropython/tlc5947/color.c * @author Peter Züger * @date 11.09.2018 * @brief tlc5947 RGB color handling * * The MIT License (MIT) * * Copyright (c) 2019 Peter Züger * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated...
2.1875
2
2024-11-18T22:13:46.676080+00:00
2016-03-09T16:23:50
4537ae133e26534e552bb19e810a9dec7f431b48
{ "blob_id": "4537ae133e26534e552bb19e810a9dec7f431b48", "branch_name": "refs/heads/aicp-r29", "committer_date": "2016-03-09T16:23:50", "content_id": "7e223d03eaba5dd52f871e46fc42c14d0c7f2189", "detected_licenses": [ "Apache-2.0" ], "directory_id": "951c624e18a1be5d9bb26d0b14a045b42cbecd54", "extens...
stackv2
/* * pack.c * * Copyright 2012 Emilio López <turl@tuxfamily.org> * * 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 later versio...
2.296875
2
2024-11-18T22:13:46.902997+00:00
2021-06-27T18:07:28
c2e897f32f5989155ed12aadc5a1fda01fb7a2ea
{ "blob_id": "c2e897f32f5989155ed12aadc5a1fda01fb7a2ea", "branch_name": "refs/heads/master", "committer_date": "2021-06-27T18:07:28", "content_id": "ab083a95d707c751fec093224566c4d612942105", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "1269bd766f03c4e6387a2d2fe76bcf697018f0f0", "extens...
stackv2
/** \file pretty_scope.c * split out of exppp.c 9/21/13 */ #include "pp.h" #include "exppp.h" #include "pretty_expr.h" #include "pretty_rule.h" #include "pretty_type.h" #include "pretty_func.h" #include "pretty_entity.h" #include "pretty_proc.h" #include "pretty_scope.h" /** add items from s to list alphabetically ...
2.40625
2
2024-11-18T22:13:47.290100+00:00
2023-08-17T13:00:20
87a52809fce118d5c0b3911877bfce186ce364a9
{ "blob_id": "87a52809fce118d5c0b3911877bfce186ce364a9", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T07:43:37", "content_id": "062005168a172f4c59245cdf52ed52cb8730e89a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c9bc99866cfab223c777cfb741083be3e9439d81", "extens...
stackv2
/* * Arm SCP/MCP Software * Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "config_clock.h" #include "scp_sgi575_mmap.h" #include <mod_cmn600.h> #include <fwk_id.h> #include <fwk_macros.h> #include <fwk_module.h> #include <fwk_mo...
2.078125
2
2024-11-18T22:13:47.357567+00:00
2022-04-23T18:30:00
80ff3dd5cf0ccc3bba0265693844e5cd09c53ad6
{ "blob_id": "80ff3dd5cf0ccc3bba0265693844e5cd09c53ad6", "branch_name": "refs/heads/master", "committer_date": "2022-04-23T18:30:00", "content_id": "d02ca31c18cf94fb86f63724151b7775bcd81706", "detected_licenses": [ "MIT" ], "directory_id": "67edf31a78fe8a86c99917fb351c9abffd8d0bca", "extension": "c"...
stackv2
#include "lambda.h" void save_lambda_env(Lambda *l, const Memory *mem) { l->nenv = mem->sp - mem->fp; l->env = calloc(l->nenv, sizeof(Value)); for (int i = 0; i < l->nenv; i++) { l->env[i] = mem->stack[mem->fp + i]; } } void load_lambda_env(const Lambda *l, Memory *mem) { for (int i = 0; i...
2.3125
2
2024-11-18T22:13:47.758159+00:00
2020-04-21T21:55:38
23707ce095976906eb24b3869923790aa6662af7
{ "blob_id": "23707ce095976906eb24b3869923790aa6662af7", "branch_name": "refs/heads/master", "committer_date": "2020-04-21T21:55:38", "content_id": "8720c142be76933738140e6d4da9dfcb71af405c", "detected_licenses": [ "MIT" ], "directory_id": "7925d9ebc08f24ab7387fe417157398f3fbc497f", "extension": "c"...
stackv2
/** * @file modem.c * @brief Implements functions for connecting to the cellular network, and sending/receiving packets. * @author Brandon Wong, Matt Bartos and Ivan Mondragon * @version TODO * @date 2017-06-01 */ #include <device.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include "modem.h" #i...
2.234375
2
2024-11-18T22:13:47.879840+00:00
2019-02-17T22:30:07
e9a64f64d6da10fde3a2c1382789d4eb26962a8f
{ "blob_id": "e9a64f64d6da10fde3a2c1382789d4eb26962a8f", "branch_name": "refs/heads/master", "committer_date": "2019-02-17T22:30:07", "content_id": "5428c49a1220629aa59b7f99d8a6e2e032a493d2", "detected_licenses": [ "MIT" ], "directory_id": "c6501dc2148f52aed380eaeb30a69fc3f2e1d611", "extension": "c"...
stackv2
/* Practica : BubbleSort con apuntadores Autor: Espinosa Curiel Oscar */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int getArray(char *arrc, float *arri){ /* Funcion que castea un arreglo char, mandado como primer parametro a un arreglo float. El arreglo final lo almacena en e...
4.28125
4
2024-11-18T22:13:47.970084+00:00
2023-06-04T09:19:36
625bc185d74c590190b75e66ddb8e63b26409f7b
{ "blob_id": "625bc185d74c590190b75e66ddb8e63b26409f7b", "branch_name": "refs/heads/master", "committer_date": "2023-06-04T09:19:36", "content_id": "d28cc61185b2f347bc8d4c4e84a28236855e0ef5", "detected_licenses": [ "MIT" ], "directory_id": "873b3289e7e2c5945687454d01214db3290a4240", "extension": "c"...
stackv2
// Author: HeRaNO #include <errno.h> #include <stdio.h> #include <signal.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netinet/in.h> #define MAX_CMD_STR 100 int leave, sigtype; char buf[MAX_CMD_STR + 1]; void sig_pipe(int...
2.625
3
2024-11-18T22:13:48.125296+00:00
2023-08-29T06:33:10
143a759e4af76ae5db4fec1e4b8f48b644dc50b0
{ "blob_id": "143a759e4af76ae5db4fec1e4b8f48b644dc50b0", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T06:33:10", "content_id": "b73c571d9e706d76fe506434898ce91ad86570d5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "676acab8ff535019faff7da3afb8eecc3fa127f5", "extensio...
stackv2
/****************************************************************************** * Copyright 2020-2023 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 Lic...
2.453125
2
2024-11-18T22:13:48.213411+00:00
2021-04-19T01:37:00
8ebfba25dccd1f5b541474968ec650f826cc1f48
{ "blob_id": "8ebfba25dccd1f5b541474968ec650f826cc1f48", "branch_name": "refs/heads/main", "committer_date": "2021-04-19T01:37:00", "content_id": "da659a5324fe0e341195d5fe272e435985362f1d", "detected_licenses": [ "MIT" ], "directory_id": "444112cf36c43374417d6041a1a03e7593817991", "extension": "c", ...
stackv2
#include <stdio.h> #include "./dedqueue.h" int main (void) { dedqueue queue; int instructions_amount = 0; scanf("%d", &instructions_amount); for (int i = 0; i < instructions_amount; i++) { int instruction; scanf("%d", &instruction); if (instruction == 1) { dedqueu...
3.125
3
2024-11-18T22:13:48.284034+00:00
2021-04-28T18:56:22
a5cadc83de6fed4d6ce1ff5b19d616248425ec4f
{ "blob_id": "a5cadc83de6fed4d6ce1ff5b19d616248425ec4f", "branch_name": "refs/heads/main", "committer_date": "2021-04-28T18:56:22", "content_id": "b1b01576773df86bb1fd1ad836bb66306617df44", "detected_licenses": [ "Apache-2.0", "MIT" ], "directory_id": "cf3ab1cf98a85616bd9a761a360ee9a8646d0c4d", ...
stackv2
/* * Copyright 2021 Benjamin Edgington * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
2.171875
2
2024-11-18T22:13:48.526233+00:00
2023-06-27T09:37:07
2235cf39ac59c11832570c6c15d1f059ac3d492c
{ "blob_id": "2235cf39ac59c11832570c6c15d1f059ac3d492c", "branch_name": "refs/heads/master", "committer_date": "2023-07-03T13:55:18", "content_id": "c5004f356f526040dd67c07c1c79fbba6cae340a", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "bbe9714204043d77bf874a84b530a23f814edca4", "extens...
stackv2
#include <tarantool/module.h> #include <small/slab_cache.h> #include <small/quota.h> static struct slab_arena arena; static struct slab_cache slabc; static struct quota quota; struct slab_arena_info { uint64_t quota_size; uint64_t quota_used; double quota_used_ratio; }; struct slab_arena_info slab_info; /* * Fu...
2.375
2
2024-11-18T22:13:48.593968+00:00
2021-01-13T05:20:52
3881fa63fe5c8ccf6b18cf31896044f6906adc8c
{ "blob_id": "3881fa63fe5c8ccf6b18cf31896044f6906adc8c", "branch_name": "refs/heads/main", "committer_date": "2021-01-13T05:20:52", "content_id": "65bfab1974a657d8822ae68cd2d68d3e5ee4bf53", "detected_licenses": [ "MIT" ], "directory_id": "b9ac8508cddd14c4933fa2c0752612a3ec3d89a7", "extension": "c", ...
stackv2
#include "crossbridge_kinetics.h" // crossbridge_kinetics Initialisation function void CrossbridgeKineticsInit(CrossbridgeKinetics* me) { // Initialise State me->state = CROSSBRIDGE_KINETICS_Q0; // Initialise Outputs me->t = 0.0; // Initialise Internal Variables me->q = 0.0; me->dlambda_d...
2.640625
3
2024-11-18T22:13:48.683443+00:00
2023-07-25T20:43:44
4c7df143986dc3ba5951911cbc683405af73ad67
{ "blob_id": "4c7df143986dc3ba5951911cbc683405af73ad67", "branch_name": "refs/heads/master", "committer_date": "2023-08-09T19:52:54", "content_id": "1622b5e50059a2a186a31389f8e81794cf42ccff", "detected_licenses": [ "Unlicense" ], "directory_id": "f47ff185ac78bda4107fbebc1e8a633e0e92dcf1", "extension...
stackv2
/* Usage: jsonmin [options] [input] [output] * Example: jsonmin -cjs file.json * * JSON minifier but faster than JSMin (tm) * Doesn't minify javascript, only json * * input can be a filename or _ for stdin * default is _ * * output can be a filename or _ for stdout * default is input.min.(extension) or _ if i...
2.140625
2
2024-11-18T22:13:50.060607+00:00
2019-10-12T15:00:56
e2ac1ca458ca0a5bd7ec476335495d7f5fc3c0bc
{ "blob_id": "e2ac1ca458ca0a5bd7ec476335495d7f5fc3c0bc", "branch_name": "refs/heads/master", "committer_date": "2019-10-12T15:00:56", "content_id": "b7a7db3a1510972ca0e0a98b3f519683e31efc7d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0ca111543b34822d64d1bc929296124adb35d7d3", "extensio...
stackv2
/* * Copyright (c) 2019 Winner Microelectronics Co., Ltd. * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2019-07-10 Ernest 1st version */ #include <rtthread.h> #include <rtdevice.h> #include <stdlib.h> #include <string.h> #include "drv_crypto.h" #includ...
2.046875
2
2024-11-18T22:13:51.312750+00:00
2020-05-16T17:12:26
ee87d947f015595e6e7811b908160f734d034a5b
{ "blob_id": "ee87d947f015595e6e7811b908160f734d034a5b", "branch_name": "refs/heads/master", "committer_date": "2020-05-16T17:12:26", "content_id": "3c3b476881be233d3b71fb91c73e0a76fca5b039", "detected_licenses": [ "MIT" ], "directory_id": "66cd08f7b01bdd013082ea4153f0e147c2265bb9", "extension": "c"...
stackv2
#include <iostream> #include <fstream> #include <subtri.C> using namespace std; using namespace lwtv; template <typename T> struct argsStruct { T triradius; T sphRad; T resmult; T maxRatio; }; template <typename T> class testMesh : public subdividedMesh<T> { using subdividedMesh<T>::pointList; using subdividedM...
2.234375
2
2024-11-18T22:13:53.450867+00:00
2023-07-14T14:20:18
5eff20a2b3c7952462d627b4bcf1f1ade2cb785e
{ "blob_id": "5eff20a2b3c7952462d627b4bcf1f1ade2cb785e", "branch_name": "refs/heads/master", "committer_date": "2023-07-14T14:20:18", "content_id": "354e830e78bff05348a844ac0a81b9dc52870ac2", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "34c4f63b47d4c0e86f0479f6130927b3e4dde917", "extens...
stackv2
/* * Copyright (c) 2001-$Date: 2017-03-08 09:49:09 -0600 (Wed, 08 Mar 2017) $ TIBCO Software Inc. * Licensed under a BSD-style license. Refer to [LICENSE] * For more information, please contact: * TIBCO Software Inc., Palo Alto, California, USA * * $Id: tibemsXAMsgProducer.c 92163 2017-03-08 15:49:09Z krailton $ ...
2.1875
2
2024-11-18T22:13:53.863086+00:00
2019-03-03T02:34:37
60c10610ca603f33f2f3dac50d029d2032a31987
{ "blob_id": "60c10610ca603f33f2f3dac50d029d2032a31987", "branch_name": "refs/heads/master", "committer_date": "2019-03-03T02:34:37", "content_id": "346ddace9a53d468e43cd025c5fa328f6a0c200f", "detected_licenses": [ "MIT" ], "directory_id": "c86e92ae090806565b2162f7905ad77f8390c13e", "extension": "h"...
stackv2
/* * lib_io.h * * Created on: 2018年3月11日 * Author: customer */ #ifndef __LIB_IO_H__ #define __LIB_IO_H__ #define MAX_INFO_NUM 50 #define MAX_DATA_NUM 50000 //读取文件并按行输出到buff。 //buff为一个指针数组,每一个元素是一个字符指针,对应文件中一行的内容。 //spec为允许解析的最大行数。 extern int read_file(char ** const buff, const unsigned int spec, cons...
2.0625
2
2024-11-18T22:13:53.938156+00:00
2020-02-26T20:05:43
e6859923c3a3047a545766fe6d7c7c7d1744a2a3
{ "blob_id": "e6859923c3a3047a545766fe6d7c7c7d1744a2a3", "branch_name": "refs/heads/master", "committer_date": "2020-02-26T20:05:43", "content_id": "bf493bc240ebd72a10783ece155fc85767eb4f96", "detected_licenses": [ "MIT" ], "directory_id": "fa878e30b2a9b0427faa003d5e984561b24f77ec", "extension": "c"...
stackv2
/*#include <kipr/botball.h> #include <create_functions.h> #include <create_comp_lib.h> // turn 150 // square 250 // PID 150 // ----------------- // thread baseback; // - DECLARE NAME OF THREADS. thread basefront; // thread basehalf; // thread handopen; // thread armdown; // thread handclose; /...
2.5
2
2024-11-18T22:14:00.133141+00:00
2022-03-01T22:33:16
2ab021115e8102c568c4f7767a755d907386f78d
{ "blob_id": "2ab021115e8102c568c4f7767a755d907386f78d", "branch_name": "refs/heads/master", "committer_date": "2022-12-12T17:03:27", "content_id": "26feda45381e76b9990b75447dbfe3f67726ee63", "detected_licenses": [ "MIT" ], "directory_id": "c7308b6f7534ec1d08d02ff7882020636f42a2cb", "extension": "c"...
stackv2
// RUN: %check %s -fshow-inlined -fno-semantic-interposition // RUN: %ocheck 10 %s -fno-semantic-interposition __attribute((noinline)) void clean_int_ni(int *p) { *p = 3; } __attribute((always_inline)) inline void clean_int_ai(int *p) { *p = 3; } main() { #include "../ocheck-init.c" __attribute((cleanup(clean_int...
2.34375
2
2024-11-18T22:14:00.188515+00:00
2014-04-14T04:17:37
49d1f091efb12533fadd80730a4bd2dc20be6eb1
{ "blob_id": "49d1f091efb12533fadd80730a4bd2dc20be6eb1", "branch_name": "refs/heads/master", "committer_date": "2014-04-14T04:17:37", "content_id": "0bbe763e644cd780d869141c7c4496e6dee3cd8c", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "2b11bba70e58340d7e6b8bc5940973c28bbcf9e3", "extens...
stackv2
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2013 Semtech Description: Driver for the SX9500 proximity sensor License: Revised BSD Lice...
2.046875
2
2024-11-18T22:14:00.393866+00:00
2020-11-22T09:39:25
596af689fbc691f51aa2a8912edcf72e4fdabd61
{ "blob_id": "596af689fbc691f51aa2a8912edcf72e4fdabd61", "branch_name": "refs/heads/main", "committer_date": "2020-11-22T09:39:25", "content_id": "0bd8647896f8a4b13e542dedd59ae32819886f3a", "detected_licenses": [ "MIT" ], "directory_id": "ce32cbe68e857536e9640b6aa06de110ffe73337", "extension": "c", ...
stackv2
#include "main.h" typedef struct Token Token; Token *token; typedef struct Node Node; char *user_input; int main(int argc, char **argv){ // Get user inputs user_input = argv[1]; // Tokenize inputs token = tokenize(); // Create AST using Tokenized Token by priority Node *node = expr();...
2.5
2
2024-11-18T22:14:01.792618+00:00
2023-07-20T20:45:22
ed17f8f5b06cfd372e8a56ddd173883a07d6559e
{ "blob_id": "ed17f8f5b06cfd372e8a56ddd173883a07d6559e", "branch_name": "refs/heads/master", "committer_date": "2023-07-20T20:45:22", "content_id": "81d6b994d21b591218d0a441201d1fd49bd3adb9", "detected_licenses": [ "MIT" ], "directory_id": "e1b97a70d8eeb66b29594f02cb53264b6bbb16f2", "extension": "c"...
stackv2
/* * main.c * Copyright (C) 2020 xent * Project is distributed under the terms of the MIT License */ #include <xcore/fs/utils.h> #include <check.h> #include <stdlib.h> /*----------------------------------------------------------------------------*/ #define MAX_BUFFER_LENGTH 128 /*----------------------------------...
2.390625
2
2024-11-18T22:14:02.007582+00:00
2020-11-15T13:26:45
04a6f2e886616ca22eddf3861667ee8a0bef05de
{ "blob_id": "04a6f2e886616ca22eddf3861667ee8a0bef05de", "branch_name": "refs/heads/master", "committer_date": "2020-11-15T13:26:45", "content_id": "04e73b2afb578704592e243a4193f55983e9f3c6", "detected_licenses": [ "MIT" ], "directory_id": "ee35db442166982552de5375009d91f544cf37ce", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> void InsertionSort(int* arr, int n){ int j,pivot; for (int i = 0; i < n; i++){ j = i -1; pivot = arr[i]; while (j >= 0 && pivot < arr[j]){ arr[j +1] = arr[j]; j = j-1; } arr[j +1] = pivot;...
3.421875
3
2024-11-18T22:14:02.180086+00:00
2021-09-19T15:37:12
a702093b1b8df430390039b98db6d7a6a4f62591
{ "blob_id": "a702093b1b8df430390039b98db6d7a6a4f62591", "branch_name": "refs/heads/master", "committer_date": "2021-09-19T15:37:12", "content_id": "2495ab8e09b28d24d10f07f622578c9b65f798a5", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c0a792c94636937fbc62ff17f816d21f98898be1", "extens...
stackv2
/* ntpd remote root exploit / babcia padlina ltd. <venglin@freebsd.lublin.pl> */ /* * Network Time Protocol Daemon (ntpd) shipped with many systems is vulnerable * to remote buffer overflow attack. It occurs when building response for * a query with large readvar argument. In almost all cases, ntpd is running * wi...
2.078125
2
2024-11-18T22:14:03.052843+00:00
2023-03-12T14:39:59
747485e5980dbe9504b456621547b771e9bd2e31
{ "blob_id": "747485e5980dbe9504b456621547b771e9bd2e31", "branch_name": "refs/heads/main", "committer_date": "2023-03-12T14:39:59", "content_id": "570f1b4a46c49e1566833f4ce3b9309fabde5fe0", "detected_licenses": [ "MIT" ], "directory_id": "38daaf6757d4ee277db313dbdabefc0d6e565ff8", "extension": "c", ...
stackv2
/* Dizi İçerisinde Sayı Arama ve o Sayıdan kaç tane olduğunu Yazan Program Klavyeden girilen SIZE elemanlı dizi içerisinde klavyeden girilen sayının frekansını bulan C programı */ #include <stdio.h> #include <locale.h> #define SIZE 100 int main() { setlocale(LC_ALL, "Turkish"); int dizi[SIZE],N; int x; int fre...
3.140625
3
2024-11-18T22:14:03.394069+00:00
2021-08-25T17:59:15
78f5062abe1f6148ba9fe05c623bde79328664d0
{ "blob_id": "78f5062abe1f6148ba9fe05c623bde79328664d0", "branch_name": "refs/heads/master", "committer_date": "2021-08-25T17:59:15", "content_id": "4783a727c4e72bd1a70da48fdc31b86a08e4bd12", "detected_licenses": [ "Artistic-2.0" ], "directory_id": "192f6a4c9d934be58bca0e610ec1a75e7777fcd1", "extens...
stackv2
/* * Copyright (C) 2006-2010, Parrot Foundation. */ /* =head1 NAME src/platform/solaris/math.c =head1 DESCRIPTION Mathematical functions. =head2 Functions =over 4 =cut */ #include "parrot/parrot.h" /* * force atan2() to use IEEE behavior */ #include <math.h> #if defined(__GNUC__) && defined(_LIB_VERSION...
2.046875
2
2024-11-18T22:14:07.649815+00:00
2022-10-27T11:39:49
58ca6b6b811df332e4af68f8c90bc185f6061718
{ "blob_id": "58ca6b6b811df332e4af68f8c90bc185f6061718", "branch_name": "refs/heads/main", "committer_date": "2022-10-27T11:39:49", "content_id": "2acb1a303d9aaf58a7a29c0507a3dfdc923c5fce", "detected_licenses": [ "MIT" ], "directory_id": "a895d49bc28a5ca3fa01c1f8fc6c63ebc17413f7", "extension": "h", ...
stackv2
#pragma once #include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <syslog.h> #if defined(DEBUG) && DEBUG > 0 #define KP_DEBUG_PRINT(lvl, fmt, args...) do {\ if (DEBUG >= lvl) { \ fprintf(stderr, "DEBUG: %s:%d: " fmt, __FILE__, __LINE__, ##args); \ ...
2.65625
3
2024-11-18T22:14:09.564301+00:00
2020-02-27T01:20:33
1ee8689359bc209fa622489b66a81d1479680f65
{ "blob_id": "1ee8689359bc209fa622489b66a81d1479680f65", "branch_name": "refs/heads/master", "committer_date": "2020-02-27T01:20:33", "content_id": "0639c4b98bddd087c4c5776b495cfc38e591e89e", "detected_licenses": [ "Zlib" ], "directory_id": "05614de996a8432772d89e7208e1eaecbd2367f5", "extension": "c...
stackv2
#include "say.h" say_renderer *say_renderer_create() { say_renderer *renderer = (say_renderer*)malloc(sizeof(say_renderer)); renderer->shader = say_shader_create(); say_renderer_reset_states(renderer); return renderer; } void say_renderer_free(say_renderer *renderer) { say_shader_free(renderer->shader); ...
2.390625
2
2024-11-18T22:14:09.997380+00:00
2020-03-08T14:39:39
a8da8c9af516879a11ec7eee4ddbd857e27b8df9
{ "blob_id": "a8da8c9af516879a11ec7eee4ddbd857e27b8df9", "branch_name": "refs/heads/master", "committer_date": "2020-03-08T14:39:39", "content_id": "874631e8fffe52982f80f4f76333ed475f07d763", "detected_licenses": [ "MIT" ], "directory_id": "c240de8ef2927feb005617514b79e451ee8c84ec", "extension": "c"...
stackv2
/** * @file msp_obc_link.c * @author John Wikman * @copyright MIT License * @brief Implements the core functionalities for handling transactions on * the OBC side of MSP. */ #include <stdlib.h> #include "msp_i2c_master.h" #include "msp_constants.h" #include "msp_debug.h" #include "msp_en...
2.796875
3
2024-11-18T22:14:10.066125+00:00
2017-11-22T13:34:28
071b2c1006a971821904a7fba4ee4d96d302ea03
{ "blob_id": "071b2c1006a971821904a7fba4ee4d96d302ea03", "branch_name": "refs/heads/master", "committer_date": "2017-11-22T13:34:28", "content_id": "763a76b8e2206127d525badd6be653c9f1faad89", "detected_licenses": [ "MIT" ], "directory_id": "d2d12a40772a537b87fdeaf094a2fdab2e15f494", "extension": "c"...
stackv2
#define _GNU_SOURCE #include <errno.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <sys/socket.h> #include <include/server_tool.h> int tcp_server(const char* service_port) { int err; int sock_server; int curr_socket; struct addrinfo ...
2.359375
2
2024-11-18T22:14:10.196626+00:00
2021-06-20T20:14:32
5325aa5e9b201dba2d8aec7cb112b41e5cb424f1
{ "blob_id": "5325aa5e9b201dba2d8aec7cb112b41e5cb424f1", "branch_name": "refs/heads/main", "committer_date": "2021-06-20T20:14:32", "content_id": "782f62c129a29bd5cb1f452f4eaa3d3e0d6b28a3", "detected_licenses": [ "MIT" ], "directory_id": "eabf26f3f1a283ea1bf70aeedd21a4225333ab7b", "extension": "c", ...
stackv2
/****************************************************************************** Online C Compiler. Code, Compile, Run and Debug C program online. Write your code in this editor and press "Run" button to compile and execute it. ***********************************************...
3.421875
3
2024-11-18T22:14:10.276548+00:00
2017-06-21T11:23:34
bf6887bfab001b57b2edd11879851b9be7d4ff53
{ "blob_id": "bf6887bfab001b57b2edd11879851b9be7d4ff53", "branch_name": "refs/heads/master", "committer_date": "2017-06-21T11:23:34", "content_id": "f1bc116152e50ed9b8f214ac00b08e9d10dd6cda", "detected_licenses": [ "MIT" ], "directory_id": "a7e8b2e78ce31bbc1ec3319ac808f3a6e43b4f0b", "extension": "c"...
stackv2
#include "minigame.h" #include <allegro5/allegro_acodec.h> #include "mruby/variable.h" static struct RClass *sound_buffer_cls = NULL; static struct RClass *sound_cls = NULL; static ALLEGRO_MIXER *sound_mixer = NULL; static mrb_sym sym_sound_buffer; static mrb_value sound_suspend(mrb_state *mrb, mrb_value self) { ...
2.125
2
2024-11-18T22:14:10.630670+00:00
2016-12-16T13:47:15
9df2a50b6fdb8be7e61a01c43941f32c09918a0f
{ "blob_id": "9df2a50b6fdb8be7e61a01c43941f32c09918a0f", "branch_name": "refs/heads/master", "committer_date": "2016-12-16T13:47:15", "content_id": "5dd7e33e79b704b6ce2b60d55704ce7116b0cb71", "detected_licenses": [ "Apache-2.0" ], "directory_id": "283a62068a0c5f47cd297b8d7ac7cc34f4484aa7", "extensio...
stackv2
#include "../include/encode.h" #include <stdio.h> extern long inv_g711(); #define VARS_PER_LINE 16 #define BITS_ALAW 1 #define BITS_BR 2 #define BITS_SRI 16 long compress(long, long, long); int main(void) { long max_compress = 0; long compress_out = 0; int aLaw_br_sri = 0; int aLaw = 0; int br_2bit = 0; int ...
2.4375
2
2024-11-18T22:14:10.902642+00:00
2014-03-11T23:31:26
8820dedebab4700650b9350191248ec7ae6bf2be
{ "blob_id": "8820dedebab4700650b9350191248ec7ae6bf2be", "branch_name": "refs/heads/master", "committer_date": "2014-03-11T23:31:26", "content_id": "84657a9b4b00e973ad127cdb81185a79463a23fd", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "0f0d201699ac747003c1de8cf6b19b0bf3518fa4", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <string.h> #include <arpa/inet.h> #include "DataFrame.pb-c.h" uint8_t buf[BUFSIZ]; /* This is not a good idea to use normally. * No reason to bound it like this */ #define MAX_STRING (BUFSIZ/4) /* Make sure that the strings i...
3.015625
3
2024-11-18T22:14:11.129548+00:00
2015-12-13T03:38:22
5916bacf7ebf6f11bbd76342d267fe08fb6998db
{ "blob_id": "5916bacf7ebf6f11bbd76342d267fe08fb6998db", "branch_name": "refs/heads/indigo-devel", "committer_date": "2015-12-13T03:38:22", "content_id": "35cb6012c3247f998998f73ad341c9a5e7e2853e", "detected_licenses": [ "MIT" ], "directory_id": "075bbe73eff4f3573fb815f1233a5d2904bd06a0", "extension...
stackv2
/* high level I/O */ #include <stdio.h> #include <math.h> #include <unistd.h> #include <strings.h> /* high prec. timer */ #include <time.h> #include <unistd.h> #include <stdlib.h> #include <stdint.h> /* low level I/O */ #include <fcntl.h> #include <sys/time.h> #include <time.h> #include <sys/types.h> #include <sys/s...
2.09375
2
2024-11-18T22:14:11.337035+00:00
2021-10-06T14:08:08
fdd8e31bb20f4f53ef3c96cbe9472cdd377f4279
{ "blob_id": "fdd8e31bb20f4f53ef3c96cbe9472cdd377f4279", "branch_name": "refs/heads/master", "committer_date": "2021-10-06T14:08:08", "content_id": "44cf7da520b1f53ab38ef3ab37b6c7e062542931", "detected_licenses": [ "MIT" ], "directory_id": "58606c15052b37d27858ea6f707df8b2edf34a49", "extension": "c"...
stackv2
#include <stdio.h> #include <stc/cstr.h> // unordered_map<string, unordered_map<string, string>>: #define i_key_str #define i_val_str #include <stc/cmap.h> #define i_key_str #define i_val cmap_str #define i_valdel cmap_str_del #define i_tag cfg #include <stc/cmap.h> int main(void) { c_auto (cmap_cfg, cfg) ...
2.15625
2
2024-11-18T22:14:11.475320+00:00
2022-05-04T17:20:32
0a61cb1d95e8c0e3571a04d561f91db1d7abb0ac
{ "blob_id": "0a61cb1d95e8c0e3571a04d561f91db1d7abb0ac", "branch_name": "refs/heads/master", "committer_date": "2022-05-04T17:20:32", "content_id": "cb3dab0f6332bec088fa0b2b84e8464f25d42fce", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "0d5fb296196a744182980c181beb7794...
stackv2
/* Copyright 2019 Triad National Security, LLC. All rights reserved. This file is part of the MSTK project. Please see the license file at the root of this repository or at https://github.com/MeshToolkit/MSTK/blob/master/LICENSE */ #define _H_MRegion_Private #include <stdlib.h> #include "MRegion.h" #include "MRegio...
2.03125
2
2024-11-18T22:14:11.619879+00:00
2013-10-01T08:51:29
8442041a029fc0978b8d11ab44789f276f7a3bc6
{ "blob_id": "8442041a029fc0978b8d11ab44789f276f7a3bc6", "branch_name": "refs/heads/master", "committer_date": "2013-10-01T08:51:29", "content_id": "ec47917bc612e85d408a14bd99a0cc0afc927271", "detected_licenses": [ "MIT-enna" ], "directory_id": "596c31b047ca731e4908aaf9f056b6ec39623380", "extension"...
stackv2
/* We don't want to open javascript file with size over 2^32. */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <string.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <eina_hash.h> #ifdef HAVE_ZLI...
2.015625
2
2024-11-18T22:14:12.079209+00:00
2016-10-17T08:32:56
5d7f5176a0e6e903dea4d81d7dad10067e811de6
{ "blob_id": "5d7f5176a0e6e903dea4d81d7dad10067e811de6", "branch_name": "refs/heads/master", "committer_date": "2016-10-17T08:34:26", "content_id": "b604f0a08fbab7731c8436e65966a2b5f726e2c4", "detected_licenses": [ "MIT" ], "directory_id": "98076c3e8f2c757998f52afc27f7660e544f2a61", "extension": "c"...
stackv2
// Edit this file to include C routines that can be called as Forth words. // See "ccalls" below. // This is the only thing that we need from forth.h #define cell long // Prototypes void spi_send(cell len, cell adr); void spi_read(cell offset, cell len, cell adr); cell inflate(cell wpptr, cell nohdr, cell clear, cel...
2.28125
2
2024-11-18T22:14:12.179704+00:00
2020-11-23T09:28:28
03f8c3380f99bfb46c243b97fcfd92791d369ffb
{ "blob_id": "03f8c3380f99bfb46c243b97fcfd92791d369ffb", "branch_name": "refs/heads/main", "committer_date": "2020-11-23T09:28:28", "content_id": "9636aba9772c287a2800e9315b13d1c4851e1b0c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cf400b3652e87ca388263408a9c595131e0abe55", "extension"...
stackv2
/* * Copyright (c) 2020 Gavin Hurlbut * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <device.h> #include <devicetree.h> #include <drivers/gpio.h> #include <kernel.h> #include "app-gpios.h" #include "app-handlers.h" #include "app-devices.h" #include "app-utils.h" #define IOEXP_INST(x) i...
2.578125
3
2024-11-18T22:14:12.479152+00:00
2015-11-09T23:58:29
223ad92eff2ef30e7e2d044a63df038d39ac14f5
{ "blob_id": "223ad92eff2ef30e7e2d044a63df038d39ac14f5", "branch_name": "refs/heads/master", "committer_date": "2015-11-09T23:58:29", "content_id": "93130aeeda22c0521f962f203abdb90620300bdf", "detected_licenses": [ "MIT" ], "directory_id": "c4508f73e1ddaf2565e90c7a4b14996e1bc49faf", "extension": "c"...
stackv2
#include "functions.h" //Creating a Huffman Coding Tree from an input file treeNode *constructHuffmanTree(FILE *input, int version) { //Creating stack listNode stack; stack.next = NULL; stack.tree = (treeNode *)0; int token; int pos = EXCEPTION; int readChar = 0; while (TRUE) { //...
2.96875
3
2024-11-18T22:39:14.457943+00:00
2018-07-30T13:05:09
4d2a6d1a816c535103098bff1504af1c99f40a16
{ "blob_id": "4d2a6d1a816c535103098bff1504af1c99f40a16", "branch_name": "refs/heads/master", "committer_date": "2018-07-30T13:05:09", "content_id": "f078b63f7cf6b43e44b71ddfb94c3af4858b091c", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "14ebae3bb1fb06bb995d92ee650e595a2205fb7b", "extens...
stackv2
/* * Copyright 2012 <James.Bottomley@HansenPartnership.com> * Copyright 2013 Red Hat Inc. <pjones@redhat.com> * * see COPYING file */ #include <Uefi.h> #include <Library/UefiLib.h> #include <Library/UefiBootServicesTableLib.h> #include <Library/BaseLib.h> #include <Library/BaseMemoryLib.h> #include <Library/Memory...
2.375
2
2024-11-18T22:39:14.589645+00:00
2019-06-09T07:18:46
7f39ae64fb8250eeea54fd741649f57ee5623073
{ "blob_id": "7f39ae64fb8250eeea54fd741649f57ee5623073", "branch_name": "refs/heads/master", "committer_date": "2019-06-09T07:28:53", "content_id": "a6b5866bac1b16652d927dbd758527069032c4c9", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "bd93128a468ba23fa96e4f446dfe25271ae31900", "extens...
stackv2
#include "spinlock.h" void lock_spinlock(atomic_t *lock, atomic_int_t value, uint_t spin) { uint_t i, n; for ( ;; ) { if (*lock == 0 && __sync_bool_compare_and_swap(lock, 0, value)) { return; } if (TOTAL_CPU > 1) { for (n = 1; n < spin; n <<= 1) { ...
2.453125
2
2024-11-18T22:39:15.899458+00:00
2019-04-15T18:37:25
fa0447c7a494b6af6ed60a924665be7ccc68c404
{ "blob_id": "fa0447c7a494b6af6ed60a924665be7ccc68c404", "branch_name": "refs/heads/master", "committer_date": "2019-04-15T18:37:25", "content_id": "295997431caca6f8ebc05a5add6625f34711272a", "detected_licenses": [ "BSD-3-Clause-Open-MPI" ], "directory_id": "c71b7e39dc0f96fe4298fce098a28077f5a20f65", ...
stackv2
/* * Copyright (c) 2010-2018 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * * @precisions normal z -> s d c * */ #include <core_blas.h> #include "dplasma.h" /** ***************************************...
2.140625
2
2024-11-18T22:39:16.220548+00:00
2019-06-16T17:38:12
4366c19b7b76ebb9cf13e914d5babdc9f8c81aef
{ "blob_id": "4366c19b7b76ebb9cf13e914d5babdc9f8c81aef", "branch_name": "refs/heads/master", "committer_date": "2019-06-16T17:38:12", "content_id": "bd9a9d97e039740711b6b16b08d725c1e0ed46af", "detected_licenses": [ "MIT" ], "directory_id": "cb826156a8b0086bfb0f60da29aa365012bf8431", "extension": "c"...
stackv2
#include "xlsxioread_sheet_next_row.h" #include <assert.h> #include <xlsxio_read.h> #include "jsxlsxio_pointers.h" static napi_value xlsxioread_sheet_next_row_wrapper(napi_env env, napi_callback_info info) { napi_value argv[1]; size_t argc = 1; xlsxioreadershee...
2.015625
2
2024-11-18T22:39:16.330358+00:00
2014-07-13T01:30:26
44c1aa382710db01f5064c641d00c14eff09c895
{ "blob_id": "44c1aa382710db01f5064c641d00c14eff09c895", "branch_name": "refs/heads/master", "committer_date": "2014-07-13T01:30:26", "content_id": "b9c5dae0bd2955078b262bebc66e5810707dbac2", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8275ad305a254e67c0cc953121cd45867e581bd6", "extens...
stackv2
/* * Values. * * Peter Gammie, peteg42@gmail.com * Commenced August 2008. * * Re-use some types from parser.h to ease some C pain. */ #ifndef _VALUES_H_ #define _VALUES_H_ #include "environment.h" #include "parser.h" typedef struct value value_t; /* * A value is anything a variable could be bound to. * * ...
2.640625
3
2024-11-18T22:39:17.469530+00:00
2021-03-12T07:19:09
5e5c387d541cb9176949f4d70bb7155e04ea7184
{ "blob_id": "5e5c387d541cb9176949f4d70bb7155e04ea7184", "branch_name": "refs/heads/main", "committer_date": "2021-03-12T07:19:09", "content_id": "24d86738bc0451fc9f866b2b6f4a4e1c41516154", "detected_licenses": [ "MIT" ], "directory_id": "6fcbbe10324f87da251622caf18e0681b90c83f0", "extension": "c", ...
stackv2
#include <stdlib.h> #include <check.h> #include <main.h> #define UNIT_MATRIX_FILENAME "unit_fread_matrix.txt" struct Matrix *fread_coord_matrix(FILE *fd, enum MatrixMemoryType type); struct Matrix *fread_plain_matrix(FILE *fd, enum MatrixMemoryType type); void fwrite_coord_matrix(FILE *fd, struct Matrix *m); void ...
2.34375
2
2024-11-18T22:39:17.561603+00:00
2016-01-12T07:07:50
3a467bcea6b3ba82585b57ad7e8f8a8899769c4b
{ "blob_id": "3a467bcea6b3ba82585b57ad7e8f8a8899769c4b", "branch_name": "refs/heads/master", "committer_date": "2016-01-12T07:07:50", "content_id": "ec6956499349152b4cd438b6afec18f89e23128d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "735b31a3da616a7ac02cf516c49b2e0d0a2e60eb", "extensio...
stackv2
// // PQueue.h // Test // // Created by Huiyong on 15/11/28. // Copyright © 2015年 Huiyong. All rights reserved. // #ifndef PQueue_h #define PQueue_h typedef struct { void **buf; int n, alloc; int (*cmp)(const void *d1, const void *d2); } PQueue; #define priq_purge(q) (q)->n = 1 #define priq_size(q) ...
2.171875
2
2024-11-18T22:39:17.665088+00:00
2020-01-10T21:51:00
1b1c444613e3df9eae926aa27378c23120c99bcd
{ "blob_id": "1b1c444613e3df9eae926aa27378c23120c99bcd", "branch_name": "refs/heads/master", "committer_date": "2020-01-10T21:51:00", "content_id": "5a49693ef25df849e464f5e92d4cc61b4bd06368", "detected_licenses": [ "Apache-2.0" ], "directory_id": "828657f92925b412b415ce01da707ef8d24b14ed", "extensio...
stackv2
/*- * SPDX-License-Identifier: Apache License 2.0 * * Copyright 2017-2018 Yutaro Hayakawa * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
2.203125
2
2024-11-18T22:39:18.342551+00:00
2017-12-24T10:59:47
16d154e4cde844d46fe30df9d1a98e7826d97f77
{ "blob_id": "16d154e4cde844d46fe30df9d1a98e7826d97f77", "branch_name": "refs/heads/master", "committer_date": "2017-12-24T10:59:47", "content_id": "edf61fb6686453c5e1fc25c75edfd275f96c6076", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3019329b0a47cd312cf615f35e2c3f914c610afd", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "cfgtool.c" #define filename "cfg.ini" void menu(){ printf("===========================\n"); printf("1 写入配置文件\n"); printf("2 读取配置文件\n"); printf("0 退出程序"); printf("===========================\n"); } int tWrite(){ char key[1024] = {0}, value[1024...
2.828125
3
2024-11-18T22:39:18.827792+00:00
2017-01-27T18:05:00
fd9355bcb8cd061e3663a0f9d09f47c4e02e03e4
{ "blob_id": "fd9355bcb8cd061e3663a0f9d09f47c4e02e03e4", "branch_name": "refs/heads/master", "committer_date": "2017-01-27T18:05:00", "content_id": "dee82b693449de004dacb640d7efc17fbcedba44", "detected_licenses": [ "MIT" ], "directory_id": "98a86ec3182e9eef7e21db734118f15f2514cd5c", "extension": "c"...
stackv2
/* Basic messing around with input and stuff. */ #include <stdio.h> main( int argc, char **argv ) { char a[64]; char *g; int i; printf( "Type something to test gets()\n" ); g = gets( a ); /* Turns out that gets() returns a pointer to the string Can't imagine why... */ printf( "You typed: %s...
3.328125
3
2024-11-18T22:39:18.934227+00:00
2021-08-03T03:23:10
260528404953beca1c802ea715d3280a205fbdc8
{ "blob_id": "260528404953beca1c802ea715d3280a205fbdc8", "branch_name": "refs/heads/main", "committer_date": "2021-08-03T03:29:02", "content_id": "b143d0132d562fdff6e412a11aa7aacaa056ad9b", "detected_licenses": [ "MIT" ], "directory_id": "2b415fc496c0c6f0d506d38fa433b20a293aa424", "extension": "c", ...
stackv2
#include <stddef.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <swis.h> #include "debug.h" #include "socket.h" int socket_open_client (const char *host, int port) { struct hostent *h; if ((h = gethostbyname (host)) == NULL) return -1...
2.59375
3
2024-11-18T22:39:19.022887+00:00
2018-04-09T12:07:26
158bb0ba642b011ab3887db18eae3df3047a8939
{ "blob_id": "158bb0ba642b011ab3887db18eae3df3047a8939", "branch_name": "refs/heads/master", "committer_date": "2018-04-09T12:07:26", "content_id": "7698041e45e1dade88ca141897a71a2d32116a51", "detected_licenses": [ "MIT" ], "directory_id": "e567ca97e63329e553601b164f331b4d5b706a6f", "extension": "c"...
stackv2
#include "SimpleAudio.h" ALuint saCreateAudioSource() { ALuint source; alGenSources(1,&source); alSource3f(source,AL_POSITION,0,0,0); alSource3f(source,AL_VELOCITY,0,0,0); alSource3f(source,AL_DIRECTION,0,0,0); alSourcef(source,AL_ROLLOFF_FACTOR,0); alSourcei(source,AL_SOURCE_RELATIVE,AL_TRUE); alSo...
2.34375
2
2024-11-18T22:39:19.290418+00:00
2020-04-11T21:50:12
ceb70d0086c42469536cd0c98aa639f2b2ecd7ae
{ "blob_id": "ceb70d0086c42469536cd0c98aa639f2b2ecd7ae", "branch_name": "refs/heads/master", "committer_date": "2020-04-11T21:50:12", "content_id": "488f45460a8848c7ef49180741a5930dd7a32767", "detected_licenses": [ "MIT" ], "directory_id": "5b133b3c5435a05d6dba278f82aa0fbd31023bd2", "extension": "c"...
stackv2
#include "problem2_62.h" #include <stdio.h> int shifts_are_arithmetic() { int bits_of_int = sizeof(int) * 8; int shift_val = bits_of_int - 1; int msbit_set = (~0) << shift_val; int value = msbit_set >> (bits_of_int - 1); const int mask = (~0u) << 1; return (value & mask) != 0; }
2.75
3
2024-11-18T22:39:19.396956+00:00
2021-02-16T12:50:32
e8558e4fd3db23f98483fe8b7d932817abe5ef80
{ "blob_id": "e8558e4fd3db23f98483fe8b7d932817abe5ef80", "branch_name": "refs/heads/master", "committer_date": "2021-02-16T12:50:32", "content_id": "79ad31f7d9686e1d068bf8e2345b1265d50664bf", "detected_licenses": [ "MIT" ], "directory_id": "cdbfd49aaf37223119f7b58a8197207b026bf108", "extension": "c"...
stackv2
#include "alu.h" int_t alu_fpn_set_raw( alu_t *alu, alu_fpn_t num, long double val ) { alur_t NUM; alur_init_floating( alu, NUM, num ); return alur_set_raw( alu, NUM, &val, bitsof(long double), ALU_INFO_FLOAT ); } int_t alu_fpn_get_raw( alu_t *alu, alu_fpn_t num, long double *val ) { alur_t NUM; alur_init_...
2.046875
2
2024-11-18T22:39:20.261013+00:00
2014-04-09T09:03:37
4af00edad31c2fe3c0682821fe0340fc596763ea
{ "blob_id": "4af00edad31c2fe3c0682821fe0340fc596763ea", "branch_name": "refs/heads/master", "committer_date": "2014-04-09T09:03:37", "content_id": "c858d326f10ca5cfeb1e5e0e54a4e9daabcf5785", "detected_licenses": [ "MIT" ], "directory_id": "821229d3b3362996492a74402beee98d5a5e9647", "extension": "c"...
stackv2
/* The MIT License (MIT) Copyright (c) [year] [fullname] 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,...
2.640625
3
2024-11-18T22:39:20.572015+00:00
2023-08-18T12:54:06
8108875ab3d52fbf20eb96311cad6673542a4c7e
{ "blob_id": "8108875ab3d52fbf20eb96311cad6673542a4c7e", "branch_name": "refs/heads/master", "committer_date": "2023-08-18T12:54:06", "content_id": "c90609f1da3d45beb23148c7628f3d2fa4a3ad11", "detected_licenses": [ "MIT" ], "directory_id": "22446075c2e71ef96b4a4777fe966714ac96b405", "extension": "c"...
stackv2
/*! * \file * \brief AmFm Click example * * # Description * This app simulate RADIO RECEIVER. * * The demo application is composed of two sections : * * ## Application Init * Initializes device. * * ## Application Task * Several additional functions are executed and printed over the terminal. * *...
2.5
2
2024-11-18T22:39:20.752592+00:00
2023-08-31T05:50:29
7634f96531eab6d9ed0af521db418e260b4335c8
{ "blob_id": "7634f96531eab6d9ed0af521db418e260b4335c8", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T05:50:29", "content_id": "181c6cc2ade0607c8c31beeb8d07a104d2ee3da6", "detected_licenses": [ "MIT" ], "directory_id": "79d343002bb63a44f8ab0dbac0c9f4ec54078c3a", "extension": "h"...
stackv2
// initializer list expression typedef struct Color { unsigned char r; unsigned char g; unsigned char b; unsigned char a; } Color; #define CLITERAL(type) (type) #define LIGHTGRAY CLITERAL(Color){ 200, 200, 200, 255 } // Light Gray #define MY_SIZEOF(x) ((int)sizeof(x)) #define MY_SIZEOF2(x) ((in...
2.4375
2
2024-11-18T22:39:21.145240+00:00
2023-08-31T16:20:55
6a66ee93852c897f0406fa6bab65feccbaae0122
{ "blob_id": "6a66ee93852c897f0406fa6bab65feccbaae0122", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T16:20:55", "content_id": "c9a25c76dc0373190027f17a1695a71724f2ba62", "detected_licenses": [ "Apache-2.0" ], "directory_id": "99bdb3251fecee538e0630f15f6574054dfc1468", "extensio...
stackv2
/* * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2012-09-20 Bernard Change the name to components.c * And all components related header files. * 2012-12-23 Bernard ...
2.109375
2
2024-11-18T22:39:21.592380+00:00
2021-04-01T18:47:53
09f9b4f43d4a834895a2b99db59d779d6fb4383a
{ "blob_id": "09f9b4f43d4a834895a2b99db59d779d6fb4383a", "branch_name": "refs/heads/master", "committer_date": "2021-04-01T18:47:53", "content_id": "4235e93ad4316f8a2107b2bdedb7027eade811d1", "detected_licenses": [ "MIT" ], "directory_id": "631331215a8e887d1fffbcc657cc0db28351f6da", "extension": "c"...
stackv2
/** * @file sys_time_emu.c * @author marcin.swistun@gmail.com * @version V1.0.0 * @date 20/09/2020 * @brief System timer emulation. Returns ticks, typically 1 tick == 1ms. */ #include "sys_time.h" #include <time.h> uint64_t systime_get(void) { struct timespec t; clock_gettime(CLOCK_REALTIME, &t); ret...
2.484375
2
2024-11-18T22:39:22.832823+00:00
2020-07-31T09:33:51
1c32cb35c5b44f9f53a1de9b0793b9d21cba1704
{ "blob_id": "1c32cb35c5b44f9f53a1de9b0793b9d21cba1704", "branch_name": "refs/heads/master", "committer_date": "2020-07-31T09:35:21", "content_id": "7c718dc8ffeb36509799186ef734a4617eafe46a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "721865028a98963e8ed2708a5e80436a5c1a0e1a", "extensio...
stackv2
/* * Copyright (c) 2020 Bitdefender * SPDX-License-Identifier: Apache-2.0 */ #include "napoca.h" #include "debug/debug_store.h" #include "common/kernel/vmxdefs.h" #include "memory/heap.h" #include "kernel/pcpu.h" static CX_BOOL IsComponentInited = CX_FALSE; #define BTS_MAX_RECORDS_COUNT 1024 #define BTS_MAX_RE...
2.296875
2
2024-11-18T22:39:23.407604+00:00
2023-07-07T18:18:01
3db391053617cc9a8010e7b10c9a6a513d6c8682
{ "blob_id": "3db391053617cc9a8010e7b10c9a6a513d6c8682", "branch_name": "refs/heads/master", "committer_date": "2023-07-07T18:20:16", "content_id": "2271795d4a95e9e7fcc027c32d62ddd5cc970f72", "detected_licenses": [ "Zlib" ], "directory_id": "9c4ec01e04f7b0a1d213e1060c6b0a008dde7cbd", "extension": "c...
stackv2
/***************************************************************************//** * @file main.c * @brief This project demonstrates a simple analog comparison of push button 0 * to the 1.25V internal VREF; if the button is pushed, it sets LED0 on. *********************************************************************...
2.15625
2
2024-11-18T22:39:23.681702+00:00
2019-04-02T02:05:30
49b4c11973f76e69672cf3120f71ab363445d60e
{ "blob_id": "49b4c11973f76e69672cf3120f71ab363445d60e", "branch_name": "refs/heads/master", "committer_date": "2019-04-02T02:05:30", "content_id": "bc4aa8535f283d46935441d65bb0dba5466a01d2", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "adaa96cfb29fdfd50140696a987068832525646e", "extens...
stackv2
/* hello1.h RHS 12/14/88 * * OS/2 and 1988 version of K&R's hello.c * demonstrates multiple threads */ /* Defines and Typedefs *********************************/ #if !defined(TRUE) #define TRUE 1 #endif #if !defined(FALSE) #define FALSE 0 #endif #define LINES25 4 /* height in lines of frames*/ #de...
2.359375
2
2024-11-18T22:39:23.761961+00:00
2021-11-24T03:31:33
2dbb93823a25ceeba9410711c07fa79fc55c8634
{ "blob_id": "2dbb93823a25ceeba9410711c07fa79fc55c8634", "branch_name": "refs/heads/main", "committer_date": "2021-11-24T03:31:33", "content_id": "4bce9aa2d6401419b17059f901385beddcf36881", "detected_licenses": [ "MIT" ], "directory_id": "553ab888ca621ee90e42caeb6821046a7db9bfaa", "extension": "h", ...
stackv2
// Comment out the next #defines if you are not using an SD Card to store the JPEGs // Commenting out the line is NOT essential but will save some FLASH space if // SD Card access is not needed. Note: use of SdFat is currently untested! #define LOAD_SD_LIBRARY // Default SD Card library //#define LOAD_SDFAT_LIBRARY //...
2.15625
2
2024-11-18T22:39:24.134654+00:00
2016-10-25T15:41:38
cca5b035090b6310612e62532c60bcbbc344c90b
{ "blob_id": "cca5b035090b6310612e62532c60bcbbc344c90b", "branch_name": "refs/heads/master", "committer_date": "2016-10-25T15:41:38", "content_id": "f1bf7836593d4a6fb13531ebfd5d14c90376b891", "detected_licenses": [ "MIT" ], "directory_id": "1184eab54804e15236274035128dfea0f123a558", "extension": "c"...
stackv2
/* Lab 6.3 Write a program that will allow the user to enter 4 numbers into this array and then display these on the screen in the same order they were entered. Your program must then swap the 1st and 2nd numbers in the array and swap the 3rd and 4th numbers in the array. Now your program must display the numbers on th...
3.4375
3
2024-11-18T22:39:24.704075+00:00
2018-07-23T19:09:41
924b3383c156d7b56a186645c7f980ce0a7558bd
{ "blob_id": "924b3383c156d7b56a186645c7f980ce0a7558bd", "branch_name": "refs/heads/master", "committer_date": "2018-07-23T20:52:03", "content_id": "c6c39353986abc92cb9bc19290696e032c1356df", "detected_licenses": [ "Unlicense" ], "directory_id": "e6054c62bc8cafb60c03a8f19fef4e8b93d9518a", "extension...
stackv2
#include <sniffer.h> bool is_cli = false; static int count_tokens(char *str) { int count = 0; if (str == NULL) return (0); for (int i = 0; str[i] != '\0'; i++) { if (!isspace(str[i]) && isspace(str[i + 1])) count++; } return (count); } static char **strtoarr(char *str...
2.5625
3
2024-11-18T22:39:26.149048+00:00
2015-08-26T09:48:18
63722733c82dedb0324500c329470b38f1635300
{ "blob_id": "63722733c82dedb0324500c329470b38f1635300", "branch_name": "refs/heads/master", "committer_date": "2015-08-26T09:48:18", "content_id": "bd70566f8dd7458bec650aad7923f1c36388321f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "76382e22455dc10da2c85068d93bcb139a062f26", "extensio...
stackv2
#include "net/base64.h" #include <string.h> #include "net/stdbool.h" #include <ctype.h> const base64_t std_base64 = { "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", "AAAAAAAAAAAAAAAA" "AAAAAAAAAAAAAAAA" "AAAAAAAAAAA>AAA?" "456789:;<=AAA@AA" "A\x00\x01\x02\x03\x04\x05\x06\x...
2.359375
2
2024-11-18T22:39:26.736847+00:00
2021-05-20T03:43:49
c1a1976d095816bef6660182464b29f9ca66371d
{ "blob_id": "c1a1976d095816bef6660182464b29f9ca66371d", "branch_name": "refs/heads/master", "committer_date": "2021-05-20T04:13:14", "content_id": "65e69fbec8824f0f69a3ea2accb89059b6a7e178", "detected_licenses": [ "Apache-2.0", "BSD-2-Clause", "OpenSSL", "MIT", "BSD-3-Clause" ], "dire...
stackv2
/* * Copyright 2020 Intel Corporation * SPDX-License-Identifier: Apache 2.0 */ /*! * \file * \brief bignum format conversion utilities. */ #include "BN_support.h" #include "sdoCryptoHal.h" #include <stdlib.h> #include "safe_lib.h" #include "util.h" /** * Convert a SDOBits object to a bignum_t */ int byte_arr...
2.6875
3
2024-11-18T22:39:26.940575+00:00
2017-06-05T16:02:48
70084f06bc50c97f970c6048b7a51c6d91c27e39
{ "blob_id": "70084f06bc50c97f970c6048b7a51c6d91c27e39", "branch_name": "refs/heads/RIFT.ware-4.4.1", "committer_date": "2017-06-05T16:02:48", "content_id": "d3c94a20027861a12a09c8ec6b87c258c3562e19", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3eae9c14c119ee2d6a7d02ef1ba5d61420959e3c", ...
stackv2
/* STANDARD_RIFT_IO_COPYRIGHT */ /** * @file rwdts_shard.c * @date Wed Aug 19 2015 * @brief DTS sharding related APIs */ #include <stdlib.h> #include <rwtypes.h> #include <rwdts_int.h> #include <rw_dts_int.pb-c.h> #include <rwdts_keyspec.h> #include <rwdts.h> #include <protobuf-c/rift-protobuf-c.h> #include <rwlib...
2.046875
2
2024-11-18T22:39:27.086645+00:00
2021-05-07T15:59:26
238f218672e00f71253ee21b7d71f5b5b3371307
{ "blob_id": "238f218672e00f71253ee21b7d71f5b5b3371307", "branch_name": "refs/heads/main", "committer_date": "2021-05-07T15:59:26", "content_id": "b424d14058dbfde801848cc007a5cd82a904e321", "detected_licenses": [ "MIT" ], "directory_id": "b51a4b923458cb2f32e92f78371267e6afedf216", "extension": "c", ...
stackv2
#include "param.h" #include "types.h" #include "stat.h" #include "user.h" #include "fs.h" #include "fcntl.h" #include "syscall.h" #include "traps.h" #include "memlayout.h" #include "mmu.h" #include "mman.h" int memcmp(char* start, uint size, char val) { for (uint i = 0; i < size; i++) { if (start[i] != val...
2.53125
3
2024-11-18T22:39:27.638878+00:00
2021-02-01T09:16:20
071458dd275b2f2a1a392a0e90350ebf612c7181
{ "blob_id": "071458dd275b2f2a1a392a0e90350ebf612c7181", "branch_name": "refs/heads/main", "committer_date": "2021-02-01T09:16:20", "content_id": "efd7b44cbfdde3a81bdd6b26a89b2e698f2abfa4", "detected_licenses": [ "MIT" ], "directory_id": "8bc070d101ffa59318308dd88917a847e199d21b", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> void encrypt(char* src, char* dst) { int i = 0; while(src[i] != '\0') { dst[i] = (src[i] ^ 1337); i++; } } void func() { int len; char encrypted_buf[128]; char *buf = (char *)calloc(1024, sizeof(char)); puts("[+] STRING ENCRYPTOR [+]"); printf("Enter ...
3.125
3
2024-11-18T22:39:27.749492+00:00
2016-03-20T15:45:30
2c1cadbc61440a7ad311984247adb63df75b7e23
{ "blob_id": "2c1cadbc61440a7ad311984247adb63df75b7e23", "branch_name": "refs/heads/master", "committer_date": "2016-03-20T15:50:58", "content_id": "167d00b65333811e67529ade5d2e77ddde10334f", "detected_licenses": [ "MIT" ], "directory_id": "9a118fed2c50a604a50a26480379bf07f4948c1e", "extension": "c"...
stackv2
// // Created by sokkalf on 3/6/16. // #include "oled-control.h" #include <ruby.h> static VALUE set_cursor(VALUE self, VALUE col, VALUE row) { uint8_t c = NUM2UINT(col); uint8_t r = NUM2UINT(row); if(!set_cursor_position(c, r)) rb_raise(rb_eRuntimeError, "unable to set cursor position"); re...
2.234375
2
2024-11-18T22:39:28.608864+00:00
2016-04-05T08:13:52
879553bdbb64269cd86812e903a0a7654ea8ded6
{ "blob_id": "879553bdbb64269cd86812e903a0a7654ea8ded6", "branch_name": "refs/heads/master", "committer_date": "2016-04-05T08:13:52", "content_id": "60a17e585b5d4e0a33c76bab900d22ff7b159d57", "detected_licenses": [ "Unlicense" ], "directory_id": "3c7e247dacb01aa0dd8f1efb186b1e7dcccc5d0a", "extension...
stackv2
#include "ipcTools.h" /******************************************************************MALLOC*/ void* shmalloc(key_t key, int size){ void* res; int owner = 0; /*Si je suis le créateur de l'espace mémoire*/ /*Si une zone existe déjà*/ int shmid = shmget(key, 1, 0600); if(shmid == -1){ owner = 1; /*J'en suis le...
2.65625
3
2024-11-18T22:39:28.688207+00:00
2023-08-30T23:07:48
9a0beec638a12b741fa1e64ea0decf81dbd6421b
{ "blob_id": "9a0beec638a12b741fa1e64ea0decf81dbd6421b", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T23:07:48", "content_id": "3307d5c8447afa63f6b5aed63989132c6fa0f826", "detected_licenses": [ "PostgreSQL" ], "directory_id": "8a51a96f61699f0318315ccc89cef39f6866f2b5", "extensio...
stackv2
/*------------------------------------------------------------------------- * * pg_amproc.h * definition of the "access method procedure" system catalog (pg_amproc) * * The amproc table identifies support procedures associated with index * operator families and classes. These procedures can't be listed in pg_a...
2
2
2024-11-18T22:39:28.921360+00:00
2021-05-11T09:40:47
8082ff81b98e2d04a26b3534bb0275c45db93f45
{ "blob_id": "8082ff81b98e2d04a26b3534bb0275c45db93f45", "branch_name": "refs/heads/master", "committer_date": "2021-05-11T09:40:47", "content_id": "90c4f1844b162dcfff2043d1155d9c44cdb81c2e", "detected_licenses": [ "MIT" ], "directory_id": "362b054bde0203ae5eee7f2f878c5677ce5fa962", "extension": "h"...
stackv2
#pragma once #include <stdint.h> #include "Defines.h" void InitGame(void); void TickGame(void); char GetMap(uint8_t x, uint8_t y); // Implemented by platform uint8_t GetInput(void); void PutPixel(uint8_t x, uint8_t y, uint8_t colour); void DrawBitmap(int16_t x, int16_t y, const uint8_t *bitmap); void DrawSolidBitmap...
2.03125
2
2024-11-18T22:39:29.818788+00:00
2023-07-14T10:13:16
9ba1e44ea0262552ec52849986dc5727de15b280
{ "blob_id": "9ba1e44ea0262552ec52849986dc5727de15b280", "branch_name": "refs/heads/master", "committer_date": "2023-07-14T10:13:16", "content_id": "037927131f10bd784b8ea72cc2398acae8814aee", "detected_licenses": [ "Zlib", "Apache-2.0" ], "directory_id": "35ddd0f3036ac38423ded0435cd4b595f5dab31c",...
stackv2
#include <stdio.h> #include "bm.h" #include "Extern.h" Execute(DescVec, NPats, TextFile, Buffer) struct PattDesc *DescVec[]; /* pointers to status vectors for the different * patterns, including skip tables, position in buffer, etc. */ int NPats; /* number of patterns */ char Buffer[]; /* holds text from file */ int T...
2.5625
3
2024-11-18T22:39:30.265201+00:00
2018-04-17T02:07:29
3d427cc27bbdc40ce8f5d2446fa9cafec2558369
{ "blob_id": "3d427cc27bbdc40ce8f5d2446fa9cafec2558369", "branch_name": "refs/heads/master", "committer_date": "2018-04-17T02:07:29", "content_id": "664dd92bdf49d34e1ef585e7dcd4f27e842ba162", "detected_licenses": [ "MIT" ], "directory_id": "a00e10d3a0f1143910b338ec0952ead97b7e05bb", "extension": "c"...
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.21875
2
2024-11-18T22:39:33.473398+00:00
2015-09-30T18:12:49
c59bf1c0a90785493e3cd2d7f4ff10666e06c704
{ "blob_id": "c59bf1c0a90785493e3cd2d7f4ff10666e06c704", "branch_name": "refs/heads/master", "committer_date": "2015-09-30T18:12:49", "content_id": "70607646bfe43c96e63f5977ce11a8a36749d1d3", "detected_licenses": [ "Unlicense" ], "directory_id": "1d201504615b58da4b39e660a9afdaa547e7c2dd", "extension...
stackv2
#include <stdio.h> #include <stdlib.h> //mecesar pt exit #include <string.h> //necesar pt strlen #include <math.h> //necesar pt fabs #define CENT_PER_INCH 2.54 int main () { union measure { float centimeters; int inch; } you, paul; //! centimeters sau inch sunt defapt ac...
3.234375
3
2024-11-18T22:39:33.709985+00:00
2015-07-29T13:21:14
f2b88e825ce43388e6d7466dbec22dcbd9c8b5a3
{ "blob_id": "f2b88e825ce43388e6d7466dbec22dcbd9c8b5a3", "branch_name": "refs/heads/master", "committer_date": "2015-07-29T13:21:14", "content_id": "c8cfdf9ff54fc19a3e280ded413374cde0e183da", "detected_licenses": [ "MIT" ], "directory_id": "a42fd9d8f80d8cc0dddfe7780ea987300452dd3f", "extension": "c"...
stackv2
/* *算法名称:折半插入排序(引入二分搜索的插入排序) *基本思想: 通过构建有序序列,对于未排序数据,在已排序序列中从利用二分搜索,找到相应位置并插入。 相比传统的插入排序减少了比较次数。 *时间复杂度:O(n2) *空间复杂度:O(1) */ #include<stdio.h> #include<math.h> void insertionSort(int[], int, int); int binarySearch(int[], int, int, int); main(){ int arr[] = {1, 2, 55, 4, 37, 3, 44, 21, 33, 304 ,45, 16...
3.984375
4
2024-11-18T22:39:33.847326+00:00
2017-02-04T04:29:49
47410935bf66d80cfa8fef3b45ed410255cd50c4
{ "blob_id": "47410935bf66d80cfa8fef3b45ed410255cd50c4", "branch_name": "refs/heads/master", "committer_date": "2017-02-04T04:29:49", "content_id": "c8ffade7d48478e6590c36cb2d6078274d227436", "detected_licenses": [ "MIT" ], "directory_id": "09115b2fd6e67d95b9a58bfa95d3e17ec721a033", "extension": "h"...
stackv2
#ifndef TTYD_UTIL_H #define TTYD_UTIL_H // malloc with NULL check void * t_malloc(size_t size); // free with NULL check void t_free(void *p); // realloc with NULL check void * t_realloc(void *p, size_t size); // Convert a string to upper case char * uppercase(char *str); // Get human readable signal string int get...
2.03125
2
2024-11-18T22:39:34.127384+00:00
2019-10-17T15:55:08
9d1affa3753c27939d1bcbdefb6ba48da5dee916
{ "blob_id": "9d1affa3753c27939d1bcbdefb6ba48da5dee916", "branch_name": "refs/heads/master", "committer_date": "2019-10-17T15:55:08", "content_id": "a95b24846c818ed297d51cb3333f373cbfb7f4be", "detected_licenses": [ "MIT" ], "directory_id": "9cf8571a4d546e550b942b022a8728e1cacba2b6", "extension": "c"...
stackv2
#include <func.h> int main(int argc,char* argv[]) { if(!fork()) { printf("I am child %d\n",getpid()); char *p=NULL; *p=10; return 1; }else{ int status; pid_t pid; pid=wait(&status); printf("I am parent child pid=%d\n",pid); if(WIFEXITE...
2.265625
2
2024-11-18T22:39:35.191675+00:00
2020-06-09T21:15:37
3ad3c83fdc338f22960c4ddd4a57eafdcfb8aefd
{ "blob_id": "3ad3c83fdc338f22960c4ddd4a57eafdcfb8aefd", "branch_name": "refs/heads/master", "committer_date": "2020-06-09T21:15:37", "content_id": "72cd442a9fbd45d914348c34ee7f7bb39e464499", "detected_licenses": [ "MIT" ], "directory_id": "ca75f7099b93d8083d5b2e9c6db2e8821e63f83b", "extension": "c"...
stackv2
#include <stdint.h> #include <stdlib.h> #include <assert.h> #include <stdio.h> #include "gamma.h" #include <stdbool.h> #include <string.h> int main() { /* scenario: test_random_actions uuid: 683503180 */ /* random actions, total chaos */ gamma_t* board = gamma_new(10, 7, 7, 18); assert( board != NULL ); assert( ga...
2.34375
2
2024-11-18T22:39:35.564627+00:00
2020-03-14T09:30:16
afab2f60ca3af5cb60d2ab893085dd8251d1b008
{ "blob_id": "afab2f60ca3af5cb60d2ab893085dd8251d1b008", "branch_name": "refs/heads/master", "committer_date": "2020-03-14T09:30:16", "content_id": "1ecde77d8abfc0e5e09fb890b5419cc4598e4e21", "detected_licenses": [ "MIT" ], "directory_id": "4c82b83dcf3db34c1fe251fa280463dd2c769966", "extension": "h"...
stackv2
#ifndef __HLIB_PARSER_TYPING_LEFTRIGHT #define __HLIB_PARSER_TYPING_LEFTRIGHT #include "../../utils/pretty/terminal.h" #include "../../utils/structs/bool.h" #include "_buffer.h" #include "_enum.h" PARSER_PIPELINE_STATUS ParserTypingLeftRight( struct ParserTypingBuffer *prefix, struct ParserTypingBuffer *suffi...
2.375
2
2024-11-18T22:39:36.050673+00:00
2019-04-20T04:19:35
315fa7fddf3f85501d61dc6d34fec93066e90fd1
{ "blob_id": "315fa7fddf3f85501d61dc6d34fec93066e90fd1", "branch_name": "refs/heads/master", "committer_date": "2019-04-20T04:19:35", "content_id": "67c861f0a414f5acaa3e68f92f9e979616daf343", "detected_licenses": [ "MIT" ], "directory_id": "4792897c33df0d1f429f0f1739a6bc56db9367cd", "extension": "c"...
stackv2
/* * app_utils.c * * Created on: Oct 7, 2018 * Author: tombo */ #include "app_utils.h" #include <string.h> #include "esp_system.h" #include "esp_log.h" #include "esp_ota_ops.h" #include "esp_flash_partitions.h" #include "esp_partition.h" #include "nvs.h" #include "nvs_flash.h" #include "freertos/FreeRTOS...
2.265625
2
2024-11-18T22:39:37.342220+00:00
2020-07-24T04:19:43
c95a67297a93564455b2533efd9ee8c803c46c82
{ "blob_id": "c95a67297a93564455b2533efd9ee8c803c46c82", "branch_name": "refs/heads/master", "committer_date": "2020-07-24T04:19:43", "content_id": "e54d09238cefb3f3a9c0fc46b9f4f7eb4441f6a0", "detected_licenses": [ "MIT" ], "directory_id": "37619fd2f0b180b3b39dbbc1a826dbd4c11d1d4a", "extension": "c"...
stackv2
#include "search_algos.h" /** * print_array - prints the input array * @array: the input array * @min: the minimum index number to print * @max: the maximum index number to print */ void print_array(int *array, size_t min, size_t max) { printf("Searching in array: "); while (min <= max) { printf("%d", array[m...
3.53125
4
2024-11-18T22:39:37.553226+00:00
2021-07-27T03:34:27
e3f78825ad14ab1377e3dae1b06d2d127e0e518d
{ "blob_id": "e3f78825ad14ab1377e3dae1b06d2d127e0e518d", "branch_name": "refs/heads/main", "committer_date": "2021-07-27T03:34:27", "content_id": "b746e018fdeec170727c82e5e68c3a6677e0c375", "detected_licenses": [ "MIT" ], "directory_id": "780b572a27503579fa1a03ff1c515d2f8048455a", "extension": "h", ...
stackv2
#include "matriz.h" struct busca_profundidade{ int tipo; int vertices; char cor[tamanho]; int descoberta[tamanho]; int finaliza[tamanho]; int adj[tamanho][tamanho]; }; int tempo = 0; int debug = 0; //Assinaturas void inicializa (struct busca_profundidade *x, int adj[tamanho][tamanho], int ver...
3.1875
3
2024-11-18T22:39:37.740962+00:00
2016-02-27T06:35:58
58afd830594ba25208a12e051f358a1f6a3e7057
{ "blob_id": "58afd830594ba25208a12e051f358a1f6a3e7057", "branch_name": "refs/heads/master", "committer_date": "2016-02-27T06:35:58", "content_id": "029baadf62ced0bff22c3add0fc95e605a303702", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "7e9467860f51d1ce380dc5c295ae0cbc4dc4b306", "extens...
stackv2
/* Copyright (c) 2015, Linaro Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <odp.h> #include "odp_cunit_common.h" #include "cpumask.h" #include "mask_common.h" /* default worker parameter to get all that may be available */ #define ALL_AVAILABLE 0 void cpumask_test_odp...
2.359375
2
2024-11-18T22:39:38.276270+00:00
2015-09-30T18:12:49
37fe8f92ec549102c8dc066e78e43a9fc5eda391
{ "blob_id": "37fe8f92ec549102c8dc066e78e43a9fc5eda391", "branch_name": "refs/heads/master", "committer_date": "2015-09-30T18:12:49", "content_id": "11b7e339a4b6614edcc8e819b067e1203e45204a", "detected_licenses": [ "Unlicense" ], "directory_id": "1d201504615b58da4b39e660a9afdaa547e7c2dd", "extension...
stackv2
/* The U.S. federal income tax for single people in 1995 was computed according to the following rules: ______________________________________________________________________ If Your Taxable | | | of the Amount income Is Over | But Not Over | Your Tax is | Over ----------...
3.25
3