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:52:32.626210+00:00 | 2014-02-21T05:49:19 | 6d00ebc7592409ecc3c57258481310cb0bac67d1 | {
"blob_id": "6d00ebc7592409ecc3c57258481310cb0bac67d1",
"branch_name": "refs/heads/master",
"committer_date": "2014-02-21T05:49:19",
"content_id": "b99d436e8daeee18a6f8128b48fc7c5faeebdd10",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "061b17b310b044e090c41e13becbfa8d6c4b1b17",
"extensio... | stackv2 | #include <stdio.h>
#if defined(WIN32)
#include <windows.h>
#else
#include <dlfcn.h>
#endif /* WIN32 */
void *
load(const char *pluginName)
{
void *rv = 0;
/* attempt to open the plugin */
#if defined(WIN32)
rv = LoadLibrary(pluginName);
#else
rv = dlopen(pluginName, RTLD_LAZY);
#endif /* WIN32 */
#if defined(_D... | 2.25 | 2 |
2024-11-18T21:52:32.826411+00:00 | 2023-06-02T13:46:19 | d90147b7ace7c5c873e7f1f8512cf6d46ddba175 | {
"blob_id": "d90147b7ace7c5c873e7f1f8512cf6d46ddba175",
"branch_name": "refs/heads/3.16.0-stm32mp",
"committer_date": "2023-07-28T12:39:20",
"content_id": "8cd83dcf0bb6f1ef383d67d0630ee846b46f94c5",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a8378f8953015617c24004b33177cdfe45422174",
... | stackv2 | // SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2021, Bootlin
*/
#include <assert.h>
#include <drivers/clk.h>
#include <drivers/clk_dt.h>
#include <initcall.h>
#include <kernel/boot.h>
#include <kernel/dt_driver.h>
#include <kernel/panic.h>
#include <libfdt.h>
#include <stddef.h>
TEE_Result clk_dt_get_b... | 2.265625 | 2 |
2024-11-18T21:52:33.444849+00:00 | 2021-03-27T01:47:20 | 08206e95b98a5a297fead7117e7b4f090f1be7ea | {
"blob_id": "08206e95b98a5a297fead7117e7b4f090f1be7ea",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-27T01:47:20",
"content_id": "c2760b83e4c4943b99727d3f6b9c6f62d9e185fc",
"detected_licenses": [
"MIT"
],
"directory_id": "d2a7f87f86dcabb6891003a96e76dfa921037339",
"extension": "c",
... | stackv2 | /*
============================================================================
Name : exercicio_sala02.c
Author : Eduardo Ferreira
RA : 5012699818
============================================================================
*/
/* Enunciado do exercício:
Faça um programa de cálculo de custo ... | 3.25 | 3 |
2024-11-18T21:52:35.451730+00:00 | 2021-12-28T17:24:36 | f14291f70fb06c172e6f0d2b1dafea576e65c882 | {
"blob_id": "f14291f70fb06c172e6f0d2b1dafea576e65c882",
"branch_name": "refs/heads/master",
"committer_date": "2021-12-28T17:48:13",
"content_id": "a178f96637badb6bea1b0d4010ed582ac7183372",
"detected_licenses": [
"MIT"
],
"directory_id": "cc1c7997d84ff907f793e438c4ec3e7e4a0f77d5",
"extension": "c"... | stackv2 | /* Toy program from paper of R. Chadha et. al "Computing information flow using symbolic model-checking"*/
/* Should leak 2 bit */
int main() {
int H = INPUT(int);
int O = 0;
while (H >= 5 && H < 20){
H = H - 5;
O = O + 1;
}
OBSERVE(O);
}
| 2.203125 | 2 |
2024-11-18T21:52:35.962536+00:00 | 2018-01-20T03:55:08 | 15a2923999baaddbf04439a41eb45b7071037bd3 | {
"blob_id": "15a2923999baaddbf04439a41eb45b7071037bd3",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-20T03:55:08",
"content_id": "21d3d923205a2638999922ca67d5bfcf16a057da",
"detected_licenses": [
"MIT"
],
"directory_id": "f02f0b822ec59be2691d682af1a3ea389b9b1ae3",
"extension": "c"... | stackv2 | /*
* Operating System Project1 problem2
* Copyright (c) 2017 Marsl
*/
//-----------------------------------------------------------
/*
*Test your new system call
*a simple C program which calls ptree
*the entire process tree (in DFS order)
*using tabs to indent children with respect to their parents.
*/
//-------------... | 3.125 | 3 |
2024-11-18T21:52:38.782587+00:00 | 2023-08-30T16:07:24 | bf9c97884d13445af271774c4f33bcaa67a496dc | {
"blob_id": "bf9c97884d13445af271774c4f33bcaa67a496dc",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T16:07:24",
"content_id": "bda9702485cbf9afd246bbca53981e88f5b52f15",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "331640994b1b6f66c1639278571ddbdc6c8c0751",
"extensio... | stackv2 | /*
* Copyright (C) Igor Sysoev
* Copyright (C) NGINX, Inc.
*/
#include <nxt_main.h>
static nxt_int_t nxt_credential_groups_get(nxt_task_t *task, nxt_mp_t *mp,
nxt_credential_t *uc);
nxt_int_t
nxt_credential_get(nxt_task_t *task, nxt_mp_t *mp, nxt_credential_t *uc,
const char *group)
{
struct group ... | 2.28125 | 2 |
2024-11-18T21:52:39.299077+00:00 | 2022-11-05T17:46:59 | abf3058c125289665c9f3dce7fbb2bc59340e82b | {
"blob_id": "abf3058c125289665c9f3dce7fbb2bc59340e82b",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-05T17:46:59",
"content_id": "fcfa3d8227f59f0a72fa55359ee3d16a32befdcc",
"detected_licenses": [
"MIT"
],
"directory_id": "c07d5913ecf3a23e5ba5b7fb1ed5f39550a86e96",
"extension": "c"... | stackv2 | /*
エラーチェックの方針は TableAccessor.c と同じ。
[$]カラム
カラム名のチェックでスルーする。
引数に条件が必要な関数で無条件を指定したい場合、条件は一つ以上指定しなければならないので、
[$] = "" という条件を代わりに指定すること。
*/
#include "TableReader.h"
static void CheckColNames(autoList_t *colNames)
{
char *colName;
uint colidx;
errorCase(!colNames);
errorCase(getCount(colNames) < 1);
foreac... | 2.625 | 3 |
2024-11-18T21:52:39.376637+00:00 | 2021-08-12T11:48:32 | f8d950f067936fa09a1e29a5137fc98ac0a4dd73 | {
"blob_id": "f8d950f067936fa09a1e29a5137fc98ac0a4dd73",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-12T11:48:32",
"content_id": "93167f8d8d2951114b50c1ce0c9c1b1b5055b2f4",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e8c6cca5156f44dc6adb589fd11c278f4950fa21",
"extens... | stackv2 | //
// hgimg system structures
//
#ifndef __hginc_h
#define __hginc_h
#include "geometry.h"
// プリミティブコード
enum {
PRIM_NONE = 0,
PRIM_PFILL,
PRIM_PPOINT,
PRIM_PLINE,
PRIM_PSPRITE,
PRIM_PBGSPR,
PRIM_POLY4F,
PRIM_POLY4T,
PRIM_POLY4FS,
PRIM_POLY4TS,
PRIM_POLY4FGS,
PRIM_POLY4TGS,
PRIM_POLY4EF,
PRIM_POLY4ET,
PRIM_LINE4F,
PRIM... | 2.265625 | 2 |
2024-11-18T21:52:39.441240+00:00 | 2015-12-07T10:09:56 | 9690e0e6d0a223ddf18a78ebf9ed75d261e5140a | {
"blob_id": "9690e0e6d0a223ddf18a78ebf9ed75d261e5140a",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-07T10:09:56",
"content_id": "c59656acbf0c98444e3a8e0651498a107343f05a",
"detected_licenses": [
"MIT"
],
"directory_id": "b4cea333a27f0bace87d4d4dd685929db1d917d4",
"extension": "c"... | stackv2 | void ftoc(double *y,double *f,double *a_x,double *a_y,int mesh_tracker)
{
//the value of the residuals that has to be found
double res_2i_2j,res_2i_min_1_2j,res_2i_plus_1_2j;
double res_2i_2j_min_1,res_2i_min_1_2j_min_1,res_2i_plus_1_2j_min_1;
double res_2i_2j_plus_1,res_2i_min_1_2j_plus_1,res_2i_plus_1_2j_plus_1... | 2.171875 | 2 |
2024-11-18T21:52:39.798511+00:00 | 2019-03-26T12:11:24 | 0248027c0c1b7fa1161d5cb96b908e34ea990a50 | {
"blob_id": "0248027c0c1b7fa1161d5cb96b908e34ea990a50",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-26T12:11:24",
"content_id": "1bc6cb97b399e206d4a0c26c10ba16c2fd90ed87",
"detected_licenses": [
"MIT"
],
"directory_id": "f588d1509500fa5e50fba00afd5edbaff6d8c552",
"extension": "c"... | stackv2 | /*
* dht11.c
*
* Created: 15-Jan-19 9:25:05 AM
* Author : Ranul Deepanayake
*/
#include "dht11.h"
/*
Initiates communication with the DHT11 sensor and obtains measurements.
Uses a bit banged single wire custom serial communications protocol.
Requires an array of size 'DHT11_NUM_BYTES' to be passed as an argumen... | 2.84375 | 3 |
2024-11-18T21:52:40.830466+00:00 | 2020-10-02T18:58:21 | 5f91982755ea06e895013622e15421e81f914f23 | {
"blob_id": "5f91982755ea06e895013622e15421e81f914f23",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-02T18:58:21",
"content_id": "efb5c10db13b085ea8f3fc190eccb698e2104908",
"detected_licenses": [
"MIT"
],
"directory_id": "b817ea099964d5056ce2b2ff56b087e4543cec0a",
"extension": "h"... | stackv2 | #ifndef STRING_H
#define STRING_H
#ifndef STRING_REALLOC_FACTOR
#define STRING_REALLOC_FACTOR 2
#endif
#include <stdbool.h>
#include <malloc.h>
typedef void String;
// adds val to the end of the arr. true on success
bool String_append(String **darr, char val);
// creates a new dynarray with length and size of lengt... | 2.75 | 3 |
2024-11-18T21:52:41.097245+00:00 | 2018-05-07T12:46:49 | 32aeaadc95cc272da380a76a0ffe77cd394b3512 | {
"blob_id": "32aeaadc95cc272da380a76a0ffe77cd394b3512",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-07T12:46:49",
"content_id": "f739390e16850332d1d96649976300df5372c06a",
"detected_licenses": [
"MIT"
],
"directory_id": "5282e06b246dcc6e9dbf67a777592bb16beb8bf4",
"extension": "c"... | stackv2 | #include <stdio.h>
float compute(float num_1, float num_2);
int main(void)
{
float num_1;
float num_2;
printf("Enter two numbers: ");
while(scanf("%f %f",&num_1,&num_2)==2)
{
printf("%f\n", compute(num_1, num_2));
}
return 0;
}
float compute(float num_1, float num_2)
{
return (num_1-num_2)/num_... | 3.453125 | 3 |
2024-11-18T21:52:41.207700+00:00 | 2019-10-14T06:28:25 | 4853d3a69b2710a18327e550317fbc00ed56598b | {
"blob_id": "4853d3a69b2710a18327e550317fbc00ed56598b",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-14T06:28:25",
"content_id": "11624556580c6cc3e35bf27f37e05c002b935267",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "be4c8ac930f6264989751d4f91befa3731cc39cc",
"extens... | stackv2 | #ifndef MSG_H
#define MSG_H
#include <stdint.h>
#include <stdbool.h>
#include "kernel_types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
kernel_pid_t sender_pid;
uint16_t type;
union {
void *ptr;
uint32_t value;
} content;
} msg_t;
int msg_send(msg_t *m, kernel_pid_t ta... | 2.3125 | 2 |
2024-11-18T21:52:41.501277+00:00 | 2021-10-24T08:30:10 | 07cfb040d87fa5fd3b61bbcb32223761a51c7c42 | {
"blob_id": "07cfb040d87fa5fd3b61bbcb32223761a51c7c42",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-24T08:30:10",
"content_id": "9feb288bc9de681aadb1ebbb7e3d7454cd3bdb03",
"detected_licenses": [
"MIT"
],
"directory_id": "5c035933379f28296ca7a00ab54a92072087dfee",
"extension": "c",
... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include "micolisp.h"
#define TEST(form)\
if (form){\
printf("success: %s at %s:%d\n", #form, __FILE__, __LINE__);\
}\
else {\
printf("error: %s at %s:%d\n", #form, __FILE__, __LINE__); abort();\
}
static void test_micolisp_allocate (){
micolisp_machine machine;
TEST(micoli... | 2.84375 | 3 |
2024-11-18T21:52:41.977928+00:00 | 2017-03-10T04:26:37 | 2ab5899e230b8552b9f65a9b1f2b61f27650e254 | {
"blob_id": "2ab5899e230b8552b9f65a9b1f2b61f27650e254",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-10T04:26:37",
"content_id": "74e2125da4347c62479bc3c22e75c10bbae2caea",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e12b0b7283d9da2c24777a566f52a8605fe52fbf",
"extensio... | stackv2 | /**
* @file callback.c
* @brief helper for callback management
* @author cca@bespoon.com
* @date 25/02/2014
*/
/*
* Copyright (C) Bespoon 2014-2015. No Part of the source code shall be
* reproduced, transmitted, distributed, used nor modified in any way without
* the express prior written authorization of Bespo... | 2.140625 | 2 |
2024-11-18T21:52:42.298109+00:00 | 2012-02-13T11:48:13 | f96c9cfd9a012589e595830152c37e89ad8d0c4a | {
"blob_id": "f96c9cfd9a012589e595830152c37e89ad8d0c4a",
"branch_name": "refs/heads/master",
"committer_date": "2012-02-13T11:48:13",
"content_id": "65e0bbac38af068591409fa9c0b8ffb773ebcdd7",
"detected_licenses": [
"Artistic-2.0"
],
"directory_id": "eeccddeed1062a16965e07f7acc464aa54343846",
"extens... | stackv2 | /*
* aastr.c --- anti-aliased stretching for Allegro
*
* This file is gift-ware. This file is given to you freely
* as a gift. You may use, modify, redistribute, and generally hack
* it about in any way you like, and you do not have to give anyone
* anything in return.
*
* I do not accept any responsibility f... | 2.171875 | 2 |
2024-11-18T21:52:42.639880+00:00 | 2022-12-10T13:22:00 | 245c64c665a80e05aab347286a1c20b409541be8 | {
"blob_id": "245c64c665a80e05aab347286a1c20b409541be8",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-10T13:22:00",
"content_id": "b33cb022f4f94fdbe879335b1cd18dc29fc72e14",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e2db98806fb01f6cce3fff0d0068ea43970b1975",
"extens... | stackv2 | /* Copyright (c) 2002-2003 krzYszcz and others.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
#include "m_pd.h"
#include "sickle/sic.h"
#define TRAPEZOID_DEFUP 0.1 /* a bug? */
#define TRAPEZOID_DEFDN 0.9 /* a bug?... | 2.21875 | 2 |
2024-11-18T21:52:42.982657+00:00 | 2021-06-15T15:39:11 | 70b58fe15e69ad6dd762b1b7e5010dc7e416399e | {
"blob_id": "70b58fe15e69ad6dd762b1b7e5010dc7e416399e",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-15T15:39:11",
"content_id": "40e7e989d74a55cd5ed5bdaeb174682883f4e46b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f0f6c89067f89aea40fe939ba7ab50adf9524be9",
"extension"... | stackv2 | #define __STDC_WANT_LIB_EXT1__ 1
#include <io_utils.h>
#include <string.h>
#include <stdlib.h>
int main() {
#ifdef __STDC_LIB_EXT1__
puts("support C11 safe version.");
#else
puts("No support for C11 safe version.");
#endif
char dst[2];
int error_no = strcpy_s(dst, 2, "Too long!");
PRINT_INT(error_no); // 34... | 2.234375 | 2 |
2024-11-18T21:52:43.045958+00:00 | 2014-10-02T15:16:21 | 5bd261ab6a8796c7224878cf909f6aaa607cbeaa | {
"blob_id": "5bd261ab6a8796c7224878cf909f6aaa607cbeaa",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-02T15:16:21",
"content_id": "64c25e88b51aec8bb14465985c0a04390f577601",
"detected_licenses": [
"MIT"
],
"directory_id": "affbb8327b72a5cf0cd0c0ba82652a4b086e1143",
"extension": "c"... | stackv2 | #include "scene.h"
#include <physfs.h>
#include <stdint.h>
#include <stdlib.h>
struct hyd_scene *hyd_scene_create(void)
{
struct hyd_scene *s = malloc(sizeof(*s));
if (s == NULL) {
SDL_LogError(
SDL_LOG_CATEGORY_APPLICATION,
"Failed to allocate memory for scene"
);
return NULL;
}
s->layer_head = ma... | 2.578125 | 3 |
2024-11-18T21:52:43.131580+00:00 | 2019-09-08T15:42:50 | 8ee873a749df721b7fea4f5193d8bcc8e6581f7e | {
"blob_id": "8ee873a749df721b7fea4f5193d8bcc8e6581f7e",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-08T15:42:50",
"content_id": "c4561b0fb7decccd0ad5e878361c50573ff8afd7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "de881f8b8101aadea29aaa37e46a7088ac048695",
"extensio... | stackv2 | /*
* Copyright (c) 2019 OS Research Group
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the ""License"");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 2.125 | 2 |
2024-11-18T21:52:43.314606+00:00 | 2023-08-29T13:54:49 | a44fd3c8be1e35172aeff5551443427ce0bd4167 | {
"blob_id": "a44fd3c8be1e35172aeff5551443427ce0bd4167",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T13:54:49",
"content_id": "dab887d95bf3a07b59c3806dfeadf86eeb493cbe",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a411a55762de11dc2c9d913ff33d2f1477ac02cf",
"extens... | stackv2 | /*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the terms found in... | 2.296875 | 2 |
2024-11-18T21:52:43.523877+00:00 | 2020-06-02T07:05:56 | 813242f0299d4a512b5d563e28f2455c1d39aedf | {
"blob_id": "813242f0299d4a512b5d563e28f2455c1d39aedf",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-02T07:05:56",
"content_id": "1c145faefd53149c1335fc9cd3bc500ffa362b6d",
"detected_licenses": [
"Unlicense"
],
"directory_id": "dd9cc974e8781e1bb55dfa7ff102af1215df1b08",
"extension... | stackv2 | // 顺序队列
#include<stdio.h>
static int items[6];
static int n=6; // 队列长度
static int head = 0;
static int tail = 0;
int enqueue(int data); // 入队
int dequeue(); // 出队
void show(); // 打印整个数组,用来观察内部数据变化
void main() {
for (int i = 0; i < n; i++) {
enqueue(i);
}
show();
printf("dequeue num:");
for (int i = 0; i < n-3... | 3.6875 | 4 |
2024-11-18T21:52:44.115456+00:00 | 2016-06-03T04:24:33 | f15d6d7e0ed0b33014be239507f09a5f1b82921b | {
"blob_id": "f15d6d7e0ed0b33014be239507f09a5f1b82921b",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-03T04:24:33",
"content_id": "08789d63505e05f149f4a07185b987452336b7be",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "bdc8fc240bda2fa23882379ca608d1615cfff639",
"extens... | stackv2 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include "config.h"
#include <assert.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "diagonal.h"
#include "diagonal/cmp.h"
#inclu... | 2.34375 | 2 |
2024-11-18T21:52:44.606925+00:00 | 2020-11-21T12:14:04 | 4a3a1dcef7ffa9d64cc703b8207aacd5cfb496a4 | {
"blob_id": "4a3a1dcef7ffa9d64cc703b8207aacd5cfb496a4",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-21T12:14:04",
"content_id": "7c79ad6d6239765f57e70afab38569f3ebdc8e89",
"detected_licenses": [
"MIT"
],
"directory_id": "6516f2b91a0b29cb2d31fe00e9aa183002b8c818",
"extension": "h"... | stackv2 | /**
* SPDX-License-Identifier: MIT
* Copyright (C) 2020 Dylan Araps
*/
#ifndef KISS_ERROR_H
#define KISS_ERROR_H
#include <errno.h>
#include <stdio.h>
#include <string.h>
/**
* Display an error message with file, function and line number infomation.
*/
#define err(...) do { \
fprint... | 2.609375 | 3 |
2024-11-18T21:52:44.736300+00:00 | 2018-04-25T09:51:50 | 565476b5b16bb237580a433a2dd9c55894c1a6d3 | {
"blob_id": "565476b5b16bb237580a433a2dd9c55894c1a6d3",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-25T09:51:50",
"content_id": "5f2f251dbe73a8fab694aa9b040fb534827ad5bf",
"detected_licenses": [
"MIT"
],
"directory_id": "a351858bea50e93eea8d7643cb33945a42b0c5e3",
"extension": "h"... | stackv2 | /* Copyright (c) 2018. TIG developer. */
#ifndef __LB_SYNPROXY_H__
#define __LB_SYNPROXY_H__
#include <rte_ip.h>
#include <rte_mbuf.h>
#include <rte_tcp.h>
struct lb_conn;
struct lb_conn_table;
/* Add MASKs for TCP OPT in "data" coded in cookie */
/* |[21][20][19-16][15-0]|
* [21] SACK
* [20] TimeStamp
* [... | 2.359375 | 2 |
2024-11-18T21:52:44.828311+00:00 | 2019-07-19T12:58:47 | 6cd1bd7ca483b15108caa27dd44f78e361e30a14 | {
"blob_id": "6cd1bd7ca483b15108caa27dd44f78e361e30a14",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-19T12:58:47",
"content_id": "95d9ebe2096d48080421aabe6ce7fe50b26ebd17",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d5339d18a1d277e32fd8237b26654bd314d09682",
"extensio... | stackv2 | /*
Copyright 2018 Picovoice 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 agr... | 2.28125 | 2 |
2024-11-18T21:52:44.904667+00:00 | 2019-10-06T19:49:04 | 57c42a31b2348de52d2b0de50a53e8d3a1c0ffe1 | {
"blob_id": "57c42a31b2348de52d2b0de50a53e8d3a1c0ffe1",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-06T19:49:04",
"content_id": "d4d26276781a9dfa59f779d5ab58311d05fde1e1",
"detected_licenses": [
"MIT"
],
"directory_id": "7ee916587d9da78cea153666f6b2d6c9b2a63ba0",
"extension": "c"... | stackv2 | /**
* @file main.c
* @brief ADC demo application
* @details Continuously monitors the ADC channels
*/
/* *****************************************************************************
* Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved.
*
* Permission is hereby granted, free of charge, to... | 2.140625 | 2 |
2024-11-18T21:52:45.160668+00:00 | 2018-03-10T06:02:33 | cd76c2386db6b393133068ac8aeb6f84ea592bcd | {
"blob_id": "cd76c2386db6b393133068ac8aeb6f84ea592bcd",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-10T06:02:33",
"content_id": "582c00188ea0c8954400a39fffc291b59526ff64",
"detected_licenses": [
"MIT"
],
"directory_id": "a9ca0c0b182af1991f4d066f67be3aa8e2207f1b",
"extension": "c"... | stackv2 | /** \file simple_test.c
*
* Test for basic usage of queue.
*/
#include "plq_illustration.h"
void
print_choice(void) {
printf("Enter your operation: \n"
"(E)nqueue, (D)equeue, (C)lear, (S)ize\n");
}
int
main(void) {
value_type val, *pval;
plinked_queue plq;
char cmd;
if ((plq = create_linked_qu... | 3.1875 | 3 |
2024-11-18T21:52:45.604157+00:00 | 2023-09-02T14:55:31 | f14085da657bcb50d27bb1c8d5a64f7c3ce26ad4 | {
"blob_id": "f14085da657bcb50d27bb1c8d5a64f7c3ce26ad4",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T14:55:31",
"content_id": "3cf23049d8bfbd404c269e7df76b4f873fe21a52",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca",
"extens... | stackv2 | /**
* @file
* @brief implementation of the IP router.
*
* @date 16.11.09
* @author Nikolay Korotky
* @author Ilia Vaprol
* @author Vladimir Sokolov
*/
#include <errno.h>
#include <assert.h>
#include <net/l3/route.h>
#include <linux/in.h>
#include <mem/misc/pool.h>
#include <net/inetdevice.h>
#include <util/bit... | 2.40625 | 2 |
2024-11-18T21:52:46.187366+00:00 | 2019-05-28T15:53:10 | 316867e0b01699f152772cfad14258e9e3c063cd | {
"blob_id": "316867e0b01699f152772cfad14258e9e3c063cd",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-28T15:53:10",
"content_id": "eb096650ebff4f3bfeffb233e423d776a3f3ad0d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d5b993ae3b3c48a969de22f9e57a93c7d5b00fe9",
"extensio... | stackv2 | #include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<fcntl.h>
int main(int argc, char ** argv)
{
int result = faccessat(AT_FDCWD, "test.exe", R_OK|W_OK|X_OK, 0);
if( 0 == result )
{
puts("read, write, exec granted");
return -1;
}
return EXIT_SUCCESS;
}
| 2.5625 | 3 |
2024-11-18T21:52:46.826782+00:00 | 2021-01-03T10:23:11 | ae8ae5633b9a9c1bd44135bae10a96798f81ae4d | {
"blob_id": "ae8ae5633b9a9c1bd44135bae10a96798f81ae4d",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-03T10:23:11",
"content_id": "f24d345583cd7d9b0fbc13ed96d97483ea58c62e",
"detected_licenses": [
"MIT"
],
"directory_id": "f72602eef39d4f59d725d561cdfa80b202e396a2",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "caesar.h"
int main(int argc, char *argv[]) {
char *ciphertext;
// 入力チェック
if (argc < 3) {
printf("シフト回数と平文を指定してください。\n");
return 1;
}
// シーザー暗号
ciphertext = encryption(atoi(argv[1]), argv[2]);
printf("%s\n", ciphertext);
... | 2.625 | 3 |
2024-11-18T21:52:47.177901+00:00 | 2019-08-16T12:25:41 | 962a692334bb4cdc9603c3567e5472cc4fec26b3 | {
"blob_id": "962a692334bb4cdc9603c3567e5472cc4fec26b3",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-16T12:25:41",
"content_id": "9ee36bb11193f05a973bebf0289c4fece83ba7da",
"detected_licenses": [
"MIT"
],
"directory_id": "0ebc7897e7426eef84d85aa19f152da2591a0ae3",
"extension": "c"... | stackv2 | #include <errno.h>
#include <malloc.h>
#include <assert.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include "bstr.h"
#include "apx_node.h"
#include "apx_nodeInfo.h"
#include "apx_logging.h"
#include "apx_error.h"
#include "pack.h"
#ifdef MEM_LEAK_CHECK
#include "CMemLeak.h"
#endif
#ifdef _MSC_VER
#de... | 2.25 | 2 |
2024-11-18T21:52:47.337560+00:00 | 2020-04-10T20:28:46 | 770e62cdd9025687c65484100d3e7ada2c6cb1ec | {
"blob_id": "770e62cdd9025687c65484100d3e7ada2c6cb1ec",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-10T20:28:46",
"content_id": "c79e31e087d5317f7da4fd707ee9b876540bd607",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "9b5a2c25a62c7f42d183aedcb56ae96d5f6590af",
"extensio... | stackv2 | /* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
* $FreeBSD: src/usr.bin/lex/flex.skl,v 1.8 2004/01/06 19:03:44 nectar Exp $
*/
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSI... | 2.140625 | 2 |
2024-11-18T21:52:47.928078+00:00 | 2010-11-08T14:07:39 | cadfa6a47fc16164936bab438a6613d460a07380 | {
"blob_id": "cadfa6a47fc16164936bab438a6613d460a07380",
"branch_name": "refs/heads/master",
"committer_date": "2010-11-08T14:07:39",
"content_id": "261592e87cf583231f6ac2d42abd337af52dfe1a",
"detected_licenses": [
"Artistic-2.0"
],
"directory_id": "5f82262e29e87870e5914586f5bec988c000ea22",
"extens... | stackv2 | /*
Copyright (C) 2001-2009, Parrot Foundation.
$Id$
=head1 NAME
pbc_disassemble - Parrot disassembler
=head1 SYNOPSIS
pbc_disassemble [-bdh?] [-o outfile] [file.pbc]
=head1 DESCRIPTION
This uses the C<Parrot_disassemble()> function from F<src/embed.c>,
which in turn uses the C<PDB_disassemble()> function from... | 2.21875 | 2 |
2024-11-18T21:52:48.161098+00:00 | 2020-10-18T06:57:58 | 94382a89fac973168de6498521ab2c86781904c3 | {
"blob_id": "94382a89fac973168de6498521ab2c86781904c3",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-18T06:57:58",
"content_id": "a9463a459cc65b27e3c4551bd36db0ce9f30b75d",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "dcb259212939705848312ae6201a0dae41278d4e",
"extens... | stackv2 | #include "defs.h"
void
eval_product(void)
{
int h, j, k;
// 1st arg (quoted)
p1 = cdr(p1);
p2 = car(p1);
if (!issymbol(p2))
stop("product: 1st arg?");
// 2nd arg
p1 = cdr(p1);
push(car(p1));
eval();
j = pop_integer();
if (j == ERR)
stop("product: 2nd arg?");
// 3rd arg
p1 = cdr(p1);
push(car(p1... | 2.375 | 2 |
2024-11-18T21:52:48.435796+00:00 | 2017-04-03T09:50:15 | 1dac5f28b2c02a48ff815324903393242c101b8b | {
"blob_id": "1dac5f28b2c02a48ff815324903393242c101b8b",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-03T09:50:15",
"content_id": "1ee9054de3721f60fc8a908016a0105558300bf0",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "59d7d3c005ea9dcae727d3926ee6444f4d225edc",
"extens... | stackv2 | /*
* Copyright © 2013 Coraid, Inc.
* All rights reserved.
* list.c: list all the raid stuff
*/
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <ctype.h>
#include <libcutil.h>
#include "srxcmds.h"
typedef struct Driveinfo Driveinfo;
typedef struct Luninfo Luninfo;
struct Driveinfo {
vlong dlength;
... | 2.40625 | 2 |
2024-11-18T21:52:48.577780+00:00 | 2014-11-11T10:32:59 | 8738354f112c87421b00736e7f78020f31ba5368 | {
"blob_id": "8738354f112c87421b00736e7f78020f31ba5368",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-11T10:32:59",
"content_id": "a2d3ca93df050941f79784494db4fc0ace3c1464",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "15f816069610745ca7fdc8ad1011ba19a7986eb9",
"extensio... | stackv2 | /*
** list_get.c for t_list in /media/data/all/projects/epitech/42sh/lib/t_list/src
**
** Made by kevin labbe
** Login <labbe_k@epitech.net>
**
** Started on Wed Mar 6 18:00:59 2013 kevin labbe
** Last update Wed Apr 24 19:10:08 2013 kevin labbe
*/
#include "my.h"
#include "t_list.h"
t_list *list_get_elt(t_lis... | 2.546875 | 3 |
2024-11-18T21:52:48.655610+00:00 | 2021-09-19T18:47:52 | ec1404aef512ebbb46e4e0803af67cd8f9821816 | {
"blob_id": "ec1404aef512ebbb46e4e0803af67cd8f9821816",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-19T18:47:52",
"content_id": "2ab4a67652f248a1f4e0f3f8af03a7c6b44b6776",
"detected_licenses": [
"MIT"
],
"directory_id": "db60c0d5b964c241c177618adf30ba8418308f95",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <pwd.h>
#include <grp.h>
#include <string.h>
#include <errno.h>
/* Program demonstrira rad sa korisnicima i grupama. */
void error(char *message);
int main(int argc, char **argv){
struct passwd *pwd; /* Promenljiva za informacije o koris... | 3.125 | 3 |
2024-11-18T21:52:49.519293+00:00 | 2022-08-24T08:41:57 | 08dc989814a052870bad80171911c85295edf1f6 | {
"blob_id": "08dc989814a052870bad80171911c85295edf1f6",
"branch_name": "refs/heads/main",
"committer_date": "2022-08-24T08:41:57",
"content_id": "928fd1f9a7e21f15d77f3ed4a852a4bde437f76a",
"detected_licenses": [
"MIT"
],
"directory_id": "586f2d45709ab329f38b966845698f5d9c9f0c0a",
"extension": "c",
... | stackv2 |
#include "Common/globals.h"
#include <stm32l4xx_hal.h>
#include "UART/UART.h"
#include "_main_UART_Thread1.h"
void UART_Thread1(void const* argument) {
(void)argument;
const TickType_t xDelay = 1350 / portTICK_PERIOD_MS;
static uint8_t buffer[1];
static uint8_t UART_Message[] = "Hello UART!\n\r";
... | 2.265625 | 2 |
2024-11-18T21:52:49.996891+00:00 | 2018-05-19T18:55:38 | cb25a30abf502ca1f3bfa2ee936ca7831f4db81f | {
"blob_id": "cb25a30abf502ca1f3bfa2ee936ca7831f4db81f",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-19T18:55:38",
"content_id": "c0f2f5b284d38812f883f74d5a2261a8eec68690",
"detected_licenses": [
"MIT"
],
"directory_id": "51cce3c3f3d52aacb0eb1292d629dd714c99c68c",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <string.h>
int wcount(char *sp)
{
int k=0;
while (sp!=0)
{
sp=strtok(0," ");
k++;
}
return k;
}
int main(int argc, const char * argv[]) {
const int m = 1000;
char str[m];
char *sp;
gets(str);
sp=strtok(str," ");
printf(... | 2.640625 | 3 |
2024-11-18T21:52:50.114957+00:00 | 2023-08-29T06:33:10 | 8df25ee8bf4a81f34931e16e04441d15d823303e | {
"blob_id": "8df25ee8bf4a81f34931e16e04441d15d823303e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T06:33:10",
"content_id": "3707fed9e3764887f0cdc0e9c46ccff0a8a5b842",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "676acab8ff535019faff7da3afb8eecc3fa127f5",
"extensio... | stackv2 | /******************************************************************************
* Copyright 2020 The Firmament Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License ... | 2.28125 | 2 |
2024-11-18T21:52:50.581555+00:00 | 2019-02-13T07:32:47 | 9a1fbd6e6a7660d71ca55e1cbdcccca6a4e0ee25 | {
"blob_id": "9a1fbd6e6a7660d71ca55e1cbdcccca6a4e0ee25",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-13T07:32:47",
"content_id": "95110f0cfdef702fba12a54c850beb1ef2bc7129",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3e4d572d76f4c87836dd36d84045f484c547faa9",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "stack.h"
#include "operations.h"
//__declspec(dllexport) char* rpn_export(int cnt,char** str);
int rpn(int cnt, char *s[], double *ret, int startat)
{
int i; /* counter */
struct stack stck; /* Declare stack */
double a, b; /*... | 3.15625 | 3 |
2024-11-18T21:52:50.685498+00:00 | 2014-03-19T15:12:19 | e860524622e1e05b25e0e349b8b453c477fb4cf2 | {
"blob_id": "e860524622e1e05b25e0e349b8b453c477fb4cf2",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-19T15:12:19",
"content_id": "cb4ef1d0e9d8d33aa17e1a36bc896701671ab049",
"detected_licenses": [
"BSD-4-Clause-UC"
],
"directory_id": "b5ab7091100522c4097cf5323d4a3c5c098a1f93",
"ext... | stackv2 | #ifndef ROS_INC_ARCH_SYSCALL64_H
#define ROS_INC_ARCH_SYSCALL64_H
#ifndef ROS_INC_ARCH_SYSCALL_H
#error "Do not include include ros/arch/syscall64.h directly"
#endif
#define T_SYSCALL 0x80
#ifndef ROS_KERNEL
#include <sys/types.h>
#include <stdint.h>
#include <ros/common.h>
#include <ros/arch/mmu.h>
#include <asser... | 2.359375 | 2 |
2024-11-18T21:52:50.837614+00:00 | 2016-09-08T01:08:41 | af94239db780d9e1ec69912897fcf37265b36903 | {
"blob_id": "af94239db780d9e1ec69912897fcf37265b36903",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-08T01:08:41",
"content_id": "f22d0a13556345d733f6a9b3b5fb14287be33d4e",
"detected_licenses": [
"MIT"
],
"directory_id": "813e0138ad77a14af656dd623609d9d7f1da6e42",
"extension": "c"... | stackv2 | /*
* Classes for handling storage to flash, and retreival of data from flash for sending
* FlashHandler simplifies writing to flash. The program may always use storeWord() to
* store data; update(), if called repeatedly, handles the actual storage and organization
* in flash, including avoiding conflict with B... | 2.765625 | 3 |
2024-11-18T21:52:51.290907+00:00 | 2018-03-23T11:19:44 | 925b5bb00b943b76e1aef430d0bc6c94e18c8b9f | {
"blob_id": "925b5bb00b943b76e1aef430d0bc6c94e18c8b9f",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-23T11:19:44",
"content_id": "4ab524ffd93e124a8a9a97f66b2ec09780cfad37",
"detected_licenses": [
"MIT"
],
"directory_id": "2d8dca5e18ae7aee08e6e858903f962333fae895",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <math.h>
#include "agm.h"
double ellint(double o){
double k =sin(o/2);
double final =agm(1+k,1-k);
double final1 =M_PI/(2*final);
//printf("analytic time = %lf\n",final1);
return final1;
}
/*int main(){
double s =ellint(1);
printf("s =%lf",s);
return 0;
... | 2.625 | 3 |
2024-11-18T21:52:52.359215+00:00 | 2021-10-03T02:26:06 | c4f7956b3335ed42611ea25679032ee5a5f20e7b | {
"blob_id": "c4f7956b3335ed42611ea25679032ee5a5f20e7b",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-03T02:45:04",
"content_id": "2ca9f5fbdb69f7d7f144e3c04621f17552ebe62d",
"detected_licenses": [
"MIT"
],
"directory_id": "470d1134598477fb2e5878860de93cf5ab249851",
"extension": "c"... | stackv2 | #include <calendon/test.h>
#include <calendon/cn.h>
#include <calendon/aspect-ratio.h>
bool cnDimension2u32_Equal(CnDimension2u32 left, CnDimension2u32 right)
{
return left.width == right.width && left.height == right.height;
}
CN_TEST_SUITE_BEGIN("aspect ratio")
CN_TEST_UNIT("Same fits same") {
const CnDimensio... | 2.5625 | 3 |
2024-11-18T21:52:53.001165+00:00 | 2013-12-30T06:10:50 | b2e4b6af7239e03852c7c1d859b021c91922b351 | {
"blob_id": "b2e4b6af7239e03852c7c1d859b021c91922b351",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-30T06:10:50",
"content_id": "135dcce972fc2d6a104c2be5bd4affd9a56996be",
"detected_licenses": [
"MIT"
],
"directory_id": "1434ae4307bef7139443ed7082b46ef2c3e008c0",
"extension": "c"... | stackv2 | ////////////////////////////////////////////////////////////////////////////////
// Comments
// Explores the use of scanf (especially for easily formatting number input).
// Wow, OK, scanf doesn't flush the buffer on a bad input...
////////////////////////////////////////////////////////////////////////////////
// L... | 3.03125 | 3 |
2024-11-18T21:52:54.446647+00:00 | 2019-10-18T21:07:33 | ce01eec479db81b914318853b2871459d54d7c2a | {
"blob_id": "ce01eec479db81b914318853b2871459d54d7c2a",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-18T21:07:33",
"content_id": "2c1cf920cf29ff60311284b5248dd0eeed32e039",
"detected_licenses": [
"MIT"
],
"directory_id": "afd124366a8746455c51fdbb200482ba9fb0f166",
"extension": "c"... | stackv2 | /* =================================== */
/* ===== Linear search algorithm ===== */
/* =================================== */
#include<stdio.h>
int main() {
int arr[100],n,i,x,pos=-1;
printf("Enter the number of elements in the array: ");
scanf("%d",&n);
printf("Enter the Elements: \n");
for(i=0;i... | 3.90625 | 4 |
2024-11-18T21:52:54.544201+00:00 | 2016-09-18T23:16:27 | 4de1235029489be4b8557fa0b3e5cf7c37a1e41d | {
"blob_id": "4de1235029489be4b8557fa0b3e5cf7c37a1e41d",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-18T23:16:27",
"content_id": "e34da7707be7d30ec9e9f6164a4e402d3e787051",
"detected_licenses": [
"MIT"
],
"directory_id": "4d967b13377eac486a6650c28bfa4960603c9db0",
"extension": "c"... | stackv2 | /*
* AddressBroadcast.c
*
* Created on: 03/10/2012
* Created by: Hayk Baluyan
* Copyright (c) 2012 Bitcoin Project Team
*/
#include "AddressBroadcast.h"
#include <assert.h>
AddressBroadcast * createNewAddressBroadcast(uint8_t timeStamps,void(*onErrorReceived)(Error error, char *, ...)){
AddressBroadcast * s... | 2.65625 | 3 |
2024-11-18T21:52:54.618978+00:00 | 2019-02-13T12:51:20 | b7fa3152673d84aa043dc3608c596a7c1204a71f | {
"blob_id": "b7fa3152673d84aa043dc3608c596a7c1204a71f",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-13T12:51:20",
"content_id": "d66817210298028a6a1b04015243658192680d91",
"detected_licenses": [
"MIT"
],
"directory_id": "26c4a418935e9c663b7e717f1f9185107144e0c0",
"extension": "c"... | stackv2 | /*
** EPITECH PROJECT, 2017
** hm_generate_object
** File description:
** hm_generate_object
*/
#include <stdlib.h>
#include "hash_map.h"
#include "my.h"
hm_object_t *hm_generate_object(char *name, void *data)
{
hm_object_t *obj;
if (name == NULL || (obj = malloc(sizeof(*obj))) == NULL)
return (NULL);
obj->key ... | 2.484375 | 2 |
2024-11-18T21:52:54.686284+00:00 | 2014-07-07T14:43:19 | e31f0dd2af38c75e6f873b9fc6558e60fb2c55ba | {
"blob_id": "e31f0dd2af38c75e6f873b9fc6558e60fb2c55ba",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-07T14:43:19",
"content_id": "563dd86e93fe20a657d62032bfff945417b88931",
"detected_licenses": [
"MIT"
],
"directory_id": "5e1f752a86dc678ec61828ef670f96e09a1f5da0",
"extension": "c"... | stackv2 | /* Author(s):
* Connor Abbott (connor@abbott.cx)
*
* Copyright (c) 2013 Connor Abbott (connor@abbott.cx)
*
* 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, includ... | 2.1875 | 2 |
2024-11-18T21:52:54.799985+00:00 | 2019-06-21T09:55:11 | b89507fe33f3dbbedae267b9a166e1d7e88ed2fe | {
"blob_id": "b89507fe33f3dbbedae267b9a166e1d7e88ed2fe",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-21T09:55:11",
"content_id": "320c0126189ed5072f132684fc1c9124e2978f67",
"detected_licenses": [
"NCSA",
"Apache-2.0"
],
"directory_id": "c6fdcad61d7d4fcea4a1822be3cce5c46ad2ec48",... | stackv2 | // RUN: %llvmgcc -emit-llvm -g -c %s -o %t.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --emit-all-errors %t.bc 2>&1 | FileCheck %s
#include <stdio.h>
#include <klee/kontest.h>
int pre(KontestSchedulerState state) { return (state.step == 0); }
void actionA(KontestSchedulerState state) { print... | 2.265625 | 2 |
2024-11-18T21:52:55.908439+00:00 | 2021-10-25T17:06:06 | a975db7de1289d73f61be60e0a4c2b05cb13b337 | {
"blob_id": "a975db7de1289d73f61be60e0a4c2b05cb13b337",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-25T17:06:06",
"content_id": "4024fddd64eb86f6fae3f439cde91a735f868196",
"detected_licenses": [
"NCSA",
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "6dd2d509d44ea035da9d... | stackv2 | /***********************************************************************
/
/ GRID CLASS (ALLOCATES FIELDS FOR DERIVATIVES)
/
/ written by: David Collins
/ date: 2004-2013
/ modified1:
/
/ PURPOSE: Allocates fields for use in the divergence free interpolation
/ needed for MHDCT.
/
/ RETURNS:
/ ... | 2.015625 | 2 |
2024-11-18T21:52:56.024365+00:00 | 2016-08-25T13:23:52 | c57d91ffb58e10db72380f0a91b6268839caa39b | {
"blob_id": "c57d91ffb58e10db72380f0a91b6268839caa39b",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-25T13:23:52",
"content_id": "6da5cdc725f9c18d863a203b294f408f6244e6ac",
"detected_licenses": [
"MIT"
],
"directory_id": "345ffa544a611182ce04e6247e91466ee17a9ba2",
"extension": "c"... | stackv2 | #include <fcgi_stdio.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <lavril.h>
#ifdef LVUNICODE
#define scvprintf vfwprintf
#else
#define scvprintf vfprintf
#endif
/* some of the HTTP variables we are interest in */
#define MAX_VARS 30
const char *vars[M... | 2.125 | 2 |
2024-11-18T21:52:56.347446+00:00 | 2020-04-01T21:59:35 | 492d4d846a088ccf368c30073a26909f1d57d7b0 | {
"blob_id": "492d4d846a088ccf368c30073a26909f1d57d7b0",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-01T21:59:35",
"content_id": "7eaab322210f616cd1f769f7e0df918171ae8f60",
"detected_licenses": [
"MIT"
],
"directory_id": "428f84732bd89bce0d1d249892ef449ebd491b87",
"extension": "c"... | stackv2 | #include <libcmike.h>
#define VERSION "0.1"
#define DEBUG
#define BG_COLOR \
COLOR_CREATE(COLOR_WHITE, COLOR_BLACK)
static char* editor_header = "CMike Text Editor v" VERSION;
static uint16_t text_buffer_size;
#define text_buffer ((char*)free_space_start)
struct
{
uint16_t top_x;
uint16_t top_y;
u... | 2.46875 | 2 |
2024-11-18T21:52:56.420996+00:00 | 2019-07-20T17:14:24 | 488c6065656bb0a9b251fe7973b47c224231f830 | {
"blob_id": "488c6065656bb0a9b251fe7973b47c224231f830",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-20T17:14:24",
"content_id": "f783d82b999aae1bd96bf10efc165e835b53e6da",
"detected_licenses": [
"MIT"
],
"directory_id": "91f56cdf47cebef39eb6f8a306d0476fd4d2183c",
"extension": "c"... | stackv2 | /* DATA.C
This file contains more specific data sending functions, the variable getting from MObs, as well as the interrupt for the CAN rx.
*/
#include <string.h> //Only for memcpy
#include <avr/io.h>
#include <avr/interrupt.h>
#include "Defines.h"
#include "Data.h"
#include "CAN.h"
#include "Error.h"
#include "sd_r... | 2.65625 | 3 |
2024-11-18T21:52:56.642868+00:00 | 2020-10-17T07:51:39 | 42c72c440990c7bae6f6583006cbbfaa37ee117f | {
"blob_id": "42c72c440990c7bae6f6583006cbbfaa37ee117f",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-17T07:51:39",
"content_id": "e65672bc0ce4fb10834579f358b6464fcaf1708b",
"detected_licenses": [
"MIT"
],
"directory_id": "3644f900b67e53b507b2df1418fa4b03286323f5",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <unistd.h>
int main (void)
{
int count = 0;
while (1) {
printf("hello count: %d\n", count++);
sleep(1);
}
return 0;
}
| 2.375 | 2 |
2024-11-18T21:52:56.933303+00:00 | 2018-03-19T01:28:36 | c4f1bdd7307f58f5afecce20c6e1f251d8ddb208 | {
"blob_id": "c4f1bdd7307f58f5afecce20c6e1f251d8ddb208",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-19T01:28:36",
"content_id": "e70d175bc4f6bfce7d513b2e20406691d1f42287",
"detected_licenses": [
"MIT"
],
"directory_id": "e1c8b82d896d6b25b3d268741c974153ca80a209",
"extension": "h"... | stackv2 | struct student
{
char name[81];
char id[12];
float grade;
};
typedef struct student Student;
struct list2
{
Student*info;
struct list2*prev;
struct list2*next;
};
typedef struct list2 List2;
List2* lst2_create(void)
{
return NULL;
}
int lst2_empty(List2*l)
{
return(l==NULL);
}
List2* lst2_insert_end(List2*l... | 3.1875 | 3 |
2024-11-18T22:03:58.350870+00:00 | 2019-09-29T00:09:51 | 1b3be82c116050494024a222718a229f55cb84db | {
"blob_id": "1b3be82c116050494024a222718a229f55cb84db",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-29T00:09:51",
"content_id": "4bd416fe7130d930d82f61c07357aba6adf4b307",
"detected_licenses": [
"MIT"
],
"directory_id": "05798d7479178df55a542904489ef5671ac85b09",
"extension": "c"... | stackv2 | /// @file background.c
/// @author namazso
/// @date 2017-12-04
/// @brief Background drawer.
#include "pch.h"
#include "sprite_manager.h"
#include "tile_manager.h"
#include "render.h"
static void load_backgrounds(int* bgs, int count)
{
for(int i = 0; i < count; ++i)
{
char path[32];
sprintf(path, "bg/%d.bin",... | 2.578125 | 3 |
2024-11-18T22:03:59.468544+00:00 | 2019-04-11T15:43:42 | 75189c832a35d0b8ed89654f933393f2ff581455 | {
"blob_id": "75189c832a35d0b8ed89654f933393f2ff581455",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-11T15:43:42",
"content_id": "48431720d67af03bb2427be1b24132b30b42d0de",
"detected_licenses": [
"MIT"
],
"directory_id": "0586a820614c0c2c6364d7c74a249892bcbdc4cc",
"extension": "c"... | stackv2 | /*
* 0 -> "zero"
* 9 -> "nine"
* 45 -> "forty five"
* -130 -> "negative one hundred thirty"
* 11983 -> "eleven thousand nine hundred eighty three"
*
*
*/
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
char *itoaaa(int i);
void hundreds(int n, char* eng);
int main(int argc, char ... | 3.46875 | 3 |
2024-11-18T22:03:59.589731+00:00 | 2018-03-13T13:35:02 | 8f144690e1f4857664ec271e47cd808758277809 | {
"blob_id": "8f144690e1f4857664ec271e47cd808758277809",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-13T13:35:02",
"content_id": "52585554888c9edfcabfadd492bf1a16e03d786a",
"detected_licenses": [
"MIT"
],
"directory_id": "d3032832d61917159efad4183b723cc61693d71d",
"extension": "c"... | stackv2 |
/*
* lux OS kernel
* copyright (c) 2018 by Omar Mohammad
*/
#include <timer.h>
#include <kprintf.h>
#include <irq.h>
#include <devmgr.h>
#include <mm.h>
#include <io.h>
#define PIT_DIVIDER 1193182
// pit_init(): Initializes the PIT
// Param: Nothing
// Return: Nothing
void pit_init()
{
kprintf("pit: using th... | 2.28125 | 2 |
2024-11-18T22:04:00.251015+00:00 | 2020-05-08T14:34:51 | 9251a68960a6570ffb983a7d3d2b07d0ccc2eb35 | {
"blob_id": "9251a68960a6570ffb983a7d3d2b07d0ccc2eb35",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-08T14:34:51",
"content_id": "8909c0fcd780dca23168cf7892352031adf3217a",
"detected_licenses": [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "1ba4abd0d77a1984117ed... | stackv2 | /**
* Copyright (c) 2014-2015 Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditio... | 2.484375 | 2 |
2024-11-18T22:04:00.804492+00:00 | 2016-12-17T18:58:01 | eaa0cde9f16a7c95721e33645390cd62341a2450 | {
"blob_id": "eaa0cde9f16a7c95721e33645390cd62341a2450",
"branch_name": "refs/heads/main",
"committer_date": "2016-12-17T18:58:01",
"content_id": "50f0b24edffac72356f617a471c34864bc45c0d5",
"detected_licenses": [
"MIT"
],
"directory_id": "e9e46c5e8fa04d0335b3a06027f3af0a434c0013",
"extension": "c",
... | stackv2 | #include "htable.h"
#include "list.h"
#include <assert.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static htable_node_t *__htable_lookup(htable_t *ht, unsigned int id);
/* initialize the hash table */
void htable_init(htable_t *ht, unsigned int cap) {
unsigned int i;
ht... | 3.25 | 3 |
2024-11-18T22:04:01.468690+00:00 | 2021-10-28T21:47:59 | ebba6a77d8236a9425af5a976d3b9201a76dfad1 | {
"blob_id": "ebba6a77d8236a9425af5a976d3b9201a76dfad1",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-28T21:47:59",
"content_id": "8c00d6ad95f1fbe247ed16a742631cd2118a0505",
"detected_licenses": [
"MIT"
],
"directory_id": "1825c47773944b11240bb568c2af7bf7b0ae075e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/msg.h>
#include <sys/ipc.h>
#include <unistd.h>
#include <time.h>
#include <signal.h>
#include <sys/sem.h>
#include <time.h>
#include <sys/shm.h>
union semun
{
int val;
struct semid_ds *buf;
unsigned short *array;
};
e... | 2.625 | 3 |
2024-11-18T22:04:01.591672+00:00 | 2021-03-01T15:41:03 | af6b9d6d81d012e880a4d4ddc1097c02956ab0e9 | {
"blob_id": "af6b9d6d81d012e880a4d4ddc1097c02956ab0e9",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-01T15:41:03",
"content_id": "70647cdf20271e9daa8474de303ed9d21359f0f6",
"detected_licenses": [
"MIT"
],
"directory_id": "6f65a49bd9e890052d47a86125a9644cd875074f",
"extension": "c"... | stackv2 | // Bitonic Sort - Sequential implementation
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <stdbool.h>
#include <sys/time.h>
int *arr; // data array to be sorted
int n; // data array size
const int ASCENDING = 1;
const int DESCENDING = 0;
void init() {
for (int i = 0; i < n; i++) {
arr... | 3.625 | 4 |
2024-11-18T22:04:02.107721+00:00 | 2017-03-22T00:09:50 | fa200bc12efa4543e73da49b1fac38ef1e99f57e | {
"blob_id": "fa200bc12efa4543e73da49b1fac38ef1e99f57e",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-22T00:09:50",
"content_id": "f86679cdf0dd648b07ae0926535fc79d6337b88a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8a11dd99694170833c84758e77a70c88089f388e",
"extensio... | stackv2 | #ifndef SIMPLE_NET_DEFINE_H
#define SIMPLE_NET_DEFINE_H
#include <arpa/inet.h>
// ----------------------------------------------
// 基础对象声明
// ----------------------------------------------
typedef struct SimpleClient SimpleClient;
typedef struct SimpleAddress SimpleAddress;
typedef struct SimpleServer SimpleServer;
... | 2.421875 | 2 |
2024-11-18T22:04:02.307281+00:00 | 2021-06-01T12:32:18 | d9e6f70882a779b0e129fdac541fed026a9506e6 | {
"blob_id": "d9e6f70882a779b0e129fdac541fed026a9506e6",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-01T12:32:18",
"content_id": "da59cb95e8cdef8d20b315c75e7003889f65f3e2",
"detected_licenses": [
"MIT"
],
"directory_id": "354659134af341d782db63e4a171bf4095afb0c4",
"extension": "c",
... | stackv2 | // Author: Fabio Rodrigues Pereira
// E-mail: fabior@uio.no
// compiling & running
// mpicc -o hello helloWorld.c
// mpirun -np 1 ./hello
#include <stdlib.h> // rand, malloc, calloc, realloc and free.
#include <stdio.h> // printf, scanf
#include <time.h> // clock
#include <mpi.h>
int main(int argc, char *argv[])... | 2.515625 | 3 |
2024-11-18T22:04:02.721335+00:00 | 2023-08-30T23:07:48 | 1f50ee33453fa7e82f2961acffa30c35d7aa2831 | {
"blob_id": "1f50ee33453fa7e82f2961acffa30c35d7aa2831",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T23:07:48",
"content_id": "0e9c35994ab159012f32c37632cab03c8d61cbcf",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "8a51a96f61699f0318315ccc89cef39f6866f2b5",
"extensio... | stackv2 | /*-------------------------------------------------------------------------
*
* sysv_sema.c
* Implement PGSemaphores using SysV semaphore facilities
*
*
* Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFIC... | 2.265625 | 2 |
2024-11-18T22:04:02.957131+00:00 | 2016-02-11T17:26:09 | 2f4a356a0b6f3c7175f64e050c6ff08748a09443 | {
"blob_id": "2f4a356a0b6f3c7175f64e050c6ff08748a09443",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-11T17:26:09",
"content_id": "83c0f75621f0f3ac5518b32d5e56e2015162056b",
"detected_licenses": [
"MIT"
],
"directory_id": "34edab51b4e6966c1b6666152926d505dfbd11a5",
"extension": "c"... | stackv2 | /**
Copyright (C) 2004 Michael Ahlberg, Måns Rullgård
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... | 2.296875 | 2 |
2024-11-18T22:04:03.057007+00:00 | 2019-04-11T08:10:22 | 6d30117b05949ba560062ed9e9878a21af813703 | {
"blob_id": "6d30117b05949ba560062ed9e9878a21af813703",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-11T08:10:22",
"content_id": "b5ade506a66e116f613e204f5dfeca9ae1c946be",
"detected_licenses": [
"MIT"
],
"directory_id": "d8e69f1258907863b663248b8dd1b1680a0c535d",
"extension": "c"... | stackv2 | #include "test.h"
#include "../src/list.h"
void test_list(void)
{
int val[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
list me = list_init(sizeof(int));
assert(me);
assert(list_size(me) == 0);
assert(list_is_empty(me));
for (int i = 0; i < 10; i++) {
list_add_first(me, &val[i]);
assert(... | 2.671875 | 3 |
2024-11-18T22:04:03.399266+00:00 | 2020-12-04T11:41:35 | d9af5e156fbb88fb94e7f3ee729b232e9a4e472a | {
"blob_id": "d9af5e156fbb88fb94e7f3ee729b232e9a4e472a",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-04T11:41:35",
"content_id": "702a7f648b07f9f0f2b97df85ae60cd4d60f03a4",
"detected_licenses": [
"MIT"
],
"directory_id": "f5042acb435ede4e1d82b439d849ead3fce9e5b6",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
void inverteR(char vet[], int p, int u){
char aux;
if(u<=p) return;
//inverte as letras de posição
aux=vet[p];
vet[p]=vet[u];
vet[u]=aux;
inverteR(vet,p+1,u-1);
}
void inverte(char plv[]){
inverteR(plv,0,strlen(plv)-1);
}
int ... | 3.0625 | 3 |
2024-11-18T22:04:03.453441+00:00 | 2019-01-13T14:01:06 | ff4fd67da1df7566e8be81a2ebb8fa2057bb294d | {
"blob_id": "ff4fd67da1df7566e8be81a2ebb8fa2057bb294d",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-13T14:01:06",
"content_id": "e3b1c52eec3db61cc7514b9b9812e2c5d79e3bc4",
"detected_licenses": [
"MIT"
],
"directory_id": "d0e9244fa5f984e39bcff2221242c7e869d13163",
"extension": "c"... | stackv2 | /*
* hcsr04.c
*
* Created on: 4 gru 2017
* Author: Mateusz Salamon
* www.msalamon.pl
* mateusz@msalamon.pl
*
* https://msalamon.pl/tani-dalmierz-ultradzwiekowy-hc-sr04/
* https://github.com/lamik/HCSR04_nonblocking_STM32
*/
#include "main.h"
#include "stm32l4xx_hal.h"
#include "tim.h"
#include "hcsr04.h... | 2.390625 | 2 |
2024-11-18T22:04:04.458561+00:00 | 2018-07-19T08:31:10 | b06a14e99dc17405eb8f2241b9ba52aab00fcf8f | {
"blob_id": "b06a14e99dc17405eb8f2241b9ba52aab00fcf8f",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-19T08:31:10",
"content_id": "fbd227de3051376f97ecaf49daff66a1f18edca4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5d8f6257fcabcf82efeba883f3b2a94e6048eba7",
"extensio... | stackv2 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2.296875 | 2 |
2024-11-18T22:04:05.147963+00:00 | 2017-04-25T15:17:10 | d2cc28974a3c3fca63828705bd1321b02d95e570 | {
"blob_id": "d2cc28974a3c3fca63828705bd1321b02d95e570",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-25T15:17:10",
"content_id": "7f4eefd1b758f712dfc43e9999aefb2bda6247d3",
"detected_licenses": [
"MIT"
],
"directory_id": "9fe337fe2125ee3b24f0c718cedf6456edcf50ea",
"extension": "h"... | stackv2 | #ifndef functions_h
#define functions_h
#include <Arduino.h>
#include <Adafruit_NeoPixel.h>
#include <ArduinoJson.h>
void setAll(JsonObject& req, JsonObject& res, Adafruit_NeoPixel& pix){
char* function;
function = req["function"];
if(String(function) == "setAll"){
res["function"] = function;
uint8_t nu... | 2.25 | 2 |
2024-11-18T22:04:05.340312+00:00 | 2018-03-29T05:51:05 | c72631acdb534ef35e0c08528ba78301a9c306fc | {
"blob_id": "c72631acdb534ef35e0c08528ba78301a9c306fc",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-29T05:51:05",
"content_id": "f4ddc39b6dd3c858f901801f091627139275cd9e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ce9e6e5ef7aa087a1a7da7fa7bd93991e6fb491b",
"extensio... | stackv2 | /****************************************************************************
*
* Copyright 2017 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | 2.0625 | 2 |
2024-11-18T22:04:06.309710+00:00 | 2018-10-14T17:58:01 | 8b9ea26b5b32699fada57b2e8233e9ec9c4e1deb | {
"blob_id": "8b9ea26b5b32699fada57b2e8233e9ec9c4e1deb",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-14T17:58:01",
"content_id": "6f2e958cd849762c4f36ff85f36b6a0549685807",
"detected_licenses": [
"MIT"
],
"directory_id": "96236fc7ac8bf9b7c4823b16c14d406100cc1833",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/mman.h>
#include <sys/socket.h>
#include <linux/in.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/wait.h>
#include <sys/sysinfo.h>
#define MAX_CHILDREN_PROCESS 1024
#define MAX_CHILDREN_SOCKETS 65000
#define MAX_... | 2.109375 | 2 |
2024-11-18T22:04:06.398476+00:00 | 2020-04-14T03:36:01 | f4d886cd88c58d6372e37a2b0b9999095b63217a | {
"blob_id": "f4d886cd88c58d6372e37a2b0b9999095b63217a",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-14T03:36:01",
"content_id": "bac4ea9532e92d6266b1fc92267a1fede154dba8",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "c034c15a84728269a2244eb2c1ffcf076629f48e",
... | stackv2 | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2011-2015 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2017-2019 Intel, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
/**** ... | 2.234375 | 2 |
2024-11-18T22:04:06.593869+00:00 | 2020-08-10T07:39:22 | 3e59d7428bee5bb4c447d1c33cd60763f7a5856f | {
"blob_id": "3e59d7428bee5bb4c447d1c33cd60763f7a5856f",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-10T07:39:22",
"content_id": "fd3cb5f6c02d1999605e1425d326b1992acbcd98",
"detected_licenses": [
"MIT"
],
"directory_id": "76f0e0ae4da1a24e2fdd159d59902b6e79830680",
"extension": "c"... | stackv2 | // readtree.c
// read the file tree under the specified directory into a filename vector
#define _GNU_SOURCE
#include <string.h>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
#include "rtcommon.h"
#include "readtree.h"
#include "readparms.h"
#include "timer.h"
#define NFILES_CHECK (15)
unsigned int ... | 2.25 | 2 |
2024-11-18T22:04:06.664460+00:00 | 2023-07-12T07:38:29 | 01141271f79153c4c3b76e0b917aa80cd30f5997 | {
"blob_id": "01141271f79153c4c3b76e0b917aa80cd30f5997",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-12T07:38:29",
"content_id": "cf86c38db2516c5998ed5a6c1ce055cea7d7a3d1",
"detected_licenses": [
"MIT"
],
"directory_id": "52c8ed39b32ccc7c0673278c1adea3638797c9ff",
"extension": "c"... | stackv2 | /*
* libc/stdio/vsscanf.c
*/
#include <ctype.h>
#include <limits.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <xboot/module.h>
enum flags {
FL_SPLAT = 0x01, /* Drop the value, do not assign */
FL_INV = 0x02, /* Character-set with inverse */
FL_WIDTH = 0x04, /* Field width s... | 2.734375 | 3 |
2024-11-18T22:04:08.000753+00:00 | 2023-08-28T00:00:02 | 04ba5f325767f612d2337794f2a5bde8c71ea78a | {
"blob_id": "04ba5f325767f612d2337794f2a5bde8c71ea78a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T00:00:02",
"content_id": "669c2cd22de1f0c49dc7c7a5e767b5f19caac00a",
"detected_licenses": [
"MIT"
],
"directory_id": "b01b4365ab6c9afeb6664563dd314df4f269014f",
"extension": "c"... | stackv2 | /**
* @file libwin/radio.c
*
* Yori window radio buttons
*
* Copyright (c) 2020-2021 Malcolm J. Smith
*
* 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.09375 | 2 |
2024-11-18T22:04:08.291640+00:00 | 2019-02-09T03:08:46 | 8b1c52702fd15f4d210264baf2dd3f52b5cab6b8 | {
"blob_id": "8b1c52702fd15f4d210264baf2dd3f52b5cab6b8",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-09T03:08:46",
"content_id": "3272748e397c1798082dec34958b1ff654609781",
"detected_licenses": [
"MIT"
],
"directory_id": "c339d2de439de522a4cf1ed83584ddbc7cd14137",
"extension": "c"... | stackv2 | #ifdef __linux__
#include "nanoev_poller.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
/*----------------------------------------------------------------------------*/
typedef struct _epoll_poller {
int epd;
int notifyfd;
poller_event *events;
int events_co... | 2.515625 | 3 |
2024-11-18T22:04:08.376616+00:00 | 2019-06-27T13:49:18 | cc35ea7416f20ec24b87490fc7ac6bf9c20725d3 | {
"blob_id": "cc35ea7416f20ec24b87490fc7ac6bf9c20725d3",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-27T13:49:18",
"content_id": "de5b974ad7de0f64f6d5c9cab9adb89b827ae3fd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dc8756faa559aae166c3923cfb42e13253f7909a",
"extensio... | stackv2 | #include "message_processer.h"
int process_message(char* message, Command* out) {
if (message == NULL || out == NULL) return 0;
memset(out, 0, sizeof(Command));
int i = 0;
char temp[MAX_MESSAGE_SIZE];
while (message[i] != ' ' && message[i] != '\0') {
temp[i] = message[i];
i++;
}
temp[i] = '\0';
i++;
... | 2.75 | 3 |
2024-11-18T22:04:08.535776+00:00 | 2018-12-04T23:35:45 | 66b17a2c5b4e3170a9fb1413e23921fcfa96fbd4 | {
"blob_id": "66b17a2c5b4e3170a9fb1413e23921fcfa96fbd4",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-04T23:35:45",
"content_id": "71ba28cf5ca232b983ca5c1eab7bdc3f3ab23309",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "afe91e1bba6b17a7ba8547b4a38e12fd5a9fb750",
"extensio... | stackv2 | /*! *****************************************************************************
* \file cv_utils.C
* \author moennen
* \brief
* \date 2018-03-16
* *****************************************************************************/
#include <utils/cv_utils.h>
namespace
{
inline std::array<float, 256> genera... | 2.453125 | 2 |
2024-11-18T22:04:08.698710+00:00 | 2023-07-21T20:07:33 | 402110e1da8ee8b06ba657634941bd6b9f1ff8a0 | {
"blob_id": "402110e1da8ee8b06ba657634941bd6b9f1ff8a0",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-21T20:11:28",
"content_id": "4702189712d98a280d07b54a3f70d5f662b581b3",
"detected_licenses": [
"MIT"
],
"directory_id": "f2c98141258499f5509cffc90679f015ea5e48c2",
"extension": "h"... | stackv2 | /* This file was automatically generated. Do not edit! */
#undef INTERFACE
#include <stdlib.h>
#include <stdbool.h>
void daps_map(char **base,char **end_pt,void f(void *));
#define RETURN(rc) \
{ daps_map(mrs, mrs_end, free); return rc; }
void daps_alloc(char ***base,size_t *s);
#define MK_MRS \
char **mrs; \
... | 2.0625 | 2 |
2024-11-18T22:04:08.790933+00:00 | 2023-07-20T02:58:19 | bb9826260a3a54ddc46297a04c16b806aad9f28f | {
"blob_id": "bb9826260a3a54ddc46297a04c16b806aad9f28f",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-20T02:58:19",
"content_id": "c01e874c4d1eed97b0c93ed268142fb73b439bf9",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4f93f5a27b6c872903b9acf8d20fb736716a26df",
"extensio... | stackv2 | #include <errno.h>
#include <string.h>
#include "medaka_bamiter.h"
#include "medaka_common.h"
#include <stdlib.h>
// iterator for reading bam
int read_bam(void *data, bam1_t *b) {
mplp_data *aux = (mplp_data*) data;
uint8_t *tag;
bool check_tag = (strcmp(aux->tag_name, "") != 0);
bool have_rg = (aux->r... | 2.1875 | 2 |
2024-11-18T22:04:09.250769+00:00 | 2022-08-16T12:54:54 | 4a24b159c96c19858ff9ddb3b4923d8357154984 | {
"blob_id": "4a24b159c96c19858ff9ddb3b4923d8357154984",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-16T12:54:54",
"content_id": "0a431d4ea96561ba073b397030b8d6d34a1449fb",
"detected_licenses": [
"MIT"
],
"directory_id": "bd56b688f546a9e3801578600034e30303f4fbbd",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <errno.h>
#include <limits.h>
#include <math.h>
#include <erl_nif.h>
#include <yaml.h>
/*
* A re-entrant YAML parser as a NIF.
*
* The string data to parse is passed from erlang to the NIF, and then
* the erlang code calls `get_next_event()` repeatedly to get all
* `libyaml` events a... | 2.140625 | 2 |
2024-11-18T22:04:09.408436+00:00 | 2020-02-04T14:25:27 | b1846b7435ecdfb11158671c3887c5e8bdab3dae | {
"blob_id": "b1846b7435ecdfb11158671c3887c5e8bdab3dae",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-04T14:25:27",
"content_id": "174b6098a2fb0799374a0d49833c19a87de82f42",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "5f41d9f61168d13ba41f67588219ef566f1eb87b"... | stackv2 | /* Copyright (c) 2007-2009, Stanford University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 2.0625 | 2 |
2024-11-18T22:04:09.475614+00:00 | 2016-02-04T15:04:45 | 0ef147c9d0da48290820d2a649fa09fba81ecbca | {
"blob_id": "0ef147c9d0da48290820d2a649fa09fba81ecbca",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-04T15:04:45",
"content_id": "6ed3ceca95bbbffba11a0281c0c2dc568b91dfbe",
"detected_licenses": [
"ISC"
],
"directory_id": "8d2a9762d0c615f44b4cdb37fd9c46425d12e04a",
"extension": "c"... | stackv2 | /* rot_log.c - logs things */
extern void rot_print();
void rot_log(char *__id, char *__msg)
{
rot_print(__id);
rot_print(": ");
rot_print(__msg);
rot_print("\n");
}
| 2.09375 | 2 |
2024-11-18T22:04:09.545913+00:00 | 2021-03-17T07:29:19 | 3c7137e611ccb1c84d8b88b573acb9d2e3af1283 | {
"blob_id": "3c7137e611ccb1c84d8b88b573acb9d2e3af1283",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-17T07:29:19",
"content_id": "968f60492bcd89b1e96c7fa1e3f1460a204fe107",
"detected_licenses": [
"curl",
"Apache-2.0"
],
"directory_id": "546018757d22ae76154b87335db68e1cfabfedcb",... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "io_k8s_api_core_v1_seccomp_profile.h"
io_k8s_api_core_v1_seccomp_profile_t *io_k8s_api_core_v1_seccomp_profile_create(
char *localhost_profile,
char *type
) {
io_k8s_api_core_v1_seccomp_profile_t *io_k8s_api_core_v1_seccomp_profile_... | 2.234375 | 2 |
2024-11-18T22:04:09.630034+00:00 | 2023-05-09T15:26:04 | 316e737953546ca7bd7343e586003a2c7c3577bf | {
"blob_id": "316e737953546ca7bd7343e586003a2c7c3577bf",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-09T15:26:04",
"content_id": "6253f972e87c8812f1b7143b44c5e69beace85a8",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f59cf111166defd278548b3853ae1b31284bc395",
"extens... | stackv2 | #include "hustmq_ha_handler.h"
#include "hustmq_ha_utils.h"
#include "hustmq_ha_request_handler.h"
#include "hustmq_ha_handler_filter.h"
#include "hustmq_ha_peer_def.h"
typedef struct
{
ngx_http_subrequest_ctx_t base;
ngx_http_subrequest_peer_t * subrequest_peer;
size_t count;
ngx_str_t args;
hustm... | 2.1875 | 2 |
2024-11-18T22:04:09.721679+00:00 | 2019-07-17T06:58:26 | 9881f7d44e770f290f51bf55f74443a72a368caa | {
"blob_id": "9881f7d44e770f290f51bf55f74443a72a368caa",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-17T06:58:26",
"content_id": "bdc69748d6b53baae9a08e727e74f9cd34f9f2d5",
"detected_licenses": [
"MIT"
],
"directory_id": "e1a2a1245dbd3d92e8b2aeb49b33aba5df09594b",
"extension": "c"... | stackv2 | /*
* connector.c
*
* Copyright (c) 2016-2019 Tim <and-joy@qq.com>
* All rights reserved.
*/
#include <ux.h>
#define AWE_LOG_TAG "connector"
#include "awe/log.h"
#include "awe/connector.h"
static void connector_connecthandling(void* userdata, int fd, int mask){
awe_connector *connector = (awe_connector *)userd... | 2.3125 | 2 |
2024-11-18T22:04:10.007798+00:00 | 2017-06-24T18:31:16 | 062ed9e47a6384450984c65f15e8e579c5a93d8b | {
"blob_id": "062ed9e47a6384450984c65f15e8e579c5a93d8b",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-24T18:31:16",
"content_id": "2857664062e91783fe2a33e712fb5edab029f42b",
"detected_licenses": [
"MIT"
],
"directory_id": "98df9d9ad6fa6765f60b18a9b61d0f3cc6cfd3c6",
"extension": "h"... | stackv2 | /*!
* Copyright (c) 2017 Nicholas Corgan (n.corgan@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#ifndef CAL_TIME_H
#define CAL_TIME_H
#include <cal/config.h>
#ifdef __cplusplus
extern "C" {
#endif
#if defined(CAL_PL... | 2.390625 | 2 |
2024-11-18T22:04:10.117658+00:00 | 2020-08-20T20:33:01 | e52bb41fda824d59197c2dbdbc10f1fb65201aad | {
"blob_id": "e52bb41fda824d59197c2dbdbc10f1fb65201aad",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-20T20:33:01",
"content_id": "36cb5b4309439a1021fe91eb0d11fded994d174a",
"detected_licenses": [
"MIT"
],
"directory_id": "8b0cc1c39b954b3475860a21ab6bc6d6e30becee",
"extension": "h"... | stackv2 | struct TpFilaPrioridadeDinamica{
char elemento;
int prioridade;
TpFilaPrioridadeDinamica *prox;
};
struct TpDescritor{
TpFilaPrioridadeDinamica *inicio, *fim;
};
void inicializar(TpDescritor &desc){
desc.inicio = desc.fim = NULL;
}
TpFilaPrioridadeDinamica *novaCaixa(char elemento, int prioridade)... | 2.953125 | 3 |
2024-11-18T22:04:10.644812+00:00 | 2016-01-30T05:57:50 | 9a53f559b807565af1e146d77a18a902e2daca23 | {
"blob_id": "9a53f559b807565af1e146d77a18a902e2daca23",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-30T05:57:50",
"content_id": "7c80a9e8f9f2013982a814a1ac19725f9ef5e166",
"detected_licenses": [
"MIT"
],
"directory_id": "e51941fb436df104b60c80c4d0db91a5ba506dff",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
typedef struct Node {
int data;
struct Node * next;
}Node;
Node * removeDuplicates( Node * head ) {
if ( !head ) {
return;
}
Node * tmp = head;
while ( tmp ) {
while ( tmp->next && tmp->data == tmp->next->data ) {
tmp->next = tmp... | 3.53125 | 4 |
2024-11-18T22:04:10.708208+00:00 | 2021-01-29T12:56:27 | 98baeba958cba330e13da55ab7d09bfaa96c02e5 | {
"blob_id": "98baeba958cba330e13da55ab7d09bfaa96c02e5",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-29T12:56:27",
"content_id": "a5c78599e30c14840ea9222ed71ddb7700138095",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "596b8e680ba1900d4a71addebd29f3f4448f8b74",
"extens... | stackv2 | // Required definitions
#include <stdint.h>
typedef uintptr_t target_ulong;
#define h2g(x) (x)
#define g2h(x) (x)
// Include the impl
#include "asan-giovese-inl.h"
// Test-only headers
#include "pmparser.h"
#include <stdio.h>
target_ulong get_pc() {
return (target_ulong)__builtin_return_address(0);
}
void asan_... | 2.3125 | 2 |
2024-11-18T22:04:11.811764+00:00 | 2023-08-17T16:08:06 | 7a7c280780c7726848a0d6a871ab32c41da0b1cb | {
"blob_id": "7a7c280780c7726848a0d6a871ab32c41da0b1cb",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T16:08:06",
"content_id": "01f1995a0debac183706c15d3927d0489891cd90",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066",
"extensio... | stackv2 | static char help[] = "Test metric utils in the uniform, isotropic case.\n\n";
#include <petscdmplex.h>
static PetscErrorCode bowl(PetscInt dim, PetscReal time, const PetscReal x[], PetscInt Nc, PetscScalar *u, void *ctx)
{
PetscInt d;
*u = 0.0;
for (d = 0; d < dim; d++) *u += 0.5 * (x[d] - 0.5) * (x[d] - 0.5);... | 2.03125 | 2 |
2024-11-18T22:04:12.592887+00:00 | 2021-03-24T15:15:00 | 7df4c1381f829f1315114aedbebed6a5110d86ec | {
"blob_id": "7df4c1381f829f1315114aedbebed6a5110d86ec",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-24T15:15:00",
"content_id": "b0c699ebe86f8186ffeb94c3202b3c3abd864b81",
"detected_licenses": [
"MIT"
],
"directory_id": "0ded3074ccc75f9cb1d1fdbdaa87e85d3d94dd5d",
"extension": "h",
... | stackv2 | #ifndef TUTORIAL_H_INCLUDED
#define TUTORIAL_H_INCLUDED
#include "Snakes.h"
#include "background.h"
#include "Fruits.h"
#include <math.h>
void UpdateDummySnake(Snake * dummy, int w, int h);
bool UpdateTutorial(Game* tuto, Fruits *fruits, Background *b);
void DrawTutorial(Game* tuto, Fruits *fruits, Background *b);
... | 2.265625 | 2 |
2024-11-18T22:04:12.728123+00:00 | 2020-11-10T00:23:31 | 8cccf06f6cc0da6400a1082f2b4639f699afad39 | {
"blob_id": "8cccf06f6cc0da6400a1082f2b4639f699afad39",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-10T00:23:31",
"content_id": "3f1731c81d5e28da28362fa2e78b6b9d52d427f0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "15e818aada2b18047fa895690bc1c2afda6d7273",
"extensio... | stackv2 | /*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 2.6875 | 3 |
2024-11-18T22:04:13.986398+00:00 | 2020-09-02T06:31:53 | 79f4022d79a54c134ca809bd44930b1b2149f479 | {
"blob_id": "79f4022d79a54c134ca809bd44930b1b2149f479",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-02T06:31:53",
"content_id": "9d6181d83290d72a89b47f91d062485d2b48012c",
"detected_licenses": [
"MIT"
],
"directory_id": "147050ef64df8c1dff0b7d7e19669af3b406e51f",
"extension": "c"... | stackv2 | #include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "conf.h"
#include "dr.h"
#include "dir.h"
#include "db.h"
#include "dc3.h"
#include "object.h"
#include "meta.h"
#include "checkout.h"
#include "patch.h"
#include "diff.h"
#define COST (10)
#define MIN(a, b) ((a... | 2.46875 | 2 |
2024-11-18T22:04:16.616063+00:00 | 2023-06-07T10:33:45 | 0de67742953201de0a9dec83c7ba1a74a4076b10 | {
"blob_id": "0de67742953201de0a9dec83c7ba1a74a4076b10",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-07T10:33:45",
"content_id": "c4635e8c8c79c92b2b3fcedcb17ddf544dcbf40f",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "079c89592623761bca570711de440179e2b1f5a0",
"extens... | stackv2 | #ifndef RUUVI_INTERFACE_SPI_DPS310_H
#define RUUVI_INTERFACE_SPI_DPS310_H
#include <stdint.h>
/**
* @addtogroup SPI
* @{
*/
/**
* @file ruuvi_interface_spi_dps310.h
* @author Otso Jousimaa <otso@ojousima.net>
* @brief SPI read/write functions for Infineon DPS310.
* @date 2020-12-31
* @copyright Ruuvi Innovation... | 2.046875 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.