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:30:44.348747+00:00 | 2023-08-03T23:35:48 | 8374c2df05eb25ce250e521e0ba65881ac1a5637 | {
"blob_id": "8374c2df05eb25ce250e521e0ba65881ac1a5637",
"branch_name": "refs/heads/develop",
"committer_date": "2023-08-03T23:35:48",
"content_id": "32c9e4ea377fa8b538ef2d8d5125ccf0690c55a3",
"detected_licenses": [
"MIT"
],
"directory_id": "ae8d3c23f18be09805071c088def07792557c192",
"extension": "h... | stackv2 | #ifndef MOCK_MEMORY_H
#define MOCK_MEMORY_H
typedef struct {
unsigned char* ram;
unsigned size;
}
memory_t;
static unsigned peekb(unsigned address, memory_t* memory) {
return address < memory->size ? memory->ram[address] : 0;
}
static unsigned peek(unsigned address, unsigned num_bytes, void* ud) {
memory_t* ... | 2.59375 | 3 |
2024-11-18T21:30:44.461311+00:00 | 2016-10-25T02:04:14 | 9de2a16fe16ed3d89d29ae7f1a9d11c1a33c5855 | {
"blob_id": "9de2a16fe16ed3d89d29ae7f1a9d11c1a33c5855",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-25T02:04:14",
"content_id": "b32875bfafac30a51f4175c55ecb8593965aea8c",
"detected_licenses": [
"MIT"
],
"directory_id": "0ebe1ac0a563a1f8b50c608712b3ecf68b7cb2a9",
"extension": "c"... | stackv2 | #include <lua.h>
#include <lauxlib.h>
#include <uv.h>
#include "coio.h"
static int _ioyield;
void *const coio_util_ioyield = (void *) &_ioyield;
void coio_util_run_thread(lua_State *t, int nargs)
{
int status = lua_resume(t, NULL, nargs);
if (status == LUA_YIELD) {
if (lua_touserdata(t, 1) != coio_... | 2.359375 | 2 |
2024-11-18T21:30:44.842101+00:00 | 2020-12-08T18:25:13 | 7c3a7c9517fc2a61f7379d449798bad59048bde1 | {
"blob_id": "7c3a7c9517fc2a61f7379d449798bad59048bde1",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-08T18:25:13",
"content_id": "d7b50aaf255f246307939bfba4de4ac55ab55d22",
"detected_licenses": [
"MIT"
],
"directory_id": "416a042c549ba5183c04b4b5f8c436dc6d3d1a77",
"extension": "h",
... | stackv2 | #ifndef __DECODE_MOBILENET__
#define __DECODE_MOBILENET__
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "float16.h"
#define CLAMP_MIN_MAX(val, min, max) \
do \
{ \
if (val < min) \
val = m... | 2.09375 | 2 |
2024-11-18T21:30:45.054247+00:00 | 2021-01-08T18:33:56 | 6f3b6c536c8306abdc0a85df9fef37a28f123663 | {
"blob_id": "6f3b6c536c8306abdc0a85df9fef37a28f123663",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-08T18:33:56",
"content_id": "35f99185fda4f6b1191c85c0f2795ba49d2e9a86",
"detected_licenses": [
"MIT"
],
"directory_id": "5321c0c757110c5fa97aa7b1c70d74611821c7cb",
"extension": "c"... | stackv2 | #include "melon/modules/json/json_module.h"
#include "melon/modules/modules.h"
#include "melon/core/tstring.h"
#include "melon/core/object.h"
#include "melon/core/array.h"
#include "melon/libs/cJSON/cJSON.h"
/***
* @module
*
* This module provides built-in JSON serialization/deserialization support.
*/
#include ... | 2.390625 | 2 |
2024-11-18T21:30:45.182902+00:00 | 2020-07-31T09:33:51 | d12ef61708e4ed3102e0d33a92b473c470e3c4f7 | {
"blob_id": "d12ef61708e4ed3102e0d33a92b473c470e3c4f7",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-31T09:35:21",
"content_id": "e61847413c68bb052a0afc13a1b2d36405ac17cb",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "721865028a98963e8ed2708a5e80436a5c1a0e1a",
"extensio... | stackv2 | /*
* Copyright (c) 2020 Bitdefender
* SPDX-License-Identifier: Apache-2.0
*/
/** @file os_detect.h
* @brief Support to detect the guest OS version
*/
#ifndef OS_DETECT_H
#define OS_DETECT_H
#include "base/cx_sal.h"
#include "base/cx_defs.h"
#include "base/cx_types.h"
typedef struct _VCPU VCPU;
/**
* @brief Def... | 2.203125 | 2 |
2024-11-18T21:30:45.289577+00:00 | 2018-02-10T00:57:48 | 0084029dbff98e89ba6b45c6008edad7c7f0ecdc | {
"blob_id": "0084029dbff98e89ba6b45c6008edad7c7f0ecdc",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-10T00:57:48",
"content_id": "5616cde59f266fa56996e1864d4baaf83e432c02",
"detected_licenses": [
"MIT"
],
"directory_id": "52abe0a80499c0642d9a679141ecfbc64e052cd9",
"extension": "c"... | stackv2 | /* app_util.c: utility functions for applications */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <netdb.h>
#include <fcntl.h>
#include <errno.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/wait.h>
... | 2.5 | 2 |
2024-11-18T21:30:45.448297+00:00 | 2020-10-14T22:14:51 | fe3ca619eb5d8f44d93e796bae8fb5a0b44dd14d | {
"blob_id": "fe3ca619eb5d8f44d93e796bae8fb5a0b44dd14d",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-14T22:14:51",
"content_id": "8eab8026ba0430eeee1472e1c11f5299e1c0bc4f",
"detected_licenses": [
"MIT"
],
"directory_id": "5037d79eeb2a27e2965938c65ded5d3c9aa5cf87",
"extension": "c",
... | stackv2 |
//////////////////////////////////////////////////////////////////////////
// Parser //
//////////////////////////////////////////////////////////////////////////
// A simple C-parser, the main entry points are 'parse_declaration_list'
// and 'parse_imper... | 2.25 | 2 |
2024-11-18T21:30:45.607313+00:00 | 2020-10-03T04:54:13 | 55f8b8b87765cbe61b09afbd3e73aa91889802c9 | {
"blob_id": "55f8b8b87765cbe61b09afbd3e73aa91889802c9",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-03T04:54:13",
"content_id": "75b14cf7d4ca4b479aa055888438502c238d21bb",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ec8b4307b6909dc9ef1c365188152a8c4af4497a",
"extensio... | stackv2 |
#include "common.h"
#include "pq.h"
pq_t *pq_init_size(pq_less_cb_t less_cb, int size) {
pq_t *pq = (pq_t *)malloc(sizeof(pq_t));
SYSEXPECT(pq != NULL);
memset(pq, 0x00, sizeof(pq_t));
pq->data = (void **)malloc(sizeof(void *) * size);
pq->less_cb = less_cb;
pq->capacity = size;
SYSEXPECT(pq->data != NU... | 3.3125 | 3 |
2024-11-18T21:30:45.720072+00:00 | 2023-08-31T16:20:55 | 45b368bb263effb868c933c6a0965e3ae034d110 | {
"blob_id": "45b368bb263effb868c933c6a0965e3ae034d110",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T16:20:55",
"content_id": "96f5628bb8399561ef84086501eeea80fc010538",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "99bdb3251fecee538e0630f15f6574054dfc1468",
"extensio... | stackv2 | /*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-11-17 Bernard first version
*/
#include <stdio.h>
#include <stdlib.h>
#include <finsh.h>
int libc_rand(void)
{
int i1, i2;
int j1, j2;
... | 2.484375 | 2 |
2024-11-18T21:30:46.210269+00:00 | 2020-08-08T01:18:05 | 00676fd8de8133c81be2bc52d4a5d019c91edd2f | {
"blob_id": "00676fd8de8133c81be2bc52d4a5d019c91edd2f",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-08T01:18:05",
"content_id": "45057b71ea3f819582ec4805a91c09880f302c43",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8de20b8b1e87cddbbdfe67bb5fe84f50fd84ad24",
"extens... | stackv2 |
/*
| PC-LISP (C) 1984-1989 Peter J.Ashwood-Smith
*/
#include <stdio.h>
#include <math.h>
#include "lisp.h"
/*************************************************************************
** bucxr: (cxr index Hunk) will return the element number index in the **
** hunk Hunk. If index is outside the size of Hunk it is ... | 2.296875 | 2 |
2024-11-18T21:30:47.496469+00:00 | 2022-10-08T12:53:58 | 7bd448948510cb400525bc376b323547c92118ba | {
"blob_id": "7bd448948510cb400525bc376b323547c92118ba",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-08T12:53:58",
"content_id": "2b64e422e65d950f02582329c0c73f548fad138b",
"detected_licenses": [
"MIT"
],
"directory_id": "cdbc0478f7d630d7c7bbbd7cfce2499f0fe4689b",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
void main()
{
char string[100];
printf("Enter expression:");
scanf("%s",string);
int i, top = -1, flag=1;
char stack[100];
for(i=0; i<strlen(string); i++)
{
if((string[i] == '{') || (string[i] == '[') || (string[i] == '('))
... | 3.515625 | 4 |
2024-11-18T21:30:49.202027+00:00 | 2023-01-20T04:49:52 | c4ae0d004b076c011788d2fffb4e61c7d31866eb | {
"blob_id": "c4ae0d004b076c011788d2fffb4e61c7d31866eb",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-20T04:49:52",
"content_id": "be37ba607a113372b29216f103a81a16d2607a34",
"detected_licenses": [
"MIT"
],
"directory_id": "2aa7856793719892acaea34138f26f11f5f6a1cd",
"extension": "c"... | stackv2 | // Copyright (c) TEEP contributors
// SPDX-License-Identifier: MIT
#include <direct.h>
#include <stdio.h>
#include <string.h>
#include "TeepTamBrokerLib.h"
#ifdef USE_TCP
#include "TcpServer.h"
#else
#include "HttpServer.h"
#endif
#ifndef TEEP_USE_TEE
#include "TeepTamLib.h"
#endif
int TamBrokerProcess(_In_z_ const wc... | 2.0625 | 2 |
2024-11-18T21:30:49.281824+00:00 | 2021-11-25T22:27:12 | 3068851ce01895a5ff43bf0dfbfaef5479eafe54 | {
"blob_id": "3068851ce01895a5ff43bf0dfbfaef5479eafe54",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-25T22:27:12",
"content_id": "2e4a92dca8c36e605c4e72b830a8cb4941113cf2",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bade93cbfc1f25160dfbe9493bfa83f853326475",
"extens... | stackv2 | /*
* n1/node.c
* Utility routines for the manipulation of expression tree nodes.
*/
#ifdef vax
#include "INC$LIB:cc1.h"
#else
#include "cc1.h"
#endif
/*
* Fabricate a node for an integer constant.
*/
TREE *
ivalnode(n) ival_t n;
{
register TREE *tp;
tp = alocnode();
tp->t_op = ICON;
tp->t_type = IVAL_T;
... | 2.828125 | 3 |
2024-11-18T21:30:49.406734+00:00 | 2023-02-15T20:17:35 | 25c92e0b85153cc9f1deb60c954ea2a880c869e9 | {
"blob_id": "25c92e0b85153cc9f1deb60c954ea2a880c869e9",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-15T20:17:35",
"content_id": "76cf5f65aa78b9a75a5f6d25d83c6a33fd85ec25",
"detected_licenses": [
"MIT"
],
"directory_id": "8c89f9a1c0978046c4736443811c8610cbc5e9e4",
"extension": "c"... | stackv2 | /*
* sdhc_diskio.c
*
* Created: 2019/03/12
* Copyright ? 2019 Kiyotaka Akasaka. All rights reserved.
*/
#include <string.h>
#include "ff.h"
#include "diskio.h"
#include "samd51_sdhc.h"
#include "samd51_error.h"
#include "mmc.h"
#include "ai_mini4wd.h"
/*--------------------------------------------------------... | 2.09375 | 2 |
2024-11-18T21:30:52.430370+00:00 | 2017-12-10T09:48:32 | c2889ffb7b48aa51aa676a9da2c03baf046477cb | {
"blob_id": "c2889ffb7b48aa51aa676a9da2c03baf046477cb",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-10T09:48:32",
"content_id": "9838488fed0aa157e153647335299f156372871c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a28453e0da3e3f7612f4b78ad9fdc6a9a4624e85",
"extens... | stackv2 | #ifndef HASH_H_
#define HASH_H_
#include <sys/queue.h>
#include <string.h>
#include "hash_elt.h"
/* Return codes */
enum {
SUCCESS = 0,
HT_ALREADY_ADDED,
HT_MALLOC_ERROR,
ERROR,
};
/* Hastable entry */
struct ht_elt {
SLIST_ENTRY(ht_elt) next;
ht_key_t key;
ht_value_t value;
};
typedef struct ht_elt ht_elt_... | 2.59375 | 3 |
2024-11-18T21:30:52.519590+00:00 | 2017-04-08T06:00:54 | dcc176d9cfb14cf6185be7a18d14276a70ac70de | {
"blob_id": "dcc176d9cfb14cf6185be7a18d14276a70ac70de",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-11T19:42:41",
"content_id": "6689191ceea0aadb4498eaa86be21fc447411594",
"detected_licenses": [
"BSD-1-Clause"
],
"directory_id": "43548a01b7fa0cad351246082b7ec79397e4bfdb",
"extens... | stackv2 | /* ascii.c - display ascii table
*
* Copyright 2017 Rob Landley <rob@landley.net>
*
* Technically 7-bit ASCII is ANSI X3.4-1986, a standard available as
* INCITS 4-1986[R2012] on ansi.org, but they charge for it.
USE_ASCII(NEWTOY(ascii, 0, TOYFLAG_USR|TOYFLAG_BIN))
config ASCII
bool "ascii"
default n
help
... | 2.578125 | 3 |
2024-11-18T21:30:52.601479+00:00 | 2020-07-09T01:34:55 | f021b4c0ed4353dc91473683289fc14d82c7bf5d | {
"blob_id": "f021b4c0ed4353dc91473683289fc14d82c7bf5d",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-09T01:34:55",
"content_id": "e823a6ca2aef312786a4624183ba8934c3b5ef32",
"detected_licenses": [
"MIT"
],
"directory_id": "1895ae76e4a64767d8358bd94884bec49bb1f909",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <mpi.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/time.h>
double dwalltime(){
double sec;
struct timeval tv;
gettimeofday(&tv,NULL);
sec = tv.tv_sec + tv.tv_usec/1000000.0;
return sec;
}
void master(int vector_size,int *vector, int n, int v, int cant_proc);
void slave... | 2.96875 | 3 |
2024-11-18T21:30:52.878441+00:00 | 2021-07-03T17:33:40 | fcd196868e742d9ba77bbc718b58044307f88ddd | {
"blob_id": "fcd196868e742d9ba77bbc718b58044307f88ddd",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-03T17:33:40",
"content_id": "f09f8acc555739e6e8c42baeb6d746db5b4b7ed5",
"detected_licenses": [
"Unlicense"
],
"directory_id": "be0bd421b19487ae53a18306e3ad539bd560c7df",
"extension":... | stackv2 | // NOTE: Token kinds are organized to make parsing binary expressions easier
enum TOKEN_KIND
{
Token_Invalid = 0,
Token_Not, // !
Token_Complement, // ~
Token_Increment, // ++
Token_Decrement, ... | 2.15625 | 2 |
2024-11-18T21:30:54.663495+00:00 | 2019-04-29T01:31:54 | ee5c6a7bcfde5339371eba88da211aed6e069b49 | {
"blob_id": "ee5c6a7bcfde5339371eba88da211aed6e069b49",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-29T01:31:54",
"content_id": "cf1380174c6be69a4b25bab34f89663b07606adb",
"detected_licenses": [
"Unlicense"
],
"directory_id": "e30cf01f6a5777660c938ff2e7bfff10511535da",
"extension... | stackv2 | #include <ncurses.h>
#include <string.h>
#include <stdlib.h>
#include "checkers.h"
#define GAME_NAME "Checkers"
#define SQUARE_WIDTH 3
#define SQUARE_HEIGHT 1
#define BOARD_WINDOW_WIDTH ((SQUARE_WIDTH) * (BOARD_WIDTH))
#define BOARD_WINDOW_HEIGHT ((SQUARE_HEIGHT) * (BOARD_HEIGHT))
#define LIGHT_COLOR COLOR_WHITE
... | 2.6875 | 3 |
2024-11-18T21:30:54.775712+00:00 | 2015-08-20T22:21:19 | 514666d8e1fd1eac2f57d2143e02518cc8b47a4c | {
"blob_id": "514666d8e1fd1eac2f57d2143e02518cc8b47a4c",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-20T22:21:19",
"content_id": "3c33af2a205ab092301b4f4fecee235c46bcce14",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "76819d7ec89b0d59cc54c0e554ed176f6668ffa2",
"extens... | stackv2 |
/*
* sophia database
* sphia.org
*
* Copyright (c) Dmitry Simonenko
* BSD License
*/
#include <sophia.h>
#include <libss.h>
#include <libsf.h>
#include <libsr.h>
#include <libsv.h>
#include <libsd.h>
#include <libst.h>
static void
tpr_test0(void)
{
void *env = sp_env();
t( env != NULL );
t( sp_setstring(env,... | 2.015625 | 2 |
2024-11-18T21:30:55.083680+00:00 | 2015-04-17T17:56:20 | 71f3c4c6aabf04064eb23c0a5385083766a1c58c | {
"blob_id": "71f3c4c6aabf04064eb23c0a5385083766a1c58c",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-17T17:56:20",
"content_id": "87dd1222ca7f6c5aa8bb1c0cce4eb05ba7f22b54",
"detected_licenses": [
"ISC"
],
"directory_id": "66bdc05e3e7e0a2069cbf59a8dad1fdf7a52caef",
"extension": "c"... | stackv2 | /*====================================================================*
*
* char *_strcpy(char *target, char const *source);
*
* _string.h
*
* copy one NUL terminated string to another; return the target string
* address; do nothing if either string address is NULL;
*
*. Motley Tools by Charles Maier
... | 2.25 | 2 |
2024-11-18T21:30:55.169932+00:00 | 2021-04-26T20:48:38 | 636caabadcf66590b06cb1f6e6e0840467b7ea39 | {
"blob_id": "636caabadcf66590b06cb1f6e6e0840467b7ea39",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-26T20:48:38",
"content_id": "fe5a8b61c8393c0d75d44780555ddadcc9c60200",
"detected_licenses": [
"MIT"
],
"directory_id": "7d52235ced905668ac44f844c60f0330bef7858b",
"extension": "c",
... | stackv2 | //z37.c
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int *br;
int a=5;
printf("\n adresa %p vrednost %d naziv a",&a,a);
printf("\nAdresa pokazivacke promenljive je:%p",&br);
br = (int *) malloc (sizeof(int));//malloc vraća generički pokazivač
/* malloc-u se prosledjuje kolicina potrebne memorije u bajto... | 3.375 | 3 |
2024-11-18T21:30:55.428810+00:00 | 2019-01-08T06:56:32 | 799cf8886b9b171996f70d09d0c5685e3772b7f8 | {
"blob_id": "799cf8886b9b171996f70d09d0c5685e3772b7f8",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-08T06:56:32",
"content_id": "ee8e3685b76c589fbd8a865b7fcb10efac4f47a7",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "9435432ac0c8c5a75925419e0a2d816d5450b5cb",
"extens... | stackv2 |
/*
* Copyright (C) Igor Sysoev
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#include <ngx_http.h>
static void ngx_http_read_client_request_body_handler(ngx_event_t *rev);
static ngx_int_t ngx_http_do_read_client_request_body(ngx_http_request_t *r);
ngx_int_t ngx_http_read_client_requ... | 2.15625 | 2 |
2024-11-18T21:30:55.918637+00:00 | 2018-04-29T23:51:04 | eb85531954d49fbfefa58fed43c83108e0136001 | {
"blob_id": "eb85531954d49fbfefa58fed43c83108e0136001",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-29T23:51:04",
"content_id": "bd0b14f53f73fb83c142689220160db495d48111",
"detected_licenses": [
"MIT"
],
"directory_id": "c63ad2ce678eb39e76d8bddb366d8507a2b34a32",
"extension": "c"... | stackv2 | #include "util.h"
inline uint8_t dec_to_bcd(uint8_t dec) {
return ((((dec / 10) & 0xF) << 4) |
((dec % 10) & 0xF));
}
inline void i2c_start(void) {
// Send 'Start' condition, and wait for acknowledge.
I2C1->CR2 |= (I2C_CR2_START);
while ((I2C1->CR2 & I2C_CR2_START)) {}
}
inline void i2c_stop(void... | 3 | 3 |
2024-11-18T21:30:56.042336+00:00 | 2019-03-19T05:59:27 | 966097b5952652df98cb9a768a12aa0d018a2c09 | {
"blob_id": "966097b5952652df98cb9a768a12aa0d018a2c09",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-19T05:59:27",
"content_id": "b528f29cdc954bc42de284c8fd4d7b30d0cd8bf5",
"detected_licenses": [
"MIT"
],
"directory_id": "7d2e46db908e7f9c61294515d7f916df08066c90",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
#ifdef _WIN32
#include <conio.h>
#endif
#include <math.h>
#include <time.h>
#include <ctype.h>
#include "def.h"
#include "lib.h"
int main(int argc, char *argv[])
{
if (argc > 1) load_program(argv[1]);
else load_program("p.pc");
... | 2.4375 | 2 |
2024-11-18T21:30:57.033539+00:00 | 2022-04-26T07:17:34 | 8eca4a3e93a3efafae1edda387a1cd605ef45b47 | {
"blob_id": "8eca4a3e93a3efafae1edda387a1cd605ef45b47",
"branch_name": "refs/heads/main",
"committer_date": "2022-04-26T07:17:34",
"content_id": "9de34d3c3cb847519aeb22d4b69d17d88ec153cb",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6991bb64cf26b729136400b9b94d8a1730309098",
"extension"... | stackv2 | #include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <os.h>
#include <os_io_seproxyhal.h>
#include "stringify_bip32_path.h"
static int stringify_bip32_path_single_component(
uint32_t input_bip32_component,
char *output_bip32_component_string
) {
uint32_t unhardened_bip32_path_co... | 2.640625 | 3 |
2024-11-18T21:30:57.226387+00:00 | 2019-10-10T08:32:30 | 872c595ad49ac9338b518baa0664c93dc626e13a | {
"blob_id": "872c595ad49ac9338b518baa0664c93dc626e13a",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-10T08:32:30",
"content_id": "0749cd49d3a1d8117741068a8dc64345dba34178",
"detected_licenses": [
"MIT"
],
"directory_id": "a2e920f5685ed90cf4ed6d63c40a1fa8097e6b58",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <unistd.h>
#include <gtk/gtk.h>
#include "idle_timer.h"
#include "config_parser.h"
#define VERSION "0.1"
#define DOTFILE_NAME ".idletimer"
static void sigint_han... | 2.421875 | 2 |
2024-11-18T21:30:57.758159+00:00 | 2020-08-15T09:12:48 | 437b25dd9fef7bc9f806823ae9dd41a37a95b9f2 | {
"blob_id": "437b25dd9fef7bc9f806823ae9dd41a37a95b9f2",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-15T09:12:48",
"content_id": "2f65e1eb00e37edf366bdfc0f87c8e10235ad1c6",
"detected_licenses": [
"MIT"
],
"directory_id": "4df8ab9afed6efe7e694d99276e47e207448251d",
"extension": "h"... | stackv2 | //*****************************************************************************
// File Name : ds18b20.c
// Title : Dallas 1-Wire DS18B20 Temperature Sensor Library
// Revision : 3
// Notes :
// Target MCU : Atmel AVR series
// Editor Tabs : 4
//
// Revision History:
// When Who Rev Description of change
// -... | 2.15625 | 2 |
2024-11-18T21:30:58.163231+00:00 | 2023-07-20T07:39:45 | 6ade970988fc89929a9a5463493adf12cc9d6161 | {
"blob_id": "6ade970988fc89929a9a5463493adf12cc9d6161",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-20T07:39:45",
"content_id": "e9b76b4aebd70113b554b8fa8297a9b42b75bd1b",
"detected_licenses": [
"Zlib"
],
"directory_id": "eb287cbdbaea8c328ce7ed3c4c7e0867c84be3dd",
"extension": "h... | stackv2 | #pragma once
/*#
# z80.h
A cycle-stepped Z80 emulator in a C header.
Do this:
~~~~C
#define CHIPS_IMPL
~~~~
before you include this file in *one* C or C++ file to create the
implementation.
Optionally provide
~~~C
#define CHIPS_ASSERT(x) your_own_asset_macro(x)
~~~
... | 2.4375 | 2 |
2024-11-18T21:30:58.286110+00:00 | 2018-09-06T04:19:31 | a1f0b5801262d793d7db7a9224d9170ff52131c1 | {
"blob_id": "a1f0b5801262d793d7db7a9224d9170ff52131c1",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-06T04:19:31",
"content_id": "ad8906978c90891c4b3670a97ee61f2ccfc01866",
"detected_licenses": [
"MIT"
],
"directory_id": "134fca5b62ca6bac59ba1af5a5ebd271d9b53281",
"extension": "c"... | stackv2 | typedef int mint; /* Concrete in impabstract.lcl */
typedef /*@concrete@*/ int cint; /* Abstract in impabstract.lcl */
int f (mint m, cint c)
{
if (c > 3)
{
return c;
}
if (m < 2)
{
return m;
}
return 3;
}
| 2.234375 | 2 |
2024-11-18T21:30:58.767675+00:00 | 2021-10-25T17:06:06 | 08e2067ad51278d650dc9353ef6932446fe8e853 | {
"blob_id": "08e2067ad51278d650dc9353ef6932446fe8e853",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-25T17:06:06",
"content_id": "19893cd08c4f18fd204eafcc26bd0fcaa553c9c4",
"detected_licenses": [
"NCSA",
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "6dd2d509d44ea035da9d... | stackv2 | /***********************************************************************
/
/ GRID CLASS (ANALYZE DENSITY FIELD FOR PEAKS AND RECORD)
/
/ written by: Greg Bryan
/ date: December, 1995
/ modified1:
/
/ PURPOSE:
/
/ RETURNS: FAIL or SUCCESS
/
********************************************************************... | 2.03125 | 2 |
2024-11-18T21:30:59.699799+00:00 | 2023-09-02T14:55:31 | 6d440972f9c417699786dbe96c82ea1948f6c41a | {
"blob_id": "6d440972f9c417699786dbe96c82ea1948f6c41a",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T14:55:31",
"content_id": "562bfa741571fc94d86766e5d4654510c04a1235",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca",
"extens... | stackv2 | /**
* @file
* @brief
*
* @date 1.09.22
* @author Aleksey Zhmulin
*/
#include <curses_priv.h>
#include <errno.h>
#include <stdio.h>
#include <termios.h>
int _curs_get_tty_mode(struct termios *t) {
if (SP == NULL) {
return ERR;
}
while (-1 == tcgetattr(fileno(SP->ifp), t)) {
if ((errno != EINTR) && (errn... | 2.40625 | 2 |
2024-11-18T21:30:59.866534+00:00 | 2016-09-30T15:17:04 | ff3ffccebb7e49f5d1b9a0284e12e594f5cccc8a | {
"blob_id": "ff3ffccebb7e49f5d1b9a0284e12e594f5cccc8a",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-30T15:17:04",
"content_id": "f4c3409128cb5050bbe364295cc6c4032cc190b7",
"detected_licenses": [
"BSD-1-Clause"
],
"directory_id": "19266293bd7b1c831067fcef23807a1788bf137b",
"extens... | stackv2 | /* cmp.c - Compare two files.
*
* Copyright 2012 Timothy Elliott <tle@holymonkey.com>
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/cmp.html
USE_CMP(NEWTOY(cmp, "<2>2ls[!ls]", TOYFLAG_USR|TOYFLAG_BIN))
config CMP
bool "cmp"
default y
help
usage: cmp [-l] [-s] FILE1 FILE2
Compare the ... | 2.59375 | 3 |
2024-11-18T21:31:00.696054+00:00 | 2018-06-07T02:18:50 | 295cb0cb429ca12bace3fd9e66fdbd32fe225611 | {
"blob_id": "295cb0cb429ca12bace3fd9e66fdbd32fe225611",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-07T02:19:58",
"content_id": "bf86538d5cbf5b67d5e1dd6c285a958850dae8f4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3822a81ce9aba2c14d92445b108f74b9f5be0a17",
"extensio... | stackv2 | #ifndef LIBWSP_H
#define LIBWSP_H
#define _POSIX_C_SOURCE 199309L
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "erl_nif.h"
#define WSP_PERMS (S_IRUS... | 2.140625 | 2 |
2024-11-18T21:31:00.784744+00:00 | 2019-04-22T01:48:58 | 4181553aa65e9df67f13f91c2952c3aac92f3177 | {
"blob_id": "4181553aa65e9df67f13f91c2952c3aac92f3177",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-22T01:48:58",
"content_id": "5240f0e3e4af2f4ee5754f16f3599d840773e971",
"detected_licenses": [
"MIT"
],
"directory_id": "8593fb981f793c3906e694ecf3c81977e064d1b9",
"extension": "c"... | stackv2 |
// OpenMP Nested Example
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
int main( int argc, char** argv ) {
omp_set_nested( 1 ); // Enable Nested Parallelism
omp_set_dynamic( 0 ); // Disable Dynamic Threads
// Outer Level Parallel Region - 2 Threads
#pragma omp parallel num_threads( 2 )
{
... | 2.78125 | 3 |
2024-11-18T21:31:00.867300+00:00 | 2021-11-04T23:45:34 | d15f891d0810c767e593921b1e6a832f5d058d1d | {
"blob_id": "d15f891d0810c767e593921b1e6a832f5d058d1d",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-04T23:45:34",
"content_id": "37ea226ebc249e07a5be229fd9229e050499998b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "1cc48fee60e05513a562d73a88426c4f2ef6e75e",
"extensio... | stackv2 | /*
Tests MPIDENSE matrix operations MatMultTranspose() with processes with no rows or columns.
As the matrix is rectangular, least square solution is computed, so KSPLSQR is also tested here.
*/
#include <petscksp.h>
PetscErrorCode fill(Mat m, Vec v)
{
PetscInt idxn[3] = {0, 1, 2};
PetscInt ... | 2.46875 | 2 |
2024-11-18T21:41:15.720611+00:00 | 2018-11-19T13:53:07 | c2500ddf3dd6425457cbf8e9d392d8416f7a4c38 | {
"blob_id": "c2500ddf3dd6425457cbf8e9d392d8416f7a4c38",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-19T13:53:07",
"content_id": "61f9aafe237ac5b0e81e5bbc7c48ed9dfc5e31b4",
"detected_licenses": [
"MIT"
],
"directory_id": "b03900e10a8f2c0f0d183f4782d156f2316db4df",
"extension": "c"... | stackv2 | /*************************************
Dveloper: Sungjun Yoon
E-mail: sjyoon1671@gmail.com
Github: https://github.com/vujadeyoon
Title: get_window.c
Version: 181118a
Description: Get a window function
**************************************/
#include "header.h"
tensor_1d *get_window(size_t tap, window_kernel win)
{
s... | 2.40625 | 2 |
2024-11-18T21:41:16.165860+00:00 | 2021-07-26T21:58:32 | 1c2c7f5948118a44572c5ae0ed468ccdd5ebb5fd | {
"blob_id": "1c2c7f5948118a44572c5ae0ed468ccdd5ebb5fd",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-26T21:58:32",
"content_id": "eab49f56da66c704bc2be67c43def645cc15e671",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4b4c47a9d3b3f4744e789b1e16b81bfd9d9fda70",
"extens... | stackv2 | /*
DESCRIPTION:
Convert a date-string into integer year month and day values
- can convert different date-formats into the three digits for constructing the actual date
- all input values must be numeric (e.g. December= 12, not DEC or similar)
- years represented as two-digits will not be expanded (eg. 99 does not ... | 3.0625 | 3 |
2024-11-18T21:41:16.865300+00:00 | 2016-12-26T12:42:36 | d50bbb17566fa8f299e9ad7eafd255d840f1b55e | {
"blob_id": "d50bbb17566fa8f299e9ad7eafd255d840f1b55e",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-26T12:42:36",
"content_id": "b4deb2a48a21157ca0dc2991486869dd5331962b",
"detected_licenses": [
"MIT"
],
"directory_id": "9b739675a62b0c8eb9ed06544d2791dcdcd42aff",
"extension": "c"... | stackv2 | /**
* @Author: Marius Messerschmidt <mame98>
* @Date: 14-09-2016 18:09:31
* @Email: marius.messerschmidt@googlemail.com
* @Last modified by: marius
* @Last modified time: 15-10-2016 17:10:35
* @License: MIT
*/
#include "cade-panel-window.h"
#include <cade-core.h>
#include <gtk/gtk.h>
enum
{
PROP_POSITION = 1,
... | 2.234375 | 2 |
2024-11-18T21:41:16.944911+00:00 | 2009-11-01T22:05:09 | 1678a44cb8cf5282f2b877c8376a215fc0631ae8 | {
"blob_id": "1678a44cb8cf5282f2b877c8376a215fc0631ae8",
"branch_name": "refs/heads/master",
"committer_date": "2009-11-01T22:05:09",
"content_id": "b9ff0e2b3c67dfe69147d5f54b64920d933c56a4",
"detected_licenses": [
"MIT"
],
"directory_id": "1f2b013f997ab420e53b82cb82b22cb6de1c7225",
"extension": "c"... | stackv2 | /*
* The MIT License
*
* Copyright (c) 2009 Ning Shi
*
* 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, mod... | 2.125 | 2 |
2024-11-18T21:41:17.193463+00:00 | 2016-03-07T09:59:26 | ab8e7d8a21f05f4cf6d3c056bff160f96598de39 | {
"blob_id": "ab8e7d8a21f05f4cf6d3c056bff160f96598de39",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-07T09:59:26",
"content_id": "79b5fc305f040034cf359eaebca7d814d0d41ba5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "018b131088f375e0c216e43fd658836558176d3e",
"extensio... | stackv2 | /********************************************************************************************/
/* Montage Technology (Shanghai) Co., Ltd. */
/* Montage Proprietary and Confidential */
/* Copyright (c) 2014 Montage Techn... | 2.078125 | 2 |
2024-11-18T21:41:17.685553+00:00 | 2023-06-12T08:21:22 | 34eacbe2da2289bf968f10369b4fca6cbb65da65 | {
"blob_id": "34eacbe2da2289bf968f10369b4fca6cbb65da65",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-12T08:21:22",
"content_id": "612f7a6a617b19e56d873ebbda4bbd7d66505af6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dbbef29b50d3e01698fe54b1d63b59f152fe41ed",
"extensio... | stackv2 | /*---------------------------------------------------------------------------------------------------------*/
/* */
/* SPDX-License-Identifier: Apache-2.0 ... | 2.203125 | 2 |
2024-11-18T21:41:17.765320+00:00 | 2020-02-18T08:59:30 | 10908feacf2defcb7b0e340ac9863aace0e9f7a2 | {
"blob_id": "10908feacf2defcb7b0e340ac9863aace0e9f7a2",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-18T08:59:30",
"content_id": "0ffdd882fb63bfda6ad417396c832f2f038fe0ad",
"detected_licenses": [
"NTP"
],
"directory_id": "f3203226e8a039d17474cce5f2caf293dd913415",
"extension": "c"... | stackv2 | /*
* Copyright 1987, 1988, 1989 by MIT Student Information Processing
* Board
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose is hereby granted, provided that
* the names of M.I.T. and the M.I.T. S.I.P.B. not be used in
* advertising or publicity pertaini... | 2.203125 | 2 |
2024-11-18T21:41:17.825468+00:00 | 2020-12-26T14:10:35 | 41b180828d82a06583ab481c4bfc95df0c6194bc | {
"blob_id": "41b180828d82a06583ab481c4bfc95df0c6194bc",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-26T14:10:35",
"content_id": "f3fac11a58e7febaaef053966f77e8d4f609701f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f50c17294df7075d6171c7a666ec3767709b88f0",
"extensio... | stackv2 | /*
* =====================================================================================
*
* Filename: wait.c
*
* Description: 等待子进程改变状态,SIGCHLD信号发送给父进程
* 子进程改变:
* 1.子进程正常结束(释放相关的资源,如果没有wait将进入僵尸状态zombie)
* 2.子进程被信号停止
* ... | 2.90625 | 3 |
2024-11-18T21:41:17.896939+00:00 | 2023-08-31T16:20:55 | abef3e9f10de063495d1479bd85d6feae7c73ebd | {
"blob_id": "abef3e9f10de063495d1479bd85d6feae7c73ebd",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T16:20:55",
"content_id": "e3efaec4852af543bab5415d6242bf21de30172f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "99bdb3251fecee538e0630f15f6574054dfc1468",
"extensio... | stackv2 | /*
* Copyright (c) 2006-2019, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#ifndef __RT_HW_CPU_H__
#define __RT_HW_CPU_H__
#include <rthw.h>
#include <rtthread.h>
#include <stdbool.h>
#ifndef RT_CPUS_NR
#define RT_CPUS_NR 1
#endif /*... | 2.125 | 2 |
2024-11-18T21:41:18.921328+00:00 | 2015-10-26T18:09:34 | b4986a5a1823505cb33c6738067a0feb89bab412 | {
"blob_id": "b4986a5a1823505cb33c6738067a0feb89bab412",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-26T18:09:34",
"content_id": "e633b7f77c915fe94b86e5483a3c13c033713135",
"detected_licenses": [
"MIT"
],
"directory_id": "9ee7bcc7ee41094bf4cb18bbc753a9c8366fa5d2",
"extension": "c"... | stackv2 | #include "caos.h"
void test_clear_pixel_buf() {
caos_clear(0);
}
caos_entry("CLRPIXELS", test_clear_pixel_buf)
void test_clear_color_buf() {
caos_clear_color_buf((CAOS_GREEN<<3) | CAOS_RED);
}
caos_entry("CLRCOLOR", test_clear_color_buf)
void test_double_buf() {
char i;
// image0 pattern
caos_ir... | 2.359375 | 2 |
2024-11-18T21:41:19.096183+00:00 | 2015-08-19T07:02:00 | 873ee6140858c383d47e8b495a5c64dadf83b723 | {
"blob_id": "873ee6140858c383d47e8b495a5c64dadf83b723",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-19T07:02:00",
"content_id": "833cf038832f18abcaeb9a199abff6e9e8d71145",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "49192f2cb141373c665414825e547c946765cc1d",
"extensio... | stackv2 | /*! @file detect_peaks.h
* @brief Find extrema in 1D signal.
* @author Vadim Markovtsev <v.markovtsev@samsung.com>
* @version 1.0
*
* @section Notes
* This code partially conforms to <a href="http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml">Google C++ Style Guide</a>.
*
* @section Copyright... | 2.078125 | 2 |
2024-11-18T21:41:19.253106+00:00 | 2019-11-24T04:25:14 | b37b62069223c56436d3cd3cd5cda123b37e5eb8 | {
"blob_id": "b37b62069223c56436d3cd3cd5cda123b37e5eb8",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-24T04:25:14",
"content_id": "891ebc49a51ace8975100c8b2d0f1f4d02f23447",
"detected_licenses": [
"MIT"
],
"directory_id": "09033666d7283bfb0e77e3740a0f28c6b12217e4",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
#include <inttypes.h>
#include <string.h>
#include <errno.h>
#include <sys/ioctl.h>
#include "serial.h"
static int uart0_filestream = -1;
void serial_init(void)
{
uart0_filestream = open(PORTNAME, O_RDWR | O_NOCTTY | ... | 2.625 | 3 |
2024-11-18T21:41:19.379208+00:00 | 2021-04-16T10:03:02 | bc6b4f8d01fac26887eb7fb6be430c1e43072970 | {
"blob_id": "bc6b4f8d01fac26887eb7fb6be430c1e43072970",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-16T10:03:02",
"content_id": "dc0028a4ffed7b7b23b9fe588e28b82dd02c7161",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "086b9572490910b09df08772a4832e07e968b13f",
"extension": "... | stackv2 | #include "header.h"
error_t display(student*h)
{
student*p;
for (p = h->next; p != NULL; p = p->next)
{
printf("Roll Number: %d\n", p->rollnumber);
printf("Name: %s\n", p->name);
printf("Phone: %s\n", p->phone);
printf("Percentage: %0.4f\n\n", p->percentage);
}
return SUCCESS;
} | 2.78125 | 3 |
2024-11-18T21:41:19.539382+00:00 | 2019-02-24T16:04:10 | 0ff82e044ba2d55904a8ebf5f483f4b52a98d673 | {
"blob_id": "0ff82e044ba2d55904a8ebf5f483f4b52a98d673",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-24T16:04:10",
"content_id": "5eeb6c8f181c6beabd089a1e38010b0c566f7ee4",
"detected_licenses": [
"MIT"
],
"directory_id": "04893290e9222d123f80fe6e1fe14e141fb86792",
"extension": "h"... | stackv2 | /*
* keyb.h
*
* Created on: Jan 13, 2019
* Author: quinsy
*/
#ifndef KEYB_H_
#define KEYB_H_
// buttons
typedef enum {
button_a,
button_b,
button_c,
button_d,
button_star,
button_hash
} button;
typedef struct {
GPIO_TypeDef* input_pins_port;
GPIO_TypeDef* output_pins_port;
uint16_t* input_p... | 2.125 | 2 |
2024-11-18T21:41:19.620288+00:00 | 2013-12-30T06:10:50 | 7ff78bc1c8a84c18b9fcf61aff79ee1197930013 | {
"blob_id": "7ff78bc1c8a84c18b9fcf61aff79ee1197930013",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-30T06:10:50",
"content_id": "54d43d9adb9840011a8db0a7a81e34f10d4a3d62",
"detected_licenses": [
"MIT"
],
"directory_id": "1434ae4307bef7139443ed7082b46ef2c3e008c0",
"extension": "c"... | stackv2 | ////////////////////////////////////////////////////////////////////////////////
// Comments
// Solution to exerce 5-1.
// Demonstrates a getint() that ignores lone [+-]'s.
////////////////////////////////////////////////////////////////////////////////
// Libraries
#include <ctype.h>
#include "getch.h"
//////////... | 3.546875 | 4 |
2024-11-18T21:41:20.379319+00:00 | 2020-05-18T07:15:52 | 69844ea686e6c0a9df3a8a1b766265ee368e446d | {
"blob_id": "69844ea686e6c0a9df3a8a1b766265ee368e446d",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-06T09:41:38",
"content_id": "2fba2d633bd78e07659455470652994b3833f149",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d754fe76cbc753083b3c4dbdef5bd7a4dd28928d",
"extensio... | stackv2 | /*
*********************************************************************************************************
* INCLUDE FILES
*********************************************************************************************************
*/
#include "forward_list.h"
#include "conta... | 2.109375 | 2 |
2024-11-18T21:41:21.289177+00:00 | 2018-11-04T18:47:51 | e6cd2dfd9cb0d7458f2be911eb2f4c000e385546 | {
"blob_id": "e6cd2dfd9cb0d7458f2be911eb2f4c000e385546",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-04T18:47:51",
"content_id": "7120323356abbcc91311ce4e24c6c9a8a4eddfde",
"detected_licenses": [
"MIT"
],
"directory_id": "42c3afe82e78bd27076bb94e5ec03667aac3d366",
"extension": "h"... | stackv2 | /**
* \file speaker.h
* \brief Functions and definitions for using the PC speakers.
*/
#ifndef INCLUDE_SPEAKER_H
#define INCLUDE_SPEAKER_H
#include <stdint.h>
/**
* \brief The port addresses of the speaker.
*/
#define SPEAKER_PORT_ADDRESS 0x61
/**
* \brief Play the happy birthday song.
*/
void speaker_happy_b... | 2.25 | 2 |
2024-11-18T21:41:21.595158+00:00 | 2018-05-23T06:55:18 | b9b7b73005f6c9c13593729c9591fcd7205eadde | {
"blob_id": "b9b7b73005f6c9c13593729c9591fcd7205eadde",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T06:55:18",
"content_id": "2eef128a70b5706de7d468dee59c8a5a194472a4",
"detected_licenses": [
"MIT"
],
"directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd",
"extension": "c"... | stackv2 | // This program is a part of NITAN MudLIB
#include <ansi.h>
#include <combat.h>
string name() { return HIY "圆满势" NOR; }
inherit F_SSERVER;
void remove_effect(object me, int amount);
int perform(object me)
{
object weapon;
string wp;
int skill;
if( query_temp("yuan_man", me) )
... | 2.21875 | 2 |
2024-11-18T21:41:21.722376+00:00 | 2017-01-30T21:00:24 | 87b2cd626f8ee6bc1c445f759cd81ccb839ee618 | {
"blob_id": "87b2cd626f8ee6bc1c445f759cd81ccb839ee618",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-30T21:00:24",
"content_id": "ae2e8ad28ea24eacbc97f54a2f2ac769d94271d4",
"detected_licenses": [
"MIT"
],
"directory_id": "619f51a4a6f6f396e738577e2df673b55cac66d4",
"extension": "c"... | stackv2 | #include<stdlib.h>
#include<stdio.h>
#include<math.h>
int main(){
int n1;
int n2;
int num;
int k;
int i;
int v[1000];
do{
printf("inserire un valore positivo dispari e minore di 1000 \n");
scanf("%d", & n2);
}while(n2%2==0 || n2>1000 ||n2<0);
do{
printf("inserire un valore positivo minore di quello prece... | 3.40625 | 3 |
2024-11-18T21:41:25.689435+00:00 | 2020-07-17T13:33:31 | 4e095347f16cf00ae6b680cc9bd347f33d79e000 | {
"blob_id": "4e095347f16cf00ae6b680cc9bd347f33d79e000",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-17T13:33:31",
"content_id": "eee1aa44f7c0a07b1bc8050e5b1d4b4036b82bcc",
"detected_licenses": [
"MIT"
],
"directory_id": "cd58a839ef9f1c7017928353d9393ec9a73b8fe4",
"extension": "h"... | stackv2 | #include "token.h"
typedef enum ExpressionKind {
LiteralExpression,
BinaryExpression,
UnaryExpression,
} ExpressionKind;
typedef struct Expression Expression;
struct Expression {
ExpressionKind kind;
Token token;
union {
Expression* operand;
struct {
Expression* left;
Expression* right;
};
};
};
t... | 2.203125 | 2 |
2024-11-18T21:41:25.832364+00:00 | 2016-01-09T02:51:21 | 61feeaa231269217e5b2cfb9575fb08e807638ff | {
"blob_id": "61feeaa231269217e5b2cfb9575fb08e807638ff",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-09T02:51:21",
"content_id": "6aef6430d41b305088dc031a9abbaefabbee801b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0e2dfac0d21d20fa2bcbe025ace22c5ee220796d",
"extensio... | stackv2 | /**
* Copyright (c) 2015 Runtime Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 2.578125 | 3 |
2024-11-18T21:41:26.102492+00:00 | 2018-07-30T07:30:20 | 5e06c0be91ebc0d03657cb569149eaa61481d117 | {
"blob_id": "5e06c0be91ebc0d03657cb569149eaa61481d117",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-30T07:30:20",
"content_id": "426c3d93480078fe1885a7f561fcb1a9751148a2",
"detected_licenses": [
"MIT"
],
"directory_id": "d0283588a173826725a6f98d866d49a56d53143e",
"extension": "c"... | stackv2 | /*-------------------------------------------------------------------------
*
* smgr.c--
* public interface routines to storage manager switch.
*
* All file system operations in POSTGRES dispatch through these
* routines.
*
* Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFI... | 2.25 | 2 |
2024-11-18T21:41:26.602103+00:00 | 2021-07-03T22:35:39 | 471cf8cd0f9079810bc2a62778ba1db7594fb6e7 | {
"blob_id": "471cf8cd0f9079810bc2a62778ba1db7594fb6e7",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-03T22:35:39",
"content_id": "8344df7ddc0be5d3db92536590925c599b2d910f",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "9610f61cf2473c0d4d96682e53dd39310cd5345a",
"extens... | stackv2 | #pragma once
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE 1
#endif
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <memory.h>
#include <limits.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#ifndef... | 2.046875 | 2 |
2024-11-18T21:41:29.408997+00:00 | 2016-09-15T21:38:00 | 920037ae34786873a00654e94a0f58ea5df44a21 | {
"blob_id": "920037ae34786873a00654e94a0f58ea5df44a21",
"branch_name": "refs/heads/trunk",
"committer_date": "2016-09-15T21:38:00",
"content_id": "748c4c1939d614c74519a144f577a27e9458c5e2",
"detected_licenses": [
"ISC"
],
"directory_id": "2b1662052b2c117cd8f57db8983b673682f2340c",
"extension": "h",... | stackv2 | /* buffer.h - automatic buffer structure */
/*
* Copyright (c) 2008, Natacha Porté
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWA... | 2.625 | 3 |
2024-11-18T21:41:29.816621+00:00 | 2018-11-22T17:25:55 | 7251e345b2d1bd286bbd53175cbb7a6fd1d7e670 | {
"blob_id": "7251e345b2d1bd286bbd53175cbb7a6fd1d7e670",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-22T17:25:55",
"content_id": "21909857a96ec19161ee3945da071047c90eb57f",
"detected_licenses": [
"MIT"
],
"directory_id": "704a1ca10f821eeb6758fa4b23979e881d153f39",
"extension": "c"... | stackv2 | /*
** my_str_template.c for in /home/arbona/Projects/libs/lib/my/src/str/
**
** Made by Thomas Arbona
** Login <thomas.arbona@epitech.eu>
**
** Started on Wed Nov 9 12:55:24 2016 Thomas Arbona
** Last update Wed Nov 9 14:42:09 2016 Thomas Arbona
*/
#include <stdarg.h>
#define FLAG "%s"
int my_strlen(char *);
ch... | 2.890625 | 3 |
2024-11-18T21:41:29.895423+00:00 | 2015-09-04T12:06:22 | dc1e683b587e0f9a0d9ff1660fa144fb2d41319b | {
"blob_id": "dc1e683b587e0f9a0d9ff1660fa144fb2d41319b",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-04T12:06:22",
"content_id": "740159111616e2291cb3de54e0fc8813b771b474",
"detected_licenses": [
"MIT"
],
"directory_id": "d59bb638c01814dc635528d2c8ce681d3fcea095",
"extension": "c"... | stackv2 | #include "network.h"
#include "../permission/permission.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <strings.h>
#include <string.h>
#include <unistd.h>
#define SOCKET_QUEUE_SIZE 200
int create_socket(int port)
{
int sock = socket(AF_INET, SOCK_STREAM,... | 2.171875 | 2 |
2024-11-18T21:41:30.610151+00:00 | 2016-06-26T19:26:21 | e0aa8b62574c4536086623b6551db7f2ae5852a9 | {
"blob_id": "e0aa8b62574c4536086623b6551db7f2ae5852a9",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-26T19:26:21",
"content_id": "8acacd27503fb8499d390e01b55581b73650377f",
"detected_licenses": [
"MIT"
],
"directory_id": "584e49d6ced51ae9ee517b6ea63d471b94f8cdb0",
"extension": "h"... | stackv2 | /*/* ********************************************************************************************* */
/* * Common functions * */
/* * Authors: * */
/* * André Ban... | 2.0625 | 2 |
2024-11-18T21:41:30.847409+00:00 | 2023-06-03T01:20:51 | 8333ebac24ba1bdaeb66623f16ca147bfcd20002 | {
"blob_id": "8333ebac24ba1bdaeb66623f16ca147bfcd20002",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-03T01:20:51",
"content_id": "25912eb2a51a8cd6b2b41db26f7574e981a2ef43",
"detected_licenses": [
"MIT"
],
"directory_id": "3684b5f2554e42c8c553dafd3f62ad41094c2296",
"extension": "c"... | stackv2 | #include <unittest.h>
#include SOURCE_C
/*
* rn2483_toggle_output() toggles the output value of a radio gpio pin.
*/
static struct rn2483_desc_t radio_descriptor;
#include "rn2483_service_stubs.c"
static void reset (void)
{
sercom_uart_has_line_call_count = 0;
executed_state = (enum rn2483_state)-1;
... | 2.65625 | 3 |
2024-11-18T21:41:32.179149+00:00 | 2020-05-04T21:10:03 | befbab65a619bb163054c999b3b38ca53d8e207e | {
"blob_id": "befbab65a619bb163054c999b3b38ca53d8e207e",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-04T21:10:03",
"content_id": "d5c640fdecdb79e92320b003bc9d196e2d3fa4d1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1345f5094610b5a7c555326a18babf246cc72707",
"extens... | stackv2 | # include <stdio.h>
# include "nbadpix.h"
# if defined(NATIVE_IRAF)
# define max(a,b) ((a) > (b) ? (a) : (b))
# define min(a,b) ((a) < (b) ? (a) : (b))
# endif
/* B_EXTRACTWINDOW - Extract pixels from square window, discarding
* central pixel and any others outside image
* ... | 2.453125 | 2 |
2024-11-18T21:41:32.558628+00:00 | 2013-04-17T18:42:40 | b9745fdfe3e8319db79372fcd4fd61af17a1278a | {
"blob_id": "b9745fdfe3e8319db79372fcd4fd61af17a1278a",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-17T18:42:40",
"content_id": "7dcd020e081c860c880ece79676da72c313d7f62",
"detected_licenses": [
"MIT"
],
"directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef",
"extension": "c"... | stackv2 | #include "emu.h"
#include "video/konicdev.h"
#include "includes/battlnts.h"
/***************************************************************************
Callback for the K007342
***************************************************************************/
void battlnts_tile_callback(running_machine &machine, int l... | 2.125 | 2 |
2024-11-18T21:41:32.708729+00:00 | 2019-03-01T05:16:46 | c68d7ad31d25ac0755561c4eabe6d5a0019296a2 | {
"blob_id": "c68d7ad31d25ac0755561c4eabe6d5a0019296a2",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-01T05:16:46",
"content_id": "bf7ffa9525222dfdffa04bdaba3977f77b3a80a0",
"detected_licenses": [
"MIT"
],
"directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f",
"extension": "c"... | stackv2 | //Cracked by Kafei
#include <ansi.h>
inherit ITEM;
void create()
{
set_name(GRN"桃樹"NOR, ({ "tao shu", "shu", "tree" }) );
set_weight(300000);
set_max_encumbrance(5000000);
if( clonep() )
set_default_object(__FILE__);
else {
set("unit", "株");
... | 2.328125 | 2 |
2024-11-18T21:41:32.792527+00:00 | 2019-08-25T17:15:53 | 441a5e7e61f4e0a345d21f7a2f56b94460b5f33f | {
"blob_id": "441a5e7e61f4e0a345d21f7a2f56b94460b5f33f",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-25T17:15:53",
"content_id": "ce0f8ee4c7a6be7e47b8fa9484e4703079278e0f",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "82b04dffc69568b0dad7681cf7be6b69e09c781c"... | stackv2 | /**
* @brief Compute homo SE for OLS
*
* @e N length array of error terms
* @V kx by kx matrix with (X' X)^-1
* @se Array where to store SE
* @N Number of obs
* @kx Number of columns in A
* @return Store sqrt(diag(sum(@e^2 / (@N - @kx)) * @V)) in @se
*/
void gf_regress_ols_seunw (
ST_double *e,
ST_doub... | 2.46875 | 2 |
2024-11-18T21:41:32.897149+00:00 | 2019-02-23T04:01:03 | 54e284dcc1cdb3cdfa7dd0d95fbc25d508d43ab2 | {
"blob_id": "54e284dcc1cdb3cdfa7dd0d95fbc25d508d43ab2",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-23T04:01:03",
"content_id": "9943a91724f39058294e3553fe81aeb7b35b0069",
"detected_licenses": [
"MIT"
],
"directory_id": "f978be8bc90cbb22cfbb18bc8656ca130c4e7bf5",
"extension": "c"... | stackv2 | #include "pwmpca.h"
#include <C8051F120.h>
#include "C8051F120_io.h"
//------------------------------------------------------------------------------------
// Hardware IO CONSTANTS
//------------------------------------------------------------------------------------
__sbit __at (0xB0) PWMout0; // output... | 2.421875 | 2 |
2024-11-18T21:41:34.362394+00:00 | 2022-05-05T22:33:54 | e14d5cbe38090efc3bb48883fce249644e1cc60e | {
"blob_id": "e14d5cbe38090efc3bb48883fce249644e1cc60e",
"branch_name": "refs/heads/main",
"committer_date": "2022-05-05T22:33:54",
"content_id": "9a5b7639a90fdc532720e2efdf540cf10ecdfb7f",
"detected_licenses": [
"MIT"
],
"directory_id": "b6fd3ebe265cc089f76391068f07d2e7ea361e76",
"extension": "c",
... | stackv2 | /*
* Copyright (c) 1993-1995 Argonaut Technologies Limited. All rights reserved.
*
* $Id: datafile.c 1.4 1998/07/21 17:32:46 jon Exp $
* $Locker: $
*
* Data file support routines
*/
#include "fw.h"
#include "brassert.h"
#include "brhton.h"
#include "datafile.h"
#include "shortcut.h"
BR_RCS_ID("$Id: datafile.c 1... | 2.3125 | 2 |
2024-11-18T21:41:34.491268+00:00 | 2018-12-19T16:09:58 | 27665811116f40daf9629b5f30057f1d9236ff06 | {
"blob_id": "27665811116f40daf9629b5f30057f1d9236ff06",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-19T16:09:58",
"content_id": "9be8e21c71259097de02b2fcdb61ccf8d3a5cbd4",
"detected_licenses": [
"MIT"
],
"directory_id": "f63561df05402983523cfb27c1b81c9f9e1f73c7",
"extension": "c"... | stackv2 | #include <assert.h>
#include <forkgc.h>
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
typedef struct obj obj;
struct obj
{
obj *next;
size_t data;
};
static volatile int forked;
static void *waiter (void *ignored)
{
usleep(1000 * 1000); // should be interrupted by the fork.
forked = 1;... | 3.1875 | 3 |
2024-11-18T21:41:34.600484+00:00 | 2020-11-14T15:23:19 | da07fc35957059df5f089ece1e35b184324f8d06 | {
"blob_id": "da07fc35957059df5f089ece1e35b184324f8d06",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-14T15:23:19",
"content_id": "e41989bdf7468d8ac71cd3c23a45574f2b3b5754",
"detected_licenses": [
"MIT"
],
"directory_id": "2d0235ef124eb8d4247acd149e86ac9123bd4c3c",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "bb.h"
void *func1 (void *r)
{
for (int i = 0; i < 10000; i++){
bb_put(i);
}
pthread_exit(NULL);
}
void *func2 (void *r)
{
for (int i = 0; i < 10000; i++){
printf("%d\n",bb_get());
}
pthread_exit(NULL);
}
int main(){
... | 2.828125 | 3 |
2024-11-18T21:41:35.618684+00:00 | 2020-10-01T06:10:55 | 5a30985db1f553146bed4cd6a6df5e4b6a2626d2 | {
"blob_id": "5a30985db1f553146bed4cd6a6df5e4b6a2626d2",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-01T06:10:55",
"content_id": "835ee6acaf125478d6d8edb04e1605dd91a5e41e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c41e9289daf68c3fd73317ef1c279ffd988ccd1b",
"extens... | stackv2 | #include "kegogi.h"
#include "fuzzrnd.h"
#include <http11/httpclient_parser.h>
#include <dbg.h>
#include <task/task.h>
#include <bstr/bstrlib.h>
#include <pattern.h>
#include <getopt.h>
#include "httpclient.h"
#include "kegogi_parser.h"
#include "kegogi_tokens.h"
#define MAX_COMMANDS 1024
struct tagbstring DEFAULT_H... | 2.140625 | 2 |
2024-11-18T21:41:35.819061+00:00 | 2021-07-08T21:36:32 | dfc679042a54c9dcabf9a4dde0072e2b236aa708 | {
"blob_id": "dfc679042a54c9dcabf9a4dde0072e2b236aa708",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-08T21:36:32",
"content_id": "315e054dd8a2f05ac9b123999ca15a779e9e5b9f",
"detected_licenses": [
"MIT"
],
"directory_id": "6a46e3ecd636602b4d020489e144c78e92819c4a",
"extension": "c"... | stackv2 | /**
* \file SigningKeyPair_generateNative.c
*
* Generate a digital signature keypair using the Velo crypto suite.
*
* \copyright 2017-2020 Velo Payments, Inc. All rights reserved.
*/
#include <cbmc/model_assert.h>
#include <string.h>
#include <vccrypt/suite.h>
#include <vpr/parameters.h>
#include "../init/init... | 2.234375 | 2 |
2024-11-18T21:41:36.240847+00:00 | 2023-08-30T05:36:57 | e30c6894ff9d7d4397955da8251a67287fe41d9d | {
"blob_id": "e30c6894ff9d7d4397955da8251a67287fe41d9d",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T05:36:57",
"content_id": "1d8c989a58b1242db7b4d14d8f220dd291ff9aec",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bfb49b61aeca694f7c5d15de1df3e397ec3e8247",
"extens... | stackv2 | /*
module : _genrec.c
version : 1.2
date : 08/23/23
*/
#ifndef _GENREC_C
#define _GENREC_C
/**
OK 3170 (_genrec) : DDDDU [B] [T] [R1] [R2] -> ...
Executes B, if that yields true, executes T.
Else executes R1 and then [[[B] [T] [R1] R2] genrec] R2.
*/
void _genrec_(pEnv env)
{
int i, j, size;
... | 2.640625 | 3 |
2024-11-18T21:41:36.310369+00:00 | 2020-04-12T03:24:16 | bb55d8d1b36e62c72196b244a5636f5506cbf7e9 | {
"blob_id": "bb55d8d1b36e62c72196b244a5636f5506cbf7e9",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-12T03:24:16",
"content_id": "38f630fedc0744dc4ed435abb0826ab48812f4a1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "faa4b2a8bccbf81637a5f0c6a673c15631d91445",
"extens... | stackv2 | /**
* defs.h
* Global defines.
*/
#ifndef DEFS_H_
#define DEFS_H_
/* yes, this works with -std=gnu11 */
#define auto __auto_type
/* Just an abbreviation to keep asm code narrow. */
#define IO_ _SFR_IO_ADDR
#ifndef __ASSEMBLER__
/* thank u chrome */
#define COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(size... | 2.28125 | 2 |
2024-11-18T21:41:36.445926+00:00 | 2020-01-14T22:07:47 | a3406cb065342be1cb12ebe5477f9f801029ac31 | {
"blob_id": "a3406cb065342be1cb12ebe5477f9f801029ac31",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-14T22:07:47",
"content_id": "851e165efb4c14471f47334e66e225b5abd2182b",
"detected_licenses": [
"Zlib"
],
"directory_id": "292efec6216d32fa33b2d38c919f45749da82b7f",
"extension": "h... | stackv2 | #ifndef VEC_H
#define VEC_H
#include "Vec_config.h"
typedef struct
{
void *elements;
size_t elementSize;
size_t count;
size_t capacity;
} Vec;
void Vec_Init(Vec *vector, size_t elementSize, size_t initialCapacity);
void Vec_Clone(Vec *vector, const Vec *source);
void Vec_Destroy(Vec *vector);
void V... | 2.78125 | 3 |
2024-11-18T21:41:36.597998+00:00 | 2014-01-05T15:10:28 | 8d2f5c1881e8d2cd84ae2099e5fe2d07ee314856 | {
"blob_id": "8d2f5c1881e8d2cd84ae2099e5fe2d07ee314856",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-05T15:10:28",
"content_id": "1701c89511b8fb7fa312a4bc1ad70adda9d089f4",
"detected_licenses": [
"MIT"
],
"directory_id": "46244c7cfb4e752de0531b54c15f9855ec2bceeb",
"extension": "c"... | stackv2 | // Largest palindrome product
// Find the largest palindrome made from the product of two 3-digit numbers.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int isPalindrome(long int number, int digit){
// It only accepts digit*2 sizes, not safe at all
char *arr;
int i;
if ( number >= (long int)pow(10,-1 +... | 3.625 | 4 |
2024-11-18T21:41:36.714805+00:00 | 2021-08-18T02:38:08 | 689668829175ccdfa4f867945cc78765d1c5f916 | {
"blob_id": "689668829175ccdfa4f867945cc78765d1c5f916",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-18T02:38:08",
"content_id": "7f2f7674512513198b15d665e244fb81337d0a7b",
"detected_licenses": [
"Apache-2.0",
"curl"
],
"directory_id": "11ddbb17eebddb29a4dbd2e89cf1e403a4e5942d",... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "v1alpha1_volume_attachment_source.h"
v1alpha1_volume_attachment_source_t *v1alpha1_volume_attachment_source_create(
v1_persistent_volume_spec_t *inline_volume_spec,
char *persistent_volume_name
) {
v1alpha1_volume_attachment_source_... | 2.359375 | 2 |
2024-11-18T21:41:36.859988+00:00 | 2019-07-06T16:28:53 | 6f6f82979955b17331a4c14ab25c150b6376ac3c | {
"blob_id": "6f6f82979955b17331a4c14ab25c150b6376ac3c",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-06T16:28:53",
"content_id": "5a253cf4b960f6176126301e881e412c855e53a5",
"detected_licenses": [
"MIT"
],
"directory_id": "fa1b9747fdb536c389fc58a43b5191d4a80e7eba",
"extension": "c"... | stackv2 | /*
* Copyright (c) 1991 Eric A. Edwards
*
* This file is part of Cato, an implemenation of D.A.M.M.I.T.
*
* 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... | 2 | 2 |
2024-11-18T21:41:37.281280+00:00 | 2021-01-25T16:46:13 | 3445f6172dcba5a95458f94594503f3584af6e17 | {
"blob_id": "3445f6172dcba5a95458f94594503f3584af6e17",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-25T16:46:13",
"content_id": "df914916976d271c0d2570cfbe33288b346451c0",
"detected_licenses": [
"MIT"
],
"directory_id": "127da0eb73d4bd040654a97f39b0654ffb0655ea",
"extension": "h"... | stackv2 | #ifndef GPIO_H
#define GPIO_H
#include <avr/io.h>
//Macros to read/write IO by single names instead of REG+BIT everywhere
#define IO_OUTPUT(port) _IO_OUTPUT(port)
#define _IO_OUTPUT(port) do { \
_IO_DDR_REG_ ## port |= _BV(_IO_BIT_ ## port); \
} while(0)
#define IO_INPUT(port) _IO_INPUT(port)
#define _IO_INPUT(p... | 2.078125 | 2 |
2024-11-18T21:41:37.345171+00:00 | 2019-07-21T17:32:10 | 03ab685eaf9ffae1ffc8e80811296365385527fe | {
"blob_id": "03ab685eaf9ffae1ffc8e80811296365385527fe",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-21T17:32:10",
"content_id": "59c4d243bffa90ebde8a369fc67ecd99fa7f15d1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "fa461fff3aad1c9e5da57fdda4cf190007f02a2a",
"extens... | stackv2 | /* ircium-message-tag.c
*
* Copyright 2019 Jani Juhani Sinervo <jani@sinervo.fi>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) a... | 2.140625 | 2 |
2024-11-18T21:41:37.654479+00:00 | 2015-04-15T20:12:39 | 125e0e02cd2bfa3fe099acaee85c3f09a0a95b48 | {
"blob_id": "125e0e02cd2bfa3fe099acaee85c3f09a0a95b48",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-15T20:12:39",
"content_id": "e1b5af9086fb2cca1a611111139b25d276d3aef2",
"detected_licenses": [
"MIT"
],
"directory_id": "6ea0c5eab10632c18580d79832c333818d520175",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include "realtime_dynamic_int_heap.h"
static void heap_print(Heap const * const heap);
static void heap_print(Heap const * const heap) {
for (size_t i = 0; i < heap_size(heap)-1; i++)
printf("%d ", stack_get(heap, i));
printf("%d\n", stack_get(heap, heap_size(heap)-1));... | 3 | 3 |
2024-11-18T21:41:38.610913+00:00 | 2019-04-15T20:51:06 | b4b2b5eec35f8f7a7db0f03e12c9ee9df11465ec | {
"blob_id": "b4b2b5eec35f8f7a7db0f03e12c9ee9df11465ec",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-15T20:51:06",
"content_id": "920cd5b455342096f5e56b48e31131b6420ee880",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "848e436f9caab30f263d8d65be4a7f869f5d13b3",
"extensio... | stackv2 | #include <stdio.h>
#include <espressif/esp_wifi.h>
#include <espressif/esp_sta.h>
#include <espressif/esp_common.h>
#include <esp8266.h>
#include <FreeRTOS.h>
#include <task.h>
#include <led_codes.h>
#include "check_wifi.h"
bool wifi_connected;
void checkWifiTask(void *pvParameters)
{
uint8_t status ;
wifi... | 2.140625 | 2 |
2024-11-18T21:41:38.684210+00:00 | 2019-11-06T20:22:41 | d0294cd6f15d0f0894124225ca765d05f3d9071d | {
"blob_id": "d0294cd6f15d0f0894124225ca765d05f3d9071d",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-06T20:22:41",
"content_id": "e5190ef529bce39dc56d8ba51cf09b803c79c5d0",
"detected_licenses": [
"MIT"
],
"directory_id": "ed117c8873a8e6ba2912d4e073f07cca73b2e5f0",
"extension": "c"... | stackv2 | #include <fudge.h>
#include <abi.h>
static void ondata(struct channel *channel, void *mdata, unsigned int msize)
{
struct job_status status;
struct job jobs[32];
status.start = mdata;
status.end = status.start + msize;
while (status.start < status.end)
{
unsigned int njobs = job_par... | 2.15625 | 2 |
2024-11-18T21:41:39.242073+00:00 | 2017-08-03T08:39:43 | 890b0f42def07d2bb5c73dbed66bc1f5fc770e5d | {
"blob_id": "890b0f42def07d2bb5c73dbed66bc1f5fc770e5d",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-03T08:39:43",
"content_id": "3572c992f8b402ac3e03ea221d656e8f092be9fe",
"detected_licenses": [
"MIT"
],
"directory_id": "8700fa500c760a8049c65df590632783cd64940a",
"extension": "c"... | stackv2 | #include <stdio.h>
/* getuid() geteuid() */
#include <unistd.h>
#include <sys/types.h>
/* objcopy from linkdata.jpg */
extern char _binary_linkdata_jpg_start[];
extern char _binary_linkdata_jpg_end[];
extern char _binary_linkdata_jpg_size[];
const char *start = _binary_linkdata_jpg_start;
const char *end = _binary_li... | 2.40625 | 2 |
2024-11-18T21:41:39.646844+00:00 | 2015-02-03T07:02:18 | 9e67d6d6dc3553818bf48f00517b3d961422771b | {
"blob_id": "9e67d6d6dc3553818bf48f00517b3d961422771b",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-03T07:02:18",
"content_id": "1facb5fa835a6226648b94cf9bf4fe66872bfc41",
"detected_licenses": [
"MIT"
],
"directory_id": "4ec56f689b7d64a16ce025018a7a4b5b957e2c6d",
"extension": "c"... | stackv2 | #include <czmq.h>
#include <stdlib.h>
#define request "Hello"
#define reply "Noone home, go away!!!"
int main (int argc, char** argv)
{
char buff[128];
if(argc != 2) {
printf("Usage server ip\n");
exit(1);
}
int port = 16000 + (random() % 1000);
sprintf(buff, "tcp://*:%d", port);
... | 2.453125 | 2 |
2024-11-18T21:41:40.190765+00:00 | 2019-04-29T08:27:26 | 20c6bb905e63da860a64e4ec823b2fc032feb6be | {
"blob_id": "20c6bb905e63da860a64e4ec823b2fc032feb6be",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-29T08:27:26",
"content_id": "b40f6d6be2104dcedf12f15a9cc124eedff247a4",
"detected_licenses": [
"MIT"
],
"directory_id": "cc10c1c9be513207416cf5fd78b514d3cbd72384",
"extension": "c"... | stackv2 | /*******************************************************************************
* Contributors:
*
* Ajay Garg <ajay.garg@sensegrow.com>
*
*******************************************************************************/
#include "../driver/include/globals.h"
#include "../driver/include/data_logger.h"
/*
*... | 2.390625 | 2 |
2024-11-18T21:41:40.281200+00:00 | 2017-04-17T08:11:18 | a38aa3c44df1dba7723c2e5e3eadfa65f24ec9aa | {
"blob_id": "a38aa3c44df1dba7723c2e5e3eadfa65f24ec9aa",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-18T08:47:03",
"content_id": "36b4566d35b8174c21fbdffe237a06fd0c30a742",
"detected_licenses": [
"MIT"
],
"directory_id": "7a0640fd0286b9a816241661f938c537909c96ed",
"extension": "c"... | stackv2 | /*
* MIT License
*
* Copyright (c) 2016 Michelangelo De Simone <michel@ngelo.eu>
*
* 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... | 2.234375 | 2 |
2024-11-18T21:41:40.856542+00:00 | 2020-05-20T17:35:45 | 2ecd2b717914d652c53e1901c242a13b2a5436f8 | {
"blob_id": "2ecd2b717914d652c53e1901c242a13b2a5436f8",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-20T17:35:45",
"content_id": "e5e35b4f760870d898b828a569b2129834117db1",
"detected_licenses": [
"MIT"
],
"directory_id": "e2a146f3835f205f0c3b8399bc9bc8ea379fab6f",
"extension": "c"... | stackv2 | #include<stdint.h>
#include<stdlib.h>
#include<stdio.h>
#include<omp.h>
typedef struct {int64_t nteam; int64_t nthread; int64_t team_n; int64_t thread_n;} tinfo;
int
main(int argc, char **argv)
{
const int64_t narr = 1 << 10;
tinfo tinit = {-1, -1, -1, -1};
tinfo *t = aligned_alloc(1 << 22, sizeof(tinfo)*narr);
fo... | 2.578125 | 3 |
2024-11-18T21:41:40.915048+00:00 | 2019-08-06T04:44:45 | d506402f205068383a76c9d7e1bdefe7d9ecdf2c | {
"blob_id": "d506402f205068383a76c9d7e1bdefe7d9ecdf2c",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T04:44:45",
"content_id": "c4261d5b61a4164c34236fc41bfe8fc606ed35e9",
"detected_licenses": [
"MIT"
],
"directory_id": "b68286b0228eb3e9d0fe3b89fb351f5d74314e62",
"extension": "c"... | stackv2 | #include <stdio.h>
int main()
{
int tam;
scanf("%d", &tam);
switch(tam)
{
case 3:
printf("Equilatero\n");
break;
case 4:
printf("Quadrado\n");
break;
case 5:
printf("Pentagono\n");
break;
case 6:
... | 3.328125 | 3 |
2024-11-18T21:41:41.153703+00:00 | 2021-06-15T10:36:38 | e959cbf53431ec24129dff343cc8121bcb6529d5 | {
"blob_id": "e959cbf53431ec24129dff343cc8121bcb6529d5",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-15T10:36:38",
"content_id": "cf4ade737ccd140024ee58e6ef7b3b1c5fb13a5f",
"detected_licenses": [
"MIT"
],
"directory_id": "40bf538a698b165b3e9f36b8df25adc400816280",
"extension": "h"... | stackv2 | #include <PinChangeInterrupt.h>
// #include "Arduino.h"
const int pinA = 18;
const int pinB = 19;
volatile long position = 0;
void printPosition() {
// Serial.println("Position: " + (String)position);
Serial.print('$');
Serial.print(position);
Serial.print(';');
}
void triggerA() {
if (digitalRe... | 2.703125 | 3 |
2024-11-18T21:41:41.639545+00:00 | 2018-11-14T05:46:33 | 37a9b2ef219dafc0cb6057e82f0e30951a8afb36 | {
"blob_id": "37a9b2ef219dafc0cb6057e82f0e30951a8afb36",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-14T05:46:33",
"content_id": "04884a15fe6e5597b7cf64688fd4cca8a8c9a3f2",
"detected_licenses": [
"MIT"
],
"directory_id": "06af94f84486324de75faf9aa6bf1eecf605aac1",
"extension": "c"... | stackv2 | #include "fb.h"
#include "metodos.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include "anima.h"
#include "5x5_font.h"
#define CHAR_WIDTH (sizeof(font) / 96)
#define CHAR_HEIGHT 8
#define SCROLL_DELAY 100
#define LETTER_SPACE 1
#define LETTER_WIDTH (CHAR_WIDTH +... | 2.640625 | 3 |
2024-11-18T21:41:41.709034+00:00 | 2012-07-29T20:11:19 | 8bbd039551bdf3dfb68be12c96d64471b0d71e35 | {
"blob_id": "8bbd039551bdf3dfb68be12c96d64471b0d71e35",
"branch_name": "refs/heads/master",
"committer_date": "2012-07-29T20:11:19",
"content_id": "16fdafab7fc913487a8115c3c217b7021a6e8cf1",
"detected_licenses": [
"BSD-2-Clause-Views",
"BSD-2-Clause"
],
"directory_id": "e2e2d70a7b6767d555d5fee630... | stackv2 | #include "headers.h"
#include <math.h>
game_obj* newTarget(game_obj* list, float x, float y, float z, float angle)
{
game_obj* targ = newListNode(list);
targ->type = TARGET;
targ->data = (float *)malloc(5 * sizeof(float));
targ->data[TARGET_X] = x;
targ->data[TARGET_Y] = y;
targ->data[TARGET_Z] = z;
targ->data... | 2.453125 | 2 |
2024-11-18T21:41:42.045067+00:00 | 2018-10-30T00:13:18 | e0e34ba4f89617f8adf790be50b8f7e9d3015777 | {
"blob_id": "e0e34ba4f89617f8adf790be50b8f7e9d3015777",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-30T00:13:18",
"content_id": "da9fc11e1fa21eb082c4f0ae7bc115dcf7b7b0ec",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "121f9c8ef810ff2ed194c8771613305703d7dcf9",
"extens... | stackv2 | /*
* @TAG(OTHER_MIT)
*/
// Originally sourced from https://github.com/booksbyus/zguide
// Task ventilator
// Binds PUSH socket to tcp://localhost:5557
// Sends batch of tasks to workers via that socket
#include <zmq.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define randof(num) (int) ((float)... | 2.859375 | 3 |
2024-11-18T21:41:42.158819+00:00 | 2017-07-05T10:11:43 | 5a9215bf06fe46f9baebf7c1926b664e60601594 | {
"blob_id": "5a9215bf06fe46f9baebf7c1926b664e60601594",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-05T10:11:43",
"content_id": "945be5caaf51b0009d912e5e1a840a54b0e81d81",
"detected_licenses": [
"MIT"
],
"directory_id": "e59bdfa3011062481ed3cb178707b88c2667737c",
"extension": "c"... | stackv2 | //
// WYVector.c
// 01-链表
//
// Created by 王俨 on 2017/6/7.
// Copyright © 2017年 com.minyan.www. All rights reserved.
//
#include "WYVector.h"
/// 申请向量存储空间
void getArray(WYVector *vector) {
vector->elements = (WYElementType *)malloc(sizeof(WYElementType) * vector->arraySize);
if (vector->elements == NULL)... | 3.390625 | 3 |
2024-11-18T21:41:42.609627+00:00 | 2015-11-14T21:53:45 | 5b66b5d20be6ec62d1134abb3527be11953a21ed | {
"blob_id": "5b66b5d20be6ec62d1134abb3527be11953a21ed",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-14T21:53:45",
"content_id": "a8073fdb4d440c76b448607f0a8b6f36dabc2557",
"detected_licenses": [
"MIT"
],
"directory_id": "b6bdbe8fd26039d375019edb1ce190aff42aa952",
"extension": "c"... | stackv2 | /****************************************************************************
* dictionary.c
*
* Computer Science 50
* Problem Set 5
*
* Implements a dictionary's functionality.
***************************************************************************/
#include <ctype.h>
#include <stdbool.h>
#include <stdio.h... | 3.53125 | 4 |
2024-11-18T21:41:42.684640+00:00 | 2018-10-19T06:00:44 | cb500e898090575a641bd8c27e34754a56055e1e | {
"blob_id": "cb500e898090575a641bd8c27e34754a56055e1e",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-19T21:58:46",
"content_id": "2edf897da605a88175492be136104b42fb4652f8",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "4d39dcf549f4794b5acb5b5194bb8e996b6ce8db"... | 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.
#pragma once
#include <lib/async/dispatcher.h>
#include <zircon/fidl.h>
__BEGIN_CDECLS
// A generic FIDL dispatch function.
//
// For FIDL interfaces wi... | 2.0625 | 2 |
2024-11-18T21:41:43.544002+00:00 | 2021-06-28T08:12:41 | 533e1457cd069f7475e5a32e6ca277035c33e804 | {
"blob_id": "533e1457cd069f7475e5a32e6ca277035c33e804",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-28T08:12:41",
"content_id": "be108c72f73ba94701ef3bfc5e5dffbce3404e58",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ddda55fcfc84ac5cd78cfc5c336a3df0b9096157",
"extensio... | stackv2 | /**
***********************************************************************************************************************
* Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the... | 2.453125 | 2 |
2024-11-18T21:41:43.605846+00:00 | 2022-06-11T19:00:22 | 0f6e049764c4c8521904ee6d0c83958f91355888 | {
"blob_id": "0f6e049764c4c8521904ee6d0c83958f91355888",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-11T19:00:22",
"content_id": "246afd78ddbb1fa202c14846eda905d0597807e2",
"detected_licenses": [
"MIT"
],
"directory_id": "fb452567d30f7a911e7d753e616548a1b1166883",
"extension": "c"... | stackv2 | #include "lowm_modes.h"
int main(int argc, char** argv){
SimProperties sp;
char* dir;
FILE* pStdout;
Timer tCompute, tIO;
PolyTimeLapse ptl;
if(argc<2){
printf("Need basedir\n");
exit(0);
}
dir = argv[1];
if(argc>=3){
sp.neFile = argv[2];
}
else
sp.neFile = NULL;
pStdout = fopen("/dev/stdout... | 2.046875 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.