added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T22:49:19.860901+00:00 | 2019-07-21T21:19:19 | 5b11aa6ea9b3a75e90933cf2654c264a372f756a | {
"blob_id": "5b11aa6ea9b3a75e90933cf2654c264a372f756a",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-07T22:59:07",
"content_id": "25f277ab289a2af1f65d70f1033866bab6ee8093",
"detected_licenses": [
"Unlicense"
],
"directory_id": "68c76ca4967cd24696ac1720da7cac3438cec53b",
"extension... | stackv2 | /* C89 library */
#include <float.h>
#include <stdlib.h>
#include <string.h>
/* Interfaces */
#include "downsampler.h"
#include "geometry.h"
#include "turtle.h"
static struct turtle_map * geoid = NULL;
static struct turtle_map * map = NULL;
static struct turtle_stepper * stepper = NULL;
static double zmax = 0.;
sta... | 2.328125 | 2 |
2024-11-18T22:49:19.996359+00:00 | 2020-11-25T04:22:33 | 8e82e9253481301c5f43324bc08bc2f62a528229 | {
"blob_id": "8e82e9253481301c5f43324bc08bc2f62a528229",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-25T04:22:33",
"content_id": "8962102a3b3cfb11494998635a3631419a048cc8",
"detected_licenses": [
"MIT"
],
"directory_id": "5878c2cff7ef1ed2d05e7ff7628dcba0fd134020",
"extension": "c"... | stackv2 | #include<stdio.h>
int main()
{
char fud_name;
int price,qty;
printf("enter the dish name: ");
scanf("%s",&fud_name);
printf("enter the price : ");
scanf("%d",&price);
printf("enter the quantity : ");
scanf("%d",&qty);
int sum= qty*price;
printf("%d",sum);
float hst = 13%sum;
printf("%f",hst);
float total= ... | 2.890625 | 3 |
2024-11-18T22:49:20.130785+00:00 | 2020-11-22T09:29:37 | 1869b219230d0b935423f3eb4a5e8e6da58f6c4c | {
"blob_id": "1869b219230d0b935423f3eb4a5e8e6da58f6c4c",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-22T10:02:13",
"content_id": "f7ff79d2245ce581866accbe7b62751a1962aa5d",
"detected_licenses": [
"Apache-2.0",
"NCSA"
],
"directory_id": "3a3bba8aa444575101dd075f5c3048b316d0d2d5",... | stackv2 | #define DOT .
#define L [
#define R ]
#define EQ =
#define RANGE ...
#define _4 4
#define _6 6
#define _5 5
struct A {
int X[10];
};
void f_DOT() {
struct A A1 = { DOT X [ 4 ... 6 ] = 5 };
}
void f_L() {
struct A A1 = { . X L 4 ... 6 ] = 5 };
}
void f_R() {
struct A A1 = { . X [ 4 ... 6 R = 5 };
}
void f_E... | 2.125 | 2 |
2024-11-18T22:49:21.392879+00:00 | 2021-05-20T16:11:02 | a2aa0a93c6bd22e23b4d594034b47caf74265cec | {
"blob_id": "a2aa0a93c6bd22e23b4d594034b47caf74265cec",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-22T19:40:32",
"content_id": "e003b7b691c5f66aa13ab046fe83359cf42ae294",
"detected_licenses": [
"MIT"
],
"directory_id": "659f4c7d6b8d5473428d6910bd5419addc7a4f53",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "utils.h"
#include "args.h"
#include "styles.h"
#include "terminal.h"
#include "indexer.h"
#include "list.h"
#include "config.h"
static void begin_style(struct terminal *terminal,
const struct style *style,
... | 2.484375 | 2 |
2024-11-18T22:49:21.901287+00:00 | 1994-06-29T21:19:38 | ce09f7a6fd4503422c696692cbccc5a350d90f76 | {
"blob_id": "ce09f7a6fd4503422c696692cbccc5a350d90f76",
"branch_name": "refs/heads/master",
"committer_date": "1994-06-29T21:19:38",
"content_id": "3ddbd23e3076011e4278e64184da9a6c42da4948",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "486b2ddfd48234374ffe3bff9e63d2aaf84fba0a",
"extens... | stackv2 | /*
* $Source: /a/cvs/386BSD/src/kerberosIV/kdestroy/kdestroy.c,v $
* $Author: wollman $
*
* Copyright 1987, 1988 by the Massachusetts Institute of Technology.
*
* For copying and distribution information, please see the file
* <mit-copyright.h>.
*
* This program causes Kerberos tickets to be destroyed.
* O... | 2.46875 | 2 |
2024-11-18T22:49:22.058661+00:00 | 2020-03-05T02:31:19 | ec9b54a44bc22ba5865dff0ccbf012055f82b51b | {
"blob_id": "ec9b54a44bc22ba5865dff0ccbf012055f82b51b",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-05T02:31:19",
"content_id": "f04c1fc587f0d63349e08810035ae10fdb5da8cd",
"detected_licenses": [
"MIT"
],
"directory_id": "8721aeafd706c1ffbeeaf41a8f9b96cacefc071a",
"extension": "c"... | stackv2 | /*
Listagem de dados com "nome valor empresa" de arquivo binario,
com nome e empresa sem espacos (substituidos por sublinha). nome
e empresa contem 40 caraceres com terminacao '\0'; valor no
formato IEEE 754 de precisao simples (float).
Jander, 2018
*/
#include <stdio.h>
int main(){
FILE *arquivo;
char no... | 3.234375 | 3 |
2024-11-18T22:49:22.130670+00:00 | 2018-09-05T22:14:54 | 3682fea967ebdaa790eac3e9c86d3764b7aa1262 | {
"blob_id": "3682fea967ebdaa790eac3e9c86d3764b7aa1262",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-05T22:14:54",
"content_id": "00bc4360544f6662506bd513a751bde3b70f6fe9",
"detected_licenses": [
"MIT"
],
"directory_id": "753b9165db98a70d89d5b3fe98a54181121a595a",
"extension": "c"... | stackv2 | /*
* CMPT 332 -- Fall 2017
* Assignment 3
* Derek Perrin dmp450 11050915
* Dominic McKeith dom258 11184543
*/
#include "types.h"
#include "stat.h"
#include "user.h"
#define NFORK 10
void
child_proc(void)
{
setpriority(getpid(), 4);
sleep(0);
printf(1, "I am a child with priority %d\n", getpriority(getp... | 3.09375 | 3 |
2024-11-18T22:49:23.426449+00:00 | 2018-05-13T15:40:24 | 8a031fd8ca42b8a4862798d6de36958197627946 | {
"blob_id": "8a031fd8ca42b8a4862798d6de36958197627946",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-13T15:40:24",
"content_id": "8b8a401f1ce9b7146fce3ed6c0ff5727a0ae9120",
"detected_licenses": [
"MIT"
],
"directory_id": "7ae1ee5a4c787cc467e471e4b6f211abebc1e218",
"extension": "h"... | stackv2 | #include <Arduino.h>
#include <../../shared/shared_structs.h>
struct MotorConfig {
int pwmPin;
int forwardPin;
int backwardPin;
MotorConfig(int pwm, int fw, int bw) : pwmPin(pwm), forwardPin(fw), backwardPin(bw) {}
};
void motor_init(MotorConfig &motor) {
pinMode(motor.pwmPin, OUTPUT);
pinMode(motor.forwa... | 2.4375 | 2 |
2024-11-18T22:49:23.550246+00:00 | 2023-07-27T17:32:21 | a0188cae3ee320b0997bc0bf7f54c2a66ea3a99e | {
"blob_id": "a0188cae3ee320b0997bc0bf7f54c2a66ea3a99e",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-27T17:32:21",
"content_id": "e43f3b829fd0c336dfe96f6ec49dda919625dc01",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "60f27032d05f5977ae6a871a968022b674a6ddd1",
"extens... | stackv2 | #include <string.h>
#include "json.h"
#include "log.h"
#include "mettle.h"
#include "network_server.h"
#include "utlist.h"
struct mettle_rpc {
struct mettle *m;
int running;
struct network_server *ns;
struct json_rpc *jrpc;
struct mettle_rpc_conn {
struct mettle_rpc *mrpc;
struct json_tokener *tok;
struct ... | 2.21875 | 2 |
2024-11-18T20:50:25.404623+00:00 | 2023-07-15T12:54:41 | 42284508b0f1d1bd0cf82a82077d2ba66865e9ac | {
"blob_id": "42284508b0f1d1bd0cf82a82077d2ba66865e9ac",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-15T12:54:41",
"content_id": "86989cee4e5a962a22e403078985285f070ce3fb",
"detected_licenses": [
"MIT"
],
"directory_id": "c2e5660e8e757e466df5ed614e2388890e2158bb",
"extension": "h"... | stackv2 | #pragma once
#include "Common/Components/Component.h"
#include <SFML/System/Vector2.hpp>
#include <SFML/System/Time.hpp>
/**
* @struct Gun component.
* Useful for shooting bullets, has a pointing direction and a cooldown time.
*/
struct Gun : public IdentifiableComponent<Gun>
{
Gun(const sf::Vector2f& pointing... | 2.140625 | 2 |
2024-11-18T20:50:26.538869+00:00 | 2023-08-21T15:07:35 | 014708b9b93e2b2374ee22bb147cf7494af2e083 | {
"blob_id": "014708b9b93e2b2374ee22bb147cf7494af2e083",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-21T15:07:35",
"content_id": "fe478693d9d1917d559ec0c0175220af3f9b53a5",
"detected_licenses": [
"MIT"
],
"directory_id": "ecd69837ab8c8463ed398757ff13226047fbcec0",
"extension": "c"... | stackv2 | /*
* The MIT License
*
* Wavefront Alignment Algorithms
* Copyright (c) 2017 by Santiago Marco-Sola <santiagomsola@gmail.com>
*
* This file is part of Wavefront Alignment Algorithms.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software... | 2.265625 | 2 |
2024-11-18T20:50:27.848334+00:00 | 2021-09-02T05:02:37 | 7156adbc6ea305400d7041ad3a26d1bf9b2e4a5a | {
"blob_id": "7156adbc6ea305400d7041ad3a26d1bf9b2e4a5a",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-08T22:14:26",
"content_id": "f8eb48bb691478cccd9bd10d3db273c516321428",
"detected_licenses": [
"MIT"
],
"directory_id": "d3dbde5badcffc34f3c5ba9185acfe745cf0f95e",
"extension": "h",
... | stackv2 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#ifndef _MYST_FDTABLE_H
#define _MYST_FDTABLE_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <unistd.h>
#include <myst/defs.h>
#include <myst/epolldev.h>
#include <myst/eventfddev.h>
#include <myst/fs.h>
#include <mys... | 2.46875 | 2 |
2024-11-18T20:50:27.906658+00:00 | 2017-11-25T03:23:41 | db0d0380c1f29aa14c871c75246b90b79dabc48c | {
"blob_id": "db0d0380c1f29aa14c871c75246b90b79dabc48c",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-25T03:23:41",
"content_id": "ce95ab63e695d45042c6a1b469e90b697d0e302c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "71a29beaefb3047022a199d41ead7d39b84cacf8",
"extens... | stackv2 | #ifndef SCHEDULER_H
#define SCHEDULER_H
#include "stdio.h"
#include "lib.h"
#include "interrupts.h"
#include "systemCalls.h"
#include <naiveConsole.h>
#include "process.h"
#include "structs.h"
#include "types.h"
#define INIT_PID 0
typedef void (*EntryPointHandler) (void*);
typedef struct ProcessSlotS {
struct Proc... | 2.09375 | 2 |
2024-11-18T20:50:27.968428+00:00 | 2021-10-16T05:49:22 | e9cbb070db9d9e93d45683173519d7266afb638b | {
"blob_id": "e9cbb070db9d9e93d45683173519d7266afb638b",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-16T07:31:21",
"content_id": "11216cc5ca0a6fba829168d950c215a88ae9f3dc",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "91729ccf7286bddffb04df2f4889462e4a40a294",
"extension"... | stackv2 | //
// Created by lujun on 19-6-28.
//
// This contains SIN_COS , clarke, inv_clarke, park, inv_park and pid
// each one has it's own function.
// All function can be found in main function.
// If you don't want to use it, then comment it.
#include "riscv_common_tables.h"
#include "riscv_const_structs.h"
#include "riscv... | 2.03125 | 2 |
2024-11-18T20:50:28.613304+00:00 | 2021-09-12T02:09:30 | a04b16880d25f63b590e1bb17aaaa1d5469c76bd | {
"blob_id": "a04b16880d25f63b590e1bb17aaaa1d5469c76bd",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-12T02:09:45",
"content_id": "f86c89b4acda99d585742314332ea769500f411c",
"detected_licenses": [
"MIT"
],
"directory_id": "52c46d30c0491add8c1050b79a3cf2cfc97abd60",
"extension": "h"... | stackv2 | //This file was automatically generated by Makefile at https://github.com/cntools/rawdraw
//Generated from files git hash 7b618b4a500c6308a887d2a44dc845fc941d8c82 on Sun Jun 6 09:54:28 PM EDT 2021 (This is not the git hash of this file)
// Copyright 2010-2021 <>< CNLohr, et. al. (Several other authors, many but not al... | 2.046875 | 2 |
2024-11-18T20:50:28.810248+00:00 | 2023-06-17T17:46:23 | 9346272b4bcdb637b67e053f7e727a00fa58018f | {
"blob_id": "9346272b4bcdb637b67e053f7e727a00fa58018f",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-11T12:25:31",
"content_id": "6e6f9c7c2136d5a7912015e62bc0c353458574a6",
"detected_licenses": [
"Unlicense"
],
"directory_id": "01ace0f357a25a895df67b2fe60020a9e9713766",
"extension... | stackv2 | #include "libimaildir.h"
// args which are constant through the whole recursion
typedef struct {
const msg_view_t *view;
unsigned int seq;
unsigned int seq_max;
unsigned int uid_dn_max;
// get a read-only copy of either headers or whole body, must be idempotent
derr_t (*get_hdrs)(void*, const i... | 2.484375 | 2 |
2024-11-18T20:50:28.990536+00:00 | 2015-01-08T05:36:23 | 50baee5bc9933fbfa70834a9babc67d1f05dfc8e | {
"blob_id": "50baee5bc9933fbfa70834a9babc67d1f05dfc8e",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-08T05:36:23",
"content_id": "96ea2bd43911f00fb5393bc690fef6ce9e9d8727",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9b68ea36349bc699985d410ede3f556299fdb766",
"extensio... | stackv2 | /**************************************
File name : EMVCMD.C
Function : EMV卡片指令
Author : Yu Jun
First edition : Feb 24th, 2003
Note : immigrate from PBOCCMD.C
Modified : July 31st, 2008
from EMV2000 to EMV2004
Mar 29th, 2012
from EMV2004 to EMV2008
ushort -> uint
... | 2.203125 | 2 |
2024-11-18T20:50:29.183622+00:00 | 2019-08-16T15:33:16 | c8b8db778261a4c3cf15ba2627b392b1740956f8 | {
"blob_id": "c8b8db778261a4c3cf15ba2627b392b1740956f8",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-16T15:33:16",
"content_id": "8b10936e876bbe24bbb6cdd42ab3fe5a17dfb9d1",
"detected_licenses": [
"MIT"
],
"directory_id": "36890d6977027510fa371df53e1ed4a774a0c345",
"extension": "c"... | stackv2 | /*
Do While Loop
The do-while loop. The same as a while loop, except the loop body
is executed once *before* the test expression. So, at minimum, the code
inside the do-while body will execute once.
*/
#include <stdio.h>
int main(void)
{
int number = 10;
do
{
printf("%d ", number... | 3.71875 | 4 |
2024-11-18T20:50:29.238288+00:00 | 2023-08-16T08:49:18 | 14726eeec77b52f38d81afaa952a0e77438a282d | {
"blob_id": "14726eeec77b52f38d81afaa952a0e77438a282d",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T08:49:18",
"content_id": "470526fe1907b8af1a7e94945fdecbf6558067b0",
"detected_licenses": [
"MIT"
],
"directory_id": "e3acfc4f06840e23ef1185dcf367f40d3e3f59b4",
"extension": "c"... | stackv2 | #include <pthread.h>
#include <goblint.h>
#include <setjmp.h>
#include <stdio.h>
jmp_buf error0;
jmp_buf error1;
int blorg(int x) {
if(x > 8) {
longjmp(error1, 1); // WARN (modified since setjmp)
}
return x;
}
int blub(int x,int y) {
if(x == 0) {
longjmp(error0, 1); // WARN (modified since setjmp)
... | 2.546875 | 3 |
2024-11-18T20:50:30.892706+00:00 | 2019-11-12T07:04:24 | 5acfb5b0a9f11e74c9aeec1ef44a39247aee01dc | {
"blob_id": "5acfb5b0a9f11e74c9aeec1ef44a39247aee01dc",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-12T07:04:24",
"content_id": "ea0059846cf537e2f666341595ed8f4c58175b99",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6b090dfe77e8d8bf937100e70341cb190213d710",
"extens... | stackv2 | /* Vectorized routines for x86 AVX-512 instructions
*
* Most speed-critical code is in the .h file, to facilitate inlining.
*
* Contents:
* 1. Debugging/development routines
* 2. Unit tests
* 3. Test driver
*
* This code is conditionally compiled, only when <eslENABLE_AVX512> was
* set in <esl_... | 2.3125 | 2 |
2024-11-18T20:50:31.020148+00:00 | 2020-12-20T06:27:33 | 7de558d157429cd42112d362cc0c250cb010a715 | {
"blob_id": "7de558d157429cd42112d362cc0c250cb010a715",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-20T06:27:33",
"content_id": "ea5d0aa60f8d4c34f18c3400961d3ed1bd89e65a",
"detected_licenses": [
"0BSD"
],
"directory_id": "9c3e6a0944eb766d3a5cc5c16fd0a100167fba24",
"extension": "c... | stackv2 | #include "clib.h"
#include "syscalls.h"
#include "errno.h"
#include <linux/sched.h>
#include <linux/futex.h>
size_t PAGE_SIZE;
void __init_libc() {
__errno_init_errno();
struct stat statbuf;
if (stat("/dev/mem", &statbuf) < 0) {
exit(-1);
}
PAGE_SIZE = statbuf.st_blksize;
__errno_init_thread();
return;
}
voi... | 2.484375 | 2 |
2024-11-18T20:50:31.093501+00:00 | 2015-11-04T21:25:35 | 4b9e52edbd445039a73e2ea79470923cd451ed4a | {
"blob_id": "4b9e52edbd445039a73e2ea79470923cd451ed4a",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-04T21:25:35",
"content_id": "e2afa5f4e22cf847c4d4b6169be65f27281fc198",
"detected_licenses": [
"BSD-4-Clause-UC",
"BSD-2-Clause"
],
"directory_id": "945742b74c53ff202b6eae226df23... | stackv2 | // #include <string.h>
#include "config.h"
#include "muxxlib.h"
#include "muxxdef.h"
#include "errno.h"
typedef int (*MAINPROG)(int, char **, char **);
#define NULL 0x0
int rshell() {
char *parm = (char *) TASK_BASE;
ADDRESS entry = NULL;
MAINPROG pgm = NULL;
int rc = 0;
printf("Loading from device %8s...... | 2.5625 | 3 |
2024-11-18T20:50:31.222848+00:00 | 2021-06-30T06:33:22 | 5472773563d38b26b724c29449de08e979371526 | {
"blob_id": "5472773563d38b26b724c29449de08e979371526",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-30T06:33:22",
"content_id": "a39e04199f1f88f3cc35635ed5f6af017cc06608",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0d9b8bec2a76cd67354fb6e790bc9a663efe0e0b",
"extensio... | stackv2 | /**
******************************************************************************
* @file main.c
* @author MCU Software Team
* @Version V1.2.0
* @Date 2021-01-11
* @brief main function
******************************************************************************
*/
/* Includes ---------------... | 2.328125 | 2 |
2024-11-18T20:50:31.286823+00:00 | 2017-01-19T02:02:50 | 66c28f8ae2c1753a0a78f459b4f37229199975fe | {
"blob_id": "66c28f8ae2c1753a0a78f459b4f37229199975fe",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-19T02:02:50",
"content_id": "3ed4ce6b7948c7911427d01a36e8686760f35b51",
"detected_licenses": [
"PostgreSQL",
"BSD-2-Clause"
],
"directory_id": "4d5f2cdc0b7120f74ba6f357b21dac063e... | stackv2 | /*-------------------------------------------------------------------------
*
* proc.c
* routines to manage per-process shared memory data structure
*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFIC... | 2 | 2 |
2024-11-18T20:50:31.522337+00:00 | 2021-10-30T12:56:11 | ac90614527394932329b87b3bf16cb161baa0e08 | {
"blob_id": "ac90614527394932329b87b3bf16cb161baa0e08",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-30T12:56:11",
"content_id": "630fbb3bfefd83adb5c08639e81964e9fe8f9ea0",
"detected_licenses": [
"MIT"
],
"directory_id": "a41e9d03d36a27e21acc379758e8beb72307e2b9",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#define ANSI_FG_RED "31"
#define ANSI_FG_GREEN "32"
#define ANSI_FG_YELLOW "33"
#define ANSI_FG_BRIGHT_RED "91"
#define ANSI_FG_BRIGHT_GREEN "92"
#define ANSI_FG_BRIGHT_YELLOW "93"
#define FILENAME_MAX_SIZE 4098
static... | 3.109375 | 3 |
2024-11-18T20:50:31.612357+00:00 | 2011-04-27T06:48:00 | ca3c7d4907963e14efd232e312a4075369426ef8 | {
"blob_id": "ca3c7d4907963e14efd232e312a4075369426ef8",
"branch_name": "refs/heads/master",
"committer_date": "2011-04-27T06:48:00",
"content_id": "d1075d95467d0024f5d5c28fc07966c3d868d7fd",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "ca02e948a5ed8c73a5ccdfeba9f358bee93d3646",
"... | stackv2 | /* execCVTest.c
*
* Test program to test functionality of Exec syscalls
*
*
*
*/
#include "syscall.h"
int main()
{
Write("Executing CVTest...\n", sizeof("Executing CVTest...\n"), ConsoleOutput);
Exec("../test/CVTest");
/* not reached */
Exit(0);
} | 2.125 | 2 |
2024-11-18T20:50:32.046150+00:00 | 2020-09-01T12:14:37 | 21f167f27240b1b453993c6f0331459053000c42 | {
"blob_id": "21f167f27240b1b453993c6f0331459053000c42",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-01T12:14:37",
"content_id": "94d8acd85c87a159b6cf50bcfff7e37083f1c09e",
"detected_licenses": [
"MIT"
],
"directory_id": "af6e13381ff7945e655ca0ca0158f4211c73e3c1",
"extension": "h"... | stackv2 | // ----------------------------------------
#define INFO(fmt, args...) \
do { \
logmsg("INFO", __func__, fmt, ## args); \
} while (0)
#define WARN(fmt, args...) \
do { \
logmsg("WARN", __func__, fmt, ## args); \
} while (0)
#define ERROR(fmt, args...) \
do { \
logmsg("ERROR"... | 2.015625 | 2 |
2024-11-18T20:50:32.254374+00:00 | 2022-02-27T17:47:22 | 8849166062d72f37491b57754db7c5744d5747d2 | {
"blob_id": "8849166062d72f37491b57754db7c5744d5747d2",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-27T17:47:22",
"content_id": "dd47fc678396d7afa31fab938c63406f47f5ee5e",
"detected_licenses": [
"ISC"
],
"directory_id": "1d895fbf9451d4a38f834acc923cdedad173a88a",
"extension": "c"... | stackv2 | #include <stdio.h>
/* See LICENSE file for copyright and license details. */
#include "common.h"
/**
* Encode a number in big-endian with a size prefix
*
* @param state The hashing state the feed the number to
* @param buf Buffer that is at least `byterate` bytes large
* @param byterate The byt... | 2.90625 | 3 |
2024-11-18T20:50:32.627730+00:00 | 2017-10-31T17:46:50 | 8b21f456e0dc1dd3436a04efcbdfc18ff79dddc5 | {
"blob_id": "8b21f456e0dc1dd3436a04efcbdfc18ff79dddc5",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-31T17:46:50",
"content_id": "76be49d1b7adae7e5e8e16bec6297bbe6d2c2478",
"detected_licenses": [
"MIT"
],
"directory_id": "90e2fefd960b5d57f1f4e80108bad69f96cff8fd",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ants_run_1.c :+: :+: :+: ... | 2.484375 | 2 |
2024-11-18T20:50:32.881016+00:00 | 2018-09-27T08:30:24 | 3b8c9624a39736b099dbfaeb02ea62f3bc3d4e0b | {
"blob_id": "3b8c9624a39736b099dbfaeb02ea62f3bc3d4e0b",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-27T08:30:24",
"content_id": "7d4390ef653d63c2f833c560cedb3e7e10b61c60",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "cfee92bf74c4976404b0487a6345a6a2... | stackv2 | #include "phonebook_opt.h"
/* TODO: FILL YOUR OWN IMPLEMENTATION HERE! */
Node *AVLHead;
entry* findName(char lastName[], entry *pHead)
{
int i;
int key=getHashKey(lastName);
Node *keynode=findNode(AVLHead,key);
if(keynode==NULL) {
return NULL;
} else {
entry* currEntry=keynode->ent... | 3.21875 | 3 |
2024-11-18T20:50:33.439207+00:00 | 2020-09-20T06:13:26 | d18aba6086f03fbec222b0c830b4c5823ffc0d3a | {
"blob_id": "d18aba6086f03fbec222b0c830b4c5823ffc0d3a",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-20T06:13:26",
"content_id": "b401ab39668c84f4aa8175c50ede5cadc0836881",
"detected_licenses": [
"Unlicense"
],
"directory_id": "eeb257751eebe0ac01101f1686a0b8b1611f5ce3",
"extension... | stackv2 | //=============================================================================
// Cargo.h
//
// Created July 30, 2014 by Abe Pralle
//=============================================================================
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
//============================... | 2.140625 | 2 |
2024-11-18T20:50:33.732273+00:00 | 2023-02-28T15:06:32 | 820bacd991b44ac30447793bd8dd9325ada6bdb7 | {
"blob_id": "820bacd991b44ac30447793bd8dd9325ada6bdb7",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-28T15:06:32",
"content_id": "a2c3dbc847dfab386f9bc814e99a959bedbdc7cc",
"detected_licenses": [
"MIT",
"Apache-2.0"
],
"directory_id": "120c112ce63daaa939438e0b6f9390634af0f7ae",
... | stackv2 | /* SPDX-License-Identifier: Apache-2.0 OR MIT
*
* SPDX-FileCopyrightText: Copyright 2020 Micron Technology, Inc.
*/
#include <stdint.h>
#include <unistd.h>
#include <hse/util/arch.h>
#include <hse/util/xrand.h>
thread_local struct xrand xrand_tls;
void
xrand_init(struct xrand *xr, uint64_t seed)
{
if (!seed)... | 2.46875 | 2 |
2024-11-18T20:50:33.814261+00:00 | 2018-04-14T18:20:11 | 4c7044a799a14781652df4f01fcc5a11841ea5b5 | {
"blob_id": "4c7044a799a14781652df4f01fcc5a11841ea5b5",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-14T18:20:11",
"content_id": "feafc75b36b4d2f55ded0c0b6a38dd33f6142097",
"detected_licenses": [
"MIT"
],
"directory_id": "21ef87b55567337393020c4f58de3b39abd4ccea",
"extension": "c"... | stackv2 | #include "CoreSPI.h"
#include "SystemUtil.h"
/**SPI1初始化 */
void CoreSPI1Init(uint16_t cpol,uint16_t cpha,uint16_t speed)
{
GPIO_InitTypeDef GPIO_InitStructure;
SPI_InitTypeDef SPI_InitStructure;
//PORTB,SPI1时钟使能
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_SPI1, ENABLE);
GPIO_Init... | 2.796875 | 3 |
2024-11-18T20:50:35.021087+00:00 | 2018-09-13T04:33:49 | 32a3ba6a7775d0b3b61441e09703640f91cc2df2 | {
"blob_id": "32a3ba6a7775d0b3b61441e09703640f91cc2df2",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-13T04:33:49",
"content_id": "c935840d69eba0e1f64ea2618b98452ffef744a0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "74a9a0850bd53d4f942cd4f731111859b0da9140",
"extens... | stackv2 | #include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <rte_eal.h>
#include <rte_debug.h>
#include <rte_errno.h>
#include <rte_lcore.h>
#include <rte_memzone.h>
#include <rte_atomic.h>
#include <rte_pause.h>
#include "beef_cmdline.h"
static rte... | 2.5 | 2 |
2024-11-18T20:50:35.450014+00:00 | 2021-09-13T01:24:54 | 47f9dc21c509f74f67257c93e12b7ca1b105c57d | {
"blob_id": "47f9dc21c509f74f67257c93e12b7ca1b105c57d",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-13T01:24:54",
"content_id": "d0e5b18cbf23bac80af8024037e6993b1ba37759",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "1aa23b3b606ac79895d6a276758e5f8aad3c4c1e",
"extensio... | stackv2 | /*
* Copyright 2021 Sergey Guralnik
*
* 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 conditions and the following discl... | 2.046875 | 2 |
2024-11-18T20:50:35.584536+00:00 | 2019-11-01T14:03:58 | 86ecd5d6b7bd15824a931ce495e709263b6381d0 | {
"blob_id": "86ecd5d6b7bd15824a931ce495e709263b6381d0",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-01T14:03:58",
"content_id": "93971bbeb8a226ae7a9624553e5856792769d9c1",
"detected_licenses": [
"MIT"
],
"directory_id": "bf82e729af81f6e9e886016ae56d4f9fc106c063",
"extension": "h"... | stackv2 | /**
* \file que.h
* \brief
* \author max <mpano91@gmail.com>
*
*
*
* Created on Tue Jul 11 19:55:30 2019
*/
#ifndef QUE_H
#define QUE_H
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct ccl_queue ccl_queue_t;
ccl_queue_t *cclQueInit(const size_t data_size);
int cclQueSize(ccl_que... | 2.140625 | 2 |
2024-11-18T20:50:35.659319+00:00 | 2019-04-23T16:46:15 | 5424ceea6c9ae11d06a913db390f7e82e07deff2 | {
"blob_id": "5424ceea6c9ae11d06a913db390f7e82e07deff2",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-23T16:46:15",
"content_id": "6a293cc589bca519821258e93a00b76110c7071f",
"detected_licenses": [
"MIT"
],
"directory_id": "d42c63e4e95adcf3f30960bd162eb8008bebf29e",
"extension": "c"... | stackv2 | /*
Target of this program is to over flow stack in such a way that return address
from foo function changed to some address in the above the stack (which store
the location of some address of nops of environment variable, which at the end
store the address of executable shellcode).
SHELLCODE : "\x31\xc0\x50\x68\x2f\x2... | 3 | 3 |
2024-11-18T20:50:35.994843+00:00 | 2022-05-08T00:49:49 | 7db90dec1676f8ce90c06126578bf305c81c2683 | {
"blob_id": "7db90dec1676f8ce90c06126578bf305c81c2683",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-08T00:49:49",
"content_id": "5f9b1544c846e1366b52b748e85f17344cb91507",
"detected_licenses": [
"MIT"
],
"directory_id": "ef9e00054970b58c01c1fd47d810c0a50a1a7d44",
"extension": "c"... | stackv2 |
#include<stdlib.h>
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<sacio.h>
#include<ESF.h>
/******************************************************************
* This is a c script for output current empirical source
*
* Input:
* 1.
* 2.
*
*
* Output:
*
*
* DATE: Keywords:
* Referen... | 2.265625 | 2 |
2024-11-18T20:50:36.114174+00:00 | 2017-04-13T23:56:50 | 93d86b29c308770b0389a8e080ffa2eff58f403e | {
"blob_id": "93d86b29c308770b0389a8e080ffa2eff58f403e",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-13T23:56:50",
"content_id": "241f715db607e830de78048fbb83cabc846e6df3",
"detected_licenses": [
"MIT"
],
"directory_id": "1e5fc5a14d9a35430adc97610810d4eafc515b51",
"extension": "c"... | stackv2 | #include "block.h"
#include "cmd.h"
#include "disk.h"
#include "op.h"
#include <stdio.h>
#include <syslog.h>
#define FATFS_VERSION "1.0.0"
#define FATFS_CEIL(a, b) (1 + ((a - 1) / b))
// Print usage
void usage(struct fatfs_params *params);
int cmd_format(struct fatfs_params *params)
{
// Parameters must contain di... | 2.671875 | 3 |
2024-11-18T20:50:36.256804+00:00 | 2021-04-29T14:54:10 | 4bfe6346d47b99cec8ea489e2179ead909e4d461 | {
"blob_id": "4bfe6346d47b99cec8ea489e2179ead909e4d461",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-29T14:54:10",
"content_id": "a9f5c2b7530405a18363a7e24ef6688bf1b8c6ae",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8b082711a476cc7a82b59bb2d38066fc2a39ca46",
"extension"... | stackv2 | #ifndef __NGX_GLOBAL_H__
#define __NGX_GLOBAL_H__
#include <signal.h>
typedef enum {
NGX_MASTER_PROCESS, NGX_WORKER_PROCESS
}ngx_proc_t;
// main函数的argv参数
extern char **arg;
// 保存环境变量字符数组
extern char *env;
// 环境变量字符数组大小
extern int envsize;
extern pid_t ngx_pid;
extern pid_t ngx_parent;
// 进程类型是master process... | 2.09375 | 2 |
2024-11-18T20:50:37.157414+00:00 | 2018-07-18T08:24:38 | 978c2188fbce3f07b716f13cb3fa8e8f2459d37f | {
"blob_id": "978c2188fbce3f07b716f13cb3fa8e8f2459d37f",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-18T08:24:38",
"content_id": "e18f052bce4f0627ee868e25d462b29fee778441",
"detected_licenses": [
"MIT"
],
"directory_id": "7bc58acec9e1d92a8f207b9d81390345a967f2a0",
"extension": "c"... | stackv2 | #include "VX_lib.h"
/*
blit one slice - image s to one of z coords of model m
*/
void VX_blit_slice( VX_model * m , VX_surface * s , VX_uint32 z ){
for( VX_uint32 y = 0 ; y < s->h ; y++ ){
for( VX_uint32 x = 0 ; x < s->w ; x++ ){
VX_uint32 color = s->get_pixel( s , x , y );
m-... | 2.109375 | 2 |
2024-11-18T20:50:37.248813+00:00 | 2021-07-14T23:04:11 | e3e562913796d0a8402d910172051e6e2608c711 | {
"blob_id": "e3e562913796d0a8402d910172051e6e2608c711",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-14T23:04:11",
"content_id": "d52423100e6cbcb739cb1e2867c17287cde57428",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f2cea9b869157b384dfb891e9b950c8d342ea392",
"extensio... | stackv2 |
#include <mcu/debug.h>
#include "netif_lan8742a.h"
int netif_lan8742a_open(const devfs_handle_t * handle){
return mcu_eth_open(handle);
}
int netif_lan8742a_ioctl(const devfs_handle_t * handle, int request, void * ctl){
int result;
netif_attr_t * netif_attr = ctl;
netif_info_t * netif_info = ctl;
... | 2.3125 | 2 |
2024-11-18T20:50:37.508880+00:00 | 2017-08-06T00:43:15 | 0e28af649f94866838be2269103782615d80d201 | {
"blob_id": "0e28af649f94866838be2269103782615d80d201",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-06T00:55:21",
"content_id": "f37f116b7b62e3e79f9232f104d5e8ba95630b8a",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "bf0d8da4aec3bd04e34eb600c491e2e065dfa35b",
"extens... | stackv2 | #include <kernel/compiler.h>
#include "platform.h"
#define SYSTICK_FREQ_IN_HZ 1000
#define SYSTICK_PERIOD_IN_MSECS (SYSTICK_FREQ_IN_HZ / 1000)
struct timer_operations;
void config_timer_operations(struct timer_operations *tops);
extern struct timer_operations systick_tops;
void lm3s6965_init(void);
__weak void _... | 2.171875 | 2 |
2024-11-18T20:50:40.519561+00:00 | 2020-01-11T01:37:17 | 5ecdb37ab25049370f73a3184d6fb08c9f023aa1 | {
"blob_id": "5ecdb37ab25049370f73a3184d6fb08c9f023aa1",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-11T01:37:17",
"content_id": "39ab2464b56c72e7de72ed5df3069d25654342bd",
"detected_licenses": [
"MIT"
],
"directory_id": "69bf0191c0b68765a550c89b05f3202402ff7d0a",
"extension": "c"... | stackv2 | #include "hdr.h"
static void shellsort(char **, int);
static void unget_word(FILE *, char *);
static void updatedic(char **, int );
#define UPPER_ORIGINAL_DIC "/home/phantom/Git/spell_check/en-US_upper_original.dic"
#define LOWER_ORIGINAL_DIC "/home/phantom/Git/spell_check/en-US_lower_original.dic"
void addword... | 2.90625 | 3 |
2024-11-18T20:50:41.926674+00:00 | 2017-10-03T21:44:55 | be43c94616d9974b72fdc72dd096a283125cddbd | {
"blob_id": "be43c94616d9974b72fdc72dd096a283125cddbd",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-03T21:44:55",
"content_id": "5238e1bd1ea36bee3d82d12ba1fb104fd97d82b4",
"detected_licenses": [
"MIT"
],
"directory_id": "b79f50973e96c76481daf55af474cf31d666986e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "types.h"
#include "logger.h"
static int _texture_count = 0;
static texture_t* _texture_poll = NULL;
bool texture_init(){
char buf[64];
FILE* fp = fopen("assets/texture", "r");
if(fp == NULL){
log("Cannot open texture");
return false;
}
int... | 2.765625 | 3 |
2024-11-18T20:50:42.439904+00:00 | 2023-07-20T17:06:28 | ad7d737b39a1a6c9f77b02d4d15adba502aa21a5 | {
"blob_id": "ad7d737b39a1a6c9f77b02d4d15adba502aa21a5",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-20T17:06:28",
"content_id": "fa1b194454097775f52b6ba9006d496553a64ab7",
"detected_licenses": [
"MIT"
],
"directory_id": "c572d1660721afb07d4c86d5a92d05ecf359b7ec",
"extension": "c"... | stackv2 | /**
* @file ina260.c
* @brief INA260 Adafruit power driver
* @author Michael Burmeister
* @date June 23, 2019
* @version 1.0
*
*/
#include "ina260.h"
#include "simpletools.h"
void _writeWord(unsigned char register, unsigned short data);
unsigned short _readWord(unsigned char register);
void _readBytes(unsigned... | 2.75 | 3 |
2024-11-18T20:50:43.059475+00:00 | 2019-12-07T19:04:27 | 52c9dec95897a0a8135c5a7883b3acf75ac1338f | {
"blob_id": "52c9dec95897a0a8135c5a7883b3acf75ac1338f",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-07T19:04:27",
"content_id": "87ebc822f2d1a31e504ffdaea9845607d16c1c3b",
"detected_licenses": [
"MIT"
],
"directory_id": "27ca196c9f0769b36a7e70c2d93ab9d138f6ddb0",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2007 - 2019 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | 2.046875 | 2 |
2024-11-18T20:50:43.220977+00:00 | 2021-06-05T11:12:47 | 3c20a7b6f69bf2bc6fd6ebb77fa7ce73dbc8ebe7 | {
"blob_id": "3c20a7b6f69bf2bc6fd6ebb77fa7ce73dbc8ebe7",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-05T11:12:47",
"content_id": "e9842090465bda7a3ea35913b95c4d9286ebda6d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "fbcb4139285327124d20e93546593e8743222ee3",
"extens... | stackv2 | /*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <stdlib.h>
#include "image.h"
#include "pico/scanvideo.h"
struct palette16 *blend_palette(const struct palette32 *source, uint32_t back_color) {
struct palette16 *dest = (struct palett... | 2.671875 | 3 |
2024-11-18T20:50:43.680831+00:00 | 2021-02-17T21:00:02 | 26adb20314fb08c07288d393fba08422ae6537e5 | {
"blob_id": "26adb20314fb08c07288d393fba08422ae6537e5",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-17T21:00:02",
"content_id": "6a564eb848c079b1b6c47b93bff9db76faf12e89",
"detected_licenses": [
"MIT"
],
"directory_id": "b8cd33ce20e36b68e02f08da5aea3e3b6d350e4d",
"extension": "c",
... | stackv2 | /*
* ws2812.c
*/
#include "cyhal.h"
#include "ws2812.h"
#define WS_ZOFFSET (1)
#define WS_ONE3 (0b110<<24)
#define WS_ZERO3 (0b100<<24)
#define WS_SPI_BIT_PER_BIT (3)
#define WS_COLOR_PER_PIXEL (3)
#define WS_BYTES_PER_PIXEL (WS_SPI_BIT_PER_BIT * WS_COLOR_PER_PIXEL)
static uint8_t WS_frameBuffer[(MAX_PIXELS*WS_BY... | 2.609375 | 3 |
2024-11-18T20:50:43.779278+00:00 | 2022-10-25T13:29:43 | 3d83f13a3c3719dc868a14247a1f924816928acf | {
"blob_id": "3d83f13a3c3719dc868a14247a1f924816928acf",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-25T13:29:43",
"content_id": "20bf589aa0717c95731a2fdbd9540b9414608ade",
"detected_licenses": [
"MIT"
],
"directory_id": "0246bebabd314dbf1c374fa3038f76d2cf8b2b14",
"extension": "h"... | stackv2 | /*
* ISDA CDS Standard Model
*
* Copyright (C) 2009 International Swaps and Derivatives Association, Inc.
* Developed and supported in collaboration with Markit
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the ISDA CDS Standard Model Public License.
*/
#ifnd... | 2.3125 | 2 |
2024-11-18T20:50:43.851271+00:00 | 2023-04-16T11:33:17 | 6e284689035d4d6834591dfbab57d1b23012e0b7 | {
"blob_id": "6e284689035d4d6834591dfbab57d1b23012e0b7",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-16T11:38:43",
"content_id": "11fad27bca562dd887a8ef189835b5f84da14d1f",
"detected_licenses": [
"MIT"
],
"directory_id": "7a3efa936a526b059c75e783e9df540d5373216c",
"extension": "c"... | stackv2 | #include "test.h"
#include "BKFFT.h"
int main (int argc, char const * argv [])
{
BKInt res;
BKFFT * fft = INVALID_PTR;
// the buffer will be 16 sample wide
int n = 16;
// sample buffer
BKComplexComp x [n];
BKComplexComp y [n];
// create FFT object
res = BKFFTAlloc (& fft, n);
assert (res == 0);
assert ... | 2.546875 | 3 |
2024-11-18T20:50:43.931332+00:00 | 2020-02-10T05:33:51 | b2d77a3db4d670ac83449aab099bc0a70ccd3727 | {
"blob_id": "b2d77a3db4d670ac83449aab099bc0a70ccd3727",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-10T05:33:51",
"content_id": "b4ac8e829b9aeb953a6c50f6d8d7c1b3ddb9deca",
"detected_licenses": [
"MIT"
],
"directory_id": "e682028ada348f824ace8e2e92971223e070a81a",
"extension": "c"... | stackv2 | #include<stdio.h>
int main() {
int x;
scanf("%d", &x);
if(x%2){
printf("\nFrom if block");
}
else {
printf("\nFrom else block");
}
return 0;
}
| 2.671875 | 3 |
2024-11-18T20:50:44.002204+00:00 | 2020-10-01T19:39:13 | d133b2ffa8766cd89b40a057fe4f12fd4b7582ac | {
"blob_id": "d133b2ffa8766cd89b40a057fe4f12fd4b7582ac",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-01T19:39:13",
"content_id": "0f5fc99ae463eabc3f32aebf5eea17927bbab68e",
"detected_licenses": [
"MIT"
],
"directory_id": "1080e88e3cbf9d00ec41aef94ab64d42849e87bb",
"extension": "c"... | stackv2 | #include "contiki.h"
#include "random.h"
#include "lib/list.h" // Liste qui contient nos tâches
#include "sys/log.h" // Gestion de LOGS
#define LOG_MODULE "RTimer" // Préfixe des logs (obligatoire)
#define LOG_LEVEL LOG_LEVEL_INFO // Niveau de criticité des LOG (obligatoire)
#define MAX_NB_SENSOR_TASKS_FIFO 3 // nomb... | 2.53125 | 3 |
2024-11-18T20:50:44.122414+00:00 | 2018-06-22T19:29:20 | b5f8e94ca03e682a5b03a961e5aeede7d7058e42 | {
"blob_id": "b5f8e94ca03e682a5b03a961e5aeede7d7058e42",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-22T19:29:20",
"content_id": "0596f26dc125dafbe38be732d7fb3435ce1223e1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "cf9358206be39225ee7b21a7177157bf53e98784",
"extens... | stackv2 | /*
RETRO-CIAA™ Library
Copyright 2018 Santiago Germino (royconejo@gmail.com)
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,
... | 2.3125 | 2 |
2024-11-18T20:50:44.761621+00:00 | 2019-04-16T06:25:11 | 229ae93fd30f1f68324ddaf7bc71d4d2eb0eb4e6 | {
"blob_id": "229ae93fd30f1f68324ddaf7bc71d4d2eb0eb4e6",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-16T06:25:11",
"content_id": "99876db4b5c1b36b0d9457ac97a653523a862ff6",
"detected_licenses": [
"MIT"
],
"directory_id": "7e91544574f2f8b5130ff1553864b5e14d1d0c91",
"extension": "c"... | stackv2 | /*
* cmd_delete.c
* LibNyoci
*
* Created by Robert Quattlebaum on 8/17/10.
* Copyright 2010 deepdarc. All rights reserved.
*
*/
/* This file is a total mess and needs to be cleaned up! */
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include "assert-macros.h"
#include <stdio.h>
#include <stdlib.h>
#includ... | 2.09375 | 2 |
2024-11-18T20:50:44.826098+00:00 | 2021-11-09T15:13:14 | 4c6b151edca5b3ddf4667b7328d1d73b01d24dd2 | {
"blob_id": "4c6b151edca5b3ddf4667b7328d1d73b01d24dd2",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-09T15:13:14",
"content_id": "bd1a3e949d0412d01182e34b4fe55901f51f915f",
"detected_licenses": [
"MIT"
],
"directory_id": "d5d4a050413ac580325ce4a03fd5041638e17154",
"extension": "h"... | stackv2 | #include "table.h"
#define CODE_LEN_MAX 1000 /* 中间代码长度不得超过 1000 行 */
int code_index;
int error_count = 0;
int break_adr = -1;
int continue_adr = -1;
int switch_num;
enum func { lit, opr, lod, sto, cal, ini, jmp, jpc, ast, ald }; /* 指令名 */
char *mnemonic[8]={ "lit", "opr", "lod", "sto", "cal", "ini", "jmp", "jpc... | 2.59375 | 3 |
2024-11-18T20:50:45.068490+00:00 | 2018-10-02T17:39:25 | 69b016855d800453e0bf1374756f1b70d7a4a6f0 | {
"blob_id": "69b016855d800453e0bf1374756f1b70d7a4a6f0",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-02T17:39:25",
"content_id": "4d4a4eeb06504717b8d04dcf9bfb94bb88a1d805",
"detected_licenses": [
"MIT"
],
"directory_id": "48cc107594d00f44a9d1e407658dcd3065e04a22",
"extension": "c"... | stackv2 | /*
** parsing_reading_info.c for parsing_reading_info.c in /home/romain/delivery/CPE_2016_corewar
**
** Made by Romain LANCIA
** Login <romain.lancia@epitech.eu@epitech.net>
**
** Started on Mon Mar 20 13:55:43 2017 Romain LANCIA
** Last update Thu Mar 30 10:04:55 2017 Thibaut Cornolti
*/
#include <stdio.h>
#incl... | 2.625 | 3 |
2024-11-18T20:50:45.435159+00:00 | 2022-11-30T06:23:24 | aefecaf1bce1c9535b7e003f75a50e4b9353b240 | {
"blob_id": "aefecaf1bce1c9535b7e003f75a50e4b9353b240",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-30T06:23:24",
"content_id": "6da321326695807d26a9faec52ed351af32827fe",
"detected_licenses": [
"MIT"
],
"directory_id": "15f0514701a78e12750f68ba09d68095172493ee",
"extension": "c"... | stackv2 | __________________________________________________________________________________________________
sample 0 ms submission
bool isMatch_helper(char *cachedResult, int sLen, int pLen, char *originS,
char *originP, char * s, char * p) {
int sOffset = s - originS;
int pOffset = p - originP;
int index = sOf... | 2.765625 | 3 |
2024-11-18T20:50:45.899536+00:00 | 2017-10-30T20:03:17 | fc39b740675e38cea8ded8fad1656bf1d5fc0205 | {
"blob_id": "fc39b740675e38cea8ded8fad1656bf1d5fc0205",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-30T20:03:17",
"content_id": "1f2067671ca8b16c84bb85fff19d01837e97a629",
"detected_licenses": [
"MIT"
],
"directory_id": "33b8fbee6a3d0d5c0f03faccd757c9e8e96a0059",
"extension": "h"... | stackv2 | #ifndef SQL_SCHEMA_H_
#define SQL_SCHEMA_H_
typedef void *(*sql_schema_alloc_cb)(void);
typedef void (*sql_schema_free_cb)(void *);
enum sql_type {
SQL_TYPE_BOOL = 0,
SQL_TYPE_SHORT = 1,
SQL_TYPE_INT = 2,
SQL_TYPE_LONG = 3,
SQL_TYPE_SERIAL = 4,
SQL_TYPE_STRING = 5,
};
struct sql_schema {
char *table_na... | 2.171875 | 2 |
2024-11-18T20:50:47.062493+00:00 | 2018-10-09T04:06:45 | fdd20fa95bb4e31d4b8d081acfc3cf44290b11a4 | {
"blob_id": "fdd20fa95bb4e31d4b8d081acfc3cf44290b11a4",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-09T04:06:45",
"content_id": "f4b578f06b27192511cfc1427e9a6803c50cdc22",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "4c4fa620d2596107511a28344a8669e3a3882ca2"... | stackv2 | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <unittest/unittest.h>
#include <zircon/device/usb-tester.h>
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>
#define USB_TESTER_DEV_DI... | 2.34375 | 2 |
2024-11-18T20:50:47.273170+00:00 | 2020-05-04T23:07:57 | 31443283efeff8b05384efac343caabcd2b13d75 | {
"blob_id": "31443283efeff8b05384efac343caabcd2b13d75",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-04T23:07:57",
"content_id": "42064e5b59840fce07b8457a0a7c4e45c6f6c484",
"detected_licenses": [
"MIT"
],
"directory_id": "7b8880f3ec5f7b6d5d621becf326803670ab51ea",
"extension": "c"... | stackv2 | //
// HCData.c
// Test
//
// Created by Matt Stoker on 1/19/19.
// Copyright © 2019 HollowCore. All rights reserved.
//
#include "HCData_Internal.h"
#include <string.h>
#include <math.h>
//-----------------------------------------------------------------------------------------------------------------------------... | 2.734375 | 3 |
2024-11-18T20:50:48.161225+00:00 | 2023-01-11T22:54:07 | 09a072f22831d33ecefe0d8f7714202ff4f2f28e | {
"blob_id": "09a072f22831d33ecefe0d8f7714202ff4f2f28e",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-11T22:54:07",
"content_id": "6083e0353d6404ef3c859957dfe5e4956ef2f745",
"detected_licenses": [
"MIT"
],
"directory_id": "4edd539e79d33f7a08a4c928d113771e9dac0740",
"extension": "c"... | stackv2 | #include "Doom.h"
/**********************************
Local structures
**********************************/
#define VDOORSPEED (6<<FRACBITS) /* Speed to open a vertical door */
#define VDOORWAIT ((TICKSPERSEC*14)/3) /* Door time to wait before closing 4.6 seconds */
typedef struct {
sector_t *sector; /* Sector be... | 2.28125 | 2 |
2024-11-18T20:50:53.479509+00:00 | 2023-02-16T18:40:06 | e7f14cce61a414214188430963271d72f5e511c7 | {
"blob_id": "e7f14cce61a414214188430963271d72f5e511c7",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T18:40:06",
"content_id": "8cd224678e4ec5b9bc95c9a858804c488d85aa03",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "fb6245383e7e7d53ab94b6eb2bb09469db466c58",
"extensio... | stackv2 | /*
* See file ../COPYRIGHT for copying and redistribution conditions.
*/
#include "config.h"
#include <log.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> /* O_RDONLY et al */
#include "mkdirs_open.h"
#include <limits.h> /* PATH_MAX */
#ifndef PATH_MAX
#define PATH_MAX 255
#endif /* !PATH_MAX ... | 2.765625 | 3 |
2024-11-18T20:50:53.533938+00:00 | 2012-06-01T01:26:52 | 7ab5f2d0d25ac25223632d98dd20c85bb229ec5c | {
"blob_id": "7ab5f2d0d25ac25223632d98dd20c85bb229ec5c",
"branch_name": "refs/heads/master",
"committer_date": "2012-06-01T01:26:52",
"content_id": "a98ef9418c99cc1463c1fbb8d62ddc4471f8d549",
"detected_licenses": [
"MIT"
],
"directory_id": "cb948a504fabf42bdd1b2e580e3528ba16d999fe",
"extension": "h"... | stackv2 | #ifndef BOX_H
#define BOX_H
#include "algebra.h"
#include "interval.h"
struct Box
{
Box()
{
x = Interval();
y = Interval();
z = Interval();
}
Box(const Vector3 &a, const Vector3 &b){
x = Interval(a.x, b.x);
y = Interval(a.y, b.y);
z = Interval(a.z, b.z)... | 2.65625 | 3 |
2024-11-18T20:50:54.201532+00:00 | 2019-10-30T21:57:41 | 4c283254e9a2c408fb1e7eac06aa7e2781ddd2ae | {
"blob_id": "4c283254e9a2c408fb1e7eac06aa7e2781ddd2ae",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-30T21:57:41",
"content_id": "87a1c6d6ec46bd0bb02eeea0eebe6594256da630",
"detected_licenses": [
"MIT"
],
"directory_id": "77e51321c7fc9db105a964450264a1d6675565fb",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "system.h"
#include <alt_types.h>
#include <io.h>
#include "altera_avalon_pio_regs.h"
#include "sys/alt_irq.h"
#include "altera_avalon_pio_regs.h"
#include "altera_avalon_timer_regs.h"
volatile int edge_capture;
unsigned int flag = 1;
unsigned int led = 0;
unsigned int counter = 0;
unsigned... | 2.140625 | 2 |
2024-11-18T20:50:57.504773+00:00 | 2023-06-02T11:47:31 | 205466629b4ffb74047909d2206e1f40cc46ee5c | {
"blob_id": "205466629b4ffb74047909d2206e1f40cc46ee5c",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-02T11:47:31",
"content_id": "824234ca6f7431d1f600e5f40a0a19da95c1d1f4",
"detected_licenses": [
"MIT",
"Zlib",
"Apache-2.0"
],
"directory_id": "14c685102101327da349f7da83099e9... | stackv2 | ///////////////////////////////////////////////////////////////////////////////
//
/// \file tuklib_exit.c
/// \brief Close stdout and stderr, and exit
//
// Author: Lasse Collin
//
// This file has been put into the public domain.
// You can do whatever you want with this file.
//
///////////////////... | 2.5625 | 3 |
2024-11-18T20:50:57.633582+00:00 | 2020-04-24T23:20:40 | f2f5509133fd46d62341020f2077ba1ff3727283 | {
"blob_id": "f2f5509133fd46d62341020f2077ba1ff3727283",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-24T23:20:40",
"content_id": "b2a8184f4a089d5ebe265a334499764a78af770d",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "48c2d779adc3ec016b996d1bb03c5f9b2605bb3f",
"extens... | stackv2 |
// Oracle 10 and 11 password algorithms
// Odzhan
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <openssl/sha.h>
#include <openssl/des.h>
#define MAX_USERNAME 31
#define MAX_PASSWORD 31
uint8_t pwd_key[]={0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef};
// convert hexadecimal st... | 2.9375 | 3 |
2024-11-18T20:50:57.823646+00:00 | 2019-01-27T22:12:57 | aa412b55a6246e328822f9bfbb0e2b0a1af363bb | {
"blob_id": "aa412b55a6246e328822f9bfbb0e2b0a1af363bb",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-27T22:12:57",
"content_id": "05390288c2c5165423991ea4314decb06c913a33",
"detected_licenses": [
"MIT"
],
"directory_id": "6675b58389b73e2fa7ee9e3f857c509015946d7b",
"extension": "c"... | stackv2 | #include "bbrndr.h"
#include <string.h>
#include "opengl.h"
#include "glutils.h"
static const char* vs_src = GLSRC(
layout (location = 0) in vec3 position;
uniform mat4 proj;
uniform mat4 view;
uniform mat4 model;
void main()
{
vec4 pos = proj * view * model * vec4(position, 1.0);
gl_Position = pos;
}
);
st... | 2.1875 | 2 |
2024-11-18T20:50:58.181132+00:00 | 2021-12-22T19:14:11 | 1c1a395083b1a3f2cd4a0f6ba2fd785ad46e647e | {
"blob_id": "1c1a395083b1a3f2cd4a0f6ba2fd785ad46e647e",
"branch_name": "refs/heads/master",
"committer_date": "2021-12-22T19:14:11",
"content_id": "7d6777e1fd1fa09d9ec7481a19c0dbe69c17e79d",
"detected_licenses": [
"MIT"
],
"directory_id": "93829d20b5c78c2f50dbbf7df55c2a5bf6854aad",
"extension": "h"... | stackv2 | #ifndef UWLKV_NVRAM_LIB
#define UWLKV_NVRAM_LIB
#include <stdint.h>
/* You can change a storage type if you don't need big values for key or value to save some space */
typedef uint16_t uwlkv_key; /* Record key */
typedef int32_t uwlkv_value; /* Record value */
typedef uin... | 2.75 | 3 |
2024-11-18T20:51:00.657361+00:00 | 2016-06-01T03:42:40 | 01b14dbd6112bb59a237270f47bb7647a40ca6d2 | {
"blob_id": "01b14dbd6112bb59a237270f47bb7647a40ca6d2",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-01T03:42:40",
"content_id": "799a2b0eae35a06079fb5858d4bfa2770272aff3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8af517bdce08f6ff2476f46948bb38f64d321926",
"extensio... | stackv2 | #include "stdio.h"
#include "stdlib.h"
#include "ncurses.h"
#include "string.h"
#include "unistd.h"
#include "../config.h"
int main(int argc, char *argv[]) {
initscr();
noecho();
keypad(stdscr, TRUE);
WINDOW *top_win;
WINDOW *win;
WINDOW *bottom_win;
int wy, wx, y, x, width, height;
width = 100;
height = 30;
y = (... | 2.125 | 2 |
2024-11-18T20:51:01.112667+00:00 | 2019-01-03T03:13:44 | ff8778797463032a7cec34fb0853fc22b62fe6d0 | {
"blob_id": "ff8778797463032a7cec34fb0853fc22b62fe6d0",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-03T03:13:44",
"content_id": "6f8d0cf718940a02d8f5acf37d40f2f9bffb21b6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d86213ebb7b4ed411bda86f2acf37a5ec776e7ab",
"extensio... | stackv2 | #include "except.h"
#include "../assert/assert.h"
#include <stdio.h>
#include <stdlib.h>
#define T Except_T
Except_Frame* Except_stack = NULL;
void Except_raise(const T* e, const char* file, int line)
{
Except_Frame* p = Except_stack;
assert(e);
if (p == NULL) {
fprintf(stderr, "Uncaught excepti... | 2.328125 | 2 |
2024-11-18T20:51:01.281702+00:00 | 2023-08-11T00:15:06 | 1a0e89cb1a2148382c7546df46cfbb79c04a1e70 | {
"blob_id": "1a0e89cb1a2148382c7546df46cfbb79c04a1e70",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T00:15:06",
"content_id": "ffc9e250dcf3e47f773c6bb2f3da121e5c104782",
"detected_licenses": [
"MIT"
],
"directory_id": "75403b8c79a2cdc0ed72b763a578b8012da312b7",
"extension": "c"... | stackv2 | extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern void __VERIFIER_assume(int);
void __VERIFIER_assert(int cond) {
if (!(cond)) {
ERROR: __VERIFIER_error();
}
return;
}
int __VERIFIER_nondet_int();
int main() {
int i=0, x=0, y=0;
int n=__VERIFIER_nondet_int();
if (!(n>0)) return 0;... | 2.265625 | 2 |
2024-11-18T21:15:30.976460+00:00 | 2023-08-28T17:04:44 | cca776b2e1a25ad57512084d803d31a1cd9b93d4 | {
"blob_id": "cca776b2e1a25ad57512084d803d31a1cd9b93d4",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T17:07:16",
"content_id": "f85d35c08d20d920181184d7daafb809c3854d3e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7309a4d3579a04eecef51cb20238530ddfdd02ac",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <mpi.h>
typedef struct _tstruct {
char one[3];
long two;
double three;
short four;
} TSTRUCT;
int main(int argc, char *argv[]) {
TSTRUCT tstruct;
int mpi_size=0, mpi_rank=0;
... | 2.46875 | 2 |
2024-11-18T21:15:31.029119+00:00 | 2018-04-02T15:52:59 | fd9871d26f54b2430af169acf573b5f2cd169595 | {
"blob_id": "fd9871d26f54b2430af169acf573b5f2cd169595",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-02T15:52:59",
"content_id": "a9ad0ccf82118a94f9f36aa965138e627e92f38e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "85f9d7405b4ec27854f51ea4ba2ae389140cb6d5",
"extens... | stackv2 | /*
* Copyright (c) 2016-2018, Cray 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 condit... | 2.15625 | 2 |
2024-11-18T21:15:31.657344+00:00 | 2012-12-03T22:56:05 | 54859e761c726f69ea0b83215cd62ea750ce4171 | {
"blob_id": "54859e761c726f69ea0b83215cd62ea750ce4171",
"branch_name": "refs/heads/master",
"committer_date": "2012-12-03T22:56:05",
"content_id": "cbf8cea8be749368e1411eb045da0768efdb70ec",
"detected_licenses": [
"BSD-Source-Code"
],
"directory_id": "d350566d5f0ee5abaad9dfbabb50438a857538f5",
"ext... | stackv2 | /*
Yuen Lye Yeap
Lee Yerkes
537sim.c
Contains implementation of simulator main loop and stuff.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "process.h"
#include "stcf.h"
#include "expq.h"
#include "stats.h"
#include "disk.h"
#include "input.h"
void (*add_process)(struct Process*);
struct P... | 2.953125 | 3 |
2024-11-18T21:15:32.049541+00:00 | 2017-12-16T03:55:06 | 5566afdab8dc8ea05bee18824dcecea361dde2e5 | {
"blob_id": "5566afdab8dc8ea05bee18824dcecea361dde2e5",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-16T03:55:06",
"content_id": "45cce52903aecda4921d8f7adab59146afe858d5",
"detected_licenses": [
"MIT"
],
"directory_id": "24bc9fb80e514077f2445c501285ccf82ca12249",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "cli.h"
#include "cmd_run.h"
#include "cmd_create.h"
#define CLI_TASK_NAME CONFIG_CLI_TASK_NAME
#define CLI_TASK_STACK CONFIG_CLI_TASK_STACK
#define CLI_TASK_PRI CONFIG_CLI_TASK_PRI
#if defined(CONFIG_CLI_A... | 2.21875 | 2 |
2024-11-18T21:15:32.138840+00:00 | 2021-03-03T15:57:57 | 0864c696a765a1c4b1b6ffef15b82adc8e22eb65 | {
"blob_id": "0864c696a765a1c4b1b6ffef15b82adc8e22eb65",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-03T15:57:57",
"content_id": "8a8fbc236278c004985510733a77f81110b49b33",
"detected_licenses": [
"MIT"
],
"directory_id": "9d7ba8760c454ba048bd80d9c5a580c273ee170a",
"extension": "c"... | stackv2 | #include "chiffrage.h"
#include "test_harness/test_harness.h"
#include <stdlib.h>
#include <string.h>
// Valeurs pour le harnais de test spécifiques à ce programme.
int const tests_total = 68;
int const test_column_width = 80;
#define TAILLE_CHAINE 128
int main()
{
char clair[TAILLE_CHAINE], chiffre[TAILLE_CHA... | 2.53125 | 3 |
2024-11-18T21:15:32.271119+00:00 | 2020-01-17T08:53:50 | 4a37a4d9d360fe3684318776ff4e113bf0aba0db | {
"blob_id": "4a37a4d9d360fe3684318776ff4e113bf0aba0db",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-17T08:53:50",
"content_id": "6dadfb9577cc7aa346dbb65bc8fd3d675755f74b",
"detected_licenses": [
"MIT"
],
"directory_id": "7c441af6a3f71dd766edfc34919182227cbd8815",
"extension": "c"... | stackv2 | // mystsword.c
#include <ansi.h>
inherit SKILL;
mapping *action = ({
([ "name": "暮雪三叹",
"action": "$N使一招「暮雪三叹」,手中$w急如骤雨般地刺向$n$l",
"dodge": -30,
"damage": 60,
"damage_type": "刺伤"
... | 2.609375 | 3 |
2024-11-18T21:15:35.857744+00:00 | 2021-03-17T07:29:19 | f9d5ac9d698a200884f191771bab45da5b266181 | {
"blob_id": "f9d5ac9d698a200884f191771bab45da5b266181",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-17T07:29:19",
"content_id": "d42db3c75c42f0da388b9ab4519738565faf06ce",
"detected_licenses": [
"Apache-2.0",
"curl"
],
"directory_id": "546018757d22ae76154b87335db68e1cfabfedcb",... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "io_k8s_api_certificates_v1_certificate_signing_request_list.h"
io_k8s_api_certificates_v1_certificate_signing_request_list_t *io_k8s_api_certificates_v1_certificate_signing_request_list_create(
char *api_version,
list_t *items,
char *ki... | 2.0625 | 2 |
2024-11-18T21:15:35.910475+00:00 | 2021-10-29T09:05:24 | 5c24cf34974c478444b3a8dfe8f00c9d10189c94 | {
"blob_id": "5c24cf34974c478444b3a8dfe8f00c9d10189c94",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-29T09:05:24",
"content_id": "efdc5600e4a0ab37879cef006b0d48fa7e7d94c4",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1302f5c484b09bcf0022cfe2abac2ec9a47303bc",
"extens... | stackv2 | /*
* This software is copyrighted as noted below. It may be freely copied,
* modified, and redistributed, provided that the copyright notice is
* preserved on all copies.
*
* There is no warranty or other guarantee of fitness for this software,
* it is provided solely "as is". Bug reports or fixes may be sent
... | 2.375 | 2 |
2024-11-18T21:15:36.029035+00:00 | 2016-09-26T16:39:09 | 13eb2a8755ef878a0ae548fd01b0ba50b8d9a915 | {
"blob_id": "13eb2a8755ef878a0ae548fd01b0ba50b8d9a915",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-26T16:39:09",
"content_id": "116433940fd04cd4be8b576478bfb3c8486f5fa6",
"detected_licenses": [
"MIT"
],
"directory_id": "d6f6a4084458ef4cb0ab9be24eb29a6fdd3d14c6",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "./hash-table.h"
int main(int argc, char **argv) {
if (argc != 2) {
printf("Usage: ./hash_table <size of table>\n");
return -1;
}
int size = (int) strtol(argv[1], (char**) NULL, 10);
hash_table *table = hash_init(size);
hash_destroy(table);
return 0;
} | 2.390625 | 2 |
2024-11-18T21:15:36.112150+00:00 | 2015-12-21T06:56:54 | 8386fdc86f4c71d607b58be0be88cd5e479fd1ee | {
"blob_id": "8386fdc86f4c71d607b58be0be88cd5e479fd1ee",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-21T06:56:54",
"content_id": "307675ca0a62659688fbc30906189bede5d7b21f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fe3939e260d0fa25dde549cf40c4da8c6cc9520b",
"extensio... | stackv2 | /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/**
* ============================================================================
* Project Name : ezbox configuration utilities
* File Name : basic/auth/auth.c
*
* Description : implement authentications
*
* Copyright (C) 2008-2014 by ezbox... | 2.375 | 2 |
2024-11-18T21:15:36.348428+00:00 | 2017-03-02T01:56:41 | 5cae69c7bdb8bc7c13edad8cd8cdf0b7a24c61a1 | {
"blob_id": "5cae69c7bdb8bc7c13edad8cd8cdf0b7a24c61a1",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-02T01:56:41",
"content_id": "19e688f993f40ebcef06c8d3311a236cd18846c7",
"detected_licenses": [
"MIT"
],
"directory_id": "478c84d06d0686c63f996d3733dd43987ff774d3",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "mymalloc.h"
struct something_
{
int id;
float value;
struct something_* next;
};
typedef struct something_ something;
something* intialize (int i, float v)
{
something* temp = (something*)malloc(sizeof(temp));
temp->id = i;
temp->value ... | 3.28125 | 3 |
2024-11-18T21:15:36.520067+00:00 | 2019-12-02T18:33:28 | 32a5c88c2010231117157e8a4649cf887a93a822 | {
"blob_id": "32a5c88c2010231117157e8a4649cf887a93a822",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-02T18:33:28",
"content_id": "374e4acf812faa805e36caa978702600836bead9",
"detected_licenses": [
"MIT"
],
"directory_id": "c6bf1786d6dd54c8ec2c1d03343eaed2f9e7b1f3",
"extension": "c"... | stackv2 | #include "types.h"
#include "user.h"
#include "fcntl.h"
#include "fs.h"
#include "stat.h"
struct proc_stat {
int pid; // PID of each process
int total_time; // Use suitable unit of time
int runtime; // Use suitable unit of time
int num_run; // number of time the process is executed
int current_queue; // current a... | 2.84375 | 3 |
2024-11-18T21:15:36.743059+00:00 | 2020-07-18T21:41:10 | 15343d6a24f78f57aa2bbf2cdc7e54cecada7ee2 | {
"blob_id": "15343d6a24f78f57aa2bbf2cdc7e54cecada7ee2",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-18T21:41:10",
"content_id": "3856b369b21b9112add5d5573ac60265dfdd2bcb",
"detected_licenses": [
"MIT"
],
"directory_id": "83f97532f115774292e471a36c0710a3ff608bdb",
"extension": "c"... | stackv2 | #include <stdio.h>
#define TAM 2001
int main(){
int N; scanf("%d", &N);
int lista[TAM] = {0}, i, pos;
for(; N > 0 ; N--) {
/* Este for pede ao usuário que digite os valores que serão printados posteriormente,
* e ao invés de adicionar estes elementos à uma lista, ele simplesmente incre... | 3.546875 | 4 |
2024-11-18T21:15:38.849943+00:00 | 2019-10-21T13:38:27 | 287bfe6de95c129916f7d7f6823c7e4e84f219cc | {
"blob_id": "287bfe6de95c129916f7d7f6823c7e4e84f219cc",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-21T13:38:27",
"content_id": "849b11633b08b0852e33652faa83c6a291816bce",
"detected_licenses": [
"MIT"
],
"directory_id": "4e5b40e37b69517262cd3038f16f5f5f12d61cdf",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_list_add.c :+: :+: :+: ... | 2.8125 | 3 |
2024-11-18T21:15:38.941024+00:00 | 2016-01-01T01:20:00 | c7091fd41d74f66e98c9bc7022fcb5ede7207a86 | {
"blob_id": "c7091fd41d74f66e98c9bc7022fcb5ede7207a86",
"branch_name": "refs/heads/release",
"committer_date": "2016-01-20T22:59:33",
"content_id": "1e52eaf83cb2d3e949bdb613602fa9a6fad88be5",
"detected_licenses": [],
"directory_id": "842ede7c817bc33e9cc63e3a53b2269365a6d7fa",
"extension": "h",
"filenam... | stackv2 | /**
@file
@ingroup epd
@brief The University of Colorado extended double precision package.
@details Arithmetic functions with extended double precision. The floating
point numbers manipulated by this package use an int to hold the exponent.
The significand has the same precision as a standard double.
... | 2.09375 | 2 |
2024-11-18T21:15:39.239924+00:00 | 2019-04-11T12:43:41 | 4bc02d68b7bb59d0b3c3d30330c29a9b73751993 | {
"blob_id": "4bc02d68b7bb59d0b3c3d30330c29a9b73751993",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-11T12:43:41",
"content_id": "d60713c4640288e6f5541cb45c8c3d919c594dae",
"detected_licenses": [
"MIT"
],
"directory_id": "d3aaa326aa784a7d06db9b1e26ae30162949ecbc",
"extension": "c"... | stackv2 | #include "sys.h"
#include "delay.h"
#include "usart.h"
#include "led.h"
#include "oled.h"
#include "JY901_uart.h"
#include "include.h"
#include "FreeCars_uart.h"
FLAG_Typedef flag;
int a = 1;
int main(void)
{
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);//设置系统中断优先级分组2
delay_init(168); //初始化延时函数
uart_in... | 2.078125 | 2 |
2024-11-18T21:15:39.384371+00:00 | 2017-05-25T01:25:50 | 9a98b12639a6f688ba793ba5e16eba8dfa3ce601 | {
"blob_id": "9a98b12639a6f688ba793ba5e16eba8dfa3ce601",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-25T01:25:50",
"content_id": "0a24ea77404c06de6d324890fe0743b6cee6ed79",
"detected_licenses": [
"MIT"
],
"directory_id": "158059c348e49112a06cdfb929a136c62aabc306",
"extension": "h"... | stackv2 | #ifndef HIERARCHY_LIST_LIB_H
#define HIERARCHY_LIST_LIB_H
#include "ListT.h"
#include "ListAlloc.h"
#include "ListAppend.h"
#include "ListClear.h"
#include "ListDebug.h"
#include "ListEach.h"
#include "ListFirst.h"
#include "ListFlush.h"
#include "ListInsert.h"
#include "ListUpsert.h"
#include "ListIsEmpty.h"
#include... | 2.078125 | 2 |
2024-11-18T21:15:39.687055+00:00 | 2021-06-28T16:53:07 | 8d54cb8fc6a2f74973744fe5c949d964b5340d42 | {
"blob_id": "8d54cb8fc6a2f74973744fe5c949d964b5340d42",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-28T16:53:07",
"content_id": "547e3ccc300faf2fbf1c371a38db635c0797e6ba",
"detected_licenses": [
"MIT"
],
"directory_id": "427f48b76d1b312cff7af2d9b535ea333e8d154e",
"extension": "c",
... | stackv2 | /*
gcc -std=c17 -lc -lm -pthread -o ../_build/c/numeric_complex_carg.exe ./c/numeric_complex_carg.c && (cd ../_build/c/;./numeric_complex_carg.exe)
https://en.cppreference.com/w/c/numeric/complex/carg
*/
#include <stdio.h>
#include <complex.h>
int main(void)
{
double complex z1 = 1.0+0.0*I;
printf("phase angle... | 2.796875 | 3 |
2024-11-18T21:15:39.873624+00:00 | 2018-12-05T15:08:12 | 94a11659102003b408e3db7e0793305f404a7232 | {
"blob_id": "94a11659102003b408e3db7e0793305f404a7232",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-05T15:08:12",
"content_id": "8bbad28045084f74d59f34e5e83e6ad4d6d8733c",
"detected_licenses": [
"MIT"
],
"directory_id": "d9f45aeb4382b328c22685ad0efab490e821d70a",
"extension": "c"... | stackv2 | /**@<pseudocode.c>::**/
#include <stdio.h>
#include <stdlib.h>
#include <keywords.h>
#include <pseudocode.h>
FILE *source, *object;
/*
Create var label
*/
void mklabel(char *label){
fprintf(object, ".L %s\n",label);
}
/*
Control pseudoinstructions
*/
void gofalse(size_t label){
fprintf(object, "\tjz .L %ld\n",l... | 2.921875 | 3 |
2024-11-18T21:15:40.074761+00:00 | 2017-12-13T14:01:42 | 570b98028170d5adb02c52a6c384ab7c391c8da7 | {
"blob_id": "570b98028170d5adb02c52a6c384ab7c391c8da7",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-13T14:01:42",
"content_id": "43156a3517ec72d6680486cb5e7701653cee1249",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2c7887d289d6b8698c60b6a7fb9be9925a6fef12",
"extensio... | stackv2 | #include <zephyr.h>
#include <board.h>
#include <device.h>
#include <gpio.h>
#include <misc/printk.h>
#define AIN1 2
#define MAX_SAMPLES 16
#define ADC_REG_BASE 0x40007000
#define ADC_ENABLE_REG (ADC_REG_BASE + 0x500)
#define ADC_TASK_START_REG (ADC_REG_BASE + 0x0)
#define ADC_TASK_SAMPLE_REG (ADC_RE... | 2.515625 | 3 |
2024-11-18T21:15:40.205091+00:00 | 2020-08-08T09:50:39 | 8d7d1c4d416734e6374679a1bf1eaafd200ad875 | {
"blob_id": "8d7d1c4d416734e6374679a1bf1eaafd200ad875",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-08T09:50:39",
"content_id": "7c0ab5320f06eaf9161d673e0c8f8144065adacd",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "c9797fdfce38f32bf11c9e9bd36218fbe46819ef",
"extens... | stackv2 | /* $OpenBSD: strlcat.c,v 1.19 2019/01/25 00:19:25 millert Exp $ */
/* $OpenBSD: strlcpy.c,v 1.16 2019/01/25 00:19:25 millert Exp $ */
/*
* Copyright (c) 1998, 2015 Todd C. Miller <millert@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fe... | 2.296875 | 2 |
2024-11-18T21:15:40.354987+00:00 | 2020-09-08T02:52:56 | aa12dcd936cad432b6ad5aa16fae153b988c8642 | {
"blob_id": "aa12dcd936cad432b6ad5aa16fae153b988c8642",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-08T02:52:56",
"content_id": "63e978a79b1b1b96101453914f5e16de77da6bfb",
"detected_licenses": [
"MIT"
],
"directory_id": "efb25a20ecddb3a0a8795bc616069fc1a94e5375",
"extension": "h"... | stackv2 | /*
* Copyright 2018 NXP
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _TIMER_H_
#define _TIMER_H_
/*!
* @addtogroup Timer_Adapter
* @{
*/
/*!
* @brief The timer adapter component
*
* The timer adapter is built based on the timer SDK driver provided by the NXP
* MCUXpresso... | 2.09375 | 2 |
2024-11-18T21:15:40.693702+00:00 | 2021-05-06T12:48:13 | 51c6d0a982db605a8cfe66819463153a9122ae46 | {
"blob_id": "51c6d0a982db605a8cfe66819463153a9122ae46",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-06T12:48:13",
"content_id": "f6f13abb24a22939ecb185af2cd0669deba5a1f5",
"detected_licenses": [
"MIT"
],
"directory_id": "31552192f8dc1c877131e17957a004b64476ff09",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#define NAME_SIZE 128
typedef char * String;
void greet();
int main() {
greet();
}
void greet() {
String name = malloc(NAME_SIZE);
printf("Please enter your name: ");
scanf("%s", name);
printf("Greetings %s. Welcome back!", name);
}
| 3 | 3 |
2024-11-18T21:15:41.013694+00:00 | 2023-08-31T07:33:29 | c620bc77fb07582b8ada94bf3697a9ae5db2b087 | {
"blob_id": "c620bc77fb07582b8ada94bf3697a9ae5db2b087",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T07:33:29",
"content_id": "18c56f98bebb022a4af0c234eb35c5e43ee70e3d",
"detected_licenses": [
"MIT"
],
"directory_id": "76007b83037e7b0e21996b3249df62c1c5a88ca4",
"extension": "c"... | stackv2 | /*************************************************************************
> FileName: common.c
> Author : DingJing
> Mail : dingjing@live.cn
> Created Time: 2022年01月05日 星期三 14时58分09秒
************************************************************************/
#include <stdio.h>
int get_int ()
{
int d = 0;
s... | 2.890625 | 3 |
2024-11-18T21:15:42.116652+00:00 | 2023-09-02T14:55:31 | fbe7863c4934687b26c687238eb2fe0ba106b98f | {
"blob_id": "fbe7863c4934687b26c687238eb2fe0ba106b98f",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T14:55:31",
"content_id": "a539687c19c5c31ce2e798d730f85c6c98aa4f21",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca",
"extens... | stackv2 | /**
* @file
* @brief
* @date 02.06.12
* @author Ilia Vaprol
*/
#ifndef NET_LIB_RPC_AUTH_H_
#define NET_LIB_RPC_AUTH_H_
#include <stdint.h>
/* Prototypes */
struct xdr;
struct auth;
#define AUTH_DATA_MAX_SZ 400
#define HOST_NAME_MAX_SZ 255
#define GIDS_MAX_SZ 16
/* Errors of a authentication */
enum auth_... | 2.171875 | 2 |
2024-11-18T21:15:42.196309+00:00 | 2023-08-23T04:46:46 | 989a76e1643becd33501858b8e358b5752b52885 | {
"blob_id": "989a76e1643becd33501858b8e358b5752b52885",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-23T04:46:46",
"content_id": "4b58a4d0de264bf906e6d70cab558d3c0b928ce7",
"detected_licenses": [
"MIT"
],
"directory_id": "2c73a693c2b3c162eae2ab94f649d8c4494878ba",
"extension": "c"... | stackv2 |
/**
* rotable 实现 lua下的只读table, 用于通常只用于库的注册.</p>
* 从原理上说, 是声明一个userdata内存块, 然后通过元表,将其伪装成table.<p/>
* 因为元表是共享的,而userdata内存块也很小(小于30字节),而且不会与方法的数量有关, 节省大量内存.
*
*/
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include "lua.h"
#include "rotable2.h"
/* The lookup code uses binary search on sorted `ro... | 2.59375 | 3 |
2024-11-18T21:15:43.530271+00:00 | 2020-11-10T00:23:31 | 23653871215c0937dfcfcab7a8df85e5e04d06e5 | {
"blob_id": "23653871215c0937dfcfcab7a8df85e5e04d06e5",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-10T00:23:31",
"content_id": "a7373cd610369aab0e88ca840c204f4c897f40f1",
"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.09375 | 2 |
2024-11-18T21:15:43.643516+00:00 | 2020-03-24T13:24:54 | 9e0975070d561cd39625ab93bece4b218ee405c2 | {
"blob_id": "9e0975070d561cd39625ab93bece4b218ee405c2",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-24T13:24:54",
"content_id": "b522a2295cae1ca29250d986ad3740e60b869033",
"detected_licenses": [
"MIT"
],
"directory_id": "e58c3c7281a612d3a1d4cd6e06fa7fb4ce67a5b4",
"extension": "c"... | stackv2 | /*-----------------------------------------------------------------------*
* filename - _getw.c
*
* function(s)
* _getw - gets a word from a stream
*-----------------------------------------------------------------------*/
/*
* C/C++ Run Time Library - Version 10.0
*
* Copyright (c) 1987, 2000... | 2.375 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.