added
stringdate
2024-11-18 17:54:19
2024-11-19 03:39:31
created
timestamp[s]date
1970-01-01 00:04:39
2023-09-06 04:41:57
id
stringlengths
40
40
metadata
dict
source
stringclasses
1 value
text
stringlengths
13
8.04M
score
float64
2
4.78
int_score
int64
2
5
2024-11-18T21:06:37.280394+00:00
2018-09-06T04:19:31
11a19ab73e0d4848575179bd21b60f431fb70422
{ "blob_id": "11a19ab73e0d4848575179bd21b60f431fb70422", "branch_name": "refs/heads/master", "committer_date": "2018-09-06T04:19:31", "content_id": "4741374fe93b8fb73b803386fab171270b7f8fbe", "detected_licenses": [ "MIT" ], "directory_id": "134fca5b62ca6bac59ba1af5a5ebd271d9b53281", "extension": "c"...
stackv2
void *direalloc (/*@out@*/ /*@null@*/ void *x, size_t size, char *name, int line) { void *ret; if (x == NULL) { ret = (void *) dmalloc (size); } else { ret = (void *) realloc (x, size); } if (ret == NULL) { llfatalerrorLoc (message ("Out of memory. Alloca...
2.15625
2
2024-11-18T21:06:37.596099+00:00
2020-08-09T14:16:41
0589e901c1b3ad246efbc50ce19ed671021878fc
{ "blob_id": "0589e901c1b3ad246efbc50ce19ed671021878fc", "branch_name": "refs/heads/master", "committer_date": "2020-08-09T14:16:41", "content_id": "d45f81e35baf27173b374ee79cd8260e5305aa1f", "detected_licenses": [ "MIT" ], "directory_id": "a39501e2d88af0ac71d9f23db48665d207708597", "extension": "c"...
stackv2
#include "dtable.h" #include<stdlib.h> #include<stdio.h> void insert(table *tab,int dat) { /* This function inserts a value into the table at the end. If the table becomes full after insert, we increase the size of the table using the given shrink factor. */ if(tab->data == NULL) { /* start at 16, multiplyi...
3.765625
4
2024-11-18T21:06:37.788252+00:00
2021-06-28T16:53:07
928ee341d6fc71b2ca7edf2b389e14acb93e1c51
{ "blob_id": "928ee341d6fc71b2ca7edf2b389e14acb93e1c51", "branch_name": "refs/heads/main", "committer_date": "2021-06-28T16:53:07", "content_id": "f42b7467b6e618d20aa4d55a4db07eae8a4021fe", "detected_licenses": [ "MIT" ], "directory_id": "427f48b76d1b312cff7af2d9b535ea333e8d154e", "extension": "c", ...
stackv2
/* gcc -std=c17 -lc -lm -pthread -o ../_build/c/string_byte_memcmp.exe ./c/string_byte_memcmp.c && (cd ../_build/c/;./string_byte_memcmp.exe) https://en.cppreference.com/w/c/string/byte/memcmp */ #include <stdio.h> #include <string.h> void demo(const char* lhs, const char* rhs, size_t sz) { for(size_t n = 0; n < sz...
3.125
3
2024-11-18T21:06:37.846611+00:00
2020-07-07T07:46:45
93ff40bd1332250af4bc5293dddd65f11a0eeecd
{ "blob_id": "93ff40bd1332250af4bc5293dddd65f11a0eeecd", "branch_name": "refs/heads/master", "committer_date": "2020-07-07T07:46:45", "content_id": "4600f3c8da0be9319feabcfc51dc5da1c5241b21", "detected_licenses": [ "MIT" ], "directory_id": "f55ddfccbbd6710c6e7f351643729184987c17f1", "extension": "c"...
stackv2
/// @file ack_manager.c /// @brief Contains the declaration of functions and variables for the SERVER. #include "ack_manager.h" #include "defines.h" #include "err_exit.h" #include "semaphore.h" #include "server_lib.h" #include <stdbool.h> #include <stdint.h> #include <string.h> #include <sys/msg.h> void ack_manage...
2.453125
2
2024-11-18T21:06:37.910444+00:00
2022-02-11T23:58:00
9055dc3d9f745075d2a0566b00a9c3623869d810
{ "blob_id": "9055dc3d9f745075d2a0566b00a9c3623869d810", "branch_name": "refs/heads/master", "committer_date": "2022-02-11T23:58:00", "content_id": "16b97aad5ed466e0a14f296a1ebbe2279b275642", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "39a525871c500f97221d8074aca85a4dd3bf7955", "extens...
stackv2
/* * shdspout.c -- show display output in readable format */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <curses.h> #define LINE_SIZE 200 #define MAX_TOKENS 20 int splitLine(char *line, char *tokens[], int maxTokens) { int n; char *p; n = 0; p = strtok(line, ",...
2.640625
3
2024-11-18T21:06:37.986695+00:00
2019-11-30T21:50:25
ba2c0ca38fa0d7f340b4edb4f0729f8ea2df2ab4
{ "blob_id": "ba2c0ca38fa0d7f340b4edb4f0729f8ea2df2ab4", "branch_name": "refs/heads/master", "committer_date": "2019-11-30T21:50:25", "content_id": "6c7a31066c8ce909d7cb28931a26446204a425c4", "detected_licenses": [ "MIT" ], "directory_id": "86664ab2f82bbd546f90643d5139c47c08b3d0b8", "extension": "c"...
stackv2
#include "shell.h" /** * _strtok - tokenizes a string * @str: string to tokenize * @delimitador: string that contains the delimitadoriters * Return: pointer to position in string of a null terminated word. */ char *_strtok(char *str, const char *delimitador) { static char *run_string, *end_string, *end; uns...
2.875
3
2024-11-18T21:06:38.168591+00:00
2020-02-09T22:29:20
94d08d8f04956d95e2cb263347b31b877c0200f4
{ "blob_id": "94d08d8f04956d95e2cb263347b31b877c0200f4", "branch_name": "refs/heads/master", "committer_date": "2020-02-09T22:29:20", "content_id": "60ef12bff8a2c619cd94aa57ffc076d98c19e214", "detected_licenses": [ "MIT" ], "directory_id": "403394e566b65b75469f52b4d9e44e974f402822", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <limits.h> #include <pthread.h> #include <sys/types.h> int global_variable = 0; pthread_mutex_t lock; int is_prime(int n) { for(int i = 2 ; i <= n/2 ; i++) { if(n%i!=0) continue; else return 1; } return 0;; } void func() { pthread_mutex_lock(&lock); ...
3.046875
3
2024-11-18T21:06:38.513269+00:00
2023-08-31T16:38:00
c49675842ec6e6ee729218d791fad1e0b538daad
{ "blob_id": "c49675842ec6e6ee729218d791fad1e0b538daad", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T16:38:00", "content_id": "4fb112b7dcc462f3e5cd904d59cdff313f068ab3", "detected_licenses": [ "BSD-2-Clause", "BSD-2-Clause-Patent" ], "directory_id": "1efd2de8bf77ec00eb2fcaf57...
stackv2
/* * (C) Copyright 2016-2022 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ /** * This file is part of gurt, it implements the debug subsystem based on clog. */ #include <stdlib.h> #include <stdio.h> #include <gurt/common.h> static pthread_mutex_t d_log_lock = PTHREAD_MUTEX_INITIALIZER;...
2.03125
2
2024-11-18T21:06:39.493124+00:00
2021-10-02T18:54:24
54fd3bd99c9fef9d9331d211aafc1885ecaea6a9
{ "blob_id": "54fd3bd99c9fef9d9331d211aafc1885ecaea6a9", "branch_name": "refs/heads/master", "committer_date": "2021-10-02T18:54:24", "content_id": "11696da2acb0ce11d6408e930eff1259c253e3e1", "detected_licenses": [ "MIT" ], "directory_id": "12f4598d071cf3e38921ec50cff48c9d552122d9", "extension": "c"...
stackv2
/*--------------------------------------------------------------*/ /* */ /* compute_ra_surface.c */ /* */ /* */ /* NAME */ /* compute_ra_surface - aerodynamic cond */ /* for surface patch layer */ /* */ /* SYNOPSIS */ /* double compute_ra_surface( */ /* int, */ /* ...
2.375
2
2024-11-18T21:06:39.666586+00:00
2020-12-23T01:20:27
7e648a9960a7d74694bb96563ff800d60f03111f
{ "blob_id": "7e648a9960a7d74694bb96563ff800d60f03111f", "branch_name": "refs/heads/master", "committer_date": "2020-12-23T01:20:27", "content_id": "81deb4f5b0107a4e6b649fc0a4efea04f0e99502", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8f7299378e548ff164bbcfa240275ee924f2eeff", "extensio...
stackv2
#ifndef HL7PARSER_DEFS_H #define HL7PARSER_DEFS_H /** * \file defs.h * * Miscellaneous definitions used by the HL7 parser. * * \internal * Copyright (c) 2003-2013 Juan Jose Comellas <juanjo@comellas.org> */ /* ------------------------------------------------------------------------ Headers ---------------------...
2.015625
2
2024-11-18T21:06:39.924630+00:00
2022-03-14T02:34:56
7d8b1407c66264b4212dd01f6aa791db386988f4
{ "blob_id": "7d8b1407c66264b4212dd01f6aa791db386988f4", "branch_name": "refs/heads/master", "committer_date": "2022-03-14T02:34:56", "content_id": "adcb86fd6be5b4ead188a1276c19b517d8bad572", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d85a5130ab6bd1eefe8029060c725d87a8b3b952", "extens...
stackv2
// // Created by onceme on 2019/3/16. // #include "redis.h" #include "ae.h" #include "worker.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> extern struct redisServer server; //reactor线程读取事件回调函数 发送数据给worker线程 void reactorReadHandle(aeEventLoop *el,int connfd, void *privdata, int mask){ redisClient ...
2.578125
3
2024-11-18T21:06:40.246508+00:00
2021-08-18T02:38:08
44b34f12976efe3feba657706a5cebf3731efec0
{ "blob_id": "44b34f12976efe3feba657706a5cebf3731efec0", "branch_name": "refs/heads/master", "committer_date": "2021-08-18T02:38:08", "content_id": "719aa2ba8b7e4b983aa4feef84f1c2befb26d8db", "detected_licenses": [ "Apache-2.0", "curl" ], "directory_id": "11ddbb17eebddb29a4dbd2e89cf1e403a4e5942d",...
stackv2
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "v1beta2_rolling_update_daemon_set.h" v1beta2_rolling_update_daemon_set_t *v1beta2_rolling_update_daemon_set_create( object_t *max_unavailable ) { v1beta2_rolling_update_daemon_set_t *v1beta2_rolling_update_daemon_set_local_var = malloc(...
2.421875
2
2024-11-18T21:06:40.485438+00:00
2021-05-25T17:40:13
78e3841f920650f18976bf39fd25711f3b469da5
{ "blob_id": "78e3841f920650f18976bf39fd25711f3b469da5", "branch_name": "refs/heads/master", "committer_date": "2021-05-25T17:40:13", "content_id": "2d1724557d0166fd308ef34a7f04bd8cf982fcd3", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9dd63737483cae14ff0b90fde23652b4a8d98c7c", "extensio...
stackv2
#pragma once // This structure represents linked list with constant complexity operations of adding element and removing element struct List; // This function creates List struct List* createList(); // This function checks whether the list empty or not bool isEmpty(struct List* list); // This function adds entry in...
2.734375
3
2024-11-18T21:06:41.491292+00:00
2019-09-28T12:42:08
1541920e7e5891da9b2c1367305800ce8ab0ee95
{ "blob_id": "1541920e7e5891da9b2c1367305800ce8ab0ee95", "branch_name": "refs/heads/master", "committer_date": "2019-09-28T12:42:08", "content_id": "8a6b207230c1437267fe0c9e8a2092798180a643", "detected_licenses": [ "Apache-2.0" ], "directory_id": "07b719f6fbd41f65b1f2bab3116693c2564c131d", "extensio...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* check_position.c :+: :+: :+: ...
2.328125
2
2024-11-18T21:06:41.590101+00:00
2019-05-13T14:14:02
79d010f55ef454b15b6a4e6a31a1a8e43d9e2a8b
{ "blob_id": "79d010f55ef454b15b6a4e6a31a1a8e43d9e2a8b", "branch_name": "refs/heads/master", "committer_date": "2019-05-13T14:14:02", "content_id": "2fd117d9dda0f0215f2a0473348f60850d69fec0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c05663247905d0f172c11f64e387bd71a5bc736c", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #define MAX_NUMBER_CANDIDATE 20 #define DBFILE "../data/election.txt" #define TEMPFILE "../data/temp.txt" #define CANDIDATE_DBFILE "../data/candidate.txt" #define VOTES_PATH "../../cgi-bin/user/vote.cgi" #define VOTES_URL "http://localhost/c...
2.40625
2
2024-11-18T21:06:41.683981+00:00
2021-06-18T17:25:22
7d506373525770de6e1bc9ae3c423a8cac69e43e
{ "blob_id": "7d506373525770de6e1bc9ae3c423a8cac69e43e", "branch_name": "refs/heads/master", "committer_date": "2021-06-18T17:25:22", "content_id": "2576fb8e30c45933ff6b8b567d6199215252e49b", "detected_licenses": [ "MIT" ], "directory_id": "3a636b974ba19d713514321123fc3b1717167cb9", "extension": "c"...
stackv2
/** * Factorial For N Using For Loop */ #include <stdio.h> int main() { int i, n, result = 1; printf(" Enter number: "); scanf("%d", &n); for (i = 1; i <= n; i += 1) { // printf("\n I : %d", i); // printf("\n Result B4 : %d", result); result *= i; // printf("\n Res...
3.765625
4
2024-11-18T21:06:41.757786+00:00
2019-05-14T08:26:08
28659db92316d40aa502ec29fa66d78d2673f610
{ "blob_id": "28659db92316d40aa502ec29fa66d78d2673f610", "branch_name": "refs/heads/master", "committer_date": "2019-05-14T08:26:08", "content_id": "d888c5740a81d4a221ab495b3784a31baa769eb7", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "59c94d223c8e1eb1720d608b9fc040af22f09e3a"...
stackv2
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <unittest/unittest.h> #include <zircon/process.h> #include <zircon/syscalls.h> // Tests in this file rely that the default job is the root job. ...
2.15625
2
2024-11-18T21:06:41.804349+00:00
2021-02-24T05:47:16
19546352d83d81831010e20689d5059b669e2f1e
{ "blob_id": "19546352d83d81831010e20689d5059b669e2f1e", "branch_name": "refs/heads/master", "committer_date": "2021-02-24T05:47:16", "content_id": "5e219be6538da2699a54fe404e1584e352cfdfab", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "589a5cff1b729a5182eebd963b3835e6544fc7f4", "extens...
stackv2
/** * Copyright (C) Mellanox Technologies Ltd. 2020-2021. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #include "cl_basic.h" #include "utils/ucc_malloc.h" UCC_CLASS_INIT_FUNC(ucc_cl_basic_team_t, ucc_base_context_t *cl_context, const ucc_base_team_params_t *params) { ucc_cl_bas...
2.109375
2
2024-11-18T21:06:41.864906+00:00
2019-07-18T19:41:24
a0af0f57c95479e6cdcd28338eb800ac25f5527b
{ "blob_id": "a0af0f57c95479e6cdcd28338eb800ac25f5527b", "branch_name": "refs/heads/master", "committer_date": "2019-07-18T19:41:24", "content_id": "cce8539f1e46751d2086ab83c5364fe135a01d00", "detected_licenses": [ "MIT" ], "directory_id": "9f9422a523701cd95118559a795eaab8c7e6403b", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdint.h> #include <libgen.h> #include <inttypes.h> #include <dlfcn.h> #include <ffi.h> #include "gc.h" #include "errors.h" #include "lexer.h" #include "map.h" #include "parser.h" #include "vm.h" #define JMPCALC 0x1 #define JECALC 0x2 #define JNECALC...
2.078125
2
2024-11-18T21:06:42.877070+00:00
2020-04-28T16:51:17
bd316a670f847206f05c8897a1f75a30e92b5669
{ "blob_id": "bd316a670f847206f05c8897a1f75a30e92b5669", "branch_name": "refs/heads/master", "committer_date": "2020-04-28T16:51:17", "content_id": "d9526e4e293857e72c086e685e7a111372dea396", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d463863154ee8b12935bb7df638e240f76dd5dd6", "extensio...
stackv2
/* tpincompletetype1.c: incomplete type with struct and vect */ #define NULL 0 int aa[10]; int bb[10]; int cc[]; struct address { char* name; struct location { int yuban; char* addr; } loc; }; struct list; struct tree; struct list { int number; struct list* next; }; struct tree { int number; struc...
2.671875
3
2024-11-18T21:06:43.104795+00:00
2022-11-06T22:46:23
345743fe62f72e742eb9b22c2cdb1fe09f96b6c6
{ "blob_id": "345743fe62f72e742eb9b22c2cdb1fe09f96b6c6", "branch_name": "refs/heads/master", "committer_date": "2022-11-06T22:46:23", "content_id": "9c404832100a2206be3ac46aa8dc0cebcc388559", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c4116c2e8c411a9ab01065144e0e105f99f95313", "extens...
stackv2
#define demo_VDC_cxx #include "demo_VDC.h" #include "TH2.h" #include "TStyle.h" #include "TCanvas.h" void demo_VDC::Loop() { // In a Root session, you can do: // Root > .L demo_VDC.C // Root > demo_VDC t // Root > t.GetEntry(12); // Fill t data members with entry number 12 // Root > t.Show(); ...
2.03125
2
2024-11-18T21:06:43.153793+00:00
2021-08-28T11:30:29
508e426a5a4460095a2703e0194e2929f412b3d2
{ "blob_id": "508e426a5a4460095a2703e0194e2929f412b3d2", "branch_name": "refs/heads/master", "committer_date": "2021-08-28T11:30:29", "content_id": "096d3d66cc19f01758f9c665f5b0c659e7f533f9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7cfd63648d2359003bdfd985bc7bfbf2801a396b", "extensio...
stackv2
/* * @Description: 2017-武汉科技大学(856)-算法设计 02 [整数 1 到 n 从小到大依次进栈,期间可以出栈,检查一序列是否为正确出栈序列] * @version: 1.0 * @Author: Chandler Lu * @Date: 2019-09-04 17:25:01 * @LastEditTime: 2019-09-04 20:22:17 */ #include <stdio.h> #include <stdlib.h> #define MAXSIZE 15 #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 ...
3.328125
3
2024-11-18T21:06:43.425961+00:00
2020-04-30T02:37:26
99d9f45c09923ab926e6886865edf382e69ce0da
{ "blob_id": "99d9f45c09923ab926e6886865edf382e69ce0da", "branch_name": "refs/heads/master", "committer_date": "2020-04-30T02:37:26", "content_id": "32e4fffca564d9003f846c22ba094e0b1b7452b6", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "27fa73030bfc46d0ed752feb80de6733...
stackv2
#include "common.h" /* This file provides a map which assumes the entire rectangular display area is viewable. */ static int width, height; void map_init(Display *dpy) { int screen = DefaultScreen(dpy); width = DisplayWidth (dpy, screen); height = DisplayHeight(dpy, screen); } /*void map(int *x, int...
2.75
3
2024-11-18T21:06:43.638599+00:00
2018-01-15T18:56:58
ec6a7af5645e5e2adff38a054ddf22e353cf2a25
{ "blob_id": "ec6a7af5645e5e2adff38a054ddf22e353cf2a25", "branch_name": "refs/heads/master", "committer_date": "2018-01-15T18:56:58", "content_id": "3e089821cf5ca1248a854d80bc6b17bd64cae629", "detected_licenses": [ "CC0-1.0" ], "directory_id": "25b4a07b24310e989be7d8b4f2fa398bfccbe17c", "extension":...
stackv2
#include <stdio.h> #include <stdlib.h> #include "./libfts.h" int main(int ac, char **av) { char *str; printf("-----------------------\n"); printf(" strlen \n"); printf("-----------------------"); str = NULL; printf("\n'%s' - len = %d", str, ft_strlen(str)); str = ""; printf("\n'%s' - len = %d"...
2.640625
3
2024-11-18T21:06:43.793083+00:00
2015-03-24T08:21:15
3c6e0d067b5a88e5348dc4128079c28f625821ae
{ "blob_id": "3c6e0d067b5a88e5348dc4128079c28f625821ae", "branch_name": "refs/heads/master", "committer_date": "2015-03-24T08:21:15", "content_id": "e327dcedb8413c9c200f5f5ddb4dba3d0be94a64", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b93c5ebc76f44e10ed164fb37933dfbaf6c4847c", "extensio...
stackv2
/* * serializeILDA.c * * Created on: Mar 16, 2015 * Author: gijs */ #include "../../../include/lf.h" #include "../../../include/lasforce/serialize/serializeCommands.h" #include "../../../include/lasforce/ilda/ILDA.h" #include "../../../include/lasforce/json/json.h" #include <errno.h> ILDAHeader *serializeI...
2.015625
2
2024-11-18T21:06:44.003222+00:00
2019-09-15T04:56:32
4f42046d0e9aae78c235790fade9ae12de47b60e
{ "blob_id": "4f42046d0e9aae78c235790fade9ae12de47b60e", "branch_name": "refs/heads/master", "committer_date": "2019-09-15T04:56:32", "content_id": "c74dc2c12540e4a48f3ebfa979b3bd07c84523aa", "detected_licenses": [], "directory_id": "5ee028ee2582a2d566c22a32097a1fcbed314fcc", "extension": "c", "filename...
stackv2
/** \brief eZ430-RF2500-specific definition of the "debugpins" bsp module. \author Chuang Qian <cqian@berkeley.edu>, April 2012. */ #include "io430.h" #include "debugpins.h" //=========================== defines ========================================= //=========================== variables =====================...
2.421875
2
2024-11-18T21:06:44.077362+00:00
2020-03-01T06:55:07
3f3456cbab74b7f08894a3b4e7d7c288508c5ad2
{ "blob_id": "3f3456cbab74b7f08894a3b4e7d7c288508c5ad2", "branch_name": "refs/heads/master", "committer_date": "2020-03-01T06:55:07", "content_id": "139d1b20a95bec867bf85883686f52f6428d42a8", "detected_licenses": [ "MIT" ], "directory_id": "192bacfe22d038120cfad77fc39e60e495f41981", "extension": "c"...
stackv2
/* * MIT License * * Copyright (c) 2019 Jianhui Zhao <zhaojh329@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the right...
2.1875
2
2024-11-18T21:06:44.369118+00:00
2021-09-13T19:15:30
408640d40ca26664e6e1f22a4283ca685e181750
{ "blob_id": "408640d40ca26664e6e1f22a4283ca685e181750", "branch_name": "refs/heads/main", "committer_date": "2021-09-13T19:15:30", "content_id": "7708ddf03b561f25cb92fe323298bdc4bd9645fb", "detected_licenses": [ "MIT" ], "directory_id": "8e1bf45a583a5df2c9701230026d69aad2217368", "extension": "c", ...
stackv2
#include "mysql.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> //sleep #include <string.h> #include <time.h> #define SERVER "localhost" #define SOCKETT "/run/mysqld/mysqld.sock" #define DATABASE "tq" #define USER "test-sql" #define PSWD "test-sql" #define DAY 2 #define HO...
2.640625
3
2024-11-18T21:06:44.608623+00:00
2019-11-03T13:48:39
a40e1f77c906061e3a683f36876610bec212684f
{ "blob_id": "a40e1f77c906061e3a683f36876610bec212684f", "branch_name": "refs/heads/master", "committer_date": "2019-11-03T13:48:39", "content_id": "c3520c68af02c5205af8e4ebaedccd82307ceaff", "detected_licenses": [ "MIT" ], "directory_id": "b5a859a68837505747970cbdd939a189af7ca521", "extension": "c"...
stackv2
/*************************************************************************** @author OS Lab Group 3 (2019 - 20) @brief SHa (SHell Application) @date Sunday, 3 November 2019 ****************************************************************************/ #include <sys/wait.h> #include <sys/type...
2
2
2024-11-18T21:06:45.865734+00:00
2021-01-19T17:00:25
bc0c5bb71c4fb4de45685ad35ebdccda123014c1
{ "blob_id": "bc0c5bb71c4fb4de45685ad35ebdccda123014c1", "branch_name": "refs/heads/master", "committer_date": "2021-01-19T17:00:25", "content_id": "68000870dbc1aed03d2f393013350cefd966f3b3", "detected_licenses": [ "MIT" ], "directory_id": "b4f4ba50b3200091dc155ca322e4350b124be39f", "extension": "c"...
stackv2
/* Divisible - Program to check whether a given number is divisible by both 5 and 2 */ #include <stdio.h> #include <conio.h> void main() { int n ; clrscr() ; printf("Enter any integer: ") ; scanf("%d" , &n) ; if( (n%5 == 0) && (n%2 == 0) ) printf("%d is divisible by both 5 and 2" , n) ; else ...
3.65625
4
2024-11-18T21:06:46.114256+00:00
2019-01-05T21:58:04
313a69381f262bca9f703febcbdfdb06a6433417
{ "blob_id": "313a69381f262bca9f703febcbdfdb06a6433417", "branch_name": "refs/heads/master", "committer_date": "2019-01-05T21:58:04", "content_id": "c21c122a47fe2f00016af85e27cafb1023a61d16", "detected_licenses": [ "MIT" ], "directory_id": "b3ab0c668492673a587d3f0bc12a45cb63176c78", "extension": "h"...
stackv2
#undef CLASSNAME #define CLASSNAME lifo #include "../ccommon.h" STRUCT * _(new)(); void _(free)(STRUCT *ls); TYPENAME _(top)(const STRUCT *ls); TYPENAME _(back)(const STRUCT *ls); int _(length)(const STRUCT *ls); bool _(isEmpty)(const STRUCT *ls); int _(maxSize)(); bool _(push)(STRUCT *ls, cons...
2.46875
2
2024-11-18T21:06:46.681950+00:00
2019-05-26T02:05:41
05ce96975b541db7c8eb86d7217b47897a318686
{ "blob_id": "05ce96975b541db7c8eb86d7217b47897a318686", "branch_name": "refs/heads/master", "committer_date": "2019-05-26T02:05:41", "content_id": "e9a7b39ec25e5234e4fcf90d9d1f6543d318900a", "detected_licenses": [ "MIT" ], "directory_id": "e96224aff0b21f371507e16c9eace442edf87935", "extension": "c"...
stackv2
#include "include/writer.h" corto_id INFLUX_MOUNT_ID = "influx_manual"; corto_string INFLUX_DB_HOST = "localhost"; uint16_t INFLUX_DB_PORT = 8086; corto_string INFLUX_DB_NAME = "writer_demo"; influxdb_mount mount = NULL; int WriteConfig(float temperature, corto_object t1, corto_object t2) { corto_float32__update...
2.328125
2
2024-11-18T21:06:46.853586+00:00
2021-08-20T12:49:59
cc48e604563d106c78faa0cc92517f72c9c14bd6
{ "blob_id": "cc48e604563d106c78faa0cc92517f72c9c14bd6", "branch_name": "refs/heads/main", "committer_date": "2021-08-20T12:49:59", "content_id": "d556aedab72f3110822474e07b429091d521de24", "detected_licenses": [ "MIT" ], "directory_id": "13c371333be682faf914142ef4b6b21d8674ef37", "extension": "c", ...
stackv2
#include "libs.h" #include "msg.h" /** * @brief Function correctly end application and releas resources * */ void sighandler(int); /** * @brief Function check correctnes of arguments * * @param argc * @param argv * @param interface return interface name from cmd through this pointer * @return true when...
2.453125
2
2024-11-18T21:06:46.959833+00:00
2021-09-09T23:19:14
d165e86ac8d4e756cab05468605e0bcc7c9b0a2c
{ "blob_id": "d165e86ac8d4e756cab05468605e0bcc7c9b0a2c", "branch_name": "refs/heads/master", "committer_date": "2021-09-09T23:19:14", "content_id": "751a5fc2e84c19d9d63624faacdad89cb2a1eeb3", "detected_licenses": [ "ISC" ], "directory_id": "cf5ac794fd5b7bdbcb339a80bc490d95b1becb38", "extension": "h"...
stackv2
//Modify this file to change what commands output to your statusbar, and recompile using the make command. static const Block blocks[] = { /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ {"📰 ", "sb_news", 0, 6 }, {"", "sb_memory",...
2.015625
2
2024-11-18T21:06:47.025869+00:00
2016-06-30T01:20:03
d39e9d83a01832da51abfc237785f05bb08956d8
{ "blob_id": "d39e9d83a01832da51abfc237785f05bb08956d8", "branch_name": "refs/heads/dev", "committer_date": "2016-06-30T01:20:03", "content_id": "62ccbb8b6ecac5bfc6268a724b0348a197792e50", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "fd9df54573d155f3737516556bd31ecb8eedcee3", "extension...
stackv2
#ifdef JEMALLOC_H_TYPES #if defined(JEMALLOC_RUNTIME_PATCHING) && \ defined(__x86_64__) && \ (__GNUC__ > 4 || (__GNUC_MINOR__ >= 5 && __GNUC__ == 4)) # define X86_64_PATCHING #endif typedef struct jmp_desc_s jmp_desc_t; #endif /* JEMALLOC_H_TYPES */ /***************************************************************...
2.09375
2
2024-11-18T21:06:47.472691+00:00
2017-03-20T16:16:45
ab28b572c1f66b87c20120aa4962c170029e73b5
{ "blob_id": "ab28b572c1f66b87c20120aa4962c170029e73b5", "branch_name": "refs/heads/master", "committer_date": "2017-03-20T16:16:45", "content_id": "301cd6e2a14771d93bcfc4615cd6af5e21870ba1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7eade5c3e80bd0c03ba0629e65a624a5f3e66ed0", "extensio...
stackv2
// C program to connect to the socket opened by php module // written by -- kartik #include<stdio.h> #include<sys/socket.h> #include<arpa/inet.h> #include<stdlib.h> #include<unistd.h> #include<string.h> #include<sys/types.h> #include<malloc.h> #include"myfunc.h" //#include<conio.h> //max buffer size #define buffer_s...
3.1875
3
2024-11-18T21:06:47.957842+00:00
2016-05-20T15:04:51
2b8af448e50cde593742f3b16d3002d63f08c831
{ "blob_id": "2b8af448e50cde593742f3b16d3002d63f08c831", "branch_name": "refs/heads/master", "committer_date": "2016-05-20T15:04:51", "content_id": "47df549b5c80eb490e7c81cf2b9c68696c3d3913", "detected_licenses": [ "MIT" ], "directory_id": "33f4cf37d65745a05df261bf55346fd4eb69d0cb", "extension": "c"...
stackv2
#include "bst.h" int main() { int choice; char filename[MAXLENGTH] = "BongDa.txt", filenameResult[MAXLENGTH] = "KetQua.txt"; FILE *f, *fResult; Node *root; Node *temp_node; char tmp1[MAXLENGTH], tmp2[MAXLENGTH], str[MAXLENGTH]; int home, away; int result1, result2; Node *node; int i = 0; int pnt; Key tem...
2.828125
3
2024-11-18T21:06:48.061726+00:00
2020-06-10T09:48:51
fb3291b216b4095bdd3ac3fe40de96352cdaff26
{ "blob_id": "fb3291b216b4095bdd3ac3fe40de96352cdaff26", "branch_name": "refs/heads/master", "committer_date": "2020-06-10T09:48:51", "content_id": "cbdf8c9b01f91384d45fd458883968d336eab0dc", "detected_licenses": [ "MIT" ], "directory_id": "548600d7cc43bcad2475e2afe85b991f36f093fb", "extension": "c"...
stackv2
#include <zephyr.h> #include <drivers/gpio.h> #define SUPA_MODULE "irc" #include "ir_receiver.h" LOG_MODULE_REGISTER(ir); static struct gpio_callback LOCAL_ir_callback; static struct device* LOCAL_pin_dev; static struct k_msgq* LOCAL_ir_queue = NULL; static void ir_signal_isr(struct device* gpiob, stru...
2.09375
2
2024-11-18T21:06:48.904137+00:00
2021-10-13T15:04:42
f4fb80c3f60358504a9ca4bd3d10f2f1c3ec251e
{ "blob_id": "f4fb80c3f60358504a9ca4bd3d10f2f1c3ec251e", "branch_name": "refs/heads/main", "committer_date": "2021-10-13T15:04:42", "content_id": "3ea8673972c82c84949a7357e1e744a346acffa2", "detected_licenses": [ "MIT" ], "directory_id": "75b5226d2f9b00a332fc427bfea73cb336fc3286", "extension": "c", ...
stackv2
#include "sbgEComCmdInterface.h" #include <streamBuffer/sbgStreamBuffer.h> //----------------------------------------------------------------------// //- Interface commands -// //----------------------------------------------------------------------// SbgErrorCode sbgE...
2.21875
2
2024-11-18T21:06:49.042382+00:00
2018-12-04T01:13:42
1b513b71259289ed694012236b149adafaf7bc04
{ "blob_id": "1b513b71259289ed694012236b149adafaf7bc04", "branch_name": "refs/heads/master", "committer_date": "2018-12-04T01:13:42", "content_id": "cee2de85dd3ec9adc5ebada4d28bbf281474726e", "detected_licenses": [ "MIT" ], "directory_id": "459b81415607f794c295b3dd5e6ef846e17d3a0b", "extension": "h"...
stackv2
#ifndef INCLUDE_BUD_TRACING_H_ #define INCLUDE_BUD_TRACING_H_ #include "bud/error.h" /* bud_error_t */ #include "bud/common.h" #include <stdint.h> /* uint16_t */ /* Forward declarations */ struct ssl_st; struct bud_logger_s; typedef struct bud_trace_module_s bud_trace_module_t; typedef struct bud_trace_client_s bu...
2
2
2024-11-18T21:06:49.243320+00:00
2018-08-23T21:47:25
8aff9c5f8b3dc1a885a9097cd93af98713066571
{ "blob_id": "8aff9c5f8b3dc1a885a9097cd93af98713066571", "branch_name": "refs/heads/master", "committer_date": "2018-08-23T21:47:25", "content_id": "0f47308577ae6ab9e64ac7dc27fb239962656e62", "detected_licenses": [ "MIT" ], "directory_id": "960a13c65011e64d6d08e1dc872f523b6c8edf96", "extension": "c"...
stackv2
/* Functions for bilinear interpolation of a 3d grid, making trees. Peter Creasey 2014 */ #include <math.h> #include <stddef.h> static inline float smallest_interval_val(const float x0, const float x1) { /* Find the nearest point to zero in the set of periodically repeated intervals S := un...
2.859375
3
2024-11-18T21:19:01.283766+00:00
2023-06-06T20:46:56
faad6adb392e5b5fdc831e43ab158a7bbce266e4
{ "blob_id": "faad6adb392e5b5fdc831e43ab158a7bbce266e4", "branch_name": "refs/heads/master", "committer_date": "2023-06-06T20:46:56", "content_id": "f32d274855c0d95306254457578fceeda232662d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ffc9e0d21f0750234e6e96456ab9dba1059423f9", "extensio...
stackv2
#include "Strust4EmbeddedConf.h" #if S4E_USE_BLINKER_THD != 0 #include "ch.h" #include "hal.h" #include "Strust4Embedded.h" #include "ccportab.h" static CPalTypedef *pLED =NULL; //A weak/virtual function that could be overridden in other modules & called once every 1 seconds CC_WEAK void periodicSysTrigger(uint32...
2.15625
2
2024-11-18T21:19:01.381034+00:00
2023-04-02T21:53:24
b1239f61f10a18ac2d2133815d85efe9bd1162f6
{ "blob_id": "b1239f61f10a18ac2d2133815d85efe9bd1162f6", "branch_name": "refs/heads/master", "committer_date": "2023-04-02T21:53:24", "content_id": "83ea2ec4c9369b3853b12b6f6d1b08a8d62fe2bc", "detected_licenses": [ "MIT" ], "directory_id": "1dcff4b567fa80590deb6e3f5f30d891031c83a6", "extension": "h"...
stackv2
#ifndef __STACK_H__ #define __STACK_H__ #include <stdio.h> #include <stdbool.h> typedef struct { size_t element_size; size_t capacity; int num_elements; char *data; } stack_t; // new_stack creates a new stack of element with size `element_size` and with a // capacity of `capacity` elements. stac...
2.859375
3
2024-11-18T21:19:01.445594+00:00
2020-01-30T15:52:16
772646c613d3bbe3bf3078dd47733900843bf165
{ "blob_id": "772646c613d3bbe3bf3078dd47733900843bf165", "branch_name": "refs/heads/master", "committer_date": "2020-01-30T15:52:16", "content_id": "4a23162a7ec2e9bee4ebad503f4bd2c5d883791a", "detected_licenses": [ "MIT" ], "directory_id": "40de3da30239862f11a946166b50438174c2fd4e", "extension": "c"...
stackv2
#define SCROLL_D "/guilds/mage/objects/scroll_daemon" #define SP_COST 100 get_time() { return 3; } query_type() { return "neutral"; } ep_cost() { return 1; } resolve_skill(target) { string tmp,word,tavu; object scroll; if(!target) { write("Usage: use scribble at scroll <syllabe>\n"); return 1; } if(ssca...
2.171875
2
2024-11-18T21:19:01.518933+00:00
2021-07-29T08:48:28
481db3d2add7cc45c4649f94625b74bc4a84b9ee
{ "blob_id": "481db3d2add7cc45c4649f94625b74bc4a84b9ee", "branch_name": "refs/heads/main", "committer_date": "2021-07-29T08:48:28", "content_id": "d8416cd8efa82b867146a020f470d3fdd4163399", "detected_licenses": [ "BSD-3-Clause-Clear" ], "directory_id": "17f7e9af1591d0467f4c8afb852968c67298a0aa", "ex...
stackv2
/** * Fuzzy test. * * Performs random reads & writes and checks correctness. Assumes callbacks * are sequential, in-order, & synchronous. */ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <semaphore.h> #include <ocf/ocf.h> #include "simfs/simfs-ctx.h" #include "cache/cache-obj.h" #include "...
2.453125
2
2024-11-18T21:19:02.040833+00:00
2021-04-12T22:09:19
4f65682450c306ad22a6576288869dde9bf0d3c5
{ "blob_id": "4f65682450c306ad22a6576288869dde9bf0d3c5", "branch_name": "refs/heads/master", "committer_date": "2021-04-12T22:09:19", "content_id": "9e14d6027c8c95ba23fb01acff6a720bfacbcd55", "detected_licenses": [ "MIT" ], "directory_id": "60d737013fd7094f509e8c8fe923e67b16f42fa4", "extension": "c"...
stackv2
#include <stdbool.h> #include <stdint.h> #include <avr/interrupt.h> #include <avr/io.h> #include <util/delay.h> #define BAUD 57600 #include <util/setbaud.h> #include "blinds.h" /* Serial protocol: one-byte * ccaaaaaa * 76543210 * c - action (01 -> open, 10 -> close, 11 -> stop) * a - address, 0 for broadcast *...
2.671875
3
2024-11-18T21:19:02.135923+00:00
2020-04-14T15:21:56
3d65b5f8319925456ffc9c1d03c7461fcb9f1a24
{ "blob_id": "3d65b5f8319925456ffc9c1d03c7461fcb9f1a24", "branch_name": "refs/heads/master", "committer_date": "2020-04-14T15:21:56", "content_id": "40839aa8462b0b356f0fe213765d3fe556122487", "detected_licenses": [ "MIT" ], "directory_id": "94d43c9d5088a4dfb0eb77c9d8e755ed601ccbfd", "extension": "h"...
stackv2
#ifndef jak_l_h #define jak_l_h /** * @file * @brief Double linked list class * * All functions that return int return 0 on success if not specified otherwise */ /** * The main list element type. This type should normally be used as readonly. * It is only public so looping is easier. */ typedef struct jak_...
2.71875
3
2024-11-18T21:19:02.437785+00:00
2021-06-02T19:19:14
e22b4614ab2e3945ebced76d9e75fdd22b74f489
{ "blob_id": "e22b4614ab2e3945ebced76d9e75fdd22b74f489", "branch_name": "refs/heads/main", "committer_date": "2021-06-02T19:19:14", "content_id": "55e6999dee12baed626e86be8f630c2d5eb34fed", "detected_licenses": [ "Apache-2.0" ], "directory_id": "67a005b9d856d37453a6277760e779fef1f0bb69", "extension"...
stackv2
#include <signal.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> // Fork a tree of children and print out the pids static void do_fork(int left) { if (left == 0) return; for (int i = 0; i < 2; i++) { pid_t pid = fork(); if (pid == 0) { ...
3.25
3
2024-11-18T21:19:02.609307+00:00
2023-08-12T12:52:36
4d266e6b89ab8ed1181b37b6ce53d0afd9ff262b
{ "blob_id": "4d266e6b89ab8ed1181b37b6ce53d0afd9ff262b", "branch_name": "refs/heads/master", "committer_date": "2023-08-12T12:52:36", "content_id": "63a556df297ac4b69288f863dd02fc7bc4100f44", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "5ced30ed60e0b0e12d373eea9ea1542bdd661101", "extens...
stackv2
#define CHRSET_(id, s) CHARSET_##id, enum { CHARSET_DEFAULT, #include "CharSet.i" }; #undef CHRSET_ #define CHARSET_TOASCII 253 #define CHARSET_UTF32 254 // auxilary #define CHARSET_UTF8 255 #define CHARSET_UNICODE 255 // deprecated enum { DEFAULTCHAR = 0x1f }; #define CHRSET_(id, s)...
2.203125
2
2024-11-18T21:19:02.929645+00:00
2016-02-19T17:59:05
8b4e72660d553206c4255250daf831ac97b55a1d
{ "blob_id": "8b4e72660d553206c4255250daf831ac97b55a1d", "branch_name": "refs/heads/master", "committer_date": "2016-02-19T17:59:05", "content_id": "3d3ecc617c4a8c67d6d3c690060431b672025418", "detected_licenses": [ "Apache-2.0" ], "directory_id": "887e1f2249724aa9bdf6d86c34ea41d101ff5d63", "extensio...
stackv2
#include "LinkedList.h" void reverseList(Node**head){ Node* next=NULL; Node *prev=NULL; Node *curr=*head; while(curr){ next=curr->pNext; curr->pNext=prev; prev=curr; curr=next; } *head=prev; } void AddNode(Node** node,int key){ Node* temp=NULL; Node* head=*node; #ifdef _DEBUG_...
3
3
2024-11-18T21:19:03.000594+00:00
2017-05-24T10:33:50
c53099003d1f06c9f7d0cb5f3dc4dcbab3246ebc
{ "blob_id": "c53099003d1f06c9f7d0cb5f3dc4dcbab3246ebc", "branch_name": "refs/heads/master", "committer_date": "2017-05-24T10:33:50", "content_id": "76b7fd36738738f43726f00546b9e9629c5be972", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "95e0aae5e33a1858894b52a245f6dad67ae6a225", "extens...
stackv2
/* Copyright (C) 2014-2015 Autotalks Ltd. */ #include <stdio.h> #include <assert.h> #include <inttypes.h> #include <tx_api.h> #include <nx_api.h> #include <craton/net.h> /** CRATON Network Example This example demonstrates using the Network API on top of a CRATON processor with ThreadX RTOS. An `untrusted`...
2.734375
3
2024-11-18T21:19:03.707679+00:00
2017-03-05T08:58:00
a975457fde224e2d36d90c10e6f2a7064d7a87ba
{ "blob_id": "a975457fde224e2d36d90c10e6f2a7064d7a87ba", "branch_name": "refs/heads/master", "committer_date": "2017-03-05T08:58:00", "content_id": "02136920fc4f29cf81ae3748de924fd6a6ae6a6b", "detected_licenses": [ "MIT" ], "directory_id": "3955ab5e7bc5696369ca270b8d4c6352a8d907a5", "extension": "c"...
stackv2
#include "call_count.h" #include "vector.h" static I max_count; static I current_count; static void call_count_pre(Ast **n, void *d); static void call_count_post(Ast **n, void *d); I call_count(Ast *n) { max_count = current_count = 0; ast_walk(&n, call_count_pre, call_count_post, NULL); if (current_count...
2.53125
3
2024-11-18T21:19:03.776089+00:00
2021-10-06T04:17:24
77ef6e2b52c47cb18e2c96564c2a0f6b718aa5e2
{ "blob_id": "77ef6e2b52c47cb18e2c96564c2a0f6b718aa5e2", "branch_name": "refs/heads/main", "committer_date": "2021-10-06T04:17:24", "content_id": "049b21f160a43ba1689d51011e1aa615329e78b3", "detected_licenses": [ "MIT" ], "directory_id": "12fbb86090f8a43794c9bfeccedf94f60fdb4e4f", "extension": "c", ...
stackv2
#include "sys.h" #include "usart.h" #include "delay.h" #include "led.h" #include "key.h" #include "timer.h" /*****************************************************************************************************/ //输入捕获实验 //STM32H7工程模板-HAL库函数版本 //DevEBox 大越创新 //淘宝店铺:mcudev.taobao.com //淘宝店铺:shop389957290.taoba...
2.59375
3
2024-11-18T21:19:03.903194+00:00
2015-09-02T04:49:29
31d5847dfa676c884d07c32196ce4f0181b0d012
{ "blob_id": "31d5847dfa676c884d07c32196ce4f0181b0d012", "branch_name": "refs/heads/master", "committer_date": "2015-09-02T04:49:29", "content_id": "ca9dcfd6ec63b494b7a2614f5e044ba0ba3bda05", "detected_licenses": [ "MIT" ], "directory_id": "96624cbb4a9d05c0f9596185c5dbfc30bdfc998d", "extension": "c"...
stackv2
/* * The MIT License (MIT) * * Copyright 2015 Sony Corporation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...
2.265625
2
2024-11-18T21:19:04.136977+00:00
2023-08-10T04:39:39
fe67b7c75acf8d3e78862f20502db24ea978bbaa
{ "blob_id": "fe67b7c75acf8d3e78862f20502db24ea978bbaa", "branch_name": "refs/heads/master", "committer_date": "2023-08-10T17:49:20", "content_id": "1771f98ad81da44a4b7365fb6894a73212a40fc3", "detected_licenses": [ "MIT" ], "directory_id": "cee92c2ef49a141806d48304c463a9e010b5fa21", "extension": "c"...
stackv2
/* Winamp plugin for the LED sign. */ /* Copyright 2013 Boris Gjenero. Released under the MIT license. */ #include <ctype.h> #include <windows.h> #include "gen.h" #include "libsigntcp.h" #define TRKNMAX 100 BOOL WINAPI _DllMainCRTStartup(HANDLE hInst, ULONG ul_reason_for_call, LPVOID lpReserved); BOOL WINAPI _DllMa...
2.09375
2
2024-11-18T21:19:04.609554+00:00
2019-11-24T18:21:03
feffbe0c9296233f25977242c610d049c6847c2f
{ "blob_id": "feffbe0c9296233f25977242c610d049c6847c2f", "branch_name": "refs/heads/master", "committer_date": "2019-11-24T18:21:03", "content_id": "770b34a7c8278a2b3cdaaf9d32884a84afd3ae19", "detected_licenses": [ "MIT" ], "directory_id": "53f976c9949bf7a1582bc39a15027ded69e427b1", "extension": "h"...
stackv2
/* Copyright (c) 2019 Sebastian Cato * * 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...
2.140625
2
2024-11-18T21:19:04.689009+00:00
2023-07-20T16:50:46
73f0b80d438bfd10a57d2939aafab34b36136d38
{ "blob_id": "73f0b80d438bfd10a57d2939aafab34b36136d38", "branch_name": "refs/heads/main", "committer_date": "2023-07-20T16:50:46", "content_id": "7656cec84449c85f15cdf3c0ae10cabb6d8ffe64", "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 Un...
2.40625
2
2024-11-18T21:19:04.962596+00:00
2015-06-06T04:53:10
cbcc47d31b9d736d1b58ff0da2261777b0260a7d
{ "blob_id": "cbcc47d31b9d736d1b58ff0da2261777b0260a7d", "branch_name": "refs/heads/master", "committer_date": "2015-06-06T04:53:10", "content_id": "ecdf94c3b4259b7dbdce526ce3e1a7aa39a11093", "detected_licenses": [ "MIT" ], "directory_id": "16c75512df81a8f4e127c057f86d63e434cddfd6", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <time.h> #include "GoL.h" #include "communicate.h" #include "io.h" #include <mpi.h> int main(int argc, char *argv[]) { int proc_rank, proc_size; MPI_Init(&argc, &argv); MPI_Comm_rank( MPI_COMM_WORLD, &proc_rank); MPI_Comm_size( MPI_COMM_WORLD, &proc_size); double ...
2.453125
2
2024-11-18T21:19:05.049827+00:00
2018-10-16T08:45:57
c6e316841e1ab1fefe16e0ae1a71d6a9591b006a
{ "blob_id": "c6e316841e1ab1fefe16e0ae1a71d6a9591b006a", "branch_name": "refs/heads/master", "committer_date": "2018-10-16T08:45:57", "content_id": "92a635f11a8a73090673656e2e64f7f8398595c8", "detected_licenses": [ "MIT" ], "directory_id": "00aed13aa2cfc81bb89e9733b6752551420cd174", "extension": "c"...
stackv2
#include "xmodemserver.h" #ifndef PORT #define PORT <53800> #endif #define WAITQUEUE_SIZE 5 /* * Create a socket, bind, and return listen file descriptor. */ int setupListen(void) { struct sockaddr_in addr; int socketfd; //Socket if ((socketfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { perror("socket"); ...
2.703125
3
2024-11-18T21:19:05.467461+00:00
2020-09-19T16:24:56
ac43cbd90db966a43b9e37918abbb1eac7ea7020
{ "blob_id": "ac43cbd90db966a43b9e37918abbb1eac7ea7020", "branch_name": "refs/heads/master", "committer_date": "2020-09-19T16:24:56", "content_id": "ca597e44aa33478a22a5571b3e4a4a54a405361a", "detected_licenses": [ "MIT" ], "directory_id": "07e17a58accb57c976506ca60d9c3f4a627bfe0c", "extension": "c"...
stackv2
/* * tmpnam.c - create a unique filename */ /* $Header: tmpnam.c,v 1.4 91/02/26 09:28:39 ceriel Exp $ */ #if defined(_POSIX_SOURCE) #include <sys/types.h> #endif #include <stdio.h> #include <string.h> #include "loc_incl.h" #include <unistd.h> char * tmpnam(char *s) { static char name_buffer[L_tmpnam] = "/tmp/tmp."...
2.453125
2
2024-11-18T21:19:06.245466+00:00
2023-05-26T07:03:59
28314c05e2df1610eda8b9f15d171efd7cb20409
{ "blob_id": "28314c05e2df1610eda8b9f15d171efd7cb20409", "branch_name": "refs/heads/hx20-hx30", "committer_date": "2023-05-26T07:03:59", "content_id": "7bac35bd64bce5aa2ac40b9db8f3d78e9aff309c", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "f9e7d65cb784c01a0200145ba8d289afe41d4a56", "ext...
stackv2
/* Copyright 2019 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "console.h" #include "gpio.h" #include "oz554.h" #define CPRINTS(format, args...) cprints(CC_I2C, format, ## args) #define CPRINTF(format...
2.140625
2
2024-11-18T21:19:06.333714+00:00
2023-06-23T21:34:12
52d5d1846e6cca82f288f68156e1ac216a83a3fb
{ "blob_id": "52d5d1846e6cca82f288f68156e1ac216a83a3fb", "branch_name": "refs/heads/master", "committer_date": "2023-07-21T09:00:02", "content_id": "d2ff1e765ac75773dcf70e0c63da7561c82ea244", "detected_licenses": [ "NCSA" ], "directory_id": "549f66608f0cb4e50cee2e51c53206e798ab82cd", "extension": "c...
stackv2
// RUN: %clang %s -fsanitize=implicit-signed-integer-truncation -emit-llvm -g %O0opt -c -o %t.bc // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out --emit-all-errors --ubsan-runtime %t.bc 2>&1 | FileCheck %s // RUN: ls %t.klee-out/ | grep .ktest | wc -l | grep 2 // RUN: ls %t.klee-out/ | grep .implicit_t...
2.125
2
2024-11-18T21:19:08.205337+00:00
2023-03-07T23:03:32
d5c4b545201c077654ef7cf59e5a4c94f11de56a
{ "blob_id": "d5c4b545201c077654ef7cf59e5a4c94f11de56a", "branch_name": "refs/heads/master", "committer_date": "2023-03-07T23:15:09", "content_id": "227155e2e7cb07a182789a5cb6e679b343a64fa3", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "371f47f30e6663228eb11f3e6bcff9fbf4383973", "extens...
stackv2
//Copyright (c) 2019, ARM Limited. All rights reserved. // //SPDX-License-Identifier: BSD-3-Clause #include <stdio.h> #include <stdlib.h> #include "p64_errhnd.h" #include "common.h" #include "err_hnd.h" #undef report_error static p64_errhnd_cb errh; p64_errhnd_cb p64_errhnd_install(p64_errhnd_cb new) { p...
2.265625
2
2024-11-18T21:19:08.534893+00:00
2021-08-24T12:48:07
750d7ca4a961915834494eb449fb54fd3baffd2a
{ "blob_id": "750d7ca4a961915834494eb449fb54fd3baffd2a", "branch_name": "refs/heads/main", "committer_date": "2021-08-24T12:48:07", "content_id": "d251f73127d2d14a4e34b617f03d456dc6c7d7e5", "detected_licenses": [ "CC0-1.0" ], "directory_id": "fe3970beb5b2f4da621baaafd3e291b7afb424ec", "extension": "...
stackv2
/** * @file halfadder.c * @author Sambit Nayak (Sambit.Nayak@ltts.com) * @Half Adder has two functions Sum and Carry where Sum is A^B(A xor B) according to Kmap and Truth table * And we have another function as Carry which is AB or (A and B) * @version 0.1 * @date 2021-08-22 * * @copyright Copyright (c) 2021...
3.53125
4
2024-11-18T21:19:09.656393+00:00
2020-05-28T18:47:15
621b7a814f281feed5c989c0b38b008644435569
{ "blob_id": "621b7a814f281feed5c989c0b38b008644435569", "branch_name": "refs/heads/master", "committer_date": "2020-05-28T18:47:15", "content_id": "3a4444c16cd2ec89fa3bb7b9640df13e35f826d4", "detected_licenses": [ "MIT" ], "directory_id": "e529050b786c4dab765d24172d6e9456bbd7feee", "extension": "c"...
stackv2
/* * Copyright (c) 2020 EmbedJournal * * SPDX-License-Identifier: MIT */ #include "procutils.h" int read_pid(const char *file, int *pid) { FILE *fd; if (file == NULL) return -1; fd = fopen(file, "r"); if (fd == NULL) return -1; if (fscanf(fd, "%d", pid) != 1) { printf("Failed to read PID from file %...
2.71875
3
2024-11-18T21:19:09.955339+00:00
2021-04-01T08:09:11
bea40319ebfd2b73322fbd17289077c2a6fc2490
{ "blob_id": "bea40319ebfd2b73322fbd17289077c2a6fc2490", "branch_name": "refs/heads/master", "committer_date": "2021-04-01T08:15:44", "content_id": "e6e3081c37c00ba2a827b2252c00ee9dbb53620e", "detected_licenses": [ "MIT" ], "directory_id": "db51935f096e0e0d19fc6a1f99f842465fa0b1e1", "extension": "c"...
stackv2
#include <stdbool.h> #include "stm32f1xx.h" #define LED_FLASH_PERIOD 500u enum LedAction { idle, turnOn, turnOff }; volatile enum LedAction ledAction = idle; volatile enum LedAction nextAction = turnOn; volatile uint16_t timer = 0; extern uint32_t SystemCoreClock; // References // [1]: RM0008 Reference ...
2.734375
3
2024-11-18T21:19:10.438748+00:00
2019-04-23T06:16:54
bea0348a696a475837d36973639c570f72d5241d
{ "blob_id": "bea0348a696a475837d36973639c570f72d5241d", "branch_name": "refs/heads/master", "committer_date": "2019-04-23T06:16:54", "content_id": "3647f8279ba1d7c17655192614c99f6318fbd9ff", "detected_licenses": [ "MIT" ], "directory_id": "cbf2d3ddab5b1f0cd6f8d94f6184d6d07aa09fad", "extension": "c"...
stackv2
#include <stdio.h> #include "share_lib.h" /* 包含头文件,引用static_lib库中的函数 */ int main(void) { int array[5] = {5, 4, 2, 3, 1}; /* 待排序数组 */ int item; int pos; insert_sort(array, 5); /* 直接插入排序 */ printf("please input a number\n"); scanf("%d", &item); /* 输入一个数 */ pos = binary_search(array, item, 5); /* 二分查找该...
3.203125
3
2024-11-18T21:19:10.890009+00:00
2017-04-05T12:45:56
854fbcdbeef7f5486d14709672b2d763120ecd24
{ "blob_id": "854fbcdbeef7f5486d14709672b2d763120ecd24", "branch_name": "refs/heads/master", "committer_date": "2017-04-05T12:45:56", "content_id": "eb589cabe4311ef958d690d1736d613a3ff15e12", "detected_licenses": [ "MIT" ], "directory_id": "924d87cac27f80d23713f98701d1eb56953e77b6", "extension": "c"...
stackv2
#include "includes.h" #define F_CPU 16000000UL // CPU frequency = 16 Mhz #include <avr/io.h> #include <util/delay.h> #define TASK_STK_SIZE OS_TASK_DEF_STK_SIZE // Task Stack OS_STK LedTaskStk[TASK_STK_SIZE]; OS_STK FndTaskStk[TASK_STK_SIZE]; // Task void LedTask(void *data); void FndTask(void *data);...
2.796875
3
2024-11-18T21:19:11.220063+00:00
2014-04-15T16:42:16
817a27c1e17b55b373c6171db7719367aa1eae02
{ "blob_id": "817a27c1e17b55b373c6171db7719367aa1eae02", "branch_name": "refs/heads/master", "committer_date": "2014-04-15T16:42:16", "content_id": "6e0a3f2c2ea8ef739255bc52f10f0832c8507506", "detected_licenses": [ "MIT" ], "directory_id": "23403f7a8be6c1155237a2f495bb6b5000ac9933", "extension": "h"...
stackv2
#ifndef OPTION_H #define OPTION_H #include "cclap/core.h" #ifdef __cplusplus extern "C" { #endif typedef enum { SOPTION = 0, // Simple option (soption_t) OPTIONVAL // Option with value (optionval_t) } optiontype_t; /* * Simple option * Ex: "-v" and/or "--verbose" */ typedef struct { /* * Option's short ...
2.734375
3
2024-11-18T21:19:11.345869+00:00
2013-12-17T04:53:26
84c127f97663834af5562e9cd7557a518e28c7f4
{ "blob_id": "84c127f97663834af5562e9cd7557a518e28c7f4", "branch_name": "refs/heads/master", "committer_date": "2013-12-17T04:53:26", "content_id": "d5e8c155c6ea123be8a81fa4910d54da90773d9d", "detected_licenses": [ "Unlicense" ], "directory_id": "4b3fa1bcfc13dc0f70bdff09eec65a7740d0b741", "extension...
stackv2
/************************************************************************* Envrypter la zone de donnees de Rayoid */ #include "tos.h" #include "string.h" typedef struct { int c_magic; /* magic number (0x601A) */ long c_text; /* size of text segment */ long c_data;...
2.25
2
2024-11-18T21:19:11.668799+00:00
2016-04-09T22:04:58
307f7c34ac0d8e37c67d1d87970ad79a19ccff17
{ "blob_id": "307f7c34ac0d8e37c67d1d87970ad79a19ccff17", "branch_name": "refs/heads/master", "committer_date": "2016-04-09T22:04:58", "content_id": "de7c5bf7153b9e7ae06d2174b63bd02aa68cb89c", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "2d072af262445c1c017019abe3b3e53640d1484e", "extens...
stackv2
/* Copyright (c) 2013, Kcchouette and b-dauphin on GitHub All rights reserved. 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 notice, this list of conditions...
2.28125
2
2024-11-18T21:19:11.812714+00:00
2020-11-24T04:50:26
a996a4a6f86680e3ed0a9a90ddca166714998de1
{ "blob_id": "a996a4a6f86680e3ed0a9a90ddca166714998de1", "branch_name": "refs/heads/master", "committer_date": "2020-11-24T04:50:26", "content_id": "465a48b911364ffebfefb2a94e0c3319cb35dbcf", "detected_licenses": [ "MIT" ], "directory_id": "578591c888480779776e0acbdf9dcb18ce3149cf", "extension": "c"...
stackv2
/* * libstring * https://github.com/carmesim/libstring * * Copyright (c) 2020 Vinícius R. Miguel, Ivan dos Santos Muniz * <vinicius.miguel at unifesp.br> * <ivan.muniz at unifesp.br> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
2.59375
3
2024-11-18T21:19:11.894327+00:00
2019-09-08T14:39:49
729bb9d70b71a3b4108847ea0d82497268ef607b
{ "blob_id": "729bb9d70b71a3b4108847ea0d82497268ef607b", "branch_name": "refs/heads/master", "committer_date": "2019-09-08T14:39:49", "content_id": "a214e7dca7daf35a6e8dea70bac82e88c833a016", "detected_licenses": [ "Apache-2.0" ], "directory_id": "52cd01005c0d38a80a0305482950d69ad74279e9", "extensio...
stackv2
// // Created by Sam on 2018/2/13. // #include <dongmendb/dongmendb.h> /* * 检查是否存在数据表 * 此函数在以下情况会被调用: * 1. 执行select,update,insert,delete时调用,检查表是否存在 * 2 执行create table语句时检查表是否已经存在 * 3 执行create index时检查表是否存在 * * */ int semantic_check_table_exists(table_manager *tableManager, char *tableName, transaction *tx){ ...
2.125
2
2024-11-18T21:19:12.583984+00:00
2017-09-30T01:08:51
3b508672fff8fcef2b4c0f3dfd4f6f0edc7290a5
{ "blob_id": "3b508672fff8fcef2b4c0f3dfd4f6f0edc7290a5", "branch_name": "refs/heads/master", "committer_date": "2017-09-30T01:08:51", "content_id": "fba1a08ff712890a8bec7e2e608b1d6db869d781", "detected_licenses": [ "MIT" ], "directory_id": "ab49a5a07f42ea68c43d4c98fc42269e86553b47", "extension": "h"...
stackv2
#ifndef DISPLAY_H #define DISPLAY_H //------------------------------------- // Служебные методы //------------------------------------- // Инициализация модуля (функция должна быть вызвана единожды, при старте программы) void Display_Init(void); // DEBUG: Тестирование LCD-дисплея (блокирующая глюкалка) void Displa...
2.15625
2
2024-11-18T21:19:12.743746+00:00
2009-07-23T09:51:36
a73b7ac71cad6fe81b1c405d80bd20ea19668778
{ "blob_id": "a73b7ac71cad6fe81b1c405d80bd20ea19668778", "branch_name": "refs/heads/master", "committer_date": "2009-07-23T09:51:36", "content_id": "9d508effea2d685777a7f46cfff2e9aad47269a9", "detected_licenses": [ "MIT" ], "directory_id": "90d1455814100be83e9b637eb05406500e7ad1e3", "extension": "c"...
stackv2
// // Copyright (c) 2007, Pau Fernández // #include <assert.h> #include <iomanip> #include "postscript.H" // S = stroke F = fill // d = def c = circle C = "fillcircle" // m = moveto l = lineto gr = gsave gr = grestore // sr = setrgbcolor sh = sethsbcolor b = "box" // sc = scale tr = translate rl = rli...
2.296875
2
2024-11-18T21:19:13.185695+00:00
2021-11-01T18:22:35
eb9735249864d2c047f86f76d9cc3dc8ebd233a8
{ "blob_id": "eb9735249864d2c047f86f76d9cc3dc8ebd233a8", "branch_name": "refs/heads/master", "committer_date": "2021-11-01T18:22:35", "content_id": "cb5fcaf0b7000c9b5fa533817ec46c65ca60ef9e", "detected_licenses": [ "MIT" ], "directory_id": "9905e4d75850330a857cbfd0aaff9da5a5ceb02e", "extension": "c"...
stackv2
/* MIT License Copyright (c) 2019 Yoann Berenguer 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.765625
3
2024-11-18T21:19:13.299023+00:00
2021-11-25T22:27:12
65690e14d9445f45a4f58c35152b9665e8a34154
{ "blob_id": "65690e14d9445f45a4f58c35152b9665e8a34154", "branch_name": "refs/heads/master", "committer_date": "2021-11-25T22:27:12", "content_id": "eb5e67ea16d1b61b7566e3932d8d77cca045d6b5", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "bade93cbfc1f25160dfbe9493bfa83f853326475", "extens...
stackv2
/* * The information contained herein is a trade secret of Mark Williams * Company, and is confidential information. It is provided under a * license agreement, and may be copied or disclosed only under the * terms of that agreement. Any reproduction or disclosure of this * material without the exp...
2.265625
2
2024-11-18T21:19:13.746462+00:00
2021-04-02T03:02:19
a0b16c24f20e4e0ad70e35bc0160214c47033e61
{ "blob_id": "a0b16c24f20e4e0ad70e35bc0160214c47033e61", "branch_name": "refs/heads/main", "committer_date": "2021-04-02T03:02:19", "content_id": "aea7019decccb43e34e38207cc09ac87e43b3b1c", "detected_licenses": [ "MIT" ], "directory_id": "f7a21b43519629ecd4bf583ddbdd46075ecb9318", "extension": "c", ...
stackv2
#include <stdbool.h> #include <stdio.h> #include <string.h> #include "map.h" enum { ARG_IPATH = 1, ARG_OPATH, ARG_FIRST_KEY }; bool is_word_char(char ch) { return ch != ' ' && ch != '\t' && ch != '\n'; } int main(int argc, char **argv) { if (argc == 1) { printf("usage: replace template_p...
2.5625
3
2024-11-18T21:19:13.841704+00:00
2015-05-15T02:28:06
9a538cf592700741ad2bb7609d63c425497740f1
{ "blob_id": "9a538cf592700741ad2bb7609d63c425497740f1", "branch_name": "refs/heads/master", "committer_date": "2015-05-15T02:28:06", "content_id": "db1dfed55a845f1e0ce63bf7d4263cb5a2078e9a", "detected_licenses": [ "MIT" ], "directory_id": "698925fab31dae36c2a5939c2563337205855e1a", "extension": "c"...
stackv2
#include "gui.h" #include "graphics.h" #include "heap.h" #include "kstdio.h" window_t g_window_list; void gui_init() { LIST_INIT(g_window_list.list); } void gui_background_render() { //fillrect(0,0,screen_width,screen_height,rgb(255,255,255)); } void gui_print() { } void gui_update() { window_t* win; LIST_FO...
2.4375
2
2024-11-18T21:19:13.995404+00:00
2023-08-11T17:30:23
ac6cc2cf8625b8673773bf4d2a668a03d0219d7d
{ "blob_id": "ac6cc2cf8625b8673773bf4d2a668a03d0219d7d", "branch_name": "refs/heads/master", "committer_date": "2023-08-11T17:30:23", "content_id": "5b15c8ec75ac9ffb8090074cf49a5017bcedef5a", "detected_licenses": [ "MIT" ], "directory_id": "7f6c2e05e9ea90f848f5bf4914dcda7a95bb245b", "extension": "h"...
stackv2
/* * Copyright 2022 Jiri Svoboda * * Permission is hereby granted, free of charge, to any person obtaining * 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.0625
2
2024-11-18T21:19:14.413754+00:00
2020-04-15T20:58:21
e08271b9f03484a206bbff09349110991dbadc25
{ "blob_id": "e08271b9f03484a206bbff09349110991dbadc25", "branch_name": "refs/heads/master", "committer_date": "2020-04-15T20:58:21", "content_id": "34672c0441e104923ab3c80b233c825360b5c5a3", "detected_licenses": [ "MIT" ], "directory_id": "ebc700cb11b49d5319544d3f7bbc8882250a8e5a", "extension": "c"...
stackv2
/*****************************************************************************\ |* |* Filesystem Example |* |* Devices: |* - CF card (WB_IDE and COMPACT_FLASH component) |* - SD card (WB_SPI and SD_CARD component) |* - S29 paralel flash (WB_SHARED_MEM_CTRL) |* |* Services |* - Filesystem (fs_fat) |* |* Description: |* ...
2.625
3
2024-11-18T21:19:16.751381+00:00
2021-06-11T15:07:27
7baf804ae8b24f963ebf50c50e120cdaab50a4ab
{ "blob_id": "7baf804ae8b24f963ebf50c50e120cdaab50a4ab", "branch_name": "refs/heads/main", "committer_date": "2021-06-11T15:07:27", "content_id": "eecbf8d32812e7a1721694b6641d0b06d33745cd", "detected_licenses": [ "Unlicense" ], "directory_id": "75c5c31f2f5a1d439f16efb4e41eb2c005f5e697", "extension":...
stackv2
/* linked.c TheGrand547 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "linked.h" struct _node { struct _node *prev, *next; void *data; }; struct _linked { int size; Node *head, *tail; }; void iterate(Linked *l, Func func) { Node *n; if (l == NULL) return; n = l->head; do func(n->d...
3.40625
3
2024-11-18T21:19:16.982152+00:00
2018-05-27T19:30:02
c8bbf3e41b30b496576ea3c1dd264ed113d977f3
{ "blob_id": "c8bbf3e41b30b496576ea3c1dd264ed113d977f3", "branch_name": "refs/heads/master", "committer_date": "2018-05-27T19:30:02", "content_id": "4876476d87a54a8afb984a51f036c9d8a1969be7", "detected_licenses": [ "MIT" ], "directory_id": "a8157af58435d2308c07e04a3dc61f3bf49d955b", "extension": "c"...
stackv2
#pragma config(Sensor, S1, DIMC, sensorI2CCustom) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*// /* * $Id: dexterind-compass-test3.c 127 2012-12-05 19:32:39Z xander $ */ /** * dexterind-compass.h provides an API for the Dexter Industries dCompass Sensor. This ...
2.265625
2
2024-11-18T21:19:18.505183+00:00
2018-06-20T16:12:02
0ccc5bd45d52202ac9df22f7763177a97e9041c7
{ "blob_id": "0ccc5bd45d52202ac9df22f7763177a97e9041c7", "branch_name": "refs/heads/master", "committer_date": "2018-06-20T16:12:02", "content_id": "982008af6f69bd11388d9b8d0560b03c02ca126b", "detected_licenses": [ "MIT" ], "directory_id": "d11d6dc27293476113f9f34cb76de29c3cec57c6", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "../common/common.h" #include "./function.h" bool checkLetterOrZero( char *mot ){ bool test; for(int i = 0; i < strlen(mot); i++){ // remplace saut de ligne par le null de fin de string if((int)mot[i] == '\n'){ mot[i] = '\0'...
3
3
2024-11-18T21:19:19.179872+00:00
2020-09-19T16:26:32
a70b0c24cf65a02ef80e29a10f8a362fc78777b5
{ "blob_id": "a70b0c24cf65a02ef80e29a10f8a362fc78777b5", "branch_name": "refs/heads/master", "committer_date": "2020-09-19T16:26:32", "content_id": "a9e0634b1bf157c0207d3c3f150244cb670332c3", "detected_licenses": [ "MIT" ], "directory_id": "7cd020372edbd177548b2afda249f52fee83d62c", "extension": "c"...
stackv2
#include <include/mman.h> #include <libc/unistd.h> #include <stdbool.h> #define PREFIX_LINE "$ " #define CHARACTERS_PER_LINE 256 struct shell { char cwd[256]; gid_t foreground_gid; }; struct shell *ishell; int main() { int32_t fd = shm_open("shell", 0, 0); ftruncate(fd, sizeof(struct shell)); ishell = (struct ...
2.421875
2
2024-11-18T21:19:20.581485+00:00
2021-10-31T05:46:00
6751b999fda0f5184435d7ae8638a0b16cbd09ce
{ "blob_id": "6751b999fda0f5184435d7ae8638a0b16cbd09ce", "branch_name": "refs/heads/master", "committer_date": "2021-10-31T05:46:00", "content_id": "bd322e64d86a4e84d90fd8c209df983c230ec678", "detected_licenses": [ "MIT" ], "directory_id": "9eac48c3beb78b984c918d86ae72954a73253e0c", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #define MAX_SIZE 10 #define PARENT_SIZE 20 void push1(int a[], int *top1, int *top2, int x) { if (*top1 > *top2) { printf("%d Overflow\n", *top1); return; } *top1 = *top1 + 1; a[*top1] = x; } void push2(int a[], int *top2, int *top1, int x) { if (*top1 > *top2) { pri...
3.546875
4
2024-11-18T21:19:20.985470+00:00
2019-09-22T23:03:06
554bcc44cb5610418e06b48af3712dedc57cbb5f
{ "blob_id": "554bcc44cb5610418e06b48af3712dedc57cbb5f", "branch_name": "refs/heads/master", "committer_date": "2019-09-22T23:03:06", "content_id": "d92dc2dab983a47b35a9cc9a45b4024548c8c7d8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "77c011bb37aa1440ce49f5a78b3b46557ccc7098", "extensio...
stackv2
/* Copyright 2017 INRIA Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribut...
2.203125
2
2024-11-18T21:19:21.253268+00:00
2018-07-22T18:32:45
2d010a16d0d21ef62a6b229cf00b2c0e0a1b4f10
{ "blob_id": "2d010a16d0d21ef62a6b229cf00b2c0e0a1b4f10", "branch_name": "refs/heads/master", "committer_date": "2018-07-22T18:32:45", "content_id": "cbf220e7e25736881635e4081cb1ad94b0c176f2", "detected_licenses": [ "MIT" ], "directory_id": "e3f6d0ccd0cb538d96b9ae64ee2938f94e16563e", "extension": "c"...
stackv2
#include "builtins.h" #include <assert.h> #include <errno.h> #include <limits.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "attribute.h" #include "check.h" #include "import.h" #include "interpreter.h" #include "lambdabuiltin.h" #include "objectsystem.h" #include "objects/ar...
2.046875
2
2024-11-18T21:19:21.411306+00:00
2023-09-03T08:13:23
50705a62ce65ba574d086c95277b16a95829f34e
{ "blob_id": "50705a62ce65ba574d086c95277b16a95829f34e", "branch_name": "refs/heads/main", "committer_date": "2023-09-03T08:13:23", "content_id": "8751f8daa5614a78f7e97c838a4d2664e7c03b22", "detected_licenses": [ "MIT" ], "directory_id": "fb0f9abad373cd635c2635bbdf491ea0f32da5ff", "extension": "h", ...
stackv2
/** * \file */ #ifndef __MONO_CIL_COFF_H__ #define __MONO_CIL_COFF_H__ #include <mono/metadata/metadata.h> #include <glib.h> /* * 25.2.1: Method header type values */ #define METHOD_HEADER_FORMAT_MASK 3 #define METHOD_HEADER_TINY_FORMAT 2 #define METHOD_HEADER_FAT_FORMAT 3 /* * 25.2.3.1: Flags for metho...
2.15625
2
2024-11-18T21:19:21.482045+00:00
2023-02-23T10:21:55
db6234df287759e124ec2d0972a1b187a644f2ec
{ "blob_id": "db6234df287759e124ec2d0972a1b187a644f2ec", "branch_name": "refs/heads/master", "committer_date": "2023-02-23T10:25:37", "content_id": "604c0a672af64cd9caecfe05b5cd259bd1634735", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4532fa078ca998d5cf207bf5998cf782600daada", "extensio...
stackv2
/* * Copyright (c) 2021-2023 Cisco and/or its affiliates. * 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 appl...
2.078125
2
2024-11-18T21:19:21.715631+00:00
2016-05-30T10:24:38
ce2a9affd41b2e32cbf4a9b423f7746bf5be3744
{ "blob_id": "ce2a9affd41b2e32cbf4a9b423f7746bf5be3744", "branch_name": "refs/heads/master", "committer_date": "2016-05-30T10:24:38", "content_id": "9c14c90aa6682f9de124c5572ec1066ac59f484f", "detected_licenses": [ "MIT" ], "directory_id": "3a9958147415bb7355fc4e43c9e16e7b95db8b76", "extension": "c"...
stackv2
/** \file * \brief Valuator Control. * * See Copyright Notice in "iup.h" */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "iup.h" #include "iupcbs.h" #include "iupcontrols.h" #include "iupkey.h" #include <cd.h> #include <cdiup.h> #include <cddbuf.h> #include "iup_object....
2.171875
2
2024-11-18T21:19:21.965110+00:00
2018-07-25T21:54:01
1a60771ab8d92784bde7c21ed443f84d1f7582d6
{ "blob_id": "1a60771ab8d92784bde7c21ed443f84d1f7582d6", "branch_name": "refs/heads/devel", "committer_date": "2018-07-25T21:54:01", "content_id": "4d2315e70da91c8e6d2222ad95259c3f65cad91d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "67f62674ad3aa8950e990001deed2e17007744f6", "extension...
stackv2
/** * @file fragmentproto.h * @author Ambroz Bizjak <ambrop7@gmail.com> * * @section LICENSE * * 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 ...
2.453125
2
2024-11-18T21:19:22.158269+00:00
2021-10-03T19:50:40
e3c0372cad55cbc75a089e955b7e2af3829742ef
{ "blob_id": "e3c0372cad55cbc75a089e955b7e2af3829742ef", "branch_name": "refs/heads/main", "committer_date": "2021-10-03T19:50:40", "content_id": "2914e371d8136c00e9d688726baced4692be7dc1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "706110309807ee4e6568b3f4d197e80535d54d8c", "extension"...
stackv2
#ifndef GRAPH_H #define GRAPH_H #define NV_MAX 1000000 #define NA_MAX 6000000 typedef struct solver_graph solver_graph; typedef struct graph_vertex graph_vertex; typedef struct graph_arc graph_arc; typedef struct graph_vertex { int i; int ind; int fixed; int branch; int deg; int mark; dou...
2.125
2
2024-11-18T21:19:22.814448+00:00
2019-06-16T19:16:05
bb9962f7e974c7a9260f4ad18e417238c0d8f73c
{ "blob_id": "bb9962f7e974c7a9260f4ad18e417238c0d8f73c", "branch_name": "refs/heads/master", "committer_date": "2019-06-16T19:16:05", "content_id": "4342737c437f4262d4ea4b9f1c99515fb18eb5b9", "detected_licenses": [ "MIT" ], "directory_id": "396867a819c2939670127195d419c2927e0cc67c", "extension": "c"...
stackv2
#include "utils.h" void compute_message(char *message, char *line) { strcat(message, line); strcat(message, "\r\n"); } void compute_cookie(char *message, char *line) { strcat(message, line); strcat(message, "; "); } int open_connection(char *host_ip, int portno, int ip_type, int socket_type, int flag...
2.546875
3
2024-11-18T21:19:22.882524+00:00
2015-04-06T16:20:52
f5804409a84e5ef5d753953476db7715b25cabb1
{ "blob_id": "f5804409a84e5ef5d753953476db7715b25cabb1", "branch_name": "refs/heads/master", "committer_date": "2015-04-06T16:20:52", "content_id": "82d8b3e28c66be67a1557163914a600b17094934", "detected_licenses": [ "MIT" ], "directory_id": "8cb012df67a34be0e9771df96480049f7c31e1b1", "extension": "c"...
stackv2
// Player (Ausbaustufe 2: player_t.name als Array statt als Zeiger) #include <stdlib.h> #include <stdio.h> #include <string.h> #define PLAYER_NAME_MAX_LEN 100 // Maximum length of player_t.name including terminating null void read_line(char *buf, int buf_sz) { int c, i = 0; while ((i < buf_sz - 1) && ((c = getc(...
3.359375
3
2024-11-18T21:19:23.043421+00:00
2019-03-05T19:08:44
f7c3f564993dc2fa21b2d83dae16017ac7b575b6
{ "blob_id": "f7c3f564993dc2fa21b2d83dae16017ac7b575b6", "branch_name": "refs/heads/master", "committer_date": "2019-03-05T19:08:44", "content_id": "c8218192e03cb49db27cad2bce60d0d91c954d0c", "detected_licenses": [ "MIT" ], "directory_id": "088b140d3f7d8e25c2bf2d431db756bd7ab6bccb", "extension": "c"...
stackv2
#include<stdio.h> #include<stdlib.h> struct node { int key; struct node *left, *right; }*root=NULL; void preorder(struct node *root) { if (root != NULL) { printf("%d ", root->key); preorder(root->left); preorder(root->right); } } void display() { ...
3.765625
4
2024-11-18T21:19:23.106049+00:00
2018-01-24T21:10:18
c81ffd3b42d0bd62124bdf2e412b39dd0f5b77f8
{ "blob_id": "c81ffd3b42d0bd62124bdf2e412b39dd0f5b77f8", "branch_name": "refs/heads/master", "committer_date": "2018-01-24T21:10:18", "content_id": "4bd790695b7fa78f860d1cda959c52236d945f5e", "detected_licenses": [ "MIT" ], "directory_id": "093b452037b3c35531fca5059c3693988400e053", "extension": "h"...
stackv2
#pragma once #include <pebble.h> #include "../config.h" #include "comm.h" #define DATA_MAX_STORIES 20 #define DATA_MAX_LENGTH_TITLE 128 #define DATA_MAX_LENGTH_DESC 256 #define DATA_MAX_PERSISTED 10 // Maximum number of cached stories #define DATA_PERSIST_KEY_CACHED 0 // Is there cac...
2.078125
2
2024-11-18T21:19:25.949596+00:00
2017-09-26T00:10:47
abf2f293d69264e8935329043444538935f0bda9
{ "blob_id": "abf2f293d69264e8935329043444538935f0bda9", "branch_name": "refs/heads/master", "committer_date": "2017-09-26T00:10:47", "content_id": "f1053e4893d65003ef68153419e35a17553b7ef7", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fabbd793b757b733c364a2eb732ecf8a9b4eeb1f", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <sys/socket.h> #include <netinet/in.h> //#include "common.h" //#include "cfuhash.h" //void *request_name(void *arguments); //void request_name(char *dst_addr, char *next_hop_addr); void copy_file_content(char *from_path, char *to_...
2.0625
2
2024-11-18T21:19:26.137726+00:00
2020-03-09T17:48:37
6424328066b72d498e93d98deb6b8dfc80d9ff02
{ "blob_id": "6424328066b72d498e93d98deb6b8dfc80d9ff02", "branch_name": "refs/heads/master", "committer_date": "2020-03-09T17:48:37", "content_id": "060b060ccb30c1b5ce170a46f1f405ff17570200", "detected_licenses": [ "Apache-2.0" ], "directory_id": "33982ba45d632ceeeef3e448fc59ec019668b67b", "extensio...
stackv2
#include <stdint.h> /* for int8_t, int32_t*/ #include <string.h> /* for memset, NULL*/ #include "hpack/decoder.h" #include "hpack/huffman.h" #include "hpack/utils.h" #define LOG_MODULE LOG_MODULE_HPACK #include "logging.h" /* * Function: hpack_decoder_decode_integer * Decodes an integer using prefix bits for first...
2.734375
3
2024-11-18T21:19:26.219440+00:00
2020-04-13T03:48:07
f5c4b5e2612c2a78083870d2d292c9dd0f5a6ffa
{ "blob_id": "f5c4b5e2612c2a78083870d2d292c9dd0f5a6ffa", "branch_name": "refs/heads/master", "committer_date": "2020-04-13T03:48:07", "content_id": "b88b2d3e12239f2172141272efa5de6272fcc426", "detected_licenses": [ "Apache-2.0" ], "directory_id": "5e67fac60b2e50e0145a0c9ee068631b09ee64b9", "extensio...
stackv2
#include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <unistd.h> #include "Layout.h" #include "Qlut.h" #define LWFPGASLV_OFST 0xFF200000 #define HWFPGASLV_OFST 0xC0000000 #define QLUT_CONFIG_BASE 0x30000 #define QLUT_CONFIG_SPAN 8192 #define QLUT_CONFIG_END 0x31fff #define QLUT_D...
2.453125
2