added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T22:37:04.082152+00:00 | 2023-02-19T08:29:34 | f2842a40b7d33239399990de6707d2aa3eca8c3f | {
"blob_id": "f2842a40b7d33239399990de6707d2aa3eca8c3f",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-19T08:29:34",
"content_id": "6b47ca0cdf596ab62a40bcf5fb5741fa73c788e1",
"detected_licenses": [
"MIT"
],
"directory_id": "87f9d23b64f0ed9585db8a728c0585ad82a3b9f2",
"extension": "c",
... | stackv2 | //----------------------------------------------------------------------------------------| DEC2BIN von Dietmar Schrausser 2009
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <conio.h>
#include <math.h>
void _profil()
{
int lauf;
printf("\n");
printf("DEC2BIN [d]\n");
for(lau... | 2.65625 | 3 |
2024-11-18T22:37:08.914322+00:00 | 2020-12-23T01:20:27 | a73a40b5b6850ea46f8e68148c1a3dc0b08bd050 | {
"blob_id": "a73a40b5b6850ea46f8e68148c1a3dc0b08bd050",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-23T01:20:27",
"content_id": "205346db3862693f655f580ec11b2e8ef0bdbc54",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8f7299378e548ff164bbcfa240275ee924f2eeff",
"extensio... | stackv2 | #ifndef HL7PARSER_SEGMENT_H
#define HL7PARSER_SEGMENT_H
/**
* \file segment.h
*
* HL7 segment data types and functions.
*
* \internal
* Copyright (c) 2003-2013 Juan Jose Comellas <juanjo@comellas.org>
*/
/* ------------------------------------------------------------------------
Headers
------------------------... | 2.1875 | 2 |
2024-11-18T22:37:09.077235+00:00 | 2023-08-24T08:38:57 | 4de418103c10378663cf2e613f281b5f869cf22f | {
"blob_id": "4de418103c10378663cf2e613f281b5f869cf22f",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-24T08:49:52",
"content_id": "f09b009254a2c7c4c3c8b45304ef65da22456d33",
"detected_licenses": [
"MIT"
],
"directory_id": "30c2631ed046d7662476b94fb7f5286c47377f60",
"extension": "c"... | stackv2 | /**
* @file addons/plecs.c
* @brief Plecs addon.
*/
#include "flecs.h"
#ifdef FLECS_PLECS
ECS_COMPONENT_DECLARE(EcsScript);
#include "../private_api.h"
#include <ctype.h>
#define TOK_NEWLINE '\n'
#define TOK_USING "using"
#define TOK_MODULE "module"
#define TOK_WITH "with"
#define TOK_CONST "const"
#define TOK_... | 2.1875 | 2 |
2024-11-18T22:37:10.696482+00:00 | 2022-05-29T15:20:26 | 8031d894dcefc837649d5fb0c65c0d72c338a0d4 | {
"blob_id": "8031d894dcefc837649d5fb0c65c0d72c338a0d4",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-29T15:20:26",
"content_id": "552b753e2bf42eaead876574fb6d9a24a8a3fb05",
"detected_licenses": [
"MIT"
],
"directory_id": "e72c68557ff1ce689a69fd1ecef8ef77ad21d047",
"extension": "c"... | stackv2 | #include "test.h"
// recursive_fib выдает N-ый член последовательности Фибоначчи.
// Правило последовательности:
// recursive_fib(0) == 0
// recursive_fib(1) == 1
// recursive_fib(2) == 1
// recursive_fib(n+1) = recursive_fib(n) + recursive_fib(n-1)
// !!! Функция должна использовать рекурсию
// Циклы for, while ЗАПРЕ... | 2.96875 | 3 |
2024-11-18T22:37:10.818693+00:00 | 2020-05-02T03:48:56 | 4d46be64fa600c023595d304f0a8c3345dd8e5c3 | {
"blob_id": "4d46be64fa600c023595d304f0a8c3345dd8e5c3",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-02T03:48:56",
"content_id": "518d10c310d24113d9d8337d8b78e0d3889aa0a5",
"detected_licenses": [
"MIT"
],
"directory_id": "ee4838ceb10d677b8ca925e640185ebe5dc5d50c",
"extension": "c"... | stackv2 | /*
The MIT License (MIT)
Copyright (c) 2017 Muthucumaru Maheswaran
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, modi... | 2.3125 | 2 |
2024-11-18T22:37:11.135008+00:00 | 2023-01-11T23:43:12 | 2fcc76013c007c243bb97627d265b39421614ca4 | {
"blob_id": "2fcc76013c007c243bb97627d265b39421614ca4",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-11T23:43:12",
"content_id": "0dcac6cdc2524fca408dd1200400908b3ae67291",
"detected_licenses": [
"ISC"
],
"directory_id": "f806c29d2ee80cc730300b36a7e7fbdfe42ed14e",
"extension": "c"... | stackv2 | #include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <err.h>
#include "../libconn.h"
#include "common.h"
static int init_conn_table(int *fd, int numfd);
static int free_conn_table(void);
static int process_conn... | 2.65625 | 3 |
2024-11-18T22:37:11.287772+00:00 | 2021-04-13T13:39:06 | f9374f5875da355246d50eb7a4f385a4271ab4c5 | {
"blob_id": "f9374f5875da355246d50eb7a4f385a4271ab4c5",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-13T13:39:06",
"content_id": "eb73866a1fd88f50747226b7b141304b177e504f",
"detected_licenses": [
"MIT"
],
"directory_id": "cf56168422d8e53de830a232dc4481263f08a53c",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include "llvm-c/Core.h"
#include "llvm-c/BitReader.h"
#include "llvm-c/BitWriter.h"
LLVMModuleRef parseP1File(const char* InputFilename);
int
main (int argc, char ** argv)
{
if (argc < 3) {
fprintf(stdout,"Usage: %s filein.p1 fileout.bc\n",argv[0]);
return 0;
}
... | 2.609375 | 3 |
2024-11-18T22:37:11.395077+00:00 | 2019-02-21T13:10:43 | 987d9c88cd0627cabea88430e43496d5eb186b53 | {
"blob_id": "987d9c88cd0627cabea88430e43496d5eb186b53",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-21T13:10:43",
"content_id": "8920eb4675ddb81d8dccb0b245811af4d2f68472",
"detected_licenses": [
"MIT"
],
"directory_id": "90d8ec1a37d0005b6c83a1829c22590ed22cb512",
"extension": "c"... | stackv2 | #include<stdio.h>
int main(void)
{
int a;
printf("input a number:");
scanf("%d", &a);
return 0;
} | 2.234375 | 2 |
2024-11-18T22:37:12.282182+00:00 | 2017-06-27T12:16:57 | 20238860b756a629b6dc1711a318a3c841e93e98 | {
"blob_id": "20238860b756a629b6dc1711a318a3c841e93e98",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-27T12:16:57",
"content_id": "c591b40465320c4216e571f69e4c164f7ffeb7dd",
"detected_licenses": [
"MIT"
],
"directory_id": "a8c3f08635b78e18c310b7ac1070f2e27fa7b0ae",
"extension": "c"... | stackv2 | #include <string.h>
#include "jsmn.h"
/**
* Allocates a fresh unused token from the token pull.
*/
static jsmn_Token *jsmn_alloc_token(jsmn_Factory *factory, size_t len) {
int i;
jsmn_Token *tok;
if (factory->toknext + (len - 1) >= factory->tokslen) {
return NULL;
}
for (i = 0; i < len; ... | 2.828125 | 3 |
2024-11-18T22:37:12.345874+00:00 | 2023-01-25T20:07:48 | fdeb25c227adf4846a3e7e43045d0521b73654dd | {
"blob_id": "fdeb25c227adf4846a3e7e43045d0521b73654dd",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-25T20:07:48",
"content_id": "d22646e6192c51e734bde19b72a8ec1a646003fa",
"detected_licenses": [
"MIT"
],
"directory_id": "ebae7773b24abb35b17146b47bdbde6b369f8800",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2015, Google Inc. 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,
* including without limitation the rights to use, copy, m... | 2.0625 | 2 |
2024-11-18T22:37:12.441335+00:00 | 2017-10-03T23:56:24 | c62267a33d0aad130e2ad7c49465bea5fc341626 | {
"blob_id": "c62267a33d0aad130e2ad7c49465bea5fc341626",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-03T23:56:24",
"content_id": "7f6cc91e293a2b49feb2dcaa1259cb2773a1d261",
"detected_licenses": [
"MIT"
],
"directory_id": "d805cdb7b92ef8d9e1fcb385ac3c953b6b56af2b",
"extension": "h"... | stackv2 | /* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
#if !defined INC_PUBNUB_COREAPI
#define INC_PUBNUB_COREAPI
#include "pubnub_api_types.h"
#include <stdbool.h>
/** @file pubnub_coreapi.h
This is the "Core" API of the Pubnub client library.
It has the functions that are present in all variants... | 2.03125 | 2 |
2024-11-18T22:37:12.663151+00:00 | 2018-09-28T22:05:06 | 7dc40b905be462b6f1f4b8d522c65a03317685ba | {
"blob_id": "7dc40b905be462b6f1f4b8d522c65a03317685ba",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-28T22:05:06",
"content_id": "2e57bfa67eb44681201c3c39a780adf512d68ae6",
"detected_licenses": [
"MIT"
],
"directory_id": "39b2abd0fb1f7649e88f2bac8f7c222e31369041",
"extension": "c"... | stackv2 | /*
* Please do not edit this file.
* It was generated using rpcgen.
*/
#include "msgrpc.h"
#include <stdio.h>
#include <stdlib.h>
#include <rpc/pmap_clnt.h>
#include <string.h>
#include <memory.h>
#include <sys/socket.h>
#include <netinet/in.h>
#ifndef SIG_PF
#define SIG_PF void(*)(int)
#endif
int
main (int argc... | 2.234375 | 2 |
2024-11-18T22:37:12.743105+00:00 | 2021-05-01T20:56:23 | 3a4839b7e3af70e3bbd429125dce81202d8b49af | {
"blob_id": "3a4839b7e3af70e3bbd429125dce81202d8b49af",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-01T20:56:23",
"content_id": "e80ccb187ea2f7fe1b22c59d40e8ea332d67d44f",
"detected_licenses": [
"MIT"
],
"directory_id": "0e3c059a4e21a8a5066dba04117cb87cac61f389",
"extension": "c"... | stackv2 | // Int Expression type checking Test
// Test: return int
// Should Pass
int square(int num1) {
return num1 * num1;
}
int fatorial(int n) {
if (n > 0)
return fatorial(n-1) * n;
else
return 1;
}
float fsquare(float val) {
return val * val;
}
void doing(float f, int ik) {
return f;
}
int main () {
// Test: ... | 3.1875 | 3 |
2024-11-18T22:37:13.066494+00:00 | 2019-07-01T13:36:16 | acdcae1c98e1124b0341e9a1bf1bd814e9cd351b | {
"blob_id": "acdcae1c98e1124b0341e9a1bf1bd814e9cd351b",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-01T13:36:16",
"content_id": "1f7ddc91d8525d2057401a09116366f1266dcde8",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "d0963a1c994156d73ba2ab911cf720444c6873d1",
"extensio... | stackv2 | #include "aqo.h"
#include "optimizer/optimizer.h"
/*****************************************************************************
*
* EXTRACTING PATH INFORMATION UTILITIES
*
*****************************************************************************/
/*
* Returns list of marginal selectivities using as an argum... | 2.109375 | 2 |
2024-11-18T22:37:13.809633+00:00 | 2021-07-07T00:17:05 | 17d60db58ded027bbc48f5aec45b1e96f624866a | {
"blob_id": "17d60db58ded027bbc48f5aec45b1e96f624866a",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-07T00:17:05",
"content_id": "1b8f58729a3c843c382210f979a351dbe6512a9d",
"detected_licenses": [
"MIT"
],
"directory_id": "79d4cf83c5e566ce5eee785a7045cacf0396f439",
"extension": "c"... | stackv2 | /*
* Copyright (C) 2011 by Nelson Elhage
*
* 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, pu... | 2.03125 | 2 |
2024-11-18T22:37:14.057493+00:00 | 2021-02-01T17:27:12 | cb8be489a4eeed0ddf62424832f88960977faeda | {
"blob_id": "cb8be489a4eeed0ddf62424832f88960977faeda",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-01T17:27:12",
"content_id": "774af8432a1f379a2dff834d15fcfd62d4d957c4",
"detected_licenses": [
"MIT"
],
"directory_id": "dc4df80060e74ad8c201c92bd20970b3823cc5ec",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#ifdef DREAMCAST
#include <kos.h>
#include "AURAE/AURAE.h"
#include "AURAE/DC/DC.h"
#define PAD_R1 0x10000
#define PAD_L1 0x20000
void AURAE_Event_Update(AURAE_Event *event)
{
static int padbuf;
static int old_pad = 0;
static int new_pad;
static int end_pad;
int i;
f... | 2.390625 | 2 |
2024-11-18T22:37:14.233059+00:00 | 2017-03-12T18:51:39 | 583867221377e1b6181b578aee46f4080d900c5e | {
"blob_id": "583867221377e1b6181b578aee46f4080d900c5e",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-12T18:51:39",
"content_id": "b21b60f6ab4ef1e451060278e7dc9dde27f00321",
"detected_licenses": [
"MIT"
],
"directory_id": "4a3f9ec0a4f095c8dd62f55770e03c3c2ec22f5e",
"extension": "h"... | stackv2 |
#ifndef lcd_INCLUDED_
#define lcd_INCLUDED_
#ifdef LCD_PORT_A
#define PIO_enable RCC->AHB1ENR |= 1<<0
#define PIO_SetOutput GPIOA->ODR
#define PIO_ClearOutput GPIOA->ODR
#define PIO_CfgOutput GPIOA->MODER
#endif
#ifdef LCD_PORT_B
#define PIO_enable RCC->AHB1ENR |= 1<<1
#define... | 2.25 | 2 |
2024-11-18T22:37:14.295155+00:00 | 2017-06-24T12:14:56 | 7ba64eeac737e8a154aba205ea332eb8a5a73117 | {
"blob_id": "7ba64eeac737e8a154aba205ea332eb8a5a73117",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-24T12:14:56",
"content_id": "27c861ba63d8e882fe19c9c32d5cd66c26272816",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8865a764b0244ad2605be7547b904cc765578d5f",
"extensio... | stackv2 | #include <errno.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "token.h"
int
token_string_get(const char **src, char **string)
{
const char *beg = NULL;
const char *line_end = NULL;
const char *str_end = NULL;
char *tmp_str = NULL;
size_t tmp_str_len = 0;
if (src == N... | 2.796875 | 3 |
2024-11-18T22:37:14.370241+00:00 | 2014-01-15T19:37:03 | e7f5a5d74389dd5594c32f16559620419fdd50c0 | {
"blob_id": "e7f5a5d74389dd5594c32f16559620419fdd50c0",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-19T15:45:38",
"content_id": "aa69ee17add136ddcc4b3c49f55064e9dafba567",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ab8ef0cf7c895dc510bb9ed9540fe830563a7ed7",
"extensio... | stackv2 | /*
* 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
*... | 2.203125 | 2 |
2024-11-18T22:37:14.609778+00:00 | 2017-01-20T14:44:22 | c3b357ed96e3bb42094d3dfb401349d04bb9ce29 | {
"blob_id": "c3b357ed96e3bb42094d3dfb401349d04bb9ce29",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-20T14:44:22",
"content_id": "6193aed77849b385cad64d3aa3371cd79bb659d6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "91b6ed7f2aa7b644266f8514d5ef09b353380275",
"extens... | stackv2 | #include <stdio.h>
#include <contiki.h>
#include <contiki-net.h>
#include "dev/leds.h"
#include "letmecreate/core/common.h"
#include "letmecreate/core/debug.h"
#include "letmecreate/core/adc.h"
#include <p32xxxx.h>
PROCESS(main_process, "Main process");
AUTOSTART_PROCESSES(&main_process);
/*------------------------... | 2.140625 | 2 |
2024-11-18T22:37:16.964473+00:00 | 2016-06-18T15:57:51 | dd20909b244911028ce4cc3a33a9a521a9d6a270 | {
"blob_id": "dd20909b244911028ce4cc3a33a9a521a9d6a270",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-18T15:57:51",
"content_id": "c50913c86a5343375e2da06f6c082d348450cd6c",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "ebd36ccaf7ff6de47c733dcc9c630d4b... | stackv2 | /*
* Copyright (c) 2005-2008 Nominet UK (www.nic.uk)
* All rights reserved.
* Contributors: Ben Laurie, Rachel Willmer. The Contributors have asserted
* their moral rights under the UK Copyright Design and Patents Act 1988 to
* be recorded as the authors of this copyright work.
*
* Licensed under the Apache Lice... | 2.21875 | 2 |
2024-11-18T22:37:17.056519+00:00 | 2018-08-06T05:21:05 | e504f60caa8a38898db3799a3b1b5ca9d760185a | {
"blob_id": "e504f60caa8a38898db3799a3b1b5ca9d760185a",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-06T05:21:05",
"content_id": "280f94c74adf76ebd1ca0d3edc80bbe11e9ab022",
"detected_licenses": [
"MIT"
],
"directory_id": "410579c19899b130b7472f4f76e3cf1bf7e763d7",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#define OUT_W (13) // width of final layer
#define OUT_H (13) // height of final layer
#define N_BOXES (5) // number of anchor boxes
#define ORIG_W (416)//(768)
#define ORIG_H (416)//(576)
#define NET_W (416)
#define NET_H... | 2.21875 | 2 |
2024-11-18T22:37:17.449714+00:00 | 2019-12-21T08:34:46 | 0b561d933a167d29f41323bbd45445b22848b5b2 | {
"blob_id": "0b561d933a167d29f41323bbd45445b22848b5b2",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-21T08:34:46",
"content_id": "40140769f092b9c86359c170e56923c113667b7e",
"detected_licenses": [
"MIT"
],
"directory_id": "524d13bf9f1166ba944e9597cc0f741e4a9bb3fc",
"extension": "c"... | stackv2 | #include <types.h>
#include <err.h>
#include <sys.h>
#include <c.h>
#include <mesg.h>
#include <stdarg.h>
#include <string.h>
#include <proc0.h>
#include <log.h>
static bool setup = false;
static int log_eid;
int
log_init(char *name)
{
union proc0_req prq;
union proc0_rsp prp;
union log_req lrq;
union log_rsp lr... | 2.3125 | 2 |
2024-11-18T22:37:17.987107+00:00 | 2023-08-25T04:46:28 | f1c25c9606e922e467a216048cb331db44d6b1a6 | {
"blob_id": "f1c25c9606e922e467a216048cb331db44d6b1a6",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-25T07:17:19",
"content_id": "dcbbcf4c935d60e86ef6e11718c161f2c04c8d45",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "dc7631ad46c850ad3b491c261c2da42edffabc4e",
"extensio... | stackv2 | /* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Crota specific PWM LED settings. */
#include "charge_manager.h"
#include "charge_state.h"
#include "common.h"
#include "compile_time_macros.h"
#include "ec_commands.h... | 2.09375 | 2 |
2024-11-18T22:37:18.173455+00:00 | 2021-03-25T01:00:06 | 57b570ec2a045626bf126a622d736d8b082d3740 | {
"blob_id": "57b570ec2a045626bf126a622d736d8b082d3740",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-25T01:00:06",
"content_id": "b959340f11d0f7dc51d0180978c2703fcb684ac7",
"detected_licenses": [
"MIT"
],
"directory_id": "68bcb12c7c6aa756ccfef8867d703d98c9a9ec39",
"extension": "h"... | stackv2 | /*
* Page frame module
*
* Authors:
* - Zhang, Zhaoyi, zhaoyi, zzhang825
* - Li, Richard, richardl, tli354
*/
#ifndef PAGE_FRAME_H
#define PAGE_FRAME_H
typedef struct FPFN {
long ppn;
struct FPFN *next;
} FPFN;
typedef struct PFN {
long ppn;
unsigned long pid;
unsigned long vpn;
struct PFN *prev;
stru... | 2.203125 | 2 |
2024-11-18T22:37:18.265490+00:00 | 2020-11-09T17:59:49 | 9bc5029c39d3409fc0294cc307cb28674653ef61 | {
"blob_id": "9bc5029c39d3409fc0294cc307cb28674653ef61",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-09T17:59:49",
"content_id": "94d2d42b8797b1f0278be5899c77a3fac21a3037",
"detected_licenses": [
"MIT"
],
"directory_id": "601707badc8408b3a12c66cb7bd9175e5859a32b",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include "bitowe_2_common.h"
//wczytanie N bajtow i wypisanie ciagow bitow parzystosci
int main(void){
printf("Podaj n: ");
scanf("%d", &bytes);
clear_buff();
get_n_bytes();
print_result();
return 0;
} | 2.1875 | 2 |
2024-11-18T22:37:19.210722+00:00 | 2023-08-14T10:04:45 | a967941ec96ec8b7f638120d58bef194a82ab1ce | {
"blob_id": "a967941ec96ec8b7f638120d58bef194a82ab1ce",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-31T08:45:30",
"content_id": "4da9307d127f40f22367d4db84168789338902e9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f5f92640115787db74a3275ef5b6427f7ee03bf3",
"extension"... | stackv2 | #include <openssl/ssl.h>
#include <ossl.h>
/*
* https://github.com/google/boringssl/blob/098695591f3a2665fccef83a3732ecfc99acdcdd/src/include/openssl/ssl.h#L1698
* https://www.openssl.org/docs/man3.0/man3/i2d_SSL_SESSION.html
*/
int SSL_SESSION_to_bytes(const SSL_SESSION *in, uint8_t **out_data, size_t *out_len) {... | 2.375 | 2 |
2024-11-18T22:37:19.573503+00:00 | 2018-04-05T14:28:14 | 1f0d946ab1d39dd930a3cac89581c1bbd306d3f4 | {
"blob_id": "1f0d946ab1d39dd930a3cac89581c1bbd306d3f4",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-05T14:28:14",
"content_id": "f3a2ad9ff52854eab5ca08eae8f5d7b3f4faeedf",
"detected_licenses": [
"MIT"
],
"directory_id": "b39b0652150a981c9e08d63b78a5b8d57197601e",
"extension": "h"... | stackv2 | #ifndef __RES_CMAP_H
#define __RES_CMAP_H
void R_InitColormaps ();
void R_DeinitColormaps ();
DWORD R_ColormapNumForName(const char *name); // killough 4/4/98
void R_SetDefaultColormap (const char *name); // [RH] change normal fadetable
DWORD R_BlendForColormap (DWORD map); // [RH] return calculated blend for a col... | 2.09375 | 2 |
2024-11-18T22:37:19.652340+00:00 | 2021-08-04T05:56:47 | 2e3d550111035232b1033a2d905814c832fedaef | {
"blob_id": "2e3d550111035232b1033a2d905814c832fedaef",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-04T05:56:47",
"content_id": "6e5c9cf8f623fb44eb6b3c65e94c572bacf9cdd2",
"detected_licenses": [
"MIT"
],
"directory_id": "440c4d6af8fc5ae6939a96c393b286ae3c16aff2",
"extension": "h",
... | stackv2 | #pragma once
struct Node
{
Node(int val,Node* parent);
void CleanUp();
bool Contains(int val);
void Remove(int val);
Node* parent, * child;
int value;
};
| 2.140625 | 2 |
2024-11-18T22:37:19.858563+00:00 | 2018-05-10T03:02:21 | 848f39e04fe2486bd380879207a38dde167b2b9d | {
"blob_id": "848f39e04fe2486bd380879207a38dde167b2b9d",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-10T03:02:21",
"content_id": "1e35e0b42ade7bbfa28caf32dc49c66e628f45ce",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f0f1b6e39dc4e4ab53472ba68e36550537f95470",
"extensio... | stackv2 | /*
* ieee_status.c
*
* Copyright (C) 2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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-18T22:37:20.184793+00:00 | 2023-06-10T18:58:33 | 72339b4d5ef06de82b34aac352c69436ca2f505e | {
"blob_id": "72339b4d5ef06de82b34aac352c69436ca2f505e",
"branch_name": "refs/heads/main",
"committer_date": "2023-06-10T18:58:33",
"content_id": "c2dda6d4723ada1d2177614dade2d096a3268a11",
"detected_licenses": [
"MIT"
],
"directory_id": "9819c45475d0cd2dd4748c809e6db173c18bff37",
"extension": "c",
... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include "test_util.h"
OPTNONE int main(void) {
char *p = malloc(16);
if (!p) {
return 1;
}
size_t size = malloc_usable_size(p);
memset(p, 'a', size);
printf("overflow by %zu bytes\n", strlen(p) - size);
... | 2.515625 | 3 |
2024-11-18T22:37:21.495442+00:00 | 2018-04-20T08:08:48 | 4924d898273fd9e536a39391b6ff5c51dd97ae3a | {
"blob_id": "4924d898273fd9e536a39391b6ff5c51dd97ae3a",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-20T08:08:48",
"content_id": "9085f3c4c2ef54819cf9676d0cfa523b1bb9e20d",
"detected_licenses": [
"Unlicense"
],
"directory_id": "35fe118f7dd79c24cda201216daeeb33ef1f8eff",
"extension... | stackv2 | /*
* Routines to access hardware
*
* Copyright (c) 2015 Realtek Semiconductor Corp.
*
*/
#include "device.h"
#include "gpio_api.h" // mbed
#include "sleep_ex_api.h"
#include "diag.h"
#include "main.h"
#define GPIO_LED_PIN PC_5
#define GPIO_PUSHBT_PIN PA_5
// NOTICE: The pull condition may differn... | 2.34375 | 2 |
2024-11-18T22:37:21.616905+00:00 | 2019-07-29T13:17:53 | 490de699503c8a955dbd5512aa4c815358296b2b | {
"blob_id": "490de699503c8a955dbd5512aa4c815358296b2b",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-29T13:17:53",
"content_id": "d76cd341393cb0e346fadaa09cdc62c0fa65a2f2",
"detected_licenses": [
"MIT"
],
"directory_id": "03f6fd1f193ff4b469a49d20615834a0921794c0",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "result.h"
const char *check_result(char *answer_file_name, char *output_file_name) {
FILE *answer_file, *output_file;
answer_file = fopen(answer_file_name, "r");
output_file = fopen(output_file_name, "r");
int ans, out;
const char * res;
res = "Accepted";
whi... | 2.5 | 2 |
2024-11-18T22:48:43.844454+00:00 | 2020-03-01T23:58:30 | 72de80071757d0ded816a73262537c9f9e836dbc | {
"blob_id": "72de80071757d0ded816a73262537c9f9e836dbc",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-01T23:58:30",
"content_id": "82fd84217e1c681cba640e58863dd6c9e734550e",
"detected_licenses": [
"MIT"
],
"directory_id": "53e86f2e846b8a60fa1910b7211f4fe71c72335d",
"extension": "c"... | stackv2 | /*
* MIT License
*
* Copyright (c) 2020 Richard Healy
*
* 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, mo... | 2.21875 | 2 |
2024-11-18T22:48:43.975074+00:00 | 2021-09-01T06:41:21 | 3517ccb30b4a9e6774d63c42c0f9ad821c72cc98 | {
"blob_id": "3517ccb30b4a9e6774d63c42c0f9ad821c72cc98",
"branch_name": "refs/heads/stable",
"committer_date": "2021-09-01T06:41:21",
"content_id": "ecb9be329f9ac50ad1469c2500091c2394a0a547",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "08fcc9ebc0a70f545cbc149385dfb9a4670eada8",
"extensio... | stackv2 | #include <stdint.h>
#include <stdio.h>
#include <sys/eventfd.h>
#include <unistd.h>
#include "debug.h"
#include "seccomp.h"
int seccomp_event_create(void) {
int fd = eventfd(0, 0);
if (fd < 0) { FATAL("seccomp_event_create"); }
return fd;
}
void seccomp_event_signal(int fd) {
uint64_t val = 1;
if (writ... | 2.1875 | 2 |
2024-11-18T22:48:44.493578+00:00 | 2021-05-24T17:35:45 | 0f23288cdcb33a8bc1c5c83c34d30f1cf01f2967 | {
"blob_id": "0f23288cdcb33a8bc1c5c83c34d30f1cf01f2967",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-24T17:58:59",
"content_id": "8fa417909e1bf0314bfa10a092a2b0c1e98c4763",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "92db49455a00932bffe466a7d38b6083b44a9e70",
"extensio... | stackv2 | /*
* Copyright 2019 Shannon F. Stewman
*
* See LICENCE for the full copyright terms.
*/
#ifndef ADT_MAPPINGHASHSET_H
#define ADT_MAPPINGHASHSET_H
struct fsm_alloc;
struct mapping_hashset;
struct mapping;
struct mapping_hashset_iter {
struct hashset_iter iter;
};
struct mapping_hashset *
mapping_hashset_create(... | 2.125 | 2 |
2024-11-18T22:48:44.555379+00:00 | 2022-06-17T00:03:09 | 3c27104a78ef635497b8553cec8d42d2b3608bda | {
"blob_id": "3c27104a78ef635497b8553cec8d42d2b3608bda",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-17T00:03:09",
"content_id": "5f5c4bcabfa23cc71032c7c814ac54d0cf19ea4a",
"detected_licenses": [
"MIT"
],
"directory_id": "4e5d99196144f58b17093f86a3bc15527d9662b9",
"extension": "h"... | stackv2 | /**
* esp32_manager_storage.h
*
* (C) 2019 - Pablo Bacho <pablo@pablobacho.com>
* This code is licensed under the MIT License.
*/
#ifndef _ESP32_MANAGER_STORAGE_H_
#define _ESP32_MANAGER_STORAGE_H_
#include <string.h>
#include <math.h>
#include "esp_system.h"
#include "esp_err.h"
#include "esp_log.h"
#include "... | 2.53125 | 3 |
2024-11-18T22:48:44.622605+00:00 | 2017-07-31T18:55:31 | 9e208898cf956ee8f85933cd67f591eeda5aa11a | {
"blob_id": "9e208898cf956ee8f85933cd67f591eeda5aa11a",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-31T19:00:09",
"content_id": "f25d64142fb18d6ee8b8a2a5efdc50f74a80009f",
"detected_licenses": [
"MIT"
],
"directory_id": "891db9d12d5955ae37ae52ba732a26160af40aef",
"extension": "h"... | stackv2 | /**
* @file i2c.h
* @author Violet - Initial version
* @author RedoX <dev@redox.ws> - 2015 - GCC Port, cleanup
* @date 2015/09/07
* @brief Manage the I2C low-level access
*/
#ifndef _I2C_H_
#define _I2C_H_
/* I2C Slave address */
#define CRX14_ADDR 0xA0
/* CRX14 settings */
#define I2C_WRITE_INSTR 0x00
#defin... | 2.015625 | 2 |
2024-11-18T22:48:46.776535+00:00 | 2023-07-05T10:51:08 | e6f9bc7a51eded310075b6fdd3c07cf6dbda730e | {
"blob_id": "e6f9bc7a51eded310075b6fdd3c07cf6dbda730e",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-05T10:51:08",
"content_id": "c82cb25596738f6d98aabf48e5a1c918fadf9754",
"detected_licenses": [
"ISC"
],
"directory_id": "9fee59f5f36ba5f4c5bbdc79cc1316935e9bcce2",
"extension": "c"... | stackv2 | #include <time.h>
#include <sys/time.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
// https://github.com/btorpey/clocks/blob/master/clocks.c
// http://repnop.org/carte/snippets/time.c
int main(int argc, char** argv)
{
printf("%25s\t%15s\t%15s\t%15s\n", "clock", "res (ns)", "secs", "nsecs");
stru... | 2.5625 | 3 |
2024-11-18T22:48:46.973410+00:00 | 2017-10-02T07:13:13 | 89f652c20750f75d0b3e813e6ce230f72233ba7c | {
"blob_id": "89f652c20750f75d0b3e813e6ce230f72233ba7c",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-02T07:13:13",
"content_id": "a02bd5f11a6d91979fddf5aa5bcf307e9d1180d1",
"detected_licenses": [
"MIT"
],
"directory_id": "8e5b38ca2bc2155951c55cde9998d2a83f45d890",
"extension": "c"... | stackv2 | /* SumaVectores.c
Suma de dos vectores:
v3 = v1 + v2
Para compilar usar (-lrt: real time library):
gcc -O2 SumaVectores.c -o SumaVectores –lrt
gcc -O2 –S SumaVectores.c –lrt //para generar el código ensamblador
Para ejecutar use: SumaVectoresC longitud
*/
#include <stdlib.h>
#include<stdio.h>
#inclu... | 3.109375 | 3 |
2024-11-18T22:48:47.791373+00:00 | 2012-09-07T23:03:42 | af27125c02380725ed684c3e7cfc52f412f32302 | {
"blob_id": "af27125c02380725ed684c3e7cfc52f412f32302",
"branch_name": "refs/heads/master",
"committer_date": "2012-09-07T23:03:42",
"content_id": "c444e0abe9a52509655c59be9708eb15dffc3b06",
"detected_licenses": [
"MIT"
],
"directory_id": "6b811c4e0a846b51ed80ac388b32aec209af2684",
"extension": "h"... | stackv2 | /*
* Copyright (C) 2012
* Dale Weiler
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, pub... | 2.03125 | 2 |
2024-11-18T22:48:48.305380+00:00 | 2016-09-05T09:16:49 | 4113f21f573fb6856a44e49bf9e8fb193fc752c0 | {
"blob_id": "4113f21f573fb6856a44e49bf9e8fb193fc752c0",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-05T09:16:49",
"content_id": "e0a6fb7ea93e12e4e77a694b6375dd886b2e5cf6",
"detected_licenses": [
"MIT"
],
"directory_id": "6c5dad393ddabae535d69f3292df1422a9e03804",
"extension": "h"... | stackv2 | /*
* ESP8266_Data_Types.h
*
* Created on: Mar 31, 2016
* Author: Jacob
*/
#ifndef ESP8266_DATA_TYPES_H_
#define ESP8266_DATA_TYPES_H_
#ifndef uint8_t
#include <stdint.h>
#endif
// Received Data Types ("1:PUMP:ZONE:ROOM:AUTOTEMP:HASH")
typedef struct
{
uint8_t command_int;
uint16_t pump_value;
uint8_t ... | 2.046875 | 2 |
2024-11-18T22:48:49.820654+00:00 | 2020-03-19T16:15:58 | cae7feed71e4776f4697e37e3142f923f6e43522 | {
"blob_id": "cae7feed71e4776f4697e37e3142f923f6e43522",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-19T16:15:58",
"content_id": "fe63ff9a483c2fa2431c4349eaa20040a9915cc3",
"detected_licenses": [
"MIT"
],
"directory_id": "f42c4fb8a135b11c6c83a10a166aa43b80739940",
"extension": "c"... | stackv2 | #include "holberton.h"
/**
* itoaa - is the function to convert int to string
* @arguments: is the list of the arguments the printf recive
* @buffer: where all the input save her
* @position: is the size of the input
* Return: the pointer with the size of the printf
*/
int itoaa(va_list arguments, char *buffer, ... | 3.25 | 3 |
2024-11-18T22:48:49.928947+00:00 | 2021-10-10T14:09:42 | 24335a3f929a9909610a1f0ddb86151a80e4f679 | {
"blob_id": "24335a3f929a9909610a1f0ddb86151a80e4f679",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-10T14:09:42",
"content_id": "0e2650f5a7ae2ec217ec035ae833ac7231e067cb",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "c7f753dc8a3c9eb2258afacf7061d3cf0352be52",
"extension":... | stackv2 | #ifndef INTERPRETER_GLASS_VALUE_H
#define INTERPRETER_GLASS_VALUE_H
#include "interpreter/glass-instance.h"
#include <stdio.h>
struct CopyInterface;
struct String;
typedef enum ValueType {
VALUE_FUNCTION,
VALUE_INSTANCE,
VALUE_INPUT_FILE,
VALUE_NAME,
VALUE_NUMBER,
VALUE_OUTPUT_FILE,
VALU... | 2.171875 | 2 |
2024-11-18T22:48:50.247913+00:00 | 2015-04-30T10:20:32 | de4157600a59cd68e820f2f963169e2e0b6118a2 | {
"blob_id": "de4157600a59cd68e820f2f963169e2e0b6118a2",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-30T10:20:32",
"content_id": "9aef1ae8c0e47b3c997add52e079c9521fe4346e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "678b454f4767b18f0fc1dd6b7e8f7ea2bc02b242",
"extensio... | stackv2 | #include <stdio.h>
main () {
int i = 0;
char nome_completo[30], nome[16];
printf("Entre com um nome (\"nome sobrenome\"): ");
gets(nome_completo);
while ((nome_completo[i] != ' ') && (nome_completo[i] != '\0')) {
nome[i] = nome_completo[i];
i++;
}
nome[i] = '\0';
pri... | 3.296875 | 3 |
2024-11-18T22:48:50.846652+00:00 | 2022-08-05T01:10:03 | ef3d83c398a15312b18ad547f894a593c45f191a | {
"blob_id": "ef3d83c398a15312b18ad547f894a593c45f191a",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-05T01:10:03",
"content_id": "bef2420dbe4d2bdb3807c6e3069825948c5c81f9",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "d6dc6cefbfb71203ffcd7a76512515ff24ba5937",
"extens... | stackv2 | #include <sys/cdefs.h>
#include <sys/queue.h>
#include <sys/wait.h>
#include <arpa/inet.h>
#include <assert.h>
#include <err.h>
#include <event.h>
#include <fcntl.h>
#include <grp.h>
#include <paths.h>
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>... | 2.1875 | 2 |
2024-11-18T22:48:50.938159+00:00 | 2019-02-08T08:14:52 | 0e5b7c4293b1b55af622b75a72c211341197936b | {
"blob_id": "0e5b7c4293b1b55af622b75a72c211341197936b",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-08T08:14:52",
"content_id": "e269b3e09bc4fff3f1b341baa940de00769fc9f2",
"detected_licenses": [
"MIT"
],
"directory_id": "a0898b7660de1a697706619f2e105adb4994b5ff",
"extension": "h"... | stackv2 | /*
* PbgProcID.h : プロシージャ定数の定義
*
*/
#ifndef PBGPROCID_INCLUDED
#define PBGPROCID_INCLUDED "プロシージャ定数の定義 : Version 0.01 : Update 2001/06/12"
/* [更新履歴]
* Version 0.01 : 2001/06/12 : 制作開始
*/
#include "PbgType.h"
/***** [ 定数 ] *****/
typedef enum tagPBG_PROCID {
PBGPROC_OK = 0x0000, // 正常終了
PBGPR... | 2.125 | 2 |
2024-11-18T22:48:51.344410+00:00 | 2023-07-31T07:24:56 | f68a6d2c8b2233fe761e2035ca8f745d29a1e27f | {
"blob_id": "f68a6d2c8b2233fe761e2035ca8f745d29a1e27f",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-31T07:24:56",
"content_id": "0a42cc84c0e4fc02c5350a86d863da6300fd605f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d77abc372ef9104cb1db80347523713c75c6b194",
"extensio... | stackv2 | /**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Monitor the conversion result of channel 2 by the digital compare function.
*
* @copyright (C) 2017 Nuvoton Technology Corp. All rights reserved.
***************************************... | 2.09375 | 2 |
2024-11-18T22:48:51.473063+00:00 | 2018-05-05T16:20:49 | 6660995a851be6f25cd5ec3eca62c2f02c08e75f | {
"blob_id": "6660995a851be6f25cd5ec3eca62c2f02c08e75f",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-05T16:20:49",
"content_id": "faf809e0473f82712d6a7bebcf1c9440e4ad7f72",
"detected_licenses": [
"MIT",
"NCSA",
"BSD-3-Clause"
],
"directory_id": "9a57b6283a7d8357a2ed46e0f69e2... | stackv2 | /* Capstone Disassembly Engine */
/* By Nguyen Anh Quynh, 2018 */
#ifdef CAPSTONE_HAS_ARM
#include "../../cs_priv.h"
#include "EVMDisassembler.h"
#include "EVMInstPrinter.h"
#include "EVMMapping.h"
static cs_err init(cs_struct *ud)
{
// verify if requested mode is valid
if (ud->mode)
return CS_ERR_MODE;
ud->pr... | 2.21875 | 2 |
2024-11-18T22:48:51.568573+00:00 | 2015-03-05T14:12:50 | 955005bb7aa1b19c7fb71e64bac2399a4eb91088 | {
"blob_id": "955005bb7aa1b19c7fb71e64bac2399a4eb91088",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-05T14:12:50",
"content_id": "6a95b70beedfad4309e310fde3a27301843add2c",
"detected_licenses": [
"MIT"
],
"directory_id": "253887e47968a529fabab518b44fecfa8854a048",
"extension": "h"... | stackv2 | #ifndef _SEP_VM_H
#define _SEP_VM_H
/*****************************************************************
**
** runtime/vm.h
**
** Virtual machine structures.
**
***************
** September **
*****************************************************************/
// ================================================... | 2.328125 | 2 |
2024-11-18T22:48:54.631011+00:00 | 2020-04-06T03:01:34 | 8453c7f415e7f12176713ee798fc462e9b9426a5 | {
"blob_id": "8453c7f415e7f12176713ee798fc462e9b9426a5",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-06T03:01:34",
"content_id": "115abdd3eed31d8ab8e851623ee213f4bbfb5324",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e7c6f77ede337fee8f2af1d77e2bbf24627d2ec7",
"extensio... | stackv2 | /*
* Copyright 2019 Aaron Barany
*
* 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... | 2.046875 | 2 |
2024-11-18T22:48:54.707119+00:00 | 2020-11-28T17:28:44 | 0c107fd65a37e7ba71ee2cafc0ef6c824a251ad6 | {
"blob_id": "0c107fd65a37e7ba71ee2cafc0ef6c824a251ad6",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-28T17:28:44",
"content_id": "a827aab768c36fd07c044ba9218ff1db8e5f29de",
"detected_licenses": [
"MIT"
],
"directory_id": "a463bb0ae143987991f5fc267062265c581bff99",
"extension": "c",
... | stackv2 |
/*
* QuickJS libuv bindings
*
* Copyright (c) 2019-present Saúl Ibarra Corretgé <s@saghul.net>
*
* 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... | 2.03125 | 2 |
2024-11-18T22:48:54.930327+00:00 | 2019-04-18T11:01:15 | 1e890944ed5d1187bf4e203104d9edce5ddc3e26 | {
"blob_id": "1e890944ed5d1187bf4e203104d9edce5ddc3e26",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-18T11:01:15",
"content_id": "f6b02d5d788a13fb962a2edb666a2227de4bd0b3",
"detected_licenses": [
"MIT"
],
"directory_id": "be8464c4adc5da946660a8345a1adebf74f87f08",
"extension": "c"... | stackv2 | #include "types.h"
#include "stat.h"
#include "user.h"
#define TEST_CHILD_NAME "p2_print_repeat"
#define TEST_CHILD_PRINTER 0
#define TEST_CHILD_SLEEPER 1
char* argv[][7] = {
{TEST_CHILD_NAME, "printer", "2000000", "400000", "0", "0" , 0},
{TEST_CHILD_NAME, "sleeper", "4000000", "400000", "400000", "1",... | 2.59375 | 3 |
2024-11-18T22:48:55.349992+00:00 | 2023-08-22T19:34:56 | 759e7238ee36e256d58b22a60f18aacc516a32d0 | {
"blob_id": "759e7238ee36e256d58b22a60f18aacc516a32d0",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-22T19:34:56",
"content_id": "ebc05b45d0043a2392c0c757b04d85997a7408c3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0aa9dcb3cef817ec55eaa8fae2102106f939f594",
"extensio... | stackv2 | /* ptmacosx.c -- portable timer implementation for mac os x */
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <CoreFoundation/CoreFoundation.h>
#import <mach/mach.h>
#import <mach/mach_error.h>
#import <mach/mach_time.h>
#import <mach/clock.h>
#include "porttime.h"
#define THREAD_IMPORTANCE 30... | 2.640625 | 3 |
2024-11-18T22:48:55.528196+00:00 | 2020-05-16T06:11:21 | 32fce3df889f0f27f4b45cc440acb4ed4f626711 | {
"blob_id": "32fce3df889f0f27f4b45cc440acb4ed4f626711",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-16T06:11:21",
"content_id": "a35f191909f0b6281614e35363bb73911f583b89",
"detected_licenses": [
"MIT"
],
"directory_id": "4a56b1d78920d5fda438e688d4ed7a1b01f66a02",
"extension": "c"... | stackv2 | #include "../luacef.h"
typedef struct luacef_resource_bundle_handler {
cef_base_t base;
int (CEF_CALLBACK *get_localized_string)(
struct luacef_resource_bundle_handler* self,
int string_id,
cef_string_t* string);
int (CEF_CALLBACK *get_data_resource)(
struct luacef_resource_bundle_handler*... | 2.125 | 2 |
2024-11-18T22:48:55.617751+00:00 | 2020-05-02T20:53:15 | 92d6f3aa04c35dcf1b52428a538e244f5c42d290 | {
"blob_id": "92d6f3aa04c35dcf1b52428a538e244f5c42d290",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-02T20:53:15",
"content_id": "9f88766a130b368db70a56e41a0e41bfd531ea2e",
"detected_licenses": [
"MIT"
],
"directory_id": "b03da9219d0b9045610e9a975ee139fdc953d268",
"extension": "h"... | stackv2 | #ifndef SAS_INTERNAL_SESSION_H
#define SAS_INTERNAL_SESSION_H
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <rxc/rxc.h>
#include <rxc/logic.h>
#include <sas/chunk.h>
#include <sas/transport.h>
#include <sas/server.h>
/**
* A client that is connected to the s... | 2.28125 | 2 |
2024-11-18T22:48:55.815541+00:00 | 2016-11-02T22:02:08 | aef4335344a7a387432d482d01edfa740fba0807 | {
"blob_id": "aef4335344a7a387432d482d01edfa740fba0807",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-02T22:02:08",
"content_id": "7aa2c1e030e0c4f206427cbc29c16fb4ee9a26d3",
"detected_licenses": [
"MIT"
],
"directory_id": "e3985e53eb5d63cb13a0758aa99ac099eaa6b9f5",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "global_memory.h"
#include "file_io.h"
//
void generate_results_table(
const fitness_function_s fitness_function,
population_ref * const population )
{
if( (*population) == NULL )
{
fprintf( stderr, "bad parameter... | 2.453125 | 2 |
2024-11-18T22:48:55.972478+00:00 | 2023-08-30T18:12:56 | f766ce6ac0af67850883b42f21b8d6c1ac5e516d | {
"blob_id": "f766ce6ac0af67850883b42f21b8d6c1ac5e516d",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T18:12:56",
"content_id": "c0b1a70534146bd72cd8fe6a134c83e91e60ab71",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "6e1cde66aa5a649138babe297293962cdf97743e",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "tai.h"
#include "leapsecs.h"
#include "caltime.h"
char line[100];
char *dayname[7] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" } ;
char out[101];
char x[TAI_PACK];
int
main(int argc, char **argv)
{
struct tai t;
struct tai t2;
struct c... | 2.3125 | 2 |
2024-11-18T22:48:56.177837+00:00 | 2020-02-27T17:14:29 | 8ce311bb11a225c9a198c23f0d6a955b09a8ff9e | {
"blob_id": "8ce311bb11a225c9a198c23f0d6a955b09a8ff9e",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-27T17:14:29",
"content_id": "e956662eaf963d33db68d377301ec6316bac336f",
"detected_licenses": [
"MIT"
],
"directory_id": "3237c5ea86182754f6aee48a71b2f068b8057c52",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
struct node {
int value;
struct node* next;
};
typedef struct node node;
void display_list(node* head) {
if (head == NULL) return;
printf("%i -> ", head->value);
display_list(head->next);
printf("\n");
}
node* insert_top(node* head, int value) {
... | 3.890625 | 4 |
2024-11-18T22:48:56.347643+00:00 | 2017-10-15T13:03:00 | f33ae532ec5957801e6ef087bd93f0a765abb094 | {
"blob_id": "f33ae532ec5957801e6ef087bd93f0a765abb094",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-15T13:03:00",
"content_id": "e190c1b623abe65cf236cf406cbc0f60b66805d9",
"detected_licenses": [
"MIT"
],
"directory_id": "052ff37164adc62a51f6bdabfdce2162d10fe9bb",
"extension": "h"... | stackv2 | //
// UtilsMacros.h
// TodayNews
//
// Created by Lawrence on 2017/6/21.
// Copyright © 2017年 Lawrence. All rights reserved.
//
#ifndef UtilsMacros_h
#define UtilsMacros_h
//******************发布版本不输出调试信息********************
#ifdef DEBUG
#define NSLog(...) NSLog(__VA_ARGS__)
#define WJLog(foramt, ...) NSLo... | 2.0625 | 2 |
2024-11-18T22:48:56.433128+00:00 | 2014-07-02T16:57:49 | 7ceaa966398feafaeecd176635c49fdfb75d0732 | {
"blob_id": "7ceaa966398feafaeecd176635c49fdfb75d0732",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-02T16:57:49",
"content_id": "3acb41fd90141749befa12705c37baa52f8e9c80",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4bf023a48ab9c037c46985918d9f1b387d0126f7",
"extens... | stackv2 | /*
* =====================================================================================
* Copyright (C) 2014 jianfeng sha
*
* Filename: ngx_security_phase.c
*
* Description:
*
* Created: 05/27/14 16:30:15
*
* Author: jianfeng sha , csp001314@163.com
*
* =====================... | 2.140625 | 2 |
2024-11-18T22:48:57.075408+00:00 | 2021-08-06T17:21:01 | 5e698f006f32cc2d30fe49183d73fe69522686b8 | {
"blob_id": "5e698f006f32cc2d30fe49183d73fe69522686b8",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-06T17:21:01",
"content_id": "9d688eddebe9ba08730ba22e1644207cfdf1b359",
"detected_licenses": [
"MIT"
],
"directory_id": "fa89b9d6192facde3991d6f8f2eab168b1e35fcb",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include "calc.h"
#define MAXVAL 100
int sp = 0;
double val[MAXVAL];
/* the following code implement a stack in C
a stack is a data structure that stores elements
following the last in, first out directive (LIFO)
meaning that the last element pushed in the stack
will be the first on... | 3.5625 | 4 |
2024-11-18T22:48:57.560839+00:00 | 2023-08-28T21:30:11 | a32dbdeaee26cffc1b07483b6939b766b8a55f83 | {
"blob_id": "a32dbdeaee26cffc1b07483b6939b766b8a55f83",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T21:30:11",
"content_id": "16d6dbbbae8396f270df0c37510cba398bcd0f70",
"detected_licenses": [
"MIT"
],
"directory_id": "aed47b5a4ea3af5cbacfc034c1565bd800e9461a",
"extension": "c"... | stackv2 | /*
* mean.c
*
* Created on: 26 juni 2021
* Author: Daniel Mårtensson
*/
#include "../../Headers/functions.h"
/*
* Compute the mean of vector x
* x[L] Vector with values
* L = Length of vector x
*/
float mean(float x[], size_t length) {
float s = 0.0f;
size_t i;
for (i = 0; i < length; i++) {
s += ... | 2.875 | 3 |
2024-11-18T22:48:58.174706+00:00 | 2017-03-26T23:25:57 | fafe73ac9a105806ca598b866db4904554706361 | {
"blob_id": "fafe73ac9a105806ca598b866db4904554706361",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-26T23:25:57",
"content_id": "afd54046a204a06510d9e305795df2559c266b8f",
"detected_licenses": [
"Zlib"
],
"directory_id": "1c4d3b5a11137f750f07851a772c490a22b2cb0c",
"extension": "c... | stackv2 | /**
* @file include/GFraMe/gfmQuadtree.h
*
* Interactive quadtree implementation to be used for collision detection; After
* initializing the root node (through a gfmQuadtree_initRoot call), there are
* two ways to add more nodes: using gfmQuadtree_collide* and
* gfmQuadtree_populate*;
* - The functions gfmQu... | 2.46875 | 2 |
2024-11-18T22:48:58.536426+00:00 | 2020-02-02T10:25:02 | 38b61af1b0b92e432e8e33e5ca870e9637209cea | {
"blob_id": "38b61af1b0b92e432e8e33e5ca870e9637209cea",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-02T10:25:02",
"content_id": "39e4ed87030e94b7e2b827493ec75b1d9cfb01f4",
"detected_licenses": [
"MIT"
],
"directory_id": "fac1cedd69a722601c3c6f610b9d9deb3944c7ad",
"extension": "c"... | stackv2 | #define _DEFAULT_SOURCE
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <inttypes.h>
#include "traildb.h"
#include "tdb_profile.h"
#define REPORT_ERROR(fmt, ...) \
do { \
fprintf(stderr, (fmt), ##__VA_ARGS__); \
} while(0)
#define REPORT_WARNING(fmt, ...) \
do {... | 2.375 | 2 |
2024-11-18T22:48:58.719043+00:00 | 2023-07-15T08:46:45 | 7b1755c33840318b6e6c1d2a7defbd4c695f93df | {
"blob_id": "7b1755c33840318b6e6c1d2a7defbd4c695f93df",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-15T08:46:45",
"content_id": "202f8a803557c2cfb6dce8ba636f86dbdfb69768",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1098cc6b43f4be758d52d45ceb7a0adb82807abc",
"extensio... | stackv2 | /*
(C) 2009-2023, Kees Verruijt, Harlingen, The Netherlands.
This file is part of CANboat.
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 r... | 2.234375 | 2 |
2024-11-18T22:49:00.495975+00:00 | 2021-01-20T07:35:01 | 0b15130f0d496e9ae1b357e9bd948456f7b3b0e2 | {
"blob_id": "0b15130f0d496e9ae1b357e9bd948456f7b3b0e2",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-20T07:35:01",
"content_id": "0d80fd98f8147bada75294ab87b2bcb827ece123",
"detected_licenses": [
"MIT"
],
"directory_id": "158b07cf07dbfef7050839e67f0d39f7b3a61583",
"extension": "c"... | stackv2 | #include "private_api.h"
/** Parse callback that adds type to type identifier for ecs_new_type */
static
int parse_type_action(
ecs_world_t *world,
const char *name,
const char *sig,
int64_t column,
ecs_sig_from_kind_t from_kind,
ecs_sig_oper_kind_t oper_kind,
ecs_sig_inout_kind_t inout_kin... | 2.28125 | 2 |
2024-11-18T22:49:00.946023+00:00 | 2013-08-20T06:09:22 | 161b623282576ab1791adb894b747212103170d8 | {
"blob_id": "161b623282576ab1791adb894b747212103170d8",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-20T06:09:22",
"content_id": "da03fd50af6c8b8ec69aaf797661651a290eb86e",
"detected_licenses": [
"MIT"
],
"directory_id": "b88e5d0a2e374cdfe33a58d9923facf551822810",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
typedef struct list {
int data;
struct list *next;
}list;
list *init(int *, int);
void print(list *);
list *getnode(void);
void getN(list *, int *);
void printN(list *, int);
main()
{
int n = 10, position = 3;
int test[] = {3,2,1,3,5,6,2,6,3,1};
list *first = init(test, n)... | 3.34375 | 3 |
2024-11-18T22:49:01.181514+00:00 | 2018-11-13T02:25:04 | 0ced613484bf2cd43279d35875b9e52d88533edb | {
"blob_id": "0ced613484bf2cd43279d35875b9e52d88533edb",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-13T02:25:04",
"content_id": "4106c27e78189634ed55ea7e95a9e1fcf91d60fa",
"detected_licenses": [
"MIT"
],
"directory_id": "b2c3b6b6ed2c5330bc6b24125bf92ae58cad74b7",
"extension": "c"... | stackv2 | /*
* File: gdt.c
*
* Copyright (c) 2017-2018 Sydney Erickson, John Davis
*
* 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.28125 | 2 |
2024-11-18T22:49:01.337017+00:00 | 2020-10-06T17:53:29 | 670e805a6cb420de00a897e5aff0d4201dde66ef | {
"blob_id": "670e805a6cb420de00a897e5aff0d4201dde66ef",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-06T17:53:29",
"content_id": "999b66212cff67b579d20ba666e0a92d6e4e77b2",
"detected_licenses": [
"MIT"
],
"directory_id": "5b6f62d9e383041e7f6f07067b8584417f8f04d1",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
struct l{
int cod;
int quantidade;
char descricao[50];
float valorunit;
};
typedef struct l tp_lista;
int main(){
tp_lista *compras;
int i, qtd, fim;
qtd = 2;
if ((malloc(qtd * sizeof(tp_lista)) == NULL)){
printf("\nSem espaco de memoria\n");
exit(1);
}
... | 3.265625 | 3 |
2024-11-18T22:49:04.231071+00:00 | 2018-09-10T17:44:43 | 4583d172ea3afc115e1f5565cee9df7b51fa298b | {
"blob_id": "4583d172ea3afc115e1f5565cee9df7b51fa298b",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-10T17:44:43",
"content_id": "c54f78d0a7c34df687a8ef3caa7fe7eb6fdacdb8",
"detected_licenses": [
"MIT"
],
"directory_id": "cd4fac45db93d1ab0d2892cb0b81cdb2455c2053",
"extension": "h"... | stackv2 | /* See LICENSE for license details. */
/*
Module: bfst_body.h
Description:
Management of global modules and dispatching of events to views and ttys.
*/
#include "bfst_ctxt.h"
#include "bfst_opts.h"
#include "bfst_display.h"
#include "bfst_font.h"
#include "bfst_font_list.h"
#include "bfst_color.h"
#incl... | 2 | 2 |
2024-11-18T22:49:05.188594+00:00 | 2019-08-28T23:51:07 | 159a6ab556c5cb5a1a5eb40094aa4adb2b78107e | {
"blob_id": "159a6ab556c5cb5a1a5eb40094aa4adb2b78107e",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-28T23:51:07",
"content_id": "44fdee9b530c357359c1181a3f31630fd32dce64",
"detected_licenses": [
"MIT"
],
"directory_id": "cf8a6c37f71ce5edc59ad6c312802a7c13e0a73f",
"extension": "h"... | stackv2 | /******************************************************************************
Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd.
******************************************************************************
File Name : hi_types.h
Version : Initial Draft
Author : Hisilicon multimedia software group... | 2 | 2 |
2024-11-18T22:49:05.588834+00:00 | 2019-12-07T19:04:27 | 1baef2b4b545b1f398591ef770be227a78d3ef83 | {
"blob_id": "1baef2b4b545b1f398591ef770be227a78d3ef83",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-07T19:04:27",
"content_id": "5243a84658632c9faef8cdb0005fa9460cbdfd88",
"detected_licenses": [
"MIT"
],
"directory_id": "27ca196c9f0769b36a7e70c2d93ab9d138f6ddb0",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2007 - 2015 Joseph Gaeddert
*
* 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, mer... | 2.125 | 2 |
2024-11-18T22:49:05.672034+00:00 | 2018-01-23T23:54:32 | da05592036f1453fa8e4275102d96c4a539d0bef | {
"blob_id": "da05592036f1453fa8e4275102d96c4a539d0bef",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-23T23:54:32",
"content_id": "5d00c1e3868a38a74bc660b3007c348799c79d2c",
"detected_licenses": [
"MIT"
],
"directory_id": "77a220d181cddcdde98b1be4327d87147bed2acb",
"extension": "c"... | stackv2 | #include "psu_dsm.h"
#include <stdlib.h>
#include <time.h>
int
main (int argc, char *argv[])
{
srand(time(NULL));
psu_dsm_init();
// char host[16];
// strncpy(host, get_local_ip_addr(), 16);
// char host1[16];
// strncpy(host1, "130.203.16.29", 16);
psu_dsm_ptr_t ptr;
/* if(strncmp(host, host1, 16) == 0){
print... | 2.53125 | 3 |
2024-11-18T22:49:05.900252+00:00 | 2016-01-12T01:01:29 | 78e1798737e6fb17d19e9ea761b1d4f189b4e882 | {
"blob_id": "78e1798737e6fb17d19e9ea761b1d4f189b4e882",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-12T01:01:29",
"content_id": "b53bc66d566ec16c480dbf28f9307e60bfdb92e8",
"detected_licenses": [
"MIT"
],
"directory_id": "25ef7e034d84344a18515d42e6498a1ba92ad352",
"extension": "h"... | stackv2 | extern int debug_flag;
/* This syslog() macro normally calls the real syslog() function, unless
* debug_flag is on, in which case it does fprintf to stderr. It relies on
* the variable argument count feature of C99 macros. Unfortunately, C99 does
* not allow you to use 0 variable args, so where you would normally... | 2.984375 | 3 |
2024-11-18T22:49:06.369728+00:00 | 2016-02-19T14:46:17 | 921a67411065a8129d466a30649dab96cbbc60d4 | {
"blob_id": "921a67411065a8129d466a30649dab96cbbc60d4",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-19T14:46:17",
"content_id": "f34a0c34ed9660f276e4c2c3a3b5366a91a0886d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "05003480912b9e829bde4d5f2bd0e3692ba26bba",
"extensio... | stackv2 | /*
* Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 2.15625 | 2 |
2024-11-18T22:49:13.462883+00:00 | 2019-03-04T17:08:45 | e3e258995758758d50747641803699becb990f20 | {
"blob_id": "e3e258995758758d50747641803699becb990f20",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-04T17:08:45",
"content_id": "4b4a8e1fd72b2f34bc163968629b1f6532f05344",
"detected_licenses": [
"MIT"
],
"directory_id": "2f21b49a83ddc42eaef7967c97689a8edfccfd75",
"extension": "c"... | stackv2 | #include <bert/decoder.h>
#include <bert/errno.h>
#include "test.h"
#include <sys/types.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
bert_decoder_t *decoder;
void test_read()
{
bert_data_t *data;
int result;
if ((result = bert_decoder_pull(decoder,&data)) != 1)
{
test_fail(bert_strerror(result... | 2.40625 | 2 |
2024-11-18T22:49:13.688884+00:00 | 2021-05-22T23:01:23 | 2349217c32e1c470bb62b7c011e30a3fca950aae | {
"blob_id": "2349217c32e1c470bb62b7c011e30a3fca950aae",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-22T23:01:23",
"content_id": "c9b0a2f59bc0250d688f3c2fda1c4824a4ccf616",
"detected_licenses": [
"MIT"
],
"directory_id": "4bc6057868d8f11328e3d65bf50540b91cd73a10",
"extension": "c",
... | stackv2 | /* That's all you need, include before everything in your program */
#include "garbage_collector.h"
/* -------------------------------------------------------------- */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void){
char* str;
str = (char*)calloc(1,14);
strcpy(str, "Hello World!\n");
... | 2.984375 | 3 |
2024-11-18T22:49:13.775892+00:00 | 2015-09-24T16:08:53 | fecb9ebc01df80e045efcb92864f8424841de59d | {
"blob_id": "fecb9ebc01df80e045efcb92864f8424841de59d",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-24T16:08:53",
"content_id": "7147e49efca188ddf0758239ad56d576a4bfb39e",
"detected_licenses": [
"MIT"
],
"directory_id": "b48b0ec21c37b7feb9415af8b6319edb6806a81b",
"extension": "c"... | stackv2 | /* config.h
*
* Copyright (c) 2015, LinhNV <nvl1109 at gmail dot com>
* All rights reserved.
*
*/
#include "ets_sys.h"
#include "os_type.h"
#include "mem.h"
#include "osapi.h"
#include "user_interface.h"
#include "gpio_mod.h"
#include "config.h"
#include "debug.h"
static uint32_t gpio_no_pins[NUMBER_OF_GPIO_PIN] = {
... | 2.296875 | 2 |
2024-11-18T22:49:14.019575+00:00 | 2022-08-23T07:49:02 | 16cf5f5d7fd2584dab7ffa90ace8b57eac3aa122 | {
"blob_id": "16cf5f5d7fd2584dab7ffa90ace8b57eac3aa122",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-23T07:49:02",
"content_id": "c6a0bd199f2e895694de4054275e29cdaf71cfef",
"detected_licenses": [
"MIT"
],
"directory_id": "55c5c8bd6bc8ac09f255921e053f058d33ca6201",
"extension": "c"... | stackv2 | /*
* (C)opyright 2006 Nico Golde <nico@ngolde.de>
* (C)opyright 2006 Andreas Krennmair <ak@synflood.at>
* See LICENSE file for license details
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include "list.h"
#include "conn.h"
#include "url.h"
#include "http.h"
... | 2.078125 | 2 |
2024-11-18T22:49:14.114159+00:00 | 2018-12-10T07:13:55 | 8fefb9e9592a01db370d4483c649c71dc893f476 | {
"blob_id": "8fefb9e9592a01db370d4483c649c71dc893f476",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-10T07:13:55",
"content_id": "16960cf07f5f26734ee7cd16c008fb8184ec5b47",
"detected_licenses": [
"MIT"
],
"directory_id": "a2b0d93354db1877ffc8689ec189c0bb9caa1bbd",
"extension": "c"... | stackv2 | #include "types.h"
#include "stat.h"
#include "spinlock.h"
#include "user.h"
#include "param.h"
#include "x86.h"
//#include "defs.h"
#include "mmu.h"
#include "proc.h"
// spinlock
struct thread_spinlock {
uint locked; // Is the lock held?
char *name; // Name of lock.
// struct cpu *cpu; // The cpu... | 2.6875 | 3 |
2024-11-18T22:49:14.358555+00:00 | 2016-03-31T04:27:37 | 447ca4f7d258556896a870941c3b824fd217615f | {
"blob_id": "447ca4f7d258556896a870941c3b824fd217615f",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-31T04:27:37",
"content_id": "3ba314a4008905db63881f676ec6f9b6fa818e27",
"detected_licenses": [
"MIT"
],
"directory_id": "679bf883973eee060c1f19346fd32d0662db7f69",
"extension": "h"... | stackv2 | #ifndef __UTILITIES_H__
#define __UTILITIES_H__
// std
#include "stdio.h"
// sys
#include "string.h"
#include "sys/mman.h"
#include "pthread.h"
// local
#include "product.h"
/** @brief Determines whether or not the contents of the two given strings are identical.
*
* @param str_a The first string for comparison.
... | 2.71875 | 3 |
2024-11-18T22:49:15.293283+00:00 | 2022-04-04T17:38:51 | f354330a954fd40408957af01f929912a3a53820 | {
"blob_id": "f354330a954fd40408957af01f929912a3a53820",
"branch_name": "refs/heads/master",
"committer_date": "2022-04-04T17:38:51",
"content_id": "bfdd8aaeae473f5a49ca682d526a8241a2f9f92c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4f01956df7fde276c607d7d50e56634c43fd0822",
"extensio... | stackv2 | /*=================================================================
*
* DDDM ALGORITHM FOR ESTIMATION OF POSTERIORS, ETC IN HMM
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "mex.h"
#include "matrix.h"
void dsprt_c(
double *LPRpr,
double *LLRpr,
double H,
i... | 2.21875 | 2 |
2024-11-18T22:49:15.846129+00:00 | 2017-05-12T01:02:00 | 275e46d8b19bc7c54e851d09df8b938fb8e18d00 | {
"blob_id": "275e46d8b19bc7c54e851d09df8b938fb8e18d00",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-12T01:02:00",
"content_id": "18805174cc2dd4f0cf61532714b98e3afa0f7f5c",
"detected_licenses": [
"MIT"
],
"directory_id": "1cf18abd7b9011a037adbf4b49dc6bd37d2dc839",
"extension": "c"... | stackv2 | /* expad.c generate exponential attack or decay breakpoint data */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(int argc, char** argv)
{
int i,npoints;
double T,k,a;
double ystart,yend;
double dur,thisval,thisstep;
if(argc != 6){
fprintf(stderr,"insufficient arguments.\n");
fprintf... | 3.15625 | 3 |
2024-11-18T22:49:15.951535+00:00 | 2018-03-01T19:02:47 | e455d88b389545fab002511c975fe05efb74f22a | {
"blob_id": "e455d88b389545fab002511c975fe05efb74f22a",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-01T19:02:47",
"content_id": "cee746466ddcbcda4c47343840a5c793c6000eb4",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e1ff4d684f0194e94bb34aa31ec76efad18ff481",
"extens... | stackv2 | #include "worker.h"
extern int gchecksums;
extern char* gcheckphrase;
int dispatch_idle_worker ( struct txconf_s * txconf ) {
int retcode =-1 ;
txstatus( txconf, 5);
int spins = 0;
int sleep_thief =0;
while( retcode < 0 ) {
pthread_mutex_lock( &(txconf->mutex) );
for( int worker_cursor = 0; (worker_curso... | 2.375 | 2 |
2024-11-18T22:49:16.122411+00:00 | 2021-11-25T22:27:12 | b75dd07ac9e4d8d131b6b4c0b59c3b800a597cd8 | {
"blob_id": "b75dd07ac9e4d8d131b6b4c0b59c3b800a597cd8",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-25T22:27:12",
"content_id": "bb5bf9dc1ec74de249fd3c8a231653bae8dfd33c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bade93cbfc1f25160dfbe9493bfa83f853326475",
"extens... | stackv2 | /* Test program for tertiary boot.
* These are simple tests I found useful in building and
* debugging boot library routines.
*
* La Monte H. Yarroll <piggy@mwc.com>, September 1991
*/
#include <ctype.h>
#include <canon.h>
#include <sys/types.h>
#include <sys/ino.h>
#include <sys/inode.h>
#include <sys/dir.h>
#i... | 2.921875 | 3 |
2024-11-18T22:49:16.599883+00:00 | 2020-07-31T05:45:10 | 8a3eece6effd2657527d60f11bbed628a05e90cd | {
"blob_id": "8a3eece6effd2657527d60f11bbed628a05e90cd",
"branch_name": "refs/heads/AT",
"committer_date": "2020-07-31T05:45:10",
"content_id": "1fa06e69fbe537fe23e18bc493ccd15bec86f499",
"detected_licenses": [
"MIT"
],
"directory_id": "e368d28ab359f703b784b23280a98caa58d4fa72",
"extension": "c",
... | stackv2 | #include <platform_opts.h>
#ifdef CONFIG_USBH_MSC
#include "us_usb.h"
#include "us_debug.h"
#include "us_usual.h"
#include "us_transport.h"
#include "storage.h"
#include "us_os_wrap_via_osdep_api.h"
#include <quirks/quirks.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_eh.h>
#include "osdep_service.h"
void usb_s... | 2.140625 | 2 |
2024-11-18T22:49:16.770899+00:00 | 2022-02-08T18:21:30 | 36c9e6db81e308cb14169342bc4d55e6780dbf56 | {
"blob_id": "36c9e6db81e308cb14169342bc4d55e6780dbf56",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-08T18:21:30",
"content_id": "8a76372245c84038b8784f6faae787caf4c166e4",
"detected_licenses": [
"MIT"
],
"directory_id": "d55fea61eff36e5145c8b060cc08c0c5eb8c20d7",
"extension": "h"... | stackv2 | /* SPDX-License-Identifier: MIT */
/*
* Author: Andreas Werner <kernel@andy89.org>
* Date: 2016
*/
#ifndef ACCEL_H_
#define ACCEL_H_
#include <stdint.h>
#include <stdbool.h>
#include <system.h>
#include <FreeRTOS.h>
#include <semphr.h>
#include <hal.h>
#include <vec.h>
/**
* \defgroup ACCEL Accelerator Subsystem
*... | 2.75 | 3 |
2024-11-18T22:49:16.960733+00:00 | 2020-12-06T06:09:24 | 78008b843f945aeb51341890161576747ae571c0 | {
"blob_id": "78008b843f945aeb51341890161576747ae571c0",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-06T06:09:24",
"content_id": "a18ac5dd98a8dd3752eef8fab4bcd5ba7ea27056",
"detected_licenses": [
"MIT"
],
"directory_id": "22c521bf8db556e8fd51cccdd3eee5385321d8a6",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
int main()
{
pid_t pid;
int count=0;
while(1)
{
pid = vfork();
if (pid == 0)
{
count++;
exit(0);
... | 2.640625 | 3 |
2024-11-18T22:49:17.052308+00:00 | 2018-01-20T14:34:02 | 54bbc4178d133e129e5824435e9f99faf6f57cda | {
"blob_id": "54bbc4178d133e129e5824435e9f99faf6f57cda",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-20T14:34:02",
"content_id": "4c356334a78475b5b287e4ffb8db1e6d1bf2d1f2",
"detected_licenses": [
"MIT"
],
"directory_id": "cc5817996c05195db3c3819bb7590228fea3548d",
"extension": "c"... | stackv2 | //
// objc.c
// kvo
//
//
#include "objc_core.h"
#include "stub.h"
#include <stdlib.h>
struct objc_super object_getSuper(id object) {
__auto_type cls = class_getSuperclass(object_getClass(object));
return (struct objc_super) {
.receiver = object,
#if !defined(__cplusplus) && !__OBJC2__
.cl... | 2.03125 | 2 |
2024-11-18T22:49:17.183112+00:00 | 2022-10-24T21:59:50 | 1e12b7dc6c7f0efc1f7e4541b40ddb96eac796fe | {
"blob_id": "1e12b7dc6c7f0efc1f7e4541b40ddb96eac796fe",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-24T21:59:50",
"content_id": "0bb23a012da654c87e802c6e4615ea8c13a562b4",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "5c470d41aaed95b5157808023b9de91e5e... | stackv2 | /* ========================================================================
* Copyright 2008-2011 Mark Crispin
* ========================================================================
*/
/*
* Program: UNIX TCP/IP routines
*
* Author: Mark Crispin
*
* Date: 1 August 1988
* Last Edited: 29 August 2011
*
* P... | 2.140625 | 2 |
2024-11-18T22:49:17.289751+00:00 | 2021-01-13T04:42:03 | 19c5d6a3b94129595a1e34d30783c8f56f21748d | {
"blob_id": "19c5d6a3b94129595a1e34d30783c8f56f21748d",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-13T04:42:03",
"content_id": "dcab22cc242513dfdaed8a03a0a67fea95bf2f33",
"detected_licenses": [
"MIT"
],
"directory_id": "a9f6a3dfc2fb54547c5451d5c1380842aff45311",
"extension": "c"... | stackv2 | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Nels D. "Chip" Pearson (aka CmdrZin)
*
* 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 limitati... | 2.390625 | 2 |
2024-11-18T22:49:17.644967+00:00 | 2020-06-13T08:48:41 | 74a43ce6daac77ab9b123191a14f1ba64754d49d | {
"blob_id": "74a43ce6daac77ab9b123191a14f1ba64754d49d",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-13T08:48:41",
"content_id": "6969deb6b6d2538b9b2ee2914fcc41144b5c30d4",
"detected_licenses": [
"MIT"
],
"directory_id": "da0bbfa2d95cfa3ab6e80dd01d25984d209ceab0",
"extension": "c"... | stackv2 | #include "splitter_private.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <inttypes.h>
static upo_protocol_splitter_t create(char *input, long file_size);
static bool is_valid_input(const char *input);
static int get_number_count(const char *input, long file_size);
static siz... | 2.96875 | 3 |
2024-11-18T22:49:17.735832+00:00 | 2017-07-17T05:04:51 | 094fa08736a0a1da722ddb0bd0934b3819892d42 | {
"blob_id": "094fa08736a0a1da722ddb0bd0934b3819892d42",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-17T05:04:51",
"content_id": "09ff7f3e6f60b9dbaab2ccab09e779c3e50f8a9b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "db64d40b8ca4b9c7bcb91a7f31a24a24fe6dc7f9",
"extensio... | stackv2 | #include <stdlib.h>
#include <string.h>
#include "mhdb.h"
int
main(int argc, char *argv[]) {
char *p1, *p2;
mhdb_t d1, d2;
int uid;
/* Here we call mhdb_path and mhdb_open separately (vs mh-add/mh-del)
* because if it's the same folder we don't want to open the database
* twice.
*/
p1 = mhdb_path(argv[1])... | 2.546875 | 3 |
2024-11-18T22:49:18.034132+00:00 | 2018-02-05T14:17:24 | 31713a81564101acb98e439b4fb6209cdad6b6ac | {
"blob_id": "31713a81564101acb98e439b4fb6209cdad6b6ac",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-05T14:17:24",
"content_id": "6c3566fd33921f4777228047023a3a6660f2e44e",
"detected_licenses": [
"MIT"
],
"directory_id": "f4eee01e9c78778203acbb12eebb0bf48d2dc2ce",
"extension": "c"... | stackv2 | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Hangman.h"
#include "words.c"
#include "settings.c"
#include "util.c"
int main(){
//Clear the screengit
system("cls");
// Check if debug mode is enabled
checkDebug();
//Load Settings
loadSettings();
// Initialize variable... | 3.28125 | 3 |
2024-11-18T22:49:18.103091+00:00 | 2022-05-16T16:55:22 | ea921c9f226670f05fa81740eca59694ccefffd4 | {
"blob_id": "ea921c9f226670f05fa81740eca59694ccefffd4",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-16T16:55:22",
"content_id": "4975578ffeb59da3be1edb8753920353a2fc26bb",
"detected_licenses": [
"MIT"
],
"directory_id": "8041409b668a0780cb653705f0291fe0d49ce2ac",
"extension": "c"... | stackv2 |
#include <avr/io.h>
#include <util/delay.h>
#include <util/atomic.h>
#include "gsm.h"
#include "uart.h"
#include "watchdog.h"
#include "eeprom_addr.h"
#include "gsm_at_cmds.h"
volatile unsigned long g_seconds;
//NOTE: A unsigned long holds values from 0 to 4,294,967,295 (2^32 - 1). It will roll over to 0 after reach... | 2.546875 | 3 |
2024-11-18T22:49:18.304665+00:00 | 2018-03-15T03:22:59 | 662a0a9445add733ddd7f76d1b2addf8a3fa14b3 | {
"blob_id": "662a0a9445add733ddd7f76d1b2addf8a3fa14b3",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-15T03:22:59",
"content_id": "faf36934381d9ab36e279bbcb542efe0891c6732",
"detected_licenses": [
"MIT"
],
"directory_id": "4378b9cc41d941d874e63dc51fbb2a98853cfe8a",
"extension": "h"... | stackv2 | #ifndef _STDINT_H
#define _STDINT_H
#define INT8_MIN -0x80
#define INT8_MAX 0x7F
typedef signed char int8_t;
#define UINT8_MIN 0x00
#define UINT8_MAX 0xFF
typedef unsigned char uint8_t;
#define INT16_MIN -0x8000
#define INT16_MAX 0x7FFF
typedef signed short int16_t;
#define UINT16_MIN 0x0000
#define UINT16_MAX 0xFF... | 2.09375 | 2 |
2024-11-18T22:49:18.476178+00:00 | 2020-09-22T21:07:44 | f563b1e9ee5413ac7747cd1e878f3b143061eb3c | {
"blob_id": "f563b1e9ee5413ac7747cd1e878f3b143061eb3c",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-22T21:07:44",
"content_id": "a67046af3a8fe37b47b374693af4667a5c16dbdc",
"detected_licenses": [],
"directory_id": "ac0b308bfd3c3e5c46ba28d2c4fe70f8516c9e7d",
"extension": "c",
"filename... | stackv2 | //CicloWhile Primeros 10 Números
#include <stdio.h>
int main(){
int iNumero = 1;
/*
while (iNumero <= 10){
printf("\nN%cmero %d",163,iNumero);
//iNumero++;
iNumero += 1;
}//fin while
*/
/*
while (iNumero <= 10){
printf("\nN%cmero %d",163,iNumero);
//iNumero++;
iNumero ++;
... | 2.875 | 3 |
2024-11-18T22:49:18.565252+00:00 | 2020-05-27T06:12:00 | 8289bda2961f6b1d52809fefbdef4152a4fb74c0 | {
"blob_id": "8289bda2961f6b1d52809fefbdef4152a4fb74c0",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-27T11:04:37",
"content_id": "a9cfd13102e52b8623eaf15ef6bd51a0400ae0d0",
"detected_licenses": [
"MIT"
],
"directory_id": "9b943a52a2c9ccef16532e1e513382e20ad1f0b9",
"extension": "c"... | stackv2 | #include <flecs_systems_physics.h>
#include <string.h>
#include <math.h>
/* -- Automatically add colliders to geometry entities with EcsCollider -- */
static
void add_rect_collider(
ecs_world_t *world,
ecs_entity_t entity,
ecs_entity_t ecs_entity(EcsPolygon8Collider),
float w,
float h)
{
ecs_s... | 2.578125 | 3 |
2024-11-18T22:49:18.653370+00:00 | 2020-05-05T23:30:37 | a2d1c0c3270089174e3ed53464b811880ec2651a | {
"blob_id": "a2d1c0c3270089174e3ed53464b811880ec2651a",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-05T23:30:37",
"content_id": "205c9e4f454923248dc7d9dfaaab6087fcdda379",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2d70fc747f7a187e157b9f7672b2b538e0e5b0c9",
"extensio... | stackv2 | #ifdef __cplusplus
extern "C" {
#endif
#include <fcntl.h>
#include <libhfuzz/libhfuzz.h>
#include <setjmp.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "magic.h"
/*
* Compile as:
* honggfuzz/hfuzz_cc/hfuzz-clang -I ./file-5.3... | 2.1875 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.