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-18T20:03:47.160442+00:00
2016-07-06T08:39:14
6b05e430e98b6f6c75069bcfae6c9292f23cd1db
{ "blob_id": "6b05e430e98b6f6c75069bcfae6c9292f23cd1db", "branch_name": "refs/heads/master", "committer_date": "2016-07-06T08:39:14", "content_id": "245d83190d1a77f7a452f88a00bae4407ed1d401", "detected_licenses": [ "MIT" ], "directory_id": "7b738332c6b5f6289bf98e3e2311ace3830c98b7", "extension": "c"...
stackv2
#include <inttypes.h> #include "net.h" #include "net_make.h" #include "net_thread.h" #include "net_time.h" #include "stdio.h" #include "stdlib.h" #include <inttypes.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/mman.h> #include <assert.h> static const char* server_ip = "127.0.0.1"; static int32_...
2.5
2
2024-11-18T18:34:54.798345+00:00
2014-06-23T01:48:52
14ea366ba41219538a61f145d7ab80187a07d293
{ "blob_id": "14ea366ba41219538a61f145d7ab80187a07d293", "branch_name": "refs/heads/master", "committer_date": "2014-06-23T01:48:52", "content_id": "af2cd68669bc0f7d02984b7c39c42add9ba0413c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ce315d03c7a79d828368f779269a67681e5782ff", "extensio...
stackv2
/** * @file * OpenCC API. * * @license * Open Chinese Convert * * Copyright 2010-2013 BYVoid <byvoid@byvoid.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://w...
2.140625
2
2024-11-18T18:36:13.345490+00:00
2018-08-18T15:17:44
82997d3e5b14b9daed32c215789df123142ea5ff
{ "blob_id": "82997d3e5b14b9daed32c215789df123142ea5ff", "branch_name": "refs/heads/master", "committer_date": "2018-08-18T15:17:44", "content_id": "34547521ebbdc34d6381cb36d6f1d4e6576ef198", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "19fe342bab10893bbb0356cf4a5cf7a948d8b1c0"...
stackv2
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The code in this file has been taken from // gofrontend/libgo/runtime/string.goc and has been converted to C. #include "runtime.h" #include "go-string.h" #...
2.578125
3
2024-11-18T18:46:25.639569+00:00
2022-08-30T11:53:16
795bfea63ea06b2fad7436a5194108ecd12db419
{ "blob_id": "795bfea63ea06b2fad7436a5194108ecd12db419", "branch_name": "refs/heads/master", "committer_date": "2022-08-30T11:53:16", "content_id": "92ad859ca0370d288d031ccbf5721bb8ac314fef", "detected_licenses": [ "MIT" ], "directory_id": "94d3f753593cb4cb7201d8cc5c39b50afb17f0c2", "extension": "c"...
stackv2
/** File: ldata.c Project: DCPU-16 Tools Component: LibDCPU-ci-objfmt Authors: James Rhodes Description: Defines functions used to retrieve the linker table from an object file. **/ #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #incl...
2.875
3
2024-11-18T18:47:49.818637+00:00
2021-10-21T19:35:27
a68ef9d19d31488abb7c9dc512618f49f93fd293
{ "blob_id": "a68ef9d19d31488abb7c9dc512618f49f93fd293", "branch_name": "refs/heads/master", "committer_date": "2021-10-21T19:35:27", "content_id": "97ef45157dcf2b333f003ac6073acdf9fdebb3e3", "detected_licenses": [ "MIT" ], "directory_id": "d4ae4b93c2bf81567940c51a0c85fd811fd04340", "extension": "h"...
stackv2
#ifndef statusLEDs_h // Start of precompiler check to avoid dupicate inclusion of this code block. #define statusLEDs_h // Precompiler macro used for precompiler check. #include <main.h> // Header file for all libraries needed by this program. const uint8_t numColoursSupported = 8; // Number of colours LED can be se...
2.765625
3
2024-11-18T18:47:50.228447+00:00
2019-02-12T16:02:15
a3e0bbe950568f4c0b91702329ff7d919bbc044b
{ "blob_id": "a3e0bbe950568f4c0b91702329ff7d919bbc044b", "branch_name": "refs/heads/master", "committer_date": "2019-02-12T16:02:15", "content_id": "d0498b1099c1965effc5e6aa5df64671923a447c", "detected_licenses": [ "MIT" ], "directory_id": "c543b725d4eb13f4c3fc7b992252b27513c4d178", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct No { struct No* proximo; int val; } No; typedef struct Lista{ No* cabeca; } Lista; No* novoNo(int valor) { No* tmp = (No*) malloc(sizeof(No)); tmp->val = valor; tmp->proximo = NULL; return tmp; } Lista* novaLista() { Lista* nova = (L...
3.46875
3
2024-11-18T19:09:00.150507+00:00
2022-05-19T08:52:27
f3316223e332baead7c46ef855445f1ed5993824
{ "blob_id": "f3316223e332baead7c46ef855445f1ed5993824", "branch_name": "refs/heads/master", "committer_date": "2022-05-19T08:52:27", "content_id": "1cceb2e09890a7fff649027978f8e3575bad9204", "detected_licenses": [ "MIT" ], "directory_id": "a0ad004b92759b434a31c3e6a6c1f1a1095b2162", "extension": "c"...
stackv2
/* A Lispkit implementation. Copyright (c) 2011 A. Carl Douglas 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, c...
2.078125
2
2024-11-18T19:09:01.902044+00:00
2018-11-22T14:16:42
248df58650d941d8fc19c3cc253f8a5e712117f6
{ "blob_id": "248df58650d941d8fc19c3cc253f8a5e712117f6", "branch_name": "refs/heads/master", "committer_date": "2018-11-22T14:16:42", "content_id": "db924475c522455e03a68702142fa4733774438c", "detected_licenses": [ "MIT" ], "directory_id": "ab111b8a93a03a5feaf18b259cc8bd5056299e0b", "extension": "h"...
stackv2
/* * Copyright (c), Recep Aslantas. * * MIT License (MIT), http://opensource.org/licenses/MIT * Full license can be found in the LICENSE file */ #ifndef type_h #define type_h #include "common.h" typedef enum GkType { GKT_UNKNOWN = 0, GKT_INT32 = 1, GKT_UINT32 = 2, GKT_INT16 = 3, GKT_UINT16 = 4, ...
2
2
2024-11-18T19:10:22.944918+00:00
2018-11-04T07:57:08
8a2a7253c710b059d2b1a3e3296faf005d62c042
{ "blob_id": "8a2a7253c710b059d2b1a3e3296faf005d62c042", "branch_name": "refs/heads/master", "committer_date": "2018-11-04T07:57:08", "content_id": "bdfc1190ed0cac4cad046fa9bf414e290f17e73e", "detected_licenses": [ "MIT" ], "directory_id": "17cff0324e1202ae3ded55f4342092fe17e6f505", "extension": "c"...
stackv2
/* Selection Sorting (Ascending order) */ #include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { int arr[50]={0}; int len, i, j, min_location, temp; /* take the elements of array from user */...
3.90625
4
2024-11-18T19:10:23.212009+00:00
2023-08-17T16:08:06
37fb591d460c21d16e71fcab9f0f6b62d464b478
{ "blob_id": "37fb591d460c21d16e71fcab9f0f6b62d464b478", "branch_name": "refs/heads/main", "committer_date": "2023-08-17T16:08:06", "content_id": "c7f8788a69765ceaefeaba42c388f91340399e93", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066", "extensio...
stackv2
/* Demonstrates using the HDF5 viewer with a DMDA Vec - create a global vector containing a gauss profile (exp(-x^2-y^2)) - write the global vector in a hdf5 file The resulting file gauss.h5 can be viewed with Visit (an open source visualization package) Or with some versions of MATLAB with data=hdfread('ga...
2.625
3
2024-11-18T19:11:30.322364+00:00
2021-05-04T13:08:46
fe2b5bb0a8cb851b0a547636277d35f60a8ce546
{ "blob_id": "fe2b5bb0a8cb851b0a547636277d35f60a8ce546", "branch_name": "refs/heads/main", "committer_date": "2021-05-04T13:08:46", "content_id": "dc7e2e88063fad928a4a398b95e27bba55158034", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "db38166b95ff7154fcf6f90c5d7982b99372b6da", "extensio...
stackv2
#include "io_binary.h" #include <mpi.h> #include <stdio.h> #include <stdlib.h> #ifndef min #define min(a, b) (((a) < (b)) ? (a) : (b)) #endif static void write_bmp(int w, int h, float **u, unsigned int iter, float minval, float maxval) { int i, j; int padding, filesize; float v, r, g, b; ...
2.328125
2
2024-11-18T19:11:30.488737+00:00
2017-12-30T16:32:57
d1f2a28a1cfafe420a75ce9d68e45b9c03a41201
{ "blob_id": "d1f2a28a1cfafe420a75ce9d68e45b9c03a41201", "branch_name": "refs/heads/master", "committer_date": "2017-12-30T16:32:57", "content_id": "a33f2746b2e98748b4ef6729818f3c892391139e", "detected_licenses": [ "MIT-Modern-Variant" ], "directory_id": "bddace650be6fb0ca39fca6a32360aa6daae9d96", "...
stackv2
#include "syscall.h" #define MAX_FILENAME_SIZE 255 char fileName[MAX_FILENAME_SIZE + 1]; int main() { PrintString("Name of file to create: "); ReadString(fileName, MAX_FILENAME_SIZE); if (CreateFile(fileName) == 0) PrintString("Successfully create new file.\n"); else PrintString("Fail to create file.\n"); ...
2.375
2
2024-11-18T19:23:30.327320+00:00
2021-05-04T22:03:27
68223dfa1d55f776b8c941a8c27becfde3e9db44
{ "blob_id": "68223dfa1d55f776b8c941a8c27becfde3e9db44", "branch_name": "refs/heads/master", "committer_date": "2021-05-04T22:03:27", "content_id": "eb24b760f999234ea568a97adf979a0c206e7516", "detected_licenses": [ "MIT" ], "directory_id": "bc8186616c2f186faaeaccae74021851a446fbe4", "extension": "c"...
stackv2
#include <stdint.h> #include <stdlib.h> #include <string.h> #include <png.h> #include "png_out.h" #include "protocol/mpdu.h" struct _pngout{ FILE *fd; unsigned int width, height; uint8_t *rgbrow; png_structp png_ptr; png_infop info_ptr; int ready; }; int png_init(void **_dst, const char *fname, int width, int...
2.375
2
2024-11-18T19:31:55.814477+00:00
2023-07-21T14:01:28
d419a573178d65140679e4d84982e7fb7a6bcc03
{ "blob_id": "d419a573178d65140679e4d84982e7fb7a6bcc03", "branch_name": "refs/heads/master", "committer_date": "2023-07-21T14:01:28", "content_id": "75323808683b41291ef6aa4aeebde1eb18bfa60e", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "020ef13aa76bde79e045e170db391f056ea204df", "extens...
stackv2
/* * Copyright (c) 2013-2022 Arm Limited. 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 required ...
2.140625
2
2024-11-18T19:31:55.899825+00:00
2016-10-31T02:10:27
6c1ebf95f405100c5afa77d6dd4c1d9cec14a01e
{ "blob_id": "6c1ebf95f405100c5afa77d6dd4c1d9cec14a01e", "branch_name": "refs/heads/master", "committer_date": "2016-10-31T02:10:27", "content_id": "7232fbf55a1e6aabad90d8873f5deefb81bde63d", "detected_licenses": [ "MIT" ], "directory_id": "fb6edcc4b50ab78462b8e14240b053ccf0b4ebbc", "extension": "c"...
stackv2
#include <stdlib.h> #include "api/sk_module.h" size_t sk_module_stat_unpack_inc(sk_module_t* module) { if (!module) return 0; __sync_fetch_and_add(&module->stat.called_total, 1); return __sync_fetch_and_add(&module->stat.called_unpack, 1); } size_t sk_module_stat_unpack_get(sk_module_t* module) { if...
2.046875
2
2024-11-18T19:31:55.961909+00:00
2019-03-09T13:45:37
e82ebc4884ef61769353032be9b6e887216e1bb4
{ "blob_id": "e82ebc4884ef61769353032be9b6e887216e1bb4", "branch_name": "refs/heads/master", "committer_date": "2019-03-09T13:45:37", "content_id": "d540c45b9737cd26ab80d7370b8e776cdd218cbd", "detected_licenses": [ "MIT" ], "directory_id": "73adf4b03f84f573479c23b5f22fad6169852db2", "extension": "c"...
stackv2
#include "windows.h" #include "stdio.h" #include "tchar.h" int WINAPI WinMain(HINSTANCE inst, HINSTANCE prinst, LPSTR cmdline, int showcmd) { int style; int exstyle; STARTUPINFO si; PROCESS_INFORMATION pi; LPTSTR cmd = _tcsdup(TEXT("C:\\Windows\\system32\\cmd.exe")); HWND win; HANDLE out; COORD size; SMALL_R...
2.046875
2
2024-11-18T19:42:00.524133+00:00
2021-10-01T03:26:25
0b01d3c76caff33126c3d66611a3a85978a88658
{ "blob_id": "0b01d3c76caff33126c3d66611a3a85978a88658", "branch_name": "refs/heads/main", "committer_date": "2021-10-01T03:26:25", "content_id": "923992c7388acdb919cd36edd8209dbaee62ecf6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c51732147da0a4901950fd291e3e4d917ce4cd89", "extension"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <sys/wait.h> #include <string.h> int main(){ pid_t pid; char *args[4], a[3]; int l, i; char *x; if ((pid = fork()) == 0) { // child process system ("echo CHILD executing LS in current directory:"); printf("\nI...
2.96875
3
2024-11-18T19:42:00.824135+00:00
2016-01-13T11:01:20
ca8d55c1b7688012f378428368e39b90910af624
{ "blob_id": "ca8d55c1b7688012f378428368e39b90910af624", "branch_name": "refs/heads/master", "committer_date": "2016-01-13T11:01:20", "content_id": "05f2af00fa02282fc90cbd0a5d2fe7317a3e30f8", "detected_licenses": [ "MIT" ], "directory_id": "e114ab03fcda58897f522dc8603365d50b098131", "extension": "c"...
stackv2
/* * The MIT License (MIT) * * Copyright (c) 2010 Technische Universitaet Berlin * * 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 t...
2.359375
2
2024-11-18T19:42:01.202442+00:00
2019-01-24T13:54:07
10db182d656b1468ece9953531c19fa108d74e2a
{ "blob_id": "10db182d656b1468ece9953531c19fa108d74e2a", "branch_name": "refs/heads/master", "committer_date": "2019-01-24T13:54:07", "content_id": "6bb62f5548f957b456c955be718aafaf8d70278c", "detected_licenses": [ "MIT" ], "directory_id": "8d41c4ebef2c10c420715f4fbfc9712f9729397b", "extension": "c"...
stackv2
/* * File: qtest.c * ------------- * This program tests the queue.h interface by simulating a * simple waiting line. Entering a name adds that person to * the waiting line. Entering a blank line removes the name * at the head of the line and displays it on the screen. * Typing "quit" exits from the program. *...
3.40625
3
2024-11-18T19:42:01.722177+00:00
2016-06-30T18:14:39
a8b0d59b39582be892a1ea5b8c17034791dcd1f1
{ "blob_id": "a8b0d59b39582be892a1ea5b8c17034791dcd1f1", "branch_name": "refs/heads/master", "committer_date": "2016-06-30T18:14:39", "content_id": "77cf47984abc105110a342947b45fb611281acd7", "detected_licenses": [ "MIT" ], "directory_id": "8776317118e79369dfbe8a820380b8d5387172b8", "extension": "c"...
stackv2
#include <stdarg.h> #include <types.h> uint32_t vsnprintf(char* str, size_t n, const char* format, va_list args) { uint32_t i = 0; //Index for format uint32_t j = 0; //Index for s uint16_t base = 0; //base used for number representation uint32_t arg_width; bool_t specifier_expected = FALSE; uint32_t k; ...
3.390625
3
2024-11-18T19:42:01.942881+00:00
2021-08-18T02:38:08
548e8b369d1aa3075c3a3b4d596e575526e6d459
{ "blob_id": "548e8b369d1aa3075c3a3b4d596e575526e6d459", "branch_name": "refs/heads/master", "committer_date": "2021-08-18T02:38:08", "content_id": "4630d5240352c58463e845b03a2a73ed434adf7f", "detected_licenses": [ "Apache-2.0", "curl" ], "directory_id": "11ddbb17eebddb29a4dbd2e89cf1e403a4e5942d",...
stackv2
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "v1beta1_validating_webhook.h" v1beta1_validating_webhook_t *v1beta1_validating_webhook_create( list_t *admission_review_versions, admissionregistration_v1beta1_webhook_client_config_t *client_config, char *failure_policy, char *matc...
2.125
2
2024-11-18T19:42:02.006728+00:00
2017-09-11T15:11:37
e1016df6df87d31a6855141e0cdcf6fe6df28733
{ "blob_id": "e1016df6df87d31a6855141e0cdcf6fe6df28733", "branch_name": "refs/heads/master", "committer_date": "2017-09-11T15:11:37", "content_id": "81f6565fce4de8154db62d46f6e49a999f3d3b78", "detected_licenses": [ "MIT" ], "directory_id": "0d1e3ba5aa72c59ee24a301c330e7c3e4f61ba48", "extension": "c"...
stackv2
#include <stdio.h> #include<string.h> #define n 8 #define m 2*n-1 typedef struct { float weight; int lchild, rchild, parent; }HTNode; typedef HTNode HuffmanTree[m + 1]; typedef struct { char ch; char bits[n + 1]; int len; }CodeNode; typedef CodeNode HuffmanCode[n + 1]; void select(HuffmanTree T, int k, int *...
2.984375
3
2024-11-18T19:42:02.074923+00:00
2018-02-17T06:33:09
2d242cb82b533b308ea309861a9a07b143d29c75
{ "blob_id": "2d242cb82b533b308ea309861a9a07b143d29c75", "branch_name": "refs/heads/master", "committer_date": "2018-02-17T06:33:09", "content_id": "9497dd08c0a63ab5b5ce2ebcf13d8664b1e9ae33", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a277bd2f527a154a0ec78093e8608c386d772e84", "extens...
stackv2
/** * @brief Platform Model (converting affinities to locations) **/ /* * This file is subject to the license agreement located in the file LICENSE * and cannot be distributed without it. This notice cannot be * removed or modified. */ #ifndef __OCR_PLATFORM_MODEL_H__ #define __OCR_PLATFORM_MODEL_H__ #include...
2
2
2024-11-18T19:42:02.203643+00:00
2021-05-06T03:27:56
aa4dec5796b4f1c36280b186c4cacc28c6c6497d
{ "blob_id": "aa4dec5796b4f1c36280b186c4cacc28c6c6497d", "branch_name": "refs/heads/master", "committer_date": "2021-05-06T03:27:56", "content_id": "658877fa446a10f98de9208296b349a3fe71ddf8", "detected_licenses": [ "MIT" ], "directory_id": "1f0c3a3058563d60f956b68dc917335317fee824", "extension": "c"...
stackv2
#include <stdbool.h> #include <string.h> #include "audio.h" #include "common.h" #include "platform.h" #define S16_MAX 32767 #define S16_MIN -32768 void initializeAudio(Audio *audio) { memset(audio->soundSlots, 0, sizeof(audio->soundSlots)); memset(&audio->streamSlot, 0, sizeof(audio->streamSlot)); audio->maste...
2.4375
2
2024-11-18T19:42:02.257556+00:00
2021-06-29T19:57:51
b21147ee5cdcbae2866a6fe13b9547a58383f155
{ "blob_id": "b21147ee5cdcbae2866a6fe13b9547a58383f155", "branch_name": "refs/heads/master", "committer_date": "2021-06-29T19:57:51", "content_id": "edcec17dc025383b96ed509300c11ff9c07aa79a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "b2c50961cf21569441fd3d09c0274942f6f044da", "extens...
stackv2
#define _COMMAND_NS_MOP_C_ #include "command.h" #if RPL_WITH_NON_STORING #include "net/rpl/rpl-ns.h" int get_route_list(FILE *fp, char *buf, int buflen) { rpl_ns_node_t *r; char ipstr[128], parent[128]; int n=0, wr_comma=0; uip_ipaddr_t ip; for(r = rpl_ns_node_head(); r != NULL; r = rpl_ns_node_nex...
2.109375
2
2024-11-18T19:42:03.429643+00:00
2016-04-30T03:58:18
90630198b01d4d66a234f13ac5daf53371c45fb8
{ "blob_id": "90630198b01d4d66a234f13ac5daf53371c45fb8", "branch_name": "refs/heads/main", "committer_date": "2016-04-30T03:58:18", "content_id": "e6a32c78d0b43f21eb818f23d50e79fb03131e16", "detected_licenses": [ "MIT" ], "directory_id": "7f51c365786ed23d1435252e453f7d07e80daba0", "extension": "h", ...
stackv2
/** * Some utilities useful for OpenCL hosts. * * (c) L. Diener, 2013 */ #ifndef __UTIL_H__ #define __UTIL_H__ #include <CL/opencl.h> #ifndef M_PI #define M_PI 3.14159265358979323846 #endif char *read_file(const char *filename, size_t *length); cl_platform_id ocl_find_platform(cl_device_type device_type); cl_d...
2
2
2024-11-18T19:42:03.496325+00:00
2018-10-29T10:57:03
b3e3023b0ced4e186720ce252b7184a02b450a89
{ "blob_id": "b3e3023b0ced4e186720ce252b7184a02b450a89", "branch_name": "refs/heads/master", "committer_date": "2018-10-29T10:57:03", "content_id": "cd1c4be6b14241dd56aa0c8ae63c338a7373897d", "detected_licenses": [ "ISC" ], "directory_id": "f67034baf04a396830246492e79fd08e85774eed", "extension": "c"...
stackv2
#include <assert.h> #include <err.h> #include <errno.h> #include <fcntl.h> #include <sysexits.h> #include <stdbool.h> #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <getopt.h> #include <unistd.h> #include <dirent.h> #include <math.h> #incl...
2.53125
3
2024-11-18T19:42:04.395596+00:00
2020-07-02T17:27:24
3ec4a59bfaf65f208602835b98ffa1887848132e
{ "blob_id": "3ec4a59bfaf65f208602835b98ffa1887848132e", "branch_name": "refs/heads/master", "committer_date": "2020-07-02T17:27:24", "content_id": "b6da46366913975f56f9fcc66f3509bf9fb9117a", "detected_licenses": [ "MIT" ], "directory_id": "229b9b6cd315d7c9385be660d7280e30d16f1658", "extension": "c"...
stackv2
#include <stdio.h> /** * this function should add to inigers that given but it do it WRONG!! * @param * @return */ int main(){ int n=0; int number1=0,number2=0; scanf("%d",&n); for(int i=0;i<n;i++){ //printf("n1, n2: "); scanf("%d %d",&number1, &number2); printf("%d\n",0); } return 0; }
2.875
3
2024-11-18T19:42:04.468934+00:00
2021-10-07T17:21:33
c970e54828fad31fca06b678cf137347d8b484c1
{ "blob_id": "c970e54828fad31fca06b678cf137347d8b484c1", "branch_name": "refs/heads/master", "committer_date": "2021-10-07T17:21:33", "content_id": "f4c078db94ff57dcf36ea2e107a5805a9850a1a8", "detected_licenses": [], "directory_id": "fbd188f3404554fbe07f4540ae40a1c06bfcb818", "extension": "c", "filename...
stackv2
#include <stdio.h> #include <stdlib.h> #define N 20 void printSeq(int a[], int n) { printf("["); for (int i=0; i<n; i++) printf("%d ", a[i]); if (n==0) printf("]\n"); else printf("\b]\n"); } void quicksort(int arr[], int n) { /* Sorts arr in ascending order. * n is the dimension of arr. * Uses a divide and co...
3.71875
4
2024-11-18T19:42:04.605851+00:00
2021-05-25T08:05:15
ecd7405f9186d220616546cf3dc3278aea83f811
{ "blob_id": "ecd7405f9186d220616546cf3dc3278aea83f811", "branch_name": "refs/heads/master", "committer_date": "2021-05-25T08:05:15", "content_id": "24d733402f111d1af6a80959c14f7f634ef39189", "detected_licenses": [ "MIT" ], "directory_id": "6789bad75e1215d39b38966cc0c8342801549c27", "extension": "c"...
stackv2
#include "lib/default_tests.h" #include "../inc/mh_convert.h" MH_TEST_ADD(conversion_test) { char str[5]; char zero[2]; mh_memory_t mem = MH_REF_CONST(str); mh_memory_t zbuf = MH_REF_CONST(zero); mh_unsigned_number_t u_num = 0; mh_signed_number_t num = 0; MH_TEST_EXPECT(!mh_int_to_string(&...
2.359375
2
2024-11-18T19:42:04.951609+00:00
2021-09-20T21:38:52
aacea210edbb5ab786194a5b6e33994a1325d0de
{ "blob_id": "aacea210edbb5ab786194a5b6e33994a1325d0de", "branch_name": "refs/heads/main", "committer_date": "2021-09-20T21:38:52", "content_id": "a15f1ecbc64baf9156699bb8ee496512a95cfdf3", "detected_licenses": [ "MIT" ], "directory_id": "9e0c7e901f7e41501491b16040af3bb98a3fafd3", "extension": "h", ...
stackv2
/* * INA219_MVD.h * * Created on: Sep 8, 2021 * Author: Murilo Henrique Pasini Trevisan */ #ifndef INC_INA219_MVD_H_ #define INC_INA219_MVD_H_ #include "bsp.h" /* REGISTRADORES */ // Nome Adrres(hex) #define INA_CONFIG_ADR (uint16_t)(0x00) #define INA_SHUNT_VOLT (uint16_t)(0x01) #define INA_BUS_VO...
2.25
2
2024-11-18T19:42:05.407430+00:00
2021-08-19T05:21:35
b9f778c21751f6c96e54c4c9e81d2493ef925c3d
{ "blob_id": "b9f778c21751f6c96e54c4c9e81d2493ef925c3d", "branch_name": "refs/heads/master", "committer_date": "2021-08-19T05:21:35", "content_id": "4ab92c01bb9a014368aa0b9f29caf793dc0e1528", "detected_licenses": [ "MIT" ], "directory_id": "fd9dd916926b1be00e02edb19f9e8482794e3423", "extension": "c"...
stackv2
#include "vector.h" #include <stdio.h> bool find_element_five(void* data){ if(*(int*)data == 50) return true; else return false; } bool remove_element_three(void* data){ if(*(int*)data == 30) return true; else return false; } // Let's add 1 to all elements in the vector void do_for_all_elements(void* data){ (*(...
3.34375
3
2024-11-18T19:42:05.527704+00:00
2021-04-10T08:02:12
be075a9970b5286ae400499c41fa7e7e0b4d584a
{ "blob_id": "be075a9970b5286ae400499c41fa7e7e0b4d584a", "branch_name": "refs/heads/main", "committer_date": "2021-04-10T08:02:12", "content_id": "01c1077073a648e840f2fbbcc3d8b0836b386b75", "detected_licenses": [ "MIT" ], "directory_id": "3a8b5d5c6870af94e216f1094eb6008cdc368dae", "extension": "c", ...
stackv2
#include<stdio.h> #include<stdlib.h> #include<string.h> #include "pds.h" #include "academia.h" #define TREPORT(a1,a2) printf("Status %s: %s\n\n",a1,a2); fflush(stdout); void process_line( char *test_case ); int pass=0, fail=0; int main(int argc, char *argv[]) { FILE *cfptr; char test_case[50]; if( argc != 2 ){...
2.34375
2
2024-11-18T19:42:05.594515+00:00
2018-05-08T20:11:06
3d613c1e19bdab127d71b0d84032168a550f8499
{ "blob_id": "3d613c1e19bdab127d71b0d84032168a550f8499", "branch_name": "refs/heads/master", "committer_date": "2018-05-08T20:11:06", "content_id": "f70d2ca28fd6bd85708d4c1faa86fe7f73c3cb54", "detected_licenses": [ "MIT" ], "directory_id": "3a3b797e503f84dd966f5d7c15dfcc34443efa10", "extension": "c"...
stackv2
#include <assert.h> #include "operations.h" #define MAX_INT 2147483647 /* Function to add two numbers, x and y */ int add(int x, int y) { // Do the addition and check if there is an overflow long c = (long) x + y; assert(c < MAX_INT && c > -MAX_INT); return (int) c; } /* Function to substract two n...
3.421875
3
2024-11-18T19:42:05.719511+00:00
2014-04-05T14:54:05
2d55c300b9ac3c7a8a0272ae912645ad8f87b029
{ "blob_id": "2d55c300b9ac3c7a8a0272ae912645ad8f87b029", "branch_name": "refs/heads/master", "committer_date": "2014-04-05T14:54:05", "content_id": "50915f2efee3721c6118a07ff773f35cefdc84e7", "detected_licenses": [ "MIT" ], "directory_id": "b0cbe5e9189289951387c4f5d64bed1c3798984b", "extension": "c"...
stackv2
/** * `common.c' - libsphia * * Copyright (C) 2014 The libsphia Authors <sphia@googlegroups.com> */ #include <stdlib.h> #include <string.h> #include <sphia/common.h> char * sphia_strdup (const char *str) { int len = strlen(str) + 1; char *buf = malloc(len); if (NULL == buf) return NULL; memcpy(buf, str, ...
2.09375
2
2024-11-18T19:42:06.108608+00:00
2019-10-02T01:52:30
7f9e39080643424e25e40bd9fdb94237fc351d17
{ "blob_id": "7f9e39080643424e25e40bd9fdb94237fc351d17", "branch_name": "refs/heads/master", "committer_date": "2019-10-02T01:52:30", "content_id": "cba656db77ad2887ace042ccc8f517917664fc1a", "detected_licenses": [ "Unlicense" ], "directory_id": "419e4a81d620861900244d10275c27f06407d375", "extension...
stackv2
/* today is 389f */ /* the C cave */ /* magPi - 04 */ #include <stdio.h> int main() { char str[50]="A test string"; /* Create a 50 character string */ printf("\"%s\"\n",str); /* Print the string. */ printf("The third character = \'%c\'\n",str[2]); return 0; /* Return success to the operating system. */ }
3.0625
3
2024-11-18T19:42:06.446328+00:00
2020-06-17T03:26:25
4fa9a62e8003be91dad6fdece5dc4c0a2c0d2aad
{ "blob_id": "4fa9a62e8003be91dad6fdece5dc4c0a2c0d2aad", "branch_name": "refs/heads/master", "committer_date": "2020-06-17T03:26:25", "content_id": "c3cc3ed1cd8557b2bffdceab65357019d95e0d83", "detected_licenses": [ "MIT" ], "directory_id": "de2a1cece63dc6a5aa9815e39fe021055ad4d453", "extension": "cp...
stackv2
//PREPEND BEGIN #include <stdio.h> //PREPEND END //TEMPLATE BEGIN int add(int a, int b,int c) { // Please fill this blank return a+b+c; } //TEMPLATE END //APPEND BEGIN int main() { printf("%d", add(2,3,4)); return 0; } //APPEND END
2.8125
3
2024-11-18T19:42:07.725909+00:00
2014-01-22T22:29:04
44635e1cfb1246729aa914be518bcd34b0ee18ab
{ "blob_id": "44635e1cfb1246729aa914be518bcd34b0ee18ab", "branch_name": "refs/heads/master", "committer_date": "2014-01-22T22:29:04", "content_id": "2489d8988c0041ff26a9590e05f9cc00d97bc429", "detected_licenses": [ "MIT" ], "directory_id": "9d7440d9796e84ff3640aaa31b436b80162e70dd", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> int main( void ) { srand( time( NULL ) ); int iter = 0; int sww = 0; int stw = 0; int i = 0; char winstr[4]; printf("How many times should we run the simulation? "); scanf("%d", &iter); for (i = 1; i <= iter; i++) { int winner...
3.09375
3
2024-11-18T19:42:08.167110+00:00
2013-08-19T18:25:13
5abd7aa7b819f5578aa31e8231429a1ee35cb2c4
{ "blob_id": "5abd7aa7b819f5578aa31e8231429a1ee35cb2c4", "branch_name": "refs/heads/master", "committer_date": "2013-08-19T18:25:13", "content_id": "353dccf8307ef49d1dcde257d241ffb8479c6c30", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "1007537dd7e16f7fad1f1a082f480f24116649c6"...
stackv2
#include <stdio.h> #include "matlabLexer.h" #include "matlabParser.h" void chomp( char *str ) { int len = strlen( str ); if ( len == 0 ) { return; } if ( str[len-1] == '\n' ) { str[len-1] = '\0'; len--; } if ( len == 0 ) { return; } if ( str[len-1] == '\r' ) { str[len-1] = '\0'; ...
2.546875
3
2024-11-18T19:42:08.586146+00:00
2021-02-24T14:50:11
0b3edf16d0ae7d4e91ea391971d80cac7389e2d7
{ "blob_id": "0b3edf16d0ae7d4e91ea391971d80cac7389e2d7", "branch_name": "refs/heads/main", "committer_date": "2021-02-24T14:50:11", "content_id": "6b6e24a978ad78fe5bb17f13010f48c1b0ea08a4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a6dd3cc9a51399bb2fe90bc1a14c6f45cd5f2923", "extension"...
stackv2
#include "key.h" #include "delay.h" // 按键初始化函数 // PA0.15和PC5 设置成输入 void KEY_Init(void){ GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_GPIOC,ENABLE);// 使能PORTA,PORTC时钟 GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);// 关闭jtag,使能SWD,可以用SWD模式调试 GPIO...
2.890625
3
2024-11-18T19:42:12.993659+00:00
2014-07-14T08:34:17
7d909be9f446b10cad8f15c65b4a2d0989cb04e5
{ "blob_id": "7d909be9f446b10cad8f15c65b4a2d0989cb04e5", "branch_name": "refs/heads/master", "committer_date": "2014-07-14T08:34:17", "content_id": "a5d7cdcd3c28373fe5adc026047e7f9018217791", "detected_licenses": [ "PostgreSQL" ], "directory_id": "2674fdc7e0d2cfd71bad43cc4254c040bfadcce7", "extensio...
stackv2
/*------------------------------------------------------------------------- * * bitmapcompare.c * Comparison functions for bitmap access method. * * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATIO...
2.203125
2
2024-11-18T19:42:13.081121+00:00
2016-09-06T09:09:19
81ca6d25eae0ca660bc626a95e0173cd4a987a09
{ "blob_id": "81ca6d25eae0ca660bc626a95e0173cd4a987a09", "branch_name": "refs/heads/master", "committer_date": "2016-09-06T09:09:19", "content_id": "d6a4a08455971006469fe96309fe8b56432c97fa", "detected_licenses": [ "Apache-2.0" ], "directory_id": "854a2ab8f607265759b7d9cb0211dc451be6e469", "extensio...
stackv2
/* * sigcat.c * a signal handler to catch the segv signal. */ #include <stdio.h> #include <stdlib.h> #include <signal.h> void handler( int s ) { if ( s == SIGBUS ) { printf( "Now got a bus error signal\n" ); } if ( s == SIGSEGV ) { printf( "Now got a segmentation violation signal\n" ); exit( 1 ); ...
3.03125
3
2024-11-18T19:42:13.227449+00:00
2021-03-16T06:41:22
fedc30c2001f5df01ddfcbc3e223084a4fdaba10
{ "blob_id": "fedc30c2001f5df01ddfcbc3e223084a4fdaba10", "branch_name": "refs/heads/master", "committer_date": "2021-03-16T06:41:22", "content_id": "c79c1a02b49c6b2f6d2f7e4e4ff9440d58dc2213", "detected_licenses": [ "MIT" ], "directory_id": "7178a389b725065d08740f35911ff0a7fbb07307", "extension": "c"...
stackv2
/* ** EPITECH PROJECT, 2019 ** PSU_42sh_2019 ** File description: ** expr_statement */ #include <stdlib.h> #include <string.h> #include "proto/grammar.h" #include "proto/expr.h" /* ** @DESCRIPTION ** Rule for statement expression. */ static struct expr_statement_s *expr_statement(struct grammar_s *this) { stru...
2.53125
3
2024-11-18T19:42:13.453392+00:00
2019-06-06T08:15:54
a4512e0e4a94255c486631c9fb2b55d90cd25f47
{ "blob_id": "a4512e0e4a94255c486631c9fb2b55d90cd25f47", "branch_name": "refs/heads/master", "committer_date": "2019-06-06T08:15:54", "content_id": "c49a34b17effb38613b7727d0ae0949d7d1ab901", "detected_licenses": [ "MIT" ], "directory_id": "2cfb80359afa49a2b655800c33f1d9bae3db4c4a", "extension": "c"...
stackv2
/// /// Copyright (c) 2010 Advanced Micro Devices, Inc. /// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, /// EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED /// WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. /// \file main.c /// \brief ...
2.09375
2
2024-11-18T19:42:13.598380+00:00
2018-12-02T12:03:00
2d851bab2f962d585bddbb08774838c3ebeb2599
{ "blob_id": "2d851bab2f962d585bddbb08774838c3ebeb2599", "branch_name": "refs/heads/master", "committer_date": "2018-12-02T12:03:00", "content_id": "610b1dd34c3fe11f7277eb399dc5aab91328f919", "detected_licenses": [ "Unlicense" ], "directory_id": "ca17d0474a00610b037ba36b2dd471c83e79e9e4", "extension...
stackv2
#ifdef _WIN32 #define _CRT_SECURE_NO_WARNINGS #include <direct.h> #else #include <sys/stat.h> #endif #include <stdio.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #define IOERR "Error: Failed to open \"%s\" for %s.\n" typedef struct Header { char Signature[8]; uint32_t FileCount; uint32_t Size; ...
2.703125
3
2024-11-18T19:42:14.897808+00:00
2016-07-31T00:09:39
c3ce9ec5b88043256b30e77b40e7bf319e409d81
{ "blob_id": "c3ce9ec5b88043256b30e77b40e7bf319e409d81", "branch_name": "refs/heads/master", "committer_date": "2016-07-31T00:09:39", "content_id": "13d802de00a2c06937c71881b5250267bc2be561", "detected_licenses": [ "MIT" ], "directory_id": "e4ebe115cdc36af922f32fdeb0636ecf1b066100", "extension": "h"...
stackv2
/* Author: Emmanuel Odeke <odeke@ualberta.ca> Prime number generation algorithms. Two related but slightly different algorithms for generating prime numbers: 1. sieve algorithm: Start by filling a list with '2' and then odd numbers. For each odd number find and mark out its multiples in th...
2.65625
3
2024-11-18T19:42:14.954917+00:00
2019-04-20T23:09:23
3fdabbec34193379019822560bc3153a99829f8e
{ "blob_id": "3fdabbec34193379019822560bc3153a99829f8e", "branch_name": "refs/heads/master", "committer_date": "2019-04-20T23:09:23", "content_id": "e92fced1e5a80bce7dc95521949266dacd791a6f", "detected_licenses": [ "ISC" ], "directory_id": "a597fed65a73ced00d20ae32e125ac1e0e553bc8", "extension": "c"...
stackv2
/* See LICENSE file for copyright and license details. */ #include "stream.h" #include "util.h" #include <alloca.h> #include <fcntl.h> #include <inttypes.h> #include <limits.h> #include <string.h> #include <unistd.h> USAGE("[-L] (file (end-point | 'end')) ...") int main(int argc, char *argv[]) { struct stream strea...
2.84375
3
2024-11-18T19:42:20.741190+00:00
2014-10-27T05:46:09
39f8801d575884180657bc37d4297d5cb106f9b2
{ "blob_id": "39f8801d575884180657bc37d4297d5cb106f9b2", "branch_name": "refs/heads/master", "committer_date": "2014-10-27T05:46:09", "content_id": "565590dddcd9afa90c68947b5d9f7b8776b9e452", "detected_licenses": [ "MIT" ], "directory_id": "2292b7ea3cb2549450e530ac7da17797d699997b", "extension": "h"...
stackv2
/* Copyright 2014, Casey W. Stark. See LICENSE for more information. The spectrum header provides the functions for computing the optical depth. */ #ifndef __is_spectrum_h__ #define __is_spectrum_h__ #include "constants.h" const double odf_const = pi * e_cgs * e_cgs / (m_e_cgs * c_cgs); const double hilya_f = 0.41...
2.3125
2
2024-11-18T19:42:20.790400+00:00
2020-09-26T10:13:18
a1694fa4579e57bc7f3db92cf4653cab1c6516e6
{ "blob_id": "a1694fa4579e57bc7f3db92cf4653cab1c6516e6", "branch_name": "refs/heads/master", "committer_date": "2020-09-26T10:13:18", "content_id": "a2687765b7109cb32459c7bcfaa6daa7fe2bcc9a", "detected_licenses": [ "MIT" ], "directory_id": "62485b76b03d1a4f39e0471e1b31c7654c902f3f", "extension": "c"...
stackv2
// // Nova27's Operating System // // Copyright (c) 2020 nova27 // // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php #include "includes/efi.h" #define NULL 0 EFI_SYSTEM_TABLE *st; EFI_GRAPHICS_OUTPUT_PROTOCOL *gop; EFI_SIMPLE_FILE_SYSTEM_PROTOCOL *sfsp; /* SystemT...
2.640625
3
2024-11-18T19:42:20.874735+00:00
2021-08-29T16:40:36
40cdf143e79f9b16c66a4958a890c19758a8ae40
{ "blob_id": "40cdf143e79f9b16c66a4958a890c19758a8ae40", "branch_name": "refs/heads/main", "committer_date": "2021-08-29T16:40:36", "content_id": "c0d20a5d66d08dead2370be3443212145ba4a130", "detected_licenses": [ "MIT" ], "directory_id": "29794dfd976bc374fcdd93b1ed1412776ea25bac", "extension": "c", ...
stackv2
#include <stdio.h> #define M 3 #define N 3 int main() { int Matriz[M][N]; unsigned short int Identidade = 0; for (int i = 0; i < M; i++) { for (int j = 0; j < N; j++) { printf("Digite seu valor de M(%d,%d): ", i+1, j+1); scanf("%d", &Matriz[i][j]); ...
3.421875
3
2024-11-18T19:42:21.038406+00:00
2015-04-13T17:24:17
807a331dbea03ea09ea7c8c2cda48cd755bc2baa
{ "blob_id": "807a331dbea03ea09ea7c8c2cda48cd755bc2baa", "branch_name": "refs/heads/master", "committer_date": "2015-04-13T17:24:17", "content_id": "868c3678b7628b91c0b6fdd8d974b88c8194aa47", "detected_licenses": [ "MIT" ], "directory_id": "7b3c9148e054ddf8f99de542e44ca9dd739d951b", "extension": "c"...
stackv2
//user program to test getuid syscall #include "types.h" #include "stat.h" #include "user.h" int MAX_LEN = 200; // buffer lenght for username, password, and user id lengths // represents each user typedef struct user { char username[200]; char userId[200]; } USER; int main(void) { // supports USER use...
2.875
3
2024-11-18T19:42:21.210470+00:00
2020-05-06T02:12:53
f1f79d820a813abffed042e34f93c73977c6d6c8
{ "blob_id": "f1f79d820a813abffed042e34f93c73977c6d6c8", "branch_name": "refs/heads/master", "committer_date": "2020-05-06T02:12:53", "content_id": "dc4fdd5e49e97c72cf9ba46ea5fecc7c87d9ccce", "detected_licenses": [ "MIT" ], "directory_id": "c4ede35542c4fddc0eb84d2ffe4fdb7ee1c26687", "extension": "c"...
stackv2
#include "visualizer.h" void visInit(Visualizer *v, int w, int h) { v->width = w; v->height = h; v->pixels = (guchar *)malloc(v->width * v->height * 3); gtk_init(NULL, NULL); v->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(v->window), "Image"); gtk_window_set_default_size(GTK...
2.234375
2
2024-11-18T19:42:21.482675+00:00
2018-06-29T14:31:28
2c2e32e989d7e5153b52e003abd0617b3a56309f
{ "blob_id": "2c2e32e989d7e5153b52e003abd0617b3a56309f", "branch_name": "refs/heads/master", "committer_date": "2018-06-29T14:31:28", "content_id": "6cded07843b993c5c9d1bdcf1d1f3f811f435a8b", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cd9ad4db56b9d665c38af23d3cb2ad6de6b38abf", "extensio...
stackv2
#include <stdio.h> /* wylicz rzeczywiste dziedziny wartości typów */ int main() { /* signed - typy ze znakiem */ printf("signed char min = %d\n", -(char) ((unsigned char) ~0 >> 1)); printf("signed char max = %d\n", (char) ((unsigned char) ~0 >> 1)); /* kolejność: 1) ~0 -> mamy liczbę, k...
3.46875
3
2024-11-18T19:42:21.597135+00:00
2013-09-04T13:47:18
4a29ca9ea2011e4c325de750c11f8fbae62f024a
{ "blob_id": "4a29ca9ea2011e4c325de750c11f8fbae62f024a", "branch_name": "refs/heads/master", "committer_date": "2013-09-04T13:47:18", "content_id": "c71ded2c72057183c0ecfd7d03d19f1c1c73d190", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "e985e34b2f5028a169be8eab2a6b64a71be506ce", "extens...
stackv2
/* Flirt, an SWF rendering library Copyright (c) 2004-2006 Dave Hayden <dave@opaque.net> All rights reserved. http://www.opaque.net/flirt/ This code is distributed under the two-clause BSD license. Read the LICENSE file or visit the URL above for details */ #include "drawmorph.h" static void ddDrawMorph_getU...
2.359375
2
2024-11-18T19:42:22.784139+00:00
2023-06-02T13:46:19
e7d76ad625169123e10af0903216e51fb2d1bb86
{ "blob_id": "e7d76ad625169123e10af0903216e51fb2d1bb86", "branch_name": "refs/heads/3.16.0-stm32mp", "committer_date": "2023-07-28T12:39:20", "content_id": "edfe1b68844e78fb6d6b1760c94aabc1f6db4e13", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a8378f8953015617c24004b33177cdfe45422174", ...
stackv2
/* SPDX-License-Identifier: BSD-3-Clause */ /* * Copyright (c) 2015-2019, Arm Limited and Contributors. All rights reserved. * Copyright (c) 2019, Linaro Limited */ #ifndef SCMI_MSG_COMMON_H #define SCMI_MSG_COMMON_H #include <assert.h> #include <stdbool.h> #include <stdint.h> #include <string.h> #include <types_ex...
2
2
2024-11-18T19:42:23.166186+00:00
2020-11-19T17:37:39
6767fae36096681774171d52dd1b34a40be2e439
{ "blob_id": "6767fae36096681774171d52dd1b34a40be2e439", "branch_name": "refs/heads/master", "committer_date": "2020-11-19T17:37:39", "content_id": "8349b285ffd115fceebfff1f47d15bcb4468c888", "detected_licenses": [ "CC0-1.0" ], "directory_id": "4f26239e80fb4849380852ff3de3340ea0620477", "extension":...
stackv2
#include "header.h" /*Funzione che,per 1o volte,incrementa di uno la stazione, ovvero la posizione del treno, e tramite scrivi_stazione effettua la modifica poi attende 3 secondi*/ void * Capotreno (void * p){ struct monitor* m = (struct monitor*) p; int i,s; s=m->stazione; for(i=0; i<10; i++){ s=s+1; scrivi_...
3.390625
3
2024-11-18T19:42:23.238859+00:00
2023-08-01T10:21:47
fcd0a26a1385182df493e4769b27c48c01b59efe
{ "blob_id": "fcd0a26a1385182df493e4769b27c48c01b59efe", "branch_name": "refs/heads/master", "committer_date": "2023-08-01T10:21:47", "content_id": "5c9c5994ed97a8a3febec230e9ba5c42ed965b60", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "68ada7984f04dca82045c7dd763a45fc4b4e6426", "extens...
stackv2
/* * machinarium. * * cooperative multitasking engine. */ #include <machinarium.h> #include <machinarium_private.h> static void mm_call_timer_cb(mm_timer_t *handle) { mm_call_t *call = handle->arg; call->timedout = 1; call->status = ETIMEDOUT; if (call->coroutine) mm_scheduler_wakeup(&mm_self->scheduler, c...
2.4375
2
2024-11-18T19:42:24.682430+00:00
2014-04-19T03:11:26
fa45bcf753a35c28fbca0ca2c9271126da87b61e
{ "blob_id": "fa45bcf753a35c28fbca0ca2c9271126da87b61e", "branch_name": "refs/heads/master", "committer_date": "2014-04-19T03:11:26", "content_id": "5d37ae80c59d1044306263a9bf0f603d1314c3d2", "detected_licenses": [ "MIT" ], "directory_id": "0f5ef25ecd715cc98259b68bc1bc2ba0a4f263a3", "extension": "c"...
stackv2
#include "pebble.h" //////////////////////////////////////////////////////////////////////////////////// //global definitions static Window *window; static TextLayer *time_text_layer; static TextLayer *date_text_layer; static TextLayer *temp_text_layer; static TextLayer *weather_text_layer; static TextLayer *battery_l...
2.21875
2
2024-11-18T19:42:25.655690+00:00
2018-10-08T02:03:43
8b4613dc518f31e2c6f7b0e3ed6302359f56addd
{ "blob_id": "8b4613dc518f31e2c6f7b0e3ed6302359f56addd", "branch_name": "refs/heads/master", "committer_date": "2018-10-09T02:45:53", "content_id": "90720b31edaa7af1a829329a22ee201a149ae2ef", "detected_licenses": [ "MIT" ], "directory_id": "e0b181ba95bf4691394d969fa3c01322212a57b0", "extension": "h"...
stackv2
#ifndef _SYS_WAIT_H #define _SYS_WAIT_H #include <sys/cdefs.h> #include <signal.h> #include <sys/resource.h> #define WNOHANG 0x00000001 // Do not hang if no status is available #define WUNTRACED 0x00000002 // Report status of stopped child process // Linux specific stuff #define __WNOTHREAD 0x20000000 // Don't wai...
2.078125
2
2024-11-18T19:42:25.714209+00:00
2020-09-27T08:03:53
4ad3fcfe9b30230296068f5e43f56b8882e7ffcf
{ "blob_id": "4ad3fcfe9b30230296068f5e43f56b8882e7ffcf", "branch_name": "refs/heads/master", "committer_date": "2020-09-27T08:03:53", "content_id": "6f0e0a47cd2b94e64c38f9be58e2ad9da1830d67", "detected_licenses": [ "Unlicense" ], "directory_id": "d9ba86ecaa0e37923909df851742a03ffc8aa16b", "extension...
stackv2
#include<stdio.h> #include <stdlib.h> #include<conio.h> typedef struct NODE { int info; struct NODE *link; } node; node *cretNode(); void insNodeEnd(); void delNode(); void viewList(); int menu(); node *start=NULL; node *cretNode() { node *n; n = (node*)malloc(sizeof(node*)); return(n); } /*void insN...
3.296875
3
2024-11-18T19:42:25.773941+00:00
2020-01-30T15:52:16
3dc48003ccc9a99b8247f32bac520da5e96c47e9
{ "blob_id": "3dc48003ccc9a99b8247f32bac520da5e96c47e9", "branch_name": "refs/heads/master", "committer_date": "2020-01-30T15:52:16", "content_id": "385a39fd19c73bfb1adbf17b0471aa5d8b44756f", "detected_licenses": [ "MIT" ], "directory_id": "40de3da30239862f11a946166b50438174c2fd4e", "extension": "c"...
stackv2
inherit "obj/monster"; reset(arg) { string chat_str, a_chat_str; object weapon,armour; ::reset(arg); if (arg) { return; } set_race("human"); set_level(33); set_mage(1); set_name("baroness"); set_gender(2); set_alias("von alset"); set_alt_name("shop owner"); set_short("Ba...
2
2
2024-11-18T19:42:25.839516+00:00
2017-11-30T08:22:14
083a5d0f6af5bb158e8605b0c9045155a4d1df24
{ "blob_id": "083a5d0f6af5bb158e8605b0c9045155a4d1df24", "branch_name": "refs/heads/master", "committer_date": "2017-11-30T08:22:14", "content_id": "190621de1969d10976ee7b20c89c0fa85cfd3b1d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6ec322d187c5d30f8acf40d6ef0dd8ac50d9a1bd", "extensio...
stackv2
/* * This program tests if two strings are anagrams of each other. * Two strings are called anagrams, if all characters in the first * string can be used to form the permutation of the second string. * For example, "fghtyy" is an anagram of "yyhgtf" but "fghtyy" is * not an anagram of "yygghy" */ #include<stdio.h...
3.78125
4
2024-11-18T19:42:26.020087+00:00
2013-12-19T08:11:43
ae6d4697b952e381fde194221b3b1ef20d179fb8
{ "blob_id": "ae6d4697b952e381fde194221b3b1ef20d179fb8", "branch_name": "refs/heads/master", "committer_date": "2013-12-19T08:11:43", "content_id": "970d86c6e7e4430d26c20fa6241baf4b0f3fbfed", "detected_licenses": [ "Apache-2.0" ], "directory_id": "53b9e2b702a9f961fd87c13b31abb7027680cdd5", "extensio...
stackv2
// Particle Filtering for 2D Robot // Josh Villbrandt // Oct 19, 2009 #include "Simulation.H" Simulation::Simulation() { } Simulation::Simulation(std::string fileName, Map map) { numParticles = 0; pixlesPerLengthUnit = 1; straightDistanceStdDev = 0; straightAngleStdDev = 0; turnAngleStdDev = 0; sonarStdDev ...
2.5625
3
2024-11-18T19:42:26.589874+00:00
2015-06-29T09:44:20
7b1c522c1b32da1a5df97c35f8d22e2aab92598b
{ "blob_id": "7b1c522c1b32da1a5df97c35f8d22e2aab92598b", "branch_name": "refs/heads/master", "committer_date": "2015-06-29T09:44:20", "content_id": "a3532a8d060271b2b4e426e7690ee3b308d3c7ee", "detected_licenses": [ "MIT" ], "directory_id": "f42f67f8fa28ffd3b8e76b0960ba7020d4304a6c", "extension": "c"...
stackv2
#include "lstd.h" void lstd_stackdump(lua_State *L) { int n = lua_gettop(L); if (n > 0) { printf("stack_duamp: tatol element is %d\n", n); } for (int i = n; i >= 1; i--) { int type = lua_type(L, i); switch (type) { case LUA_TNUMBER: printf("index %d value i...
2.15625
2
2024-11-18T19:42:26.657417+00:00
2020-02-19T23:56:55
7d9f83a2c137a86a16bad6d905570cdc93b4076c
{ "blob_id": "7d9f83a2c137a86a16bad6d905570cdc93b4076c", "branch_name": "refs/heads/master", "committer_date": "2020-02-19T23:56:55", "content_id": "d17ed534e329ace6c78ec27636ec65a8e6b2e10c", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ef58f7cd07eb02b1f71265cb150cc53239890cdd", "extens...
stackv2
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
2.046875
2
2024-11-18T19:42:27.366459+00:00
2020-10-11T18:03:21
0827d518efbc6023e8598829f48b01bc33f79c43
{ "blob_id": "0827d518efbc6023e8598829f48b01bc33f79c43", "branch_name": "refs/heads/master", "committer_date": "2020-10-11T18:03:21", "content_id": "7274d1a9f5ef9fd732b8e2824575a011fa1588e9", "detected_licenses": [ "MIT" ], "directory_id": "fe4fee5a88b0e24e21b93803f0940efb437f9af6", "extension": "c"...
stackv2
/* malloc.c: simple memory allocator */ #include <assert.h> #include <unistd.h> /* Allocate space */ void *malloc(size_t size) { void *block = sbrk(size); if (block == (void *)-1) { /* OS allocation failed */ return NULL; } return block; } /* Reclaim space */ void free(void *ptr) { } /* ...
2.640625
3
2024-11-18T19:42:28.609722+00:00
2016-01-21T09:40:39
07ee925083ecef2a68d84a26cc733b193fbc2bb1
{ "blob_id": "07ee925083ecef2a68d84a26cc733b193fbc2bb1", "branch_name": "refs/heads/master", "committer_date": "2016-01-21T09:40:39", "content_id": "339c09090cb914c8757a91d05b0f1919a735ce7b", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8bdd27f65d31bd418b89b99323af89f50423d162", "extensio...
stackv2
#ifndef MBUF_H #define MBUF_H /* Hanoh Haim Cisco Systems, Inc. */ /* Copyright (c) 2015-2015 Cisco Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licens...
2.078125
2
2024-11-18T19:42:28.663266+00:00
2020-06-22T17:40:19
49def105093152839317b3574c3719af701f6a79
{ "blob_id": "49def105093152839317b3574c3719af701f6a79", "branch_name": "refs/heads/master", "committer_date": "2020-06-22T17:40:19", "content_id": "655dfa8f6817344255fc4add3d1d6df4baaae5f3", "detected_licenses": [ "MIT" ], "directory_id": "81da5ce803350380165e5bd6436f64d0e99cd277", "extension": "c"...
stackv2
#include <stdio.h> int main(void) { int x; x = 5; printf("The value of variable x is: %d\n", x); return(0); }
2.90625
3
2024-11-18T19:42:28.746695+00:00
2021-08-09T16:45:06
d21fbfd01e269b99c1f1a9cccc04b50a9c706a6c
{ "blob_id": "d21fbfd01e269b99c1f1a9cccc04b50a9c706a6c", "branch_name": "refs/heads/main", "committer_date": "2021-08-09T16:45:06", "content_id": "1f995de0991105c7b5feb9343f8eeeac84391d40", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ae814c206354581682fdfb640b459b58b9c19868", "extension"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_sprites.c :+: :+: :+: ...
2.484375
2
2024-11-18T19:42:28.818514+00:00
2019-04-25T01:22:28
0749f76167cbd6d7dd3598e9c303a346f3634b73
{ "blob_id": "0749f76167cbd6d7dd3598e9c303a346f3634b73", "branch_name": "refs/heads/master", "committer_date": "2019-04-25T01:22:28", "content_id": "495337b1c1d99ab81bcfa0d90c5ef745cd194426", "detected_licenses": [ "MIT" ], "directory_id": "1ccc9d7ce52cd5683b4b78b733bbfc2425f34bc7", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putstr.c :+: :+: :+: ...
2.78125
3
2024-11-18T19:42:28.942078+00:00
2019-04-11T19:37:51
b265df993a4d56b2b69b172b7659065577e1e052
{ "blob_id": "b265df993a4d56b2b69b172b7659065577e1e052", "branch_name": "refs/heads/master", "committer_date": "2019-04-11T19:37:51", "content_id": "4ecda05b75f52aa0945da5f20126736d7b9038c4", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "3489dd3af1e45299858eada74ba3b6697b20e9b1", "extens...
stackv2
// ~~~~~~~~~~~~~~ GNUC Toolbox ~~~~~~~~~~~~~~ // portable data manipulation functions // portable socket server functions // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // toolbox-text-file-reader.c // // Copyright (c) 2006 Francois Oligny-Lemieux // // Author : Francois Oligny-Lemieux // Cr...
2.09375
2
2024-11-18T19:42:31.769473+00:00
2021-05-11T13:00:29
88cf4008c754d90febfeffff9f5b1cc04ed85822
{ "blob_id": "88cf4008c754d90febfeffff9f5b1cc04ed85822", "branch_name": "refs/heads/master", "committer_date": "2021-05-11T13:00:29", "content_id": "5a966bf98035e84efeaa02c5d8f959807b5638df", "detected_licenses": [ "MIT" ], "directory_id": "f86496b939cc958e981f301c1eea1f4871b48110", "extension": "c"...
stackv2
#ifndef GLOBAL2_H #define GLOBAL2_H #include "stdio.h" #include "time.h" #include "unistd.h" #ifdef WIN32 #include <windows.h> #else #include<pthread.h> #endif char arr[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}; int fileExists (char * filename) { // FILE *fil...
2.234375
2
2024-11-18T19:42:31.871361+00:00
2020-02-26T04:32:22
cb94590ee17183097a5a7860348cce4da37bfa54
{ "blob_id": "cb94590ee17183097a5a7860348cce4da37bfa54", "branch_name": "refs/heads/master", "committer_date": "2020-02-26T04:32:22", "content_id": "e2ff529f5744f0f2c7e561f3a114cefcf74eb0e5", "detected_licenses": [ "MIT" ], "directory_id": "9df32922d39852e5c7eb5fffcad0b221c9f5345d", "extension": "c"...
stackv2
# define _GNU_SOURCE # include <signal.h> # include <stdlib.h> # include <unistd.h> # include <limits.h> # include <string.h> # include <stdio.h> # include <errno.h> # include <time.h> # include <sys/time.h> pid_t otherpid; pid_t mypid; int typing; //string to binary; char *stringToBinary(char *str) { if (str == N...
2.953125
3
2024-11-18T19:42:32.762394+00:00
2021-12-03T16:52:46
cd2d251cc9aaeda2a07133daa2ff2044c8e23628
{ "blob_id": "cd2d251cc9aaeda2a07133daa2ff2044c8e23628", "branch_name": "refs/heads/master", "committer_date": "2021-12-03T16:52:46", "content_id": "79c31148a358d621d1a5df6b0e7d31f4b6013149", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "8bf7fb10d2d3399fbbfd29248a0404fd2dd7a84b", ...
stackv2
/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */ /* @@@ BLOPEX (version 1.2) MIT / Apache-2.0 License */ /* @@@ Copyright 2010-2019 Team https://github.com/lobpcg/blopex */ /* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */ /* this file contains i...
2.078125
2
2024-11-18T19:54:20.478125+00:00
2014-03-12T17:39:40
b1c522030614b2b4cba8dde70b7780c14a2c2ab0
{ "blob_id": "b1c522030614b2b4cba8dde70b7780c14a2c2ab0", "branch_name": "refs/heads/master", "committer_date": "2014-03-12T17:39:40", "content_id": "0155ee8903f52e3125e9ae104bdad59c12ec1de7", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6629e94cbf5f102855c8900175ebd43db3c389d4", "extensio...
stackv2
/* Copyright 2011; All Rights Reserved * Please see http://www.coactionos.com/license.html for * licensing information. */ /*! \addtogroup TMR Timer (TMR) * @{ * * \ingroup PERIPHIO * * \details The Timer module contains functions to access an MCU's timer/counters as well as * input capture and output compare...
2.4375
2
2024-11-18T20:15:26.618872+00:00
2019-10-29T00:30:55
6836f10b4b6b2583f8a44bd276c7d2070ad0caef
{ "blob_id": "6836f10b4b6b2583f8a44bd276c7d2070ad0caef", "branch_name": "refs/heads/master", "committer_date": "2019-10-29T00:30:55", "content_id": "8c8de29d16075ee7958b6e94934db1ba21c8a4c3", "detected_licenses": [ "MIT" ], "directory_id": "e4e79cc749ade9df9d1e48d972ac9683dee85933", "extension": "c"...
stackv2
#include "sharedMemory.h" #include <CFBundle.h> #include "callbundle.h" #include "string.h" SayHelloPtr theSayHelloPtr; CreateSharedMemoryPtr theCreateSharedMemoryPtr; LockSharedMemoryPtr theLockSharedMemoryPtr; UnlockSharedMemoryPtr theUnlockSharedMemoryPtr; WriteSharedMemoryPtr theWriteSharedMemoryPtr; WriteSharedMe...
2.1875
2
2024-11-18T20:15:26.953516+00:00
2021-01-14T00:11:10
4d09d440ae4052fc1083a5755769488b1bac3fe8
{ "blob_id": "4d09d440ae4052fc1083a5755769488b1bac3fe8", "branch_name": "refs/heads/main", "committer_date": "2021-01-14T00:11:10", "content_id": "6abacb56403772860b03d132347b6fdeef174a71", "detected_licenses": [ "MIT" ], "directory_id": "7d19a19a3eafb57ce2e41d68d92b529a2c754d4c", "extension": "c", ...
stackv2
/* * VISCAJoy * Win32 app for controlling PTZ cameras via a flight controller joystick * Author: Scott McGrath * Date: 9/28/2012 * https://github.com/HighTechHarmony/ViscaJoy */ #include <windows.h> #define DIRECTINPUT_VERSION 0x800 #include "dinput.h" #include <stdio.h> #include <fcntl.h> /* File control definitions...
2.125
2
2024-11-18T20:15:27.043247+00:00
2015-01-11T17:28:18
ff8778f5130f36d4e383e90f8ffd513df6da66fd
{ "blob_id": "ff8778f5130f36d4e383e90f8ffd513df6da66fd", "branch_name": "refs/heads/master", "committer_date": "2015-01-11T17:28:18", "content_id": "552d5d6b115fbc826d717b71ddf78d8bb2eb7748", "detected_licenses": [ "MIT" ], "directory_id": "b4b23e92c718c11cb9777e362a9cae303cd727c9", "extension": "h"...
stackv2
/* * Header file for Median Maintanence problem. * * @author Bogdan Constantinescu <bog_con@yahoo.com> * @since 2013.08.15 * @version 1.0 * @link GitHub https://github.com/bogcon/AlgorithmsAndApplications/tree/master/MedianMaintenance * @license The MIT License (http://opensource.org/...
2.34375
2
2024-11-18T20:28:40.373485+00:00
2018-07-05T22:06:16
c6338de2e39e4b3679541c2c814ded31609e1402
{ "blob_id": "c6338de2e39e4b3679541c2c814ded31609e1402", "branch_name": "refs/heads/master", "committer_date": "2018-07-05T22:06:16", "content_id": "1bbda1643921106a94c1291542121c0f1d39755c", "detected_licenses": [ "MIT" ], "directory_id": "8524f88166bb5c6ce300fa9cc4dd9cddeba85217", "extension": "c"...
stackv2
#include "character_implementation.h" const char* _char_vexecute(const char *format, const char *itr, va_list args){ char c = va_arg(args, int); put_char(c); return itr; } FlagImplementation character_implementation_get(char marker){ FlagImplementation ret = {marker, &_char_vexecute}; return ret; }
2.015625
2
2024-11-18T20:28:40.659041+00:00
2019-10-30T11:46:16
2d4471f419ad932d048385d39acd30c7e1e7fd19
{ "blob_id": "2d4471f419ad932d048385d39acd30c7e1e7fd19", "branch_name": "refs/heads/master", "committer_date": "2019-10-30T11:46:16", "content_id": "c9038820964a788c6c8ae0fa52363ec9c1223553", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "888e45317f5a48aebeaf2f48634df2ba8702772d", "extens...
stackv2
/* * Mesa 3-D graphics library * Version: 7.2.1 * * Copyright (C) 1999-2008 Brian Paul All Rights Reserved. * * 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, ...
2.140625
2
2024-11-18T20:28:40.850386+00:00
2020-09-04T16:54:47
9e7ee8a68098730ed5217d9f118f722100413a98
{ "blob_id": "9e7ee8a68098730ed5217d9f118f722100413a98", "branch_name": "refs/heads/master", "committer_date": "2020-09-04T16:54:47", "content_id": "ca80aae13ecbc1eeeef4647287ce3fc607952689", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "2a01d8d0b5715216cb77d08b973676fe8295bb6a", "extens...
stackv2
/* videoinfo.c - Informationen ueber /dev/video holen */ # include <stdio.h> # include <unistd.h> # include <fcntl.h> # include <sys/ioctl.h> # include <linux/videodev.h> int main() { int fd; struct video_capability video_cap; struct video_window video_win; struct video_picture video_pict; if ((fd = o...
3.140625
3
2024-11-18T20:28:40.934868+00:00
2019-06-02T10:02:05
16018d9071e63be50869d76fe97443442f7ac258
{ "blob_id": "16018d9071e63be50869d76fe97443442f7ac258", "branch_name": "refs/heads/master", "committer_date": "2019-06-02T10:02:05", "content_id": "300fe627d04d721f300e31efa4492fb1f0e277a0", "detected_licenses": [ "MIT" ], "directory_id": "5bfcf68670094d02cfe694025cc22af9a3847ab9", "extension": "c"...
stackv2
#include <stdlib.h> extern char *getenv(const char *name); struct s2 { int a; }; struct s1 { struct s2 s2; }; void foo(int a) { int t1 = a; } int main() { struct s1 s1; char *tainted = getenv("gude"); s1.s2.a = tainted != NULL; foo(s1.s2.a); return 0; }
2.390625
2
2024-11-18T20:29:46.985700+00:00
2017-06-07T04:45:49
6e2768e18d619ca0399a9fc5975399291621c66d
{ "blob_id": "6e2768e18d619ca0399a9fc5975399291621c66d", "branch_name": "refs/heads/master", "committer_date": "2017-06-07T04:45:49", "content_id": "31979856132175aacc3d779184cfcc811f8b28ef", "detected_licenses": [ "MIT" ], "directory_id": "1223beef2fb69cf3933a75e94eac358d868dfc30", "extension": "c"...
stackv2
/* * Function: insertion_sort * ------------------------ * see "insertion_sort.c" for explanation, this function is a duplicate specific * to an array of floating point numbers. within the bucket sort algorithm this * the function is used as a sub-routine * * sortable: array to sort ( signed integers ) * size: ...
3.625
4
2024-11-18T20:29:47.534858+00:00
2015-12-01T10:50:03
407fcf5b4b1b85a7f0c1cdbf028f4e3128b830c4
{ "blob_id": "407fcf5b4b1b85a7f0c1cdbf028f4e3128b830c4", "branch_name": "refs/heads/master", "committer_date": "2015-12-01T10:50:03", "content_id": "bca69bf9a744a3d873f1ae23f3ca15b85ee262bc", "detected_licenses": [ "MIT" ], "directory_id": "cfbda6e5b25b205dd4263765e53b44ab60e32399", "extension": "c"...
stackv2
/** * @file resource_manager.c * @brief Embedded resource management * * @section License * * Copyright (C) 2010-2015 Oryx Embedded SARL. All rights reserved. * * 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 F...
2.5
2
2024-11-18T20:29:48.072309+00:00
2018-10-21T08:55:17
fd9423f1d73706dd793b97d5bf63c05e34a384cd
{ "blob_id": "fd9423f1d73706dd793b97d5bf63c05e34a384cd", "branch_name": "refs/heads/master", "committer_date": "2018-10-21T08:55:17", "content_id": "45653d7a713f12baf7f09b261fadf448ba0caaf8", "detected_licenses": [ "MIT" ], "directory_id": "626fb3a917b038f78717d489d146a99d7e65ece3", "extension": "c"...
stackv2
#include "lua.h" #include "lauxlib.h" #include "fs_file.h" #include <stdlib.h> #include <string.h> #include <assert.h> struct lfs_handle { struct fs_file* f; }; #define check_op(p, msg) do{ \ if((p)->f == NULL) { \ luaL_error(L, msg); \ } \ }while(0) static struct lfs_handle* _self(lua_State*...
2.046875
2
2024-11-18T20:29:48.195286+00:00
2015-08-24T20:44:02
fe29d03319828616f7e18b34504ee447d9547c7f
{ "blob_id": "fe29d03319828616f7e18b34504ee447d9547c7f", "branch_name": "refs/heads/master", "committer_date": "2015-08-24T20:44:02", "content_id": "24c01db68c6bd7e307956c5c0ea1c0538aa42695", "detected_licenses": [ "MIT" ], "directory_id": "e5823ae4662a9cfa2dc6dc4afdb00a82db7f4720", "extension": "c"...
stackv2
/* Copyright (c) 2015 Oleg Morozenkov * * 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, publis...
2.0625
2
2024-11-18T20:39:56.783286+00:00
2023-08-23T16:50:55
bb5674e9921f7a887cb80c674d5323353b461f8e
{ "blob_id": "bb5674e9921f7a887cb80c674d5323353b461f8e", "branch_name": "refs/heads/master", "committer_date": "2023-08-23T16:50:55", "content_id": "caabfd4afb89c66df9344209003b4d2c8cdebcac", "detected_licenses": [ "MIT" ], "directory_id": "fbdc48c28e54fb33ae4842ef95ff63893902c99a", "extension": "c"...
stackv2
/* * This file is part of the OpenMV project. * * Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io> * Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io> * * This work is licensed under the MIT license, see the file LICENSE for details. * * Contrast Limited Adaptive Histogram Equal...
2.359375
2
2024-11-18T20:39:57.193036+00:00
2018-04-07T07:45:28
222e035fc53d24b189ba8409404bd8c5d5d49e22
{ "blob_id": "222e035fc53d24b189ba8409404bd8c5d5d49e22", "branch_name": "refs/heads/master", "committer_date": "2018-04-07T07:45:28", "content_id": "6cb99cf4b11ec397b31d5240b9cf0fd4045ac8dd", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "976cfa87501e0380575270f59755b2a424decb84", "extens...
stackv2
//---------------------------------------------------- //Copyright (C), 2013-2020, luoshitian. //版权所有 (C), 2013-2020, 罗侍田. //所属模块: pci寄存器读写函数 //作者: 罗侍田. //版本:V1.0.0 //文件描述: pci寄存器读写函数 //其他说明: //修订历史: //2. ... //1. 日期: 2013-11-14 // 作者: 罗侍田. // 新版本号: V1.0.0 // 修改说明: 原始版本 //------------------------------------...
2.15625
2
2024-11-18T18:36:10.768808+00:00
2020-11-07T18:36:14
1cadbcccc94c0143f40697a43100b3b27ff74f6c
{ "blob_id": "1cadbcccc94c0143f40697a43100b3b27ff74f6c", "branch_name": "refs/heads/master", "committer_date": "2020-11-07T18:36:14", "content_id": "e49402e3e162c3c82dd90f4ea392e6f6d5f6b844", "detected_licenses": [ "MIT" ], "directory_id": "b9af920022ad4091d689a97e0e383070785e37cb", "extension": "h"...
stackv2
#ifndef TCP_SERVER_H_ #define TCP_SERVER_H_ /* Header includes */ #include <arpa/inet.h> #include "system_defines.h" /*! * @brief This functions is used to receive all system data from client (distributed server) * * @param[in, out] all_enviroment_data : pointer to struct of system_data (all system data) *...
2.03125
2
2024-11-18T18:36:10.936481+00:00
2018-10-16T07:53:45
55f09dd06da5355e1be925bca0162e12e9fde643
{ "blob_id": "55f09dd06da5355e1be925bca0162e12e9fde643", "branch_name": "refs/heads/master", "committer_date": "2018-10-16T07:53:45", "content_id": "a64620c9409cf94b5a0d4c498a83c5b96f93bb97", "detected_licenses": [ "MIT" ], "directory_id": "d0a0ac248977a63f6e52cd89223d63e5082f3f26", "extension": "c"...
stackv2
#include <synthwave/synthwave.h> #include <proto/graphics.h> #include <proto/exec.h> #include <proto/intuition.h> #include <intuition/intuition.h> #include <graphics/gfxbase.h> #include <hardware/custom.h> u32 FindBestScreenMode(u32 width, u32 height, u32 numPlanes) { u32 modeId = INVALID_ID; modeId = BestModeID...
2.125
2
2024-11-18T18:37:37.421263+00:00
2017-07-14T21:18:24
a4cad82027961a80174565cf1038ef8132b89543
{ "blob_id": "a4cad82027961a80174565cf1038ef8132b89543", "branch_name": "refs/heads/master", "committer_date": "2017-07-14T21:18:24", "content_id": "4ba7c47516de620c2b8b29808af4974b381291a6", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "0c6e3dfdbeff94216dc7e2262596705c890c48a8", "extens...
stackv2
#ifndef _BCV_SVD_GABRIEL_H #define _BCV_SVD_GABRIEL_H #include <stdlib.h> #include "bcv-partition.h" #include "bcv-types.h" /** * bcv_svd_gabriel_t: * * A #bcv_svd_gabriel_t is a workspace for a perfoming a Gabrial-style SVD * cross-validation. * * After being initiliazed with bcv_svd_grep_init(), the error...
2.296875
2
2024-11-18T18:37:37.551305+00:00
2016-04-16T14:01:33
d631d971331211085404b860f410e0707763b6eb
{ "blob_id": "d631d971331211085404b860f410e0707763b6eb", "branch_name": "refs/heads/master", "committer_date": "2016-04-16T14:01:33", "content_id": "d4c4e6df5df27da510c43c867346f0f0a14de846", "detected_licenses": [ "MIT" ], "directory_id": "2aefe6b3a68c62d3e2b4349989ca891426b31527", "extension": "c"...
stackv2
/* * taglenrd.c * * written 1994 by Andreas Kraft */ # include "akasn1.h" /** * \brief Read a tag and a length from the opened ASN.1 file * * \details Read a tag and a length from the opened ASN.1 file. \p buffer is * a pointer to the buffer for the read tag. \p length is a * pointer to a variable, ...
2.359375
2
2024-11-18T18:37:38.180897+00:00
2016-07-04T17:44:06
285f8713c8e4024502d0e390052070343b9728d2
{ "blob_id": "285f8713c8e4024502d0e390052070343b9728d2", "branch_name": "refs/heads/master", "committer_date": "2016-07-04T17:44:06", "content_id": "8f676ac6f1b2b0d9bf5d99e1dc07d94257105f17", "detected_licenses": [ "MIT" ], "directory_id": "76a30cea2415a4873153522ce579ff63719eaed4", "extension": "c"...
stackv2
#include <manager.h> #include <limits.h> #include <output.h> #include <keyboard.h> #include <syscalls.h> #include <sysio.h> #include <stdarg.h> #include <heap.h> #include <sysalloc.h> void manage_time(void); void manage_key(key_st * key); unsigned int manage_read(unsigned int fd, char * buffer, unsigned int length); u...
2.890625
3
2024-11-18T18:37:38.245267+00:00
2020-03-09T00:10:09
2a06443f869e4213ff782750d6cc44d4e4d740b8
{ "blob_id": "2a06443f869e4213ff782750d6cc44d4e4d740b8", "branch_name": "refs/heads/master", "committer_date": "2020-03-09T00:10:09", "content_id": "3c7381019509f1ce855edbe192e9f70788a61c74", "detected_licenses": [ "MIT" ], "directory_id": "4b4a278721e45b3fd7bfd1c9e68a1509f30b8d8e", "extension": "c"...
stackv2
#include "readdict.h" #include <stdio.h> #include <stdlib.h> #include <string.h> int get_line(FILE *fp, char *line, int max) { if (fgets(line, max, fp) == NULL) return 0; else { int linelen = strlen(line); line[linelen - 1] = '\0'; return linelen - 1; } } Dict *new_dict...
2.953125
3
2024-11-18T18:46:24.414696+00:00
2018-07-24T04:28:31
c0700963d4c94e254d946ff57be4f8b25b2f5c50
{ "blob_id": "c0700963d4c94e254d946ff57be4f8b25b2f5c50", "branch_name": "refs/heads/master", "committer_date": "2018-07-24T04:28:31", "content_id": "24fe59fb9e0a3fda9c42522c7b82eea3c9a7675f", "detected_licenses": [ "MIT" ], "directory_id": "b358273ba1af87bc9035c39ae74b4ab161c30d5a", "extension": "h"...
stackv2
#ifndef MALLOC_H_ #define MALLOC_H_ #include <stdio.h> #include <stdlib.h> #include "Exception.h" #include <stdbool.h> #ifndef ACCESS_CONTROL_BOUND #warning "Transhipment may override the header of another segment" #else #define MemoryException 45u #define MemoryExceptionMessage "The overflow canceled the hea...
2.21875
2
2024-11-18T18:46:24.796263+00:00
2018-05-14T04:52:02
dae8e0b8094cec8295646c15893ab315c115f802
{ "blob_id": "dae8e0b8094cec8295646c15893ab315c115f802", "branch_name": "refs/heads/master", "committer_date": "2018-05-14T04:52:02", "content_id": "ee52d24c9714c871bffb75be681a4bcea675a221", "detected_licenses": [ "MIT" ], "directory_id": "fa70936c446e5dac6de7e62756aa75ea6d9a3f27", "extension": "c"...
stackv2
#include "gpio.h" #include "rand.h" #define RNG_CTRL ((volatile unsigned int*)(MMIO_BASE+0x00104000)) #define RNG_STATUS ((volatile unsigned int*)(MMIO_BASE+0x00104004)) #define RNG_DATA ((volatile unsigned int*)(MMIO_BASE+0x00104008)) #define RNG_INT_MASK ((volatile unsigned int*)(MMIO_BASE+0x00104010))...
2.53125
3
2024-11-18T18:46:25.926810+00:00
2021-08-11T15:08:30
6002aac010537a10f2bb8adb2dc08be417bda198
{ "blob_id": "6002aac010537a10f2bb8adb2dc08be417bda198", "branch_name": "refs/heads/master", "committer_date": "2021-08-11T15:08:30", "content_id": "ffdd3f9038c08abb4ab845ea40b666a20fb371a4", "detected_licenses": [ "MIT" ], "directory_id": "f3cfda13c6072df59004fc8f7449fbb1f1c902ae", "extension": "c"...
stackv2
#include <stdio.h> #include "trie.h" #include "binary.h" #include "ip.h" size_t memory_measure = 0; static inline void *measure_malloc(size_t size) { void *ptr = malloc(size); memory_measure += size; return ptr; } struct TrieNode * trie_init() { struct TrieNode * root = measure_malloc(sizeof(struct TrieN...
2.8125
3
2024-11-18T18:46:57.312211+00:00
2019-02-18T19:26:12
77199e45cd78f7b7dce0251278bfaee242ffc432
{ "blob_id": "77199e45cd78f7b7dce0251278bfaee242ffc432", "branch_name": "refs/heads/master", "committer_date": "2019-02-18T19:26:12", "content_id": "6e3affcb915228a8014a30d33225ca43da0a7504", "detected_licenses": [ "MIT" ], "directory_id": "e5926ce06de449fa0c3d8f110497c61a3b5d730d", "extension": "h"...
stackv2
/* Copyright (c) 2017 Daniel Fekete 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, publish, dis...
2.296875
2
2024-11-18T19:00:40.325678+00:00
2020-08-08T08:35:22
aeb2334c252487599c60f115e28c9ab072652f64
{ "blob_id": "aeb2334c252487599c60f115e28c9ab072652f64", "branch_name": "refs/heads/master", "committer_date": "2020-08-08T08:35:22", "content_id": "bfc54fb33661670e2470eca5500f17d44523e43a", "detected_licenses": [ "Zlib" ], "directory_id": "aaf0f8395f1e546b0d9fb362f5cb5fa60b776136", "extension": "c...
stackv2
#include <stdio.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <linux/input.h> #include <linux/uinput.h> #include <string.h> const char* charList = "abcdefghijklmnopqrstuvwxyz *"; const int keyList[] = {KEY_A, KEY_B, KEY_C, KEY_D, KEY_E, KEY_F, KEY_G, KEY_H, KEY_I, KEY_J, KEY_K, KEY_L, KEY_M...
2.65625
3
2024-11-18T19:00:41.779914+00:00
2023-07-20T16:50:46
2b1b342116fde920fff0eb684376a275c2084b77
{ "blob_id": "2b1b342116fde920fff0eb684376a275c2084b77", "branch_name": "refs/heads/main", "committer_date": "2023-07-20T16:50:46", "content_id": "d788abd5a609a4e3f52c0ef8950b2a6dbdcde4eb", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "505585f1d89447adea3f9519f12255602acdb1b2", "extensio...
stackv2
/* ----------------------------------------------------------------- * Programmer(s): Cody J. Balos @ LLNL * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2023, Lawrence Livermore National Security * and Southern Methodist University. * All right...
2.515625
3