added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T21:30:13.309971+00:00 | 2017-10-31T05:14:25 | 8bf421d421bba706f35efa136c8446092b053e37 | {
"blob_id": "8bf421d421bba706f35efa136c8446092b053e37",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-31T05:14:25",
"content_id": "33a1734182602aacd12d08bde7905ab6ec88acd4",
"detected_licenses": [
"MIT"
],
"directory_id": "a0b233852936f9422405c2af1f7279bf9b170886",
"extension": "c"... | stackv2 | #include "DDIL_ExtKey.h"
/**
* Brief:
* The ddil extent ket object[ ddil extkey num].
*/
DDIL_EXTKEY_STRUCT DDIL_extKetObject[DDIL_EXTKEY_NUM] = { 0 };
/*外部按键驱动注册*/
/**
* Function:
* DDIL_ERROR_CODE DDIL_ExtKey_Register(DDIL_EXTKEY_INDEX index, DDIL_ExtKey_Init_FuncPtr init,
* DDIL_ExtKey_GetStatus_FuncPtr ... | 2.34375 | 2 |
2024-11-18T21:30:13.887501+00:00 | 2020-07-31T16:42:59 | bbe4fdbef19d17246c7a05ed0b9a1c9804e10184 | {
"blob_id": "bbe4fdbef19d17246c7a05ed0b9a1c9804e10184",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-31T16:42:59",
"content_id": "d4412f4ca148f61915f4e9c9eb363708efeddd56",
"detected_licenses": [
"MIT"
],
"directory_id": "ca1492484b7b510d974f7a551459f4ea47065305",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <sys/ptrace.h>
#include <sys/user.h>
#include <sys/types.h>
#include <sys/wait.h>
int main(int argc, char *argv[]) {
unsigned long addr;
pid_t cpid = -1; // pid to attach ptrace to
if(argc!=3) {
fprintf(stderr,
... | 2.734375 | 3 |
2024-11-18T21:30:13.947531+00:00 | 2019-07-21T09:56:15 | abaec7725c4513b828aef74a5ebd6f57443c34ff | {
"blob_id": "abaec7725c4513b828aef74a5ebd6f57443c34ff",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-21T09:56:15",
"content_id": "05f1c0188149f4f4ef96eca9d0e20ca21f6ccbf2",
"detected_licenses": [
"MIT"
],
"directory_id": "7f333d455bcfa082ac1a927f1996a4d2a16c0b3e",
"extension": "c"... | stackv2 | /*
Small program to convert Netpbm files to bitmap images.
http://en.wikipedia.org/wiki/Netpbm_format
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "../bmp.h"
static char *pbm_readfile(const char *fname) {
FILE *f;
long len,r;
char *str;
if(!(f = fopen(fnam... | 3.15625 | 3 |
2024-11-18T21:30:14.071129+00:00 | 2010-04-07T05:32:00 | 2cc19b41493413e2ca34e7a80a2cceff8a8029fe | {
"blob_id": "2cc19b41493413e2ca34e7a80a2cceff8a8029fe",
"branch_name": "refs/heads/master",
"committer_date": "2010-04-07T05:32:00",
"content_id": "4441f39c98af38b528855d4d7576796db872a4ad",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4775e6f4bacaa291991bd9cb52eb9beb0ac7d1bf",
"extensio... | stackv2 | #include "wayward/metrics/stdwwm.h"
#include "wayward/metrics/message_queue.h"
#include "wayward/metrics/allocator.h"
#include "wayward/metrics/config.h"
#include "wayward/metrics/thread.h"
// This uses a concurrent queue based on http://www.cs.rochester.edu/u/michael/PODC96.html
// but without the locks since we have... | 2.5 | 2 |
2024-11-18T21:30:14.509780+00:00 | 2021-05-07T17:23:18 | cb2926b52496c9dd734f7d51d074334f2bbc521b | {
"blob_id": "cb2926b52496c9dd734f7d51d074334f2bbc521b",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-07T17:23:18",
"content_id": "3f4beb839b9d12d54ecee6878f55b8693c856155",
"detected_licenses": [
"MIT"
],
"directory_id": "071351a7a15a754acecb28d0a23929485fe5a6b4",
"extension": "c"... | stackv2 | //文件名称: robo_base.c
//对应头文件: robo_base.h
//主要功能:
// 调用motor_system封装的速度环/位置环/看门狗函数, 实现底盘控制
//
//时间:
// 2020/11/27
//
//版本: 2.0V
//
//状态:
// 已初步测试
//
//测试内容:
// 无电机情况下测试成功, 看门狗功能实现, 串口通信正常
//---------头文件引用部分---------//
#include "robo_base.h"
//--------------------------------//
//---------变量声明部分-----------//
ROBO... | 2.46875 | 2 |
2024-11-18T21:30:14.599463+00:00 | 2016-05-30T00:44:07 | ff5bddd08ea5544b9bbe1fd64fdb23cd24684f3b | {
"blob_id": "ff5bddd08ea5544b9bbe1fd64fdb23cd24684f3b",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-30T00:44:07",
"content_id": "f198040a19fb0e61d0987d529387270629e5ca48",
"detected_licenses": [
"MIT"
],
"directory_id": "489b2340f0ef1da50a605efd2ab451303920dbab",
"extension": "c"... | stackv2 | #include "checksum.h"
uint32_t checksum32(uint32_t crc, void* buf, size_t len){
uint64_t sum=0;
uint32_t *buf_uint32=buf;
while(len){
sum+=(*buf_uint32);
buf_uint32++;
len-=4;
}
uint8_t *buf_uint8=(uint8_t *)buf_uint32;
uint32_t remain=0;
size_t i;
for(i=0;i<4;i+... | 2.5 | 2 |
2024-11-18T21:30:15.318961+00:00 | 2020-04-17T19:20:02 | 276ebe38a67491402ee5e6f95f306bd41ac73b02 | {
"blob_id": "276ebe38a67491402ee5e6f95f306bd41ac73b02",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-17T19:20:02",
"content_id": "33e2edc26867feb9122cd7db271dcd10ca4c5a0c",
"detected_licenses": [
"MIT"
],
"directory_id": "b3d708a7f5511c788338b94daec64432833c66d6",
"extension": "c"... | stackv2 | #include <sys/file.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#define filename "mylock"
#define NUM_READERS 5
#define NUM_WRITERS 2
struct context_struct
{
int writer;
int index;
};
ty... | 3.15625 | 3 |
2024-11-18T21:30:15.500101+00:00 | 2018-06-09T12:00:54 | 331349b4fe45692dbf9ef3a0d7a1eb713cef13b9 | {
"blob_id": "331349b4fe45692dbf9ef3a0d7a1eb713cef13b9",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-09T12:00:54",
"content_id": "4cc7b91e8b0ec70c0ac5d27f58088d83f139ed73",
"detected_licenses": [
"MIT"
],
"directory_id": "c249b1ad063f27997954212267beb60f0b722dee",
"extension": "c"... | stackv2 | // Bisacchi Andrea 0000753177
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include "File.h"
//apre un file;
FILE* openFile(char percorso[], char come[]) {
FILE* file;
if ((file = fopen(percorso, come)) == NULL) {
perror("Errore nell'aprire il file!");
exit(1);
}
return file;
}
in... | 2.703125 | 3 |
2024-11-18T21:30:15.850974+00:00 | 2018-06-24T18:26:16 | 4e39bd88260fa8c2bbf1251eb5fc22b29b03d827 | {
"blob_id": "4e39bd88260fa8c2bbf1251eb5fc22b29b03d827",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-24T18:26:16",
"content_id": "6308f010d553ddeb0e0dde86177a01497e8f2d36",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ee4b23a7d3e81ce72e1fafeaac50297bee0ca83d",
"extens... | stackv2 | #import <stdlib.h>
int *merge(int *valuesL, int *valuesR, int nl, int nr) {
int *result = (int *) malloc((nl+nr) * sizeof(int));
int i = 0;
int j = 0;
int k = 0;
while (i < nl && j < nr) {
if (valuesL[i] < valuesR[j]) {
result[k] = valuesL[i];
i++;
} else {
result[k] = valuesR[j];
... | 3.390625 | 3 |
2024-11-18T21:30:16.043812+00:00 | 2018-01-23T09:34:35 | c15ece8815af4476f6b0e74e83eb345c7676ff4f | {
"blob_id": "c15ece8815af4476f6b0e74e83eb345c7676ff4f",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-23T09:34:35",
"content_id": "cd30061fc0ccbe933259b3829ff2261ee2937d39",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a61ff1ebcc142711cecd4104c89e9c1928df9d94",
"extensio... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <linux/ioctl.h>
#include <time.h>
#include <fcntl.h>
#include <string.h>
/* Shutdown message ID */
#define SHUTDOWN_MSG 0xEF56A55A
#define PING 0xEF56A559
#define WRITE_NOW 0xEF56A558
#define MEM_SIZE (sizeof(unsigned long)*1024)
struct _payload {... | 2.609375 | 3 |
2024-11-18T21:30:16.486531+00:00 | 2019-11-15T20:26:20 | 8cce5f50fb53a6faa193a10db4d67278ed8fddad | {
"blob_id": "8cce5f50fb53a6faa193a10db4d67278ed8fddad",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-15T20:26:20",
"content_id": "7400d59648f0cb6e846e517ff598db260b851998",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7c2ea365f20ff3eaec12b7a5289c21f345373d40",
"extens... | stackv2 | /*
*
* sptree.c: The following code implements the basic operations on
* an event-set or priority-queue implemented using splay trees:
*
Hines changed to void spinit(SPTREE**) for use with TQueue.
* SPTREE *spinit( compare ) Make a new tree
* int spempty(); Is tree empty?
* SPBLK *spenq( n, q ) Insert n i... | 2.640625 | 3 |
2024-11-18T21:30:18.007560+00:00 | 2020-12-26T16:46:14 | 556daafc6d4859c2db61f32fd4d25a9750f68547 | {
"blob_id": "556daafc6d4859c2db61f32fd4d25a9750f68547",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-26T16:46:14",
"content_id": "b2d2c8297cde86548fd28506c8ebc475ed9ddf7a",
"detected_licenses": [
"MIT",
"Apache-2.0"
],
"directory_id": "d9f2050f6813bc4a66fcb6458914422343dede23",
... | stackv2 | /* Pointer assignments program */
#include<stdio.h>
#include<assert.h>
#include<stdlib.h>
struct node {
int data;
struct node* next;
};
void append_data(struct node** headRef, int data) {
assert(headRef != NULL);
if (*headRef == NULL) {
*headRef = (struct node*)malloc(sizeof(struct node));
(*headRef)->... | 3.625 | 4 |
2024-11-18T21:30:18.299739+00:00 | 2018-07-16T14:00:39 | 929b121e4f7128ed846a0f00b5572b43729f5e54 | {
"blob_id": "929b121e4f7128ed846a0f00b5572b43729f5e54",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-16T14:00:39",
"content_id": "7c990cab50db1365a8febeb75d716491775e7759",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "22b1d5a4d5f325c5d999adf9337c6aed4c24eb8a",
"extens... | stackv2 | #include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
/* Module config */
typedef struct {
ngx_str_t ed;
} ngx_http_echo_loc_conf_t;
static char *ngx_http_echo(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
static void *ngx_http_echo_create_loc_conf(ngx_conf_t *cf);
static char *ngx_http_echo_merge... | 2.265625 | 2 |
2024-11-18T21:30:19.540746+00:00 | 2017-03-14T23:05:07 | 2c032e4f330b281223f182ddd0e6e7006590221b | {
"blob_id": "2c032e4f330b281223f182ddd0e6e7006590221b",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-14T23:05:07",
"content_id": "526667056578de17a6fe53e5e73c5e83f217aecc",
"detected_licenses": [
"MIT"
],
"directory_id": "e2badd96718c8cfb9a361f4daa37d01385da5cd9",
"extension": "c"... | stackv2 | #include "types.h"
#include "stat.h"
#include "user.h"
int numPasses;
int numThreads;
int currPass = 1;
int holder = 0;
arraylock_t lock;
void passFrisbee(void* arg)
{
int threadnumber = *(int*)arg;
int my_place;
for(;;)
{
//printf(0,"\n\nThread %d acquiring lock\n\n", threadnumber);
arraylock_acquire(&loc... | 2.9375 | 3 |
2024-11-18T21:30:21.440547+00:00 | 2018-04-05T13:45:53 | 659a058bd6b1fe2843e17c8c261c35b789da1572 | {
"blob_id": "659a058bd6b1fe2843e17c8c261c35b789da1572",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-05T13:45:53",
"content_id": "0da69a8f88b522e436f0742dd43e901dd8e63fde",
"detected_licenses": [
"MIT"
],
"directory_id": "2cac6968e748f2a0e5fe3ff127ad31bdfc2202cc",
"extension": "h"... | stackv2 | static const float c_roughnessEpsilon = 0.01f;
static const float c_F0 = 0.04f;
static const float c_pi = 3.14159265359f;
float DistributionGGX(float3 N, float3 H, float roughness)
{
float a = roughness * roughness;
float a2 = a * a;
float NdotH = max(dot(N, H), 0.0);
float NdotH2 = NdotH * NdotH;
... | 2.296875 | 2 |
2024-11-18T21:30:21.661142+00:00 | 2019-01-21T20:31:18 | 931a35096755a3d004b9ec9701bb9718311ba5bd | {
"blob_id": "931a35096755a3d004b9ec9701bb9718311ba5bd",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-21T20:31:18",
"content_id": "7a276a5315a0606e142196ba14c8cc4d7266d6ee",
"detected_licenses": [
"MIT"
],
"directory_id": "e1e7d8dc656aec9ed0f6969ba32f93bcb65bc346",
"extension": "c"... | stackv2 | #include <lpc17xx.h>
#include <stdio.h>
#include <stdbool.h>
#include <RTL.h>
#include "GLCD.h"
#include "game.h"
// Global Variables
uint32_t min_row, min_col;
uint32_t max_row, max_col;
char map[MAX_SCREEN_WIDTH][MAX_SCREEN_LENGTH]; // Temporary
// Tasks
__task void updateDisplay(void);
__task void pollPushButto... | 2.234375 | 2 |
2024-11-18T22:23:37.816942+00:00 | 2021-08-04T13:22:36 | 4e5e28cfeedc698c0eaeb47eb14bc1aa85c5cdb0 | {
"blob_id": "4e5e28cfeedc698c0eaeb47eb14bc1aa85c5cdb0",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-04T13:22:36",
"content_id": "9297bdc9e1a3b1b0a1a3d4e38989ae5889e88893",
"detected_licenses": [
"MIT"
],
"directory_id": "0886915293fb19f899e53080127400fda11571f3",
"extension": "c"... | stackv2 | #include "OscCommon.h"
#include "OscError.h"
/*
* @brief Returns the error message associated with the error code.
*
* Example use:
* @code
* OscMessage oscMessage;
* const OscError oscError = OscMessageInitialize(&oscMessage, "/example/address/pattern");
* printf(OscErrorGetMessage(oscError));
* @endcode
*
... | 2.421875 | 2 |
2024-11-18T22:23:38.048087+00:00 | 2019-01-09T21:56:56 | fd97ca6e5effeb66ac107ea1d0aa73f1c3e8d86e | {
"blob_id": "fd97ca6e5effeb66ac107ea1d0aa73f1c3e8d86e",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-09T21:56:56",
"content_id": "aecb044624cd968e86c6f4468166e9d29b64649d",
"detected_licenses": [
"MIT"
],
"directory_id": "627fae9e6a2cc3c6bc199797ab675ff5429a1894",
"extension": "c"... | stackv2 | /* Copyright (c) 2014 Vyacheslav Slinko
*
* 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, publ... | 2.328125 | 2 |
2024-11-18T22:23:38.778905+00:00 | 2018-09-22T03:33:15 | 477daa6e8dd27bf42b4e14700ff07d21e4a97706 | {
"blob_id": "477daa6e8dd27bf42b4e14700ff07d21e4a97706",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-22T03:33:15",
"content_id": "6fb36abdf7b68b31f65624b244b8e924168c8e6f",
"detected_licenses": [
"MIT"
],
"directory_id": "ee24ba563cf8d7c5bb8c95ae8e10233b476b97cf",
"extension": "h"... | stackv2 | #ifndef _MATRIX4x4_SSE_
#define _MATRIX4x4_SSE_
#include "Vector4_SSE.h"
//
//class Matrix4x4SSE;
//
//__declspec(align(16)) extern Matrix4x4SSE g_MatrixSSE_Identity;
//__declspec(align(16)) extern Vector4SSE g_VectorSSE_quat2mat_x0;
//__declspec(align(16)) extern Vector4SSE g_VectorSSE_quat2mat_x1;
//__declspec(align... | 2.09375 | 2 |
2024-11-18T22:23:40.100251+00:00 | 2019-07-12T16:37:54 | 247b5601ce98354eb12b3135bd25d6d2ba497c9c | {
"blob_id": "247b5601ce98354eb12b3135bd25d6d2ba497c9c",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-12T16:37:54",
"content_id": "831d24356850b9441ee8cda0705b7d7f30889b50",
"detected_licenses": [
"MIT"
],
"directory_id": "d0a1a7e976ed24bef51b3722b4eb1a9dcc74a6a0",
"extension": "h"... | stackv2 | #include "../Configuration.h"
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
enum {
shaSuccess = 0,
shaNull, /* Null pointer parameter */
shaInputTooLong, /* input data too long */
shaStateError, /* called Input after FinalBits or Result */
shaBadParam /* passed a... | 2.40625 | 2 |
2024-11-18T22:23:40.292343+00:00 | 2020-05-18T17:08:01 | 9be85b02176cb8ec6ae48dad1121937bb4ec8c92 | {
"blob_id": "9be85b02176cb8ec6ae48dad1121937bb4ec8c92",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-18T17:08:01",
"content_id": "3df05a21890a6d7e69af1904861c1233e6c7c9e2",
"detected_licenses": [
"MIT"
],
"directory_id": "81aeb6e88d8931161506a3afc3a02a6738ac3697",
"extension": "c"... | stackv2 | #include "data.h"
static char *data_names = NULL;
Data *init_data(const char *const buffer) {
char *buf = NULL, *token1, *save1, *token2, *save2;
size_t size_line = 0, size_col = 0;
Data *data = NULL;
buf = malloc(strlen(buffer) * sizeof(char));
if (buf == NULL) {
fprintf(stderr, "Memory ... | 2.78125 | 3 |
2024-11-18T22:23:40.619800+00:00 | 2014-08-02T18:37:04 | 8aa3b93de434bc9762628e06424fac46cd69796d | {
"blob_id": "8aa3b93de434bc9762628e06424fac46cd69796d",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-02T18:37:04",
"content_id": "30cdb08933563551fcec54be50dadb7422a7a608",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b6759b04c7ef6405655a7501270e94d20c72e26c",
"extensio... | stackv2 | /* This file was autogenerated. All changes will be undone. */
/* Message: Ping, ID: 0002*/
#ifndef _PING_H_
#define _PING_H_
#include <marshal.h>
#include <message.h>
typedef struct {
float64_t timestamp;
} ping_t;
msg_offset pack_ping(
ping_t* ping,
msg_offset offset);
msg_offset unpack_ping(
msg_of... | 2 | 2 |
2024-11-18T22:23:40.802351+00:00 | 2020-08-06T08:12:04 | 36186e30af465c12c2d9c149ca229fff0263ef25 | {
"blob_id": "36186e30af465c12c2d9c149ca229fff0263ef25",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-06T08:12:04",
"content_id": "a8c57c643da63593de71f7a7af566ead2423f05a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c15b4f7311e4df224de3ed7765cca0647984664c",
"extens... | stackv2 | #include <errno.h>
#include "shell.h"
#include "source.h"
void unget_char(struct source_s *src)
{
if(src->curpos < 0)
{
return;
}
src->curpos--;
}
char next_char(struct source_s *src)
{
if(!src || !src->buffer)
{
errno = ENODATA;
return ERRCHAR;
}
if(src->curp... | 2.875 | 3 |
2024-11-18T22:23:43.211994+00:00 | 2017-01-09T10:21:29 | 47cff235420ab662811100278def721077a0d728 | {
"blob_id": "47cff235420ab662811100278def721077a0d728",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-09T10:21:29",
"content_id": "923566ece2c0067aa78036cf44b249a9a4e53a36",
"detected_licenses": [
"MIT"
],
"directory_id": "56240fc4712d9d2b3147d9281c0f4cb5ccae216c",
"extension": "h"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
float accountBalance, amount;
void initalizeAccount();
void getBalance(void);
void askCustomer(void);
void updateAccount(float amount);
void addGift(float giftAmount);
void thankYou(void);
void initalizeAccount(){
accountBalance = 0.0;
}
void addGift(float giftAmount){
ac... | 3.046875 | 3 |
2024-11-18T22:23:43.274705+00:00 | 2018-11-21T13:04:09 | 3e34b22eab5a940a07a52b8b6525d07a56793e72 | {
"blob_id": "3e34b22eab5a940a07a52b8b6525d07a56793e72",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-21T13:04:09",
"content_id": "e721ce361c948a05cf9c4ca92ee4cd7d60ddcaef",
"detected_licenses": [
"MIT"
],
"directory_id": "cf6c5cde3a8d24891bd95887ad47867394490c17",
"extension": "c"... | stackv2 | //----------------------------------------------------------
// AUTEUR : REYNAUD Nicolas |
// FICHIER : verification.c |
// DATE : 08/02/15 |
//----------------------------------------------------------
#include <s... | 2.59375 | 3 |
2024-11-18T22:23:43.336817+00:00 | 2019-05-07T22:50:34 | cad8d3b651068518bf505de9962a2545ce554274 | {
"blob_id": "cad8d3b651068518bf505de9962a2545ce554274",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-07T22:50:34",
"content_id": "54036f276152d384d8c3a6fb36f793d8dd5c58e8",
"detected_licenses": [
"MIT"
],
"directory_id": "075d1c91268025e5428e2690cb06197723b3032f",
"extension": "c"... | stackv2 | #include <avr/io.h>
#include <avr/cpufunc.h>
#include <avr/interrupt.h>
/*
* Constantes utilizadas no código
*/
/*
* Definição de funções
*/
void setup_timer0(void)
{
/*
* Para as macros abaixo e outras, veja o arquivo
* /usr/lib/avr/include/avr/iom328p.h
*/
OCR0A = 250;
TCCR0A =... | 2.578125 | 3 |
2024-11-18T22:23:43.817710+00:00 | 2020-04-02T13:45:02 | 0421facd62a8b430826ec0ed2ca680c65294c826 | {
"blob_id": "0421facd62a8b430826ec0ed2ca680c65294c826",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-02T13:45:02",
"content_id": "469eed81f476982111f6739ea54b85730c119696",
"detected_licenses": [
"MIT"
],
"directory_id": "56db76294cce4686c7109fc3f3bb5693978aee33",
"extension": "c"... | stackv2 | #include "common.h"
#include <fcntl.h>
#include <sys/epoll.h>
static int inputfd;
int inputopen(int epollfd) {
struct epoll_event ev;
inputfd = open(settings.input, O_RDONLY);
if (inputfd == ERR) {
return ERR;
}
ev.events = EPOLLIN;
ev.data.fd = inputfd;
if (epoll_ctl(epollfd, ... | 2.203125 | 2 |
2024-11-18T22:23:43.896162+00:00 | 2018-05-16T05:20:52 | 92aa39141f421dcb7d5921ff8ca0b8d9696efd47 | {
"blob_id": "92aa39141f421dcb7d5921ff8ca0b8d9696efd47",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-16T05:20:52",
"content_id": "c534bb553310c4ee7c7fa8b865c5f578b0263528",
"detected_licenses": [
"MIT"
],
"directory_id": "cbc5bd74d2f92a4b6eee4fc1474d02ac635f56b0",
"extension": "c"... | stackv2 | #include "mm.h"
// NOTE: Implementation reference: "Min-Max Heaps and Generalized Priority Queues"
// (Atkinson, et. al)
// http://www.akira.ruc.dk/~keld/teaching/algoritmedesign_f03/Artikler/02/Atkinson86.pdf
static int getDepth(Position pos);
static void percolateUpMin(Position pos, MinMaxHeap H);
static void perco... | 3.40625 | 3 |
2024-11-18T22:23:43.956814+00:00 | 2021-07-03T13:13:15 | 8d87f3f12585704462066b830e7d5f8afddbdab1 | {
"blob_id": "8d87f3f12585704462066b830e7d5f8afddbdab1",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-03T13:13:15",
"content_id": "c5aa2dc19ed1cf8685eebd1809e19f331b261cb9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "76d50404956852a0cebe6977f740dfae78623faf",
"extension"... | stackv2 | #include <stdio.h>
#include <math.h>
int main(int argc, char const *argv[])
{
double x;
scanf("%lf", &x);
printf("%d\n", (int)ceil(x/5));
return 0;
} | 2.203125 | 2 |
2024-11-18T22:23:44.564031+00:00 | 2014-01-13T06:30:35 | d7a1cf047d6bbf3b8b2bb2f229ef36760fee7a78 | {
"blob_id": "d7a1cf047d6bbf3b8b2bb2f229ef36760fee7a78",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-13T06:30:35",
"content_id": "c107f91b70c60a26c1a8d6b91d4bfb3f32717d8b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "eddfd9a2a577a48d80d857d214374485955d863f",
"extens... | stackv2 | /**
*******************************************************************************
* @file sem.c
* @version V1.1.4
* @date 2011.04.20
* @brief Semaphore management implementation code of CooCox CoOS kernel.
*******************************************************************************
* ... | 2.78125 | 3 |
2024-11-18T22:23:45.431624+00:00 | 2016-07-31T00:09:39 | 755d897c8f63218fe2b49ff0b882099f18c35e90 | {
"blob_id": "755d897c8f63218fe2b49ff0b882099f18c35e90",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-31T00:09:39",
"content_id": "702b39c99db78f19fecce90b7989276ab6c65eb1",
"detected_licenses": [
"MIT"
],
"directory_id": "e4ebe115cdc36af922f32fdeb0636ecf1b066100",
"extension": "c"... | stackv2 | // Author: Emmanuel Odeke <odeke@ualberta.ca>
#include <stdlib.h>
#include <pthread.h>
#include "RTrie.h"
#include "HashMap.h"
inline HashMap *allocHashMap(void) {
return (HashMap *)malloc(sizeof(HashMap));
}
inline HashMap *newHashMap(const UInt base) {
HashMap *hm = allocHashMap();
assert((hm != NULL)... | 2.875 | 3 |
2024-11-18T22:23:45.497924+00:00 | 2020-03-06T12:46:01 | 2b0ad5f5b21446bab5cdc00ce803d756129e6441 | {
"blob_id": "2b0ad5f5b21446bab5cdc00ce803d756129e6441",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-06T12:46:01",
"content_id": "73cfc5fe8b92eb1c78aba9c25f610780b139f11c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "ab8fc6dc5ec52a03d3b947eaef6e4c9bb054823c",
"extens... | stackv2 | #include "usart1.h"
#include "gpio.h"
/* USER CODE BEGIN 0 */
uint8_t USART_RX_BUF[USART_REC_LEN]; //接收缓冲,最大USART_REC_LEN个字节.
//接收状态
//bit15, 接收完成标志
//bit14, 接收到0x0d
//bit13~0, 接收到的有效字节数目
uint16_t USART_RX_STA=0; //接收状态标记
/* USER CODE END 0 */
UART_HandleTypeDef huart1;
extern UART_HandleTypeDef huart2;
/... | 2.484375 | 2 |
2024-11-18T22:23:45.557243+00:00 | 2017-05-05T02:27:46 | 00630d6bc76cb31386a8dc0674dbcafbfef711c9 | {
"blob_id": "00630d6bc76cb31386a8dc0674dbcafbfef711c9",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-05T02:27:46",
"content_id": "872be6e0e519655ed0d00b13ac1544c328b23852",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "f4f1a909aeb89e13ec61794e4341dacb85c6fb94",
"extens... | stackv2 | /**
* @file menu.c
* @brief Menu and MenuItems library defines
* @author August Valera (avalera)
* @version
* @date 2017-02-28
*/
// TODO: Implement menus with stack memory instead of malloc()
#ifndef _HA_MENU_
#define _HA_MENU_
#include "halib.h"
#include "lcd.h"
#define MENU_MAXLEN 32
#define MENU_WRAP true... | 2.015625 | 2 |
2024-11-18T22:23:46.696741+00:00 | 2016-09-23T21:49:33 | 086c8b9165f79f633559cb0adac980e897bf8d6e | {
"blob_id": "086c8b9165f79f633559cb0adac980e897bf8d6e",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-23T21:49:33",
"content_id": "405ef5d17d917e48ac01c97e359e7bf3c1fe430a",
"detected_licenses": [
"Unlicense"
],
"directory_id": "8dc4fda86cd76862a5cef736dc67cb60a2def90d",
"extension... | stackv2 | /**
* Touhou Community Reliant Automatic Patcher
* Main DLL
*
* ----
*
* Hot-repatching.
*/
#include "thcrap.h"
#include "repatch.h"
/**
* This module monitors all patches for external changes to their files, then
* calls all "repatch" module functions if there have been any.
*
* Windows provide... | 2 | 2 |
2024-11-18T22:23:47.139861+00:00 | 2019-11-03T12:28:44 | 42a98c167c5ea49842aec9b884ecca738fa36cca | {
"blob_id": "42a98c167c5ea49842aec9b884ecca738fa36cca",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-03T12:28:44",
"content_id": "91ce05f14246331619b796fc501a69949b8e1c66",
"detected_licenses": [
"MIT"
],
"directory_id": "72901bd8391d8f6fd1a7f8c34075e7f42eafff16",
"extension": "h"... | stackv2 | #pragma once
#include <stdbool.h>
#include "types.h"
#include "memory.h"
#include "interop.h"
typedef struct CPU
{
bool halted;
//Registers
DWORD ar1;
DWORD ar2;
DWORD ar3;
DWORD ar4;
DWORD ar5;
DWORD ip;
DWORD bp;
DWORD sp;
DWORD sb;
float fr1;
float fr2;
float fr3;
float fr4;
float fr5;
DWO... | 2.078125 | 2 |
2024-11-18T22:23:47.387970+00:00 | 2023-03-28T18:38:38 | 7e01ca8db44e56e3858cf0869a205b255f5dff67 | {
"blob_id": "7e01ca8db44e56e3858cf0869a205b255f5dff67",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-28T18:38:38",
"content_id": "99e6e5d22ac04479cf4a45c4fbf77bb4496477b6",
"detected_licenses": [
"MIT"
],
"directory_id": "4d54680efc2f8eb89031096378f46f965ec4753f",
"extension": "c"... | stackv2 | /**
* \file src_hops.c
* \author François Grondin <francois.grondin2@usherbrooke.ca>
* \version 2.0
* \date 2018-03-18
* \copyright
*
* 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 Softwar... | 2.109375 | 2 |
2024-11-18T22:23:47.629797+00:00 | 2016-11-03T15:27:18 | cb158e4ddf0ce4e81efa26d1352aae821df9b31f | {
"blob_id": "cb158e4ddf0ce4e81efa26d1352aae821df9b31f",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-03T15:27:18",
"content_id": "647c83c592d20a2a3860c18574fcc1abedff58a8",
"detected_licenses": [
"MIT"
],
"directory_id": "4bad17ae6d01fccbbb20c1f6eb327070138f8cf4",
"extension": "c"... | stackv2 | /**
* 文件系统调用(由 Linux/Unix 直接提供)方法:
*
* open / read / write / close / ioctl
* lseek / fstat / stat / lstat / dup / dup2
*
* 1、执行系统调用时,Linux 必须从用户态切换到内核态;
* 2、硬件会限制对底层系统调用一次所能读写的数据块大小;
*
* 三种文件描述符:0 / 1 / 2
* 对应标准库中的:stdin / stdout / stderr
*
* 标准I/O库方法:
*
* fopen / fread / fwrite / fclose
* fflush / fsee... | 2.78125 | 3 |
2024-11-18T22:23:47.761336+00:00 | 2020-09-07T21:28:52 | 86e6bf2a1e6f2d0854a8490d177ac5481027cb75 | {
"blob_id": "86e6bf2a1e6f2d0854a8490d177ac5481027cb75",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-07T21:28:52",
"content_id": "0897e9347b84d34d4f999e599f80cac5cb2a8c02",
"detected_licenses": [
"MIT"
],
"directory_id": "a1dc793c7a5a21caa9747e21998ebdda05af7083",
"extension": "h"... | stackv2 | #pragma once
#include "Base/Angle.h"
#include "Base/Macros.h"
#include "Game/DoomDefines.h"
struct line_t;
struct mobj_t;
// Point in a map (2d coords)
struct vertex_t {
Fixed x;
Fixed y;
};
// The same as 'vertex_t', except in floating point format
struct vertexf_t {
float x;
float y;
};
// Vector... | 2.34375 | 2 |
2024-11-18T22:23:47.830970+00:00 | 2020-04-17T00:22:40 | e94a26ffc6a30940c51e41de593dbc7d251764e6 | {
"blob_id": "e94a26ffc6a30940c51e41de593dbc7d251764e6",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-17T00:22:40",
"content_id": "e0c9170bd64b4d0584b658b5d1dbcd7fd3b0300d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a559503e31dbc2a8833fb2af33d9b8596974d6ca",
"extensio... | stackv2 | /*
* Copyright 2018
*
* \author <scott.wales@unimelb.edu.au>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 2.078125 | 2 |
2024-11-18T22:23:47.963553+00:00 | 2019-09-12T11:49:48 | b9b07c6efeb0e6dff69eb0dc43bf3e3e46d14aa2 | {
"blob_id": "b9b07c6efeb0e6dff69eb0dc43bf3e3e46d14aa2",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-12T11:49:48",
"content_id": "3edcd2d3f44cc27577998751efd1a762bb3e1878",
"detected_licenses": [
"MIT"
],
"directory_id": "d1346e5e55242697ca22e602519b2220c25054a1",
"extension": "h"... | stackv2 | #ifndef OPENGL_H
#define OPENGL_H
#if defined(__APPLE__)
#define GLFW_INCLUDE_GLCOREARB
#endif
#include <GLFW/glfw3.h>
// IMGUI
struct InternalImGuiState
{
char glsl_version_string[32] = "";
GLuint font_texture = 0;
GLuint shader_handle = 0;
GLuint vert_handle = 0;
GLuint frag_handle = 0;
i3... | 2.0625 | 2 |
2024-11-18T22:23:48.029706+00:00 | 2022-02-16T23:16:25 | 8c9d51bff5104c908a87d946609226c72b2aa4dd | {
"blob_id": "8c9d51bff5104c908a87d946609226c72b2aa4dd",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-16T23:16:25",
"content_id": "b82b598a1cd1464cc1124046106e20f611c3f64c",
"detected_licenses": [
"Zlib"
],
"directory_id": "38eabc5e53c62428f130f6cfa0bba04bd4e6b857",
"extension": "h... | stackv2 | /*
* ObjectivelyMVC: Object oriented MVC framework for OpenGL, SDL2 and GNU C.
* Copyright (C) 2014 Jay Dolan <jay@jaydolan.com>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*... | 2.109375 | 2 |
2024-11-18T22:23:48.428556+00:00 | 2023-07-01T22:47:53 | 61995de17e1002e126e9376b9289207c107daa4a | {
"blob_id": "61995de17e1002e126e9376b9289207c107daa4a",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-01T22:47:53",
"content_id": "775f63735e1770fd6b69fda95b8265208c65a744",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ddd07c7d6573be0e633356c0aaa2c3e03f06e395",
"extensio... | stackv2 | #ifndef __INTERRUPT_IN_H
#define __INTERRUPT_IN_H
#ifdef __cplusplus
extern "C" {
#endif
#include "pin_defs.h"
typedef enum {
INTERRUPT_RISING = GPIO_MODE_IT_RISING,
INTERRUPT_FALLING = GPIO_MODE_IT_FALLING,
INTERRUPT_RISING_FALLING = GPIO_MODE_IT_RISING_FALLING
} interrupt_mode;
/** Configures GPIO pin... | 2.515625 | 3 |
2024-11-18T22:23:48.855692+00:00 | 2020-04-30T13:24:42 | 4c7b9e91f98744cb212090bfba99adea34a2586e | {
"blob_id": "4c7b9e91f98744cb212090bfba99adea34a2586e",
"branch_name": "refs/heads/main",
"committer_date": "2020-04-30T13:24:42",
"content_id": "9feea76ce7adf1242c0772103cd201c45ce080f0",
"detected_licenses": [
"MIT"
],
"directory_id": "4d73c93fda9e9dbd0cb110b7670e7a813b6466e0",
"extension": "c",
... | stackv2 | #include <gtk/gtk.h>
#include <libxfce4util/libxfce4util.h>
#include <libxfce4panel/libxfce4panel.h>
#include <mjson/mjson.h>
#include "utils.h"
#include "watson.h"
/**
* config_path
* -----------
* Returns a NULL terminated string with the path to the watson
* configuration directory. The returned string must b... | 2.140625 | 2 |
2024-11-18T22:23:49.384928+00:00 | 2006-02-24T03:01:30 | 801b5c4cee2c224a92c70825c8debea3b54653d3 | {
"blob_id": "801b5c4cee2c224a92c70825c8debea3b54653d3",
"branch_name": "refs/heads/master",
"committer_date": "2006-02-24T03:01:30",
"content_id": "58003b06404d0b8faab83891abd142fb1e809918",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a042a384d78421588e814054727f16ab0cc0faec",
"extens... | stackv2 | /*
*
* Copyright (C) 2003 Vee Satayamas
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain the above
* copyright notice, this... | 2.28125 | 2 |
2024-11-18T22:23:49.598961+00:00 | 2018-10-08T02:03:43 | 0bc43418a72c84a34e2d40149ec63ac4aa0b30e7 | {
"blob_id": "0bc43418a72c84a34e2d40149ec63ac4aa0b30e7",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-09T02:45:53",
"content_id": "2c8adb7c65f2b0efa2a05b6a497c4c82936efdc6",
"detected_licenses": [
"MIT"
],
"directory_id": "e0b181ba95bf4691394d969fa3c01322212a57b0",
"extension": "c"... | stackv2 | #include "_pwd.h"
#include <paths.h> // for _PATH_PASSWD
#include <values/NULL.h>
// FIXME: split in 3 files?
static parse_state_t state;
void setpwent(void)
{
if (state.buf)
state.ptr = state.buf;
else
__libc_parse_start(_PATH_PASSWD, &state);
}
void endpwent(void)
{
__libc_parse_finish(&state);
}
struct... | 2.15625 | 2 |
2024-11-18T22:23:49.787568+00:00 | 2020-09-20T18:49:07 | 84980e09f86143335112d7adf375ba4aef3d36e6 | {
"blob_id": "84980e09f86143335112d7adf375ba4aef3d36e6",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-20T18:49:07",
"content_id": "89e8d5d00df17d3a3e1c37a286d5c1c3aaf812b8",
"detected_licenses": [
"MIT"
],
"directory_id": "50e52e20bbb3b80d57d4bf398bedb61c40c17e98",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <conio.h>
#include <locale.h>
#include <stdlib.h>
char estciv;
main()
{
setlocale(LC_ALL,"");
INICIO:
system ("color 70");
system("cls");
printf("\n\n\n\n\t\t\tforneša o estado civil");
printf("\n\n\n\t\t\t\[c] = casado");
printf("\n\n\n\t\t\t\[s] = solteiro");
printf("\n\n\n\... | 2.8125 | 3 |
2024-11-18T22:23:50.130316+00:00 | 2019-12-30T13:43:35 | 1f464e2d18a3a5cdb6f5451b71d5877e383112c5 | {
"blob_id": "1f464e2d18a3a5cdb6f5451b71d5877e383112c5",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-30T13:43:35",
"content_id": "46c4a9d96340fdbcd7215ca90399a5f26eb2fbf3",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "1dd397fa88b66877c669711f8a479c2fe61de440"... | stackv2 | //http://www.ibm.com/developerworks/java/library/j-jtp04186/index.html
//Listing 2. A nonblocking counter using CAS
#define __VERIFIER_atomic_CAS(v, e, u, r, flag) \
{ \
__CPROVER_atomic_begin(); \
if(*v == e) \
{ \
*flag = 1, *v = u, *r = 1; \
} \
else \
{ \
*r = 0; \
} \
__CPROVER_atomic_end() ; \
}
v... | 2.953125 | 3 |
2024-11-18T22:23:50.188731+00:00 | 2017-10-11T16:40:49 | cae31d5d9c43e1b579d0fdeab6517ba5769999c0 | {
"blob_id": "cae31d5d9c43e1b579d0fdeab6517ba5769999c0",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-11T16:40:49",
"content_id": "af12d6c07989c5ab3b956addf0ed1c48b49a4a03",
"detected_licenses": [
"Apache-2.0",
"MIT"
],
"directory_id": "6c301b3172a883ecd0587d31020e4f7b42bf288e",
... | stackv2 | #include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "api/keys.h"
#include "api/crypto.h"
#include <wolfssl/options.h>
#define WOLFSSL_AES_COUNTER
#define WOLFSSL_AES_DIRECT
#include <wolfssl/wolfcrypt/aes.h>
#include <wolfssl/wolfcrypt/sha256.h>
#define USE_WOLF_SHA
#ifndef USE_W... | 2.515625 | 3 |
2024-11-18T22:23:51.164738+00:00 | 2020-01-29T13:25:31 | b650b94aee01b9e1fec772ab9229135894193b56 | {
"blob_id": "b650b94aee01b9e1fec772ab9229135894193b56",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-29T13:25:31",
"content_id": "4277bb825096f51d4064cfe17dba153bf11421bd",
"detected_licenses": [
"MIT"
],
"directory_id": "28072067ba17e990b2f442297f544b3c0e067d35",
"extension": "c"... | stackv2 | #include<stdio.h>
#define size 100
struct stack
{
int a[size];
int top;
};
struct stack s;
void push();
void pop();
void display();
void isempty();
void isfull();
int main()
{
int ch=99;
s.top=-1;
while(ch!=0)
{
printf("\n1.pushing \n2.popping \n3.display \n0.exit \n");
scanf(... | 3.75 | 4 |
2024-11-18T22:23:52.877271+00:00 | 2009-08-23T20:23:41 | 5c43733dcc4700add009ff5b34825ab4f9eca5a1 | {
"blob_id": "5c43733dcc4700add009ff5b34825ab4f9eca5a1",
"branch_name": "refs/heads/master",
"committer_date": "2009-08-23T20:23:41",
"content_id": "8d3d0815240e8bd7a94d17c0cbd5118bd08a8ca5",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f6b07febbc266f90e22c228de88214fe496b9eaf",
"extens... | stackv2 | #include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "plugin.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#define SOCK_PATH "../../soc... | 2.046875 | 2 |
2024-11-18T22:23:53.086914+00:00 | 2015-02-11T17:46:49 | a2a42409102db7941979cb316a30aaa3003a6c32 | {
"blob_id": "a2a42409102db7941979cb316a30aaa3003a6c32",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-11T17:46:49",
"content_id": "ebabf49bebc765e6727e68cb20440e7a5c8ed3d5",
"detected_licenses": [
"MIT"
],
"directory_id": "7e8572ca863a894946981793de1e0ff8acf32673",
"extension": "c"... | stackv2 | #include "fifo.h"
void fifo_init( FIFO *fifo, void *data, size_t data_size, size_t pad, size_t length )
{
/* 初期化とフラッシュ */
fifo->data = data;
fifo->data_size = data_size;
fifo->length = length;
fifo->pad = pad;
fifo->end = data + ( length - 1 ) * ( pad + data_size );
fifo... | 3.09375 | 3 |
2024-11-18T22:23:53.148012+00:00 | 2019-12-09T07:20:01 | 097997cfe45ada23394bf653b003705e66822237 | {
"blob_id": "097997cfe45ada23394bf653b003705e66822237",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-09T07:20:01",
"content_id": "48d001f585d34967d607463f3951c9d0efa3b7c6",
"detected_licenses": [
"MIT"
],
"directory_id": "1aef565eaa1c3cebc1876a72bbb741ef7c5014dc",
"extension": "c"... | stackv2 | //
// Created by guoxi on 2019/11/1.
//
#include <stdio.h>
#include <string.h>
#include "libserialport.h"
#include <windows.h>
const char *desired_port = "COM3";
struct sp_port *port;
enum sp_return;
void list_ports() {
int i;
struct sp_port **ports;
enum sp_return error = sp_list_ports(&ports);
if (... | 2.84375 | 3 |
2024-11-18T22:23:54.443557+00:00 | 2018-12-18T09:00:51 | a52fa17bf3b27e936763871eaba52e64c0e76d33 | {
"blob_id": "a52fa17bf3b27e936763871eaba52e64c0e76d33",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-18T09:00:51",
"content_id": "df2c14b30b92f09dcb8b0a608f6247fd0c4429b1",
"detected_licenses": [
"MIT"
],
"directory_id": "d55b1559b106f561c3ea475e93c2ecc06849fdd1",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "common.h"
#include "display.h"
#include "util.h"
char *readFile(const char *path) {
FILE *file = fopen(path, "rb");
if(file == NULL) {
perr("Could not open file \"%s\".\n", path);
return NULL;
}
fseek(file, 0L, SEEK_END);
size_t fileSize = ftell(file);
rewind(file);
char *bu... | 2.6875 | 3 |
2024-11-18T22:23:58.097777+00:00 | 2017-06-21T17:18:32 | c8568e00e5e9b6550e042fc0387dbbbcc09f9b34 | {
"blob_id": "c8568e00e5e9b6550e042fc0387dbbbcc09f9b34",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-21T17:18:32",
"content_id": "a71fbdc706f36a72009298f81889ae4994227655",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5e7f6461f1677a5fa449b6abd7f4a735f864e5dd",
"extensio... | stackv2 | /*
ozdevguy | C General Libraries
Copyright 2016 Bobby Crawford (ozdevguy)
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 applic... | 2.171875 | 2 |
2024-11-18T22:23:58.183924+00:00 | 2018-02-27T21:01:13 | 736845cc1a40fd1f508d2bb85833f3de80f74411 | {
"blob_id": "736845cc1a40fd1f508d2bb85833f3de80f74411",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-27T21:01:13",
"content_id": "2765d796fd08abe6e76735967e24d422b9249a01",
"detected_licenses": [
"MIT"
],
"directory_id": "0b405ce28e7a7fb243676fc72e1d066c466a0c33",
"extension": "c"... | stackv2 | #define _XOPEN_SOURCE // This is required to compile cross-platform
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "capshift.h"
#include "debug.h"
#define SWVERSION "v0.3 beta"
#define SWRELEASEDATE "February 2018"
#define DEBUG 0
// capshift (pCAP time SHIFT) shifts the tim... | 2.703125 | 3 |
2024-11-18T22:23:58.683264+00:00 | 2019-09-27T21:47:32 | 92dac8c843087de0e6a953a901beebb79f144c86 | {
"blob_id": "92dac8c843087de0e6a953a901beebb79f144c86",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-27T21:47:32",
"content_id": "f025f3bce5982d7add7fdc5d605d4eda81f33b99",
"detected_licenses": [
"MIT"
],
"directory_id": "f63531f304d705679a3d150bdc9d6ea6431f603e",
"extension": "c"... | stackv2 | #include <stdio.h>
main ()
{
float base, h, area;
printf("escreva a base do triangulo: ");
scanf("%f",&base);
printf("escreva a altura do triangulo: ");
scanf("%f",&h);
area=(base*h);
{
printf("Resultado%.0f",area);
}
}
| 2.28125 | 2 |
2024-11-18T22:23:59.303728+00:00 | 2023-01-30T10:03:23 | a978a457318901988142097972e80e071ace3ac6 | {
"blob_id": "a978a457318901988142097972e80e071ace3ac6",
"branch_name": "refs/heads/main",
"committer_date": "2023-01-30T10:03:23",
"content_id": "cc86634beff081175e6c83a2677a546f25592ba7",
"detected_licenses": [
"MIT"
],
"directory_id": "d0dc556f8b1d18ecbadef182bafd97b632dd3104",
"extension": "c",
... | stackv2 | /**
* @file i2cdev.c
*
* ESP-IDF I2C master thread-safe functions for communication with I2C slave
*
* Copyright (C) 2018 Ruslan V. Uss <https://github.com/UncleRus>
*
* MIT Licensed as described in the file LICENSE
*/
#include <string.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <esp_l... | 2.703125 | 3 |
2024-11-18T22:24:05.855331+00:00 | 2022-06-13T19:31:23 | 34443b0447c5816a981775d234a1b4a66bd0b75e | {
"blob_id": "34443b0447c5816a981775d234a1b4a66bd0b75e",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-13T19:31:23",
"content_id": "a80d6fc61b5e796caa0f8b4540b2913f95b701f4",
"detected_licenses": [
"MIT"
],
"directory_id": "84a6c6f1dfb1f6bab21375c7ce8cee2528af7f4b",
"extension": "c"... | stackv2 | #include "mpi.h"
#include "nxtval.h"
#include <stdio.h>
int main( int argc, char *argv[] )
{
MPI_Comm counter_comm, worker_comm;
MPI_Init( &argc, &argv );
MPE_Counter_create( MPI_COMM_WORLD, &worker_comm, &counter_comm );
if (worker_comm != MPI_COMM_NULL) {
/* I am one of the workers; the master doesn't... | 2.765625 | 3 |
2024-11-18T22:24:05.938313+00:00 | 2020-09-26T17:07:25 | e64095c3247e5ae60f9d7c09be5e0c1ba9b8b64e | {
"blob_id": "e64095c3247e5ae60f9d7c09be5e0c1ba9b8b64e",
"branch_name": "refs/heads/main",
"committer_date": "2020-09-26T17:07:25",
"content_id": "d4c40a1a3c83b5e0ba85f626aec318f32890a9f7",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "9a6f2c81e0310f877064e2f064e6149fa3840878",
"extensio... | stackv2 | #include <stdio.h>
int main(void)
{
// (a)
static int s;
printf("s: %d\n", s); // no warning, already initialized
int t;
printf("t: %d\n", t); // warning: variable 't' is uninitialized
return 0;
}
| 2.78125 | 3 |
2024-11-18T22:24:06.255481+00:00 | 2018-10-27T12:57:55 | a2af87e0dab7daa8a11abe7bcc3d434e899a3b1f | {
"blob_id": "a2af87e0dab7daa8a11abe7bcc3d434e899a3b1f",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-27T12:57:55",
"content_id": "ffff3926df85877000b24ad31680d6684c736b9d",
"detected_licenses": [
"MIT"
],
"directory_id": "3f7bf2a08e4c8f75b190a6d88a363bc9dda4c258",
"extension": "c"... | stackv2 | #include "smmastmatcher.h"
#include <assert.h>
static const char* NODES_DONT_MATCH = "Node kinds don't match";
static const char* NODES_TYPES_DONT_MATCH = "Node's types don't match";
static const char* NODES_REPRS_DONT_MATCH = "Nodes representations don't match";
static void processStatement(CuTest* tc, PSmmAstNode e... | 2.328125 | 2 |
2024-11-18T22:24:06.340458+00:00 | 2016-04-12T14:59:53 | e33d3c9074d7ff81968dc5f3a5281da5140dde40 | {
"blob_id": "e33d3c9074d7ff81968dc5f3a5281da5140dde40",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-12T14:59:53",
"content_id": "8c0d31e2b4d573872e906df41046782402004f96",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6beb664cff08e5875853f22441fadf0879e713d5",
"extens... | stackv2 | /*******************
*
* $Date:$
* $Revision:$
* $Author:$
* $HeadUrl:$
* $Id: mvvonmises.c 13 2015-04-17 08:17:47Z lrodriguez $
**/
#ifndef _MVVM_LIKELIHOOD_H_
#define _MVVM_LIKELIHOOD_H_
/*************
* Likelihood
*/
/* Transforms theta to Sin(theta-mu)
*
* Computes Sin(theta-mu) / Cos(theta-mu) for ea... | 2.1875 | 2 |
2024-11-18T22:24:07.320035+00:00 | 2015-04-30T10:20:32 | 01c817db1fedd2f138b50128d871cb1a0053cced | {
"blob_id": "01c817db1fedd2f138b50128d871cb1a0053cced",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-30T10:20:32",
"content_id": "4eb3131e8b2c3c4a6c52ca889a49da8249707b73",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "678b454f4767b18f0fc1dd6b7e8f7ea2bc02b242",
"extensio... | stackv2 | #include <stdio.h>
/*
5. Faça um programa que processe a matriz abaixo, sendo que cada linha representa
um aluno e cada coluna as suas notas. O programa deverá mostrar a média de
cada aluno e a média da turma. Implemente dois procedimentos. Implemente, pelo
menos, dois procedimentos.
5 7 4
5 6 ... | 3.796875 | 4 |
2024-11-18T22:24:07.706079+00:00 | 2020-12-09T02:52:37 | 321d97509e90a60745617b3d01f42cbd1a34304f | {
"blob_id": "321d97509e90a60745617b3d01f42cbd1a34304f",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-09T02:52:37",
"content_id": "10752342e5789a4ec085a2f1b2aaa1828d041d4c",
"detected_licenses": [
"MIT"
],
"directory_id": "1b5fb75354e24ba76aea3bdb78533fa2fd1b2f26",
"extension": "c",
... | stackv2 | /**
* name: linkedlist.c
* created on: 2020-06-22
* author: Daniel Barradas
*/
/* ********************* COMENTÁRIO ********************************
* Assume-se, nas funções deste módulo, que os elementos de cada
* lista vão ser inseridos em ordem lexicografica, uma vez que a
* ordeção d... | 3.28125 | 3 |
2024-11-18T22:24:07.775141+00:00 | 2019-08-09T05:54:28 | 82f725dee1f9d5f65bd99105fa86ab858948ae73 | {
"blob_id": "82f725dee1f9d5f65bd99105fa86ab858948ae73",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-09T05:54:28",
"content_id": "a99bab5477fe74fffdb4c22163628364ce4cf2db",
"detected_licenses": [
"MIT"
],
"directory_id": "6e87a1be6d28c5b406c3182a01f6db8b90147991",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <assert.h>
#include <unistd.h>
#include "../libuv/include/uv.h"
#define ERROR(msg, code) do { \
fprintf(stderr, "%s: [%s: %s]\n", msg, uv_err_name((code)), uv_strerror((code))); \
assert(0); ... | 2.875 | 3 |
2024-11-18T22:24:13.029956+00:00 | 2020-10-18T06:43:29 | a392af584744f0ea0949cf3638963d0ea3b29d0c | {
"blob_id": "a392af584744f0ea0949cf3638963d0ea3b29d0c",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-18T06:43:29",
"content_id": "446187b5ec1f94213b71c9e959c5b49b41f4f623",
"detected_licenses": [
"MIT"
],
"directory_id": "c246aa51b80c66a972f4025efcb986386ac44d2e",
"extension": "c"... | stackv2 | /* PTrace access control module.
*
* With this module loaded, only UID 0 and defined GID are allowed to use ptrace() syscall.
* Have fun.
*
* Roc Vallès Domènech
*/
#define __KERNEL__
#define MODULE
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/version.h>
#include <linux/mm.h>
#include <li... | 2.625 | 3 |
2024-11-18T22:24:14.284772+00:00 | 2014-08-23T06:03:36 | 98e83f0705fa65a68d06068d1bfbdd8498fab6f4 | {
"blob_id": "98e83f0705fa65a68d06068d1bfbdd8498fab6f4",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-23T06:03:36",
"content_id": "ce3d1aaf6303937848867f017ea33bacbcbdb849",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "edeba35a66877fc8e8fed1a92542d514855c844a",
"extensio... | stackv2 | #ifndef __LINKED_LIST_H__
#define __LINKED_LIST_H__
#include <stdint.h>
// Doubly linked list node.
// Tailored for use in expression parsing and evaluation
typedef struct linked_list_node
{
struct linked_list_node* next;
struct linked_list_node* prev;
// Pointer to string containing variable name
char** var_na... | 2.796875 | 3 |
2024-11-18T22:24:14.357748+00:00 | 2017-11-03T01:37:25 | e4a67f5663fc63f64f2c2cb5a7ed4c58f620da89 | {
"blob_id": "e4a67f5663fc63f64f2c2cb5a7ed4c58f620da89",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-03T01:37:25",
"content_id": "3271f7f8a207713a310eabb7ec94efe772e76668",
"detected_licenses": [
"MIT"
],
"directory_id": "4b08f38c6ab99a10d16d61ba666b338883fbe668",
"extension": "c"... | stackv2 | #include "ch07.h"
static sigjmp_buf jmpbuf;
static volatile sig_atomic_t canjmp=0;
static int sigalrm_appear=0;
void pr_mask(const char *str)
{
sigset_t sigset;
int i;
sigprocmask(0, NULL, &sigset);
printf(" %s\n",str);
for(i = 1; i < NSIG; i++)
if(sigismember(&sigset,i))
psignal(i,"---");
}
s... | 2.59375 | 3 |
2024-11-18T22:24:14.892999+00:00 | 2021-01-26T21:03:48 | f9629a5ebf6813cbd57b6794d30ab245e302f947 | {
"blob_id": "f9629a5ebf6813cbd57b6794d30ab245e302f947",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-26T21:03:48",
"content_id": "1c8e96873609c1d35faa21f8f8cae5abc249ec89",
"detected_licenses": [
"MIT"
],
"directory_id": "2edbd9b4562b715c7b1e9b4d2533ca0430855d49",
"extension": "c",
... | stackv2 | #include <ao/ao.h>
#include <mpg123.h>
#include <fftw3.h> // Inlcude the FFT
#include <iostream>
#include <fstream>
#include <math.h>
#define BITS 8
int main(int argc, char *argv[])
{
mpg123_handle *mh;
char *buffer;
size_t buffer_size;
size_t done;
int err;
int driver;
ao_device *dev;
... | 2.40625 | 2 |
2024-11-18T22:24:15.169507+00:00 | 2019-05-20T07:15:30 | b992086f96f751ac1e1fe23142c92f6471c98c7e | {
"blob_id": "b992086f96f751ac1e1fe23142c92f6471c98c7e",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-20T07:15:30",
"content_id": "687dbfe16a1f9bf14608b4a615eef4d38a383757",
"detected_licenses": [
"MIT"
],
"directory_id": "9d8bf1e51d054d946b6c734cb734215c107e9ce8",
"extension": "c"... | stackv2 | /***************************************************************************************************************************************
* 6.6 Feladat *
* Írjon függvényt, amely két számot vár para... | 3.234375 | 3 |
2024-11-18T22:24:15.307939+00:00 | 2018-07-03T07:32:40 | 5a0460a0e044a50eff68b7fe0551d934ccc4ec23 | {
"blob_id": "5a0460a0e044a50eff68b7fe0551d934ccc4ec23",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-03T07:32:40",
"content_id": "dd645fb1673b4f5522dafe169d9e98374acc90a2",
"detected_licenses": [
"MIT"
],
"directory_id": "4525a45c920fcf2bf2ce50091c7120c9e5789ca3",
"extension": "c"... | stackv2 |
//socket
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netdb.h>
#include <errno.h>
#include <netinet/in.h>
//
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
int SERVEPORT= 30000;
void client(char* t)
{
printf("start client\n... | 2.640625 | 3 |
2024-11-18T22:24:15.390241+00:00 | 2021-09-02T05:02:37 | 69815f342cb5c1268067a2cc8b563f4280321fc8 | {
"blob_id": "69815f342cb5c1268067a2cc8b563f4280321fc8",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-08T22:14:26",
"content_id": "28aebece7c739c243acd652b951a2f7b578aa179",
"detected_licenses": [
"MIT"
],
"directory_id": "d3dbde5badcffc34f3c5ba9185acfe745cf0f95e",
"extension": "h",
... | stackv2 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#ifndef _MYST_TTYDEV_H
#define _MYST_TTYDEV_H
#include <myst/defs.h>
#include <myst/fdops.h>
typedef struct myst_ttydev myst_ttydev_t;
typedef struct myst_tty myst_tty_t;
struct myst_ttydev
{
myst_fdops_t fdops;
int (*td_create)(
... | 2.21875 | 2 |
2024-11-18T22:24:15.479215+00:00 | 2011-09-19T15:24:28 | 3048547addb0acad870ec46a6fee01ce2ccfabdd | {
"blob_id": "3048547addb0acad870ec46a6fee01ce2ccfabdd",
"branch_name": "refs/heads/master",
"committer_date": "2011-09-19T15:24:28",
"content_id": "4b2b4a8ff9ae068688096d82a50afbae0ea5098e",
"detected_licenses": [
"NCSA"
],
"directory_id": "bc0b701fc41f2218af511c4ecbd675c8bf365f1c",
"extension": "c... | stackv2 | // RUN: test.sh -c -e -t %t %s
// Try concatenating from an unterminated source string. This should
// fail.
#include <stdlib.h>
#include <string.h>
void do_cat(char *src)
{
char f[100] = "meow";
strcat(f, src);
}
int main()
{
char *n = malloc(10);
strcpy(n, "meow");
memset(&n[4], 'a', 6);
do_cat(n);
... | 2.90625 | 3 |
2024-11-18T22:24:15.640250+00:00 | 2019-01-16T23:19:12 | 64ffa40fecc005fcf32a42957c5b25fb5ca2131b | {
"blob_id": "64ffa40fecc005fcf32a42957c5b25fb5ca2131b",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-16T23:19:12",
"content_id": "9120fc284b269ac98b850fc6b945d238e3dbc4bd",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "97f4e038e27feae7a47cbac549d86df023e485c8",
"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.
*/
#ifndef CORE_H
#define CORE_H
#include <stdlib.h>
#include ... | 2.375 | 2 |
2024-11-18T22:24:15.696605+00:00 | 2016-05-29T09:16:42 | 42051388d31e50914349780e6616213817e9160f | {
"blob_id": "42051388d31e50914349780e6616213817e9160f",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-29T09:16:42",
"content_id": "4ec7c4b4a6a6ceb6f36c5ec3a6c56fa9ee6861d6",
"detected_licenses": [
"NCSA"
],
"directory_id": "3d80d68564da1f1d650988a1fafe221d749cdc31",
"extension": "c... | stackv2 | // RUN: gcc %s -O0 -I../../../include/ -o %t1
// RUN: klee-mc -pipe-solver -sym-mmu-type=fork -use-sym-mmu - ./%t1 2>%t1.err >%t1.out
// RUN: ls klee-last | grep ptr.err
//
// RUN: klee-mc -pipe-solver -sym-mmu-type=uniqptr -use-sym-mmu - ./%t1 2>%t1.err >%t1.out
// RUN: ls klee-last | grep ptr.err
/* this tests load... | 2.0625 | 2 |
2024-11-18T22:24:16.328165+00:00 | 2015-10-13T23:22:42 | 9b479654379c47fa53813874f53eeba4f83d1d7c | {
"blob_id": "9b479654379c47fa53813874f53eeba4f83d1d7c",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-13T23:22:42",
"content_id": "a1bc7ce6dde96a7946526c16a9d79b5a617d6ae7",
"detected_licenses": [
"MIT"
],
"directory_id": "dd4708e15dcb967d0ce3059c60c174689e7aa252",
"extension": "h"... | stackv2 | #ifndef e3x_event_h
#define e3x_event_h
#include "lob.h"
// simple timer eventing (for channels) that can be replaced by different backends
// an event is just a lob packet and ordering value
typedef struct e3x_event_struct *e3x_event_t;
// create a list/group of events, give prime number to create a hashtable of t... | 2.0625 | 2 |
2024-11-18T22:24:16.614349+00:00 | 2020-04-17T19:20:02 | 1822c7387208efe2fa7a7bec9cfb54d357302546 | {
"blob_id": "1822c7387208efe2fa7a7bec9cfb54d357302546",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-17T19:20:02",
"content_id": "79c16437bd713277b4589c686679c10a17dd8af9",
"detected_licenses": [
"MIT"
],
"directory_id": "b3d708a7f5511c788338b94daec64432833c66d6",
"extension": "c"... | stackv2 | /*
* rwlock.c - Part of the IP-Noise project.
* Written by Shlomi Fish & Roy Glasberg
* The Computer Networks Laboratory
* The Electrical Engineering Department
* The Technion
*
* This code is distributed under the public domain.
*
*
*
* Implementation of a Readers-Writers lock for POSIX threads. Plain and ... | 2.640625 | 3 |
2024-11-18T22:24:18.629363+00:00 | 2017-12-21T07:32:07 | 4693c9bdfcccb4c84e58e4ee2e6a069f753c2a8d | {
"blob_id": "4693c9bdfcccb4c84e58e4ee2e6a069f753c2a8d",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-21T07:32:07",
"content_id": "113c4ec6994e0b21571bbcd8fa724293f2537cf0",
"detected_licenses": [
"MIT"
],
"directory_id": "58e4226b5bfb3cd41a47b7a7e4509ffdb9806d85",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include "lib/cs50.h"
#include "lib/cs50.c"
typedef struct _item {
char ID[9];
char name[201];
float qty;
float avgUnitCost;
} _item;
int loadInventory(void);
int showInventoryList(void);
int writeInventory... | 2.84375 | 3 |
2024-11-18T22:24:19.389572+00:00 | 2021-07-10T18:21:36 | 019d9d304e726be41b3a876eaf2ea3bd0be0915d | {
"blob_id": "019d9d304e726be41b3a876eaf2ea3bd0be0915d",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-10T18:21:36",
"content_id": "4b191ca401e013a20c11eaaf5291d1b001dcc7ea",
"detected_licenses": [
"MIT"
],
"directory_id": "f8fdbe88d9cfe1c9b9a74f0f80833f743ab6ef60",
"extension": "c",
... | stackv2 | #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/wait.h>
#define MAX_SIZE 1024
int main(int argc, char *argv[]){
int fd[2];
int status= pipe(fd);
if(status< 0){
perror("Error!\n");
exit(1);
}
else{
size_t pid;
if((pid= fork())== 0){
close(fd[1]);
dup2(... | 2.453125 | 2 |
2024-11-18T22:24:19.624338+00:00 | 2020-05-20T17:15:52 | f7a83ba6afe83af3f264c294f25b537f0ca21c23 | {
"blob_id": "f7a83ba6afe83af3f264c294f25b537f0ca21c23",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-20T17:15:52",
"content_id": "c2afb8b732e9f9fbf067b1ed2ab04ebb7b4b2080",
"detected_licenses": [
"MIT"
],
"directory_id": "3178d0e649f7347940d2ab6be26f0f0d5ee402f8",
"extension": "c"... | stackv2 | #include "ush.h"
void mx_print_line(t_input *in) {
mx_shuffle_text(in);
mx_printstr(in->line + in->cur_x);
++(in->cur_x);
++(in->win_x);
mx_update_cursor(in);
}
void mx_ctrl_d(t_ush *ush) {
if (ush->in->line[0]) {
tputs(tgetstr("dc", NULL), 1, mx_printnbr);
for (size_t i = ush-... | 2.21875 | 2 |
2024-11-18T22:24:19.713078+00:00 | 2021-01-27T08:24:47 | ed90a136b69629fc6d533f83b1b2ad0e2b77802e | {
"blob_id": "ed90a136b69629fc6d533f83b1b2ad0e2b77802e",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-27T08:24:47",
"content_id": "3867c62009be206d74850669d5eb999ed5f835a9",
"detected_licenses": [
"MIT"
],
"directory_id": "9f765b728cb542155090e2f933cd2e81009949d5",
"extension": "c"... | stackv2 | /*
The MIT License (MIT)
Copyright (c) 2019 Techno Road Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, mer... | 2.265625 | 2 |
2024-11-18T22:24:19.912266+00:00 | 2016-03-18T11:17:31 | a50a9fbcf3a1bc5a22213c6cfdeec1626f47b605 | {
"blob_id": "a50a9fbcf3a1bc5a22213c6cfdeec1626f47b605",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-18T11:17:31",
"content_id": "550f05c6b0466af07230248156d8d04e4423a1ac",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "0eb58c70ff708b680f07c2a783c387c15834d384",
"extens... | stackv2 | /*
Copyright (c) 2015, Conor Stokes
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following di... | 2.203125 | 2 |
2024-11-18T22:24:19.977137+00:00 | 2021-02-04T15:43:10 | e63c2d3ba9bfcd2a2a6e291e003483bb2fadfc62 | {
"blob_id": "e63c2d3ba9bfcd2a2a6e291e003483bb2fadfc62",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-04T15:43:10",
"content_id": "fe2935b41f572c78257e1e6f97731c7c07f4acf2",
"detected_licenses": [
"MIT"
],
"directory_id": "78f78bfecc4e3de2bf452178d4e8cbc6758110c4",
"extension": "c"... | stackv2 | /*******************************************************************************
* Startup file for STM32L053 Cortex-M0+ MCU
*
* The file is prepared for:
*
* STM32L051xx, STM32L052xx, STM32L053xx
* STM32L062xx, STM32L063xx, STM32L061xx
*******************************************************************************/
#... | 2.078125 | 2 |
2024-11-18T22:24:20.413020+00:00 | 2017-10-19T23:39:44 | 4dce8560e6ff12e879b146668bf37fe25740355d | {
"blob_id": "4dce8560e6ff12e879b146668bf37fe25740355d",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-19T23:39:44",
"content_id": "f9721f8aab086c03549cb0e081434acb9954d4e7",
"detected_licenses": [
"MIT"
],
"directory_id": "7c70978579edb4a17c4cf3e1a34d89c082df19a3",
"extension": "c"... | stackv2 | #include <errno.h>
#include <linux/limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/fanotify.h>
#include <unistd.h>
#include "cache.h"
extern unsigned char optCache;
ssize_t sprintmask (const unsigned long long mask, char* dst) {
char* dest = dst;
int retlen = 0, len = 0;
// Was... | 2.34375 | 2 |
2024-11-18T22:24:20.490947+00:00 | 2022-05-10T01:09:55 | b606aa8f1afc04ad462a28ccce7bff85d282f279 | {
"blob_id": "b606aa8f1afc04ad462a28ccce7bff85d282f279",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-10T01:09:55",
"content_id": "34c35e3322ff28e343381aea0dd0f9a790b47c2e",
"detected_licenses": [
"MIT"
],
"directory_id": "88da1ccdd6d5a76ebfd2c91e1d367da1d1477cee",
"extension": "c"... | stackv2 | #include < stdio.h > #include < stdlib.h > #include < string.h > #include < unistd.h > #include < sys / types.h > #include < sys / socket.h > #include < netinet / in .h > #include < arpa / inet.h > #include "Practical.h"
int main(int argc, char * argv[]) {
char recvbuffer[BUFSIZE], sendbuffer[BUFSIZE], request_res... | 2.78125 | 3 |
2024-11-18T22:24:20.544576+00:00 | 2021-11-14T17:41:45 | 58402b890763594d66faee88624d6a746863d1bf | {
"blob_id": "58402b890763594d66faee88624d6a746863d1bf",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-14T17:41:45",
"content_id": "d68da677a24f5c908635ef6ac4c17b004899896a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4a9e8189b0bdd1d74775c946f0f80677d7460ef0",
"extensio... | stackv2 | #ifndef TESTDEF_H
#define TESTDEF_H
// == RESIZE ARRAY ============================================================
char *ra_add(void);
char *ra_add_adjust(void);
char *ra_remove(void);
char *ra_remove_adjust(void);
char *ra_check_errors(void);
char *ra_exchange(void);
char *ra_copy_array(void);
char *ra_insert(void)... | 2 | 2 |
2024-11-18T22:24:21.614306+00:00 | 2023-03-03T16:51:16 | 2085a533898fdc67d82a32934d7f44909999a517 | {
"blob_id": "2085a533898fdc67d82a32934d7f44909999a517",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-03T16:51:16",
"content_id": "5e5735f4d320b452f480c2307c16c6643194092a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8b7ca87e28214dac0756b03467be4963fe3cdba6",
"extensio... | stackv2 | #include "console-interface.h"
#include "platform-support.h"
#include "6510.h"
#if defined unix || (defined(__APPLE__) && defined(__MACH__))
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#endif
#if defined _WIN32
#include <conio.h>
#endif
void continuosPlay(void) {
reveller->resum... | 2.140625 | 2 |
2024-11-18T22:24:21.833413+00:00 | 2014-08-25T12:15:58 | d6682379f38bdb6f7c886f7b881da40aac001eb9 | {
"blob_id": "d6682379f38bdb6f7c886f7b881da40aac001eb9",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-25T12:15:58",
"content_id": "a409624d8a1511a746f381e503f37493452feaca",
"detected_licenses": [
"MIT"
],
"directory_id": "8ddc56d6f6b7be0d8ba756ab9e85c6a82a8ed7ae",
"extension": "c"... | stackv2 |
#define _GNU_SOURCE 1
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
static int is_initd = 0;
static int is_on = 0;
static int memtr_fd = -1;
typedef void *(*malloc_type)(size_t size);
typedef void ... | 2.78125 | 3 |
2024-11-18T22:24:26.035289+00:00 | 2023-08-20T06:13:11 | 2a1d7dd314e4507b1731464015ace7343ee8748b | {
"blob_id": "2a1d7dd314e4507b1731464015ace7343ee8748b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-20T06:13:11",
"content_id": "5b6ab81ac3f5ab32f29ab1790e7c8345b60d14fa",
"detected_licenses": [
"MIT"
],
"directory_id": "309e1045a872514f82e7b3987f97b38c28b03e41",
"extension": "c"... | stackv2 | #ifdef RL_FFMPEG
int audio_player_load_thread(audio_player_data_t *data)
{
int i, ip=-1, must_seek=0, ip0=-1, ip1;
double ts_req=0., ts0=NAN, ts0_end=0., ts1=NAN;
ffframe_info_t info;
int ret=0, sample_count;
float *buf=NULL;
size_t buf_as=0, buf_pos=0;
while (data->thread_on)
{
loop_start:
rl_mutex_lock(&d... | 2.1875 | 2 |
2024-11-18T22:24:26.107079+00:00 | 2015-03-25T14:41:52 | 4db2e1d3ed95e4355dc9595ef668f6a2b982beae | {
"blob_id": "4db2e1d3ed95e4355dc9595ef668f6a2b982beae",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-25T14:41:52",
"content_id": "cf18ea989566279d141ba0a496a7c028f62168b0",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "e403b58518257b03d1d16ee1244958d03693332e",
"extens... | stackv2 | #include <stdio.h>
#include <string.h>
#include "helpers.h"
#ifdef __OSX__
size_t strlcpy(char *dst, const char *src, size_t dstsize) {
strncpy(dst, src, dstsize);
dst[dstsize] = 0x00;
}
size_t strlcat(char *dst, const char *src, size_t dstsize) {
strncat(dst, src, dstsize);
dst[dstsize] = 0x00;
}
#endif
void... | 2.796875 | 3 |
2024-11-18T22:24:26.632829+00:00 | 2023-08-30T23:07:48 | 8e5b2908b2c61d3e0fd57b02f2d5dd5440b47336 | {
"blob_id": "8e5b2908b2c61d3e0fd57b02f2d5dd5440b47336",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T23:07:48",
"content_id": "99834a3b69e4b811f558e1b78df6b345ef9e4eec",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "8a51a96f61699f0318315ccc89cef39f6866f2b5",
"extensio... | stackv2 | /*-------------------------------------------------------------------------
*
* recovery_gen.c
* Generator for recovery configuration
*
* Portions Copyright (c) 2011-2023, PostgreSQL Global Development Group
*
*-------------------------------------------------------------------------
*/
#include "postgres_fe.h... | 2.140625 | 2 |
2024-11-18T22:24:26.824271+00:00 | 2021-01-09T14:40:30 | ab981e2c8efb3fd2d53c9e7d7fef73c72c16ad0c | {
"blob_id": "ab981e2c8efb3fd2d53c9e7d7fef73c72c16ad0c",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-09T14:40:30",
"content_id": "34c60c9b76dfde50fe3fc8502c82106af16db4ab",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "515d64a9558fc7ec3d8579d969c7adbf6638990b",
"extensio... | stackv2 | #include<stdio.h>
#include<stdlib.h>
struct Node
{
int data;
struct Node * next;
};
static void reverse(struct Node ** head_ref)
{
struct Node * prev = NULL;
struct Node * current = *head_ref;
struct Node * next = NULL;
while(current != NULL) {
next = current->next;
current->next = prev;
prev = current;
... | 3.546875 | 4 |
2024-11-18T22:24:26.931635+00:00 | 2019-10-10T22:15:58 | 4e8d19aadcc76bd66ad3583eac836395ff44c995 | {
"blob_id": "4e8d19aadcc76bd66ad3583eac836395ff44c995",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-10T22:15:58",
"content_id": "81ac1cc2d95f42aaee65394b47ac2134a1575a45",
"detected_licenses": [
"MIT"
],
"directory_id": "6ea45db13ee842438bb2f542587e1cc367244962",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "../src/siphash.h"
#define test(expected, key, input, c, d, length) \
do { \
uint64_t output = siphash(key, input, c, d, length); \
assert(expected == output); \
} while(0);... | 2.59375 | 3 |
2024-11-18T22:24:27.351014+00:00 | 2020-09-02T23:46:34 | 34196ce0090477ab725a53da5c90a2bd1bcff5df | {
"blob_id": "34196ce0090477ab725a53da5c90a2bd1bcff5df",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-02T23:46:34",
"content_id": "f004ed55a3348ce8c9f90737a1bf645b3e6f44c2",
"detected_licenses": [
"MIT"
],
"directory_id": "6f0b7753233ebf4768a4bec47b142c7045e0c89e",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* :::::::: */
/* color_mix_light.c :+: :+: ... | 2.59375 | 3 |
2024-11-18T22:24:27.523071+00:00 | 2019-01-24T06:15:00 | 075c7b224913404f0f157132e7e4ba81bdfe4dc0 | {
"blob_id": "075c7b224913404f0f157132e7e4ba81bdfe4dc0",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-24T06:15:00",
"content_id": "ffb9026d4c5f10fd61804196a510b2cb05d51e4f",
"detected_licenses": [
"MIT"
],
"directory_id": "de8824f5b97f80cf0d0184c1e4eb02f044c85ff2",
"extension": "c"... | stackv2 | /****************************************************************************
* MallocLab for CS:APP 3e *
* Student ID: 16307110064 *
* @author Wang, Chen *
* @date... | 2.453125 | 2 |
2024-11-18T22:24:27.901976+00:00 | 2021-07-22T04:03:06 | 9b8d87c6766b5df742a65e075a210305dc3e1720 | {
"blob_id": "9b8d87c6766b5df742a65e075a210305dc3e1720",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-22T22:29:50",
"content_id": "f52acd64d78cc5317d05e4217e35a8fc01f4e946",
"detected_licenses": [
"MIT"
],
"directory_id": "7b87508fb25939daa7d790aad2fdb5a19b707001",
"extension": "c"... | stackv2 | #include "lmodaux.h"
#include "loperaux.h"
#include "lttyaux.h"
#include "lchaux.h"
#include <luamem.h>
typedef struct StateCoro {
lua_CFunction results;
lua_CFunction cancel;
uv_work_t work;
lua_State *L;
} StateCoro;
#define tostateco(L) ((StateCoro *)luaL_checkudata(L,1,LCU_STATECOROCLS))
static int doload... | 2.0625 | 2 |
2024-11-18T22:24:28.168647+00:00 | 2019-09-04T13:19:55 | 00029dcc0fd2fb89f713701da85254f9ea65d109 | {
"blob_id": "00029dcc0fd2fb89f713701da85254f9ea65d109",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-04T13:19:55",
"content_id": "d9688b8dd945a2b2856ab0b45e5a764c5ce58c10",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "22928ccffb86d08db26143355df7199bc3985e00",
"extens... | stackv2 | #include <zephyr.h>
#include <misc/printk.h>
#include <gpio.h>
#include <device.h>
#include <stdio.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/conn.h>
#include <bluetooth/uuid.h>
#include <bluetooth/gatt.h>
#include <display/mb_display.h>
#include "gatt_service.h"
#include "but... | 2.265625 | 2 |
2024-11-18T22:24:28.725121+00:00 | 2020-08-20T03:01:59 | 4338de970c9527de0d4c37962f2553185d6e76c1 | {
"blob_id": "4338de970c9527de0d4c37962f2553185d6e76c1",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-20T03:01:59",
"content_id": "507e6a925cc53c3f0bb42d0818b6c4822cc08340",
"detected_licenses": [
"MIT"
],
"directory_id": "d3474ed6242ef5c2f0078a959287220ebe515ac4",
"extension": "h"... | stackv2 | #ifndef __METACORE_SYMBOL_H__
#define __METACORE_SYMBOL_H__
/*
I assert:
1. Having Lisp/Prolog-style symbols in your language is fantastic.
2. Having a global symbol table sucks. Giant global state. Blech.
3. Interning strings for symbols feels heavy.
So, can't we just represent symbols by words? (We'... | 2.4375 | 2 |
2024-11-18T22:25:09.510334+00:00 | 2020-09-29T11:01:39 | fd6719ad06058a0c4c99eccb05d913da8076e7b6 | {
"blob_id": "fd6719ad06058a0c4c99eccb05d913da8076e7b6",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-29T11:01:39",
"content_id": "6b5a572c0f7a221e4c814d8e41fcd56fdb3db240",
"detected_licenses": [
"MIT"
],
"directory_id": "95db6ac4595857b85260fd89ee9ddcf7f7a5fc59",
"extension": "c"... | stackv2 | #ifndef __CPPLibs_MGNumc_C__
#define __CPPLibs_MGNumc_C__
#include "MGNumc.h"
namespace MGNumc {
template <class IntType, typename std::enable_if<std::is_integral<IntType>::value, int>::type>
inline short Compare(IntType a, IntType b) {
if (a == b) return 0;
else if (a > b) return 1;
else return ... | 2.3125 | 2 |
2024-11-18T22:25:09.603570+00:00 | 2019-10-09T12:05:44 | 07b8b4944f360fb26d7741bf2ffc6e39051cb4a3 | {
"blob_id": "07b8b4944f360fb26d7741bf2ffc6e39051cb4a3",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-09T12:05:44",
"content_id": "96290f723290dcfc86d9f8a9e1daf8fde8d5460c",
"detected_licenses": [
"MIT"
],
"directory_id": "facaf6f188812f003343c89249aad278ef5d3164",
"extension": "c"... | stackv2 | /* ========================================================================== */
/**@file src/drivers/ssd_i2c.c
*
* I2C interface to the MPU.
*
* ==========================================================================\n
* Project: SSD1803A-C-API
* System: Raspberry Pi
* Created: 13/09/2019 12:42:11 PM kso... | 2.359375 | 2 |
2024-11-18T22:25:09.659855+00:00 | 2018-01-10T00:14:07 | 133316bf6830f182240d899a3b3a075274d0a018 | {
"blob_id": "133316bf6830f182240d899a3b3a075274d0a018",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-10T00:14:07",
"content_id": "7fd39860ca0cc350e0a8caa55a90d142afdc828a",
"detected_licenses": [
"NCSA"
],
"directory_id": "2459cd54c786e7e2a912df5ecb52f327b67698dc",
"extension": "c... | stackv2 | #include <time.h>
#include <sys/time.h>
#include <stdio.h>
double getCurrentTime() {
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
printf("%ld\t", ts.tv_nsec);
return ts.tv_sec + ts.tv_nsec/1000000000.0;
}
int main() {
for (int i=0; i<1000; i++) {
double t = getCurrentTime();
printf("%... | 2.71875 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.