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-18T23:09:45.520407+00:00
2019-10-23T16:28:14
61698c9f6f1f20abce8452b9cae932a0018b8289
{ "blob_id": "61698c9f6f1f20abce8452b9cae932a0018b8289", "branch_name": "refs/heads/master", "committer_date": "2019-10-23T16:28:14", "content_id": "c91c1363c6827e0005b6e3b1fd9724bcc334a97c", "detected_licenses": [ "MIT" ], "directory_id": "3b8d6092020cbcb085f1f03650e80d5c167b7632", "extension": "c"...
stackv2
/* ----------------------------------------------------------------------------- * Component Name: Encoder * Parent Component: Sensors * Author(s): Harald Magnusson * Purpose: Keeps track of the telescope attitude relative to the gondola. * * -----------------------------------------------------------------------...
2.484375
2
2024-11-18T23:09:45.601069+00:00
2023-05-25T13:19:56
dd428c75a184fb7cb4c37ce6c93dab2aaafd5182
{ "blob_id": "dd428c75a184fb7cb4c37ce6c93dab2aaafd5182", "branch_name": "refs/heads/main", "committer_date": "2023-05-25T13:19:56", "content_id": "b727c8db969e8a437e1197e9c0c29abdc8d1df43", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "bbf178bbe3d2b8a02865dfa085b4063bab40c184", "extensio...
stackv2
#ifndef __WIN32 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/stat.h> #include "debug.h" int become_daemon(void) { pid_t pid; /* Fork the process */ DLOG(LOG_DEBUG,"become_daemon: forking process..."); pid = fork(); /* I...
2.640625
3
2024-11-18T21:32:59.668789+00:00
2022-12-08T21:19:32
7cac0c7d4c10fb2b6a182b7320afc99d56bc02df
{ "blob_id": "7cac0c7d4c10fb2b6a182b7320afc99d56bc02df", "branch_name": "refs/heads/master", "committer_date": "2022-12-10T11:41:02", "content_id": "32af3de0fc5d1984837f1fb8260e4c836ee862d0", "detected_licenses": [ "Zlib" ], "directory_id": "e9999a81527e3ec26aabf4703c652061eaf661d6", "extension": "h...
stackv2
/* Copyright (c) 2020 Victorien Elvinger Licensed under the zlib license (https://opensource.org/licenses/zlib). Explciit pointer version. */ /** * Generate a random name which can be spelled. * * @param res where t ostore the generated name. * @param len name's length. */ void random_name(char res[]...
2.03125
2
2024-11-18T21:33:01.200484+00:00
2019-07-18T13:29:58
cb5a4964c71bd0a875afa00cef25cc0b1282420a
{ "blob_id": "cb5a4964c71bd0a875afa00cef25cc0b1282420a", "branch_name": "refs/heads/master", "committer_date": "2019-07-18T13:29:58", "content_id": "f176d31c156d4bfb690d9b44c1ab47059d64ede5", "detected_licenses": [ "MIT" ], "directory_id": "aa3e32fd3f1ad58d70bd3d077ea9931e5671d0da", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stddef.h> #include <fcntl.h> #include <errno.h> #include <sys/ioctl.h> #include <linux/hdreg.h> #include <curl/curl.h> #include <assert.h> #include "_API_VerifyRegister.h" #include "md5.h" #include "cJSON.h" #include "Debug.h" char RecBuffer[128] = ...
2.265625
2
2024-11-18T21:33:01.288288+00:00
2016-05-30T10:20:15
d76d53e2f35651fed403b8d8912c86461403cfc8
{ "blob_id": "d76d53e2f35651fed403b8d8912c86461403cfc8", "branch_name": "refs/heads/master", "committer_date": "2016-05-30T10:20:15", "content_id": "386cbf02c1e3a0b95557855945ae1702ce430df5", "detected_licenses": [ "MIT" ], "directory_id": "853c95632e559e2d8b771b1ba503b15433463270", "extension": "c"...
stackv2
/* $Id: tcp_util.c,v 1.31 2011/07/18 17:39:32 alex Exp $ */ /******************************************************************************* File: tcp_util.c TCP/IP Networking Utilities. Author: Alex Measday Purpose: The TCP_UTIL functions allow you to easily establish and communicate over TC...
2.46875
2
2024-11-18T21:33:01.349715+00:00
2017-04-06T18:15:32
8b0178a9140b0e51f9afa43792d253fc44bb223b
{ "blob_id": "8b0178a9140b0e51f9afa43792d253fc44bb223b", "branch_name": "refs/heads/master", "committer_date": "2017-04-06T18:15:32", "content_id": "249fae3b068e4d9aced4c0fe88e0c1a749cea939", "detected_licenses": [ "MIT" ], "directory_id": "247a8ddc08537bf9ce1aaf56f07bcf760edfae68", "extension": "h"...
stackv2
// ---- Занесение поименованной константы в список AddConstToTree(dword keystring,constvalue) dword ptr,newptr; // idrec structure { newptr=LocalAlloc(0x40,recsize); IF(EAX==NULL){ preerror("Compiler out of memory for identifier tree"); ExitProcess(e_outofmemory); } ptr=treestart; IF(EAX == NULL ) // Пустой сп...
2.375
2
2024-11-18T21:33:01.854426+00:00
2023-08-07T02:49:20
e7702819b5221c17ddb4350519d554fc38fe7837
{ "blob_id": "e7702819b5221c17ddb4350519d554fc38fe7837", "branch_name": "refs/heads/master", "committer_date": "2023-08-08T06:08:53", "content_id": "d893ffbdca2abca58bdba2d32a55976a5629d8be", "detected_licenses": [ "MIT" ], "directory_id": "50537dec69e42622b1c94ea77141d5317e2fd301", "extension": "c"...
stackv2
#include "tests_str.h" #include "tests.h" int test_str_to() { char buf[13]; fix16_to_str(fix16_from_dbl(1234.5678), buf, 4); ASSERT_EQ_STR(buf, "1234.5678"); fix16_to_str(fix16_from_dbl(-1234.5678), buf, 4); ASSERT_EQ_STR(buf, "-1234.5678"); fix16_to_str(0, buf, 0); ASSERT_EQ_STR(buf, "0"...
2.828125
3
2024-11-18T21:33:01.963469+00:00
2023-01-16T07:55:16
f5f594242922e3a86c1bc75dccae9fefffc67e54
{ "blob_id": "f5f594242922e3a86c1bc75dccae9fefffc67e54", "branch_name": "refs/heads/master", "committer_date": "2023-01-16T07:55:16", "content_id": "1da980eb37a125eefe0900c57342bec5bb3ba2dc", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "9b67f7fec58fcff7a761ed177d204b66af161d84", "extens...
stackv2
/* * This file is part of libgreat. * * System reset driver functionality. */ #include <toolchain.h> #include <drivers/reset.h> #include <drivers/platform_reset.h> /* This special variable is preserved across soft resets by a little bit of * reset handler magic. It allows us to pass a Reason across resets. */ st...
2.53125
3
2024-11-18T21:33:02.031109+00:00
2016-08-22T20:40:25
ab1f2c57548fd2e7ce3cb33246ac1e469825b42f
{ "blob_id": "ab1f2c57548fd2e7ce3cb33246ac1e469825b42f", "branch_name": "refs/heads/master", "committer_date": "2016-08-22T20:40:25", "content_id": "ec64e85033ed866ed2a8e12436347a24280f7a35", "detected_licenses": [ "MIT" ], "directory_id": "a4650acfdea4a68d7770700cc955d5ef56d3212f", "extension": "c"...
stackv2
/* Write a program that reverses an array of numbers. The numbers should be entered one at a line. On the first input line you will be given the count of the numbers. */ #include <stdio.h> #include <stdlib.h> void check_intInput(int *a); void fill_array(int str[], int size); void print_reverced(const int str[]...
3.796875
4
2024-11-18T21:33:02.298015+00:00
2012-09-29T20:34:45
4c7390cc54f7fab33df50548dc19292d8c860dde
{ "blob_id": "4c7390cc54f7fab33df50548dc19292d8c860dde", "branch_name": "refs/heads/master", "committer_date": "2012-09-29T20:34:45", "content_id": "161d3cf583548f2425e5b52f22b73e9c316fdfe1", "detected_licenses": [ "MIT" ], "directory_id": "d78dea336f24673b7a88fe39f210d59233385399", "extension": "c"...
stackv2
#include <stdlib.h> #include "dbg.h" #include "node.h" //============================================================================== // // Functions // //============================================================================== //-------------------------------------- // Lifecycle //-------------------------...
2.71875
3
2024-11-18T21:33:02.760034+00:00
2015-12-09T16:12:19
deabe4b76f22d6039aa7eba3fd67a6a12497cfba
{ "blob_id": "deabe4b76f22d6039aa7eba3fd67a6a12497cfba", "branch_name": "refs/heads/master", "committer_date": "2015-12-09T16:12:19", "content_id": "932d53687918b656bfbe457d74b5e6fd5ff9c3ee", "detected_licenses": [ "Apache-2.0" ], "directory_id": "5b749a25a32053267af07236cab654309f7881a6", "extensio...
stackv2
/* Wire colors: Serial: Green gnd, Brown is 2, Brown white is 3 LED: Switches Feed position: Orange/Oriange white Load position: Brown/Brown white. Motor Red to pin 3 on middel chip, Black to pin 6 on middel chip Drain Fill */ #ifndef FEEDER_H #define...
2.125
2
2024-11-18T21:33:02.842941+00:00
2015-12-22T03:03:11
57a60d1db509b321da5c3a770ad2ac70875871cc
{ "blob_id": "57a60d1db509b321da5c3a770ad2ac70875871cc", "branch_name": "refs/heads/master", "committer_date": "2015-12-22T03:03:11", "content_id": "bbfcceec5d42dd0b34cccc31b8732a2e8e4db242", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "a37db01e8e593b5e4e638cd229b90d2e3078ff52", "extens...
stackv2
#define INCL_FILEMGR #include <os2.h> #include <string.h> BOOL FileExist (PCHAR szFileName) { HDIR hDir; FILEFINDBUF3 ffbFile; ULONG ulSearchCount, ulReturn; hDir = HDIR_CREATE; /* Neues Handle erzeugen */ ulSearchCount = 1; /* 1 Datei suchen */ ...
2.390625
2
2024-11-18T21:33:02.956958+00:00
2019-11-05T16:29:00
c332de29cce07e9b5e18a4a1f29e9fb449d5daa4
{ "blob_id": "c332de29cce07e9b5e18a4a1f29e9fb449d5daa4", "branch_name": "refs/heads/master", "committer_date": "2019-11-05T16:29:00", "content_id": "b1f9eac1a52e1ba226c4ed3bf35395225faaf605", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3020245daa3461ad99cb368d1f34b62bed39c07e", "extensio...
stackv2
/* * netmon - simple Linux network monitor * * Copyright: (C) 2019 jawi * License: Apache License 2.0 */ #define _GNU_SOURCE #include <assert.h> #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <stdbool.h> #include "logging.h" #incl...
2.640625
3
2024-11-18T21:33:03.028094+00:00
2021-07-29T02:57:21
e0b8d1e54300bfc16f3cb586e2d3aff3c1ceac50
{ "blob_id": "e0b8d1e54300bfc16f3cb586e2d3aff3c1ceac50", "branch_name": "refs/heads/master", "committer_date": "2021-07-29T02:57:21", "content_id": "ece99d5378d9e60695e4723253f4bf2f8ad0213b", "detected_licenses": [ "MIT" ], "directory_id": "97080d2fe69de19a01ecb33ed806545c26d9f381", "extension": "h"...
stackv2
/* base16-c_header (https://github.com/m1sports20/base16-c_header) * by Michael Spradling (http://mspradling.com) * pinky schema by Benjamin (https://github.com/b3nj5m1n) * * This is a standard c header that can be included in any c project. */ #ifndef BASE16_COLORS #define BASE16_COLORS static const char base00[...
2
2
2024-11-18T21:33:03.105970+00:00
2021-04-16T02:16:29
b8f11f917ad22548512eb1f8bc3de8f72761283f
{ "blob_id": "b8f11f917ad22548512eb1f8bc3de8f72761283f", "branch_name": "refs/heads/main", "committer_date": "2021-04-16T02:32:09", "content_id": "1606ca5e61b0eee1b6fb32475d2564f99e05cd12", "detected_licenses": [ "MIT" ], "directory_id": "550f9025a38df73b83c834379f9076f6672c58e9", "extension": "c", ...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "simplec.h" HT_item* item_ptr; unsigned long hash_f(char* key) /* hash function */ { unsigned long total = 0; for (int j = 0; key[j]; j++) { total += key[j]; } return total % CAPACITY; } HT_item* create_item(Token tok, char* lexm) { HT_item*...
3.0625
3
2024-11-18T21:33:03.737687+00:00
2021-07-11T13:45:57
847625d4cfb8483955691173c7efcd23812ed224
{ "blob_id": "847625d4cfb8483955691173c7efcd23812ed224", "branch_name": "refs/heads/master", "committer_date": "2021-07-11T13:45:57", "content_id": "f0a04f86281011e24a5b8b1d3c3a1475e525a6c1", "detected_licenses": [ "MIT" ], "directory_id": "6f874ccb136d411c8ec7f4faf806a108ffc76837", "extension": "c"...
stackv2
/******************************************************************************\ THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. Copyright (C) 1996 -...
2.390625
2
2024-11-18T21:33:04.054180+00:00
2021-08-15T23:27:49
22d69f75230e6501b1cffe8bd6e848044c54389b
{ "blob_id": "22d69f75230e6501b1cffe8bd6e848044c54389b", "branch_name": "refs/heads/master", "committer_date": "2021-08-15T23:27:49", "content_id": "7cd0518aa35edb9ef9e4c2b99d3345c9d3fc07ec", "detected_licenses": [ "Apache-2.0" ], "directory_id": "16c3d340e2112ee82d8f6ee97fa8ec105dbdab44", "extensio...
stackv2
#include <stdio.h> int main (void) { float p, i, I, n, VA; printf ("\n ** Calculo do rendimento de uma poupança **\n\n"); printf ("Informe a aplicação mensal: "); scanf ("%f", &p); printf ("Informe a taxa de juros da poupança aplicada: "); scanf ("%f", &I); printf ("Informe o numero de meses...
2.859375
3
2024-11-18T21:33:05.193451+00:00
2022-05-24T00:44:53
9e09ce52355c7c67d5aaf44f9b59f16686c7b160
{ "blob_id": "9e09ce52355c7c67d5aaf44f9b59f16686c7b160", "branch_name": "refs/heads/main", "committer_date": "2022-05-24T00:44:53", "content_id": "f0edcce4634e458444c4de499cd5a556d6cbc4a6", "detected_licenses": [ "MIT" ], "directory_id": "56eb04e5fcb8651b62fb89d0e7521278e7eff913", "extension": "h", ...
stackv2
/** \file * \brief Main API * * See Copyright Notice in im_lib.h */ #ifndef __IM_H #define __IM_H #if defined(__cplusplus) extern "C" { #endif /** Image data type descriptors. \n * See also \ref datatypeutl. * \ingroup imagerep */ enum imDataType { IM_BYTE, /**< "unsigned char". 1 byte from 0 to 255...
2.125
2
2024-11-18T21:33:05.425782+00:00
2021-07-03T19:22:27
7d4e039c47ef373fa85d39a6f0d3800aac15044b
{ "blob_id": "7d4e039c47ef373fa85d39a6f0d3800aac15044b", "branch_name": "refs/heads/master", "committer_date": "2021-07-03T19:22:27", "content_id": "a64c0e7e633e31c3a32110930442a4310c6999e6", "detected_licenses": [ "MIT" ], "directory_id": "8da116d2c63bd9624406c11d4a6bc1fe875bdcca", "extension": "c"...
stackv2
/* See LICENSE for copyright information * sysmgr-needs -- tool to check service dependencies. */ #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <libgen.h> #include "util.h" int main(int argc, char *argv[]) { if (argc < 2) { printf("usage: %s [service...]\n", basename(argv[0])); return 1; ...
2.328125
2
2024-11-18T21:33:05.699837+00:00
2023-08-31T16:20:55
a5945ec621a92cd7a27e4a854a36eb91b410b350
{ "blob_id": "a5945ec621a92cd7a27e4a854a36eb91b410b350", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T16:20:55", "content_id": "8c28dbe7ef1dab8755079b0d5df3efafac9a127a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "99bdb3251fecee538e0630f15f6574054dfc1468", "extensio...
stackv2
/* * Copyright (c) 2006-2023, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2005-02-22 Bernard The first version. * 2010-06-30 Bernard Optimize for RT-Thread RTOS * 2011-03-12 Bernard fix the filesystem looku...
2.140625
2
2024-11-18T21:33:06.434068+00:00
2020-10-11T11:30:24
1a7d7eb2a013b588765e730c48595681dfe3836a
{ "blob_id": "1a7d7eb2a013b588765e730c48595681dfe3836a", "branch_name": "refs/heads/master", "committer_date": "2020-10-11T11:30:24", "content_id": "6d7746ce8bd1af3548e4d1ef4a2666044cf4a2bf", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f23f52890c130a4f64c68cfe9e1348c2de42f172", "extensio...
stackv2
/* * stalld: starvation detection and avoidance (with bounds). * * This program was born after Daniel and Juri started debugging once again * problems caused kernel threads starving due to busy-loop sched FIFO threads. * * The idea is simple: after detecting a thread starving on a given CPU for a * given period,...
2.265625
2
2024-11-18T21:33:08.143652+00:00
2017-07-21T05:08:18
aee2196bfc301de5fc43b64ad5584c8a0881325d
{ "blob_id": "aee2196bfc301de5fc43b64ad5584c8a0881325d", "branch_name": "refs/heads/master", "committer_date": "2017-07-21T05:08:18", "content_id": "f6fd281d7bab8b57638b39b986b88f70f60d7600", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "30338e0f0ab7a37b6dac35e7a460f810e5824bf0", "extens...
stackv2
#include <FreeRTOS.h> #include <task.h> #define LOG(...) void vApplicationMallocFailedHook(void) { for (;;); } void vApplicationStackOverflowHook(TaskHandle_t xTask,char *pcTaskName) { for (;;); } __attribute__((used)) void Fault_HandlerC(uint32_t *hardfault_args,uint32_t orig_lr,uint32_t nvic_icsr) { uint32_t ...
2.390625
2
2024-11-18T21:33:08.363888+00:00
2016-08-22T20:40:25
6e2d68edc512108f9d722ee126196125f16168b2
{ "blob_id": "6e2d68edc512108f9d722ee126196125f16168b2", "branch_name": "refs/heads/master", "committer_date": "2016-08-22T20:40:25", "content_id": "73a92cebfad014acdd1f3ebf04f007ed8de5abe5", "detected_licenses": [ "MIT" ], "directory_id": "a4650acfdea4a68d7770700cc955d5ef56d3212f", "extension": "c"...
stackv2
/* Write a recursive string reverse function. The function should accept a source string and destination string as arguments. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define BUFFER 50 char *make_char(char *str, int buff); void reverse_string(char str[], char *destination,...
3.8125
4
2024-11-18T21:33:08.502423+00:00
2020-11-01T07:59:42
57bd1331d4d52adcca0bb04e8802241a322cce43
{ "blob_id": "57bd1331d4d52adcca0bb04e8802241a322cce43", "branch_name": "refs/heads/main", "committer_date": "2020-11-01T07:59:42", "content_id": "56fa1ec6a4d3ce4db23eaef064f89ef1311e5283", "detected_licenses": [ "MIT" ], "directory_id": "db44c7142df5dac8c13ad28432763eb38586ba2c", "extension": "c", ...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* realloc.c :+: :+: :+: ...
2.671875
3
2024-11-18T21:33:08.566925+00:00
2020-02-07T19:32:06
2a68b4649971b2791ed32fcf3f4a869263f250a6
{ "blob_id": "2a68b4649971b2791ed32fcf3f4a869263f250a6", "branch_name": "refs/heads/master", "committer_date": "2020-02-07T19:32:06", "content_id": "f4711721c2460dd70dbccbad3388ef5d831f7b15", "detected_licenses": [ "MIT" ], "directory_id": "73fb66fbbf84464745f30e7c8220b85c54581665", "extension": "c"...
stackv2
#include <stdlib.h> #include <math.h> #include <complex.h> #include <fftw3.h> #include "sinewave.h" int init(sinewave *sine, double frequency, double samplerate) { if (frequency >= samplerate/2.0) { return 1; } double step = 2 * M_PI * frequency / samplerate; sine->previous = -sin(step); ...
2.796875
3
2024-11-18T21:33:08.765452+00:00
2014-04-18T07:18:28
ddec5ba906a9750f5d26a6e3f8c775b203fd40e0
{ "blob_id": "ddec5ba906a9750f5d26a6e3f8c775b203fd40e0", "branch_name": "refs/heads/master", "committer_date": "2014-04-21T02:04:30", "content_id": "2e8cb273f15ebae5f4437587cd41e0f5c5be70ac", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8efb22f0abc5c5224bc3c775af17dc0dd56347b0", "extens...
stackv2
/* GStreamer byte reader * * Copyright (C) 2008 Sebastian Dröge <sebastian.droege@collabora.co.uk>. * Copyright (C) 2009 Tim-Philipp Müller <tim centricular net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published ...
2.265625
2
2024-11-18T21:33:09.244125+00:00
2019-03-28T16:32:27
5ac3cbff44bee0ad2dbc2e16f4f26e9d2074d9ee
{ "blob_id": "5ac3cbff44bee0ad2dbc2e16f4f26e9d2074d9ee", "branch_name": "refs/heads/master", "committer_date": "2019-03-28T16:32:27", "content_id": "61545bd37d1b129f049ed7aa09d8cdbce01b528c", "detected_licenses": [ "BSD-3-Clause-LBNL" ], "directory_id": "988cc34521df8bb25f048935f06c48aec9d3b547", "e...
stackv2
/* * Copyright (c) 2016, Yong Qin <yong.qin@lbl.gov>. All rights reserved. * * spank_demo.c : SPANK plugin to demonstrate when and where and by whom the * function is called. * * * gcc -shared -fPIC -o spank_demo.so spank_demo.c * * plugstack.conf: * required /etc/slurm/spank/spank_demo.so * ...
2.25
2
2024-11-18T21:33:09.347605+00:00
2022-06-28T14:41:12
6cd808371aa274636e80f7fb25e659bdf5f60dfc
{ "blob_id": "6cd808371aa274636e80f7fb25e659bdf5f60dfc", "branch_name": "refs/heads/master", "committer_date": "2022-06-28T14:41:12", "content_id": "0901acc6c6afafd67164c7636cab903dc5f27688", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "5a3bb367a1da94b05f538abd0a5f9daa9c65d268", "extens...
stackv2
/* * BSD 3-Clause License * * Copyright (c) 2018, Ifsttar Wi6labs LS2N * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, t...
2.09375
2
2024-11-18T21:33:10.232356+00:00
2019-12-09T03:22:58
0e5199c3fa2ea6306237e1f83e52d009ff899868
{ "blob_id": "0e5199c3fa2ea6306237e1f83e52d009ff899868", "branch_name": "refs/heads/master", "committer_date": "2019-12-09T03:22:58", "content_id": "c50a788dcd74844c7710e2ae05ce648e28779c42", "detected_licenses": [ "MIT" ], "directory_id": "d2a3eec49f5032c5f34501b085fdef4af265a873", "extension": "c"...
stackv2
#include <typeint.h> int64_t ptrtoint(void* ptr){ return (int64_t) ptr; } void* inttoptr(int64_t i){ return (void*) i; } int check_ptr_eq(void* a, void* b){ return ptrtoint(a) == ptrtoint(b); } void* unsafe_cast(void* f){ return f; }
2.46875
2
2024-11-18T21:33:10.410610+00:00
2023-07-04T12:00:54
6e33d9e1e0a8b022e6664cd10b1637ae78235ab8
{ "blob_id": "6e33d9e1e0a8b022e6664cd10b1637ae78235ab8", "branch_name": "refs/heads/master", "committer_date": "2023-07-04T12:00:54", "content_id": "2a56dc4168080c4e77022577b0bdbbfa5add047e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1a1bb8fbec81760fd65a220d76122e9e1da1ae1c", "extensio...
stackv2
/* * Copyright 2018 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
2.03125
2
2024-11-18T21:33:10.621353+00:00
2021-05-19T11:15:09
226322bf6035a6c7b6ca4cdb27b859bdc917a978
{ "blob_id": "226322bf6035a6c7b6ca4cdb27b859bdc917a978", "branch_name": "refs/heads/master", "committer_date": "2021-05-19T11:15:09", "content_id": "66b4457ee4c0936d88fcca4fec2cfc8fee607632", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "e186d9b50826a2f7ec0a526de9c231cce99ffca6", ...
stackv2
#include "libsysfs.h" #include <unistd.h> #include <string.h> #include <time.h> #include <systemd/sd-journal.h> #include <semaphore.h> #include <fcntl.h> #include <errno.h> int32_t Sem_Acquired(const char *sem_name) { sem_t *sem = SEM_FAILED; struct timespec timeout; int32_t ret = 0; // Set semaphore...
2.4375
2
2024-11-18T21:33:10.993423+00:00
2019-12-15T23:04:24
e1335041e8ee03b11006a76c6ff0934331a64c6a
{ "blob_id": "e1335041e8ee03b11006a76c6ff0934331a64c6a", "branch_name": "refs/heads/master", "committer_date": "2019-12-15T23:04:24", "content_id": "b000477b36e25a4fb9684d8b58d664e895a135a8", "detected_licenses": [ "MIT" ], "directory_id": "366b6585fdd791f82148adbeb033b9972bae32d3", "extension": "c"...
stackv2
/* * Copyright (C) 2008-2015, Marvell International Ltd. * All Rights Reserved. * * This application demonstrates the use of the USB driver for exercising * the basic functionality of Communication Device Class (CDC-ACM) of USB. * * Summary: * The application exposes a USB CDC class device. This implies t...
2.453125
2
2024-11-18T21:33:11.352359+00:00
2018-04-02T19:45:17
270ff5978e18e5914bb6b5db432786a2ea799cd5
{ "blob_id": "270ff5978e18e5914bb6b5db432786a2ea799cd5", "branch_name": "refs/heads/master", "committer_date": "2018-04-02T19:45:17", "content_id": "e0aa1e72d5dd5e7e996850b9bb563ae774ffb8a3", "detected_licenses": [ "MIT" ], "directory_id": "5cac144790350ec2f46b33bde62e94b2215277a5", "extension": "c"...
stackv2
#include <curses.h> #include <stdbool.h> #include <stdlib.h> #include <time.h> #include <string.h> #define KEY_SPACE ' ' #define KEY_RETURN '\r' #define SQ_FLAGGED_CHAR '@' #define SQ_UNCLICKED_CHAR ' ' #define BEGINNER_NUM_MINES 10 #define BEGINNER_BOARD_SIZE 9 #define INTERMEDIATE_NUM_MINES 40 #define INTERME...
2.546875
3
2024-11-18T21:33:11.573323+00:00
2022-03-04T01:02:00
25505796078b1f830f78394aa7558e5d938d0f82
{ "blob_id": "25505796078b1f830f78394aa7558e5d938d0f82", "branch_name": "refs/heads/master", "committer_date": "2022-03-04T01:02:00", "content_id": "36a717062f39d464223cb417ac3929dbf4a1fdab", "detected_licenses": [ "MIT" ], "directory_id": "cfee69b296f0975d6233737e8895da18429e864b", "extension": "c"...
stackv2
#include "debugger/commands.h" #include "debugger/debugger.h" #include "disassembler/disassemble.h" #include "log/log.h" #include <limits.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <errno.h> int debugger_list_commands(debugger_state_t *state, int argc, char **argv) { if (argc != 1) { ...
2.5
2
2024-11-18T21:33:11.660719+00:00
2019-02-05T23:50:28
5dad96460d3340f0cc471406d2e6bd393c12202f
{ "blob_id": "5dad96460d3340f0cc471406d2e6bd393c12202f", "branch_name": "refs/heads/master", "committer_date": "2019-02-05T23:50:28", "content_id": "a721eb4aa22b1345a109af5ab9cefa964ba33656", "detected_licenses": [ "MIT" ], "directory_id": "73d6427f47c9033feb76ed17c1b58a77d02482a3", "extension": "c"...
stackv2
#include "types.h" #include "stat.h" #include "user.h" //#include "thread_spinlock.h" #include "thread_q.h" //Spinlock includes from here //#include "defs.h" //#include "param.h" #include "x86.h" /*#include "memlayout.h" #include "mmu.h" #include "proc.h" #include "spinlock.h" */ //Spinlock includes to here struct b...
2.40625
2
2024-11-18T21:33:12.022802+00:00
2023-01-12T23:25:49
35617780cabbd6daa2eb1b2e7b7563bbf48ce34e
{ "blob_id": "35617780cabbd6daa2eb1b2e7b7563bbf48ce34e", "branch_name": "refs/heads/master", "committer_date": "2023-01-12T23:25:49", "content_id": "9a5c1fbcdcd3ea455d51001a5308ba14a887c9c2", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "a530cb79c00b67be387ebe039061a4649034e041", "extens...
stackv2
#ifndef __MINTOMIC_PRIVATE_MINTOMIC_MSVC_H__ #define __MINTOMIC_PRIVATE_MINTOMIC_MSVC_H__ #ifdef __cplusplus extern "C" { #endif #if MINT_TARGET_XBOX_360 // Xbox 360 void _ReadWriteBarrier(); #pragma intrinsic(_ReadWriteBarrier) #endif //------------------------------------- // Atomic types //------------------...
2.484375
2
2024-11-18T21:33:12.584273+00:00
2014-03-23T20:23:25
f91ad7c12460291425942ed6b8727d8049952593
{ "blob_id": "f91ad7c12460291425942ed6b8727d8049952593", "branch_name": "refs/heads/master", "committer_date": "2014-03-23T20:23:25", "content_id": "701e79535ed5b50b3903a46a6d935b1023c2cc3e", "detected_licenses": [ "MIT" ], "directory_id": "2f4da6f50fc8a0d0e1f272c51c56a64e88ba8886", "extension": "c"...
stackv2
#include <avr/io.h> #include <avr/interrupt.h> #define F_CPU 16000000 #define USART_BAUDRATE 9600 #define BAUD_PRESCALE (((F_CPU / (USART_BAUDRATE * 16UL))) - 1) int main (void){ UCSR1B = (1 << RXEN1) | (1 << TXEN1) | (1 << RXCIE1); UCSR1C = (1 << UCSZ10) | (1 << UCSZ11); UBRR1H = (BAUD_PRESCALE >> 8); UBRR1L = B...
2.078125
2
2024-11-18T21:33:12.716856+00:00
2019-03-18T14:49:07
92762dd6a1a1e6d54be2715fc611951dbbfbb264
{ "blob_id": "92762dd6a1a1e6d54be2715fc611951dbbfbb264", "branch_name": "refs/heads/master", "committer_date": "2019-03-18T14:49:07", "content_id": "0bfe7097a94240a83cb4738f3159ea45af785dfb", "detected_licenses": [ "OpenSSL", "BSD-3-Clause" ], "directory_id": "a94e9f5268e683f81b789fbd151f2caf57c2d...
stackv2
#include "mtev_dyn_buffer.h" #include <stdio.h> #include <stdarg.h> #include <stddef.h> inline void mtev_dyn_buffer_init(mtev_dyn_buffer_t *buf) { buf->data = buf->static_buffer; buf->pos = buf->data; buf->size = sizeof(buf->static_buffer); } inline void mtev_dyn_buffer_add(mtev_dyn_buffer_t *buf, uint8_t *dat...
2.828125
3
2024-11-18T21:33:15.772883+00:00
2023-01-25T20:06:55
416f6cb34ac0efb18e06fc121221731ef52212fb
{ "blob_id": "416f6cb34ac0efb18e06fc121221731ef52212fb", "branch_name": "refs/heads/master", "committer_date": "2023-01-25T20:06:55", "content_id": "a31cd81cdbe19157a5acf09e9be1f0e2f6dacabd", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3d92aac37b1e0b329e36d5152b6902a8c0b23cb1", "extensio...
stackv2
/* // Copyright (c) 2015 Intel Corporation // // 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...
2.078125
2
2024-11-18T21:33:16.158551+00:00
2016-11-10T03:45:01
5a3071571065bd78485ac047ec26147d2fc654b3
{ "blob_id": "5a3071571065bd78485ac047ec26147d2fc654b3", "branch_name": "refs/heads/master", "committer_date": "2016-11-10T03:45:01", "content_id": "1df889c2b04f88f728e4877d7121c3a7d1854887", "detected_licenses": [ "MIT" ], "directory_id": "546bfa59f494bb34815725765af146f406f90aa2", "extension": "c"...
stackv2
#include "pbm.h" polynomial polynomial_subtract(const polynomial a, const polynomial b) { int largerDegree = a->degree > b->degree ? a->degree : b->degree; int i; polynomial p = polynomial_new(largerDegree); for (i = 0; i <= largerDegree; i++) { if (i > a->degree) p->values[i].coefficient ...
2.8125
3
2024-11-18T21:33:16.616316+00:00
2023-03-03T05:55:17
21d67428c0096896a87ab53f9ea1c0634e9a5dbb
{ "blob_id": "21d67428c0096896a87ab53f9ea1c0634e9a5dbb", "branch_name": "refs/heads/main", "committer_date": "2023-03-03T05:55:17", "content_id": "9d0ec791e36062147f687757d2c5469b1bb58d85", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "52c37a4d7621560a79428728a6ec5a1f11cbb4cb", "extensio...
stackv2
/*++ Copyright (c) 2018-2022 Trent Nelson <trent@trent.me> Module Name: PerfectHashTableHash.c Abstract: This module implements routines that hash a 32-bit value into a 64-bit value comprised of two independent 32-bit hashes. Each routine corresponds to one of the PERFECT_HASH_TABLE_HASH_FUNCTION_...
2.15625
2
2024-11-18T21:33:17.606875+00:00
2018-06-26T09:05:13
115bc93aa7832051cb47a0feb2b4463c4bd7ff9a
{ "blob_id": "115bc93aa7832051cb47a0feb2b4463c4bd7ff9a", "branch_name": "refs/heads/master", "committer_date": "2018-06-26T09:05:13", "content_id": "20e4d31e2c8db06450319f0078e0c166dd3ffe2e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f858af58618251c7d4a35c181b5ffd2ea4685e51", "extensio...
stackv2
/* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __FF_DRIVER_H #define __FF_DRIVER_H /* Includes ------------------------------------------------------------------*/ #include "diskio.h" #include "ff.h" #include "platform_opts.h" typedef struct{ DSTATUS (*disk_initialize) (void...
2.109375
2
2024-11-18T21:33:18.552405+00:00
2021-05-26T19:58:18
11f4cc992f648e0dc8d42f062b7bfd72005533f0
{ "blob_id": "11f4cc992f648e0dc8d42f062b7bfd72005533f0", "branch_name": "refs/heads/master", "committer_date": "2021-05-26T19:58:18", "content_id": "13e1e2ef11bc73d459b5c30dfa332f7791dbb18f", "detected_licenses": [ "MIT" ], "directory_id": "d843c88eb2a4939e90c850cbf112552d0ff4ee7c", "extension": "c"...
stackv2
#include <ristretto_elgamal.h> #include <omp.h> #include <time.h> #include <stdio.h> /* * This executable program loads the key and the map and performs some basic checks. */ int main() { ristretto255_scalar_t sk_1[59]; ristretto255_scalar_t sk_2[59]; ristretto255_point_t pk_1[59]; ristretto255_point_t pk_2[59];...
2.328125
2
2024-11-18T21:33:18.778192+00:00
2018-03-24T06:09:32
57dd169ac634f3da1178581a4b242926bfaae144
{ "blob_id": "57dd169ac634f3da1178581a4b242926bfaae144", "branch_name": "refs/heads/master", "committer_date": "2018-03-24T06:09:32", "content_id": "ca3a778fc24bfcd876b3f0c48371ad45bb3f6455", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f318ef9b6d33abaca147d9b1b52705f00b17a850", "extensio...
stackv2
/* As written, getint treats a + or - not followed by a digit as a valid representation of zero. Fix it to push such a character back on the input. */ #include <ctype.h> #include <stdio.h> #define MAX 10 int getint(int *pn); int getch(void); void ungetch(int); main(void) { int c, i, array[MAX]; for (i=0;...
3.59375
4
2024-11-18T21:33:18.940009+00:00
2022-02-01T10:19:17
cee5138567b3e8872736f6eac307cf68b1923598
{ "blob_id": "cee5138567b3e8872736f6eac307cf68b1923598", "branch_name": "refs/heads/master", "committer_date": "2022-02-01T10:19:17", "content_id": "6ce2f3ff38e2685c011921b3785051fe180f6677", "detected_licenses": [ "MIT" ], "directory_id": "a61ac94de7d2afb6e5e334be965ebb52ba044654", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <sys/ioctl.h> #include <termios.h> #include <errno.h> #include <assert.h> #include <time.h> #include "serial.h" int dev_fd; int file_fd; FILE *error_log; // #define error_log stderr const char *dev_file = "/dev/ttyUSB0"; const cha...
2.59375
3
2024-11-18T21:33:19.013917+00:00
2016-10-06T16:58:05
cac0497839a0b586856c5454aec343a3a1efc634
{ "blob_id": "cac0497839a0b586856c5454aec343a3a1efc634", "branch_name": "refs/heads/master", "committer_date": "2016-10-06T16:58:05", "content_id": "eb7dbf4e4730e5c0e85dd011ee274298e5a423da", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "fbe9cb2826819051ce16d6532bbf0459...
stackv2
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <assert.h> #include <unistd.h> #include <pthread.h> #include <sys/mman.h> #include <omp.h> #include IMPL #define DICT_FILE "./dictionary/words_shuffle.txt" static double diff_in_second(struct timespec t1, stru...
2.265625
2
2024-11-18T21:33:25.921991+00:00
2021-05-17T17:04:28
c1c505be2ecfbc7ebdf5f99f0efb2a0f6e371308
{ "blob_id": "c1c505be2ecfbc7ebdf5f99f0efb2a0f6e371308", "branch_name": "refs/heads/main", "committer_date": "2021-05-17T17:04:28", "content_id": "aa8a53b4533c855de69306ccfa232bd8b7072e3f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4267c0ec45bda75f86c2233574e77c9f88763d63", "extension"...
stackv2
#include <stdio.h> #include "esp_log.h" // to use the Esp logs #include "esp_camera.h" // to use the Camera functions #include "esp_http_server.h" // If like to use the JPEG HTTP Capture #include "twi.c" // to use pinMode() and digitalWrite() ///////////////////////////////////// ////////// Initialization ////////...
2.390625
2
2024-11-18T21:33:26.000713+00:00
2023-01-02T17:57:00
24f9bf5bcacff05cd4f189d6222434507242b366
{ "blob_id": "24f9bf5bcacff05cd4f189d6222434507242b366", "branch_name": "refs/heads/master", "committer_date": "2023-01-02T17:57:00", "content_id": "61f00ace5371e5a9783ef5c95660dbe738f83b4e", "detected_licenses": [ "BSD-2-Clause", "BSD-2-Clause-Views" ], "directory_id": "88eaf472fcdbb4736ad95d52ed...
stackv2
#include "generics.h" #include "../Windows/ctlsave.h" #include "../Windows/color.h" static void staticText(FILE *fp, object ctl); static void textControl(FILE *fp, object ctl); static void numericControl(FILE *fp, object ctl); static void dateControl(FILE *fp, object ctl); static void pushButtonControl(FILE *fp, o...
2.125
2
2024-11-18T21:33:26.090006+00:00
2019-02-06T10:45:26
621eed8fb8ea8ee5623a814205dd3de0324c8156
{ "blob_id": "621eed8fb8ea8ee5623a814205dd3de0324c8156", "branch_name": "refs/heads/master", "committer_date": "2019-02-06T10:45:26", "content_id": "03ba5687d2863689b3e47c8fb85a9d2c106fa9cc", "detected_licenses": [ "MIT" ], "directory_id": "11821a23c27f2f35b06764a452e84e0cf762424b", "extension": "c"...
stackv2
#include <linux/init.h> // Macros used to mark up functions e.g. __init __exit #include <linux/module.h> // Core header for loading LKMs into the kernel #include <linux/device.h> // Header to support the kernel Driver Model #include <linux/kernel.h> // Contains types, macros, functions...
2.46875
2
2024-11-18T21:33:26.167135+00:00
2022-12-01T21:19:42
8dbf35502bee9937ecc0e4936bfdbbfd4fd208e6
{ "blob_id": "8dbf35502bee9937ecc0e4936bfdbbfd4fd208e6", "branch_name": "refs/heads/master", "committer_date": "2022-12-01T21:19:42", "content_id": "2c3a3baa17750781dfa7c48b7d09f88b43ab18f0", "detected_licenses": [ "MIT" ], "directory_id": "88095a39172ca8b80b601bc977a2a40f449bda87", "extension": "c"...
stackv2
/** * @file binson_writer.c * * Description * */ /*======= Includes ==========================================================*/ #include "binson_writer.h" /*======= Local Macro Definitions ===========================================*/ /*======= Type Definitions =================================================...
2.59375
3
2024-11-18T21:33:26.733431+00:00
2014-07-25T18:05:14
4ffad06a7ea36fd82e7eb8fd2f0d8422e15a12f7
{ "blob_id": "4ffad06a7ea36fd82e7eb8fd2f0d8422e15a12f7", "branch_name": "refs/heads/master", "committer_date": "2014-07-25T18:05:14", "content_id": "83ccdd084cd023d386837f6df91ddf83b3de6e3d", "detected_licenses": [ "MIT" ], "directory_id": "3525a8e61dd4286f9e3100ee512340c66f1ced28", "extension": "c"...
stackv2
#include <module.h> #include <string.h> MODULE_DEFAULT(family); static int family_length(void) { database_statement_t *statement = database_statement_create("SELECT COUNT(*) FROM FAMILY"); if (!statement) return 0; database_row_t *row = database_row_extract(statement, "i"); int count = databa...
2.609375
3
2024-11-18T21:33:27.674289+00:00
2019-10-18T14:06:08
2dc32123042735a276d8ab3977c75df47adf6a53
{ "blob_id": "2dc32123042735a276d8ab3977c75df47adf6a53", "branch_name": "refs/heads/master", "committer_date": "2019-10-18T14:06:08", "content_id": "77c2065cfd12e9ae95898f587ae8cf6725416a8c", "detected_licenses": [ "MIT" ], "directory_id": "352f43aab0521dcdb4897298961daed575d457f6", "extension": "c"...
stackv2
#include <stdio.h> #define MAX 11 int main(void){ int n,m,i; double coef[MAX]; printf("Digite o grau do polinomio: "); scanf("%d",&n); for(i=n;i>=0;i--){ printf("Digite o valor do coeficiente do termo de grau %d: ",i); scanf("%lf",&coef[i]); } printf("Digite a quantidade de ...
3.140625
3
2024-11-18T21:33:27.750106+00:00
2005-04-16T09:23:18
32b6a84230def7546f04be7b78c5fe843499924b
{ "blob_id": "32b6a84230def7546f04be7b78c5fe843499924b", "branch_name": "refs/heads/master", "committer_date": "2005-04-16T09:23:18", "content_id": "f40293b0269b3639d8e4ba8fa634d0f8ee35f468", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "016863afa980ea6cac2019871714b9398c75b9cc", "extens...
stackv2
/*************************************************************************** protosupport.cpp - description ------------------- begin : Fri Mar 7 2003 copyright : (C) 2003 by Giorgio A. email : openc6@hotmail.c...
2.171875
2
2024-11-18T21:33:27.941689+00:00
2020-04-28T02:36:13
b93ff9c21232d5a9fd8f73a475f493970921faa3
{ "blob_id": "b93ff9c21232d5a9fd8f73a475f493970921faa3", "branch_name": "refs/heads/master", "committer_date": "2020-04-28T02:36:13", "content_id": "81176586d0e1cd4c68f82e4726f64b0501b7aad5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f481776fb7b91377e73932196938f274001d276c", "extensio...
stackv2
/* Copyright (c) 2011-2012 Phil Jordan <phil@philjordan.eu> 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 software for any purpose, including com...
2.390625
2
2024-11-18T21:33:28.060786+00:00
2015-08-11T05:31:26
ba023da279a543853ed05d804bc386eed823b1c1
{ "blob_id": "ba023da279a543853ed05d804bc386eed823b1c1", "branch_name": "refs/heads/master", "committer_date": "2015-08-11T05:31:26", "content_id": "ad6e5a61780ec776554735c371d6cc0869c8a86f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "30bc820385cd8662ca4df327744ed10a7cdedc55", "extens...
stackv2
#if WIN32 #pragma once #endif #ifndef _CPP_IMGPROC_CLAHE_H_ #define _CPP_IMGPROC_CLAHE_H_ #include "include_opencv.h" CVAPI(cv::Ptr<cv::CLAHE>*) imgproc_createCLAHE(double clipLimit, CvSize tileGridSize) { cv::Ptr<cv::CLAHE> ret = cv::createCLAHE(clipLimit, tileGridSize); return clone(ret); } CVAPI(void) imgproc...
2.0625
2
2024-11-18T21:33:28.244979+00:00
2019-05-16T13:17:33
c10e455c9b05e9a361e9f73725a186eb8022ff09
{ "blob_id": "c10e455c9b05e9a361e9f73725a186eb8022ff09", "branch_name": "refs/heads/master", "committer_date": "2019-05-16T13:17:33", "content_id": "5065cb42c9cc5338a1a01b10d4cd30ebe9c02b55", "detected_licenses": [ "MIT" ], "directory_id": "36370032bed7df724149796a28b44820f89e9c66", "extension": "c"...
stackv2
#include <stdio.h> void main(void) { int count; printf("isso%n ‚ um teste\n", &count); printf("%d", count); }
2.296875
2
2024-11-18T21:33:28.299087+00:00
2021-10-17T01:31:27
af6377f37c1a6f523e3324516ea687d7a86b743c
{ "blob_id": "af6377f37c1a6f523e3324516ea687d7a86b743c", "branch_name": "refs/heads/master", "committer_date": "2021-10-17T01:31:27", "content_id": "b094a5915dcd1f9c2c317c9a100f1c62442fd883", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "32e48bb5c7b9714e25bc9312f185a85e02338cc5", "extens...
stackv2
#include <arch/ioapic.h> #include <arch/lapic.h> #include <arch/mmu.h> #include <arch/pic.h> #include <micro/acpi.h> #include <micro/acpi_defs.h> #define R_REGSEL 0x00 #define R_IOWIN 0x10 // Redirection table entry #define REDTBL(irq) (2 * irq + 0x10) static volatile uintptr_t mmio_base; uint32_t read32(uint32_t ...
2.46875
2
2024-11-18T21:33:29.277865+00:00
2022-02-09T22:17:53
a645838d7a0662914637b6f09514e61bcac38ae3
{ "blob_id": "a645838d7a0662914637b6f09514e61bcac38ae3", "branch_name": "refs/heads/master", "committer_date": "2022-02-09T22:17:53", "content_id": "c147d2863a3822665b578a7fc5799c4dd073415a", "detected_licenses": [ "MIT" ], "directory_id": "3e8c37a02052850b06a33b4eb310d51989d72b91", "extension": "c"...
stackv2
#include <bcm2835.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <linux/types.h> #include <signal.h> #include <unistd.h> #include "blinkt.h" #define APA_SOF 0b11100000 #define DEFAULT_BRIGHTNESS 7 #define NUM_LEDS 8 #define MOSI 23 #define SCLK 24 #ifdef TEST volatile int running = 0; #endif...
2.5625
3
2024-11-18T21:33:29.620628+00:00
2022-11-18T07:56:14
de1c745146e1ed6ad6df767c7ca563e159115d0d
{ "blob_id": "de1c745146e1ed6ad6df767c7ca563e159115d0d", "branch_name": "refs/heads/master", "committer_date": "2022-11-18T07:56:14", "content_id": "ea2d66bfed620ebd33cec9cdf048535a2b164b5b", "detected_licenses": [ "Apache-2.0" ], "directory_id": "50b68b3878ee26e6ad7bbe48443e96a5a1bd3ac5", "extensio...
stackv2
/*************************************************************** * @file wol.c * @brief * @author WKJay * @Version * @Date 2022-11-16 ***************************************************************/ #include <rtthread.h> #include <sys/socket.h> #include <stdio.h> #include "wol.h" #def...
2.46875
2
2024-11-18T21:33:33.690755+00:00
2022-10-10T00:16:12
45c8d08ed14959770441a87f9480f5ea48e83794
{ "blob_id": "45c8d08ed14959770441a87f9480f5ea48e83794", "branch_name": "refs/heads/master", "committer_date": "2022-10-10T00:16:12", "content_id": "5d0db1664e029fefdffd5cf7b6cd8dcf5715d419", "detected_licenses": [ "MIT" ], "directory_id": "cb52daafb9a497c1769ddd5f5698aa5e2dcc7fbe", "extension": "h"...
stackv2
#ifndef CML_BLOCK_H #error "Never use <cml/block/complex_float.h> directly; include <cml/block.h> instead." #endif #ifndef CML_BLOCK_COMPLEX_FLOAT_H #define CML_BLOCK_COMPLEX_FLOAT_H #include <stdlib.h> #include <stdio.h> __CML_BEGIN_DECLS typedef struct { size_t size; float *data; } cml_block_compl...
2.234375
2
2024-11-18T21:33:34.211107+00:00
2019-04-04T22:58:25
fa12c117d4d187523e960a405a829ffa0c4fd029
{ "blob_id": "fa12c117d4d187523e960a405a829ffa0c4fd029", "branch_name": "refs/heads/master", "committer_date": "2019-04-04T22:58:25", "content_id": "32f2cb93baa1f5b49fe61cfe3fb12d53d1a87372", "detected_licenses": [ "MIT" ], "directory_id": "20372cab6567f5111ecb5fec1079afcf46127e9b", "extension": "c"...
stackv2
//Lista 2 - ED2 2019.1 //Nícalo Ribeiro 16/0016169 //Algorítmos de Ordenação n² #include<stdio.h> #include<stdlib.h> #include<time.h> void menu(); void verificaEcopia(); void selectionSort(); void bubbleSort(); void insertionSort(); void shellSort(); void mostrarTempos(); void mostrarArqOriginal(); void mostrarRegO...
2.9375
3
2024-11-18T21:33:34.403261+00:00
2019-03-06T14:37:30
1f5c7a2e7197ffa55975a7e69ed1eadb2d5b37e8
{ "blob_id": "1f5c7a2e7197ffa55975a7e69ed1eadb2d5b37e8", "branch_name": "refs/heads/master", "committer_date": "2019-03-06T14:37:30", "content_id": "5c2a6af5d203ba48bd21136f13a9cde70a57e9b9", "detected_licenses": [ "MIT" ], "directory_id": "20876c2279c168116645572a5cce7feaee8be066", "extension": "c"...
stackv2
#include <errno.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include "mesh.h" #include "net_serial.h" #include "ext.h" #include "unit_test.h" int reader(void) { uint8_t c1; if(read(0, &c1, 1) <= 0) return -1; return c1; } int writer(uint8_t *buf, size_t ...
2.5
2
2024-11-18T21:33:34.602759+00:00
2021-01-12T15:02:43
fe54c892c4f6f37bd7ccae4c3b6faf2f3ffb1ec8
{ "blob_id": "fe54c892c4f6f37bd7ccae4c3b6faf2f3ffb1ec8", "branch_name": "refs/heads/master", "committer_date": "2021-01-12T15:02:43", "content_id": "a66da3a6680ee304b80bc9417fd525d2c87a35be", "detected_licenses": [ "MIT" ], "directory_id": "3c437c9ad69317115d5fa9dfc72d22b2e415c0ac", "extension": "c"...
stackv2
#include <stdio.h> #include "xdg.h" #include "settings.h" struct config_format_tree g_settings; #define BMPANEL2_CONFIG_FILE "bmpanel2/bmpanel2rc" void load_settings(const char *configfile) { if (configfile) { load_config_format_tree(&g_settings, configfile); return; } char buf[4096]; size_t config_dirs_len...
2.109375
2
2024-11-18T21:33:34.691968+00:00
2020-07-08T16:31:20
880d1d1b8c4ab3fee5786fd586a5adaed31c6600
{ "blob_id": "880d1d1b8c4ab3fee5786fd586a5adaed31c6600", "branch_name": "refs/heads/master", "committer_date": "2020-07-08T16:31:20", "content_id": "45faf25954673315cbe2a1da2f5682c5b3923eca", "detected_licenses": [ "MIT" ], "directory_id": "cc6aa6ae04ec53668cc5f5e7af92ce15872d9b4d", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> int main() { char dia[2]; char mes[2]; char ano[4]; printf("diga o dia, mes e o ano :"); gets(dia); gets(mes); gets(ano); printf("%d/%d/%d",dia,mes,ano); }
2.6875
3
2024-11-18T21:33:34.776547+00:00
2019-09-08T19:14:33
2c623c05358c12dfea86610bc7e21027b729bedb
{ "blob_id": "2c623c05358c12dfea86610bc7e21027b729bedb", "branch_name": "refs/heads/master", "committer_date": "2019-09-08T19:14:33", "content_id": "a5cf243eaabe563bb1a94bf31164ab4552137013", "detected_licenses": [ "MIT" ], "directory_id": "b8559b27b3c5669d067c8f9e378210a02897806c", "extension": "c"...
stackv2
#include <efi.h> #include <efilib.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> VOID efi_panic(EFI_STATUS efi_status, INTN line) { Print(L"panic at line:%d\n", line); Print(L"EFI_STATUS = %d\n", efi_status); while (1); // TODO: change while loop to BS->Exit } stati...
2.03125
2
2024-11-18T21:33:34.845904+00:00
2015-02-03T09:26:07
864e9b7f98fac802d2b8a7c34fae6345e5343771
{ "blob_id": "864e9b7f98fac802d2b8a7c34fae6345e5343771", "branch_name": "refs/heads/master", "committer_date": "2015-02-03T09:26:07", "content_id": "db20f4d72a522f1f3808a451e9005d2071d9e11f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "40e85a95db8c30f3bd8999308efdf734fd887e85", "extensio...
stackv2
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ #ifndef __dj_include_ctype_h_ #define __dj_include_ctype_h_ #ifdef __cplusplus extern "C" { #endif #define _UPPER 0x0001 #define _LOWER 0x0002 #define _DIGIT 0x0004 #define _SPACE 0x0008 /* HT LF VT FF CR SP */ #define _PUNCT 0x0010 #define _CON...
2.015625
2
2024-11-18T21:33:35.061597+00:00
2014-05-13T12:31:23
a7fd66c7e836a6b313470e3bdf3c51601b990e54
{ "blob_id": "a7fd66c7e836a6b313470e3bdf3c51601b990e54", "branch_name": "refs/heads/master", "committer_date": "2014-05-13T12:31:23", "content_id": "26d48aa099eb77c6e97fc4581f7f6affb0981a5c", "detected_licenses": [ "MIT" ], "directory_id": "04647bbb0cf82250594da0ef58d0005a05f65419", "extension": "c"...
stackv2
/* * Ex1-24 * * Write a program to check a C program for rudimentary syntax errors like * unmatched parentheses, brackets and braces. Don’t forget about quotes, * both single and double, escape sequences, and comments. * (This program is hard if you do it in full generality.) * */ #include <stdio.h> #de...
3.21875
3
2024-11-18T21:33:36.456133+00:00
2020-05-31T11:04:00
50822d89fb8d12698f3bd9bba3532d1bd982c138
{ "blob_id": "50822d89fb8d12698f3bd9bba3532d1bd982c138", "branch_name": "refs/heads/master", "committer_date": "2020-05-31T11:04:00", "content_id": "d4467c3762e1cde609894b3334b182bdea3b4fc5", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a0aec8445d45660b0a1ff951596b0be80825b711", "extens...
stackv2
#include<graphics/opengl_es.h> #include<graphics/opengl_es2.h> #include<graphics/v3d.h> #include<graphics/gpu_mem_util.h> #include <plibc/stdio.h> #define v3d ((volatile __attribute__((aligned(4))) uint32_t*)(uintptr_t)(V3D_BASE)) #define ALIGN_128BIT_MASK 0xFFFFFF80 extern uint32_t GPUaddrToARMaddr (uint32_t BUSaddr...
2.109375
2
2024-11-18T21:33:36.745287+00:00
2022-07-29T16:59:21
b2b7167325e8115a9b763efa16e6b58048858ca5
{ "blob_id": "b2b7167325e8115a9b763efa16e6b58048858ca5", "branch_name": "refs/heads/main", "committer_date": "2022-07-29T16:59:21", "content_id": "c70c0e3fb8b7a0b5d4ff04bac97dec09f3b202a3", "detected_licenses": [ "MIT" ], "directory_id": "205d04358e969c8a1976eeef17aa15f167c6a8f4", "extension": "h", ...
stackv2
#ifndef _INC_ROTOSCOPE_STACK_H_ #define _INC_ROTOSCOPE_STACK_H_ #include <stdbool.h> #include "method_desc.h" typedef struct { rs_method_desc_t method; } rs_stack_frame_t; typedef struct { int capacity; int top; rs_stack_frame_t *contents; } rs_stack_t; void rs_stack_init(rs_stack_t *stack, unsigned int cap...
2.109375
2
2024-11-18T21:45:52.943029+00:00
2023-07-07T20:00:31
7bbef34827229c39e1c7208fa5179fd96de53e27
{ "blob_id": "7bbef34827229c39e1c7208fa5179fd96de53e27", "branch_name": "refs/heads/nova", "committer_date": "2023-07-07T20:00:31", "content_id": "e3f6c88c019134a6027dd638fe54227ab10ff183", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3f4197b01dbc1f065d759c79e603c7deb31a2599", "extension"...
stackv2
/* * Copyright 2017 Archos SA * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
2.078125
2
2024-11-18T21:45:54.530162+00:00
2017-12-26T23:41:30
c0b1ec8a6a4c0528e5fd86a5a6f97f34f29c1bf9
{ "blob_id": "c0b1ec8a6a4c0528e5fd86a5a6f97f34f29c1bf9", "branch_name": "refs/heads/master", "committer_date": "2017-12-26T23:41:30", "content_id": "d13557cd2c56c6f736f96648b6daf07149ab854f", "detected_licenses": [ "MIT" ], "directory_id": "c864ae1e927ca8f3d4c4a5af9ddba3b8eeb0aeb5", "extension": "c"...
stackv2
//display all factors for a given number #include<stdio.h> main() { int i=1,n; printf("Enter the number for which you want to find factors:"); scanf("%d",&n); printf("All factors of %d are ",n); while(i<=n) { if(n%i==0) { printf("%d ",i); } i++; } }
3.25
3
2024-11-18T21:45:55.413971+00:00
2023-08-17T09:01:57
cd9fece1d677a5ab2589429e55661fd1a79584d5
{ "blob_id": "cd9fece1d677a5ab2589429e55661fd1a79584d5", "branch_name": "refs/heads/master", "committer_date": "2023-08-17T09:01:57", "content_id": "3479a8178993cc9dc9b5f011939591957976368b", "detected_licenses": [ "MIT" ], "directory_id": "9ca19ee62e2c985be413bd12e5eb63b44833750d", "extension": "c"...
stackv2
#include "forth.h" // Here is where you can add your own extensions. // Add entries to the ccalls table, and create Forth entry points // for them with ccall. cell example1(cell a, cell b) // Returns sum of a and b { return(a+b); } char * example2(char *s) // Returns last 9 characters of string s in reverse ord...
2.625
3
2024-11-18T21:45:55.692478+00:00
2019-02-08T21:12:13
3091fb8849fbd4a651620ff85faeb9bbd71c95d1
{ "blob_id": "3091fb8849fbd4a651620ff85faeb9bbd71c95d1", "branch_name": "refs/heads/master", "committer_date": "2019-02-08T21:12:13", "content_id": "3e4c772b654e88358e029ad598cbe7a66eb9efce", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "2f99dc209ce95b57db9da303e44c5d94ac1279f3", "extens...
stackv2
/* sokFile.c */ /* copyright 1991, 1993, 1995, 1999 John B. Roll jr. */ #ifdef HAVE_FCNTL_H #include <fcntl.h> #else #include <sys/fcntl.h> #endif #include <errno.h> #include <sys/time.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/param.h> #include <netdb.h> #ifdef BER...
2.15625
2
2024-11-18T21:45:55.799770+00:00
2015-02-05T15:48:42
7f960f75d9cb80a8cced4c1e1e0f00932e260091
{ "blob_id": "7f960f75d9cb80a8cced4c1e1e0f00932e260091", "branch_name": "refs/heads/master", "committer_date": "2015-02-05T15:48:42", "content_id": "b4130c85310479f79ce38bdd0ab67f9ca70106a8", "detected_licenses": [ "MIT" ], "directory_id": "1c2b640fbefd52dca8c76787a7ab94917abe82be", "extension": "c"...
stackv2
//Copyright (C) 2015 Corwin Hansen #include "button.h"//button functions header void inittextures(void){ //initialise textures gettexture("Pointless_Button.bmp");//pointless button } void initbuttons(void){//initialise buttons b1 = setbutton(&button1);//button1 and 2 b2 = setbutton(&button2); pl = setbutton(&Po...
2.71875
3
2024-11-18T21:45:56.171386+00:00
2023-02-23T10:21:55
047e5176a6a92daf80dd1c050b5fd2d48bc8c89c
{ "blob_id": "047e5176a6a92daf80dd1c050b5fd2d48bc8c89c", "branch_name": "refs/heads/master", "committer_date": "2023-02-23T10:25:37", "content_id": "2f1fb942798582d233453523ff31ccbf0e6a4678", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4532fa078ca998d5cf207bf5998cf782600daada", "extensio...
stackv2
/* * Copyright (c) 2021 Cisco and/or its affiliates. * 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 applicabl...
2.578125
3
2024-11-18T21:45:56.316338+00:00
2018-05-20T10:23:15
8f264891bfff6c657107a69655a8bb40b7487786
{ "blob_id": "8f264891bfff6c657107a69655a8bb40b7487786", "branch_name": "refs/heads/master", "committer_date": "2018-05-20T10:23:15", "content_id": "4a87c59cf77efe16e7bab8c2640e3a6ead6f61ee", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e76b29eb9b4e9ccfdab3a8516c26cf514b40578d", "extensio...
stackv2
#include <stdio.h> #include <math.h> void transform(double source[], double target[], int n, double (*pfun)(double)); double add(double x) { return x + 10; } double mul(double x) { return x * 2; } void show(double arr[], int n); int main(void) { double source[100] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; ...
3.28125
3
2024-11-18T21:45:57.790146+00:00
2020-06-23T13:36:10
8de1d1b1335dbd84d1a6270b2471d6b14ea8bcd3
{ "blob_id": "8de1d1b1335dbd84d1a6270b2471d6b14ea8bcd3", "branch_name": "refs/heads/master", "committer_date": "2020-06-23T13:36:10", "content_id": "0cd4a36f023c64a8b8e2404a60f896d07f532ea5", "detected_licenses": [ "MIT" ], "directory_id": "0101c4a5bcca3e621849759cf17631d9cc48763f", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { float sf, vendas, comisao, sn; printf("Informe seu salário fixo, por favor."); scanf("%f",&sf); printf("Informe as vendas que voce o...
2.859375
3
2024-11-18T21:45:58.924270+00:00
2019-01-04T03:34:07
aba85b90b5b987c5b578f27222fd15cc46face19
{ "blob_id": "aba85b90b5b987c5b578f27222fd15cc46face19", "branch_name": "refs/heads/master", "committer_date": "2019-01-04T03:34:07", "content_id": "f0327736220f52b8248984ad27ef0162848ae56c", "detected_licenses": [ "MIT" ], "directory_id": "df000aee70e9c1265fa47a11b50965178c72e7d2", "extension": "c"...
stackv2
/*************************************************************************** * * main.c -- Sample program for PmodSTEP Driver * Author: Mihiro Sonoyama * Revision History: * 03/01/2019 Create (Mihiro) * ***************************************************************************/ #include "xparameters.h" #inclu...
2.53125
3
2024-11-18T21:45:58.995112+00:00
2016-10-27T11:51:05
a8b00b9131c8254086d5240ba145889b95b54997
{ "blob_id": "a8b00b9131c8254086d5240ba145889b95b54997", "branch_name": "refs/heads/master", "committer_date": "2016-10-27T11:51:05", "content_id": "ca73e5e9655679b6ef2d6ec44167cac2c5e20e9f", "detected_licenses": [ "MIT" ], "directory_id": "705845312f33a7fb9cc5246586fb03636a16015b", "extension": "c"...
stackv2
/* Copyright (c) 2008 - Chris Buckley. Permission is granted for use and modification of this file for research, non-commercial purposes. */ #include "common.h" #include "sysfunc.h" #include "trec_eval.h" #include "trec_format.h" #include <ctype.h> /* Read all retrieved results information from trec_resu...
2.1875
2
2024-11-18T21:45:59.140943+00:00
2020-01-05T12:28:06
a27cc449c68e5033494fa4db8fb689aae818b100
{ "blob_id": "a27cc449c68e5033494fa4db8fb689aae818b100", "branch_name": "refs/heads/master", "committer_date": "2020-01-05T12:28:06", "content_id": "34356a50003b4cabdecfd8704f69d195949111bf", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "bb58a472d49f4292faf93b1719471c0f934f3896", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> static void tail(FILE *f, int nlines); static unsigned char *readline(FILE *f); int main(int argc, char *argv[]) { if (argc != 2) { fprintf(stderr, "Usage: %s n\n", argv[0]); exit(1); } tail(stdin, atoi(argv[1])); exit(0); } static void tail(FILE...
3.046875
3
2024-11-18T21:45:59.368067+00:00
2021-01-10T21:34:50
96c01cb1ba17a7b1039d51f6058af2f27456c970
{ "blob_id": "96c01cb1ba17a7b1039d51f6058af2f27456c970", "branch_name": "refs/heads/main", "committer_date": "2021-01-10T21:34:50", "content_id": "f413cec3d4dea244cff23db2be333848f4b5f141", "detected_licenses": [ "MIT" ], "directory_id": "83f2362afcc7864a0ecea261f481a083ddfb6a74", "extension": "c", ...
stackv2
// Calcula a quantidade de latas de tinta e seu custo, para pintar // uma quantidade a definir de cilindros, com altura e raio também // a definir. A lata custa 50 reais e cada uma tem 5 litros. // Cada litro de tinta cobre 3 metros quadrados. #include <stdio.h> #include <stdlib.h> #include <math.h> #define PI 3.1415 ...
3.359375
3
2024-11-18T21:45:59.462035+00:00
2023-08-03T10:57:59
e420054262970239977ae751b4e26821ddf8fbc6
{ "blob_id": "e420054262970239977ae751b4e26821ddf8fbc6", "branch_name": "refs/heads/master", "committer_date": "2023-08-03T10:57:59", "content_id": "369cefb48ba0326df936a90f82d6e6bfccf39d7f", "detected_licenses": [ "ISC" ], "directory_id": "4b8fabfa6b75e82c871039ef9c9248ce7b2b85b5", "extension": "c"...
stackv2
/* Copyright (c) 2015-2019, Michael Santos <michael.santos@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVID...
2.078125
2
2024-11-18T21:45:59.553327+00:00
2021-01-23T14:51:11
d2a466835af4026b2e9db4e0bb9afd6afe481798
{ "blob_id": "d2a466835af4026b2e9db4e0bb9afd6afe481798", "branch_name": "refs/heads/master", "committer_date": "2021-01-23T14:51:11", "content_id": "dbf9b1d9538da9c4a15269c23b0e7a5c167ce342", "detected_licenses": [ "Apache-2.0" ], "directory_id": "95848257b9fe121f47d86d0aaeaf569e9a3a3b6b", "extensio...
stackv2
#include "portaudio.h" #include "pa_ringbuffer.h" #define NELEMS(x) (sizeof(x) / sizeof(x[0])) #define MAX_STREAMS (32) //#define FRAMES_PER_BUFFER (64) #define RING_BUFFER_SIZE (256) typedef struct { size_t pos; size_t len; float* buffer; } Packet; typedef struct output Output; typedef struct packetStream Pac...
2.03125
2
2024-11-18T21:46:03.870717+00:00
2019-07-31T17:19:15
949e0f50b49ddac1c8154f2dedff68e224f54801
{ "blob_id": "949e0f50b49ddac1c8154f2dedff68e224f54801", "branch_name": "refs/heads/master", "committer_date": "2019-07-31T17:19:15", "content_id": "743f7042892b157454d07bb182aaa39d68340bc8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e4958df9e3b57213aa078eb66c7677e27df4d57c", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define INT_MIN 214748364 #define MAX_INT -214748364 typedef enum {NOONE, CAP, CAR} player_type; typedef enum {PROPERTY, TAX, PUNISH, START, NONE} block_type; struct player { player_type type; int current_block_id; int owned_block_ids[11]; ...
2.59375
3
2024-11-18T21:46:04.147476+00:00
2018-09-30T09:08:41
eab38310c8c99442afab5a738b539e1812030551
{ "blob_id": "eab38310c8c99442afab5a738b539e1812030551", "branch_name": "refs/heads/master", "committer_date": "2018-09-30T09:08:41", "content_id": "681545b00e74b8fe59626c4ef0551255fedcc14e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4a83dcb782625c9fbb02c21ff933f90c455bad66", "extensio...
stackv2
#pragma once struct st_FrameData; /**************************************************************************************** 缓冲区 大小 ****************************************************************************************/ #define MAX_SIZE_OF_SAVE_BUF (1024*8) #define MAX_SIZE_OF_TEMP_BUF (1024*8) #define...
2.046875
2
2024-11-18T21:46:04.227612+00:00
2014-01-15T19:37:03
51dc9f1920cf1bb2e2cf57f1d02242679531e84f
{ "blob_id": "51dc9f1920cf1bb2e2cf57f1d02242679531e84f", "branch_name": "refs/heads/master", "committer_date": "2014-01-19T15:45:38", "content_id": "2e4ec34d3993ce63256a5015ec2067d0c0959526", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ab8ef0cf7c895dc510bb9ed9540fe830563a7ed7", "extensio...
stackv2
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software *...
2.671875
3
2024-11-18T21:46:05.134363+00:00
2019-03-27T03:57:09
3465ffb17139790e08e5a6f9f738e2fb54aead08
{ "blob_id": "3465ffb17139790e08e5a6f9f738e2fb54aead08", "branch_name": "refs/heads/master", "committer_date": "2019-03-27T03:57:09", "content_id": "3ac5539cab9d060a9af57ebfc28eb18e003ff5be", "detected_licenses": [ "MIT" ], "directory_id": "0e637ae3a9a4ea9590525fca775139d8e8bdf014", "extension": "c"...
stackv2
//remember to set head and temp as null once you complete the program #include <stdio.h> #include <stdlib.h> /* STEP 1: Create basic node of a linked list. The below code segment is used to create a structure which will contain variables data and a pointer to the same type of node. */ struct node { int data; ...
3.953125
4
2024-11-18T21:46:05.224495+00:00
2019-12-02T12:10:13
968b08c075b578fba84b49d56f9c2308db38ef5b
{ "blob_id": "968b08c075b578fba84b49d56f9c2308db38ef5b", "branch_name": "refs/heads/master", "committer_date": "2019-12-02T12:10:13", "content_id": "f050b9e25c6f021b18c97359943a26a88faaafcc", "detected_licenses": [ "Unlicense" ], "directory_id": "b1a79111d93218fc11b75580848e37eecede720a", "extension...
stackv2
#include <stdlib.h> #include <stdio.h> #include "lista_enc.h" #include "no.h" #include "fila.h" #define FALSO 0 #define VERDADEIRO 1 struct filas { lista_enc_t *dados; }; //cria uma fila generica fila_t * cria_fila (void) { fila_t * fila = malloc(sizeof(fila_t)); fila->dados = criar_lista_enc(); return fila; ...
2.765625
3
2024-11-18T21:46:05.418393+00:00
2020-07-22T08:02:15
335dfc547324abf626bb08b74037dbb5aa9f37b4
{ "blob_id": "335dfc547324abf626bb08b74037dbb5aa9f37b4", "branch_name": "refs/heads/master", "committer_date": "2020-07-22T08:02:15", "content_id": "723dad64ee7fbc4371a9c987d7df04f417a731c1", "detected_licenses": [ "MIT" ], "directory_id": "aa9fd315f52855b8a5d3e0c5d25b31dbc169465b", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> /** * PROCESO DE CREACIÓN DE UN NODO: * 1. Se tiene que crear primero el la estructura de nodo que se quiera, AST_Nodo_Decl, ... * 2. Despues, creamos la función que reciba los parámetros correspondientes a la estructura, menos el type que se mete d...
3.203125
3
2024-11-18T21:46:05.508477+00:00
2012-01-25T08:03:12
b23adf057d54efa1dd480c6b145a795addf65568
{ "blob_id": "b23adf057d54efa1dd480c6b145a795addf65568", "branch_name": "refs/heads/master", "committer_date": "2012-01-25T08:09:35", "content_id": "e3b28b1f84ba8b1a71ac466bc12bb32a674bc0f9", "detected_licenses": [ "MIT" ], "directory_id": "70beca55230c62c5610fadba8533aadcb29a408f", "extension": "c"...
stackv2
// garlib.c : the core functions of the GAR library. #include "gar.h" #include "garlib.h" #include "garaux.h" #include <string.h> struct gar { gar_gfile_t gf; }; /// Open the specified (generalized) file as an archive. gar_t *gar_archive_gopen(gar_gfile_t *gf, jmp_buf _env) { jmp_buf env; gar_t *volatile G =...
2.59375
3
2024-11-18T21:46:05.600626+00:00
2023-07-06T15:31:30
c54dd3198e89c987c6bd67aa96ace75131c7fd28
{ "blob_id": "c54dd3198e89c987c6bd67aa96ace75131c7fd28", "branch_name": "refs/heads/main", "committer_date": "2023-07-06T15:31:30", "content_id": "b0e66f3fa1fda59290e3effd922cafa4a74c21e2", "detected_licenses": [ "MIT" ], "directory_id": "ecea7c1f53661a57736d9b3f6deec97712ff22fc", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <unistd.h> const size_t allocsize = 0x40; int main(){ fprintf( stderr, "\n" "This attack is intended to have a similar effect to the unsorted_bin_attack,\n" "except it works with a small allocation size (allocsiz...
3.28125
3
2024-11-18T21:46:05.855961+00:00
2017-01-23T09:40:30
65787937747bd270df5250d546c9a306b0fd4d79
{ "blob_id": "65787937747bd270df5250d546c9a306b0fd4d79", "branch_name": "refs/heads/master", "committer_date": "2017-01-23T09:40:30", "content_id": "540a25929f7895c2835fcdbe3ac915edbe12e2f2", "detected_licenses": [ "MIT" ], "directory_id": "a25a2ed5e8e2dc7ffd9f2093d36a4b7f0d630d56", "extension": "c"...
stackv2
#include <stdio.h> void demo_error() { int value = 5; printf("Here's a print statement before quitting.\n"); if(1) { printf("returning; there should be no further output.\n"); return; } printf("This statement should not print, and does not.\n"); switch(value) { case 5: printf("case ...
3.265625
3
2024-11-18T21:46:06.421251+00:00
2023-07-12T07:38:29
676679443ebd2d7b94df611fb683692af30db1ad
{ "blob_id": "676679443ebd2d7b94df611fb683692af30db1ad", "branch_name": "refs/heads/master", "committer_date": "2023-07-12T07:38:29", "content_id": "86c84d2f44b9cae7a6371109e3f75f22e15ead12", "detected_licenses": [ "MIT" ], "directory_id": "52c8ed39b32ccc7c0673278c1adea3638797c9ff", "extension": "h"...
stackv2
#ifndef __BCD_H__ #define __BCD_H__ #ifdef __cplusplus extern "C" { #endif static inline unsigned char bcd2bin(unsigned char x) { return (((x) & 0x0f) + ((x) >> 4) * 10); } static inline unsigned char bin2bcd(unsigned char x) { return ((((x) / 10) << 4) + (x) % 10); } #ifdef __cplusplus } #endif #endif /* __BCD_...
2.125
2
2024-11-18T21:46:06.865186+00:00
2018-04-20T10:03:21
1dd20554b2f988cbfbbc188557a5d01bad39f905
{ "blob_id": "1dd20554b2f988cbfbbc188557a5d01bad39f905", "branch_name": "refs/heads/master", "committer_date": "2018-04-20T10:03:21", "content_id": "6385e77fb90f21c0509fc74553448ed43090af84", "detected_licenses": [ "MIT" ], "directory_id": "fd1307d570a56f27075d02e9d0b52745cb41244a", "extension": "c"...
stackv2
#include<unistd.h> #include "apue.h" #define BUF_SIZE 4096 //get cur dir int main(int argc, char *argv[]) { char buf[BUF_SIZE]; if(getcwd(buf, BUF_SIZE) == NULL) err_sys("getcwd"); printf("path: %s\n", buf); if(chdir("/tmp") == -1) err_sys("chdir()"); if(getcwd(buf, BUF_SIZE) == NULL) err_sys("g...
2.046875
2
2024-11-18T21:46:08.227252+00:00
2016-08-22T02:36:22
810be49aa183cd7ccc9a33808cb1489b1932e535
{ "blob_id": "810be49aa183cd7ccc9a33808cb1489b1932e535", "branch_name": "refs/heads/master", "committer_date": "2016-08-22T02:36:22", "content_id": "cfd8c4925b315c826358478e50282c6d6644f172", "detected_licenses": [ "MIT" ], "directory_id": "91a31f9e64893a12f88234340eaa4ad88730da0d", "extension": "h"...
stackv2
//-------------------------------------------------------------------------------- // RGBA/BGRA Format Sub Routines // Copyright (C) 2005 kei mesuda // (http://www.yomogi.sakura.ne.jp/~si) //-------------------------------------------------------------------------------- #ifndef _CORE_RGBA_INCLUDED #define...
2.203125
2
2024-11-18T21:46:08.610598+00:00
2023-04-26T07:31:29
e671270380f7a74768133021c5b6ba88c4d0589b
{ "blob_id": "e671270380f7a74768133021c5b6ba88c4d0589b", "branch_name": "refs/heads/master", "committer_date": "2023-04-26T07:31:29", "content_id": "0902c7e9057a5d65d05e13641f3ff5e8f1a8d254", "detected_licenses": [ "MIT" ], "directory_id": "8023a4ffb780d18f77766744668e05a246ed7f8e", "extension": "c"...
stackv2
#include "luacode.h" #include "../common/luaobject.h" #include "../common/luastate.h" #include "../vm/luagc.h" #include "../common/luatable.h" #include "../vm/luavm.h" #include "../common/luamem.h" #include "../vm/luaopcodes.h" #include "../common/luastring.h" #define MAININDEX 255 static int addk(FuncState* fs, TVal...
2.1875
2
2024-11-18T21:46:08.748190+00:00
2014-10-28T13:11:40
669765065d85f6e8f9a32f35d625e843d4bc04c1
{ "blob_id": "669765065d85f6e8f9a32f35d625e843d4bc04c1", "branch_name": "refs/heads/master", "committer_date": "2014-10-28T13:11:40", "content_id": "57baf39fe9115c44b8fd7e5b74c52e608ae8bed8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "054b97a98c6c87bd9805ef1cb1d1d23d4ea3bcc9", "extensio...
stackv2
#include "eg.h" #include "ag.h" #include "eg_opencl.h" #include "parser.h" #include "gramatica.h" #include "utils.h" void imprime_melhor(individuo * pop, t_regra * gramatica){ int indice_melhor; #ifdef ELITE if(ELITE>0){ if(pop[0].aptidao > pop[ELITE].aptidao){ indice_melhor = 0; } else{ indice_mel...
2.53125
3
2024-11-18T21:46:08.854635+00:00
2013-11-14T13:45:40
5f7bbbd1294dec3d982aa29bdbf7c8909a72e6d4
{ "blob_id": "5f7bbbd1294dec3d982aa29bdbf7c8909a72e6d4", "branch_name": "refs/heads/master", "committer_date": "2014-03-17T11:38:57", "content_id": "0112012c814fa5c0bd76101e04ba9b16abdaf451", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "1e30f099b943619b733dddac436dfad444d1ae30", "extens...
stackv2
/**----------------------------------------------------------------- * @brief * Raw socket. * * @file * raw_socket.h * * October 2007, Donghai Ma * * Copyright (c) 2007 by cisco Systems, Inc. * All rights reserved. *------------------------------------------------------------------ */ #ifndef _RAW_SOCKET_H...
2.171875
2
2024-11-18T21:46:08.998170+00:00
2020-03-29T02:57:35
f3967c909e640b06dd3ed9a90e0d7883e21945a0
{ "blob_id": "f3967c909e640b06dd3ed9a90e0d7883e21945a0", "branch_name": "refs/heads/master", "committer_date": "2020-03-29T02:57:35", "content_id": "8af6830b0d754b906279c5e261728c0d09ba8b77", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "632f8fe0860db50cf7c5413d53fa7dfbd351a8c8", "extens...
stackv2
/** * Windows API Compiler Intrinsics Library * Last modified: 2009/01/04 * Copyright (C) Kai Liu. All rights reserved. * * These are intrinsic definitions that need to be made prior to the inclusion * of windows.h. **/ #ifndef __WININTRINSICS_H__ #define __WININTRINSICS_H__ #ifdef __cplusplus extern "C" { #e...
2.09375
2
2024-11-18T21:46:09.285409+00:00
2020-06-07T10:18:49
7ae6e7cd3f5037ad6335d1f92b9e5d8c84835561
{ "blob_id": "7ae6e7cd3f5037ad6335d1f92b9e5d8c84835561", "branch_name": "refs/heads/master", "committer_date": "2020-06-07T10:18:49", "content_id": "161f83340e40321f8c5aed35c92b9fdc0813e028", "detected_licenses": [ "MIT" ], "directory_id": "a9d7d557996805b643f116729d3c90caf3aba5a9", "extension": "c"...
stackv2
#include <window/rect.h> #include <layer/draw.h> int gui_window_draw_rect(gui_window_t *window, int x, int y, int width, int height, GUI_COLOR color) { if (!window) return -1; layer_draw_rect(window->layer, window->x_off + x, window->y_off + y, width, height, color); return 0; } int gui_window_dra...
2.09375
2