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-18T17:55:23.219805+00:00
2021-04-29T13:54:41
d09fcdf1a27b8bc038d5283636241f72df2d0963
{ "blob_id": "d09fcdf1a27b8bc038d5283636241f72df2d0963", "branch_name": "refs/heads/master", "committer_date": "2021-04-30T06:13:20", "content_id": "5f1288abdc165e21b26842a032bf32d5b8c02997", "detected_licenses": [ "Apache-2.0" ], "directory_id": "969e182984952357a8c04365394d319ceac9bfd9", "extensio...
stackv2
/********************************** (C) COPYRIGHT ******************************* * File Name : main.c * Author : WCH * Version : V1.0.0 * Date : 2020/04/30 * Description : Main program body. ***************************************************************************...
2.609375
3
2024-11-18T17:55:24.574495+00:00
2020-01-30T15:52:16
c45c1157497baecce10404af7c4d2d1c664336e2
{ "blob_id": "c45c1157497baecce10404af7c4d2d1c664336e2", "branch_name": "refs/heads/master", "committer_date": "2020-01-30T15:52:16", "content_id": "3d5b0c702cc57bb04ae266e75cb913661d7a6122", "detected_licenses": [ "MIT" ], "directory_id": "40de3da30239862f11a946166b50438174c2fd4e", "extension": "c"...
stackv2
// Haste // // 12.04.02 - Garath int get_time(string str) { return random(2)+10; } int ep_cost() { return 150; } status resolve_skill(string str) { int dama; write("You mumble 's"'s stomach with a nasty sound!\n"); tell_object(target, this_player()->query_name()+ " brutally kicks you in the stomac...
2.0625
2
2024-11-18T17:55:24.637287+00:00
2017-05-10T09:50:21
18049c9864fdc075c49635c971b0aaa20003054b
{ "blob_id": "18049c9864fdc075c49635c971b0aaa20003054b", "branch_name": "refs/heads/arm", "committer_date": "2017-05-10T14:22:48", "content_id": "9ecb3d8591c00b8e686c215ce4cfa84eeb4fe76e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6af50a4b5b928211880dd9f1c6ce92c2afea828b", "extension":...
stackv2
/* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <stdbool.h> #include <zephyr.h> #include <tc_util.h> #include <misc/util.h> #include <misc/nano_work.h> #define NUM_TEST_ITEMS 6 /* Each work item takes 100ms */ #define WORK_ITEM_WAIT 100 /* * Wait 50ms between wor...
2.703125
3
2024-11-18T17:55:24.781764+00:00
2017-04-23T09:47:28
fbd4c07c99bdb98651f8cd5cbff0481cd1402a51
{ "blob_id": "fbd4c07c99bdb98651f8cd5cbff0481cd1402a51", "branch_name": "refs/heads/master", "committer_date": "2017-04-23T09:47:28", "content_id": "8536938a9b28628e02ca93c203f8cdd7153103a4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ea063b8bf34f7ef86050498a890be7b6b150a2e7", "extensio...
stackv2
#include "foundation/util/ikvmemcache.h" #include "foundation/container/idict.h" #include "foundation/container/ireflist.h" /* make a cache */ ikvmemcache* ikvmemcachemake(size_t capacity) { ikvmemcache *cache = irefnew(ikvmemcache); cache->dict = idictmake(capacity>>3); cache->lru = ireflistmake(); re...
2.265625
2
2024-11-18T17:55:24.869021+00:00
2016-04-26T09:14:42
55621d96769c73c6c6ef9bc2b25f90f82cab4b7c
{ "blob_id": "55621d96769c73c6c6ef9bc2b25f90f82cab4b7c", "branch_name": "refs/heads/master", "committer_date": "2016-04-26T09:14:42", "content_id": "f620eadfdb2b418df2b8b1b75f8698aa5f150b07", "detected_licenses": [ "MIT" ], "directory_id": "cdff64d5f1586e6de5f125c162f4807bc1b4ea4b", "extension": "h"...
stackv2
/* ============================================================================ Name : io.h Author : Qiniu.com Copyright : 2012(c) Shanghai Qiniu Information Technologies Co., Ltd. Description : ============================================================================ */ #ifndef QINIU_IO_H #de...
2
2
2024-11-18T17:55:24.932970+00:00
2013-04-05T05:16:08
176f5628ee7faee66abf850a0a04fda2039d6506
{ "blob_id": "176f5628ee7faee66abf850a0a04fda2039d6506", "branch_name": "refs/heads/master", "committer_date": "2013-04-05T05:16:08", "content_id": "9824a4b7f1c7d5e038ad5d38268e3b5914de93d1", "detected_licenses": [ "MIT" ], "directory_id": "f59ac8cc7a86c3010c539aa1ad67f1ceb5f6994c", "extension": "c"...
stackv2
/** * This file contains unit tests for the `UNSETF` family of macros. */ #include <cisp/unsetf.h> #include <cisp/defclass.h> #include <cisp/setf.h> #define type CISP_DEFCLASS((setf b b) (setf c c) (setf d ~ ~ ~)) #define CISP_TOKEN_field (f i e l d) #define CISP_TOKEN_field2 (f i e l d 2) [[[ CISP_UNSETF(type, b...
2.453125
2
2024-11-18T17:55:25.066493+00:00
2019-10-07T11:25:06
c0e3670c9fa05f1ec3607dbb56a0d14a4f834b19
{ "blob_id": "c0e3670c9fa05f1ec3607dbb56a0d14a4f834b19", "branch_name": "refs/heads/version1", "committer_date": "2019-10-07T11:25:06", "content_id": "d9dd8723a8b9365e9abe445aa2af7fb8bb072c31", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "e33831bae98bfc2191b7044f6df445c5f51f1226", "exte...
stackv2
#include <stdio.h> int main() { int pid; pid = fork(); printf("%d \n",pid); }
2
2
2024-11-18T17:55:25.297544+00:00
2023-09-02T14:55:31
abe06e108636f38a56fa75b8c95613c8ba4edd6f
{ "blob_id": "abe06e108636f38a56fa75b8c95613c8ba4edd6f", "branch_name": "refs/heads/master", "committer_date": "2023-09-02T14:55:31", "content_id": "66b06d1160fbc72c0b81a369c6dd48038ddff62e", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca", "extens...
stackv2
#ifndef STDMATH #define STDMATH /* http://www.gnu.org/software/glibc/) */ #define M_E 2.7182818284590452354 /* e */ #define M_LOG2E 1.4426950408889634074 /* log_2 e */ #define M_LOG10E 0.43429448190325182765 /* log_10 e */ #define M_LN2 0.69314718055994530942 /* log_e 2 */ #define M_LN10 2.30258509299404568402 /* l...
2.375
2
2024-11-18T17:55:25.706679+00:00
2023-07-14T10:13:16
5041033361d6b465fdc219e4aa6c4cb0264f3186
{ "blob_id": "5041033361d6b465fdc219e4aa6c4cb0264f3186", "branch_name": "refs/heads/master", "committer_date": "2023-07-14T10:13:16", "content_id": "e74e4f75dbe5a0ffa2c63970c1b1ac53af02afac", "detected_licenses": [ "Zlib", "Apache-2.0" ], "directory_id": "35ddd0f3036ac38423ded0435cd4b595f5dab31c",...
stackv2
/* * it's a good idea to keep this below 4k, to prevent * any and all kinds of overlapping load insanity * * the global variables and register variables are to * get the footprint below 4k. */ #include <types.h> #include <sys/fs.h> #include <sys/dir.h> #include <obj.h> #ifdef __STDC__ #define INIT #else #define ...
2.625
3
2024-11-18T17:55:26.150093+00:00
2021-08-29T05:54:51
a7c8d5d632c47d91139b265ccd293a06c86f4d30
{ "blob_id": "a7c8d5d632c47d91139b265ccd293a06c86f4d30", "branch_name": "refs/heads/master", "committer_date": "2021-08-29T05:54:51", "content_id": "926957b5b908f0c1dcab29dd895ea183a332b932", "detected_licenses": [ "MIT" ], "directory_id": "c73d11b2c6a110a0e65ce6ab8934cac03996bdc3", "extension": "c"...
stackv2
/** * @file GoFeature.c * * @internal * Copyright (C) 2017-2020 by LMI Technologies Inc. * Licensed under the MIT License. * Redistributed files must retain the above copyright notice. */ #include <GoSdk/Tools/GoFeatures.h> #include <GoSdk/Tools/GoFeature.h> #include <GoSdk/GoSensor.h> #include <GoSdk/GoUtil...
2
2
2024-11-18T17:55:26.361339+00:00
2019-07-23T22:46:10
18c31810d3f84945f8ee7ec295b60801353269e2
{ "blob_id": "18c31810d3f84945f8ee7ec295b60801353269e2", "branch_name": "refs/heads/master", "committer_date": "2019-07-24T00:27:08", "content_id": "1d34603c484cfb6df54f859c615dcac8de50c9e7", "detected_licenses": [ "MIT" ], "directory_id": "69948b927477544c250ee6dd5bbd8fed26e06649", "extension": "c"...
stackv2
#include "ReentrantLock.h" #include <pthread.h> #include <errno.h> #define import #include "concurrent/Condition.h" #include "ReentrantLockCondition.h" /* @startuml(id=ReentrantLock) !include concurrent/Lock.c !include concurrent/Condition.c namespace aeten.concurrent.posix { class ReentrantLock implements aeten.co...
2.265625
2
2024-11-18T17:55:26.414032+00:00
2016-01-28T10:37:01
3a741359bc8c00a08383b50dbd389abf06634522
{ "blob_id": "3a741359bc8c00a08383b50dbd389abf06634522", "branch_name": "refs/heads/master", "committer_date": "2016-01-28T10:37:01", "content_id": "b072afae28934a6196c757f55b735dd9504a4be0", "detected_licenses": [ "MIT" ], "directory_id": "2a3293027967906f6f6fcdb94167ae155127a6ba", "extension": "h"...
stackv2
#ifndef __OAKBOOT_PRIVATE_H__ #define __OAKBOOT_PRIVATE_H__ ////////////////////////////////////////////////// // OakBoot by Erik Kettenburg/Digistump // Based on rBoot open source boot loader for ESP8266. // Copyright 2015 Richard A Burton // richardaburton@gmail.com // See license.txt for license terms. ////////////...
2.1875
2
2024-11-18T17:55:27.204585+00:00
2023-08-03T22:35:37
2fbf4748efbc0e0767b1847570ad7afa6331c345
{ "blob_id": "2fbf4748efbc0e0767b1847570ad7afa6331c345", "branch_name": "refs/heads/master", "committer_date": "2023-08-03T22:35:37", "content_id": "a3e4d5fc9c95f4729fdaf129221fcbe20638be2d", "detected_licenses": [ "Linux-OpenIB" ], "directory_id": "9bfd61f3ceaf77129b8c7b8441f1c129b2ecc3ea", "extens...
stackv2
/******************************************************************************\ * * Copyright 2019-2020 Hewlett Packard Enterprise Development LP. * SPDX-License-Identifier: Linux-OpenIB ******************************************************************************/ #include <unistd.h> #include <sys/socket.h> #i...
2.4375
2
2024-11-18T17:55:27.941870+00:00
2023-04-09T11:12:27
007be48a673a685eff0bf63100e43e220a78cdc7
{ "blob_id": "007be48a673a685eff0bf63100e43e220a78cdc7", "branch_name": "refs/heads/master", "committer_date": "2023-04-09T11:12:27", "content_id": "e13c4f219fd8ad203792e9f82a6ea50367e1928b", "detected_licenses": [ "MIT" ], "directory_id": "4bd8f24c44fb4142e002a0463141c7ff33f3c5cc", "extension": "c"...
stackv2
/************************************************************************* * orbit_plot1 * To plot the curves rho(epoch), theta(epoch) and XY orbits in the sky plane * measurements only (and/without the orbit). * * * JLP * Version 12/01/2012 **************************************************************************/ #...
2.21875
2
2024-11-18T17:55:28.114093+00:00
2020-02-27T18:27:43
9e9535fa0fae586e1307fe54bcbf54629e870dc5
{ "blob_id": "9e9535fa0fae586e1307fe54bcbf54629e870dc5", "branch_name": "refs/heads/master", "committer_date": "2020-02-27T18:27:43", "content_id": "869eac39113196edd88e20a4a7a021cfe5d3184b", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "da87c3c4568baf73eafba3bdd0398b72...
stackv2
/* * File %dpp/codes/cs105.c * * CS_ET8: entity translation functions * * written: 1995-12-10: g.gonter@ieee.org * latest update: 1995-12-10 * */ #include <stdlib.h> #include <gg/fileio.h> #include <gg/strings.h> #include <gg/codes.h> /* --------------------------------------------------------------...
2.296875
2
2024-11-18T17:55:28.406679+00:00
2018-07-30T17:39:13
2ba1b269ce64b5a4c8fbb3e7291e5ebac1aa4af3
{ "blob_id": "2ba1b269ce64b5a4c8fbb3e7291e5ebac1aa4af3", "branch_name": "refs/heads/master", "committer_date": "2018-07-30T17:39:13", "content_id": "1ca9e2be792f295a4f7b722cf14c9bc96cf8cdf9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "34f975a78fb2c80e8b82e327815dcf8ab283833e", "extensio...
stackv2
/******************************************************************************* * Copyright 2017 CPqD. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http...
2.296875
2
2024-11-18T17:55:28.846108+00:00
2019-12-20T17:13:43
52547dd91136cb9233baaf7f17f16ad404c86fa5
{ "blob_id": "52547dd91136cb9233baaf7f17f16ad404c86fa5", "branch_name": "refs/heads/master", "committer_date": "2019-12-20T17:13:43", "content_id": "c7ef04e4b11c76d00327fb1f94fb7ab49e079a98", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1b1c347f119954e54a9ccfa4209323ed3f2095ae", "extensio...
stackv2
// // Copyright 2019 Tobias Strauch, Munich, Bavaria, Germany // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // #include "system.c" #define CYCLE 1000 #define OFFSET CYCLE / 64 void gpio6(int tag, int thisOffset) { int t, pwm, dir; t = 0; dir = 1; p...
2.234375
2
2024-11-18T17:55:32.702256+00:00
2016-07-01T12:52:14
c007f25637259a9eea9a95ad214bcf689afccbea
{ "blob_id": "c007f25637259a9eea9a95ad214bcf689afccbea", "branch_name": "refs/heads/master", "committer_date": "2016-07-01T12:52:14", "content_id": "ab1641d411899f9a87861b92e81e1a2333995e98", "detected_licenses": [ "CC0-1.0" ], "directory_id": "f47e591253b77e813ae22748cc157521cceef9c0", "extension":...
stackv2
/** * \file * * \brief Empty user application template * */ /* * Include header files for all drivers that have been imported from * Atmel Software Framework (ASF). */ #include <avr/io.h> #include <util/delay.h> main (void) { DDRA=0xFF; while(1) { PORTA=0b01100000; _delay_ms(300); PORTA=0b00000000; ...
2.15625
2
2024-11-18T18:30:21.510427+00:00
2018-10-05T02:00:55
6bf6a21b108c9e0e396c40da56182b48d1b8698f
{ "blob_id": "6bf6a21b108c9e0e396c40da56182b48d1b8698f", "branch_name": "refs/heads/master", "committer_date": "2018-10-05T02:00:55", "content_id": "9562bc5ab35a918163a67897dcd9dc06e61c4262", "detected_licenses": [ "MIT" ], "directory_id": "06f999df1212b9e0583986728698366509e421c9", "extension": "c"...
stackv2
#include <stdio.h> //for sprintf #include <stdlib.h> #include <string.h> #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include "can_api.h" #include "log_uart.h" //Global flag to transmit CAN volatile uint8_t gFlag = 0x00; volatile uint8_t msg_count = 0x00; uint8_t clock_prescale = 0x0A; volat...
2.203125
2
2024-11-18T18:30:21.698864+00:00
2017-03-27T19:54:13
238fca2256bc40ca693a0c94ce03106f78f1e01a
{ "blob_id": "238fca2256bc40ca693a0c94ce03106f78f1e01a", "branch_name": "refs/heads/master", "committer_date": "2017-03-27T19:54:13", "content_id": "8252e1a609b66971486bfb07333e29041bb00938", "detected_licenses": [ "Apache-2.0" ], "directory_id": "170cd9223fd9e6f5fa60c1f405cd74705efc0703", "extensio...
stackv2
#include <stdio.h> #include <stdbool.h> #include <Ecore.h> #include <EWebKit_Extension.h> #include <JavaScriptCore/JavaScript.h> static double number_static_prop = 0.0; static JSClassRef example_class_ref = NULL; typedef struct _Example_Class_Data { Ecore_Timer *timer; JSContextRef ctx; JSValueRef timeout_cb...
2.453125
2
2024-11-18T19:20:29.533737+00:00
2023-08-01T17:54:29
37b85fb069e54d84a488b86879362302ac342da7
{ "blob_id": "37b85fb069e54d84a488b86879362302ac342da7", "branch_name": "refs/heads/master", "committer_date": "2023-08-01T17:54:29", "content_id": "29e33acf2632c7df854dd7b3728d103075c741ea", "detected_licenses": [ "MIT" ], "directory_id": "909df5e29f5249b7ee1b12a3668148f8b5436fd4", "extension": "c"...
stackv2
#include <fudge.h> #include <abi.h> static void onmain(unsigned int source, void *mdata, unsigned int msize) { channel_send(option_getdecimal("wm-service"), EVENT_WMMAP); while (channel_process()); channel_send(option_getdecimal("wm-service"), EVENT_WMUNMAP); } static void onwminit(unsigned int source...
2.0625
2
2024-11-18T19:20:29.585262+00:00
2021-07-18T09:39:47
bb075689da411a43d7af47c84aee708325e49185
{ "blob_id": "bb075689da411a43d7af47c84aee708325e49185", "branch_name": "refs/heads/master", "committer_date": "2021-07-18T09:39:47", "content_id": "d3c2ec979dbb8f5f43822e548be21856259ec28b", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7a2a92de0b46c00f4ecbbfb7bed5e798a94d38cb", "extensio...
stackv2
/*********************************************** * @addtogroup CITS * @{ * @file : thread.h * @brief : * @author: wangshaobo * @email : wangshaobo@nebula-link.com * @date : 2019-05-10 10:43:51 ***********************************************/ //-------------------------------------------------- // Copyright (...
2.4375
2
2024-11-18T19:22:10.758460+00:00
2014-03-21T18:19:47
60c7721f4ae91d29fe58f66b340813273a5198cd
{ "blob_id": "60c7721f4ae91d29fe58f66b340813273a5198cd", "branch_name": "refs/heads/master", "committer_date": "2014-03-21T18:19:47", "content_id": "568d290e8530a0f9242ba8d02268abf6070cc79d", "detected_licenses": [ "Unlicense" ], "directory_id": "fd64e83a7eacd4879a4f8d42fe40e56210432174", "extension...
stackv2
#include "bfin_core.h" #include "isr.h" #include "init.h" //------ global variables initialized here // SPORT0 DMA transmit buffer volatile s32 iTxBuf[4]; // SPORT0 DMA receive buffer volatile s32 iRxBuf[4]; //----- function definitions // initialize clocks void init_clocks(void) { //// check: // const u16 pll_...
2.109375
2
2024-11-18T19:22:10.846010+00:00
2021-04-28T03:25:53
dec6cb241c0490533f846712f7ca305253aca153
{ "blob_id": "dec6cb241c0490533f846712f7ca305253aca153", "branch_name": "refs/heads/master", "committer_date": "2021-04-28T03:25:53", "content_id": "1846ff7a9c6924dc233911b4a099982dc8a61eb9", "detected_licenses": [ "MIT" ], "directory_id": "5b024145f586e1674a753e2fa1e25c77430ccc87", "extension": "c"...
stackv2
/* * File : LCD_SF.C * Author : Joshua Fain * Host Target : ATMega1280 * LCD : Gravitech 20x4 LCD with built-in HD44780 controller * License : MIT * Copyright (c) 2020, 2021 * * Implementation of LCD_SF.H */ #include <stdint.h> #include <avr/io.h> #include <util/delay.h> #include "lcd_...
2.46875
2
2024-11-18T19:43:11.841001+00:00
2016-04-26T21:06:52
da4597d69feac07038c1dca2613f134c7fd1899d
{ "blob_id": "da4597d69feac07038c1dca2613f134c7fd1899d", "branch_name": "refs/heads/master", "committer_date": "2016-04-26T21:06:52", "content_id": "024e2eb7b7bbd30cbd0b27b918428b25bcf162c4", "detected_licenses": [ "MIT" ], "directory_id": "19941e65b1ede67bd7c7775dbb5819398ec65281", "extension": "c"...
stackv2
ardp_status_t ardp_parser_create(); ardp_status_t ardp_parser_init( ardp_parser_config_t *cfg ); ardp_status_t ardp_parser_consume( ardp_token_t token ); ardp_status_t ardp_parser_set_parse_handler( void *fc ); ardp_status_t ardp_parser_set_error_handler( void *fc ); ardp_status_t ardp_parser_destroy(); ardp_parser_...
2.25
2
2024-11-18T19:43:11.911301+00:00
2008-08-08T16:15:41
5d7530540b9d0aa99ec7d20856c20265018836ac
{ "blob_id": "5d7530540b9d0aa99ec7d20856c20265018836ac", "branch_name": "refs/heads/master", "committer_date": "2008-08-08T16:15:41", "content_id": "ae2680e9c2c1d71def1c5d2837b8c3165cfab5da", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "06e0575d2518c9f17bcbbdf7ec47ebd95ad02020", "extens...
stackv2
/* gcc -g -lm -o ga ga.c * $Id: ga.c,v 1.5 2003/08/21 22:13:54 rjoseph Exp $ */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <math.h> #include <time.h> #include <string.h> typedef unsigned char uchar; int ga_pop_sort_cmp(con...
2.140625
2
2024-11-18T20:08:13.930756+00:00
2018-04-10T11:28:09
1f00b4411fd11f5fbe1b3e76389a0f72db95bf98
{ "blob_id": "1f00b4411fd11f5fbe1b3e76389a0f72db95bf98", "branch_name": "refs/heads/master", "committer_date": "2018-04-10T11:28:09", "content_id": "4e63876ded0301d81ce96c1a6bf392fc029de1dd", "detected_licenses": [ "MIT" ], "directory_id": "ec2396aea00cc397d598ae1fba67b667a99f8862", "extension": "c"...
stackv2
/* ** EPITECH PROJECT, 2018 ** init_bis ** File description: ** init_bis */ #include "../include/my.h" music_t *init_music(void) { music_t *music = malloc(sizeof(music_t)); music->song = sfMusic_createFromFile("sound/music.ogg"); sfMusic_setLoop(music->song, sfTrue); music->hit = sfMusic_createFromFile("sound/hi...
2.25
2
2024-11-18T20:08:14.207006+00:00
2017-08-19T22:51:56
cd1c795f1410b9ac2e3cf466dc8538de61f90248
{ "blob_id": "cd1c795f1410b9ac2e3cf466dc8538de61f90248", "branch_name": "refs/heads/master", "committer_date": "2017-08-19T22:51:56", "content_id": "5fd6137f8833aa0593227756b246755ecb03b2f9", "detected_licenses": [ "MIT" ], "directory_id": "d965c5488bc5066e127453fc5e45d333470302fc", "extension": "c"...
stackv2
#include "sf2d.h" #include <stdlib.h> #include <math.h> static sf2d_batch* current_batch = NULL; sf2d_batch* sf2d_create_batch(int size) { sf2d_batch* rt = calloc(1, sizeof(*rt)); if (!rt) return NULL; // Each texture drawn will be 2 triangles each with 3 vertices. rt->size = size * 6 * sizeof(sf2d_ve...
2.6875
3
2024-11-18T18:08:18.759805+00:00
2017-01-24T08:07:02
d0a40c3aecdc945d1566f0b1d104d48b1720feb2
{ "blob_id": "d0a40c3aecdc945d1566f0b1d104d48b1720feb2", "branch_name": "refs/heads/master", "committer_date": "2017-01-24T08:07:02", "content_id": "cb01d6c22b63e6d54d12618e183fee9b7b438cab", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3d2d0b20ef6adaa554e9ecf1b958cf6620310f97", "extensio...
stackv2
#define LOG_TAG "dslink" #include "dslink/log.h" #include <argtable3.h> #include <string.h> #include <wslay/wslay.h> #include <jansson.h> #include "dslink/handshake.h" #include "dslink/utils.h" #include "dslink/ws.h" #define SECONDS_TO_MILLIS(count) count * 1000 #define DSLINK_RESPONDER_MAP_INIT(var, type) \ re...
2.078125
2
2024-11-18T18:09:49.683074+00:00
2023-05-02T12:17:20
e0626e5005c915af936f55ce75aad1046fffc1f4
{ "blob_id": "e0626e5005c915af936f55ce75aad1046fffc1f4", "branch_name": "refs/heads/master", "committer_date": "2023-05-02T12:17:20", "content_id": "f157ca45a9689a0379f68f159078da74a3706fad", "detected_licenses": [ "MIT" ], "directory_id": "512adc0ecb1b8a2dba6116a4366f7207a6dee4e7", "extension": "c"...
stackv2
//ip.h #ifndef _IP_H #define _IP_H #include <stdio.h> #include <signal.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/ip_icmp.h> #include <netdb.h> #include <stdlib.h> #include <string.h> #define PACKET_SIZE ...
2.5
2
2024-11-18T18:09:57.108747+00:00
2020-04-14T23:31:04
1f0ab16890726ef06c408ab7ae8f6e5f8a73ae71
{ "blob_id": "1f0ab16890726ef06c408ab7ae8f6e5f8a73ae71", "branch_name": "refs/heads/master", "committer_date": "2020-04-14T23:31:04", "content_id": "6c46e37e9c8d1543a373a7e934f984afed9c1483", "detected_licenses": [ "MIT" ], "directory_id": "3f404df7edbee4f5f0491afaa69c10b43acd5bb8", "extension": "h"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* filler.h :+: :+: :+: ...
2.078125
2
2024-11-18T18:20:15.841715+00:00
2013-10-06T22:39:12
a50332579a5cf9017dd24ffe5c16662ca66f1b0b
{ "blob_id": "a50332579a5cf9017dd24ffe5c16662ca66f1b0b", "branch_name": "refs/heads/master", "committer_date": "2013-10-06T22:39:12", "content_id": "2cfce66a09334199d442a2fcb30dcb17a3a9ff9d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "2df0b1b7160cd58f02190b86ae245f2f5a9d2232", "extensio...
stackv2
// Copyright 2013 Tom SF Haines // 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, sof...
2.25
2
2024-11-18T18:55:04.261572+00:00
2021-01-25T11:59:04
cd7ea51bac9d0244733ff0096897dbfb574b0605
{ "blob_id": "cd7ea51bac9d0244733ff0096897dbfb574b0605", "branch_name": "refs/heads/main", "committer_date": "2021-01-25T11:59:04", "content_id": "b0109d90284843cf4e5b0f82a4f3475171c51c48", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "a71f82439f75e01cc157b5ef6f9289369e1dadb2", "extensio...
stackv2
/* * Demo 2: * A demo showing EV extended functions in use. */ #include <stdio.h> #include "evec.h" int main(int argc, char** argv) { void* a = evinisz(128); evpsh(a, "Test"); evpsh(a, "Best"); evpsh(a, "Rest"); for(int i =0; i < evcnt(a); i++){ char* s = (char*)evidx(a,i); pri...
2.75
3
2024-11-18T18:57:41.693426+00:00
2013-09-22T22:46:40
e0c838431182440869ae98b08d0eacb55ffa928d
{ "blob_id": "e0c838431182440869ae98b08d0eacb55ffa928d", "branch_name": "refs/heads/master", "committer_date": "2013-09-22T22:46:40", "content_id": "f744af61a0353186c427a25fbe17f81807d8c35c", "detected_licenses": [ "MIT" ], "directory_id": "11e1cf3683b14f21af235e0569e024c343626c03", "extension": "c"...
stackv2
#include <stdio.h> #define MAX 100 int dolzina(char *s) { int i, len = 0; for (i = 0; s[i] != '\0'; i++) len++; return len; } int length(char *s) { if (*s == '\0') return 0; return 1 + length(s + 1); } int main() { char s[MAX]; printf("Vnesete ja tekstualna niza:\n"); gets(s); printf("Dolzina: %d i %d\n...
3.09375
3
2024-11-18T18:57:41.880229+00:00
2014-09-09T19:28:19
9dd5173ab6f0eff29e05e8fe7396ca6b23789c76
{ "blob_id": "9dd5173ab6f0eff29e05e8fe7396ca6b23789c76", "branch_name": "refs/heads/master", "committer_date": "2014-09-09T19:28:19", "content_id": "a513a38a6eabd841055b6f2103981cefd015e52f", "detected_licenses": [ "MIT" ], "directory_id": "e00d688f71529f7b19ef52242859960256c54e1e", "extension": "c"...
stackv2
#include <stdlib.h> #define WIN32_LEAN_AND_MEAN #include <winstrct.h> #pragma comment(lib, "advapi32") #if defined(_DLL) && !defined(_WIN64) #pragma comment(lib, "minwcrt") #endif int WINAPI WinMain(HINSTANCE hCurInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { UINT uFlags = 0; BOOL displ...
2.21875
2
2024-11-18T18:57:41.950876+00:00
2018-03-14T12:44:12
a5c4b5c229fa2791419b94da58913434ab89dce9
{ "blob_id": "a5c4b5c229fa2791419b94da58913434ab89dce9", "branch_name": "refs/heads/master", "committer_date": "2018-03-14T12:44:12", "content_id": "2b4ba62c14ae1f71bd6f90991d02fdf0c3986705", "detected_licenses": [ "MIT" ], "directory_id": "746d3cd0696fd3f784acf661812ef371a5ecebb7", "extension": "c"...
stackv2
// Exercise 6 from chapter 11 // These functions insert and remove entries from a doubly linked list. /* removeEntry can now remove an exact element of the list because the doublyEntry struct have pointers to the next and the previous list elements, making it possible to link them before removing the middle entry. */ ...
3.328125
3
2024-11-18T18:57:42.014966+00:00
2021-10-23T06:45:18
8743f1093a5199b2b0d90f4b24edf4ded9d0ef57
{ "blob_id": "8743f1093a5199b2b0d90f4b24edf4ded9d0ef57", "branch_name": "refs/heads/main", "committer_date": "2021-10-23T06:45:27", "content_id": "2181fc89b17ac74d448ac6a5a7b0b59bd78b598c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f8a5bc2f85509fc335f0e2e4feffa14cbb57ede3", "extension"...
stackv2
/** * Copyright 2019-2020 DigitalOcean Inc. * Copyright 2021 Jens Elkner <jel+libprom@cs.uni-magdeburg.de> * * 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.or...
2.109375
2
2024-11-18T19:00:00.825737+00:00
2018-01-12T16:21:35
439fcf737aad946e5f4af87aaab416c3c7d136fd
{ "blob_id": "439fcf737aad946e5f4af87aaab416c3c7d136fd", "branch_name": "refs/heads/master", "committer_date": "2018-01-12T16:21:35", "content_id": "0445c9e45b7a86368654e63b19e7fafd2bd1af1b", "detected_licenses": [ "MIT" ], "directory_id": "c9d073d4c966119fe8865bc8188330ed32bf9d63", "extension": "h"...
stackv2
#ifndef TANSA_CONFIG_H #define TANSA_CONFIG_H #define VEHICLE_ASCENT_MS 0.2 #define VEHICLE_DESCENT_MS 0.3 /** * Contains client and server address for drone netcode. */ struct hardware_config { string clientAddress; string serverAddress; }; /** * Contains config info for drone */ struct vehicle_config { unsi...
2.03125
2
2024-11-18T19:00:00.944155+00:00
2019-11-01T17:06:19
44f07a8620264f3d82e4898f9f3f03950b59a8c4
{ "blob_id": "44f07a8620264f3d82e4898f9f3f03950b59a8c4", "branch_name": "refs/heads/master", "committer_date": "2019-11-01T17:06:19", "content_id": "b95260af2391582b34bb9054f85ca42e52709b24", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "5499e8b91353ef910d2514c8a57a80565ba6f05b"...
stackv2
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdint.h> #include "debug.h" #define S905_UART_WFIFO (0x0) #define S905_UART_STATUS (0xc) #define S905_UART_STATUS_TXFULL (1 << 21) #define UA...
2
2
2024-11-18T19:00:01.186320+00:00
2018-01-24T00:39:01
c621887cb52c2722d3b50cc3293689010f8d6e66
{ "blob_id": "c621887cb52c2722d3b50cc3293689010f8d6e66", "branch_name": "refs/heads/dev", "committer_date": "2018-01-24T00:39:01", "content_id": "1bc2e32d696b08696207b4fd566cc113dbbc35a2", "detected_licenses": [ "Unlicense" ], "directory_id": "89cc6ece96ca3264055ea7ccb252da648449eb77", "extension": ...
stackv2
/* echoTap.h audio lib aleph These are 'slave' taps for creating echo effects/pitch shift They are indexed relative to a write head, not a buffer. They should do anti-aliased interpolated read */ #ifndef _ALEPH_ECHOTAP_H_ #define _ALEPH_ECHOTAP_H_ #include "fix.h" #include "fix32.h" #include "types.h"...
2.1875
2
2024-11-18T19:32:42.283870+00:00
2020-12-23T08:36:28
a9e24bfa0c5e0a3e95c1dc8f9e01f26278161d03
{ "blob_id": "a9e24bfa0c5e0a3e95c1dc8f9e01f26278161d03", "branch_name": "refs/heads/main", "committer_date": "2020-12-23T08:36:28", "content_id": "e0b5fa694af6950f679981f2e88a864274b4e130", "detected_licenses": [ "CC0-1.0" ], "directory_id": "75e1d9446cb1fca5c6a79ad0ba7f38268df1161f", "extension": "...
stackv2
Stock Buy & Sell Once - Maximum Profit Input: 7 50 100 40 60 70 50 80 Output: 50 #include<stdio.h> #include <stdlib.h> #define max(x,y) x>y? x: y #define min(x,y) x<y? x: y int main() { int n; scanf("%d",&n); int arr[n]; for(int i=0;i<n;++i)scanf("%d",&arr[i]); int maxProfit=0,currentProf...
3.140625
3
2024-11-18T17:54:19.702944+00:00
2016-07-18T20:27:48
2f16c20095f3b3c8018a32b6964e0af98c9fda0d
{ "blob_id": "2f16c20095f3b3c8018a32b6964e0af98c9fda0d", "branch_name": "refs/heads/master", "committer_date": "2016-07-18T20:27:48", "content_id": "118123fd180e18ca25f77ae5ce18341d736f1823", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "3848970626587148dd932cdf3e54f5819d46cfc3", "extens...
stackv2
/* * Copyright 2014, NICTA * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(NICTA_BSD) */ #ifndef _CAMKES_TLS_H_ #define _CAMKES_TLS_H_ /* Thread-local storage functionality...
2.25
2
2024-11-18T17:54:19.806612+00:00
2019-08-25T02:51:30
9235194ba6a0bcc9a41b1dab59164f702eed3336
{ "blob_id": "9235194ba6a0bcc9a41b1dab59164f702eed3336", "branch_name": "refs/heads/development", "committer_date": "2019-09-28T22:27:54", "content_id": "ad8b1da9b6f56b8541452ccc488b93c66311efb1", "detected_licenses": [ "ISC" ], "directory_id": "93be5d831adfdc50cb4275e54e1741d0d1a2ea06", "extension"...
stackv2
#include<libtransistor/ld/internal.h> #include<libtransistor/types.h> #include<libtransistor/err.h> #include<libtransistor/util.h> #include<libtransistor/ld/ld.h> #include<libtransistor/ld/elf.h> #include<libtransistor/ld/module.h> #include<stdint.h> #include<stdlib.h> #include<string.h> static result_t ld_try_reso...
2.03125
2
2024-11-18T17:54:19.870701+00:00
2019-05-18T13:46:54
78625e5e65cd5a47cf6bba141568ae5e3bb80ecb
{ "blob_id": "78625e5e65cd5a47cf6bba141568ae5e3bb80ecb", "branch_name": "refs/heads/master", "committer_date": "2019-05-18T13:46:54", "content_id": "38ba762edda82fceb809a7f80a61554a47805d1d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d17a6d263cb0739f40e524d9005958501b7d6014", "extensio...
stackv2
/* * Write a program to "fold" long input lines into two or more shorter * lines after the last nonblank character that occurs before the n-th * column of input. Make sure your program does something intelligent with * very long lines, and if there are no blanks or tabs before the * specified column. */ #inc...
3.5
4
2024-11-18T18:35:09.045065+00:00
2016-01-07T22:42:40
051c8211209cea95a3eac01b902a26d0ad31d770
{ "blob_id": "051c8211209cea95a3eac01b902a26d0ad31d770", "branch_name": "refs/heads/master", "committer_date": "2016-01-07T22:42:40", "content_id": "c970b6fb082bcfb1edc1927c66db003d3b21eb16", "detected_licenses": [ "MIT" ], "directory_id": "381e70bd1d6af4c65cb6ea145984500ca21195d1", "extension": "h"...
stackv2
struct RGB { byte r; byte g; byte b; }; RGB KTM_ORANGE = { 255, 42, 0 }; RGB KTM_BLACK = { 0, 0, 0 }; RGB BLUE = { 0, 0, 255 }; // Input a value 0 to 255 to get a color value. // The colours are a transition r - g - b - back to r. uint32_t wheelColor(Adafruit_NeoPixel &strip, byte wheelPos) { wheelPos = 255 -...
2.71875
3
2024-11-18T18:35:09.201364+00:00
2021-01-02T02:11:39
2a4e1ac1a7ab292cde8468e5df2b43bdf422670b
{ "blob_id": "2a4e1ac1a7ab292cde8468e5df2b43bdf422670b", "branch_name": "refs/heads/master", "committer_date": "2021-01-02T02:11:39", "content_id": "c54091b464428db0353819f31aa42b5a490db914", "detected_licenses": [ "MIT" ], "directory_id": "abf432d562312760cfd28a97c43b9e1f97ab64f4", "extension": "c"...
stackv2
/** Escreva um algoritmo para criar um programa de ajuda para vendedores. A partir de um valor total lido, mostre:  O total a pagar com desconto de 10%;  O valor de cada parcela, no parcelamento de 3 x sem juros;  A comissão do vendedor, no caso de a venda ser a vista (5% sobre o valor com desconto)  A comissão do ...
2.375
2
2024-11-18T18:35:09.299869+00:00
2023-08-27T19:14:02
4c43b319229735ce44c5366de5957af56015af6e
{ "blob_id": "4c43b319229735ce44c5366de5957af56015af6e", "branch_name": "refs/heads/master", "committer_date": "2023-08-27T19:14:02", "content_id": "55c9e08696c0f35fe6c168b1e537de9f5b57d95f", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "7c857119fe1505b1d80d6e62969661c06dc1a2f4", "extens...
stackv2
/** @file The Platform Logo Protocol defines the interface to get the Platform logo image with the display attribute. Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef __PLATFORM_LOGO_H__ #define __PLATFORM_LOGO_H__ #include <Protocol...
2.21875
2
2024-11-18T18:35:09.463942+00:00
2018-06-01T19:26:05
6f056674b3bda2d1d4173b4404b252dd4c374c4d
{ "blob_id": "6f056674b3bda2d1d4173b4404b252dd4c374c4d", "branch_name": "refs/heads/master", "committer_date": "2018-06-01T19:26:05", "content_id": "52b73b93d04609c61e61576316a5d77ede236213", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f2bf1d6b060b33d8cd63ef37da50a2f41c1ec4af", "extensio...
stackv2
#include <stdlib.h> #include <string.h> #include "test_queue.h" #include "../src/queue.h" #include "../src/rebar-xxd.h" void create_queue(void) { queue_t *q1 = rebar_queue_init(); queue_t *q2 = rebar_queue_init(); CU_ASSERT (q1 != NULL); CU_ASSERT (q2 != NULL); CU_ASSERT (q2 != q1); ...
2.8125
3
2024-11-18T18:43:47.374926+00:00
2020-01-21T15:52:30
2d33a491e5eb7fde2f0f54fe184ec0b75e5a8049
{ "blob_id": "2d33a491e5eb7fde2f0f54fe184ec0b75e5a8049", "branch_name": "refs/heads/master", "committer_date": "2020-01-21T15:52:30", "content_id": "c1b8143217248d269bc653001322bcdbe57f2659", "detected_licenses": [ "MIT", "BSD-3-Clause", "ISC" ], "directory_id": "13e012007ba1a95ce3214b32144764...
stackv2
/* * Copyright 2019 Leo McCormack * * 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 PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
2.15625
2
2024-11-18T18:43:47.506824+00:00
2015-01-27T16:59:40
55d7da560bc7dd5195ee3eaa45d9abf452a33005
{ "blob_id": "55d7da560bc7dd5195ee3eaa45d9abf452a33005", "branch_name": "refs/heads/master", "committer_date": "2015-01-27T16:59:40", "content_id": "a50744f1e81ac1f05b75da09e2399abb269cd39c", "detected_licenses": [ "ICU" ], "directory_id": "0641d87fac176bab11c613e64050330246569e5c", "extension": "c"...
stackv2
/* ******************************************************************************* * * Copyright (C) 2002, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* * file name: uprops.h * encoding: US-ASC...
2.125
2
2024-11-18T18:45:17.645609+00:00
2022-10-12T21:35:58
225d3af63b4e5150a447593735446a1c8bffb6e5
{ "blob_id": "225d3af63b4e5150a447593735446a1c8bffb6e5", "branch_name": "refs/heads/master", "committer_date": "2022-10-12T21:35:58", "content_id": "65e753bbd1f3b5fc83ecc8a021cedc45e2cad0c9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "180159015288443579baa49f119132892431edd7", "extensio...
stackv2
#include <math.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #define min(a, b) ((a) < (b) ? a : b) typedef struct argument { int *a; int *b; int *c; int tid; int size; int num_thread; } argument; void validate(int *a, int *b, int length) { for (i...
3.03125
3
2024-11-18T18:45:17.801937+00:00
2021-10-27T13:59:57
4e40fceeb108a65b0dda9b3f60a6039c1a2249c0
{ "blob_id": "4e40fceeb108a65b0dda9b3f60a6039c1a2249c0", "branch_name": "refs/heads/master", "committer_date": "2021-10-27T13:59:57", "content_id": "532e202b38e3d8599f9a80ff4a35cb493ce08348", "detected_licenses": [ "MIT" ], "directory_id": "5f7d9303fbf0bd1bfa163456d12c452c79cf5ea4", "extension": "c"...
stackv2
#include "led.h" #include "spi.h" #define MAX_LEVEL 6 u8 LED_status[67]; u16 LED_Level[5][MAX_LEVEL]; u8 level; void LED_Init(void) { u8 i,j; GPIO_InitTypeDef GPIO_InitStructure; #ifdef BB RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOE | RCC_APB2Periph_GPIOF | RCC_APB2Pe...
2.171875
2
2024-11-18T19:19:58.536143+00:00
2021-07-05T13:49:41
d96b40e21933c8e2f61856ef86148edd7867e457
{ "blob_id": "d96b40e21933c8e2f61856ef86148edd7867e457", "branch_name": "refs/heads/main", "committer_date": "2021-07-05T13:49:41", "content_id": "ee613dd386162eb4e08fdb9b50c26445a4f80492", "detected_licenses": [ "MIT" ], "directory_id": "a630d757ff9a609ce507aefc0f40b2a9597e1528", "extension": "c", ...
stackv2
/** library extend This provides extension functions to the testing suite. */ #include "lily.h" /** Begin autogen section. **/ const char *lily_extend_info_table[] = { "\0\0" ,"F\0render_string\0(String,String): Result[String,Boolean]" ,"F\0parse_string\0(String,String): Result[String,Boolean]" ,"F\0...
2.671875
3
2024-11-18T19:19:58.646508+00:00
2020-12-12T22:05:04
aba915cfafa2959cb18032d8cd7682d8bb8c40a0
{ "blob_id": "aba915cfafa2959cb18032d8cd7682d8bb8c40a0", "branch_name": "refs/heads/master", "committer_date": "2020-12-12T22:05:04", "content_id": "cb0937c1d48b7fc3e53c894985b6392cdae804c2", "detected_licenses": [ "MIT" ], "directory_id": "d7ded8476b00fa1a68aaeb8ebefcd7a7d83f8053", "extension": "h"...
stackv2
#ifndef PROJECT_SERVER_H__ #define PROJECT_SERVER_H__ #include "cJSON.h" #include "esp_err.h" #include "esp_http_server.h" #include "esp_log.h" #include "esp_system.h" #include "esp_vfs.h" #include "fcntl.h" #include "string.h" #define CONFIG_SERVER_SCRATCH_BUFSIZE (10240) typedef struct server_ctx { char base_p...
2.046875
2
2024-11-18T19:19:58.815884+00:00
2019-10-05T10:08:29
8d633a8c482db0fcb84c4edc3dde02691395f281
{ "blob_id": "8d633a8c482db0fcb84c4edc3dde02691395f281", "branch_name": "refs/heads/master", "committer_date": "2019-10-05T10:08:29", "content_id": "7894a26c23224e5b6ecf7b253a955f1dd95a6d33", "detected_licenses": [ "MIT" ], "directory_id": "c5d313b0be54baef0b40e72c427665fc3a05f5d1", "extension": "h"...
stackv2
/** * @file score_board.h * @date 2016/10/21 * @author Yuta Kobiyama (m5191140@u-aizu.ac.jp) * @brief score board object header. * @details * Artificial Intelligence, 6th Exercise\n * Copyright (C) 2016 System Intelligence Laboratory All Rights Reserved. */ #ifndef SCORE_BOARD_H #define SCORE_BOARD_H #inc...
2.171875
2
2024-11-18T19:19:58.866402+00:00
2021-04-16T16:42:02
f239c80926563e42f6a4371a3058a58b16665ea4
{ "blob_id": "f239c80926563e42f6a4371a3058a58b16665ea4", "branch_name": "refs/heads/main", "committer_date": "2021-04-16T16:42:02", "content_id": "519b072aa2e17c0c096c6d06fd101e55a6f04222", "detected_licenses": [ "BSL-1.0" ], "directory_id": "63f12a04bcf12a84a4834e92767a2bf3410021d7", "extension": "...
stackv2
#include "bocom_ipc.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> typedef struct { int a; char tmpMsg[30]; int b; } st_abc; int main() { Context queCtx = BOCOM_JoinQueue("MyVideoChannel"); if(NULL == queCtx) { printf("BOCOM_JoinChannel failed !\n");...
2.6875
3
2024-11-18T19:20:42.074041+00:00
2021-07-01T11:11:24
1a5f73b98edc98a16b64864e5c98ec4aa0a2a8c7
{ "blob_id": "1a5f73b98edc98a16b64864e5c98ec4aa0a2a8c7", "branch_name": "refs/heads/master", "committer_date": "2021-07-01T11:11:24", "content_id": "e5cc82bb5c99d2aff680df9c4920cab26aad76d6", "detected_licenses": [ "MIT" ], "directory_id": "0630a7addb90600293f0ee0787dd6ab0ac77b09a", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #define MAX 100 typedef struct itemtype { int p,w; double r; }item; int cmpFunc(const void *a, const void *b) { return ((*(item *)a).r < (*(item *)b).r); } int main() { int capacity=20; int n=3; int i; double fracs[MAX]; for(i=0;i<n;i++) { fracs[i]=0.0; } int profit...
3.34375
3
2024-11-18T19:28:56.473933+00:00
2019-02-13T12:50:28
c713c5d727698d4d49162898c1427a2f2b5caa52
{ "blob_id": "c713c5d727698d4d49162898c1427a2f2b5caa52", "branch_name": "refs/heads/master", "committer_date": "2019-02-13T12:50:28", "content_id": "057762ca2b7f531960035225e5132f6540a72572", "detected_licenses": [ "MIT" ], "directory_id": "a0983034ce126b807408722387a5c1404879d7f2", "extension": "c"...
stackv2
/* ** EPITECH PROJECT, 2017 ** 42sh ** File description: ** get_env */ #include "header_shell.h" char **get_env(linked_list_t *env) { char **new = malloc(sizeof(char *) * (len_list(env) + 1)); int i = -1; while (env != NULL) { i++; new[i] = malloc(my_strlen(((variable_t *)env->data)->name) + 1); new[i] = my...
2.578125
3
2024-11-18T19:29:41.940813+00:00
2018-07-30T02:45:40
b9bd57ad3bcbb39eca57af710855fc69d343cb02
{ "blob_id": "b9bd57ad3bcbb39eca57af710855fc69d343cb02", "branch_name": "refs/heads/master", "committer_date": "2018-07-30T02:45:40", "content_id": "778e03c4623f91a6d985af37437e0c8691a9fa0b", "detected_licenses": [ "MIT" ], "directory_id": "22c38b72b3f66e7e6f255af41d38cd28353cda4d", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ncurses_init.c :+: :+: :+: ...
2.1875
2
2024-11-18T19:57:14.523346+00:00
2021-03-07T09:49:50
78b94bb000c0e237af62182d4a715ef0fcfa6944
{ "blob_id": "78b94bb000c0e237af62182d4a715ef0fcfa6944", "branch_name": "refs/heads/master", "committer_date": "2021-03-07T09:49:50", "content_id": "3464ea3f38ede73dbcc1af3caf77c2368f381908", "detected_licenses": [ "MIT" ], "directory_id": "446d243e72846f8858fc97d6c251d8a2a808d71b", "extension": "c"...
stackv2
// hello, world #include <inc/lib.h> void umain(int argc, char **argv) { // 调用了cprintf(),注意这是lib/print.c中的cprintf cprintf("hello, world\n"); cprintf("i am environment %08x\n", thisenv->env_id); }
2.125
2
2024-11-18T19:57:14.627749+00:00
2022-09-08T19:13:21
ea86d4ff550bedc4feb5d07928298d6c6e51a74f
{ "blob_id": "ea86d4ff550bedc4feb5d07928298d6c6e51a74f", "branch_name": "refs/heads/master", "committer_date": "2022-09-08T19:13:21", "content_id": "dde99fd44350e641c66b930da6e626afc954d0dc", "detected_licenses": [ "MIT" ], "directory_id": "8c3acd02e7d686de1987ac707279ee4880944d07", "extension": "c"...
stackv2
/* Copyleft 2011-2014 - mcsdb (aka memcache-SimpleDB) - pancake */ #include "mcsdb.h" McSdb *mcsdb_new(const char *file) { McSdb *ms; Sdb *s = sdb_new (NULL, file, 0); if (!s) return NULL; ms = R_NEW (McSdb); if (!ms) { sdb_free (s); return NULL; } ms->sdb = s; ms->time = sdb_now (); ms->gets = ms->sets ...
2.1875
2
2024-11-18T19:57:14.765514+00:00
2022-05-10T07:05:18
ceda659d59a2196c67496f5b8153e9af9f797de4
{ "blob_id": "ceda659d59a2196c67496f5b8153e9af9f797de4", "branch_name": "refs/heads/master", "committer_date": "2022-05-10T07:05:18", "content_id": "0c6c819b61aee0b81b95e3bcc9c53978a3d7ebc5", "detected_licenses": [ "MIT", "BSD-2-Clause" ], "directory_id": "5ab892bcef191df40d45296c54ec5733583e9b8e"...
stackv2
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ #include "util.h" int main(void) { size_t page_size = sysconf(_SC_PAGESIZE); int fd; void* map_addr; long end; /* Map a file that's (probably) not in a tmpfs */ fd = open("/bin/ls", O_RDONLY); end = lseek(fd, 0, SEEK_END); ...
2.609375
3
2024-11-18T19:57:14.819593+00:00
2021-07-19T20:43:21
bd1aecddfe1b3dfcdcd835ba29d5c5c23f0dcc78
{ "blob_id": "bd1aecddfe1b3dfcdcd835ba29d5c5c23f0dcc78", "branch_name": "refs/heads/master", "committer_date": "2021-07-19T21:08:58", "content_id": "f8e664c270c956260f5d61d55f68a8d5e583f8cb", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "7c2fcebb50aa7628e9a7cc402e0bd1c1531617b2", "extens...
stackv2
#include "socketcan/socketcan.h" #include "canopen/canopen.h" #include "motor/motor.h" #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <inttypes.h> #include <stdbool.h> int main(void) { motor_init(); motor_enable(); sleep(1); printf("Run 50 [mm/sec]\n"); vel_set_speed_right(50); vel_set_sp...
2.453125
2
2024-11-18T18:19:10.371710+00:00
2021-05-04T15:05:23
b693eaeb40d8e34807f8516cf1b5aec3c385c443
{ "blob_id": "b693eaeb40d8e34807f8516cf1b5aec3c385c443", "branch_name": "refs/heads/master", "committer_date": "2021-05-04T15:05:23", "content_id": "99234ed0f447304bc8cc25861099585ccaa0dbcf", "detected_licenses": [ "MIT" ], "directory_id": "bda4c363022b4973484c51d2aa4abe9c3ec3f857", "extension": "h"...
stackv2
#include <stdio.h> #include <math.h> #ifndef __sarsa__ #define __sarsa__ #define PI 3.1415926535897932384626433 #define num_saved_matrices 500 #define learning_episodes 500000 #define PENALTY -300.0 #define n_actions 3 // 0 diminuisco alpha, 1 rimango, 2 aumento #define n_bank 13 #define decision_time 1000 #defi...
2.046875
2
2024-11-18T18:19:10.426847+00:00
2020-12-25T18:09:48
ae36bc87801f3a952b2b27dba7db059ddc43134a
{ "blob_id": "ae36bc87801f3a952b2b27dba7db059ddc43134a", "branch_name": "refs/heads/master", "committer_date": "2020-12-25T18:09:48", "content_id": "781be7adbedbacba2ed394c5236d017e9270ea8c", "detected_licenses": [ "MIT" ], "directory_id": "508b9e132a3f84e6fd04bf01cb8f126db337ca17", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include "math/MathFunctions.h" int main(int argc, char *argv[]) { if(argc<3){ printf("Usage: %s base exponent\n", argv[0]); return 0; } double base=atof(argv[1]); int exponent=atoi(argv[2]); double result=power(base, exponent); printf("%g^...
2.734375
3
2024-11-18T18:44:09.372310+00:00
2023-08-16T08:49:18
89b0d5bfb9e280310f886b2aac52df93d392cd72
{ "blob_id": "89b0d5bfb9e280310f886b2aac52df93d392cd72", "branch_name": "refs/heads/master", "committer_date": "2023-08-16T08:49:18", "content_id": "fd4dac75a20b8afee3d194949baf3ac1830e1c35", "detected_licenses": [ "MIT" ], "directory_id": "e3acfc4f06840e23ef1185dcf367f40d3e3f59b4", "extension": "c"...
stackv2
//SKIP PARAM: --set ana.activated[+] affeq --set sem.int.signed_overflow assume_none int next; int main() { next = 0; // Due to a bug in the dim add function, t was always set to 0 in the following block int t; next = t; if (next == 0) { t = 10; } __goblint_check(t == 10); //UN...
2.1875
2
2024-11-18T18:44:09.443363+00:00
2019-01-26T01:57:58
9c403301d529cec3afe826c0626a3322f419aeeb
{ "blob_id": "9c403301d529cec3afe826c0626a3322f419aeeb", "branch_name": "refs/heads/master", "committer_date": "2019-01-26T01:57:58", "content_id": "905c1c96381a83cfb11d63d578518a9f6054ad3d", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "5702780e2da56d4aa74faf35eba56f30404bc30e", "extens...
stackv2
#include <zjunix/vfs/vfs.h> #include <zjunix/vfs/vfscache.h> #include <zjunix/vfs/fat32.h> #include <zjunix/vfs/ext2.h> #include <zjunix/log.h> #include <zjunix/slab.h> #include <zjunix/utils.h> #include <driver/vga.h> // TODO 根文件系统装载重构 // 公用全局变量 struct master_boot_record * MBR; struct dentry * root_d...
2.171875
2
2024-11-18T18:44:09.679506+00:00
2022-06-09T19:43:13
4b2df3b49acb345c33b25bcb22a66c15b4775ff9
{ "blob_id": "4b2df3b49acb345c33b25bcb22a66c15b4775ff9", "branch_name": "refs/heads/master", "committer_date": "2022-06-09T19:43:13", "content_id": "e56011e11b4f4a3a700afdf6da3136c08f628b38", "detected_licenses": [ "MIT" ], "directory_id": "64014c6a817eae339ee272067922c4c26a6d1459", "extension": "h"...
stackv2
/* Copyright (c) 2014 Tim Berning */ #ifndef UTIL_H_ #define UTIL_H_ #include <stdint.h> #include <stdio.h> #include <stdlib.h> uint64_t round_up(uint64_t num, uint64_t multiple); char identify_usage(void *ptr); void clflush(const void *ptr); void clflush_range(const void *ptr, uint64_t len); #ifdef HAS_CLFLUSHOPT...
2.4375
2
2024-11-18T18:54:17.706651+00:00
2014-09-03T01:23:25
2995d1e55c1cdfcb8935c45fab80343963fba39f
{ "blob_id": "2995d1e55c1cdfcb8935c45fab80343963fba39f", "branch_name": "refs/heads/master", "committer_date": "2014-09-03T01:23:25", "content_id": "db61dbfc2f384291717dfb98c50a3241a636477f", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "d6f73470c747fa5046428e916cf6804e2ce9ad64", "extens...
stackv2
#ifndef BIGNUM_H #define BIGNUM_H /*Function bignum1.c*/ Bignum *as_atof ( Bignum *a_big_number_p, char *numbuf, long radix, Ovf *ovfp ); Bignum *as_atoi ( Bignum *a_big_number_p, reg char *ccp, /* character cp */ long radix, Ovf *ovfp ); Ovf posovf ( reg chptr src ); long isclear ( reg chptr dst ); ...
2.265625
2
2024-11-18T18:54:17.876634+00:00
2008-11-03T11:28:06
ea70ec3ce0c4cb9bd15d34ce684dcb72ccde2cc2
{ "blob_id": "ea70ec3ce0c4cb9bd15d34ce684dcb72ccde2cc2", "branch_name": "refs/heads/master", "committer_date": "2008-11-03T11:28:06", "content_id": "aa261687e8d05bd46772d7b2a3b1ced7bf1a1fec", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "cc0a48049c545193c9aa883f71362093...
stackv2
/* * Copyright (c) 2004 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
2.1875
2
2024-11-18T18:54:18.125210+00:00
2019-11-26T08:11:16
0f5d21d398f5f340c4bc564aebbc3069c3324d01
{ "blob_id": "0f5d21d398f5f340c4bc564aebbc3069c3324d01", "branch_name": "refs/heads/master", "committer_date": "2019-11-26T08:11:16", "content_id": "e4273b28fb3d35fc2bb8d2ee46e1d0a8f7cf9192", "detected_licenses": [ "Apache-2.0" ], "directory_id": "82b23e02502bbc52cc95a31d8e279cd1c16b3c1e", "extensio...
stackv2
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // 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 app...
2.15625
2
2024-11-18T19:03:54.036700+00:00
2019-07-21T23:23:32
f814c5964e4aa5a2e8160e505248d7eb396d833c
{ "blob_id": "f814c5964e4aa5a2e8160e505248d7eb396d833c", "branch_name": "refs/heads/master", "committer_date": "2019-07-21T23:23:32", "content_id": "1d93594bd132f41614c2d7d9b69554ed2f0a239b", "detected_licenses": [ "MIT" ], "directory_id": "c3f49a390ce4a68bc1da560077d11b7e1f340e4f", "extension": "c"...
stackv2
#include "gps.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include "nmea.h" #include "serial.h" gpgga_t gpgga; gprmc_t gprmc; extern void gps_init(void) { serial_init(); serial_config(); //Write commands } extern void gps_on(void) { //Write on } #define MAX(x, y) (((x) > (y)) ? (x...
2.875
3
2024-11-18T19:06:09.161648+00:00
2022-02-27T05:57:24
077a212a803536da9125efd0b01bc1d6d1022f66
{ "blob_id": "077a212a803536da9125efd0b01bc1d6d1022f66", "branch_name": "refs/heads/master", "committer_date": "2022-02-27T05:57:24", "content_id": "5b5eb2c7236b4c0bd8ff78feab3f6da70a09e58b", "detected_licenses": [ "MIT" ], "directory_id": "4ae693a814655469f58f2f5b933cfc56e3d5c315", "extension": "c"...
stackv2
#include "delay.h" #include "usart.h" #include "usart3.h" #include "hc05.h" #include "led.h" #include "string.h" #include "math.h" ////////////////////////////////////////////////////////////////////////////////// //本程序只供学习使用,未经作者许可,不得用于其它任何用途 //ALIENTEK STM32开发板 //ATK-HC05蓝牙模块驱动代码 //正点原子@ALIEN...
2.28125
2
2024-11-18T19:06:09.253139+00:00
2014-03-16T19:02:22
7e2d03208e92bc29518be68b239c7b15557e6326
{ "blob_id": "7e2d03208e92bc29518be68b239c7b15557e6326", "branch_name": "refs/heads/master", "committer_date": "2014-03-16T19:02:22", "content_id": "a9c71660cba5f99467f1ca43c6de1e2deb47e558", "detected_licenses": [ "MIT" ], "directory_id": "83ea0613aee07d6c668b34b83947f204254bc61e", "extension": "c"...
stackv2
/* * an ordered set implementation * each element is stores in the sets dictionary as well as its skip_list */ #include"set.h" #include "dict.h" #include"skip_list.h" #include <stdlib.h> #include <stdio.h> #include "util.h" /* * initialization */ void set_init(set *s) { dict_init(&s->set_dict,VR_TYPE_DOUBLE)...
3.0625
3
2024-11-18T19:27:05.241532+00:00
2020-03-19T13:50:10
9a23979d378f22770d255c7d0f08adeaaad2cd50
{ "blob_id": "9a23979d378f22770d255c7d0f08adeaaad2cd50", "branch_name": "refs/heads/master", "committer_date": "2020-03-19T13:50:10", "content_id": "964fef27055c2c4022a466211bced8ce0460457b", "detected_licenses": [ "MIT" ], "directory_id": "4edf16dd911e3e8a4d70e56cda144549958b5c5c", "extension": "c"...
stackv2
/** * 静态链表实现示例 * 数据元素为整型 */ #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #define OK true #define ERROR false /** * 线性表所能存储的元素的最大值(数组的定义长度) * 为方便测试边界情况,暂定义为较小的值 */ #define MAXSIZE 10 #define OUTFAIL(PARAM) \ printf("Function \"%s\" test ...
3.515625
4
2024-11-18T19:27:06.313397+00:00
2020-01-13T10:29:58
c919c044db163768defc76b5e342946061b069b1
{ "blob_id": "c919c044db163768defc76b5e342946061b069b1", "branch_name": "refs/heads/master", "committer_date": "2020-01-13T10:29:58", "content_id": "633d1d8adcde4d511a8abde22692d415d921936a", "detected_licenses": [ "MIT" ], "directory_id": "25177caf80f8519f2ba34b0d394981db154eae54", "extension": "c"...
stackv2
#include <stdio.h> #include <getopt.h> #include "ast.h" #include "y.tab.h" #include "specParser.h" #include "symbolsTable.h" int DEBUG_LEX = 0; int opt_print_ast = 0; int opt_print_symbol_table = 0; extern FILE* yyin; extern FILE* zzin; extern ast arbre; extern ast specTree; extern symbolTable st; extern void lex_zzf...
2.046875
2
2024-11-18T19:27:06.392063+00:00
2021-05-15T18:27:56
2efbd5edb7098c13042f31bf1145658ca3b5cfac
{ "blob_id": "2efbd5edb7098c13042f31bf1145658ca3b5cfac", "branch_name": "refs/heads/master", "committer_date": "2021-05-15T18:27:56", "content_id": "b4279cb155db1559490b5526f5ed957362a4fbd5", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "1cdab5d61d1f56885022718aa45079ff315e586b", "extens...
stackv2
/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> string sorting routine based on a blind tree 26-jun-01 ver 1.0 03-jul-01 ver 1.1 (get rid of node header) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include "common.h" /* =========...
2.90625
3
2024-11-18T19:27:06.671124+00:00
2019-06-27T00:49:40
d9bb62a083c67a06abb8403a2267cf24764f115d
{ "blob_id": "d9bb62a083c67a06abb8403a2267cf24764f115d", "branch_name": "refs/heads/master", "committer_date": "2019-06-27T00:49:40", "content_id": "a31c27c6b3329922d00c7d4ab4968151d63005b0", "detected_licenses": [ "BSD-3-Clause-Open-MPI" ], "directory_id": "7047c2ebf8d7944c6b4467560e190b184d54697d", ...
stackv2
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Resea...
2.28125
2
2024-11-18T19:27:07.315485+00:00
2021-04-08T17:24:07
815a9a08365a91dd677efa91966bc31d8b645b0e
{ "blob_id": "815a9a08365a91dd677efa91966bc31d8b645b0e", "branch_name": "refs/heads/master", "committer_date": "2021-04-08T17:24:07", "content_id": "8128046871ca322db88c884eb4bd85652a36af58", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "fe27d4417ec8d360caf766b4acd10f5eaaffc5db"...
stackv2
/** file event_chooser.c * @brief papi_event_chooser utility. * @page papi_event_chooser * @section NAME * papi_event_chooser - given a list of named events, * lists other events that can be counted with them. * * @section Synopsis * papi_event_chooser NATIVE | PRESET < event > < event > ... * ...
2.703125
3
2024-11-18T19:27:07.384610+00:00
2020-02-04T14:25:27
a28b67f589b44d3e22ffbc11fdb774cc37090dee
{ "blob_id": "a28b67f589b44d3e22ffbc11fdb774cc37090dee", "branch_name": "refs/heads/master", "committer_date": "2020-02-04T14:25:27", "content_id": "f081ea7886d751b21c786d2000424a835ec54801", "detected_licenses": [ "MIT" ], "directory_id": "5f41d9f61168d13ba41f67588219ef566f1eb87b", "extension": "c"...
stackv2
#include <iostream> #include <stdlib.h> #include <pthread.h> #include <vector> void* entry_pt(void*); void test(); using namespace std; #define NUM_THREADS 2 int main (int argc, char **argv) { std::vector<pthread_t> threads(NUM_THREADS); for(int i=0; i<NUM_THREADS; i++){ pthread_create(&threads[i], NULL, e...
2.671875
3
2024-11-18T19:27:07.465448+00:00
2023-05-05T07:18:21
14343e454e1a3ff19ae01cc48c5125428aea4a36
{ "blob_id": "14343e454e1a3ff19ae01cc48c5125428aea4a36", "branch_name": "refs/heads/master", "committer_date": "2023-05-05T07:18:21", "content_id": "7630b9519e4971d3b0dd9f0a3e51cef58984cefd", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ace570f65d70e6ce9461bcb81aaaac31c57ec111", "extens...
stackv2
/* * This file is part of GreatFET */ #include "i2c_lpc.h" #include <libopencm3/lpc43xx/i2c.h> #include <stddef.h> #include <greatfet_core.h> #include <i2c_bus.h> #include <i2c.h> /* FIXME return i2c0 status from each function */ void i2c_lpc_start(i2c_bus_t* const bus, uint16_t _duty_cycle_count) { uint16_t du...
2.5
2
2024-11-18T19:27:07.595185+00:00
2019-06-01T13:28:10
43d840647be71565fb7482c4cb69c2e0abe25ec8
{ "blob_id": "43d840647be71565fb7482c4cb69c2e0abe25ec8", "branch_name": "refs/heads/master", "committer_date": "2019-06-01T13:28:10", "content_id": "5a479ba507f19d1624e4013537b7d14b078d761e", "detected_licenses": [ "MIT" ], "directory_id": "e398a585764f16511a70d0ef33a3b61da0733b69", "extension": "h"...
stackv2
/******************************Module*Header**********************************\ * * ******************* * * DX SAMPLE CODE * * ******************* * * Module Name: chroma.h * * Content: Chromakeying definitions and inline functions * * Copyr...
2.03125
2
2024-11-18T19:27:08.315318+00:00
2020-06-15T17:57:17
c0171735a9c3fd11a21fb4aead75e7d5fe81858e
{ "blob_id": "c0171735a9c3fd11a21fb4aead75e7d5fe81858e", "branch_name": "refs/heads/master", "committer_date": "2020-06-15T17:57:17", "content_id": "714403098645972d257fd252d01600970197aa0b", "detected_licenses": [ "MIT" ], "directory_id": "c2275b1ff4206872c8b49c3c8c623fc060b49e10", "extension": "c"...
stackv2
// THE PROBLEM // *************************** // Creating a bubble sort using for loops in C // Print out the total number of swaps performed, along with first element and last element after sorting. // Solution Created By: Dustin Kaban // Date: June 15th, 2020 // *************************** #include <math.h> #inclu...
3.875
4
2024-11-18T19:27:08.578015+00:00
2020-03-26T08:06:47
8683ed8f9517684b2c4ca6f91030f3fc376e412c
{ "blob_id": "8683ed8f9517684b2c4ca6f91030f3fc376e412c", "branch_name": "refs/heads/master", "committer_date": "2020-03-26T08:06:47", "content_id": "009e5f43391eb53ba794b68abeaf51991b591dee", "detected_licenses": [ "MIT" ], "directory_id": "34fa261e36a3201c37ee747a0875631a6a8254c0", "extension": "h"...
stackv2
#ifndef __LCD_H #define __LCD_H #include <stdlib.h> #include <stdint.h> #include "tiny_posix.h" ////////////////////////////////////////////////////////////////////////////////// typedef uint8_t u8; typedef uint16_t u16; typedef uint32_t u32; //LCD驱动参数 extern uint16_t lcd_id; //LCD ID extern uint8_t...
2.34375
2
2024-11-18T19:27:08.662158+00:00
2016-05-18T19:42:46
6dcf4df8384e315b29ac29d451972f72f6c9b536
{ "blob_id": "6dcf4df8384e315b29ac29d451972f72f6c9b536", "branch_name": "refs/heads/master", "committer_date": "2016-05-18T19:42:46", "content_id": "ad28176d91bb48f82e094e24e60639472472f078", "detected_licenses": [ "MIT" ], "directory_id": "de6604045fb627b86b6bb03c9f99fc69ed01a954", "extension": "c"...
stackv2
/* * Input : select concat_ws(',','test','complete'); Output : test,complete * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <errno.h> #include <ksu_common.h> extern void pg_concat_ws(sqlite3_context * context, int argc, ...
2.71875
3
2024-11-18T19:27:08.854823+00:00
2021-05-19T23:27:58
5a801c73b560b6609b8e7b872cebfda745ae8f27
{ "blob_id": "5a801c73b560b6609b8e7b872cebfda745ae8f27", "branch_name": "refs/heads/master", "committer_date": "2021-05-19T23:27:58", "content_id": "f583976c3083733bb29b04098f485097a1fa8f6b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c3f0281b88bf71eb1be515e3af43d70d83442bb7", "extens...
stackv2
/* * OpenBOR - http://www.LavaLit.com * ----------------------------------------------------------------------- * Licensed under the BSD license, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2011 OpenBOR Team */ #include <string.h> #include <io/pad.h> #include "video.h" #include "globals.h" ...
2.203125
2
2024-11-18T19:27:10.027086+00:00
2015-06-25T08:16:46
fb9b5b324bc6cf550def02f99d07fd235ee691be
{ "blob_id": "fb9b5b324bc6cf550def02f99d07fd235ee691be", "branch_name": "refs/heads/master", "committer_date": "2015-06-25T08:16:46", "content_id": "013abdc8638a1e5bb65646d5f8ec949032d3d5c7", "detected_licenses": [ "Unlicense" ], "directory_id": "74552bb39f067e2137cd51dfa0a8f8d20559b75d", "extension...
stackv2
#include "pebble.h" #include "elettromagnetismo.h" #define NUM_ELET_MENU_ITEMS 1 static Window *window; static SimpleMenuLayer *simple_menu_layer; static SimpleMenuSection menu_sections; static SimpleMenuItem elet_menu_items[NUM_ELET_MENU_ITEMS]; static void window_unload(Window *window) { simple_menu_layer_de...
2.125
2
2024-11-18T19:27:10.112530+00:00
2021-12-21T14:27:09
77dcb962cecc318c5b44cb2f5a0a66fe3dac4319
{ "blob_id": "77dcb962cecc318c5b44cb2f5a0a66fe3dac4319", "branch_name": "refs/heads/master", "committer_date": "2021-12-21T14:27:09", "content_id": "e2b587e2c2203d2293ce5752796fc8e32b128a0e", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "fead6fdd7f26bf55bb224a1d340b2c3897bf6bda", "extens...
stackv2
/* * $Id: Edges.c 3177 2008-04-01 14:47:24Z karstenm $ * * This file provides basic support for edges (the VEdges class). */ /* * Copyright 1993, 1994 University of British Columbia * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby gr...
2.296875
2
2024-11-18T19:27:10.254105+00:00
2023-06-01T16:34:30
797896bee5a9b2a4fca12689db6f576d4a5c4d72
{ "blob_id": "797896bee5a9b2a4fca12689db6f576d4a5c4d72", "branch_name": "refs/heads/master", "committer_date": "2023-06-01T16:34:30", "content_id": "3d312dabe2c7cf2466dc11d864ab40dcbc8b7bbd", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "06399145c01341470e9eb3644b0376739fabd9c9", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> #include "../readstat.h" #include "../readstat_writer.h" #include "readstat_sas.h" #include "readstat_xport.h" #include "readstat_xport_parse_format.h" #include "ieee.h" #define XPORT_DEFAULT_VERISON 8 #define RECORD_LEN 80 #if defined _MSC_VER #define rest...
2.171875
2
2024-11-18T19:27:10.411918+00:00
2022-03-12T03:16:16
7af918820a30543321e4e4411aced67f2e0246fa
{ "blob_id": "7af918820a30543321e4e4411aced67f2e0246fa", "branch_name": "refs/heads/master", "committer_date": "2022-03-12T03:16:16", "content_id": "88ee5d30cb9802d299de5bb1f35fa740dd703eef", "detected_licenses": [ "MIT" ], "directory_id": "e912c5622fb8d5867cf7bf760d53871e79534310", "extension": "c"...
stackv2
#include "pedal_rx.h" #include <stdbool.h> #include <stdint.h> #include "can.h" #include "can_msg_defs.h" #include "can_transmit.h" #include "delay.h" #include "event_queue.h" #include "interrupt.h" #include "log.h" #include "ms_test_helpers.h" #include "soft_timer.h" #include "status.h" #include "test_helpers.h" #in...
2.1875
2
2024-11-18T19:27:10.624263+00:00
2020-03-30T18:26:53
bd18bbb587ca64c8fbca03b8518977340ac4a30b
{ "blob_id": "bd18bbb587ca64c8fbca03b8518977340ac4a30b", "branch_name": "refs/heads/master", "committer_date": "2020-03-30T18:26:53", "content_id": "4d99ba3cbdfeb7b90abb1b69d436a030467e33d3", "detected_licenses": [ "MIT" ], "directory_id": "cee6109bafac80158b20d70a1bb62447f8b37be0", "extension": "c"...
stackv2
#include <windows.h> #include "config.h" extern int trs_paste_started(); extern void trs_end_copy() ; static int charCount = 0; static unsigned char *pasteString; static int pasteStringLength = 0; static HANDLE hClipboardData; int PasteManagerGetChar(unsigned short *character) { if (charCount) { *character = past...
2.203125
2
2024-11-18T19:27:10.710992+00:00
2023-09-03T08:13:23
b58f143649d79b10db6c8ee58943a033b1fe78a8
{ "blob_id": "b58f143649d79b10db6c8ee58943a033b1fe78a8", "branch_name": "refs/heads/main", "committer_date": "2023-09-03T08:13:23", "content_id": "fa0382450f54965b42ca7c952a1cb9769f5dc222", "detected_licenses": [ "MIT" ], "directory_id": "fb0f9abad373cd635c2635bbdf491ea0f32da5ff", "extension": "c", ...
stackv2
/** * \file * A pointer array list that doesn't require reallocs * * Copyright (C) 2016 Xamarin Inc * * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #ifdef HAVE_SGEN_GC #include <string.h> #include "mono/sgen/sgen-gc.h" #include "mono/sgen/sgen-array-li...
2.75
3
2024-11-18T19:27:10.804910+00:00
2018-07-16T10:55:29
f147230c747310e4dcb6b8194d5d6a2ff778ec42
{ "blob_id": "f147230c747310e4dcb6b8194d5d6a2ff778ec42", "branch_name": "refs/heads/master", "committer_date": "2019-09-20T23:34:39", "content_id": "78e23d2360af2a1abeff15b58a0db9df6070122a", "detected_licenses": [ "MIT" ], "directory_id": "28cd2d411f6ef5a1863c4e374af2ccb53e1058a6", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* printer.c :+: :+: :+: ...
2.546875
3
2024-11-18T19:27:10.865448+00:00
2021-11-30T07:54:29
0ddca5f15f15396bbc9efa6ce42baf0e603d6d01
{ "blob_id": "0ddca5f15f15396bbc9efa6ce42baf0e603d6d01", "branch_name": "refs/heads/huawei", "committer_date": "2021-11-30T08:51:54", "content_id": "fe95252d1df3e9dcb931052cd971053c11a42060", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ce0de673362e0cc59631333b8efd97cb59dc2fcc", "extens...
stackv2
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2018. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #ifndef UCS_PROFILE_ON_H_ #define UCS_PROFILE_ON_H_ #include "profile_defs.h" #include <ucs/sys/compiler_def.h> #include <ucs/sys/preprocessor.h> #include <ucs/config/global_opts.h> BEGIN_C_DECLS /**...
2.140625
2
2024-11-18T19:27:10.935686+00:00
2012-06-30T22:38:33
0321b9d97b20421669a83c88cabef1d99db80e32
{ "blob_id": "0321b9d97b20421669a83c88cabef1d99db80e32", "branch_name": "refs/heads/master", "committer_date": "2012-06-30T22:38:33", "content_id": "e46bfef560e5607de51f81d2f2eb415706ff3fbe", "detected_licenses": [ "MIT" ], "directory_id": "1587be5bbcd099beaa6136e5459e392610460d8f", "extension": "c"...
stackv2
#include <limits.h> #include <string.h> #include <stdlib.h> #include "bit_array.h" #define BA_ALLOC_T_BIT (CHAR_BIT*sizeof(ba_alloc_t)) #define BA_ALLOC_T_MASK ((ba_alloc_t)~0) #define BA_NUMBER_MASK (BA_ALLOC_T_BIT - 1) #define BA_NUMBER_SHIFT (3) // log2(BA_ALLOC_T_BIT) struct bit_array* alloc_bit_array(size_t nbit...
2.765625
3
2024-11-18T19:27:10.994789+00:00
2023-08-25T13:17:54
2ed4407d3894637dc43f833698bbeed5848acaca
{ "blob_id": "2ed4407d3894637dc43f833698bbeed5848acaca", "branch_name": "refs/heads/main", "committer_date": "2023-08-25T13:17:54", "content_id": "ea5d217071b7915659bc3e151e6ec4b7678d2d03", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cc91a1c30f6c5a176b225bdbf96c7bfd6dfeca52", "extension"...
stackv2
/*------------------------------------------------------------------------- * drawElements Base Portability Library * ------------------------------------- * * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
2.453125
2
2024-11-18T19:40:36.104056+00:00
2021-05-12T10:10:27
6c8514edda3362edafd46c472921cebf8986db64
{ "blob_id": "6c8514edda3362edafd46c472921cebf8986db64", "branch_name": "refs/heads/main", "committer_date": "2021-05-12T10:10:27", "content_id": "6d313802997a96ea8435b0e973511ffab7b26b76", "detected_licenses": [ "MIT" ], "directory_id": "65b30f3a45fa3ed3d18c900b68242efbda0b44ed", "extension": "h", ...
stackv2
/* * conio.h * C4droid自带这个头,所以使用C4droid运行可以忽略 * 这个头文件主要提供终端常用的getch和kbhit函数 * 如果使用其他Linux系统,需要这个头文件将它放在合适位置来引用 * * @Author: QAIU */ #ifndef CONIO_H #define CONIO_H #include <stdio.h> #include <time.h> #include <stdlib.h> #include <pthread.h> #include <termios.h> #include <unistd.h> #include <unistd.h> #incl...
2.453125
2
2024-11-18T19:40:36.886384+00:00
2018-01-14T11:13:39
f798b3fdeef5d88f4f1f510c38d0ddeefbf40ae5
{ "blob_id": "f798b3fdeef5d88f4f1f510c38d0ddeefbf40ae5", "branch_name": "refs/heads/master", "committer_date": "2018-01-14T11:13:39", "content_id": "5197f430ee7a98786a36446359ce16c4ad3d8ce6", "detected_licenses": [ "MIT" ], "directory_id": "224b6413fdde0a0175331dd606d10ed7956d2ab4", "extension": "h"...
stackv2
/* Receive messages from node <PRODUCER_DOMAIN, PRODUCER_NODE, SEND_PORT> into <CONSUMER_DOMAIN, CONSUMER_NODE, RECEIVE_PORT> */ void consumer(mcapi_param_t *parameters) { #ifdef SMECY_VERBOSE fputs("Entering the consumer\n", stderr); #endif mcapi_info_t info; mcapi_endpoint_t data_transmit_endpoint; mcap...
2.34375
2
2024-11-18T19:52:23.603772+00:00
2021-10-10T17:01:47
d6c0a9413dbf07117312f2b78a45e32f5d6f595d
{ "blob_id": "d6c0a9413dbf07117312f2b78a45e32f5d6f595d", "branch_name": "refs/heads/master", "committer_date": "2021-10-10T17:01:47", "content_id": "b51c6bff4cb45a7ca39d346be3a59ffac387a4ed", "detected_licenses": [ "MIT" ], "directory_id": "061b6f22e04dc63243f8f9fef2cc7b131de38ac0", "extension": "c"...
stackv2
#include "stdio.h" #include "Definitions.h" U64 Generate_hashKey(const CHESS_BOARD *chessBoard) { int sq = 0; U64 finalKey = 0; int piece = EmptySquare; int index; int piece1 = EmptySquare; // pieces for(sq = 0; sq < 64; sq++) { for (index = 1; index <=12; index++) { if ((1ULL << sq) & chessBoard->p...
2.03125
2
2024-11-18T19:52:23.942879+00:00
2016-04-07T20:50:40
435c2ae88f83c68090a954cf1bcf5ddc5d5ca261
{ "blob_id": "435c2ae88f83c68090a954cf1bcf5ddc5d5ca261", "branch_name": "refs/heads/master", "committer_date": "2016-04-07T20:50:40", "content_id": "a1fdbc09c8e07677da1ee8683efceb87b7ab2b50", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "38acba9d74e3cfbc2e5c2cf23545ae0742ead8b6", "extens...
stackv2
#include <stdio.h> int main(void) { int val1, val2; float res; int opc; printf(" 1-suma, 2-resta, 3-mult, 4-div\n"); scanf("%d",&opc); getchar(); printf("valor 1\n"); scanf("%d",&val1); printf("valor 2\n"); scanf("%d",&val2); return 0; }
2.640625
3