added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T22:40:23.140290+00:00 | 2019-02-14T09:53:27 | a020b624d72ba2f02c513dbe9ca871752587e7c8 | {
"blob_id": "a020b624d72ba2f02c513dbe9ca871752587e7c8",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-14T09:53:27",
"content_id": "5a0b4196072cf21d489620e8eee164f4f391f5a5",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7ce9a70496e0d5e211807f9e96b306e3153121f5",
"extens... | stackv2 | #pragma once
#include "windows.h"
#include "stdio.h"
#ifdef _WIN64
#include "GL/glew.h"
#include "GL/glut.h"
#include "GL/GLAUX.H"
#pragma comment(lib,"glew32s.lib")
#pragma comment(lib,"freeglut.lib")
AUX_RGBImageRec * auxDIBImageLoad(const char *Filename)
{
unsigned int Texture;
AUX_RGBImageRec * tex_result=new... | 2.28125 | 2 |
2024-11-18T22:40:23.453042+00:00 | 2017-09-27T16:14:37 | 70282ab7e2abfc7f74b01a63934e5d9bcfb85050 | {
"blob_id": "70282ab7e2abfc7f74b01a63934e5d9bcfb85050",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-27T16:14:37",
"content_id": "505f517546259b5c21955067aa294e7dd370a6e4",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7b8f3da849e256a9c071ec3480ddb4db88240d06",
"extens... | stackv2 | // testdistributions.c
#include <sim/sim.h>
class application : public session
{
public :
application(int argc,char** argv);
virtual int main();
void uniform();
void exponential();
void hyperexponential();
void gamma();
void erlang();
void binomial();
void geometric();
void hypergeometric();
vo... | 2.3125 | 2 |
2024-11-18T22:40:23.689892+00:00 | 2017-06-04T08:18:26 | be16ccccaa34297648ff85ddcf24e9b84456170f | {
"blob_id": "be16ccccaa34297648ff85ddcf24e9b84456170f",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-04T08:18:26",
"content_id": "927c356c96d7db3b1a3f1df7f788001d914d104d",
"detected_licenses": [
"MIT"
],
"directory_id": "e9ea8dee370761f51c5ad8fa27ee4ec6bf8d4e01",
"extension": "c"... | stackv2 | #include <string.h>
#include <stdio.h>
/* find complementary */
size_t _strcspn(const char *s1, const char *s2)
{
const char *sc1;
for (sc1 = s1; *sc1 != '\0'; sc1++)
if (strchr(s2, *sc1) != NULL)
return (sc1 - s1);
return sc1 - s1;
}
int main()
{
char *s1 = "iphone 3gs";
char *s2 = "fuck8g";
int n = _strc... | 3.0625 | 3 |
2024-11-18T22:40:24.046899+00:00 | 2019-09-19T19:59:27 | 452798e156d740e343a369fcec188966e170778e | {
"blob_id": "452798e156d740e343a369fcec188966e170778e",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-19T19:59:27",
"content_id": "e573e7e42dae2063a40864a8d2f35c04dbc8000c",
"detected_licenses": [
"MIT"
],
"directory_id": "1799b8c3d1f70f615de4e199a6f5596d621b4646",
"extension": "c"... | stackv2 | /*
* STM32_GPU Project
* Creation start: 10.04.2016 20:21 (UTC+4)
* Last edit: 01.08.2018
*
* author: Antonov Alexandr (Bismuth208)
*
* For addition info look read.me
*
*/
#include <string.h>
#include <stdint.h>
#ifdef STM32F40XX
#include <stm32f4xx.h>
#else
#include <stm32f10x.h>
#endif /* STM32F40XX */
#i... | 2.125 | 2 |
2024-11-18T22:40:24.150374+00:00 | 2021-08-17T16:27:33 | f0f02f67d1278d8234f5e876be7382d983b6dab3 | {
"blob_id": "f0f02f67d1278d8234f5e876be7382d983b6dab3",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-17T16:27:33",
"content_id": "9bd9e3456685c8f6ca7bb243a9f27617d9431aa0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d4de686f291c663bfe0c4c6246261990ab22256f",
"extensio... | stackv2 | /* file-indexer.c
*
* Copyright 2021 Joshua Strobl
*
* 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 ... | 2.203125 | 2 |
2024-11-18T22:40:24.282712+00:00 | 2019-12-24T20:36:26 | c8be9c3948632a38cea5cb31c529830a3e7fdf69 | {
"blob_id": "c8be9c3948632a38cea5cb31c529830a3e7fdf69",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-24T20:36:26",
"content_id": "6b16a89217b9dbf04c304d8851bf0935f52a2c85",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bbc7e9b5a1797e9ed3642986fa04f441a914c443",
"extens... | stackv2 | /*C
(c) 2005 bl0rg.net
**/
#include "conf.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "bv.h"
#include "mp3.h"
/*M
\emph{Read scalefactor information.}
**/
int mp3_read_sf(mp3_frame_t *frame) {
assert(frame != NULL);
unsigned int granule_offset = 0;
unsigned int i;
for (i ... | 2.359375 | 2 |
2024-11-18T22:40:24.468880+00:00 | 2023-01-24T15:54:35 | 2aa479f3de28be7ec0d2afd467f2b21e95551605 | {
"blob_id": "2aa479f3de28be7ec0d2afd467f2b21e95551605",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-24T15:54:35",
"content_id": "87d6da0ab5599cc4805587fd754036d91c2f66ce",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a5d2d345d66f1fb30131064d377615dcf7020093",
"extens... | stackv2 | /*
* Aya Helmy wrote this example for her 4B25 coursework.
* James Meech adapted it to run over sunflower and take input from the sigsrc command.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
#include "sf-types.h"
#include "tag.h"
#include "devsim7708.h"
#in... | 2.78125 | 3 |
2024-11-18T22:40:25.242145+00:00 | 2018-04-23T21:23:41 | df016eb243c5600b7286ed6ab0583d2eea0ff860 | {
"blob_id": "df016eb243c5600b7286ed6ab0583d2eea0ff860",
"branch_name": "refs/heads/develop",
"committer_date": "2018-04-23T21:23:41",
"content_id": "963e7f6c296eee8a0f15412509640f103585d37a",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d",
"extension"... | stackv2 | /* *********************************************************************** */
/* *********************************************************************** */
/* DBC Generic Sybase Support Functions Library Module */
/* *********************************************************************** */
/*
File Name : %M%
... | 2.265625 | 2 |
2024-11-18T22:40:25.503616+00:00 | 2016-06-20T01:41:59 | 7fd60e869b0f6be14b441fe54d1b0005b9c1b04d | {
"blob_id": "7fd60e869b0f6be14b441fe54d1b0005b9c1b04d",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-20T01:41:59",
"content_id": "f3d8af8281def4df0b271fc2550195f1477b4b74",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "aa67747a4e4fdd8ec3b30cc0d0c7901b7ae38bd1",
"extension":... | stackv2 | /* GameProb.C
By Michael W. Maher
Ver 1.0 5/28/92
The following program is simulation of the game show problem. The problem
is as follows:
You are a contestant on a popular game show. At one point during the
show you are given the opportunity to select one of three doors.
Behind two of the doors is... | 3.21875 | 3 |
2024-11-18T22:40:25.663049+00:00 | 2019-07-29T23:42:07 | a8f7045506a043a3511931333f079e392c238e33 | {
"blob_id": "a8f7045506a043a3511931333f079e392c238e33",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-29T23:42:07",
"content_id": "dd810b0096e0673853f45962ab0a1a3b9481a1ca",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "565fcb5c72eb641de24b0fb874bf143f7b973aad",
"extensio... | stackv2 | /*************************************************************************************************/
/*!
* \file
*
* \brief Weight Scale profile sensor.
*
* Copyright (c) 2012-2018 Arm Ltd.
*
* Copyright (c) 2019 Packetcraft, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you... | 2.015625 | 2 |
2024-11-18T22:40:25.802296+00:00 | 2018-04-14T18:20:11 | d42c258cd7fde3a7db300a478d45c70a6d6642cc | {
"blob_id": "d42c258cd7fde3a7db300a478d45c70a6d6642cc",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-14T18:20:11",
"content_id": "80c55d69241e6b27d07ea6f54d5fae6deb05517d",
"detected_licenses": [
"MIT"
],
"directory_id": "21ef87b55567337393020c4f58de3b39abd4ccea",
"extension": "c"... | stackv2 | #include "CoreSerialUart1Dma.h"
#include "SystemUtil.h"
/*DMA结构体*/
static DMA_InitTypeDef DMA_InitStructure;
uint8_t dmaTransFirstFlag = 1;
/**初始化 */
void CoreSerialUart1DmaInit(uint32_t bpsSet)
{
//gpio初始化
GPIO_InitTypeDef GPIO_InitStructure;
//串口初始化结构体
USART_InitTypeDef USART_InitStructure;
//中... | 2.453125 | 2 |
2024-11-18T22:40:25.922011+00:00 | 2014-01-14T13:03:51 | feecd630c2715f52e5fed3f9640b4b03c887db79 | {
"blob_id": "feecd630c2715f52e5fed3f9640b4b03c887db79",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-14T13:03:51",
"content_id": "16268c9e6639378dca39eb9431c5d07b063afa25",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8c3b1839c075f33dd3f30aecf45aed00f4bc1720",
"extens... | stackv2 |
/*
Gentle AdaBoost Classifier with two different weak-learners : Decision Stump and Perceptron.
Multi-class problem is performed with the one-vs-all strategy.
Usage
------
model = gentleboost_model(X , y , [options]);
Inputs
-------
X Features matrix (d x N) ... | 2.046875 | 2 |
2024-11-18T22:40:26.055125+00:00 | 2014-12-04T21:56:53 | 80727e3304afb948a1e3a4069961ab58daf73a1c | {
"blob_id": "80727e3304afb948a1e3a4069961ab58daf73a1c",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-04T21:56:53",
"content_id": "8d4a82bcd6c41bc6eeb442861eb1e8057cae7f25",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "b171c352f1dd2215c7bb31abb4f124b74b369edd",
"extens... | stackv2 | /*
* Copyright 2014 Gedare Bloom (gedare@rtems.org)
*
* This file's license is 2-clause BSD as in this distribution's LICENSE.2 file.
*/
#include "../shared/pqbench.h"
/* PQ implementation */
#include "mrbtree.h"
/* test interface */
void pq_initialize( rtems_task_argument tid, int size ) {
rbtree_initialize(... | 2.125 | 2 |
2024-11-18T22:40:29.228720+00:00 | 2023-07-10T07:51:49 | bf3edbd066864cfe8337702d42e240829047c74e | {
"blob_id": "bf3edbd066864cfe8337702d42e240829047c74e",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-10T07:52:21",
"content_id": "7eabf80b9bf04790f063603cfe9e4cf601002d57",
"detected_licenses": [
"ISC"
],
"directory_id": "6c6aed280ecaa6b56ecd17fde91a8af721dcce68",
"extension": "c"... | stackv2 | /* $OpenBSD$ */
/*
* Copyright (c) 2015 Alexandre Ratchov <alex@caoua.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PRO... | 2.1875 | 2 |
2024-11-18T22:40:29.562329+00:00 | 2020-12-08T11:39:40 | 37fd39716d86578d7c1388463059c7c1fa7d21d4 | {
"blob_id": "37fd39716d86578d7c1388463059c7c1fa7d21d4",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-02T08:22:42",
"content_id": "66476e24613bc78694949c2e778ad53f6169b591",
"detected_licenses": [
"MIT"
],
"directory_id": "7704bca78215c06b018fdd4dc79ef9693e962eac",
"extension": "h"... | stackv2 | #ifndef __XGUX_H
#define __XGUX_H
#include "xgu.h"
#define XGUX_API
#define MIN(a,b) ((a)<(b)?(a):(b))
#define MAX_BATCH 120
XGUX_API
void xgux_draw_arrays(XguPrimitiveType mode, unsigned int start, unsigned int count) {
uint32_t *p = pb_begin();
p = xgu_begin(p, mode);
while(count > 0) {
/* St... | 2.375 | 2 |
2024-11-18T22:40:30.050852+00:00 | 2022-06-24T00:08:44 | d750e2d3e2d6e41cedd4e3d88ecf8b2b3976c429 | {
"blob_id": "d750e2d3e2d6e41cedd4e3d88ecf8b2b3976c429",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-24T00:08:44",
"content_id": "5885ee668b6166d8754f4b90f515f332dca04326",
"detected_licenses": [
"MIT"
],
"directory_id": "89adda6b74cf044491fc3aea784f75abf8855bc7",
"extension": "h"... | stackv2 | #pragma once
/* All spinlock definitions on the system. To add a new spinlock, simply
* add another definition to this enum. Make sure that that last entry in the
* enum is MAX_SPINLOCK_ID
*/
enum spinlock_id {
PAGE_TABLE_LOCK,
DISP_LOCK,
NUMA_MEMORY_LOCK,
MAX_SPINLOCK_ID
};
struct _spinlock {
volatile unsign... | 2.171875 | 2 |
2024-11-18T22:40:30.149438+00:00 | 2019-11-26T01:07:24 | e8739044e84b48fab0d34796b53f16dca6b9e43f | {
"blob_id": "e8739044e84b48fab0d34796b53f16dca6b9e43f",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-26T01:07:24",
"content_id": "1f883b23482cacae2fa2122f6f971fe750cdc32f",
"detected_licenses": [
"MIT"
],
"directory_id": "36d80445d0119c088c809d8ff7e6ce4669a6eff3",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <signal.h>
#include <setjmp.h>
void start(int signo);
sigjmp_buf jbuf;
int main()
{
struct sigaction act;
int cur_i, past_i, tmp_i;
if (sigsetjmp(jbuf, 1) == 0)
{
act.sa_handler = start;
sigaction(SIGINT, &act, NULL);
}
cur_i = past_i = 1;
while (1)
{
printf("%d\n", cur_i);... | 2.890625 | 3 |
2024-11-18T22:40:30.398254+00:00 | 2017-02-13T15:45:47 | 8e9d07f53195c64857fbcc0199f2bea54c4375a6 | {
"blob_id": "8e9d07f53195c64857fbcc0199f2bea54c4375a6",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-13T15:45:47",
"content_id": "5cc6414e03c18232e9600fb4ce07e591d19b311d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5b9b91553b0767f446ff9d2f079e3986c0c88c66",
"extensio... | stackv2 | #include "clients.h"
#include <stdio.h>
#include <stdlib.h>
int count_client_list=0; /*!< zmienna licząca ilość elementów na liście klientów */
/*!
* @brief funkcja uzupełnia dane w konkretnym elemencie listy klientów utworzonym przez funkcję add_new_client
*
* @param Client *(*new_client_node) podwójny wskaźn... | 3.15625 | 3 |
2024-11-18T22:40:31.486242+00:00 | 2022-06-12T15:40:20 | ebe81f29c0ebb7eafaa111ccff4fefc808f0465e | {
"blob_id": "ebe81f29c0ebb7eafaa111ccff4fefc808f0465e",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-12T15:40:20",
"content_id": "d1628d61684f2a6eaf72a1fec547d70e33dff1f4",
"detected_licenses": [
"MIT"
],
"directory_id": "553b34a101c54090e68f540d96369ac7d5774d95",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#define MAX_DATA 512
#define MAX_ROWS 100
struct Address {
int id;
int set;
char name[MAX_DATA];
char email[MAX_DATA];
};
struct Database {
struct Address rows[MAX_ROWS];
};
struct Connection {
FILE *file;
struct Database *... | 3.1875 | 3 |
2024-11-18T22:40:31.582769+00:00 | 2019-03-12T14:42:23 | 22435dadd311d894fc058b9fc00b766f6fe927b6 | {
"blob_id": "22435dadd311d894fc058b9fc00b766f6fe927b6",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-12T14:42:23",
"content_id": "4df54280bcae40e1b8b66f6f998292fa1140da3e",
"detected_licenses": [
"MIT"
],
"directory_id": "f4148635530c623f99f6b6a3df2943ade0681203",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "disk.h"
/*Reference : https://www3.nd.edu/~dthain/courses/cse30341/spring2017/project6/ */
#define DISK_MAGIC 0xdeadbeef
static FILE *diskfile;
static int nblocks=0;
static int nreads=0;
static int nwrites=0;
... | 2.859375 | 3 |
2024-11-18T22:40:31.652548+00:00 | 2022-05-25T23:10:04 | 49347299ab9c8a0bfbd424b2a1b1199689b913f2 | {
"blob_id": "49347299ab9c8a0bfbd424b2a1b1199689b913f2",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-25T23:10:04",
"content_id": "643009e6e8b3ef10c49a03465cf2808a9fa6ecf1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3e39e2fa31158d6d86a23773946084db17cd3317",
"extensio... | stackv2 | /**
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdint.h>
#include "soc/soc.h"
#ifdef __cplusplus
extern "C" {
#endif
/** GDMA_INT_RAW_CH0_REG register
* GDMA_INT_RAW_CH0_REG.
*/
#define GDMA_INT_RAW_CH0_REG (DR_REG_... | 2.015625 | 2 |
2024-11-18T22:40:34.089744+00:00 | 2016-09-07T17:13:36 | 78dce39e85f014ae4cb554e58a7f5652ac154fa1 | {
"blob_id": "78dce39e85f014ae4cb554e58a7f5652ac154fa1",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-07T17:13:36",
"content_id": "5ce89b74d37af59dc368fd81dc29942e097fe2cd",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0cc62f4e6526d29aceb4fcb03604bd7a3dc4e75c",
"extens... | stackv2 | // The device part of an OpenCL port the Xaio/Feng GPU global barrier
// using OpenCL 2.0 atomics. This is an unsafe implementation. That
// is, it attempts to synchronise across all workgroups on the GPU.
// A safe variant (using the discovery protocol) is available in the
// discovery_protocol directory
// Port by ... | 2.421875 | 2 |
2024-11-18T22:40:34.251437+00:00 | 2021-07-31T15:01:35 | b2e837191d45532d9902b6a63a8f068978b8fa94 | {
"blob_id": "b2e837191d45532d9902b6a63a8f068978b8fa94",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-31T15:01:35",
"content_id": "8d55e71759afa360c52c642c7366ab06fe318dd6",
"detected_licenses": [
"MIT"
],
"directory_id": "ad42422a488db963eb023e41d2efc410783dfb39",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdlib.h>
struct MyArray
{
int total_size;
int used_size;
int *ptr;
};
void CreateArray(struct MyArray * a, int tSize, int uSize){
a->total_size = tSize;
a->used_size = uSize;
a->ptr = (int*)malloc(tSize * sizeof(int));
}
void ShowArray(struct MyArray * a){
fo... | 3.421875 | 3 |
2024-11-18T22:40:34.569202+00:00 | 2019-08-23T00:53:35 | 403381020800a7a0019d23262a8743bcf89bfc95 | {
"blob_id": "403381020800a7a0019d23262a8743bcf89bfc95",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-23T00:53:35",
"content_id": "2aa67fd862d74bc74bdab0f18afab9c71510d49a",
"detected_licenses": [
"MIT"
],
"directory_id": "09884947c578015a250e41dd8b7c694685490b66",
"extension": "h"... | stackv2 | #ifndef JSON_WRITER_H
#define JSON_WRITER_H
/*
* FILE: json-writer.h
* AUTHOR: James Johnson
* CREATE DATE: 30-November-2011
* PROJECT: shared
* COPYRIGHT: UQ, 2011
* VERSION: $Revision: 1.0 $
* DESCRIPTION: Writes Javascript Object Notation.
*/
#include <stdbool.h>
#include <stdio.h>
#if defined(sgi4d) || def... | 2.203125 | 2 |
2024-11-18T22:40:37.262900+00:00 | 2022-02-17T16:44:33 | a41c324222ae9302922201b4fb87a26a8d2ed8d3 | {
"blob_id": "a41c324222ae9302922201b4fb87a26a8d2ed8d3",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-17T16:44:33",
"content_id": "b8fbe2b9b2b32180eaf60872e6f69857df55741d",
"detected_licenses": [
"Unlicense"
],
"directory_id": "72d888337ee2172f44a92050243e86c02d0d080b",
"extension... | stackv2 | /**
* hello1_sdl.c - Initializes SDL
*/
#include <stdio.h>
#include <SDL2/SDL.h>
int main(void)
{
// attempt to initialize graphics system
if (SDL_Init(SDL_INIT_VIDEO) != 0)
{
printf("error initializing SDL: %s\n", SDL_GetError());
return 1;
}
printf("initialization successful!\... | 2.8125 | 3 |
2024-11-18T22:40:37.338857+00:00 | 2021-05-16T18:04:19 | e92aa1d05f12d0cac5b476551c1ba4f077fe153a | {
"blob_id": "e92aa1d05f12d0cac5b476551c1ba4f077fe153a",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-16T18:04:19",
"content_id": "1224ec455ce2fe0cfd708ad4e2e14173410bf379",
"detected_licenses": [
"MIT"
],
"directory_id": "b1d7ea76f1afed019585d545dcadca90987c97b2",
"extension": "c"... | stackv2 | /*
* COPYRIGHT: 2015-2020 Stealthy Labs LLC
* ORIGINAL DATE: 22nd April 2015
* MODIFIED DATE: 16th Oct 2019
* MODIFIED SOFTWARE: libgps_mtk3339
*/
#include <gpsdata.h>
#ifdef LIBGPS_MTK3339_HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef LIBGPS_MTK3339_HAVE_CUNIT
#include <CUnit/CUnit.h>
#include <CUnit/... | 2.421875 | 2 |
2024-11-18T22:40:37.853501+00:00 | 2020-07-18T01:18:08 | a88bb12cd0ce88def8333bafedd57cddbad7e068 | {
"blob_id": "a88bb12cd0ce88def8333bafedd57cddbad7e068",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-18T01:18:08",
"content_id": "d69230a57646e1c65490fd5d4c82042eeafbdfa4",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "fb1a67bb783914689d1ecb5b1dfb4965... | stackv2 | /*
* File: ps/ipc/ipc.c
*
*
* Description:
* IPC - ( Inter-Process Comunication ).
* ring 0
*
* History:
* 2015 - Created by Fred Nora.
*/
// See:
// https://www.drdobbs.com/interprocess-communication-the-l4-micro/184402030
// ...
#include <kernel.h>
// Encapsulation.
int ipcStatus; ... | 2.53125 | 3 |
2024-11-18T22:40:38.115380+00:00 | 2022-08-15T19:30:51 | 4218813864729e57a07810147998682a424e2461 | {
"blob_id": "4218813864729e57a07810147998682a424e2461",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-15T19:30:51",
"content_id": "5c3de7a58e27c0bd972a69c5f9c35b27177dc7fe",
"detected_licenses": [
"MIT"
],
"directory_id": "e414043b732fb36d73314a01df7867c70b1a0fb6",
"extension": "c"... | stackv2 | // Aug-2022
/* pony_ins_attitude
pony plugins for ins angular rate integration:
- pony_ins_attitude_rodrigues
Combines angular rate components or their integrals into Euler rotation vector
for both instrumental frame and navigation frame (according to rate validity).
Then applies Rodrigues' rotation formu... | 2.28125 | 2 |
2024-11-18T22:40:38.197403+00:00 | 2020-10-10T15:54:04 | 3b8049f9aa8708d78802ca0e074c92bb89c7312d | {
"blob_id": "3b8049f9aa8708d78802ca0e074c92bb89c7312d",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-10T15:54:04",
"content_id": "757892d7e057bee7169c000ba79e8609834d4463",
"detected_licenses": [
"MIT"
],
"directory_id": "db03977d3ec3e3182d09d383a6a505fe4aaff7cc",
"extension": "c",
... | stackv2 | /*
Program: Assignment 3, Question 2
Description: fork() child process and compute fibb series using shared memory
Name: Subrat Prasad Panda
Roll: CS1913
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <sys/... | 3.609375 | 4 |
2024-11-18T22:40:38.519716+00:00 | 2017-07-19T11:25:43 | 93ca156fbe5336ecc3ebfe9c18dd6511d5593852 | {
"blob_id": "93ca156fbe5336ecc3ebfe9c18dd6511d5593852",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-19T11:25:43",
"content_id": "216bed6dfb9521d268e66ed6059c57a781da9a91",
"detected_licenses": [
"MIT"
],
"directory_id": "3114abd929e6abecad2753e82e50bd4cc9de6555",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h> // fflush()
#include <string.h> // memset()
#include <math.h> // for abs()
#include <unistd.h> // uint_xxt
#include <stdint.h>
#include <stdbool.h> // for true and false
#include <windows.h>
/*
winzero
Write empty files on Windows , catch I/O errors early.
(c) 2017 Dennis... | 2.21875 | 2 |
2024-11-18T22:40:38.832799+00:00 | 2020-07-29T19:50:24 | 1fe51871509f2de1495f59215aabce1e7b30bf6b | {
"blob_id": "1fe51871509f2de1495f59215aabce1e7b30bf6b",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-29T19:50:24",
"content_id": "8b0e01bfddc2cd7b24635a15829b0fa2d02fc8f4",
"detected_licenses": [
"Unlicense"
],
"directory_id": "52244592de94a8dab150ac44c194859f1876ccb4",
"extension... | stackv2 | // *** INCLUDES ***
#include "fifo.h"
#include <string.h> // memcpy
#ifdef _DEBUG
#include <assert.h>
#endif
#if FIFO_ALLOW_MALLOC == true
#include <malloc.h>
#endif /* FIFO_ALLOW_MALLOC */
// *** DEFINES ***
#define _WRITE_LOCK 0x01
#define _READ_LOCK 0x02
/**
* @brief initializes a fifo handle
* @note I... | 3.046875 | 3 |
2024-11-18T22:40:38.905934+00:00 | 2018-09-16T08:56:40 | 30dd0d9f48a7036c1e4200b29016b6fd6be74805 | {
"blob_id": "30dd0d9f48a7036c1e4200b29016b6fd6be74805",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-16T08:56:40",
"content_id": "11892e1deb9a716405d39c5013d433e29eda7e1d",
"detected_licenses": [
"MIT"
],
"directory_id": "aa39a3c5e34e2f6af8e97913e10d44ba50f1bd13",
"extension": "c"... | stackv2 | /*Program to illustrate errors in a C program.
* The program display the variables on the screen each variable having a different value
* Author: Iosif Bogdan Dobos, C16735789.
* Date: 20.09.2016
**/
#include <stdio.h>
int main()
{
int num1;
int num2;
float num3;
num1 = 400;
num2 ... | 3.3125 | 3 |
2024-11-18T22:40:38.971886+00:00 | 2013-09-22T22:46:40 | ab0aa8896e0e61c5ddf39ab82788f775c2650f36 | {
"blob_id": "ab0aa8896e0e61c5ddf39ab82788f775c2650f36",
"branch_name": "refs/heads/master",
"committer_date": "2013-09-22T22:46:40",
"content_id": "a658dfbbda8d5e71468fe8e445b22d2f995bf549",
"detected_licenses": [
"MIT"
],
"directory_id": "11e1cf3683b14f21af235e0569e024c343626c03",
"extension": "c"... | stackv2 | #include <stdio.h>
#define MAX 100
int main() {
int n, element, a[MAX], i;
short rastecka = 1, opagacka = 1;
printf("Vnesi ja goleminata na nizata: \n");
scanf("%d", &n);
printf("Vnesi gi elementite od nizata: \n");
for(i = 0; i < n; ++i)
scanf("%d",&a[i]);
for(i = 0; i< n-1; ++i) {
... | 2.953125 | 3 |
2024-11-18T22:40:39.062249+00:00 | 2022-05-23T16:07:54 | 88ee52edc9531b3cf9d547fbbba9a585ba57d9cd | {
"blob_id": "88ee52edc9531b3cf9d547fbbba9a585ba57d9cd",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-23T16:07:54",
"content_id": "ccae8a39976950658fda8f43b02404bd54a3377a",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a6da6bff8f07f2503afa6e2a0c662b9835788671",
"extens... | stackv2 | /* c = gold31seq_mex(c_init, len)
*
* Matlab MEX acceleration for gold31seq function.
*
* Copyright 2019 Grzegorz Cisek (grzegorzcisek@gmail.com)
*/
#include "mex.h"
#include <string.h>
void init_x2(unsigned long c_init, char* x2) {
int i;
for (i = 0; i < 30; i++) {
x2[i] = ( ((1 << i) & c_init) != 0 );... | 2.5625 | 3 |
2024-11-18T22:40:39.224954+00:00 | 2023-08-30T05:21:33 | cbeeaaddb4cefb9c1313afed03b9185d00adc615 | {
"blob_id": "cbeeaaddb4cefb9c1313afed03b9185d00adc615",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T05:21:33",
"content_id": "820d42bef4ca8a688b3d1a48a46150ebb9d5e800",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3b1223e5259c580cbf107d1f45960d9f08aff27f",
"extens... | stackv2 | /*!
@file
@brief format command - frontend for format entry in fs utility dll
(c) osFree Project 2002, <http://www.osFree.org>
for licence see licence.txt in root directory, or project website
@author Bartosz Tomasik <bart2@asua.org.pl>
*/
#define INCL_DOSERRORS
/* system header */
#include <os2.h>
... | 2.515625 | 3 |
2024-11-18T22:40:39.312361+00:00 | 2019-01-13T16:09:57 | de89283ccf816ecde0b3c2d5b67e3a5c63d450dc | {
"blob_id": "de89283ccf816ecde0b3c2d5b67e3a5c63d450dc",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-13T16:09:57",
"content_id": "d7119ebf4780972dc44a3c3e135a3bb3b158b1a8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c125574574bbd767b474f8a62979c10ebab9a599",
"extensio... | stackv2 | #include "csro_device.h"
#include "modbus_master.h"
#ifdef AIR_SYSTEM
struct air_sys_register
{
uint8_t coil[100];
bool coil_flag[100];
uint16_t holding[100];
bool holding_flag[100];
} airsys_reg;
static SemaphoreHandle_t master_mutex;
static SemaphoreHandle_t write_semapho... | 2.1875 | 2 |
2024-11-18T22:41:12.492699+00:00 | 2018-12-16T17:23:19 | 900fe5bdee91c7a073fbdae6df338545d3b5d6a4 | {
"blob_id": "900fe5bdee91c7a073fbdae6df338545d3b5d6a4",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-16T17:23:19",
"content_id": "4326b56f503021fc277dd5ff19d0aa080d740651",
"detected_licenses": [
"MIT"
],
"directory_id": "63912b7b92dfc91b192aa5b8bbb2d57692172686",
"extension": "h"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
/* window resolution */
#define SCREEN_WIDTH 1280
#define SCREEN_HEIGHT 720
/* frames per second */
#define FPS 30
/* game independent logic and resources */
typedef struct {
SDL_Window *w;
SDL_Renderer *r;
/* for all the in-game events */
SDL_Event ... | 2.65625 | 3 |
2024-11-18T22:41:13.157157+00:00 | 2023-08-31T16:20:55 | a62a18b69523ec439ccc5257c62e6b771fa31e37 | {
"blob_id": "a62a18b69523ec439ccc5257c62e6b771fa31e37",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T16:20:55",
"content_id": "aa70bd695d45407891260dfbfb2f6b38bf830d50",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "99bdb3251fecee538e0630f15f6574054dfc1468",
"extensio... | stackv2 | #include <stdio.h>
#include <stdarg.h>
#include <string.h>
static char buf[64] = {0};
static void WriteFrmtd(char *format, ...)
{
va_list args;
va_start(args, format);
vsprintf(buf, format, args);
va_end(args);
}
static int vsprintf_entry(void)
{
char buf[64] = {0};
char test_data[] = "vsprintf t... | 2.28125 | 2 |
2024-11-18T22:41:13.269944+00:00 | 2020-09-08T15:27:28 | 1c6d04a2ef1898db075d1bc013d27b2d5fc8ed22 | {
"blob_id": "1c6d04a2ef1898db075d1bc013d27b2d5fc8ed22",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-08T15:27:28",
"content_id": "b673b12186990fce4ce084112a81219acdb1e76a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2737366da68247f4bd832be070dbbf861330afb6",
"extensio... | stackv2 | #include <bp_sig_table.h>
#include <bp_public.h>
#include <bp_strlen.h>
#include <bp_sig_table_tools.h>
/* system signal min, max, default value */
// const BP_UINT16 SIG_SYS_COMM_STATE_MIN = 0, SIG_SYS_COMM_STATE_MAX = 2, SIG_SYS_COMM_STATE_DEF = 2;
const SigTypeU SIG_SYS_COMM_STATE_MIN = {.t_enm = 0}, SIG_SYS_COMM_S... | 2.03125 | 2 |
2024-11-18T22:41:13.803511+00:00 | 2020-11-19T09:10:23 | 8087fa31ca0460c657aeab15c688f92391b85142 | {
"blob_id": "8087fa31ca0460c657aeab15c688f92391b85142",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-19T09:10:23",
"content_id": "84dae1c06645025d5b324b8d86a70d65123a7ccd",
"detected_licenses": [
"MIT"
],
"directory_id": "2c4630cbdef6bb22eae790941f37c87079760ba2",
"extension": "c"... | stackv2 | /*
* dwarf_function.cpp
*
* Created on: Feb 1, 2020
* Author: nnosov
*/
#include <dwarf.h>
#include <stdlib.h>
#include <libiberty/demangle.h>
#include <stdio.h>
#include "dwarf_stack.h"
#include "dwarf_utils.h"
#include "dwarf_function.h"
// -------------------------------------------------------------... | 2.109375 | 2 |
2024-11-18T22:41:13.877135+00:00 | 2023-07-16T07:17:50 | 4e2febe94322a008602523465bf85277406e4bdf | {
"blob_id": "4e2febe94322a008602523465bf85277406e4bdf",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-16T07:17:50",
"content_id": "5d7072c0f82df82b01a3dd75fdecdea69b7b2e57",
"detected_licenses": [
"MIT"
],
"directory_id": "821128c7e0c6b41c08474e98dffc9dd5f72b8857",
"extension": "c"... | stackv2 | #include "pace_sender.h"
#include "common_test.h"
#define k_packet_size 1000
#define k_delay_ms 5
static int total_size = 0;
static int send_total_size = 0;
static int64_t g_update_ts;
static void send_test(void* handler, uint32_t seq, int retrans, size_t size, int padding)
{
int64_t now_ts = GET_SYS_MS();
int ou... | 2.546875 | 3 |
2024-11-18T22:41:14.227531+00:00 | 2014-12-06T17:05:44 | 1142fc36769ac70e288e437d8cd1dd9585f0795a | {
"blob_id": "1142fc36769ac70e288e437d8cd1dd9585f0795a",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-06T17:05:44",
"content_id": "97b0ec1140809c39c6298f68e1c909f85fc6e093",
"detected_licenses": [
"Unlicense"
],
"directory_id": "09caed20de8b515d73d0eee380a7bc09e73fc9cf",
"extension... | stackv2 | #include<stdio.h>
void heap_sort(int[], int);
void build_max_heap(int[], int);
void max_heapify(int[],int,int);
void swap(int*, int*);
void display(int[],int);
int main(){
int n = 11;
int a[] = {55,3,2,5,77,44,65,53,88,31,9};
display(a,n);
heap_sort(a,n);
display(a,n);
return 0;
}
void heap_sort(int a[], int n)... | 3.5625 | 4 |
2024-11-18T22:41:15.207595+00:00 | 2020-10-26T02:21:15 | 48099330a6681a8447ac2239f8c1a0aaa624ade4 | {
"blob_id": "48099330a6681a8447ac2239f8c1a0aaa624ade4",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-26T02:21:15",
"content_id": "4fe2236ae7216663540e4b801125a87591628932",
"detected_licenses": [
"Apache-2.0",
"Zlib"
],
"directory_id": "a5682fd925a3709da36e9ee464231708069ab085",... | stackv2 | /**
* Alynx Zhou <alynx.zhou@gmail.com> (https://alynx.one/)
*/
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "getarg.h"
#include "flipclock.h"
/* Android APP does not generate `config.h` and use its own logger. */
#ifdef __ANDROID__
# include <android/log.h>
# define LOG_TAG "FlipClock"
# d... | 2.390625 | 2 |
2024-11-18T22:41:15.308240+00:00 | 2023-07-14T06:36:11 | bbdaeca05fdcf007aa47326b714fbce429ee96f5 | {
"blob_id": "bbdaeca05fdcf007aa47326b714fbce429ee96f5",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-14T06:36:11",
"content_id": "b9f9c16d88d37af5f7ace8bb2ae709ef4c753227",
"detected_licenses": [
"MIT"
],
"directory_id": "4df0f970005f816502f910866df88ec7fb20641b",
"extension": "c"... | stackv2 | //
// Created by jemy on 07/08/2017.
//
#include "../qiniu/rs.h"
#include <stdlib.h>
#include "debug.h"
int main(int argc, char **argv) {
Qiniu_Global_Init(-1);
Qiniu_RS_BatchItemRet *itemRets;
Qiniu_Client client;
int i;
char *accessKey = getenv("QINIU_ACCESS_KEY");
char *secretKey = getenv... | 2.578125 | 3 |
2024-11-18T22:41:15.597885+00:00 | 2014-06-10T20:19:33 | a5caac52b012c1864ffd74c4ad1dccd4b0369863 | {
"blob_id": "a5caac52b012c1864ffd74c4ad1dccd4b0369863",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-10T20:19:33",
"content_id": "f0972a4ad4772b5fff8cd5a55370dfd4a7089e16",
"detected_licenses": [
"MIT"
],
"directory_id": "bfe25ed75f78a9a805c87dd46f95132684a730c2",
"extension": "h"... | stackv2 | #ifndef TOWER_H
#define TOWER_h
#include <SDL2/SDL.h>
#define report_error(ret) fprintf(stderr, "%s [%s():%d]: %s\n", __FILE__, __FUNCTION__, \
__LINE__ - 1, SDL_GetError()); \
SDL_ClearError();
#define img_report_error(ret) fprintf(stderr, "%s [%s():%d]: %s\n", __FILE__, __FUNCTION__, \
__LINE__... | 2 | 2 |
2024-11-18T22:41:16.383455+00:00 | 2016-02-04T08:59:15 | 9d41fbe61f820299764ff21023dc5c1a781a2e2d | {
"blob_id": "9d41fbe61f820299764ff21023dc5c1a781a2e2d",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-04T08:59:15",
"content_id": "1e57e46e2ac9189c0621e6c6dc16c303fe3b7c21",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3e3b8fe00bf46c60d0534ba6e00cfe3047d7e23b",
"extensio... | stackv2 | #include "tracepoint/template.h"
const template_t * template_select_arm(insn_t insn);
const template_t * template_select_thumb(insn_t insn);
const template_t * template_select_thumb32(insn_t insn);
const template_t * template_select(insn_t insn, insn_kind_t kind) {
switch (kind) {
case INSN_KIND_THUMB:
... | 2.296875 | 2 |
2024-11-18T22:41:16.531478+00:00 | 2023-05-29T12:29:58 | 0ecb539f9f8650901cfa69f70a30ee702d201dd2 | {
"blob_id": "0ecb539f9f8650901cfa69f70a30ee702d201dd2",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-29T12:29:58",
"content_id": "5afe16071d32bbaf756a8aeb98dbbdd025381e12",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "5ab0bb7f3f375dafb21588d25c695eeb3ea86047",
"extens... | stackv2 | #ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
#include <stdint.h>
void setStateDB(const char* key, size_t k_len, const char* value, size_t v_len);
size_t getStateDBSize(const char* key, size_t k_len);
size_t getStateDB(const char* key, size_t k_len, char* value, size_t v_len);
void setLocalDB(const char... | 2.09375 | 2 |
2024-11-18T22:41:19.835912+00:00 | 2017-09-25T10:34:19 | a7c85f8585c3478e5bfb0c2cc5acd7b90ccae01b | {
"blob_id": "a7c85f8585c3478e5bfb0c2cc5acd7b90ccae01b",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-25T10:34:19",
"content_id": "8efd6ac989e063c5453a227b8b6deadd93b0a230",
"detected_licenses": [
"MIT"
],
"directory_id": "23d82e8591305f231494fdb78ad8169545b14a2d",
"extension": "c"... | stackv2 | #include "esther/object.h"
#include "esther/class.h"
#include "esther/esther.h"
#include "esther/exception.h"
#include "esther/function.h"
#include "esther/std_map.h"
#include "esther/string.h"
#include "esther/tuple.h"
Object *Object_virtual_clone_unimplemented(Esther *es, Object *self) {
Exception_throw_new(es,... | 2.296875 | 2 |
2024-11-18T22:41:19.992035+00:00 | 2016-10-07T08:31:35 | 37af83ab58be4ad797636cd2c2c4797f2c3f7a89 | {
"blob_id": "37af83ab58be4ad797636cd2c2c4797f2c3f7a89",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-07T08:31:35",
"content_id": "3ee34b72cf02c8d3fdd6a4ee7fb91369be6a1bd5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "93e696db87fdb4fb919bc6ca35242a84867b0db8",
"extensio... | stackv2 | /**
* @file lock_free_q.h
* @brief TODO
*
* @authors Seong-Joong Kim (sungjungk@gmail.com)
*/
#ifndef _LOCKFREEQ_H
#define _LOCKFREEQ_H
#include <stdint.h> /* for some types */
#include <time.h> /* for nanosleep related functions */
#include "atomic.h"
#ifndef _JOB_QUEUE
#ifndef READER_NUM
... | 2.59375 | 3 |
2024-11-18T22:41:20.324634+00:00 | 2022-06-06T03:01:52 | c8dc263a6f44056409950611e5e5baa90cfe5c66 | {
"blob_id": "c8dc263a6f44056409950611e5e5baa90cfe5c66",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-06T03:01:52",
"content_id": "4979051bc1c04c4adb7a4e3253deace0f7e9fe7e",
"detected_licenses": [
"MIT"
],
"directory_id": "d66dab066dad73fd47c64015ca77f817a30590ac",
"extension": "h"... | stackv2 | /*
* Copyright (C) 2010-2022 by Joseph A. Marrero. https://joemarrero.com/
*
* 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... | 2.171875 | 2 |
2024-11-18T22:41:20.576518+00:00 | 2023-08-11T13:37:52 | d0db3e614ee8db1ccfcddaba779e6e487685cb6e | {
"blob_id": "d0db3e614ee8db1ccfcddaba779e6e487685cb6e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T13:37:52",
"content_id": "e983a51767ff3a1c94b91028b2c4b4ca6a089116",
"detected_licenses": [
"Apache-2.0",
"MIT"
],
"directory_id": "e83568a414c003963ff9bf07ac6fb45306240472",
... | stackv2 | #include "libhfuzz/performance.h"
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include "honggfuzz.h"
#include "libhfcommon/log.h"
#include "libhfcommon/util.h"
#include "libhfuzz/instrument.h"
#define HF_USEC_PER_SEC 1000000
#defi... | 2.5 | 2 |
2024-11-18T22:41:21.131710+00:00 | 2019-08-04T09:00:00 | 82e0ec4925511e89bdc1b2c908df95296d1cb49c | {
"blob_id": "82e0ec4925511e89bdc1b2c908df95296d1cb49c",
"branch_name": "refs/heads/stretch",
"committer_date": "2019-08-04T09:00:00",
"content_id": "a38ede01a6551a10e398eaa129331cec67cabf57",
"detected_licenses": [
"MIT"
],
"directory_id": "d27575426529d7585e160d3dc126bb2f0616f839",
"extension": "h... | stackv2 | /**
* \file coroutine.h
* \brief Coroutines in C.
* \author Vitaly Kravtsov (in4lio@gmail.com)
* \copyright The MIT License
*
* \defgroup coro Coroutines in C
*
* Coroutine mechanics, implemented using the C language extensions "Labels as Values",
* "Statements and Declarations in Expressions" and "Loca... | 3.09375 | 3 |
2024-11-18T22:41:21.251486+00:00 | 2021-10-05T21:14:09 | dd8354461896fa13fa19e47b1d050e223fb5f536 | {
"blob_id": "dd8354461896fa13fa19e47b1d050e223fb5f536",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-05T21:14:09",
"content_id": "c4a218772cf27eca0130d6f2383e0cf812849e3f",
"detected_licenses": [
"MIT"
],
"directory_id": "3ffdcb26a06565f68f565cdec3ceba8ade73573a",
"extension": "c"... | stackv2 |
#include <stdarg.h>
#include "utils.h"
#include "outbuf.h"
outbuf_t *new_outbuf()
{
outbuf_t *buf = xmalloc(sizeof(outbuf_t));
buf->tmpbuf_ind = 0;
buf->head = buf->tail = NULL;
return buf;
}
void free_outbuf(outbuf_t *buf)
{
clearbuf(buf);
free(buf);
}
void write(outbuf_t *buf, const char *format, ...)... | 2.828125 | 3 |
2024-11-18T22:41:22.086536+00:00 | 2023-04-06T12:09:13 | c3fdd25beba4f17e52186ce8591ca38e9c36dc4f | {
"blob_id": "c3fdd25beba4f17e52186ce8591ca38e9c36dc4f",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-06T12:09:13",
"content_id": "49a6c68272300255b0fe3eb30d4bd9db3f546cfd",
"detected_licenses": [
"MIT"
],
"directory_id": "17137daf9487e8a9bf5bc2f314871d98656e2562",
"extension": "c"... | stackv2 | /* This program outputs a html file that contains every euc-jp byte sequence. */
/* The resultant file can then be loaded into chrome or firefox and the text copied
* to the os clipboard then pasted into a utf-8 file to get that browsers euc-jp mapping. */
/* Some of the byte sequences won't have a corresponding unico... | 2.703125 | 3 |
2024-11-18T22:41:22.318774+00:00 | 2020-06-25T14:54:16 | 6c73f1b3e067ac247fdac2cc8c2a5c82ea318336 | {
"blob_id": "6c73f1b3e067ac247fdac2cc8c2a5c82ea318336",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-25T14:54:16",
"content_id": "8348f402766c2d419ceaeba8282b5f18f296d612",
"detected_licenses": [
"MIT"
],
"directory_id": "fe15c40941e7b1c8406a5227e1c26cd853ebdb98",
"extension": "c"... | stackv2 | /**********************实验测试程序************************
* 平台:Keil U5 + STC11F04E
* 名称:数码管动态显示实验
* 日期:2019-9-30
* 姓名:ZhangHJ
* 说明:数码管静态显示
***********************************************************/
#include <reg52.h>
#define uint unsigned int
#define uchar unsigned char
#define DELAY_TIME 10
#define ON 0
#define OFF... | 2.640625 | 3 |
2024-11-18T22:41:23.036456+00:00 | 2023-08-16T08:49:18 | de5186a0954ea2c7b43b4937b6163947e614ec90 | {
"blob_id": "de5186a0954ea2c7b43b4937b6163947e614ec90",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T08:49:18",
"content_id": "103e156f7359fce34307cc344fd9bc217e00652c",
"detected_licenses": [
"MIT"
],
"directory_id": "e3acfc4f06840e23ef1185dcf367f40d3e3f59b4",
"extension": "c"... | stackv2 | // SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag --enable ana.int.interval
extern int __VERIFIER_nondet_int();
#include <goblint.h>
void foo(int a, int *pb) {
int b = *pb;
// base knows a == 4 and b == 4, apron only knows a == 4
__goblint_check(a == b);
}
void main() {
int x = _... | 2.1875 | 2 |
2024-11-18T22:41:23.097556+00:00 | 2015-07-21T02:04:50 | 9f86ef10bc4880b940fc77ec73b5f7542b607775 | {
"blob_id": "9f86ef10bc4880b940fc77ec73b5f7542b607775",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-21T02:04:50",
"content_id": "a2b892f73fe42678189fdd797db763b534a12abc",
"detected_licenses": [
"MIT"
],
"directory_id": "e1b57985db34a5427b34b372bc060414d7bebd78",
"extension": "c"... | stackv2 | #include"main.h"
void DisplayLCD(WINDOW *win, int iCurrentPageIdx)
{
//DEBUG_LOG("DisplayLCD(int iOpt);");
Ncurses_DisplayPage(win,iCurrentPageIdx);
}
void PlayRecord()
{
}
// 屏幕显示内容
void DisplayChineseLCD(WINDOW *win, char* str)
{
Ncurses_DisplayChinese(win, str, 2);
}
void DisplayMoreLCD(WINDOW ... | 2.046875 | 2 |
2024-11-18T22:41:23.248617+00:00 | 2019-03-13T17:53:02 | 7321f5733c45ddef5724b36298d728efb296e7f2 | {
"blob_id": "7321f5733c45ddef5724b36298d728efb296e7f2",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-13T17:53:02",
"content_id": "7d0d4525f547de8e2a3b5dd4b237fdcab798e010",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "ed2dab83dd754c8f83f50f57a9c5e39fc22432bf",
"extens... | stackv2 | /**
* @author Manuel Federanko
* @file ta_generate.c
* @version 0.0.0-r0
* @since
*
* @brief A brief documentation about the file.
*
* A detailed documentation.
*/
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <png.h>
#include "ta_generate.h"
... | 2.75 | 3 |
2024-11-18T22:41:23.386258+00:00 | 2021-07-09T01:42:11 | a3aa11caa3536d3b2a37b40194c02506b4033acd | {
"blob_id": "a3aa11caa3536d3b2a37b40194c02506b4033acd",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-09T01:42:11",
"content_id": "1812b3d0da27a6e175ecec670833dfb504312d62",
"detected_licenses": [
"MIT"
],
"directory_id": "ca103cdb16ec4454811a263a9ffb78809e42d00c",
"extension": "c",
... | stackv2 | #include <stdio.h>
int main(void)
{
int gsi, g_identifier, pub_code, item_num, check_dig;
printf("Enter ISBN: ");
scanf("%d-%d-%d-%d-%d", &gsi, &g_identifier, &pub_code, &item_num, &check_dig);
printf("GSI prefix: %d\n", gsi);
printf("Group identifier: %d\n", g_identifier);
printf("Publisher ... | 2.90625 | 3 |
2024-11-18T22:41:23.739692+00:00 | 2014-03-18T01:04:25 | 0cce295cfa9484932f5a2719518c06d6278ebb5a | {
"blob_id": "0cce295cfa9484932f5a2719518c06d6278ebb5a",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-18T01:04:25",
"content_id": "644d007460c47b6676285ccb5e57e53df9c5b4d1",
"detected_licenses": [
"MIT"
],
"directory_id": "33800f6d3298db80e64c5c0014b2f9d581890e57",
"extension": "c"... | stackv2 | /* asph.c */
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <ftw_param.h>
int main(int argc, char* argv[])
{
char line[80];
char *cns, *rgs, *sas, *vs;
double rg, sa, v;
double aspherical_parameter;
double factor;
double correction = 0;
setCommandLineParameters(a... | 2.4375 | 2 |
2024-11-18T22:41:23.874313+00:00 | 2020-12-17T02:18:18 | 9c94591242842e2ea7ef35d21717ad96bd44540e | {
"blob_id": "9c94591242842e2ea7ef35d21717ad96bd44540e",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-17T02:18:18",
"content_id": "adec313959c95efe0892710b47b6b993e8e6689a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0c875cece58a57d0c2bff2e72ad3ea40ed5e8cbc",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int
main (int argc, char **argv) {
//check argument formatting
if (argc!=4 || atoi(argv[1])<1) {
return 1;
}
//declare variables and initialize the arguments n, a, b
int n, a, b, index;
n = atoi(argv[1]);
a = atoi(argv[2]);
b = atoi(argv[3]);
int *seq = (int *) malloc... | 3.1875 | 3 |
2024-11-18T22:41:25.576403+00:00 | 2020-11-25T04:35:27 | 8eed5e1867dc3df4ea583386e07a9e20ae382548 | {
"blob_id": "8eed5e1867dc3df4ea583386e07a9e20ae382548",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-25T04:35:27",
"content_id": "79010cef642a2ebd82f122c3f5dbb17a5fc1f22c",
"detected_licenses": [
"MIT"
],
"directory_id": "040f39d11438d6f58f59c4c5f450b670aaf26417",
"extension": "c"... | stackv2 | // Copyright (c) 2012-2020 YAMAMOTO Masaya
// SPDX-License-Identifier: MIT
#include <common.h>
#include <defs.h>
#include <types.h>
//
#define isascii(x) ((x >= 0x00) && (x <= 0x7f))
#define isprint(x) ((x >= 0x20) && (x <= 0x7e))
void hexdump(void *data, size_t size) {
int offset, index;
unsigned char *src;
src... | 2.8125 | 3 |
2024-11-18T22:41:25.659962+00:00 | 2018-05-24T09:21:11 | bc490af1a87cd819e26f7682e207860f53eba337 | {
"blob_id": "bc490af1a87cd819e26f7682e207860f53eba337",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-24T09:21:11",
"content_id": "aae5f05e4da6694ff28ec43cd8a65112047db8e2",
"detected_licenses": [
"MIT"
],
"directory_id": "af0f26a7411ea94a190fabbfc6f71354eb919969",
"extension": "c"... | stackv2 | #include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "x86.h"
#include "proc.h"
#define TAKEN_OFFSET -1
#define FREE_SLOT 0
#define min(a,b) (a<b?a:b)
void printbits(uint* addr){
uint bits = *addr;
char output[33]; output[32]=0;
for(int i=31;i>=0;--i){
out... | 2.5625 | 3 |
2024-11-18T22:41:26.455239+00:00 | 2020-09-20T22:48:47 | 4459e1b86cc5a0dcad94dbea61c9a7902f60a4a6 | {
"blob_id": "4459e1b86cc5a0dcad94dbea61c9a7902f60a4a6",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-20T22:48:47",
"content_id": "09e9ea4c84b7d48348c8c70d670041f07442f4c7",
"detected_licenses": [
"MIT"
],
"directory_id": "3bfaf17f40a461642e4bf4d29043dd5509a88770",
"extension": "c"... | stackv2 | //
// Created by jmalcy on 9/19/20.
//
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdlib.h>
#include "utilities.h"
/**
* Removes trailing spaces from a string.
* @param str The string... | 3.359375 | 3 |
2024-11-18T22:41:26.680685+00:00 | 2021-03-05T00:54:25 | 2d1192ff2023ddf72f6d264a85c902dadf0a3585 | {
"blob_id": "2d1192ff2023ddf72f6d264a85c902dadf0a3585",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-05T00:54:25",
"content_id": "0ea776fb8b030e6e2d3cf0474496ae4e6a38d8b3",
"detected_licenses": [
"MIT"
],
"directory_id": "13869fe5592ffbb1158b1fa523c57cfb4fab9dcf",
"extension": "c"... | stackv2 | // Use the geodesic solver code to create a gsl implementation so you can
// compare the speeds. The template needs to get close to ,ideally better than,
// exactly to the gsl run times
#include <stdio.h>
#include <iostream>
#include <chrono>
#include <math.h>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_matrix.h>
#i... | 2.671875 | 3 |
2024-11-18T22:41:27.124469+00:00 | 2021-10-09T23:04:58 | 586e121e7be36c20434b7be7f057f57397fd0c8a | {
"blob_id": "586e121e7be36c20434b7be7f057f57397fd0c8a",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-09T23:04:58",
"content_id": "b97251569c3de7a302a66eb017db0eb8589a2715",
"detected_licenses": [
"MIT"
],
"directory_id": "60e86ea670f170aa12ba0cb19157fe328f5e429f",
"extension": "h",
... | stackv2 | /*------------------------------------------------------------------------/
/-------------------------- AVR UART Functions ---------------------------/
/-------------------------------------------------------------------------/
/ AUTHOR
/ John Greenwell
/
/ VERSIONS
/ 1.2 -- 06 March 2013
/ 1.1 -- 30 January 2013
/... | 2.34375 | 2 |
2024-11-18T22:41:27.728873+00:00 | 2019-09-15T04:56:32 | b06f0ca4a0f5dbf096b7b1e80927054a8728bc83 | {
"blob_id": "b06f0ca4a0f5dbf096b7b1e80927054a8728bc83",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-15T04:56:32",
"content_id": "666fc137903e36c0b13f80e0ab25b373b94f1879",
"detected_licenses": [],
"directory_id": "5ee028ee2582a2d566c22a32097a1fcbed314fcc",
"extension": "c",
"filename... | stackv2 | /**
* Author: Xavier Vilajosana (xvilajosana@eecs.berkeley.edu)
* Pere Tuset (peretuset@openmote.com)
* Date: July 2013
* Description: CC2538-specific definition of the "radiotimer" bsp module.
*/
#include "stdio.h"
#include "stdint.h"
#include "string.h"
#include "radiotimer.h"
#include "debugpins.h"
#... | 2.515625 | 3 |
2024-11-18T22:41:27.858005+00:00 | 2018-06-09T10:58:38 | daf337294c34d7fe59aa5e13c4b1e7f637252704 | {
"blob_id": "daf337294c34d7fe59aa5e13c4b1e7f637252704",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-09T10:58:38",
"content_id": "76da6eba0b914de08daf6edfdd8b44a86e0d6812",
"detected_licenses": [
"MIT"
],
"directory_id": "03b39c11d9e73bf4aee483dcd05af3865ebd9998",
"extension": "h"... | stackv2 | /*
* Switch class driver
*
* Copyright (C) 2008 Google, Inc.
* Author: Mike Lockwood <lockwood@android.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms... | 2.234375 | 2 |
2024-11-18T22:41:28.035276+00:00 | 2018-03-04T05:20:19 | 4af2cbe2f2c2ab8c0e5835f5271516ad6bd7d3b0 | {
"blob_id": "4af2cbe2f2c2ab8c0e5835f5271516ad6bd7d3b0",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-04T05:20:19",
"content_id": "7bb721bd73401426321761bd8a14aa61c8d7062d",
"detected_licenses": [
"MIT"
],
"directory_id": "386ac8dc04a00694976da79ec76c75c6eca7ef06",
"extension": "c"... | stackv2 | #include <stdio.h>
#define TAM 3
#define TAMstruct 100
typedef struct pessoa{
char nome[TAMstruct];
int idade;
}Pessoa;
Pessoa * preenche(Pessoa *p){
int i;
for(i=0; i<TAM; i++){
printf("Digite o nome da pessoa %d\n",i+1);
fgets(p->nome,TAMstruct,stdin);
printf("D... | 3.390625 | 3 |
2024-11-18T22:41:28.102825+00:00 | 2020-01-30T15:52:16 | ce20894bdb574045316cb18e1f9f373b84a759cd | {
"blob_id": "ce20894bdb574045316cb18e1f9f373b84a759cd",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-30T15:52:16",
"content_id": "a8a9eb532cdd6eb60da96b0b978d726fc44fe895",
"detected_licenses": [
"MIT"
],
"directory_id": "40de3da30239862f11a946166b50438174c2fd4e",
"extension": "c"... | stackv2 | inherit "room/room";
object monster;
reset(arg) {
if(!monster){
monster = clone_object("/wizards/belar/dwarf/monsters/dwcl1.c");
move_object(monster, this_object());
}
add_exit("north","/wizards/belar/dwarf/rooms/nort3.c");
add_exit("south","/wizards/belar/dwarf/rooms/nort2.c");
add_exit("east","/wizards/belar/dwarf/r... | 2.09375 | 2 |
2024-11-18T22:41:28.284161+00:00 | 2022-02-16T07:42:46 | 4c875b213136d4c4b2cd9a3259db7fa5e96c89fc | {
"blob_id": "4c875b213136d4c4b2cd9a3259db7fa5e96c89fc",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-16T19:44:09",
"content_id": "1892b46b75a21c2110d16e48702fdcdb1118daaa",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9121a7b43df848fb69898e15517d218f8bc31f02",
"extensio... | stackv2 | #include "strbuf.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "log.h"
bool
sc_strbuf_init(struct sc_strbuf *buf, size_t init_cap) {
buf->s = malloc(init_cap + 1); // +1 for '\0'
if (!buf->s) {
LOG_OOM();
return false;
}
buf->len = 0;
... | 2.96875 | 3 |
2024-11-18T22:41:28.451208+00:00 | 2021-08-16T03:56:07 | edbff418ba179257927abd43f243d1b647258ef5 | {
"blob_id": "edbff418ba179257927abd43f243d1b647258ef5",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-16T03:56:07",
"content_id": "11f8a791df3d2d7d5d2830eeb8f50d92a7588ab5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "906de6054cb65914e19206f5fb1216458851a136",
"extension"... | stackv2 | /* #include "resample_api.h" */
#include "speed_api.h"
/* #include "resample.h" */
#include "typedef.h"
#include "decoder_api.h"
#include "config.h"
#include "sound_effect_api.h"
#define LOG_TAG_CONST NORM
#define LOG_TAG "[normal]"
#include "debug.h"
#if AUDIO_SPEED_EN
SPEED_PITCH_PARA_STRUCT sp_... | 2.28125 | 2 |
2024-11-18T22:41:28.833191+00:00 | 2018-03-14T01:23:23 | f724baa57d3743466664e38c1b79d054496f18ab | {
"blob_id": "f724baa57d3743466664e38c1b79d054496f18ab",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-14T01:23:23",
"content_id": "9a63474338b1dbf515342b2f379b84b11e6131d3",
"detected_licenses": [
"MIT"
],
"directory_id": "881d6fb8150d81ef41d637d6edf827a83f25e3c6",
"extension": "c"... | stackv2 | /*
* Omap3530Interrupts.c
*
* Created on: 18 Mar 2017
* Author: Mathias
* Description: Device dependent implementation of interrupt stuff.
*/
#include <kernel/common/mmio.h>
#include <kernel/devices/omap3530/includes/interrupts.h>
#include <kernel/devices/omap3530/includes/omap3530.h>
#include <kernel/hal/... | 2.53125 | 3 |
2024-11-18T22:41:29.207320+00:00 | 2016-05-09T14:54:06 | 22a7db948f4d0344d2b06729d041f5da48e5675e | {
"blob_id": "22a7db948f4d0344d2b06729d041f5da48e5675e",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-09T14:54:06",
"content_id": "c7d41bbd0a48d205cc98f2f45fce4cb8abae048c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f4b25adf9c84e576b7ac5c4557465358d1bfeade",
"extensio... | stackv2 |
#include "physical_value.h"
#include <stdio.h>
#include <math.h>
static void physical_value_compare_print(physical_value a, physical_value b) {
int32_t ret = 0;
ret = compare_physical_value(a, b);
printf("a.value=%d, multiplier=%d, b.value=%d, multiplier=%d\r\n",
a.value, a.multiplier, b.val... | 3 | 3 |
2024-11-18T22:41:29.375370+00:00 | 2023-08-12T08:24:27 | 95f9fe586132f6cdfb75045504173083a71d0ad7 | {
"blob_id": "95f9fe586132f6cdfb75045504173083a71d0ad7",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-12T08:24:27",
"content_id": "e6374e7181130ae4f1643b3ec2b5e49b5f657e2b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "cbe8756c4068574f2f1cf8f0ce6f11632622eccb",
"extensio... | stackv2 | /* @(#)execvp.c 1.2 */
/* 3.0 SID # 1.2 */
/*LINTLIBRARY*/
/*
* execlp(name, arg,...,0) (like execl, but does path search)
* execvp(name, argv) (like execv, but does path search)
*/
#include <sys/errno.h>
#define NULL 0
static char *execat(), shell[] = "/bin/sh";
extern char *getenv(), *strchr();
extern unsigned sl... | 2.640625 | 3 |
2024-11-18T22:41:29.707119+00:00 | 2023-03-24T15:51:51 | cb797fe3e395e32cbe5b9b93d49ee1b35b7cb1f3 | {
"blob_id": "cb797fe3e395e32cbe5b9b93d49ee1b35b7cb1f3",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-24T15:51:51",
"content_id": "e5152b4c11907d2ab8e94dfe107a3c1ce5e2ed53",
"detected_licenses": [
"Zlib"
],
"directory_id": "7cf04dc939f630317e276c15bb00b337cb4c8af7",
"extension": "c... | stackv2 | #include <stdio.h>
#include <SDL.h>
#include "../SDL_nmix.h"
#include "../SDL_nmix_file.h"
#define PREDECODED_SOURCE 0
int main(int argc, char** argv) {
if (argc != 2) {
printf("usage: %s filename", argv[0]);
return 1;
}
const char* filename = argv[1];
if (NMIX_OpenAudio(NMIX_DEFAULT... | 2.359375 | 2 |
2024-11-18T22:41:29.788027+00:00 | 2016-09-15T18:14:30 | d259e6d8d885dfb4f59c781cb25972ea6c1437c4 | {
"blob_id": "d259e6d8d885dfb4f59c781cb25972ea6c1437c4",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-15T18:14:30",
"content_id": "afce6188f84930cece1ec937978af69d8940cfdb",
"detected_licenses": [
"MIT"
],
"directory_id": "382b08d27a74e3f75b6b84a6cbb3eaa337757e3d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#define assert(cond, msg) if (!(cond)) { \
printf("assert fail: %s\n", msg); \
exit(-1); \
}
int maximalRectangle(char** matrix, int matrixRowSize, int matrixColSize);
int main(int argc, char* argv[]) {
char* h[] = {
"... | 2.90625 | 3 |
2024-11-18T22:41:30.182021+00:00 | 2014-11-11T00:59:34 | 0fe60521231b8211ebb6e7166a09e844a57ea8eb | {
"blob_id": "0fe60521231b8211ebb6e7166a09e844a57ea8eb",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-11T00:59:34",
"content_id": "22efabf1b5ef45d96123c698ad260b2ce29f8b71",
"detected_licenses": [
"MIT"
],
"directory_id": "6d16cac61193f7a3243fc59d12ef191df2f3fa80",
"extension": "h"... | stackv2 | /*
* Copyright (c) Michael Tharp <gxti@partiallystapled.com>
*
* This file is distributed under the terms of the MIT License.
* See the LICENSE file at the top of this tree, or if it is missing a copy can
* be found at http://opensource.org/licenses/MIT
*/
#ifndef _DMA_H
#define _DMA_H
#include "common.h"
typ... | 2.109375 | 2 |
2024-11-18T22:41:30.319999+00:00 | 2023-08-31T16:38:00 | ad160e1e28faa4079fff4460d95c458face63801 | {
"blob_id": "ad160e1e28faa4079fff4460d95c458face63801",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T16:38:00",
"content_id": "31477a92e5efd32abd0eafade27c789d5bcf94df",
"detected_licenses": [
"BSD-2-Clause",
"BSD-2-Clause-Patent"
],
"directory_id": "1efd2de8bf77ec00eb2fcaf57... | stackv2 | /*
* (C) Copyright 2018-2023 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
#ifndef __DAOS_SECURITY_INT_H__
#define __DAOS_SECURITY_INT_H__
#include <stdint.h>
#include <stddef.h>
#include <daos_types.h>
#include <daos_prop.h>
/** Structure representing a resource's ownership by user and ... | 2.28125 | 2 |
2024-11-18T22:41:30.614577+00:00 | 2019-12-15T23:04:24 | 3e379531e35e0854060e46b73b9897f7f09cee6c | {
"blob_id": "3e379531e35e0854060e46b73b9897f7f09cee6c",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-15T23:04:24",
"content_id": "bb8d3d91eb714bab91f5704491f286bf2f1a2bdf",
"detected_licenses": [
"MIT"
],
"directory_id": "366b6585fdd791f82148adbeb033b9972bae32d3",
"extension": "c"... | stackv2 | /*
* Copyright (C) 2008-2015 Marvell International Ltd.
* All Rights Reserved.
*/
/*
* OS demo
*
* Summary:
* This demo is present to give developers a ready reference of using
* various OS abstraction layer APIs.
*/
#include <wmstdio.h>
#include <wm_os.h>
int mutex_demo(void);
/*
* The application entry... | 2.421875 | 2 |
2024-11-18T22:41:30.704730+00:00 | 2016-04-21T00:09:30 | 8eb2b96321ea91434694e8ea1f7d569bf8ecccdc | {
"blob_id": "8eb2b96321ea91434694e8ea1f7d569bf8ecccdc",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-21T00:09:30",
"content_id": "878dfdf3b2cb2573997f1bb30681478b6368a590",
"detected_licenses": [
"MIT"
],
"directory_id": "a7827ff9da021172587fbc7e4a9f7911e16e2139",
"extension": "c"... | stackv2 | #include "statuslight.h"
#include "stm32f10x.h"
#include "delay.h"
void STATUSLIGHT_Configuration(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_STATUSLIGHT_PORT, ENABLE);
GPIO_InitStructure.GPIO_Pin = STATUSLIGHT_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO... | 2.484375 | 2 |
2024-11-18T22:41:30.823588+00:00 | 2019-08-16T20:32:24 | dfd2b1cf91638a0d52dcba3031f88ae5428b4c0c | {
"blob_id": "dfd2b1cf91638a0d52dcba3031f88ae5428b4c0c",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-16T20:32:24",
"content_id": "5467e1c462badf2f5e1bd6c272f2e6414d511788",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "8893e2191c074ddab5658c4f18f5b1fb1aa8175e",
"extens... | stackv2 | #include <stdio.h>
#include <zm.h>
/* Extern task definition 2/2 */
ZMTASKDEF( mycoroutine )
{
ZMSTART
zmstate 1:
printf("my task: init\n");
zmyield 2;
zmstate 2:
printf("my task: 1\n");
zmyield 3;
zmstate 3:
printf("my task: 2\n");
zmyield zmTERM;
zmstate ZM_TERM:
printf("my task: end\n");
Z... | 2.0625 | 2 |
2024-11-18T22:41:30.986668+00:00 | 2022-03-13T16:33:14 | eb866f038ca935bd47d7c5935d8f488b4fba222b | {
"blob_id": "eb866f038ca935bd47d7c5935d8f488b4fba222b",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-13T16:33:14",
"content_id": "9d92791afbda208bb1bdaf8fdfa07939a05775a1",
"detected_licenses": [
"MIT"
],
"directory_id": "4e83bd0ab8225427c1d3b6f1bebd3128416b842d",
"extension": "h"... | stackv2 | // The original file is available in electronic form at http://www.psa.es/sdg/sunpos.htm
// This has been edited to be a single header library
#ifndef __SUNPOS_H
#define __SUNPOS_H
// Declaration of some constants
#define pi 3.14159265358979323846
#define twopi (2*pi)
#define rad (pi/180)
#define dEarthMeanRad... | 2.546875 | 3 |
2024-11-18T22:41:31.559598+00:00 | 2019-01-20T22:52:15 | 82e1ba7d43dd5a69d728e796ae41a9a605519697 | {
"blob_id": "82e1ba7d43dd5a69d728e796ae41a9a605519697",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-20T22:52:15",
"content_id": "a41bc1033cf6ee9a6cf2f5d53feff5fcc73e5574",
"detected_licenses": [
"MIT"
],
"directory_id": "544fc6833562dd870904f66b5772968334e124c3",
"extension": "c"... | stackv2 | //
// Created by Jake Kinsella on 7/26/17.
//
#include "pins.h"
#include "../registers.h"
#include "../cpu.h"
void handle_reset_pin();
void handle_ready_pin();
void initialize_pins()
{
for (int i = 0; i < PIN_NUMBER; i++) {
pins[i] = 0;
}
initialize_data_bus();
initialize_address_bus();
}
v... | 2.203125 | 2 |
2024-11-18T22:41:31.802265+00:00 | 2021-07-08T00:20:10 | 58e5fac39b51405f4a2f2fb121cc6f048024e46d | {
"blob_id": "58e5fac39b51405f4a2f2fb121cc6f048024e46d",
"branch_name": "refs/heads/v2020.01",
"committer_date": "2021-07-08T00:20:10",
"content_id": "881e2db627245a12442a4155b05fb92ac69510fe",
"detected_licenses": [
"MIT"
],
"directory_id": "3ed5f6e4275b51f6549cb47383fc08495d29e744",
"extension": "... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include "libsoc_gpio.h"
#include "libsoc_debug.h"
// Blinks an LED attached to P9_14 (gpio1_18, 32+18=50)
#define GPIO_OUTPUT 50
int main(void) {
gpio *gpio_output; // Create gpio pointer
libsoc_set_debug(1); // Enable debug o... | 2.734375 | 3 |
2024-11-18T22:41:32.016424+00:00 | 2020-12-28T02:42:22 | b174f55fcdcce971d8f8da3f8a858b31dcd6ce1f | {
"blob_id": "b174f55fcdcce971d8f8da3f8a858b31dcd6ce1f",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-28T02:42:22",
"content_id": "8987e7d56753f601328d632c8cf70128923fd21f",
"detected_licenses": [
"MIT"
],
"directory_id": "cd25559651580a81aff094084d2de5687b2151b6",
"extension": "c",
... | stackv2 | #include <sys/stat.h>
#include <sys/epoll.h>
#include <errno.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/select.h>
#include <linux/net... | 2.46875 | 2 |
2024-11-18T22:41:32.091763+00:00 | 2023-03-22T07:10:22 | cff05d3dbd71dd9179101a9831454387a68943b9 | {
"blob_id": "cff05d3dbd71dd9179101a9831454387a68943b9",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-22T07:10:22",
"content_id": "7672e1389cd356a1f56a9074656ce2b37553c8e1",
"detected_licenses": [
"MIT"
],
"directory_id": "7e2cd12fb6eac8b562c9d041e487a30ab4e2da37",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_options.c :+: :+: :+: ... | 2.625 | 3 |
2024-11-18T22:41:32.395097+00:00 | 2023-02-17T02:10:14 | c633edc4d2e9e84daaeedfe239e577d2905cd428 | {
"blob_id": "c633edc4d2e9e84daaeedfe239e577d2905cd428",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-17T02:10:14",
"content_id": "ba7575a4a8ae4d0b972a5c7012daa9d82caa5dc1",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "6e5fb9d30fcf4dbcd6bbfb212a44d295... | stackv2 | /*
* xpk main
*/
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <lputil.h>
#include <clu.h>
#ifdef LUNAPURPURA_PNG_SUPPORT
#include <stb_image_write.h>
#endif
#include "xpk.h"
#include "xpkdecoder.h"
/* ********** */
enum XPKToolAction {
XPK_TOOL_ACT... | 2.265625 | 2 |
2024-11-18T22:41:32.470715+00:00 | 2023-01-17T17:16:53 | 4657f1f08d00c027d81592b9454418e291d2f679 | {
"blob_id": "4657f1f08d00c027d81592b9454418e291d2f679",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-17T17:17:57",
"content_id": "3672b16ef03c309a957bc4c5637ee5e8670bd483",
"detected_licenses": [
"BSD-3-Clause",
"Zlib"
],
"directory_id": "c8b971ec1ab72930538d5e03703521f6b5314c04... | stackv2 | #ifdef PHYS_ADDR_T_64BIT
typedef uint64_t phys_addr_t;
#else
typedef uintptr_t phys_addr_t;
#endif
static inline void writeb(phys_addr_t paddr, unsigned char v)
{
unsigned char *p = (void *) paddr;
barrier();
*p = v;
}
static inline void writel(phys_addr_t paddr, unsigned int v)
{
unsigned int *p = (void *) paddr... | 2.625 | 3 |
2024-11-18T22:41:32.657958+00:00 | 2020-09-04T00:59:48 | 2544d7fdb7d8fc188d1ddc48e9eb7a0cebd9922e | {
"blob_id": "2544d7fdb7d8fc188d1ddc48e9eb7a0cebd9922e",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-04T00:59:48",
"content_id": "7a60ef0f7a912318ff28dfe9474bf4bba052d950",
"detected_licenses": [
"MIT"
],
"directory_id": "a04321241ce6b2fb237c89d9a4e42014c1b8be21",
"extension": "h"... | stackv2 | #ifndef COMMON_H
#define COMMON_H
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
// -----------------------------------------------------------------------------
// RUNTIME CONSTANTS
// -----------------------------------------------------------------------------
#define RECURSION_LIMIT 5000 ... | 2.375 | 2 |
2024-11-18T22:41:32.867232+00:00 | 2021-06-07T19:59:54 | db18c451eb1b03009ba89bf02af07801f89d39be | {
"blob_id": "db18c451eb1b03009ba89bf02af07801f89d39be",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-07T19:59:54",
"content_id": "928bcb13332c41f6934af24a0a2197a42dd55cd2",
"detected_licenses": [
"MIT"
],
"directory_id": "1fdad120b2ace171de72fbe2db295e60b6b32c64",
"extension": "c",
... | stackv2 | #include <assert.h>
#include <stddef.h>
#include <stdlib.h>
struct node {
int data; // use int as an example
struct node *next;
};
struct list {
int count;
struct node *head;
};
//Create a list
struct list *CreateList() {
struct list *pList; //pointer named pList
pList = malloc(sizeof(struc... | 3.65625 | 4 |
2024-11-18T22:41:33.782992+00:00 | 2019-09-23T09:06:46 | eb709016d57546b819b3bafee64ca1c28a429341 | {
"blob_id": "eb709016d57546b819b3bafee64ca1c28a429341",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-23T09:06:46",
"content_id": "cd74ca3749a4f3738790f12dcd73fcf43dd83cba",
"detected_licenses": [
"MIT"
],
"directory_id": "ff2966d547c85be6c639e97d9baf354f251c6754",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
//子进程读写管道的函数
void child_rw_pipe(int readfd,int writefd){
char *message1 = "from child process!\n";
write(writefd,message1,strlen(message1)+1);
char message2[100];
read(readfd,mes... | 2.9375 | 3 |
2024-11-18T22:41:33.902863+00:00 | 2019-01-10T02:08:56 | ba08f95b7c82ee2c8cf1ec74ff85c73305c7f1f0 | {
"blob_id": "ba08f95b7c82ee2c8cf1ec74ff85c73305c7f1f0",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-10T02:08:56",
"content_id": "b19ce673051058d057c61dbf40137350fd0331ad",
"detected_licenses": [
"MIT"
],
"directory_id": "3b1dcfa53837733e54c3fa2f6b984e0f13106352",
"extension": "c"... | stackv2 | //--------------------------------------------------
// Name: Aria Avazkhani
// Email: aavazkhani@myseneca.ca
// Section: R
// Workshop: Week4
//--------------------------------------------------
#define _CRT_SECURE_NO_WARNINGS
// Place your code below
#include <stdio.h>
int main(voi... | 3.234375 | 3 |
2024-11-18T22:41:35.317699+00:00 | 2023-08-28T23:47:21 | 50575ded8de886e62feb5bfcf7830bcb1a70c994 | {
"blob_id": "50575ded8de886e62feb5bfcf7830bcb1a70c994",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T23:47:21",
"content_id": "31a71ecc43160e8a4a3859de2b5a096e444025a7",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "fa86c0a8e2df3a0dc58fb3c309d509efcbf1c567",
"extens... | stackv2 | /* Copyright (C) The libssh2 project and its contributors.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "libssh2_setup.h"
#include <libssh2.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#if... | 2.1875 | 2 |
2024-11-18T22:41:35.376022+00:00 | 2021-07-15T22:21:15 | 18d2e41afe7763bc2711dbca6e5d1029582e5e6a | {
"blob_id": "18d2e41afe7763bc2711dbca6e5d1029582e5e6a",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-20T18:32:11",
"content_id": "3acb0f81ccda8f2b7d3f1e3c53e7bc407f51a17a",
"detected_licenses": [
"MIT"
],
"directory_id": "7225853d12fe57d2d6dbf8197057c408aaeaad5f",
"extension": "h"... | stackv2 | /*
* Copyright 2021 Google LLC
* SPDX-License-Identifier: MIT
*/
#ifndef VKR_CS_H
#define VKR_CS_H
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "util/u_hash_table.h"
#include "util/u_math.h"
#include "vkr_object.h"
#define VKR_CS_DECODER_TEMP_POOL... | 2.203125 | 2 |
2024-11-18T22:41:35.730728+00:00 | 2017-12-14T10:10:49 | e5bcbcd74f5c498e37b95014b0614807890a29a0 | {
"blob_id": "e5bcbcd74f5c498e37b95014b0614807890a29a0",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-14T10:10:49",
"content_id": "b4217323dc385658072dd9dc1484ecaee15f0485",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "9ec644334778986d34ee7d560eb6e706b0659d41",
"... | stackv2 | //
// Created by sneha pathrose on 11/24/17.
//
#include <unistd.h>
char *getcwd(char *buf, size_t size)
{
uint64_t ret;
__asm__ volatile("movq $3,%rax");
__asm__ volatile("int $0x80":"=a"(ret));
return (char *)ret;
}
int execvpe(const char *file, char *const argv[], char *const envp[])
{
int ret;
... | 2.15625 | 2 |
2024-11-18T22:41:35.823508+00:00 | 2017-09-21T13:09:55 | 09d39f262aac32073cc5e5e52e3a1c82fcf32eed | {
"blob_id": "09d39f262aac32073cc5e5e52e3a1c82fcf32eed",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-21T13:09:55",
"content_id": "78fdf1584cb704063a42604a3e97deb8a7c03f9e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dac5254630fefae851da7c843dcab7f6a6af9703",
"extensio... | stackv2 | /*
Copyright (c) 2007-2009 Cyrus Daboo. All rights reserved.
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
Unle... | 2.171875 | 2 |
2024-11-18T22:41:36.028709+00:00 | 2015-08-14T15:54:29 | c9e28ffcba19c1b23a21054bd86a536151b74b1d | {
"blob_id": "c9e28ffcba19c1b23a21054bd86a536151b74b1d",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-14T15:54:29",
"content_id": "71201ed603eca05d7f9cfe95b84c9bfb59d5e5ef",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "720176890ebe31fdef92af3001ad52b5ec86e496",
"extens... | stackv2 | /*
* Copyright 2015, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
/*
* seL4 tutorial part 4: create a new process and IPC with it
*/
/* Include Kc... | 2.234375 | 2 |
2024-11-18T22:41:36.373257+00:00 | 2018-01-31T20:14:01 | 5bfd14a63e4ff72bd2980eaa5e5a45e068f5f318 | {
"blob_id": "5bfd14a63e4ff72bd2980eaa5e5a45e068f5f318",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-31T20:14:01",
"content_id": "465c3a74ffa6adde189913cef7fdee808b4f6b4c",
"detected_licenses": [
"MIT"
],
"directory_id": "2b953d91331ea04185ebfa05a25f74e3015f5cd0",
"extension": "c"... | stackv2 | #include "types.h"
#include "stat.h"
#include "user.h"
#include "semaphores.h"
int
main(int argc,char *argv[])
{
char temp1[4];
int pid;
sem_t *writers;
sem_t *readers;
char *h = shmget("325");
char *p ;
writers = (sem_t *)h;
sem_init(writers, 1);
readers = (sem_t *)(h+sizeof(sem_t));
sem_init(readers, 4);
... | 2.609375 | 3 |
2024-11-18T22:41:36.429869+00:00 | 2020-07-04T14:17:31 | 04ab8350887cf5ab4743395fe2dee22e57e46464 | {
"blob_id": "04ab8350887cf5ab4743395fe2dee22e57e46464",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-04T14:17:31",
"content_id": "74bdec589d0695e56828544af48a1253fda97dc2",
"detected_licenses": [
"MIT"
],
"directory_id": "ea8152e9e4532c2a84f46680764e23e67d5313a6",
"extension": "c"... | stackv2 | // There was a missing # in the include statement for the preprocessor
#include <stdio.h>
int main() {
float result; /* The result of the division */
int a = 5;
// Assigning a floating point value to an int results in the
// value being truncated down to the nearest integer in this case 13
// To solve this, ch... | 3.765625 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.