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-19T03:38:05.324076+00:00
2014-05-13T01:18:29
a1a41efeed6a3ff342d10700661a87121c0764b7
{ "blob_id": "a1a41efeed6a3ff342d10700661a87121c0764b7", "branch_name": "refs/heads/master", "committer_date": "2014-05-13T01:18:29", "content_id": "72c89db35750edcdd7dc8b5c15de09cfc594c3ee", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f415c7c9f9ac33053a617c54edbbd5ed00f33b73", "extensio...
stackv2
/* * Barycentric.h * * Created on: May 6, 2014 * Author: bessermt */ #ifndef BARYCENTRIC_H_ #define BARYCENTRIC_H_ typedef int Coord_t; // if Coord_t is not an integral type (ex. double), rounding in function barycentricToCartesian() should not round. typedef struct { Coord_t x, y; } Point2D; typedef st...
2.375
2
2024-11-19T03:38:05.449156+00:00
2020-01-24T19:01:15
498f53e44c608fd80c81356c7532d69089bb9f69
{ "blob_id": "498f53e44c608fd80c81356c7532d69089bb9f69", "branch_name": "refs/heads/master", "committer_date": "2020-01-24T19:01:15", "content_id": "5b6ad5c0e4af55c130089389f6869b0ad14498df", "detected_licenses": [ "MIT" ], "directory_id": "5d8decacd2defa666d4e1cab293e62e8ec24f7eb", "extension": "h"...
stackv2
#ifndef MMNGR_HEAP_H_14082016 #define MMNGR_HEAP_H_14082016 #include "types.h" #include "error.h" #include "utility.h" #include "mmngr_virtual.h" #define HEAP_BLOCK_MAGIC 0x1F2E #undef HEAP_ALLOC_FIRST_IMPLEMENT #undef HEAP_REALLOC_FIRST_IMPLEMENT enum HEAP_ERROR { HEAP_NONE, HEAP_BAD_MAGIC, HEAP_BAD_ARGUMENT, ...
2.296875
2
2024-11-19T03:38:05.502728+00:00
2023-02-16T11:27:40
c947bcd87031cb6f9f7ae9c704c561c9bc76e52d
{ "blob_id": "c947bcd87031cb6f9f7ae9c704c561c9bc76e52d", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "b3e8794ee6c9114847fcf52148d9f7669d23ea99", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2022 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_USBD_CONFIG_H #define ZEPHYR_INCLUDE_USBD_CONFIG_H #include <zephyr/usb/usbd.h> /** * @brief Get configuration descriptor bConfigurationValue value * * @param[in] cfg_nd Pointer to a configuratio...
2.40625
2
2024-11-19T03:38:05.717807+00:00
2020-07-09T10:34:20
c40719786b6565e427baa64eddc32b70a010f581
{ "blob_id": "c40719786b6565e427baa64eddc32b70a010f581", "branch_name": "refs/heads/master", "committer_date": "2020-07-09T10:34:20", "content_id": "91135c9e022d4b514bbba0f809a9ce7652bfaba0", "detected_licenses": [ "MIT" ], "directory_id": "4d5c4e65d52457335c85b9d031dbc072dbefa7f4", "extension": "h"...
stackv2
#ifndef STACK_H_ #define STACK_H_ #include<stdlib.h> #include<stdbool.h> struct Stack { unsigned stacksize; unsigned *items; unsigned *top; }; void CreateStack(struct Stack *st, unsigned size){ st->stacksize = size; st->items = (unsigned *)calloc(size, sizeof(unsigned)); st->top = st->items; } bool isempty(st...
2.796875
3
2024-11-19T03:38:05.785664+00:00
2017-08-05T03:03:11
24cd0bed1ff92997dd64a3d521629f8415ee4a0e
{ "blob_id": "24cd0bed1ff92997dd64a3d521629f8415ee4a0e", "branch_name": "refs/heads/master", "committer_date": "2017-08-05T03:03:11", "content_id": "525f42ceeb2b098aaf438fd49ec7dd6d5edc09c5", "detected_licenses": [ "MIT" ], "directory_id": "2349f4e5ad4adf2566f487e30caae046cacb88ba", "extension": "c"...
stackv2
#include <avr/io.h> #include <util/delay.h> #include "buzzer.h" void ioinit (void) { DDRD |= 0b00001000; //1 = output, 0 = input PORTD &= 0b11110111; } /* Turns on buzzer */ void buzzOn(void) { BUZZ_on(); } /* Turns off buzzer */ void buzzOff(void) { BUZZ_off(); }
2.0625
2
2024-11-19T03:38:05.942002+00:00
2021-02-17T12:48:29
d04ff6a371b00b24289d2db4774b5cecd1d01d60
{ "blob_id": "d04ff6a371b00b24289d2db4774b5cecd1d01d60", "branch_name": "refs/heads/master", "committer_date": "2021-02-17T12:48:29", "content_id": "e653fedd2ca0e49ce3849829809249ed6ea90020", "detected_licenses": [ "Unlicense" ], "directory_id": "935842734702d8be3a362ea62bf8d68c008ea21d", "extension...
stackv2
#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <wincrypt.h> #define ARR_LEN(x) \ (sizeof(x)/sizeof(x[0])) typedef enum { ArgProg, ArgBool, ArgValue } ArgType; typedef struct { ArgType type; char *key; union { struct { char *value; int len; }; int isset; }; } Arg; typedef struct { HAN...
2.609375
3
2024-11-19T03:38:57.624746+00:00
2018-03-09T11:15:05
de2033256b1fbb72bdd47199516998961693e81e
{ "blob_id": "de2033256b1fbb72bdd47199516998961693e81e", "branch_name": "refs/heads/develop", "committer_date": "2018-03-09T11:15:05", "content_id": "ebfe5a6b1fdf7e096a481a3a6e090817efb58717", "detected_licenses": [ "MIT" ], "directory_id": "30bfd70196dfac5e37f7dcf28dac7585684b7910", "extension": "c...
stackv2
#include <fsm.h> #include "elevator_driver.h" #include "door_driver.h" #include "fsm.h" #include <stdio.h> #define INVALID_FLOOR -1 fsm_state_e state_moving_up_entry(const state_data_t* state_data_p) { printf("State moving up entry\n"); set_motor_direction(MOTOR_DIRECTION_UP); start_motor(); return S...
2.53125
3
2024-11-19T03:38:58.080920+00:00
2020-03-19T01:09:52
d124ef15c773822b8604309e50903e41a9a6ef00
{ "blob_id": "d124ef15c773822b8604309e50903e41a9a6ef00", "branch_name": "refs/heads/master", "committer_date": "2020-03-19T01:10:04", "content_id": "5e3917bbcc2355eb8d91755f7ba11ed2b604c53c", "detected_licenses": [ "MIT" ], "directory_id": "18391e87748693bc0ae472f3fc5b7c5fbb46c8df", "extension": "h"...
stackv2
#ifndef NESNET_H #define NESNET_H // Reserving 20 non-zp bytes for internal use. Don't touch these unless you'd like to be sad. // TODO: Can we drop this to maybe 10 or 5 bytes? Currently only used for the test method. unsigned char nesnet_buffer[20]; /** * Make a generic HTTP request. * url: The url to request. *...
2.234375
2
2024-11-19T03:38:58.211546+00:00
2018-08-21T21:27:26
baa682e36a8a3762cc3250e9c32a8a29bbef6eee
{ "blob_id": "baa682e36a8a3762cc3250e9c32a8a29bbef6eee", "branch_name": "refs/heads/master", "committer_date": "2018-08-21T21:27:26", "content_id": "e9d3f81f55007bc9b940a81a0722c602f3f839f0", "detected_licenses": [ "MIT" ], "directory_id": "5bd68a857ea46c458e976536e646b2b4184d6ad7", "extension": "h"...
stackv2
#ifndef _MRSH_AST_H #define _MRSH_AST_H #include <mrsh/array.h> #include <stdbool.h> /** * Position describes an arbitrary source position include line and column * location. */ struct mrsh_position { int offset; // starting at 0 int line; // starting at 1 int column; // starting at 1 }; enum mrsh_word_type { ...
2.65625
3
2024-11-19T03:39:12.466429+00:00
2019-12-08T11:11:29
7e33b601a5df3dd1649d2a58885749fd8678ea41
{ "blob_id": "7e33b601a5df3dd1649d2a58885749fd8678ea41", "branch_name": "refs/heads/master", "committer_date": "2019-12-08T11:11:29", "content_id": "8a58cd5ead763facfaa9bf00bc266fac1c587751", "detected_licenses": [ "Apache-2.0" ], "directory_id": "bf869d4ffdfa71e269705829545e86554c389578", "extensio...
stackv2
/* Atom-kbdio : IO and Keyboard routines for the Acorn Atom. 2009-07-28, P.Harvey-Smith. Implements the following : 1) PS/2 Keyboard interface, driving crosspoint switch connected to Atom keyboard interface. 2) Bi-directional Data bus between the Atom and the AVR, hardware implemented in an externa...
2.015625
2
2024-11-19T03:39:12.670415+00:00
2017-05-17T06:40:02
69c88e4c637afb30ffce6324f8c429f382ccaa07
{ "blob_id": "69c88e4c637afb30ffce6324f8c429f382ccaa07", "branch_name": "refs/heads/master", "committer_date": "2017-05-17T06:40:02", "content_id": "4bb98700b722d5cb59b9fd710d1132c697b79563", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "e33a121de2a792e040b15858f21baff67e4d794d", "extens...
stackv2
/* * buffer.c * * Created on: 2016/12/13 * Author: Luo Guochun */ #include "buffer.h" #include <stdlib.h> #include <string.h> #include <stdbool.h> buffer_t* buffer_new(int size) { buffer_t* buf = (buffer_t*)calloc(1, sizeof(*buf)); if(buf) { buf->buf = (char*)malloc(sizeof(char)*size); if(!buf->buf...
2.984375
3
2024-11-19T03:39:12.840451+00:00
2017-10-22T16:08:15
804cd0ac1f73378006b07f77b779d0fc1a63c975
{ "blob_id": "804cd0ac1f73378006b07f77b779d0fc1a63c975", "branch_name": "refs/heads/master", "committer_date": "2017-10-22T16:08:15", "content_id": "1560acaccd45fb9958ad75d5a341d9614ca16f89", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ed9c2468adfd4f38f9eeb13534c6b80c4bdd0d4d", "extensio...
stackv2
/* Copyright 2015 refractionPOINT 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.203125
2
2024-11-19T03:39:26.781661+00:00
2023-08-23T04:46:46
df09d074377007e110bd40ee2cd01c2fd7cab6ce
{ "blob_id": "df09d074377007e110bd40ee2cd01c2fd7cab6ce", "branch_name": "refs/heads/master", "committer_date": "2023-08-23T04:46:46", "content_id": "0e285c90447eb52c202a862d9525a010699922b8", "detected_licenses": [ "MIT" ], "directory_id": "2c73a693c2b3c162eae2ab94f649d8c4494878ba", "extension": "c"...
stackv2
/* @module lvgl @summary LVGL图像库 @version 1.0 @date 2021.06.01 */ #include "luat_base.h" #include "luat_lvgl.h" #include "lvgl.h" #include "../exts/lv_qrcode/lv_qrcode.h" /** 创建qrcode组件 @api lvgl.qrcode_create(parent, size, dark_color, light_color) @userdata 父组件 @int 长度,因为qrcode是正方形 @int 二维码中数据点的颜色, RGB颜色, 默认 0x...
2.421875
2
2024-11-19T03:39:26.992230+00:00
2016-01-09T16:17:05
410c2eb695173952b3fe8be57026d8989ec0d179
{ "blob_id": "410c2eb695173952b3fe8be57026d8989ec0d179", "branch_name": "refs/heads/master", "committer_date": "2016-01-09T16:17:05", "content_id": "71bbf99be2a24a9cf2ad47c3ce924170591073e5", "detected_licenses": [ "MIT" ], "directory_id": "57f4e9843439a69b8ae14f9f2fe97f857c8a3ebc", "extension": "c"...
stackv2
/* motor2d Copyright (C) 2015 Florian Kesseler This project is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE.md for details. */ #include <stdlib.h> #include <string.h> #include <lauxlib.h> #include "boot.h" static char const bootScript[] = ...
2.015625
2
2024-11-19T03:39:27.123140+00:00
2020-10-19T14:43:56
4dafdd4c15f42b463217e9eb39b1c304b9a58309
{ "blob_id": "4dafdd4c15f42b463217e9eb39b1c304b9a58309", "branch_name": "refs/heads/main", "committer_date": "2020-10-19T14:43:56", "content_id": "60c1a1fb7e84d090276440aab94f1ab227d9a629", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8b0938ce175e864a2769080607040a5b523a3a02", "extension"...
stackv2
/* OTA example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "freertos/FreeRTOS.h...
2.3125
2
2024-11-19T01:28:35.982602+00:00
2021-01-22T16:44:00
1b99946315cbecde6e737aa4707cfeefd4ed1489
{ "blob_id": "1b99946315cbecde6e737aa4707cfeefd4ed1489", "branch_name": "refs/heads/master", "committer_date": "2021-01-22T16:44:00", "content_id": "e951f477d02ce48b481183ec06b4a006858eb3cc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d68bd9258c3ddbc5f93b2843d07e8e0ab1e4607a", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> int main(void){ float mydata[]= {22.1, 32.55, 64.8, 12.0}; float* fltptr = NULL; float* fltptr2=NULL; float f= 25.6; fltptr = &f; // this points to the float f fltptr = mydata; //this now point to mydata i.e. first element of my data *fltptr; // this evaluates to 22.1 fltptr...
3.359375
3
2024-11-19T01:28:50.220450+00:00
2015-01-06T07:09:36
3d58085330e6d66d5782c55d4ee2fff3abc306df
{ "blob_id": "3d58085330e6d66d5782c55d4ee2fff3abc306df", "branch_name": "refs/heads/master", "committer_date": "2015-01-06T07:09:48", "content_id": "0272226f10bf1b97b0bf9bc89f8acb5454377434", "detected_licenses": [ "Zlib" ], "directory_id": "7512b78423e72fcce5254f764940ce9b8f3c1460", "extension": "c...
stackv2
#include "sdl_rwops_util.h" #include "vstring.h" #include "SDL_RWops.h" /* * sdl_rwops_util.c * Copyright (c) 2014 snipsnipsnip * zlib license */ int sdl_rwops_util_getc(SDL_RWops *rw) { unsigned char c; return SDL_RWread(rw, &c, 1, 1) == 1 ? c : EOF; } vstring *sdl_rwops_util_gets_v(SDL_RWops *rw, vstri...
2.5625
3
2024-11-19T01:28:50.287301+00:00
2021-05-01T17:47:45
bc5ce2bb850fe7f39a94448ef5a70d7d8da578ec
{ "blob_id": "bc5ce2bb850fe7f39a94448ef5a70d7d8da578ec", "branch_name": "refs/heads/master", "committer_date": "2021-05-01T17:47:45", "content_id": "f5a841a7972b782a3a2d21117391c0835ac12fb3", "detected_licenses": [ "MIT" ], "directory_id": "64c2c5482831d475af44bc97f1b2bbe61ac8c482", "extension": "c"...
stackv2
#include <esp_log.h> #include <stdio.h> #include "nvs_flash.h" #include "nvs.h" #define TAG "nvs" #define STORAGE_NAMESPACE "storage" static int _value_length_get(nvs_handle handle, char* key) { size_t value_length = 0; esp_err_t err = nvs_get_blob (handle, key, NULL, &value_length); if (err != ESP_OK &&...
2.640625
3
2024-11-19T01:28:50.531133+00:00
2021-05-28T15:36:52
437a8c080582325cf228c9ebde056e9507c57873
{ "blob_id": "437a8c080582325cf228c9ebde056e9507c57873", "branch_name": "refs/heads/master", "committer_date": "2021-05-28T15:36:52", "content_id": "5a64d047428a0ac7878ca7638e526e5eb889f9e7", "detected_licenses": [ "MIT" ], "directory_id": "fae0f70bdb721adb9a655980d9d20b4c5acdba6e", "extension": "c"...
stackv2
#define CPU_ID *((volatile unsigned char*)0xffff4200) int main() { // try switching between threads using `thread 1` and `thread 2`! int done = 0; int x = 0; // diverging paths on each CPU core if (CPU_ID == 0xaa) { while (!done) {} return x; } else { // big, useless lo...
2.359375
2
2024-11-19T01:40:10.502941+00:00
2020-10-16T07:34:01
bee7dfa026fc3549e17f62d339431fcb7c94dcf4
{ "blob_id": "bee7dfa026fc3549e17f62d339431fcb7c94dcf4", "branch_name": "refs/heads/master", "committer_date": "2020-10-16T07:34:01", "content_id": "d560a85f74629f290b56a45c6b2c1e1425197a70", "detected_licenses": [ "MIT" ], "directory_id": "8c8685c45003576ebfd7017924e865555bf67b99", "extension": "c"...
stackv2
#include<stdio.h> #include<stdlib.h> #define M 100 /* ** Program to find n'th term of fibonacci series using Dynamic Programming ** Made by - Abhishek Chand */ long F[M]; long fibo(int n) { if(F[n]==-1) return F[n]=fibo(n-1)+fibo(n-2); return F[n]; } int main() { int i,n; F[0]=0; F[1]=1; long ans; printf("...
3.640625
4
2024-11-19T01:40:10.588211+00:00
2023-08-17T21:51:22
846764c609271c972103fa340674c848245e50c1
{ "blob_id": "846764c609271c972103fa340674c848245e50c1", "branch_name": "refs/heads/master", "committer_date": "2023-08-17T21:51:22", "content_id": "cd5656153a44538708578720360805b5a9d0769b", "detected_licenses": [ "MIT" ], "directory_id": "80f3b23dce2738ff296d938a16b9f5bc8a7773f2", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> /* Função : Funcao fatorial recursiva Autor : Edkallenn Data : 06/04/2012 Observações: */ float fat(int n); //protótipo main(){ int i,num; do{ printf("\nDigite um numero inteiro positivo:"); scanf("%d", &num); }while(num<=0); for (i...
3.359375
3
2024-11-19T01:40:12.181696+00:00
2017-09-05T22:35:09
07b3524d11c8f54cf217bc17e14eda2d33c5ecf8
{ "blob_id": "07b3524d11c8f54cf217bc17e14eda2d33c5ecf8", "branch_name": "refs/heads/master", "committer_date": "2017-09-05T22:35:09", "content_id": "99d6775742c14b1e68c5c1e1d040fac0caacd46f", "detected_licenses": [ "Unlicense" ], "directory_id": "e5a1eb236b1cdce71d1fdf68c6aa946ddf7682c5", "extension...
stackv2
#include <stdio.h> #include <stdint.h> int main(void) { uint64_t a = 5; uint32_t b = a; // Trunc uint32_t c = 3; uint64_t d = c; // ZExt int32_t e = 3; int64_t f = e; // SExt double g = 5.0; float h = g; // FPTrunc float i = 3.0; double j = i; // FPExt double k = 5.0; uint64_t l = k; // FPToUI doubl...
2.484375
2
2024-11-19T01:40:27.181760+00:00
2020-07-02T01:18:38
97f771b043868de72f6a77b000cfaab222ba9fd6
{ "blob_id": "97f771b043868de72f6a77b000cfaab222ba9fd6", "branch_name": "refs/heads/A073708", "committer_date": "2020-07-02T01:18:38", "content_id": "0685ba6cbc4124ba00f487ae91ef02e014e36156", "detected_licenses": [ "MIT" ], "directory_id": "6a70e24fa462449536208401d9503dba2c95647f", "extension": "c...
stackv2
#include "mm.h" #include "system.h" #include "uart.h" #include "util.h" #define CMD_HELP "help" #define CMD_HELLO "hello" #define CMD_TIME "timestamp" #define CMD_REBOOT "reboot" void get_timestamp(); void main() { uart_init(); init_memory(); void* test1 = malloc(sizeof(free_area_t)); void* test2 = ...
2.34375
2
2024-11-19T01:40:27.490684+00:00
2022-07-20T14:38:45
cf49b008bdee991a3684bef033845d54ba35a7b9
{ "blob_id": "cf49b008bdee991a3684bef033845d54ba35a7b9", "branch_name": "refs/heads/main", "committer_date": "2022-07-20T14:38:45", "content_id": "b3c00f07afba735fbcb91b6cd9172d0c96f25663", "detected_licenses": [ "MIT" ], "directory_id": "04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4", "extension": "h", ...
stackv2
/* CFURLEnumerator.h Copyright (c) 2008-2019, Apple Inc. All rights reserved. */ #include <CoreFoundation/CFBase.h> #if TARGET_OS_MAC || CF_BUILDING_CF || NSBUILDINGFOUNDATION #if !defined(__COREFOUNDATION_CFURLENUMERATOR__) #define __COREFOUNDATION_CFURLENUMERATOR__ 1 #include <CoreFoundation/CFArray.h> #...
2.015625
2
2024-11-19T02:02:13.685145+00:00
2020-10-07T21:39:03
cb1d77a9f65852ad7792e1fd943c939db9000e22
{ "blob_id": "cb1d77a9f65852ad7792e1fd943c939db9000e22", "branch_name": "refs/heads/master", "committer_date": "2020-10-07T21:39:03", "content_id": "d9188e7334e41fe38adb6d54c98677a394af94f2", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "3460084fb2d3d2a0ff93519fa25ae18e0edef49d", "extens...
stackv2
/* Damon Gwinn Performs semantic checking on a given statement NOTE: Max scope level refers to the highest level scope we can reference a variable at - 0 is the current scope, 1 is the first above and so on - Functions can't have side effects, but they can contain procedures so this is a ...
2.609375
3
2024-11-19T02:02:26.045204+00:00
2021-07-05T04:56:52
6b8488d1048fb61d7a1c25389b1824e24c5b4999
{ "blob_id": "6b8488d1048fb61d7a1c25389b1824e24c5b4999", "branch_name": "refs/heads/master", "committer_date": "2021-07-05T04:56:52", "content_id": "aa4adfad4bbd15fa85eed8e5208213731f0b640d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c2a8c852e2328ed58ea16b4bde1edc79801e6c76", "extensio...
stackv2
/*--------------------------------------------------------------------------- setstartendtime.c, setStartEndTime() Purpose: Given a date in the form of a dateType structure, set the start and end day and month values. Basically if only a year value is set then the values are set to cover the entire year. If a spec...
2.703125
3
2024-11-19T02:02:28.078375+00:00
2023-08-01T16:48:43
e6cacc8c8439c8c284c9e4171dbcce95610641be
{ "blob_id": "e6cacc8c8439c8c284c9e4171dbcce95610641be", "branch_name": "refs/heads/main", "committer_date": "2023-08-01T16:48:43", "content_id": "b71313b044242919015a10d91846d5c1b8b3e391", "detected_licenses": [ "MIT" ], "directory_id": "1a4c5ea475847581ab358c26c3067885b446d440", "extension": "h", ...
stackv2
/* * @Copyright (c) 2020, MADMACHINE LIMITED * @Author: Frank Li(lgl88911@163.com) * @SPDX-License-Identifier: MIT */ #ifndef _SWIFT_FS_H_ #define _SWIFT_FS_H_ #define SWIFT_FS_O_READ 0x01 #define SWIFT_FS_O_WRITE 0x02 #define SWIFT_FS_O_RDWR (SWIFT_FS_O_READ | SWIFT_FS_O_WRITE) #define SWIFT_FS_...
2.234375
2
2024-11-19T02:13:34.674791+00:00
2022-12-11T21:25:06
494d51796d88fbf1bc990e716e2bdfe7f6d3fecb
{ "blob_id": "494d51796d88fbf1bc990e716e2bdfe7f6d3fecb", "branch_name": "refs/heads/main", "committer_date": "2022-12-11T21:25:06", "content_id": "031935e9cf2adc358c7d5bc790656d40cb4ce47e", "detected_licenses": [ "MIT" ], "directory_id": "6c337c1e9dfcc564de2f5fecc2a8806cd8b477db", "extension": "c", ...
stackv2
#include <stdint.h> #include <stdio.h> #define SCALING 2147483647 #define MASK 0xFFFF typedef struct { uint64_t factor; uint64_t state; } Generator; void advance(Generator* g) { g->state = (g->factor * g->state) % SCALING; } int eval(uint64_t a, uint64_t b) { int16_t ma = MASK & a; int16_t mb = MASK & b; ...
3.234375
3
2024-11-19T02:24:10.550183+00:00
2023-08-17T21:45:44
2b73dab0d8b56049ade533b5fb154abd424115ee
{ "blob_id": "2b73dab0d8b56049ade533b5fb154abd424115ee", "branch_name": "refs/heads/master", "committer_date": "2023-08-17T21:45:44", "content_id": "d4f8e2aef869e05f3d88b6a6cfad405235adbfe0", "detected_licenses": [ "MIT" ], "directory_id": "6e8423f7defb6f7bcdd253c2d9adb9bc5a4aeeed", "extension": "c"...
stackv2
/** * @file libinput.c * */ /********************* * INCLUDES *********************/ #include "libinput_drv.h" #if USE_LIBINPUT || USE_BSD_LIBINPUT #include <stdio.h> #include <unistd.h> #include <linux/limits.h> #include <fcntl.h> #include <errno.h> #include <stdbool.h> #include <dirent.h> #include <libinp...
2.59375
3
2024-11-19T02:36:56.336435+00:00
2018-12-07T02:11:55
9d1afd5e336a74b47676d15057050c9efefcf41f
{ "blob_id": "9d1afd5e336a74b47676d15057050c9efefcf41f", "branch_name": "refs/heads/master", "committer_date": "2018-12-07T02:11:55", "content_id": "00068e3d9fc462df283f2d1da474ae7f1fcf8674", "detected_licenses": [ "MIT" ], "directory_id": "395d1b980d75592d2a0d9e3a41988ae421a7d142", "extension": "c"...
stackv2
#include "types.h" #include "stat.h" #include "user.h" #include "uproc.h" #include "param.h" static char PROC_STATE[6][10] = { "UNUSED", "EMBRYO", "SLEEPING", "RUNNABLE", "RUNNING", "ZOMBIE", }; int main(int argc, char *argv[]) { struct uproc up; int i; printf(1, "PID\tName\tSize\...
2.28125
2
2024-11-19T02:36:56.417625+00:00
2020-11-27T08:18:22
e68203b92a5cbc43bb7ccdbee071d0f49e244227
{ "blob_id": "e68203b92a5cbc43bb7ccdbee071d0f49e244227", "branch_name": "refs/heads/master", "committer_date": "2020-11-27T08:18:22", "content_id": "e500a433ee31858104af12a4d0cda3514456de33", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ea508c55e951f23ec2f4f5ff35b193d9f30a989a", "extensio...
stackv2
#define _DEFAULT_SOURCE #include <stdlib.h> #include <stdio.h> #include <string.h> #ifdef __linux__ #include <unistd.h> #include <safe_str_lib.h> #include <signal.h> #elif defined(_WIN32) // don't need anything specific :) #else #error Unsupported platform #endif #ifdef _MSC_VER #define strdup(x) _strdup(x) #endif ...
2.015625
2
2024-11-19T02:36:56.608154+00:00
2018-06-19T10:10:20
4f492dc185bf1996612f0deebce118968f79a1ac
{ "blob_id": "4f492dc185bf1996612f0deebce118968f79a1ac", "branch_name": "refs/heads/master", "committer_date": "2018-06-19T10:10:20", "content_id": "bcf7e7db13509ce52292d4f17c8e716d7ecbd771", "detected_licenses": [ "MIT" ], "directory_id": "ae4067c293829dc79fe07beee55ca7936f96cca4", "extension": "c"...
stackv2
/* * @File: dwin_init.c * @Author: liu2guang * @Date: 2018-04-22 14:52:10 * * @LICENSE: MIT * https://github.com/liu2guang/dwin/blob/master/LICENSE * * Change Logs: * Date Author Notes * 2018-04-22 liu2guang update v2 framework. */ #include "dwin_init.h" #include "dwin.h...
2.0625
2
2024-11-19T02:36:57.136135+00:00
2019-12-22T15:41:11
98646cd2c716c6eb81d21740298d51528d96fcc0
{ "blob_id": "98646cd2c716c6eb81d21740298d51528d96fcc0", "branch_name": "refs/heads/master", "committer_date": "2019-12-22T15:41:11", "content_id": "bd65119142c77a266917076b955281bd176dc9bb", "detected_licenses": [ "MIT" ], "directory_id": "62a271c051a5f6c9ce6fd1a46f7d7c34946f39f0", "extension": "c"...
stackv2
/* Author: AKHILESH SANTOSHWAR */ #include<stdio.h> int main(){ float length, breadth, area; // Equation: A = wl // area = A // breadth = width = w // length = l printf("Enter Length: "); scanf("%f", &length); printf("Enter Breadth: "); scanf("%f", &breadth); area = breadth...
3.234375
3
2024-11-19T02:36:57.246663+00:00
2015-10-06T08:56:57
41d848b8c044385d57a07bfd0c24c9f2e49c4498
{ "blob_id": "41d848b8c044385d57a07bfd0c24c9f2e49c4498", "branch_name": "refs/heads/master", "committer_date": "2015-10-06T08:56:57", "content_id": "9db359f500a31e634e16295c940385808474699f", "detected_licenses": [ "MIT" ], "directory_id": "1ca198b02eb22a30a831fdf901149a509845f423", "extension": "c"...
stackv2
#include "client.h" #include "client_keys.h" #define MAX_POWER 100 #define SHOOT_FAST_STEP 2 int camera_focus=0; struct dyn_arr ScrUpdates = { sizeof(ScreenUpdate) }; struct dyn_arr Players = { sizeof(struct player) }; struct dyn_arr Abilities = { sizeof(struct ability) }; int shoot_last_key=0; unsigned int shoot_pres...
2.53125
3
2024-11-19T02:36:57.520132+00:00
2020-07-30T09:52:00
7f2bf72845228d1d5ad013451cbca29ad85209ac
{ "blob_id": "7f2bf72845228d1d5ad013451cbca29ad85209ac", "branch_name": "refs/heads/master", "committer_date": "2020-07-30T09:52:00", "content_id": "44197cefb8d798eb7c93a46027b1abc1d0488bf0", "detected_licenses": [ "MIT" ], "directory_id": "56ef604dbbd4cea44f6e26e805d24adc43e937b8", "extension": "c"...
stackv2
#include <amd64/idt.h> #include <drivers/apictimer.h> #include <drivers/lapic.h> #include <drivers/pit.h> #include <smp/localstorage.h> #include <lock.h> void apic_timer_handler(struct frame *frame) { struct local_storage *storage = local_storage_get(); if (storage->apictimer_handler != NULL) { storage->apictimer_...
2.171875
2
2024-11-19T02:36:57.684146+00:00
2020-10-14T17:01:18
68e5818d4ced37806b4e7fbc5661b485bae4c4b5
{ "blob_id": "68e5818d4ced37806b4e7fbc5661b485bae4c4b5", "branch_name": "refs/heads/master", "committer_date": "2020-10-14T17:01:18", "content_id": "ef63027f7d28afeb6f4429df2ae0796fba9ed0f3", "detected_licenses": [ "AFL-3.0" ], "directory_id": "2d1230caf2437cf361d79fcfd045f5ae600c5162", "extension":...
stackv2
// // Created by gnbpdx on 8/6/20. // #include <stdlib.h> #include "source/graph.c" #include "source/cuda_regular_bfs.h" int main(int argc, char** argv) { int source = 0; int num_nodes; int num_edges; int* h_edges; int* h_dest; int* h_data; int* h_label; int** graph = init_graph_adjacency(argv[1], &num_nodes...
2.390625
2
2024-11-19T02:36:59.902556+00:00
2016-11-04T11:53:59
d3cfd510586613a74d2620671fd3375af953126b
{ "blob_id": "d3cfd510586613a74d2620671fd3375af953126b", "branch_name": "refs/heads/master", "committer_date": "2016-11-04T11:53:59", "content_id": "3fe00e5c0ee175b45657577dac40663328baf11b", "detected_licenses": [ "MIT" ], "directory_id": "b8558f8ab085cc331461c2d9631af66d7fe8193d", "extension": "h"...
stackv2
#ifndef SOCKET_20130716 #define SOCKET_20130716 #include <time.h> #include "handle.h" #include "msg_factory.h" #include "msg_processor.h" #include "fixed_queue.h" #include "dynamic_array.h" #define SND_QUEUE_SIZE 20 #define RECVBUF_INIT_SIZE 1024 #define INADDR_ANY_STR "0.0.0.0" #define INADDR_LOCAL_STR "127.0.0.1" #...
2.375
2
2024-11-19T02:36:59.968698+00:00
2018-09-04T18:20:28
7dfb8dc34511c3157263bb5b68e993ec2d9444d8
{ "blob_id": "7dfb8dc34511c3157263bb5b68e993ec2d9444d8", "branch_name": "refs/heads/master", "committer_date": "2018-09-04T18:20:28", "content_id": "277074691e33133bafa54d3642ca88be54928bc7", "detected_licenses": [ "MIT" ], "directory_id": "12bfd8f935478a8afdfd996dcf98c09d7c4926e3", "extension": "h"...
stackv2
#ifndef API_TESTS_H #define API_TESTS_H #include "test_common.h" #include "api.h" #include "seed.h" #define BIP32_PATH_LENGTH 5 #define BIP32_PATH \ { \ 0x8000002C, 0x800010...
2.234375
2
2024-11-19T02:37:00.179945+00:00
2020-08-14T10:34:46
73240b24b2b188562e94a07adc403c61d5f7e1e4
{ "blob_id": "73240b24b2b188562e94a07adc403c61d5f7e1e4", "branch_name": "refs/heads/master", "committer_date": "2020-08-14T10:34:46", "content_id": "487bdfc7644b6a86f60e2862e02011bc315a7ba6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6cbae77d7fb79c1eb81855a65fb32a3e09b65f6b", "extensio...
stackv2
/** * \file motor.h * \brief API for motors * \author ertl-liyixiao */ /** * \~English * [TODO: sync with jp version] * \defgroup ev3motor Motor * \brief Definitions of API for controlling motors. * * \~Japanese * \defgroup ev3motor サーボモータ * \brief モータ制御に関するAPI. * * @{ */ #pragma once /** * ...
2.40625
2
2024-11-19T02:37:00.541367+00:00
2017-10-06T03:41:11
6abe8e5ab77d44db7222674c730525d62289776c
{ "blob_id": "6abe8e5ab77d44db7222674c730525d62289776c", "branch_name": "refs/heads/master", "committer_date": "2017-10-06T03:41:11", "content_id": "aac094fa2658e53bf277cc5f7dd1a51e1ef10749", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e23071153d418c336774d19d760dc9b6e0645fdb", "extensio...
stackv2
#include <stdint.h> #include <stdio.h> #include <string.h> #include <syslog.h> #include <sai.h> #include <saistatus.h> #include <saitypes.h> #include "pluginCommon.h" sai_virtual_router_api_t* sai_vr_api_tbl = NULL; sai_route_api_t* sai_route_api_tbl = NULL; sai_router_interface_api_t* sai_rif_api_tbl = NULL; sai_ne...
2.078125
2
2024-11-19T02:37:00.914620+00:00
2014-06-13T17:12:12
3be27cb516452b1616a56df5e10d4ce98f2fa893
{ "blob_id": "3be27cb516452b1616a56df5e10d4ce98f2fa893", "branch_name": "refs/heads/master", "committer_date": "2014-06-13T17:12:12", "content_id": "7c6a0365e969a8b6a15023edafb72996a2ffce07", "detected_licenses": [ "MIT" ], "directory_id": "f4c8bd7166e4b05589bb5d28cc3f187509f49095", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <omp.h> #include "wtime.h" #define DIM 2048 // Matrix is DIM x DIM #define N 10 // Number of repetitions static double **A, **B, **C; static void zero_product(double **C) { int i, j; #pragma omp for schedule(static) for (i = 0; i < DIM; i++) { ...
3.09375
3
2024-11-19T02:37:01.541858+00:00
2021-07-08T09:37:34
25ea502f6756eeeab897113dab63a923d196c036
{ "blob_id": "25ea502f6756eeeab897113dab63a923d196c036", "branch_name": "refs/heads/master", "committer_date": "2021-07-08T09:37:34", "content_id": "2620c5cae6de4a6020fa5fee12690bf06f8b486b", "detected_licenses": [ "MIT" ], "directory_id": "e93bd7cceebc5806885693a17bbfa4a7d433df17", "extension": "h"...
stackv2
/************************************************************************ * * * File : tbSolver.h * * Date : 27/10/10 * * Comments : Collision ...
2.265625
2
2024-11-19T02:37:02.872395+00:00
2022-01-27T20:54:56
46b9b2c4c256271751a89f7bbe8fb00372d70f75
{ "blob_id": "46b9b2c4c256271751a89f7bbe8fb00372d70f75", "branch_name": "refs/heads/master", "committer_date": "2022-01-27T20:54:56", "content_id": "24fd41d90e0e923afe0119d781a5d31298ef31c2", "detected_licenses": [ "MIT" ], "directory_id": "27d2721ebce850760f3af3c0edbff928d4d5d7cb", "extension": "c"...
stackv2
/* universal constructor; compile for a pascal like language * * TODO: Decide on grammar, implement compiler, iterate. * * Needs: Modules (not needed initially), Functions (nested), Unsafe * operations, arrays, byte/strings, records, function pointers, basic * arithmetic and bitwise operators, debugging and ass...
2.34375
2
2024-11-19T02:37:03.087189+00:00
2020-02-22T18:50:00
8b29a4d251df768fab749a938905950c5938f88e
{ "blob_id": "8b29a4d251df768fab749a938905950c5938f88e", "branch_name": "refs/heads/master", "committer_date": "2020-02-23T17:55:40", "content_id": "78a6b79e22cee14ffe99cc0dc5938ea37df60398", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "9cdee5e676552517a8bbc313c056e73b21aeb3b1", "extens...
stackv2
/* SPDX-License-Identifier: BSD-3-Clause */ #include <stdbool.h> #include "files.h" #include "log.h" #include "tpm2.h" #include "tpm2_capability.h" #include "tpm2_tool.h" typedef struct tpm_evictcontrol_ctx tpm_evictcontrol_ctx; struct tpm_evictcontrol_ctx { struct { const char *ctx_path; const c...
2.28125
2
2024-11-19T02:37:03.194964+00:00
2016-02-20T09:59:41
d6ccd2e3c4d09361c404bf55c7d5511ceaee9b48
{ "blob_id": "d6ccd2e3c4d09361c404bf55c7d5511ceaee9b48", "branch_name": "refs/heads/master", "committer_date": "2016-02-20T09:59:41", "content_id": "a0c2b64908a0f2629d911f05db3cdfaae1f515cc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "34ace2ca7bde7ca3489c886c25a46090cdf607cd", "extensio...
stackv2
#include "parser.h" #include "backend.h" #include "error.h" #include <stdio.h> #include <stdlib.h> int Error(char* text){ printf("%s", text); exit(1); } int main(int ARGC, char *ARGV[]){ AST_node *icode; if(!Parse_program(&icode, ARGV[1])) Error("No top-level expression"); Process(icode); return 0;...
2.09375
2
2024-11-19T02:37:03.330292+00:00
2019-11-15T01:07:49
da8acb02114fdefe8d24c6bb7a8b40bd134b7fc8
{ "blob_id": "da8acb02114fdefe8d24c6bb7a8b40bd134b7fc8", "branch_name": "refs/heads/master", "committer_date": "2019-11-15T01:07:49", "content_id": "69eb4582409dff95f4fa86ee8d6c0520eeacc6b3", "detected_licenses": [ "Unlicense" ], "directory_id": "fcc0de3c3a743b8992fa1d8b0dbf4f799727b850", "extension...
stackv2
#include<stdio.h> #include<math.h> //* boundaries of input x const double lowBound = -1.0; const double highBound = 1.0; double getXMin(){ double xMin = 0.0; printf("enter xMin, the smallest x used in the table %7.3lf < x < %8.3lf\n", lowBound, highBound); scanf("%lf", &xMin); //TODO: check if it's ac...
3.59375
4
2024-11-19T02:37:03.838503+00:00
2020-04-15T20:58:21
72f7e4050c625cda2e45f5174df52d645fbfc265
{ "blob_id": "72f7e4050c625cda2e45f5174df52d645fbfc265", "branch_name": "refs/heads/master", "committer_date": "2020-04-15T20:58:21", "content_id": "a383286bf7622c67b1f5d1d2f5fc09322486256b", "detected_licenses": [ "MIT" ], "directory_id": "ebc700cb11b49d5319544d3f7bbc8882250a8e5a", "extension": "c"...
stackv2
//------------------------------------------------------------------------- // // (c) 2003 Altium // Started: 04.12.2003 Ch.Weimann // PS2 Keyboard Interface for // the Altium Nanoboard Tester //------------------------------------------------------------------------- #include "nbt_lcd.h" #include "hware.h" #define PS2...
2.34375
2
2024-11-19T02:37:04.811139+00:00
2019-02-13T12:51:20
507afdc61b1b25bfeb3a37dfdf53bc567eff0504
{ "blob_id": "507afdc61b1b25bfeb3a37dfdf53bc567eff0504", "branch_name": "refs/heads/master", "committer_date": "2019-02-13T12:51:20", "content_id": "6c8f0751dc3c89aec84fdfc264b7b312a0bca391", "detected_licenses": [ "MIT" ], "directory_id": "26c4a418935e9c663b7e717f1f9185107144e0c0", "extension": "h"...
stackv2
/* ** EPITECH PROJECT, 2017 ** hash_table ** File description: ** hash_table */ #ifndef HASH_TABLE_ #define HASH_TABLE_ #define SIZE_HM 3000 #include "my.h" #include "hash_map.h" typedef struct hm_object { char *key; void *data; struct hm_object *next; }hm_object_t; typedef struct hash_map { hm_object_t **hash...
2.140625
2
2024-11-19T02:37:05.008274+00:00
2021-11-04T02:51:10
b0b0b949daf9f6f98adf3dae16380dd875a90d90
{ "blob_id": "b0b0b949daf9f6f98adf3dae16380dd875a90d90", "branch_name": "refs/heads/master", "committer_date": "2021-11-04T02:51:10", "content_id": "fa9c7b3a535b1fe966996e12d04f29be9f0f7faf", "detected_licenses": [ "MIT" ], "directory_id": "0a3e6743d5b527dd2ca0b84d8bc4b3acb345b558", "extension": "c"...
stackv2
#include <stdio.h> #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/time.h> /* Measure creating a large file and overwriting that file */ #define WSIZE (16 * 4096) #define FILESIZE 50 * 1024 * 1024 #define NAME...
2.640625
3
2024-11-19T02:37:05.468971+00:00
2019-04-10T13:21:33
a626d3b90d93807e26689e783d92c7d90b2dfe8a
{ "blob_id": "a626d3b90d93807e26689e783d92c7d90b2dfe8a", "branch_name": "refs/heads/master", "committer_date": "2019-04-10T13:21:33", "content_id": "7fc94b8494ca9be1d11c6cc9ca74cc7abd7c65d7", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "38c5f2cadcf566468d4db0c7162c73a39e86c09e", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> int main(void) { pid_t pid; if ((pid = fork()) < 0) { perror("fork error"); exit(1); } else if (pid == 0) { if (setsid() < 0){ perror("setsid error"); exit(2); } p...
2.640625
3
2024-11-19T02:37:05.618476+00:00
2017-03-07T13:01:48
7a8f839a853e61e4f37e6b75092e39bb7c7240bd
{ "blob_id": "7a8f839a853e61e4f37e6b75092e39bb7c7240bd", "branch_name": "refs/heads/master", "committer_date": "2017-03-07T13:01:48", "content_id": "9b8d78baa54719c0d20add3397c6a5d63a2cd82a", "detected_licenses": [ "MIT" ], "directory_id": "8eeaab386ccaad8ef165fe432f930b673407e2f9", "extension": "c"...
stackv2
/*---------------------------------------------------------------*/ /* queue.c */ /*---------------------------------------------------------------*/ /* Norbert Kuck 1.6.93 */ /* Version 4.2 */ /*---------------------------------------------------------------*/ /* Gepufferte un...
2.5
2
2024-11-19T02:37:06.287852+00:00
2020-04-22T20:28:11
1c79e8f70bd01132c38a484438a839810425d3e1
{ "blob_id": "1c79e8f70bd01132c38a484438a839810425d3e1", "branch_name": "refs/heads/master", "committer_date": "2020-04-22T20:28:11", "content_id": "18cc7c1bed7edd16bfa8e8010f52c822cb69faf3", "detected_licenses": [ "MIT" ], "directory_id": "ae959aa0645a869842f1e3a3153f1c632df273c2", "extension": "c"...
stackv2
/* * Copyright (C) 2018 Microchip Technology Inc. All rights reserved. * Joshua Henderson <joshua.henderson@microchip.com> */ #include "m2d/m2d.h" #include "m2d/utils.h" #include "utils.h" #include <stdio.h> #include <stdlib.h> #include <time.h> static int fill(void* handle, struct m2d_buf* buf, uint32_t rgba, ...
2.8125
3
2024-11-19T02:37:07.268328+00:00
2020-10-26T17:24:55
861b93e794897b40c0d2debdbc342064f2fce9e0
{ "blob_id": "861b93e794897b40c0d2debdbc342064f2fce9e0", "branch_name": "refs/heads/main", "committer_date": "2020-10-26T17:24:55", "content_id": "f7eafc0a4106add0c9e223e50c3d4339ca6da0d4", "detected_licenses": [ "MIT" ], "directory_id": "7da8fcfb608b7e382b2f507a71edf1021cc870a5", "extension": "h", ...
stackv2
#ifndef AVL_TREE_H #define AVL_TREE_H #include <stdint.h> #include <sys/types.h> #define MAX(a, b) (((a) > (b)) ? (a) : (b)) typedef struct avl_tree_node { ssize_t height; struct avl_tree_node *left; struct avl_tree_node *right; void *data; } avl_tree_node; typedef void *(*avl_data_alloc) (void *avl_data); typ...
2.203125
2
2024-11-19T02:37:07.352217+00:00
2019-04-04T08:15:14
0a5b59c4cd29d878b1d9d8befa7f0448185f5310
{ "blob_id": "0a5b59c4cd29d878b1d9d8befa7f0448185f5310", "branch_name": "refs/heads/master", "committer_date": "2019-04-04T08:15:14", "content_id": "f3c703d4c57900a5669f27ee6b44a66b6325860c", "detected_licenses": [ "AFL-3.0" ], "directory_id": "0f301fe0138d3af163fb6ecd9f38f68e54d3db18", "extension":...
stackv2
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> #include "psrgeom.h" // Define arbitrary numbers for grid types #define GT_CART 1 #define GT_CYL2 2 #define GT_CYL3 3 struct opts { double al_deg; // alpha angle in deg double ze_deg; // zeta angle i...
2.390625
2
2024-11-19T02:37:07.649309+00:00
2019-11-18T02:35:32
1fca5ce54f50f686e4e6e0b601b225d3e70b3669
{ "blob_id": "1fca5ce54f50f686e4e6e0b601b225d3e70b3669", "branch_name": "refs/heads/master", "committer_date": "2019-11-18T02:35:32", "content_id": "c594ed504d8f3d68240952f7cc2ea09122035bb8", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "20f0f746b3a7e856b004d0ae5ab70167...
stackv2
// Font structures for newer Adafruit_GFX (1.1 and later). // Example fonts are included in 'Fonts' directory. // To use a font in your Arduino sketch, #include the corresponding .h // file and pass address of GFXfont struct to setFont(). Pass NULL to // revert to 'classic' fixed-space bitmap font. /* font ...
2.296875
2
2024-11-19T02:37:07.753766+00:00
2019-04-15T19:25:24
ca3b686d4349fc449e815bc8cddfb217b44dae32
{ "blob_id": "ca3b686d4349fc449e815bc8cddfb217b44dae32", "branch_name": "refs/heads/master", "committer_date": "2019-04-15T19:25:24", "content_id": "02f3297ad6b5a32fe561a98110aeefccfcdaaa86", "detected_licenses": [ "MIT" ], "directory_id": "e06319912bcb4902a0de42a4b525e06b264fea61", "extension": "c"...
stackv2
#include <stdio.h> /* * Esegui la media artimetica di tutti i numeri inseriti dall'utente * fino a quando il numero inserito è maggiore di zero * Input: numeri inseriti dall'utente * Output: media aritmetica di tutti i numeri inseriti * * (c) Marco Aceti, 2017. Some rights reserved. * See LICENSE file for...
3.328125
3
2024-11-19T02:37:07.848896+00:00
2020-07-17T14:40:55
2008626b432744a1e2e1cc0eacda6885248689d4
{ "blob_id": "2008626b432744a1e2e1cc0eacda6885248689d4", "branch_name": "refs/heads/master", "committer_date": "2020-07-17T14:40:55", "content_id": "1baa5239c7a1e9e5cf8681698dabd9907aff305c", "detected_licenses": [ "ISC" ], "directory_id": "6d634129afc36ab61c226cce899481d3fd07cd56", "extension": "h"...
stackv2
//Modify this file to change what commands output to your statusbar, and recompile using the make command. static const Block blocks[] = { /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ //{"", "news", 300, 6}, {"", "weather", 18000, 5}, {"", "volume", 0, 10}, {"", "internet"...
2.078125
2
2024-11-19T02:37:09.145705+00:00
2015-11-03T00:13:12
7c45f569061a8871ad23aa7b553a6cf6b081bc90
{ "blob_id": "7c45f569061a8871ad23aa7b553a6cf6b081bc90", "branch_name": "refs/heads/master", "committer_date": "2015-11-03T00:13:12", "content_id": "34979eeca376be8a2517760af46619a222e54351", "detected_licenses": [ "MIT", "NCSA" ], "directory_id": "f128158b67ec37c0f1880c9611589de9d5a2e89e", "ext...
stackv2
/* Generated by CIL v. 1.7.3 */ /* print_CIL_Input is true */ //#line 212 "/usr/lib/gcc/x86_64-linux-gnu/4.6/include/stddef.h" typedef unsigned long size_t; struct listNode { int value ; struct listNode *next ; }; //#line 471 "/usr/include/stdlib.h" extern void * malloc(size_t __size); struct listNode *revers...
2.578125
3
2024-11-19T02:37:09.462870+00:00
2014-09-21T18:19:15
8daca5a9ce654005e44eb01cea0b0f1da4dd3a65
{ "blob_id": "8daca5a9ce654005e44eb01cea0b0f1da4dd3a65", "branch_name": "refs/heads/master", "committer_date": "2014-09-21T18:19:15", "content_id": "c0092aa19f43a6ad263544545e16ee0c12471c8e", "detected_licenses": [ "MIT" ], "directory_id": "beac8b642f1b366642916204131a1fe79d0f5b08", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <GL/gl.h> #include <SDL2/SDL.h> void compile_and_attach(GLuint program, GLenum ty, const char* path) { GLuint shader = glCreateShader(ty); char* content; { FILE* file = fopen(path, "r"); long len; fseek (file , 0 , SEEK_END); len = ftell (file); ...
2.734375
3
2024-11-19T02:37:09.915199+00:00
2023-08-09T19:05:42
0589378323c67bd99030f72aebdc9fde880753e6
{ "blob_id": "0589378323c67bd99030f72aebdc9fde880753e6", "branch_name": "refs/heads/master", "committer_date": "2023-08-09T19:05:42", "content_id": "40aa9779d252d55f3b7b8d22d8e637a900497ecf", "detected_licenses": [ "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "ff2180134ad76c...
stackv2
/****************************************************************** * * Copyright (c) 2016 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...
2.1875
2
2024-11-19T02:37:10.009396+00:00
2023-07-08T22:58:32
3cc5e22b199e964b1189111fcea44de8f48b9700
{ "blob_id": "3cc5e22b199e964b1189111fcea44de8f48b9700", "branch_name": "refs/heads/main", "committer_date": "2023-07-08T22:58:32", "content_id": "50a2b008c5f70c36c4b003b05664b51f90283766", "detected_licenses": [ "MIT" ], "directory_id": "64a809e70c72c410d1c70621d21ce132235f3721", "extension": "c", ...
stackv2
// SPDX-License-Identifier: MIT #include <assert.h> #include <dirent.h> #include <endian.h> #include <fcntl.h> #include <pthread.h> #include <sched.h> #include <signal.h> #include <stdint.h> #include <stdio.h> #include <time.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #includ...
2.1875
2
2024-11-19T02:37:10.180127+00:00
2016-01-25T13:02:36
faaa09a9f66f238ee97200834b503460b7f9a742
{ "blob_id": "faaa09a9f66f238ee97200834b503460b7f9a742", "branch_name": "refs/heads/master", "committer_date": "2016-01-25T13:02:36", "content_id": "f12819a7e098f3647551ef9baac34c6975206526", "detected_licenses": [ "MIT" ], "directory_id": "9038e931a84a165b08148d7c4320bca412db385a", "extension": "c"...
stackv2
#include "quizGame.h" int quizGame(Display *d) { char rand_word[LENGTH], shuffle_word[LENGTH], original_word[LENGTH]; char hintWord[HINTLENGTH]; int i, word_size, j, yinit = 9, xinit, cnt=0, in, printHint=0, resetsent = 0; int hintNum=0; cell grid[H][W]; entity *player, *door1, *door2, *rbutton, *hbutton; ...
2.40625
2
2024-11-19T02:37:10.672150+00:00
2021-05-20T09:31:53
384d47e183691c17cc14f6bfa9e4d8ae7ec2c5ad
{ "blob_id": "384d47e183691c17cc14f6bfa9e4d8ae7ec2c5ad", "branch_name": "refs/heads/master", "committer_date": "2021-05-20T09:31:53", "content_id": "7137006a3f4a1dad1b3f9318ddd7c1387622dc39", "detected_licenses": [ "Apache-2.0" ], "directory_id": "09a1776449e54060270ff6090d740e361d44fa02", "extensio...
stackv2
#include "systick.h" #include "sleep.h" #include <rtthread.h> void systick_sleep(int ms) { msleep(ms); } uint32_t systick_current_millis(void) { double t; uint32_t ms; t = rt_tick_get(); ms = (uint32_t)((t / RT_TICK_PER_SECOND) * 1000); return ms; }
2.078125
2
2024-11-19T02:37:16.587085+00:00
2021-09-02T15:38:42
c4c107abcad437752c9ceaf49f537f1386cc2883
{ "blob_id": "c4c107abcad437752c9ceaf49f537f1386cc2883", "branch_name": "refs/heads/main", "committer_date": "2021-09-02T15:38:42", "content_id": "979aa6b98b7c8f26e1b7bbc835983f180d337c06", "detected_licenses": [ "MIT" ], "directory_id": "bf1c1f29c308f6eff2896bebde2a8dae95ca909b", "extension": "c", ...
stackv2
#include "my_tree.h" #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct pair { Trnode * parent; Trnode * child; } Pair; /* 局部函数 */ static void InOrder(const Trnode * root, void(*pfun)(Item item)){ if(root != NULL){ InOrder(root->left, pfun); (*pfun)(root->item); ...
3.234375
3
2024-11-19T02:37:17.118088+00:00
2019-04-09T12:40:26
2011273987f23129e78a87b03c615ab24a0a0d21
{ "blob_id": "2011273987f23129e78a87b03c615ab24a0a0d21", "branch_name": "refs/heads/master", "committer_date": "2019-04-09T12:40:26", "content_id": "3b5b4c449f9f12c5051ca25b2a2674f769aadb88", "detected_licenses": [ "MIT" ], "directory_id": "5cb29d1ddd97f5836ed407bb82ee340c3c49169f", "extension": "h"...
stackv2
#ifndef LOQUI_BUFFER_H__ #define LOQUI_BUFFER_H__ #include "sysdep.h" typedef struct { char *buf; size_t length; size_t allocated_size; } loqui_buffer_t; typedef struct { loqui_buffer_t loqui_buffer; uint8_t opcode; size_t data_size_remaining; size_t header_size; uint8_t decode_complete; } loqui_deco...
2.640625
3
2024-11-19T02:37:17.212878+00:00
2019-11-07T17:37:24
2f3d19facc9339b9f906bf1972675b3f87cc79f6
{ "blob_id": "2f3d19facc9339b9f906bf1972675b3f87cc79f6", "branch_name": "refs/heads/master", "committer_date": "2019-11-07T17:37:24", "content_id": "42a54031cecb479293764769f61e86d53161a58f", "detected_licenses": [ "MIT" ], "directory_id": "c6ba819bb7bb3bb95adc4d176a5154c45a40a35c", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main(int argc, char const *argv[]) { int link = open("/dev/random", O_RDONLY); char data[20]; read(link, data, sizeof data); close(link); FILE *file = ...
2.421875
2
2024-11-19T02:37:17.269684+00:00
2023-06-18T18:28:40
1c08a9eb7daa315dc18193423a2959b779490e7a
{ "blob_id": "1c08a9eb7daa315dc18193423a2959b779490e7a", "branch_name": "refs/heads/main", "committer_date": "2023-06-18T18:28:40", "content_id": "02a581a8d3557a9640954d6f26aeace2e8c3b2fa", "detected_licenses": [ "MIT" ], "directory_id": "50bc60bfe37088388aa599e4963d8791d119d797", "extension": "c", ...
stackv2
// -*- mode: c; tab-width: 4; indent-tabs-mode: 1; st-rulers: [70] -*- // vim: ts=8 sw=8 ft=c noet #include <stddef.h> #include <stdlib.h> #include <uv.h> #include "async_io.h" #include "log.h" #include "redd.h" #include "helper.h" static void async_io_worker_poll_cb(uv_poll_t *poll, int status, int events); static ...
2.109375
2
2024-11-19T02:37:17.779411+00:00
2023-08-04T20:12:57
5def08420895c9ff7aaca4c2c1dc620454ead1f1
{ "blob_id": "5def08420895c9ff7aaca4c2c1dc620454ead1f1", "branch_name": "refs/heads/master", "committer_date": "2023-08-04T20:12:57", "content_id": "e1894b0a5bbb7ac3acf56e58daff9e4ed3219982", "detected_licenses": [ "Zlib" ], "directory_id": "dc05263cfa5305ea07abca75a912e483bd389f1f", "extension": "h...
stackv2
// macro.h // Preprocessor utils // Version 1.1.4 // Autogenerated, don't touch. #pragma once // Stops the compilation with a specific error message. // `msg` should be a string literal. #ifndef MA_ABORT #ifndef _MSC_VER #define MA_ABORT(msg) MA_ABORT_impl(GCC error msg) #define MA_ABORT_impl(msg) _Pragma(MA_STR(msg)...
2.171875
2
2024-11-19T02:37:17.908569+00:00
2021-01-04T22:02:42
1208ff37554d17e927648f7f0b5fac3ffcdebfe4
{ "blob_id": "1208ff37554d17e927648f7f0b5fac3ffcdebfe4", "branch_name": "refs/heads/main", "committer_date": "2021-01-04T22:02:42", "content_id": "f288879dee06d457a960994c0e1c877a0849b113", "detected_licenses": [ "MIT" ], "directory_id": "a601aa934df17ec4b74d7c23d8620532ed9213b2", "extension": "c", ...
stackv2
/* * Parallel pi calculator using array padding to avoid memory collisions * * Author: Matt Cufari * Version 1.0.0 * Date Created: Dec 18 2020 * Date last modified: Jan 4 2021 * */ /* * This program is extra content if there is time to cover */ #include "omp.h" #include <stdio.h> #define NUM_THREADS 6 #def...
3.328125
3
2024-11-19T02:37:20.161745+00:00
2019-02-25T06:44:49
5afb668b896386c23898633f6554cbdfae0286a6
{ "blob_id": "5afb668b896386c23898633f6554cbdfae0286a6", "branch_name": "refs/heads/master", "committer_date": "2019-02-25T06:44:49", "content_id": "d78a4ed28ff3650d7f4a7cffe2ffc46350c07c5e", "detected_licenses": [ "MIT" ], "directory_id": "ff6a1c9fa558e08d829c06d99795bc8cd226ecfe", "extension": "h"...
stackv2
#ifndef DATATYPE_H #define DATATYPE_H /* datatype.h * * @Author Reece Clydesdale * @StudentID 18924059 * @Date 27/10/2016 * @Purpose Defines data types supported by the CSV sort program. */ /******************************************************************************** * LIBRARY DEPE...
2.046875
2
2024-11-19T02:37:20.228492+00:00
2022-03-10T21:08:40
ea4dc2e67d318401f274891afaa87a07720f93a0
{ "blob_id": "ea4dc2e67d318401f274891afaa87a07720f93a0", "branch_name": "refs/heads/main", "committer_date": "2022-03-10T21:08:40", "content_id": "7ec664e5c734daf78bcc47ab9be1f450628ae8d5", "detected_licenses": [ "MIT" ], "directory_id": "d3e4ff2671841b86dd7744efc770e723a233b1da", "extension": "h", ...
stackv2
/* * console.h * Copyright (C) 2016 sabertazimi <sabertazimi@gamil.com> * * Distributed under terms of the MIT license. */ #ifndef KERN_DRIVERS_CONSOLE_H #define KERN_DRIVERS_CONSOLE_H #include <defs.h> #define VGA_BUFFER_WIDTH 80 #define VGA_BUFFER_HEIGHT 25 #define VGA_COLOR(back, fore) (((back) << 4)| ((fo...
2.265625
2
2024-11-19T02:37:20.332275+00:00
2021-09-14T03:10:44
c0c71e70be0d268c4999dd73cb09546c0ca04b24
{ "blob_id": "c0c71e70be0d268c4999dd73cb09546c0ca04b24", "branch_name": "refs/heads/master", "committer_date": "2021-09-14T03:10:44", "content_id": "546dd6e63a33b6d8f645b598e2dc677cf10d7113", "detected_licenses": [ "MIT" ], "directory_id": "413cb1172f6fb06eba08a89e86d26ccde840cbf2", "extension": "c"...
stackv2
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <sstream> #include <queue> #include <time.h> using namespace std; #define list_entry(ptr, type, member) container_of(ptr, type, member) #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr...
2.78125
3
2024-11-19T02:37:20.429596+00:00
2023-05-04T16:04:50
f25df5fbe7ac878c382642f131165654d6f64005
{ "blob_id": "f25df5fbe7ac878c382642f131165654d6f64005", "branch_name": "refs/heads/main", "committer_date": "2023-05-04T16:04:50", "content_id": "734ec999b33995c4634c2f39f8bf0a5910ee1b99", "detected_licenses": [ "BSD-3-Clause", "Apache-2.0" ], "directory_id": "904382b8579f4a228bfa1734e639df34aae7...
stackv2
/** ****************************************************************************** * @file iis2dlpc_reg.c * @author Sensors Software Solution Team * @brief IIS2DLPC driver file ****************************************************************************** * @attention * * Copyright (c) 2019 STMicr...
2.25
2
2024-11-19T02:37:20.740291+00:00
2017-08-07T17:39:02
b10ce685410d2ec4630a55ea3ff10d3e3c810e92
{ "blob_id": "b10ce685410d2ec4630a55ea3ff10d3e3c810e92", "branch_name": "refs/heads/master", "committer_date": "2017-08-07T17:39:02", "content_id": "a3859b9d1c10c70c42d012aae1d888df1e904be1", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "b5208aaa52daf093e270e766d6da1f1ea392ed36", "extens...
stackv2
#include <stdlib.h> #include <stdio.h> #include <time.h> #include <stdint.h> #include <omp.h> //void doInject(uint64_t *ret) __attribute__((preserve_all)); //void doInject(uint64_t *ret) __attribute__((0)); int init = 0; void doInject(uint64_t *ret) { *ret = 0; int nthreads = omp_get_num_threads(); /*if(n...
2.390625
2
2024-11-19T02:37:21.055382+00:00
2020-10-03T03:59:48
95b100bf819495b02b61780d6fc1463f3d022349
{ "blob_id": "95b100bf819495b02b61780d6fc1463f3d022349", "branch_name": "refs/heads/master", "committer_date": "2020-10-03T03:59:48", "content_id": "694989690d220c9765b27cc07038a74cf0233420", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "43649f75ac55db18bb3b31e613f329b65d2bb85f", "extens...
stackv2
/* vim:ts=4:sw=4:expandtab * (No tabs, indent level is 4 spaces) */ /***************************************************************************** * File: fm_dynamicLib.c * Creation Date: Mar. 15, 2011 * Description: This file provides dynamic library support for the API * and pl...
2.046875
2
2024-11-19T02:37:21.159063+00:00
2017-10-25T07:19:59
f0d3950d2e862d76720beb629764d4e4ee5ce0cd
{ "blob_id": "f0d3950d2e862d76720beb629764d4e4ee5ce0cd", "branch_name": "refs/heads/master", "committer_date": "2017-10-25T07:19:59", "content_id": "7571a7f53c0c59d6ad3488c90f1a82deb55c0ad1", "detected_licenses": [ "MIT" ], "directory_id": "a5caac61fc619b5e8d3f6dd442cbb17a134f4880", "extension": "h"...
stackv2
#define NUM_THREADS 2 extern "C" void yuv420p_rgb565_neon(unsigned char *srcy, unsigned char *srcu, unsigned char *srcv, unsigned short *dst, int width); void toRGB565neon(unsigned char *yuvs, int widthIn, int heightIn, unsigned short *rgbs, unsigned char *gr) { int half_widthIn = widthIn >> 1; //the end of the l...
2.375
2
2024-11-19T02:37:21.955485+00:00
2023-08-31T09:55:14
941bee4a21a11a421bd0cd622643cc6cf05f03d1
{ "blob_id": "941bee4a21a11a421bd0cd622643cc6cf05f03d1", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T22:02:14", "content_id": "84b7a5c09add6c428a2739658db65acdcf474e03", "detected_licenses": [ "MIT" ], "directory_id": "70ffcb065027032a399f44b9ec91e7b61d73583d", "extension": "c"...
stackv2
/*~ Welcome to the opening daemon: gateway to channels! * * This daemon handles a single peer. It's happy to trade gossip with the * peer until either lightningd asks it to fund a channel, or the peer itself * asks to fund a channel. Then it goes through with the channel opening * negotiations. It's important t...
2.015625
2
2024-11-19T02:37:23.673460+00:00
2017-04-20T10:17:49
53aabfe36619ffea3672159b8b48c85b2034012f
{ "blob_id": "53aabfe36619ffea3672159b8b48c85b2034012f", "branch_name": "refs/heads/master", "committer_date": "2017-04-20T10:17:49", "content_id": "5ef02506f974914273a2faa53a84fc467b8144ba", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ebd585fdafb22d31fcd6d04b209f81e88d1a2083", "extensio...
stackv2
/* * balloc.c -- Block allocation module * * Copyright (c) GoAhead Software Inc., 1995-2010. All Rights Reserved. * * See the file "license.txt" for usage and redistribution license requirements * */ /******************************** Description *********************************/ /* * This module implements a...
2.25
2
2024-11-19T02:37:23.774950+00:00
2022-01-27T14:17:23
36f8a906428bfa8dec526b196092300ed5dc1a51
{ "blob_id": "36f8a906428bfa8dec526b196092300ed5dc1a51", "branch_name": "refs/heads/master", "committer_date": "2022-01-27T14:17:23", "content_id": "5005a53eadd334798eb1f3f266952dc6a821f57c", "detected_licenses": [ "MIT" ], "directory_id": "39d49000aea30519e720f26ecfe0c6027c39f77b", "extension": "c"...
stackv2
/* This code was generated by Usuba. See https://github.com/DadaIsCrazy/usuba. From the file "samples/usuba/serpent.ua" (included below). */ #include <stdint.h> /* Do NOT change the order of those define/include */ #define NO_RUNTIME #ifndef BITS_PER_REG #define BITS_PER_REG 128 #endif /* including the architec...
2.171875
2
2024-11-19T02:37:24.170013+00:00
2021-06-24T15:54:14
ecd93d5b10c985f8526f319104fd961dab878e5d
{ "blob_id": "ecd93d5b10c985f8526f319104fd961dab878e5d", "branch_name": "refs/heads/master", "committer_date": "2021-06-24T15:54:14", "content_id": "b4375944ad18b8c20ae131ada588de75949a2dfe", "detected_licenses": [ "MIT" ], "directory_id": "cef266caad5b213c95e1224fb5535908af2f76d8", "extension": "c"...
stackv2
#include "thread.h" /********************************** * what you may have to modify * * - core_t struct * - db_t struct * - work_per_single_read function * - main function * compile as * * - gcc -Wall thread.c -lpthread **********************************/ static inline int32_t steal_work(pthread_arg_t* all_...
2.359375
2
2024-11-19T02:37:24.259769+00:00
2022-02-10T11:58:22
e1dff3c6575ad72a91bf244acad8238ee8b7c506
{ "blob_id": "e1dff3c6575ad72a91bf244acad8238ee8b7c506", "branch_name": "refs/heads/master", "committer_date": "2022-02-10T11:58:22", "content_id": "127e6f5168b4eca108855abf07f8afdd6ba9de0e", "detected_licenses": [ "MIT" ], "directory_id": "19ea54e1afe31a47e6b5e5b987ca324b107b87c8", "extension": "c"...
stackv2
#include "uipriv_unix.h" #include "../../unix/draw.h" #include <endian.h> struct uiPixmapImage { cairo_surface_t *s; }; /* * A standard way of specifying endianness with a macro/constant has * not yet been invented. Roll our own. This works on gcc/clang and * gets optimized to compile time constants on i386, but...
2.53125
3
2024-11-19T02:37:24.333907+00:00
2021-05-07T18:36:26
474eed56f4fc51905776a89cac13101f4c479e03
{ "blob_id": "474eed56f4fc51905776a89cac13101f4c479e03", "branch_name": "refs/heads/master", "committer_date": "2021-05-07T18:36:26", "content_id": "a3552c97e45c4491cf7717213250f823352ab692", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f", "extens...
stackv2
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
2.375
2
2024-11-19T02:37:24.592163+00:00
2023-09-03T02:30:37
7968dc165f5b41218dc0780d69918ef8afbcafbd
{ "blob_id": "7968dc165f5b41218dc0780d69918ef8afbcafbd", "branch_name": "refs/heads/main", "committer_date": "2023-09-03T02:30:37", "content_id": "c484fddeea8fc89001ac647bba51ef9644263b5a", "detected_licenses": [ "MIT" ], "directory_id": "f42190636add23ead6a5022d706a124032d66f92", "extension": "h", ...
stackv2
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //+---------------------------------------------------------------------------- // // // Contents: Special arith...
2.6875
3
2024-11-19T02:37:24.910366+00:00
2021-03-01T15:59:27
710f406ec9478d0069c1547c71c5ce38ae34b8b6
{ "blob_id": "710f406ec9478d0069c1547c71c5ce38ae34b8b6", "branch_name": "refs/heads/main", "committer_date": "2021-03-01T15:59:27", "content_id": "9519bc123a29dab0908da500bf01e96a577ae430", "detected_licenses": [ "MIT" ], "directory_id": "79d36cb2ac9a4642569fbaa44a78a9326a3a5ac2", "extension": "h", ...
stackv2
/************************************************** * file: queue.h * * header file containing implementation details * for a queue based on a linked list **************************************************/ #include "linked_list.h" typedef struct Queue Queue; struct Queue { Node *head; Node *tail; } Queue *...
2.296875
2
2024-11-19T02:37:25.351515+00:00
2020-04-28T02:36:13
4d1daf38aafc7863b1ce487f984219f7d6961b6a
{ "blob_id": "4d1daf38aafc7863b1ce487f984219f7d6961b6a", "branch_name": "refs/heads/master", "committer_date": "2020-04-28T02:36:13", "content_id": "64a545960f61b9a48675f68b85cc60fc7bb4c305", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f481776fb7b91377e73932196938f274001d276c", "extensio...
stackv2
/********************************************************* * @file onemo_fs.h * @brief ML302 OpenCPU file system APIs header * Copyright (c) 2019 China Mobile IOT. * All rights reserved. * created by XieGangLiang 2019/12/3 ********************************************************/ #ifndef __ONEMO_FS_H__ #defin...
2.25
2
2024-11-19T02:37:25.468945+00:00
2023-09-01T06:47:29
ade5e6e902005e04d9f7b409b273dff3827121e8
{ "blob_id": "ade5e6e902005e04d9f7b409b273dff3827121e8", "branch_name": "refs/heads/prerel", "committer_date": "2023-09-01T06:47:29", "content_id": "a67d7f91f2312fcc92491d9d5c0af83448bd8e38", "detected_licenses": [ "MIT" ], "directory_id": "96401ed29f869360d939a24a24cffd88d6b3a2e6", "extension": "c"...
stackv2
#include "password_store.h" #include <time.h> #include "oidc-agent/oidcp/passwords/askpass.h" #include "utils/agentLogger.h" #include "utils/crypt/passwordCrypt.h" #include "utils/db/password_db.h" #include "utils/file_io/file_io.h" #include "utils/memory.h" #include "utils/oidc_error.h" #include "utils/password_entr...
2.359375
2
2024-11-19T02:37:25.633267+00:00
2015-02-07T18:14:05
cb322eb3a586e4367f2bd2d6d17fc9116309e1a8
{ "blob_id": "cb322eb3a586e4367f2bd2d6d17fc9116309e1a8", "branch_name": "refs/heads/master", "committer_date": "2015-02-07T18:14:05", "content_id": "11b7b6b64948c9a86e5d82e1c94b7e08f3e81538", "detected_licenses": [ "MIT" ], "directory_id": "8148958cb5c4fc92ec35bd455825cd1210f97f85", "extension": "c"...
stackv2
// Module for interfacing with system //#include "lua.h" #include "lualib.h" #include "lauxlib.h" #include "platform.h" #include "auxmods.h" #include "lrotable.h" #include "c_types.h" #include "romfs.h" #include "c_string.h" #include "driver/uart.h" //#include "spi_flash.h" #include "user_interface.h" #include "flash...
2.15625
2
2024-11-19T02:37:25.821746+00:00
2018-06-21T10:41:36
5ee09f126771656f65f93ec73dc463672c14f183
{ "blob_id": "5ee09f126771656f65f93ec73dc463672c14f183", "branch_name": "refs/heads/master", "committer_date": "2018-06-21T12:42:07", "content_id": "49fab93ce4c70cdb181e1cdb51920d2177367b95", "detected_licenses": [ "MIT" ], "directory_id": "5099b2f4e87d81171339a5da83bfcb77b862e136", "extension": "c"...
stackv2
#include "zero_malloc.h" extern int MP4_ReadBox_String(stream_t *p_stream, MP4_Box_t *p_box) { uint8_t *p_peek = malloc(p_box->i_size); p_box->data.p_string->psz_text = malloc(p_box->i_size - 8 - 1); /* +\0, -name, -size */ if (p_box->data.p_string->psz_text == NULL) return 0; memcpy(p_box->data.p_...
2.109375
2
2024-11-19T02:37:30.116750+00:00
2016-01-11T16:24:02
4c005a557f26fe7e1b081f46f7680ab4358ab0f6
{ "blob_id": "4c005a557f26fe7e1b081f46f7680ab4358ab0f6", "branch_name": "refs/heads/master", "committer_date": "2016-01-11T16:24:02", "content_id": "f7949416fc1db78e285a9c050c7c06e19cf721a3", "detected_licenses": [ "MIT" ], "directory_id": "d41e44d8682c8d3bbf80786031fe1c125f7c83f6", "extension": "c"...
stackv2
/* * Copyright 2011-2014 National ICT Australia (NICTA) * * This software may be used and distributed solely under the terms of * the MIT license (License). You should find a copy of the License in * COPYING or at http://opensource.org/licenses/MIT. By downloading or * using this software you accept the terms an...
2.375
2
2024-11-19T02:37:30.362798+00:00
2017-09-29T18:11:47
2df8eba6c02a0f1f0b896333301d0d04033c5f4c
{ "blob_id": "2df8eba6c02a0f1f0b896333301d0d04033c5f4c", "branch_name": "refs/heads/master", "committer_date": "2017-09-29T18:11:47", "content_id": "99c5f09596008eae89a5cd38621235843c8c54a6", "detected_licenses": [ "MIT" ], "directory_id": "c8680091ab8376b149ab2d86bf3eb8641726bd36", "extension": "c"...
stackv2
//the unix system interface Chapter 8 //the unix os, there are programs embedded within the os named system calls that can be exploited by the user - to get extra functionality etc //file descriptors //all input or output is done by reading files, because all peripheral devices, even keyboard and screen are files in...
2.5
2
2024-11-19T02:37:30.699784+00:00
2023-08-30T20:39:58
a560b4eb8de0e22e98f51f0d02f3774ab375b845
{ "blob_id": "a560b4eb8de0e22e98f51f0d02f3774ab375b845", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T20:39:58", "content_id": "6bcba48393bc85aea3a8a13072dbbc9a23b28779", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "475306911f80a29700183ffa3ec046762486f683", "extens...
stackv2
/* PKI_X509 I/O management */ #include <libpki/pki.h> /*! \brief Returns the PKI_X509_XXX_VALUE * from the passed URL */ void *PKI_get_value ( char *url_s, PKI_DATATYPE type, PKI_DATA_FORMAT format, PKI_CRED *cred, HSM *hsm ) { PKI_X509 *x_obj = NULL; void *ret = NULL; if( !url_s ) return NULL; if((x_obj...
2.703125
3
2024-11-19T02:37:31.138788+00:00
2017-03-18T10:48:58
ce72f813712757f0893bc47e21c3c279e77c7307
{ "blob_id": "ce72f813712757f0893bc47e21c3c279e77c7307", "branch_name": "refs/heads/master", "committer_date": "2017-03-18T10:48:58", "content_id": "35a8534a1056dbd11a7c1685e7530c2dd24efea5", "detected_licenses": [ "MIT" ], "directory_id": "1786a4e55603a891797241475f8aa31e96b0c6cb", "extension": "c"...
stackv2
#include <stdlib.h> #include <time.h> #include <stdio.h> typedef struct _RandomListNode { int label; struct _RandomListNode* next; struct _RandomListNode* random; } RandomListNode; void PrintList(RandomListNode* list) { RandomListNode* it = list; while (it != NULL) { if (it->random != NULL) printf("%d -> %d...
3.609375
4
2024-11-19T02:37:31.233120+00:00
2019-11-28T12:22:20
7fa70e5962ae082ee85648ea774f30e75f8b2825
{ "blob_id": "7fa70e5962ae082ee85648ea774f30e75f8b2825", "branch_name": "refs/heads/master", "committer_date": "2019-11-28T13:16:33", "content_id": "b43d4a2cdc2410ee62ce423dc57184598a6fd75c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "97bcff8b608b2b35090a64e71fdb86aac1d3dea4", "extensio...
stackv2
// external public includes #include <stdlib.h> #include <stdio.h> #include <string.h> // public disir interface #include <disir/disir.h> #include <disir/util.h> #include <disir/context.h> // private #include "context_private.h" #include "disir_private.h" #include "config.h" #include "mold.h" #include "section.h" #in...
2.046875
2
2024-11-19T02:37:31.359574+00:00
2023-08-09T19:31:19
f1045de1d1bfd302a9f840091eceb25d3702af0e
{ "blob_id": "f1045de1d1bfd302a9f840091eceb25d3702af0e", "branch_name": "refs/heads/master", "committer_date": "2023-08-09T19:31:19", "content_id": "7e8843755963fc3dfbb42cf0469c2c14789de108", "detected_licenses": [ "Apache-2.0" ], "directory_id": "294204a5deab95ddfee9ba3c08f5417f70c17b8e", "extensio...
stackv2
/* * SPDX-FileCopyrightText: 2019 Louis Solofrizzo * * SPDX-License-Identifier: Apache-2.0 */ /* utils.h Louis Solofrizzo 2019-10-17 Utilities for pistache */ #pragma once #ifdef PISTACHE_USE_SSL #include <openssl/ssl.h> /*! * \brief sendfile(2) like utility for OpenSSL contexts * * \param[out] out T...
2.484375
2
2024-11-19T02:37:31.595257+00:00
2019-12-22T15:41:11
31c4e540e838e9109d1eb90b67a8d914adec9006
{ "blob_id": "31c4e540e838e9109d1eb90b67a8d914adec9006", "branch_name": "refs/heads/master", "committer_date": "2019-12-22T15:41:11", "content_id": "d8092f8af119682e6e174fec9b66bf8d9fc2d595", "detected_licenses": [ "MIT" ], "directory_id": "62a271c051a5f6c9ce6fd1a46f7d7c34946f39f0", "extension": "c"...
stackv2
/* Author: AKHILESH SANTOSHWAR */ #include<stdio.h> int main(){ int start, end, sum = 0; printf("Start: "); scanf("%d", &start); fflush(stdin); // To Clear STDIN [ for Windows ] printf("End: "); scanf("%d", &end); for(int i = start; i <= end; i++){ sum = sum + i; } prin...
3.28125
3
2024-11-19T02:48:10.701865+00:00
2017-08-31T19:47:53
d713fbebed9866442bd09c434b6764323ae792fd
{ "blob_id": "d713fbebed9866442bd09c434b6764323ae792fd", "branch_name": "refs/heads/master", "committer_date": "2017-08-31T19:47:53", "content_id": "e02c7350a01ad6c6d0a348e10ae6231590228359", "detected_licenses": [ "MIT" ], "directory_id": "0edcf97644e006c78893d67957979f51c9eeaac0", "extension": "c"...
stackv2
/* main.c - example program to make use of the event flags implementation in this directory * * This program exercises the event flags implementation available in the ef.h and ef.c * files in this directory. It accepts command line parameters that allow event flags to * be created, set, cleared, waited for, among o...
2.921875
3
2024-11-19T02:48:11.091471+00:00
2021-01-21T08:54:28
d06abd7bbe873a6242025cefc124d0d7442dd4ca
{ "blob_id": "d06abd7bbe873a6242025cefc124d0d7442dd4ca", "branch_name": "refs/heads/main", "committer_date": "2021-01-21T08:54:28", "content_id": "29786c0a623ddb7a305aa5640076480540e7e0de", "detected_licenses": [ "MIT" ], "directory_id": "b3beb067e6f92a7ab7ae83386bf775a28789743f", "extension": "c", ...
stackv2
////////////////////////////////////////////////////////////// // miniweb.c - A minimal web server that support multiple // connections and low resource usage. // // (c) 2020 Mike Field <hamster@snap.net.nz> ////////////////////////////////////////////////////////////// #include <stdio.h> #include <stdlib....
2.078125
2
2024-11-19T02:48:11.204150+00:00
2012-02-13T20:23:06
f17724eb459db89ebc1ebad4af20b3ee64bbac1f
{ "blob_id": "f17724eb459db89ebc1ebad4af20b3ee64bbac1f", "branch_name": "refs/heads/master", "committer_date": "2012-02-13T20:23:06", "content_id": "bfcf41f33fd6d5f1e44830df6a7e09314ec7f7d8", "detected_licenses": [ "ISC" ], "directory_id": "5bf64d597ce9eba65a664bb3c3b8860e5c7c189a", "extension": "c"...
stackv2
#include <krad_vorbis.h> void krad_vorbis_encoder_destroy(krad_vorbis_t *vorbis) { //ogg_stream_clear(&vorbis->oggstate); vorbis_block_clear(&vorbis->vblock); vorbis_dsp_clear(&vorbis->vdsp); vorbis_info_clear(&vorbis->vinfo); free(vorbis); } krad_vorbis_t *krad_vorbis_encoder_create(int channels, int sample...
2.15625
2
2024-11-19T02:48:12.163091+00:00
2020-12-02T15:08:32
3bd2f055d88fd2ae72e296f58598cfa56d101334
{ "blob_id": "3bd2f055d88fd2ae72e296f58598cfa56d101334", "branch_name": "refs/heads/master", "committer_date": "2020-12-02T15:08:32", "content_id": "509db6d501881f64c5bccb8a20632554d13a9f43", "detected_licenses": [ "MIT" ], "directory_id": "d3e4681aa1a6f0f97a260466c454174447dcaa0d", "extension": "c"...
stackv2
#include "ucmd_internal.h" ucInstance_INIT(ucApp, ucApp_COUNT) typedef struct { ucApp *app; ucCmdOpt *cmd_opt; } HelpState; typedef struct { ucApp *app; } QuitState; static const char *quit(ucCmd *cmd, void *state) { QuitState *s = (QuitState*)state; assert(s); (void)cmd; return ucApp_ge...
2.21875
2
2024-11-19T02:48:12.461978+00:00
2021-02-22T07:59:56
b509405e71ce9726c1f386e12b70de6dd2f87fda
{ "blob_id": "b509405e71ce9726c1f386e12b70de6dd2f87fda", "branch_name": "refs/heads/main", "committer_date": "2021-02-22T07:59:56", "content_id": "86f93f96ab2802eb74dda928751d5f660b098ca9", "detected_licenses": [ "MIT" ], "directory_id": "db608281efb223f6d1fd719c1e49dce3a309185a", "extension": "c", ...
stackv2
// Method 1 // https://www.youtube.com/watch?v=lSn6E5pv7pc&ab_channel=Satish // https://www.youtube.com/watch?v=rsxT4FfRBaM&t=591s&ab_channel=TheOrganicChemistryTutor // #include<stdio.h> // int main() // { // int num, remainder, place = 1, bin = 0; // printf("please enter a number\n"); // scanf("%d", &num)...
3.078125
3