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-18T17:59:45.382671+00:00 | 2018-10-26T03:19:03 | c5c7d46e02467a9178c30a6a064556faefb501d7 | {
"blob_id": "c5c7d46e02467a9178c30a6a064556faefb501d7",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-26T03:19:03",
"content_id": "e67dcb21c8b2658003c5371f0baa76984ecd2a5a",
"detected_licenses": [
"MIT"
],
"directory_id": "0e3c919dfcef7c6815e6709faabb474595723546",
"extension": "c"... | stackv2 | /*
Runs on TM4C123, Jonathan Valvano 6/17/2013
Module Number: C8
Module Title: Switch controls light
Module Statement: Design two systems that include a switch and LED. The analog system includes
just the switch and LED, and the digital system includes a microcontroller. The switch controls
whether an LED is t... | 2.890625 | 3 |
2024-11-18T17:59:45.841807+00:00 | 2021-02-17T00:20:24 | 7b52d9ad341f3fcbe2668fecc9e742585cdf8975 | {
"blob_id": "7b52d9ad341f3fcbe2668fecc9e742585cdf8975",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-17T00:20:24",
"content_id": "fac9494869fda0aa3c1c52c5801fd4206f3bfde2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "30e028fe05e6f72639c9c67e628179c4bb113d41",
"extensio... | stackv2 |
#include <hobbes/lang/macroexpand.H>
#include <hobbes/lang/tylift.H>
namespace hobbes {
// walk the expression tree, find all macro references, and expand them
// (because this should be called after type inference, we need to preserve explicit type annotations)
struct macroExpandF : public switchExprC<ExprPtr> {
... | 2.171875 | 2 |
2024-11-18T17:59:45.921353+00:00 | 2019-01-23T15:06:00 | 6876d9197d7b19644ccb99e46586273d1aa1add8 | {
"blob_id": "6876d9197d7b19644ccb99e46586273d1aa1add8",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-23T15:06:00",
"content_id": "d215f6d0cae9785c5dffbf3ce9f5758046683382",
"detected_licenses": [
"MIT"
],
"directory_id": "4ab196d49cdeeca362d394464adc7572f3e9f0ea",
"extension": "c"... | stackv2 | /* wait.c - wait */
#include <conf.h>
#include <kernel.h>
#include <proc.h>
#include <q.h>
#include <sem.h>
#include <stdio.h>
#include "lab0.h"
extern int summarizeProcess;
/*------------------------------------------------------------------------
* wait -- make current process wait on a semaphore
*-------------... | 2.390625 | 2 |
2024-11-18T19:30:25.939406+00:00 | 2018-12-10T14:51:58 | 071eb1496330973268412f256571397a45f08fa8 | {
"blob_id": "071eb1496330973268412f256571397a45f08fa8",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-10T15:56:35",
"content_id": "c2f473c4909e61bf456aa21a392e5cd9ffae5319",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "293b19349d4bed21bcb15a7894dac813... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
#include <inttypes.h>
#include "dungeon.h"
/* LCG PRNG parameters tested against
* Knuth vol. 2. by the original authors */
#define LCG_A 1093L
#define LCG_C 221587L
#define LCG_M 1048576L
#define LINESIZE 1024
#define TOKLEN ... | 2.015625 | 2 |
2024-11-18T19:30:26.377139+00:00 | 2020-06-08T20:55:15 | 96df20f442b25daae66a082e362715a6de4b86fb | {
"blob_id": "96df20f442b25daae66a082e362715a6de4b86fb",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-08T20:55:15",
"content_id": "cad2f4b43fdebf4f9a4509413b9d37a6a8327feb",
"detected_licenses": [
"MIT"
],
"directory_id": "5e30b5d1b1178e058aeffb0344f2c54a5c1e1561",
"extension": "c"... | stackv2 | //
// Created by wieker on 1/17/20.
//
#include <legacy/nrf_drv_uart.h>
#include <sdk_config.h>
#include <nrf_delay.h>
nrf_drv_uart_t m_uart = NRF_DRV_UART_INSTANCE(0);
void uart_init()
{
nrf_drv_uart_config_t config = NRF_DRV_UART_DEFAULT_CONFIG;
config.pseltxd = 13;
config.pselrxd = NRF_UART_PSEL_DI... | 2.09375 | 2 |
2024-11-18T19:30:26.554335+00:00 | 2017-05-08T15:19:17 | 07ae29750c1f685c1be4f75e2b5b2772b2395cc4 | {
"blob_id": "07ae29750c1f685c1be4f75e2b5b2772b2395cc4",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-08T15:19:17",
"content_id": "e923ab3a610c48ddc436cc0d6af4242a2351bd9e",
"detected_licenses": [
"ISC"
],
"directory_id": "ad5fd7bb38a230bc98f76eefb065c66877a33d5c",
"extension": "c"... | stackv2 | #include <string.h>
#include <stdlib.h>
#include <proto/launch.h>
#include <kogata/syscall.h>
#include <kogata/debug.h>
#include <kogata/printf.h>
#include <kogata/btree.h>
bool loop_exec = true;
pid_t giosrv_pid = 0, login_pid = 0, lx_init_pid = 0;
void _parse_cmdline_iter(void* a, void* b) {
dbg_printf(" '%s' ... | 2.109375 | 2 |
2024-11-18T18:09:46.654755+00:00 | 2020-06-27T14:20:47 | 249fdaba9d0240359cffadbe930df2e406a38b75 | {
"blob_id": "249fdaba9d0240359cffadbe930df2e406a38b75",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-27T14:20:47",
"content_id": "4154a1c7cff68b7767e0bb7d549c8e8fb3916864",
"detected_licenses": [
"Unlicense"
],
"directory_id": "f79574d2c4a625df0188ad5399649126b136ad7c",
"extension... | stackv2 | #ifndef _HELPERS_H_
#define _HELPERS_H_
#define GLOBAL_VARIABLE static
#define INTERNAL static
#define LOCAL_VARIABLE static
#define INLINE inline
#define KB(x) ((x)*1024)
#define MB(x) ((x)*1024*1024)
typedef uint32_t b32;
typedef float f32;
#define SETBUF() setvbuf(stdout, NULL, _IONBF, BUFSIZ)
#if DEBUG_ENABLED... | 2.0625 | 2 |
2024-11-18T18:09:46.746201+00:00 | 2023-08-07T20:22:46 | 9facea0eae08b52fc9d5dd274179947a512d04f3 | {
"blob_id": "9facea0eae08b52fc9d5dd274179947a512d04f3",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-07T20:22:46",
"content_id": "046eaac4e11e421f0e474fcc14b03d98f53874cf",
"detected_licenses": [
"Zlib"
],
"directory_id": "d9ea45dbc964799991b9191ae620d2f150652a3d",
"extension": "h",... | stackv2 | #include <kinc/graphics4/graphics.h>
#include <kinc/graphics5/commandlist.h>
#include <kinc/graphics5/constantbuffer.h>
#include <kinc/graphics5/indexbuffer.h>
#include <kinc/graphics5/pipeline.h>
#include <kinc/graphics5/vertexbuffer.h>
#include <kinc/log.h>
#include <assert.h>
#include <string.h>
#ifdef KORE_MICRO... | 2.125 | 2 |
2024-11-18T18:09:47.174766+00:00 | 2020-12-20T17:32:53 | f1031ef481df2bdfce46cd7052bc07426e88877a | {
"blob_id": "f1031ef481df2bdfce46cd7052bc07426e88877a",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-20T17:32:53",
"content_id": "cb7f081cbb2d77398cad86b2d81dcb259f94d41f",
"detected_licenses": [
"MIT"
],
"directory_id": "c5f70ba06763419829e756c1a97afe46e2ccd215",
"extension": "c"... | stackv2 | /*
No Bugs in Production (NBP)
https://github.com/aenachescu/nbp
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 2019-2020 Alin Enachescu <https://github.com/aenachescu>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this... | 2.078125 | 2 |
2024-11-18T18:09:47.525849+00:00 | 2019-03-01T05:16:46 | f5a8a0c1fc2d845384820ed93d74d518f7e044b6 | {
"blob_id": "f5a8a0c1fc2d845384820ed93d74d518f7e044b6",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-01T05:16:46",
"content_id": "5cfa1d3a02ad0a868f09856ee2c0e75364b6bf02",
"detected_licenses": [
"MIT"
],
"directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f",
"extension": "c"... | stackv2 | // shenghuo-ling 聖火令
#include <weapon.h>
#include <ansi.h>
inherit SWORD;
void create()
{
set_name("聖火令",({ "shenghuo ling", "shenghuo", "ling" }) );
set_weight(1000);
if( clonep() )
set_default_object(__FILE__);
else
{
set("unit", "把");
... | 2 | 2 |
2024-11-18T18:09:47.619618+00:00 | 2021-03-28T07:27:07 | 5fe71d831ffb33666eaaab8d13b589491f1df646 | {
"blob_id": "5fe71d831ffb33666eaaab8d13b589491f1df646",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-28T07:27:07",
"content_id": "d722dc4c9346a77b4aeae66daee9d1156d795c1c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8717b4036064ce0abb764958bea682e2f4d406d4",
"extension"... | stackv2 | #ifndef __MEM_HEAP_H
#define __MEM_HEAP_H
#include "stdint.h"
//以下为了方便MDK环境下自动获取剩余RAM起始地址
//其它平台,自行定义MEM_HEAP_BEGIN,MEM_HEAP_END即可
#define RAM_SIZE 48 //RAM内存总KB
#define RAM_BEGIN 0x20000000 //内存起始地址
#if defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
#define __CLANG_ARM
#endif
#if defined(__CC_ARM)... | 2.125 | 2 |
2024-11-18T18:09:48.101756+00:00 | 2015-01-05T12:31:35 | 99a65f88c44f2becc11b1b0860051af579a61a91 | {
"blob_id": "99a65f88c44f2becc11b1b0860051af579a61a91",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-05T12:31:35",
"content_id": "67564ea993ba49e3516267f78b69258b71a23ccc",
"detected_licenses": [
"MIT"
],
"directory_id": "a8ccfc3047ae314995569ad06cc757dfa60c1ae1",
"extension": "c"... | stackv2 | #include <limits.h>
#include <locale.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "utils.h"
#include "mdazibao.h"
#include "alternate_cmd.h"
/** @file */
/** buffer size used in various functions */
#defin... | 2.109375 | 2 |
2024-11-18T18:09:48.527688+00:00 | 2019-01-06T17:21:50 | 66fd6dc0db9cf6dc785f1888df5e4305b40786c1 | {
"blob_id": "66fd6dc0db9cf6dc785f1888df5e4305b40786c1",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-06T17:21:50",
"content_id": "9dc9f1773a0360e1b0d9f39f24dcd5c3ed1b78b2",
"detected_licenses": [
"NCSA"
],
"directory_id": "971c5ae1d87cdfbb97723485c3d76c17395b82b0",
"extension": "c... | stackv2 | #include "mini_string.h"
#include "mini_stdlib.h"
/* Test gcse handling of IEEE 0/-0 rules. */
static double zero = 0.0;
int
negzero_check (double d)
{
if (d == 0)
return !!memcmp ((void *)&zero, (void *)&d, sizeof (double));
return 0;
}
int
xsub (double d, double e)
{
if (d == 0.0 && e == 0.0
&& neg... | 2.515625 | 3 |
2024-11-18T18:09:48.617710+00:00 | 2019-12-19T00:03:48 | c08b46a27c8f6b4162ae22faeecc1e59eb17d9b0 | {
"blob_id": "c08b46a27c8f6b4162ae22faeecc1e59eb17d9b0",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-19T00:03:48",
"content_id": "2f1b77bc2f2aadf6307e26eef2e4542c189572db",
"detected_licenses": [
"MIT"
],
"directory_id": "03ae399c214cdb071298ce680f05ff01028070d3",
"extension": "c"... | stackv2 | #include <arpa/inet.h>
#include <linux/if_packet.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <net/if.h>
#include <netinet/ether.h>
#include <unistd.h>
#include ... | 2.390625 | 2 |
2024-11-18T18:09:48.880362+00:00 | 2020-08-06T16:53:36 | 6fb96f5908e8c9e31fb5ae5c23ef175a61d5bfae | {
"blob_id": "6fb96f5908e8c9e31fb5ae5c23ef175a61d5bfae",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-06T16:53:36",
"content_id": "3799b1cf0ead32c97152cdf63513472faec26369",
"detected_licenses": [
"MIT"
],
"directory_id": "8b7a272ae43c04ac490056635219be066aa6f2a1",
"extension": "c"... | stackv2 | #include "bpf.h"
/**
* See PROTOOP_PARAM_WRITE_FRAME
*/
protoop_arg_t write_mp_ack_frame(picoquic_cnx_t *cnx)
{
uint8_t* bytes = (uint8_t *) get_cnx(cnx, AK_CNX_INPUT, 0);
const uint8_t *bytes_max = (const uint8_t *) get_cnx(cnx, AK_CNX_INPUT, 1);
mp_ack_ctx_t *mac = (mp_ack_ctx_t *) get_cnx(cnx, AK_CNX_... | 2.140625 | 2 |
2024-11-18T18:09:48.959390+00:00 | 2015-11-24T09:35:17 | c1616d2aa3e3d966229b0a59177f98ec5faa2372 | {
"blob_id": "c1616d2aa3e3d966229b0a59177f98ec5faa2372",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-24T09:35:17",
"content_id": "2a2b0438ef077231bf7b95c63864e0b9cd7d4fdb",
"detected_licenses": [
"MIT"
],
"directory_id": "d531386c1a6fb9be800161aae965b208740d4011",
"extension": "c"... | stackv2 | //=======================================================
//Project Name: S.C. Operating System
//Version: 0.02
//Auther: Shen Chi
//=======================================================
#include "tm.h"
#include "kernel.h"
#include "task.h"
#include "fs.h"
#include "screen.h"
task_info ti[64];
unsigned long cur_tas... | 2.53125 | 3 |
2024-11-18T18:09:49.108334+00:00 | 2019-01-06T17:21:50 | 457ff06cea5a7e661792f7576923c7c619b829fe | {
"blob_id": "457ff06cea5a7e661792f7576923c7c619b829fe",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-06T17:21:50",
"content_id": "df40c267a4f628aaa7fc4badc4b42d80e4d68f30",
"detected_licenses": [
"NCSA"
],
"directory_id": "971c5ae1d87cdfbb97723485c3d76c17395b82b0",
"extension": "c... | stackv2 | #include <stdio.h>
int main()
{
char mybuffer[80];
FILE * pFile;
pFile = fopen ("example.txt","w");
fputs ("test",pFile);
fflush (pFile); // flushing or repositioning required
fclose (pFile);
pFile = fopen ("example.txt","r");
fgets (mybuffer,80,pFile);
puts (mybuffer);
fclo... | 2.171875 | 2 |
2024-11-18T18:09:50.965242+00:00 | 2018-02-10T00:29:26 | 5cfed590c7521c3a449a020ec9a6ad8a33f99701 | {
"blob_id": "5cfed590c7521c3a449a020ec9a6ad8a33f99701",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-10T00:29:26",
"content_id": "0af2ee6d97f7aa80f4647478eabf7def99a000d4",
"detected_licenses": [
"MIT"
],
"directory_id": "b7ff102f68c61fa3a4ab31c9a24008d60f709154",
"extension": "h"... | stackv2 |
#ifndef __MOUSE_H
#define __MOUSE_H
#include <minix/syslib.h>
/** @defgroup mouse Mouse
* @{
*
* Mouse related functions
*/
/**
* @brief Subscribes mouse's interruptions.
* @return Returns an ID if successful and -1 otherwise.
*/
int mouse_subscribe_int(void );
/**
* @brief Unsubscribes mouse's interr... | 2.078125 | 2 |
2024-11-18T18:09:51.277499+00:00 | 2020-05-15T15:42:59 | 085647b3686ec55ecbbebc8c977a8a3373261eb0 | {
"blob_id": "085647b3686ec55ecbbebc8c977a8a3373261eb0",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-15T15:42:59",
"content_id": "9f287c7408c9cd16e86f57a63a969fea1aa4a85c",
"detected_licenses": [
"MIT"
],
"directory_id": "6ee3f3fa19120d7fba5316670aba623c9b9a83c0",
"extension": "h"... | stackv2 | #pragma once
#include <winsock2.h>
#include <Ws2tcpip.h>
const UINT32 MAX_SOCKBUF = 256; // 소켓 버퍼의 크기
const UINT32 MAX_SOCK_SENDBUF = 4096; // 소켓 버퍼의 크기
const UINT32 MAX_WORKERTHREAD = 4; //쓰레드 풀에 넣을 쓰레드 수
enum class IOOperation
{
RECV,
SEND
};
//WSAOVERLAPPED구조체를 확장 시켜서 필요한 정보를 더 넣었다.
struct stOverlappedEx
{
... | 2.1875 | 2 |
2024-11-18T18:09:51.336161+00:00 | 2021-11-26T08:38:57 | 6dc5ed6cf730d410761448e61e38a6087e44cf04 | {
"blob_id": "6dc5ed6cf730d410761448e61e38a6087e44cf04",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-26T08:38:57",
"content_id": "5ac2145c82d4c655efa0485ab2207978489a37ab",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "a77b595a482fc74260c7cccc50cafa77e0... | stackv2 | /*
------------------------------------------------------------------------------
Licensing information can be found at the end of the file.
------------------------------------------------------------------------------
tinyspritebatch.h - v1.0
To create implementation (the function definitions)
#define SPRIT... | 2.34375 | 2 |
2024-11-18T18:09:51.443283+00:00 | 2015-07-31T19:33:31 | 8b09a54421274823a44ae2bfba9813fd720d82f1 | {
"blob_id": "8b09a54421274823a44ae2bfba9813fd720d82f1",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-31T19:33:31",
"content_id": "7ec7c2bb46c45518a5f4ba98aec47a9c74ef64e4",
"detected_licenses": [
"MIT"
],
"directory_id": "2a5268a09ddc1bd8afe53032b3cfabf0f3b2b0a0",
"extension": "c"... | stackv2 | /*
embedded system library for e-puck - example 3
--------------------------------------------------------------------------------
code distribution:
https://github.com/jianingchen/epucklib
online documentation:
http://jianingchen.github.io/epucklib/html/
-----------------------------------------------------------... | 2.609375 | 3 |
2024-11-18T18:09:51.672491+00:00 | 2023-08-22T19:06:25 | 42c15a6eda8c965ba1b20608d5841e481c9de1d4 | {
"blob_id": "42c15a6eda8c965ba1b20608d5841e481c9de1d4",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-22T19:06:25",
"content_id": "12f7e8e9ecc0e5353d2c6395b72c521910614efa",
"detected_licenses": [
"MIT"
],
"directory_id": "d153de2407f635bbd2667a6b266354d532e80e85",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include "heclib.h"
#include "TestDssC.h"
int TestPairedData3(long long *ifltab)
{
zStructPairedData *pds1, *pds2, *pds3, *pds4, *pds5;
float fordinates[500], fvalues[10][500];
float *temp;
char label[20], labels[100];
int labelLength;
char pathname[100];
int numberValue... | 2.296875 | 2 |
2024-11-18T18:09:51.825175+00:00 | 2021-09-02T06:31:41 | ab5785cdef7cbafc2be0701801eaa5dfdff337d8 | {
"blob_id": "ab5785cdef7cbafc2be0701801eaa5dfdff337d8",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-13T15:06:35",
"content_id": "a2e6689f99b2a534510fa537c17c3587bb946c07",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b5195773daaadd1d99b0c7031620e75c16bfb676",
"extensio... | stackv2 | /**
Copyright Notice:
Copyright 2021 DMTF. All rights reserved.
License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/
/** @file
SHA-256/384/512 digest Wrapper Implementation.
**/
#include "internal_crypt_lib.h"
#include <mbedtls/sha256.h>
#includ... | 2.703125 | 3 |
2024-11-18T18:09:52.008308+00:00 | 2015-06-27T11:56:45 | fa46cdc8d1fcbf6fbd2c87b1f475e0bb8710e524 | {
"blob_id": "fa46cdc8d1fcbf6fbd2c87b1f475e0bb8710e524",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-27T11:56:45",
"content_id": "0a0b24b1af5024ad1f2d4d8ce6d24d347060b010",
"detected_licenses": [
"MIT"
],
"directory_id": "95b9f21bdf34b1abe423d43495617371e5a8b06a",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
/* Windows-System */
#ifdef _WIN32
#include <winsock.h>
#include <io.h>
/* Unix-System */
#else
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#endif
#de... | 2.703125 | 3 |
2024-11-18T18:09:52.493527+00:00 | 2023-08-09T12:19:02 | 240517d68c63f21bfde0ccc180bb08d06b90db94 | {
"blob_id": "240517d68c63f21bfde0ccc180bb08d06b90db94",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-09T12:19:02",
"content_id": "0bf5d9cfd4993affbda3a68fa345eef3ad08db50",
"detected_licenses": [
"Unlicense"
],
"directory_id": "e60b457a42892430eef7ead48ca55ad0a169b542",
"extension... | stackv2 | /* DannyNiu/NJF, 2021-06-23. Public Domain. */
#undef bc
#define bc xCamellia128
#include "../1-symm/blockcipher-test.c.h"
#undef bc
#define bc xCamellia192
#include "../1-symm/blockcipher-test.c.h"
#undef bc
#define bc xCamellia256
#include "../1-symm/blockcipher-test.c.h"
#undef bc
#define bc iCamellia128
#includ... | 2.25 | 2 |
2024-11-18T18:09:52.562300+00:00 | 2020-02-26T11:50:45 | e8f2696e701adea9b6ed1e3580eb8d03a71cfe01 | {
"blob_id": "e8f2696e701adea9b6ed1e3580eb8d03a71cfe01",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-26T11:50:45",
"content_id": "03b2cb265877b9075b255928a38eb4ae14ecbae6",
"detected_licenses": [
"MIT"
],
"directory_id": "7b881c20d4a76d91be709e09399c1d96dca791d1",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "byteio.h"
#define IS_LITTLE_ENDIAN (*(uint16_t *)"\0\xff" > 0x100)
#define BYTE_IO_DEBUG 1
short swapShort(short v) { return (v << 8) | ((v >> 8) & 0xFF); }
int swapInt(int v) {
v = ((v << 8) & 0xFF00FF00) | ((v >> 8) & 0xFF00FF);
return (v << ... | 2.671875 | 3 |
2024-11-18T18:09:52.884324+00:00 | 2014-09-11T07:55:47 | 7709296b82bc8c46e609c04d0a816bbc9c708422 | {
"blob_id": "7709296b82bc8c46e609c04d0a816bbc9c708422",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-11T07:55:47",
"content_id": "e679fbbcd1887339a141fd5117f16d1e3f4232a3",
"detected_licenses": [
"NCSA"
],
"directory_id": "39afe29d583fc7be4ca43cabfc1c4ada575291aa",
"extension": "c... | stackv2 |
#include <stdio.h>
#include <Lcode/l_dot.h>
#include <Lcode/l_code.h>
#include <Lcode/l_main.h>
#define L_DOT_FONT "Helvetica"
static void
L_dot_print_file_header(FILE* out, char* graph_name)
{
char* orientation = "portrait";
double page_w = 8.5;
double page_h = 11;
double size_w = 10;
double size_h = 7.5;... | 2 | 2 |
2024-11-18T18:09:53.080180+00:00 | 2023-08-09T21:04:51 | dfde766a15b0db3b903489f94bb1737c135b1557 | {
"blob_id": "dfde766a15b0db3b903489f94bb1737c135b1557",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-09T21:04:51",
"content_id": "d92207d1a5b6a0da6dcfd4ddc84c0f2393456186",
"detected_licenses": [
"MIT"
],
"directory_id": "060c02561085a494df306deb2f3a8fddb984c73a",
"extension": "c"... | stackv2 | /* $Id: gcoflow.c,v 1.3 1999/05/31 23:35:32 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved
*/
/************************************************************************/
/* */
/* (C) Copyright 1989-95 Venue. All Rights Reserved. */
/* Manufactured in the United States of America. */
/* */
/... | 2.3125 | 2 |
2024-11-18T18:09:53.140119+00:00 | 2017-10-25T01:47:57 | 54566196b5b52d650ecbc552f01d8b92ce22c8a6 | {
"blob_id": "54566196b5b52d650ecbc552f01d8b92ce22c8a6",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-25T01:47:57",
"content_id": "21942cb4caada76876d3a3abbc50046d5de4ca91",
"detected_licenses": [
"MIT"
],
"directory_id": "6dee7027bf6361194d5d2230c555121c9ed7209a",
"extension": "c"... | stackv2 | /* ACM 119 Greedy Gift Givers
* mythnc
* 2011/10/25 18:37:46
* run time: 0.004
* same as USACO Greedy Gift Givers (gift1.c)
*/
#include <stdio.h>
#include <string.h>
#define LEN 20
#define N 10
typedef struct group {
char name[LEN + 1];
int money;
} People;
int findname(People *, char *);
void ... | 3.359375 | 3 |
2024-11-18T18:09:53.373802+00:00 | 2019-02-01T18:53:38 | 63f73a8e19b52a5727b7066b945103a68a91f010 | {
"blob_id": "63f73a8e19b52a5727b7066b945103a68a91f010",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-01T18:53:38",
"content_id": "a035a42992a56e9f34a3b270dd14895bd68d797c",
"detected_licenses": [
"MIT"
],
"directory_id": "50b8f61cd96254d052884f52abad9f838b84ffaf",
"extension": "c"... | stackv2 | #include "F28x_Project.h"
#include "Comm.h"
#include "../Peripheral/SCI.h"
//***********************************************************************//
// G l o b a l V a r i a b l e s //
//***********************************************************************//
Uint16 usb_tx[S... | 2.046875 | 2 |
2024-11-18T18:09:53.648584+00:00 | 2018-12-20T07:28:19 | de4d4d67bb1a8352a975070378477b8cd4aea4ac | {
"blob_id": "de4d4d67bb1a8352a975070378477b8cd4aea4ac",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-20T07:28:19",
"content_id": "61d3dce02b0bd68699ce4937157f45ae0fac8183",
"detected_licenses": [],
"directory_id": "d12d28e6a2d73486be55648b33fa173ffc734098",
"extension": "c",
"filename... | stackv2 | #define _GNU_SOURCE
#include "malloc.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <errno.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/mman.h>
//=========================================================
// Your implementations HERE
//==========================... | 2.75 | 3 |
2024-11-18T18:09:54.089438+00:00 | 2019-08-06T14:24:54 | 6e95e6d95294548caa5c200620cfb1945f80b7b4 | {
"blob_id": "6e95e6d95294548caa5c200620cfb1945f80b7b4",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T14:24:54",
"content_id": "edfe821b5c0acf2e61fd6ebd5598f7b1fa211e21",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "021a3ccdcb91d84629f1de7343981b572840b169",
"extens... | stackv2 | static char help[] = "This example demonstrates the use of DMNetwork interface for solving a steady-state water network model.\n\
The water network equations follow those used for the package EPANET\n\
The data file format used is from the EPANET package (https://www.epa.gov/... | 2.265625 | 2 |
2024-11-18T18:09:54.522100+00:00 | 2015-03-19T01:37:07 | dae06f8a17a7cf1d5ebcd20d0c001b0628da3f03 | {
"blob_id": "dae06f8a17a7cf1d5ebcd20d0c001b0628da3f03",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-19T01:37:07",
"content_id": "d46adf83fff95565e86e6bf94c7687c92b7b93ea",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d5f639197cfc4c7207c80685ea17fa9440c9dd15",
"extensio... | stackv2 | /* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 Alexander Larsson
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your o... | 2.328125 | 2 |
2024-11-18T18:09:55.640091+00:00 | 2017-12-23T14:30:50 | 31c8bb6c54f327ff640841f11ee9d6eb976988a8 | {
"blob_id": "31c8bb6c54f327ff640841f11ee9d6eb976988a8",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-23T14:30:50",
"content_id": "9f828867f51a6261d29409e0027638244cebe5c3",
"detected_licenses": [
"MIT"
],
"directory_id": "32c1cb02fef24306e486f26327ab0c48c71477cd",
"extension": "c"... | stackv2 | #ifdef PROTOTYPE
int isNonNegative(int);
int test_isNonNegative(int);
#endif
#ifdef DECL
{"isNonNegative", (funct_t) isNonNegative, (funct_t) test_isNonNegative, 1,
"! ~ & ^ | + << >>", 6, 3,
{{TMin, TMax},{TMin,TMax},{TMin,TMax}}},
#endif
#ifdef CODE
/*
* isNonNegative - return 1 if x >= 0, return 0 otherwise... | 2.765625 | 3 |
2024-11-18T18:09:55.711543+00:00 | 2017-12-23T10:46:07 | 933e8eb73d0c4ecb3c7bc21543bb120e377cf7ac | {
"blob_id": "933e8eb73d0c4ecb3c7bc21543bb120e377cf7ac",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-23T10:46:07",
"content_id": "b5f608f56e23addf57ef530942c34970a9e97444",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2c3d26c50fca18b819c39c42c72ad95de842bb61",
"extens... | stackv2 | /* newboot - an AVR MMC/SD boot loader compatible with HolgerBootloader2
Based on a heavily modified version of ChaN's FatFs library
Copyright (C) 2011 Ingo Korb <ingo@akana.de>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided... | 2.09375 | 2 |
2024-11-18T18:09:55.777412+00:00 | 2020-03-26T04:02:44 | 1ebc7a8c7ae01764f0ebe72baa94a1e8639311cd | {
"blob_id": "1ebc7a8c7ae01764f0ebe72baa94a1e8639311cd",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-26T04:02:44",
"content_id": "4e2f0ac7f6e418ade04dc9d2c45c34b08786e703",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "88fd68187a3d4baeedaad69401afaa92321e2947"... | stackv2 | /* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "util.h"
static char ch = 'E';
static char my_write(int fd, void* buf, size_t size) {
long ret;
/* Do a write syscall where the address of the buffer
is at the top of stack during the syscall. This may trigger
gdb to try ... | 2.546875 | 3 |
2024-11-18T18:09:55.943864+00:00 | 2023-01-15T04:07:57 | a02334679d9f8e1eb217c4069b011b4a43023715 | {
"blob_id": "a02334679d9f8e1eb217c4069b011b4a43023715",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-15T04:07:57",
"content_id": "1cd79587c64b10aa3f4223cb6e2564f937654086",
"detected_licenses": [
"MIT"
],
"directory_id": "a4f8c35f3d40fd1cd2b74b4e63bd27e6faaf9964",
"extension": "c"... | stackv2 | #include <stddef.h>
#include <stdint.h>
#include <string.h>
size_t strlen(const char *str)
{
int n = 0;
while (*str++ && ++n) ;
return n;
}
int strcmp(const char *a, const char *b)
{
char c1, c2;
while ((c1 = *a++) == (c2 = *b++) && c1);
return c1 != c2;
}
void *memset(void *ptr, int val, si... | 2.921875 | 3 |
2024-11-18T18:09:56.044324+00:00 | 2021-02-09T02:50:50 | 91749db6db22f3256851c1613ee418852f766ed3 | {
"blob_id": "91749db6db22f3256851c1613ee418852f766ed3",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-09T02:50:50",
"content_id": "3416cae0ff9135a5977c2b38815d3ddf33e05c0c",
"detected_licenses": [
"MIT"
],
"directory_id": "9d0301c19a8ff97589534ec3bfe8080c1036fc0c",
"extension": "h"... | stackv2 | #ifndef __SYSTEM_STM32F4XX_H
#define __SYSTEM_STM32F4XX_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f4xx.h"
#define HSI_VALUE ((uint32_t)16000000U) // Internal high speed oscillator
#define HSE_VALUE ((uint32_t)8000000U) // External high speed oscillator
#define LSI_VALUE ((uint32_t)32000U) ... | 2.140625 | 2 |
2024-11-18T18:09:56.367980+00:00 | 2019-06-15T11:02:49 | 176de257b509339e761f4cf915c1e19d85e9fd52 | {
"blob_id": "176de257b509339e761f4cf915c1e19d85e9fd52",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-15T11:36:58",
"content_id": "8a1d3cee6d84b16f91ece04db0ebe79980046583",
"detected_licenses": [
"MIT"
],
"directory_id": "c8390b31f98d53e4b1b95b554d3816b3fd7cb5b6",
"extension": "h"... | stackv2 | #ifndef INCLUDE_PAGING_H
#define INCLUDE_PAGING_H
#pragma once
#include <types.h>
typedef struct page {
/* Page is present in memory if set */
uint32_t present : 1;
/* Read-only if clear, readwrite if set */
uint32_t rw : 1;
/* Supervisor level only if clear */
uint32_t user : 1;
/* Page been accesse... | 2.65625 | 3 |
2024-11-18T18:09:56.426046+00:00 | 2020-02-19T02:47:53 | 93ea8eb4118155898a8d8ec1f32a5fcc4acf1bae | {
"blob_id": "93ea8eb4118155898a8d8ec1f32a5fcc4acf1bae",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-19T02:47:53",
"content_id": "0550f3eea49fe23728c4ef31566a3664d99ca6d2",
"detected_licenses": [
"MIT"
],
"directory_id": "58aa2455286cd4eb4147c5b0c4a9cfc8993f305f",
"extension": "c"... | stackv2 | #include <vcc.h>
#define writable(p) 1 // TODO
/*{beg}*/
void boundedIncr(int *p)
_(writes p)
{
_(assume writable(p)) // from writes clause
_(assert \thread_local(p))
if (*p < 100) {
_(assert writable(p))
(*p)++;
}
_(assert \old(*p) < 100 ==> *p == \old(*p) + 1) // ensures
}
/*`
Verification of ... | 2.140625 | 2 |
2024-11-18T18:09:56.520829+00:00 | 2019-06-19T18:13:44 | ec9409dbe01225a4641e54887afc01a80d46e989 | {
"blob_id": "ec9409dbe01225a4641e54887afc01a80d46e989",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-19T23:03:30",
"content_id": "d64ed13a75b47b48d1d7b550d6c8ede0a38aeba6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "98c49475f1093066d8f4aab4a45b11d8a835d727",
"extens... | stackv2 | /*
* Copyright 2018 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.
*
* The command line tool to invoke firmware updater.
*/
#include <assert.h>
#include <stdio.h>
#include <getopt.h>
#include "futility.h"
#inclu... | 2.03125 | 2 |
2024-11-18T18:09:56.579421+00:00 | 2020-12-04T10:06:15 | bf51c63ebf417b4c6b35edbcdc1a0553cd95823d | {
"blob_id": "bf51c63ebf417b4c6b35edbcdc1a0553cd95823d",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-04T10:06:15",
"content_id": "367094be0511241162cf88a374ecb32a710f9674",
"detected_licenses": [
"MIT"
],
"directory_id": "b8cec19d1b6dc9862a5ab3d960fb3792805182e3",
"extension": "c"... | stackv2 | /*
* problem03.c
*
* Created on: Feb 5, 2019
* Author: tcrokicki
* Description: [ADD DESCRIPTON]
*/
#include<stdio.h>
#include "myflush.h"
void execute_problem02() {
char str[50], *p;
int length = 0;
printf("Enter a string: \n");
gets(str);
p = str;
while (*p != '\0') {
length++;
p++;
}
pri... | 3.0625 | 3 |
2024-11-18T18:09:56.658540+00:00 | 2013-04-17T18:42:40 | 3f9f9b5f64cb278a410c1bc9e0cc6968fb9366f5 | {
"blob_id": "3f9f9b5f64cb278a410c1bc9e0cc6968fb9366f5",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-17T18:42:40",
"content_id": "6495584da74ecab384bc19725b7eedc6038f083c",
"detected_licenses": [
"MIT"
],
"directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef",
"extension": "c"... | stackv2 | /***************************************************************************
Various Video System Co. games using the C7-01 GGA, VS8803, VS8904, VS8905
video chips.
C7-01 GGA is used in a lot of games, some of them without sprites. So it
either controls tilemaps, or the video signal, or both.
I think 8904/8905 handle ... | 2.109375 | 2 |
2024-11-18T18:09:56.852592+00:00 | 2021-09-07T02:21:21 | 86bae52664b888f1c45a50372368134bede01746 | {
"blob_id": "86bae52664b888f1c45a50372368134bede01746",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-07T02:21:21",
"content_id": "4d7638788b9f6346022269dcd11383feb35a2aad",
"detected_licenses": [
"MIT"
],
"directory_id": "ae84a3c284d9977294052e033d6077202cf47ed3",
"extension": "c",
... | stackv2 | #include "blockchain.h"
#include <stdlib.h>
/**
* blockchain_destroy - deletes the blockchain
* @blockchain: blockchain to delete
*/
void blockchain_destroy(blockchain_t *blockchain)
{
if (!blockchain)
return;
llist_destroy(blockchain->chain, 1, NULL);
free(blockchain);
}
| 2.078125 | 2 |
2024-11-18T18:09:57.133708+00:00 | 2016-12-13T03:18:15 | 5d9aac218d909b8d4ae6a79fe563e8b28c264312 | {
"blob_id": "5d9aac218d909b8d4ae6a79fe563e8b28c264312",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-13T03:18:15",
"content_id": "308256571aceac0bf77c3dc026a8a4b528c84b21",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c92fcf091d7bd70dc582969200364be87da1b542",
"extensio... | stackv2 | #include <Python.h>
#include "system_timer.h"
/*
* Handles the timing functionality. Given the delay as a parameter
* uses the built-in timing functionality to delay.
*/
static PyObject *hardwaretiming(PyObject *self, PyObject *args) {
uint32_t *delay;
//Parses the Python arguments coming in.
if (!PyAr... | 2.484375 | 2 |
2024-11-18T18:10:01.319093+00:00 | 2021-10-03T17:54:47 | fb35ada33cbbf9820caee35d15f2faddb80a195e | {
"blob_id": "fb35ada33cbbf9820caee35d15f2faddb80a195e",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-03T17:54:47",
"content_id": "970931e8cee21435cbc4b4710cd6ab8e503940fc",
"detected_licenses": [
"MIT"
],
"directory_id": "221102cd59e7a272848c68089241c1eaef6a363e",
"extension": "h"... | stackv2 | /*
** Jo Sega Saturn Engine
** Copyright (c) 2012-2020, Johannes Fetz (johannesfetz@gmail.com)
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
** * Redistributions of source code must reta... | 2.375 | 2 |
2024-11-18T18:10:01.547617+00:00 | 2017-04-05T14:40:52 | 27fb324bc625edc4784ac230f74898e0bae07183 | {
"blob_id": "27fb324bc625edc4784ac230f74898e0bae07183",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-05T14:40:52",
"content_id": "9c27ef7cab39a71ba871373fc903ebb1fa7a5a62",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9306b23a3f4e856b0fb9cdce8bc63825e81d8f4e",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include "myCommand.h"
#include "mySocket.h"
int _pwd(char * const path) {
memset(path, 0, strlen(path));
if (getcwd(path, 1024... | 2.46875 | 2 |
2024-11-18T18:10:01.620373+00:00 | 2023-07-21T05:49:53 | 7c1daffe40b0e0599b719a3956e69f003d1946c5 | {
"blob_id": "7c1daffe40b0e0599b719a3956e69f003d1946c5",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-21T11:16:09",
"content_id": "043a7158b8a8ee2201e5981e856fc86b1838b4a0",
"detected_licenses": [
"MIT"
],
"directory_id": "cd4eb25911d3e3b092aa97aaa7b8fbba6c3a0704",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "zint.h"
int test_ctor() {
//char s[] = "169024356";
char s[] = "16902";
// char s[] = "1690";
zint_t x = zint_ctor_str(s);
zint_debug(x);
// zint_show(x);
return 0;
}
int test_add_pos() {
uint8_t s0[] = {1, 9, 1};
uint8_t s1[] = {9, 4, 8, 9};
zint_t... | 2.640625 | 3 |
2024-11-18T18:10:01.930892+00:00 | 2023-04-23T21:47:39 | cbbeb9d819d6163bb898911ab8ed9222f0f735aa | {
"blob_id": "cbbeb9d819d6163bb898911ab8ed9222f0f735aa",
"branch_name": "refs/heads/main",
"committer_date": "2023-04-23T21:47:39",
"content_id": "df882148ee8f7bc717f285b54ec01ed3f2121fd3",
"detected_licenses": [
"MIT"
],
"directory_id": "a949ca9f1f0994d4429267f91b186323a17863ad",
"extension": "h",
... | stackv2 | #ifndef SUBSTITUTE_PRIMARY_KEY_H
#define SUBSTITUTE_PRIMARY_KEY_H
#include <algorithm>
struct ColumnNullableOrReplaced {
ColumnNullableOrReplaced(const Table &table): table(table) {}
inline bool operator()(const Column &column) {
return (column.nullable || !column.filter_expression.empty());
}
inline bool ope... | 2.859375 | 3 |
2024-11-18T18:10:02.058921+00:00 | 2017-04-24T10:33:31 | 402ab53f37dbdc0f9e254078f49d584f4ef465c7 | {
"blob_id": "402ab53f37dbdc0f9e254078f49d584f4ef465c7",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-24T10:33:31",
"content_id": "bce4c5c9ec15288393b46f22e4f89cefd11f9f9b",
"detected_licenses": [
"MIT"
],
"directory_id": "506bf68494142e263543d9a2472e4ae3607cbf5e",
"extension": "c"... | stackv2 | /**
@author Patrick Shaw (Patrick.Leong.Shaw@gmail.com)
*/
#include "run.h"
#include "validation.h"
int cmdRun(int argc, char* argv[], int commandArgC, char* commandArgs[]) {
if(!validateRangeParams(commandArgC, 1, 1, commandArgs[0])) {
return 1;
}
// Max directory path length is 4096 theor... | 2.296875 | 2 |
2024-11-18T18:10:02.475093+00:00 | 2016-06-01T22:40:42 | 16391986753345e717584f9cf981149acd29f859 | {
"blob_id": "16391986753345e717584f9cf981149acd29f859",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-01T22:40:42",
"content_id": "2d5c903cbfa2b1f8b813217010caefa0bd927790",
"detected_licenses": [
"MIT"
],
"directory_id": "324f2c76e4ea64cefdb5572d78a5194726571509",
"extension": "c"... | stackv2 | #include "syscall.h"
#include "param.h"
#include "semaphore.h"
//#include "types.h"
//#include "user.h"
void
initSemaphore(semaphore *s, int size)
{
s->maxHold = size;
s->queueSize = 0;
lock_init(&s->lock);
}
void
sem_acquire(semaphore* s)
{
lock_acquire(&s->lock);
if(s->maxHold == 0)
{
if(s->queueSiz... | 2.46875 | 2 |
2024-11-18T18:10:02.551035+00:00 | 2023-06-28T18:00:31 | 8158f404e9bb8d50be24bd2e49b48c5c97b7b9f2 | {
"blob_id": "8158f404e9bb8d50be24bd2e49b48c5c97b7b9f2",
"branch_name": "refs/heads/main",
"committer_date": "2023-06-28T18:00:31",
"content_id": "f10d4f07bcf0be91013facf84e0ea17fc5ffc021",
"detected_licenses": [
"MIT"
],
"directory_id": "34a2f46aeb01db43c4e04b879c1d096ddc34e8ae",
"extension": "c",
... | stackv2 | #include <ruby.h>
#include <ruby/encoding.h>
#include "html_tokenizer.h"
#include "parser.h"
static VALUE cParser = Qnil;
static void parser_mark(void *ptr)
{}
static void parser_free(void *ptr)
{
struct parser_t *parser = ptr;
size_t i;
if(parser) {
tokenizer_free_members(&parser->tk);
if(parser->doc... | 2.046875 | 2 |
2024-11-18T18:10:02.621818+00:00 | 2021-08-06T15:10:50 | f934083e4565032853e5d8c3d280dc684637892d | {
"blob_id": "f934083e4565032853e5d8c3d280dc684637892d",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-06T15:10:50",
"content_id": "920855e17184dc80a686874ec5d72b2b40f752a6",
"detected_licenses": [
"MIT"
],
"directory_id": "ff3cfe3a47c36657792bee4bd05800162e710b3f",
"extension": "c",
... | stackv2 | #include<stdio.h>
#include<stdlib.h>
#include<locale.h>
int main()
{
int contador,num = 0;
for (contador = 1; contador<=10; contador++)
{
num++;
printf("%i\n",num);
}
return(21);
}
| 2.09375 | 2 |
2024-11-18T18:10:02.691755+00:00 | 2015-11-10T07:52:19 | 8ca973631eebaaa9ffbf717233e7bb3b61aa56cc | {
"blob_id": "8ca973631eebaaa9ffbf717233e7bb3b61aa56cc",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-10T07:52:19",
"content_id": "7b9a1a33551bbefc800dbf30fc91fba5046a6d81",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "86157e9703f229f486bc33471ff7925c00d4dd72",
"extens... | stackv2 | /*
* Modified copy of zencode.c from PHP Screw 1.5. License is as below.
*
* php_screw
* (C) 2004, Kunimasa Noda <kuni@pm9.com>
*
* 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 c... | 2.234375 | 2 |
2024-11-18T18:10:03.160269+00:00 | 2014-10-24T14:18:47 | cae30e812cbf414679a5f7fa0a9f505945460059 | {
"blob_id": "cae30e812cbf414679a5f7fa0a9f505945460059",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-24T14:18:47",
"content_id": "a5297b423b3bbd8e9a8da00b358d814829f08843",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "830d19615851513ca8b563e2653e8a0d3a1d4074",
"extens... | stackv2 | #ifndef __LINUX_SPINLOCK_TYPES_H__
#define __LINUX_SPINLOCK_TYPES_H__
/*0*/ struct raw_spinlock;
/*0*/ #include <linux/spinlock_types.h>
/*0*/ struct arch_spinlock;
/*13*/ #include <asm/spinlock_types.h>
/*18*/ #include <linux/lockdep.h>
/**32**/ struct raw_spinlock {
arch_spinlock_t raw_lock;
};
/*32*/ typedef struc... | 2.0625 | 2 |
2024-11-18T18:10:03.218188+00:00 | 2023-08-18T12:54:06 | 8b7630a88a973936045c2882adae94b179e31caa | {
"blob_id": "8b7630a88a973936045c2882adae94b179e31caa",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T12:54:06",
"content_id": "9a75d8f7361fc9c015b523dcb8d465f0bc3c96de",
"detected_licenses": [
"MIT"
],
"directory_id": "22446075c2e71ef96b4a4777fe966714ac96b405",
"extension": "c"... | stackv2 | /*!
* @file
* @brief Brushless2 Click example
*
* # Description
* This application controlled speed motor.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initialization driver enable's - GPIO, PWM initialization
*
* ## Application Task
* This is a example which demo... | 2.609375 | 3 |
2024-11-18T18:10:03.658890+00:00 | 2020-09-28T19:44:06 | 59ebcabc8688692dcba840d43535ba59cc6b648b | {
"blob_id": "59ebcabc8688692dcba840d43535ba59cc6b648b",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-28T19:44:06",
"content_id": "7396d8d11db423f471b23eeae11cfe76b63d8e0f",
"detected_licenses": [
"MIT"
],
"directory_id": "be11d397b3dcb4720775eafdd0f402670b86de05",
"extension": "c"... | stackv2 | #include "esp_log.h"
#include "esp_system.h"
#define TAG "EX_MAC"
void mac_address_print_bt_addr() {
uint8_t mac_addr[8] = {0};
esp_err_t ret = ESP_OK;
ret = esp_read_mac(mac_addr, ESP_MAC_BT);
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to get BT MAC address. (%s)", esp_err_to_name(ret));
ESP_LOGE(TA... | 2.25 | 2 |
2024-11-18T18:10:03.793165+00:00 | 2021-03-24T10:52:19 | 8098f65a3ffcff725e22e4ca92ba86de519b8402 | {
"blob_id": "8098f65a3ffcff725e22e4ca92ba86de519b8402",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-24T10:52:19",
"content_id": "71bcf1feb226df8f3bef3bb5e4ac8257c801855c",
"detected_licenses": [
"MIT"
],
"directory_id": "a86071e9d92150f5a91d17dd4b65ece6d450825a",
"extension": "c",
... | stackv2 | #include "log.h"
#include "mouse.h"
#include "connection.h"
#include "window.h"
// Lua
int x11_test_lua_mouse_move_to(lua_State* L)
{
x11_test_connection_t* conn = luaL_checkudata(L, 1, X11_TEST_CONNECTION_TYPE_NAME);
uint16_t x = luaL_checkinteger(L, 2);
uint16_t y = luaL_checkinteger(L, 3);
x11_test_... | 2.03125 | 2 |
2024-11-18T18:10:04.186511+00:00 | 2020-04-21T21:55:38 | 74c24c4f9481b9769b3d014d899c31eec4dc3f16 | {
"blob_id": "74c24c4f9481b9769b3d014d899c31eec4dc3f16",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-21T21:55:38",
"content_id": "e8bb25793f6337685c32b896d35507207ba31f92",
"detected_licenses": [
"MIT"
],
"directory_id": "7925d9ebc08f24ab7387fe417157398f3fbc497f",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "modem.h"
#include "extern.h"
int format_chords_url(char *send_str, char *chords_endpoint, int chords_port,
int instrument_id, char *chords_write_key, uint8 write_key_enabled, uint8 is_test){
// Construct chords url
spri... | 2.28125 | 2 |
2024-11-18T18:10:04.547248+00:00 | 2020-12-03T06:35:18 | c13c8f84da1f3089dbecddac22395bb5baa69404 | {
"blob_id": "c13c8f84da1f3089dbecddac22395bb5baa69404",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-03T06:35:18",
"content_id": "230762d9137150b899af401f56e09f4de348a9c5",
"detected_licenses": [
"CC0-1.0",
"MIT"
],
"directory_id": "96f72457cfbc15f467a2217f911858494d5d54a2",
"... | stackv2 | #include <arch.h>
#include <task.h>
#include <printk.h>
#include <string.h>
#include "vm.h"
static uint64_t *traverse_page_table(uint64_t pml4, vaddr_t vaddr,
paddr_t kpage, uint64_t attrs) {
ASSERT(vaddr < KERNEL_BASE_ADDR);
ASSERT(IS_ALIGNED(vaddr, PAGE_SIZE));
ASSERT... | 2.546875 | 3 |
2024-11-18T18:10:05.409558+00:00 | 2023-08-17T21:51:22 | cae3f6684df560542d2a12371a56636972134a1e | {
"blob_id": "cae3f6684df560542d2a12371a56636972134a1e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-17T21:51:22",
"content_id": "70e888ac773d698ba29e1f2a6a66c20040ed1fc3",
"detected_licenses": [
"MIT"
],
"directory_id": "80f3b23dce2738ff296d938a16b9f5bc8a7773f2",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
//Alocação dinâmica de estruturas
typedef struct aluno{
int nmat;
char nome[50];
char sobrenome[50];
float nota[3];
float media;
}Aluno;
int main(){
printf("Aluno tem %d bytes", sizeof(Aluno));
Aluno* pt_aluno;
... | 3.171875 | 3 |
2024-11-18T18:10:05.919941+00:00 | 2018-11-12T08:53:58 | 7087691b7870fff0ad647662d0326a4026a10765 | {
"blob_id": "7087691b7870fff0ad647662d0326a4026a10765",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-12T08:53:58",
"content_id": "018ca8612286976b12eb07392c4f71e2072ad5e5",
"detected_licenses": [
"MIT"
],
"directory_id": "9e3af1bd1d11072faba6069a932050e108a7152d",
"extension": "c"... | stackv2 | #include <soundio/soundio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
static const float PI = 3.1415926535f;
static float seconds_offset = 0.0f;
static void write_callback(struct SoundIoOutStream *outstream,
int frame_count_min, int frame_count_max)
{
const struct Sound... | 2.59375 | 3 |
2024-11-18T18:10:06.387453+00:00 | 2020-12-25T14:04:04 | 657eae901130c72264693e2c3277d377fa21b354 | {
"blob_id": "657eae901130c72264693e2c3277d377fa21b354",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-25T14:04:04",
"content_id": "c3d02178fe471b4cb431f77a275866783ad97bac",
"detected_licenses": [
"MIT"
],
"directory_id": "857fc21a40aa32d2a57637de1c723e4ab51062ff",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdbool.h>
const char WATER = '0';
const char LAND = '1';
const char NEW = 'X';
const char USED = 'O';
void drawGrid(char** grid, int NUMBER_OF_ROWS, int NUMBER_OF_COLS) {
for (int i = 0; i < NUMBER_OF_ROWS; i++) {
for (int j = 0; j < NUMBER_OF_COLS; j++) {
printf(... | 3.25 | 3 |
2024-11-18T18:10:06.588723+00:00 | 2020-12-30T09:15:17 | 14d80d200cdc106791578d47de8cfeb231ec1207 | {
"blob_id": "14d80d200cdc106791578d47de8cfeb231ec1207",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-30T09:15:17",
"content_id": "8f5c8d4947b86822197baca188b9106f0a5479af",
"detected_licenses": [
"MIT"
],
"directory_id": "9135087be1626955056f1775e308247088467171",
"extension": "c"... | stackv2 | //====================================================================
//文件名称:main.c(应用工程主函数)
//框架提供:SD-Arm(sumcu.suda.edu.cn)
//版本更新:2017.08, 2020.06
//功能描述:见本工程的<01_Doc>文件夹下Readme.txt文件
//====================================================================
#define GLOBLE_VAR
#include "includes.h" //包含总头文件
//--... | 2.140625 | 2 |
2024-11-18T18:10:07.122640+00:00 | 2020-12-13T07:47:33 | 526e5a36c6794c775cc17be4e4167f9d33b7d49e | {
"blob_id": "526e5a36c6794c775cc17be4e4167f9d33b7d49e",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-13T07:47:33",
"content_id": "3d27d93753694eac178923838fa55d160b5e5357",
"detected_licenses": [
"MIT"
],
"directory_id": "add533c4e43dc111f18c679626d7e350baa926de",
"extension": "c"... | stackv2 | #include <stdio.h>
// Move n blocks [from] -> [to]
void hanoiTower(int numBlocks, char from, char temp, char to);
int main(void)
{
int x = 0;
printf("Enter the number of blocks: ");
scanf_s("%d", &x);
hanoiTower(x, 'A', 'B', 'C');
}
void hanoiTower(int numBlocks, char from, char temp, char to)
{
if (numBlocks... | 3.875 | 4 |
2024-11-18T18:10:07.291687+00:00 | 2019-10-27T16:39:36 | 22262401de818c7ad247d0e122ea3bbd138e7383 | {
"blob_id": "22262401de818c7ad247d0e122ea3bbd138e7383",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-27T16:39:36",
"content_id": "4ac09ff3314fb860c4ab4502f4c300bc20e6be03",
"detected_licenses": [
"Unlicense"
],
"directory_id": "661c0d619853a9680cad45edcb81c276583125d4",
"extension... | stackv2 | #include "mocks.h"
#include "unity_fixture.h"
static mocks_return_code verify_assert_value;
static uint8_t expect_ctx[MOCKS_MAX_CONTEXT_DATA_SIZE];
static uint8_t invoke_ctx[MOCKS_MAX_CONTEXT_DATA_SIZE];
TEST_GROUP(NonEmptyContext);
TEST_SETUP(NonEmptyContext)
{
mocks_init();
}
TEST_TEAR_DOWN(NonEmptyContext)
{
... | 2.40625 | 2 |
2024-11-18T18:10:07.841976+00:00 | 2020-07-08T04:56:19 | 5953bdbe445ed35fbbd57402a57482bfc331a9c5 | {
"blob_id": "5953bdbe445ed35fbbd57402a57482bfc331a9c5",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-08T04:56:19",
"content_id": "c86fda4fd29b476884565d8ae72759f336deb6ef",
"detected_licenses": [
"MIT"
],
"directory_id": "77ae9a6eba3e6b0da2d323ea19e007d6d78bee79",
"extension": "h"... | stackv2 | #pragma once
#include <stdint.h>
#include <stdbool.h>
#ifdef BUILD_LIBGALVANI
#define GALVANI_API __declspec(dllexport)
#else
#define GALVANI_API
#endif
#ifdef __cplusplus
extern "C" {
#endif
// The API is organized in 2 levels.
// You can use either one set to complete the stimulation task.
// ======= High level ... | 2.046875 | 2 |
2024-11-18T18:10:08.476447+00:00 | 2016-02-04T10:24:44 | 4374067f2aa42d1f39da1448adb0eb078f117743 | {
"blob_id": "4374067f2aa42d1f39da1448adb0eb078f117743",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-04T10:24:44",
"content_id": "9a52c486646c47a0bcec2892e8da0528be62880c",
"detected_licenses": [
"Zlib"
],
"directory_id": "7ff53add1a2a71b16c4451a99153003d8a6707de",
"extension": "c... | stackv2 | /* See LICENSE file for license and copyright information */
#include <girara/session.h>
#include <girara/settings.h>
#include <girara/shortcuts.h>
#include <girara/datastructures.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include "callbacks.h"
#include "database.h"
#include "jumanji.h"
#include... | 2.265625 | 2 |
2024-11-18T18:10:09.062717+00:00 | 2017-03-06T16:23:40 | 52bf27d9a1bf89db2ebe443b2ffaa4dfe35393c7 | {
"blob_id": "52bf27d9a1bf89db2ebe443b2ffaa4dfe35393c7",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-06T16:23:40",
"content_id": "356870d9589d5594d79b63217bca662953d7034e",
"detected_licenses": [
"MIT"
],
"directory_id": "1030ae28cb4169c6e715caf36855e58a5e1ebb29",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* parser_room.c :+: :+: :+: ... | 2.6875 | 3 |
2024-11-18T18:10:09.457222+00:00 | 2016-11-12T05:40:24 | c28f4461c898d9ecab89c936b3fb36a166d5ea89 | {
"blob_id": "c28f4461c898d9ecab89c936b3fb36a166d5ea89",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-12T05:40:24",
"content_id": "b425aa5e9fe028e5941c63f3b6e7836bdcc5784f",
"detected_licenses": [
"MIT"
],
"directory_id": "f187b959d110987af04d685dc503c87cfcb08242",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
char buf[256],str[256],date[256];
FILE *fp;
int x,y,X,Y,L=0,R=0,Lb,Rb,PC_MAX_X,PC_MAX_Y,D_MAX_X,D_MAX_Y,LEN=26,f... | 2.21875 | 2 |
2024-11-18T18:10:09.898174+00:00 | 2021-09-18T17:50:04 | a307aadde8141065d8bb90925af549be2f77f708 | {
"blob_id": "a307aadde8141065d8bb90925af549be2f77f708",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-18T17:50:04",
"content_id": "6ea19f5ffe66366044f08a5e9565f068b02b2778",
"detected_licenses": [
"MIT"
],
"directory_id": "f1a6ded5deef14c7af683ac21579bcc46369d947",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
int foo() {
char a = 'a';
char buf[3];
char password[] = "hi";
strcpy(buf, password);
printf("%s", buf);
\\printf("\n%c", a);
return 0;
}
int main() {
foo();
return 0;
}
| 2.5625 | 3 |
2024-11-18T18:22:45.282617+00:00 | 2020-01-26T10:24:35 | c29498085d21220ba48237541784fc22630d4f82 | {
"blob_id": "c29498085d21220ba48237541784fc22630d4f82",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-26T10:24:35",
"content_id": "1a680bcd895d05df318a7a23d2785f8443b80957",
"detected_licenses": [
"MIT"
],
"directory_id": "d7f444a7110f4b8e2b86e1b5348d77afea6817c9",
"extension": "c"... | stackv2 | /**
* Octopipes
* Developed by Christian Visintin
*
* MIT License
* Copyright (c) 2019-2020 Christian Visintin
* 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... | 2.546875 | 3 |
2024-11-18T18:22:45.611048+00:00 | 2018-06-09T16:43:47 | d490d92a437bb4c1e68cf8a505ab5d07fb33c222 | {
"blob_id": "d490d92a437bb4c1e68cf8a505ab5d07fb33c222",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-09T16:43:47",
"content_id": "317fe0d9c31249daabce3f5f570c2cedacf100af",
"detected_licenses": [
"MIT"
],
"directory_id": "2535610eeb6f34504b092649a7297a693cbe4f13",
"extension": "h"... | stackv2 | #ifndef QUEUELIB_H
#define QUEUELIB_H
typedef struct queue queue;
/*la queue e' una struttura dati FIFO, il primo intero inserito sara' il primo estratto
gestita attraverso un puntatore a queue*/
queue *creaQueue(int dim_max);
/*alloca memoria per una nuova queue di massimo dim_max elementi
ritorna un puntatore all'a... | 2.609375 | 3 |
2024-11-18T18:22:47.168912+00:00 | 2018-06-26T11:02:32 | fe05ef9a7d7dbd798c7fc7cb1ca5d3a0cf2723a1 | {
"blob_id": "fe05ef9a7d7dbd798c7fc7cb1ca5d3a0cf2723a1",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-26T11:02:32",
"content_id": "4d836ede1a878d98a0357cbb85c09efd293b9bc2",
"detected_licenses": [
"MIT"
],
"directory_id": "d4b1063f8146b6a0d1ac50288bc0c46a5e911464",
"extension": "c"... | stackv2 | #include <stdio.h>
int main()
{
int n, i, fib_1 = 1, fib_2 = 1, pom;
printf ("Podaj liczbę całkowitą n:");
scanf("%d", &n);
for (i = 2; i <= n; i++) {
pom = fib_1;
fib_1 = fib_1 + fib_2;
fib_2 = pom;
}
printf("Elem ciągu Fi... | 3.21875 | 3 |
2024-11-18T18:22:48.104331+00:00 | 2020-10-20T13:48:32 | 2bab4a859012dc53ae6a2dd17c58d3008ef85895 | {
"blob_id": "2bab4a859012dc53ae6a2dd17c58d3008ef85895",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-20T13:48:32",
"content_id": "c5bb397f08181ad4244674d898ece394d150d8bd",
"detected_licenses": [
"MIT"
],
"directory_id": "13e65d48f1ff67004238be955919d48bec25f848",
"extension": "h"... | stackv2 |
#ifndef _FLUID_ATOMIC_H
#define _FLUID_ATOMIC_H
#include <stdbool.h>
#ifndef STATIC_ASSERT
#if __STDC_VERSION__ >= 201112L
#define STATIC_ASSERT _Static_assert
#else
#define STATIC_ASSERT(expr, msg) typedef char __static_assertion_ ## __COUNTER__[(expr) ? 1 : -1]
#endif
#endif //STATIC_ASSERT
#ifdef __GCC_HAVE_SYNC... | 2.4375 | 2 |
2024-11-18T18:22:48.263574+00:00 | 2022-02-10T17:59:28 | d3f9b3d52afa1360dc11671212efb5392afe1044 | {
"blob_id": "d3f9b3d52afa1360dc11671212efb5392afe1044",
"branch_name": "refs/heads/main",
"committer_date": "2022-02-10T17:59:28",
"content_id": "14bc447672d62bf6d0a6879f9910cd9bf71b38cb",
"detected_licenses": [
"MIT"
],
"directory_id": "20a00b0a1f2dc921b2362f76593c0dd6b17d771e",
"extension": "c",
... | stackv2 | /*
* This file implements memory management for the SSP object.
*/
#include <stdlib.h>
#include "../ssp.h"
#include "objects.h"
#include "ssp.h"
/*
* Allocate memory for and return a pointer to an SSP struct. Automatically
* sets both crf and msmf to NULL. Allocates memory for a 100-element char *
* IMF specifi... | 2.390625 | 2 |
2024-11-18T18:22:48.346041+00:00 | 2019-04-03T19:18:13 | b942e8b8b89050f7f6083d964f557ff6ab5a7033 | {
"blob_id": "b942e8b8b89050f7f6083d964f557ff6ab5a7033",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-03T19:18:13",
"content_id": "b2da216474847c6e7d3d4bcc5e21d2e146abfd7c",
"detected_licenses": [
"ISC",
"Zlib",
"CC0-1.0"
],
"directory_id": "bb4b967732337945dc96a899a1a0463f10... | stackv2 | #include <stddef.h>
#include <stdint.h>
#ifdef HAVE_ANDROID_GETCPUFEATURES
#include <cpu-features.h>
#endif
#include <sodium/private/common.h>
#include <sodium/runtime.h>
typedef struct CPUFeatures_
{
int initialized;
int has_neon;
int has_sse2;
int has_sse3;
int has_ssse3;
int has_sse41;
int has_avx;
... | 2.03125 | 2 |
2024-11-18T18:22:48.784114+00:00 | 2023-08-30T16:07:24 | 0003c9117ada761b2679c5c857b0335fd8f18577 | {
"blob_id": "0003c9117ada761b2679c5c857b0335fd8f18577",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T16:07:24",
"content_id": "ca9fc3ab1a7fffad85d3edf332719e77e8eb7fa9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "331640994b1b6f66c1639278571ddbdc6c8c0751",
"extensio... | stackv2 |
/*
* Copyright (C) Max Romanov
* Copyright (C) NGINX, Inc.
*/
#include "_cgo_export.h"
#include <nxt_unit.h>
#include <nxt_unit_request.h>
static ssize_t nxt_cgo_port_send(nxt_unit_ctx_t *ctx, nxt_unit_port_t *port,
const void *buf, size_t buf_size, const void *oob, size_t oob_size);
static ssize_t nxt_cgo_... | 2.34375 | 2 |
2024-11-18T18:22:48.853962+00:00 | 2021-10-14T14:01:11 | 8952ad551ec745fe26d1c8c364219ffe42f5b72c | {
"blob_id": "8952ad551ec745fe26d1c8c364219ffe42f5b72c",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-14T14:01:11",
"content_id": "dec0d44aaaf27644ad7f31d0bf66f2f35f8f0ce2",
"detected_licenses": [
"MIT"
],
"directory_id": "e2dc918184186a314579d33ae5d637fe1f5dfe01",
"extension": "c",
... | stackv2 | /***********************************************************************
*
* FILE : tb_rx671_main.cpp
* DATE : 2021-09-28
* DESCRIPTION : Main Program
*
* NOTE:THIS IS A TYPICAL EXAMPLE.
*
***********************************************************************/
#include "r_smc_entry.h"
#include "tbrx6... | 2.40625 | 2 |
2024-11-18T18:22:48.912988+00:00 | 2020-08-19T15:21:53 | 767403d18e957511cd99e3ba3134b206bd256ce7 | {
"blob_id": "767403d18e957511cd99e3ba3134b206bd256ce7",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-19T15:21:53",
"content_id": "53018a683805a89fbc30c53eab7cb73f249b6475",
"detected_licenses": [
"MIT"
],
"directory_id": "4fa1e0711c3023a94035b58f6a66c9acd4a7f424",
"extension": "c"... | stackv2 |
/************************************************************************
*
* Copyright (C) 1990 Werner Associates. All Rights Reserved.
*
*-----------------------------------------------------------------------
*
* Project: CMNDLL, Common DLL for Werner Apps
*
* Module: cmndll.c
*
* Author(... | 2.015625 | 2 |
2024-11-18T18:22:49.827178+00:00 | 2019-10-27T00:19:30 | 493cd14b24dae42d474dde2799af0829ce585e3b | {
"blob_id": "493cd14b24dae42d474dde2799af0829ce585e3b",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-27T00:19:30",
"content_id": "cce1af1ae00e19886cbb922021bace4d95c432bd",
"detected_licenses": [
"MIT"
],
"directory_id": "b7328ab7f0e183d8beb034cefcd5a0ec2016347c",
"extension": "c"... | stackv2 | /* Author: Uchegbu Damianson-Wisdom Onyekachi with snippets from Sir Bhatt; C Programming Beast
* Description: Calculates total GPA for a semester */
#include <stdio.h>
#include <string.h>
#define MAX_COURSE 10 //total number of courses
enum grades {
A,B,C,D,E,F
} grade_t;
/*
name: name of the course (Course cod... | 3.21875 | 3 |
2024-11-18T18:22:50.301369+00:00 | 2019-11-18T05:11:44 | 7bfb9941355fbd2e27c77c5b3654a4752c03be00 | {
"blob_id": "7bfb9941355fbd2e27c77c5b3654a4752c03be00",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-18T05:11:44",
"content_id": "12bf4f47ffc2c9c89b2ec167b02c88e44cd8ff29",
"detected_licenses": [
"MIT"
],
"directory_id": "124b98880576428939d56f334a95b7f7fbfdd3ed",
"extension": "c"... | stackv2 | #include "syl/resolve/resolve.h"
#include "syl/common/map.h"
#include "syl/type.h"
static void complete_type(type_t* type)
{
}
// Actually part of type.h/c
// Moved to resolve to avoid cyclic dependency
// Maps base pointer to type to same type with const qualifier
static map_t cached_const_types;
/**
* Returns c... | 2.578125 | 3 |
2024-11-18T18:22:50.385294+00:00 | 2016-08-23T01:26:45 | cd60c57c869ed7bdd873f759a1f2512d9a58f390 | {
"blob_id": "cd60c57c869ed7bdd873f759a1f2512d9a58f390",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-25T04:58:21",
"content_id": "be899243d32a1f3c936980efd73cdd64791d0f7d",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "2538a4cda5d9d536a3fb3bda1666a3e8636ff7ab"... | stackv2 | // Copyright 2016 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#pragma once
#include <compiler.h>
#include <err.h>
#include <sys/types.h>
__BEGIN_CDECLS
typedef void* interrupt_event_t;
/* ... | 2.359375 | 2 |
2024-11-18T18:22:52.208643+00:00 | 2016-03-21T20:29:03 | 6398a378cc71215a37f9c3f86f09d53c30e2da99 | {
"blob_id": "6398a378cc71215a37f9c3f86f09d53c30e2da99",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-21T20:29:03",
"content_id": "95971d9100088e1826b482571f42f43d25e76265",
"detected_licenses": [
"MIT"
],
"directory_id": "1b6f40a09002d3e20c0ac047abca2dd89cda6335",
"extension": "h"... | stackv2 | /** @file processing.h*/
/**
* Compute histogram of the given image
*
* @param [out] hist histogram to compute
* @param [in] img input image
* @param [in] histSize histogram size
* @param [in] imgSize image size
* @return nothing
*/
void ComputeHistogram(unsigned ... | 2.6875 | 3 |
2024-11-18T18:22:52.501833+00:00 | 2023-03-25T20:00:21 | ef058f80e500ab74f5ba77aab80e26e698d5053d | {
"blob_id": "ef058f80e500ab74f5ba77aab80e26e698d5053d",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-25T20:00:21",
"content_id": "d628564151140fe2fe12d186da3196dcfb7d759e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2230fed63c69f87bb90ed41d17b8229828d2961d",
"extens... | stackv2 | #include <malloc.h>
#include <seq_list.h>
#include <stdio.h>
void init_seq_list(SeqList* sl, int max_n_elems)
{
sl->n_elems = 0;
sl->max_n_elems = max_n_elems;
sl->array = malloc((max_n_elems + 1) * sizeof(Register));
}
void reinit_seq_list(SeqList* sl)
{
sl->n_elems = 0;
}
int size(SeqList* sl)
{
return s... | 3.28125 | 3 |
2024-11-18T18:22:52.741188+00:00 | 2019-07-28T03:30:20 | 8c5b6e0c9bf861a06cf1c34d4160053a2b9014b3 | {
"blob_id": "8c5b6e0c9bf861a06cf1c34d4160053a2b9014b3",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-28T03:30:20",
"content_id": "938ba6cc1217d8746bf68979b4b4f695a12878bf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4589ae122e67c8df33ec67600461d01056cdf2c5",
"extensio... | stackv2 | #include "reg52.h"
typedef unsigned char u8;
#define BAUD 115200
#define FOSC 11059200
void t2_init_115200()
{
// 配置T2用于波特率发生器
T2CON = 0x34;
// 使用16位定时器,TH2、TL2同时使用
// 后续从 TH2 = RCAP2H;TL2 = RCAP2L;
TH2 = RCAP2H = 0XFF;// 65536 - (FOSC/32/BAUD);
TL2 = RCAP2L = 0XFD;//(65536 - (FOSC/32/BAUD)) >> 8;
// 启动定时器... | 2.546875 | 3 |
2024-11-18T18:22:52.865134+00:00 | 2020-07-02T21:05:38 | ea311459c3cbad82686408e18eed3e69828e8fc3 | {
"blob_id": "ea311459c3cbad82686408e18eed3e69828e8fc3",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-02T21:05:38",
"content_id": "ee70ba07ed5d09bcf8a2b18c585a7af7618df0aa",
"detected_licenses": [
"MIT"
],
"directory_id": "3a724dbca0d6c8109617df3ccc887a78653b1c24",
"extension": "c"... | stackv2 | /*
==============================================================================
LEAFCore.c
Created: 20 Jan 2017 12:08:14pm
Author: Michael R Mulshine
==============================================================================
*/
#if _WIN32 || _WIN64
#include "..\leaf.h"
#else
#include "../le... | 2.140625 | 2 |
2024-11-18T18:22:52.926659+00:00 | 2020-05-18T21:36:49 | 205d6af18759eeb0711f6924ad36519c04f83242 | {
"blob_id": "205d6af18759eeb0711f6924ad36519c04f83242",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-18T21:36:49",
"content_id": "fbb5844899e7d62fad09bf2850bfd1054c8f2c73",
"detected_licenses": [
"MIT"
],
"directory_id": "55251056eb51b5d2feb2d1a2177469bddd5cff4c",
"extension": "c"... | stackv2 | #define PY_SSIZE_T_CLEAN
#include "./ionhash.h"
void initialize_python()
{
if (!Py_IsInitialized())
Py_Initialize();
PyRun_SimpleString("import sys; import os; sys.path.append(os.path.abspath(os.getcwd()) + '/priv/python/');");
}
void generate_ion_hash(char *value, char *output)
{
PyObject *module_name = ... | 2.328125 | 2 |
2024-11-18T18:22:53.208141+00:00 | 2023-01-11T23:43:12 | a8caba61c63725bc4f6e7bbc44d4d6a9cd10f7fd | {
"blob_id": "a8caba61c63725bc4f6e7bbc44d4d6a9cd10f7fd",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-11T23:43:12",
"content_id": "a49402272206afcd9fc16cd4c6f0b18abf4b104e",
"detected_licenses": [
"ISC"
],
"directory_id": "f806c29d2ee80cc730300b36a7e7fbdfe42ed14e",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2005-2016 Jose F. Nieves <nieves@ltp.uprrp.edu>
*
* See LICENSE
*
* $Id$
*/
/*
* This tool provides the essential functionality of nbspfile and nbsppipe,
* but it takes the command line arguments from stdin. The purpose is to
* be able to "|open" it once, from a tcl script, and then write th... | 2.46875 | 2 |
2024-11-18T18:22:53.468587+00:00 | 2018-07-26T16:08:16 | 15aa97c5d1ecb7d349dacc0a5f8fcdbd7f381df3 | {
"blob_id": "15aa97c5d1ecb7d349dacc0a5f8fcdbd7f381df3",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-26T16:08:16",
"content_id": "f4afe896203f7bb1e14b56c71f7b384f0b0532e1",
"detected_licenses": [
"MIT"
],
"directory_id": "e1506f25a13b1b7191b5946d768dba8bafba268e",
"extension": "c"... | stackv2 | #include <Servo.h>
Servo servoLeft;
Servo servoRight;
int PIEZOPIN = 2;
int LedPIN = 3;
void setup()
{
tone(4, 3000, 1000); // Play tone for 1 second
delay(1000); // Delay to finish tone
pinMode(7, INPUT); // Set right whisker pin t... | 2.21875 | 2 |
2024-11-18T18:22:53.545625+00:00 | 2020-07-05T23:30:26 | fb8ed7f2860ef031b8bfee7c16fc03c613115a82 | {
"blob_id": "fb8ed7f2860ef031b8bfee7c16fc03c613115a82",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-05T23:30:26",
"content_id": "361cfb837b33c703d7e2c86a1b6d62dbfda02f1f",
"detected_licenses": [
"MIT"
],
"directory_id": "e9cb9f7b28e0b2112565feebf8cb39818095d08e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#define NUM_RSP 50
#define NUM_CNDT 5
int pontuacao(int i, int j, char **respostas_candidatos, char *gabarito);
void imprimir(int i, char **matricula_candidato, int pontos[NUM_CNDT]);
void ordenar(int i, int j, int menor, int pontos[NUM_CNDT], char **ordem, char **matricula_cand... | 3.125 | 3 |
2024-11-18T18:23:00.474558+00:00 | 2021-03-09T04:45:22 | 9760c35522689a16ba7d70fa951d3a9f83a600cd | {
"blob_id": "9760c35522689a16ba7d70fa951d3a9f83a600cd",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-09T04:45:22",
"content_id": "3995564831ba818fc460a48d532cc006bf88e24f",
"detected_licenses": [
"MIT"
],
"directory_id": "36d99b1a25c2b52d4332b4dccebe5d24622bae70",
"extension": "c",
... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include "../sharedMethods/sharedMethods.h"
#include "../constants/constants.h"
// Set up the address struct for the server socket
void setupServerAdd... | 2.984375 | 3 |
2024-11-18T18:23:00.686532+00:00 | 2018-01-18T11:22:08 | 6b7f65c6ee85da4fea88e63aa03f4feb2497ac29 | {
"blob_id": "6b7f65c6ee85da4fea88e63aa03f4feb2497ac29",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-18T11:22:08",
"content_id": "113fa271d5ee3e91de4fb63d7fd5ae69fc5aea08",
"detected_licenses": [
"MIT"
],
"directory_id": "f753c390f4b64737377e235faca37415229a5774",
"extension": "c"... | stackv2 | /** /file utils_parse.c
* /brief Parsing the keys for manufacturer, pgn ,spn and function
*
* This module takes the adress-claimed message (PGN 60928) and uses
* the NAME from the CAN Data field to retrieve manufacturer, function
* and class of the sender from the iso 11783 NAME list.
*
* /author Florian Eidner
*/
#... | 2.59375 | 3 |
2024-11-18T18:23:00.801665+00:00 | 2018-04-23T21:23:41 | 3850301ac12f022f3e727b2e4a1a2d559598eb1b | {
"blob_id": "3850301ac12f022f3e727b2e4a1a2d559598eb1b",
"branch_name": "refs/heads/develop",
"committer_date": "2018-04-23T21:23:41",
"content_id": "da0050f7e5f8873eba90cf21fb38cd188c64f117",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d",
"extension"... | stackv2 | /* *********************************************************************** */
/* *********************************************************************** */
/* STRFUNCS String and Memory Functions Library Module */
/* *********************************************************************** */
/*
File Name : %M... | 2.6875 | 3 |
2024-11-18T18:23:00.888612+00:00 | 2015-12-22T23:58:16 | b499e6c85477bd6c60526038b7dd06ed3f37d80b | {
"blob_id": "b499e6c85477bd6c60526038b7dd06ed3f37d80b",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-22T23:58:16",
"content_id": "fbfe67390ae96038d682df82775ef0c26e218de8",
"detected_licenses": [
"Unlicense"
],
"directory_id": "6e2b1975815abfd8b6d8fb6b70511360d09a5a29",
"extension... | stackv2 | #include <KD/KHR_thread_storage.h>
#ifndef KHR_THREAD_STORAGE_SIZE
#define KHR_THREAD_STORAGE_SIZE 1024
#endif
typedef struct TLSItem {
const void *id;
void *data;
} TLSItem;
static TLSItem thread_storage_items[KHR_THREAD_STORAGE_SIZE] = {KD_NULL};
KD_API KDThreadStorageKeyKHR KD_APIENTRY kdMapThreadStorage... | 2.578125 | 3 |
2024-11-18T18:23:01.399806+00:00 | 2023-08-25T08:03:33 | 5708bf82dd46d0521c5244a12a2ea86feb8242a6 | {
"blob_id": "5708bf82dd46d0521c5244a12a2ea86feb8242a6",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-25T08:03:33",
"content_id": "d6df4474cd0ea9ca9e101706549ecff767e957c5",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "df90ed23a49dba79f61e5a28366424f0ecec60de",
"extens... | stackv2 | /*
** Jason Brillante "Damdoshi"
** Hanged Bunny Studio 2014-2020
**
** MergeConf (UniConf 2.0)
**
** stdin / -i [files]+
** stdout / -o [outfile]+
*/
#include <stdio.h>
#include <lapin.h>
#include <string.h>
bool load_all_files(const char *prg,
t_bunny_configuration_type format,
t_bunny_... | 2.515625 | 3 |
2024-11-18T18:23:01.571633+00:00 | 2020-10-21T15:38:54 | c51aaaf01838c1338c588dfba6989243d6170e2b | {
"blob_id": "c51aaaf01838c1338c588dfba6989243d6170e2b",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-21T15:38:54",
"content_id": "7d3acf059d9f1617cedcdbf1f32b1c8c9e2d8d4f",
"detected_licenses": [
"MIT"
],
"directory_id": "646d7124cbd340c6b1606cd222164241e7b2e722",
"extension": "h"... | stackv2 | /*
* branch chooser table
*/
#pragma once
#ifndef BCT_H_
#define BCT_H_
#define STRONGLY_GSHARE 3
#define WEAKLY_GSHARE 2
#define WEAKLY_BIMODAL 1
#define STRONGLY_BIMODAL 0
typedef enum Two_Bit_Chooser
{
strongly_bimodal = STRONGLY_BIMODAL,
weakly_bimodal = WEAKLY_BIMODAL,
weakly_gshare = WEAKLY_GSHARE,
stron... | 2.59375 | 3 |
2024-11-18T18:23:01.794256+00:00 | 2017-04-26T12:26:31 | 1259ff7f1e9a9ba29a879b7cf6477427f380c35f | {
"blob_id": "1259ff7f1e9a9ba29a879b7cf6477427f380c35f",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-26T12:26:31",
"content_id": "bc00f50c9b96b5e99eb503aaa4227499368cc315",
"detected_licenses": [
"MIT"
],
"directory_id": "547246b03860043fa65a2542fc789b2705352550",
"extension": "c"... | stackv2 | // Mkchouk Copyright
// Default Mode
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <stdbool.h>
#include <unistd.h>
typedef struct
{ char *qid;
char *sid;
int posin;
int posend;
char *qseq;
char *sseq;
}ligne;
bool get_ligne(FILE* f, ligne* pr)
{
p... | 2.84375 | 3 |
2024-11-18T18:23:02.157279+00:00 | 2018-09-27T03:10:50 | 89ab5e1074f2d6f849fe10737d454bcafd3fac55 | {
"blob_id": "89ab5e1074f2d6f849fe10737d454bcafd3fac55",
"branch_name": "refs/heads/practice",
"committer_date": "2018-09-27T03:10:50",
"content_id": "9a27fa4de9edf5c50d58d79aaa14022d959cf85b",
"detected_licenses": [
"MIT"
],
"directory_id": "964760748343973b95f98027a0f20c0e4b7bac27",
"extension": "... | stackv2 | /*
This code will serve as the "glue" that brings together all of the
necessary functionality to inject code into a running process.
CURRENT PLAN:
1. Attach to the 'victim' process
2. Backup the current state of the processor registers
3. Parse /proc/PID/maps to get some "r-xp" memory
4. Backup the memory... | 2.359375 | 2 |
2024-11-18T18:23:02.257023+00:00 | 2019-11-19T02:07:42 | b10297622c1b31f350d87cd0d0c48efe51c789d2 | {
"blob_id": "b10297622c1b31f350d87cd0d0c48efe51c789d2",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-19T02:07:42",
"content_id": "63fcaeb28487677631765b2bc032a295b07fe0b8",
"detected_licenses": [
"Unlicense"
],
"directory_id": "0034b7b98cf59600d0294ac6b6e834015588b6b0",
"extension... | stackv2 | /******************************
* Created by: Márcio Medeiros *
* in: 20/08/2019 *
******************************/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <time.h>
// variaveis globais
int iterations, itt;
int height, width;
int *life, *lifeN, *aux;
int rows_thread, rows_las... | 3.296875 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.