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-18T18:23:02.582785+00:00
2015-04-29T17:47:53
76d693e0782eee106c87377d52ea40875ecd27b9
{ "blob_id": "76d693e0782eee106c87377d52ea40875ecd27b9", "branch_name": "refs/heads/master", "committer_date": "2015-04-29T17:47:53", "content_id": "8edfca35eb8b70026fcb86f07f2657b9021f0390", "detected_licenses": [ "MIT" ], "directory_id": "6292621a965ef2e5892e142d20d92fde8d00ca08", "extension": "c"...
stackv2
/*! \file AMS_pressure.c * \brief Header file for AMS pressure sensors. * * \details This program is designed to read data off 4 AMS pressure sensor units: * AMS 5812-0003-D (unidirectional 0.3psi differential for airspeed) * AMS 5812-0003-DB (x2) (bidirectional +-0.3psi differential for alpha and beta) * AMS ...
2.5
2
2024-11-18T18:23:05.179034+00:00
2020-08-16T01:03:26
79ad0fb3b834fe1e0cb0528c06b5863a5481c9c3
{ "blob_id": "79ad0fb3b834fe1e0cb0528c06b5863a5481c9c3", "branch_name": "refs/heads/master", "committer_date": "2020-08-16T03:53:56", "content_id": "9ef6c15406d1bff2096b94b5fb540249bbe4fc55", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "d911ae679ba2e25498390954538796c4921a0d5d", ...
stackv2
/* Copyright 2012 exMULTI, Inc. * Distributed under the MIT/X11 software license, see the accompanying * file COPYING or http://www.opensource.org/licenses/mit-license.php. */ #include <bitc/buffer.h> // for const_buffer #include <bitc/buint.h> // for bu256_equal, bu256_hex, etc #incl...
2.09375
2
2024-11-18T18:23:05.274096+00:00
2020-03-08T08:29:17
e31a93e0f90145a440b36a4c7d0cf31c6c2d3c2d
{ "blob_id": "e31a93e0f90145a440b36a4c7d0cf31c6c2d3c2d", "branch_name": "refs/heads/master", "committer_date": "2020-03-08T08:29:17", "content_id": "5e639c03bb84ad1a07c52ef29620c6c71413248b", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6c8c11da1d1476062246defad285df20ad4865b1", "extensio...
stackv2
/* * Bean Java VM * Copyright (C) 2005-2015 Christian Lins <christian@lins.me> * * 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 ...
2.375
2
2024-11-18T18:23:05.485765+00:00
2021-04-18T12:50:02
d513d35604bb951fca72aa6937d57f519d1f3d32
{ "blob_id": "d513d35604bb951fca72aa6937d57f519d1f3d32", "branch_name": "refs/heads/master", "committer_date": "2021-04-18T12:50:02", "content_id": "7f25839dd8b9f00bb3c81f19c608f19235d3cad7", "detected_licenses": [ "MIT" ], "directory_id": "fa252a38c2f9e596c273677a44b6b3f397e34f29", "extension": "c"...
stackv2
/*! */ #include "common.h" void visualise(enum VisualiseType ivisualisetype, int step, int *grid, int n, int m){ if (ivisualisetype == VISUAL_ASCII) visualise_ascii(step, grid, n, m); if (ivisualisetype == VISUAL_PNG) visualise_png(step, grid, n, m); else visualise_none(step); } /// ascii visualisation v...
2.765625
3
2024-11-18T18:23:06.096267+00:00
2020-02-27T08:08:57
8e6a135d56b7c60d1aea2ec2a4323dddfccf1063
{ "blob_id": "8e6a135d56b7c60d1aea2ec2a4323dddfccf1063", "branch_name": "refs/heads/master", "committer_date": "2020-02-27T08:08:57", "content_id": "3973445429940bb5cfe387883873f34156789ee5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a03530c2d296d90b556a6d9969f230c66712d27b", "extensio...
stackv2
//to cover all assertions it is necessary to run "goto-instrument --nonde-static <a.out> <a.instr.goto>" #include <stdio.h> struct str { int x; char s[10]; }; int global_x; struct str global_s; struct str* global_sp; int func(int x, struct str s, struct str* sp){ int i; for( i = 0; i < 10; i++ ){ printf("%c....
2.8125
3
2024-11-18T18:23:06.388699+00:00
2017-07-20T17:19:19
9c82dc0fcecf105057d9da2e85f36e1b23a93115
{ "blob_id": "9c82dc0fcecf105057d9da2e85f36e1b23a93115", "branch_name": "refs/heads/master", "committer_date": "2017-07-20T17:19:19", "content_id": "337d06eec8a1fbb3ef54ac4f64920049cedc501e", "detected_licenses": [ "NCSA" ], "directory_id": "fb53212a449d2db07398694e2f1b404fe1ae8e27", "extension": "c...
stackv2
/* * First KLEE tutorial: testing a small function */ #include <klee/klee.h> #include <stdio.h> #include <string.h> /** * Compares two digests for equality. Does a simple byte compare. * * @param digesta one of the digests to compare. * * @param digestb the other digest to compare. * * @return true if t...
3.015625
3
2024-11-18T18:23:06.726979+00:00
2021-11-14T18:24:03
b49556d0473872831088feae578948d774210f0d
{ "blob_id": "b49556d0473872831088feae578948d774210f0d", "branch_name": "refs/heads/master", "committer_date": "2021-11-14T18:24:38", "content_id": "8eb8329e28da90632cf1022133e8de5a112e99d6", "detected_licenses": [], "directory_id": "9e62727874a55db556dc5c4b1771de872bf21225", "extension": "c", "filename...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <getopt.h> #include <sys/time.h> #include <sys/types.h> #include <sys/socket.h> #include <time.h> #include <signal.h> #include <event2/event.h> #include <event2/thread.h> static int g_backend; static unsigned int g_nloops; stat...
2.125
2
2024-11-18T18:23:07.141646+00:00
2019-07-05T08:05:12
67e0dbaf4a250822d7c72fa9b3393d4e17636ad4
{ "blob_id": "67e0dbaf4a250822d7c72fa9b3393d4e17636ad4", "branch_name": "refs/heads/master", "committer_date": "2019-07-05T08:05:12", "content_id": "a6fa001808c656431a62ece584331f54d4fa6ed2", "detected_licenses": [ "MIT" ], "directory_id": "a3504d40b00599157dc33ddc4176bbb082868d54", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include "common.h" const char *INVALID_PATH_LIST[] = { ".", "..", "./", "../", NULL }; char * get_filename(const char *abs_path) { static char filename[PATH_MAX + 1]; size_t len, i; len = strlen(abs_path); strcpy(filename, abs_path); ...
2.734375
3
2024-11-18T18:23:07.659178+00:00
2017-11-24T07:00:13
c5ee702e82efe2dfe5849612c159ca063c8df7aa
{ "blob_id": "c5ee702e82efe2dfe5849612c159ca063c8df7aa", "branch_name": "refs/heads/master", "committer_date": "2017-11-24T07:00:13", "content_id": "83f6fe011fd45709a853f4932391eaa2a88f5125", "detected_licenses": [ "MIT" ], "directory_id": "f9d507589b873d2cb0ac76059f208983e738cea2", "extension": "c"...
stackv2
//Write a program to print the position of the smallest of n numbers using an array #include<stdio.h> int main(void) { int size,i,small,pos; printf("Enter array size "); scanf("%d",&size); int arr[size]; printf("\nEnter array\n"); for(i=0;i<size;i++){ scanf("%d",&arr[i]); small=a[pos]...
3.65625
4
2024-11-18T18:23:08.189762+00:00
2015-06-12T17:42:02
bdd18a8eb4ea801fde072bb01cc1b6aaf9808675
{ "blob_id": "bdd18a8eb4ea801fde072bb01cc1b6aaf9808675", "branch_name": "refs/heads/master", "committer_date": "2015-06-12T17:42:02", "content_id": "dd60daac07bbcf7046bbdf6b5703b2032addfe16", "detected_licenses": [ "MIT" ], "directory_id": "0fc485709afbb18cec1ba63523f368c596ff759f", "extension": "c"...
stackv2
// // convert-to-word2vec.c // // // Created by Mehdi on 2/19/15. // // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <malloc.h> #include <ctype.h> typedef float real; const long long max_w = 50; // max length of vocabulary entries const long long max_dimension...
2.671875
3
2024-11-18T18:23:08.514978+00:00
2019-02-11T12:59:19
1093bca0f6af126b79fba3ef52e0dfc60d8139d0
{ "blob_id": "1093bca0f6af126b79fba3ef52e0dfc60d8139d0", "branch_name": "refs/heads/master", "committer_date": "2019-02-11T12:59:19", "content_id": "f76e9b7617a46d60ec23c3522ef98ba70455dce3", "detected_licenses": [ "MIT" ], "directory_id": "030451c8d5bdf12d9675ef3bfd2c5b1d853f2ea5", "extension": "c"...
stackv2
#include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "x11_event_handler.h" #include "config.h" #include "pg.h" #include "util.h" Config _config; Config *config = &_config; void reset_config() { get_config_path(con...
2.0625
2
2024-11-18T18:23:08.601523+00:00
2013-04-17T18:42:40
9e24d09f22154d6c02db32bf216081a0cf604084
{ "blob_id": "9e24d09f22154d6c02db32bf216081a0cf604084", "branch_name": "refs/heads/master", "committer_date": "2013-04-17T18:42:40", "content_id": "8b9117d3432c8733ddb1cc18eee264d329b2e2df", "detected_licenses": [ "MIT" ], "directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef", "extension": "c"...
stackv2
#include "emu.h" #include "video/konicdev.h" #include "includes/xmen.h" /*************************************************************************** Callbacks for the K052109 ***************************************************************************/ void xmen_tile_callback( running_machine &machine, int layer,...
2.078125
2
2024-11-18T18:23:08.803850+00:00
2020-03-02T02:08:08
eae474dd91bd1a49eb80994ebc54603b3ecad79c
{ "blob_id": "eae474dd91bd1a49eb80994ebc54603b3ecad79c", "branch_name": "refs/heads/master", "committer_date": "2020-03-02T02:08:08", "content_id": "4cdd0473bb4254f803b99ce4010bc3aba03bdcc2", "detected_licenses": [ "MIT" ], "directory_id": "4cafcca5bc3542e889d5266daee92bbd1896b6fa", "extension": "c"...
stackv2
/* * Patch ``League of Legends.exe'' by replacing the public key * in the executable. * * You may generate your own RSA2048 key pair by * $ openssl genrsa -out my 2048 * $ openssl rsa -in my -pubout > my.pub * * * Robert <robertabcd at gmail.com> * 2013/6/2 */ #include <assert.h> #include <stdio.h> #incl...
2.140625
2
2024-11-18T18:23:09.217679+00:00
2015-01-03T15:07:54
b34df192f0703567c7760f7a9a9c9bc1b3541680
{ "blob_id": "b34df192f0703567c7760f7a9a9c9bc1b3541680", "branch_name": "refs/heads/master", "committer_date": "2015-01-03T15:07:54", "content_id": "a02f21705cca100e0807af0ea2f3047be47aba35", "detected_licenses": [ "MIT" ], "directory_id": "24320d64b13d43325ecff5a42c95df13916690a8", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> /* C 2014, MIT license, "fibonacci.c" C. Graff */ /* Populate an array with the fibonacci number sequence. */ unsigned long fibonacci(unsigned long); void print_array(unsigned long *, unsigned long); int main() { unsigned long c = 0; /* after "94" itera...
3.625
4
2024-11-18T18:23:11.769047+00:00
2021-06-23T10:15:18
a4a4f78c17c5f9e4212230caad41ed64de4f36a0
{ "blob_id": "a4a4f78c17c5f9e4212230caad41ed64de4f36a0", "branch_name": "refs/heads/master", "committer_date": "2021-06-23T10:15:18", "content_id": "464373bf91df0a4f5d69b8bf7b21d57e65709017", "detected_licenses": [ "MIT" ], "directory_id": "741ed13f23e9a655cf2e34ac322fd6f09da8d709", "extension": "c"...
stackv2
#include "file.h" #include "disk.h" #include "eeprom.h" #include <stdlib.h> #include <string.h> File files[FILE_SIZE]; int8_t file_open(char *name, uint8_t mode) { uint16_t block_address = DISK_BLOCK_ALIGN; while (block_address <= EEPROM_SIZE - 2 - 2) { uint16_t real_block_address = block_address + 2;...
2.6875
3
2024-11-18T18:23:11.835351+00:00
2021-01-16T17:47:43
56bf6332c5993f84b86cd5db53f04eaafbb5c61f
{ "blob_id": "56bf6332c5993f84b86cd5db53f04eaafbb5c61f", "branch_name": "refs/heads/master", "committer_date": "2021-01-16T17:47:43", "content_id": "b08c3329eff0319f0609f624b4e123194a0f123b", "detected_licenses": [ "MIT" ], "directory_id": "105022505b77331ee0c612c5a2c2f33024e92f8e", "extension": "h"...
stackv2
#ifndef ACTUAL_C_SOCKETS_H #define ACTUAL_C_SOCKETS_H /** * ACS just blocking TCP client sockets, use something * easier for servers like Python's socketserver * * Works on Windows (Visual C) * Works on Unix-based */ #include <stddef.h> // size_t struct acs; enum acs_code { ACS_OK, ACS_ERROR, ACS...
2.0625
2
2024-11-18T18:23:11.897154+00:00
2020-06-17T00:52:19
b03693b2c4024e67c5b343d41bfddaa23f5e2ec2
{ "blob_id": "b03693b2c4024e67c5b343d41bfddaa23f5e2ec2", "branch_name": "refs/heads/master", "committer_date": "2020-06-17T00:52:19", "content_id": "379ae8910f7871e1eecd54ed85f56e509e958430", "detected_licenses": [ "MIT" ], "directory_id": "20af59fadeacfadba09773a5d8a2e121109d2fdc", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> main () { int num1, num2; printf("Informados 2 numeros inteiros, lhe direi qual relacionamento satisfazem: \n"); printf("Digite o primeiro numero inteiro: \n"); scanf("%d", &num1); printf("Digite o segundo numero inteiro: \n"); scanf("%d", &num2); if (num1 == nu...
3.6875
4
2024-11-18T18:23:11.990100+00:00
2019-05-07T15:08:27
16968b215424b5f36f707b8e627906e694303024
{ "blob_id": "16968b215424b5f36f707b8e627906e694303024", "branch_name": "refs/heads/master", "committer_date": "2019-05-07T15:08:27", "content_id": "b0c0c2820cc34ddbd038eca52ebe58b754e19cb1", "detected_licenses": [ "MIT" ], "directory_id": "25e76410612348be2a25dd172003f3fb6ec41ab1", "extension": "c"...
stackv2
/* ** BillyScene, 2018 ** pbuffer_set_offset ** File description: ** bs_pbuffer_set_offset */ #include "bs_components.h" #include "bs_prototypes.h" #include <stdbool.h> /** * @brief Sets the pbuffer's offset * * @param pbuffer * @param offset_x * @param offset_y * @return true * @return false */ bool bs_pbuf...
2.609375
3
2024-11-18T18:23:13.008396+00:00
2015-03-02T07:39:23
cd58acfff2bd24a2341fa8aae51e87f7a30f47c1
{ "blob_id": "cd58acfff2bd24a2341fa8aae51e87f7a30f47c1", "branch_name": "refs/heads/master", "committer_date": "2015-03-02T07:39:23", "content_id": "28f5346e4810456a285340e24681d43fa7b1a533", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f37c3546f39d7ebc4236c043e740d68bf826e8c1", "extensio...
stackv2
/* Copyright (C) 2010-2015 Marvell International Ltd. Copyright (C) 2002-2010 Kinoma, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/lice...
2
2
2024-11-18T18:23:13.268678+00:00
2023-08-19T19:52:01
057d864998c0f747f7e1c0e39600e7a5cf412971
{ "blob_id": "057d864998c0f747f7e1c0e39600e7a5cf412971", "branch_name": "refs/heads/master", "committer_date": "2023-08-24T06:47:43", "content_id": "40ac3e7dc57a51c01f10e422899e0e2c2b3f37ae", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "80cc60b33eb179fe39bad3e0d7208b67...
stackv2
/* * Phoenix-RTOS * * libphoenix * * math.h constants * * Copyright 2017 Phoenix Systems * Author: Aleksander Kaminski * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #ifndef _LIBPHOENIX_MATH_CONSTS_H_ #define _LIBPHOENIX_MATH_CONSTS_H_ /* The base of natural logarithms. */ #define M_E 2.71828182...
2.03125
2
2024-11-18T18:23:13.340358+00:00
2022-07-08T09:59:01
157bab15e364da28974eef31d67729e7e3fa30f3
{ "blob_id": "157bab15e364da28974eef31d67729e7e3fa30f3", "branch_name": "refs/heads/main", "committer_date": "2022-07-08T09:59:01", "content_id": "b5dcc4611af54bd0384f1ed538abb0c609253005", "detected_licenses": [ "MIT" ], "directory_id": "537eb58d242bc58d27cb07cf3b17db0efcd0b961", "extension": "h", ...
stackv2
#ifndef _427e4537328c4799bdaaf21d8286b211 #define _427e4537328c4799bdaaf21d8286b211 /* Some things to know about macros: 1. Macros are evaluated at the place where they are called, not where they are defined. This is why special symbols like __FILE__, __LINE__, and __func__ can have different values each time t...
2.59375
3
2024-11-18T18:23:15.720336+00:00
2016-04-30T15:32:22
11066385d68df8e403f2ae16398bed2f2ba2ee9e
{ "blob_id": "11066385d68df8e403f2ae16398bed2f2ba2ee9e", "branch_name": "refs/heads/master", "committer_date": "2016-04-30T15:32:22", "content_id": "d1558a62f150f4f1ac54b40020795ac8ccad2ec5", "detected_licenses": [ "MIT" ], "directory_id": "9d6a3d2f29cd0b6327f39a687d02f6fb2c807899", "extension": "c"...
stackv2
/* TinyScheme FFI Extension */ #include <windows.h> #include "scheme-private.h" #include "ffi.h" typedef struct { void *proc; ffi_cif cif; } ffi_procinfo; typedef union { int i; double r; char *s; } ffi_avalue; static ffi_type *get_ffi_type_ptr(char *ffi_type_str) { if (0 == strcmp(ffi_type_str, "void"...
2.21875
2
2024-11-18T18:23:15.795384+00:00
2016-03-04T20:02:55
2ad3082fefb7233bff70946a1da44fb59bea132b
{ "blob_id": "2ad3082fefb7233bff70946a1da44fb59bea132b", "branch_name": "refs/heads/master", "committer_date": "2016-03-04T20:02:55", "content_id": "edab92c09114ce2145449ec668bf83ee379f8d97", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "db201a96cdf02612bf5f7079f0c530095d65832c", "extens...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "phonebook_hashfunction.h" /* FILL YOUR OWN IMPLEMENTATION HERE! */ entry *hash_table[TABLE_SIZE]; void initialize() { for(int i=0; i<TABLE_SIZE; i++) { hash_table[i] = NULL; } return ; } int TransHashKey(char *lastName,int size)...
3.03125
3
2024-11-18T18:23:16.031081+00:00
2023-02-24T02:08:15
2e849a1b0a270a08503d5d05acce41760431219e
{ "blob_id": "2e849a1b0a270a08503d5d05acce41760431219e", "branch_name": "refs/heads/master", "committer_date": "2023-02-24T02:08:15", "content_id": "a8ac44fbce62765a3e64226388f76476696c0e63", "detected_licenses": [ "BSD-3-Clause-Open-MPI" ], "directory_id": "d5c17a98e78f10baaddf29dd8713e50eef56203c", ...
stackv2
/* * Copyright (c) 2021-2022 IBM Corporation. All rights reserved. * * $COPYRIGHT$ */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <mpi.h> #include "common.h" int my_c_test_core(MPI_Datatype dtype, size_t total_num_elements, bool blocking); int main(int argc, char** argv) { /* * ...
2.09375
2
2024-11-18T18:23:16.331161+00:00
2021-06-17T22:52:08
bc634abbcabbc87a60fd42bf3f922fc4a4dff1ac
{ "blob_id": "bc634abbcabbc87a60fd42bf3f922fc4a4dff1ac", "branch_name": "refs/heads/master", "committer_date": "2021-06-17T22:52:08", "content_id": "e10e44e8b3af73472b4b3260c5d88caa28e7c5e3", "detected_licenses": [ "MIT" ], "directory_id": "5b395d541284cd05f8a25b83c4c51d8b86c42d79", "extension": "h"...
stackv2
/** * * Athor: Ivar Vargas Belizario * Copyright (C) 2021 * */ #ifndef IMAGET_H #define IMAGET_H #include <string.h> #include <stdbool.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include "Color3RGB.h" const int x8[8] = {-1, 0, 1, 0, -1, 1, 1, -1};//for 4 or 8 connectivity ...
2.625
3
2024-11-18T18:23:16.427235+00:00
2020-06-25T00:42:38
f55bd27ac1dcd5fed7ea1bd6e0cd6e4fea5b4c19
{ "blob_id": "f55bd27ac1dcd5fed7ea1bd6e0cd6e4fea5b4c19", "branch_name": "refs/heads/master", "committer_date": "2020-06-25T00:42:38", "content_id": "105e4e1440478c2229dbd38176fb32befde7e062", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0d620c7ff803827d3a13ed8c7dc6a4e257df8f5f", "extensio...
stackv2
// This test switches the binary solenoid between the open and closed position // // TODO - This test should be updated because the solenoid is now a proportional // solenoid with variable positions between 0 and 1 and no longer a // simple binary solenoid #include "hal.h" // test parameters static cons...
2.3125
2
2024-11-18T18:23:16.485310+00:00
2020-11-18T11:54:26
6d280ac198369cf434c5f6449ce52bef67603836
{ "blob_id": "6d280ac198369cf434c5f6449ce52bef67603836", "branch_name": "refs/heads/master", "committer_date": "2020-11-18T11:54:26", "content_id": "9b1b8d5fc39ce938512f820ce880e4057b3565d2", "detected_licenses": [ "MIT" ], "directory_id": "56c4a72d42edd231e9518757e43b4c0819f50316", "extension": "c"...
stackv2
//#include "stdlib.h" #include "system.h" #include "periphs.h" #include "iob-uart.h" #include "iob_timer.h" int main() { unsigned long long elapsed; unsigned int elapsedu; //timer_reset(TIMER_BASE); timer_reset(TIMER_BASE); //init uart uart_init(UART_BASE,FREQ/BAUD); uart_printf("\nHello world!\n"); uart_txwai...
2.359375
2
2024-11-18T18:23:16.575299+00:00
2018-01-25T23:31:39
7857fbee99877b340d90211b3f7e9bb46127cff0
{ "blob_id": "7857fbee99877b340d90211b3f7e9bb46127cff0", "branch_name": "refs/heads/master", "committer_date": "2018-01-25T23:31:39", "content_id": "501ef31feef4a4c59926a1548179d5546046c4cb", "detected_licenses": [ "Apache-2.0" ], "directory_id": "09e13234317c175ee7a403f4a0b379000aa14b17", "extensio...
stackv2
#include <iostream> #include <cerrno> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/wait.h> #include <arpa/inet.h> #include <unistd.h> #include <stdio.h> #define PORT 4444 #define MAX_NUM 10 using namespace std; int fd_sock; static int roulette; class Note{ protected: unsi...
2.671875
3
2024-11-18T18:23:16.823509+00:00
2014-11-28T03:35:36
02717a464c942a85900e7f5b39aa4825ae3ac8a1
{ "blob_id": "02717a464c942a85900e7f5b39aa4825ae3ac8a1", "branch_name": "refs/heads/master", "committer_date": "2014-11-28T03:35:36", "content_id": "014bb08f7ef0eb6efcb76c206ae06816f5f2fa65", "detected_licenses": [ "MIT" ], "directory_id": "ea74ccc73ca11cc485ebaeab631c949496fc92c4", "extension": "h"...
stackv2
#ifndef _SOCKET_IOCP_H_ #define _SOCKET_IOCP_H_ #define WIN32_LEAN_AND_MEAN #include <Windows.h> typedef HANDLE iocp_fd; static iocp_fd iocp_create() { return CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0); } static int iocp_invalid(iocp_fd fd) { return fd == NULL; } static void iocp_release(iocp_fd fd...
2.1875
2
2024-11-18T18:23:17.241833+00:00
2020-11-17T03:26:00
b6b43a2fe017b4c7c5b0476280b413a76cdd464d
{ "blob_id": "b6b43a2fe017b4c7c5b0476280b413a76cdd464d", "branch_name": "refs/heads/master", "committer_date": "2020-11-17T03:26:00", "content_id": "d7f423f9753071dfda588dfc1bd082c179e4fff3", "detected_licenses": [ "MIT" ], "directory_id": "8c7fdad65a0a6ae76727a8c4f66496436375baf4", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "controller.h" #include "psql.h" int main(int argc, char *argv[]){ int damper = 0; float temp0 = 0.0; float temp1 = 0.0; float set_temp = 0; int *spiHandle0 = malloc(4); int *spiHandle1 = malloc(4); if (argc != 2){ fprintf(stde...
2.421875
2
2024-11-18T18:23:17.537805+00:00
2021-01-11T15:58:01
aa8b6517021f0fcb7b7d4c36bee4339b4e1bcfe8
{ "blob_id": "aa8b6517021f0fcb7b7d4c36bee4339b4e1bcfe8", "branch_name": "refs/heads/master", "committer_date": "2021-01-11T15:58:01", "content_id": "16317d3e25f60b5346a9e1640b81123e83ef0238", "detected_licenses": [ "MIT" ], "directory_id": "0421d5bc16d39030926b9e9a73a7a3e8c30b0361", "extension": "c"...
stackv2
#include<stdio.h> int main() { int a; printf("Enter the marks of the student out of 100\n"); scanf("%d",&a); if(a>=85) { printf("Grade A"); } else if(a>=70) { printf("Grade B"); } else if(a>=55) { printf("Grade C"); } else if(a>=40) { printf("Grade D"); } else {...
3.015625
3
2024-11-18T18:23:17.589172+00:00
2021-05-16T18:19:28
fe600a6d630c115408bf44bca19a93a4bfa14b56
{ "blob_id": "fe600a6d630c115408bf44bca19a93a4bfa14b56", "branch_name": "refs/heads/master", "committer_date": "2021-05-16T18:19:28", "content_id": "81eabc7355c58401ea84f5c7bc36a0c6626b8cc4", "detected_licenses": [ "Zlib" ], "directory_id": "33a32e3dea38e3493e34effad75d9d557426d4ba", "extension": "c...
stackv2
#include <include/jsonlib/json.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <assert.h> // TODO: @Jon // Big TODO list for this file: // - Add convenience functions for checking if a JSON struct contains a value of given type // - Add proper tree searching (possible with...
2.625
3
2024-11-18T18:23:17.782066+00:00
2023-08-28T21:30:11
2022f7c08d4aaef6333e3f0d6d87f5bdb0dfd556
{ "blob_id": "2022f7c08d4aaef6333e3f0d6d87f5bdb0dfd556", "branch_name": "refs/heads/master", "committer_date": "2023-08-28T21:30:11", "content_id": "74a32d416a87472277756860368072712872bbd5", "detected_licenses": [ "MIT" ], "directory_id": "aed47b5a4ea3af5cbacfc034c1565bd800e9461a", "extension": "c"...
stackv2
/* ============================================================================ Name : Main.c Author : <Your Name Here> Version : 1.0 Copyright : MIT Description : Initial template ============================================================================ */ #include "CControl/Headers/Funct...
2.453125
2
2024-11-18T18:23:18.171595+00:00
2019-10-14T05:32:53
c985dd9e0f204dafe2cfdf80cb4831262b2e50d6
{ "blob_id": "c985dd9e0f204dafe2cfdf80cb4831262b2e50d6", "branch_name": "refs/heads/master", "committer_date": "2019-10-14T05:32:53", "content_id": "0d0a9ed4cba9386b3e17208aaafebbe02f14485e", "detected_licenses": [ "MIT" ], "directory_id": "0c4bd1b977cc714a8a6b2839f51c4247ecfd32b1", "extension": "c"...
stackv2
#include <stdlib.h> #include "ANN/models/PCFNN/neuron.h" #include "ANN/tools.h" #include "ANN/models/PCFNN/layer.h" struct PCFNN_LAYER *PCFNN_LAYER_new(double(*f_init)(), double(*f_act)(double), double(*f_act_de)(double)) { struct PCFNN_LAYER *l = malloc(sizeof(struct PCFNN_LAYER)); if (l == NULL) return NUL...
2.328125
2
2024-11-18T18:23:18.254326+00:00
2022-05-07T10:33:07
a85f3fe84d7fd9bb1b9d9a9fe923946a6a7f0d11
{ "blob_id": "a85f3fe84d7fd9bb1b9d9a9fe923946a6a7f0d11", "branch_name": "refs/heads/master", "committer_date": "2022-05-07T10:33:07", "content_id": "6ad6351027b2172ed7359d5850a0812bebf89649", "detected_licenses": [ "MIT" ], "directory_id": "c0ac5ccb734e6d27bc3b6b769e8714fc0ad33a41", "extension": "c"...
stackv2
/* * Logging_frame.c * * Created on: 24 juli 2021 * Author: Daniel Mårtensson */ #include "../Touch_screen.h" #include "../Hardware/ILI9341.h" #include "../../Functions.h" void STM32_PLC_LCD_Show_Logging_Frame(J1939 *j1939, uint8_t *frame_id) { /* Clear the screen , but not the icons */ ILI9341_fill_rect...
2.484375
2
2024-11-18T18:23:18.568854+00:00
2020-11-02T08:53:31
c82d1d1c66a4d8c222a8b8f64f4b97458b7bf662
{ "blob_id": "c82d1d1c66a4d8c222a8b8f64f4b97458b7bf662", "branch_name": "refs/heads/master", "committer_date": "2020-11-02T08:53:31", "content_id": "702e2f674f9f07bec9a3476c0c59b8121c0aabdc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fa7375ba7a73e0ad0b110b967c6062ddda467b07", "extensio...
stackv2
#include "libos.h" #include "evfunclib.h" #include "harbor.h" static int g_msgId = 0; static bool harbor_msgHandler(void* harbor, int msgType, harborMsg_t *msg) { printf("harbor_msgHandler===> MsgType = %d ", msgType); if(msgType==EMSGTYPE_ERROR){ printf("harbor Error ...errorCode=%d, msgId=%d\r\...
2.0625
2
2024-11-18T18:23:51.501960+00:00
2014-10-11T10:30:26
2ce287caecf2eea6beec258179de13556e6bc294
{ "blob_id": "2ce287caecf2eea6beec258179de13556e6bc294", "branch_name": "refs/heads/master", "committer_date": "2014-10-11T10:30:26", "content_id": "7f324200e1312d6cafde6fe31a01791626a5013e", "detected_licenses": [ "MIT" ], "directory_id": "31dbbdeee8bb9b996ab713d709fbb7273d3277ce", "extension": "h"...
stackv2
#pragma once #include "Imports.h" #include "NativeStructs.h" // Module type typedef enum _ModType { mt_mod32, // 64 bit module mt_mod64, // 32 bit module mt_default, // type is deduced from target process mt_unknown // Failed to detect type } ModType; typedef struct _MODULE_DATA ...
2.046875
2
2024-11-18T18:23:51.698830+00:00
2023-08-31T05:50:29
acb4bb4ba731d2b83f6b71703364d9ef4ea03946
{ "blob_id": "acb4bb4ba731d2b83f6b71703364d9ef4ea03946", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T05:50:29", "content_id": "928fa58199ba1e0fd29f8455262fbdf813541fd2", "detected_licenses": [ "MIT" ], "directory_id": "79d343002bb63a44f8ab0dbac0c9f4ec54078c3a", "extension": "h"...
stackv2
/* copied from kernel definition, but with padding replaced * by the corresponding correctly-sized userspace types. */ struct stat { dev_t st_dev; ino_t st_ino; nlink_t st_nlink; mode_t st_mode; uid_t st_uid; gid_t st_gid; unsigned int __pad0; dev_t st_rdev; off_t st_size; blksize_t st_blksize; blkcnt_...
2.140625
2
2024-11-18T18:23:51.953295+00:00
2019-01-23T19:32:38
87f5f962b086fa531f0c1f59b141ff15f510d4df
{ "blob_id": "87f5f962b086fa531f0c1f59b141ff15f510d4df", "branch_name": "refs/heads/master", "committer_date": "2019-01-23T19:32:38", "content_id": "85ddd6be6cc99ec92f451650cc838f16ecba45dd", "detected_licenses": [ "TCL" ], "directory_id": "bff941e571161a028114f42607ab59def9dce057", "extension": "c"...
stackv2
#include <config.h> #include <pbl/pbl.h> #include <stasis/lockManager.h> #include <stasis/util/latches.h> #include <stasis/util/hash.h> #include <sys/time.h> #include <time.h> #include <assert.h> #include <pthread.h> static pthread_mutex_t stasis_lock_manager_ht_mut = PTHREAD_MUTEX_INITIALIZER; static int pblHtInse...
2.4375
2
2024-11-18T18:23:52.225411+00:00
2017-09-19T20:34:52
eaf6d86a4d77b11f957d1ab5221e4b92af9a9b7f
{ "blob_id": "eaf6d86a4d77b11f957d1ab5221e4b92af9a9b7f", "branch_name": "refs/heads/master", "committer_date": "2017-09-19T20:58:49", "content_id": "52f6bad4fe7ab99b83d07acfb793bef59cca3b71", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "07419b56df0c85789afe5145adcd0fdfa1ddecd5", "extens...
stackv2
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkTSAN_DEFINED #define SkTSAN_DEFINED #include "SkTypes.h" #if !defined(__DYNAMIC_ANNOTATIONS_H__) #if !defined(__has_feature) #define __has_feature(x) ...
2.078125
2
2024-11-18T18:23:53.435385+00:00
2011-06-10T12:54:05
ddecd883c4becd017461edef2746552cb20889d3
{ "blob_id": "ddecd883c4becd017461edef2746552cb20889d3", "branch_name": "refs/heads/master", "committer_date": "2011-06-10T12:54:05", "content_id": "91a5c6c79ea521af08977e0e0b2b17e7feacfc3e", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "fa328fd89a419ff2c0947eb08686174622903d14", "extens...
stackv2
#include <stdlib.h> #include <stdio.h> #include "ami_bmp.h" #include "float_utils.h" #include "aan_correlacion.h" float* unir_cuatro_imagenes (float *a, float *b, float*c, float *d, int width, int height) { int i, j; float *output = (float*)malloc (sizeof (float) * (width * 2) * (height * 2)); float *tmp = ...
2.796875
3
2024-11-18T18:23:53.693588+00:00
2020-10-22T07:09:55
208eae29f695c9061c4072efeace6e5704fa1c40
{ "blob_id": "208eae29f695c9061c4072efeace6e5704fa1c40", "branch_name": "refs/heads/master", "committer_date": "2020-10-22T07:09:55", "content_id": "3cae4032b9a8c7dd5e2df720b27ddccecb5c29ef", "detected_licenses": [ "MIT" ], "directory_id": "be643cafc46704e30c33679a874bcbfd3c19ac8e", "extension": "c"...
stackv2
#include"headerfiles/headers.h" #include"headerfiles/env_var.h" void setenv_func(char arg[]){ if(strcmp(arg, "setenv")==0){ printf("Invalid number of arguments passed\n"); return; } char var[40], val[256]; char *token = strtok(arg, " "); token = strtok(NULL, " "); strcpy(var, token); token = strtok(NULL, "...
2.640625
3
2024-11-18T18:23:53.839269+00:00
2019-11-04T09:00:26
1ca339d13a8019d583aa6e8950cd67cfe890b2fd
{ "blob_id": "1ca339d13a8019d583aa6e8950cd67cfe890b2fd", "branch_name": "refs/heads/master", "committer_date": "2019-11-04T09:25:11", "content_id": "a856a0f8442c78a365fbc1795eae0357d1285f35", "detected_licenses": [ "MIT" ], "directory_id": "4b31b5e8dffcc48975d350d9fc1c5d303902d26e", "extension": "c"...
stackv2
#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #define GL_GLEXT_PROTOTYPES #if defined(__APPLE__) #include <OpenGL/gl.h> #include <OpenGL/glext.h> #else #include <GL/gl.h> #include <GL/glext.h> #endif #include "glutil.h" ...
2.4375
2
2024-11-18T18:23:54.091734+00:00
2020-01-17T08:53:50
bd79558f96eac2cd42876fe84a2b61e8cc0f07b0
{ "blob_id": "bd79558f96eac2cd42876fe84a2b61e8cc0f07b0", "branch_name": "refs/heads/master", "committer_date": "2020-01-17T08:53:50", "content_id": "a62fff8fc8da56e0aa79a154d4f80dbb851b0295", "detected_licenses": [ "MIT" ], "directory_id": "7c441af6a3f71dd766edfc34919182227cbd8815", "extension": "c"...
stackv2
// Room: /d/choyin/tomb3.c inherit ROOM; void create() { set("short", "树王坟内部"); set("long", @LONG 这里是树王坟树洞的内部,你在这里可以闻到一股浓郁的檀香,奇 怪的是,这棵大树并不是檀木,却不知这股香味从哪里来?往南的出口 通往树洞的另一端。 LONG ); set("exits", ([ /* sizeof() == 1 */ "south" : __DIR__"tomb1", ])); set("objects", ([ __DIR__"obj/chest": 1 ]) ); setup(); repl...
2.015625
2
2024-11-18T18:23:54.311779+00:00
2019-10-28T01:48:11
1e1eb76499855ab38b620dfe86d860b0932e15f6
{ "blob_id": "1e1eb76499855ab38b620dfe86d860b0932e15f6", "branch_name": "refs/heads/master", "committer_date": "2019-10-28T01:48:11", "content_id": "5c58c7a30d5da03291d3e2650ce80d4fe8399089", "detected_licenses": [ "MIT" ], "directory_id": "1d1db577d11bd353da5f3b973a9768aec0c1002e", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> /* #include "poly_fonctions.h" int main() { FILE* f=fopen("poly_fonctions.asm","w"); fprintf(f,poly_fonctions); fclose(f); } */ int main() { char ligne[1024]; printf("char* poly_fonctions=\n"); while( fgets(ligne,1024,stdin)) { printf("\""); char...
2.65625
3
2024-11-18T18:23:54.474114+00:00
2016-04-04T12:40:21
a8503217bb5b32ead44454fcf267fc04ff07e7aa
{ "blob_id": "a8503217bb5b32ead44454fcf267fc04ff07e7aa", "branch_name": "refs/heads/master", "committer_date": "2016-04-04T12:40:21", "content_id": "a56a156c2dba6d75e6ce20f3667c611158325bd7", "detected_licenses": [ "MIT" ], "directory_id": "c6369125c44dbdcf0aa74f7f378327279141afae", "extension": "c"...
stackv2
#include <stdio.h> #include "usbi2c/usbi2c.h" uint8_t usbi2c_gpio_read ( int usb_handle ) { unsigned char msg[2] = { 'I', 'P' } ; if ( usbi2c_raw_write( usb_handle, msg, 2 ) != 2 ) { fprintf(stderr,"[usbi2c_read_gpio] Error : could not write\n") ; return 0x00 ; } if ( usbi2c_raw_read( usb_handle, msg, 1 ) ...
2.375
2
2024-11-18T18:23:55.156014+00:00
2018-04-13T21:37:57
5a32b1a81ad617063b976192b162119a2629c5a6
{ "blob_id": "5a32b1a81ad617063b976192b162119a2629c5a6", "branch_name": "refs/heads/master", "committer_date": "2018-04-13T21:37:57", "content_id": "b6c40aebeff044163c12bc52abe949a7f75c319f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "be55cc27c60107adbc2ee3f4c6f297d16cb9c2a1", "extens...
stackv2
/******************************************************************************/ #ifndef SOCHACKI_DM #define SOCHACKI_DM /******************************************************************************/ #include <stdio.h> #include <math.h> #include <complex.h> #define DISPLAYV(x) printf("The variable value is %d \n"...
2.1875
2
2024-11-18T18:23:55.979028+00:00
2012-08-09T07:47:01
1272055ce38085d125b87f7efc070ebd4455d66d
{ "blob_id": "1272055ce38085d125b87f7efc070ebd4455d66d", "branch_name": "refs/heads/master", "committer_date": "2012-08-09T07:47:01", "content_id": "b7eeaed684ce8e15301ddc8283ae874254bb1878", "detected_licenses": [ "MIT" ], "directory_id": "6b6e19cb8b0ae8ec47cdadd2d7ba53c52e06d769", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include "adt/Graph.h" #include "adt/List.h" #include "adt/String.h" #define BUFFER_SIZE 81 int main() { Graph* travelGraph; FILE* f; char buffer[BUFFER_SIZE]; char* name; char* name2; List* path; printf("Please enter the file to read from: "); fgets(buffer, BUFFER_SIZE...
2.921875
3
2024-11-18T18:23:56.539487+00:00
2018-03-07T18:49:41
5dc7972f80242fe322978a699623bb7dc215cc77
{ "blob_id": "5dc7972f80242fe322978a699623bb7dc215cc77", "branch_name": "refs/heads/master", "committer_date": "2018-03-07T18:49:41", "content_id": "5105127ff1b47f8c156edc51e252fa2cfe657866", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7ce60e9b000775a8a61843c18edc8dc50d44616b", "extensio...
stackv2
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * 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 ...
2.375
2
2024-11-18T18:23:56.672541+00:00
2017-06-11T16:19:30
64b7778a3467ad801934edce3a4f1d6454a49ed6
{ "blob_id": "64b7778a3467ad801934edce3a4f1d6454a49ed6", "branch_name": "refs/heads/master", "committer_date": "2017-06-11T16:19:30", "content_id": "595e528d2195d0115cca8d5009b61098bca66c2a", "detected_licenses": [ "MIT" ], "directory_id": "fa11231f67efd3f57cbbae3bbea3db649d8ac3ae", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <assert.h> #include "lib/calc.h" void main() { printf("== calc.h ==\n"); int i; int a; printf("fn: inc_wrap()\n"); { // normal operation a = 1; inc_wrap(a, 0, 15); assert(a == 2); // overflow a = 14; inc_wrap(a, 0, 15); assert...
2.6875
3
2024-11-18T18:23:56.732539+00:00
2021-07-07T08:56:01
1659fc12f06d1910965c3e2c892cdc4bdb75ff85
{ "blob_id": "1659fc12f06d1910965c3e2c892cdc4bdb75ff85", "branch_name": "refs/heads/master", "committer_date": "2021-07-07T08:56:01", "content_id": "9662c7d1db32860a81d1b2dbeb7efefe8f2d5902", "detected_licenses": [ "Apache-2.0" ], "directory_id": "98062227c8498a3052c72ab6350743581f73ca7c", "extensio...
stackv2
// Copyright [2019] [FORTH-ICS] // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
2.484375
2
2024-11-18T18:23:56.906235+00:00
2020-04-23T15:54:03
b71e23c4905a1368c149f83e0f97b84c0ea8f5f5
{ "blob_id": "b71e23c4905a1368c149f83e0f97b84c0ea8f5f5", "branch_name": "refs/heads/master", "committer_date": "2020-04-23T15:54:03", "content_id": "b7fcce5b15025744cb297aff18d62caa5381cd24", "detected_licenses": [ "MIT" ], "directory_id": "ee790df9ab183aaaad318eb96a7bd6fa6ce07968", "extension": "c"...
stackv2
// // Created by Ray on 2020/4/7. // #include <stdio.h> #include <mpi.h> #include "../include/squirrelActor.h" #include "../include/squirrel-functions.h" #include "../include/framework.h" #include "../include/config.h" #include "../include/actorConfig.h" static long seed; int cellWorkers[LENGTH_OF_LAND]; int controll...
2.40625
2
2024-11-18T18:23:57.002925+00:00
2022-08-10T04:24:32
d69dcc5f3518b272f32afe0918f16d45d931b6c0
{ "blob_id": "d69dcc5f3518b272f32afe0918f16d45d931b6c0", "branch_name": "refs/heads/main", "committer_date": "2023-08-09T00:21:36", "content_id": "479ce463485dd79990b8e901a29f468dee2d85e8", "detected_licenses": [ "MIT" ], "directory_id": "3448fd9bb9c0e6b3b3d2899c028fdefc8870bf15", "extension": "c", ...
stackv2
#include "neon.h" #include <assert.h> #include <ctype.h> #include <inttypes.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #ifdef _WIN32 #else #include <dirent.h> #include <sys/stat.h> #include <sys/time.h> #include <unistd.h> #endif const MethodTable Ne_Boolean_mta...
2.625
3
2024-11-18T18:24:04.858718+00:00
2019-10-16T09:54:38
bb130e5b5b3e2a2a985aac6aefa522de3e479627
{ "blob_id": "bb130e5b5b3e2a2a985aac6aefa522de3e479627", "branch_name": "refs/heads/master", "committer_date": "2019-10-16T09:54:38", "content_id": "76f41de0bb168dadcc7a38bf5e543b215731b522", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "f2974f1d6323c9fc117f947c85dadc7a3d1b5b04", "extens...
stackv2
#ifndef CLOSURE_H_ #define CLOSURE_H_ #include <stddef.h> enum closure_tag { CLOSURE_NULL = 0x00, CLOSURE_PRIM, CLOSURE_CONSTR, CLOSURE_THUNK }; typedef unsigned char variant; typedef unsigned char gc_data; typedef unsigned short int arity; /* A heap-allocated closure, managed by the GC */ typedef struct closur...
2.71875
3
2024-11-18T18:24:04.933518+00:00
2020-06-22T14:47:03
5699cc0dcbeb79089d454e7eb8e3eecdd98f6554
{ "blob_id": "5699cc0dcbeb79089d454e7eb8e3eecdd98f6554", "branch_name": "refs/heads/master", "committer_date": "2020-06-22T14:47:03", "content_id": "9f0365d541ab0cb1cc6b12b1493737d3ba891a70", "detected_licenses": [ "curl", "MIT" ], "directory_id": "47e01d5c0854b886afe16c7b8139cac08ed096ae", "ext...
stackv2
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "order.h" order_t *order_create( char *type, char *exchange_name, list_t *data ) { order_t *order_local_var = malloc(sizeof(order_t)); if (!order_local_var) { return NULL; } order_local_var->type = type; o...
2.71875
3
2024-11-18T18:24:05.106843+00:00
2019-03-15T06:18:52
8bcbb05a191ea60cbae8105f019e7835cf2c38b2
{ "blob_id": "8bcbb05a191ea60cbae8105f019e7835cf2c38b2", "branch_name": "refs/heads/master", "committer_date": "2019-03-15T06:18:52", "content_id": "f4437324582b29b6f12ff9e92e428bcb484a4678", "detected_licenses": [ "MIT" ], "directory_id": "90a0676dc1b7a13234caea959a0ed1a788e9d29b", "extension": "c"...
stackv2
/* *Name: Nikhil Ranjan Nayak *Regd No: 1641012040 *Desc: print iter, 3 times */ #include <unistd.h> #include <stdio.h> #include <stdlib.h> int main() { int pid, pid2; pid = fork(); if(pid) { pid2 = fork(); printf("iter\n"); } else { printf("iter\n"); pid2 = fork(); } return 0; }
2.4375
2
2024-11-18T18:24:05.175072+00:00
2013-01-25T07:41:50
4569c32fc42dcb9b69e0f24bae7ab607861d7706
{ "blob_id": "4569c32fc42dcb9b69e0f24bae7ab607861d7706", "branch_name": "refs/heads/master", "committer_date": "2013-01-25T07:41:50", "content_id": "7c7987399f66bc640f4ad25907d7d9fde07c408e", "detected_licenses": [ "ISC" ], "directory_id": "24c3907cce46626a085adae19c81a7346ff5510e", "extension": "c"...
stackv2
/* Clock.c - Time/Date and Timer Functions. * * Basically it uses the RTC to load initial data, and then the PIT (or HP-clock) to update that. */ #include <portIO.h> #include <Clock.h> #include <vgaConsole.h> #include <memoryManager.h> #include <interrupts.h> time_t clock_systemClock; clock_timerRequest* clock_t...
2.984375
3
2024-11-18T18:24:06.136944+00:00
2019-01-15T20:57:37
850aa92c8703b26628a161c8b0c29eeb2b517e9b
{ "blob_id": "850aa92c8703b26628a161c8b0c29eeb2b517e9b", "branch_name": "refs/heads/master", "committer_date": "2019-01-15T20:57:37", "content_id": "e0853f2f0d0d29e623021e5f90b620b447eddc98", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ee1dd0f4b511492a23fe42654df490a02fcfc6c4", "extens...
stackv2
/*libresistance.c beräkna ersättningsresistansen*/ float calc_resistance(int count, char conn, float *array){ /*kolla nollpekare*/ if(!array){ return -1; } float sum=0; if (conn=='S'){ /*seriel*/ for(int i=0; i<count;i++){ ...
2.984375
3
2024-11-18T18:24:06.215597+00:00
2021-03-17T15:02:13
99a90cc25fad0f78ad6843823ccd21caa3ca19fb
{ "blob_id": "99a90cc25fad0f78ad6843823ccd21caa3ca19fb", "branch_name": "refs/heads/master", "committer_date": "2021-03-17T15:02:13", "content_id": "54a184a16a9700a8b3e66a8c241716d75032cc33", "detected_licenses": [ "MIT" ], "directory_id": "4554aaf38b71c3cec6636bf2060d647c86acb945", "extension": "c"...
stackv2
#include <stdio.h> void printonConsole(char* str1, char* str2) { printf("%s %s\n",str1,str2); }
2.21875
2
2024-11-18T18:24:06.846791+00:00
2021-08-20T06:00:20
78faf0093ac578137c13d582c5f60fcbb85804f5
{ "blob_id": "78faf0093ac578137c13d582c5f60fcbb85804f5", "branch_name": "refs/heads/main", "committer_date": "2021-08-20T06:00:20", "content_id": "8db5ee899d1bbad0f1072aa9ebfbbab6194b23ed", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "c51c388018c899f40e6cc7b3832dc29b9e91371f", ...
stackv2
#ifndef agnes_h #define agnes_h #ifdef __cplusplus extern "C" { #endif #include <stdbool.h> #include <stddef.h> #include <stdint.h> enum { AGNES_SCREEN_WIDTH = 256, AGNES_SCREEN_HEIGHT = 240 }; typedef struct { bool a; bool b; bool select; bool start; bool up; bool down; bool lef...
2.0625
2
2024-11-18T18:24:07.173611+00:00
2023-05-01T15:31:36
292278ac40c3c1a65fbd65ea60c69c7f6cae4ad6
{ "blob_id": "292278ac40c3c1a65fbd65ea60c69c7f6cae4ad6", "branch_name": "refs/heads/master", "committer_date": "2023-05-09T19:35:52", "content_id": "6693fa63c75fea5807ceef055a009dec27e8b1ba", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c18899835bd2df05ad1fe3a4478fe4f22277d6eb", "extens...
stackv2
#include <Accelerate/Accelerate.h> #define WRAP_F77(a) a##_ /* This intermediate C-file is necessary also for the Fortran wrapper: - The cblas_* functions cannot be called from Fortran directly as they do not take all of their arguments as pointers (as is done in Fortran). - It would in principle be p...
2.0625
2
2024-11-18T18:24:07.349095+00:00
2020-12-26T16:37:01
e28c1483d027c54e2f0278d7ff6d2fbc8ba170f6
{ "blob_id": "e28c1483d027c54e2f0278d7ff6d2fbc8ba170f6", "branch_name": "refs/heads/master", "committer_date": "2020-12-26T16:37:01", "content_id": "a578453b7f754bf17ccf4a39d18c04f2de320e85", "detected_licenses": [ "MIT" ], "directory_id": "3264e4aac8a52f95a68ffcf11496f70dc93c2dae", "extension": "h"...
stackv2
/* See LICENSE for license details */ #ifndef cv_array_tool_h_ #define cv_array_tool_h_ /* Module: cv_array_tool.h Description: Collection of tools related to arrays. */ #include <cv_algo/cv_array.h> #include <cv_misc/cv_bool.h> #define cv_array_text_initializer_(name) \ cv_array_initializer_(name, name + sizeof...
2.109375
2
2024-11-18T18:24:07.413673+00:00
2023-07-04T02:38:52
f1820d9e791c1e3fb7a63df0b31cac473a8743de
{ "blob_id": "f1820d9e791c1e3fb7a63df0b31cac473a8743de", "branch_name": "refs/heads/master", "committer_date": "2023-07-04T02:38:52", "content_id": "a01be1d60a54fd4d1d4824606bd34b6e2c914592", "detected_licenses": [ "MIT" ], "directory_id": "9923d63fc48c0fcc786c7d09789cbdebbd700f0a", "extension": "h"...
stackv2
/* * This file is part of the EasyFlash Library. * * Copyright (c) 2015, Armink, <armink.ztl@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...
2.140625
2
2024-11-18T18:24:07.498143+00:00
2022-11-06T22:46:23
6bbbc23b8b9f612b840166dfc7c35b3e332030db
{ "blob_id": "6bbbc23b8b9f612b840166dfc7c35b3e332030db", "branch_name": "refs/heads/master", "committer_date": "2022-11-06T22:46:23", "content_id": "01672ff502e4cae4b943a666e0c6c0ddc73a0360", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c4116c2e8c411a9ab01065144e0e105f99f95313", "extens...
stackv2
{ #include <TStyle.h> const int kBUFLEN = 150; // open trees TFile *f = new TFile("/data/proc_data.root"); TTree *t = (TTree *)f->Get("TL"); Int_t new_nentries, old_nentries, nentries; nentries = (Int_t)t->GetEntries(); char input[kBUFLEN]; cout<<"Which graphs do you want to see?"<<endl; cout<<" (s)imple comparis...
2.359375
2
2024-11-18T18:24:07.581610+00:00
2019-08-28T12:12:40
a98bba29913d478454ff6b709e8e4d49b44b000f
{ "blob_id": "a98bba29913d478454ff6b709e8e4d49b44b000f", "branch_name": "refs/heads/master", "committer_date": "2019-08-28T12:12:40", "content_id": "792e18d255f2a3f09ab165be8383c4c0a6c8c936", "detected_licenses": [ "MIT" ], "directory_id": "276806db8ea591a8da004a073dc9e2bbe870f8f4", "extension": "c"...
stackv2
/* The MIT License (MIT) Copyright (c) 2016 Pomfort GmbH https://github.com/pomfort/mhl-tool 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 limitat...
2.296875
2
2024-11-18T18:24:07.654829+00:00
2012-07-05T06:20:54
91c767df88d437bdf62d27f59d4185c25f04cf2c
{ "blob_id": "91c767df88d437bdf62d27f59d4185c25f04cf2c", "branch_name": "HEAD", "committer_date": "2012-07-05T06:20:54", "content_id": "f645242f995dbc6bf6eb39122dad2dbdf123cc33", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "b4b36c26891cb94f6ca1c9d05c013443f91a4739", "extension": "h", ...
stackv2
#ifndef FS_H #define FS_H #define NAME_LEN 8 #define PATH_LEN 32 #define MAX_ARGS 32 #include <stdlib.h> #include <stdbool.h> #include <dir.h> typedef struct Block Block; typedef const char Link; typedef struct Directory Directory; typedef struct Entry Entry; typedef struct File File; typedef struct Node Node; typed...
2.453125
2
2024-11-18T18:24:08.486553+00:00
2020-01-15T04:24:36
fa7de3c83ec4cd1296bb41e9892bba0bb912a197
{ "blob_id": "fa7de3c83ec4cd1296bb41e9892bba0bb912a197", "branch_name": "refs/heads/master", "committer_date": "2020-01-15T04:24:36", "content_id": "6a1e432a01898e6d68421be9ad329f28bed59be1", "detected_licenses": [ "MIT" ], "directory_id": "3d6c5aebfd9dcbd4c2f0c9e7031ab7eb88e9be46", "extension": "c"...
stackv2
/** * @file adapter_example.c * * @brief Adapter example code for VL53L1 ToF sensors. * * @author Lucas Schneider <lucas.schneider@thunderatz.org> * @author Bernardo Coutinho <bernardo.coutinho@thunderatz.org> * * @date 01/2020 */ #include <stdbool.h> #include <stdint.h> #include "adapter_example.h" #includ...
2.171875
2
2024-11-18T18:24:08.869265+00:00
2019-10-11T11:19:42
0f6d347a506d29fecde20c901374a65ffd0887af
{ "blob_id": "0f6d347a506d29fecde20c901374a65ffd0887af", "branch_name": "refs/heads/master", "committer_date": "2019-10-11T11:19:42", "content_id": "74c933a7b7e9a178212c68dcd3fe6c9c52f30aa8", "detected_licenses": [ "BSD-2-Clause", "CC0-1.0" ], "directory_id": "d33a52804719c2c6dd276dc5aee0aa6db23ff...
stackv2
/* * This file is part of the oggbox project. * * Copyright (C) 2012 Nathan Dumont <nathan@nathandumont.com> * * This library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of t...
2.0625
2
2024-11-18T18:24:08.988598+00:00
2021-04-04T21:05:55
c823491f0e9603f0b5c385869945b529013c82d9
{ "blob_id": "c823491f0e9603f0b5c385869945b529013c82d9", "branch_name": "refs/heads/master", "committer_date": "2021-04-04T21:05:55", "content_id": "20a847e1e5925fb472615a7c626890cf6e0799cd", "detected_licenses": [ "MIT" ], "directory_id": "cb57a4a4d960ae6bacee27cb701620597dcf979e", "extension": "h"...
stackv2
#ifndef _KS_TREEMAPNODE_H_ #define _KS_TREEMAPNODE_H_ /* ------------------------------------ * ks_treemapnode_new(): * Creates a new ks_treemapnode. * * Inputs: * ks_datacont* key - the key * ks_datacont* value - the value * * Returns: * ks_treemapnode* tmn - (NULL) if either of the parameters is NULL. * ...
2.53125
3
2024-11-18T18:24:09.051145+00:00
2016-02-18T10:48:55
299ceff9665f97df3a7f2e257dc43d539ca76f39
{ "blob_id": "299ceff9665f97df3a7f2e257dc43d539ca76f39", "branch_name": "refs/heads/master", "committer_date": "2016-02-18T10:48:55", "content_id": "d122b7f21f29b2aaf08d1854ed0fdcb0f0078482", "detected_licenses": [ "Apache-2.0" ], "directory_id": "74ca0502be3ea74703928bfa458e87a4335866f9", "extensio...
stackv2
#ifndef lint static char *rcsid = "$Header: /xtel/isode/isode/others/quipu/uips/sd/RCS/symtab.c,v 9.0 1992/06/16 12:45:08 isode Rel $"; #endif /* * $Header: /xtel/isode/isode/others/quipu/uips/sd/RCS/symtab.c,v 9.0 1992/06/16 12:45:08 isode Rel $ * * $Log: symtab.c,v $ * Revision 9.0 1992/06/16 12:45:08 isode ...
2.28125
2
2024-11-18T18:24:09.495628+00:00
2019-03-01T05:16:46
48fc1c453ed05a6d776de8079bfc9bf111860932
{ "blob_id": "48fc1c453ed05a6d776de8079bfc9bf111860932", "branch_name": "refs/heads/master", "committer_date": "2019-03-01T05:16:46", "content_id": "cc06d2136603e14d3116a84a06789636e37bac31", "detected_licenses": [ "MIT" ], "directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f", "extension": "c"...
stackv2
// This program is a part of NITAN MudLIB // wuji.c 橫行無忌 #include <ansi.h> #include <combat.h> inherit F_SSERVER; string name() { return "橫行無忌"; } int perform(object me, object target) { object weapon; string msg; int ap, dp; int damage; if (! target) { ...
2.125
2
2024-11-18T18:24:09.584062+00:00
2020-07-17T08:12:10
694e7e56834075b754d4ff150ca42bdd9b86fcb4
{ "blob_id": "694e7e56834075b754d4ff150ca42bdd9b86fcb4", "branch_name": "refs/heads/master", "committer_date": "2020-07-17T08:12:10", "content_id": "5e0f94bb317ceb5aed312586c9f0a06e20bf46cb", "detected_licenses": [ "Unlicense" ], "directory_id": "db4c734b6f00ac1dd39d5bb6cf6db0910add4e3f", "extension...
stackv2
//gcc main.c -lm -o main -Wall -Wextra -g -O3 //./main //to make plots call plot.sh this calls gnuplot and ffmpeg //Ben Karcher, Anika Hoverath #include <errno.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> // um zu schauen, ob der Ordner existiert extern int e...
2.671875
3
2024-11-18T18:24:09.645182+00:00
2019-03-31T22:58:04
b653619300bda0608ec9b58e99ea14f848990045
{ "blob_id": "b653619300bda0608ec9b58e99ea14f848990045", "branch_name": "refs/heads/master", "committer_date": "2019-03-31T22:58:04", "content_id": "fd806838e91ea45537babbf44218c9794e82f66c", "detected_licenses": [ "MIT" ], "directory_id": "0a66ccdab25d7a08d66a5b925e1803bf1f71e6e7", "extension": "c"...
stackv2
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <errno.h> #include <string.h> union msgblock { uint8_t e[64]; uint32_t t[16]; uint64_t s[8]; }; enum status {READ, PAD0, PAD1, FINISH}; int main(int argc, char *argv[]) { union msgblock M; uint64_t nobits = 0; uint64_t nobytes; enum status ...
3.046875
3
2024-11-18T18:24:09.946685+00:00
2017-05-10T09:50:21
388475176ce9170e902353d01bc2db432038bdcd
{ "blob_id": "388475176ce9170e902353d01bc2db432038bdcd", "branch_name": "refs/heads/arm", "committer_date": "2017-05-10T14:22:48", "content_id": "49875b9b4d6aaf19567a2eb4af029b5c53d60377", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6af50a4b5b928211880dd9f1c6ce92c2afea828b", "extension":...
stackv2
/* * Copyright (c) 2017 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #include <toolchain.h> #include <sections.h> #include <sw_isr_table.h> #include <arch/cpu.h> #if defined(CONFIG_GEN_SW_ISR_TABLE) && defined(CONFIG_GEN_IRQ_VECTOR_TABLE) #define ISR_WRAPPER (&_isr_wrapper) #else #define ISR_WRAP...
2.078125
2
2024-11-18T18:24:10.219490+00:00
2020-06-21T16:05:45
989a24882c11447cb7872d05da984b7e4bfc52d0
{ "blob_id": "989a24882c11447cb7872d05da984b7e4bfc52d0", "branch_name": "refs/heads/master", "committer_date": "2020-06-21T16:05:45", "content_id": "a6e56774e354c924642e3ea9d94f0583b9cb5641", "detected_licenses": [ "MIT" ], "directory_id": "469cd4318c9a59ddeca9e47948959bcfafc1f7d4", "extension": "h"...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #define NODE_MAX 2000 enum TreeNodeType {Add, Sub, Mul, Fdiv, Idiv, Mod, Eq, Com, Par, Tref, Sref, Index, Intv, Floatv}; union TreeNodeVal { int Int; float Float; char *String; }; struct TreeNode { TreeNodeVal val; TreeNodeType type; TreeNode *left, *...
3.046875
3
2024-11-18T18:24:10.594184+00:00
2022-03-19T10:01:09
6126a9963df388ed07111bb80cd3111c43ef4215
{ "blob_id": "6126a9963df388ed07111bb80cd3111c43ef4215", "branch_name": "refs/heads/master", "committer_date": "2022-03-19T10:01:09", "content_id": "13f7f7827c056479b5f799c2475a9b340668fa48", "detected_licenses": [ "MIT" ], "directory_id": "7573bc088286370865a424fb77a0b726010752ec", "extension": "c"...
stackv2
/* ECHOCLIENT.C ========== (c) Yansong Li, 2020 Email: liyansong.cs@gmail.com Simple TCP/IP echo client. */ #include <sys/socket.h> /* socket definitions */ #include <sys/types.h> /* socket types */ #include <arpa/inet.h> /* inet (3) funtions */ #inclu...
3.078125
3
2024-11-18T18:24:10.684592+00:00
2018-11-04T16:36:23
f594505ae7d7937e2cd49118dad171ba920d637d
{ "blob_id": "f594505ae7d7937e2cd49118dad171ba920d637d", "branch_name": "refs/heads/master", "committer_date": "2018-11-04T16:36:23", "content_id": "a50df0be3cd2f4f1d8d568f7e679dff0b68ae0c9", "detected_licenses": [ "MIT" ], "directory_id": "9ea64a07241d1cb6e743ca641b890572452edc43", "extension": "c"...
stackv2
#include<stdio.h> #include<stdlib.h> #include<string.h> void BestFITmem(int m,int block[],int n,int process[]){ int allocation[n]; //declaring a array for allocation status int arblock[m];//blocka is for the memory for(int x=0;x<m;x++){ arblock[x]=block[x]; } int arprocess[n]; for(int u=0;u<n;u++){ ...
3.0625
3
2024-11-18T18:24:12.018166+00:00
2015-07-03T13:34:15
5216d826c5db217903d0c082b0e85d8538c1af16
{ "blob_id": "5216d826c5db217903d0c082b0e85d8538c1af16", "branch_name": "refs/heads/master", "committer_date": "2015-07-03T13:34:15", "content_id": "f93c9a60e61964d1da7783bb063d1746b38372ad", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3305da8141f013c39e44b36601c7df12f4aa16bc", "extensio...
stackv2
/* * Copyright 2013-2015 Guardtime, Inc. * * This file is part of the Guardtime client SDK. * * 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/LICENS...
2.03125
2
2024-11-18T18:24:12.550723+00:00
2023-03-27T18:49:02
4b47ed77bba5e5d386a240884b7ab3481db5d4f3
{ "blob_id": "4b47ed77bba5e5d386a240884b7ab3481db5d4f3", "branch_name": "refs/heads/master", "committer_date": "2023-03-27T18:49:02", "content_id": "18cd1622b7aa067ca774448e3808caa8f4112eaf", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ed21cc9eab214a4582bf68267a7f94547ae0fcd3", "extensio...
stackv2
#include <stdio.h> #include "file1.h" int main(int argc, char **argv) { printf("Size of SOMETHING is: %lu\n", sizeof(SOMETHING)); return 0; }
2.09375
2
2024-11-18T18:24:12.652546+00:00
2016-09-07T15:40:23
6ebe0b7a363bcdc9d09b952d9754213fcaa09275
{ "blob_id": "6ebe0b7a363bcdc9d09b952d9754213fcaa09275", "branch_name": "refs/heads/master", "committer_date": "2016-09-07T15:40:23", "content_id": "f4d2d895dc9e08d84780aa4177b19cf43360d4a5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b76aa6cffa0a5ba2137ca8e12f3ba7a4cf3b5125", "extensio...
stackv2
/** \file OMPCACell.h*/ #ifndef OMP_CACELL_H_ #define OMP_CACELL_H_ #include "OMPHitsAndDoublets.h" #include "OMPSimpleVector.h" #include "OMPResultVector.h" #include "OMPMixedList.h" #include <math.h> const int numberOfLayers = 4; //! The Cellular Automaton cell /** Keeps all the relevant info for compatibility ...
2.53125
3
2024-11-18T18:24:14.335937+00:00
2021-10-25T02:02:29
49f561257db3a81ba29aeb7321e49c958a47a988
{ "blob_id": "49f561257db3a81ba29aeb7321e49c958a47a988", "branch_name": "refs/heads/master", "committer_date": "2021-10-25T02:02:29", "content_id": "454a33a569da4209cedec3c3a8696698cab16f78", "detected_licenses": [ "MIT" ], "directory_id": "abda7fa9bab285f213ad89e66e19b89602691a9e", "extension": "c"...
stackv2
#include <onnx.h> struct operator_pdata_t { struct onnx_graph_t * else_branch; struct onnx_graph_t * then_branch; }; static int If_init(struct onnx_node_t * n) { struct operator_pdata_t * pdat; if((n->ninput == 1) && (n->noutput >= 1)) { pdat = malloc(sizeof(struct operator_pdata_t)); if(pdat) { pdat->...
2.375
2
2024-11-18T18:24:15.405399+00:00
2015-07-27T11:01:02
19dcfc860ed0a53f410d7fc69d433102b25848ef
{ "blob_id": "19dcfc860ed0a53f410d7fc69d433102b25848ef", "branch_name": "refs/heads/master", "committer_date": "2015-07-27T11:01:02", "content_id": "59723e22779bdb53b32081551a07b2e38d91a971", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8b9da90133c658ed0a92f3e0b43c63ee84728f44", "extensio...
stackv2
/** * Two processes, one sending interrupts, one receiving them. */ #include "microcsp.h" #include <stdio.h> #define ONE_SEC 1000000000ULL Channel chan[2]; PROCESS(Proc1) Guard guards[2]; int intr0; int intr1; ENDPROC void Proc1_rtc(void *local) { enum { INTR0=0, INTR1 }; Proc1 *proc1 = (P...
2.8125
3
2024-11-18T18:24:15.738565+00:00
2018-07-12T06:52:23
e1666abcb71da89d52bd9f9aa53523ed6fbd5d54
{ "blob_id": "e1666abcb71da89d52bd9f9aa53523ed6fbd5d54", "branch_name": "refs/heads/master", "committer_date": "2018-07-12T06:52:23", "content_id": "983d482be5a4bfee602f2619b67f0c2c5e8fef91", "detected_licenses": [ "MIT" ], "directory_id": "1988106dc94e0915bc8b80c194931891b0f4bf21", "extension": "c"...
stackv2
/* ** datagram client. */ #undef UNICODE #define WIN32_LEAN_AND_MEAN #define _WINSOCK_DEPRECATED_NO_WARNINGS #include <windows.h> #include <winsock2.h> #include <ws2tcpip.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <signal.h> // Need to link with Ws...
2.65625
3
2024-11-18T18:24:15.874778+00:00
2021-07-27T11:20:26
ff1341c0cc4b5d0c0646a6bc220ec6dc810badec
{ "blob_id": "ff1341c0cc4b5d0c0646a6bc220ec6dc810badec", "branch_name": "refs/heads/master", "committer_date": "2021-07-27T11:20:26", "content_id": "85a2875b6df205ea4a3ac031af32fdb55da2f4a1", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "b6724a4bec9e678a3689ad7bcc9da263e1ec2f31", "extens...
stackv2
/* * exercise: * shmem_*_cswap() * shmem_*_fadd() * shmem_*_finc() */ #include <shmem.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #define Vprintf if (Verbose) printf static int *src_int; static long *src_long; static long long *src_llong; static int dst_int, itmp; static long dst...
2.828125
3
2024-11-18T18:24:16.283963+00:00
2021-03-08T16:06:16
442835d95c5d7ccdeeb14cac5dcffb09a2616218
{ "blob_id": "442835d95c5d7ccdeeb14cac5dcffb09a2616218", "branch_name": "refs/heads/master", "committer_date": "2021-03-08T16:06:16", "content_id": "c01c6e7463c21f14e832cb90f4adb25657be3871", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8378d108402f81850a6fa6dca0f4ba1c8f0aeead", "extens...
stackv2
#include <stdint.h> #include <pic32mx.h> #include "game.h" // Time-keeping uint32_t ticks = -1; // Ticks since power on int cooldown = 0; // Used for state transitions uint32_t tick_start = 1; // used for random seed uint32_t level_started; // time where current level started // Special modes and debugg...
2.421875
2
2024-11-18T18:24:17.258855+00:00
2015-08-20T22:21:19
aea39ef0c4b0f66c4f7cb3b5d77ff81d5cf73596
{ "blob_id": "aea39ef0c4b0f66c4f7cb3b5d77ff81d5cf73596", "branch_name": "refs/heads/master", "committer_date": "2015-08-20T22:21:19", "content_id": "dbb467d39952a23c3079e078cfe38888616449b0", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "76819d7ec89b0d59cc54c0e554ed176f6668ffa2", "extens...
stackv2
/* * sophia database * sphia.org * * Copyright (c) Dmitry Simonenko * BSD License */ #include <sophia.h> #include <libss.h> #include <libsf.h> #include <libsr.h> #include <libsv.h> #include <libso.h> #include <libst.h> void st_scene_rmrf(stscene *s ssunused) { rmrf(st_r.conf->sophia_dir); rmrf(st_r.conf->back...
2.078125
2
2024-11-18T18:24:17.324270+00:00
2016-11-01T13:16:44
657b7516e00060f4a99816fbe73fc18eb684ac31
{ "blob_id": "657b7516e00060f4a99816fbe73fc18eb684ac31", "branch_name": "refs/heads/master", "committer_date": "2016-11-01T13:16:44", "content_id": "a1f0e604d401e2c957bf935ce302180fef08147c", "detected_licenses": [ "NCSA" ], "directory_id": "b5a214062f140389527479802d98d414d8e41dc6", "extension": "c...
stackv2
// RUN: %clang_cc1 -emit-llvm -o %t %s // RUN: grep -e "global_ctors.*@A" %t // RUN: grep -e "global_dtors.*@B" %t // RUN: grep -e "global_ctors.*@C" %t // RUN: grep -e "global_dtors.*@D" %t int printf(const char *, ...); void A() __attribute__((constructor)); void B() __attribute__((destructor)); void A() { print...
2.25
2
2024-11-18T18:56:25.119186+00:00
2015-04-28T05:49:07
29859e4aaaa01efb1147592dfcf3e6009c1d1b32
{ "blob_id": "29859e4aaaa01efb1147592dfcf3e6009c1d1b32", "branch_name": "refs/heads/master", "committer_date": "2015-04-28T05:49:07", "content_id": "e12c694e49cf673f78e7bdf59c1fa4ca5951ce9b", "detected_licenses": [ "MIT" ], "directory_id": "2e45e8daa35300424b4007be2251dfeddb0d2afa", "extension": "c"...
stackv2
/* * linux/fs/exec.c * * (C) 1991 Linus Torvalds */ /* * #!-checking implemented by tytso. */ /* * Demand-loading implemented 01.12.91 - no need to read anything but * the header into memory. The inode of the executable is put into * "current->executable", and page faults do the actual loading. Clean. * ...
2.359375
2
2024-11-18T18:56:30.628145+00:00
2021-02-11T16:29:38
f35e15ec0cc33fc60189417fb71ddadf011f5ed7
{ "blob_id": "f35e15ec0cc33fc60189417fb71ddadf011f5ed7", "branch_name": "refs/heads/main", "committer_date": "2021-02-11T16:29:38", "content_id": "8f1f7f4ab116253f5187c70302185c43f19323d7", "detected_licenses": [ "MIT" ], "directory_id": "754012bf855a43cbc46889479dd61e311faf86a8", "extension": "c", ...
stackv2
typedef struct TreeNode *PtrNode; typedef struct PtrNode Tree; typedef int ElementType; struct TreeNode { ElementType element; Tree left; Tree right; }; //2叉数搜索算法 static PtrNode find(Tree tree, int x) { if (!tree) return NULL; if (x < tree->element) find(tree->left, x); else...
2.75
3
2024-11-18T18:56:30.707042+00:00
2016-05-24T20:16:19
35b72b9d75a726c921aabadd2fc556177c7f4a9d
{ "blob_id": "35b72b9d75a726c921aabadd2fc556177c7f4a9d", "branch_name": "refs/heads/master", "committer_date": "2016-05-24T20:16:19", "content_id": "672445e29f45b6461732902f72611fc421a9ce65", "detected_licenses": [ "MIT" ], "directory_id": "3deec92ca33109f6556488c0d32c1b6178066b7e", "extension": "c"...
stackv2
#include <mex.h> #include "avbin.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { size_t filenameLen; char *filename; AVbinFile *file; mxArray *fileAddr; if (nrhs != 1) { mexErrMsgIdAndTxt("avbin:usage", "Usage: file = avbin_open_filename(filename)"...
2.078125
2
2024-11-18T18:56:31.227799+00:00
2021-10-24T23:47:49
428fc77724309610efd29c4acfa2f5db5c1c88cb
{ "blob_id": "428fc77724309610efd29c4acfa2f5db5c1c88cb", "branch_name": "refs/heads/master", "committer_date": "2021-10-24T23:47:49", "content_id": "c9e50c056adb0cb5168ea96a7b98aed16604af86", "detected_licenses": [ "MIT" ], "directory_id": "d9143039fbfc35f37c70e956c31fa51a900ef46a", "extension": "c"...
stackv2
#ifdef HAVE_CONFIG_H # include "config.h" #endif #include <errno.h> #include <stdlib.h> #include <string.h> #include <xf86drm.h> #include "private.h" int drm_tegra_job_new_v2(struct drm_tegra_job_v2 **jobp, struct drm_tegra *drm, unsigned int num_bos_expected, unsigned int num_words_expected) { struc...
2.484375
2
2024-11-18T18:56:34.685829+00:00
2020-04-24T23:20:40
556477462478a1685521a984fbbcdc1b53e722b6
{ "blob_id": "556477462478a1685521a984fbbcdc1b53e722b6", "branch_name": "refs/heads/master", "committer_date": "2020-04-24T23:20:40", "content_id": "e82fb0ac0e304306803d8f0231254a31c2cb82bb", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "48c2d779adc3ec016b996d1bb03c5f9b2605bb3f", "extens...
stackv2
/** Copyright (C) 2018 Odzhan. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
2.203125
2
2024-11-18T18:56:34.760291+00:00
2017-01-11T12:08:13
7648dbf60560d028060aa3ec40dce625d5ddda76
{ "blob_id": "7648dbf60560d028060aa3ec40dce625d5ddda76", "branch_name": "refs/heads/master", "committer_date": "2017-01-11T12:08:13", "content_id": "a7cb25900a0b61a8957857e44c8a57975d060706", "detected_licenses": [ "MIT" ], "directory_id": "91a558a151f75599d25bde706e84a316e116254d", "extension": "c"...
stackv2
#include "serwer.h" #include "ws_error.h" #include <assert.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <errno.h> method_t ws_method(const char* string) { if (strcmp(string, "OPTIONS") == 0) return OPTIONS; else if (strcmp(string, "GET") == 0) return GET; else if (strcmp(string, "...
2.015625
2
2024-11-18T18:56:35.005416+00:00
2020-02-11T23:20:52
6c0e2d67f235299983089c1b0f967bcaa2870d13
{ "blob_id": "6c0e2d67f235299983089c1b0f967bcaa2870d13", "branch_name": "refs/heads/master", "committer_date": "2020-02-11T23:20:52", "content_id": "bce6b502b902b2aa7e7971a4234dd3e906e38791", "detected_licenses": [ "MIT" ], "directory_id": "59a5ca26151808d863979d806379fba99cde9c3b", "extension": "c"...
stackv2
/***************************************************************************** ** (C) Chris Wood 1995. ** ** DEBUG.C - Debugging utilities. ** ****************************************************************************** */ #include <windows.h> #include "apptypes.h" /* Check build type. */ #ifdef DEBUG /**** Define...
2.46875
2
2024-11-18T18:56:35.132666+00:00
2022-11-25T14:31:40
a0c90b36448e8aa8a008301057277ecd2402c487
{ "blob_id": "a0c90b36448e8aa8a008301057277ecd2402c487", "branch_name": "refs/heads/main", "committer_date": "2022-11-25T14:31:40", "content_id": "8dda9fa9e8525f8c08cb97613c88233a2a7d5cc6", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c6bbd226758134f7057e381234b14ab0e5f19410", "extensio...
stackv2
#include <limits.h> #include "errcodes.h" #include "imath.h" #include "memory.h" #include "poly.h" #include "rectang.h" void reverse_poly(Poly *p) { LLpoint *olist, *newlist, *next; int pcount; pcount = p->pt_count; olist = p->clipped_list; /* 1st point will stay the same... */ newlist = NULL; while (--pcount >= 0)...
2.5625
3
2024-11-18T18:56:35.336620+00:00
2017-06-21T02:58:20
c92046b46448718d1e24f78366ec2545cb4a9dfe
{ "blob_id": "c92046b46448718d1e24f78366ec2545cb4a9dfe", "branch_name": "refs/heads/master", "committer_date": "2017-06-21T02:58:20", "content_id": "f8dcc3e1cb1c39b180ec78e69f7c50cec88fa4bd", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a14e7948e4138e46693ddb77c8f27ea5abb821fb", "extens...
stackv2
/*------------------------------------------ Source file content Five part Part Zero: Include Part One: Local data Part Two: Local function Part Three: Define Part Four: Signal handle --------------------------------------------*/ /*------------------------------------------ Part Zero: Include --------------...
2.28125
2
2024-11-18T18:56:35.534891+00:00
2020-07-24T20:58:46
b599775e4b120ae07e7d16483ab5727ff36edbe7
{ "blob_id": "b599775e4b120ae07e7d16483ab5727ff36edbe7", "branch_name": "refs/heads/master", "committer_date": "2020-07-24T20:58:46", "content_id": "36e9b2cda1deb48b13f68e85c4a485d5bee2004a", "detected_licenses": [ "BSD-3-Clause", "OpenSSL", "BSD-2-Clause" ], "directory_id": "428c9a5dbc28098c2...
stackv2
#include <stdio.h> #include <string.h> #include <assert.h> #include <mtev_dyn_buffer.h> int chkmem(mtev_dyn_buffer_t *buff, size_t len, char exp) { const char *cp; const char *ptr = mtev_dyn_buffer_data(buff); for(cp = ptr; cp < ptr+len; cp++) if(*cp != exp) return 0; return 1; } int main(int argc, char *argv[...
2.90625
3
2024-11-18T18:56:35.802133+00:00
2021-06-05T11:16:40
cf03311db2d48e48c7fe8aa97ccd0156631cf533
{ "blob_id": "cf03311db2d48e48c7fe8aa97ccd0156631cf533", "branch_name": "refs/heads/main", "committer_date": "2021-06-05T11:16:40", "content_id": "0d788f2ee99ea7650e691b972c1e8799d7a97271", "detected_licenses": [ "MIT" ], "directory_id": "d7e06cd1c05160f91da9261fd9e15330f08f3d88", "extension": "c", ...
stackv2
// PortScan // $ man 7 ip ===> Manual de implementação do Protocolo IP // $ man socket ===> Manual do Socket #include <stdio.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netdb.h> #include <unistd.h> int main(int argc, char *argv[]){ int meuSocket; int conecta; int porta; int ini...
3.109375
3
2024-11-18T18:56:35.999243+00:00
2020-05-03T22:30:35
690e357ab00e4f226e1258f1c49787e51476accb
{ "blob_id": "690e357ab00e4f226e1258f1c49787e51476accb", "branch_name": "refs/heads/master", "committer_date": "2020-05-03T22:30:35", "content_id": "52b7cea14e02c6f4fbb330c9221f9ac8e1d1d639", "detected_licenses": [ "MIT" ], "directory_id": "f8796ff5df371af6d2be9da667367e02b34195c5", "extension": "h"...
stackv2
#ifndef __ARENA_H #define __ARENA_H // A simple arena data structure for performing LIFO memory allocations quickly. // ArenaInit() calls ALIGNED_MALLOC(), so provided that all allocations are multiples // of BYTESPERBLOCK, all returned memory blocks are aligned. #include <stdlib.h> // For size_t #include <assert.h>...
2.75
3
2024-11-18T18:56:36.144655+00:00
2015-11-16T09:39:42
2f74b215fdaf274d8e898745296ff520e7c9e175
{ "blob_id": "2f74b215fdaf274d8e898745296ff520e7c9e175", "branch_name": "refs/heads/master", "committer_date": "2015-11-16T09:39:42", "content_id": "cacf0048bc8260c6516d12f31838b753403d116d", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "e3b5a899c0c6683cd5440100ed2f1aa80ca94bf9", "extens...
stackv2
#define _POSIX_C_SOURCE 200809L #define _BSD_SOURCE 1 #define _GNU_SOURCE 1 #include <errno.h> #include <inttypes.h> #include <limits.h> #ifdef __APPLE__ #include <malloc/malloc.h> #else #include <malloc.h> #endif #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #inc...
2.015625
2