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-18T23:17:54.879669+00:00 | 2020-08-02T08:09:29 | 0f73800551487fe91f5647e81b25bb245b11ec73 | {
"blob_id": "0f73800551487fe91f5647e81b25bb245b11ec73",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-02T08:09:29",
"content_id": "65a3b06e6c0d2a5998529411af3019eccf1eaee7",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "08cffea604d7bbd64e4725d2338cc0ceebe18905",
"extens... | stackv2 | /**
******************************************************************************
* File Name : TIM.c
* Description : This file provides code for the configuration
* of the TIM instances.
******************************************************************************
***... | 2.0625 | 2 |
2024-11-18T23:17:55.691179+00:00 | 2021-08-15T12:23:24 | e7ce7be4eb5be59a2f6b962e84d199780c88b4a6 | {
"blob_id": "e7ce7be4eb5be59a2f6b962e84d199780c88b4a6",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-15T12:23:24",
"content_id": "f9181f9978805358008d7550dfeb5b40b339b1e3",
"detected_licenses": [
"MIT"
],
"directory_id": "f9ab7b01723a7dc82751b1b7c1675aed427c28f0",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <math.h>
#include <assert.h>
#include <stdlib.h>
#include "../src/model.h"
#include "../src/set_counter.h"
const size_t K=4;
const size_t M=2;
const size_t S=3;
int main() {
double tol = 1e-15;
double theta[K] = { .4, .3, .2, .1 };
size_t games[S][M] = { {0, 1}, {1, 3}, {0, 2... | 2.859375 | 3 |
2024-11-18T23:17:56.159274+00:00 | 2023-08-16T16:51:13 | 53551c10e25bd16a34b86eaac5934f41304bbda2 | {
"blob_id": "53551c10e25bd16a34b86eaac5934f41304bbda2",
"branch_name": "refs/heads/pharo-10",
"committer_date": "2023-08-16T16:51:13",
"content_id": "e971176a767f770b1b3bbeb515ef3b5163a3d59f",
"detected_licenses": [
"MIT"
],
"directory_id": "ddd2fea89ad2a0fff3ab03196bd587a1a507b484",
"extension": "... | stackv2 | // only locally define UNICODE in this compilation unit
// FIXME: Unicode should be used everywhere.
#ifndef UNICODE
#define UNICODE
#endif
#include "pharovm/fileDialog.h"
#include "pharovm/stringUtilities.h"
#include <windows.h>
#include <Shobjidl.h>
bool
vm_file_dialog_is_nop(void)
{
return false;
}
VMErrorCode
v... | 2.0625 | 2 |
2024-11-18T23:17:56.230816+00:00 | 2015-12-29T13:26:26 | 42bbb2190bec3d8bbc520caf46fbb917173ca50d | {
"blob_id": "42bbb2190bec3d8bbc520caf46fbb917173ca50d",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-29T13:26:26",
"content_id": "eee7b22a7fd049a126e9a9eb33c2764f04db9c2f",
"detected_licenses": [
"MIT"
],
"directory_id": "51eb4ce3e7aa3b3851b29cc232098e33e406fa01",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <localmemcache.h>
int main() {
lmc_error_t e;
local_memcache_t *lmc = local_memcache_create("viewcounters", 0, 0, 0, &e);
if (!lmc) {
fprintf(stderr, "Couldn't create localmemcache: %s\n", e.error_str);
return 1;
}
if (!local_memcache_set(lmc, "foo", 3, "1", 1)) goto faile... | 2.328125 | 2 |
2024-11-18T23:17:57.532607+00:00 | 2020-06-22T14:18:12 | 30358f8235d955a80228d442a28912b03d559ba9 | {
"blob_id": "30358f8235d955a80228d442a28912b03d559ba9",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-22T14:18:12",
"content_id": "8e149e148ce2d7bf37320ca1c9f98e7cc6f72a87",
"detected_licenses": [
"MIT"
],
"directory_id": "214b29a86e6b9765aa28005a93b6cdd4d9626b85",
"extension": "c"... | stackv2 | #include "syshead.h"
#include "utils.h"
#include "ipc.h"
#include "socket.h"
#define IPC_BUFLEN 8192
static LIST_HEAD(sockets);
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
static int socket_count = 0;
static struct ipc_thread *ipc_alloc_thread(int sock)
{
struct ipc_thread *th = calloc(sizeof(struct... | 2.40625 | 2 |
2024-11-18T23:17:57.767608+00:00 | 2015-01-09T14:04:17 | 5e0b5ef588de0f8ae73124fe90ecef9a8064c444 | {
"blob_id": "5e0b5ef588de0f8ae73124fe90ecef9a8064c444",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-09T14:04:17",
"content_id": "a6cd4f8dc4517801d68f19108d7f47778332acb9",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "9a0fb1b2c648ee572d13bd04b84c97d677bc8e73",
"extens... | stackv2 | #include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
int
main(int argc, char* argv[])
{
char* src;
char* dest;
int src_fd;
int dest_fd;
struct stat src_stat;
if(argc < 3)
... | 2.875 | 3 |
2024-11-18T23:17:58.767088+00:00 | 2018-12-13T12:31:41 | 092a714e51adcdcf2b7bdb2c447f407f0c5884d0 | {
"blob_id": "092a714e51adcdcf2b7bdb2c447f407f0c5884d0",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-13T12:31:41",
"content_id": "9a10b06cf5f8bfe201db87c81e928667c9567de1",
"detected_licenses": [
"MIT"
],
"directory_id": "bc146f4a0a02ec72c4ed445ab2e15445da9285c3",
"extension": "c"... | stackv2 | #include <stdarg.h>
#include <stdio.h>
#include <pthread.h>
#include "log.h"
#include "fileio.h"
void posixc_log_init(posixc_logger* logger, enum log_level lowest, FILE* file){
logger->lowest = lowest;
logger->file = file;
}
void posixc_log_close(posixc_logger* logger){
if(logger->file!=stderr && logger->... | 2.75 | 3 |
2024-11-18T23:17:59.574729+00:00 | 2017-05-28T18:38:51 | 984ce5e277ad49ba4a9d1f16cb2eec7fc88bd59a | {
"blob_id": "984ce5e277ad49ba4a9d1f16cb2eec7fc88bd59a",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-28T18:38:51",
"content_id": "caa204d31f913e527feb353606c1e124ce3a95da",
"detected_licenses": [
"MIT"
],
"directory_id": "f7a938e177d4208415d44cb2bae4ca2bbbecbb55",
"extension": "c"... | stackv2 | /*
* elevator noop
*/
#include <linux/blkdev.h>
#include <linux/elevator.h>
#include <linux/bio.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
struct noop_data {
struct list_head queue;
};
static void team42_noop_merged_requests(struct request_queue *q, struct request *rq,
struct... | 2.484375 | 2 |
2024-11-18T23:18:00.245747+00:00 | 2019-10-20T06:11:21 | 5e081b670ba16114fa92cdf57ecddd23d54c77c9 | {
"blob_id": "5e081b670ba16114fa92cdf57ecddd23d54c77c9",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-20T14:16:08",
"content_id": "ecd246fd49958b1321fc6535bdd7ef0bfaf904dc",
"detected_licenses": [
"MIT"
],
"directory_id": "412ce9e9ab17da1ac87d2a2fcbc1b1e5a20631ac",
"extension": "c"... | stackv2 | #define NOTEST
#include "MergeSortedArray.c"
void MergeSort(size_t len, int arr[len])
{
if (len == 1)
return;
const int len1 = len / 2;
const int len2 = len - len1;
MergeSort(len1, arr);
MergeSort(len2, arr + len1);
MergeSortedArrayInPlace(len1, arr, len2, arr + len1);
}
int main(void... | 3.03125 | 3 |
2024-11-18T23:18:00.370439+00:00 | 2021-10-13T05:35:05 | 674aaeee5c94644bb3ea65c33ced087414346e00 | {
"blob_id": "674aaeee5c94644bb3ea65c33ced087414346e00",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-13T05:35:05",
"content_id": "ffe12b80dfec49d175801ce20e4c94af03692b21",
"detected_licenses": [
"MIT"
],
"directory_id": "8b673237f430d1cf342d609282bed180731c80f2",
"extension": "c",
... | stackv2 | #include "netinet/in.h"
#include "sys/socket.h"
#include "stdio.h"
main()
{
struct sockaddr_in sa, cli;
int n, sockfd;
int len;
char buff[100];
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if (sockfd < 0)
{
printf("\nError in Socket");
exit(0);
}
else
printf("\nS... | 2.828125 | 3 |
2024-11-18T23:18:01.443422+00:00 | 2019-06-21T09:20:08 | cec68c41a0987bf580bc0c257952302db6081432 | {
"blob_id": "cec68c41a0987bf580bc0c257952302db6081432",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-21T09:20:08",
"content_id": "e2e3e42d252cc71de2b93f042b68e5ac9a1d0aad",
"detected_licenses": [
"MIT"
],
"directory_id": "218d27eca1528703a7edf17037b87e050ade4667",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include "tm_MALLOC.h"
#include <float.h>
#include <ctype.h>
#include "tm_TIMINGS.h"
#include "tm_MAPPING.h"
#include "map_MPIPP.h"
typedef struct {
int val;
long key;
} hash_t;
int hash_asc(const void* x1,const void* x2)
{
hash_t *e1 = NULL,*e2 = NULL;
e1 = ((hash_t... | 2.53125 | 3 |
2024-11-18T23:18:01.674752+00:00 | 2023-06-02T21:36:20 | 263e71e479a2a6ad263bea1be6a3e72769c6bd22 | {
"blob_id": "263e71e479a2a6ad263bea1be6a3e72769c6bd22",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-02T21:36:20",
"content_id": "f860c4781fa0fb2f8e1c05b3e144fd931ad798f1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "437611fdf2492bff0df3daa3b1ed9008aca26969",
"extens... | stackv2 | /**
Copyright (c) 2012-2020, Brice Videau <bvideau@anl.gov>
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
li... | 2.046875 | 2 |
2024-11-18T23:18:03.308100+00:00 | 2023-08-04T11:23:59 | 02c6bbd7f7665a77513ec882f94822cecf96e3c7 | {
"blob_id": "02c6bbd7f7665a77513ec882f94822cecf96e3c7",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-04T11:23:59",
"content_id": "4fca852ba2fe3c7a4551a20267188ce16b6af1b9",
"detected_licenses": [
"ISC"
],
"directory_id": "27a62444b82e2a2a7cadb3aa938269da53c8307f",
"extension": "c"... | stackv2 | /*!
* set color attributes from string.
*/
#include <errno.h>
#include "convert.h"
#include "layout.h"
/*!
* \ingroup mptPlot
* \brief parse color value
*
* Convert text to color data
*
* \param col color data
* \param txt string containing hex color value
*
* \return consumed length
*/
extern int mpt... | 2.515625 | 3 |
2024-11-18T23:18:03.534075+00:00 | 2018-03-31T14:58:24 | 8b8494c0b39960adc6be38f399103de8f07aa906 | {
"blob_id": "8b8494c0b39960adc6be38f399103de8f07aa906",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-31T14:58:24",
"content_id": "b66c25023a00bd693174f3f9c8bda274325df190",
"detected_licenses": [
"MIT"
],
"directory_id": "62759afdf259229b3f49933e0f7c9ea345e9de02",
"extension": "c"... | stackv2 | #include "mpuiic.h"
#include "main.h"
extern u8 TxBuffer[6];
unsigned char iic_SendBuffer[2],iic_RecvBuffer;
signed char iic_SendPtr=0;
void iic_init (unsigned char SlaveAddr)
{
P1SEL |= BIT6+BIT7; // Assign I2C pins to USCI_B0
P1SEL2|= BIT6+BIT7; // Assign I2C pins to US... | 2.296875 | 2 |
2024-11-18T23:18:03.674665+00:00 | 2020-02-06T05:22:27 | 38d0aaa847f85f064348bcd9eb0d090db6c65e87 | {
"blob_id": "38d0aaa847f85f064348bcd9eb0d090db6c65e87",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-06T05:22:27",
"content_id": "2dca3dd9bb95e55cb5cb42718612d1879f60494e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "63a698000d9c5e21d512895c655ab329eb68f1b0",
"extensio... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <errno.h>
#include <sys/un.h>
#include <time.h>
#define SOCK_FILE_NAME "/tmp/test_socket.sock"
void main(void)
{
int fd = 0,acp;
struct sockaddr_un addr = {0,};
struct timeval tv = { 0, };
char buff_to_write... | 2.734375 | 3 |
2024-11-18T23:18:03.777440+00:00 | 2015-05-09T20:08:22 | 5755a32c8fccbba87b86aefcb3292f49038ffd8a | {
"blob_id": "5755a32c8fccbba87b86aefcb3292f49038ffd8a",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-09T20:08:22",
"content_id": "ea3aeae470bc62dce7e54242f3fab2aaff43ea9c",
"detected_licenses": [
"MIT"
],
"directory_id": "bd431064637349d9e894002d51ec12022e502564",
"extension": "c"... | stackv2 | #include <stdio.h>
#define NUM_NODE 1
#define ADD_NODE 2
#define MULT_NODE 3
struct Node
{
int type;
double val;
Node* pLeft;
Node* pRight;
};
double Calc (Node * pNode)
{
switch (pNode->type)
{
case NUM_NODE:
return val;
case ADD_NODE:
return Calc (pLeft) + Calc (pRig... | 3.171875 | 3 |
2024-11-18T23:18:04.992303+00:00 | 2021-10-04T15:06:11 | 58d71992c97f2020077863aa0442dca6d207bfdc | {
"blob_id": "58d71992c97f2020077863aa0442dca6d207bfdc",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-04T15:06:11",
"content_id": "1a9fe138fb4a275ecbcfe765c341a7fab2d6302b",
"detected_licenses": [
"MIT"
],
"directory_id": "83e26fa4d22e40ee6b7d0c31bb4ba77ca31fd275",
"extension": "c"... | stackv2 |
#include "stm32f4xx.h" // Device header
void delay(int sec);
void Usart_Init(void);
void Led_Init(void);
char Usart_Read(void);
void Led_play(int value);
int main(void){
char ch;
Led_Init();
Usart_Init();
while(1)
{
ch=Usart_Read();
Led_play(ch);
}
return 0;
}
void Usart_Init(void){
RCC->APB1E... | 2.6875 | 3 |
2024-11-18T23:18:05.895218+00:00 | 2018-04-07T21:53:05 | d435400299e4a77ee25115d9250eeddc81714c65 | {
"blob_id": "d435400299e4a77ee25115d9250eeddc81714c65",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-07T21:53:05",
"content_id": "9ff0f36075afcc4fa13b3941c8e35c3cf710aaaf",
"detected_licenses": [
"MIT"
],
"directory_id": "e08f2bd9ce86762f0c5b2f9513eb6601a4c32293",
"extension": "h"... | stackv2 | /*
* HEADER FILE: macro.h - Useful macros
*
* PROGRAM: 7005-asn4
*
* DATE: Dec. 2, 2017
*
* DESIGNER: John Agapeyev
*
* PROGRAMMER: John Agapeyev
*/
#ifndef MACRO_H
#define MACRO_H
#include <stddef.h>
#define likely(cond) __builtin_expect(!!(cond), 1)
#define unlikely(cond) __builtin_expect(!!(cond), 0)
#... | 2.265625 | 2 |
2024-11-18T23:18:11.749082+00:00 | 2015-01-30T09:16:35 | b6c55808bda4b3e7a955c5f24b9b2a0c7a439516 | {
"blob_id": "b6c55808bda4b3e7a955c5f24b9b2a0c7a439516",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-30T09:16:35",
"content_id": "7c8ea7a2f4523bf33dfd7bc070da3cddf5214215",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "38fefd2e0c789c07f5df507507809c5eac92f23f",
"... | stackv2 | #include <stdlib.h>
#include "crisp/parse.h"
#include "crisp/eval.h"
#include "crisp/symbol_table.h"
#include "syscall.h"
void print_memory_report(void)
{
/* this is what happen when we don't have valgrinds */
extern int mem_num_alloc, mem_num_free;
PutString("\n\n===============\n");
PutString("[memory report]... | 2.5625 | 3 |
2024-11-18T23:18:12.536195+00:00 | 2021-08-15T22:28:25 | 55774c0ab7f0f09646ad450ae5a6c2c3b3b89fa8 | {
"blob_id": "55774c0ab7f0f09646ad450ae5a6c2c3b3b89fa8",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-15T22:28:25",
"content_id": "afccb931c96d4e7dfa4c989e0eb06da02c6b68d1",
"detected_licenses": [
"MIT"
],
"directory_id": "a04dc56b5ed4d5f15e73a014795a6342faf449a7",
"extension": "c"... | stackv2 | /*
* Z80SIM - a Z80-CPU simulator
*
* Common I/O devices used by various simulated machines
*
* Copyright (C) 2018-2019 by Udo Munk
*
* Emulation of the MITS Altair S100 floppy disk controller
*
* History:
* 10-AUG-2018 first version, runs CP/M 1.4 & 2.2 & disk BASIC
* 02-DEC-2019 use disk names different ... | 2.078125 | 2 |
2024-11-18T23:18:13.380242+00:00 | 2023-09-02T14:55:31 | bca4ff8d4569411dca5934c4a97a0d7441559890 | {
"blob_id": "bca4ff8d4569411dca5934c4a97a0d7441559890",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T14:55:31",
"content_id": "13162e3e6bf505ac02725fceb7bcfd5fbb5f81c6",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca",
"extens... | stackv2 | /**
* @file
* @brief
*
* @author Anton Kozlov
* @date 03.12.2013
*/
#include <fs/file_desc.h>
#include <fs/xattr.h>
#include <util/member.h>
#include <kernel/task/resource/idesc.h>
static int file_idesc_getxattr(struct idesc *idesc, const char *name, void *value,
size_t size);
static int file_idesc_setxa... | 2.40625 | 2 |
2024-11-18T23:18:13.644779+00:00 | 2021-01-28T06:32:47 | 98bc65adafc88bbcf894aab3f58fae4fef15803c | {
"blob_id": "98bc65adafc88bbcf894aab3f58fae4fef15803c",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-28T06:32:47",
"content_id": "2c30aeb989e12be8623715c83cc5df5bf83c7b9e",
"detected_licenses": [
"MIT"
],
"directory_id": "623744cf3998e78945df5db6d8c4060219c36319",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct node {
char data[10];
struct node *link;
}node;
typedef struct linkedList {
node* head;
}linkedList;
//create empty linkedlist
linkedList* createLinkedList(void)
{
linkedList* l = (linkedList*)malloc(sizeof(linkedList));
l-... | 3.828125 | 4 |
2024-11-18T23:18:13.760179+00:00 | 2020-12-08T08:45:36 | a9ff21ccccad02faa3bee4922188c705feef7238 | {
"blob_id": "a9ff21ccccad02faa3bee4922188c705feef7238",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-08T08:45:36",
"content_id": "36ededaae96ff88b93d50e0b2dbdadd03ec23b57",
"detected_licenses": [
"MIT"
],
"directory_id": "acc4bfa368407b38cf7db55c5b0f50670b971634",
"extension": "c"... | stackv2 | //modified from https://www.educative.io/edpresso/how-to-implement-tcp-sockets-in-c
#include <stdio.h>
#include <string.h>
#include <sys/socket.h> //needed for socket related functions
#include <arpa/inet.h> //needed for internet related functions
int main(void)
{
int socket_desc; //status of socket creation
... | 3.515625 | 4 |
2024-11-18T23:18:13.903392+00:00 | 2018-06-19T15:41:54 | 12c6589920c10598e4ad05a6fe4629da1c6d46a2 | {
"blob_id": "12c6589920c10598e4ad05a6fe4629da1c6d46a2",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-19T15:41:54",
"content_id": "432e3845924e91ecb282e4a021fe4e5cc66a86ab",
"detected_licenses": [
"MIT"
],
"directory_id": "e84a831d0b80641d0bdfaec500d6de58dfead759",
"extension": "h"... | stackv2 | #ifndef SUDOKU_SLOT_H
#define SUDOKU_SLOT_H
struct sudoku_group;
struct sudoku_slot;
struct sudoku_slot_callbacks
{
void (*on_candidate_removed)(struct sudoku_slot *, int number, void * user_data);
void * user_data;
};
static inline int sudoku_slot_row_from_id(int id)
{
return id / 9;
}
static inline i... | 2.5625 | 3 |
2024-11-18T23:18:13.974021+00:00 | 2022-10-18T18:02:26 | 6739b333820acf4ab2e7fbeafbfc94957533b9ed | {
"blob_id": "6739b333820acf4ab2e7fbeafbfc94957533b9ed",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-18T18:02:26",
"content_id": "15ac6c0c9df42f23d6e80f663b36bd1e150c2a2f",
"detected_licenses": [
"MIT"
],
"directory_id": "9643d03df9fcc2525ba82a05642830ba79bc9e72",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include "error_stuff.h"
#include "util.h"
void reinterleave_ms_ima(FILE *infile, long offset, size_t size, unsigned int channels, unsigned int block_size)
{
unsigned char *buf = malloc(block_size);
unsigned char *buf2 = malloc(block_size); // deinterleave target
co... | 2.21875 | 2 |
2024-11-18T23:18:15.376741+00:00 | 2019-12-02T02:08:39 | 91869b4b196d8655ff2d934a453b86df1bbe40a8 | {
"blob_id": "91869b4b196d8655ff2d934a453b86df1bbe40a8",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-02T02:08:39",
"content_id": "710b044b0aa862dc9527cc8c5176eddc29e47956",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2735af8972c03f055722a3937062fc4c47663cec",
"extens... | stackv2 | #include "shell.h"
#include "include/stdlib.h"
#include <stdint.h>
#include "timeModule.h"
#include "videoModule.h"
#include "pongModule.h"
#include "memoryModule.h"
#include "soundModule.h"
#include "processModule.h"
#include "snakeModule.h"
#include "pipeModule.h"
int piddummy;
int flag = 0;
int pidkill;
int pidbloc... | 2.421875 | 2 |
2024-11-18T23:18:15.432119+00:00 | 2022-11-05T17:46:59 | 60a2236252e4beeb3a3964c710784502f6e90271 | {
"blob_id": "60a2236252e4beeb3a3964c710784502f6e90271",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-05T17:46:59",
"content_id": "ef8dbb29aa21b6dfb9f6302c69f2bdba90b3a82c",
"detected_licenses": [
"MIT"
],
"directory_id": "c07d5913ecf3a23e5ba5b7fb1ed5f39550a86e96",
"extension": "c"... | stackv2 | #include "Aes.h"
// ---- Counter ----
autoBlock_t *MakeEncCounterSeed(void)
{
return makeCryptoRandBlock(16);
}
autoBlock_t *MakeEncCounter(autoBlock_t *clSeed, autoBlock_t *svSeed)
{
AES128_KeyTable_t *keyTable = AES128_CreateKeyTable(GetConcreteRawKey(), 1);
autoBlock_t *encCounter = nobCreateBlock(16);
uint in... | 2.6875 | 3 |
2024-11-18T23:18:15.509894+00:00 | 2023-05-31T23:55:47 | 52d0929a2845264fdde5391f15d0ee5295b5dfb1 | {
"blob_id": "52d0929a2845264fdde5391f15d0ee5295b5dfb1",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-31T23:55:47",
"content_id": "dfd1132299dc5b0b5800ba246392e26c06324ea7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4e418372cd5356b25ec7c39525d67d61a8b5585b",
"extensio... | stackv2 | /* redial.c */
#include <termcap.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define SLEEP_TIME 1
#define SH_STRING "exec /usr/sbin/pppd -detach /dev/cua0 connect \"/usr/sbin/chat -v -f /home/egustafs/.chatrc2\""
/* #define SH_STRING "exec /usr/bin/sleep 2" */
void main()
{
unsigned int counter... | 2.46875 | 2 |
2024-11-18T23:18:16.083787+00:00 | 2023-08-15T18:30:40 | b735d2011cee00035a6c8d0159e2a34b851d543d | {
"blob_id": "b735d2011cee00035a6c8d0159e2a34b851d543d",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T07:09:48",
"content_id": "42819016628029600ef69b0570b4231f215b26f4",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8f3bf2d3f72e9c7022b3e2efde3d787c9ca354fc",
"extens... | stackv2 | /* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifdef HAVE... | 2.25 | 2 |
2024-11-18T23:18:16.246249+00:00 | 2021-03-29T21:08:20 | 17dd9abeb8f82f43094daffaf0a84a0a7ab5a891 | {
"blob_id": "17dd9abeb8f82f43094daffaf0a84a0a7ab5a891",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-29T21:08:20",
"content_id": "e3a35084c8065f42b78c9b973a159333601af3e0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7620134099c9c262e79469f76d29813b8a8a1060",
"extension"... | stackv2 | #include <stdio.h>
int main(int argc,char *argv[])
{
FILE *fp = fopen(argv[1],"r");
if(fp == NULL)
{
printf("Could not read input from input file");
}
else{
int input=0;
int count=0;
int min = 0;
int max = 0;
long long int sum = 0;
while(fscanf... | 2.828125 | 3 |
2024-11-18T23:18:16.301885+00:00 | 2018-03-23T10:56:31 | 50a845de3fef742087ebac74a4fd949460ca473d | {
"blob_id": "50a845de3fef742087ebac74a4fd949460ca473d",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-23T10:56:31",
"content_id": "5f173c9182f214d0507b352e89ecd5489a3c7545",
"detected_licenses": [
"MIT"
],
"directory_id": "b5f6b10338f58a985a71822cf883357bb95e761c",
"extension": "c"... | stackv2 | /* Standard C Headers */
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
/* Thread pool header file */
#include "utils.h"
#include "threadpool.h"
/******************************************************************************/
/* Private types */
/**
* @brief Here is the definition of... | 2.921875 | 3 |
2024-11-18T23:18:16.901352+00:00 | 2021-05-23T12:46:30 | 7c571bd4b81cec20e18f0cca48d4ca221a4c1e7d | {
"blob_id": "7c571bd4b81cec20e18f0cca48d4ca221a4c1e7d",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-23T12:46:30",
"content_id": "9c1f3111fbc19d7073b8d32b8367fca169a4d9b7",
"detected_licenses": [
"MIT"
],
"directory_id": "33ba92930c40b7f18942eee40adbf41976be12fb",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <freertos/semphr.h>
TaskHandle_t th1= NULL;
TaskHandle_t th2=NULL;
SemaphoreHandle_t MySem= NULL;
void Task1(void *p)
{
for(;;)
{
if(xSemaphoreTakeRecursive(MySem,500))
{
printf("Task1 got the ... | 3.125 | 3 |
2024-11-18T23:18:17.096024+00:00 | 2022-09-19T10:50:29 | c53e504cc22dea288c6bb50f9aa71cceaacb4185 | {
"blob_id": "c53e504cc22dea288c6bb50f9aa71cceaacb4185",
"branch_name": "refs/heads/main",
"committer_date": "2022-09-19T10:50:29",
"content_id": "05bdc0aaa651731be6e296fb0c2e12ec1c711534",
"detected_licenses": [
"MIT"
],
"directory_id": "af8b553fafb5cb931f8e0a652777b8bf86a99897",
"extension": "c",
... | stackv2 | #include "tree.h"
#include <stdio.h>
void traversal(Node *root, int N, int command[])
{
int i, j, now = 0;
Node *nodes[1024];
nodes[0] = root;
for (i = 0; i < N; i++)
{
switch (command[i])
{
case 0:
printf("%d\n", nodes[now]->label);
return;
break;
case 1:
printf("%d\n", nodes[now]->label);
... | 2.921875 | 3 |
2024-11-18T23:18:17.961483+00:00 | 2020-01-19T09:52:37 | 3882b269fecd94297fe38d6e89f7e7c32b778c74 | {
"blob_id": "3882b269fecd94297fe38d6e89f7e7c32b778c74",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-19T09:52:37",
"content_id": "68a229ed38826cb0fe9447161b3dd285553a67d1",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "0f74dde0cacd503d5e8e0f004590d7cc01801c28",
"extension":... | stackv2 | #include <stdio.h>
#include "ip_connection.h"
#define HOST "localhost"
#define PORT 4223
#define SECRET "My Authentication Secret!"
// Authenticate each time the connection got (re-)established
void cb_connected(uint8_t connect_reason, void *user_data) {
IPConnection *ipcon = (IPConnection *)user_data;
switch(con... | 2.921875 | 3 |
2024-11-18T23:18:18.125667+00:00 | 2013-06-26T16:12:14 | 4051ac998b03a572f3f006c720cf7962dcb499f2 | {
"blob_id": "4051ac998b03a572f3f006c720cf7962dcb499f2",
"branch_name": "refs/heads/master",
"committer_date": "2013-06-26T16:12:14",
"content_id": "9f5b691af07d9aba0dfe00079ce65184812b2844",
"detected_licenses": [
"BSD-3-Clause",
"BSD-3-Clause-Open-MPI"
],
"directory_id": "c0adc9e3ddd1a9a468d9dbe... | stackv2 | /*
This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2012.
Authors: Andreas Knuepfer, Holger Brunst, Ronny Brendel, Thomas Kriebitzsch
*/
/**
* @file OTF_File.h
*
* @brief Provides a low-level API for accessing files.
*
* \ingroup internal
*/
#ifndef OTF_FILE_H
#define OTF_FILE_H
#inc... | 2.21875 | 2 |
2024-11-18T23:18:18.215862+00:00 | 2020-08-21T09:57:34 | 7cb5726c49e3ea22127efbbba4ecc5433910ac22 | {
"blob_id": "7cb5726c49e3ea22127efbbba4ecc5433910ac22",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-21T09:57:34",
"content_id": "59ea4a2405333165d0bffbcd62421f40bbf90ccf",
"detected_licenses": [
"MIT"
],
"directory_id": "cd8b1dfb174a5c640c19d1bc645db780be2a8646",
"extension": "c"... | stackv2 | #include "cpu/cpu.h"
#include "cpu/bus.h"
#include "ppu/dma.h"
#include "log/log.h"
void cpubus_init(CPUBus *bus, RAM *r, PPU *p, APU *a, Cassette *c, Joypad *pad) {
bus->wram = r;
bus->ppu = p;
bus->apu = a;
bus->cas = c;
bus->pad = pad;
}
uint8_t cpubus_read(CPUBus *bus, uint16_t addr) {
// log_dbg("cpu... | 2.59375 | 3 |
2024-11-18T23:18:18.712744+00:00 | 2021-01-22T06:48:33 | 8adab26df882773e58ea85662de6b3126496d4ed | {
"blob_id": "8adab26df882773e58ea85662de6b3126496d4ed",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-22T06:48:33",
"content_id": "991c57ff9316eff15e74c549094a693efccde7b5",
"detected_licenses": [
"MIT"
],
"directory_id": "536fc0b993d5927c2a0ba18f9dc7ba5318d8e053",
"extension": "c"... | stackv2 | /*
Copyright (c) 2009-2010 Tero Lindeman (kometbomb)
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, publi... | 2.28125 | 2 |
2024-11-18T23:18:18.807867+00:00 | 2016-02-29T23:09:35 | 2c7d9c585eb250f3bfeaef89f610c91e9ef5619f | {
"blob_id": "2c7d9c585eb250f3bfeaef89f610c91e9ef5619f",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-29T23:09:35",
"content_id": "08fd80c7ab9a47cdca0cca94918046327d82f818",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "95a2284e9b200035b29d10c7e29dde5b74e52ed1",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <assert.h>
static double diff_in_second(struct timespec t1, struct timespec t2)
{
struct timespec diff;
if (t2.tv_nsec-t1.tv_nsec < 0) {
diff.tv_sec = t2.tv_sec - t1.tv_sec - 1;
diff.tv_nsec = t2.tv_nsec - t1... | 2.953125 | 3 |
2024-11-18T23:18:18.869166+00:00 | 2012-11-26T01:26:25 | a3d2ee438d91063f628c2fad4f42833027ebfe02 | {
"blob_id": "a3d2ee438d91063f628c2fad4f42833027ebfe02",
"branch_name": "refs/heads/master",
"committer_date": "2012-11-26T01:26:25",
"content_id": "2144bf35a4e97f87875222f4b98e92cd630cf78e",
"detected_licenses": [
"MIT"
],
"directory_id": "4d5e97a41277bd3c5c1b9e7ede3ac443b8c42cc5",
"extension": "c"... | stackv2 | /*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK ... | 2.796875 | 3 |
2024-11-18T23:18:18.942798+00:00 | 2016-11-24T08:25:40 | 9d48cd26c65fc096c5d7856f8e8da08847f93a66 | {
"blob_id": "9d48cd26c65fc096c5d7856f8e8da08847f93a66",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-24T08:25:40",
"content_id": "bddfa4ea4f30e39b66739319526a381e7f1468f9",
"detected_licenses": [
"MIT"
],
"directory_id": "e73f1d720770c7ef20bbbc2dff37bea73b1d7556",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "merge.h"
int contains_newline(char *value) {
int i = 0;
char c;
while ((c = value[i++]) != '\0') {
if (c == '\n')
return 1;
}
return 0;
}
int main(int argc, char **argv) {
char *output = NULL;
if (argc <= 1) {
printf("Please enter a path for the ascii art... | 3.0625 | 3 |
2024-11-18T23:18:19.067337+00:00 | 2019-06-13T15:24:33 | 80ed59741c728006fa82c6ca6e37b6dacaf8ef9f | {
"blob_id": "80ed59741c728006fa82c6ca6e37b6dacaf8ef9f",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-13T15:24:33",
"content_id": "17a12386aec17714031f66baa0cca9d5d7907f8c",
"detected_licenses": [
"MIT"
],
"directory_id": "80b70f2b7fc6898f49049810781c6afda00868c7",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#define MAX_STRING_LENGTH 6
struct package
{
char* id;
int weight;
};
typedef struct package package;
struct post_office
{
int min_weight;
int max_weight;
package* packages;
int packages_count;
};
typedef struct post_office post_office;
struct town
{
char* name;
post_... | 2.78125 | 3 |
2024-11-18T23:18:19.205619+00:00 | 2016-06-03T04:24:33 | c01c5f37ce162b5f2acea715a8aad1054c6488eb | {
"blob_id": "c01c5f37ce162b5f2acea715a8aad1054c6488eb",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-03T04:24:33",
"content_id": "b6eda7c23eb6f2892c77d2d8d7d6444afbad8679",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "bdc8fc240bda2fa23882379ca608d1615cfff639",
"extens... | stackv2 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef DIAGONAL_BYTEVECTOR_H
#define DIAGONAL_BYTEVECTOR_H
#define DIAG_BYTEVECTOR_HEAD \
/* number of bytes in vector */ \
size_t size; \
/* array of bytes */ \
uint8_t *data; \
/* callback invoked with this by... | 2.59375 | 3 |
2024-11-18T23:18:19.346561+00:00 | 2014-11-17T18:39:13 | 63f03a493cd0841ac3e9031cd4ca58dcb0b7ddde | {
"blob_id": "63f03a493cd0841ac3e9031cd4ca58dcb0b7ddde",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-17T18:39:13",
"content_id": "3a392d95b789ab7c06bd6a03b8b752ab3e356a31",
"detected_licenses": [
"MIT"
],
"directory_id": "b93bd7cde05d7e0a1ededd815f50187cb0654d99",
"extension": "c"... | stackv2 | pointer = (0) | 0;
heap[pointer] = (heap[pointer]) + 1;
heap[pointer] = (heap[pointer]) + 1;
heap[pointer] = (heap[pointer]) + 1;
pointer += 1;
heap[pointer] = (heap[pointer]) + 1;
pointer += -1;
while (heap[pointer] != 0) {
heap[pointer] = (heap[pointer]) + -1;
pointer +... | 2.203125 | 2 |
2024-11-18T23:18:19.404293+00:00 | 2021-08-14T02:07:44 | 3205bbcf228944feac36ff3d2555548b36889a1a | {
"blob_id": "3205bbcf228944feac36ff3d2555548b36889a1a",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-14T02:07:44",
"content_id": "1836c1edc0536e523fb876e4a3591d65e46d43e9",
"detected_licenses": [
"MIT"
],
"directory_id": "3d9d8b04c8f87666e81e091b14cdca0108e9e6b7",
"extension": "c",
... | stackv2 | #include<stdio.h>
void main()
{
int x;
printf("Enter a number: ");
scanf("%d",&x);
printf("The entered number is: %d",x);
} | 2.671875 | 3 |
2024-11-18T23:18:19.505773+00:00 | 2019-06-01T08:57:37 | 9f9c43d9bcd33893fb3ac1260ac557853cff4c24 | {
"blob_id": "9f9c43d9bcd33893fb3ac1260ac557853cff4c24",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-01T08:59:56",
"content_id": "d2c3410e1615b2e704e03732b6da150354be9dbf",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "83bacfbdb7ad17cbc2fc897b3460de1a67... | stackv2 | /*
* Copyright 2015 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SubsetBenchPriv_DEFINED
#define SubsetBenchPriv_DEFINED
#include "SkCodec.h"
#include "SkData.h"
#include "SkImageGenerator.h"
/*
* Convert the ... | 2.15625 | 2 |
2024-11-18T23:18:20.018970+00:00 | 2019-12-09T01:05:59 | 2fb3b64625a8ce58dd05ebc769ffbf19bd2a80d6 | {
"blob_id": "2fb3b64625a8ce58dd05ebc769ffbf19bd2a80d6",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-09T01:05:59",
"content_id": "8719c9849b7b7bb2c8d77ea32a1d0839051eba8b",
"detected_licenses": [
"MIT"
],
"directory_id": "cc68134e5396b2de2e1c5e7ff4ac748f0133f429",
"extension": "c"... | stackv2 | #include <stdint.h>
#define CLK_DIVR (*(volatile uint8_t *)0x50c6)
#define CLK_PCKENR1 (*(volatile uint8_t *)0x50c7)
#define TIM1_CR1 (*(volatile uint8_t *)0x5250)
#define TIM1_CNTRH (*(volatile uint8_t *)0x525e)
#define TIM1_CNTRL (*(volatile uint8_t *)0x525f)
#define TIM1_PSCRH (*(volatile uint8_t *)0x5260)
#define... | 2.203125 | 2 |
2024-11-18T23:31:35.674587+00:00 | 2017-05-05T17:49:49 | 73d02c34152c876380e7df1603af5b443604fe75 | {
"blob_id": "73d02c34152c876380e7df1603af5b443604fe75",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-05T17:49:49",
"content_id": "9f2700deabdd65100400eb2afda795fc70464dfb",
"detected_licenses": [
"Artistic-2.0"
],
"directory_id": "0e847f9c95f4152aaad4430752c5a67be3141aa1",
"extens... | stackv2 | /*
* Author: Peter Dickman
* Version: 1.0
* Last edit: 2003-02-18
*
* This file is a component of the test harness and or sample
* solution to the NetworkDriver exercise developed in February 2003
* for use in assessing:
* the OS3 module in undergraduate Computing Science at dcs.gla.ac.uk
*
* It tests... | 2.109375 | 2 |
2024-11-18T23:31:36.969427+00:00 | 2021-10-18T09:39:09 | 091e87c1625e73f7a12e64b1b908cb22d2a6a6a0 | {
"blob_id": "091e87c1625e73f7a12e64b1b908cb22d2a6a6a0",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-18T09:39:09",
"content_id": "9aaefe4259723d9bc0ec346f29c535dfa2b35363",
"detected_licenses": [
"MIT"
],
"directory_id": "6d106f5c8831a9e8a93cc2fa3e0d52988592584f",
"extension": "c"... | stackv2 | #include <stdmansos.h>
//PORT1
#define MuxEn 0x01
#define MuxSel1 0x02
#define MuxSel2 0x04
#define DeMuxSel 0x08 //Pie DeMuxSel = 0, Mux izvçlas MSP nevis XPort
#define DeMuxEn 0x10
#define MSPRTS 0x20
#define RST 0x40
#define CTS 0x80
//PORT2
#define MSPDTR 0x01
#define XPortRTS 0x02
#define XPortDTR 0x04... | 2.359375 | 2 |
2024-11-18T23:31:37.031047+00:00 | 2020-05-22T14:14:32 | d906cd55d048a4ed2eeb129bf5222aa6c866ac67 | {
"blob_id": "d906cd55d048a4ed2eeb129bf5222aa6c866ac67",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-22T14:14:32",
"content_id": "0e2da48fed0ef9fe9a72904d28ea56757842deaf",
"detected_licenses": [
"MIT"
],
"directory_id": "8500a8b8ab08c542dc7cc0ae2614db748324a22a",
"extension": "c"... | stackv2 | /*
* sm: educational resources to teach concurrent programming
* Copyright (C) 2016 Renzo Davoli, University of Bologna
*
* implementation of (fair) semaphores
*
* sm is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by t... | 2.765625 | 3 |
2024-11-18T23:31:55.692715+00:00 | 2018-05-25T19:38:46 | e7b7b01378dcb7aa94da2d014ac793e3ea5a80d7 | {
"blob_id": "e7b7b01378dcb7aa94da2d014ac793e3ea5a80d7",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-25T19:38:46",
"content_id": "d6f78951185f2ac28f7acc0815fc5f9acaa13edc",
"detected_licenses": [
"Unlicense"
],
"directory_id": "a30a8b60e07ba5b3db7455c7901b3aa464db97d8",
"extension... | stackv2 | /*
Nome: Esfera
ID: 1011
Resposta: Accepted
Linguagem: C
Tempo: 0.000s
Tamanho: 192 Bytes
Submissao: 01/01/15 10:03:56
*/
#include <stdio.h>
#include <math.h>
int main(){
double radius, volume, pi = 3.14159;
scanf("%lf",&radius);
volume = (4.0/3) * pi * pow(radius,3);
printf("VOLUME = %.3lf\n",volume... | 2.5 | 2 |
2024-11-18T23:31:55.778408+00:00 | 2022-10-22T17:12:17 | 73246e33c79078db7b67cdcf32ab4e806f0b8feb | {
"blob_id": "73246e33c79078db7b67cdcf32ab4e806f0b8feb",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-22T17:12:17",
"content_id": "3ad6645569131a9de4e6f5939308af5be7d168d4",
"detected_licenses": [
"ISC"
],
"directory_id": "1768d0827d63515ed74726fdf7e7ed5799b8bdc3",
"extension": "c"... | stackv2 | /* See LICENSE file for copyright and license details */
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <time.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <unistd.h>
#include "ai.h"
#include "hidamari.h"
#include "region.h"
#define TILE_S 16
void
render(SDL_Renderer *renderer... | 2.40625 | 2 |
2024-11-18T23:31:56.299848+00:00 | 2022-04-17T12:05:03 | ece513a6f3a51b1c0ee4e0490fa92446177967a7 | {
"blob_id": "ece513a6f3a51b1c0ee4e0490fa92446177967a7",
"branch_name": "refs/heads/master",
"committer_date": "2022-04-17T12:05:03",
"content_id": "797e52b2fe260fabf4395b9ca58955ef002a21b3",
"detected_licenses": [
"Unlicense"
],
"directory_id": "9f7475c9fe7a5fac205af660885f9051f7a83468",
"extension... | stackv2 | #pragma once
#include "binary_indexed_tree.h"
// - for sum from 0 to pos
// - f(x) = mul * x + add
struct BinaryIndexedTreeMultAdd {
BinaryIndexedTree mulBIT;
BinaryIndexedTree addBIT;
explicit BinaryIndexedTreeMultAdd(int n) : mulBIT(n), addBIT(n) {
}
void add(int x, int d) {
mulBIT.add... | 2.765625 | 3 |
2024-11-18T23:31:56.501208+00:00 | 2023-08-07T19:18:32 | 30558da825bf051d36cd1b87077d0c9e8aacdf3e | {
"blob_id": "30558da825bf051d36cd1b87077d0c9e8aacdf3e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T19:18:32",
"content_id": "82c1ee2731932e588a8ebf38e8ac5af72edabaaa",
"detected_licenses": [
"curl",
"Apache-2.0"
],
"directory_id": "e1d9c54e9925e30e388a255b53a93cccad0b94cb",... | stackv2 | #ifndef v1_node_condition_TEST
#define v1_node_condition_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define v1_node_condition_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include "../external/... | 2.625 | 3 |
2024-11-18T23:32:00.561473+00:00 | 2021-05-26T15:22:17 | 8666488b99c4b5698219e2a14deb7ffc161af049 | {
"blob_id": "8666488b99c4b5698219e2a14deb7ffc161af049",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-26T15:22:17",
"content_id": "9a71dbde3f673e459cdcbe4359f0cf9539730290",
"detected_licenses": [
"MIT"
],
"directory_id": "794328c26e0fcc5e91ccb719350f5ea4ca36113a",
"extension": "c"... | stackv2 | /*
* Test code for ibi functions
*/
#include "../core.h"
#include "../utils/bufhelp.h"
//#include "../impl/ibi.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <time.h>
#include <unistd.h>
//linux
long long rdtsc(){
unsigned int lo,hi;
__asm__ __volatile__ ("rdtsc" : "=a"... | 2.28125 | 2 |
2024-11-18T23:32:00.640066+00:00 | 2017-12-20T20:53:15 | 5fb134b682062ab271d9be4131944df8211c5bc8 | {
"blob_id": "5fb134b682062ab271d9be4131944df8211c5bc8",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-20T20:53:15",
"content_id": "7bc8edfb376b1b60d1ed488b3671cee3770cd64c",
"detected_licenses": [
"MIT"
],
"directory_id": "07023794a79e46fb04c6dc35690658dd943641d9",
"extension": "c"... | stackv2 | #include "RCReceiver.h"
#include "stm32f4xx_hal.h"
#include "cmsis_os.h"
extern TIM_HandleTypeDef htim4;
uint8_t RCIn_Throttle_State = 0;
uint32_t RCIn_Throttle_IC1 = 0;
uint32_t RCIn_Throttle_IC2 = 0;
uint32_t RCIn_Throttle_Micros = 0;
uint32_t RCIn_Throttle_LastUpdate = 0;
uint32_t RCIn_Throttle_CalMicrosMin = 85... | 2.671875 | 3 |
2024-11-18T23:32:00.722415+00:00 | 2020-05-13T06:57:14 | 3dd60158d9753d1cfa9fe57c524d8380a4b778c6 | {
"blob_id": "3dd60158d9753d1cfa9fe57c524d8380a4b778c6",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-13T06:57:14",
"content_id": "bef8ce91d371e0d39e83abf949dd2b31f1775a97",
"detected_licenses": [
"MIT"
],
"directory_id": "e547ec91477fe373ab56ea46ead913fb2a0e7ac3",
"extension": "c"... | stackv2 | #include <windows.h>
#include <stdio.h>
LPWSTR g_DriverName = L"Generic / Text Only";
LPWSTR g_PortName = L"c:\\windows\\tracing\\demoport.txt";
LPWSTR g_PrinterName = L"PrintDemon";
INT
main (
_In_ INT ArgumentCount,
_In_ PCHAR Arguments[]
)
{
HRESULT hr;
PRINTER_INFO_2 printerInfo;
HANDLE hP... | 2.046875 | 2 |
2024-11-18T23:32:00.797727+00:00 | 2021-08-08T03:18:44 | efa59638ea9d5e12b175280b270a8eb4dfd3280c | {
"blob_id": "efa59638ea9d5e12b175280b270a8eb4dfd3280c",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-08T03:18:44",
"content_id": "6b14de912713b20a70b01b2617e382d4565af32c",
"detected_licenses": [
"MIT"
],
"directory_id": "a58896b7abdaf4cf60007986778b13ad2591051c",
"extension": "c",
... | stackv2 | #include <i86.h>
#include <stdlib.h>
#include <malloc.h>
#include <dos.h>
#include <string.h>
#include "mode.H"
// point to the beginning of the MONO memory in mode
#define MONO_AREA 0xb000
#define MONO_LINEAR_ADDRESS ((MONO_AREA) << 4)
void GUGDebugString(char *str) {
int i;
char *MONO_MEMORY;
MONO_... | 2.515625 | 3 |
2024-11-18T23:32:00.872902+00:00 | 2017-01-31T23:22:16 | 7dd460914435a80e0fe1a6adb0bf5cc89feb556a | {
"blob_id": "7dd460914435a80e0fe1a6adb0bf5cc89feb556a",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-31T23:31:35",
"content_id": "cc50c759630add555fb5239154c0ef5a33b97f1c",
"detected_licenses": [
"MIT"
],
"directory_id": "0425b6a25752dffc8b5bcd0e830c5b4eedce6ff5",
"extension": "c"... | stackv2 | #include "string.h"
#include "test.h"
#include "listlike.h"
void test_listlike_as_stack () {
test_start("Listlike as stack");
test_describe("An empty listlike");
listlike *listlike = listlike_create();
test_ok(listlike != NULL, "listlike is not null");
test_ok(listlike->head == NULL, "listlike head is null... | 3.21875 | 3 |
2024-11-18T23:32:01.317497+00:00 | 2020-07-29T03:31:25 | 540301393d3c35ea32420c578744636d2fec0f35 | {
"blob_id": "540301393d3c35ea32420c578744636d2fec0f35",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-29T03:31:25",
"content_id": "72c1f88c4c3320b512bf188a98be909b4d0279e5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a26e96d6ff0f69ce4f66914f8fe60be1262707e4",
"extensio... | stackv2 | /*
* Copyright (c) 2019 IOTA Stiftung
* https://github.com/iotaledger/iota_common
*
* Refer to the LICENSE file for licensing information
*/
#include "common/crypto/curl-p/hamming.h"
#include "common/crypto/curl-p/ptrit.h"
#include "common/crypto/curl-p/search.h"
#include "common/crypto/curl-p/trit.h"
static tes... | 2.125 | 2 |
2024-11-18T23:32:01.904248+00:00 | 2023-03-16T14:41:42 | a12da6ed951b85bf1007ed531fdb335ef76df81d | {
"blob_id": "a12da6ed951b85bf1007ed531fdb335ef76df81d",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-16T14:42:35",
"content_id": "0fb05169981b5562042fb06fb3c978848aa990cc",
"detected_licenses": [
"MIT"
],
"directory_id": "2be6e0573d5691e084629c32ecb43142b5b5a1ee",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "card.h"
#include "common.h"
void card_malloc(struct card **card) {
if (!(*card = malloc(sizeof(**card)))) {
tty_solitaire_generic_error(errno, __FILE__, __LINE__);
}
frame_malloc(&((*card)->frame));
}
void card_init(struct card *card) {
... | 2.65625 | 3 |
2024-11-18T23:32:02.051162+00:00 | 2023-08-08T01:28:15 | 5b915cc98349b8fd2083f50bad151430c10779d8 | {
"blob_id": "5b915cc98349b8fd2083f50bad151430c10779d8",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-08T01:28:15",
"content_id": "138a51025101d871ba552219907687e1cdcce784",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "71dc1272e39400d08eb26a02e3339c31... | stackv2 | #ifndef DDEBUG
#define DDEBUG 0
#endif
#include "ddebug.h"
#include "ngx_http_echo_var.h"
#include "ngx_http_echo_timer.h"
#include "ngx_http_echo_request_info.h"
#include "ngx_http_echo_foreach.h"
static ngx_int_t ngx_http_echo_incr_variable(ngx_http_request_t *r,
ngx_http_variable_value_t *v, uintptr_t dat... | 2.0625 | 2 |
2024-11-18T23:32:02.326313+00:00 | 2021-09-21T11:55:47 | a4d09ce73648eab167e4926afe76e8b0e1736889 | {
"blob_id": "a4d09ce73648eab167e4926afe76e8b0e1736889",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-21T11:55:47",
"content_id": "b39fa0561b01846d56a130c8df73b59f10873263",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "399cb48d5878486be4aa929f4e206bad714611e0",
"extens... | stackv2 | /*
* Copyright 2017 NXP
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "cryptoki.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <general.h>
#include <tee_slot.h>
#include <crypto.h>
/*
* ENCRYPTION FUNCTIONS
*/
CK_RV C_EncryptInit(CK_SESSION_HANDLE hSessio... | 2.265625 | 2 |
2024-11-18T23:32:02.626169+00:00 | 2021-01-24T15:48:30 | 4f7aa3f812e186d26228a6c49803feefb970fe56 | {
"blob_id": "4f7aa3f812e186d26228a6c49803feefb970fe56",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-24T15:48:30",
"content_id": "81403ded5157a2734c99c7546f36e3ccec14c1b1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "bba97ee4f94a225f213b8a6f042bf084bdee831d",
"extens... | stackv2 | /*----------------------------------------------------------------------------
* Name: sample.c
*
* This software is supplied "AS IS" without warranties of any kind.
*
* Copyright (c) 2019 Politecnico di Torino. All rights reserved.
*----------------------------------------------------------------------------*... | 2.21875 | 2 |
2024-11-18T23:32:02.730621+00:00 | 2020-10-21T04:49:21 | 1357799c2e178cc5679a7e9a6df0bec199e7065a | {
"blob_id": "1357799c2e178cc5679a7e9a6df0bec199e7065a",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-21T04:49:21",
"content_id": "0d1723108afd77b63bd553770a09f9c92dcca219",
"detected_licenses": [
"MIT"
],
"directory_id": "63080fff33c385854f21ae3a260d8481aff81a1b",
"extension": "c"... | stackv2 | /* Programa para verificar o mês de maior acesso e sua média em servidores
durante um ano */
#include <stdio.h> // Utilização das funções scanf() e printf()
int main(int argc, char *argv[]){
/* Declaração e inicialização do vetor horas[12], que guardará os
valores digitados pelo usuário */
double horas[12] = {0... | 3.9375 | 4 |
2024-11-18T23:32:03.831825+00:00 | 2015-12-06T11:01:54 | e07de1259debcde0f6cbc92d19ef70f970e8999c | {
"blob_id": "e07de1259debcde0f6cbc92d19ef70f970e8999c",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-06T11:01:54",
"content_id": "34ab640897e173d0212a0ad95dd937b3a4e2bead",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5a922fb058f466a5428eb34ff120fbe3a7e5d556",
"extensio... | stackv2 | #include "readp1.h"
//#define NOMYSQL // define to output MySQL statements to stdout
//#define DEBUG
//#define ERROR
#ifdef DEBUG
#define printf_debug(fmt, args...) printf(fmt, ## args);fflush(stdout)
#else
#define printf_debug(fmt, args...) /* Don't do anything in release builds */
#endif
#ifdef ERROR
#defin... | 2.640625 | 3 |
2024-11-18T21:24:34.247026+00:00 | 2013-11-21T17:53:46 | c5c1174922a69afdf23a91ad9dc83bc9e774eb70 | {
"blob_id": "c5c1174922a69afdf23a91ad9dc83bc9e774eb70",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-21T17:53:48",
"content_id": "850f7249a2dbc0f0dd11ba7ed9d6452458d7458e",
"detected_licenses": [
"MIT"
],
"directory_id": "29e4940ab12f2c12a7cbbf52706cb82696a965af",
"extension": "c"... | stackv2 | /* rawtoppm.c - convert raw RGB bytes into a portable pixmap
**
** Copyright (C) 1991 by Jef Poskanzer.
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
** that the above copyright notice appear in all copies and tha... | 2.296875 | 2 |
2024-11-18T21:24:34.360382+00:00 | 2023-08-26T10:35:48 | 6775cb6451c415bd108df0e1eae850670cbc054d | {
"blob_id": "6775cb6451c415bd108df0e1eae850670cbc054d",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-26T10:35:48",
"content_id": "73059c5d56baad1b1be37c65b8800871440eca59",
"detected_licenses": [
"MIT"
],
"directory_id": "f25847541dd3dd87d42d78eba81a351b72a4d0af",
"extension": "c"... | stackv2 | #include "audio_input.h"
#include "av_register.h"
#include <stdlib.h>
struct ai_context_t
{
const audio_input_t* ai;
void* id;
};
void* audio_input_open(int channels, int frequency, int format, int frames, audio_input_callback cb, void* param)
{
struct ai_context_t* h;
h = (struct ai_context_t*)malloc(sizeof(stru... | 2.28125 | 2 |
2024-11-18T21:24:34.451365+00:00 | 2020-10-22T02:21:11 | c93ed5143bb27ec5ca41e8b0ae41c1980777070d | {
"blob_id": "c93ed5143bb27ec5ca41e8b0ae41c1980777070d",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-22T02:21:11",
"content_id": "0396a4ce20a895acaa137c333a73890e423e45e0",
"detected_licenses": [
"MIT"
],
"directory_id": "672e979dd5319ac427ef1562734ce99bee7b67ea",
"extension": "c"... | stackv2 | // WAP to input data in two dimensional array for example 3X3 matrix and display in matrix form.
#include<stdio.h>
void main()
{
int i, j, a[3][3];
for(i = 0; i < 3; i++){
for(j = 0; j<3; j++){
printf("\nEnter the matrix elements:");
scanf("%d", &a[i][j]);
}
}
printf("\nThe 3X3 matrix elements are: \n");
... | 3.359375 | 3 |
2024-11-18T21:24:34.697224+00:00 | 2018-12-22T20:20:32 | 61a6ba1aca878a1fbaf07472a55c95dec10b89c1 | {
"blob_id": "61a6ba1aca878a1fbaf07472a55c95dec10b89c1",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-22T20:20:32",
"content_id": "4a6c046bfa6ff868dc9916219772fb44215a20b6",
"detected_licenses": [
"MIT"
],
"directory_id": "b3134aea30ab7362ec16590736935ea66c0716c4",
"extension": "c"... | stackv2 | /* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... | 2.25 | 2 |
2024-11-18T21:24:35.337295+00:00 | 2022-10-22T20:20:46 | ce4f2231fdec1da74249ac9a5dda9e7e7b877287 | {
"blob_id": "ce4f2231fdec1da74249ac9a5dda9e7e7b877287",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-26T22:52:54",
"content_id": "6b4a27658e4d9a1afcc06db397edfbebecb420cd",
"detected_licenses": [
"MIT"
],
"directory_id": "d305511062377f76f4ed4c3ef7ec635daf922f36",
"extension": "c"... | stackv2 | //bin/mkdir -p "${TMPDIR:-/tmp}/${d:=$(realpath -s "${0%/*}")}/${n:=${0##*/}}" && exec \
//usr/bin/make -C "$_" -sf/dev/null --eval="!:${n%.*};./$<" VPATH="$d" CFLAGS=-std=c99 LDFLAGS=-lX11 "$@"
// vim:ft=c
//---
// SUMMARY: grab global key <C-S-k> -- press to exit
// USAGE: $ ./$0
// WARN: NumLock, CapsLock are counte... | 2.046875 | 2 |
2024-11-18T21:24:35.416798+00:00 | 2019-12-08T14:17:10 | 43724279f5305fbb3137de79d80d90c2e26ab030 | {
"blob_id": "43724279f5305fbb3137de79d80d90c2e26ab030",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-08T14:17:10",
"content_id": "cc4865460fc040231c9f9add7aaecc95065506c9",
"detected_licenses": [
"MIT"
],
"directory_id": "6d5bcfc49ee7159c2847f9afb8ff895dded5db78",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2008-2016 Allwinner Technology Co. Ltd.
* All rights reserved.
*
* File : statusChange.c
* Description :
* History :
* Author : xyliu <xyliu@allwinnertech.com>
* Date : 2015/05/05
* Comment :
*
*
*/
//#define LOG_NDEBUG 0
#define LOG_TAG "mpgTime"
#include <cdx_log.h>
#include "CdxMpgPar... | 2.046875 | 2 |
2024-11-18T21:24:35.551294+00:00 | 2021-11-13T17:31:57 | ac287ca045273020d1f4a45e32c9d85faa3b0aac | {
"blob_id": "ac287ca045273020d1f4a45e32c9d85faa3b0aac",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-13T17:31:57",
"content_id": "42483fa379f650c332cc7ce011f7f80d05a1e422",
"detected_licenses": [
"MIT"
],
"directory_id": "09140c9111164e1c6418893e0e62172fc5ef3b4f",
"extension": "h",
... | stackv2 | #ifndef __MACROS_H__
#define __MACROS_H__
#ifdef _DEBUG
#define debug(...) fprintf(stderr, __VA_ARGS__)
#else
#define debug(...)
#endif
/* Time */
#define TIME_VARS tiempo_usec _t_ini, _t_fin
#define TIME_START getTickTime(&_t_ini)
#define TIME_END getTickTime(&_t_fin)
#define TIME_DIFF getTimeDiff(_t_ini, _t_fin)... | 2.109375 | 2 |
2024-11-18T21:24:35.614350+00:00 | 2016-04-18T17:09:05 | e13ede86961fa32f13d42eaac0b3dd0c846fe495 | {
"blob_id": "e13ede86961fa32f13d42eaac0b3dd0c846fe495",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-18T17:09:56",
"content_id": "0753bb9496fa4bf278782af32cf821bc72e8c34d",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "754ff3e6e05f244c143312c9689a637fc7869904",
"extens... | stackv2 | /* -*- Mode: C; c-basic-offset:2 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2014-2016 Los Alamos National Security, LLC. All rights
* reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
/**
* @file context.h
* @brief Internal hio context
*/
#if !de... | 2.28125 | 2 |
2024-11-18T21:24:35.729595+00:00 | 2016-10-07T03:48:11 | 62e961826e2b382b046a31318f6ade1a9221e63b | {
"blob_id": "62e961826e2b382b046a31318f6ade1a9221e63b",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-07T03:48:11",
"content_id": "da1b854027df5cd5f5ef489a491711bb4e65bb72",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9640c62fb925b1d0b08a7ede551b78bbfa643ce0",
"extensio... | stackv2 | /*
Copyright 2016 Bobby Crawford (ozdevguy) | ozdevguy@gmail.com
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 o... | 2.234375 | 2 |
2024-11-18T21:24:36.118827+00:00 | 2017-09-30T21:16:13 | 6bcb796acc1c4aed6fb324143c2143e311e6c200 | {
"blob_id": "6bcb796acc1c4aed6fb324143c2143e311e6c200",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-30T21:16:13",
"content_id": "ea91b47e3216d2607f9412f2f072407882b66fcb",
"detected_licenses": [
"MIT"
],
"directory_id": "e3e6e7d43c74f3c4430ce2446b6631bd24f189cd",
"extension": "c"... | stackv2 | /* Copyright (c) 2014-2016, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file torcert.c
*
* \brief Implementation for ed25519-signed certificates as used in the Tor
* protocol.
*/
#include "crypto.h"
#include "torcert.h"
#include "ed25519_cert.h"
#include "torlog.h"
#include "tor_u... | 2.484375 | 2 |
2024-11-18T21:24:36.471799+00:00 | 2023-08-21T12:13:47 | 1dd2c9aca0f20e8498108609420f8edfd2dfa20c | {
"blob_id": "1dd2c9aca0f20e8498108609420f8edfd2dfa20c",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-21T12:13:47",
"content_id": "dea7e2552ebed6d6825263c1a7b95cf4b366c187",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "7d7900e1c25b729fc8c208673a449c0520ba466e",
... | stackv2 | /* This test is part of pocl.
* It is intended to run as the first test of the
* testsuite, checking that the tests are
* not run against an other installed OpenCL library.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "poclu.h"
#include "config.h"
#include "pocl_version.h"
#define S(A)... | 2.46875 | 2 |
2024-11-18T21:24:36.590029+00:00 | 2021-06-19T13:15:05 | e5bedce25d91e1bb9301a165610cc2ca42a75713 | {
"blob_id": "e5bedce25d91e1bb9301a165610cc2ca42a75713",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-19T13:15:05",
"content_id": "58f1e4216ecfca149c05c3a1cd2aa06ee304ca1c",
"detected_licenses": [
"MIT"
],
"directory_id": "bcb98ef460f807b2a8fb25eff29f7c4cb3c64227",
"extension": "c",
... | stackv2 | #include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
int binarySearch(int[] a, int x)
{
// Making sure our array a is sorted, the algorithm starts by taking minimum and maximum array index.
int low = 0;
int high = a.length - 1;
int mid;
while (low <= high)
{
// For this usage we ... | 3.921875 | 4 |
2024-11-18T21:24:44.169808+00:00 | 2021-09-08T11:37:15 | 83c4ce5884714f75f74a28666286bb1e625cab88 | {
"blob_id": "83c4ce5884714f75f74a28666286bb1e625cab88",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-08T11:37:15",
"content_id": "207c1f2c318e5f77e2c6be5fc5cff287f1bfe670",
"detected_licenses": [
"Unlicense"
],
"directory_id": "07fa769381b861766f6ac960383b56ce9d836e36",
"extension":... | stackv2 | /*********************************************************************/
/* */
/* This Program Written by Paul Edwards. */
/* Released to the public domain */
/* ... | 2.53125 | 3 |
2024-11-18T21:24:45.084374+00:00 | 2021-02-18T11:17:29 | 97576c694d93a9922cedd1399dcd8fab34d0cc94 | {
"blob_id": "97576c694d93a9922cedd1399dcd8fab34d0cc94",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-18T11:17:29",
"content_id": "3be8ead9c588c297e9e0cf9444979d1b061c187a",
"detected_licenses": [
"MIT"
],
"directory_id": "3d49cece441bdc1287f3b85a3c4fd902131f3265",
"extension": "c",
... | stackv2 | /*
* (version 2) programm delets all unnecessary tabs and blanks in the end of the sentence.
* It also delets all empty lines.
*/
#include <stdio.h>
#define MAXLINE 1000 /* max input of one line */
int get_line(char s[], int limit);
int checkline(char character[], int len);
void printline(char line[], int rlen);
int... | 3.640625 | 4 |
2024-11-18T21:24:45.319806+00:00 | 2020-01-24T20:19:02 | 171cfa762fee52c53ad14151cb936dc4bbbe3b0a | {
"blob_id": "171cfa762fee52c53ad14151cb936dc4bbbe3b0a",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-24T20:19:02",
"content_id": "c94e33c8ad7331d4bd44c86a091236ad7cb7ff09",
"detected_licenses": [
"MIT"
],
"directory_id": "d73b464b44dd4cbe8b7999785c9b22caf4f6725b",
"extension": "c"... | stackv2 | /*
Description:
Output the circumference and area of a circle with a given radius
Input:
- r ... radius
Output:
- circle circumference (2*r*pi)
- circle area (r*r*pi)
*/
#include <stdio.h>
#define true 1
#define false 0
double calc_pi()
{
/* Using Leibniz's Formula to estimate Pi */
double pi = 1;
i... | 3.78125 | 4 |
2024-11-18T21:24:48.389270+00:00 | 2019-10-31T16:01:11 | a5a01bc230f189cbb7bd3a67879ff4d1c9d6b9f9 | {
"blob_id": "a5a01bc230f189cbb7bd3a67879ff4d1c9d6b9f9",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-31T16:01:11",
"content_id": "8862596675b579e5453095dfec5af1b699e9e1ba",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "99249e222a2f35ac11a7fd93bff10a3a13f6f948",
"extensio... | stackv2 | // generated from rosidl_generator_c/resource/msg__functions.c.em
// generated code does not contain a copyright notice
#include "lifecycle_msgs/srv/change_state__response__functions.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
bool
lifecycle_msgs__srv__ChangeState_Response__in... | 2.328125 | 2 |
2024-11-18T21:24:48.465856+00:00 | 2014-12-16T17:30:13 | 7c49e341a2ef8420c04eec4968bb47f260d4aee5 | {
"blob_id": "7c49e341a2ef8420c04eec4968bb47f260d4aee5",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-16T17:30:13",
"content_id": "5bcf843b2f6514409548375592c9413e7c8d58c9",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "c2a808bd51e27c5a12f409ed82f76fb7d251f5ba",
... | stackv2 | /*
* Copyright (c) 2014 Intel, Inc. All rights reserved
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#ifndef ORCM_OCTL_H
#define ORCM_OCTL_H
#include "orcm/util/cli.h"
BEGIN_C_DECLS
/* initialize cli command tree */
/* * list of parents
* * command name
* * is this an option?
... | 2.078125 | 2 |
2024-11-18T21:24:48.559576+00:00 | 2021-08-28T03:48:46 | d27da2375d2fbb8e96cc13d921150b8d638f73a5 | {
"blob_id": "d27da2375d2fbb8e96cc13d921150b8d638f73a5",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-28T03:48:46",
"content_id": "d56503e05a2667992ccda3dcfa80221cf0a35466",
"detected_licenses": [
"MIT"
],
"directory_id": "353653411fa1e0a0bc30c2c09728bacd0c8804e6",
"extension": "c"... | stackv2 |
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <util/delay.h>
#include <stdio.h>
#include <inttypes.h>
#include "uart.h"
#include "mcp2515.h"
#include "global.h"
#include "defaults.h"
// ----------------------------------------------------------------------------
#define PRINT(st... | 2.796875 | 3 |
2024-11-18T21:24:48.666283+00:00 | 2022-05-04T13:42:20 | a7cdb1c34f6098869af7632fdd0d0cfb6c6a3c1a | {
"blob_id": "a7cdb1c34f6098869af7632fdd0d0cfb6c6a3c1a",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-04T13:42:20",
"content_id": "b2708c439d5f068c1efc50874be35281491545b1",
"detected_licenses": [
"MIT"
],
"directory_id": "96bf2ec5c1536831b6a3e08675286770d44d858c",
"extension": "c"... | stackv2 | //
// hello_world.c
// src_start
//
// __|__
// --o--o--(̊)--o--o--
// C is the bext programming language
//
// Created by Chyi Yaqing on 03/31/19.
// Copyright © 2019. Chyi Yaqing. All rights reserved.
//
#include <unistd.h>
#include <fcntl.h>
int main(void) {
// Your Programming statements HERE!
// 手动... | 2.53125 | 3 |
2024-11-18T21:24:49.514879+00:00 | 2023-08-13T10:00:00 | cffade773fa56b34957ca450bf68c6cf8cc1b035 | {
"blob_id": "cffade773fa56b34957ca450bf68c6cf8cc1b035",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T10:00:00",
"content_id": "0559ff60765bc816523a57e5d38123ee74dd0f3d",
"detected_licenses": [
"MIT"
],
"directory_id": "0cc343d927d5db6693006018986715c43acab961",
"extension": "h"... | stackv2 | #ifndef ATOMIC_INTEGER_H
#define ATOMIC_INTEGER_H
//@ predicate atomic_integer(int* i, real level, predicate(int) I);
/*@
lemma_auto void atomic_integer_inv();
requires [?f]atomic_integer(?i, ?level, ?I);
ensures [f]atomic_integer(i, level, I) &*& pointer_within_limits(i) == true;
@*/
/*@
lemma void create_a... | 2.40625 | 2 |
2024-11-18T21:24:49.596717+00:00 | 2022-07-26T21:01:29 | 49d0a86a677cabb89263e2dc5705d4e9bfeec864 | {
"blob_id": "49d0a86a677cabb89263e2dc5705d4e9bfeec864",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-26T21:01:29",
"content_id": "955e84aaa48988f28e283130332e390a629961bb",
"detected_licenses": [
"MIT"
],
"directory_id": "3f49866c9085bb54135807e77d5962d4aa0db344",
"extension": "h"... | stackv2 | #ifndef SERLCOM_H
#define SERLCOM_H
#define SERIAL_COM1_BASE 0x3F8 //COM1 serial base port
#define SERIAL_DATA_PORT(base) base
#define SERIAL_FIFO_COMMAND_PORT(base) base+2
#define SERIAL_LINE_COMMAND_PORT(base) base+3
#define SERIAL_MODEM_COMMAND_PORT(base) base+4
#define SERIAL_LINE_STATUS_PORT(base) base+5
#defin... | 2.140625 | 2 |
2024-11-18T21:24:49.986808+00:00 | 2017-05-24T05:30:56 | ad2b265ad4d322d37b048c8556618d192bc56679 | {
"blob_id": "ad2b265ad4d322d37b048c8556618d192bc56679",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-24T05:30:56",
"content_id": "0a0b4e172e75befecac318c806aaddc836740957",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b584226ebda8ec87be889dc6b6b14e07cda079c2",
"extensio... | stackv2 | #include <xmmintrin.h>
#include <smmintrin.h>
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
void densearray_kernel_cast_1d_u8_to_f32(
size_t dim,
const uint8_t *src,
float *dst)
{
for (size_t idx = 0; idx < dim; idx++) {
dst[idx] = (float)(src[idx]);
}
}
void densearray_kernel_round_c... | 2.71875 | 3 |
2024-11-18T21:24:51.547956+00:00 | 2021-09-21T15:30:24 | 235d7ae3fc6917fbbce7b43a88a1f5a1fd886489 | {
"blob_id": "235d7ae3fc6917fbbce7b43a88a1f5a1fd886489",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-21T21:56:06",
"content_id": "14796b5bd5363bbc80ba70994b015990bdcf68de",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "5d8a07ec290fa467da1aae59b33b7a9481026338",
"extensio... | stackv2 | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "system.h"
#include "cros_version.h"
/* Ongoing actions preventing going into deep-sleep mode. */
uint32_t sleep_mask;
void system_commo... | 2 | 2 |
2024-11-18T21:24:52.835258+00:00 | 2021-05-13T19:34:09 | a17c1657c787af7afd914ec56f56a8e4ea212a7b | {
"blob_id": "a17c1657c787af7afd914ec56f56a8e4ea212a7b",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-13T19:34:09",
"content_id": "ce61e827603e931dc8d42930d3d7c907db8343d2",
"detected_licenses": [
"MIT"
],
"directory_id": "3d0188c99049517b6fc30ba4bedf0be0da5e19e7",
"extension": "c",
... | stackv2 | /*
Autor: José García
Compilador: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Compilar: gcc RaizCuad.c -o RaizCuad
Fecha: Wed Mar 17 10:28:06 CST 2021
Librerias: stdio, (otras)
Resumen: Calcula la raiz cuadrada (aproximada a entero) de un número entero
Entradas: Número n (entero)
Salidas: Raíz cuadrada de n (aproximada al... | 3.546875 | 4 |
2024-11-18T21:24:53.272924+00:00 | 2019-01-20T15:18:06 | 3d47702631ba4d19c8c0f81dcacff3cb9d9e3013 | {
"blob_id": "3d47702631ba4d19c8c0f81dcacff3cb9d9e3013",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-20T15:18:06",
"content_id": "fd997a5e33fe37c47a06327c48aa0a7789a2f362",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "baab0f00e4765fae69705e8b7429b3a7010d6b28",
"extens... | stackv2 | /**
* \file hsi2cTempSensor.c
*
* \brief This application invokes APIs of HSI2C to control Temperature
* Sensor to measure the surrounding temperature. The measured
* temperature will be displayed on console. Application continuously
* reads the temperature and the read value is compare... | 2.296875 | 2 |
2024-11-18T21:24:53.427866+00:00 | 2020-06-25T03:59:54 | 7f37aa3b91bc77db0e20ec02c449760a860585bc | {
"blob_id": "7f37aa3b91bc77db0e20ec02c449760a860585bc",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-25T03:59:54",
"content_id": "a2f3a9c0e5fd835f9ee9c1658e8acd331c5b84f2",
"detected_licenses": [
"MIT"
],
"directory_id": "76c2464e21661c56f62da197ab9bcb88d309a005",
"extension": "h"... | stackv2 | /*!
************************************************************************
* \file frame.h
*
* \brief
* headers for frame format related information
*
* \author
*
************************************************************************
*/
#ifndef _FRAME_H_
#define _FRAME_H_
typedef enum {
CM_UNKNOWN =... | 2.359375 | 2 |
2024-11-18T21:24:53.528524+00:00 | 2016-12-19T21:19:02 | 817f5051dffdea7f11841511b2b4257b4c5b2587 | {
"blob_id": "817f5051dffdea7f11841511b2b4257b4c5b2587",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-19T21:19:02",
"content_id": "5ae6fb94c4bedbb4d50450400165dc983cf2d5e4",
"detected_licenses": [
"BSD-4-Clause-UC"
],
"directory_id": "73f24dcba1894be79688a61b4df3fdbf12d0f055",
"ext... | stackv2 | #include <kern/e1000.h>
#include <kern/pci.h>
#include <kern/pmap.h>
#include <kern/env.h>
#include <inc/stdio.h>
#include <inc/string.h>
// LAB 6: Your driver code here
volatile uint32_t *base;
#define NMEM(off) base[off>>2]
long double pad; // for alignment
struct tx_desc tx_ring[NTD] __attribute__((aligned(4096)));... | 2.171875 | 2 |
2024-11-18T21:24:53.622336+00:00 | 2022-10-23T02:16:31 | de88217cd2c8e408518db5687919a9069fe26ce2 | {
"blob_id": "de88217cd2c8e408518db5687919a9069fe26ce2",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-23T02:16:31",
"content_id": "6ee4f32dba00d0ba43db5143539be354f5b762d5",
"detected_licenses": [
"MIT"
],
"directory_id": "4085ae0b2c4fc258ddb4a74034ac612b3200f12d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <time.h>
#include <dirent.h>
#include <klee/klee.h>
#include <stdbool.h>
int table_miss = 1;
struct entry_s {
char *key;
int value;
struct entry_s *next;
};
typedef struct entry_s entry_t;
struct hashtable_s {
in... | 3.015625 | 3 |
2024-11-18T21:24:54.120619+00:00 | 2019-11-25T12:11:15 | 2480fd747942a4a5155825d817309695087b0082 | {
"blob_id": "2480fd747942a4a5155825d817309695087b0082",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-25T12:11:15",
"content_id": "0eb7c7fa8b7ed3d8cc85141b36b81e29a1cc0787",
"detected_licenses": [
"Unlicense"
],
"directory_id": "1b40eea73770cd99f50b0e93bdb560bf11df0563",
"extension... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <archive.h>
#include <archive_entry.h>
void
write_archive(const char *outname, const char **filename)
{
struct archive *a;
struct archive_entry *entry;
struct stat st;
char buff[8192];
int len;
int fd;
a = archive_write_new();
archive_... | 2.671875 | 3 |
2024-11-18T21:24:54.182356+00:00 | 2019-11-24T03:59:58 | 81fd267af9257536c5031970c191b6820aa3f3a6 | {
"blob_id": "81fd267af9257536c5031970c191b6820aa3f3a6",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-24T03:59:58",
"content_id": "4213d8536ee8aacae5c41e35a303c5828a0f39e5",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
],
"directory_id": "221f49ea108f5686db94ef7... | stackv2 | // Copyright 2019 MesaTEE Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 2.203125 | 2 |
2024-11-18T21:24:54.388326+00:00 | 2023-04-03T12:28:13 | 8505ca9fec4e1f48a3f4ed6aee2f33e5ba0ae39e | {
"blob_id": "8505ca9fec4e1f48a3f4ed6aee2f33e5ba0ae39e",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-03T12:28:13",
"content_id": "fffc04c8a58a7c817757f94f4c38af2a34bc7b6b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "43376ef5b514feaadf33dffd8ab0d72068e676b5",
"extensio... | stackv2 | #ifndef __LIST_H__
#define __LIST_H__
typedef struct list_node list_node_t;
typedef struct list list_t;
struct list_node {
list_node_t *prev;
list_node_t *next;
void *value;
} __attribute__((packed));
struct list {
list_node_t *head;
list_node_t *tail;
int length;
} __attribute__((packed));
... | 2.296875 | 2 |
2024-11-18T21:24:54.732278+00:00 | 2014-12-06T12:27:16 | 3289f61b479dded42089aa5387909aaabbfe1229 | {
"blob_id": "3289f61b479dded42089aa5387909aaabbfe1229",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-06T12:27:16",
"content_id": "2235e81acf9f43e108c7e3af414612b8ace850d9",
"detected_licenses": [
"MIT"
],
"directory_id": "5444c5bf93551b2e88973935e86e5dd778aa8878",
"extension": "c"... | stackv2 | /*
* @file bytes2str.c
* @author Akagi201
* @date 2014/12/06
*/
#include "bytes2str.h"
/*
* @brief Convert binary bytes data to printable string.
* @param[in] in: source binary string
* @param[in] ilen: source binary string length
* @param[out] out: destinary string
* @param[out] olen: dest string length
* ... | 3.0625 | 3 |
2024-11-18T21:24:55.025032+00:00 | 2021-10-17T01:31:27 | 709779b0b77f1be414b37b8a7468ea87194dea8f | {
"blob_id": "709779b0b77f1be414b37b8a7468ea87194dea8f",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-17T01:31:27",
"content_id": "6ed686f2a3c0dea0b3403bd05bb8cb1219f33908",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "32e48bb5c7b9714e25bc9312f185a85e02338cc5",
"extens... | stackv2 | #include <stdlib.h>
#include <string.h>
#define SWAP(x, y, size) \
do \
{ \
void* buf = malloc(size); \
memcpy(buf, x, size); \
memcpy(x, y, size); \
memcpy(y, buf, size); \
free(... | 2.828125 | 3 |
2024-11-18T21:24:56.196554+00:00 | 2017-11-17T01:40:27 | 5adc1267b96bdca25670076c8d72033dfc33367a | {
"blob_id": "5adc1267b96bdca25670076c8d72033dfc33367a",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-17T01:40:27",
"content_id": "baade97f4a81a2b3734d5c3ff71862bca74eb3ae",
"detected_licenses": [
"MIT"
],
"directory_id": "d7cc0121ed0f7120ae08ad9bf761055141ef2116",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include "chat-client.h"
#define MSG_SIZE 80
#define MAX_CLIENTS 95
#define MYPORT 7400
int main(int argc, char *argv[])
{
int i = 0;
int p... | 2.609375 | 3 |
2024-11-18T21:24:56.377668+00:00 | 2021-03-26T16:02:25 | 80b4dcb9863d1342a804601915ecb4b9e13e6c74 | {
"blob_id": "80b4dcb9863d1342a804601915ecb4b9e13e6c74",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-26T16:02:25",
"content_id": "3c3d6a478f89bd7ed73c107db0225dcbeb9f7554",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b46290375f470bb1db2ac8644e67c0c075143883",
"extension"... | stackv2 | /*
* Copyright (c) 2011-2020 Seagate Technology LLC 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 License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 2.03125 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.