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-18T21:15:43.748647+00:00
2023-04-19T12:34:22
21a6a814184cda09b1c94e4c5227eb83c7bfb371
{ "blob_id": "21a6a814184cda09b1c94e4c5227eb83c7bfb371", "branch_name": "refs/heads/master", "committer_date": "2023-04-19T12:38:58", "content_id": "9ed2915f845b9c090f19c4f85491053bb6bac52e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "827aaf979d1cd75d2b3cb281a98df791da072026", "extensio...
stackv2
#ifndef DISPLAY_MOUSECLICK_H #define DISPLAY_MOUSECLICK_H enum tile_click_outcome { TC_SUCCESS = 0, TC_INVALID_CLICK = -1, TC_DISPLAY_THREAD_STOP = -2, TC_INVALID_MOUSECLICK_STRUCT = -3, TC_SURRENDER = -4, }; enum mc_object_type { MC_TILE, ...
2.265625
2
2024-11-18T21:15:43.969519+00:00
2017-03-10T16:10:49
12b5edb54727aa8e66bf551700a4cf4919c82b60
{ "blob_id": "12b5edb54727aa8e66bf551700a4cf4919c82b60", "branch_name": "refs/heads/master", "committer_date": "2017-03-10T16:10:49", "content_id": "67ed33c53039b866472d872f24389ac776313221", "detected_licenses": [ "MIT" ], "directory_id": "08e69b0885bb3029671b28228ec33e8e78d06019", "extension": "c"...
stackv2
#include <mount.h> #include <stdc.h> #include <vnode.h> #include <errno.h> #include <vm_map.h> #include <ktest.h> static int test_vfs() { vnode_t *v; int error; error = vfs_lookup("/dev/SPAM", &v); ktest_assert(error == -ENOENT); error = vfs_lookup("/usr", &v); ktest_assert(error == -ENOENT); /* Root file...
2.546875
3
2024-11-18T21:15:45.337456+00:00
2021-03-17T12:33:30
c18879d562b73ee236b4f3550dfff4dc324a37f9
{ "blob_id": "c18879d562b73ee236b4f3550dfff4dc324a37f9", "branch_name": "refs/heads/master", "committer_date": "2021-03-17T12:33:30", "content_id": "6f71a40663bdc1a318e5a1a9f15b091dbc6662e1", "detected_licenses": [ "MIT" ], "directory_id": "786996fa61a62f2ca06c804dec8498a9100e908c", "extension": "c"...
stackv2
#include "gui_use.h" int gui_txt_prop_interactive(gui_obj *gui){ if (gui->modal != TXT_PROP) return 0; if (gui->step == 0) { /* try to go to next step */ gui->step = 1; gui->free_sel = 1; } /* verify if elements in selection list */ if (gui->step >= 1 && (!gui->sel_list->next || (gui->ev & EV_ADD))){ /*...
2.265625
2
2024-11-18T21:15:45.418905+00:00
2017-10-02T23:12:40
c8a679967a4f6f60ebf25b08a9daf18061dd4012
{ "blob_id": "c8a679967a4f6f60ebf25b08a9daf18061dd4012", "branch_name": "refs/heads/master", "committer_date": "2017-10-02T23:12:40", "content_id": "877af0791c7c5b29e7c624642599e7c7ad0c3d39", "detected_licenses": [ "Zlib" ], "directory_id": "aebf2fa2eea05024d8d843d7029107e51d5d9383", "extension": "c...
stackv2
// macro.c -- compile time execution module in mint #include "lang.h" #include "linkedlist.h" #include "vm.h" char CompilingMacros = 0; struct { int line; const char* file; int varScope; FuncDecl* funcDecl; } Context; // TODO: This shouldn't be global static Expr* NextExpr; LinkedList MacroList; static void Re...
2.140625
2
2024-11-18T21:15:45.531533+00:00
2023-07-08T04:45:35
98283916d7c8860c7c200fc31e8e67d25b9cab8a
{ "blob_id": "98283916d7c8860c7c200fc31e8e67d25b9cab8a", "branch_name": "refs/heads/master", "committer_date": "2023-07-08T04:45:35", "content_id": "521a848071c330fc2ca22bbb58b0a6fa3089d1a5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9075cb735dbf69029840b2f8b83d17e5241fa726", "extensio...
stackv2
#include "stdio.h" #include "string.h" #include "arch.h" #include <stdarg.h> FILE *stdin = (FILE *) 1, *stdout = (FILE *) 2, *stderr = (FILE *) 3; void fflush(FILE *f) { arch_fflush((unsigned long) f); } int fputc(int c, FILE *f) { arch_fputc((unsigned long) f, c); return c; } int fgetc(FILE *f) { return arch_...
2.640625
3
2024-11-18T21:15:45.643964+00:00
2023-02-16T11:27:40
286dafb4e6f62aef704a2136a5b5da76d1f3f38a
{ "blob_id": "286dafb4e6f62aef704a2136a5b5da76d1f3f38a", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "f658bdd0bfb07b8ad09bb1a233732ae6963a6481", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Runtime Inc * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <stdio.h> #include <zephyr/types.h> #include <stddef.h> #include <sys/types.h> #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/settings/setting...
2.171875
2
2024-11-18T21:15:45.742053+00:00
2023-09-01T22:44:04
8b57c90260cbd9b94297e3f614553436a035277b
{ "blob_id": "8b57c90260cbd9b94297e3f614553436a035277b", "branch_name": "refs/heads/main", "committer_date": "2023-09-01T22:44:04", "content_id": "d8aab68b2bb4a400711725612297a6047f066635", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e7df6d41d7e04dc1c4f4ed169bf530a8a89ff17c", "extension"...
stackv2
/******************************************************************************* READTOOLS.C Author: Peter Loan Date: 8-DEC-88 Copyright (c) 1992-5 MusculoGraphics, Inc. All rights reserved. Portions of this source code are copyrighted by MusculoGraphics, Inc. Description: This file contains t...
2.484375
2
2024-11-18T21:15:46.069736+00:00
2021-01-26T06:37:51
c5e90caa026dd1db615e98150304a6b2e9b7f5bc
{ "blob_id": "c5e90caa026dd1db615e98150304a6b2e9b7f5bc", "branch_name": "refs/heads/master", "committer_date": "2021-01-26T06:37:51", "content_id": "0955212dad80736fbbd395686410a5be780e0969", "detected_licenses": [ "MIT" ], "directory_id": "439b88ae605992cfdc0f89cf656cf6b9ba7e9049", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> struct node { int data; // Data of the node struct node *nextPtr; // Address of the next node }; struct node *firstNode; // Function to generate the node list void createNodeList(int numberOfNodes); // Function to count the total nodes i...
3.984375
4
2024-11-18T21:15:46.326094+00:00
2018-10-13T04:54:29
4ca6bbc9f0fedf3240264acc6c2963c46d0d349c
{ "blob_id": "4ca6bbc9f0fedf3240264acc6c2963c46d0d349c", "branch_name": "refs/heads/master", "committer_date": "2018-10-13T04:54:29", "content_id": "ee6e8f3e9747550d844ba473735ac414b5b71e90", "detected_licenses": [ "MIT" ], "directory_id": "3d8fd26b8f1cec26c65736ac98b7b2e80b81e4a0", "extension": "c"...
stackv2
///----------------------------------------------------------------- /// Description: <Description> /// Author: <Author> Date: <DateTime> /// Notes: <Notes> /// Revision History: /// Name: Date: Description: ///-------------------------------------------...
2.890625
3
2024-11-18T21:15:47.204337+00:00
2018-03-14T12:44:12
6061932cbd530c40cf89011c0df6d1ad61e3cedf
{ "blob_id": "6061932cbd530c40cf89011c0df6d1ad61e3cedf", "branch_name": "refs/heads/master", "committer_date": "2018-03-14T12:44:12", "content_id": "f30f61d9180da1ab99c17789a8eb413b00060652", "detected_licenses": [ "MIT" ], "directory_id": "746d3cd0696fd3f784acf661812ef371a5ecebb7", "extension": "c"...
stackv2
// Exercise 5 from chapter 10 // This function determines if one string exists inside another string. int findString( char string[], char sub[] ) { int i = 0, j = 0, count = 0; while( string[i] ) { if( string[i] == sub[0] ) { while( sub[j] ) { if( string[i + j] == sub[j] ) count++; ...
3.078125
3
2024-11-18T21:15:47.304385+00:00
2020-03-31T05:39:25
a771e0abf77a7f4d9bc58a88da5bfd87b203fae1
{ "blob_id": "a771e0abf77a7f4d9bc58a88da5bfd87b203fae1", "branch_name": "refs/heads/master", "committer_date": "2020-03-31T05:39:25", "content_id": "9287002270160306fa6233dfb5e5ca11e3a11bde", "detected_licenses": [ "MIT" ], "directory_id": "2d477662493d735f45b2dd48182b2d913f6af28a", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdint.h> #include <zlib.h> #include <limits.h> #include "util.h" #include "htslib/htslib/kseq.h" KSTREAM_INIT(gzFile, gzread, 16384) int nrows(char *fn) { gzFile file; kstream_t *ks; kstring_t str = {0,0,NULL}; file = gzopen(fn, "r"); if (!file) return -1; ks = ks_init(f...
2.328125
2
2024-11-18T21:15:48.375488+00:00
2020-01-20T11:14:03
89d86d99c7654a7bdcf82f439a2b021f653d9312
{ "blob_id": "89d86d99c7654a7bdcf82f439a2b021f653d9312", "branch_name": "refs/heads/master", "committer_date": "2020-01-20T11:14:03", "content_id": "20fe2c4ec8eab246a0a70179164fb3ea9cd0df71", "detected_licenses": [ "MIT" ], "directory_id": "522c8a7b1b7fc6fd1adcf248a2d71caaabf7fe69", "extension": "c"...
stackv2
/************************************************************************/ /* */ /* timer_ps.c -- Timer Delay for Zynq systems */ /* */ /************************************************************************/ /* Author: Sam Bobrowicz */ /* Copyright 2014, Digilent Inc...
2.390625
2
2024-11-18T21:15:48.616123+00:00
2023-03-01T03:53:24
ce773ba7d9955515cf2c81f6d7a2a02d129287d0
{ "blob_id": "ce773ba7d9955515cf2c81f6d7a2a02d129287d0", "branch_name": "refs/heads/master", "committer_date": "2023-03-01T03:53:24", "content_id": "e874ff48cee74b524d540f72af940745f4c37150", "detected_licenses": [ "Apache-2.0" ], "directory_id": "dfa11b2384b284fa3385fdcd18c64771e3f9c18b", "extensio...
stackv2
/**************************************************************************//** * @file main.c * @version V1.00 * $Revision: 1 $ * $Date: 15/07/03 2:55p $ * @brief Demonstrate how to use LXT to trim HIRC * * @note * Copyright (C) 2015 Nuvoton Technology Corp. All rights reserved. *******************************...
2.625
3
2024-11-18T21:15:48.748073+00:00
2015-07-18T22:14:30
7992b647228549dce16b39139ff07f0cbdbb91e5
{ "blob_id": "7992b647228549dce16b39139ff07f0cbdbb91e5", "branch_name": "refs/heads/master", "committer_date": "2015-07-18T22:14:30", "content_id": "b35468c5d5d390bbd976e7f999aad2f02afb0c10", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "aa37f719cdfe9d868bfec05666206e60...
stackv2
#include "type/kind.h" const char* ctf_kind_to_string(ctf_kind kind) { static const char *translation_table[] = { "none", "int", "float", "pointer", "array", "function", "struct", "union", "enum", "forward declaration", "typedef", "volatile", "const", "restrict" }; if (kind <...
2.078125
2
2024-11-18T21:15:49.355656+00:00
2020-03-06T12:46:01
225912f7fb44f1f80538b11318938ade28927f3f
{ "blob_id": "225912f7fb44f1f80538b11318938ade28927f3f", "branch_name": "refs/heads/master", "committer_date": "2020-03-06T12:46:01", "content_id": "fbd000bde91800afe898b46557ea6a74c5d26f67", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "ab8fc6dc5ec52a03d3b947eaef6e4c9bb054823c", "extens...
stackv2
/** ****************************************************************************** * @file FreeRTOS/FreeRTOS_Mutexes/Src/main.c * @author MCD Application Team * @version V1.1.0 * @date 18-June-2014 * @brief Main program body ************************************************************************...
2.34375
2
2024-11-18T21:15:49.413929+00:00
2020-09-09T15:00:46
7428e595fa3f89ecf31500615792629ab2d5409d
{ "blob_id": "7428e595fa3f89ecf31500615792629ab2d5409d", "branch_name": "refs/heads/master", "committer_date": "2020-09-09T15:00:46", "content_id": "82187626314ee08c4b39264f45bfc4972e720bf8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ccc41db82e42bc370ec3c7984b1fed6b4b855667", "extensio...
stackv2
/* * Copyright (C) 2017 The Android Open Source Project  *  * 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 applicab...
2.15625
2
2024-11-18T21:15:51.243108+00:00
2023-08-27T19:14:02
e32f384c7fb711f984f055d6167a8a19181c95fe
{ "blob_id": "e32f384c7fb711f984f055d6167a8a19181c95fe", "branch_name": "refs/heads/master", "committer_date": "2023-08-27T19:14:02", "content_id": "7dc9e45af7b668aa4c663d91ad29f6f8472b837b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "7c857119fe1505b1d80d6e62969661c06dc1a2f4", "extens...
stackv2
/** @file The driver binding and service binding protocol for IP6 driver. Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR> (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "Ip6Impl.h" EFI_DRIVER_BINDING_PROTOCOL...
2.015625
2
2024-11-18T21:15:51.638651+00:00
2017-09-17T18:33:23
593e252f322156a2fd4bb721c0ca514223984e95
{ "blob_id": "593e252f322156a2fd4bb721c0ca514223984e95", "branch_name": "refs/heads/master", "committer_date": "2017-09-17T18:33:23", "content_id": "9a737eb745b3638044ec022fed745aca340c19f9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d90f66f09f71625d816d7e914a8be8691fe3b03e", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <resolv.h> #include <netinet/in.h> #include <sys/socket.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #define NAME_BUFF_SIZE 256 #define BUFF_SIZE 1024 #define TIMEOUT 400000 struct spacket { int seq; size_t ...
2.6875
3
2024-11-18T21:15:52.308493+00:00
2019-09-06T12:02:11
5207823aed0a712f1b110c6dcddb128eba214b15
{ "blob_id": "5207823aed0a712f1b110c6dcddb128eba214b15", "branch_name": "refs/heads/master", "committer_date": "2019-09-06T12:02:11", "content_id": "778bf01bb4ea49b277fd460dcff8ccb9fcd76408", "detected_licenses": [ "MIT" ], "directory_id": "6222824ceb034ab081d359bfd13f80773a3714b6", "extension": "c"...
stackv2
int main(); int main() { struct String str_ = (struct String){.str = "Hello, John!", .len = 12}; int match_; struct String slice_ = str_slice(str_, 0, 4); if (!(((str_cmp(slice_, (struct String){.str = "Hello", .len = 5}) != 0) == 1))) goto next_2; exit(1); match_ = 0; goto end_match_1; nex...
2.265625
2
2024-11-18T21:15:52.370299+00:00
2017-11-21T17:10:09
3d4d49125c071f62cc2fe7e65bb313e9458b17a5
{ "blob_id": "3d4d49125c071f62cc2fe7e65bb313e9458b17a5", "branch_name": "refs/heads/master", "committer_date": "2017-11-21T17:10:09", "content_id": "f3947b7971514141c001dda05f4f0b73234e77d8", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8f21752466b868d9e6e416e336c2553cb5e794de", "extens...
stackv2
//Copied from mylib::generator.c in order to have pthreads under windows visual studio #ifndef __THREADS_MYLIB_H__ #define __THREADS_MYLIB_H__ #ifdef __cplusplus extern "C" { #endif #ifdef _MSC_VER #pragma warning( disable:4996 ) #define WIN32_LEAN_AND_MEAN #define NOMINMAX #include <windows.h> #ifndef __cplusplus...
2.3125
2
2024-11-18T21:15:53.166177+00:00
2017-10-05T03:16:36
2a1a17be7020ecbc980b16027f0f7ee29fdda04b
{ "blob_id": "2a1a17be7020ecbc980b16027f0f7ee29fdda04b", "branch_name": "refs/heads/master", "committer_date": "2017-10-05T03:16:36", "content_id": "f0392f2dff435acec2b698f8a8320e6ae9a10000", "detected_licenses": [ "MIT" ], "directory_id": "1e85e53eed7f41c8af7cabf2e5b12a95eb81e4ba", "extension": "h"...
stackv2
#ifndef _LINKED_LIST #define _LINKED_LIST typedef struct List List; typedef struct Node Node; struct Node { Node *prev; Node *next; void *data; }; struct List { Node *head; Node *tail; unsigned int length; }; List *LL_create(); void LL_destroy(List *list, void (*cb)(void *nodeData)); Node *L...
2.171875
2
2024-11-18T21:15:53.861275+00:00
2019-10-26T13:31:08
e01a665cb7f4e8a10274695482c3e6c5ffa88eed
{ "blob_id": "e01a665cb7f4e8a10274695482c3e6c5ffa88eed", "branch_name": "refs/heads/master", "committer_date": "2019-10-26T13:31:08", "content_id": "deac0e475542691b8cdab8b9aafdb5e5043807e6", "detected_licenses": [ "MIT" ], "directory_id": "8c267441a659900cdc52b0aecfbc902bd36b76cd", "extension": "c"...
stackv2
#include<stdio.h> int main() { printf("The size of 978 is :: %d",sizeof(978)); printf("\nThe size of 3.142 is :: %d",sizeof(3.142)); float a=2.3543; printf("\nThe decimal part of number is :: %f",a-(int)a); char ch[15]; int j=0; printf("\nInput the string :: "); scanf("%s",ch); f...
3.640625
4
2024-11-18T21:15:54.018548+00:00
2022-07-25T11:48:01
51eb3583230f2835345ada10f5813cd2159622cb
{ "blob_id": "51eb3583230f2835345ada10f5813cd2159622cb", "branch_name": "refs/heads/master", "committer_date": "2022-07-25T11:48:01", "content_id": "bb90f0e6d6b5ae89bfdc41ef8578eaf42a59ca46", "detected_licenses": [ "MIT" ], "directory_id": "76a81265e2d29de91fb65b03ce7dff00894802a0", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include "hfe.h" struct hfe_header hfeheader; struct hfe_track curtrack; int isv3=0; int hfe_processheader(FILE *hfefile) { bzero(&hfeheader, sizeof(hfeheader)); if (fread(&hfeheader, sizeof(hfeheader), 1, hfefile)==0) return 1; ...
2.28125
2
2024-11-18T21:15:54.072520+00:00
2018-04-25T15:00:10
abfafc6967947cfeb12e14121f78bae29788288c
{ "blob_id": "abfafc6967947cfeb12e14121f78bae29788288c", "branch_name": "refs/heads/master", "committer_date": "2018-04-25T15:00:10", "content_id": "73172d4e0797c8b78a68731459573fc850f8cd30", "detected_licenses": [ "MIT" ], "directory_id": "2e89e01518ac93b453146639082026e3cbc6b1e1", "extension": "c"...
stackv2
#include "mympi.h" float main () { float sum = val; float recvBuffer; //space for incoming values //start with all ranks active int Narice = size; while (Nactive > 1) { if (rank >= Nactive / 2) { //MPI_send to rank - Nactive / 2 int destRank = rank - Nactive / 2; int tag = Na...
2.1875
2
2024-11-18T21:15:54.390797+00:00
2018-03-03T21:40:43
a9d11a42c632ef5c8f301601b423516a01c7bb22
{ "blob_id": "a9d11a42c632ef5c8f301601b423516a01c7bb22", "branch_name": "refs/heads/master", "committer_date": "2018-03-03T21:40:43", "content_id": "15463dd01a0fd7fb39fc51204ca21bdfbf44919f", "detected_licenses": [ "Unlicense" ], "directory_id": "31604f1719da7706aedc71b40cfae1aa207afe9f", "extension...
stackv2
#include "stdint.h" #include "reg.h" #include "led.h" #include "console.h" #include "mmc.h" void boot(void) { /* Enable clocks for the MMC0 module */ regmask32(CM_PER + CM_PER_MMC0_CLKCTRL, CM_PER_MMC0_CLKCTRL_MODULEMODE, CM_PER_MMC0_CLKCTRL_MODULEMODE_ENABLE); console_puts("MMC0 clocks enabled.\r\n"); ...
2.1875
2
2024-11-18T21:15:54.647904+00:00
2017-10-25T01:47:57
5d595743d4410b329d2be8dda4cb6e0be67024ce
{ "blob_id": "5d595743d4410b329d2be8dda4cb6e0be67024ce", "branch_name": "refs/heads/master", "committer_date": "2017-10-25T01:47:57", "content_id": "0a9903153b2d4d5fd5938e1aa49770fc86529d0b", "detected_licenses": [ "MIT" ], "directory_id": "6dee7027bf6361194d5d2230c555121c9ed7209a", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #define MAXC 21 #define MAXW 5000 int is_palindrome(char (*stack)[MAXC], int top); int main(void) { int c, i, top; char word[MAXC]; char stack[MAXW][MAXC]; i = top = 0; while ((c = getchar()) != EOF) { switch (c) { case '\n': ...
3.140625
3
2024-11-18T21:15:56.107370+00:00
2018-08-02T03:17:56
dbf0484efc205be867bb4da101eaf88e3b40fc14
{ "blob_id": "dbf0484efc205be867bb4da101eaf88e3b40fc14", "branch_name": "refs/heads/master", "committer_date": "2018-08-02T03:17:56", "content_id": "30044dcef5a492e97f16f5ef3193c82729f321dd", "detected_licenses": [ "MIT" ], "directory_id": "2bb6d7b6d5e0d29d5b725a084d35cafb0da95f9c", "extension": "c"...
stackv2
// // main.c // 4-CommonSuffix // // Created by FlyElephant on 2017/11/24. // Copyright © 2017年 FlyElephant. All rights reserved. // #include <stdio.h> typedef struct DataNode { struct DataNode *next; char data; } ListNode; int listlen(ListNode *list) { int len = 1; while (list->next != NULL) { ...
3.109375
3
2024-11-18T21:15:56.539184+00:00
2021-07-29T15:01:27
935ab6b2e04477acb3df0be862558151c1a0f13e
{ "blob_id": "935ab6b2e04477acb3df0be862558151c1a0f13e", "branch_name": "refs/heads/master", "committer_date": "2021-07-29T15:01:27", "content_id": "228dd2766d886179cc8531e3a211357530858075", "detected_licenses": [ "MIT" ], "directory_id": "679d18988b2313e8b93db20b406a9af6d273e9a9", "extension": "h"...
stackv2
/* SPDX-License-Identifier: MIT */ /* * Copyright (C) 2015-2020 Micron Technology, Inc. All rights reserved. */ #ifndef MPOOL_DISCOVER_H #define MPOOL_DISCOVER_H #include <util/platform.h> #include "mpctl.h" struct imp_media_struct { enum mp_media_classp mpd_classp; char mpd_path[NAME_MAX...
2.21875
2
2024-11-18T21:15:56.770809+00:00
2020-12-26T22:16:34
2fd85eab1ec4b21cb435d375dc6bf83226e1aa5c
{ "blob_id": "2fd85eab1ec4b21cb435d375dc6bf83226e1aa5c", "branch_name": "refs/heads/master", "committer_date": "2020-12-26T22:16:34", "content_id": "dd0e097197f75f2ada8757b339e49e16541af721", "detected_licenses": [ "MIT" ], "directory_id": "830e1aa8d3af295804cc84a4ae5be921d91b19a4", "extension": "h"...
stackv2
/* functions to handle the pcb structures and the pcb list */ #ifndef PCB_H #define PCB_H #include <types_bikaya.h> /* PCB handling functions */ /* PCB free list handling functions */ //initialize the static pcb array and add each block in the array to the free pcb list void initPcbs(void); //adds the pcb p to the f...
2.484375
2
2024-11-18T21:15:56.932749+00:00
2020-04-07T03:08:23
f2a06f24d41855c490b2d1f23cc54b7211413ccc
{ "blob_id": "f2a06f24d41855c490b2d1f23cc54b7211413ccc", "branch_name": "refs/heads/master", "committer_date": "2020-04-07T03:08:23", "content_id": "f5347e7fcc5496e6331e159b1328fd1ffbe42184", "detected_licenses": [ "MIT" ], "directory_id": "049388215768ffe631c1f114d451e2b2b7075d11", "extension": "c"...
stackv2
/*---------------------------------------------------------------------------*\ Description 求解热传导方程 $$ \frac{\partial T}{\partial t}=\nabla\cdot{(D_T\nabla T)} $$ \*---------------------------------------------------------------------------*/ #include "fvCFD.H" #include "simpleControl.H" // * * * * * * * *...
2.046875
2
2024-11-18T21:15:56.999075+00:00
2017-01-03T20:08:37
351ccf6978a121a55e2c25f3a62b83f1382c7f08
{ "blob_id": "351ccf6978a121a55e2c25f3a62b83f1382c7f08", "branch_name": "refs/heads/master", "committer_date": "2017-01-03T20:08:37", "content_id": "2f0468da2e23f7e8a594da8095cdc4d96e0a42ac", "detected_licenses": [ "MIT" ], "directory_id": "1260328edbb4fb58cb2652005974ef7fd832184d", "extension": "c"...
stackv2
#include <stdio.h> void copy(FILE* in_file, FILE* out_file) { char cursor; for (cursor = fgetc(in_file); cursor != EOF; cursor = fgetc(in_file)) { cursor = (cursor == 'c') ? 'o' : cursor; fputc(cursor, out_file); } } int main() { // code here FILE* fst = fopen("./fst.txt", "r"); ...
2.71875
3
2024-11-18T21:15:57.233057+00:00
2021-02-09T06:30:18
fac092b21accb5bdbb6c72252dca0b8490d04f6a
{ "blob_id": "fac092b21accb5bdbb6c72252dca0b8490d04f6a", "branch_name": "refs/heads/master", "committer_date": "2021-02-09T06:30:18", "content_id": "0970e6645aab30fbbbc3df39692fd81d02f226ad", "detected_licenses": [ "MIT" ], "directory_id": "d87b8d396953fee653fbcbee92521395d0cec1fe", "extension": "c"...
stackv2
/* * Copyright 2017 Garrett D'Amore <garrett@damore.org> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, m...
2.328125
2
2024-11-18T21:15:57.639848+00:00
2016-04-04T19:05:44
ae0b73efec6971b6f171a890d131bc94b55b55dc
{ "blob_id": "ae0b73efec6971b6f171a890d131bc94b55b55dc", "branch_name": "refs/heads/master", "committer_date": "2016-04-04T19:05:44", "content_id": "51f44043bf71d6f13c5332b5d2a6e1d904251628", "detected_licenses": [ "MIT" ], "directory_id": "dfa4b89c2aece98ce221a7ab9f05957cd2cdbca1", "extension": "c"...
stackv2
/* The MIT License (MIT) Copyright (c) 2016 Thomas Bertauld <thomas.bertauld@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the r...
2.53125
3
2024-11-18T21:15:58.415342+00:00
2015-11-20T00:55:05
1503a58736e54e42b9882a1ce7c029515e276a73
{ "blob_id": "1503a58736e54e42b9882a1ce7c029515e276a73", "branch_name": "refs/heads/master", "committer_date": "2015-11-20T00:55:05", "content_id": "9949ca8d78f0d99ca9e69117b5c2518fc4892baa", "detected_licenses": [ "MIT" ], "directory_id": "69218d822695d1a4f97fb1a35a04b630b8d12db0", "extension": "c"...
stackv2
#include "util.h" char *str_contact(const char *str1, const char *str2) { char *result; result = (char *) malloc(strlen(str1) + strlen(str2) + 1); if (!result) { printf("Error: malloc failed in concat! \n"); exit(EXIT_FAILURE); } strcpy(result, str1); strcat(result, str2); r...
2.484375
2
2024-11-18T21:15:58.737123+00:00
2021-07-05T04:37:02
0372f50f24210cf3a08a98d4c8449b0437d6c658
{ "blob_id": "0372f50f24210cf3a08a98d4c8449b0437d6c658", "branch_name": "refs/heads/master", "committer_date": "2021-07-05T04:43:55", "content_id": "c08e7b6c44776dc658d7439a1bb8bbfa81f891fd", "detected_licenses": [ "MIT" ], "directory_id": "c745fd8c14dcbb5d5e7e1f9cb3992b7c317c0500", "extension": "c"...
stackv2
#include <stdlib.h> #include <sys/file.h> #include <string.h> #include "defs1.h" #include "init1.h" /*#include <unistd.h>*/ /* Allocate n bytes of memory. Check for and exit upon error. */ void *emalloc(n) unsigned n; { char *p; if((p= malloc(n)) == NULL){ fprintf(stderr,"out of memory, %d bytes r...
2.6875
3
2024-11-18T21:15:58.816149+00:00
2021-03-25T20:38:09
b4ba33b9b3527957917be2026492977864be909b
{ "blob_id": "b4ba33b9b3527957917be2026492977864be909b", "branch_name": "refs/heads/master", "committer_date": "2021-03-25T20:38:09", "content_id": "1e6d32fa02fa569a1784acec50ed59558c082d17", "detected_licenses": [ "MIT" ], "directory_id": "165955ca55e651777aa07e80031f094f0cfd1c33", "extension": "h"...
stackv2
/** * @file EffectWaveforms.h * @author Gustice * @brief Predefined Waveforms that can be put together to a complex Waveform * @version 0.6 * @date 2019-10-01 * * @copyright Copyright (c) 2019 * */ #pragma once #ifdef __cplusplus extern "C"{ #endif #include <stdint.h> /// Length of all subsequent Template d...
2.078125
2
2024-11-18T21:15:59.228618+00:00
2017-02-15T08:45:25
f1bbe57bf3f3e22843d19e1ae80d64e243b22006
{ "blob_id": "f1bbe57bf3f3e22843d19e1ae80d64e243b22006", "branch_name": "refs/heads/master", "committer_date": "2017-02-15T08:45:25", "content_id": "9711dd99f35e28a55ac1656b936603cdda590591", "detected_licenses": [ "Apache-2.0" ], "directory_id": "210690c7b5cb48ac965434344d69806b314e9380", "extensio...
stackv2
/****************************************************************************** * Licensed under Apache License Version 2.0 - see LICENSE.rst *****************************************************************************/ static PyObject * PyIU_DotProduct(PyObject *m, PyObject *args) { PyObject *vec1=NULL, *vec2=...
2.703125
3
2024-11-18T21:15:59.307260+00:00
2019-08-14T23:33:21
ff02933ae2238d9c8ac8c30f2c46348a2be8ed4b
{ "blob_id": "ff02933ae2238d9c8ac8c30f2c46348a2be8ed4b", "branch_name": "refs/heads/master", "committer_date": "2019-08-14T23:33:21", "content_id": "6c1aa3012617a1ac6e3fad3cfbec8c51aa41045a", "detected_licenses": [ "MIT" ], "directory_id": "dd1b1c4bb086b123ceeaa4d32bfb1d26bbe38f3a", "extension": "c"...
stackv2
#include "lpg_integer_set.h" #include "lpg_allocate.h" integer_set integer_set_from_range(integer_range const range) { integer const size = integer_range_size(range); if (!integer_less_or_equals(size, integer_create(0, SIZE_MAX))) { LPG_TO_DO(); } integer_set const result = {allocate_array(...
2.953125
3
2024-11-18T21:15:59.389605+00:00
2014-11-23T16:56:37
01ed9eadc7f45c218483c5eb940249371b4fa022
{ "blob_id": "01ed9eadc7f45c218483c5eb940249371b4fa022", "branch_name": "refs/heads/master", "committer_date": "2014-11-23T16:56:37", "content_id": "49153abf5b63b62826c1deaf39faa893e614dbb7", "detected_licenses": [ "MIT" ], "directory_id": "c17a721bb4158486820f7ea8695b578413961ced", "extension": "h"...
stackv2
/** * Contains all the necessary structs and functions to deal with a scene. * * A scene, for now, is composed of the background image and an associated * scale map which serves to compute the scale of object depending on its * position on the image. The scale map is, of course, not visible on the * screen. It is...
2.859375
3
2024-11-18T21:15:59.863109+00:00
2014-12-05T00:16:12
f78bb4bd019babb6740701859861cc5aca70332c
{ "blob_id": "f78bb4bd019babb6740701859861cc5aca70332c", "branch_name": "refs/heads/master", "committer_date": "2014-12-05T00:16:12", "content_id": "fe7f51d7bc48ba84728a17e3324bfb26fa9a4861", "detected_licenses": [ "MIT" ], "directory_id": "7760b60252c09677e9ff566016a922159a17e28a", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <sys/sysinfo.h>//biblioteca para obter informação direto do sistema (proc) #include "load_average.h" int load_average(char *b, size_t s) { /*cria a struct que irá obtem informções do sistema*/ struct sysinfo Sinfo; char buffer[500]; buffer[0] = '\x0'; if(sys...
2.90625
3
2024-11-18T21:16:00.755316+00:00
2015-03-28T08:21:39
5f9a850faa72d933faff46274c798d7ec5550c49
{ "blob_id": "5f9a850faa72d933faff46274c798d7ec5550c49", "branch_name": "refs/heads/master", "committer_date": "2015-03-28T08:21:52", "content_id": "cdc844d3f7f86048c05606487407bcc3d6a4cf0f", "detected_licenses": [ "MIT" ], "directory_id": "d0a4af187e11d82715de8dc51f39bc3ab8f2abbe", "extension": "c"...
stackv2
#include "code.h" #include <windows.h> static IdentSym symTab[MAX_SYM_NUM]; static ConstSym constTab[MAX_SYM_NUM]; static int pos_id = 0; static int pos_const = 0; void symTab_insert(sym_e type, char* value){ /// 2014-7-9 添加重复定义提示出错 if(symTab_lookup(value)!=NULL){ _Error_print("redefined IDENT symbol %s"...
2.6875
3
2024-11-18T21:16:00.891225+00:00
2020-04-01T17:45:22
2b6dd0cd7d9283e89bf3aa2d5827fc38c71f9e3f
{ "blob_id": "2b6dd0cd7d9283e89bf3aa2d5827fc38c71f9e3f", "branch_name": "refs/heads/master", "committer_date": "2020-04-01T17:45:22", "content_id": "a392ba36b30add6cfede60bb0ff6420ec5299a7c", "detected_licenses": [ "MIT" ], "directory_id": "3d384fe7def1cf54ec3b6db6c461f063f0fa149a", "extension": "c"...
stackv2
char number; char outnum; char huns; char tens; char ones; char needtens; char fizz; char buzz; char neednum; int main() { number = 0; fizz = 3; buzz = 5; while (number - 100) { number = number + 1; fizz = fizz - 1; buzz = buzz - 1; neednum = 1; if (!fizz) { ...
2.375
2
2024-11-18T21:16:01.267472+00:00
2018-05-16T21:44:18
7fde3efebafc4e7894f705c2533594908bfc6ee5
{ "blob_id": "7fde3efebafc4e7894f705c2533594908bfc6ee5", "branch_name": "refs/heads/master", "committer_date": "2018-05-16T21:44:18", "content_id": "112d9f323939c529772f4a12d9f99130f5793475", "detected_licenses": [ "ISC" ], "directory_id": "6c00ab8c0b21f487a9bbaadd57e8f390a7a0ba0e", "extension": "h"...
stackv2
/** * riscv.h * RISC-V ISA * * MacSim project */ #ifndef _RISCV_H #define _RISCV_H #include "node.h" // Init the memory void riscv_init_context(node_t *node); // Remove context from memory and free memory blocks void riscv_finish_context(node_t *node); // Print a register dump void riscv_print_context(node_t *...
2.3125
2
2024-11-18T21:16:01.714745+00:00
2023-08-01T11:26:10
3e615bfb758bb46213bfc1097bdd344b27dc256d
{ "blob_id": "3e615bfb758bb46213bfc1097bdd344b27dc256d", "branch_name": "refs/heads/master", "committer_date": "2023-08-22T08:22:52", "content_id": "e40b907bd9fb404a1d50d89994c246391bf1c41b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "eff786582e50538f7146a04aa40b632c891c9828", "extens...
stackv2
/** ****************************************************************************** * @file lis2de12_reg.c * @author Sensors Software Solution Team * @brief LIS2DE12 driver file ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
2.296875
2
2024-11-18T21:16:02.945211+00:00
2021-01-02T02:11:39
f2429782ca7d6534504072b4d24a026c07180e7d
{ "blob_id": "f2429782ca7d6534504072b4d24a026c07180e7d", "branch_name": "refs/heads/master", "committer_date": "2021-01-02T02:11:39", "content_id": "c9d29ce9be20f7dc331500b8772d453460130241", "detected_licenses": [ "MIT" ], "directory_id": "abf432d562312760cfd28a97c43b9e1f97ab64f4", "extension": "c"...
stackv2
/** Sejam 𝑎 e 𝑏 os catetos de um triângulo, onde a hipotenusa é obtida pela equação: ℎ𝑖𝑝𝑜𝑡𝑒𝑛𝑢𝑠𝑎 = √𝑎 2 + 𝑏 2. Faça um programa que receba os valores de 𝑎 e 𝑏 e encontre o valor da hipotenusa através da equação. Imprima no final o resultado dessa operação. **/ #include <stdio.h> int main () { }
2.609375
3
2024-11-18T21:29:37.174150+00:00
2018-08-04T15:57:25
467ef3364e4c363448b4ef8568dcc5680f26b456
{ "blob_id": "467ef3364e4c363448b4ef8568dcc5680f26b456", "branch_name": "refs/heads/master", "committer_date": "2018-08-04T15:57:25", "content_id": "5da36ae1b0471f0c98cdbee83e8c1d3db23665ec", "detected_licenses": [ "MIT" ], "directory_id": "7e8742deb51479d56c61b1e4d1b60adf2b134423", "extension": "c"...
stackv2
#include <rtems.h> #define CONFIGURE_INIT #include <bsp.h> rtems_task Init( rtems_task_argument argument); #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER #define CONFIGURE_APPLICATION_NEEDS_NULL_DRIVER #define CONFIGURE_MAXIMUM_TASKS 8 #def...
2.1875
2
2024-11-18T21:29:38.160425+00:00
2020-12-10T17:50:07
8b3f1a53194f0fda4f119b0d9e67e5808e3e94bf
{ "blob_id": "8b3f1a53194f0fda4f119b0d9e67e5808e3e94bf", "branch_name": "refs/heads/master", "committer_date": "2020-12-10T17:50:07", "content_id": "8b6840cf2894371318aa7292faf37e6f7916ed63", "detected_licenses": [ "MIT" ], "directory_id": "a7ab63234bd218d38956dced06f71c0d3defd7ab", "extension": "c"...
stackv2
int numberOfSteps (int num){ int steps = 0; while(num) { num = (num%2) ? num -1 : num / 2; steps++; } return steps; }
3.078125
3
2024-11-18T21:29:38.343510+00:00
2019-05-02T20:45:46
8ebf94e0d7cf28529c6d7eb20e60c04c51b86fab
{ "blob_id": "8ebf94e0d7cf28529c6d7eb20e60c04c51b86fab", "branch_name": "refs/heads/master", "committer_date": "2019-05-02T20:45:46", "content_id": "83e5eba6f210789bf453176482288c8571c1dba9", "detected_licenses": [ "MIT" ], "directory_id": "2f898bb332097d11f321186207e94f6d156587f3", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "bmp_milton.h" #define ext ".bmp" #define ext2 ".txt" int main() { int fc[3],s,c,op,c1,l1,tm; float fil[13][13]; int brillo,contraste,i,j; char nombre1[12],nombre2[12],nombrea[12]; //-----------------memoria dinamica // filas y columnas int m...
2.625
3
2024-11-18T21:29:39.258595+00:00
2019-09-07T09:49:53
b7b8c02d26fa013dbeb675d89a85d56281358003
{ "blob_id": "b7b8c02d26fa013dbeb675d89a85d56281358003", "branch_name": "refs/heads/master", "committer_date": "2019-09-07T09:49:53", "content_id": "159077ca1d25bbd1c7d5488c476fb0e48c96e95c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6474aec132c5511fb7b47e2a8d077d67dfa92aa5", "extensio...
stackv2
#include "lianbiao.h" /* 链表 */ link* lianbiaoInitLink() { // no head pointer //link* p = NULL; // create head pointer //link* temp = (link*)malloc(sizeof(link));// create firstNode //// init firstNode //temp->elem = 1; //temp->next = NULL; //p = temp; //// create other node //for (int i = 2; i < 6; i+...
3.71875
4
2024-11-18T21:29:43.748885+00:00
2019-08-29T12:30:16
e5a2ab74abb6eeb87789dcd2d87759c875d047da
{ "blob_id": "e5a2ab74abb6eeb87789dcd2d87759c875d047da", "branch_name": "refs/heads/master", "committer_date": "2019-08-29T12:30:16", "content_id": "271bfadb5847530a561731a2d6ebf7ee1a938bcb", "detected_licenses": [ "MIT" ], "directory_id": "f422b464dd2c63a90c05b9936ae4800159d304b9", "extension": "h"...
stackv2
/* * po.h * * Created on: 05/06/2012 * Author: Danilo */ #ifndef PO_H_ #define PO_H_ // Parâmetros fixos #define tipoSensor 0x01 // Categoria do sensor #define tipoAtuador 0x00 // Categoria do atuador #define timeout 5000 // Timeout de espera dos estados de RX #define initTime 5000 // Delay para inciar os ...
2.25
2
2024-11-18T21:29:44.119538+00:00
2021-03-22T18:20:25
83101f43af429dcd525d615924a807d0ecd822d4
{ "blob_id": "83101f43af429dcd525d615924a807d0ecd822d4", "branch_name": "refs/heads/master", "committer_date": "2021-03-22T20:05:11", "content_id": "2cc57f4132a07260aa5af13ae0465170f7b3c98d", "detected_licenses": [ "MIT" ], "directory_id": "84aae6f97f520e1d9161c6d3c0b46c6049cbbe1e", "extension": "h"...
stackv2
#ifndef TEXT_H #define TEXT_H #define MAX_PGM_TEXT_LENGTH 21 // BRR Streaming static PROGMEM const char TEXT_UPLOADING_LOADER[] = "Upoading loader..."; static PROGMEM const char TEXT_LOADER_UPLOADED[] = "Loader uploaded!"; static PROGMEM const char TEXT_STREAMING[] = "Streaming:"; static PROGMEM const char TEXT_PRESS...
2.234375
2
2024-11-18T21:29:44.568052+00:00
2020-03-23T11:06:13
1552a73a245893777d34db991dee04ec55223100
{ "blob_id": "1552a73a245893777d34db991dee04ec55223100", "branch_name": "refs/heads/master", "committer_date": "2020-03-23T11:06:13", "content_id": "23531879295cda04534259cf3dcd8ffba57b8385", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e6a9a1fe1c93fd7a465f1f86a669152822840ee3", "extensio...
stackv2
#include "linkedlist.h" #include <stdlib.h> void list_pop_front(t_list *list) { t_node *tmp; tmp = NULL; if (list && list->size > 0) { if (list->size == 1) { tmp = list->tail; list->head = NULL; list->tail = NULL; } else { tmp = list->head; list->head->next->prev = list->he...
2.484375
2
2024-11-18T21:29:44.729568+00:00
2022-06-09T19:43:13
d4102d755e56dec7a96af9acbb6612bb7b24e2c7
{ "blob_id": "d4102d755e56dec7a96af9acbb6612bb7b24e2c7", "branch_name": "refs/heads/master", "committer_date": "2022-06-09T19:43:13", "content_id": "c487633bb1f52e65d84437e41dc5a8ca6a4f78e3", "detected_licenses": [ "MIT" ], "directory_id": "64014c6a817eae339ee272067922c4c26a6d1459", "extension": "c"...
stackv2
/* The MIT License Copyright (C) 2011 Zilong Tan (eric.zltan@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights...
2.671875
3
2024-11-18T21:29:44.962270+00:00
2022-05-10T18:56:48
49db77085850427bc6329617336a91e60b81a305
{ "blob_id": "49db77085850427bc6329617336a91e60b81a305", "branch_name": "refs/heads/master", "committer_date": "2022-05-10T19:12:56", "content_id": "5e276232a9260d3463814b50afdd47533ebdb9bb", "detected_licenses": [ "Zlib" ], "directory_id": "782af7bfc133bd8335b7c78d69a5e885b67b9043", "extension": "c...
stackv2
/* model.c -- Generic CRC parameter model routines * Copyright (C) 2014, 2016, 2017, 2020 Mark Adler * For conditions of distribution and use, see copyright notice in crcany.c. */ #include "model.h" /* --- Parameter processing routines --- */ #include <stdio.h> #include <string.h> #include <ctype.h> // Read one ...
2.671875
3
2024-11-18T21:29:45.034579+00:00
2023-08-30T22:00:02
a2a6ad33490fcac2eeb04b23ed16809eb11d1254
{ "blob_id": "a2a6ad33490fcac2eeb04b23ed16809eb11d1254", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T22:00:02", "content_id": "837660f3f6b73c727e2f98ebe239e1954bcd662f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "113854f799ea342b2b2986d40256c9164b5759b4", "extensio...
stackv2
#include "isshe_common.h" #include "isshe_error.h" #include "isshe_ipc.h" #include "isshe_process.h" #include "isshe_unistd.h" #include "isshe_file.h" #define SEM_NAME "mysem" int main(int argc, char *argv[]) { int fd, i; char *ptr; // 注意这里的类型!!!写成int,找了半天。 size_t filesize, mmapsize, pag...
2.796875
3
2024-11-18T21:29:45.241739+00:00
2021-03-12T16:26:31
1b99276d4b726ed0ba1378fe4a19590dcc699838
{ "blob_id": "1b99276d4b726ed0ba1378fe4a19590dcc699838", "branch_name": "refs/heads/main", "committer_date": "2021-03-12T16:26:31", "content_id": "332b9ecc14880be57b71530d1adfa1dca917bb9a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "53185d37d7de545e4ed54433303c50ce18dfcc10", "extension"...
stackv2
//Roll No.:20CY20031 //Name:Shubham Snehil #include <stdio.h> int main() { int a,temp; printf("\nEnter an integer:"); scanf("%d",&a); while(a!=0) { temp=a%10; switch(temp) { case 0: printf("Zero "); break; case 1: printf("On...
3.40625
3
2024-11-18T21:29:45.708411+00:00
2020-07-19T09:51:14
4793c9bc776c4001f8def995d67ad8d3a4e5a576
{ "blob_id": "4793c9bc776c4001f8def995d67ad8d3a4e5a576", "branch_name": "refs/heads/master", "committer_date": "2020-07-19T09:51:14", "content_id": "6b17a75e006cd12df4c05dcaaf03d09988a4bd38", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a1cae92e3015bdde25509af429316d01764469b4", "extensio...
stackv2
//test new memory management #include <user.h> #include <osinit.h> #include <os_delay.h> extern volatile TCB *OSTCBCurPtr; extern volatile TCB *OSTCBHighRdyPtr; void three(void *para) { void *ptr[31]; int i; _get_os_buddy_ptr_head(); ka_printf("%p\n", _alloc_power2_page()); ka_printf("%p\n", _alloc_power3_page()...
2.40625
2
2024-11-18T21:29:45.991549+00:00
2019-01-28T00:36:12
21a73b791a01c41d272a88a3d196dbc6027c934d
{ "blob_id": "21a73b791a01c41d272a88a3d196dbc6027c934d", "branch_name": "refs/heads/master", "committer_date": "2019-01-28T00:36:12", "content_id": "4aa1e6db85ed848f32035a903c8f8a7d7a4ecbb5", "detected_licenses": [ "MIT" ], "directory_id": "1c5311bc12010954398e91d7b1b71ad3edd8c0fb", "extension": "c"...
stackv2
/** * \file * \brief Functions used to boot the system. * \author Chris Smeele * \copyright Copyright (c) 2015, Chris Smeele. All rights reserved. * \license MIT. See LICENSE for the full license text. */ #include "boot.h" #include "console.h" #include "fs/fs.h" #include "elf.h" #include "config.h" #incl...
2.484375
2
2024-11-18T21:29:47.093819+00:00
2020-01-25T18:56:19
c8a3b2efb7d81145edb2d94adf71ea60c52b35a1
{ "blob_id": "c8a3b2efb7d81145edb2d94adf71ea60c52b35a1", "branch_name": "refs/heads/master", "committer_date": "2020-01-25T18:56:19", "content_id": "22154994f0423891020b4b80846f84a0314c18ce", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d4438b0b2bdc56ea127ea7df65b0e8cb33a71451", "extens...
stackv2
/** * @file * * @brief Implementation of notification functions as defined in * kdbnotification.h * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ #include <kdbassert.h> #include <kdbease.h> #include <kdbhelper.h> #include <kdbinvoke.h> #include <kdbioprivate.h> #include <kdblogge...
2.109375
2
2024-11-18T21:29:47.201432+00:00
2019-04-12T08:38:26
285bf46d387d95088d391270fde3d3eabf8f7df3
{ "blob_id": "285bf46d387d95088d391270fde3d3eabf8f7df3", "branch_name": "refs/heads/master", "committer_date": "2019-04-12T08:38:26", "content_id": "f365f0484d8dd4d3db1f6d5577848a8e7ce8835e", "detected_licenses": [ "MIT" ], "directory_id": "8df77479804e9a9aa25cc1175d081cee2ebd4ff5", "extension": "c"...
stackv2
#include <kernel/printk.h> #include <drv/i2c.h> #include <mm/mm.h> #include <errno.h> #include <string.h> #include <utils.h> #include <init.h> #include <fdtparse.h> static int dev_count = 0; static int master_count = 0; static struct list_node i2c_device_list; static struct list_node i2c_master_list; static int i2c_w...
2.296875
2
2024-11-18T21:29:47.401526+00:00
2016-05-28T22:16:14
b459a65585f3527b935c0f0bd6b6f6de5cd00817
{ "blob_id": "b459a65585f3527b935c0f0bd6b6f6de5cd00817", "branch_name": "refs/heads/master", "committer_date": "2016-05-28T22:16:14", "content_id": "cff5cc151974cb59c2a66ebd213ae091846d4030", "detected_licenses": [ "MIT" ], "directory_id": "20d7b5ab63d638295652e87af6ec82d1fc923af3", "extension": "h"...
stackv2
#ifndef __esp8266_debug_h__ #define __esp8266_debug_h__ #define ESP8266_DEBUG //#define ESP8266_DEBUG_VERBOSE #ifdef ESP8266_DEBUG #define ASSERT(x) if (!(x)) { \ Serial.print(F("assert failed at ")); \ Serial.print(__func__); \ Serial.print(F("()@")); \ Serial.println(__LINE__); \ for(;;); } #define WAR...
2.03125
2
2024-11-18T21:29:47.478583+00:00
2020-08-25T08:11:02
6122d04cfdcae24eb166e326bf3cb4a104797711
{ "blob_id": "6122d04cfdcae24eb166e326bf3cb4a104797711", "branch_name": "refs/heads/master", "committer_date": "2020-08-25T08:11:02", "content_id": "ed37639f6fdf9d251d1bc921767baf4b27d88f68", "detected_licenses": [ "MIT" ], "directory_id": "044decc68a8d4e32b5226bc70448dc30edaba347", "extension": "c"...
stackv2
// SPDX-License-Identifier: MIT // Copyright (c) 2018-2020 The Pybricks Authors #include <pbio/control.h> #include <pbio/drivebase.h> #include <pbio/motorpoll.h> #include <pbio/servo.h> #if PBDRV_CONFIG_NUM_MOTOR_CONTROLLER != 0 static pbio_servo_t servo[PBDRV_CONFIG_NUM_MOTOR_CONTROLLER]; static pbio_error_t servo_...
2.453125
2
2024-11-18T21:29:53.756218+00:00
2023-08-25T04:46:28
ca923936045192791ebaa9e59321eecf0c43d155
{ "blob_id": "ca923936045192791ebaa9e59321eecf0c43d155", "branch_name": "refs/heads/main", "committer_date": "2023-08-25T07:17:19", "content_id": "1bc45b38830febf4fdfcd10522e4f3df75d7aa17", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "dc7631ad46c850ad3b491c261c2da42edffabc4e", "extensio...
stackv2
/* Copyright 2021 The ChromiumOS Authors * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "common.h" #include "driver/accelgyro_bmi260.h" #include "driver/accelgyro_bmi_common.h" #include "emul/emul_bmi.h" #include "emul/emul_common_i2c.h" #include "i...
2.140625
2
2024-11-18T21:29:54.237160+00:00
2018-09-12T01:12:20
bf55a06d7690437eebcb6fd79776dc9e3638a536
{ "blob_id": "bf55a06d7690437eebcb6fd79776dc9e3638a536", "branch_name": "refs/heads/master", "committer_date": "2018-09-12T01:12:20", "content_id": "8deecc824294d2747e429101f8ec90c66a5ddf21", "detected_licenses": [ "MIT" ], "directory_id": "0b9c1df516012cee1cee852d3cc62f9f79b664d0", "extension": "c"...
stackv2
/*! https://www.geeksforgeeks.org/socket-programming-cc/ */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/socket.h> #include <sys/epoll.h> #include <pthread.h> #include <time.h> #define MAX_CLIENT_THREAD 10000 const char request_string[] = "GET ...
2.890625
3
2024-11-18T21:29:54.448593+00:00
2023-01-05T12:40:03
4ae1fb936c9d9f2fc1e4f9444322fda66821e1fd
{ "blob_id": "4ae1fb936c9d9f2fc1e4f9444322fda66821e1fd", "branch_name": "refs/heads/master", "committer_date": "2023-01-05T12:40:03", "content_id": "f2197ec29749dca9efcb198f438241a207a9b6b1", "detected_licenses": [ "MIT" ], "directory_id": "d200264ee92369d376ba00f6fd5f6d50d9936026", "extension": "c"...
stackv2
#include "idt.h" struct IDTEntry { u16 offset_low; u16 selector; u8 __ignored; u8 type; u16 offset_high; } PACKED; struct IDTPointer { u16 limit; uintptr_t base; } PACKED; static struct { struct IDTEntry entries[256]; struct IDTPointer pointer; } idt; // in start.S extern void id...
2.171875
2
2024-11-18T21:29:54.579578+00:00
2022-03-20T17:53:25
df49e633b6b3ae0f0bc9167a017bc8ed42ed593e
{ "blob_id": "df49e633b6b3ae0f0bc9167a017bc8ed42ed593e", "branch_name": "refs/heads/master", "committer_date": "2022-03-20T17:53:25", "content_id": "76e57b39acc90a7a1ec88efea7031587e08af009", "detected_licenses": [ "MIT" ], "directory_id": "15fbb35cb68bd707f6a1eee9485e2ee37fc52876", "extension": "c"...
stackv2
#include <string.h> #include "bootloader_config.h" bool config_get(bootloader_config_t* cfg) { #if !defined(CONFIG_ADDR) // not compiled for bootloader, use default config cfg->ID = 1; strcpy(cfg->board_name, "dummy-config"); strcpy(cfg->device_class, "can-io-board"); cfg->application_crc = 0; ...
2.375
2
2024-11-18T21:29:57.116830+00:00
2018-06-10T10:46:45
06ea24a2ac3a1fc3754448de0450f80e0f893027
{ "blob_id": "06ea24a2ac3a1fc3754448de0450f80e0f893027", "branch_name": "refs/heads/master", "committer_date": "2018-06-10T10:46:45", "content_id": "104c0a63cc2e01ddda61844475ae6b8c9e9f17f7", "detected_licenses": [ "Unlicense" ], "directory_id": "20d049a342605808473e16f2b081a54a3f420a11", "extension...
stackv2
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <signal.h> #define CHECK(FUN, VAL, COMP, ERR) if((VAL) == COMP) {\ char msg[100];\ sprintf(msg, "%s: %s\n", FUN, ERR);\ perror(msg);\ exit(-1);\ } #define CHECK_NEGATIVE_ONE(FUN, VAL, ERR) CHECK(FUN, VAL, -1, ERR) #define CHECK_SIG_ER...
2.71875
3
2024-11-18T21:29:57.784989+00:00
2019-04-12T08:38:26
2790a2c1dc7a2eac4945b5425561a50bbec30b1a
{ "blob_id": "2790a2c1dc7a2eac4945b5425561a50bbec30b1a", "branch_name": "refs/heads/master", "committer_date": "2019-04-12T08:38:26", "content_id": "62acc88ce681f03b81170946ce8e38023545ba2c", "detected_licenses": [ "MIT" ], "directory_id": "8df77479804e9a9aa25cc1175d081cee2ebd4ff5", "extension": "c"...
stackv2
#include <board.h> #include <errno.h> #include <kernel/printk.h> #include <mm/mm.h> #include <string.h> #include <init.h> #include <drv/device.h> #include <fdtparse.h> #include <drv/mtd.h> #include <sizes.h> #include <mach/flash-stm32.h> #define FLASH_PSIZE_BYTE (0 << 8) #define FLASH_PSIZE_WORD (2 << 8) #define FLASH...
2.53125
3
2024-11-18T21:29:57.951672+00:00
2019-10-29T23:22:40
8c84beda053ebe1fef87e1ea428b66265c8db7aa
{ "blob_id": "8c84beda053ebe1fef87e1ea428b66265c8db7aa", "branch_name": "refs/heads/master", "committer_date": "2019-10-29T23:22:40", "content_id": "4f262aee3aa1bc37e862e8b766184c59e917e336", "detected_licenses": [ "MIT" ], "directory_id": "1aeb367578f7719775a4c418d71ab6e3f9d0589d", "extension": "c"...
stackv2
#include <stdio.h> #include "filesystem.h" void parse_args(int argc, char* argv[], char** host, char** filename) { if (argc < 3) { printf ("usage: %s hostname filename\n", argv[0]); exit (1); } *host = argv[1]; *filename = argv[2]; } // Open file to append data FILE* createOrOpenFile(char* filename) { return...
2.859375
3
2024-11-18T21:29:58.021239+00:00
2019-09-24T02:33:20
3e54b8a1a0755c11cbf1ee0231e8ac3c03ba249d
{ "blob_id": "3e54b8a1a0755c11cbf1ee0231e8ac3c03ba249d", "branch_name": "refs/heads/master", "committer_date": "2019-09-24T02:33:20", "content_id": "c0237cb158bb11f9f146931ab9f15db2b5df3059", "detected_licenses": [ "MIT" ], "directory_id": "8b90166a4a69d7a841f05518dfae60633d689176", "extension": "c"...
stackv2
/* Basic idea is to go back to using and fixed-size array of structs (instead of a tree) and then create a array of pointers to them. We sort this pointer array instead of the struct array and then print. Printing is O(n), sorting O(log n), updating/inserting a word is O(n). Book keeps update/insert using tree (while ...
3.328125
3
2024-11-18T21:29:58.669090+00:00
2022-01-27T05:46:54
d894516a077f14824e0feda92453a888b537223c
{ "blob_id": "d894516a077f14824e0feda92453a888b537223c", "branch_name": "refs/heads/master", "committer_date": "2022-01-27T05:46:54", "content_id": "49c23cedf1d6127904acbce3fc5692b724c31968", "detected_licenses": [ "Apache-2.0" ], "directory_id": "45c62ef608be0c1d8e18eca66169899545fc8a17", "extensio...
stackv2
/* * Copyright 2005-2019 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
2.5
2
2024-11-18T21:29:58.773895+00:00
2014-08-19T06:54:36
0bcb98dbb4f4b4fec4fa080dbc82a29d11fb1f1d
{ "blob_id": "0bcb98dbb4f4b4fec4fa080dbc82a29d11fb1f1d", "branch_name": "refs/heads/master", "committer_date": "2014-08-19T06:54:36", "content_id": "55b5afec02df91ac1c628d2d6692a28fad34234b", "detected_licenses": [ "MIT" ], "directory_id": "71e0f23ee6b27c813875edfa16e30d21da14a363", "extension": "c"...
stackv2
/* OpenCL runtime library: pocl_image_util image utility functions Copyright (c) 2012 Timo Viitanen / Tampere University of Technology Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwa...
2.1875
2
2024-11-18T21:29:58.936565+00:00
2022-11-28T14:34:00
29d356fda8eb43247f72b26d21e5635bbc148199
{ "blob_id": "29d356fda8eb43247f72b26d21e5635bbc148199", "branch_name": "refs/heads/master", "committer_date": "2022-11-28T14:34:00", "content_id": "02e2948b9e566356e2451b928efef55ab77e0fba", "detected_licenses": [], "directory_id": "e3e940b2324da6e88f076b8a7f7fd3f20e076b81", "extension": "h", "filename...
stackv2
#ifndef __COLUMN_H_ #define __COLUMN_H_ #include "common.h" #include "literal.h" enum constraint_type { CONS_NOT_NULL, CONS_UNIQUE, CONS_PRIMARY_KEY, CONS_FOREIGN_KEY, CONS_DEFAULT, CONS_AUTO_INCREMENT, CONS_CHECK, CONS_SIZE }; typedef struct ForeignKeyRef_t { const char *col_name, *table_...
2.6875
3
2024-11-18T21:29:59.042652+00:00
2018-12-02T01:49:26
cb061677e83d1c3937b39ae4bd938bc268decef4
{ "blob_id": "cb061677e83d1c3937b39ae4bd938bc268decef4", "branch_name": "refs/heads/master", "committer_date": "2018-12-02T01:49:26", "content_id": "61ae9dc841954a3e23d5f87372cbfcbf157ad413", "detected_licenses": [ "MIT" ], "directory_id": "887a1a5b20d640ea920f523a825994901094e198", "extension": "h"...
stackv2
/** The following assignments were given on Day 2. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define allo (char *) malloc(sizeof(char) * 100) typedef enum boolean {false, true} bool; // UTILITY FUNCTIONS char *removeSpaces(char *str) { // Remove all spaces from a string ...
3.421875
3
2024-11-18T21:29:59.280329+00:00
2020-09-22T06:40:20
7fc716f5e6968972b1c1acc51ad62fa25f0d418f
{ "blob_id": "7fc716f5e6968972b1c1acc51ad62fa25f0d418f", "branch_name": "refs/heads/master", "committer_date": "2020-09-22T06:40:20", "content_id": "218c596e751d4ce4e785e17c31062afdd5c809f5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d4d1fd4d11cd4860b9299c4fd1034b7c491e2cfb", "extensio...
stackv2
#include <stdio.h> #include <string.h> // HASHING IS NOT A ACCURATE SOLUTION TO COMPARE TWO STRINGS. SO WE GO FOR TRADITIOAL METHOD. int hashFunction(char S1[]) { unsigned short int count = 0; int hash = 0, i = 0; while(S1[i] != '\0'){ count++; i++; } for (i = 0; i < count; i++) hash = hash + (in...
3.609375
4
2024-11-18T21:29:59.724171+00:00
2020-12-15T03:14:29
b6b90ada9a610625bf24b3241a3a961f9acf8e7f
{ "blob_id": "b6b90ada9a610625bf24b3241a3a961f9acf8e7f", "branch_name": "refs/heads/main", "committer_date": "2020-12-15T03:14:29", "content_id": "c31e5f812c206837e77d75ba0264495b39941e06", "detected_licenses": [ "MIT" ], "directory_id": "c349a18d12a6ee89d3b4835beb9b4dd2c352a5b5", "extension": "c", ...
stackv2
//Copyright (c) 2004-2020 Microchip Technology Inc. and its subsidiaries. //SPDX-License-Identifier: MIT #include "common.h" /* Always include common.h at the first place of user-defined herder files */ #include "vtss_luton26_regs.h" #include "h2io.h" #include "timer.h" #include "uartdrv.h" #include "misc2.h" /...
2.015625
2
2024-11-18T21:29:59.848662+00:00
2017-12-05T21:55:58
99d199110a627f6f6c9b9d0445aeb3d6d3af2073
{ "blob_id": "99d199110a627f6f6c9b9d0445aeb3d6d3af2073", "branch_name": "refs/heads/master", "committer_date": "2017-12-05T21:55:58", "content_id": "3c3d6a3467418ff7bba9171ca6ece3a318b5dbf0", "detected_licenses": [ "MIT" ], "directory_id": "769f8dc0d8e4703a3beb1b95c4fe441eaa12d9cf", "extension": "h"...
stackv2
/** * @file estruturas.h * @brief Arquivo principal com a funcao main com servico de proxy. */ #ifndef estruturas_h #define estruturas_h #include <netinet/tcp.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <ctype.h> #include <setjmp.h> #include <signal.h> #include <sys/ti...
2.484375
2
2024-11-18T21:29:59.908185+00:00
2018-08-06T00:26:34
c0af36dccfcc92497904af6465e5b037ed8be011
{ "blob_id": "c0af36dccfcc92497904af6465e5b037ed8be011", "branch_name": "refs/heads/master", "committer_date": "2018-08-06T00:26:34", "content_id": "168851438d016639f198f0fb38e21a2912a7953e", "detected_licenses": [ "ISC" ], "directory_id": "53d2d2596e793844a69a9b812406237395096fe9", "extension": "c"...
stackv2
#include "sort.h" #include <stdlib.h> #include <string.h> #include <sys/time.h> static int compare(const void *a, const void *b); static void lazysort(uint32_t *list, int size); static uint32_t * getlist(); static uint32_t * cpylist(uint32_t *list); static inline int numdigits(int number); #define NUM 10000 #define ...
2.890625
3
2024-11-18T21:30:00.464368+00:00
2017-01-08T07:42:14
e16fe0c23fe5516785ee394bc81f9051e7dcdd18
{ "blob_id": "e16fe0c23fe5516785ee394bc81f9051e7dcdd18", "branch_name": "refs/heads/master", "committer_date": "2017-01-08T07:42:14", "content_id": "96c06c6459600cbde2e79ed9955b602c25c5f0ae", "detected_licenses": [ "Unlicense" ], "directory_id": "cb4b662f85b653d22be91eb857ddcdb664ab898d", "extension...
stackv2
#ifndef RECORD_MGR_H #define RECORD_MGR_H #include "dberror.h" #include "expr.h" #include "tables.h" // Bookkeeping for scans typedef struct RM_ScanHandle { RM_TableData *rel; void *mgmtData; } RM_ScanHandle; typedef struct RM_ScanIterator { int totalRecords; int lastRecordRead; Record** records; } RM_ScanItera...
2.015625
2
2024-11-18T21:30:00.788447+00:00
2019-04-12T20:19:04
39aa6d6a2556e8e8847a22a576bc2acda19c9408
{ "blob_id": "39aa6d6a2556e8e8847a22a576bc2acda19c9408", "branch_name": "refs/heads/master", "committer_date": "2019-04-12T20:19:04", "content_id": "0a33bbcc3b8125ddb28dd7598b65982f3d18cf57", "detected_licenses": [ "Apache-2.0" ], "directory_id": "862788954150ebc0ee04cb21ab7182672028eda6", "extensio...
stackv2
/******************************************************************************* ********************************* BLUEBOTTLE ********************************** ******************************************************************************* * * Copyright 2012 - 2016 Adam Sierakowski, The Johns Hopkins University ...
2.359375
2
2024-11-18T21:30:00.862042+00:00
2017-05-24T21:20:45
ff169edf7ea9dc420c3ea8f467b7fcc7e5105057
{ "blob_id": "ff169edf7ea9dc420c3ea8f467b7fcc7e5105057", "branch_name": "refs/heads/master", "committer_date": "2017-05-24T21:20:45", "content_id": "5ff687c716f759cc79445e7f75c1902fbfed3967", "detected_licenses": [ "MIT" ], "directory_id": "054295d551faaf2e02ba4a2816cc1d597cce0820", "extension": "c"...
stackv2
#include "abb.h" #include "testing.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <time.h> /* ****************************************************************** * PRUEBAS UNITARIAS * *****************************************************************...
3.1875
3
2024-11-18T21:30:00.937143+00:00
2015-09-19T11:42:51
35053dd99435b5dca35d0b4c07633b9b736a104e
{ "blob_id": "35053dd99435b5dca35d0b4c07633b9b736a104e", "branch_name": "refs/heads/master", "committer_date": "2015-09-19T11:42:51", "content_id": "6645f303188ab538966aaa896d36b0d76e9f2436", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d7d3e71895c02a7a9af0960a0c7f16d9e804a816", "extensio...
stackv2
/* // This feels like the same problem with storing the refs // bit vs diff vs encoded vs plain // We need to store offsets of keys. // Say every first letter, 256 possibilities. Say only 3 first letters are used. But maybe 200 are used. */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h...
3.359375
3
2024-11-18T21:30:05.995471+00:00
2021-03-08T02:53:53
c6b1eb8b174e7e157ddf921a9aaeca1a9a33c783
{ "blob_id": "c6b1eb8b174e7e157ddf921a9aaeca1a9a33c783", "branch_name": "refs/heads/master", "committer_date": "2021-03-08T02:53:53", "content_id": "1ee43ec9589f6d93ab9976d28f0d1644e7d38b80", "detected_licenses": [ "MIT" ], "directory_id": "d638632476dab44ffe49dbc736730679d784c85f", "extension": "c"...
stackv2
#include "heap.h" #define RIGHT 1 #define LEFT 0 #define FLOOR(n) (n - (n % 1)) #define CEILING_POS(X) ((X - (int)(X)) > 0 ? (int)(X + 1) : (int)(X)) #define CEILING_NEG(X) ((X - (int)(X)) < 0 ? (int)(X - 1) : (int)(X)) #define CEIL(X) (((X) > 0) ? CEILING_POS(X) : CEILING_NEG(X)) /** * power - compute @n to the...
3.28125
3
2024-11-18T21:30:07.631571+00:00
2020-05-04T23:07:57
7651cdaace11ef812c765a5b7d57b8879ca4cad1
{ "blob_id": "7651cdaace11ef812c765a5b7d57b8879ca4cad1", "branch_name": "refs/heads/master", "committer_date": "2020-05-04T23:07:57", "content_id": "841c93a19bb88996daec1b73108c7ee09e4b7d69", "detected_licenses": [ "MIT" ], "directory_id": "7b8880f3ec5f7b6d5d621becf326803670ab51ea", "extension": "h"...
stackv2
// // HCPath.h // HollowCore // // Created by Matt Stoker on 12/28/19. // Copyright © 2019 HollowCore. All rights reserved. // #ifndef HCPath_h #define HCPath_h #include "../Core/HCObject.h" #include "../Geometry/HCRectangle.h" #include "../Data/HCData.h" #include "../Container/HCList.h" //----------------------...
2.203125
2
2024-11-18T21:30:07.796612+00:00
2019-03-15T19:33:08
d39e80765659fc0bfcee8c0e6ab91c3f17936f6a
{ "blob_id": "d39e80765659fc0bfcee8c0e6ab91c3f17936f6a", "branch_name": "refs/heads/master", "committer_date": "2019-03-15T19:33:08", "content_id": "617718ef6feb1e473164c70271f73749b4502869", "detected_licenses": [ "MIT" ], "directory_id": "1ee90dfe125294c8a50fcf2bf1312c35c523a934", "extension": "c"...
stackv2
/* * Copyright (C) 2009-2011 by Benedict Paten (benedictpaten@gmail.com) * * Released under the MIT license, see LICENSE.txt */ #include "sonLib.h" #include "stReferenceProblem.h" #include "stReferenceProblem2.h" #include "stMatchingAlgorithms.h" /* * These two functions convert from one version of the coordinate...
2.6875
3
2024-11-18T21:30:08.308593+00:00
2020-02-17T09:35:14
cfef8141092e4f55b03ef6a5f6370e845557d260
{ "blob_id": "cfef8141092e4f55b03ef6a5f6370e845557d260", "branch_name": "refs/heads/master", "committer_date": "2020-02-17T09:35:14", "content_id": "7b290e13b32b8b8b142c2cb536b7e2469c8413f7", "detected_licenses": [ "MIT" ], "directory_id": "b6cd08e111ef200fe739c9bae4383088ff1fe2bb", "extension": "h"...
stackv2
/*! * COPYRIGHT NOTICE * Copyright (c) 2013,山外科技 * All rights reserved. * 技术讨论:山外论坛 http://www.vcan123.com * * 除注明出处外,以下所有内容版权均属山外科技所有,未经允许,不得用于商业用途, * 修改内容时必须保留山外科技的版权声明。 * * @file MK60_i2c.h * @brief i2c驱动头文件 * @author 山外科技 * @version v5.0 * @date 2013-07-1...
2.15625
2
2024-11-18T21:30:09.705928+00:00
2020-02-27T18:27:43
4b35e99946321dbcfb40f209f19eb3d76bc72c73
{ "blob_id": "4b35e99946321dbcfb40f209f19eb3d76bc72c73", "branch_name": "refs/heads/master", "committer_date": "2020-02-27T18:27:43", "content_id": "7d86a051f5809c7d9ea3194e4843dcaf0d59072a", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "da87c3c4568baf73eafba3bdd0398b72...
stackv2
/* * FILE ~/usr/sbr/trasheol.c * * overread until end of line * * written: 1992 07 20 * latest update: 1994-08-14 * */ #include <stdio.h> #include <gg/sbr.h> /* ------------------------------------------------------------------------ */ long trash_until_eol (FILE *fi) { long ctr= 0L; while (!fe...
2.203125
2
2024-11-18T21:30:10.381687+00:00
2012-06-14T12:33:12
604fe5dedd83996135fefc3140164342e0990080
{ "blob_id": "604fe5dedd83996135fefc3140164342e0990080", "branch_name": "refs/heads/master", "committer_date": "2012-06-14T12:33:12", "content_id": "e2251bec2b8a661bdc05a263f1b3de10e25a4ce8", "detected_licenses": [ "Artistic-2.0" ], "directory_id": "b339d662d16f1fdd3897576bcbc477cce9968063", "extens...
stackv2
#ifndef __M1_AST_H__ #define __M1_AST_H__ #include "symtab.h" #include "decl.h" #include "instr.h" #include "compiler.h" #include "ann.h" typedef struct m1_block { struct m1_expression *stats; struct m1_symboltable locals; } m1_block; /* structure to represent a function. */ typedef struct m1_chunk { ...
2.140625
2
2024-11-18T21:30:10.442441+00:00
2011-03-09T23:19:05
c1c73ea1fb202b4c15b30fadc3939a1ccb42c08d
{ "blob_id": "c1c73ea1fb202b4c15b30fadc3939a1ccb42c08d", "branch_name": "refs/heads/master", "committer_date": "2011-03-09T23:19:05", "content_id": "5fd9d0d5a8ce9f1f7b6d153597ad75e53f90e173", "detected_licenses": [ "MIT" ], "directory_id": "f7f31b85a7d3a72c10926913eac3221d578ee046", "extension": "c"...
stackv2
#include <stdlib.h> #include "lev.h" /* just to try the algorithm, substitute with * unsigned int *buffer; * unsigned int **distance; * initialized and destructed at the beginning and end of lev. */ unsigned int distance[24][24]; static inline unsigned int min(unsigned int a, unsigned int b) { return (a < b) ...
3
3
2024-11-18T21:30:10.648958+00:00
2023-08-27T05:12:43
52bdf50d24291b52301af8a69746c317ee6045dd
{ "blob_id": "52bdf50d24291b52301af8a69746c317ee6045dd", "branch_name": "refs/heads/master", "committer_date": "2023-08-27T05:12:43", "content_id": "57168b1d9d99bfd045ebf6556ebc71c4cda60969", "detected_licenses": [ "MIT" ], "directory_id": "c8785278ccc04221bc4f618acfb6a639b452d13f", "extension": "c"...
stackv2
/** * Use the mouse in a X11 terminal * * Some terminfo sequences: * * smcup = \E[?1049h enter alternate screen (enter_ca_mode) * * rmcup = \E[?1049l exit alternate screen (exit_ca_mode) * * cup 1 2 = \E[2;3H set cursor pos to 2nd column, 3rd line (x=1, y=2) * * civis = \E[?25l make...
2.5625
3
2024-11-18T21:30:10.870281+00:00
2021-07-19T10:45:54
b097c84809743337ef147899ad279e6301417793
{ "blob_id": "b097c84809743337ef147899ad279e6301417793", "branch_name": "refs/heads/master", "committer_date": "2021-07-19T10:45:54", "content_id": "3d64492230d2088fcfe85ec24450b8d4f8e7c886", "detected_licenses": [ "Unlicense" ], "directory_id": "dbc423eef9dd026fa59f5b4fd532068275a97205", "extension...
stackv2
// Binary geohash module for Python 3.7+ // // Linux build: // $ cc -shared $(python-config --includes) -fPIC -DNDEBUG \ // -O3 -s -ffreestanding -nostdlib -o geohash.so geohash.py.c // // Windows build (w64devkit): // $ cc -shared -I"$PYTHONHOME/include" -L"$PYTHONHOME/libs" -DNDEBUG \ // -O3 -s -ffr...
2.328125
2
2024-11-18T21:30:11.061824+00:00
2020-01-01T04:06:33
ba463f17450e3eacbf78c9565555ad700b0b8b99
{ "blob_id": "ba463f17450e3eacbf78c9565555ad700b0b8b99", "branch_name": "refs/heads/master", "committer_date": "2020-01-01T04:06:33", "content_id": "c5f3bb7896370fdff0a9c3e8b1965641c928345b", "detected_licenses": [ "MIT" ], "directory_id": "33ee597da61f29260dbd1230c83bc4b780362de2", "extension": "c"...
stackv2
#include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<fcntl.h> int main(int argc,char* argv[]){ int fd; char buffer[255]; struct flock fvar; if(argc==1){ printf("Usage: %s <filename>\n",argv[0]);return 1; } if((fd = open(argv[1],O_RDWR) )==-1){ fprintf(stderr,"Error o...
2.8125
3
2024-11-18T21:30:11.361821+00:00
2020-03-08T16:22:54
4ffc0ad0f37555797288cac644c5bd96956e626e
{ "blob_id": "4ffc0ad0f37555797288cac644c5bd96956e626e", "branch_name": "refs/heads/master", "committer_date": "2020-03-08T16:22:54", "content_id": "bd5745774f0e1476f88035112df2d4fda43bc2ee", "detected_licenses": [ "MIT" ], "directory_id": "24fc2132f5cfe01dae1f38f954c6e1c10c144e27", "extension": "h"...
stackv2
#pragma once /** * \file utils.h * \brief Common utility macros * * Various utility macros, for common operations at the pre-processing step. * Includes stuff like concatenation, unique identifiers, and token operations. */ /** * \brief Concatenate two tokens unexpanded * * Macro to concatenate two tokens, w...
2.125
2
2024-11-18T21:30:11.766297+00:00
2019-09-25T17:41:09
1203e1d98a635ea4175c0baf095e164d668db030
{ "blob_id": "1203e1d98a635ea4175c0baf095e164d668db030", "branch_name": "refs/heads/master", "committer_date": "2019-09-25T17:41:09", "content_id": "9019a1f7aa9c5f8a3ef49153c7febcc72cf1d5aa", "detected_licenses": [ "MIT" ], "directory_id": "3a46bf71fb10d8b61fd02f756af54c58564058cb", "extension": "c"...
stackv2
#include <stdio.h> #include <stdarg.h> #include <string.h> #include <stdlib.h> #include "ipset.h" #include "_cgo_export.h" int writebuf( const char* format, ... ) { va_list args; va_start(args, format); outfn(va_arg(args, char *)); va_end(args); return 0; } // Initializes a session with a write buffer for X...
2.28125
2
2024-11-18T21:30:11.837727+00:00
2020-05-12T02:21:37
13a2a01c301f6c991ee6289c6380ad1e2d7b106e
{ "blob_id": "13a2a01c301f6c991ee6289c6380ad1e2d7b106e", "branch_name": "refs/heads/master", "committer_date": "2020-05-12T02:21:37", "content_id": "9f8ddf80b1e135edaf6159ee22dff3dcb0aae731", "detected_licenses": [ "MIT" ], "directory_id": "8a8d0139f50144f6a1b4be4789f7a2962eadbad5", "extension": "c"...
stackv2
/** * @author waterproofpatch * @file list.c * @brief List implementation. */ #include <stdlib.h> /* Foreard declarations for this file */ #include "list.h" list_t *list_init(void *(*list_malloc)(size_t), void (*list_free)(void *)) { /* Validate args */ if (list_malloc == NULL || list_free == NULL) { ...
3.28125
3
2024-11-18T21:30:11.918407+00:00
2021-04-12T14:56:13
d2a0f67e4e72e6b2e40930608b83126d53f89548
{ "blob_id": "d2a0f67e4e72e6b2e40930608b83126d53f89548", "branch_name": "refs/heads/master", "committer_date": "2021-04-12T14:56:13", "content_id": "331ea924b6f613045f96a0b6c16dea236f01f932", "detected_licenses": [ "MIT" ], "directory_id": "7ceb425e73d16e119202f4dc57be22023f72ec7b", "extension": "h"...
stackv2
/****************************************************************************** * Copyright (c) 2021 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restricti...
2.109375
2
2024-11-18T21:30:12.138687+00:00
2013-10-01T08:51:29
b7854df3c2e198cda4973fd26cfa996e350989bc
{ "blob_id": "b7854df3c2e198cda4973fd26cfa996e350989bc", "branch_name": "refs/heads/master", "committer_date": "2013-10-01T08:51:29", "content_id": "be1950f0e2c8af26997cb00f88aa69a2b90a2f56", "detected_licenses": [ "MIT-enna" ], "directory_id": "596c31b047ca731e4908aaf9f056b6ec39623380", "extension"...
stackv2
#include "irc.h" #include "irc_parse.h" #include "emote_private.h" #include <Ecore_Con.h> #include <unistd.h> EMAPI Emote_Protocol_Api protocol_api = { /* version, name, label */ EMOTE_PROTOCOL_API_VERSION, "irc", "IRC" }; typedef struct _IRC_Server_Params IRC_Server_Params; static Eina_Bool _irc_cb_server_ad...
2.1875
2
2024-11-18T21:30:12.316537+00:00
2016-12-30T20:45:54
1f1f257ed24e60319a064bf3690be2afd23d6490
{ "blob_id": "1f1f257ed24e60319a064bf3690be2afd23d6490", "branch_name": "refs/heads/master", "committer_date": "2016-12-30T20:45:54", "content_id": "9dafb60161ecf8402012e2c220e1c8834f3776d0", "detected_licenses": [ "Zlib" ], "directory_id": "4d1b273e7bfda3a5c9fce2274778a4274c3eddfa", "extension": "c...
stackv2
/**************************************************************************** * Copyright (C) 2008 * Joseph Jordan <joe.ftpii@psychlaw.com.au> * * Copyright (C) 2010 * by Dimok * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any ...
2.203125
2
2024-11-18T21:30:12.423843+00:00
2018-05-25T08:41:01
26a423cc205f0216c2002e0e748a25d3d4c2a817
{ "blob_id": "26a423cc205f0216c2002e0e748a25d3d4c2a817", "branch_name": "refs/heads/master", "committer_date": "2018-05-25T08:41:01", "content_id": "42072b382a9893296767126aa6449dc5c89e34b6", "detected_licenses": [ "MIT" ], "directory_id": "a9e6fc2474cdf4a2369acaecd5a8a4f835154846", "extension": "c"...
stackv2
#include "test.h" TEST emplace_float32() { TM_msg dummy; float buf = 64; dummy.type = TM_float32; dummy.buffer = (void *)&buf; dummy.size = 1; float destination; if(!emplace_f32(&dummy, &destination)) { FAIL(); } ASSERT_EQ_FMT(buf, destination,"%f"); PASS(); } TEST emplace_float32_neg() ...
2.5625
3
2024-11-18T21:30:12.792252+00:00
2022-06-11T10:43:35
fd79363970a654fd55167c30fb001bc3186b53ef
{ "blob_id": "fd79363970a654fd55167c30fb001bc3186b53ef", "branch_name": "refs/heads/master", "committer_date": "2022-06-11T10:48:44", "content_id": "27e3117dcaa9896a585942d229ebbb2af0cdc1ee", "detected_licenses": [ "MIT" ], "directory_id": "ebff7c39d1746127e502d201c0ed5b79e619e0a6", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <inttypes.h> #include <stdio.h> /* snprintf() */ #include "base.h" #include "../base.h" static void ip6_addr_data_copy_to_blocks ( const struct ip6_addr_data* const restrict bits, uint16_t* const restrict blocks ); static void ip6_addr_...
2.375
2