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-18T22:11:41.558715+00:00
2021-11-14T09:45:57
7463ff2991ccca5fa0e0b965c3172a01aa44fb56
{ "blob_id": "7463ff2991ccca5fa0e0b965c3172a01aa44fb56", "branch_name": "refs/heads/main", "committer_date": "2021-11-14T09:45:57", "content_id": "561c2c340177516c8682c943e9eaa10a55e13dc2", "detected_licenses": [ "MIT" ], "directory_id": "a663253f86a6f010513c0206fbe62ffd37ce7e95", "extension": "c", ...
stackv2
/** * @file singly_linked_list.c * @brief Implementation of Singly Linked List * @author m2enu * @par License * https://github.com/m2enu/clang_linked_list/blob/main/LICENSE */ #include "singly_linked_list.h" #include <stdint.h> #include <stddef.h> #include <stdlib.h> #define ALLOC(x) malloc(...
3.28125
3
2024-11-18T22:11:41.907264+00:00
2019-08-21T14:29:25
972479954a26dd61a644e905e6a6c990b18aeca5
{ "blob_id": "972479954a26dd61a644e905e6a6c990b18aeca5", "branch_name": "refs/heads/master", "committer_date": "2019-08-21T14:29:25", "content_id": "0f8f87744766b71b1952467f17063da68dafe85e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "321b073cd02acfb80dd3c4b46760567f3182773b", "extensio...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX_NODE 4000000 struct GraphEdge { int to, direction; }; struct GraphEdgeSet { struct GraphEdge *edges; int total; }; struct Path { int *directions, length; }; void build_path( struct Path *path, int S, int T, struct GraphEdgeS...
2.75
3
2024-11-18T22:11:41.977864+00:00
2021-09-01T22:37:46
7542fc0d755421e30c61a61083939f7d8163d2af
{ "blob_id": "7542fc0d755421e30c61a61083939f7d8163d2af", "branch_name": "refs/heads/master", "committer_date": "2021-09-01T22:37:46", "content_id": "d57825e51b1617228ea3cd64ff11e1ae5b1d0574", "detected_licenses": [ "MIT" ], "directory_id": "980909a1bc2196b7a55fe7bf22c077381277c53c", "extension": "h"...
stackv2
#ifndef _SATOSHI_TX_H_ #define _SATOSHI_TX_H_ #include <stdio.h> #ifdef __cplusplus extern "C" { #endif #include "satoshi-types.h" #include "sha.h" /***************************************** * satoshi_tx_sighash_type: * sighash_all: default type, signs all txins and txouts. * sighash_none: signs all txins, no ...
2.34375
2
2024-11-18T22:11:42.116445+00:00
2016-10-18T03:57:10
301b22059bc6b6a7cb68c70cd6899b324fd9a817
{ "blob_id": "301b22059bc6b6a7cb68c70cd6899b324fd9a817", "branch_name": "refs/heads/master", "committer_date": "2016-10-18T03:57:10", "content_id": "521669b79809ef365e7fb654b46b1b66f787c9cf", "detected_licenses": [ "MIT" ], "directory_id": "2feb8b34d47cf1e420f88ab2ee857d1f6182a5e6", "extension": "c"...
stackv2
/* stdlib.c =============================================================================== MIT License Copyright (c) 2007-2016 Michael Lazear 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 witho...
2.75
3
2024-11-18T22:11:42.206749+00:00
2021-01-12T02:38:57
f4ea933a940897e00260c6c63fe274e658ec38a7
{ "blob_id": "f4ea933a940897e00260c6c63fe274e658ec38a7", "branch_name": "refs/heads/master", "committer_date": "2021-01-12T02:38:57", "content_id": "8b6786209ec8055adf50540565d0d174c00f60ef", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9587eca706ebd57bb39cd5a214bf9245662850be", "extensio...
stackv2
// // Created by forgot on 2019-07-30. // 数组的使用例子 // #include <stdio.h> #include <locale.h> #include <string.h> #include <time.h> void print_array1(); void print_array2(); void print_array3(); void print_string(); void print_string2(); char *getDateTime(); //int main() { //// char *nowtime = getDateTime(); ...
3.25
3
2024-11-18T22:11:42.868685+00:00
2015-05-03T09:28:43
6555d09d415d5cc3192ee1a203f1722a04f1d455
{ "blob_id": "6555d09d415d5cc3192ee1a203f1722a04f1d455", "branch_name": "refs/heads/master", "committer_date": "2015-05-03T09:28:43", "content_id": "9f5f3b7ae0a63f3602516c491ee29b66aa36840e", "detected_licenses": [ "MIT" ], "directory_id": "4d676e4bb9e956c57d5d9dbd921d385def523c4f", "extension": "h"...
stackv2
#pragma once /** @file closure ======= \verbatim +---------------------------+-------+ | data | type1 | +---------------------------+-------+ | . value (61 bits) | 011 | +-|-------------------------+-------+ | | +----------------+------------+ `----> | funcp(64bits) ...
2.21875
2
2024-11-18T22:11:43.982959+00:00
2020-08-28T10:50:09
0250eaf945e87fcad857f7c01b809795794f9549
{ "blob_id": "0250eaf945e87fcad857f7c01b809795794f9549", "branch_name": "refs/heads/master", "committer_date": "2020-08-28T10:50:09", "content_id": "e2be82096e82a3478cd11ccd582e846dce0aa520", "detected_licenses": [ "MIT" ], "directory_id": "f8dea1a5dc461280d149b1accb4a9e46d9b7b0b9", "extension": "h"...
stackv2
#include <stdlib.h> #include <stdio.h> typedef float ElementType; typedef struct SNode { int identifier; //to identify the data type ,0 is int, 1 is char union { ElementType num; char ch; } Data; struct SNode *Next; } SNode; typedef SNode *Stack; /* creat a head node and retu...
3.609375
4
2024-11-18T22:11:44.126265+00:00
2013-09-03T01:20:29
56f4a128f53d888340ca6261c521de9633adb5a9
{ "blob_id": "56f4a128f53d888340ca6261c521de9633adb5a9", "branch_name": "refs/heads/master", "committer_date": "2013-09-03T01:20:29", "content_id": "cc0b7bf1385e70c5592d5b4f6a6dba7d9b16c631", "detected_licenses": [ "MIT" ], "directory_id": "a00783714f4141f6bddf684884398011bc3c8680", "extension": "c"...
stackv2
/* * server.c * * Finding similar colors (matching images) * * See https://github.com/kristopolous/similarcolors for the latest version */ #include "common.h" char **g_buffer; int g_size = 64, g_sig = 0, g_curpoint = 0; size_t *g_sizes; struct client { char active, // active? todo; // what ...
2.4375
2
2024-11-18T22:11:44.260150+00:00
2019-05-09T07:25:55
3a45f322b31e5f9efdedd12df21a315fd24e35b3
{ "blob_id": "3a45f322b31e5f9efdedd12df21a315fd24e35b3", "branch_name": "refs/heads/master", "committer_date": "2019-05-09T07:25:55", "content_id": "312f9cd1e1321bcb0c06cd691bfece2d01edae5c", "detected_licenses": [ "MIT" ], "directory_id": "a965a6b3e36b2bdb546784d4fa6d4ecb20cfcb63", "extension": "c"...
stackv2
#include <assert.h> #include <errno.h> #include <stdio.h> #include <string.h> #include "cc.h" char *read_file(char *path) { FILE *pf = fopen(path, "r"); if (!pf) { fprintf(stderr, "Could not open %s: %s\n", path, strerror(errno)); exit(1); } if (fseek(pf, 0, SEEK_END ) == -1) { ...
2.5
2
2024-11-18T22:11:46.249570+00:00
2022-04-28T04:37:03
cd6a0cf9ebbdff472ec95314726f2503a26ed7f2
{ "blob_id": "cd6a0cf9ebbdff472ec95314726f2503a26ed7f2", "branch_name": "refs/heads/master", "committer_date": "2022-04-28T04:37:03", "content_id": "54cf27ef5f9f83af0ff22d25b10f069608233373", "detected_licenses": [ "MIT" ], "directory_id": "cf59b40f883a2e369f173e869ec509dba7e0be6e", "extension": "c"...
stackv2
/** * sock.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "sock.h" /** * Create TCP socket. */ int mksock (char *url, BIO *bp) { int sockfd, port, status; char hostname[256] = ""; char port_num[6] = "443"; char protocol[6] = ""; char *tmp_ptr = NULL; struct hostent *host; str...
2.96875
3
2024-11-18T22:11:46.678749+00:00
2016-05-01T07:35:32
26f9d1547d8d21f9fb2b9aeea104f0b1ec32dc04
{ "blob_id": "26f9d1547d8d21f9fb2b9aeea104f0b1ec32dc04", "branch_name": "refs/heads/master", "committer_date": "2016-05-01T07:35:32", "content_id": "2d13305a680b04dd5d1e0f616e90c7bd0240c5e1", "detected_licenses": [ "BSD-4-Clause-UC" ], "directory_id": "23483ef7551bf1661312396f2f7a5b6a614d7c3b", "ext...
stackv2
#include <kern/UserProg.h> #include <inc/stdio.h> #include <inc/string.h> int User_Fibonacci(int argc, char** argv) { if(argc == 1) { cprintf("Enter arguements\n"); return 0; } char *ptr; long ret = strtol(argv[1],&ptr,10); int a = 1; int b = 1; int c = 0; int i; int count=(int)ret; if(count==0 || count...
2.9375
3
2024-11-18T22:11:51.579545+00:00
2021-11-15T18:05:57
9253c612f5eaa0224bde25492e9372f6a9479196
{ "blob_id": "9253c612f5eaa0224bde25492e9372f6a9479196", "branch_name": "refs/heads/master", "committer_date": "2021-11-15T18:05:57", "content_id": "239d61c71736a01c603ad4378f2dbac55d396eb0", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "6ec0ec5c90d405cde9b871a88404f342ddb2afdc", "extens...
stackv2
/** * * @file runtime_control.c * * @copyright 2012-2017 The University of Tennessee and The University of * Tennessee Research Foundation. All rights reserved. * @copyright 2012-2017 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, * Univ. Bordeaux. All rights reserved. * @...
2.046875
2
2024-11-18T22:11:51.848428+00:00
2020-09-07T07:23:22
405c2fb13e03436b232f441ea4e66d31fac677b2
{ "blob_id": "405c2fb13e03436b232f441ea4e66d31fac677b2", "branch_name": "refs/heads/master", "committer_date": "2020-09-07T07:23:22", "content_id": "6db8de526bac027f8268da061e8ee4df1e2dc471", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a3e75545d380c65cfad89669fcc514e6b30ffd4d", "extensio...
stackv2
/* * Copyright (C) 2018-2020 Alibaba Group Holding Limited */ #ifndef __MISC_H__ #define __MISC_H__ #include "avutil/common.h" #include "avutil/av_typedef.h" __BEGIN_DECLS__ #define bswap16(x) \ ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8)) #define bswap32(x) \ ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >...
2.15625
2
2024-11-18T22:11:51.993331+00:00
2017-07-30T13:52:32
6bf448cf9f5c4ed31217fb47658f7ef97ff5a8d1
{ "blob_id": "6bf448cf9f5c4ed31217fb47658f7ef97ff5a8d1", "branch_name": "refs/heads/master", "committer_date": "2017-07-30T13:52:32", "content_id": "d929d6eb63cc2cb61ed6da72a2544c6e73fb1fdd", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7975dc9f1c3550719c0f8f841ef5c533091ebbe8", "extensio...
stackv2
#include <stdio.h> #include <wiringPi.h> int main (void) { printf ("Raspberry Pi blink\n") ; if (wiringPiSetup () == -1) return 1 ; pinMode (1, OUTPUT) ; // aka BCM_GPIO pin 17 digitalWrite(1,1); return 0 ; }
2.0625
2
2024-11-18T22:11:54.377930+00:00
2022-11-25T14:31:40
5fd37fac7ab21c79f0c3bd76ad1898a614d0df77
{ "blob_id": "5fd37fac7ab21c79f0c3bd76ad1898a614d0df77", "branch_name": "refs/heads/main", "committer_date": "2022-11-25T14:31:40", "content_id": "eeb77a51803f8f5ef781ca09187c70fdbfd04d73", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c6bbd226758134f7057e381234b14ab0e5f19410", "extensio...
stackv2
#ifndef RCEL_H #define RCEL_H #ifndef STDTYPES_H #include "stdtypes.h" #endif #ifndef RECTANG_H #include "rectang.h" #endif #ifndef RASTCALL_H #include "rastcall.h" #endif struct cmap; #include "wndobody.h" /* a minimal drawing cel designed to be compatible with a window and * raster and window screen but sm...
2.0625
2
2024-11-18T22:11:54.836127+00:00
2021-06-03T11:54:47
856341dcdc40cd64734503eb87e6aa35eeeb4734
{ "blob_id": "856341dcdc40cd64734503eb87e6aa35eeeb4734", "branch_name": "refs/heads/main", "committer_date": "2021-06-03T11:54:47", "content_id": "9158e62b0e9580cb79cb10cd896fd6e90dc578d5", "detected_licenses": [ "MIT" ], "directory_id": "f2af2c1812865e7e0d240c70cedd8fc7927957d0", "extension": "c", ...
stackv2
#include <stdlib.h> #include <stdio.h> void read_seed(char* filepath, int* seed) { FILE* fp; if ((fp = fopen(filepath, "r")) == NULL) { printf("Couldn't open file: %s\n", filepath); exit(1); } int maxNumDigits = 20; char stringNumber[maxNumDigits]; if (fgets(stringNumber, maxNu...
3
3
2024-11-18T22:11:58.033490+00:00
2023-08-17T13:00:20
571a4867e1a7624165c9212b0d93fdb7231f627f
{ "blob_id": "571a4867e1a7624165c9212b0d93fdb7231f627f", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T07:43:37", "content_id": "cd8284d6968ff5db4e844e97dfd660e7d4b29b6e", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c9bc99866cfab223c777cfb741083be3e9439d81", "extens...
stackv2
/* * Renesas SCP/MCP Software * Copyright (c) 2020-2021, Renesas Electronics Corporation. All rights * reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <rcar_pd_sysc.h> #include <mod_rcar_pd_sysc.h> #include <mod_system_power.h> #include <mod_rcar_system.h> #include <fwk_assert.h> #include <fwk_...
2.171875
2
2024-11-18T22:11:58.884529+00:00
2020-02-01T18:05:59
3b9869a0285332c7f7422ce98f3fd61a39440168
{ "blob_id": "3b9869a0285332c7f7422ce98f3fd61a39440168", "branch_name": "refs/heads/master", "committer_date": "2020-02-01T18:05:59", "content_id": "d1a86c3d4985d36edeb94cc3c23c3ad4697fb803", "detected_licenses": [ "MIT" ], "directory_id": "5c4eeaf7098b90988f28f05e959082f10a2dd653", "extension": "c"...
stackv2
/* This project duplicates works from Barton Dring's Grbl_USB_Native project https://github.com/bdring/Grbl_USB_Native */ /* also uartDisplay is connected to a nextion display which has its own protocol, for example x.txt="111.222"\xFF\xFF\xFF sets the nextion text field named 'x'. widgets 'y','...
2.5
2
2024-11-18T22:11:59.084717+00:00
2021-10-18T02:29:27
215e1f04ce81b65ed2c0179274cdcee85f2c25de
{ "blob_id": "215e1f04ce81b65ed2c0179274cdcee85f2c25de", "branch_name": "refs/heads/main", "committer_date": "2021-10-18T02:29:27", "content_id": "172a866f3c0402e0902779022781834161a1c828", "detected_licenses": [ "Apache-2.0" ], "directory_id": "594e668834154d33066c190415bb142b2d261471", "extension"...
stackv2
#ifndef KUBOT_SIMPLE_DATAFRAME_H_ #define KUBOT_SIMPLE_DATAFRAME_H_ #include "dataframe.h" #include <string.h> static const unsigned short MESSAGE_BUFFER_SIZE = 255; #define FIX_HEAD 0x5A struct Head { unsigned char flag; // 標頭, 固定 0X5A unsigned char msg_id; // 消息ID, 表示消息具體作用,决定消息體格式 unsigned char len...
2.4375
2
2024-11-18T22:11:59.288664+00:00
2017-05-29T08:04:18
6b166cf6b644487b22e9c283baeac001e2ac5bee
{ "blob_id": "6b166cf6b644487b22e9c283baeac001e2ac5bee", "branch_name": "refs/heads/master", "committer_date": "2017-05-29T08:04:18", "content_id": "ac7d10f409a6d0604f233e226fd26db3b0c92016", "detected_licenses": [ "MIT" ], "directory_id": "bef40c6b8f745e74197fa272d9505bc1006c02ff", "extension": "c"...
stackv2
void generateBinarySearch ( int left, int right ); float getTimeForBinarySearch( int arr[], int left, int right ); void fillArray( int arr[], int arrSize ); int binarySearch( int arr[], int left, int right, int value ); void generateBinarySearch ( int left, int right ) { int arr[maxArrSize], value; float time...
2.921875
3
2024-11-18T22:11:59.655625+00:00
2021-10-22T12:35:10
c8eb96259f762aae4de838bc124ef535b5ed9458
{ "blob_id": "c8eb96259f762aae4de838bc124ef535b5ed9458", "branch_name": "refs/heads/master", "committer_date": "2021-10-22T12:35:10", "content_id": "ac3587372d9ebfd28d7b20240fbc0241e49ba9f1", "detected_licenses": [ "MIT" ], "directory_id": "d7a2c64d16a1b46f03d94657a41f75f8654e7f7d", "extension": "c"...
stackv2
/** * multi-sdr-gps-sim generates a IQ data stream on-the-fly to simulate a * GPS L1 baseband signal using a SDR platform like HackRF or ADLAM-Pluto. * * This file is part of the Github project at * https://github.com/mictronics/multi-sdr-gps-sim.git * * Copyright © 2021 Mictronics * Distributed under the MIT L...
2.1875
2
2024-11-18T22:11:59.829253+00:00
2021-08-08T11:30:00
877ab5ed965c8a71a12197515077ab1b9ffca392
{ "blob_id": "877ab5ed965c8a71a12197515077ab1b9ffca392", "branch_name": "refs/heads/main", "committer_date": "2021-08-08T11:30:00", "content_id": "09588bb314210a6a00a11a67106d80ce69f96e5e", "detected_licenses": [ "MIT" ], "directory_id": "9a8aad74b3b5d374bb148a640c4fa0ee33382efa", "extension": "c", ...
stackv2
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* Copyright 2021 Melwyn Francis Carlo */ /* File Reference: http://www.naturalnumbers.org/primes.html */ int main() { int smallest_odd_composite_number = 0; const int MAX_N = 1E5; FILE *fp; char prime_num[10]; const ch...
3.171875
3
2024-11-18T22:12:01.250247+00:00
2022-05-19T08:55:47
aba1ef37f409a86275cf3e732f2f486feb0a6bcf
{ "blob_id": "aba1ef37f409a86275cf3e732f2f486feb0a6bcf", "branch_name": "refs/heads/master", "committer_date": "2022-05-19T08:55:47", "content_id": "c6b2d62abe45561667fe9fe52b44b55975a7c54b", "detected_licenses": [ "MIT" ], "directory_id": "9dab8cff2084b9adcf805c3885d05f7ff9a3d54a", "extension": "c"...
stackv2
/* * Copyright (c) 2018 SignalWire, Inc * * 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, modify, merge, pub...
2.28125
2
2024-11-18T22:12:01.407433+00:00
2020-09-07T18:45:10
5ae73f3f7904819f08c9ad29071a3bdc16daaf0e
{ "blob_id": "5ae73f3f7904819f08c9ad29071a3bdc16daaf0e", "branch_name": "refs/heads/master", "committer_date": "2020-09-07T18:45:10", "content_id": "a6de44673b51b1f846f8fe8da341f7073107833b", "detected_licenses": [ "MIT" ], "directory_id": "6f88698a82bb4bb51160ebc5f9650e5ecccffb8e", "extension": "c"...
stackv2
#include <atmel_start.h> #include <stdbool.h> #include <stdio.h> #include "ext_flash.h" // Debug Out IO Descriptor struct io_descriptor *debug_io; // Flags for UART Receive volatile debug_io_receiving, debug_io_complete = false; // Maximum Size of UART Message for Memory #define MAX_MESSAGE_SIZE 64 // Char Array f...
3.09375
3
2024-11-18T22:12:01.636420+00:00
2021-05-01T16:36:07
780647dafd1e4de63ad2f93767cedcad2280e9c4
{ "blob_id": "780647dafd1e4de63ad2f93767cedcad2280e9c4", "branch_name": "refs/heads/main", "committer_date": "2021-05-01T16:36:07", "content_id": "ea04c0ee20ef32733ccc4f4bdd0fb65910d8e380", "detected_licenses": [ "MIT" ], "directory_id": "1b40b1dc5b43bc72bf26df19cb227ac6c27ccbc5", "extension": "c", ...
stackv2
/* * Project Name: Snake Game Project with PIC18F46K22 * * Authors: Yetkin AKYUZ (yetkin.akyuz@outlook.com) * * Created on December 29, 2020, 5:35 PM */ #include <stdio.h> #include <stdlib.h> #include <xc.h> // *************** CONFIGURATIONS *************** // CONFIG1H #pragma config FOSC = INTIO67 // Osci...
2.046875
2
2024-11-18T22:12:02.731578+00:00
2020-06-16T11:23:25
67fee5f97fd2069254819454da4737b00fea933b
{ "blob_id": "67fee5f97fd2069254819454da4737b00fea933b", "branch_name": "refs/heads/master", "committer_date": "2020-06-16T11:23:25", "content_id": "25038b6a836ecf0c5d9827af15cc0e4a7f54b349", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "5081b557412677135328593c060c0126ee2bcfc0", "extens...
stackv2
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> #include "psrsalsa.h" // Test function designed to test the function compute_covariance_matrix(), which is not used any further in this program. double test_dydparam(long param, double *optimum_params, double x); int main(int argc, char **ar...
2.265625
2
2024-11-18T22:12:02.814335+00:00
2022-11-03T19:53:33
9e52cae7209db57ba876b28820f1677c0bf06486
{ "blob_id": "9e52cae7209db57ba876b28820f1677c0bf06486", "branch_name": "refs/heads/master", "committer_date": "2022-11-03T19:53:33", "content_id": "e5fd9b0763c6ed2584b2056740c6a64801fb2ec5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1ff832389401454c2be121ff107f5096560611be", "extensio...
stackv2
/* * Copyright (c) 2017 Mark Ryan * * 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 t...
2.109375
2
2024-11-18T22:12:02.961930+00:00
2023-07-03T01:27:29
5a33bb418e05bf4d8ede3954ae023cfdba22a18c
{ "blob_id": "5a33bb418e05bf4d8ede3954ae023cfdba22a18c", "branch_name": "refs/heads/master", "committer_date": "2023-07-03T01:27:29", "content_id": "1d4f77e7a863d9235afdcc657bdc68aa1fa4c2aa", "detected_licenses": [ "MIT" ], "directory_id": "382a4dacbf7d6e6da096ddac660ba7a40af350cf", "extension": "h"...
stackv2
/** * @file lv_hal_indev.h * * @description Input Device HAL interface layer header file * */ #ifndef LV_HAL_INDEV_H #define LV_HAL_INDEV_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_conf_internal.h" #include <stdbool.h> #include <stdi...
2.484375
2
2024-11-18T22:12:03.240657+00:00
2014-10-31T15:24:17
a54c97a075f47dc88263a8ce99d24fa50e69efce
{ "blob_id": "a54c97a075f47dc88263a8ce99d24fa50e69efce", "branch_name": "refs/heads/master", "committer_date": "2014-10-31T15:24:17", "content_id": "4a9efd6cc7eca66227284ba3b3ba89a467c1e21f", "detected_licenses": [ "ISC" ], "directory_id": "9c0b23ec6942fd29b6e05e0458a0cd04b9ea38dd", "extension": "c"...
stackv2
/*- * aewm: Copyright (c) 1998-2008 Decklin Foster. See README for license. */ #include <stdlib.h> #include <stdio.h> #include <sys/select.h> #include <X11/Xatom.h> #ifdef SHAPE #include <X11/extensions/shape.h> #endif #include "aewm.h" static void ev_btn_press(XButtonEvent *); static void ev_btn_release(XButtonEve...
2.125
2
2024-11-18T22:12:03.297145+00:00
2020-08-13T08:27:25
24cebf6c0f824fe0c1a476b659cfbfefa8100033
{ "blob_id": "24cebf6c0f824fe0c1a476b659cfbfefa8100033", "branch_name": "refs/heads/master", "committer_date": "2020-08-13T08:27:25", "content_id": "71027b0a774bc87ebf5d8ce83dbc17f1920d75e5", "detected_licenses": [ "BSL-1.0" ], "directory_id": "9f8c6878ffbce4dbf985d6564a37aa1c8086d038", "extension":...
stackv2
#include "mib_cqi_pacer.h" #include "mib_time.h" #include <assert.h> #include <stdio.h> void mib_cqi_pacer_set(struct mib_cqi_pacer* p, int32_t channel_buffer, int32_t remaining) { assert(channel_buffer > -1 && remaining > -1); printf("Into mib_cqi_pacer_set, channel_buffer = %d, remaining = %d \n",channel_buff...
2.6875
3
2024-11-18T22:12:03.350379+00:00
2013-11-10T12:35:49
8615fb8843ef9ce745effb854081a2baaedf5749
{ "blob_id": "8615fb8843ef9ce745effb854081a2baaedf5749", "branch_name": "refs/heads/master", "committer_date": "2013-11-10T12:35:49", "content_id": "2d292272346944fd47221b20300a0f1cb6e0c6b6", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "2b80fa4cda75a5b45d40999d8af71a7349b792bd", "extens...
stackv2
#ifndef __LIBDARTS_H__ #define __LIBDARTS_H__ #ifdef __cplusplus extern "C" { #endif #include <stddef.h> /** Type of double array instance. */ typedef void* darts_t; /** Type of double array trie key. */ typedef char darts_key_type; /** Type of double array trie value. */ typedef int darts_value_type; /* <...
2.46875
2
2024-11-18T22:12:03.426611+00:00
2017-11-16T02:03:04
efc9d5fb9676219a13ee31a22a7d14e6203878de
{ "blob_id": "efc9d5fb9676219a13ee31a22a7d14e6203878de", "branch_name": "refs/heads/master", "committer_date": "2017-11-16T02:03:04", "content_id": "77f6f88926c0b82e8f7e3e34007a08c9c96e5e90", "detected_licenses": [ "MIT" ], "directory_id": "e9c413fcad1e041b3a930ec7709985ff9bc5d52e", "extension": "h"...
stackv2
// CppLibrary.h - Contains declarations of functions and delegates #pragma once #ifndef _WINDOWS #define __declspec(dllexport) #endif #ifdef CPPLIBRARY_EXPORTS #define CPPLIBRARY_API __declspec(dllexport) #else #define CPPLIBRARY_API __declspec(dllimport) #endif // Get the number 1 extern "C" CPPLIBRARY_A...
2.265625
2
2024-11-18T22:12:04.110760+00:00
2017-09-14T23:03:28
5c42de4d6b10964d8e7ad830a94b316c4fa68ba3
{ "blob_id": "5c42de4d6b10964d8e7ad830a94b316c4fa68ba3", "branch_name": "refs/heads/master", "committer_date": "2017-09-14T23:03:28", "content_id": "d8a7ba68f81df8d24235a35521f91d1b919ab61c", "detected_licenses": [ "MIT" ], "directory_id": "8cfd4161acdef6a4bd48f69f009b980ff6681738", "extension": "h"...
stackv2
#ifndef DMR_C_FLOW_H #define DMR_C_FLOW_H /* * Flow - walk the linearized flowgraph, simplifying it as we * go along. * * Copyright (C) 2004 Linus Torvalds */ #include <lib.h> #ifdef __cplusplus extern "C" { #endif #define REPEAT_CSE 1 #define REPEAT_SYMBOL_CLEANUP 2 #define REPEAT_CFG_CLEANUP 3 struct entrypoin...
2.015625
2
2024-11-18T20:41:42.102984+00:00
2023-03-18T19:32:38
06c19e279d0607fc53f0d879e5c383d8471afff0
{ "blob_id": "06c19e279d0607fc53f0d879e5c383d8471afff0", "branch_name": "refs/heads/master", "committer_date": "2023-03-18T19:32:38", "content_id": "6fcc18c7e2ff671c63807bc8b7f05e90052bfd6b", "detected_licenses": [ "MIT" ], "directory_id": "f381861718a20bda54858182554eeb1b446e1c00", "extension": "h"...
stackv2
/* gfx.h, GVRAM Graphical function prototypes for the x68Launcher. Copyright (C) 2020 John Snowdon This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your ...
2.171875
2
2024-11-18T20:55:27.956520+00:00
2023-06-26T18:38:18
a85be999c3d250ed00e58e9653e6b9f65d672ab2
{ "blob_id": "a85be999c3d250ed00e58e9653e6b9f65d672ab2", "branch_name": "refs/heads/master", "committer_date": "2023-06-26T18:38:18", "content_id": "d219aa4927155b82c9b894fadd1feb98be19b823", "detected_licenses": [ "MIT" ], "directory_id": "e568fcf70d23481da18734c2a9d30c1b5d95b265", "extension": "c"...
stackv2
// // Created by sachetto on 01/11/18. // #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include "data_utils.h" #define COMPRESED_BLOCK_SIZE 1 << 15 void calculate_blocks_and_compress_data(size_t total_data_size_before_compression, size_t *tot...
2.734375
3
2024-11-18T20:55:28.076237+00:00
2021-06-08T14:15:18
ce714efd06e8c03fd9ca873ccf8cd453b704c657
{ "blob_id": "ce714efd06e8c03fd9ca873ccf8cd453b704c657", "branch_name": "refs/heads/master", "committer_date": "2021-06-08T14:15:18", "content_id": "e3b4f6fb93ebddb71139b257ffb12186d3c6f162", "detected_licenses": [ "MIT" ], "directory_id": "37d8dd983f9e51f5adb3e885a8d3d23c3768931f", "extension": "c"...
stackv2
/* 52. Program to accept number and print it's factorial. */ #include<stdio.h> #include<conio.h> void main() { int i, fact=1, n; clrscr(); printf("Enter number : "); scanf("%d", &n); for(i=1; i<=n; i++) { fact = fact*i; } printf("Factorial is: %d", fact); getch(); }
3.578125
4
2024-11-18T20:55:28.176698+00:00
2020-03-19T13:50:10
367c7cdcac1efdd0be204e5dff536e38a6d38e48
{ "blob_id": "367c7cdcac1efdd0be204e5dff536e38a6d38e48", "branch_name": "refs/heads/master", "committer_date": "2020-03-19T13:50:10", "content_id": "44d9a2164450cd7faa6e869cc54ff3bc88128977", "detected_licenses": [ "MIT" ], "directory_id": "4edf16dd911e3e8a4d70e56cda144549958b5c5c", "extension": "c"...
stackv2
/** * 线性表的单链存储结构实现示例 * 数据单元为整数 */ #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #define OK true #define ERROR false #define OUTFAIL(PARAM) \ printf("Function \"%s\" test fail. line is %d.\n", functionName, \ __LINE__); ...
3.484375
3
2024-11-18T20:55:28.394550+00:00
2022-08-04T22:49:38
a4917680ef1418a79b3f955c34b90e49f6e50e8f
{ "blob_id": "a4917680ef1418a79b3f955c34b90e49f6e50e8f", "branch_name": "refs/heads/master", "committer_date": "2022-08-04T22:49:38", "content_id": "6c4b5962be3080386c72cab65a62178a3ba7bd9c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "198776b40bcd18cbd7bb8350183915d096844d54", "extensio...
stackv2
// Copyright (c) 2017, Linaro Limited. #ifdef BUILD_MODULE_DGRAM // Zephyr includes #include <net/net_context.h> #include <net/net_pkt.h> #include <net/udp.h> #if defined(CONFIG_NET_L2_BT) #include <bluetooth/bluetooth.h> #endif // ZJS includes #include "zjs_buffer.h" #include "zjs_callbacks.h" #include "zjs_net_con...
2.21875
2
2024-11-18T20:55:28.732763+00:00
2016-08-07T02:19:10
ebdb6fe8e75852bbbe12d06e365d3b95e17dc298
{ "blob_id": "ebdb6fe8e75852bbbe12d06e365d3b95e17dc298", "branch_name": "refs/heads/master", "committer_date": "2016-08-07T02:19:10", "content_id": "75f2c208f5493881168c442c09da23ba222b59ad", "detected_licenses": [ "MIT" ], "directory_id": "a3382a363f1c94d66c26ef40e76ef1d4683297c5", "extension": "h"...
stackv2
///////////////////////////////////////////////////////////////////////// //// //// //// usb_san_cdc.h //// //////////////http://br.groups.yahoo.com/group/GrupoSanUSB/////////////// //api for the user: #d...
2.046875
2
2024-11-18T20:55:29.737936+00:00
2023-01-31T12:43:06
541bca8ddf02a34c9dcfb20c28cc98f4c40d22fe
{ "blob_id": "541bca8ddf02a34c9dcfb20c28cc98f4c40d22fe", "branch_name": "refs/heads/master", "committer_date": "2023-01-31T12:43:06", "content_id": "2751c27fbb3343e32a559bebb92eb4fb773740ff", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "e8ec930d559b2a9970cbeff369616ba67f60ab67", "extens...
stackv2
/* * Copyright (c) 2022 A.W. van Halderen * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
2.125
2
2024-11-18T20:55:30.370541+00:00
2018-11-28T14:22:51
52e0015e91caf76074536c34f69f928de86fc530
{ "blob_id": "52e0015e91caf76074536c34f69f928de86fc530", "branch_name": "refs/heads/master", "committer_date": "2018-11-28T14:22:51", "content_id": "bca31a4236ff2082c11e66f9465f489882b41829", "detected_licenses": [ "MIT" ], "directory_id": "f05973e44be1ce06d8a966dc10795a21d46d2e1e", "extension": "c"...
stackv2
/* * Raspberry Pi Porting layer for FreeRTOS. */ #include "FreeRTOS.h" #include "task.h" #include "rpi-smartstart.h" #include "rpi-irq.h" /* Constants required to setup the task context. */ #define portINITIAL_SPSR ( ( portSTACK_TYPE ) 0x1f ) /* System mode, ARM mode, interrupts enabled. */ #define portTHUMB_M...
2.59375
3
2024-11-18T20:55:31.903371+00:00
2020-06-17T01:21:06
8c6cf6be1f00e7c0bc2dcfcdcee615941b342983
{ "blob_id": "8c6cf6be1f00e7c0bc2dcfcdcee615941b342983", "branch_name": "refs/heads/master", "committer_date": "2020-06-17T01:21:06", "content_id": "e1c8a9f6fb223a9d965e466d0f92849c2e300bc7", "detected_licenses": [ "MIT" ], "directory_id": "117f69983b6f2ae635a7a2192bd50b016ded2ed6", "extension": "c"...
stackv2
/* source code file for client gui */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <gtk/gtk.h> // for client #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> //#include "server.h" #include "ClientApp.h" /...
2.078125
2
2024-11-18T20:55:32.175847+00:00
2020-10-08T16:20:19
64649b0fffd8b52eb0c3c8e3ce868dfc4270aeda
{ "blob_id": "64649b0fffd8b52eb0c3c8e3ce868dfc4270aeda", "branch_name": "refs/heads/main", "committer_date": "2020-10-08T16:20:19", "content_id": "884457fb8d30914a4414505da2e0a5a8187edc80", "detected_licenses": [ "MIT" ], "directory_id": "2f7c17258e9996dd991620ccfcde3a5b67e10812", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #define BUF_SIZE 1024 bool is_vowel(char c) { //Checks the given character if its a vowel or not if (c == 'A' || c == 'a' || c == 'E' || c == 'e' || c == 'I' || c == 'i' || c == 'O' || c == 'o' || c == 'U' || c == 'u'){ return true; } return false; }...
3.4375
3
2024-11-18T20:55:32.232597+00:00
2017-11-13T00:34:56
8ed08a727d2df0a10c007994cd2d108849c71246
{ "blob_id": "8ed08a727d2df0a10c007994cd2d108849c71246", "branch_name": "refs/heads/master", "committer_date": "2017-11-13T00:34:56", "content_id": "ded58f1ed8d631366730378ddfc76bfc9284c41d", "detected_licenses": [ "PostgreSQL" ], "directory_id": "d22bea08a867824c6562c2c26255753cc4eacd46", "extensio...
stackv2
#include <sys/socket.h> #include <netinet/tcp.h> #include <netdb.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <assert.h> #include <time.h> #include "postgres.h" #include "arbiter.h" #include "proto.h" #include "arbiterlimits.h" #include "sockhub/sockhub.h" #ifdef TEST // ...
2.234375
2
2024-11-18T20:55:32.523825+00:00
2023-08-22T19:06:25
1c84df2244519381ad7fc141ae0bc2d22e31aa21
{ "blob_id": "1c84df2244519381ad7fc141ae0bc2d22e31aa21", "branch_name": "refs/heads/master", "committer_date": "2023-08-22T19:06:25", "content_id": "813ab2a948fdc68f3922385f55e548ac5088088a", "detected_licenses": [ "MIT" ], "directory_id": "d153de2407f635bbd2667a6b266354d532e80e85", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include "heclib.h" #include "hecdss7.h" #include "zdssMessages.h" #include "hecdssInternal.h" #include "TestDssC.h" int compareDifferent(double *doubles, float *floats, int number, const char *str); int compareProfiles (long long *ifltab,...
2.140625
2
2024-11-18T20:55:32.642311+00:00
2020-07-17T11:26:22
aca33981e9b80358894fa3b257a03f418b369f9f
{ "blob_id": "aca33981e9b80358894fa3b257a03f418b369f9f", "branch_name": "refs/heads/master", "committer_date": "2020-07-17T11:26:22", "content_id": "d9567c1ab1643273335f3e3df600066ccd97f63f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fa5e1f01dd72057710a2b333b8aa2cd782483722", "extensio...
stackv2
#include <stdio.h> #include "keychain.h" /* try to get the item of other process * can not get item of other process * check if errno is KC_ERROR_ITEM_NOT_FOUND */ void main(void) { char *key = "test_key"; char secret[128]; uint32_t secret_len = 128; uint32_t ret = 0; kc_key_type_t key_type = 0;...
2.578125
3
2024-11-18T20:55:32.722776+00:00
2019-10-04T15:13:55
741bfc2070dfd57cb4548afc295230410148f039
{ "blob_id": "741bfc2070dfd57cb4548afc295230410148f039", "branch_name": "refs/heads/master", "committer_date": "2019-10-04T15:13:55", "content_id": "89d2fd45e81e0616505f353bb346113f85c7835a", "detected_licenses": [ "MIT" ], "directory_id": "65b4b03b563f7685a143df6b792a0b612dc92d2a", "extension": "h"...
stackv2
#pragma once #include <whycpp/c_api.h> #include <whycpp_c/color.h> /** * Prints a single char at a position with color * @param ch is a symbol to print * @param x * @param y * @param color * @param size * @param font */ WHYCPP_C_API void PrintChar_C(char ch, int x, int y, RGBA_t color, int size); /** * Prin...
2.234375
2
2024-11-18T20:55:33.230888+00:00
2019-02-23T11:14:38
df4fb98f69dcee749b8cf031ef4bff04c0f51673
{ "blob_id": "df4fb98f69dcee749b8cf031ef4bff04c0f51673", "branch_name": "refs/heads/master", "committer_date": "2019-02-23T11:14:38", "content_id": "5e501177c766099ecf6b0fee635302bb0c3d3e31", "detected_licenses": [ "MIT" ], "directory_id": "60e1cd76871d782458e936e82887c6069bb15baf", "extension": "c"...
stackv2
/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ void reverse(struct ListNode **head_ref) { struct ListNode *prev = NULL; struct ListNode *curr = *head_ref; struct ListNode *next; while(curr != NULL) { next = curr->next; ...
3.21875
3
2024-11-18T20:55:33.484161+00:00
2019-08-29T11:05:56
9d97122f69e61bf3aa1ee44fd91039ddd80ef517
{ "blob_id": "9d97122f69e61bf3aa1ee44fd91039ddd80ef517", "branch_name": "refs/heads/master", "committer_date": "2019-08-29T11:05:56", "content_id": "a586f1d8e34ba2a604457ac76cab7035c06dad6f", "detected_licenses": [ "MIT" ], "directory_id": "ca445c9791e2c5f42999bcee727070a7a1d82cad", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "../../image.h" int main(int argc, char** argv) { struct img_ctx* ctx; struct img_animation* anim; image_alloc(&ctx); image_load_animation(&anim, "test.gif"); printf("Got %zu frames\n", anim->num_frames); image_free_animation(anim); image_free...
2.21875
2
2024-11-18T20:55:34.278224+00:00
2015-07-28T23:21:49
659b3b0cfa2f1f28378c34e87bb7280eefdb773b
{ "blob_id": "659b3b0cfa2f1f28378c34e87bb7280eefdb773b", "branch_name": "refs/heads/master", "committer_date": "2015-07-28T23:21:49", "content_id": "f8fa585cebd305abd3f822f681a817e8a59780cd", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "72a0842c07f8aac51707d9f14dadc525159b6d46", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <time.h> #include <math.h> #include <float.h> #include "bingham.h" #include "bingham/util.h" #include "bingham/gauss_mix.h" static void gauss_mix_init(gauss_mix_t *gm, double **X, int npoints) { int i, k = gm->n, dims = gm-...
2.5
2
2024-11-18T20:55:34.412734+00:00
2017-04-26T18:49:16
022e53d47cadb0c0e2cc45ffa984924b2f6ec35d
{ "blob_id": "022e53d47cadb0c0e2cc45ffa984924b2f6ec35d", "branch_name": "refs/heads/master", "committer_date": "2017-04-26T18:49:16", "content_id": "756fc00c958c679a6db3f8941b28a2dc9e270752", "detected_licenses": [ "MIT" ], "directory_id": "f04a417de407a744993ace0b7c1786a61edd2483", "extension": "h"...
stackv2
#ifndef _LCD_H #define _LCD_H // LCD DEFINE SYMBOLS //--COMMAND CONSTANTS #define CLEAR 0x01 //requires delay cylce of min 57 NOPs #define HOME 0x02 #define ENTRY_MODE 0x04 #define DISPLAY_CTRL 0x08 #define SHIFT 0x10 #define FUNCTION_SET 0x20 #define RAM_CG ...
2.046875
2
2024-11-18T20:55:36.039631+00:00
2023-08-03T08:26:23
d16096c87fcbbd3c632db8473454408f77b2759d
{ "blob_id": "d16096c87fcbbd3c632db8473454408f77b2759d", "branch_name": "refs/heads/master", "committer_date": "2023-08-03T08:26:23", "content_id": "c13ba5d9ab51c5da03764e72d8ba14c4922c8ea3", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "d814998b62645aa8a5e4398932fdc6e2d7571c36", "extens...
stackv2
/* GENETIC - A simple genetic algorithm. Copyright 2014, Javier Burguete Tolosa. 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 condi...
2.234375
2
2024-11-18T20:55:36.094467+00:00
2023-02-16T11:27:40
d6cda524022b7f4acc18eb868a5bf559f71387aa
{ "blob_id": "d6cda524022b7f4acc18eb868a5bf559f71387aa", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "ccac33c609045b7ab67ff957eaab49d917d261b2", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/** @file * @brief Network context API * * An API for applications to define a network connection. */ /* * Copyright (c) 2016 Intel Corporation * Copyright (c) 2021 Nordic Semiconductor * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(net_ctx, CONFIG_NET_CONTEXT_...
2.3125
2
2024-11-18T20:55:36.217785+00:00
2020-03-25T14:54:10
799d90135210eef19aeb8ab569606c279f84a0e5
{ "blob_id": "799d90135210eef19aeb8ab569606c279f84a0e5", "branch_name": "refs/heads/master", "committer_date": "2020-04-15T20:53:21", "content_id": "82d0fa48c9716b3d056a14dbc8811452299f4f80", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "9ef9233442de98582e5830ae26c032c510855d27", "extens...
stackv2
/** @file Implements a Simple UI Toolkit utility functions. Copyright (c) 2015 - 2018, Microsoft Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source co...
2.328125
2
2024-11-18T20:55:36.436123+00:00
2012-04-26T08:19:12
64fe8883e7f7e018b922892172bee22bbeaf9985
{ "blob_id": "64fe8883e7f7e018b922892172bee22bbeaf9985", "branch_name": "refs/heads/master", "committer_date": "2012-04-26T08:19:12", "content_id": "63018346f6794d6e441b3e3d7770798a4d5cef99", "detected_licenses": [ "MIT" ], "directory_id": "9357bed2ab063ec0d62774a22112bec3dd655ffd", "extension": "h"...
stackv2
// HighScoreManager.h // // Authors: Aric Parkinson, Spencer Phippen // Date created: April 13, 2012 // // Contains declarations of high score-related functions #ifndef HIGHSCOREMANAGER_H #define HIGHSCOREMANAGER_H // Returns the Nth high score (ie, 0 is highest, 1 is next highest, and so on). // Fills playerName wit...
2.34375
2
2024-11-18T20:55:36.695382+00:00
2022-07-28T18:42:05
83e7820f80d8fdb09ec796f2cdd15606b6b4f5e2
{ "blob_id": "83e7820f80d8fdb09ec796f2cdd15606b6b4f5e2", "branch_name": "refs/heads/master", "committer_date": "2022-07-28T18:42:05", "content_id": "cecd15d6791d076c2578e06a0cf823fd73f3ec5f", "detected_licenses": [ "MIT" ], "directory_id": "18e9c7d661584e1c7698670d60e0588ef353ebe1", "extension": "c"...
stackv2
/* j/4/by_get.c ** */ #include "all.h" /* functions */ u3_noun u3qdb_get(u3_noun a, u3_noun b) { if ( u3_nul == a ) { return u3_nul; } else { u3_noun n_a, lr_a; u3_noun pn_a, qn_a; u3x_cell(a, &n_a, &lr_a); u3x_cell(n_a, &pn_a, &qn_a); if ( (c3y == u3r_sing(b, pn_a)) ) { ...
2
2
2024-11-18T20:55:36.858932+00:00
2017-12-16T15:25:35
deb9e6cdc5e52d3ed211701f29610f7e996b870c
{ "blob_id": "deb9e6cdc5e52d3ed211701f29610f7e996b870c", "branch_name": "refs/heads/master", "committer_date": "2017-12-16T15:25:35", "content_id": "ce257d35e65a1caa1efb8d899de3dd53335e5311", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "15acac13dd6399435801a90dc1b3720b92f186c6", "extens...
stackv2
#include "box.h" #include <ccut.h> void box_suite() { ccut_test("box test") { val_begin_check_memory(); Val box = nb_box_new(3); assert_eq(true, nb_val_is_box(box)); assert_eq(3, nb_box_get(box)); nb_box_set(box, 4); assert_eq(4, nb_box_get(box)); nb_box_delete(box); val_end_check_mem...
2.140625
2
2024-11-18T20:55:36.988854+00:00
2023-07-31T07:24:56
03fe48978c42fa3ed17753415f4113dba5f702b7
{ "blob_id": "03fe48978c42fa3ed17753415f4113dba5f702b7", "branch_name": "refs/heads/master", "committer_date": "2023-07-31T07:24:56", "content_id": "fe00d92fb5840fba33b82788a976ced8867de568", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d77abc372ef9104cb1db80347523713c75c6b194", "extensio...
stackv2
/**************************************************************************//** * @file vector_parser.c * @version V1.00 * @brief CRYPTO SHA test vector parser * * @note * Copyright (C) 2016 M2351 Nuvoton Technology Corp. All rights reserved. ***************************************************************...
2.390625
2
2024-11-18T20:55:37.049768+00:00
2023-04-12T02:26:11
8e3eff40ea004d0e39fef4573859aab27ff40d08
{ "blob_id": "8e3eff40ea004d0e39fef4573859aab27ff40d08", "branch_name": "refs/heads/master", "committer_date": "2023-04-12T02:26:11", "content_id": "07911e0c366ccccd84f3b5c0f64cfad74a43c0fc", "detected_licenses": [ "MIT" ], "directory_id": "5ade2a129f55f5d871b9b14846d3126e9c6d2abc", "extension": "c"...
stackv2
#include "mex.h" #include <conio.h> #include "ioPort.c" #define pAddr prhs[0] #define pData prhs[1] #define pSleepTime prhs[2] #define pDelayTime prhs[3] /* ppWrite(IO_ADDR, Value) or ppWrite(IO_ADDR, Value, SleepTime) is used to send a trigger value to the parallel port that has approx. 10 milliseconds dura...
2.515625
3
2024-11-18T20:55:37.424510+00:00
2021-09-08T06:12:40
1e9326abe3a31be974b06ab347b9d6912a9a3021
{ "blob_id": "1e9326abe3a31be974b06ab347b9d6912a9a3021", "branch_name": "refs/heads/main", "committer_date": "2021-09-08T06:12:40", "content_id": "4699d67e2ad519c050137885bb94dc8858a40deb", "detected_licenses": [ "MIT" ], "directory_id": "f726316bedf3cd02fa4ee66a92579f5fdea3ea4c", "extension": "c", ...
stackv2
/* This is another example of wait() * Initially fork() > 0, so first "Hello from parent" is printed and fork() becomes zero and * "Hello from child" is printed. * wait(NULL) will block parent process until any of its children has finished. * If child terminates before parent process reaches wait(NULL) then * t...
3.671875
4
2024-11-18T20:55:37.528645+00:00
2021-11-09T08:13:13
c2283e0a7182d93c24ca929c8b7e95b129d084ae
{ "blob_id": "c2283e0a7182d93c24ca929c8b7e95b129d084ae", "branch_name": "refs/heads/master", "committer_date": "2021-11-09T08:13:13", "content_id": "311f9aebd622204ab8d093efbb664d0de5bf840a", "detected_licenses": [ "MIT" ], "directory_id": "089b21148cc7a44c004c976fbe09e34cdd7022c4", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* bmp.c :+: :+: :+: ...
2.328125
2
2024-11-18T20:55:37.605772+00:00
2023-08-22T20:22:40
2cd9caf596898f61212199c52bede31f591a64f7
{ "blob_id": "2cd9caf596898f61212199c52bede31f591a64f7", "branch_name": "refs/heads/master", "committer_date": "2023-08-22T20:22:40", "content_id": "f1565ad77db0e121e146fc74d3cc11878d128cb1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a5a99f646e371b45974a6fb6ccc06b0a674818f2", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "Random.h" #include "kernel.h" #include "constants.h" void print_banner(void); int main(int argc, char *argv[]) { /* default to the (small) cache-contained version */ double min_time = RESOLUTION_DEFAULT; int FFT_size = FFT_SIZE; int SOR_s...
2.640625
3
2024-11-18T20:55:37.696466+00:00
2009-08-22T20:14:16
3e3f0ef058e458fe4c178f6efcdc7a5206d9aecf
{ "blob_id": "3e3f0ef058e458fe4c178f6efcdc7a5206d9aecf", "branch_name": "refs/heads/master", "committer_date": "2009-08-22T20:14:16", "content_id": "36b4b5c802d71baeaf287e05a95137ff38d86046", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "7a1c1b528f60aeae7c852a08189ddc6ec2be3d15", "extens...
stackv2
#include <stdio.h> #include <sys/etimer.h> #include <sys/process.h> #include <sys/autostart.h> #include <usb/usb-api.h> #include <usb/cdc-acm.h> #include <dev/leds.h> #include <debug-uart.h> #include <net/uip-fw-drv.h> #include <dev/slip.h> /* SLIP interface */ extern struct uip_fw_netif cc2420if; static struct uip...
2.34375
2
2024-11-18T20:55:39.453931+00:00
2019-01-26T16:25:38
6c3a4593795fea39d9863541b2b16ddbced90b26
{ "blob_id": "6c3a4593795fea39d9863541b2b16ddbced90b26", "branch_name": "refs/heads/master", "committer_date": "2019-01-26T16:25:38", "content_id": "80cc0c23becd69f7c924478258a4f8ef41e780df", "detected_licenses": [ "BSL-1.0" ], "directory_id": "c45ee0e3fbd233b49da8f9ef373ff199c12ef4c8", "extension":...
stackv2
#include "data_board/factorial.h" uint64_t factorial(uint64_t n) { uint64_t tr = 1; for (int i = 2; i <= n; ++i) { tr *= i; } return tr; }
2.21875
2
2024-11-18T20:55:39.771051+00:00
2019-09-22T19:51:28
ee00ef1c1b5d177906042b92ff6fa52ecea86b72
{ "blob_id": "ee00ef1c1b5d177906042b92ff6fa52ecea86b72", "branch_name": "refs/heads/master", "committer_date": "2019-09-22T19:51:28", "content_id": "bb58c8219746b8cac827f026c393360090907dd4", "detected_licenses": [ "MIT" ], "directory_id": "965c60c5f734b6bc54f9033b924e5265f90d4f88", "extension": "h"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* minishell.h :+: :+: :+: ...
2.390625
2
2024-11-18T20:55:39.894522+00:00
2020-08-15T14:11:32
835ab5cf062a49b348d8f9698b777dce65222bce
{ "blob_id": "835ab5cf062a49b348d8f9698b777dce65222bce", "branch_name": "refs/heads/master", "committer_date": "2020-08-15T14:11:32", "content_id": "f7fc231f6e60f698d02ea8fa0f099fe067e12e06", "detected_licenses": [ "Unlicense" ], "directory_id": "ad41198ad433285c6066b4663ffc84ae579d799f", "extension...
stackv2
#include <kern/timer.h> #include <kern/kernlib.h> #include <kern/lock.h> struct timer_entry { struct timer_entry *next; u32 expire; void (*func)(const void *); void *arg; }; static struct timer_entry *timer_head = NULL; void timer_start(u32 ticks, void (*func)(const void *), void *arg) { struct timer_entry...
2.75
3
2024-11-18T20:55:39.995949+00:00
2015-10-11T22:27:15
2987da68adad8aaa954021ca0e01a5ebdf335d2a
{ "blob_id": "2987da68adad8aaa954021ca0e01a5ebdf335d2a", "branch_name": "refs/heads/master", "committer_date": "2015-10-11T22:27:15", "content_id": "68f0f8683330ff330323be8b674cc32c62923367", "detected_licenses": [ "MIT", "BSD-2-Clause" ], "directory_id": "b7b96e0bbcd07c2c0cbba364ea4c244f8aefc06b"...
stackv2
/* The MIT License (MIT) Copyright (c) 2015 Kevin Spinar (Alipha) 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, modify...
2.1875
2
2024-11-18T20:55:40.143592+00:00
2017-04-22T08:51:15
7ce38dcfcdb8685d7103df3a1b00959a83f8f435
{ "blob_id": "7ce38dcfcdb8685d7103df3a1b00959a83f8f435", "branch_name": "refs/heads/master", "committer_date": "2017-04-22T08:51:15", "content_id": "9ba445e01a482e09319fd1e0ea38fe806e97260d", "detected_licenses": [ "MIT" ], "directory_id": "2b87d2d60e5525cbdc56f6f54ac473ec4b920848", "extension": "c"...
stackv2
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: Uebung_C_4_4_queue.c * Author: Iwan * * Created on 4. April 2017, 18:41 */ #include <stdio.h> #include <stdlib.h> ...
3
3
2024-11-18T20:55:40.225232+00:00
2023-08-18T17:04:30
3a25c5f1b9988a51ddcc86fc1a6f836331364915
{ "blob_id": "3a25c5f1b9988a51ddcc86fc1a6f836331364915", "branch_name": "refs/heads/master", "committer_date": "2023-08-18T17:04:30", "content_id": "d68930c037b52ff6c41d745143ff3c85ceb755ab", "detected_licenses": [ "MIT" ], "directory_id": "e7f43a909d0ee15c165259cf1031374ea99fa311", "extension": "c"...
stackv2
#include <stdio.h> void multiplyBy2(float values[], int size) { for(int i = 0; i < size; ++i) values[i] *= 2; } int main() { void multiplyBy2(float values[], int size); float values[4] = { 1.2f, -3.7f, 6.2f, 8.55f }; multiplyBy2(values, 4); for(int i = 0; i < 4; ++i) printf("%.2f ", values[i]); ...
3.40625
3
2024-11-18T20:55:41.098295+00:00
2022-02-20T01:13:52
6515ff1a92a3c6c10ac74a07b0c178a1757a7dcf
{ "blob_id": "6515ff1a92a3c6c10ac74a07b0c178a1757a7dcf", "branch_name": "refs/heads/master", "committer_date": "2022-02-21T19:38:33", "content_id": "239e0ba3f8a9a46f8904ee3c14100e11e409df01", "detected_licenses": [ "MIT" ], "directory_id": "ae8d0783918ca0476c4ea617fc014c7436538c5a", "extension": "c"...
stackv2
#include <libcgc.h> #include "libc.h" #include "charter.h" #include "sparks.h" #include "data.h" #include "block.h" uint32* sparkles = NULL; uint32 sparkle_count = 0; void sparks(data_package data) { uint32 candidate_count; uint32 bar_buf[data.size]; __block uint32* bar_buf_ptr = (uint32*)bar_buf; read(&can...
2.65625
3
2024-11-18T20:55:41.331429+00:00
2023-09-01T08:06:28
5eda002a68ca9a0e29ada73e97148bbdb7d503f8
{ "blob_id": "5eda002a68ca9a0e29ada73e97148bbdb7d503f8", "branch_name": "refs/heads/master", "committer_date": "2023-09-01T10:45:38", "content_id": "e5458af8615a850ce86b1c4f4426a279e852d102", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "eda03521b87da8bdbef6339b5b252472a5be8d23", "extens...
stackv2
/* * Copyright (c) 2021, Gunnar Beutner <gunnar@beutner.name> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <elf.h> #include <limits.h> #include <sys/cdefs.h> __BEGIN_DECLS struct dl_phdr_info { ElfW(Addr) dlpi_addr; char const* dlpi_name; const ElfW(Phdr) * dlpi_phdr; ElfW(...
2.015625
2
2024-11-18T20:55:41.415936+00:00
2014-04-27T13:57:43
ed02840025efa7c5b549503816206c3c7b5bb94c
{ "blob_id": "ed02840025efa7c5b549503816206c3c7b5bb94c", "branch_name": "refs/heads/master", "committer_date": "2014-04-27T13:57:43", "content_id": "9bc85d026527fb9b95db39f49944dec72adb75ed", "detected_licenses": [ "MIT" ], "directory_id": "f7f5e39495655362b045c10723058ceb172d5a10", "extension": "c"...
stackv2
#include "parser.h" #include <stdlib.h> PUBLIC Parser* parser_create(void) { Parser* parser = malloc(sizeof(Parser)); parser_init(parser); return parser; } PRIVATE void parser_init(Parser* parser) { parser->type_string = mpc_new("type_string"); parser->suite = mpc_new("suite"); parser->lang...
2.5
2
2024-11-18T20:55:41.626923+00:00
2016-06-09T20:16:30
c69861d3f111e9f039dce6974883b061b2eed8d9
{ "blob_id": "c69861d3f111e9f039dce6974883b061b2eed8d9", "branch_name": "refs/heads/master", "committer_date": "2016-06-09T20:16:30", "content_id": "582ec45ded41d735b02527abf80729910110bb7f", "detected_licenses": [ "MIT" ], "directory_id": "99269b35f71eefa99c66d5c084c1bec578c6c7f9", "extension": "h"...
stackv2
#ifndef __SOCKET_H__ #define __SOCKET_H__ #include <stdio.h> #include <arpa/inet.h> // Return a nonzero value to stop listening. typedef int ListenCallback(char *message, int length, struct sockaddr_storage *remoteAddress, socklen_t remo...
2.40625
2
2024-11-18T20:55:41.700479+00:00
2016-05-30T10:20:15
a82cd677516db9597bdc36ff7066b93f22cdb114
{ "blob_id": "a82cd677516db9597bdc36ff7066b93f22cdb114", "branch_name": "refs/heads/master", "committer_date": "2016-05-30T10:20:15", "content_id": "38eb7181cdff89466abd2c2ebdb927457276d581", "detected_licenses": [ "MIT" ], "directory_id": "853c95632e559e2d8b771b1ba503b15433463270", "extension": "c"...
stackv2
/* $Id: f1750a_util.c,v 1.9 2011/07/18 17:46:04 alex Exp $ */ /******************************************************************************* File: f1750a_util.c MIL-STD-1750A Floating Point Utilities. Author: Alex Measday Purpose: The F1750A utilities are used to convert floating-point numbers ...
2.6875
3
2024-11-18T20:55:41.819902+00:00
2018-02-17T00:05:31
20d5999ff0638e7d0557104df6c4de14a40a3689
{ "blob_id": "20d5999ff0638e7d0557104df6c4de14a40a3689", "branch_name": "refs/heads/windows", "committer_date": "2018-02-17T00:05:31", "content_id": "146bbd5315089659fe806ff2befa76deef80f813", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a7803d38c49c393009bd85ce54659bb8678840b8", "extensi...
stackv2
/* * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
2.328125
2
2024-11-18T20:55:42.053928+00:00
2018-02-21T15:44:51
bc2b4b64d81cb8193e0910df7caf6567bb19edf4
{ "blob_id": "bc2b4b64d81cb8193e0910df7caf6567bb19edf4", "branch_name": "refs/heads/master", "committer_date": "2018-02-21T15:44:51", "content_id": "8d6326477821e6158c192c58f408207223d12d3b", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "5c1c6fe8ad7c8e35e1e310c673c8f6dc...
stackv2
/** * @file tdinterp.c * @brief Roussos-Maragos interpolation by tensor-driven diffusion * @author Pascal Getreuer <getreuer@gmail.com> * * * This program is free software: you can use, modify and/or * redistribute it under the terms of the simplified BSD License. You * should have received a copy of this licen...
2.25
2
2024-11-18T20:55:42.641067+00:00
2019-07-15T19:53:28
c80d4481a9bb5bfda87c644aeffb440298e6074f
{ "blob_id": "c80d4481a9bb5bfda87c644aeffb440298e6074f", "branch_name": "refs/heads/master", "committer_date": "2019-07-17T00:43:37", "content_id": "cda3cc72d8c76ce608cc549f8ed591ec30a6ca53", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "56a7b6e3bd793f4dd49ba17cb6fdd7b54447ec1c", "extens...
stackv2
/* lens_quantile_bench.c Marina C., Jan 25, 20186 FreeBSD-style copyright and disclaimer apply */ #include "bench.h" struct quantile_bench { struct optics *optics; struct optics_lens *lens; }; // ----------------------------------------------------------------------------- // record bench // --------...
2.34375
2
2024-11-18T20:55:42.746113+00:00
2019-02-10T02:46:17
e7f34223e9ace0804933736c937d09d43cb6d028
{ "blob_id": "e7f34223e9ace0804933736c937d09d43cb6d028", "branch_name": "refs/heads/master", "committer_date": "2019-02-10T02:46:17", "content_id": "011861e8360f3e3b8a5bb83574446c6e24ce8c32", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6e747ddc6658b3e8cada4cc14269ba18d6f12322", "extensio...
stackv2
#include "SDLExVulkan.h" #include "../Utils/MathUtils.h" #include "../MathEx/MathEx.h" #include "../Utils/ArrayList.h" Vertex Vertices[6] = { { { 0.25f, -1.0f }, { 1.0f, 1.0f, 1.0f }, { 0.0f, 0.0f } }, { { 0.25f, 1.0f }, { 1.0f, 1.0f, 1.0f }, { 0.0f, 1.0f } }, { { 0.9f, 1.0f }, { 1.0f, 1.0f, 1.0f }, { 1.0f, 1.0f } ...
2.328125
2
2024-11-18T20:55:42.868843+00:00
2019-06-15T22:06:09
9d63b19481f93f49dab08d1151f60ba6851152da
{ "blob_id": "9d63b19481f93f49dab08d1151f60ba6851152da", "branch_name": "refs/heads/master", "committer_date": "2019-06-15T22:06:09", "content_id": "729ff1e5f227bcd2bf63880269b7f664e5360ae4", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "b8d8d203f878f03171d5d9dd902e4bc5e8ee67e8", "extens...
stackv2
/* * Copyright (c) 2014 Mohamed Aslan <maslan@sce.carleton.ca> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS...
2.15625
2
2024-11-18T20:55:45.744145+00:00
2019-01-10T23:37:11
814b6091044a5c78ac7b05966e32157f9d6a493c
{ "blob_id": "814b6091044a5c78ac7b05966e32157f9d6a493c", "branch_name": "refs/heads/master", "committer_date": "2019-01-10T23:37:11", "content_id": "c76508b3e3be255ee63dfb756ffb0c8c660c9780", "detected_licenses": [ "MIT" ], "directory_id": "2f49f93c8464370ec1266efe11312662a542107b", "extension": "c"...
stackv2
/* * event-parser.c * * Created on: Jan 7, 2019 * Author: tommaso */ #include <string.h> #include <jansson.h> #include "event-engine.h" #include "logger/log.h" void parse_input_buffer (char* buffer, size_t len, char* response, size_t* response_length, void* ptr) { log_debug("Parsing function"); event_e...
2.59375
3
2024-11-18T20:55:46.210899+00:00
2017-12-14T03:13:06
f03ef3c1bba19ebb8b3515eded248cd11c3780ef
{ "blob_id": "f03ef3c1bba19ebb8b3515eded248cd11c3780ef", "branch_name": "refs/heads/master", "committer_date": "2017-12-14T03:13:06", "content_id": "04bf2dc1022736d236322cfede9375e1c7c8edba", "detected_licenses": [ "MIT" ], "directory_id": "1924644bc1c87e947544b6a930b15d1ddc00be57", "extension": "c"...
stackv2
/* * C Program for Depth First Binary Tree Search without using * Recursion */ #include <stdio.h> #include <stdlib.h> struct node { int a; struct node *left; struct node *right; int visited; }; void generate(struct node **, int); void DFS(struct node *); void delete(struct node **); int main() { ...
3.765625
4
2024-11-18T20:55:46.610619+00:00
2021-03-01T06:32:19
6f991440757636365c5f7ff6d9db8d838ebcaece
{ "blob_id": "6f991440757636365c5f7ff6d9db8d838ebcaece", "branch_name": "refs/heads/master", "committer_date": "2021-03-01T06:32:19", "content_id": "f9e4111a226485e5f5427cda2b545e419e7ba83d", "detected_licenses": [ "MIT" ], "directory_id": "5bde85e828b76793e9769df81b90ef61888f74fb", "extension": "h"...
stackv2
#ifndef MAIN_C_GRAPH_GENERATE_H #define MAIN_C_GRAPH_GENERATE_H #include <stdlib.h> struct edge{ int v; int w; struct edge *next; }; struct node{ int u; struct edge *e; struct node *next; }; struct graph{ // 邻接表表示 int size; int edge_num; struct node *first; struct node *la...
3.09375
3
2024-11-18T20:55:46.691753+00:00
2012-07-05T06:20:54
4ad134d454d614276e8e8a2a0e065601bd10012c
{ "blob_id": "4ad134d454d614276e8e8a2a0e065601bd10012c", "branch_name": "HEAD", "committer_date": "2012-07-05T06:20:54", "content_id": "c68f765a6819cb85cca49cff291229b95443c46a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "b4b36c26891cb94f6ca1c9d05c013443f91a4739", "extension": "c", ...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <bcurses.h> #define INSIDE(_r, _x, _y) ((_x >= 0) && (_x <= _r->size_x) && (_y >= 0) && (_y <= _r->size_y)) #define HLINE '-' #define VLINE '|' #define CROSS '+' struct canvas { scr* s; int base_x; int base_y; int size_x;...
2.765625
3
2024-11-18T20:55:48.824147+00:00
2019-10-14T05:32:53
78979ff2d09813fc7afedc701f8a53cc2db8f6e4
{ "blob_id": "78979ff2d09813fc7afedc701f8a53cc2db8f6e4", "branch_name": "refs/heads/master", "committer_date": "2019-10-14T05:32:53", "content_id": "3e59c52a6ef334d5f6f842ac991b2eda1e38f26d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0c4bd1b977cc714a8a6b2839f51c4247ecfd32b1", "extensio...
stackv2
/* * This file contains functions that you can use directly to * create and train a neural network. Everything is allocated dynamically * so you will have to free up memory at the end of your * program. Feel free to modify and edit the code. * * Made by Tamás Imets * Date: 18th of November, 2018 * Version: 0.1v...
3.203125
3
2024-11-18T20:55:49.357506+00:00
2015-05-12T15:54:46
c0c19f936a48ee90086f5a78b46c1c037bc65935
{ "blob_id": "c0c19f936a48ee90086f5a78b46c1c037bc65935", "branch_name": "refs/heads/master", "committer_date": "2015-05-12T15:54:46", "content_id": "951136ca7a2d548a5a0fc96ef489e7f72eb6c557", "detected_licenses": [ "MIT" ], "directory_id": "0bae42676f118cb64fef7b72ab2bf901de8920b4", "extension": "c"...
stackv2
#include "semaforos.h" #include <sys/shm.h> #include <sys/sem.h> #include <time.h> /* mutex.wait() room1 += 1 mutex.signal() t1.wait() room2 += 1 mutex.wait() room1 -= 1 if room1 == 0: mutex.signal() t2.signal() else: mutex.signal() t1.signal() t2.wait() ...
2.671875
3
2024-11-18T20:55:49.624903+00:00
2023-08-15T21:28:57
40f295fb7e95014ce088829c6cf479fa6da39617
{ "blob_id": "40f295fb7e95014ce088829c6cf479fa6da39617", "branch_name": "refs/heads/master", "committer_date": "2023-08-15T21:28:57", "content_id": "85ae7f972187966a375c5553487d19e356139191", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c8a669ab64463ea66eacc9e97e8647213b4ed26f", "extensio...
stackv2
/*! * Copyright 1997, Regents of the University of Minnesota * * \file * \brief This is the entry point of parallel ordering routines * * \date Started 8/1/2008 * \author George Karypis * \version\verbatim $Id: ometis.c 10666 2011-08-04 05:22:36Z karypis $ \endverbatime * */ #include <parmetislib.h> /*****...
2.046875
2
2024-11-18T20:55:50.008037+00:00
2021-09-29T18:02:34
d9985b5306d12dbdae167de2ecff7c54310542fd
{ "blob_id": "d9985b5306d12dbdae167de2ecff7c54310542fd", "branch_name": "refs/heads/main", "committer_date": "2021-09-29T18:02:34", "content_id": "d7bfcff121f0230b667ed4e304180f42cbb8b539", "detected_licenses": [ "MIT" ], "directory_id": "2e86de3fa6ae8b0aef97c985de433b4475b1a294", "extension": "c", ...
stackv2
#include <stdio.h> #define size 10 struct Stack { int a[size]; int top; }; void push (struct Stack *s, int x) { if (s->top == size-1) printf("Stack is Full!"); else { s->top = s->top + 1; s->a[s->top] = x; } } int pop (struct Stack *s) { if (s->top == -1) { ...
3.96875
4
2024-11-18T20:55:50.167263+00:00
2016-05-13T17:11:40
cf8355d9d4aa1c01c4261a07995764b09a32fac7
{ "blob_id": "cf8355d9d4aa1c01c4261a07995764b09a32fac7", "branch_name": "refs/heads/master", "committer_date": "2016-05-13T17:12:29", "content_id": "9589dbbe93fb0654a7dcdc2d2a3cea37bd2ba641", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "5c2674e36384de98742aba658b169664a1c74495", "extens...
stackv2
#define _XOPEN_SOURCE #define is_little_endian() (1 == *(unsigned char *)&(const int){1}) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <alloca.h> #include <locale.h> #include <wchar.h> void dump_bigendian(FILE *fp, void *p_in, int size) { unsigned char *p; int i; for...
2.84375
3
2024-11-18T20:55:50.452788+00:00
2016-04-29T09:50:35
d33490b5fadd6ca5d7b71863880abcca2f540eea
{ "blob_id": "d33490b5fadd6ca5d7b71863880abcca2f540eea", "branch_name": "refs/heads/master", "committer_date": "2016-04-29T09:50:35", "content_id": "0ddccd47644a83d947f03fcfffeef33c2df03215", "detected_licenses": [ "MIT" ], "directory_id": "bb728a0b81f55fb73f30d60a7e7dac1d3b67fa94", "extension": "c"...
stackv2
/** * \file exo8.c * \author Pallamidessi joseph * \version 1.0 * \date 16 octobre 2012 * \brief * * \details * */ #include <sys/types.h> #include <sys/wait.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <ctype.h> #include <unistd.h> #include <stdio.h> #include <stdl...
2.78125
3
2024-11-18T20:55:50.510883+00:00
2013-04-17T18:42:40
b1728cc2dde83bce46bdffc32e07abfea4c88d13
{ "blob_id": "b1728cc2dde83bce46bdffc32e07abfea4c88d13", "branch_name": "refs/heads/master", "committer_date": "2013-04-17T18:42:40", "content_id": "ee827b56ea84ba1a6e04f39ef68f554f77574965", "detected_licenses": [ "MIT" ], "directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef", "extension": "c"...
stackv2
/**************************************************************************** printer.c Code for handling printer devices ****************************************************************************/ #include "emu.h" #include "printer.h" // device type definition const device_type PRINTER = &device_creato...
2.375
2
2024-11-18T20:55:50.725900+00:00
2023-06-17T17:46:23
28a293623f2b18c05b0c3e4bb953ff3841af4562
{ "blob_id": "28a293623f2b18c05b0c3e4bb953ff3841af4562", "branch_name": "refs/heads/master", "committer_date": "2023-07-11T12:25:31", "content_id": "dce1fe25384ee714d2aa942e4ef7f6e1ec0827d9", "detected_licenses": [ "Unlicense" ], "directory_id": "01ace0f357a25a895df67b2fe60020a9e9713766", "extension...
stackv2
/* It is technically possible for a delete to cancel an update, then for a duplicate of the update to appear and remain forever, so we prevent that by leaving deletions in the data structure for a few minutes to ensure that no stray network packet could be still circulating. We use the IPv4 max TTL even th...
2.09375
2
2024-11-18T20:55:51.120860+00:00
2021-02-01T16:54:30
e2d7d90a48ec04cd378ea067be87a6506c6af071
{ "blob_id": "e2d7d90a48ec04cd378ea067be87a6506c6af071", "branch_name": "refs/heads/main", "committer_date": "2021-02-01T16:54:30", "content_id": "5001888cc53700067eca3ff57305f189a658a1b6", "detected_licenses": [ "MIT" ], "directory_id": "c72f4da813b0e0357141a9e110c66b3e79d9419c", "extension": "c", ...
stackv2
/** Напишите функцию с названием printer. Функция принимает два указателя на целое число. Первый указатель указывает на начало массива, а второй на элемент, следующий за последним элементом массива. Напишите код, который выводит каждый четвертый элемент массива, если он делится на 4 нацело. Примените для вывода функцию...
3.203125
3
2024-11-18T20:55:51.818862+00:00
2021-09-14T01:06:12
3257221a0c188cee4d611d6917baba340df0dce5
{ "blob_id": "3257221a0c188cee4d611d6917baba340df0dce5", "branch_name": "refs/heads/main", "committer_date": "2021-09-14T01:06:12", "content_id": "92bde0818c02553f26b55a40c1aacec5c4c60e8e", "detected_licenses": [ "MIT" ], "directory_id": "a68ba3fc0eb86b0ea1fa21152ba253eeee06b63e", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> /* Faça um programa que leia o preço de uma mercadoria com diferença de um mês e calcule a taxa de inflação (ou deflação) mensal dessa mercadoria. */ int main (void) { float MP, MA, Inflacao; printf("Informe o valor da mercadoria no Mes Passado: "); scanf("%f",&MP); ...
3.25
3
2024-11-18T20:55:52.889456+00:00
2016-11-27T02:47:34
4a5bd275e257c126d1dae2a7a1f3f92114761c2e
{ "blob_id": "4a5bd275e257c126d1dae2a7a1f3f92114761c2e", "branch_name": "refs/heads/master", "committer_date": "2016-11-27T02:47:34", "content_id": "8bc89005a482392daff1ec4bf380f95a7e3bbf60", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "f720369e167889b8c65fb5c9f9ded80a8378a200", "extens...
stackv2
#include <hterm.h> #include <stdio.h> #include <string.h> #include <errno.h> void reset_command( void *data, char *args ) { hterm_t *term; term = (hterm_t*)data; term->bytes = 0; term->received = 0; clearok( curscr, TRUE ); hwin_clear( &term->scr ); hwin_refresh( &term->scr ); } void cle...
2.4375
2
2024-11-18T20:55:53.837265+00:00
2017-06-30T21:32:06
0f9a5075341b25e25728734f481cda1433a54d4e
{ "blob_id": "0f9a5075341b25e25728734f481cda1433a54d4e", "branch_name": "refs/heads/master", "committer_date": "2017-06-30T21:32:06", "content_id": "fd8d73da2def6fbdd9f57762f08e0ec2f7f35a00", "detected_licenses": [ "MIT" ], "directory_id": "4bd36db56cad5b790e01e48dd55be67a638222c2", "extension": "h"...
stackv2
#include<stdio.h> #include<stdlib.h> #include<string.h> //strcpy() typedef struct node{ char * first_name[25] ; char * last_name[25]; char * phone[10] ; char * email[50]; char * title[25]; struct ContactNode *pNext ; //self referential to get to the next node in the linked list. }ContactNode //allocat...
2.78125
3
2024-11-18T20:55:53.899330+00:00
2020-06-07T05:09:23
945a6b0b7b74f62906da83f418f6e5b90bbeecd0
{ "blob_id": "945a6b0b7b74f62906da83f418f6e5b90bbeecd0", "branch_name": "refs/heads/master", "committer_date": "2020-06-07T05:09:23", "content_id": "cda273614a154d46d1653ff6d46f65f61cb49892", "detected_licenses": [ "MIT" ], "directory_id": "884c92600f36c2f5a65263cb130062c13900b735", "extension": "c"...
stackv2
/* * MemAddresses.c * * Created on: May 26, 2020 * Author: akshaybodla */ #include <stdio.h> #include <stdlib.h> void memMain() { puts("Memory Adresses!"); puts("Each variable points to a specific location that we can \naccess w/ the '&' symbol"); int memory = 9; //access the location of memory with...
3.21875
3
2024-11-18T20:55:53.966476+00:00
2021-02-13T08:10:53
3ea1f0748d3c3025a3eca196dbd12314b66e606a
{ "blob_id": "3ea1f0748d3c3025a3eca196dbd12314b66e606a", "branch_name": "refs/heads/main", "committer_date": "2021-02-13T08:10:53", "content_id": "1d52d582f6a14182ece1bc3db41c86f3fb2b4e3d", "detected_licenses": [ "MIT" ], "directory_id": "2b46746191b725f53d5d9ace994674de1e3d12e4", "extension": "c", ...
stackv2
/////////////////////////////////////////////////////////// // // Υλοποίηση του ADT Set μέσω AVL Tree // /////////////////////////////////////////////////////////// #include <stdlib.h> #include <assert.h> #include "ADTSet.h" // Υλοποιούμε τον ADT Set μέσω AVL, οπότε το struct set είναι ένα AVL Δέντρο. struct set { ...
2.703125
3
2024-11-18T20:55:54.176934+00:00
2023-07-20T03:24:17
6a3ce42a7cea9f6a0004d4d959439b04def1febe
{ "blob_id": "6a3ce42a7cea9f6a0004d4d959439b04def1febe", "branch_name": "refs/heads/master", "committer_date": "2023-07-20T03:24:17", "content_id": "eb3dd4e74e83f16336285f99dec9f658a9167a8e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "865b94acf7c6314e362a3118b4be6e88673c0540", "extensio...
stackv2
/**************************************************************************//** * @file ble_stack_status.h * @brief This file contains the functions of HOST to HCI interface. * * * @defgroup ble_common BLE Common * @{ * @details This file shows the common BLE definitions and functions. (ble_cmd.h, ble_event....
2.015625
2
2024-11-18T20:55:54.346022+00:00
2014-09-23T02:50:15
da1953b9165d943419a7627e07942a33a469ee05
{ "blob_id": "da1953b9165d943419a7627e07942a33a469ee05", "branch_name": "refs/heads/master", "committer_date": "2014-09-23T02:50:15", "content_id": "b2cc8c787ce46756c30895f4ba58dd7f2e03c235", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d21d86376212b74ed66102914ea11ba504c15b78", "extens...
stackv2
/** * Copyright (c) 2011, Willem-Hendrik Thiart * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * @file * @brief Manage connection with tracker * @author Willem Thiart himself@willemthiart.com * @version 0.1 */ #include <stdio.h> #include <stdbool.h> #i...
2.1875
2
2024-11-18T20:55:54.425260+00:00
2018-12-14T06:21:36
1caa5082d568b3b05b1f91821c6a9dc866e94b5e
{ "blob_id": "1caa5082d568b3b05b1f91821c6a9dc866e94b5e", "branch_name": "refs/heads/master", "committer_date": "2018-12-14T06:21:36", "content_id": "6079efc8c12362d46f7d391f76699c11107f4a3b", "detected_licenses": [ "MIT" ], "directory_id": "7b9778cf6df54db8e16ed4f66bb696185928ee1a", "extension": "h"...
stackv2
/* * MIT License * * Copyright (c) 2018 Matheus H. J. Saldanha <mhjsaldanha@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 limita...
2.46875
2