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-19T01:37:36.615812+00:00 | 2022-07-14T15:39:12 | 70e9552755a32e4a3a7e477a62db258aebd271bb | {
"blob_id": "70e9552755a32e4a3a7e477a62db258aebd271bb",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-14T15:39:12",
"content_id": "151221936045c2ec8ca599b25c9067363ef82bbb",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "18f0ade48f1ad7c4ff13c953e7031ae06a5c83d4",
"extens... | stackv2 | #include "ho_mem.h"
#define HO_MIN(x, y) ((x) > (y) ? (y) : (x))
int mem_read(int *muse, int msize, char *m, void *buf, size_t count) {
int cur_len;
if (msize == 0)
return -1;
if (*muse >= msize)
return -1;
cur_len = HO_MIN(msize - *muse, count);
memcpy(buf, m + *muse, cur_len);... | 2.796875 | 3 |
2024-11-19T01:37:36.832443+00:00 | 2020-01-03T03:00:09 | cc9b8d5b0a5acf25e60d4d91aeeedc73842705db | {
"blob_id": "cc9b8d5b0a5acf25e60d4d91aeeedc73842705db",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-03T03:00:09",
"content_id": "53a83930f7269f0e5a57beb02c859eac183efd47",
"detected_licenses": [
"MIT"
],
"directory_id": "0560674ddb5a4632ab4254e1cb1854ac70ae6ae0",
"extension": "h"... | stackv2 | /**
* @file System_Re.h
* @brief ロータリーエンコーダ定義ヘッダ
* @author kotatuneco
* @date 2019/11/25
*/
#ifndef _SYSTEM_RE_H_
#define _SYSTEM_RE_H_
#include "System.h"
/* DECLARATIONS ***************************************************************/
#define USE_RE 1
#if USE_RE
#define RE_ASGN_SIGNAL_A (4)
#define RE_A... | 2.3125 | 2 |
2024-11-19T01:37:37.528371+00:00 | 2016-03-25T20:42:03 | 94aa315250b886d24a02db847ef0fae1dde1fc40 | {
"blob_id": "94aa315250b886d24a02db847ef0fae1dde1fc40",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-25T20:42:03",
"content_id": "79fd8495eb12b3fe0114962ca3ae9a3580f85b7f",
"detected_licenses": [
"MIT"
],
"directory_id": "b0b17962f18f26676efcc4e7fcfd7a556565bc43",
"extension": "h"... | stackv2 | #ifndef config_h
#define config_h
#include "Pixels.h"
#define CONFIGVERSION 6
void closeAllConnections();
void sendconfig();
boolean checkRange(String Value);
void setDefaultConfig();
bool getTle(int ide, bool forceupdate);
//////////////////////////
// Config definition //
//////////////////////////
struct Co... | 2 | 2 |
2024-11-19T01:37:38.206314+00:00 | 2021-10-17T01:31:27 | 001724dee80a9f03ad5145689b7a4a103c24821b | {
"blob_id": "001724dee80a9f03ad5145689b7a4a103c24821b",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-17T01:31:27",
"content_id": "0853a4e9b58ae29dfa4931007b95dacfc3a00505",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "32e48bb5c7b9714e25bc9312f185a85e02338cc5",
"extens... | stackv2 | #include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <stdio.h>
int main(int argc, char** argv)
{
if (argc < 3)
{
printf("usage: chown [user]:[group] <file>\n");
return -1;
}
uid_t uid = -1;
gid_t gid = -1;
char* saveptr;
// TODO: temp
... | 2.71875 | 3 |
2024-11-19T01:37:38.496375+00:00 | 2023-08-18T12:54:06 | cb9855c6c0438d10995e28079f9f564cd517391e | {
"blob_id": "cb9855c6c0438d10995e28079f9f564cd517391e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T12:54:06",
"content_id": "8cfae47364de74a0ca4f0446253ca624bbac630b",
"detected_licenses": [
"MIT"
],
"directory_id": "22446075c2e71ef96b4a4777fe966714ac96b405",
"extension": "c"... | stackv2 | /****************************************************************************
** Copyright (C) 2020 MikroElektronika d.o.o.
** Contact: https://www.mikroe.com/contact
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"... | 2.046875 | 2 |
2024-11-19T01:37:40.279687+00:00 | 2018-05-22T15:33:45 | 9827524f34da15d2c8bea5737e6fe13b778be62b | {
"blob_id": "9827524f34da15d2c8bea5737e6fe13b778be62b",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-22T15:33:45",
"content_id": "08238cff9a3ab139bb801eb2a07a58f56db5c41c",
"detected_licenses": [
"ISC"
],
"directory_id": "7defc649cef68003843aabf81d2a5872652a6c37",
"extension": "c"... | stackv2 | #include <string.h>
#include <errno.h>
#include <sys/iosupport.h>
#include <sys/time.h>
#include <sys/lock.h>
#include <sys/reent.h>
#include "../internal.h"
#include "types.h"
#include "runtime/env.h"
#include "kernel/mutex.h"
#include "services/fatal.h"
#include "services/time.h"
#include "result.h"
void __attribute... | 2.21875 | 2 |
2024-11-19T01:37:40.489227+00:00 | 2021-03-01T16:33:15 | 842dbe857d5433389deefa0b35d57d178abdd69b | {
"blob_id": "842dbe857d5433389deefa0b35d57d178abdd69b",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-01T16:33:15",
"content_id": "17d4cfc4323366e878c8df2480b7ce6fcd54d220",
"detected_licenses": [
"MIT"
],
"directory_id": "f6243f9d56fbf63ca6bc77f9848dfc88aa1dc093",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "debug_macros.h"
#include "tensor.h"
#include "cost.h"
#include "ce_cost.h"
#include "probe.h"
#include "opt_alg.h"
#include "const.h"
struct CECost
{
struct Cost base;
struct Tensor *p; // batch个样本的分类概率向量组成的矩阵, 在首次运行时动态创建,不会重复创建
};
int crea... | 2.453125 | 2 |
2024-11-19T01:37:40.543958+00:00 | 2017-06-04T20:47:36 | 18c745193581dd07443eb757de2d3896a06e84d0 | {
"blob_id": "18c745193581dd07443eb757de2d3896a06e84d0",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-04T20:47:36",
"content_id": "c62ce696c55a4b85e0558ac07afcaf4eedfabbd8",
"detected_licenses": [
"MIT"
],
"directory_id": "9e6919a894b737d25b227e8bda1fd18b729f8c95",
"extension": "c"... | stackv2 | /**
* @file convert.c
* @brief Convertion operations library source.
* @authors Ismael Coelho Medeiros (14/0083162)
*
* This file contains all the function source codes which has the
* signatures declared on the convert.h file.
*/
#include <stdio.h>
#include <stdint.h>
#include "mem-manager.h"
uint16_t smallEnd... | 3.0625 | 3 |
2024-11-19T01:37:40.645326+00:00 | 2023-08-25T19:44:29 | 99878a1c615b32e99150a8769ca512e0da6acd6e | {
"blob_id": "99878a1c615b32e99150a8769ca512e0da6acd6e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-25T19:44:29",
"content_id": "f4dc57453e746bcb3fb30e5b812cb8694d7234ff",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a4b5d07647547513fbe47f4fd0f8badf08311d72",
"extensio... | stackv2 | /*****************************************************************************
* Name: alarmclock.c
*
* Summary: Alarm clock. Pass hour/min to go off. Good demo of using time
* under C. Assumes "beep" exists on the system.
*
* Cheap alternative: sleep `echo '60*2'|bc` && beep
*
* Ad... | 2.796875 | 3 |
2024-11-19T01:37:40.804509+00:00 | 2015-12-13T16:41:36 | 4470014de7384cf42ff2cedeb13a4c31b5e6e446 | {
"blob_id": "4470014de7384cf42ff2cedeb13a4c31b5e6e446",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-13T16:41:36",
"content_id": "5b7cfe4b0834fa697a068a7f2c0a4813246d7974",
"detected_licenses": [
"MIT"
],
"directory_id": "b547aba5b9cad977865738924d41a81464c9faa8",
"extension": "c"... | stackv2 | #include "timeo.h"
//static int LOGFILE;
void initializeTimeout(Timeout *timeout, const long double sampleRTT) {
//char LOG[300];
pthread_rwlock_init(&(timeout->rwlock), NULL);
timeout->extRTT = sampleRTT;
timeout->devRTT = 0.0;
timeout->value = sampleRTT;
/*errno = 0;
if ((LOGFILE = open("../docs/prof/TI... | 2.53125 | 3 |
2024-11-19T01:37:40.963509+00:00 | 2016-06-03T19:07:23 | c8e1a09c6e3028947d001286dfd6bf7e99c67f14 | {
"blob_id": "c8e1a09c6e3028947d001286dfd6bf7e99c67f14",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-03T19:07:23",
"content_id": "6eef9219d1301c3eb0eebde1faed5b2d0e7293de",
"detected_licenses": [
"MIT"
],
"directory_id": "fe84d2398458e1b52c50e919753aac5f0998d869",
"extension": "c"... | stackv2 | #include "types.h"
#include "user.h"
#include "semaphore.h"
//Semaphore for boat crossing
struct Semaphore *boat = 0;
//Semaphore for clean printing
struct Semaphore *p = 0;
struct Semaphore *d = 0;
//Int used in creating threads
int arg = 10;
int crossing = 0;
int crossed = 0;
int pass = 0;
int missi = 0;
int canni =... | 2.890625 | 3 |
2024-11-19T01:37:41.522267+00:00 | 2020-11-30T17:11:16 | 067ea07a597580e61426a6e6456ca96e2e08808f | {
"blob_id": "067ea07a597580e61426a6e6456ca96e2e08808f",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-30T17:11:16",
"content_id": "2c022bad62b4e0920a57cd15f64396d33b02bc45",
"detected_licenses": [
"MIT"
],
"directory_id": "09027f3be85dd4d849ed8f0cb88653e998a17a1a",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
void display_help();
int main(int argc, char *argv[]){
char* root_filename = NULL;
char* output_filename_format = NULL;
char* output_filename_prefix = "wav_";
static struct option long_options[] = {
... | 2.640625 | 3 |
2024-11-19T01:37:41.605233+00:00 | 2020-05-01T10:28:25 | 09de2ede4fbb90cd94b7f064c1db1cc3ddbd86e8 | {
"blob_id": "09de2ede4fbb90cd94b7f064c1db1cc3ddbd86e8",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-01T10:28:25",
"content_id": "6769a131297037312849452fde5934abe137032e",
"detected_licenses": [
"MIT"
],
"directory_id": "866fcf8089f6c44f2967ada6d460738a1ecafedc",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <math.h>
double series1(int limit);
double series2(int limit);
int main(void)
{
int limit;
printf("Enter the number of terms to sum: ");
scanf("%d", &limit);
while (limit > 0) {
printf("The sum of 1.0 + 1.0/2.0 + 1.0/3.0 + 1.0/4.0 + ... ");
... | 3.8125 | 4 |
2024-11-19T01:37:42.074467+00:00 | 2019-09-24T09:05:44 | 31e7a34655ea30176aedbc8ed23c34f33326f671 | {
"blob_id": "31e7a34655ea30176aedbc8ed23c34f33326f671",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-24T09:05:44",
"content_id": "e3510d86bdc4087f931e0e56fb4f8d6dde715697",
"detected_licenses": [
"MIT"
],
"directory_id": "dec90e41b66ec4c354833f6f0287ce7cfdc2fd46",
"extension": "h"... | stackv2 | #pragma once
#include <EEPROM.h>
#include "ArduinoJson-v5.13.2.h"
#define EEPROM_SIZE 2000
#define SETTINGS_EEPROM_OFFSET 0
int updateChecksum(int checksum, unsigned char* base, int length)
{
for (int i = 0; i < length; i++)
{
checksum += *base;
base++;
}
return checksum;
}
#define CHECK_1 0xAB
#define CHEC... | 2.5625 | 3 |
2024-11-19T01:37:42.247687+00:00 | 2023-08-29T06:43:16 | 2ad490bb8ac5d10c223d260ca0683e4118078904 | {
"blob_id": "2ad490bb8ac5d10c223d260ca0683e4118078904",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-29T14:01:02",
"content_id": "59f4587390226c288d28c22d6de3b39d54eaa9b0",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "a65e2aac013b48ddfe5d6a7d108c2b84855d... | stackv2 | /****************************************************************************
* boot/nuttx/src/watchdog/watchdog.c
*
* Copyright (c) 2021 Espressif Systems (Shanghai) Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 2.109375 | 2 |
2024-11-19T01:37:42.406292+00:00 | 2014-08-18T14:54:55 | 8ddd3afac7d76ffe987643dff9a005f271c9f596 | {
"blob_id": "8ddd3afac7d76ffe987643dff9a005f271c9f596",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-18T14:54:55",
"content_id": "82c6aca2d8f5ce1658906d8f8e2d97e97677220a",
"detected_licenses": [
"Zlib"
],
"directory_id": "1c55fa881fff9fb47af0464e978c6f2881a324f1",
"extension": "c... | stackv2 | #include <ax/file.h>
#include <string.h>
// ---------------------------------------------------------------------------
/** Read from a string streaming */
static int _sread(FILE *restrict fp, char* restrict buf, size_t length)
{
size_t lg = MIN (length, fp->rend_ - fp->rpos_);
memcpy (buf, fp->rpos_, lg);
fp->r... | 2.515625 | 3 |
2024-11-19T01:37:42.928918+00:00 | 2014-09-26T23:18:01 | 7ca60317ef789421fa42262cf1774f426f916379 | {
"blob_id": "7ca60317ef789421fa42262cf1774f426f916379",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-26T23:18:01",
"content_id": "399f27fcacd7e1b266463c9be295cb296dbc8c83",
"detected_licenses": [
"MIT"
],
"directory_id": "4c1db506c7f6f52f3d02a4fb40a966507de730a6",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <time.h>
#define MAX_ELEM 16
#define TAM_MAX 64
#define NUM_OPER 32
// ---------
#define malloc meuAlocaMem
#define free meuLiberaMem
#define calloc meuCalocaMem
#define realloc meuRealocaMem
// ---------
extern void *malloc (int);
extern void *calloc (int, ... | 3.328125 | 3 |
2024-11-19T01:37:43.491136+00:00 | 2020-11-27T08:18:22 | 42c67d60df56dc5b028a9337932b7f27cf307917 | {
"blob_id": "42c67d60df56dc5b028a9337932b7f27cf307917",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-27T08:18:22",
"content_id": "c9af4d6d743a7df8d71ba044a155072f94d772cc",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ea508c55e951f23ec2f4f5ff35b193d9f30a989a",
"extensio... | stackv2 | #include "hang_protection.h"
#include <logging/logging.h>
#include <probengine/prober.h>
#include "workspace.h"
#include "threading_follow.h"
#ifdef _WIN32
#include <Windows.h>
static PVOID s_ProcessHeap = NULL;
/* StackWalk64 can allocate/free memory on ProcessHeap using RtlAllocateHeap / RtlFreeHeap.
At the s... | 2.078125 | 2 |
2024-11-19T01:37:43.658234+00:00 | 2020-07-02T13:00:02 | 3c3d22d2645376a3dacf291cfa5d281a809e0e65 | {
"blob_id": "3c3d22d2645376a3dacf291cfa5d281a809e0e65",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-02T13:00:02",
"content_id": "124a9ae02cf83676a30d28113ea53b8dccf397e7",
"detected_licenses": [
"MIT"
],
"directory_id": "000fede13d1db153b37cac3beb6e81341a9c039b",
"extension": "c"... | stackv2 | #include "generator.h"
/**
* This function checks str is ended with suffix or not
*
* @param str is the main string that should be checked at the end
* @param suffix is string that should be checked with the end of main string
*
* @return integer 0 if str ends with the given suffix otherwise returns 1
*
*/
... | 2.765625 | 3 |
2024-11-19T01:37:43.887135+00:00 | 2023-06-02T13:46:19 | 3c93fa1fbf115515f5e1313b315ae7219e5bbe3f | {
"blob_id": "3c93fa1fbf115515f5e1313b315ae7219e5bbe3f",
"branch_name": "refs/heads/3.16.0-stm32mp",
"committer_date": "2023-07-28T12:39:20",
"content_id": "303b044d4cc5edc17f2bd9394f3294095f118058",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a8378f8953015617c24004b33177cdfe45422174",
... | stackv2 | // SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
*/
#include <kernel/panic.h>
#include <kernel/tee_time.h>
#include <string.h>
#include <stdlib.h>
#include <trace.h>
#include <utee_defines.h>
struct tee_ta_time_offs {
TEE_UUID uuid;
TEE_Time offs;
bool posit... | 2.625 | 3 |
2024-11-19T01:37:44.555263+00:00 | 2023-09-04T14:10:51 | d8b87381e399af14c8b91dda00dd03ec474280aa | {
"blob_id": "d8b87381e399af14c8b91dda00dd03ec474280aa",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-04T14:10:51",
"content_id": "bd2c20349dd1127fd44e7ced04621605efd9ab40",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2a3ec4afa3e0c84218958f389b6fc6a7fdf48ba2",
"extensio... | stackv2 | #include "std_lib.h" // needed because printf may be rewritten to call helpers defined here
int printf( const char *restrict format, ... );
void print_board(char board[][10]) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++)
if (board[i][j])
printf("Q ");
else
printf(". ");
print... | 2.5 | 2 |
2024-11-19T01:37:44.626609+00:00 | 2019-04-21T13:42:59 | f01c749c82aad96e552c19749137335efc8573f5 | {
"blob_id": "f01c749c82aad96e552c19749137335efc8573f5",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-21T13:42:59",
"content_id": "f3627a7399f50dfc8c6a0a783d4ef1b1a38080bc",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "89005d930aaf55b448795e35edcc47dbf78c431a",
"extens... | stackv2 | #ifndef _HSTACK_H_
#define _HSTACK_H_
#include "hsynch.h"
#include "config.h"
#include "primitives.h"
#include "rand.h"
#include "pool.h"
#define GUARD INT_MIN
#define PUSH_OP
#define POP_OP INT_MIN
typedef struct Node {
Object val;
volatile struct N... | 2.53125 | 3 |
2024-11-19T01:37:45.042372+00:00 | 2021-07-31T11:32:22 | ea2e368100f5e6ec48d93b24cab35ef4bb48877c | {
"blob_id": "ea2e368100f5e6ec48d93b24cab35ef4bb48877c",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-31T11:32:22",
"content_id": "5f397152cbd6045a50e619762cd9fb7e5af049b3",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "5293419b139cc180bdf8343fb3ad3a443f84f67a",
"extens... | stackv2 | #pragma once
#include "SyslogFacility.h"
#include "SyslogMessageFormat.h"
#include "SyslogSeverity.h"
#include "SyslogTransport.h"
#include <stdbool.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct SyslogClient SyslogClient;
/**
* Creates a syslog client for local syslog deamon.
*/
Sysl... | 2.015625 | 2 |
2024-11-19T01:37:45.178696+00:00 | 2023-06-29T04:26:13 | d9acd27e3dc53c0d1a15988b036939b6ce10b140 | {
"blob_id": "d9acd27e3dc53c0d1a15988b036939b6ce10b140",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-29T04:26:13",
"content_id": "632b5e145ba1bcf88130589f5fa900c3cbbcc552",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "064a4fcb074290b0b89b6b2caff063fc79aed64d",
"extensio... | stackv2 | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: import/chips/p9/common/pmlib/ppc405lib/string_stream.c $ */
/* ... | 2.375 | 2 |
2024-11-19T01:37:48.656211+00:00 | 2023-02-24T02:28:16 | 6e60f63926639d3dadb2aad876e14f812511ffc4 | {
"blob_id": "6e60f63926639d3dadb2aad876e14f812511ffc4",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-24T02:28:16",
"content_id": "c8425547bc68659c37019026ad301b778ee67e6c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bc806f3985dbadc0712dbba49bd0f12291648140",
"extens... | stackv2 | /**
* @file hash.c
* @author Xiyu Peng
* implemention of hash table for DNA sequences
*/
#include <string.h>
#include <stddef.h>
#include <stdlib.h>
#include "uthash.h"
#include "hash.h"
#include "error.h"
/**
* Build hash table for sequences.
*
* @param seq_count hash table
* @param seq sequence to add
* ... | 2.90625 | 3 |
2024-11-19T01:37:48.780317+00:00 | 2015-07-02T05:33:14 | 93b3105cf2ca467e4ce50913b7dbf8b8be4450c0 | {
"blob_id": "93b3105cf2ca467e4ce50913b7dbf8b8be4450c0",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-02T05:33:14",
"content_id": "6d5115a7e6b4af99e52c723aa2629ae4ef5897b0",
"detected_licenses": [
"BSD-4-Clause-UC"
],
"directory_id": "edf20ceb4b41f8b6bd0fcadba354bebf950e1fdf",
"ext... | stackv2 | #ifndef ROS_INC_TIMER_H
#define ROS_INC_TIMER_H
#include <pool.h>
#include <string.h>
#define TIMER_TAG_SIZE 20
#define MAX_TIMERS 20
/* start_timing()
* This function simply reads the tsc in a serialized fashion and returns its
* value. It is pusposefully annotated with a noinline so that the overheads
* assoc... | 2.234375 | 2 |
2024-11-19T01:37:49.136475+00:00 | 2018-03-21T17:59:39 | 7bca400082dbaa304c002e65abc3ca568678cf62 | {
"blob_id": "7bca400082dbaa304c002e65abc3ca568678cf62",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-21T17:59:39",
"content_id": "b01c3c0f0e0e86f39e2b7e4b8c06011a4657dff1",
"detected_licenses": [
"MIT"
],
"directory_id": "29788afe99a19a503a6675d9f868903577fff1be",
"extension": "c"... | stackv2 | /* -*- tab-width : 2 -*- */
#include "opt.h"
#ifndef HAVE_WINDOWS_H
char* homedir(void) {
char* user=getenv("SUDO_USER");
struct passwd *pwd= getpwuid(getuid());
if(user && getuid()==0)
pwd=getpwnam(user);
return pwd?q_(pwd->pw_dir):NULL;
}
char* truename(const char* path) {
char* ret=realpath(path,NULL... | 2.203125 | 2 |
2024-11-19T01:37:49.225381+00:00 | 2015-05-06T09:58:49 | 24637cbf4b7f125e9620ed84655db22ab08fc044 | {
"blob_id": "24637cbf4b7f125e9620ed84655db22ab08fc044",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-06T09:58:49",
"content_id": "34dd02d49a0b3fa5106ec9c478db4ec747aa4c0c",
"detected_licenses": [
"MIT"
],
"directory_id": "85c762d7827ccdbeb4e02d0b8538cce8f243e949",
"extension": "c"... | stackv2 | #include "codegen.h"
void emitUseMacro(CodeGenerator *self, UseMacro *use) {
for (int i = 0; i < use->files->size; i++) {
char *fileName = getVectorItem(use->files, i);
size_t len = strlen(fileName);
char temp[len - 2];
memcpy(temp, &fileName[1], len - 2);
temp[len - 2] = '\0';
emitCode(self, "#include ... | 2.34375 | 2 |
2024-11-19T01:37:49.379290+00:00 | 2019-07-05T06:40:02 | f83b48ff6d857e0ab2e2238063277344eae72d73 | {
"blob_id": "f83b48ff6d857e0ab2e2238063277344eae72d73",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-05T06:40:02",
"content_id": "9e9c2d6bf964a867a2cafff1322a165858850b94",
"detected_licenses": [
"MIT"
],
"directory_id": "b8ec2c11dc98ed8e0e9e3e5aa4cf22959b05eddc",
"extension": "c"... | stackv2 | // Standard library includes.
#include <stdint.h>
#include <stdlib.h>
// Vendor-provided device header file.
#include "stm32g0xx.h"
// 128x64-pixel monochrome framebuffer.
#define SSD1306_W 128
#define SSD1306_H 64
#define SSD1306_A ( SSD1306_W * SSD1306_H ) / 8
uint8_t FRAMEBUFFER[ SSD1306_A ];
// Initialization comm... | 2.125 | 2 |
2024-11-19T01:37:49.791493+00:00 | 2021-08-25T03:58:57 | 4bb054f6d505c503ca9146758f77cda020fc2c9a | {
"blob_id": "4bb054f6d505c503ca9146758f77cda020fc2c9a",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-25T03:58:57",
"content_id": "9fe7cf24b54beacf26b37495f1f7ce85be385957",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "51bd21d875650eeeee5e0d65e8a8509f0e34d27f",
"extens... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "rowOperations.h"
int microRowCursorPosXToRenderPosX(microRow *row, int cursorPosX)
{
int renderPosX = 0;
for (int i = 0; i < cursorPosX; ++i)
{
if (row->chars[i] == '\t')
{
renderPosX += (MICRO_TAB_STOP - 1) -... | 2.90625 | 3 |
2024-11-19T01:37:49.887234+00:00 | 2021-03-04T10:13:23 | e5e903af0f9e41985b8873b0ec8a2daa9fd7414a | {
"blob_id": "e5e903af0f9e41985b8873b0ec8a2daa9fd7414a",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-08T13:14:23",
"content_id": "86ad73f1f47e6dcd99c6664931dd6900b0530815",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "4e124e19470c78c6448dc8f8121d4d3c... | stackv2 | /*
* Phoenix-RTOS
*
* plo - operating system loader
*
* Syspage
*
* Copyright 2020 Phoenix Systems
* Authors: Hubert Buczynski
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include "imxrt.h"
#include "../low.h"
#include "../plostd.h"
#include "../syspage.h"
#define MAX_PROGRAMS_NB 32
... | 2.578125 | 3 |
2024-11-19T01:37:50.070589+00:00 | 2013-11-06T03:39:24 | dfba89cc249b295d575cff8a52c43961c787ee45 | {
"blob_id": "dfba89cc249b295d575cff8a52c43961c787ee45",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-06T03:39:24",
"content_id": "f12b40e59f1aa1d3fd9fa8122d9a67fdf59cc136",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ab3e06a694323cf47d1e646de94e0a852ca6c291",
"extens... | stackv2 | #include "exec_funcs.h"
#include "timer_intern.h"
#define SysBase TimerBase->Timer_SysBase
void timer_BeginIO(TimerBase *TimerBase, struct IORequest *ioreq)
{
UINT8 cmd = ioreq->io_Command;
ioreq->io_Error = 0;
if (cmd > TR_SETSYSTIME || cmd < TR_ADDREQUEST) cmd = 0; // Invalidate the command.
TimerCmdVector[cm... | 2.28125 | 2 |
2024-11-19T01:37:50.181521+00:00 | 2021-03-07T22:18:02 | 715c6c2593470703f34233be118cef5765215e3d | {
"blob_id": "715c6c2593470703f34233be118cef5765215e3d",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-07T22:18:02",
"content_id": "989514ddbf144b04929dd8d664de15ad07a8bd93",
"detected_licenses": [
"MIT"
],
"directory_id": "0eac875f4e4a680430382df8b7d911cc7b21aedb",
"extension": "c"... | stackv2 | #include <windows.h>
#include <strsafe.h>
#include <PathCch.h>
#include "utils.h"
#include "version.h"
void ResizeWindowByClientArea(HWND hwnd, int width, int height) {
UINT dpi = GetDpiForWindow(hwnd);
int w = SCALE(width, dpi) +
(GetSystemMetricsForDpi(SM_CXFRAME, dpi) +
GetSystemMetricsForDpi(SM_CXPADDEDBOR... | 2.265625 | 2 |
2024-11-19T01:37:50.260038+00:00 | 2017-05-20T16:12:21 | d6aec868d93c31e7de7e2bba53a1dc610832fffd | {
"blob_id": "d6aec868d93c31e7de7e2bba53a1dc610832fffd",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-20T16:12:21",
"content_id": "e724dc6170a9d10f360cc2361cef9e6317e7789d",
"detected_licenses": [
"Unlicense"
],
"directory_id": "a4371f52982d30b9729fd902b5c72c715eaa9342",
"extension... | stackv2 | #include "includes\Main.h"
/** Euclidean Algorithm for finding the Greatest Common Denominator */
int getGCD(int m, int n) {
if ((m == 0) || (n == 0))
return 1;
int r = m % n;
while (r != 0) {
m = n;
n = r;
r = m % n;
}
/** GCD should only be negative if both components are negative */
if ((m <... | 3.15625 | 3 |
2024-11-19T01:37:50.406136+00:00 | 2017-03-18T10:48:58 | 1fce859d9848ae1f108b74a9aa9de26414525bdd | {
"blob_id": "1fce859d9848ae1f108b74a9aa9de26414525bdd",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-18T10:48:58",
"content_id": "4f945e6a46343bfa4dec594b2fca77ebe5ecf96f",
"detected_licenses": [
"MIT"
],
"directory_id": "1786a4e55603a891797241475f8aa31e96b0c6cb",
"extension": "c"... | stackv2 | #include <stdio.h>
int main()
{
// We'll be calculating log(x)
double x;
// The number of terms up to which we want to calculate x
int n;
printf("Enter the value of x: ");
scanf("%lf", &x);
printf("Enter the number of terms n: ");
scanf("%d", &n);
// We'll store the logarithm in this
double ans = 0;
do... | 4.03125 | 4 |
2024-11-19T01:37:50.865147+00:00 | 2020-10-26T19:37:45 | dab36656b23e230dd45d67a202057c66fa98c188 | {
"blob_id": "dab36656b23e230dd45d67a202057c66fa98c188",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-26T19:37:45",
"content_id": "da4381ac2337cade7fe556355221104b22a78fe9",
"detected_licenses": [
"MIT"
],
"directory_id": "03027cc6821a6fa80e563e6ef7761f0f38449719",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <conio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <ctype.h>
void lower()
{
char ch;
FILE *fs, *lfs;
fs = fopen("File.txt", "r");
if (fs == NULL)
{
printf("\nCannon Open the FIle...");
exit(1);
}
lfs = fopen("Lower.txt"... | 2.875 | 3 |
2024-11-19T01:37:52.269671+00:00 | 2018-10-13T18:45:56 | 5ec9c272802e10227219964fdc1b3e49b851be12 | {
"blob_id": "5ec9c272802e10227219964fdc1b3e49b851be12",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-13T18:45:56",
"content_id": "683fb2d8f0ce9682d9afd7f01d6129dd2a300a5b",
"detected_licenses": [
"MIT"
],
"directory_id": "c87095bd13b9080224324b3a6dd4fd538912d97e",
"extension": "c"... | stackv2 | /* Done by TheTutor
Okay memory allocation -- This is something you'll do time and time again while
programming.
Every time your vid-console of choice says "Loading..." it's first freeing up all the
memory (RAM) that was previously being used. Then it's allocating enough space to store
all the textures,stats,sc... | 3.578125 | 4 |
2024-11-19T01:37:52.342353+00:00 | 2011-02-10T12:39:06 | 4ee26fc94b158b7a8a0111ec171808aa62647820 | {
"blob_id": "4ee26fc94b158b7a8a0111ec171808aa62647820",
"branch_name": "refs/heads/master",
"committer_date": "2011-02-10T12:39:06",
"content_id": "1f67c08d53fd368d130b3e156e19eefba6166f90",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f6ad34f1eed97340f796ea083a71e6e2d38a3d26",
"extens... | stackv2 | /**
* @file IxEthDBLearning.c
*
* @par
* IXP400 SW Release version 2.1
*
* -- Copyright Notice --
*
* @par
* Copyright (c) 2001-2005, Intel Corporation.
* All rights reserved.
*
* @par
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... | 2.265625 | 2 |
2024-11-19T01:37:52.521049+00:00 | 2021-03-28T17:52:24 | be6e73c0c79c1b770932d08148732791cdc23bf9 | {
"blob_id": "be6e73c0c79c1b770932d08148732791cdc23bf9",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-28T17:52:24",
"content_id": "aa083bcc8023b37c2831c2f84ff806eb16856f85",
"detected_licenses": [
"MIT"
],
"directory_id": "ccaa4470cbd2338f5492be4aca4ebaca793e1dec",
"extension": "c"... | stackv2 | /* find optimized for sh's internal use:
. stops at first match
. returns pointer to string holding match path
*/
#include "kernel/types.h"
#include "kernel/date.h"
#include "kernel/stat.h"
#include "kernel/fcntl.h"
#include "kernel/fs.h"
#include "user.h"
#define SHFIND_DEBUG 1
int stat2 ( char* path, st... | 2.84375 | 3 |
2024-11-19T01:37:52.768817+00:00 | 2015-02-07T12:28:10 | e9860907a9f9e6ffe5e021c22ecc47e06105d5b0 | {
"blob_id": "e9860907a9f9e6ffe5e021c22ecc47e06105d5b0",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-07T12:28:10",
"content_id": "d1234b4df4731a1926cb6d7c8ff3def9bfcde50a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d109c8fd3d22fc7b1e6800efb7d85255f66b10b2",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
typedef struct BinSearchTree
{
int key;
struct BinSearchTree *left;
struct BinSearchTree *right;
} NodeT;
NodeT *root ;
NodeT * Insert_node(NodeT* root ,int key)
{
if(root==NULL)
{
NodeT *temp;
temp = (NodeT *)malloc(sizeof(NodeT));
t... | 3.78125 | 4 |
2024-11-19T01:37:55.032340+00:00 | 2019-01-11T04:21:58 | 4168014e6209ab321de93be86d7a7c5fe981668a | {
"blob_id": "4168014e6209ab321de93be86d7a7c5fe981668a",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-11T04:21:58",
"content_id": "99b8d633a4806214a964371fdd6f5e4a23b6aa8f",
"detected_licenses": [
"MIT"
],
"directory_id": "655174a75ae7ae62373453c3c63e189ffbed62c8",
"extension": "h"... | stackv2 | /*
* File: i2cMorter.h
* Author: blood
*
* Created on 2019/01/01, 21:48
*/
#ifndef I2CMORTER_H
#define I2CMORTER_H
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
// @brief DRV8830 レジスタ01 回転方向 回転数制御
typedef union {
uint8_t byte;
struct {
... | 2.109375 | 2 |
2024-11-19T01:37:55.295747+00:00 | 2020-10-06T22:04:44 | 37143bf752abda9ec4d5d54a43c4ba7686bd6175 | {
"blob_id": "37143bf752abda9ec4d5d54a43c4ba7686bd6175",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-06T22:04:44",
"content_id": "84712b0d58a3ef114e1c303a6f36adae899f3648",
"detected_licenses": [
"BSD-3-Clause-Clear"
],
"directory_id": "233a8c65e2936cb9323802764c62f4c5a1742389",
"... | stackv2 | /*
* Exercise 3-5 from K&R's ANSI C 2nd edition
* found on page 64
* Write a function, itob(n,s,b) that converts integer n
* to a base b character representation in the string s.
* For example, itob(15,s,16) would return F
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* to use some of the custom... | 3.796875 | 4 |
2024-11-19T01:37:55.570027+00:00 | 2019-06-12T17:33:21 | 9cce6050e9b326a6e4561826b9602b3fb51d60a4 | {
"blob_id": "9cce6050e9b326a6e4561826b9602b3fb51d60a4",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-12T17:46:51",
"content_id": "27f2a561f968553fe8b8390701e278aeaef764c2",
"detected_licenses": [
"MIT"
],
"directory_id": "73e5961c9306444baecbdf769410e868d9758623",
"extension": "c"... | stackv2 | #include "xcc.h"
Node *new_node(int ty, Node *lhs, Node *rhs) {
Node *node = malloc(sizeof(Node));
node->ty = ty;
node->lhs = lhs;
node->rhs = rhs;
return node;
}
Node *new_node_num(int val) {
Node *node = malloc(sizeof(Node));
node->ty = ND_NUM;
node->val = val;
return node;
}
Node *new_node_ident... | 2.734375 | 3 |
2024-11-19T01:37:55.674821+00:00 | 2016-12-07T11:02:14 | 0f5cb42cbbfbd5ef215e72942dcbbc5e9fc31208 | {
"blob_id": "0f5cb42cbbfbd5ef215e72942dcbbc5e9fc31208",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-07T11:02:14",
"content_id": "832f465c625427d3f88864e2816b173978e2198d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9b8b16e7713721fd9b18cb081846e2270a958b9d",
"extens... | stackv2 | /*
module : while.c
version : 1.6
date : 10/04/16
*/
#include "interp.h"
/*
while : [B] [D] -> ...
While executing B yields true executes D.
*/
/* while.c */
PRIVATE void while_(void)
{
int num;
Node *prog, *list, *save;
#ifdef ARITY
int d;
#endif
TWOPARAMS("while");
TWOQUOTES(... | 2.234375 | 2 |
2024-11-19T01:37:55.842913+00:00 | 2020-04-21T12:20:36 | 599064f3bf3d178778d4021215f65114bc9002a9 | {
"blob_id": "599064f3bf3d178778d4021215f65114bc9002a9",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-21T12:20:36",
"content_id": "4e871d81fdebaac46f0a655b2a76ab02c2429bbd",
"detected_licenses": [
"MIT"
],
"directory_id": "ff7e77fb0c5a599ed1102f7369bb02ff074c7c03",
"extension": "h"... | stackv2 | #ifndef NOZIP_H
#define NOZIP_H
#include <stdint.h>
#include <stdio.h>
#include <time.h>
typedef struct nozip_t nozip_t;
typedef struct nozip_entry_t nozip_entry_t;
struct nozip_entry_t {
uint64_t uncompressed_size;
uint64_t compressed_size;
uint64_t local_header_offset;
const char *filename;
tim... | 2.109375 | 2 |
2024-11-19T01:37:55.951963+00:00 | 2020-05-04T04:32:25 | a78b75c384f1cba7e82c341d4beb5462635bba42 | {
"blob_id": "a78b75c384f1cba7e82c341d4beb5462635bba42",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-04T04:32:25",
"content_id": "807ef9b02901856c3b33e780f7485a1f9d479a68",
"detected_licenses": [
"MIT"
],
"directory_id": "1929c33f96719af6ce62da7d76e5cba6d361eea8",
"extension": "c"... | stackv2 | /*
Descrição
Durante anos, todos os contratos da Associação de Contratos da Modernolândia (ACM) foram datilografados em uma velha máquina de datilografia.
Recentemente Sr. Miranda, um dos contadores da ACM, percebeu que a máquina apresentava falha em um, e apenas um, dos dígitos numéricos. Mais
especificamente, o dígi... | 3.09375 | 3 |
2024-11-19T01:37:56.818526+00:00 | 2019-10-19T17:58:25 | 9fe8bb4fafaebc23718c0283b462ab8e4aca1380 | {
"blob_id": "9fe8bb4fafaebc23718c0283b462ab8e4aca1380",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-19T17:58:25",
"content_id": "b5e037617cb6e5eeb8fc486fec94033311fa8881",
"detected_licenses": [
"MIT"
],
"directory_id": "1bc2fa806a11e711b24be53b07aae5c6803c9070",
"extension": "c"... | stackv2 | #include "process.h"
#include "fd.h"
#include "path.h"
#include "pipe.h"
#include <reproc/reproc.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#if defined(__APPLE__)
#include <sys/event.h>
#endif
#if defined(REPROC_MULTITHREADED)
#define S... | 2.21875 | 2 |
2024-11-19T01:37:56.978612+00:00 | 2022-02-20T01:13:52 | d4427dffb1f4215fcfbf4b677eab6ac9d4921d7f | {
"blob_id": "d4427dffb1f4215fcfbf4b677eab6ac9d4921d7f",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-21T19:38:33",
"content_id": "a34e1d9f5134703cc0106933fb79171b307df1b2",
"detected_licenses": [
"MIT"
],
"directory_id": "ae8d0783918ca0476c4ea617fc014c7436538c5a",
"extension": "c"... | stackv2 | #include <libcgc.h>
#include "libc.h"
int transmit_all(int fd, const char *s, size_t size) {
int ret;
size_t total_sent = 0;
size_t sent = 0;
while (total_sent < size) {
ret = transmit(fd, s + total_sent, size - total_sent, &sent);
if (ret > 0) {
_terminate(2);
}
... | 2.296875 | 2 |
2024-11-19T01:37:57.074259+00:00 | 2022-12-27T02:11:00 | 618eec27167e84c753bf2c494e967e33ad0b8915 | {
"blob_id": "618eec27167e84c753bf2c494e967e33ad0b8915",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-27T02:11:00",
"content_id": "83e12d1e8e6e1f18aced3a7d030720677478b6cf",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2f7b2b10ae0b4f478210c0fc2dc4be88fb82e1ba",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int *array = NULL;
char *array3 = NULL;
array = new obj[100];
delete array;
array=(int *)2;
short int x=0;
array3=realloc(400);
while(x!=10)
{
array3='1';
x++;
free(array3);
}
array = malloc(1);
array=2;
arr... | 2.59375 | 3 |
2024-11-19T01:37:57.676298+00:00 | 2017-08-25T15:15:44 | 225f3c7d6f5b3e4365f138242cc3b54dd09e4768 | {
"blob_id": "225f3c7d6f5b3e4365f138242cc3b54dd09e4768",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-25T15:15:44",
"content_id": "900cdaf4198d94ca014fd3f7647be323d9c04f1f",
"detected_licenses": [
"MIT"
],
"directory_id": "0332e8c13965a35b445e1fc42f2ccbd5768b538a",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <libconfig.h>
int main(int argc, char** argv)
{
int i = 0;
const char *p_str = "";
config_t config;
config_init(&config);
if(config_read_file(&config, "example.conf") != CONFIG_TRUE) {
printf("Failed to read conf file: %d %s\n",
config_error_line(&config),
config_error_text... | 2.375 | 2 |
2024-11-19T01:37:57.828748+00:00 | 2021-01-29T21:35:48 | d38734114b6a5fce16a22ee01f73c19f35985a10 | {
"blob_id": "d38734114b6a5fce16a22ee01f73c19f35985a10",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-29T21:35:48",
"content_id": "71aeb75964979649b2ceb41be5ca7291be32641e",
"detected_licenses": [
"MIT"
],
"directory_id": "b1451ef39a073aefc104ed3f62228116957c7fc6",
"extension": "c"... | stackv2 | #include "cpfphig/cpfphig.h"
#include "cpfphig/list.h"
// REMARK removes all nodes from list
cpfphig
cpfphig_list_empty( struct cpfphig_list* List,
CPFPHIG_OPTIONAL struct cpfphig_error* Error )
{
cpfphig shift_ret = CPFPHIG_FAIL;
struct cpfphig_error ... | 2.265625 | 2 |
2024-11-19T01:37:57.930248+00:00 | 2023-01-19T07:22:39 | 6f834f0b0941d1931e88fb6eaa9149dcbb0b32b7 | {
"blob_id": "6f834f0b0941d1931e88fb6eaa9149dcbb0b32b7",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-28T08:15:09",
"content_id": "fe0ecb198ca84ce598a839bc77da6d7fae37b10c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2a2145f65fb9bff2b6fdf93c780df3fe72098951",
"extens... | stackv2 | /*
* Copyright (c) 2018-2022, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <stdint.h>
#include <string.h>
#include <stddef.h>
#include "psa/client.h"
#include "attest.h"
#include "attest_boot_data.h"
#include "attest_key.h"
#include "attest_token.h"
#include "config_at... | 2.28125 | 2 |
2024-11-19T01:37:58.898550+00:00 | 2021-07-19T05:50:33 | 12c901e93602513ad6166e424360c9247504724e | {
"blob_id": "12c901e93602513ad6166e424360c9247504724e",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-19T05:50:33",
"content_id": "17379ab6599a1b10415cf10c924a2c853be2f664",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1af31bf75e6027db4d59953ee834ace42838d038",
"extension"... | stackv2 | #include <stdlib.h>
#include <string.h>
#include "../builtins.h"
#include "../exceptions.h"
#include "../value.h"
Value *builtin_string_count_wrapped(Value *parameters, Value *env)
{
Value *parameter[1];
Value *extract_result = extract_fixed_parameters(parameter, parameters, 1, "*builtin*.string-count");
... | 2.0625 | 2 |
2024-11-19T01:37:59.136685+00:00 | 2021-09-28T13:11:00 | 89fc061bb2c902413c0f121f3752ccb9f389e340 | {
"blob_id": "89fc061bb2c902413c0f121f3752ccb9f389e340",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-28T13:11:00",
"content_id": "97b50fb8c97d927f108680c01ce3398c543af506",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "a45ae9e22b316fc3d792a1b124d1cb42d279b18a",
"extension": "... | stackv2 | #include <stdlib.h>
#include "listeCharParTableau.h"
// constructeur pour creer une nouvelle liste vide
listeChar* newListeChar() {
listeChar *l = (listeChar*)malloc(sizeof(listeChar));
l->taille = 0;
return l;
}
listeChar* insererLC(listeChar *l, int pos, char val) {
// verification que la position est valid... | 3.375 | 3 |
2024-11-19T01:50:40.983197+00:00 | 2018-04-21T17:43:38 | 29f4446dc053bd9eb7d14e5a93fda4d7e3b49fc6 | {
"blob_id": "29f4446dc053bd9eb7d14e5a93fda4d7e3b49fc6",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-21T17:43:38",
"content_id": "b8e714a7f04e25b9f9e1211e48f7e54bd54cd946",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e041d226140fa74180fb9fe483fe0b9739c33384",
"extensio... | stackv2 | #include "filehandling.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <omp.h>
//#include "mkl.h"
#include "eigenvalues.h"
#include "../lib/mmio.h"
int readTriadiagonalMatrixFromSparseMTX(const char* filename, double** T, int* n) {
int ret_code;
MM_typecode matcode;
FILE *f;
in... | 2.640625 | 3 |
2024-11-19T01:50:41.112499+00:00 | 2017-10-24T12:57:33 | 7b9d09c81eac87dc2267975ad574901f5d25e040 | {
"blob_id": "7b9d09c81eac87dc2267975ad574901f5d25e040",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-24T12:57:33",
"content_id": "c190fe30e820cf71f829f945334e165fdcd1d704",
"detected_licenses": [
"Unlicense"
],
"directory_id": "da8f79cc489371a6adf292ba1a6ef74e8b12ca80",
"extension... | stackv2 | #include <stdio.h>
struct seiseki{
char name[20];
int kokugo;
int sugaku;
int eigo;
int goukei;
float heikin;
}
main()
{
struct seiseki it2801;
printf("名前: ");
scanf("%s", &it2801.name);
printf("国語: ");
scanf("%d", &it2801.kokugo);
printf("数学: ");
scanf("%d", &it2801.sugaku);
printf("英... | 3.15625 | 3 |
2024-11-19T01:50:41.174920+00:00 | 2019-04-15T10:42:17 | 5f7c7353442af079aadf96fe0f646b0a2cd15a4e | {
"blob_id": "5f7c7353442af079aadf96fe0f646b0a2cd15a4e",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-15T10:42:17",
"content_id": "06c2e5d8936fbe8258e9aafba9d37c511d70cacb",
"detected_licenses": [
"MIT"
],
"directory_id": "7ae8df38c932112ca48fb45d6fa26dbe84b2bbac",
"extension": "c"... | stackv2 | #include "systick.h"
extern volatile uint32_t mTicks;
static inline uint32_t HAL_GetTicks()
{
return mTicks;
}
uint32_t systick_current_mills()
{
return HAL_GetTicks();
}
void systick_sleep(uint32_t ms)
{
volatile uint32_t curr_ticks = systick_current_mills();
while((systick_current_mills() - curr_ticks) < ms);
}
| 2.203125 | 2 |
2024-11-19T01:50:41.566785+00:00 | 2022-02-01T06:09:14 | 99a735ea92d9b7671f12c4d0078661d427d3f9a2 | {
"blob_id": "99a735ea92d9b7671f12c4d0078661d427d3f9a2",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-01T06:09:14",
"content_id": "df0c8aae92fb1c20d1fc16e5ccd1797d438b1c42",
"detected_licenses": [
"MIT"
],
"directory_id": "e28928074f7b034d90c2b415f17e9d06b8b4aa23",
"extension": "c"... | stackv2 | /*
* balls.c
* ndt: n-dimensional tracer
*
* Copyright (c) 2019-2021 Bryan Franklin. All rights reserved.
*/
#include <stdio.h>
#ifdef WITH_YAML
#include <yaml.h>
#else
#warning "Not compiled with YAML support."
#endif /* WITH_YAML */
#include "../scene.h"
int scene_frames(int dimensions, char *config) {
char... | 2.34375 | 2 |
2024-11-19T01:50:42.177289+00:00 | 2023-01-17T11:26:47 | 8f639d41ad50c7b950b573c547cd18a853e7ede2 | {
"blob_id": "8f639d41ad50c7b950b573c547cd18a853e7ede2",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-17T11:26:47",
"content_id": "81ce5014b23cf81ef696bb24cd6a6fd85f1571e8",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "3b1da326ba9877da9bfa00cbfabb261a93dd8f5e",
"extens... | stackv2 | /*
Glidix GUI
Copyright (c) 2014-2017, Madd Games.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of condi... | 2.15625 | 2 |
2024-11-19T01:50:42.333405+00:00 | 2020-11-07T05:37:48 | 8b6f30ddd78a8a9df767e37557d24e1f3163cc2d | {
"blob_id": "8b6f30ddd78a8a9df767e37557d24e1f3163cc2d",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-07T05:37:48",
"content_id": "c34adf382cce31b2420d506db28c369c6dfd6f14",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2836a3137b70eaa621bf1154131650cbde5155a8",
"extens... | stackv2 | #include <sys/semaphore.h>
#include <stdio.h>
#include <stdbool.h>
#include "test_util.h"
#include <common/test.h>
static PhyloStatus *shared = (void*)0xFFFFFFFFC0008010; //shared memory
#define WAIT 30000000
static void printTable(Semaphore print)
{
lock(print);
for(int i = 0; i < shared->count; i++)
printf(sh... | 2.453125 | 2 |
2024-11-19T01:50:42.389574+00:00 | 2016-05-02T22:13:05 | 6b169e216fee676e95790efc61cf0fb04f9bffe6 | {
"blob_id": "6b169e216fee676e95790efc61cf0fb04f9bffe6",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-02T22:13:05",
"content_id": "ec2ea51cbf60967bba40ab4f4318ed472b05c87b",
"detected_licenses": [
"MIT"
],
"directory_id": "c011e07a9c6815b0f2498761028a277d2f5cf860",
"extension": "c"... | stackv2 | /*
* AUTHORS: Miraj Kheni. Sam Thomas
* CREATED ON: 2nd March, 2016
*/
#include <kern/errno.h>
#include <types.h>
#include <kern/fcntl.h>
#include <kern/wait.h>
#include <machine/vm.h>
#include <syscall.h>
#include <thread.h>
#include <lib.h>
#include <current.h>
#include <process_descriptor.h>
#include <vfs.h>
#in... | 2.234375 | 2 |
2024-11-19T01:50:42.478517+00:00 | 2015-11-23T09:27:20 | 064cc133afef2e2af69ab9ddb4c9f25225cccbf8 | {
"blob_id": "064cc133afef2e2af69ab9ddb4c9f25225cccbf8",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-23T13:02:37",
"content_id": "8c2caba0d4c0b5f660485cb1846882327b6ff041",
"detected_licenses": [
"MIT"
],
"directory_id": "abbf37558174e0b20e31c5025d2eb35c103ebcfe",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h> //strlen()
#include <stdlib.h> //abs()
int palindrome(char *string);
int main()
{
char string[255];
printf("Enter a string (max 255 chars): ");
scanf("%s", string);
if (palindrome(string))
{
printf("%s is a palindrome\n", string);
}
else
{
printf("%s is not a palin... | 3.734375 | 4 |
2024-11-19T01:50:42.548310+00:00 | 2019-01-24T15:07:23 | 9fa91bb45d1568c9edef86dec662d28f0f846178 | {
"blob_id": "9fa91bb45d1568c9edef86dec662d28f0f846178",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-24T15:07:23",
"content_id": "e7dbb0cedbd7fea785882a5378e80e6ed9c6b16b",
"detected_licenses": [
"MIT",
"ISC"
],
"directory_id": "2d59013bc755615be53d1a075e868f7c49c66432",
"exte... | stackv2 | /*
Copyright 2018 Leo McCormack
Permission to use, copy, modify, and/or distribute this software for any purpose with or
without fee is hereby granted, provided that the above copyright notice and this permission
notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANT... | 2.15625 | 2 |
2024-11-19T01:50:43.313659+00:00 | 2021-06-08T16:56:57 | 75cac478854736a6bd95b8c4d4c52c09b771d8dd | {
"blob_id": "75cac478854736a6bd95b8c4d4c52c09b771d8dd",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-08T16:56:57",
"content_id": "edd7e72e68f3a489d38b8fe0420770b6f6b209c3",
"detected_licenses": [
"MIT"
],
"directory_id": "d9527de3aa58efedbbcb24fceb4d21805efa59d5",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *file;
file = fopen("string.txt", "a");
if (file == NULL)
{
printf("O arquivo nao pode ser aberto.\n");
exit(0);
}
//passar uma string para meu arquivo
fprintf(file, "Primeira linha\n");
//passar um vetor para ... | 3.5 | 4 |
2024-11-19T01:50:43.596610+00:00 | 2022-03-14T09:49:15 | 5ef1ef070ff967ceccadbccf36fb29879725b746 | {
"blob_id": "5ef1ef070ff967ceccadbccf36fb29879725b746",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T09:50:00",
"content_id": "d0cf172aea45db4a222df609842fec31c583f0e7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e1cddfd754d952134e72dfd03522c5ea4fb6008e",
"extensio... | stackv2 | /*
*------------------------------------------------------------------
* persist.c - persistent data structure storage test / demo code
*
* Copyright (c) 2013 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... | 2.421875 | 2 |
2024-11-19T01:50:43.712377+00:00 | 2021-09-22T22:41:05 | 5e64e546e128d76f74486a43509cd107ed7932c7 | {
"blob_id": "5e64e546e128d76f74486a43509cd107ed7932c7",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-22T22:41:05",
"content_id": "4accc2509a6f8992ae4807ac2a03aa726fd8434e",
"detected_licenses": [
"MIT"
],
"directory_id": "b75a1287b5e38f0b1fcfc36fc051147f1ed3890e",
"extension": "c",
... | stackv2 | #include <stdio.h>
int main(void)
{
int counter, num1, num2;
printf("--------------------------------------------\n");
printf("\t\tSMART COUNTER\n\n");
printf("Choose the first number: ");
scanf("%i", &num1);
printf("Choose the second number: ");
scanf("%i", &num2);
if (num1 < num2)
... | 3.453125 | 3 |
2024-11-19T01:50:43.894357+00:00 | 2014-10-23T16:48:50 | c8c739b1af21b5294acb0f846cf4db9f65cc2dad | {
"blob_id": "c8c739b1af21b5294acb0f846cf4db9f65cc2dad",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-23T16:48:50",
"content_id": "976925010cfa7ed9806c0cd7d63bcec0be854018",
"detected_licenses": [
"MIT"
],
"directory_id": "0a9df3f55223a2af407d0a1113f44e57b1dd85ea",
"extension": "c"... | stackv2 | /*
* map.c
*
* Created on: Jan 23, 2013
* Author: Matt Derry
*
* File for performing simple path planning and map building for EECS 295
*/
#include "stm32f10x_lib.h"
#include "map.h"
#include "main.h"
#define word u16
#define byte u8
byte horizontalWalls[9][8] = { {1, 1, 1, 1, 1, 1, 1, 1},
... | 2.578125 | 3 |
2024-11-19T01:50:44.157068+00:00 | 2018-09-21T08:44:50 | 6a61e6b13777efa9c65f2a7f83ea02fba762cbf3 | {
"blob_id": "6a61e6b13777efa9c65f2a7f83ea02fba762cbf3",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-21T08:44:50",
"content_id": "6d4300d0f7ae431a724bcfad7d84b3448c588020",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "012fc8c97a0e83226aacdc4b3067ca86... | stackv2 | #define SLIST_ASSERTS
#include "../include/slist.h"
#include <assert.h>
#include <stdio.h>
typedef struct block {
SLIST_DECLARE_LINK(block, next);
int elem;
} block_t;
SLIST_DECLARE(queue, block);
static queue qu = SLIST_STATIC_INIT;
int main(void) {
block_t b0 = { .next = SLIST_LINK_STATIC_INIT, .elem = 0 ... | 2.8125 | 3 |
2024-11-19T01:50:44.300782+00:00 | 2020-06-01T19:46:51 | 282e2d36fbd5b9636aa3c8bdd3d38ac9f4d792f9 | {
"blob_id": "282e2d36fbd5b9636aa3c8bdd3d38ac9f4d792f9",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-01T19:47:30",
"content_id": "62b76885c91713b2e945a50736396d09377f2674",
"detected_licenses": [
"MIT"
],
"directory_id": "1c27619985f0d1ec6140c29d9ea91dbea9477ad9",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <sys/mman.h>
#include "lookup_tables.h"
#define DIE(...) \
do { \
fprintf(std... | 2.734375 | 3 |
2024-11-19T01:50:44.461174+00:00 | 2020-12-10T17:57:27 | ee158a1e53fe4efd3259b8f3e9e3811f5bbb059c | {
"blob_id": "ee158a1e53fe4efd3259b8f3e9e3811f5bbb059c",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-10T17:57:27",
"content_id": "5bdb2beda48074deb47b8249320871402c186534",
"detected_licenses": [
"MIT"
],
"directory_id": "a90bba3c801af472b652a794d0746f6699eed935",
"extension": "h"... | stackv2 | //Create prototype for void function echo_variable with one int parameter
int sum_numbers(int num1, int num2);
void echo_variable(int num);
int echo_variable_ret(int num); | 2 | 2 |
2024-11-19T01:50:48.375785+00:00 | 2015-04-27T00:53:30 | 6a769547a71fcdada9a577b41313ca56effe9f49 | {
"blob_id": "6a769547a71fcdada9a577b41313ca56effe9f49",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-27T00:53:30",
"content_id": "4c73bf6f4954ad07cf97935ab13c8e602d701ce7",
"detected_licenses": [
"MIT"
],
"directory_id": "48beed29ef39a55d9be22653be47ac9d038d109d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "aesrng.h"
#include "mt.h"
#include "cpuid.h"
int main(void) {
if (!intel_has_feature(INTEL_FEATURE_AES)) {
printf("No Intel AES instruction support detected on this processor\n");
return -1;
}
char buffer[1 << 10] __attribute__ ((aligned (16)));
mt_state_t state;
mt_in... | 2.4375 | 2 |
2024-11-19T01:50:54.914152+00:00 | 2019-04-24T10:51:51 | f795ae084d9476336b951c9f70623a8d792b7a53 | {
"blob_id": "f795ae084d9476336b951c9f70623a8d792b7a53",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-24T10:51:51",
"content_id": "f04f1444a98f59edc16b1ca5474646b82e4de96a",
"detected_licenses": [
"MIT"
],
"directory_id": "8af0a829d54ab301780d3d28d1f819262aca9d60",
"extension": "c"... | stackv2 | #include <gmp.h>
#define target 200000
int main(void)
{
mpz_t f0, f1;
mpz_init_set_ui(f0, 1);
mpz_init_set_ui(f1, 1);
for (int i = 0; i < target; ++i) {
mpz_add(f1, f1, f0);
mpz_sub(f0, f1, f0);
}
gmp_printf("%Zx", f1);
}
| 2.203125 | 2 |
2024-11-19T01:50:54.978529+00:00 | 2021-03-07T15:29:38 | d2ca0129045eaff7af0afb04fef63b65ae0d94e4 | {
"blob_id": "d2ca0129045eaff7af0afb04fef63b65ae0d94e4",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-07T15:29:38",
"content_id": "9c1d4d6d144cbe315f132522bf7c8ced5e9def59",
"detected_licenses": [
"MIT"
],
"directory_id": "bc03172bb5849e74b0839aa1d5b29cd3442adce6",
"extension": "c",
... | stackv2 | #include "libmx.h"
char **mx_strdup_arr(char **strarr) {
char **res = NULL;
int len;
int i = 0;
if (!strarr)
return NULL;
len = mx_strlen_arr(strarr);
res = (char **)malloc((len + 1) * sizeof(char *));
for (; i < len; i++) {
res[i] = mx_strdup(strarr[i]);
}
res[i] =... | 2.3125 | 2 |
2024-11-19T01:50:55.605382+00:00 | 2022-07-21T22:07:39 | 3b7cf170d0cd0e38e4f08294dfe9f92ed8254c4a | {
"blob_id": "3b7cf170d0cd0e38e4f08294dfe9f92ed8254c4a",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-21T22:07:39",
"content_id": "473cc3e2ad17691a67bd85b94f9e5bfbd1bed9c2",
"detected_licenses": [
"Unlicense"
],
"directory_id": "fcd95de0ecf6ffeb6cc58d17f46a6678c752bced",
"extension... | stackv2 | // M3TIOR 2015
#include <Osmium/asm.h>
void outb(unsigned short port, unsigned char value){
asm volatile ("outb %1, %0" : : "dN" (port), "a" (value));
}
unsigned char inb(unsigned short port){
unsigned char ret;
asm volatile("inb %1, %0" : "=a" (ret) : "dN" (port));
return ret;
}
unsigned short inw(uns... | 2.34375 | 2 |
2024-11-19T01:50:55.810666+00:00 | 2021-10-22T07:39:06 | 616069d2eb60f8c79b15c0e7a08e52b9c7689e2e | {
"blob_id": "616069d2eb60f8c79b15c0e7a08e52b9c7689e2e",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-22T07:39:06",
"content_id": "0af9c002b6bff86280b3589c102b0f2ecbe58bd6",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "6664e991b0ca091857378289866b422fdb6bc30d",
"extensio... | stackv2 | /*
* thread_pool.c
*
* Created on: Apr 12, 2019
* Author: rick
*/
#include <pthread.h>
#include <stdint.h>
#include "util/ThreadPool.h"
typedef struct ThreadPoolPrivate {
ThreadPool *tp1;
int thread_num;
volatile uint32_t current_idx;
} ThreadPoolPrivate;
static bool insertTail(ThreadPool *tp... | 2.578125 | 3 |
2024-11-19T01:50:57.612376+00:00 | 2023-08-31T16:20:55 | b07f5f5e17aa34c45c4f2a4a993fd8bfc4147de8 | {
"blob_id": "b07f5f5e17aa34c45c4f2a4a993fd8bfc4147de8",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T16:20:55",
"content_id": "b7653a5c21a10cf3c883095b6a43ab22909c6c9b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "99bdb3251fecee538e0630f15f6574054dfc1468",
"extensio... | stackv2 | /*
* Copyright (c) 2018, Synopsys, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <rtthread.h>
#include "arc/arc_exception.h"
#if ARC_FEATURE_STACK_CHECK
#define ARC_INIT_STATUS ((1 << AUX_STATUS_BIT_SC) | AUX_STATUS_MASK_IE | ((-1 - INT_PRI_MIN) << 1) | STATUS32_RESET_VALUE)
#else
#define ARC_INIT_STAT... | 2.140625 | 2 |
2024-11-19T01:50:58.080882+00:00 | 2020-06-10T11:33:07 | ebcdceb8751ef827b6090d65fab1b3a07221d157 | {
"blob_id": "ebcdceb8751ef827b6090d65fab1b3a07221d157",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-10T11:33:07",
"content_id": "28ffd79540c6c015d632b9b982488b308873f7d4",
"detected_licenses": [
"MIT"
],
"directory_id": "70b7936c1767e9bf64e490d30bc1f4a93e5de07d",
"extension": "h"... | stackv2 | /**
****************************************************************************
* @file ps2.c
* @brief ps2遥控器驱动
* @author Javid
* @date 2020-05-14
* @version 1.0
* @Note PS2数据定义
* BYTE DATA 解释
* 01 idle
* 02 0x73 手柄的工作模式
* 03 0x5A Bit0 Bit1 ... | 2.25 | 2 |
2024-11-19T01:50:58.905347+00:00 | 2018-05-15T18:03:37 | e1a3e1bfdfd991c93970fa0c5c7c6cab50e5631f | {
"blob_id": "e1a3e1bfdfd991c93970fa0c5c7c6cab50e5631f",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-15T18:03:37",
"content_id": "2a5ed37735950e8aa5908cd8442305f70fb59c28",
"detected_licenses": [
"MIT"
],
"directory_id": "916b6134e86c9199921a118cb1eaeef29dab206d",
"extension": "c"... | stackv2 | #include "nSysimp.h"
#include "nSystem.h"
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
static nTask MakeTask(int stack_size);
static void VtimerHandler();
/* El handler de interrupciones del timer virtual */
/*************************************************************
* El prologo y el epilo... | 2.640625 | 3 |
2024-11-19T01:50:58.978155+00:00 | 2015-04-24T04:53:26 | 679ce017e0013df6e06cc6385381791fef45750b | {
"blob_id": "679ce017e0013df6e06cc6385381791fef45750b",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-24T04:53:26",
"content_id": "0725e34d752dc45a798ecb0614b8c0989ca9f873",
"detected_licenses": [
"MIT"
],
"directory_id": "97a17c6b43c4b5a4cc532699bd6f6be3b514f705",
"extension": "c"... | stackv2 | /**
* \file
*
* \brief Clock system example 3.
*
* Copyright (c) 2011 - 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... | 2.015625 | 2 |
2024-11-19T01:50:59.543811+00:00 | 2016-12-30T22:36:19 | e59552814209392a95837f3c6b052745891d9c14 | {
"blob_id": "e59552814209392a95837f3c6b052745891d9c14",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-30T22:36:19",
"content_id": "b591dde498420593a7bb790142a7234dd09be983",
"detected_licenses": [
"MIT"
],
"directory_id": "8fc055869d35fd28adedec6dc2abce895d86e087",
"extension": "c"... | stackv2 | #define _GNU_SOURCE
#include <sys/param.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <GL/glut.h>
#include <GL/glext.h>
#include <GL/glcorearb.h>
#include <bsd/stdlib.h>
#include "common.h"
#define RAND_SIZE 262144
static int _random_index = 0;
static uint32_t _random_data[RAND_SIZE];
static... | 2.390625 | 2 |
2024-11-19T01:51:00.329727+00:00 | 2018-01-02T19:56:24 | 20ec70dccbd471cc2f56a9204417ea693f6d2736 | {
"blob_id": "20ec70dccbd471cc2f56a9204417ea693f6d2736",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-02T19:56:24",
"content_id": "b3d3e7156c152556b11f483ebe5c12fa15577dad",
"detected_licenses": [
"ISC"
],
"directory_id": "80d041789b73c1a6adfb9edcd6163398bc02780a",
"extension": "c"... | stackv2 | #include "exact.h"
// Algorithm 2.3 from [Graillat2008], due to Dekker & Veltkamp.
void split(double *x_out, double *y_out, double a) {
// The constant `f` is the value:
//
// 2^s - 1
//
// where:
// s = ceil(p/2)
//
// In double precision, `p` = 53, so `s` = 27.
double f =... | 2.96875 | 3 |
2024-11-19T01:51:00.528492+00:00 | 2020-10-29T15:16:47 | b4113fca739f7bcd0c51fe1a1cbd096c7fe3ac5e | {
"blob_id": "b4113fca739f7bcd0c51fe1a1cbd096c7fe3ac5e",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-29T15:16:47",
"content_id": "bb8bb8ec516127db3877db89cee0291a255ad0cf",
"detected_licenses": [
"MIT"
],
"directory_id": "e641206d6581d89b579ee0120225cd3fc24f4c96",
"extension": "c"... | stackv2 | /* Mikayla Webber
* CSCI 4100
* Assignment 6
* This program tests a bounded buffer by creating multiple sending and
* receiving threads
*/
#include <stdio.h>
#include <stdlib.h>
#include "bbuff.h"
/* Structure to hold thread arguments */
struct t_args
{
/* Thread ID */
int t_id;
/* Number of messages to send... | 3.421875 | 3 |
2024-11-19T01:51:00.594679+00:00 | 2020-09-26T17:07:25 | 35d351c3099f40fc0b3743e262d85aef02ae439e | {
"blob_id": "35d351c3099f40fc0b3743e262d85aef02ae439e",
"branch_name": "refs/heads/main",
"committer_date": "2020-09-26T17:07:25",
"content_id": "346bb3fa2e2ef7a2b116b02fa432a3885270679e",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "9a6f2c81e0310f877064e2f064e6149fa3840878",
"extensio... | stackv2 | #include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#define MAX 1024
int compute_vowel_count(const char *sentence)
{
int vowels = 0;
for(; *sentence; sentence++)
{
switch(tolower(*sentence))
{
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
vowels+... | 3.328125 | 3 |
2024-11-19T01:51:00.926910+00:00 | 2021-07-21T16:32:47 | 00592132300c630c3b4864b94ff56954f50e849e | {
"blob_id": "00592132300c630c3b4864b94ff56954f50e849e",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-21T16:32:47",
"content_id": "02f0d0b8ba073dcfa45c26020349f5e07bbd4aee",
"detected_licenses": [
"MIT"
],
"directory_id": "888380df2182afb829b607f4bd3abd3525423d75",
"extension": "c",
... | stackv2 |
#include "../../include/header.h"
#include "../../include/init_monitors.h"
#include "../../include/tm_queries.h"
#include "../../include/signal_handler.h"
// Flags that show whether a signal of said got_<type> arrived & awaits handling.
// 0 if no signal arrived, else 1.
static volatile sig_atomic_t got_intq, got_usr... | 2.171875 | 2 |
2024-11-19T01:51:01.068862+00:00 | 2023-04-06T12:09:13 | 0d84c5464eb555d3ca36b2376cdf09268dc2dcfa | {
"blob_id": "0d84c5464eb555d3ca36b2376cdf09268dc2dcfa",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-06T12:09:13",
"content_id": "ac673980a07e33598a7891aefd5e07947504d2f6",
"detected_licenses": [
"MIT"
],
"directory_id": "17137daf9487e8a9bf5bc2f314871d98656e2562",
"extension": "c"... | stackv2 | int inputSeek(
struct qryData *query,
char *inputFileName,
long *offset,
FILE **inputFile
) {
long temp = query->CMD_PARAMS & PRM_HEADER ? 128 : 0;
MAC_YIELD
if(*offset == 0) {
/* Attempt to open the input file and update the character encoding if the file has a BOM */
*inputFile = skipB... | 2.03125 | 2 |
2024-11-19T01:51:01.214014+00:00 | 2020-06-13T20:29:41 | c1dab2a2d4dcf24d4717246c3d52e8159558d3e6 | {
"blob_id": "c1dab2a2d4dcf24d4717246c3d52e8159558d3e6",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-13T20:29:41",
"content_id": "8a069aba2f03483e2ee4c459365006b2eb63dcc9",
"detected_licenses": [
"MIT"
],
"directory_id": "3a2c0623d6859191cb91fecf5987ea36809542e8",
"extension": "c"... | stackv2 | /// MentOS, The Mentoring Operating system project
/// @file uname.c
/// @brief
/// @copyright (c) 2019 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#include "commands.h"
#include "stdio.h"
#include "video.h"
#include "string.h"
#include "utsname.h"
#include "version.h... | 2.65625 | 3 |
2024-11-19T01:51:02.132076+00:00 | 2021-10-07T03:54:01 | 60c268737c75521c6992c8f9c59b5ca425f6cbf8 | {
"blob_id": "60c268737c75521c6992c8f9c59b5ca425f6cbf8",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-07T03:58:16",
"content_id": "094d45f561854c2367fe9267dde22c228dcef773",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3c1c2b58ed14f407b44dd2a0139043c228470d72",
"extensio... | stackv2 | /* Copyright 2020 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 2.328125 | 2 |
2024-11-19T01:51:04.242602+00:00 | 2016-12-01T02:44:17 | b6314ddcaed051afdff7b390750655b0e92952c9 | {
"blob_id": "b6314ddcaed051afdff7b390750655b0e92952c9",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-01T02:44:17",
"content_id": "4b736401e1dad912bcdd574f27a75fc9295eb61e",
"detected_licenses": [
"MIT"
],
"directory_id": "1dc4f4a129542bdff3ec4728c92c8fe81f86290e",
"extension": "c"... | stackv2 | #include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <malloc.h>
#include <string.h>
#include "void_buffer.h"
#ifdef DEBUG
#define DEBUG_MSG(...) fprintf(stderr, __VA_ARGS__);
#else
#define DEBUG_MSG(...)
#endif
#define ASSERT(what, ...) if (!(what)) return luaL_error(L, __VA_ARGS__);
static int vb_cr... | 2.359375 | 2 |
2024-11-19T01:51:04.523757+00:00 | 2020-03-05T11:11:40 | 96c75a4eeb67b4ec8ff6c73a72ab12f56b5d08db | {
"blob_id": "96c75a4eeb67b4ec8ff6c73a72ab12f56b5d08db",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-05T11:11:40",
"content_id": "8207486cf494e981469cab6c300bb6b4d5d3d45b",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "ef029e8b0d0f7085b4b637c01ce59ad3... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <time.h>
#define CONSUMERS 1 /* Hard code to 1 */
pthread_t thr[CONSUMERS];
/* Holds the time a particular subframe is added */
long long int subframe_addition_time[MAX_SUBFRAMES];
long long int subframe_dispatch_time[MAX_SUBFRAMES];
/* Define a ... | 2.65625 | 3 |
2024-11-19T01:51:04.736574+00:00 | 2013-09-27T09:39:50 | da33e28e024ea0259320f1a3378dee7a928e41f6 | {
"blob_id": "da33e28e024ea0259320f1a3378dee7a928e41f6",
"branch_name": "refs/heads/master",
"committer_date": "2013-09-27T09:39:50",
"content_id": "faf081d16ce1878392a1c16230eb87d8a72db05f",
"detected_licenses": [
"MIT"
],
"directory_id": "6b38114a64b38f59a1538a0b202f5166e8399f48",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include "arguments.h"
#include "hosts_file.h"
int cmd_list(HostsFile *hostsFile, Arguments arguments) {
if (hostsFile->numEntries == 0) {
fprintf(stderr, "No hosts entries in file %s\n", hostsFile->path);
}
for (int i = 0; i < hostsFile->numEntries; ++i) {
printf("%s -> ... | 2.78125 | 3 |
2024-11-19T01:51:04.781502+00:00 | 2018-12-23T02:43:17 | 4148f3e7008b416df39f41e4aaa7ffa79aabffde | {
"blob_id": "4148f3e7008b416df39f41e4aaa7ffa79aabffde",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-23T02:43:17",
"content_id": "3f8b8b63e08f36d6d4f911ce0be8ffa2bcfc910b",
"detected_licenses": [
"MIT"
],
"directory_id": "ccc678d5a1823eff2bd51506ffc37dc48cde3ae1",
"extension": "c"... | stackv2 | /********************************************************************
파 일 : main.c
동 작 :
프로그램이 시작하면 500ms 간격으로 LED1 한개 램프를 ON/OFF
결 선 :
IOT SENSOR MODULE의 포트 J12(PORT C)의 핀 1(PC0)을 LED 모듈의 포트 RED의 핀 1에 연결
IOT SENSOR MODULE의 핀 +3.3V를 LED 모듈의 포트 J3의 우측 핀에 연결
IOT SENSOR MODULE의 핀 GND를 LED 모듈의 포트 J3의 좌측 핀... | 2.640625 | 3 |
2024-11-19T01:51:05.350149+00:00 | 2019-05-16T13:17:33 | fb8537de510eb181a3fe0b4b1f51afd7c971e7a6 | {
"blob_id": "fb8537de510eb181a3fe0b4b1f51afd7c971e7a6",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-16T13:17:33",
"content_id": "73cbfffb02ca7a237efdf5f560dd673e0d06e0d1",
"detected_licenses": [
"MIT"
],
"directory_id": "36370032bed7df724149796a28b44820f89e9c66",
"extension": "c"... | stackv2 | #include <stdio.h>
int sqrnum(int num);
int readnum(void);
int prompt(void);
main()
{
int t;
for(prompt(); t=readnum(); prompt())
sqrnum(t);
}
prompt(void)
{
printf("Entre um n£mero: ");
return 0;
}
readnum(void)
{
int t;
scanf("%d", &t);
return t;
}
sqrnum(int num)
{
printf("%d\n", num*num);... | 3.234375 | 3 |
2024-11-19T01:51:06.325701+00:00 | 2021-08-21T06:42:23 | aecf50aef3af4a166c0ea9523e7a579391e5bb52 | {
"blob_id": "aecf50aef3af4a166c0ea9523e7a579391e5bb52",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-21T06:42:23",
"content_id": "c1f23e02fc580b20accaa6c0d2a05c240f4baab9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "031c5b739c20418a21bb64bf7712892e00b7ec8d",
"extension"... | stackv2 | #include "timer.h"
#include "debug.h"
#include "common.h"
#include "idt.h"
#include "sched.h"
// void timer_callback(pt_regs *regs)
// {
// static uint32_t tick = 0;
// printk_color(rc_black, rc_red, "Tick: %d\n", tick++);
// }
void timer_callback(pt_regs *regs)
{
schedule();
}
void init_timer(uint32_t frequency... | 2.671875 | 3 |
2024-11-19T01:51:06.413031+00:00 | 2018-03-09T07:10:42 | 3aab32829d494774e8dc7a06540bc8a7f08ac80d | {
"blob_id": "3aab32829d494774e8dc7a06540bc8a7f08ac80d",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-09T07:10:42",
"content_id": "9db8a8c59031a1c323ef0bad9e234430c0d8d7ef",
"detected_licenses": [
"MIT"
],
"directory_id": "64e6703b2e899be2363d22230d8d8ab833782544",
"extension": "c"... | stackv2 |
/* vim: set ft=c et ts=3 sw=3 sts=3:
*
* Copyright (C) 2013 James McLaughlin. All rights reserved.
* http://github.com/udp/list
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of sour... | 2.40625 | 2 |
2024-11-19T01:51:06.702304+00:00 | 2022-03-10T21:08:40 | c3b21b47510572cd12c0ccf9253efa0081b1662d | {
"blob_id": "c3b21b47510572cd12c0ccf9253efa0081b1662d",
"branch_name": "refs/heads/main",
"committer_date": "2022-03-10T21:08:40",
"content_id": "4be57d8f58e63a62295099dd8e289a94cd791bda",
"detected_licenses": [
"MIT"
],
"directory_id": "d3e4ff2671841b86dd7744efc770e723a233b1da",
"extension": "h",
... | stackv2 | #ifndef FA_H
#define FA_H
typedef struct Node_t *Node_t;
typedef struct Nfa_t *Nfa_t;
typedef struct Nfa_t *Dfa_t;
typedef struct Edge_t *Edge_t;
struct Nfa_t
{
int start; // start node of an NFA
int accept; // accept node of an NFA
Node_t nodes; // a list of all nodes
};
struct Node_t
{
int num;
i... | 2.203125 | 2 |
2024-11-19T01:51:07.190452+00:00 | 2015-10-11T13:16:26 | 54463dfc296bd6a50d135235daa1a5245aedfa6e | {
"blob_id": "54463dfc296bd6a50d135235daa1a5245aedfa6e",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-11T13:16:26",
"content_id": "14a98ff86918d62589691dede4094f7214222686",
"detected_licenses": [
"MIT",
"Artistic-2.0"
],
"directory_id": "a1dbbadb6cb373b9b265101155b2625cec841291"... | stackv2 | /*
* =====================================================================================
*
* Filename: garbage_collection.c
*
* Description: Functions to clear memory
*
* Created: 06/28/2013 11:12:14
*
* Author: Adriaan Larmuseau, ajhl
* Company: Distrinet, Kuleuven
*
*... | 2.578125 | 3 |
2024-11-19T01:51:07.838805+00:00 | 2013-11-20T17:46:42 | d4e8731d329c1c1a629ee50ba9681155a7b4f004 | {
"blob_id": "d4e8731d329c1c1a629ee50ba9681155a7b4f004",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-20T17:46:42",
"content_id": "3c3a6034864e24c916a7e147a3bc2e522f3fa01a",
"detected_licenses": [
"NCSA"
],
"directory_id": "6aa7a8a5b43320e5824da8d9648a2aa188693bf8",
"extension": ""... | stackv2 | /* GCC wasn't handling 64 bit constants right fixed */
void main() {
long long Var = 123455678902ll;
printf("%lld\n", Var);
}
| 2.4375 | 2 |
2024-11-19T01:51:08.023156+00:00 | 2019-07-29T17:41:23 | a15d59d6172a24f9d65402262c53f6b6eb3ac686 | {
"blob_id": "a15d59d6172a24f9d65402262c53f6b6eb3ac686",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-29T17:41:23",
"content_id": "f1d1555e7190d9a375e81ee13c3b801f481cb86e",
"detected_licenses": [
"MIT"
],
"directory_id": "a46803d2a794e196d8305df3871daf114d702664",
"extension": "c"... | stackv2 | #ifdef NDEBUG
#undef NDEBUG
#endif
#include <unistd.h>
#include <assert.h>
#include <stdio.h>
int main()
{
struct stat s;
assert(access("dummy", R_OK) == -1);
assert(access("dummy", W_OK) == -1);
assert(access("dummy", X_OK) == -1);
assert(access("dummy", F_OK) == -1);
FILE* f = fopen("dummy", "wb");
assert(... | 2.390625 | 2 |
2024-11-19T01:51:08.094962+00:00 | 2017-04-27T01:09:17 | 6252e4e9531f7bc76121cab6fd02ee3c5fa80d3d | {
"blob_id": "6252e4e9531f7bc76121cab6fd02ee3c5fa80d3d",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-27T01:09:17",
"content_id": "6a0b208e36d2240cbf36dd273dcbb2e65b768146",
"detected_licenses": [
"MIT"
],
"directory_id": "c971407d6d5b2071f6ba156445fb271951d39648",
"extension": "c"... | stackv2 | #include <ccan/cast/cast.h>
#include <ccan/crypto/siphash24/siphash24.h>
#include <ccan/tal/tal.h>
#include <daemon/pseudorand.h>
#include <lightningd/htlc_end.h>
size_t hash_htlc_end(const struct htlc_end *e)
{
struct siphash24_ctx ctx;
siphash24_init(&ctx, siphash_seed());
/* peer doesn't move while in this hash,... | 2.046875 | 2 |
2024-11-19T01:51:08.374545+00:00 | 2019-11-27T09:58:11 | 17c38e87a7f5409e1ed5dbf9d125ab6ae38b98fa | {
"blob_id": "17c38e87a7f5409e1ed5dbf9d125ab6ae38b98fa",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-27T09:58:11",
"content_id": "5431ab45da01ec379cdb4ea64195af3a0605863b",
"detected_licenses": [
"MIT"
],
"directory_id": "6ffe9242f620bad7e10e0c1660f9d63f0e145b80",
"extension": "h"... | stackv2 | // Copyright (c) 2019 The CBigbang developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef UINT256_H
#define UINT256_H
#include <stdint.h>
typedef struct uint256_t
{
uint32_t pn[8];
} uint256_t;
int uint256... | 2.03125 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.