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:28:43.830462+00:00 | 2020-04-03T01:02:33 | 2f430f0e146745bb8fe5a4b77f38ecbe4bf14341 | {
"blob_id": "2f430f0e146745bb8fe5a4b77f38ecbe4bf14341",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-03T01:02:33",
"content_id": "6ed31f2e5640d915043837b24d80e742ad818bc9",
"detected_licenses": [
"Unlicense"
],
"directory_id": "957feaec593168a9e40491056459cf4451e6df8f",
"extension... | stackv2 | #include <unistd.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#define arrayCount(Arr) (sizeof(Arr)/sizeof(*(Arr)))
long long du(int fd);
typedef struct {
pthread_t Thread;
char FileName[1024];
} thread_info;
void *threadRoutine(void *RawArg) {
... | 2.921875 | 3 |
2024-11-18T22:28:43.924928+00:00 | 2016-02-02T08:02:43 | 492f1e63fc7ec0807fb5f7adf9e51c07ca3bbbff | {
"blob_id": "492f1e63fc7ec0807fb5f7adf9e51c07ca3bbbff",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-02T08:02:43",
"content_id": "e529c352d7184b7d4e392fd2be7c64bc6a5378a7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c0e2fc2049cdb611b44af8c3a656d2cd64b3b62b",
"extensio... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/types.h>
#include <err.h>
#include <unistd.h>
#include <errno.h>
#include <pthread.h>
#include <limits.h>
#include "includes/Conf.h"
#include "includes/Errors.h"
#include "includes/Common.h"
#include "includes/Networking.h"
#include "includes/Se... | 2.59375 | 3 |
2024-11-18T22:28:44.007069+00:00 | 2018-02-24T09:17:10 | f3cf236ef50a29ac6441af8e46c931da2e01f804 | {
"blob_id": "f3cf236ef50a29ac6441af8e46c931da2e01f804",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-24T09:17:10",
"content_id": "a0250fb9cc1aa06f0a4d8dc1938f89143038e7ba",
"detected_licenses": [
"MIT"
],
"directory_id": "a9dfa872766fc214de804e5ee33ca580c5ead456",
"extension": "h"... | stackv2 |
#ifndef C_10_2_H
#define C_10_2_H
#include "C1.h"
typedef int InfoType; // 定义其它数据项的类型
typedef int KeyType; // 定义RedType类型的关键字为整型
struct RedType // 记录类型
{
KeyType key; // 关键字项
InfoType otherinfo; // 其它数据项
};
typedef char KeysType; // 定义关键字类型为字符型
#define MAX_NUM_OF_KEY 8 // 关键字项数的最大值
#define RADIX 10 ... | 2.984375 | 3 |
2024-11-18T22:28:44.104106+00:00 | 2021-09-22T10:15:59 | 04b98f20ca1e89806b14cddaad603d8247b4fb31 | {
"blob_id": "04b98f20ca1e89806b14cddaad603d8247b4fb31",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-22T10:15:59",
"content_id": "5fff6168edd6592c9858eb05aeaf54a71d3c17b6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "799b4928e242920cce61cce9a2d7665abb93f150",
"extens... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <time.h>
#include <fadec-enc.h>
static
void
print_hex(const uint8_t* buf, size_t len)
{
for (size_t i = 0; i < len; i++)
printf("%02x", buf[i]);
}
static
int
test(uint8_t* buf, const char* name, uint64_t mnem, uin... | 2.359375 | 2 |
2024-11-18T22:42:11.703054+00:00 | 2015-12-05T21:07:46 | e0936eaf9bb037a85c95db334caf9fd9de844315 | {
"blob_id": "e0936eaf9bb037a85c95db334caf9fd9de844315",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-05T21:07:46",
"content_id": "5b3edf22f4aa218e6ed225e10473e6ea22a3bc63",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ab10f438d84f52c6808cde2e4e6468604c7ded82",
"extens... | stackv2 | #include "video.h"
#include "stdint.h"
#include "mem.h"
#include "types.h"
#include "kernel.h"
#define PAGE_MASK 0xFFFFFFFFFFFFF000
static const uint64_t page_size = 0x1000;
static uint64_t* pmm_stack_start = (uint64_t*)(10*0x100000);
static uint64_t* pmm_stack_end = (uint64_t*)(12*0x100000);
static uint64_t* pmm_st... | 2.734375 | 3 |
2024-11-18T22:42:11.896093+00:00 | 2022-05-04T19:10:17 | 9c06583e81fe59e0d5df072d08097c0745c7c70d | {
"blob_id": "9c06583e81fe59e0d5df072d08097c0745c7c70d",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-04T19:10:17",
"content_id": "88e43dacfe7a79323fa5af6708e068b41ed6ab91",
"detected_licenses": [
"MIT"
],
"directory_id": "8452a69cfb785a7195c9dae62cdbbe60e9d14ac3",
"extension": "c"... | stackv2 | #include <kipr/botball.h>
int main()
{
int servos (int up_down,int right_left,int stop_time){
enable_servos();
set_servo_position(0,up_down);
set_servo_position(1,right_left);
msleep(stop_time);
return 0;
}
int move(int speed_left,int speed_right,int duration){
mo... | 2.484375 | 2 |
2024-11-18T22:42:12.008889+00:00 | 2020-10-08T14:09:06 | 2b178a424e55f481f2641d18b18c0d9889b9aa09 | {
"blob_id": "2b178a424e55f481f2641d18b18c0d9889b9aa09",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-08T18:20:57",
"content_id": "bd6d7f0dc7528a90be6c29226dc43c90ebaceb51",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b3beab8dc3d5ef3f5606bd2e79f3ffdba72855b0",
"extens... | stackv2 | // SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (C) 2020 Weijie Gao <hackpascal@gmail.com>
*/
#include <types.h>
void *memcpy(void *dst, const void *src, uintptr_t count)
{
uintptr_t *dl = (uintptr_t *)dst, *sl = (uintptr_t *)src;
uint8_t *d8, *s8;
if (src == dst)
return dst;
if ((((uintptr_t) dst |... | 2.703125 | 3 |
2024-11-18T22:42:12.642537+00:00 | 2011-10-26T02:09:11 | 99b0379e76cd6d6781367a908f7afad2741633c7 | {
"blob_id": "99b0379e76cd6d6781367a908f7afad2741633c7",
"branch_name": "refs/heads/master",
"committer_date": "2011-10-26T02:09:11",
"content_id": "afbbabe3f93c845b1ea7b4fdb120543e937763f1",
"detected_licenses": [
"MIT"
],
"directory_id": "b307dbc780fdaee5fbe48841559b99975962eb41",
"extension": "h"... | stackv2 | /*
* Copyright (C) Youness Alaoui (KaKaRoTo)
*
* This software is distributed under the terms of the GNU General Public
* License ("GPL") version 3, as published by the Free Software Foundation.
*/
#ifndef __RSXUTIL_H__
#define __RSXUTIL_H__
#include <sysutil/video.h> // videoState, videoResolution, videoGetStat... | 2.015625 | 2 |
2024-11-18T22:42:13.131313+00:00 | 2017-11-08T08:19:45 | 6a9371732fa460abed468fe2c04072b3b8d0ded4 | {
"blob_id": "6a9371732fa460abed468fe2c04072b3b8d0ded4",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-08T08:19:45",
"content_id": "644d1d6e6406f456fd85fbb3c9199839bff4d23c",
"detected_licenses": [
"MIT"
],
"directory_id": "85ff6d904816330d520dd55798d20925c0f86e3d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pila.h"
#include "cola.h"
/*
3. Ingresar los números de DNI de los votantes de una mesa a medida que van votando y mostrar
los últimos N (es dato) votantes
a. en orden inverso, comenzando por el último votante.
b. en el orden que sufragaron.
*... | 3.34375 | 3 |
2024-11-18T22:42:13.253261+00:00 | 2016-02-04T07:43:19 | 5d81b249e7d2038bd9ba36523cd2ecfc17d77fc3 | {
"blob_id": "5d81b249e7d2038bd9ba36523cd2ecfc17d77fc3",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-04T07:43:19",
"content_id": "703001c5cf682f536632a68c432eb7bf680a5ec4",
"detected_licenses": [
"MIT"
],
"directory_id": "8e09216b94f02ae2e157ca1a551bdb82468cdb95",
"extension": "c"... | stackv2 | /*******************************************************************************
*
* Copyright (c) 2015 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 wh... | 2.046875 | 2 |
2024-11-18T22:42:13.795439+00:00 | 2017-05-31T19:10:13 | 1534f4051952af260cff0bee4abcd09714fa9aab | {
"blob_id": "1534f4051952af260cff0bee4abcd09714fa9aab",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-31T19:10:13",
"content_id": "89b4b631f974b2ce46a9248dff2f6e3e3e3f3069",
"detected_licenses": [
"Unlicense"
],
"directory_id": "ef3ac69163c04363f566e0e482ae5eefed66f27c",
"extension... | stackv2 | /*
* LCDDriver.c
*
* R. Traylor 10.7.09
* Justin Goins 10.14.14
* For protocol information see: http://en.wikipedia.org/wiki/Hitachi_HD44780_LCD_controller
*/
#define F_CPU 16000000UL
#include <avr/io.h>
#include <util/delay.h>
#include <string.h>
#include <stdlib.h>
#include "LCDDriver.h"
char lcd_str[16]... | 3.0625 | 3 |
2024-11-18T22:42:13.855942+00:00 | 2014-08-12T01:30:55 | 1fdc86d577aa04bb47f66fb963d72ed7eafd6879 | {
"blob_id": "1fdc86d577aa04bb47f66fb963d72ed7eafd6879",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-12T01:30:55",
"content_id": "3c16d403698d8c6cdb972f4a0441fedc217994cb",
"detected_licenses": [
"MIT"
],
"directory_id": "3960e382126899152c2e72ac1752d5ee7e1d731b",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(int argc, char * argv[])
{
char a[] = "hello1 is a long string.";
char b[] = "hello2 is short.";
int sa = sizeof a;
int sb = sizeof b;
void printArray( char *a, int len);
printArray( a, sa );
printArray( b, sb );
strcp... | 3.03125 | 3 |
2024-11-18T22:42:13.961591+00:00 | 2018-08-27T12:32:34 | 9916dc770932c9919d827b3ebc57ea1dcc1ec5fd | {
"blob_id": "9916dc770932c9919d827b3ebc57ea1dcc1ec5fd",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-27T12:32:34",
"content_id": "95b4657232bffe7973bf3828d71d0e63d1aa1c18",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "983a05930929cbe05f23db6cd9c88c5d36124bb2",
"extensio... | stackv2 | /** @file
* @brief GPS Service sample
*/
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/types.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <misc/printk.h>
#include <misc/byteorder.h>
#include <zephyr.h>
#include <sensor.h>
#inclu... | 2.171875 | 2 |
2024-11-18T22:42:14.588529+00:00 | 2023-08-30T20:47:27 | ad3ef3feb2241b94064dd933f4406617e3da79d5 | {
"blob_id": "ad3ef3feb2241b94064dd933f4406617e3da79d5",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-30T20:47:27",
"content_id": "9a57832b6e06128b7f46db5cfdca176d784a3f03",
"detected_licenses": [
"MIT"
],
"directory_id": "2c401decaf99fae89bb5a24018c14591578998c6",
"extension": "c",
... | stackv2 | /*
* nullfe.c: Null front-end code containing a bunch of boring stub
* functions. Used to ensure successful linking when building the
* various stand-alone solver binaries.
*/
#include <stdarg.h>
#include "puzzles.h"
void frontend_default_colour(frontend *fe, float *output) {}
void get_random_seed(void **randsee... | 2.21875 | 2 |
2024-11-18T22:42:14.687196+00:00 | 2022-03-25T17:00:26 | 947f3623b0c9e9238eb5bb345499fe8ffe886a40 | {
"blob_id": "947f3623b0c9e9238eb5bb345499fe8ffe886a40",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-25T17:00:26",
"content_id": "db21ea5b62c6ec8ed6b1cd155ba38183fe030aa8",
"detected_licenses": [
"MIT"
],
"directory_id": "4bdbb8e556bbdf84442f8844051e213092a6777c",
"extension": "c"... | stackv2 | #include "shared.h"
volatile int argLengthArgc = 0;
volatile void *argLengthArgv;
int argLengthFunc(SceSize argc, void *argv) {
argLengthArgc = argc;
argLengthArgv = argv;
return 0;
}
int testFunc(SceSize argc, void *argv) {
return 0;
}
SceKernelThreadInfo stackCheckInfo;
const char *stackCheckName;
int stackChe... | 2.65625 | 3 |
2024-11-18T22:42:14.759700+00:00 | 2016-06-30T17:08:56 | 64d4994cc85327029eaef54f8819b1fc4baae34a | {
"blob_id": "64d4994cc85327029eaef54f8819b1fc4baae34a",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-30T17:08:56",
"content_id": "9344970f560261cf5ad2fee9bc8a694d05f1593b",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "9700e6267fc28ae833e02d3a8d1746853a9a2e9a",
"extension":... | stackv2 | #include<stdio.h>
int main(void) {
int n;
int r;
printf("Escreva um numero: ");
sacnf("%d", &n);
if (r !=1)
{
printf("Entrada inválida!\n");
return 1;
}
if (n % 2 ==0)
{
printf("É par!");
}
else
{
printf("É impar!");
}
retunr 0;
}
| 3.21875 | 3 |
2024-11-18T22:42:14.870143+00:00 | 2020-12-20T13:15:54 | 924ab9f74cf1d4eb518552d6c9e7ddf5167aabdc | {
"blob_id": "924ab9f74cf1d4eb518552d6c9e7ddf5167aabdc",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-20T13:15:54",
"content_id": "4804825e4b7b2d5114521cf206ee6f629ac232be",
"detected_licenses": [
"MIT"
],
"directory_id": "26b63b54bbb063e3fb55046e0a2079839ab6d7dd",
"extension": "c"... | stackv2 | //
// Created by Madi and Sasha on 12.11.2020.
//
#include <stdio.h>
#include <string.h>
#include "../headers/token_stream.h"
#include "../headers/parser.h"
#define FILE_PATH_SIZE 64
#define bool int
#define true 1
#define false 0
extern FILE *yyin;
extern int yylex();
char *findExtension(char *filePath) {
retu... | 2.75 | 3 |
2024-11-18T22:42:15.198787+00:00 | 2020-07-19T13:50:45 | 4758020915dbfec8b9c84a22334b20957018db97 | {
"blob_id": "4758020915dbfec8b9c84a22334b20957018db97",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-19T13:50:45",
"content_id": "bd89209957a6a840d059ebcefb832f0e110c50c1",
"detected_licenses": [
"MIT"
],
"directory_id": "17a4689c8de552e99a4749922d84309efad16fde",
"extension": "h"... | stackv2 | #pragma once
#include "Platform.h"
#include "Vector2.h"
struct Rectangle
{
public:
Rectangle() = default;
Rectangle(const Rectangle& InBox) : Min(InBox.Min), Max(InBox.Max) { }
Rectangle(const Vector2& InMinVector, const Vector2& InMaxVector)
: Min(InMinVector), Max(InMaxVector) { }
Rectangle(const Vector2* In... | 2.8125 | 3 |
2024-11-18T22:42:16.024426+00:00 | 2012-06-22T16:44:50 | 878114978fe75004d7014b98374c7d52d70239b6 | {
"blob_id": "878114978fe75004d7014b98374c7d52d70239b6",
"branch_name": "refs/heads/master",
"committer_date": "2012-06-22T16:44:50",
"content_id": "87e0f43247fb2e9d3b0dce90a70238591b4399d0",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "f9a3fe738ff21294629fff18d40dd44cae4d1f0d",
"extens... | stackv2 | #include "avi.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
static char *progname; /* The name of this program */
void usage(const char *err) {
if (err) fprintf(stderr, "%s\n\n", err);
fprintf(stderr, "Usage: %s input.avi output.avi PIECE-SIZE START-PIECE"
" [MAX-PIECES]\n", pr... | 2.703125 | 3 |
2024-11-18T22:42:16.092487+00:00 | 2023-07-27T19:04:59 | d13cf7d7237f6b1a00e0814152c43cf0d54ed1e0 | {
"blob_id": "d13cf7d7237f6b1a00e0814152c43cf0d54ed1e0",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-27T19:04:59",
"content_id": "bf1d2ad276827147d56d28c4b4e4d8c8ce808a33",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "1f222e606fd51c98a7c0d9b2179656766846e58b",
"extens... | stackv2 | /*! \file
Copyright (c) 2003, The Regents of the University of California, through
Lawrence Berkeley National Laboratory (subject to receipt of any required
approvals from U.S. Dept. of Energy)
All rights reserved.
The source code is distributed under BSD license, see the file License.txt
at the top-level directory.
... | 2.3125 | 2 |
2024-11-18T22:42:16.241085+00:00 | 2016-02-15T17:03:43 | 5992a0524732ac4466d65258b0aff48c8327099d | {
"blob_id": "5992a0524732ac4466d65258b0aff48c8327099d",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-15T17:03:43",
"content_id": "479775220a076a657f0e738b8c3d3d88f9ba0bdd",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "89cf94a6da81786f94d15e78177546485ed85d08",
"extens... | stackv2 | /*!
* @author Nareg Sinenian
* @file iSCSIDA.c
* @version 1.0
* @copyright (c) 2013-2015 Nareg Sinenian. All rights reserved.
* @brief User-space management of iSCSI disks.
*/
#include "iSCSIDA.h"
#include "iSCSIIORegistry.h"
typedef struct iSCSIDiskOperationContext {
DASessionRef session;
iSCSITarg... | 2.421875 | 2 |
2024-11-18T22:42:16.567291+00:00 | 2019-12-29T15:49:01 | a60d573800c65b092f176814da82d161b37abed0 | {
"blob_id": "a60d573800c65b092f176814da82d161b37abed0",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-29T15:49:01",
"content_id": "b549dae50dcf9142a7bf2e3e2ec572b03a3d1681",
"detected_licenses": [
"MIT"
],
"directory_id": "d2d215dcbf7040cb700d4b41a19a771c1512ec4f",
"extension": "c"... | stackv2 | #include "funz.h"
int numsing (){
int a;
a=(float)rand()/RAND_MAX*109;
return a;
}
//probabilita' sballata per ultima casistica (causa troncamento decimale), sistemato aggiungendo e
//spostando di uno e sommando un caso possibile, (109 e' molto meno probabile come risultato possibile)
| 2.09375 | 2 |
2024-11-18T22:42:16.740880+00:00 | 2021-07-23T14:49:31 | 4fec85ce2852cfe56f015874e74a53770a35a5e9 | {
"blob_id": "4fec85ce2852cfe56f015874e74a53770a35a5e9",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-23T14:49:31",
"content_id": "45fb8c4621d7c2330a3487ade6373c04f208a57b",
"detected_licenses": [
"Unlicense"
],
"directory_id": "85868ec0678762417e2f5905dcd53c0e11113cc1",
"extension... | stackv2 | #include "bTree.h"
#include <stdio.h>
#include <stdlib.h>
// NODE section
node *newNode(int i)
{
node *newElem = malloc(sizeof(node));
if (newElem == NULL) {
fprintf(stderr, "Failed to allocate new element");
exit(-1);
}
newElem->data = i;
newElem->lesser = NULL;
newElem->greater = NULL;
... | 3.46875 | 3 |
2024-11-18T22:42:16.831803+00:00 | 2019-11-29T06:11:15 | 3a1cd76a7942a56e175dcf763bb23572441b1fe8 | {
"blob_id": "3a1cd76a7942a56e175dcf763bb23572441b1fe8",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-29T06:11:15",
"content_id": "788be4fe46a1283e129de160413bdebe0f1c5140",
"detected_licenses": [
"MIT"
],
"directory_id": "d00f423eb05bdf97ed5d479218827ad4f6f60128",
"extension": "c"... | stackv2 | /*
*Description: How to setup serial port in atmel studio and atmega328p-pu microcontroller.
*Special thanks:
thanks https://www.youtube.com/watch?v=3_omxGIL0kw for the tutorial. This is where i got the code.
I made the comments to be as clear as possible. Make sure you always check my previous examples on github,
as ... | 2.953125 | 3 |
2024-11-18T22:42:17.137677+00:00 | 2019-12-07T09:55:07 | 399ce07c8b051163148cc2c34f91aed26c3b53b6 | {
"blob_id": "399ce07c8b051163148cc2c34f91aed26c3b53b6",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-07T09:55:07",
"content_id": "ae95053a665ed139347c5fa512187001c0e46700",
"detected_licenses": [
"Zlib"
],
"directory_id": "2dc9afe4e68884267e43699f90c5ac25f3d5da88",
"extension": "h... | stackv2 | #pragma once
#include "types.h"
typedef enum {
/* Creates a new mapping */
OP_MAP,
/* Removes a mapping - only va_addr/va_len are used */
OP_UNMAP,
/* Change permissions of a mapping - only va_addr/va_len/va_flags are used */
OP_CHANGE_ACCESS,
} VMOP_OPERATION;
#define VMOP_FLAG_READ 0x0001... | 2.328125 | 2 |
2024-11-18T22:42:17.346231+00:00 | 2020-05-26T03:13:41 | f0f204032ecbaf7b6e1251731a1fa24484fd8400 | {
"blob_id": "f0f204032ecbaf7b6e1251731a1fa24484fd8400",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-26T03:13:41",
"content_id": "f26b160fe2b57100cffd1a1f823134252fbe4bd3",
"detected_licenses": [
"MIT"
],
"directory_id": "975d92fefeca556a19e5a8c1031a27ac567ed429",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
FILE *in_file, *out_file, *invalid_file;
// --------------------------------------------------------------------------------
void addPERIOD(char from[], char to[]) {
Date start = constructDate(from);
Date end = constructDate(to);
if (!isVal... | 2.515625 | 3 |
2024-11-18T22:42:17.409919+00:00 | 2018-01-01T00:09:31 | 73d2fdc550ef1fef3f5d40957f83793cf88b032f | {
"blob_id": "73d2fdc550ef1fef3f5d40957f83793cf88b032f",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-01T00:09:31",
"content_id": "70b64adbbe535f20df6704a22a2d88f57c034ac4",
"detected_licenses": [
"MIT"
],
"directory_id": "8cceb2b39e5a635ba1b755146c81f17589b0acd6",
"extension": "h"... | stackv2 | /* procmgr -- init-like process manager
* https://github.com/CylonicRaider/procmgr */
/* Definitions for main.c */
#ifndef _MAIN_H
#define _MAIN_H
#include "config.h"
/* Program name and version */
#define PROGNAME "procmgr"
#define VERSION "v1.0"
/* Default configuration file location */
#define DEFAULT_CONFFILE... | 2.234375 | 2 |
2024-11-18T22:42:17.634626+00:00 | 2019-03-01T05:16:46 | 9ba65fe492e9a61210934b911d8da0f46417cbc2 | {
"blob_id": "9ba65fe492e9a61210934b911d8da0f46417cbc2",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-01T05:16:46",
"content_id": "b7d37446b13562b5078ccbcaf2af93a80b9d10e8",
"detected_licenses": [
"MIT"
],
"directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f",
"extension": "c"... | stackv2 | // story:beihai 北海傳説
#include <ansi.h>
int give_gift(string name);
nosave mixed *story = ({
"華山。",
"李鐵嘴打了個哈欠,百無聊賴。",
"一人忽然闖了進來,看看李鐵嘴,忽然道:你的卦可準?",
"李鐵嘴眼睛瞪得大大的,道:不準不要錢。",
"來人哈哈大笑道:好!好!那麼你算算,明天下不下雨?",
"李鐵嘴擺好卦籤,一頓亂算。",
"來人冷冷的看着。",
"李鐵嘴道:明天午時應該下雨,一寸三分!",
... | 2.078125 | 2 |
2024-11-18T22:42:17.877893+00:00 | 2021-09-29T03:46:56 | 8173f582f8a0b1eaff8336fe75c3b5860d3acdd2 | {
"blob_id": "8173f582f8a0b1eaff8336fe75c3b5860d3acdd2",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-29T03:46:56",
"content_id": "d277f6cc86892ba3d841d678e1ab11b0fd90095a",
"detected_licenses": [
"MIT"
],
"directory_id": "385cd45551958575aeacf02a9590c200e87b79e6",
"extension": "c",
... | stackv2 | /*
* computeGrad_StoreHx.c
*
* Code generation for function 'computeGrad_StoreHx'
*
*/
/* Include files */
#include "computeGrad_StoreHx.h"
#include "eml_int_forloop_overflow_check.h"
#include "rt_nonfinite.h"
#include "runOpt.h"
#include "runOpt_data.h"
#include "xgemv.h"
#include <string.h>
/* Variable Definit... | 2.1875 | 2 |
2024-11-18T22:42:17.941489+00:00 | 2020-08-28T19:14:48 | c6c2372b975a43b5a5951a4119f84cf59e5576d1 | {
"blob_id": "c6c2372b975a43b5a5951a4119f84cf59e5576d1",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-28T19:14:48",
"content_id": "799037401ba07f84e213fbd96abfc1cc62884e2e",
"detected_licenses": [
"MIT"
],
"directory_id": "7c44c095a5cc68f7e8417f29e49dfbd7e8d14ee2",
"extension": "c"... | stackv2 | #include "declarationsHeader.h"
extern paramsPtr paramsListHead;
extern symPtr symTableHead;
extern insPtr insListHead;
extPtr extListHead;
extern struct keyWords keys[];
/*
* Takes one line and codes it.
*/
void secondPass(FILE *fd) {
if (generalError)
return;
/*Working with a ptr to the current ... | 2.265625 | 2 |
2024-11-18T22:42:18.192572+00:00 | 2020-12-28T17:58:00 | 636f2bbdc4baefaf5f035c79ccdfd6a1ea3126a6 | {
"blob_id": "636f2bbdc4baefaf5f035c79ccdfd6a1ea3126a6",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-28T17:58:00",
"content_id": "331716c208ddb6d07b7e907905306822c93cfdba",
"detected_licenses": [
"MIT"
],
"directory_id": "a403be0761ab9ba17361fbdd031f44593d0d3856",
"extension": "c",
... | stackv2 | /*
* main2.c
*
* Created on: Sep 17, 2020
* Author: s0lid
*/
#include <stdio.h>
#include <string.h>
#include "stm32f4xx_hal.h"
#include "main.h"
void SystemClockConfig(void);
void Init_Pulse(void);
uint32_t Calc_Pulse(uint32_t ch_freq);
void GPIO_Init(void);
void Error_Handler(void);
void UART2_Init(void);... | 2.421875 | 2 |
2024-11-18T22:42:18.391634+00:00 | 2018-06-12T18:56:49 | b18b13c897e3e23ccce34e862a44b05191d10e6a | {
"blob_id": "b18b13c897e3e23ccce34e862a44b05191d10e6a",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-12T18:56:49",
"content_id": "5b656d3caff8814b7e7b13ed8368cad6f14f49a5",
"detected_licenses": [
"MIT"
],
"directory_id": "5b6e8b81dd91d1a7d2ef3052f0855b55faa28cf2",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <time.h>
#include <string.h>
static void print_help(char *program) {
printf("Slave program. Use:\n");
printf("\t%s <pipe name> <line count>\n", program);
}
static v... | 2.90625 | 3 |
2024-11-18T22:42:18.482800+00:00 | 2019-12-03T06:20:27 | c51b4edf6c7279ffbf33a7d32ea5c7adf568ec67 | {
"blob_id": "c51b4edf6c7279ffbf33a7d32ea5c7adf568ec67",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-03T06:20:27",
"content_id": "e625fbbe957a1b370ca1ba8a0c7ee5128b8a861c",
"detected_licenses": [
"MIT"
],
"directory_id": "d61af2a0d768676264445b74ddf0ac743d2db8a1",
"extension": "h"... | stackv2 | #pragma once
#include <stdbool.h>
#include <iothub_client_core_common.h>
#include <azure_sphere_provisioning.h>
#define SCOPE_ID_LENGTH 20
extern const int IOT_DEFAULT_POLL_PERIOD;
/// <summary>
/// Sets the scope ID for the IoT Hub client.
/// </summary>
/// <param name="scope_id">Scope ID unique to your IoT Hub.... | 2.015625 | 2 |
2024-11-18T22:42:19.164030+00:00 | 2023-08-21T22:56:29 | 546a8609e9735f39f76334effb7ec8069d798cf9 | {
"blob_id": "546a8609e9735f39f76334effb7ec8069d798cf9",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-21T22:56:29",
"content_id": "9b689db73c260b5419fdbce525d0321c3dab114e",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "a9b6d79c59a45a25e902b2809de43f62a8e77289",
... | stackv2 | #include "parsec.h"
#include "parsec/arena.h"
#include "parsec/data_dist/matrix/matrix.h"
#include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h"
#include "parsec/interfaces/dtd/insert_function_internal.h"
#include "tests/tests_data.h"
#if defined(PARSEC_HAVE_MPI)
#include <mpi.h>
#endif /* defined(PARSEC_HAVE_... | 2.265625 | 2 |
2024-11-18T22:42:19.721646+00:00 | 2017-03-04T15:28:24 | 9c1096e1bd9c60b070f5a46f49a630fed05dc49e | {
"blob_id": "9c1096e1bd9c60b070f5a46f49a630fed05dc49e",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-04T15:28:24",
"content_id": "5ddabcd1c012d558b77648c74eb2634b100322a6",
"detected_licenses": [
"MIT"
],
"directory_id": "ca98c896ebce3c5ba2bd47730ca365d1b9c90cb1",
"extension": "c"... | stackv2 | #include "config.h"
#include "types.h"
#include "sound.h"
#include "z80_ctrl.h"
#include "smp_null.h"
#include "smp_null_pcm.h"
// Z80_DRIVER_PCM
// single channel 8 bits signed sample driver
///////////////////////////////////////////////////////////////
u8 SND_isPlaying_PCM()
{
vu8 *pb;
u8 ret;
// l... | 2.28125 | 2 |
2024-11-18T22:42:22.867776+00:00 | 2013-10-01T08:51:29 | a0516fcf53682b0773800caea2ddfeea00fb1987 | {
"blob_id": "a0516fcf53682b0773800caea2ddfeea00fb1987",
"branch_name": "refs/heads/master",
"committer_date": "2013-10-01T08:51:29",
"content_id": "4c8943090ad26869005608604948856bfb5fb90b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "596c31b047ca731e4908aaf9f056b6ec39623380",
"extens... | stackv2 | #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <errno.h>
#include <getopt.h>
#include <sysexits.h>
#include <Ecore.h>
#include <E_Notify.h>
#define S(X) #X
#define CHECK(X) do { \
if (!X) \
{ \
fprintf(stderr, "%s:... | 2.375 | 2 |
2024-11-18T22:42:23.018806+00:00 | 2019-02-15T19:55:57 | 422078c6a306ae3c4bd9a384a43e3d510f6ec186 | {
"blob_id": "422078c6a306ae3c4bd9a384a43e3d510f6ec186",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-15T19:55:57",
"content_id": "04dfd71aeabbd9c3c228b9b997b71f3896a2d289",
"detected_licenses": [
"MIT"
],
"directory_id": "8b3780fa6e5504bcd3d8a0bbd27ba5f4325ce11c",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include "common.h"
#include "memory.h"
static void free_object(Obj *object);
void* reallocate (void *previous, size_t old_size, size_t new_size) {
if (new_size == 0) {
free(previous);
return NULL;
}
return realloc(previous, new_size);
}
void free_objects(Obj *objects) {
... | 2.703125 | 3 |
2024-11-18T22:42:23.092604+00:00 | 2023-08-23T04:46:46 | 5ab4cf6e70aa35b9be180f788a795c8101e0ad0b | {
"blob_id": "5ab4cf6e70aa35b9be180f788a795c8101e0ad0b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-23T04:46:46",
"content_id": "a008d54049a854cecca0ba4985015839c073fa18",
"detected_licenses": [
"MIT"
],
"directory_id": "2c73a693c2b3c162eae2ab94f649d8c4494878ba",
"extension": "c"... | stackv2 | #include "luat_base.h"
#include "luat_fs.h"
#include "luat_malloc.h"
#define LUAT_LOG_TAG "sysp"
#include "luat_log.h"
#include <sys/stat.h>
#ifdef LUAT_USE_LVGL
#include "lvgl.h"
void luat_lv_fs_init(void);
void lv_bmp_init(void);
void lv_png_init(void);
void lv_split_jpeg_init(void);
#endif
extern const struct lua... | 2.0625 | 2 |
2024-11-18T22:42:23.257420+00:00 | 2019-07-04T20:37:11 | 98cbec0777b3ce9fce7669b94a3aa78ade85203c | {
"blob_id": "98cbec0777b3ce9fce7669b94a3aa78ade85203c",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-04T20:37:11",
"content_id": "92db4b0a85640038c2c60337ff96fd49a4c71274",
"detected_licenses": [
"MIT"
],
"directory_id": "d7b164fa8a565ff3825343abba2351c51aba1f75",
"extension": "c"... | stackv2 | /*
* SD task. Handles logging to SD for all the telemetry passing through ICU
* */
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "semphr.h"
#include <main.h>
#include "fatfs.h"
SD_HandleTypeDef hsd;
static void MX_SDIO_SD_Init(void);
static void sd_startlog(void);
void sd_task (void *pvPa... | 2.21875 | 2 |
2024-11-18T22:42:23.993382+00:00 | 2019-02-28T18:25:49 | 95c9986f47652973f10c11ca601c71fae1ad5207 | {
"blob_id": "95c9986f47652973f10c11ca601c71fae1ad5207",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-28T18:25:49",
"content_id": "5ffd87a856c9caf2a7813c0ed2dcbf5af3f0f34c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f78289d495ae38ea6518e90fef86bc26d77f9463",
"extens... | stackv2 | /*
* Copyright 2018-2019, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and ... | 2.46875 | 2 |
2024-11-18T22:42:24.064496+00:00 | 2020-06-09T21:15:37 | 9c405a949dc783ae24327c831184d49b837eb8a5 | {
"blob_id": "9c405a949dc783ae24327c831184d49b837eb8a5",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-09T21:15:37",
"content_id": "04ef8c8bec107e2ca97982e3bc36566f56960736",
"detected_licenses": [
"MIT"
],
"directory_id": "ca75f7099b93d8083d5b2e9c6db2e8821e63f83b",
"extension": "c"... | stackv2 | #include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include "gamma.h"
#include <stdbool.h>
#include <string.h>
int main() {
/*
scenario: test_random_actions
uuid: 295741379
*/
/*
random actions, total chaos
*/
gamma_t* board = gamma_new(10, 4, 9, 7);
assert( board != NULL );
assert( gam... | 2.484375 | 2 |
2024-11-18T22:42:24.801155+00:00 | 2020-10-11T07:47:16 | a9a48257d1afe7c8ba4ffd413a1505e545347f21 | {
"blob_id": "a9a48257d1afe7c8ba4ffd413a1505e545347f21",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-11T07:47:16",
"content_id": "82242cdf5d33949024cdc05293ff618efbf89612",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "efe1131a33ee82e7c46b5af4cf200dcae8eb4add",
"extension":... | stackv2 |
/******************************************************************************\
* This is a part of the Microsoft Source Code Samples.
* Copyright (C) 1992-1995 Microsoft Corporation.
* All rights reserved.
* This source code is only intended as a supplement to
* Microsoft Development... | 2.625 | 3 |
2024-11-18T22:42:25.505030+00:00 | 2019-02-10T02:46:17 | 30a42c7c87c5f0a47b9c09698bd1847e35b02c85 | {
"blob_id": "30a42c7c87c5f0a47b9c09698bd1847e35b02c85",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-10T02:46:17",
"content_id": "923eb53f3ed34276e786d3cc490f56e1983fc494",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6e747ddc6658b3e8cada4cc14269ba18d6f12322",
"extensio... | stackv2 | #include "SDLExVulkan.h"
VkDescriptorPool VulkanDescriptorPool;
extern VkDescriptorSetLayout VulkanDescriptorSetLayout;
VkImageCreateInfo VulkanCurrentTextureInfo[1024];
VkImageCreateInfo * sdlex_get_current_texture_info(unsigned imageIndex) {
return &VulkanCurrentTextureInfo[imageIndex];
}
void create_descriptor_p... | 2.375 | 2 |
2024-11-18T22:42:25.543473+00:00 | 2023-08-29T06:43:16 | 7fae606645e0c62ea9a029df36512f3e9e68723e | {
"blob_id": "7fae606645e0c62ea9a029df36512f3e9e68723e",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-29T14:01:02",
"content_id": "1e7195cc270ea7dd5b376fbe2a56afbff463e765",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "a65e2aac013b48ddfe5d6a7d108c2b84855d... | stackv2 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2019 Linaro Limited
*
* 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
*
... | 2.078125 | 2 |
2024-11-18T22:42:26.472059+00:00 | 2021-05-24T11:01:33 | 7fc7e943620cde1698fc12565d9818ecb19d23fa | {
"blob_id": "7fc7e943620cde1698fc12565d9818ecb19d23fa",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-24T11:01:33",
"content_id": "f8efa4ac43f6405ea610f7181830fa5ae0a2c8d5",
"detected_licenses": [
"MIT"
],
"directory_id": "d8bf6c0cf3227cf5c00ce9c2f0873b6d6dd250e8",
"extension": "h"... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include "esp_system.h"
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
typedef struct {
float speed;
uint8_t duration;
uint8_t slope;
} Order;
typedef struct {
char* owner;
float aspeed, max_speed;
uint8_t max_slope;
uint32_t duration;
Order oseq[];... | 2.265625 | 2 |
2024-11-18T22:42:27.374906+00:00 | 2013-08-29T04:23:48 | 685d7e77164879c0cde3afbdc049a29878b9eac6 | {
"blob_id": "685d7e77164879c0cde3afbdc049a29878b9eac6",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-29T04:23:48",
"content_id": "4fc7f4bdcf9442dce6c74a751d0a7ff067d21673",
"detected_licenses": [
"MIT"
],
"directory_id": "f79ab262d171004e4a47bb95bb83bfdd0397487c",
"extension": "c"... | stackv2 | #include "memdef.h"
const size_t page_sizes[] = {
PAGE_SIZE_0,
64 * 1024,
4 * 1024,
1024,
};
//Base-2 logarithms of page_sizes
const size_t page_powers[] = {
20,
16,
12,
PAGE_POWER_MIN,
};
| 2.21875 | 2 |
2024-11-18T22:42:27.547307+00:00 | 2016-05-14T23:44:00 | 6d43d1cc1d3678bad73280607308960dc57a6b8d | {
"blob_id": "6d43d1cc1d3678bad73280607308960dc57a6b8d",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-14T23:44:00",
"content_id": "022e42a51ec29d5471f30303804a58e19551b200",
"detected_licenses": [
"BSD-3-Clause",
"BSD-4-Clause",
"BSD-2-Clause"
],
"directory_id": "e065b40c3afa... | stackv2 | // Copyright (c) 1980 The Regents of the University of California.
// This file is free software, distributed under the BSD license.
#include "extern.h"
#include <signal.h>
// This routine executes a truncated set of commands until a "yes or "no" answer is gotten.
int getyn (const char* prompt)
{
for (;;) {
int ... | 2.375 | 2 |
2024-11-18T22:42:27.841305+00:00 | 2023-08-04T12:40:00 | 666ca95cdc427b361d7f5205d14d6d4b67112732 | {
"blob_id": "666ca95cdc427b361d7f5205d14d6d4b67112732",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-04T12:40:00",
"content_id": "eb961a9f2d6be8abcd4f5471191d9bedab7427ed",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "5e4913b3d7b6dfd9f35d9e5f24486bb6b6145125",
"extens... | stackv2 | /**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <tests_internal.h>
#define NAME_SIZE 250
static void test_ksResize (void)
{
int i;
KeySet * ks = 0;
KeySet * copy = ksNew (0, KS_END);
char name[NAME_SIZE];
ks = ksNew (20, keyNew ("user:/test01",... | 2.578125 | 3 |
2024-11-18T22:42:27.935884+00:00 | 2021-07-27T16:17:10 | d5177766691d94f58aa44aea288737ea4c936499 | {
"blob_id": "d5177766691d94f58aa44aea288737ea4c936499",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-27T16:17:10",
"content_id": "fc805c1298f971daa13cec69cc539f639d78dfb3",
"detected_licenses": [
"MIT"
],
"directory_id": "383956491739c8679a178c9ddab0ab63231f59f7",
"extension": "h"... | stackv2 | #ifndef ARRAY_H
#define ARRAY_H
#define TRUE (1)
#define FALSE (0)
int get_index_of(const int numbers[], const size_t element_count, const int num);
int get_last_index_of(const int numbers[], const size_t element_count, const int num);
int get_max_index(const int numbers[], const size_t element_count);
int get_min... | 2.296875 | 2 |
2024-11-18T22:42:28.346548+00:00 | 2021-08-10T13:57:06 | 92dfe700f1df8f529de9862a6a7fbd33bc3f9034 | {
"blob_id": "92dfe700f1df8f529de9862a6a7fbd33bc3f9034",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-10T13:57:06",
"content_id": "8cc04285c7896d19c1d1ae2a35e54d51042d9aee",
"detected_licenses": [
"MIT"
],
"directory_id": "20c7b8556125c9e60046f31fef9235ef78787627",
"extension": "c",
... | stackv2 | #include "syscall-init.h"
#include "syscall.h"
#include "stdint.h"
#include "print.h"
#include "thread.h"
#include "console.h"
#include "string.h"
#define syscall_nr 32
typedef void* syscall;
syscall syscall_table[syscall_nr];
/* 返回当前任务的pid */
uint32_t sys_getpid(void) {
return running_thread()->pid;
}
/* 打印字符串s... | 2.578125 | 3 |
2024-11-18T22:42:28.434262+00:00 | 2020-12-16T22:02:39 | 621adfc787fac3be820a2d8e6388082b69443f53 | {
"blob_id": "621adfc787fac3be820a2d8e6388082b69443f53",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-16T22:02:39",
"content_id": "1f86fbbb981b6f7eb64264c72b199d827da68245",
"detected_licenses": [
"MIT"
],
"directory_id": "49c1df40d5dda78298a1044bd66da059c77f222e",
"extension": "c",
... | stackv2 | #include <stdio.h>
// shamelessly copied from https://www.includehelp.com/code-snippets/how-to-identify-enter-key-is-pressed-in-c-programming-language.aspx
int main()
{
char ch;
bool capturing = true;
// start the loop for capturing keystrokes
while(capturing)
{
ch=fgetc(stdin);
printf("%c was pressed... | 2.640625 | 3 |
2024-11-18T22:42:28.723110+00:00 | 2018-03-03T21:27:28 | daeda41f1750ad5be9d8e8a57645c7f146ac731f | {
"blob_id": "daeda41f1750ad5be9d8e8a57645c7f146ac731f",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-03T21:27:28",
"content_id": "6b626746c4d4ec44afffa37b96b32e45446e2fd6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a88f2105ec51f8a441911a2f0c6e4510a293dd67",
"extensio... | stackv2 | #if !(defined(__x86_64__))
# error "Only x86-64 is supported at the moment"
#endif
#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
#include <ctype.h>
#include <sched.h>
#include <x86intrin.h>
#define PAGE_SIZE (1024 * 4)
#define PAGE_NUM 256
#defin... | 2.234375 | 2 |
2024-11-18T22:42:28.972143+00:00 | 2020-09-25T11:19:29 | 4c0e96b6813a9c51a2287574078ca745715c29e6 | {
"blob_id": "4c0e96b6813a9c51a2287574078ca745715c29e6",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-25T11:19:29",
"content_id": "95ba7f481e031b00f73f4b7c80f8046823b6fa35",
"detected_licenses": [
"MIT"
],
"directory_id": "883c9fe08016e55ba0ab0cd07c70190e9d66dd31",
"extension": "c"... | stackv2 |
// Generates a random walk from A to Z in a 10x10 array.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
char ground[10][10];
char letter = 'A';
int direction, row, column;
srand(time(NULL)); // Starting the random function for moves of the snake.
for (row = 0; row < 1... | 3.671875 | 4 |
2024-11-18T22:42:29.880068+00:00 | 2018-08-27T12:38:36 | bf587ede18abcd27bb18942788aabf31d48221e0 | {
"blob_id": "bf587ede18abcd27bb18942788aabf31d48221e0",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-27T12:38:36",
"content_id": "fa83aaa34745436ba32b0218158308285aa9ff31",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "719d32754dff465846848219aaf635457fc24e4d",
"extens... | stackv2 | /*
Copyright (c) 2018, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#include <string.h>
#include <hiredis/hiredis.h>
#include "... | 2.609375 | 3 |
2024-11-18T22:42:30.147059+00:00 | 2021-08-20T02:16:23 | d206155c8b354da96844fc1a530b31bf94138966 | {
"blob_id": "d206155c8b354da96844fc1a530b31bf94138966",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-20T02:16:23",
"content_id": "4ade5d61edee9ed665aa88abb4c9de6403fe91ec",
"detected_licenses": [
"MIT"
],
"directory_id": "bd3d972d05e4d1b11a577a53375f65a5c932987b",
"extension": "h",
... | stackv2 | #include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
char *encrypt_caesar(char plain_text[], int key)
{
int text_len = strlen(plain_text);
char *cipher_text = (char *)malloc(text_len);
strncpy(cipher_text, plain_text, text_len);
int i;
for (i = 0; i < text_len; i++)
{... | 3.09375 | 3 |
2024-11-18T22:42:31.205044+00:00 | 2021-04-19T15:39:18 | 858fd690b93fdbbb49f22a97b6ab1abc77f04f43 | {
"blob_id": "858fd690b93fdbbb49f22a97b6ab1abc77f04f43",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-19T15:39:18",
"content_id": "f85bb2834b0b1447f9ffba86767637e628ec82a2",
"detected_licenses": [
"MIT"
],
"directory_id": "7e2c2c3fd1a521ef39ada9698c6c53602f3953a5",
"extension": "h"... | stackv2 | /* -*- coding: utf-8-unix -*- */
#pragma once
#include "../my_parsec.h"
#include "optional.h"
C_API_BEGIN
PARSER(None) blank(void);
PARSER(None) lineComment(void);
// -----------------------------------------------------------------------
#if defined(CPARSEC_CONFIG_IMPLEMENT)
// PARSER(None) blank(void);
parsec(b... | 2.125 | 2 |
2024-11-18T22:42:31.281895+00:00 | 2020-07-01T12:19:34 | 68db62490b57fa076b3c63060ef87c0c89c4fbad | {
"blob_id": "68db62490b57fa076b3c63060ef87c0c89c4fbad",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-01T12:19:34",
"content_id": "1b6b84d7cd85e8def65981e467c9a7557f661375",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "bbf91cfe87a36779afbc43b5392abc0722363870"... | stackv2 | // $Id: crc.h,v 1.7 2010-06-29 22:07:56 scipio Exp $
/*
* Copyright (c) 2000-2003 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - R... | 2.140625 | 2 |
2024-11-18T22:42:32.009733+00:00 | 2020-07-12T13:00:43 | 6b4b7bace4e2f5c7edd59764e48e35c5751d6fa8 | {
"blob_id": "6b4b7bace4e2f5c7edd59764e48e35c5751d6fa8",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-12T13:00:43",
"content_id": "d068f498ab7c4b6cba794c4e35806f2f8a9ab318",
"detected_licenses": [
"ISC"
],
"directory_id": "bc6d0b68999118b6ff6e8772cfca22599e903801",
"extension": "h"... | stackv2 | /****************************************************************************
lv2-midifunctions.h - support file for using MIDI in LV2 plugins
Copyright (C) 2006 Lars Luthman <lars.luthman@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms ... | 2.140625 | 2 |
2024-11-18T22:42:32.131451+00:00 | 2021-09-30T14:44:47 | 9063441c687e2246731cd4550aa160ca83471139 | {
"blob_id": "9063441c687e2246731cd4550aa160ca83471139",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-30T14:44:47",
"content_id": "7293fefb10dd274de34b0c1c6c04db8a12c11f47",
"detected_licenses": [
"MIT"
],
"directory_id": "70068f41441b0f290fd8f41d525cdb46a2e934eb",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "my_functions.h"
#include "structure.h"
print_error(int error_code)
{
printf("Program exited with error %i\n", error_code);
if (error_code == -1) printf("Error. Tried to read a non-existent line from file\n");
if (error_code == -2) printf("Line ... | 2.796875 | 3 |
2024-11-18T22:42:32.883094+00:00 | 2019-05-14T02:54:08 | 575509f95d5e5dcda7877dc369b85905b9adbb48 | {
"blob_id": "575509f95d5e5dcda7877dc369b85905b9adbb48",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-14T02:54:08",
"content_id": "c0bf7f94dc19db82911ac5e9ee19c7ac102745a3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3c330923fe498c638a10c703d98bfa8751dbcc42",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <pthread.h>
#include <unistd.h>
#include <semaphore.h>
#include <string.h>
// Disclosure: used some code from online to help create the split function
int list_of_args[1000];
void *quicksort(void *vargp);
int split (int arr[], int low, int high);
void s... | 3.421875 | 3 |
2024-11-18T22:42:33.446736+00:00 | 2020-11-14T07:17:05 | 10c578197fccc17e990144dcb1d0a4bb9d82efe6 | {
"blob_id": "10c578197fccc17e990144dcb1d0a4bb9d82efe6",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-14T07:17:05",
"content_id": "0ac55e7650a0980a7b923c98aebb7592eba2161a",
"detected_licenses": [
"MIT"
],
"directory_id": "cdfd4cc63ce35f457f57abc92910ed6767a124fa",
"extension": "c",
... | stackv2 | #include <stdint.h>
#include "net/checksum.h"
/*!
* @brief Compute Internet Checksum.
* RFC 1071: https://tools.ietf.org/html/rfc1071
* @param buf Buffer with data to calculate
* @param count Length of data buffer in bytes
* @return 16-bit checksum
*/
uint16_t in_checksum(void *buf, uint16_t count) {
uint32... | 2.828125 | 3 |
2024-11-18T22:42:34.401285+00:00 | 2020-07-07T10:30:42 | 9607a9d9be05fed34d5552baf24b26dc4110d091 | {
"blob_id": "9607a9d9be05fed34d5552baf24b26dc4110d091",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-07T10:30:42",
"content_id": "a1f37a78b27da6d588e314bfc4a13461aeb9df66",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "3918af4079207d89b13071ee39bb1cd624beeee7",
"extension":... | stackv2 | /**********************************************************
*
* PQRandom.c - generates a random set of priority
* queue function call traces for a DIMACS priority
* queue driver
*
* pq.c - a basic heap implementation
* dimacs_input.c - functions for reading in commands
*
* queue items:
* name - uint32 : uniq... | 2.5 | 2 |
2024-11-18T22:42:34.911390+00:00 | 2019-09-14T00:33:38 | 49489bbd81eef730d76ed9c7896253afd507d2a7 | {
"blob_id": "49489bbd81eef730d76ed9c7896253afd507d2a7",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-14T00:33:38",
"content_id": "ecc17570f7a4cf09b1bd464bf00dd9ace4305977",
"detected_licenses": [
"MIT"
],
"directory_id": "3a6b074c40b4f034591eec228a7684b830abb8f0",
"extension": "c"... | stackv2 | #include "gifcc.h"
#include <inttypes.h>
Number new_number(type_t ty, unsigned long long val) {
Number num = {.type = ty};
switch (ty) {
case TY_BOOL:
num.bool_val = val;
return num;
case TY_CHAR:
num.char_val = val;
return num;
case TY_S_CHAR:
num.s_char_val = val;
return num;
case... | 2.4375 | 2 |
2024-11-18T22:42:35.596450+00:00 | 2018-10-08T18:27:17 | 09d405eea66ea4b518b8e1f251c1ec763b263508 | {
"blob_id": "09d405eea66ea4b518b8e1f251c1ec763b263508",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-08T18:27:17",
"content_id": "f32a852cdc951d855f07b99e60b6da7d16ae4394",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "fbe444a41ce2e6f733b9ce2d31cd20486708db6f",
"extens... | stackv2 |
/**************************************************************************
* File: olc_save.c *
* *
* Much time and thought has gone into this software and you are *
* benefitt... | 2.203125 | 2 |
2024-11-18T22:42:35.673533+00:00 | 2016-10-23T08:37:05 | 2cbd49df3ffe0f8aa8465e8a1e33ff7c8d0aab1c | {
"blob_id": "2cbd49df3ffe0f8aa8465e8a1e33ff7c8d0aab1c",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-23T08:37:05",
"content_id": "fbff7b2219d2e7ee2bc9afb31bffc64083b239c3",
"detected_licenses": [
"MIT"
],
"directory_id": "4b13ed5cca0467114ee0667faa2aa958c5aeb0cf",
"extension": "h"... | stackv2 | #ifndef __VQUEUE_H__
#define __VQUEUE_H__
#include <stddef.h>
#include <stdbool.h>
#include <stdatomic.h>
typedef struct {
size_t capacity;
size_t big_mask;
size_t small_mask;
_Atomic(ptrdiff_t) rptr;
_Atomic(ptrdiff_t) wptr;
unsigned char * buffer;
// "Private" members
int _fd;
v... | 2.453125 | 2 |
2024-11-18T22:53:02.359439+00:00 | 2020-09-20T22:47:02 | d9a8aee61888c00890c9b4cb05200a525042fdbe | {
"blob_id": "d9a8aee61888c00890c9b4cb05200a525042fdbe",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-20T22:47:02",
"content_id": "bec08c24a62893706ca6b4104a7f15dac36b50f0",
"detected_licenses": [
"MIT"
],
"directory_id": "eab15270426321ec69c04596c6f0d8ef91ff0e60",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "my_tasks.h"
#include "shared.h"
#include "usbd_hid.h"
#include "ssd1306.h"
#include "fonts.h"
#include "neopixel.h"
#include "buttons.h"
#include "keyboard.h"
#include "parser.h"
#include "animations.h"
uint8_t init_complete;
uint32_t last_keypress;
... | 2.1875 | 2 |
2024-11-18T22:53:02.487035+00:00 | 2018-04-09T07:27:28 | 09e29f76966c4a30bd79480ed7df49a2de09f72e | {
"blob_id": "09e29f76966c4a30bd79480ed7df49a2de09f72e",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-09T07:27:28",
"content_id": "755486a341bb60a77235c65b9f5cc0e172233b3c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1177571bd8f8faf3b7a71bc9d0f7768092a05982",
"extensio... | stackv2 | #ifndef __BSP_INTERAL_FLASH_H
#define __BSP_INTERAL_FLASH_H
#include "stm32f4xx_hal.h"
#define INTERAL_FLASH_SUCCESS 0
#define INTERAL_FLASH_FALSE 1
//Flash map define
#define ADDR_FLASH_SECTOR_0 ((uint32_t)0x08000000) /* Base @ of Sector 0, 16 Kbytes */
#define ADDR_FLASH_SECTOR_1 ((uint32_t)0x08004000) /* ... | 2.0625 | 2 |
2024-11-18T22:53:02.616912+00:00 | 2017-07-03T00:35:49 | 70c147c85a2bc41f26c7e7129303d6be55b9581a | {
"blob_id": "70c147c85a2bc41f26c7e7129303d6be55b9581a",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-03T00:35:49",
"content_id": "4c7387dee5de15a3f8e79b92a6dfd97a936276bf",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c433448a3626a624be0db227b076dd624125b0ba",
"extens... | stackv2 | #ifndef P7R_FEATURE_CHAIN_H_
#define P7R_FEATURE_CHAIN_H_
#include "./p7r_stdc_common.h"
#include "./p7r_linux_common.h"
#include "./p7r_scraft_common.h"
#include "./p7r_uthread_def.h"
struct p7r_feature_desc {
const char *name;
uint32_t priority;
void (*initializer)(const struct p7r_... | 2.078125 | 2 |
2024-11-18T22:53:03.036830+00:00 | 2021-10-07T18:07:00 | 528360d8ceced4bd9a35e03ebe40cc893a0a5796 | {
"blob_id": "528360d8ceced4bd9a35e03ebe40cc893a0a5796",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-07T18:07:00",
"content_id": "047e85d7bb2941c92b88c6b9e4ef1233925af580",
"detected_licenses": [
"MIT"
],
"directory_id": "ef2314811f877d266fb2bb8cf002bf3d7cea68eb",
"extension": "c"... | stackv2 | // LICENSE NOTICE ==================================================================================
/**
* selfmake - Script Language
* Copyright (C) 2021 The selfmake Authors
* Published under MIT
*/
// INCLUDE =========================================================================================
#include "V... | 2.3125 | 2 |
2024-11-18T22:53:03.127079+00:00 | 2016-05-14T14:34:42 | 9338beb34346f34cf631bba3f1d10e4a91013795 | {
"blob_id": "9338beb34346f34cf631bba3f1d10e4a91013795",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-14T14:34:42",
"content_id": "0937f48e4ab3cf69600ce774b0923bd3e7a6ea31",
"detected_licenses": [
"MIT"
],
"directory_id": "e0821770970feffb9d57a983acd84a9e2d06a71b",
"extension": "h"... | stackv2 | #ifndef __GTHREE_BUFFER_H__
#define __GTHREE_BUFFER_H__
#include <gthreeobject.h>
#include <gthreematerial.h>
G_BEGIN_DECLS
#define GTHREE_TYPE_BUFFER (gthree_buffer_get_type ())
#define GTHREE_BUFFER(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
G... | 2.0625 | 2 |
2024-11-18T22:53:03.466733+00:00 | 2023-08-07T00:34:06 | fd3029b851cbf4274d7be7877ea6d4035bf261fa | {
"blob_id": "fd3029b851cbf4274d7be7877ea6d4035bf261fa",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T00:34:06",
"content_id": "4f4c29d32b1bc2df2010aa6b9a2b3672516e3919",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7875d9c191db4bbe4d3bafc340035435833a2166",
"extensio... | stackv2 | /*+-------------------------------------------------------------------+
| <DOC> |
| <NAME> t_objid |
| <AUTHOR> John L. Foster |
| <DATE> October 25, 1989 ... | 2.328125 | 2 |
2024-11-18T22:53:03.576138+00:00 | 2017-07-01T16:36:40 | c65e3e02ab6185abd1e2f89ea7cf675fa7730451 | {
"blob_id": "c65e3e02ab6185abd1e2f89ea7cf675fa7730451",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-01T16:36:40",
"content_id": "58cb1a7eccc76105ca47b3ccd665ee688a4b1ee2",
"detected_licenses": [
"MIT"
],
"directory_id": "7f626a3022015d719c99979c24f23b4527f5c5dd",
"extension": "c"... | stackv2 | /**
* \file vc0706_core.c
* \brief Contains methods for communicating with the VC0706 camera over serial
* Retrieved from https://github.com/vyykn/VC0706
*
* Edited By Zach Richard for use on TRAPSat aboard the RockSat-X 2016 Mission
* Edited by Ezra Brooks for use on TRAPSat aboard the CACTUS-1 Mission
*/
#inc... | 2.828125 | 3 |
2024-11-18T22:53:03.941587+00:00 | 2016-03-01T03:41:11 | 36f282b42f9b7727934c16ce2ef17de1e93d0f66 | {
"blob_id": "36f282b42f9b7727934c16ce2ef17de1e93d0f66",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-01T03:41:11",
"content_id": "35a4aa73ee5f239720aece21766045f760baaabd",
"detected_licenses": [
"MIT"
],
"directory_id": "abcda32103fa040c4917851326e0544293b2ad1f",
"extension": "c"... | stackv2 | /* Create an employee structure which contain 4 fields such as
eno,ename,edesg and esal
create a file called emp.txt which contains 10 records in this format
example: 1, Adam,SE,11000
Find the records whose salaries are above 10000 and less than 10000 and store them
in max.txt and min.txt respectivly... | 3.34375 | 3 |
2024-11-18T22:53:04.016340+00:00 | 2019-04-18T03:55:32 | aeb0a7ccbfb79ca87428a896b7b991a890e81a03 | {
"blob_id": "aeb0a7ccbfb79ca87428a896b7b991a890e81a03",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-18T03:55:32",
"content_id": "a60ab74156afff37cf99f91e731b264150fb5b73",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "925b868eeee9d27bb792f50ac1a597d3cf44417a",
"extensio... | stackv2 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright (C) 2018,2019 IBM Corp. */
#ifndef _DEBUG_H
#define _DEBUG_H
#include <errno.h>
#include <stdint.h>
#include <sys/types.h>
struct debug {
int port;
};
static inline int debug_init(struct debug *ctx, const char *compatible, const char *ip,
int... | 2.125 | 2 |
2024-11-18T22:53:04.106238+00:00 | 2020-12-25T10:32:28 | 86d7c79669333e34614af8aee4c47c95c59ad0a8 | {
"blob_id": "86d7c79669333e34614af8aee4c47c95c59ad0a8",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-25T10:32:28",
"content_id": "72c5dc252cc32b3ab56e063f23a2c106f4eea4b9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a206e79cabce10b3d9e4597bdc55b3a88e91cbeb",
"extensio... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* surf_tex.c :+: :+: :+: ... | 2.25 | 2 |
2024-11-18T22:53:05.053240+00:00 | 2015-12-21T06:56:54 | 8d058f445fed07da1abd64d5a56389db1c1ba0dc | {
"blob_id": "8d058f445fed07da1abd64d5a56389db1c1ba0dc",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-21T06:56:54",
"content_id": "3d6e7f943739f04ac4c5d59277696bb998c39cb1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fe3939e260d0fa25dde549cf40c4da8c6cc9520b",
"extensio... | stackv2 | /* ============================================================================
* Project Name : ezbox Configuration Daemon
* Module Name : pop_etc_dhis_db.c
*
* Description : ezbox /etc/dhis.db file generating program
*
* Copyright (C) 2008-2013 by ezbox-project
*
* History Rev Description
* 2012... | 2.125 | 2 |
2024-11-18T22:53:05.134274+00:00 | 2018-12-12T05:18:12 | f6f75906692c593e26de27f207aa1c23fc48c090 | {
"blob_id": "f6f75906692c593e26de27f207aa1c23fc48c090",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-12T05:43:57",
"content_id": "68b21bb37e85e95a8316152a1e0848ed1cbb8ec9",
"detected_licenses": [
"MIT"
],
"directory_id": "3102f9359175e5c7f29094f8e562dce88cb9e5ec",
"extension": "c"... | stackv2 | #include "common.h"
#include <syslog.h>
#include <cainterface.h>
#include <pthread.h>
#include <oc_logger.h>
#include <experimental/logger.h>
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t sync_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_cond_t sync_cond = PTHREAD_COND_INITIALIZ... | 2.03125 | 2 |
2024-11-18T22:53:05.516827+00:00 | 2017-08-18T08:03:55 | 3a3db446a5f190ebd1f1a81ce3a39334356577df | {
"blob_id": "3a3db446a5f190ebd1f1a81ce3a39334356577df",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-18T08:03:55",
"content_id": "99d6fbdde80e194ec7a2b7081eb629cfe028dadc",
"detected_licenses": [
"MIT"
],
"directory_id": "5b9759797c57a43a8b31122023ab5605220f9c66",
"extension": "c"... | stackv2 | /*
* Common bugs 03
* Easy: a blank after each number...
* or maybe not...
*/
#include <stdio.h>
int main()
{
int i;
for (i = 0; i < 10; i++)
printf("%d", i);
printf(" ");
return 0;
}
| 3.046875 | 3 |
2024-11-18T22:53:06.485277+00:00 | 2019-05-09T18:31:07 | 1a9a81461ab48e751af960af7f425dd75cb6cdb4 | {
"blob_id": "1a9a81461ab48e751af960af7f425dd75cb6cdb4",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-09T18:31:27",
"content_id": "af307236435336f00ca1b13cf4a57524a9d28a99",
"detected_licenses": [
"MIT"
],
"directory_id": "154e4327465d4ca7f33aa07bb60698e19f46a4be",
"extension": "h"... | stackv2 | //
// This is the main include file for the gcode library
// It parses and executes G-code functions
//
// gcode.h
//
#ifndef GCODE_H
#define GCODE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdarg.h>
#ifndef NRF51
// G-code debug print
unsigned int debug(const char *f... | 2.109375 | 2 |
2024-11-18T22:53:06.777291+00:00 | 2018-05-03T20:06:08 | dc8910bad874a0b1584ad1c84db087763f998aae | {
"blob_id": "dc8910bad874a0b1584ad1c84db087763f998aae",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-03T20:25:42",
"content_id": "889fc58bf96f2011049b0482b8c774f386f94d08",
"detected_licenses": [
"MIT"
],
"directory_id": "74d8a321cdeb8fcab54370feccd7b5145b515256",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include "utils.h"
ssize_t safe_read(int fildes, void *buf, size_t nbyte) {
ssize_t read_bytes;
while(1) {
read_bytes = read(fildes, buf, nbyte);
if(read_bytes < 0 && errno == EINTR)
continue;
return read_bytes;
... | 2.71875 | 3 |
2024-11-18T22:53:08.933634+00:00 | 2022-06-17T02:50:03 | f729f9d710a068db62e9ba34469157c644c4f24a | {
"blob_id": "f729f9d710a068db62e9ba34469157c644c4f24a",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-17T02:50:03",
"content_id": "6c7b690e5ede55cba0493d8589ba1ad8806e8fde",
"detected_licenses": [
"MIT"
],
"directory_id": "8cfa5dbe99dd5b2c8913e35a41395c64b1ea2740",
"extension": "c"... | stackv2 | //
// Decimal to Binary
// Converts decimal to binary.
//
// The All ▲lgorithms Project
//
// https://allalgorithms.com/
// https://github.com/allalgorithms/cpp
//
// Contributed by: Hiyabye
// Github: @Hiyabye
//
#include <stdio.h>
int calculate_power(int base, int power)
{
int i, result = 1;
for (i=0; i<power; i... | 3.546875 | 4 |
2024-11-18T22:53:09.324458+00:00 | 2019-10-05T12:50:46 | 5a4b5863f4b04047f00a0e8d57df73822468e51e | {
"blob_id": "5a4b5863f4b04047f00a0e8d57df73822468e51e",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-05T12:50:46",
"content_id": "25c540871735e228acd4873322f2eb2270fb98d2",
"detected_licenses": [
"MIT"
],
"directory_id": "4d269bd97028ea5d6cc702c76e9f7e39284406df",
"extension": "c"... | stackv2 |
//*****************************************************************************
//
// controller.c - Complementary filter algorithm on a Direction Cosine Matrix for
// fusing sensor data from an accelerometer, gyroscope, and
// magnetometer.
//
//
//*******************************************... | 2.140625 | 2 |
2024-11-18T22:53:09.417848+00:00 | 2019-06-14T07:36:15 | 475878562d34dedbbd04375d27b6d0196065f8e7 | {
"blob_id": "475878562d34dedbbd04375d27b6d0196065f8e7",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-14T07:36:15",
"content_id": "f311f47ee192c9625e0390088682f7762a85d45b",
"detected_licenses": [
"MIT"
],
"directory_id": "59a66f6837b8dc93420fe3eac6f80eedcb7a066f",
"extension": "c"... | stackv2 | /*
* File: main.c
* Author: Sander
*
* Created on 22 maggio 2019, 15.00
*/
#pragma config FPLLIDIV = DIV_2 // PLL Input Divider (1x Divider)
#pragma config FPLLMUL = MUL_20 // PLL Multiplier (24x Multiplier)
#pragma config UPLLIDIV = DIV_2 // USB PLL Input Divider (12x Divider)
#pragma config UPLLEN = OFF //... | 2.109375 | 2 |
2024-11-18T22:53:09.497854+00:00 | 2020-12-18T02:35:59 | 279075549673b2b3c69e3784e6064ae629c0c3b0 | {
"blob_id": "279075549673b2b3c69e3784e6064ae629c0c3b0",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-18T02:35:59",
"content_id": "cf757dbbbb1f32b84500803f79d81f4e65d17dfc",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f1366d86c22d40365e4a49db33fa766a0085ed2e",
"extensio... | stackv2 | /*
* Copyright (c) 2020, Cisco Systems, Inc.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://github.com/cisco/openosc/LICENSE
*/
//#include "../i... | 2.78125 | 3 |
2024-11-18T22:53:09.742126+00:00 | 2017-02-14T10:57:00 | 4229246941a8eeb0ae1be69bf80f78bef9e4e5ca | {
"blob_id": "4229246941a8eeb0ae1be69bf80f78bef9e4e5ca",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-14T10:57:00",
"content_id": "28217b0fe0b207d580d0b0d848f7ad468b08d45e",
"detected_licenses": [
"MIT"
],
"directory_id": "f2ff7691a8909d654a38e2fbbf445c8b54fac25c",
"extension": "h"... | stackv2 | #ifndef OSCLIST_H
#define OSCLIST_H
#include "oscillator.h"
typedef struct oscListElm {
oscillator* osc;
struct oscListElm* next;
} oscListElm;
typedef struct oscList {
oscListElm* head;
int length;
} oscList;
/* Creates/init a new list */
oscList* createOscList();
/* Add one oscillator */
void add... | 2.0625 | 2 |
2024-11-18T22:53:09.859162+00:00 | 2023-06-19T14:58:55 | 52ae344f30d90cf2b21f4ee71043c5a08dd9e938 | {
"blob_id": "52ae344f30d90cf2b21f4ee71043c5a08dd9e938",
"branch_name": "refs/heads/develop",
"committer_date": "2023-06-19T14:58:55",
"content_id": "3bab1488c5a9e4878c3177c7d83818f48c9f3b76",
"detected_licenses": [
"Unlicense"
],
"directory_id": "70cca37034c28d191d29e692c6de7643ad77b576",
"extensio... | stackv2 | /* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
/* SPDX-License-Identifier: Unlicense */
#include <tfm_private.h>
/* c = (a, b) */
void fp_gcd(fp_int *a, fp_int *b, fp_int *c)
{
fp_int u, v, r;
/* either zero than gcd is the largest */
if (fp_iszero (a) == 1 && fp_iszero (b) == 0) {
fp_... | 2.96875 | 3 |
2024-11-18T22:53:10.889438+00:00 | 2021-06-18T15:55:22 | cb39b54a14db365e763929ae0df25fde181bf499 | {
"blob_id": "cb39b54a14db365e763929ae0df25fde181bf499",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-18T15:55:22",
"content_id": "e975b5236c914910bc5e697105309a70d40c23aa",
"detected_licenses": [
"MIT"
],
"directory_id": "130b341c0cba330f683d8ea6162091ed3c2f529b",
"extension": "c"... | stackv2 | /******************************************************************************
* File Name : sdadc_discovery.c
* Date First Issued : 01/20/2015
* Board : Discovery F3 w F373 processor
* Description : Initial shakeout of SDADC usage
*********************************************************... | 2.015625 | 2 |
2024-11-18T22:53:11.241310+00:00 | 2017-09-15T16:41:00 | 4e63227c2b6b01c7f9cb6fb9708f5789757f738c | {
"blob_id": "4e63227c2b6b01c7f9cb6fb9708f5789757f738c",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-15T16:41:00",
"content_id": "a45487f9cff1318bf201deaf3878a18cf4b19ddf",
"detected_licenses": [
"MIT"
],
"directory_id": "8f915e1eccee7486290fae07d78f2151ce4add42",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include "structs_and_consts.h"
#include "instruction_lookup.h"
// Credits to http://fms.komkon.org/comp/CPUs/8080.txt for
// list of instruction types
// Credits to http://altairclone.com/downloads/manuals/8080%20Programmers%20Manual.pdf
/... | 2.484375 | 2 |
2024-11-18T22:53:11.451354+00:00 | 2022-12-06T10:30:56 | 451f1998d66c2cdcad88f8fcd9adce379809e60f | {
"blob_id": "451f1998d66c2cdcad88f8fcd9adce379809e60f",
"branch_name": "refs/heads/release/v4.2",
"committer_date": "2022-12-06T10:33:43",
"content_id": "92f2f038a97c4e3128f81301c1b8c6d801d7757c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "aa48b3e1905fadca72653e60cb1ad758fad7c1d4",
"ex... | stackv2 | /* Example test application for testable component.
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or impl... | 2.5625 | 3 |
2024-11-18T22:53:13.176981+00:00 | 2017-05-28T18:38:51 | 70abf5f3adb10937e0f37c9a4f19643ea65580da | {
"blob_id": "70abf5f3adb10937e0f37c9a4f19643ea65580da",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-28T18:38:51",
"content_id": "86a1c2b2da2d7fb1b27331686677e712a986a8b6",
"detected_licenses": [
"MIT"
],
"directory_id": "f7a938e177d4208415d44cb2bae4ca2bbbecbb55",
"extension": "h"... | stackv2 | #ifndef SCHEDULE_H
#define SCHEDULE_H
#include "macros.h"
#include "list.h"
struct thread_info;
/* ---------------- Do NOT Touch -------------- */
/* Sleep Types */
enum sleep_type
{
SLEEP_NORMAL,
SLEEP_NONINTERACTIVE,
SLEEP_INTERACTIVE,
SLEEP_INTERRUPTED
};
/* task_struct */
struct task_struct
{
struct thread... | 2.3125 | 2 |
2024-11-18T22:53:15.713482+00:00 | 2016-02-07T00:25:52 | 02e410068362d64eac763ffb67021f775a56d922 | {
"blob_id": "02e410068362d64eac763ffb67021f775a56d922",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-07T00:25:52",
"content_id": "b5bacc7332b6893f1b94a8dc58afb13860402e9b",
"detected_licenses": [
"MIT"
],
"directory_id": "e0dde7623173ceddc45d3d10458bebe8c214756e",
"extension": "h"... | stackv2 | #ifndef PS2_H
#define PS2_H
typedef char int8;
typedef short int16;
typedef int int32;
typedef long int64;
typedef int int128 __attribute__ ((mode (TI)));
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned int uint32;
typedef unsigned long uint64;
typedef unsigned int uint128 __attribute__ (... | 2.0625 | 2 |
2024-11-18T22:53:16.099290+00:00 | 2022-06-10T15:56:07 | d75a32a77fd0442653018e09b3ad42df92d5c0ac | {
"blob_id": "d75a32a77fd0442653018e09b3ad42df92d5c0ac",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-10T15:56:07",
"content_id": "f7380aefb914a391aa04fc1ff21922621d562049",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "cf408febccd4889958fc42107d064afac5056017",
"extensio... | stackv2 | #include<stdio.h>
unsigned long getFibonacciPosition(int pos);
int main(int argc, char const *argv[])
{
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
int p;
unsigned long fibNumber;
scanf("%d", &p);
fibNumber = getFibonacciPosition(p);
printf("%lu", fibNumber);
r... | 3.65625 | 4 |
2024-11-18T22:53:16.188868+00:00 | 2016-10-27T14:35:34 | 077863270b2032457df4e63b5a9b9953d7dc9910 | {
"blob_id": "077863270b2032457df4e63b5a9b9953d7dc9910",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-27T14:35:34",
"content_id": "ef3783b1e6ca31a4fff1c7fd114e5b7af8133e51",
"detected_licenses": [
"MIT"
],
"directory_id": "1a859d02b5342db778346de8977683b9aa8baad4",
"extension": "c"... | stackv2 | #include<stdio.h>
/*Program to generate hash from different parts of audio and image byte array generated*/
int main()
{
int i,n;
char name[100];
FILE *fp;
for(i=0;i<10;i++)
{
/*Choose which audio byte file to hash based on the status of CPU*/
fp = fopen("/proc/stat","r");
... | 2.4375 | 2 |
2024-11-18T22:53:16.556243+00:00 | 2019-12-11T09:33:32 | 49d4cff1a5f86f6620141a6b5f4d2450b13f9cbd | {
"blob_id": "49d4cff1a5f86f6620141a6b5f4d2450b13f9cbd",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-11T09:33:32",
"content_id": "debb2d8fdbbea60daaef04f4d5cef98912c4aaf4",
"detected_licenses": [
"MIT"
],
"directory_id": "1524f0d882328c16b033a2a9cf641906f3b95ac9",
"extension": "c"... | stackv2 | /*MIT License
Copyright (c) 2019 DoHelloWorld
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | 2.015625 | 2 |
2024-11-18T22:53:17.050035+00:00 | 2022-12-12T23:32:11 | de04a65a1c00af57108b62ffa7f9cebfed93719f | {
"blob_id": "de04a65a1c00af57108b62ffa7f9cebfed93719f",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-12T23:32:11",
"content_id": "8a8bafac6838a44f9f8d46d60e31fdf27d51e599",
"detected_licenses": [
"MIT"
],
"directory_id": "802d4ff6dcf3214fd01d637fd29f2d05e2f81b40",
"extension": "cp... | stackv2 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*=====================================================================
**
** Source: SetFileAttributesW.c
**
** Pu... | 2.53125 | 3 |
2024-11-18T22:53:17.669098+00:00 | 2019-01-08T09:11:47 | c66551b410ae7df0672aeb9436d047a8be3a837f | {
"blob_id": "c66551b410ae7df0672aeb9436d047a8be3a837f",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-08T09:11:47",
"content_id": "b54032a117257ea877b769307411b3a9955ced6c",
"detected_licenses": [
"MIT"
],
"directory_id": "e40003253b3108ce10fa1407cadca8e0bc4eac7e",
"extension": "c"... | stackv2 | /*
Name: Joel v
Kieran K
Module: Events
*/
#include "events.h"
/*
Name: doArshRun
Purpose: performs 1 frame of the arsh run action
Input: arsh - the structure containing all player entity data, type Arsh*
Output: arsh - the structure containing all player entity data, type Arsh*
*/
void doArshRu... | 2.375 | 2 |
2024-11-18T22:53:17.890192+00:00 | 2021-10-18T05:18:35 | 558a5aefd0bbce6980a8609dffdacc527e036e7b | {
"blob_id": "558a5aefd0bbce6980a8609dffdacc527e036e7b",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-18T05:58:42",
"content_id": "aeec842ecb4e73dd622d6a625221e10b79f3c756",
"detected_licenses": [
"MIT"
],
"directory_id": "31f1452e40e3b033a88ff014b8b101e8d4bf5678",
"extension": "c",
... | stackv2 |
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "internal.h"
#include <clist/list-item.h>
ClistItem *clist_item_new(void *data, size_t size, ClistCompareCallback comparer) {
return clist_item_new_transient(data, size, comparer, malloc, free, memmove);
}
ClistItem *clist_item_new_static(void... | 2.84375 | 3 |
2024-11-18T22:53:17.985627+00:00 | 2017-09-07T06:12:01 | 42796bcce60dfe4744f435359a1a477e0eeb3dd4 | {
"blob_id": "42796bcce60dfe4744f435359a1a477e0eeb3dd4",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-07T06:12:01",
"content_id": "6e6fd06315327e6e58e01cb159ce10f5fc96c6b0",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "c45e8dd08d808093c8b75874d865b9d1... | stackv2 | /*
* _LOAD_FE_C_
*
* HMCSIM LOADER TEST FOR ALL FULL/EMPTY CMC OPS
*
* Attempts to initialize a HMC instantiation with all FE ops
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "hmc_sim.h"
/* ----------------------------------------------------- MAIN */
/*
* MA... | 2.53125 | 3 |
2024-11-18T22:53:18.197194+00:00 | 2020-07-27T11:57:34 | 89447cf9c8d204e463dab2410952b5b30c83e774 | {
"blob_id": "89447cf9c8d204e463dab2410952b5b30c83e774",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-27T11:57:34",
"content_id": "11f74126be4433448cbcaf347b29ebff5d4971f1",
"detected_licenses": [
"MIT"
],
"directory_id": "d1eb0cfe348f588a2c6a573ee27f251433cc9fba",
"extension": "c"... | stackv2 | #include "cd.h"
int changedir(char* str)
{
/* int changedir(char* str)
parameter char* str: the path of the directory you want to swtich to.
If it fails, it will output message "cd fail"*/
int ret=0;
char* dir=str;
ret=chdir(str);
if (ret==-1)
{
printf("cd failed\n");
... | 2.625 | 3 |
2024-11-18T22:53:18.772505+00:00 | 2014-11-28T17:08:13 | 45c5531e8326f0fd232074feeb01fd1114ff56e7 | {
"blob_id": "45c5531e8326f0fd232074feeb01fd1114ff56e7",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-28T17:08:13",
"content_id": "3f6a8b2fb6f5f1bb494513c56ef8f39b64991ea7",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "aae1198c2873cfe150d0fad3f0b9c22b9e99d22b",
"extens... | stackv2 | /*
** Copyright (c) 2008 D. Richard Hipp
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the Simplified BSD License (also
** known as the "2-Clause License" or "FreeBSD License".)
** This program is distributed in the hope that it will be useful,
** but without any w... | 2.234375 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.