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-19T02:37:43.900964+00:00
2017-05-23T20:43:24
acd3cf281d1de31638151d6baab248dc359c6445
{ "blob_id": "acd3cf281d1de31638151d6baab248dc359c6445", "branch_name": "refs/heads/master", "committer_date": "2017-05-23T20:43:24", "content_id": "f2434a9b8503e1c2d53817d88606ec001eacddc6", "detected_licenses": [ "MIT" ], "directory_id": "89a3cbc3c846f72a02ef5eb734cf37ce69a1d863", "extension": "c"...
stackv2
#include "types.h" #include "user.h" int main(int argc, char *argv[]){ int i = 500; int virtual =(int)&i; int physical=0; printf(1,"\n Testing Part 1: Memory translation system call: \n system call v2p(int virtual, int *physical) \n\n"); if(v2p(virtual, &physical)) printf(1,"\n Virtual address 0x%x i...
2.921875
3
2024-11-19T02:37:44.285853+00:00
2021-08-03T21:05:09
4d3d760537fb0527489e28009f878ec1fd26065c
{ "blob_id": "4d3d760537fb0527489e28009f878ec1fd26065c", "branch_name": "refs/heads/main", "committer_date": "2021-08-03T21:05:09", "content_id": "62b29cf416b2c6c31241f6e82c4129d9820be646", "detected_licenses": [ "MIT" ], "directory_id": "550185c4980b1ebd6d19a93763d009951b458cf0", "extension": "c", ...
stackv2
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // ********************************************************** // DEFINITIONS #ifndef NL1 #define NL1 2 //layer size #define NL2 2 #define NINPUT 12 //input size #endif // ********************************************************** // VARS exte...
2.9375
3
2024-11-19T02:37:46.328427+00:00
2017-07-13T10:08:14
57b25a5c8c8b3bd3ea6bd4dd901efcae8f39c78f
{ "blob_id": "57b25a5c8c8b3bd3ea6bd4dd901efcae8f39c78f", "branch_name": "refs/heads/master", "committer_date": "2017-07-13T10:08:14", "content_id": "4992ecdebb5891d6709269ba2ca045384ac08595", "detected_licenses": [ "MIT" ], "directory_id": "7f95a01ad00c218f4f81228f478464fa76fc0a7e", "extension": "c"...
stackv2
/* Test STunQuote $Id: tSTunQuote.c 1.2 1999/06/04 libtsp-v6r3 $ */ #include <string.h> #include <libtsp.h> int main (int argc, const char *argv[]) { int n; char string[1024]; n = STunQuote (argv[1], argv[2], string); printf ("STunQuote: \"%s\"\n", string); if (n != strlen (string)) UThalt ("...
2.21875
2
2024-11-19T02:37:46.523311+00:00
2023-08-06T17:13:07
2cab52c7ea77840045ee43fc1b14eb1ac0df781e
{ "blob_id": "2cab52c7ea77840045ee43fc1b14eb1ac0df781e", "branch_name": "refs/heads/master", "committer_date": "2023-08-06T19:27:54", "content_id": "eb837b331cd83ba6089e5c5f218df0a1e80fadc8", "detected_licenses": [ "MIT" ], "directory_id": "d4166e3dbfed91f40a1fef9e87c2f38461d00c79", "extension": "c"...
stackv2
#include <assert.h> #include <stdlib.h> #include <sys/mman.h> #include <unistd.h> #include <xkbcommon/xkbcommon.h> #include "log.h" #include "swaylock.h" #include "seat.h" #include "loop.h" static void keyboard_keymap(void *data, struct wl_keyboard *wl_keyboard, uint32_t format, int32_t fd, uint32_t size) { struct ...
2.03125
2
2024-11-19T02:37:46.719597+00:00
2021-05-30T15:29:44
bf4d4a157c0ae51d25858c808e051e319fe0f629
{ "blob_id": "bf4d4a157c0ae51d25858c808e051e319fe0f629", "branch_name": "refs/heads/master", "committer_date": "2021-05-30T15:29:44", "content_id": "3ac1c1f344d397760e404e57385203d05efdbbf4", "detected_licenses": [ "MIT" ], "directory_id": "c61b0aac80e47db7f22188fc613e9a3adb4aac7e", "extension": "c"...
stackv2
/* fmsimp2.c -- New and Improved File Management Simplifier. Copyright (C) 2017, 2018 Andrew Makousky 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.515625
3
2024-11-19T02:37:46.861533+00:00
2020-04-30T20:53:25
22266eee84438ebd8761ce8da218ba69ca4127db
{ "blob_id": "22266eee84438ebd8761ce8da218ba69ca4127db", "branch_name": "refs/heads/dev-test", "committer_date": "2020-04-30T20:53:25", "content_id": "e0300abbd53e71badac27af73a9f19b6f316c6fb", "detected_licenses": [ "MIT" ], "directory_id": "48ef720c1e853bd95d46bb8e5cd1915a22e5b1ab", "extension": "...
stackv2
#include <stdint.h> #include <stdbool.h> #include "py/mpconfig.h" #include "bcm283x_uart.h" #include "uart.h" #define IS_RX_RDY (!(uart0->FR & (1 << 4))) #define RX_CH (uart0->DR) #define IS_TX_RDY (!(uart0->FR & (1 << 5))) #define TX_CH(c) (uart0->DR = (c)) volatile uart_t *uart0; static void uart0_init_with_r...
2.3125
2
2024-11-19T02:37:46.928293+00:00
2021-09-30T12:57:29
4ac067ad015ee99b8d75a069fe3f7f63a6a9b853
{ "blob_id": "4ac067ad015ee99b8d75a069fe3f7f63a6a9b853", "branch_name": "refs/heads/main", "committer_date": "2021-09-30T12:57:29", "content_id": "4efb6c5872d6636b549eaaab36f653714f0ad928", "detected_licenses": [ "MIT" ], "directory_id": "7d27fd581a405f9c021d42fa94bb6c0209a3299c", "extension": "c", ...
stackv2
#include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Node{ struct Node* left; struct Node* right; int data; }Node; Node* newNode(int data){ Node* node=(Node*)malloc(sizeof(Node)); node->left=node->right=NULL; node->data=data; return node; } int ma...
3.375
3
2024-11-19T02:37:47.062150+00:00
2021-03-25T14:10:25
f7b0e7010a8b6d7b71c7450d0e93940842025907
{ "blob_id": "f7b0e7010a8b6d7b71c7450d0e93940842025907", "branch_name": "refs/heads/master", "committer_date": "2021-03-29T14:42:15", "content_id": "8298985d7427bebed2cfd6b568f337353572e7f0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3f7ffe39dd26e1272461f83852a67ef026db1e8b", "extensio...
stackv2
/* * Copyright (c) 2016-2021 Samsung Electronics Co., Ltd All Rights Reserved * * Contact: Krzysztof Jackiewicz <k.jackiewicz@samsung.com> * * 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 Lic...
2.078125
2
2024-11-19T02:37:48.804019+00:00
2020-03-27T20:11:33
17d037521cdb516925a588bd87320a2df5242aec
{ "blob_id": "17d037521cdb516925a588bd87320a2df5242aec", "branch_name": "refs/heads/master", "committer_date": "2020-03-27T20:11:33", "content_id": "8210f34260e14b3a1ffb422fbba73f2cedf8e394", "detected_licenses": [ "MIT" ], "directory_id": "83f46917f0f8647a9a201823f2ab769f8b8443c3", "extension": "c"...
stackv2
/* Create processes as shown in figure and print their IDs and parent IDs P1 / \ C1 C2 / \ / \ C3 C4 C5 C6 */ #include <stdio.h> /* printf */ #include <sys/types.h> /* pid_t */ #include <unistd.h> /* fork */ #include <sys/wait.h> /* wait */ int main() ...
3.5
4
2024-11-19T02:37:49.707997+00:00
2018-05-28T22:34:42
23c7543402db988eb3a13e42536e33bb2621cfbd
{ "blob_id": "23c7543402db988eb3a13e42536e33bb2621cfbd", "branch_name": "refs/heads/master", "committer_date": "2018-05-28T22:34:42", "content_id": "46ce44f5277e72451ec85c084862577e121db076", "detected_licenses": [ "MIT" ], "directory_id": "aea9456d090d539a46ea4f4bfa44da99f6235399", "extension": "c"...
stackv2
#include <inttypes.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include "cixl/arg.h" #include "cixl/cx.h" #include "cixl/emit.h" #include "cixl/error.h" #include "cixl/scope.h" #include "cixl/str.h" #include "cixl/sym.h" struct cx_sym *cx_sym_init(struct cx_sym *sym, const char *id, size_t tag) { ...
2.09375
2
2024-11-19T02:37:49.786588+00:00
2023-07-29T19:59:37
0942a900a07518676cb6de56d82b291944a27507
{ "blob_id": "0942a900a07518676cb6de56d82b291944a27507", "branch_name": "refs/heads/master", "committer_date": "2023-07-29T19:59:37", "content_id": "36b38d12069c9a830100c886ac194e7f9612b949", "detected_licenses": [ "MIT" ], "directory_id": "a05a171f1e0afb9b9e688bbd498386ddfca28505", "extension": "c"...
stackv2
/* Automatically generated by mkrunetype.awk */ #include <stdlib.h> #include "../utf.h" #include "runetype.h" static const Rune title2[][2] = { { 0x1F88, 0x1F8F }, { 0x1F98, 0x1F9F }, { 0x1FA8, 0x1FAF }, }; static const Rune title1[] = { 0x01C5, 0x01C8, 0x01CB, 0x01F2, 0x1FBC, 0x1FCC, 0x1FFC, }; int istit...
2.296875
2
2024-11-19T02:37:49.889052+00:00
2019-07-17T21:13:04
efe79e35ceabcb6237ed14f786e43fe5ded211a5
{ "blob_id": "efe79e35ceabcb6237ed14f786e43fe5ded211a5", "branch_name": "refs/heads/master", "committer_date": "2019-07-17T21:13:04", "content_id": "5cbb4bea1e22b1a6eeb045bdaa4c64a790e7ebe2", "detected_licenses": [ "MIT" ], "directory_id": "b07333eea6b225e65c6ee9b57b7e1cf86c35f49c", "extension": "c"...
stackv2
#include <unistd.h> #include "stm32f103xb.h" #include "rgb.h" #include "../i2c.h" /* free rtos */ #include "FreeRTOS.h" #include "task.h" #include "octo.h" /* addr */ #define TCS34725_ADDRESS (0x29) /* < I2C address */ #define TCS34725_COMMAND_BIT (0x80) /* < Command bit */ #define TCS34725_ID (0x12) /*...
2.34375
2
2024-11-19T02:37:49.950038+00:00
2023-05-18T16:37:59
4e8304713ad2fdea7a9cd650a523936b8238c28d
{ "blob_id": "4e8304713ad2fdea7a9cd650a523936b8238c28d", "branch_name": "refs/heads/master", "committer_date": "2023-05-18T16:37:59", "content_id": "1f4af8275428d4661907ae7e3c23c78ea1058a6b", "detected_licenses": [ "MIT" ], "directory_id": "e4dda0ded617f354fea6404222b23ad54adcf139", "extension": "h"...
stackv2
#ifndef dtoa_benchmark_helper_h #define dtoa_benchmark_helper_h #include <stdint.h> #ifdef __cplusplus extern "C" { #endif /** Prints unsigned integer number to string (with null-terminator). @param val An unsigned integer number. @param buf A string buffer, at least 21 bytes. @return The string length. */ in...
2.171875
2
2024-11-19T02:37:50.154691+00:00
2020-05-14T03:26:13
7b9e02f02357dec29504a4ffc125aa7f26c36530
{ "blob_id": "7b9e02f02357dec29504a4ffc125aa7f26c36530", "branch_name": "refs/heads/master", "committer_date": "2020-05-29T19:37:48", "content_id": "4fda9f37be3483f88fda2b11ff4c15b5306a5fbc", "detected_licenses": [ "MIT" ], "directory_id": "4054a250ae5db77119bfc5fd54de94675a3231ca", "extension": "c"...
stackv2
/** * \file vccrypt_key_agreement_init.c * * Initialize a key agreement instance from an options structure. * * \copyright 2017 Velo Payments, Inc. All rights reserved. */ #include <cbmc/model_assert.h> #include <string.h> #include <vccrypt/key_agreement.h> #include <vpr/abstract_factory.h> #include <vpr/parame...
2.6875
3
2024-11-19T02:37:50.390179+00:00
2023-08-28T17:04:44
d2a96f7f03417f100c45411dbe8a8f681512ce55
{ "blob_id": "d2a96f7f03417f100c45411dbe8a8f681512ce55", "branch_name": "refs/heads/master", "committer_date": "2023-08-28T17:07:16", "content_id": "09b0b76d069fd7a3d5593ac75fdb2bb1edd928ef", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "7309a4d3579a04eecef51cb20238530ddfdd02ac", "extens...
stackv2
#include <stdio.h> #include "mpi.h" int main( int argc, char *argv[] ) { MPI_Comm comm1; int root=0; int rank2, size2, global_buf=1; int rank, size; MPI_Init ( &argc, &argv ); MPI_Comm_rank ( MPI_COMM_WORLD, &rank ); MPI_Comm_size ( MPI_COMM_WORLD, &size ); /* Setting up a new communicator */ MPI_Co...
2.484375
2
2024-11-19T02:37:50.603977+00:00
2020-04-02T14:23:35
d9ccee24e5480692150d711041419173b3118155
{ "blob_id": "d9ccee24e5480692150d711041419173b3118155", "branch_name": "refs/heads/master", "committer_date": "2020-04-02T14:23:35", "content_id": "f70c1ba6e39aa6bbedf9e9f8a4e2caaecae180d3", "detected_licenses": [ "Apache-2.0" ], "directory_id": "392627e2c888fb34aed2eeac3b2860adb3ba628f", "extensio...
stackv2
/* * Copyright 2014-2017 Jetperch LLC * * 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 agre...
2.09375
2
2024-11-19T02:37:50.700983+00:00
2020-12-04T11:20:05
9f664e0f9e141883a87f4314a20ae18878993900
{ "blob_id": "9f664e0f9e141883a87f4314a20ae18878993900", "branch_name": "refs/heads/master", "committer_date": "2020-12-04T11:20:05", "content_id": "60157c0c780ddc1367fd5a7a5286909ebaa57494", "detected_licenses": [ "MIT" ], "directory_id": "bd678be8bf79d8ab2df7550edccb15d48c369793", "extension": "c"...
stackv2
/* ** Infrastructure for simulating Oz programs. ** ** Original emulator by Zoltan Somogyi. ** Changes and extensions by Harald Sondergaard and by Matt Giuca. */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include <math.h> #include "std.h" #include "oz.h" #inclu...
2.21875
2
2024-11-19T02:37:51.447614+00:00
2021-07-30T15:51:24
a9ab3a1b3a1cb65026863f71c26542ed314d2099
{ "blob_id": "a9ab3a1b3a1cb65026863f71c26542ed314d2099", "branch_name": "refs/heads/main", "committer_date": "2021-07-30T15:51:24", "content_id": "e86be0027c06217c517d4186b28ffab70c3872ea", "detected_licenses": [ "MIT" ], "directory_id": "b71c68299fa9d13771e651e0132934b378b79fc7", "extension": "h", ...
stackv2
// // Created by smackem on 20.03.21. // #ifndef ZLN_OPCODE_H #define ZLN_OPCODE_H #include "types.h" enum op_code { /** * nop(): */ OPC_Nop = 0, /** * load_global(REG r_target, INT glb_addr): * r_target <- *glb_addr * glb_addr is relative to global segment base */ ...
2.421875
2
2024-11-19T02:37:52.378840+00:00
2023-01-17T17:16:53
635471d726b60399f418d948e8adcda3e3d67b65
{ "blob_id": "635471d726b60399f418d948e8adcda3e3d67b65", "branch_name": "refs/heads/master", "committer_date": "2023-01-17T17:17:57", "content_id": "ab571fe4f794d934fe345bd6474754af0ff374f7", "detected_licenses": [ "BSD-3-Clause", "Zlib" ], "directory_id": "c8b971ec1ab72930538d5e03703521f6b5314c04...
stackv2
#include <stdlib.h> #include <string.h> void *memchr(const void *s, int c, size_t n) { unsigned char *p; unsigned char v = c; while (n) { if (*p == v) break; n--; p++; } return n ? p : NULL; }
2.6875
3
2024-11-19T02:37:52.555514+00:00
2016-05-09T20:14:19
d27f734d18b7ee4323fdbf87ebd2b9f651ef8d2c
{ "blob_id": "d27f734d18b7ee4323fdbf87ebd2b9f651ef8d2c", "branch_name": "refs/heads/master", "committer_date": "2016-05-09T20:14:19", "content_id": "473948354113548e8a955886bacddaf0a0063495", "detected_licenses": [ "MIT" ], "directory_id": "fb5466bd08d2398bc0e7b68432a46ca01723c699", "extension": "c"...
stackv2
#include <stdio.h> /* * 03.Write a program that reads the radius r of a circle and prints its perimeter and area * formatted with 2 digits after the decimal point. */ int main() { double r; double Pi = 3.14; scanf("%lf", &r); double perimeter = 2*Pi*r; double area = Pi*r*r; printf("Perimet...
3.625
4
2024-11-19T02:37:52.875621+00:00
2023-08-17T16:08:06
61bc9b678ef7e9d0d282e6610ad89166e39bc580
{ "blob_id": "61bc9b678ef7e9d0d282e6610ad89166e39bc580", "branch_name": "refs/heads/main", "committer_date": "2023-08-17T16:08:06", "content_id": "a95171aab4493fceae35cfc03e75ed90a981fb7c", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066", "extensio...
stackv2
#include <petsc/private/matimpl.h> /*I "petscmat.h" I*/ typedef struct { Mat A; Mat D; /* local submatrix for diagonal part */ Vec w, left, right, leftwork, rightwork; PetscScalar scale; } Mat_Normal; static PetscErrorCode MatScale_Normal(Mat inA, PetscScalar scale) { Mat_Normal *a ...
2.359375
2
2024-11-19T02:37:52.951005+00:00
2014-12-28T01:26:55
8cf1c536a2c2523ac656bae9f5a84b9d7ee766b9
{ "blob_id": "8cf1c536a2c2523ac656bae9f5a84b9d7ee766b9", "branch_name": "refs/heads/master", "committer_date": "2014-12-28T01:26:55", "content_id": "9d50316a7b899cd7c76cd37e41758f05f28054b5", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "6482122bca428976d7195ef85514aa35aed5ae4e", "extens...
stackv2
#include "i8254pit.h" #include "arch64.h" void i8254pit_setup() { _a64_disable_interrupts(); // Write command register _a64_outb(I8254_CMD_PORT, I8254_CTL_SC0 | I8254_CTL_MODE3 | I8254_CTL_RW_WORD); // Write reload value unsigned short frequency = 11932*2; _a64_outb(I8254_CHANNEL0_PORT, freq...
2.03125
2
2024-11-19T02:37:53.146424+00:00
2017-09-17T01:23:41
6f1af1fd7a0866789f32e57007bfc9842df80738
{ "blob_id": "6f1af1fd7a0866789f32e57007bfc9842df80738", "branch_name": "refs/heads/develop", "committer_date": "2017-09-17T01:23:41", "content_id": "6e62fab788e00864491366d94bfa0b41403d0d9e", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "2f42828a59270da482668c0b695741fe0e5076df", "exten...
stackv2
#include "gimglib.h" void dump_typ (struct subfile_struct *typ) { struct garmin_typ *header = (struct garmin_typ *)typ->header; dump_comm(typ->header); printf("=== TYP HEADER ===\n"); printf("Codepage: %u\n", header->codepage); printf("Point: reloff=0x%x absoff=0x%x size=0x%x\n", header->point_datoff,...
2.171875
2
2024-11-19T02:37:53.411880+00:00
2023-06-24T15:51:43
9fb91a8d2e49341893a1e0396e22513dd167b1a0
{ "blob_id": "9fb91a8d2e49341893a1e0396e22513dd167b1a0", "branch_name": "refs/heads/master", "committer_date": "2023-06-24T15:51:43", "content_id": "e7f75e2004d43fef40a68ff2a684e09ecda13a68", "detected_licenses": [ "MIT" ], "directory_id": "25c64fb97b7cdb30ec1b6ddd2acf9a755fc33adf", "extension": "c"...
stackv2
#include "bump.h" #include "analyze.h" #include "inlineheap.h" #include "inlinequeue.h" #include "internal.h" #include "logging.h" #include "print.h" #include "rank.h" #include "sort.h" #define RANK(A) ((A).rank) #define SMALLER(A, B) (RANK (A) < RANK (B)) #define RADIX_SORT_BUMP_LIMIT 32 static void sort_bump (kiss...
2.140625
2
2024-11-19T02:37:53.793592+00:00
2021-05-02T05:45:42
5803ba66eb61dc53d7f4ea400ec1920809fc0cdc
{ "blob_id": "5803ba66eb61dc53d7f4ea400ec1920809fc0cdc", "branch_name": "refs/heads/UG", "committer_date": "2021-05-02T05:45:42", "content_id": "2fde08a2452c14c89a4e5e1ebce5bd7fb0a3db9c", "detected_licenses": [ "MIT" ], "directory_id": "83b664aa43698a61d1958b6e1cc44326086c65b0", "extension": "c", ...
stackv2
int findPeakElement(int* nums, int numsSize) { if(numsSize == 1) //if only one element return index of that number return 0; if(nums[0] > nums[1]) //if first two numbers give the answer return that return 0; if(nums[numsSize-1] > nums[numsSize-2]) //similary, like above check last two ...
3.3125
3
2024-11-19T02:37:53.870589+00:00
2017-08-13T09:57:37
55f1bbebbc96558e0e4ab3e6b75539a46940883a
{ "blob_id": "55f1bbebbc96558e0e4ab3e6b75539a46940883a", "branch_name": "refs/heads/master", "committer_date": "2017-08-15T18:54:01", "content_id": "774de0d45d001008868ba001e3a6f49d9b9d2c19", "detected_licenses": [ "MIT" ], "directory_id": "682af2cca3a2e2853418627430bc2b2c6f3603df", "extension": "c"...
stackv2
/** * Utility intended for proxying/duplicating/multiplexing single TTY * device into multiple PTY devices. Provided backend TTY device and * one or more frontend PTY devices are linked together thus whole * traffic is mirrored. * Original idea and concepts are borrowed from interceptty utility * maintained by Ch...
2.34375
2
2024-11-19T02:37:54.094454+00:00
2021-05-12T02:38:37
7c823b785465e4ab9c65049f1b02ffb5936effaa
{ "blob_id": "7c823b785465e4ab9c65049f1b02ffb5936effaa", "branch_name": "refs/heads/master", "committer_date": "2021-05-12T02:38:37", "content_id": "938b3f7ebd68bf0d86447c07414b0d147c224b8e", "detected_licenses": [ "Unlicense" ], "directory_id": "372c05d649cf0ce75b783da1126f0b607613ce86", "extension...
stackv2
/* questao3.c */ //exercicio A certo //exercicio B certo #include <stdio.h> #include <stdlib.h> /* Dica: se tiver que converter um byte (unsigned char) para outro tipo, use as funções abaixo. */ int byte_para_int(unsigned char c); long byte_para_long(unsigned char c); void imprime_hexadecimal(FILE *stream) { /*...
3.46875
3
2024-11-19T02:37:54.442595+00:00
2023-08-29T06:33:10
54bc0c91175b21235b46f6887c7fb9700a11aecb
{ "blob_id": "54bc0c91175b21235b46f6887c7fb9700a11aecb", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T06:33:10", "content_id": "40d9554949b6b4afb9859d6b5303bb7aca507c1c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "676acab8ff535019faff7da3afb8eecc3fa127f5", "extensio...
stackv2
#pragma once // MESSAGE PARAM_ACK_TRANSACTION PACKING #define MAVLINK_MSG_ID_PARAM_ACK_TRANSACTION 19 typedef struct __mavlink_param_ack_transaction_t { float param_value; /*< Parameter value (new value if PARAM_ACCEPTED, current value otherwise)*/ uint8_t target_system; /*< Id of system that sent...
2.21875
2
2024-11-19T02:37:54.856812+00:00
2019-04-09T03:23:50
f863e12cf4ad500cd5666e86395eb15981344d03
{ "blob_id": "f863e12cf4ad500cd5666e86395eb15981344d03", "branch_name": "refs/heads/master", "committer_date": "2019-04-09T03:23:50", "content_id": "3661172669be0bb75afcfc926e957275212a048b", "detected_licenses": [ "MIT" ], "directory_id": "e8ee6e342566de285a6d729a4f3119e82418d359", "extension": "h"...
stackv2
/* * Simple interface * * 15-122 Principles of Imperative Computation */ #ifndef _SIMPLE_H_ #define _SIMPLE_H_ int absval(int x) /*@requires x > INT_MIN; @*/ /*@ensures \result >= 0; @*/ ; struct point2d { int x; int y; }; #endif
2
2
2024-11-19T02:37:55.320734+00:00
2020-10-01T12:39:26
92c3eb29e578e1c55ac918cfb288b400434ae7d2
{ "blob_id": "92c3eb29e578e1c55ac918cfb288b400434ae7d2", "branch_name": "refs/heads/master", "committer_date": "2020-10-01T12:39:26", "content_id": "fafda760f261b4839aa9da5ef0b0fbba2251967d", "detected_licenses": [ "MIT" ], "directory_id": "4f3dd741ed435df108a88ab5080dfbd9a2a7c8cd", "extension": "c"...
stackv2
#include <mpi.h> #include <stdio.h> #include <stdlib.h> #define TAGINIT 0 #define TAGPHASE 1 #define NB_SITE 6 #define DIAMETRE 5 /* !!!!! valeur a initialiser !!!!! */ int rang; /** * Check if proc has finished protocol */ int notFinished(int * RCpt, int nb_voisins_in) { int i; for (i =...
2.515625
3
2024-11-19T02:37:55.483711+00:00
2021-05-01T04:06:47
23346095ac2fa9a7c6da473c9b51e92264570c5a
{ "blob_id": "23346095ac2fa9a7c6da473c9b51e92264570c5a", "branch_name": "refs/heads/main", "committer_date": "2021-05-01T04:06:47", "content_id": "4655502512a7fca2f2327cddf2263890a6a62318", "detected_licenses": [ "MIT" ], "directory_id": "a5fc86545150e9376ef0d7e589ec456bd528a971", "extension": "c", ...
stackv2
/*menu driven program to read a sparse matrix of integer values, search and print the appropriately triple < row, column, "value" > that represents the elements in the sparse matrix */ #include <stdio.h> struct sparse{ int row; int column; int value; }; void menu(); void read(int array[100][100],struct s...
3.46875
3
2024-11-19T02:37:55.561840+00:00
2020-11-02T22:42:26
c49d0d0011ea0ba0a3501b1f35777d781d285374
{ "blob_id": "c49d0d0011ea0ba0a3501b1f35777d781d285374", "branch_name": "refs/heads/main", "committer_date": "2020-11-02T22:42:26", "content_id": "d608d2e326a017501da82476c7e65b9a127de878", "detected_licenses": [ "MIT" ], "directory_id": "ffb2e1ca87b70dadd87c9df819ba2c926b1f5664", "extension": "c", ...
stackv2
/* * File: uart.c * Author: filip * * Created on October 30, 2020, 11:00 PM */ #include "xc.h" #include "uart.h" #include <stdio.h> #define QUEUE_SIZE 32 //Ring buffer, that contains all the data which has been read ring_buffer_t uart_ring_buffer; //Interrupt Service Routine for Receiving from UART1 void __at...
3.078125
3
2024-11-19T02:37:55.642502+00:00
2020-12-18T16:46:43
a6c66f838e0906614648196ea5b98ed35753f3bf
{ "blob_id": "a6c66f838e0906614648196ea5b98ed35753f3bf", "branch_name": "refs/heads/master", "committer_date": "2020-12-18T16:46:43", "content_id": "c654110974e725d0075cba1f177b4fe886685cda", "detected_licenses": [ "MIT" ], "directory_id": "5fddfe3a80d20a81830159a53e8ac4326b6cc8b0", "extension": "c"...
stackv2
#include <ncurses.h> #include <stdlib.h> #include <time.h> #include <locale.h> #include "list_ptr.h" // penser au COLOR_PAIR /**************************/ /* Parameters of the Game */ /**************************/ #define max(a, b) ((a > b) ? a : b) #define min(a, b) ((a > b) ? b : a) #define abs(a) ((a > 0) ? a : -a) ...
2.390625
2
2024-11-19T02:37:56.557837+00:00
2019-07-09T05:17:53
f58c644439f42bc427f1dd65dba5d4dd761a3106
{ "blob_id": "f58c644439f42bc427f1dd65dba5d4dd761a3106", "branch_name": "refs/heads/master", "committer_date": "2019-07-09T05:17:53", "content_id": "71166cd25ade4410e805b0e627e8244fd0202d94", "detected_licenses": [ "MIT" ], "directory_id": "8100825e940679afcd5d241d9474ad0271681902", "extension": "c"...
stackv2
#include<stdio.h> int main(){ int input; printf("숫자를 입력해 주세요:"); scanf("%d", &input); switch(input) { case 0: printf("입력된 숫자는 %d 입니다.\n",input); break; case 1: printf("입력된 숫자는 %d 입니다.\n",input); break; case 2: printf("입력된 숫자는 %d 입니다.\n",inpu...
3.171875
3
2024-11-19T02:37:56.912285+00:00
2017-06-19T13:05:26
9243dd2169e5a2495f0aea9e5239841aeaf77602
{ "blob_id": "9243dd2169e5a2495f0aea9e5239841aeaf77602", "branch_name": "refs/heads/master", "committer_date": "2017-06-19T13:05:26", "content_id": "cebfdf83138c61c0ede0444a1b0ddf9c7ebe0ab8", "detected_licenses": [ "MIT" ], "directory_id": "09f7afc4404d40811f24c2c256ba98033daec10e", "extension": "c"...
stackv2
// semantic_test/program_unit_neg2.c /* * 1 - PROGRAM UNIT (NEGATIVE TEST) */ // 1.2 - return error when function definition differ from its declaration void f1(); int f2(bool x); float f2(bool x) // error due to different return type from func decl { if(x){ return 1.0; } return 0.0; } ...
2.78125
3
2024-11-19T02:37:57.255262+00:00
2023-08-31T09:55:14
1b9a1db9592d8d13cf3667f85f58c91bb9f29797
{ "blob_id": "1b9a1db9592d8d13cf3667f85f58c91bb9f29797", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T22:02:14", "content_id": "0840968fdb756d1069829635229d9a508b5ac5a2", "detected_licenses": [ "MIT" ], "directory_id": "70ffcb065027032a399f44b9ec91e7b61d73583d", "extension": "c"...
stackv2
#include "config.h" #include <ccan/compiler/compiler.h> #include <common/configvar.h> #include <common/version.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* Only common/version.c can safely include this. */ # include "version_gen.h" const char *version(void) { return VERSION; } static char *vers...
2.359375
2
2024-11-19T02:37:57.833204+00:00
2019-05-03T00:21:08
90be732cd2bfdf47994ac200f759d2bc6723798d
{ "blob_id": "90be732cd2bfdf47994ac200f759d2bc6723798d", "branch_name": "refs/heads/master", "committer_date": "2019-05-03T00:21:08", "content_id": "10ebcebcf2d0739950ef1fb93fdc29b94d76f8fb", "detected_licenses": [ "MIT" ], "directory_id": "9596c7113fd48d9dc8a4001be3b1fb5693ad6835", "extension": "c"...
stackv2
// // Created by Yeonwoo Sung on 2018-12-19 // #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <stdarg.h> #include <sys/stat.h> #include <time.h> /* system call numbers */ #define READ_SYSCALL 0 //to read the file to copy the data of that file #define WRITE_SYSCALL 1 //to copy the data from the or...
2.96875
3
2024-11-19T03:27:31.846201+00:00
2020-08-16T13:51:23
52f85a76e979eb77b8066dd7ac3de85267d68c6c
{ "blob_id": "52f85a76e979eb77b8066dd7ac3de85267d68c6c", "branch_name": "refs/heads/master", "committer_date": "2020-08-16T13:51:23", "content_id": "743ad8afa8548ac9b45d2aab1fc49d802d07f311", "detected_licenses": [ "MIT" ], "directory_id": "25f6ef2cfa075d4c21e7e2a27a8b8669285b17e8", "extension": "c"...
stackv2
#include <stdio.h> int main() { int numero, somaPositivo = 0, somaNegativo = 0, zero = 0; for (int i = 0; i < 20; i++) { printf("Digite um numero: "); scanf("%d", &numero); if (numero > 0) { somaPositivo = somaPositivo + numero; } else if (numero < 0) { ...
3.375
3
2024-11-19T03:27:32.012649+00:00
2015-02-24T03:24:24
e5472eb36823c9ecdd673ac1e0678d08a309aa09
{ "blob_id": "e5472eb36823c9ecdd673ac1e0678d08a309aa09", "branch_name": "refs/heads/master", "committer_date": "2015-02-24T03:24:24", "content_id": "74d9bfc3bac7d4532c37ed8daec5bbbb4b7c5670", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e9ba6039024062291ec25b219d9df66f4675009c", "extensio...
stackv2
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/socket.h> #include <netinet/tcp.h> #include <netinet/in.h> #include <arpa/inet.h> #include "common.h" #include "server.h" #define MAX_WRITE 104857600 // 100MB /* Global variables */ int serverPort; char fl...
2.78125
3
2024-11-19T03:27:32.334472+00:00
2017-04-27T07:53:12
ed7dc345b9e8a94c8937a5cb8983edbab0ebab8a
{ "blob_id": "ed7dc345b9e8a94c8937a5cb8983edbab0ebab8a", "branch_name": "refs/heads/master", "committer_date": "2017-04-27T07:53:12", "content_id": "bebebe9647c4e22f7559ad24a0278873677f6ca5", "detected_licenses": [ "MIT" ], "directory_id": "985c72a711c7da14a5976ca09c42135f27d39bca", "extension": "c"...
stackv2
#include "list.h" list *createList(){ list *flist = malloc(sizeof(list)); flist->next = NULL; flist->name = NULL; flist->path = NULL; return flist; } list *addToList (char* name, char* path, int type, list *first) { while (first->next != NULL) first = first->next; first->next = ma...
3.1875
3
2024-11-19T03:27:32.732874+00:00
2022-10-10T09:52:23
430bdcb959482663084df691afd0223e63a53f81
{ "blob_id": "430bdcb959482663084df691afd0223e63a53f81", "branch_name": "refs/heads/main", "committer_date": "2022-10-10T09:52:23", "content_id": "c1b7089fd6647ad647d6f209a76ca2b444d58616", "detected_licenses": [ "MIT" ], "directory_id": "60c27b6c463cf94bb18049aef869b087cedb45be", "extension": "h", ...
stackv2
#ifndef NORMAL_H #define NORMAL_H struct Normal { double eta; double log_tau; double tau; }; /* Cumulative distribution function of the Normal distribution. */ double liknorm_cdf(const double x); /* Log of the cumulative distribution function of the Normal distribution. */ double liknorm_logcdf(const d...
2.46875
2
2024-11-19T03:27:32.869080+00:00
2020-01-12T19:34:30
a5f4e5cee8644771532caec9831d3196ee90ec2f
{ "blob_id": "a5f4e5cee8644771532caec9831d3196ee90ec2f", "branch_name": "refs/heads/master", "committer_date": "2020-01-12T19:34:30", "content_id": "ee9877dcef562eb2032db45dab34aeca33308f3e", "detected_licenses": [ "MIT" ], "directory_id": "4cf2458db1eb08f8b7f35219b71dd3434eb8e11d", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> // ********************************************************************** // PUCRS/EP // Leitura de arquivo PGM // // Marcelo Cohen // // marcelo.cohen@pucrs.br // ********************************************************************** typedef struct { int...
3.28125
3
2024-11-19T03:27:33.054175+00:00
2021-09-19T18:36:22
09d63fc67268321dde4b849c9a6226e13f7f5ffc
{ "blob_id": "09d63fc67268321dde4b849c9a6226e13f7f5ffc", "branch_name": "refs/heads/master", "committer_date": "2021-09-19T18:36:22", "content_id": "6dbed7ac2939df57631a1cbe18bc3b6c9b22d222", "detected_licenses": [ "MIT" ], "directory_id": "e86cb854a6835323a84e965586bfe2b60e512ff7", "extension": "c"...
stackv2
/* * AWS IoT EduKit - Core2 for AWS IoT EduKit * Factory Firmware v2.2.0 * clock.c * * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Softwa...
2.28125
2
2024-11-19T03:27:33.566895+00:00
2020-08-03T09:21:47
97c05877fbe1e4ee7556423de8084c0a97c68f13
{ "blob_id": "97c05877fbe1e4ee7556423de8084c0a97c68f13", "branch_name": "refs/heads/master", "committer_date": "2020-08-03T09:23:11", "content_id": "66835cf172aff77609ccc03e820cfa26268b7fed", "detected_licenses": [ "MIT" ], "directory_id": "f32728f2b8a8cf578f5eae4ab73adf9b431eb53c", "extension": "h"...
stackv2
#pragma once #include "types.h" // Page size is 4 KiB #define PAGE_SIZE 0x1000 // Number of entries in a page table #define PAGE_TABLE_LENGTH 1024 #define IS_PAGE_ALIGNED(x) (((x) & 0x00000FFF) == 0) #define IS_NOT_PAGE_ALIGNED(x) (((x) & 0x00000FFF) != 0) // Increment value to the next page boundary #define NE...
2.65625
3
2024-11-19T03:27:33.722397+00:00
2022-05-16T07:36:42
75f41a9a6d7c3bd02349cf112d351c48387eb85d
{ "blob_id": "75f41a9a6d7c3bd02349cf112d351c48387eb85d", "branch_name": "refs/heads/master", "committer_date": "2022-05-16T07:39:01", "content_id": "58a8c3f8fcbf34b9cc9c2237cb0c30c1d6e20907", "detected_licenses": [ "Apache-2.0" ], "directory_id": "57091f6b809027a73ab49ecf4931153c93701d6a", "extensio...
stackv2
// general protection fault in hfs_find_init // https://syzkaller.appspot.com/bug?id=c2fd07ae5213991a1b95eadee9205b41ac1aa6e2 // status:open // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include <endian.h> #include <errno.h> #include <fcntl.h> #include <linux/loop.h> #include ...
2.0625
2
2024-11-19T03:27:34.636940+00:00
2021-09-18T23:38:20
b24d47f8b7b88a564afd9fdeef41eb70f21f82f5
{ "blob_id": "b24d47f8b7b88a564afd9fdeef41eb70f21f82f5", "branch_name": "refs/heads/master", "committer_date": "2021-09-18T23:38:20", "content_id": "abb4ce330d7384eb7e7fed2edb662ff183320555", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "eaead34a9da21eb8f01a88be12798adf0eec220d", "extens...
stackv2
/* SPDX-License-Identifier: BSD-2-CLAUSE */ #include <assert.h> #include <unistd.h> #include <pthread.h> #include <semaphore.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include "barrier.h" #include "pmu.h" #include "priority.h" #include "utils.h" #undef ITERATION #define ITERATION 100 * 1000 #de...
2.609375
3
2024-11-19T03:27:37.695556+00:00
2018-06-19T19:28:29
7458538d3948d6e3ca60a0dad75619e09c5e9bea
{ "blob_id": "7458538d3948d6e3ca60a0dad75619e09c5e9bea", "branch_name": "refs/heads/master", "committer_date": "2018-06-19T19:28:29", "content_id": "93f8cb606667d9ebd82326dbed310e9f5da8670b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c3b81c80757c71bf37ac2814171b0ff7f33b0be1", "extens...
stackv2
#include <math.h> #include <gsl/gsl_math.h> #include <gsl/gsl_roots.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_errno.h> #include <string.h> #include "scatter.h" #include <stdio.h> static double L_v; static int N; static double *zeta; static char *potential_name; static gsl_error_handler_t* default_handler; ...
2.015625
2
2024-11-19T03:27:38.277738+00:00
2019-01-16T18:10:52
40999fae6712428984a70b6080ad9e27840ffba9
{ "blob_id": "40999fae6712428984a70b6080ad9e27840ffba9", "branch_name": "refs/heads/master", "committer_date": "2019-01-16T18:10:52", "content_id": "08b0f9d977fc1205455bece401f534cef089ceb6", "detected_licenses": [ "MIT" ], "directory_id": "3a1c15f95ad5b81ad69a9ea12d827f893477ea5b", "extension": "c"...
stackv2
/** \file * \brief ProgressBar control * * See Copyright Notice in "iup.h" */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "iup.h" #include "iupcbs.h" #include "iup_object.h" #include "iup_attrib.h" #include "iup_str.h" #include "iup_drv.h" #include "iup_drvfont.h" #inclu...
2.421875
2
2024-11-19T03:27:38.367853+00:00
2019-01-25T18:49:33
75d6e811523b648718539932d31845c9b4f2e903
{ "blob_id": "75d6e811523b648718539932d31845c9b4f2e903", "branch_name": "refs/heads/master", "committer_date": "2019-01-25T18:49:33", "content_id": "1c0d7c4c0ffe98c9462ec7a8e3e040d29067dabd", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "445f486b438acb340dd6b315c4e0e07a34638619", "extens...
stackv2
/** \file \brief HTM tree indexes and queries. \authors Serge Monkewitz \copyright IPAC/Caltech */ #ifndef HTM_TREE_H #define HTM_TREE_H #include "geometry.h" #ifdef __cplusplus extern "C" { #endif /* ================================================================ */ /** \defgroup tree HTM ...
2.4375
2
2024-11-19T03:27:38.528420+00:00
2023-08-09T18:19:32
29ea28d5e4ce636b2ec5a248aa51666d93125350
{ "blob_id": "29ea28d5e4ce636b2ec5a248aa51666d93125350", "branch_name": "refs/heads/master", "committer_date": "2023-08-09T18:19:32", "content_id": "ef05f3f068556635332cbe18a3d04ac12da088f6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a4a96286d9860e2661cd7c7f571d42bfa04c86cf", "extensio...
stackv2
/* * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include <stdint.h> #include <stdbool.h> #include "esp_err.h" #include "hal/temperature_sensor_types.h" #ifdef __cplusplus extern "C" { #endif /** * @brief Type of temperature sens...
2.0625
2
2024-11-19T03:27:38.691464+00:00
2018-10-31T15:47:14
6cfa3f5beef65c428aa399d622563afb0077a684
{ "blob_id": "6cfa3f5beef65c428aa399d622563afb0077a684", "branch_name": "refs/heads/master", "committer_date": "2018-10-31T15:47:14", "content_id": "70becd61f4f0c40d7c287a94f1c40883c3f3f503", "detected_licenses": [ "MIT" ], "directory_id": "342907a0581cbd1fcd33cbc97c2234d79aa96d47", "extension": "c"...
stackv2
#include <stdint.h> #include <stdio.h> #include <stdlib.h> typedef uint8_t BYTE; // Set command line arguments int main(int argc, char *argv[]) { // Check to see if there are not 2 command line arguments if (argc != 2) { // If not 2 arguments, display error message fprintf(stderr, "Usage: ....
3.40625
3
2024-11-19T03:27:38.856285+00:00
2009-12-23T03:24:47
f04135dd845509d0aac4362328560fc1260f086b
{ "blob_id": "f04135dd845509d0aac4362328560fc1260f086b", "branch_name": "refs/heads/master", "committer_date": "2009-12-23T03:24:47", "content_id": "90f916f88632817b1827a57573f3861a1b6fea10", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "6cb8186fe58c829ac802a46ab28bddb8ef22a0f4", "extens...
stackv2
/* * Copyright 2009, Lloyd Hilaiel. * * 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 follow...
2.21875
2
2024-11-19T03:27:39.050206+00:00
2019-03-16T13:59:22
8bdbf936525228420deadd338174a0796344647f
{ "blob_id": "8bdbf936525228420deadd338174a0796344647f", "branch_name": "refs/heads/master", "committer_date": "2019-03-16T13:59:22", "content_id": "5c713f4a5c9314240d48f0c247d2e6b797c9e6e0", "detected_licenses": [ "MIT" ], "directory_id": "0fc0bbf0a76e5495f37ab3c72db040f5e8f7cacb", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include<arpa/inet.h> #include<netdb.h> #include <sys/types.h> //to include number of data types to include in system calls #include <sys/socket.h> //includes number of definitions of structures needed for sockets #include <netinet/in.h> ...
2.921875
3
2024-11-19T03:27:39.213005+00:00
2016-04-04T16:27:32
8e3ed7f059432e0a2b642fee33a8b7dc97807f97
{ "blob_id": "8e3ed7f059432e0a2b642fee33a8b7dc97807f97", "branch_name": "refs/heads/master", "committer_date": "2016-04-04T16:27:32", "content_id": "73578c307140d5d22d71f2be896b0fd876b9c367", "detected_licenses": [ "Apache-2.0" ], "directory_id": "259bc69e08f57f464497255cfa77efc37de91718", "extensio...
stackv2
/**************************************************************************** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this fi...
2
2
2024-11-19T03:27:39.578474+00:00
2015-01-15T11:39:14
f33e33f1d6f818ae8d1fcb3add59d2ca8ff47b7b
{ "blob_id": "f33e33f1d6f818ae8d1fcb3add59d2ca8ff47b7b", "branch_name": "refs/heads/master", "committer_date": "2015-01-15T11:39:14", "content_id": "b8ebef7070ce803e9b006fc7c1fe6d1ea3dbf390", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "7c6fce2cf48c36841130499e8f5aced4464671d9", "extens...
stackv2
#include "everykey/everykey.h" #include "midi.h" #include "pwmaudio.h" #include "synth.h" #define LED_PORT 0 #define LED_PIN 7 #define KEY_PORT 0 #define KEY_PIN 1 uint8_t voice = 0; void SynthTask() { int16_t val = Synthesizer_GetNextSample(); PWMAudio_SetSample(val); } void HandleNote(uint8_t channel, uint8_t ...
2.265625
2
2024-11-19T03:27:39.790785+00:00
2021-12-13T07:07:30
1ab3764594d5b5d56fcd8c76191d7603fb9ee29e
{ "blob_id": "1ab3764594d5b5d56fcd8c76191d7603fb9ee29e", "branch_name": "refs/heads/master", "committer_date": "2021-12-13T07:07:30", "content_id": "feeee930fffa37a605ebbdb4c13663db170a718d", "detected_licenses": [ "MIT" ], "directory_id": "ec49100cf50d4a2582af1da292ef46a38f622d6b", "extension": "c"...
stackv2
/* * kernel/command/cmd-xsync.c * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "...
2.234375
2
2024-11-19T03:27:41.691099+00:00
2014-02-15T10:06:17
0839b122087b03a5844273b5b39f20588dce4f46
{ "blob_id": "0839b122087b03a5844273b5b39f20588dce4f46", "branch_name": "refs/heads/master", "committer_date": "2014-02-15T10:06:17", "content_id": "5eaf231046b27aeafd8ce12ccb55328fb5773335", "detected_licenses": [ "MIT" ], "directory_id": "fadc32f7cfb899257b5f466bf2e8b22e83629d62", "extension": "c"...
stackv2
#include<stdlib.h> #include<ucontext.h> #include"cr.h" static cr_context *now_context = NULL; static const unsigned int STACK_SIZE = 16*1024; cr_context* create_context_for( void (*func)(void) ) { cr_context *ret = NULL; if( func == NULL ){ return NULL; } ret = (cr_context*)malloc( sizeof(cr_context) )...
2.71875
3
2024-11-19T03:27:41.999544+00:00
2019-08-13T00:03:13
bf0e6e991f0882497b90287738ed4b6558de5407
{ "blob_id": "bf0e6e991f0882497b90287738ed4b6558de5407", "branch_name": "refs/heads/master", "committer_date": "2019-08-13T00:03:13", "content_id": "74c99897675f8a28d65494cab28c29770eddcd8b", "detected_licenses": [ "MIT" ], "directory_id": "d3fdbb5099b8c9823972320267885e090a328a85", "extension": "c"...
stackv2
#include <stdio.h> #include <malloc.h> #include <string.h> #include "program.h" #include "debug.h" /// 実行コードのリスト typedef struct codelist { /// 実行コード char *code; /// 次の実行コード struct codelist *next; } CodeList; /// 実行コードの保存メモリ typedef struct programMemory { /// 実行コードリストの先頭 CodeList *head; /// 実行コードリストの終端 CodeLis...
3.328125
3
2024-11-19T03:27:42.556884+00:00
2023-07-30T13:34:19
1e94cb96404e90346853b94118f91565bc570ca0
{ "blob_id": "1e94cb96404e90346853b94118f91565bc570ca0", "branch_name": "refs/heads/master", "committer_date": "2023-07-30T13:34:19", "content_id": "93aefc55611cff9ba06f9dc01cd662c4074563af", "detected_licenses": [ "MIT" ], "directory_id": "8447eb38a4fc71b32b6b82a99f7828a2c50621aa", "extension": "c"...
stackv2
/*--------------------------------------------------------------------------------- bin2s: convert a binary file to a gcc asm module for gfx/foo.bin it'll write foo_bin (an array of char) foo_bin_end, and foo_bin_len (an unsigned int) for 4bit.chr it'll write _4bit_chr, _4bit_chr_end, and _4bit_chr_len Copyri...
2.4375
2
2024-11-19T03:27:47.449252+00:00
2022-03-10T21:08:40
97547d36498222480a69f7d578c89a0a58d892a8
{ "blob_id": "97547d36498222480a69f7d578c89a0a58d892a8", "branch_name": "refs/heads/main", "committer_date": "2022-03-10T21:08:40", "content_id": "7810e4aba58dce0363db68106a84ad09c0f35848", "detected_licenses": [ "MIT" ], "directory_id": "d3e4ff2671841b86dd7744efc770e723a233b1da", "extension": "c", ...
stackv2
/*! * \file semaphore.c * \brief simple encapsulation for semget/semop/semctl written in OO pattern * * \author sabertazimi, <sabertazimi@gmail.com> * \version 1.0 * \date 2016-11-11 * \license MIT */ #include <stdio.h> #include <stdlib.h> #include "semaphore/semaphore.h" /// \brief P function /// \param self...
3.203125
3
2024-11-19T03:27:50.869536+00:00
2023-08-29T11:30:11
2fb57f1545cabb788a70e620db5bce51c43da4f3
{ "blob_id": "2fb57f1545cabb788a70e620db5bce51c43da4f3", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T11:30:11", "content_id": "9fa57650abd7c7fd739e64fd50f341566311e6d2", "detected_licenses": [ "BSD-3-Clause", "BSD-4-Clause-UC" ], "directory_id": "07664200f77c4d87baf972e367e77...
stackv2
# include "../ingres.h" # include "../aux.h" # include "../symbol.h" # include "../access.h" # include "../batch.h" /* ** Update reads a batch file written by the ** access method routines (openbatch, addbatch, closebatch) ** and performs the updates stored in the file. ** ** It assumes that it is running in the datab...
2.296875
2
2024-11-19T03:27:51.122498+00:00
2016-05-25T14:37:55
75881f59262f57ac5b4dbc4b83d66e9022212572
{ "blob_id": "75881f59262f57ac5b4dbc4b83d66e9022212572", "branch_name": "refs/heads/master", "committer_date": "2016-05-25T14:37:55", "content_id": "88b04f4c5b190a1a784a44bc0b74a76ec453b38d", "detected_licenses": [ "CC0-1.0" ], "directory_id": "687ab1fcaaef70c0ccd30b27f573160576cec2d5", "extension":...
stackv2
#include <stdio.h> #include "s.h" //extern float somar(float,float); //float somar(float x,float y) //{ // return x + y; //} int main(void) { float a; float b; float c; printf("A: "); scanf("%f", &a); printf("B: "); scanf("%f", &b); c = somar(a, b); printf("S=%f\n", c); return 0; }
2.828125
3
2024-11-19T03:27:51.176948+00:00
2020-01-29T11:14:06
27c8fcae74fdcd4fe9276018d0a75543c99d98b1
{ "blob_id": "27c8fcae74fdcd4fe9276018d0a75543c99d98b1", "branch_name": "refs/heads/master", "committer_date": "2020-01-29T11:14:06", "content_id": "10bb8d997c27b801e64a217f3dbbbd1ed7694b19", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "5e10c8bd5cbefc964590222a3e02c0ecd6e1f76e", "extens...
stackv2
#include <stdio.h> #include <string.h> #define CAML_NAME_SPACE #include <caml/mlvalues.h> #include <caml/memory.h> #include <caml/alloc.h> #include <caml/custom.h> #include <caml/callback.h> extern int ExecuteSkill(char *name); extern int ResetSkill(char *name); /* type return_enum = Runn | Fail | Succ (correspon...
2.296875
2
2024-11-19T03:27:51.439628+00:00
2020-03-17T13:40:42
2a07edef6a7d5f8837ba74cec6acfd6e6e7561cd
{ "blob_id": "2a07edef6a7d5f8837ba74cec6acfd6e6e7561cd", "branch_name": "refs/heads/master", "committer_date": "2020-03-17T13:40:42", "content_id": "f231680cd2f8715e9773f723ed77f82a967b763f", "detected_licenses": [ "MIT" ], "directory_id": "601579b56ea2957d662687264fa6c385d629ffe8", "extension": "c"...
stackv2
// CX1007 Data Structures // Week 9 Lab Tutorial - DynamicData-Linked Lists // Template for Q1 #include "stdlib.h" #include "stdio.h" //////////////////////////////////////////////////////////// void insert(char *s,int n); void removes(char *s, int n); ////////////////////////////////////////////////////////// void...
3.8125
4
2024-11-19T03:27:51.530378+00:00
2021-01-13T01:30:30
233cefe9763af2c23c945fd355793ce8b9e7c63c
{ "blob_id": "233cefe9763af2c23c945fd355793ce8b9e7c63c", "branch_name": "refs/heads/main", "committer_date": "2021-01-13T01:30:30", "content_id": "c9ae4a36a6256c83acceed1f5eab8bd1d421a918", "detected_licenses": [ "MIT" ], "directory_id": "08eb170935a16c87ab77f0a49e61bf00bdb6bbc0", "extension": "c", ...
stackv2
#include "wrap.h" void perr_exit(const char *s) { perror(s); exit(1); } /* accept出错封装 */ int Accept(int fd, struct sockaddr *sa, socklen_t *salenptr) { int n;//保存用于通信的socket文件描述符 again: if ( (n = accept(fd, sa, salenptr)) < 0) { if ((errno == ECONNABORTED) || (errno == EINTR)) ...
3
3
2024-11-19T03:27:51.863765+00:00
2022-08-22T08:38:29
9f6f7fcd7fb45caf2e4bb7e1351a2323069ff95d
{ "blob_id": "9f6f7fcd7fb45caf2e4bb7e1351a2323069ff95d", "branch_name": "refs/heads/master", "committer_date": "2022-08-22T08:38:29", "content_id": "87111975d0fb25b243ce62d56ab5a6ea9b8187ec", "detected_licenses": [ "MIT" ], "directory_id": "80ed71415caf00c62bb7d9a3728979e20abb3a40", "extension": "h"...
stackv2
#pragma once #include <string.h> #include <assert.h> #include "core/core.h" inline char to_lower_case(char a) { if ((a >= 65) && (a <= 90)) a = a + 32; return a; } struct string_view { const char* data = ""; unsigned int length = 0; inline string_view() {} inline string_view(const char* data, unsigned int l...
2.859375
3
2024-11-19T03:27:54.541121+00:00
2022-08-05T04:35:01
3d0dbe47c6a4cc2d76328c831482788f8e9213fd
{ "blob_id": "3d0dbe47c6a4cc2d76328c831482788f8e9213fd", "branch_name": "refs/heads/master", "committer_date": "2022-09-08T18:36:02", "content_id": "80291a252327360f30a55ac1052df5dad84d9d1e", "detected_licenses": [ "ISC" ], "directory_id": "6b7433af7d69bb874cf8489e331d43c623f2a820", "extension": "c"...
stackv2
/* $OpenBSD: tls_server.c,v 1.47 2021/06/14 03:53:59 tb Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * * 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 app...
2.0625
2
2024-11-19T03:27:55.207077+00:00
2023-08-04T08:33:58
16f0262c7025f91a542a291c0dafd7dfecdc4dcc
{ "blob_id": "16f0262c7025f91a542a291c0dafd7dfecdc4dcc", "branch_name": "refs/heads/master", "committer_date": "2023-08-04T08:33:58", "content_id": "65992fd732c99a93fa48e3aefa35efdb291ece1e", "detected_licenses": [ "Zlib" ], "directory_id": "f625f3f5f64c3e9a89662077bea9ba3d175130d6", "extension": "c...
stackv2
//? Marius Negrutiu (marius.negrutiu@protonmail.com) :: 2014/02/02 #include "main.h" #include "utils.h" int _fltused = 0; MEMORY_STATS g_MemStats = { 0 }; //++ UtilsInitialize VOID UtilsInitialize() { TRACE( _T( " UtilsInitialize()\n" ) ); } //++ UtilsDestroy VOID UtilsDestroy() { TRACE( _T( " MyAlloc: %u ca...
2.09375
2
2024-11-19T03:27:55.840513+00:00
2012-11-02T17:24:43
175b220dfd4314656d996549266bff580598f4bd
{ "blob_id": "175b220dfd4314656d996549266bff580598f4bd", "branch_name": "refs/heads/master", "committer_date": "2012-11-02T21:06:34", "content_id": "d530bd7a00485d1de6785c32e6bd94c122de844b", "detected_licenses": [ "Zlib", "MIT", "Apache-2.0", "BSD-2-Clause" ], "directory_id": "5bafc2534b5...
stackv2
/* * Copyright (C) 2012, Texas Instruments, Inc. * Texas Instruments, <www.ti.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notic...
2
2
2024-11-19T03:27:55.906239+00:00
2023-06-23T10:11:23
274e943d731b5680611f29061e3af60860a5dac9
{ "blob_id": "274e943d731b5680611f29061e3af60860a5dac9", "branch_name": "refs/heads/main", "committer_date": "2023-06-23T10:11:23", "content_id": "ffec4b7e25e1f95386ec67c0efa382cb2ae1e2b9", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "803898f95f34521f4fc08ff42534888367ff4028", "extensio...
stackv2
#include "geminc.h" #include "gemprm.h" #define MAXCHAR 4 void cst_itos ( int *intptr, int nval, int *nchar, char *str, int *iret ) /************************************************************************ * cst_itos * * * * This subroutine decodes an array of integers into a single string. * * ...
2.8125
3
2024-11-19T03:27:56.377346+00:00
2018-10-05T10:09:25
6d70d939a27ec7133f762aaaa88dbb42f99d559f
{ "blob_id": "6d70d939a27ec7133f762aaaa88dbb42f99d559f", "branch_name": "refs/heads/master", "committer_date": "2018-10-05T10:09:25", "content_id": "23e89ed5d2afdd5c37be34769cfbdd93cd904e11", "detected_licenses": [ "MIT" ], "directory_id": "9314c0937fcb222892c3a6141daecd1dd86ec428", "extension": "h"...
stackv2
/** * @file gpio_stm32f4.c * @author Kevin Wysocki * @brief GPIO implementation for STM32F4xx * @copyright MIT License * * Call create_GPIO_STM32F4() to create a GPIO instance * uid must be between 0 and GPIO_STM32F4_MAX_GPIO as : * PA0 = 0 .... PA15 = 15 * PB0 = 16 .... PB15 = 31 * .........................
2.21875
2
2024-11-19T03:27:56.778546+00:00
2020-04-11T19:59:50
9a2985d792c9a5bd89909810555411b2591dde65
{ "blob_id": "9a2985d792c9a5bd89909810555411b2591dde65", "branch_name": "refs/heads/master", "committer_date": "2020-04-11T20:00:01", "content_id": "a1ff223c8e23af98833f3e908b4653ff35c70d6b", "detected_licenses": [ "Artistic-2.0" ], "directory_id": "3201f186a721e05d775619aa8757a1ebd8e56427", "extens...
stackv2
#include <stdio.h> #include "p2.h" int main(void) { struct rectangle r; r.upper_left.x = 1; r.upper_left.y = 9; r.lower_right.x = 9; r.lower_right.y = 1; struct point p; p.x = 2; p.y = 2; printf("Is it in you?: %d\n",isItInYou(r,p)); printf("Rectangle: (%d,%d)(%d,%d)\n",r.upper_left.x,r.upper_left....
3.0625
3
2024-11-19T03:27:56.875744+00:00
2023-04-04T01:13:46
5350b6504cd9f05a55b81ff7ea820830a37fb88a
{ "blob_id": "5350b6504cd9f05a55b81ff7ea820830a37fb88a", "branch_name": "refs/heads/master", "committer_date": "2023-04-04T01:13:46", "content_id": "2f9c27bbdeea82227310fcaa8b6eeffac492d268", "detected_licenses": [ "BSD-3-Clause", "SMLNJ" ], "directory_id": "5012f7f474e352e784d183085faa14d1bb33e97...
stackv2
/* Copyright (C) 2006 Vesa Karvonen * * This code is released under the MLton license, a BSD-style license. * See the LICENSE file or http://mlton.org/License for details. */ #define STATIC_ASSERT(c) \ extern int static_assert[(c) ? 1 : -1] #define ASSERT_EXISTS(name, type) ...
2.140625
2
2024-11-19T03:27:57.031941+00:00
2023-08-11T04:11:38
178ce603d4d0c1dbefbfe5c6dcf02e0f75f180dd
{ "blob_id": "178ce603d4d0c1dbefbfe5c6dcf02e0f75f180dd", "branch_name": "refs/heads/master", "committer_date": "2023-08-12T14:51:58", "content_id": "14f7b3a86cc2bccd676e89e0b8379ea22e262968", "detected_licenses": [ "ISC" ], "directory_id": "131b6d5381fc3bb4403682135b77f9bce91e79f1", "extension": "h"...
stackv2
/** * @file mii_la.h * @brief Wrapper for using the MiiEdit LibraryApplet. * @author yellows8 * @copyright libnx Authors */ #pragma once #include "../types.h" #include "../services/mii.h" /// AppletMode typedef enum { MiiLaAppletMode_ShowMiiEdit = 0, ///< ShowMiiEdit MiiLaAppletMode_AppendMii ...
2.234375
2
2024-11-19T03:27:57.191499+00:00
2021-06-30T12:33:21
75770424995cc186e093fa48c092a19dd8b3773f
{ "blob_id": "75770424995cc186e093fa48c092a19dd8b3773f", "branch_name": "refs/heads/master", "committer_date": "2021-06-30T12:33:21", "content_id": "b59a914e05b9c0281c8381da54e8414e4733352e", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "7b90100360582e37f558bfe068a3ebbc56849213"...
stackv2
/* This file is part of SAIL (https://github.com/smoked-herring/sail) Copyright (c) 2020 Dmitry Baryshev The MIT License 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 with...
2.0625
2
2024-11-19T03:27:58.940481+00:00
2017-07-20T13:02:57
e5eef543a833969020eaa7caf0dfc8a42a4ac4c2
{ "blob_id": "e5eef543a833969020eaa7caf0dfc8a42a4ac4c2", "branch_name": "refs/heads/master", "committer_date": "2017-07-20T13:02:57", "content_id": "864edfaf3b55734c0edb26a891298ef01f95f304", "detected_licenses": [ "MIT" ], "directory_id": "0afa7b9d192698616ac9f395ceb3685086e7d045", "extension": "c"...
stackv2
#include "mysock.h" #include <termios.h> static struct termios save_termios; static int ttysavefd = -1; static enum { TTY_RESET, TTY_CBREAK } ttystate = TTY_RESET; int tty_cbreak(int fd) { struct termios buf; if (tcgetattr(fd, &save_termios) < 0) return -1; buf = save_termios; buf.c_lflag &= ~(ECHO | ICANON); /...
2.515625
3
2024-11-19T03:27:59.534419+00:00
2023-06-21T18:43:26
f5846940c684e99f7257d902ed2602a038cf6e8a
{ "blob_id": "f5846940c684e99f7257d902ed2602a038cf6e8a", "branch_name": "refs/heads/main", "committer_date": "2023-06-21T18:43:26", "content_id": "1afdc7aad3b0b97b689cf1b850ecb14f2dc74897", "detected_licenses": [ "MIT", "ISC", "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "469b9e068ea4...
stackv2
/** * Copyright (c) 2010-2015 William Light <wrl@illest.net> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS...
2.015625
2
2024-11-19T03:27:59.839843+00:00
2021-06-04T21:40:45
92149eae3c5f95e29a8e32089641d42ca16fd23e
{ "blob_id": "92149eae3c5f95e29a8e32089641d42ca16fd23e", "branch_name": "refs/heads/main", "committer_date": "2021-06-04T21:40:45", "content_id": "f280e023a79483900f05d14cfdef3d969887ef9d", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "bda474b3a0053ad21103fccec1f7db4452ea9283", "extensio...
stackv2
/* Dynamic loadable modular Framework inspired by FreeBSD kernel module. Copyright © 2021 yiwenxue 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 ...
2.0625
2
2024-11-19T01:16:56.278969+00:00
2017-04-21T17:40:20
79c2fde02f80d267154a959fcba81053dbd132ef
{ "blob_id": "79c2fde02f80d267154a959fcba81053dbd132ef", "branch_name": "refs/heads/master", "committer_date": "2017-04-21T17:40:20", "content_id": "e80a3c4ef4b24397feb35b8a33f6d3506ae9f7d3", "detected_licenses": [ "MIT" ], "directory_id": "a7fe9365880829cc6ecf72ec580d31bde1c5ad1e", "extension": "h"...
stackv2
#ifndef DETEST_H #define DETEST_H #include <stdatomic.h> #include <stddef.h> #define DE_FAIL (1 << 0) #define DE_HARDFAIL (1 << 1) #define DE_NOCOLOR (1 << 3) struct demeta { _Atomic unsigned succeeded; _Atomic unsigned failed; char result[64]; }; int deionb(char *restrict, size_t, const char *restrict, ...) __at...
2.046875
2
2024-11-19T01:16:56.356448+00:00
2016-04-08T15:22:36
9daa1e0ef973db1adb954e9f31cf53075b429586
{ "blob_id": "9daa1e0ef973db1adb954e9f31cf53075b429586", "branch_name": "refs/heads/master", "committer_date": "2016-04-08T15:22:36", "content_id": "ecd1f67c40aefc76f4fbd57f994fe3f5bd26da71", "detected_licenses": [ "MIT" ], "directory_id": "78ba4e25f970d2127bd932450353c8347ec3975d", "extension": "c"...
stackv2
#include <string.h> #include "xk.h" #include "jpeg.h" #include "captcha.h" #include "ocr.h" #ifdef XK_64BIT #include "ocr_data64.h" #else #include "ocr_data.h" #endif int ocr_char(const xk_captcha_char p, int ch, char *ret) { int i; int len = dict_len[ch]; const char *val = dict_val[ch]; const xk_capt...
2.328125
2
2024-11-19T01:16:56.695692+00:00
2023-06-12T12:58:22
71ea17d91ebdb8aa917a247fd91762e3ed1ca8f0
{ "blob_id": "71ea17d91ebdb8aa917a247fd91762e3ed1ca8f0", "branch_name": "refs/heads/master", "committer_date": "2023-06-12T12:58:22", "content_id": "ff53f7f50188af20ccff2786d03651c15e177e87", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ea7cb6ba74377b67aef7dff7788cc4ec292df684", "extensio...
stackv2
/* * Copyright 2023 AVSystem <avsystem@avsystem.com> * * 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 applica...
2.34375
2
2024-11-19T01:30:55.634371+00:00
2016-01-06T13:10:55
f3e07fd68e194c40531765845d68f045c61b1136
{ "blob_id": "f3e07fd68e194c40531765845d68f045c61b1136", "branch_name": "refs/heads/master", "committer_date": "2016-01-06T13:10:55", "content_id": "f5b16d1a242899e5994c485e0e53fbe7ff34c698", "detected_licenses": [ "ISC" ], "directory_id": "9fc26d610e4cf52571151b7d809508ce0ffc8dc0", "extension": "c"...
stackv2
#include <u.h> #include <avian.h> #include <ftw.h> int aflag; int blksiz; int sflag; ulong total; ulong subtotal; void usage(void) { fprint(stderr, "usage: du [-a|-s] [-kx] [-H|-L] [file...]\n"); exit(1); } int walk(const char *fpath, const struct stat *sb, int tflag, struct FTW *ftwbuf) { ulong siz...
2.578125
3
2024-11-19T01:30:55.876989+00:00
2017-01-12T10:31:07
9c6bc40923ca626447f843adf8e4e95043fc736e
{ "blob_id": "9c6bc40923ca626447f843adf8e4e95043fc736e", "branch_name": "refs/heads/master", "committer_date": "2017-01-12T10:31:07", "content_id": "b91fba78097dd7fb657f5f787c07adfec24b88ca", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1623c7fb3ab524e57ef57685d09aece50901fe53", "extensio...
stackv2
/** * @file activity_stat.h * * @brief Save activity statistics for each node into text files * * Allows for estimation of the energy efficiency of the protocol * * @author Nathan Olff * @date October 5, 2016 */ #ifndef LOWAPP_SIMU_ACTIVITY_STAT_H_ #define LOWAPP_SIMU_ACTIVITY_STAT_H_ /** * Possible states...
2.09375
2
2024-11-19T01:30:55.938531+00:00
2019-12-20T09:57:35
d0d62283e63dbede36e4b4e3e579528a08ccce7d
{ "blob_id": "d0d62283e63dbede36e4b4e3e579528a08ccce7d", "branch_name": "refs/heads/master", "committer_date": "2019-12-20T09:57:35", "content_id": "f7a80fe447038d4326f53a287774794cba8706c1", "detected_licenses": [ "MIT" ], "directory_id": "a5ea200c8663869030b831722e49482bbff31e0c", "extension": "c"...
stackv2
typedef struct RiPrinter { int indentation; CharArray* out; CharArray buffer; } RiPrinter; // TODO: Rework by using 'cbprintfv' and callback that applies formatting directly. static inline void riprinter_add_indentation_(RiPrinter* printer, int indentation) { for (int i = 0; i < indentation; ++i) { ...
2.71875
3
2024-11-19T01:30:56.015197+00:00
2016-02-17T14:42:42
2bd0a491af1415eedf04bca90fef32f98298d9a8
{ "blob_id": "2bd0a491af1415eedf04bca90fef32f98298d9a8", "branch_name": "refs/heads/master", "committer_date": "2016-02-17T14:42:42", "content_id": "7b061b49c7e5fddb446d45a2a154aa83451627fe", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4447608a41fcb78243a2394d909f30eb4b6bf85b", "extensio...
stackv2
//- Copyright 2013 the Neutrino authors (see AUTHORS). //- Licensed under the Apache License, Version 2.0 (see LICENSE). #include "alloc.h" #include "behavior.h" #include "derived-inl.h" #include "freeze.h" #include "io.h" #include "process.h" #include "sync.h" #include "tagged-inl.h" #include "try-inl.h" #include "ut...
2.1875
2
2024-11-19T01:30:56.087203+00:00
2020-02-11T19:31:37
10de501b0f215401d581bf9ae4ecf3c09af702e3
{ "blob_id": "10de501b0f215401d581bf9ae4ecf3c09af702e3", "branch_name": "refs/heads/master", "committer_date": "2020-02-11T19:31:37", "content_id": "e3c4b7ff0da7bcefaabdde002b1d70e199dd4f33", "detected_licenses": [ "BSD-3-Clause", "OpenSSL" ], "directory_id": "d660ccb43c3d0441ad0ef277e43245e780a56...
stackv2
/* Copyright 2003-2004 Roger Dingledine * Copyright 2004-2006 Roger Dingledine, Nick Mathewson */ /* See LICENSE for licensing information */ /* $Id: compat.c 6239 2006-03-26 06:47:08Z arma $ */ const char compat_c_id[] = "$Id: compat.c 6239 2006-03-26 06:47:08Z arma $"; /** * \file compat.c * \brief Wrappers to ...
2.171875
2
2024-11-19T01:30:56.211387+00:00
2022-11-30T13:42:39
b27861a4cc320c558b42eda4caca2dbb433154ed
{ "blob_id": "b27861a4cc320c558b42eda4caca2dbb433154ed", "branch_name": "refs/heads/master", "committer_date": "2022-11-30T13:42:39", "content_id": "1283e80ca547ea3f4e277f78a2ed6e2a9783b79f", "detected_licenses": [ "MIT" ], "directory_id": "f9a9cce9d6a5679635475444117ddaa61c00dc81", "extension": "c"...
stackv2
#include <errno.h> #include <string.h> #include <sys/select.h> #include <sys/ioctl.h> #include "MadOS.h" #include "mod_Newlib.h" static int select_set(int n, fd_set *fds, fd_set *lock, MadSemCB_t **plocker, int req) { int i, rc, cnt; cnt = 0; FD_ZERO(lock); for(i=0; i<n; i++) { if(FD_ISSET(i, f...
2.40625
2
2024-11-19T01:30:56.336383+00:00
2023-04-20T11:56:59
6c61554e4d87753860d69c874d542e02403ba311
{ "blob_id": "6c61554e4d87753860d69c874d542e02403ba311", "branch_name": "refs/heads/master", "committer_date": "2023-04-20T11:56:59", "content_id": "c82341a6dda6ce28de1385a39e6a78201c71a07d", "detected_licenses": [ "MIT" ], "directory_id": "33c6ddc55be5ab2b9ccb94f59ae3cd8c5477e0b7", "extension": "h"...
stackv2
#ifndef MATHC_VEC_VECN_H #define MATHC_VEC_VECN_H /*/ 0 /*/ // template file! /*/ 0 /*/ // /*/ 0 /*/ // all lines starting with "/*/ cond /*/[//]" may be removed /*/ 0 /*/ // if cond is true: /*/ 0 /*/ // only the condition comment will be removed "/*/ cond /*/)" /*/ 0 /*/ // if cond is false: /*/ 0 /...
2.390625
2
2024-11-19T01:30:56.693854+00:00
2021-10-07T00:26:28
ee945c0cf6775ccf721d28254acbdcea920c27e6
{ "blob_id": "ee945c0cf6775ccf721d28254acbdcea920c27e6", "branch_name": "refs/heads/main", "committer_date": "2021-10-07T00:26:28", "content_id": "2de1daa11692a6d51eec348f1deb252c909f0b5d", "detected_licenses": [ "MIT" ], "directory_id": "4e0283e591b5dc3afcb0677cdea9ccf30e78e3ce", "extension": "c", ...
stackv2
/** * @author Cristóvão Zuppardo Rufino <cristovaozr@gmail.com> * @version 0.1 * * @copyright Copyright Cristóvão Zuppardo Rufino (c) 2021 * Please see LICENCE file to information regarding licensing */ #include "include/device/device.h" #include "include/device/gpio.h" #include "include/device/usart.h" #includ...
2.40625
2
2024-11-19T01:30:56.788976+00:00
2023-01-13T15:32:42
5ae75729f5ac43b5aa9144af62caefbceef12779
{ "blob_id": "5ae75729f5ac43b5aa9144af62caefbceef12779", "branch_name": "refs/heads/master", "committer_date": "2023-01-13T15:32:42", "content_id": "5b11b2ec073d17d867aa77e3c3f32cddd498ffa8", "detected_licenses": [ "MIT" ], "directory_id": "6bdf49c3b8913bcf15746e0b91666b56111804b4", "extension": "c"...
stackv2
/// @file kill.c /// @brief /// @copyright (c) 2014-2022 This file is distributed under the MIT License. /// See LICENSE.md for details. #include <stdio.h> #include <signal.h> #include <string.h> #include <limits.h> #include <strerror.h> #include <ctype.h> #include <debug.h> static inline int is_number(char *s) { ...
3.09375
3
2024-11-19T01:30:56.881258+00:00
2019-12-01T09:43:30
77c335fc33617f5843f7520a3bd9c3effad14d6c
{ "blob_id": "77c335fc33617f5843f7520a3bd9c3effad14d6c", "branch_name": "refs/heads/master", "committer_date": "2019-12-01T09:43:30", "content_id": "3011fae252abd2972e56035bea11edee9c4c32b0", "detected_licenses": [ "MIT" ], "directory_id": "64f391f6c126371d7d186cecbef7e96efe426046", "extension": "c"...
stackv2
/* cap17_connectedComp.c: A program for computing the connected components of a graph. Copyright (C) 2006 Federico Ricci-Tersenghi (Federico.Ricci@roma1.infn.it) 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 ...
2.765625
3
2024-11-19T01:30:56.932811+00:00
2017-11-18T17:10:17
412830884ac71ed81b19b884917876bce585ea22
{ "blob_id": "412830884ac71ed81b19b884917876bce585ea22", "branch_name": "refs/heads/master", "committer_date": "2017-11-18T17:10:17", "content_id": "3d53075d4e5290b4bc32024240030dfe13d197fc", "detected_licenses": [ "Apache-2.0", "MIT" ], "directory_id": "8931a9c4f1138e5ccfe96464b93aec17f57e0a1e", ...
stackv2
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
2.15625
2
2024-11-19T01:30:57.004702+00:00
2017-01-26T17:45:50
c25ce29e45ff274baa38e7c6ba363a4515b60979
{ "blob_id": "c25ce29e45ff274baa38e7c6ba363a4515b60979", "branch_name": "refs/heads/master", "committer_date": "2017-01-26T17:45:50", "content_id": "fabc81becd55381c3e9aad80ee25e0ae4dca5b64", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "28705bf661e7ff7ac8d3305916b69d7d3ff38b40", "extens...
stackv2
/* C extension for static_array. This file in generated by Rubex. Do not change! */ #include <ruby.h> #include <stdint.h> VALUE __rubex_f_static_array (int argc, VALUE* argv, VALUE __rubex_arg_self); VALUE __rubex_f_static_array (int argc, VALUE* argv, VALUE __rubex_arg_self) { int8_t __rubex_v_size; int32_t __rub...
2.15625
2
2024-11-19T01:30:57.154994+00:00
2015-06-05T10:53:20
0671bff3bdef7d0a1e689f4f1da342ce1568fdcb
{ "blob_id": "0671bff3bdef7d0a1e689f4f1da342ce1568fdcb", "branch_name": "refs/heads/master", "committer_date": "2015-06-05T10:53:20", "content_id": "6d475778eae47b67fc48805bec3b5882dca88947", "detected_licenses": [ "MIT" ], "directory_id": "9c6093ae6efb58caf7919a6a1526395298c741ec", "extension": "c"...
stackv2
#define MODULE ffi #include <sqmodule.h> #include <sqmodule_helpers.h> #include <stdio.h> #include <dlfcn.h> #include <ffi.h> DECLARE_SQAPI static HSQOBJECT lib_method_table; static HSQOBJECT func_method_table; static HSQOBJECT var_method_table; static SQInteger m_dlopen(HSQUIRRELVM v) { const SQChar *fname; ...
2.25
2
2024-11-19T01:30:58.343702+00:00
2021-06-24T10:50:04
95f1469be8bbd4f5ced4cccb218b085211ada405
{ "blob_id": "95f1469be8bbd4f5ced4cccb218b085211ada405", "branch_name": "refs/heads/master", "committer_date": "2021-06-24T10:50:20", "content_id": "21200850fc5baafdefe11fe0476cd3bd31335309", "detected_licenses": [ "MIT" ], "directory_id": "e10da009043ed1dcb98a61c5a1eb7fda01908602", "extension": "c"...
stackv2
/* * @explain: Copyright (c) 2020 WEI.ZHOU. All rights reserved. * The following code is only used for learning and communication, not for * illegal and commercial use. If the code is used, no consent is required, but * the author has nothing to do with any problems and consequences. * * In case of code problems,...
2.765625
3
2024-11-19T01:30:58.437996+00:00
2013-01-23T09:19:10
14af0861a7c41dbe1b8ff95789bc180844340370
{ "blob_id": "14af0861a7c41dbe1b8ff95789bc180844340370", "branch_name": "refs/heads/master", "committer_date": "2013-01-23T09:19:10", "content_id": "9aa61d74ab85e7d910285dca4b87a165c4e5b5af", "detected_licenses": [ "MIT" ], "directory_id": "0c79db4ee572d16e23a719da725adb23bd9e2641", "extension": "c"...
stackv2
/* * Copyright (c) 2012 Israel Jacquez * See LICENSE for details. * * Israel Jacquez <mrkotfw@gmail.com> */ #include <arp.h> #include "arp-internal.h" bool arp_sync_nonblock(void) { uint32_t b; /* Send 'D' back iff we receive an 'I' */ if ((b = arp_xchg_byte('D')) != 'I') ...
2.375
2
2024-11-19T01:30:58.482607+00:00
2019-08-25T02:51:30
6f2f48fd80dae68be7cb43e094806cfc433978b1
{ "blob_id": "6f2f48fd80dae68be7cb43e094806cfc433978b1", "branch_name": "refs/heads/development", "committer_date": "2019-09-28T22:27:54", "content_id": "edc5cfed0f2d800204829af883bb2c561aa4f06a", "detected_licenses": [ "ISC" ], "directory_id": "93be5d831adfdc50cb4275e54e1741d0d1a2ea06", "extension"...
stackv2
#include<libtransistor/nx.h> #include<string.h> #include<stdlib.h> #include<stdio.h> #include<math.h> #include "reswitched_logo.h" #define ASSERT_OK(label, expr) if((r = expr) != RESULT_OK) { \ printf("assertion failed at %s:%d: result 0x%x is not OK\n", __FILE__, __LINE__, r); \ goto label; \ } int...
2.265625
2
2024-11-19T01:30:58.802198+00:00
2021-04-14T16:42:03
5f11d68c9ae386e9ed6696de9bad55a95b104406
{ "blob_id": "5f11d68c9ae386e9ed6696de9bad55a95b104406", "branch_name": "refs/heads/master", "committer_date": "2021-04-14T16:42:03", "content_id": "497839cbd92faf2168825844e91989308021e6f0", "detected_licenses": [ "CC0-1.0" ], "directory_id": "b184cce5d756c7385f6da3017f8d062118e2d418", "extension":...
stackv2
#include "dbg.h" #include "impl_mpi.h" #include "impl_omp.h" #include <inttypes.h> #include <math.h> #include <mpi.h> #include <omp.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> const double THRESHOLD = 0.01l; static inline double percent_error(double of, double against) { if (against != 0) ...
2.265625
2
2024-11-19T01:31:00.846982+00:00
2020-10-07T03:47:09
65fc99aac7bcc78bd9a082a0357da24a6ab3675f
{ "blob_id": "65fc99aac7bcc78bd9a082a0357da24a6ab3675f", "branch_name": "refs/heads/master", "committer_date": "2020-10-07T03:47:09", "content_id": "1e98831bd3e9ee8200268e8878d429289dfe4db2", "detected_licenses": [ "MIT" ], "directory_id": "a5291e27517386d059ce41515b3d105e524cdef9", "extension": "h"...
stackv2
#ifndef CGBN_ERR_H_ #define CGBN_ERR_H_ #include <inttypes.h> typedef enum { cgbn_no_error=0, cgbn_unsupported_threads_per_instance=1, cgbn_unsupported_size=2, cgbn_unsupported_limbs_per_thread=3, cgbn_unsupported_operation=4, cgbn_threads_per_block_mismatch=5, cgbn_threads_per_instance_mismatch=6, cg...
2.078125
2
2024-11-19T01:31:03.335245+00:00
2023-07-13T02:22:06
d8aef40ebd8c423804ce56ac6ad41494f3eaaaf7
{ "blob_id": "d8aef40ebd8c423804ce56ac6ad41494f3eaaaf7", "branch_name": "refs/heads/main", "committer_date": "2023-07-13T02:22:06", "content_id": "a881769507eaa9aaa9ef07f6077cc66c2e758b24", "detected_licenses": [ "MIT" ], "directory_id": "663f25816bac61647fd0ba9e4f55fe4eb6a9b292", "extension": "c", ...
stackv2
/* * main.c - part of the chess demo in the glut distribution. * * (C) Henk Kok (kok@wins.uva.nl) * * This file can be freely copied, changed, redistributed, etc. as long as * this copyright notice stays intact. */ #include <stdlib.h> #include <GL/glut.h> #include <math.h> #include "chess.h" /* Some <math.h> ...
2.328125
2