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:53:18.960751+00:00 | 2021-09-20T20:34:45 | 5f4344bd3179f1cf3fefe80e8b78be5eb14a02b3 | {
"blob_id": "5f4344bd3179f1cf3fefe80e8b78be5eb14a02b3",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-20T20:36:05",
"content_id": "f371b366218871be5917debcfb721986a397d068",
"detected_licenses": [
"Zlib"
],
"directory_id": "6f91ee21e6644ba719e3739e534ea4b41c5d515a",
"extension": "c... | stackv2 | #include "interface/cpu/intel/cpu_intel.h"
#include "interface/if_hook.h"
#include "log.h"
#include "ezinject_util.h"
/*
* Relocates code pointed by codePtr from sourcePC to destPC
*/
int inj_relocate_code(void *codePtr, unsigned int codeSz, void *sourcePC, void *destPC){
csh handle;
cs_insn *insns;
size_t count;... | 2.390625 | 2 |
2024-11-18T22:53:19.041139+00:00 | 2019-02-08T15:27:58 | 91eeddd616a14da88b79a5b03ed40f3a29b5f6e4 | {
"blob_id": "91eeddd616a14da88b79a5b03ed40f3a29b5f6e4",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-08T15:27:58",
"content_id": "31c60cf35a07790ff66d817ecfa0fe1b07c5f555",
"detected_licenses": [
"MIT"
],
"directory_id": "1810f72f5bffe9feb696d53684a779a3a1e3f953",
"extension": "h"... | stackv2 | #include "ast.h"
typedef enum {Exit, PrintExp, Message, DECL, AffArray, DECLArray, PrintArray, PrintIdf, PrintString, AssignArith, IfThenArith, IfThenElseArith, Case, For, Loop, While, Goto, Label} Type_INST ;
typedef struct{
AST ast;
struct LIST_INST* caselinst;
}cases;
typedef struct INST {
Type_INST typeinst... | 2.828125 | 3 |
2024-11-18T22:53:19.923499+00:00 | 2013-05-28T21:10:17 | e9d0988aa4962f937af2940bd97c2c00ecf23f22 | {
"blob_id": "e9d0988aa4962f937af2940bd97c2c00ecf23f22",
"branch_name": "refs/heads/master",
"committer_date": "2013-05-28T21:10:17",
"content_id": "d1196dcff66e7cd1cc58c03e9bee0ae1f7acde5b",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "3b7bb8ed850c61e941a7ce14ddfb40af0d938087",
"extension":... | stackv2 | /* RamseyScript
* Written in 2012 by
* Andrew Poelstra <apoelstra@wpsoftware.net>
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and related and neighboring rights to this software to
* the public domain worldwide. This software is distributed without
* any warranty.
*
* Y... | 2.375 | 2 |
2024-11-18T22:53:20.132814+00:00 | 2018-10-08T13:40:42 | eee160d5d17849cdaaa73466f3083d9ff44154f6 | {
"blob_id": "eee160d5d17849cdaaa73466f3083d9ff44154f6",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-08T13:40:42",
"content_id": "7e5bf337967d6287ca0dd16a798c90bf0e1f0f70",
"detected_licenses": [
"MIT"
],
"directory_id": "74492383f55c9e82f9ce099b12065c2c3b20a0c1",
"extension": "c"... | stackv2 | /*The following code is for a Line follower/Maze Solver Robot, based on
Arduino UNO and LDR Sensors. The code is written in such a way that
the bot will follow a white line made on a black surface.*/
#include <EEPROM.h>
//opens access to the EEPROM of Arduino that will be used to store correct paths
int w, wp,... | 3.140625 | 3 |
2024-11-18T22:53:20.190666+00:00 | 2021-03-01T08:53:35 | ecb8eb349a7ae53b08fca2c12766b49b4a00c2dc | {
"blob_id": "ecb8eb349a7ae53b08fca2c12766b49b4a00c2dc",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-01T08:53:35",
"content_id": "f79382b9bb2b393c07e3921773919603193bfb63",
"detected_licenses": [
"Unlicense"
],
"directory_id": "bc0bceb900c3d2873062f69fec13955a2cc701f4",
"extension":... | stackv2 | //
// Created by Pierre Juliot on 11/22/2020.
//
#include "Definitions.h"
#ifndef WIN32
/*
* Returns the number of bytes waiting in the input buffer.
*/
int kbhit(void)
{
int bytesWaiting;
ioctl(0, FIONREAD, &bytesWaiting);
return bytesWaiting;
}
/**
* Setup linux terminal attributes when program lau... | 2.65625 | 3 |
2024-11-18T22:53:20.285076+00:00 | 2021-05-31T10:01:38 | 9ca7e21d8e5056e56ed2b6c36ba5fd6d0decfcd1 | {
"blob_id": "9ca7e21d8e5056e56ed2b6c36ba5fd6d0decfcd1",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-31T10:01:38",
"content_id": "a1d8bc343bd2e3d6ccdd21af8d1266f5c643ff45",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a918ab232d60dbd526f54fc125fb4b0e8c0344cc",
"extensio... | stackv2 |
void sta_mgmt_add_key(mm_key_add_req * param, uint8_t hw_key_idx);
void sta_mgmt_del_key(sta_info_tag * sta);
void sta_mgmt_entry_init(sta_info_tag * sta_entry);
uint8_t sta_mgmt_register(mm_sta_add_req * param, uint8_t * sta_idx);
int sta_mgmt_send_postponed_frame(vif_info_tag * p_vif_entry, sta_info_tag * p_sta_entr... | 2.140625 | 2 |
2024-11-18T22:53:20.414128+00:00 | 2022-09-18T02:54:07 | 28c7867e572faabfc1cdfb8947bf5c9f3c80c3f7 | {
"blob_id": "28c7867e572faabfc1cdfb8947bf5c9f3c80c3f7",
"branch_name": "refs/heads/main",
"committer_date": "2022-09-18T02:54:07",
"content_id": "42c417f4da92ce6f4f17781b212f0a611dbd4d66",
"detected_licenses": [
"MIT"
],
"directory_id": "d503d0d22c734c1407e2e5dee12a86d2c8604656",
"extension": "c",
... | stackv2 | #include "banks.h"
#define MYBANK BANK(4)
#include "b1_strutil.h"
#include "b10_parsing.h"
#include "b0_globals.h"
#include "commands.h"
#include "b8_terminal.h"
#include <string.h>
void handleCd() {
struct DeviceServiceRoutine* dsr = 0;
char path[256];
bk_parsePathParam(0, &dsr, path, PR_REQUIRED);
if (dsr =... | 2 | 2 |
2024-11-18T22:53:20.492840+00:00 | 2020-06-08T03:16:07 | 42c0a1cdbc3c4a5838176a3c0669972a4f81eb8a | {
"blob_id": "42c0a1cdbc3c4a5838176a3c0669972a4f81eb8a",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-08T03:16:07",
"content_id": "f385769a8076cce014a768ec47f019f2b2eebc87",
"detected_licenses": [
"MIT"
],
"directory_id": "716823331d2050e155ebd315fd8bd73a9d2ad6d2",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
typedef struct _node{
int value;
struct _node *pNext;
} node;
typedef struct _list{
int size;
node *pHead;
} list;
void initList(list *l)
{
l -> size = 0;
l -> pHead = NULL;
}
int length(list *l)
{
return l -> size;
}
node* ini... | 3.46875 | 3 |
2024-11-18T22:53:20.573670+00:00 | 2020-02-15T23:49:30 | 2ac79ad854808808f81c99a6fef458ba4a63f5b9 | {
"blob_id": "2ac79ad854808808f81c99a6fef458ba4a63f5b9",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-15T23:49:30",
"content_id": "dcb57d93c3073ad4d60473c77be15ccde2f5426a",
"detected_licenses": [
"MIT"
],
"directory_id": "ab4c5dcf2ded51d15877d79d3e374752ab99cfda",
"extension": "c"... | stackv2 | /*
URI Online Judge | 1144
Logical Sequence
Adapted by Neilor Tonin, URI Brazil
https://www.urionlinejudge.com.br/judge/en/problems/view/1144
Timelimit: 1
Write a program that reads an integer N. N * 2 lines must be printed by this program according to the example below. For numbers with more than 6 digits, all digi... | 3.140625 | 3 |
2024-11-18T22:53:20.771694+00:00 | 2020-04-20T02:04:52 | 2f0e2a24f2efaf80e82845cc7081a31af702b494 | {
"blob_id": "2f0e2a24f2efaf80e82845cc7081a31af702b494",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-20T02:04:52",
"content_id": "c278d398103c5b558e221ca71075eb59a6736f32",
"detected_licenses": [
"MIT"
],
"directory_id": "eb6d9b70c0aa0fe743032fdda57caed2eafd8bec",
"extension": "c"... | stackv2 | #include "memUtils.h"
void copy(void* dest, void* src, size_t dataSize) {
//Used temporary char* (1 byte each), so we can copy the
// bytes and perform pointer arithmetic
char* temp_dest = dest;
char* temp_src = src;
for (size_t i = 0; i < dataSize; i++) {
temp_dest[i] = temp_src[i];
}
}
int swap(void* elem1... | 3.453125 | 3 |
2024-11-18T22:53:20.832135+00:00 | 2023-09-02T14:55:31 | 1462929d523f82cf47cfeb12707f692bfd01ac5b | {
"blob_id": "1462929d523f82cf47cfeb12707f692bfd01ac5b",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T14:55:31",
"content_id": "ef633543cfec448ce10231594557cbdd0770e9cd",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca",
"extens... | stackv2 | /**
* @file
* @brief Simple audio recorder
* @author Denis Deryugin <deryugin.denis@gmail.com>
* @version 0.1
* @date 2016-11-21
*/
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <stdlib.h>
#include <stdint.h>
#include <portaudio.h>
... | 2.546875 | 3 |
2024-11-18T22:53:20.896871+00:00 | 2021-07-25T23:41:28 | 51b44eeab610dd97384a2191e8529485c3680b09 | {
"blob_id": "51b44eeab610dd97384a2191e8529485c3680b09",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-25T23:41:28",
"content_id": "f264b2213e36c435de61c5d7875019e2290f0c42",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "5aec0aa0b807f49f6044d6bb34bafa01a93dc74f",
"extens... | stackv2 | /* unjoin.c - Copyright (c) 2018 Sijmen J. Mulder, see LICENSE.md */
#include <stdio.h>
#include <string.h>
#include <err.h>
#ifdef __OpenBSD__
#include <unistd.h>
#endif
#define LEN(a) (sizeof(a)/sizeof(*(a)))
int
main(int argc, char **argv)
{
char buf[4096];
size_t lens[512];
size_t maxlen = 0;
size_t buflen ... | 2.9375 | 3 |
2024-11-18T23:18:48.837188+00:00 | 2021-10-18T20:48:51 | f41472b129bb36862adef93426f4eb6eb78e1196 | {
"blob_id": "f41472b129bb36862adef93426f4eb6eb78e1196",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-18T20:49:08",
"content_id": "12c3913b6a3ee81add3822092f974577bb0d9309",
"detected_licenses": [
"MIT"
],
"directory_id": "8272d61bf272a4da488265987ae028bb144e9aed",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <assert.h>
#include <gui.h>
#ifdef GUI_WITH_GLFW
#include <GLFW/glfw3.h>
#endif
static void render_frame(gui_t* g) {
ImGuiIO* io = igGetIO();
igBegin("window", NULL, ImGuiWindowFlags_NoTitleBar); {
static float f = 0.0f;
igText("Hello World!");
igSliderFloat("float", &f, 0.... | 2.203125 | 2 |
2024-11-18T23:18:48.920054+00:00 | 2021-10-11T08:14:50 | ce7297a3789a84176bfe8ae423aea2c84c1ae991 | {
"blob_id": "ce7297a3789a84176bfe8ae423aea2c84c1ae991",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-11T08:14:50",
"content_id": "9dfec7e5ee9d96f57d8f210d71f76c3399f87121",
"detected_licenses": [
"MIT"
],
"directory_id": "56c4a9dc37d265661ca686b6966706deff87a9e8",
"extension": "c"... | stackv2 | #include "mTime.h"
#include "stdint.h"
#include "stdio.h"
#include "time.h"
#include "string.h"
/** mTime setup. used to configure the RTC peripheral **/
int32_t mTime_setup()
{
return 0;
}
/** set the time in the RTC using a given unix time stamp **/
int32_t mTime_set_time_unix64(uint64_t unix_time)
{
return... | 2.5625 | 3 |
2024-11-18T23:18:48.990266+00:00 | 2021-06-30T00:25:37 | 85454ec7cbd15f663ce61e879f49ca35b4bbcdf4 | {
"blob_id": "85454ec7cbd15f663ce61e879f49ca35b4bbcdf4",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-30T00:25:37",
"content_id": "9eff2b464b2066bdcb702685d6f715c1e65dc186",
"detected_licenses": [
"MIT"
],
"directory_id": "85f9f7481097f160e3d568c1cfb20f04d2dde4fe",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <locale.h>
#include "quarto.h"
int cadastroEstadia();
int diarias();
int verificaFormatoData(char[]);
int quartos();
typedef struct {
int codigo, totalDiarias, hospedes, numeroQuarto;
char entrada[11], saida[11];
char nomeCliente[50];
} Testad... | 3.046875 | 3 |
2024-11-18T23:18:49.213786+00:00 | 2019-11-27T18:00:03 | 6e49492f1128ad15b22295f90109d882ca6c232d | {
"blob_id": "6e49492f1128ad15b22295f90109d882ca6c232d",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-27T18:00:03",
"content_id": "f95e0cb9d750e3fcb61214ad74cf5e4a47273490",
"detected_licenses": [
"MIT"
],
"directory_id": "2e4c0d9ab3b7a83659d08ec9bfaa757ede482ebe",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstdel.c :+: :+: :+: ... | 2.828125 | 3 |
2024-11-18T23:18:49.303180+00:00 | 2015-07-30T16:33:24 | 16f9f1e717c3f1cf6390fe316bdab161d8c43343 | {
"blob_id": "16f9f1e717c3f1cf6390fe316bdab161d8c43343",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-30T16:33:24",
"content_id": "c96ae0b1b38181ec040115693540a01a99358045",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "6548aa6b75120ef8a2c9e032f7fbc7e4f62dcdc6",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <stdint.h>
#include <pthread.h>
#include <semaphore.h>
#include <sys/mman.h>
#include <math.h>
#include <poll.h>
#include "error.h"
#include "file.h"
#include "gpio.h"
#include "task.h"
#include "queue.h"
#include... | 2.4375 | 2 |
2024-11-18T23:18:51.940573+00:00 | 2023-06-24T15:38:08 | 4d8ed66c218a052b9b970b9691dc8da78122dea0 | {
"blob_id": "4d8ed66c218a052b9b970b9691dc8da78122dea0",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-24T15:38:08",
"content_id": "b33870646d7a5316b549e5b024c8ed2ad0ae884d",
"detected_licenses": [
"MIT"
],
"directory_id": "3f00b10b83df91ba2be2e339f4b4cf9d60631c26",
"extension": "c"... | stackv2 | #include "simple_logger.h"
#include "gf3d_effects.h"
#include "gf3d_effects.h"
typedef struct
{
Uint32 effect_max;
GF3DEffect *effect_list;
Uint32 now;
}GF3DEventManager;
static GF3DEventManager gf3d_effect_manager = {0};
void gf3d_effect_manager_close()
{
int i;
for (i = 0; i < gf3d_ef... | 2.0625 | 2 |
2024-11-18T23:18:52.715104+00:00 | 2018-05-23T06:55:18 | 71d39c68e387470ee56e6a57a8c14eafc78d26c8 | {
"blob_id": "71d39c68e387470ee56e6a57a8c14eafc78d26c8",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T06:55:18",
"content_id": "524c46f23c663b3ed795f7435ae13e01450bab4e",
"detected_licenses": [
"MIT"
],
"directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd",
"extension": "c"... | stackv2 | // Room: /d/suzhou/szyunhe.c
// Last Modified by winder on Mar. 8 2001
#include <ansi.h>;
string look_sign();
int do_go(string);
inherit RIVER;
mapping *sign=({
([ "name" : "北京",
"id" : "bj",
"file" : "/d/beijing/matou",
"value": 200,
"t... | 2 | 2 |
2024-11-18T23:18:52.835636+00:00 | 2016-05-09T20:22:24 | 5fd51c1b4131f0c435605fed5c813ba0737f9bad | {
"blob_id": "5fd51c1b4131f0c435605fed5c813ba0737f9bad",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-09T20:22:24",
"content_id": "9cb5e071b90948458bf884617c18dd39f29a9223",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "a6ab387de2af371f0d866ade14223d04... | stackv2 | /******************************************************
SENSOR LIBRARY:
Written by Enrico Formenti.
BSD license, check license.txt for more information
All text above must be included in any redistribution.
******************************************************/
/**
\file SensorConstants.h
\brief Definition... | 2.15625 | 2 |
2024-11-18T23:18:53.506862+00:00 | 2023-07-25T14:05:05 | 79ecbd5225b3b81b47d3115e3305d945a154d829 | {
"blob_id": "79ecbd5225b3b81b47d3115e3305d945a154d829",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-25T14:05:05",
"content_id": "fbc6fede6f268e8bc8d95294584827f6f23b3a43",
"detected_licenses": [
"NTP"
],
"directory_id": "191707dd19837f7abd6f4255cd42b78d3ca741c5",
"extension": "h"... | stackv2 | /* $Header: Xproto.h,v 4.0 88/01/27 16:58:31 toddb Exp $ */
#include <copyright.h>
/* Copyright Massachusetts Institute of Technology 1985 */
/* Definitions for the X window system usually hidden by library interface */
#define XFROMUSER
#define X_TCP_LI_PORT 5800 /* add display number */
#define X_TCP_BI_POR... | 2.015625 | 2 |
2024-11-18T23:18:53.637135+00:00 | 2018-03-14T04:54:18 | 08d4b932301c89100a76c1c6538f9c6824b9bfd8 | {
"blob_id": "08d4b932301c89100a76c1c6538f9c6824b9bfd8",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-14T04:54:18",
"content_id": "e93b4158f3654426c6f7f4d4af78c2e557911441",
"detected_licenses": [
"MIT"
],
"directory_id": "273b5aa7331bfc7b6493397a1fcb348a98ac355a",
"extension": "h"... | stackv2 | #pragma once
#ifndef REBTREE_H_
#define REBTREE_H_
typedef char _color_type;
#define _red 0
#define _black 1
typedef struct _rb_tree_node* _rb_tree_node_ptr;
typedef struct _rb_tree_node
{
_color_type _color;
_rb_tree_node_ptr _parent;
_rb_tree_node_ptr _left;
_rb_tree_node_ptr _right;
uint64_t key;
uint64_t va... | 2 | 2 |
2024-11-18T23:18:54.078862+00:00 | 2020-08-18T11:35:46 | 00a6be691de309e9fa7fcea91a0e4a0812049dbf | {
"blob_id": "00a6be691de309e9fa7fcea91a0e4a0812049dbf",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-18T11:35:46",
"content_id": "2ee12953842bfd0aa898c633f4967da1e252ea56",
"detected_licenses": [
"MIT"
],
"directory_id": "373f32370ee1f591923e2f23fe79fa8daf4ed601",
"extension": "c"... | stackv2 | #include <glib.h>
#include <mono/metadata/object.h>
#include <mono/metadata/metadata.h>
#include <mono/metadata/class.h>
#include <mono/metadata/appdomain.h>
#include <mono/metadata/loader.h>
#include <mono/metadata/debug-helpers.h>
#include <mono/metadata/image.h>
typedef MonoString * (*Host_GetString)(MonoObject *ob... | 2.125 | 2 |
2024-11-18T23:18:54.209601+00:00 | 2021-12-13T07:35:23 | 32444bad4a0efb3aa004a99119b21f3e439c89c7 | {
"blob_id": "32444bad4a0efb3aa004a99119b21f3e439c89c7",
"branch_name": "refs/heads/master",
"committer_date": "2021-12-13T07:35:23",
"content_id": "76bbc371c0704c3b99741ca3b9bd0acf2c06f1a4",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "e63bb1abdbb688df2f049989a534cb71... | stackv2 | /*
* LitePCIe util
*
* This file is part of LitePCIe.
*
* Copyright (C) 2018-2020 / EnjoyDigital / florent@enjoy-digital.fr
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <inttypes.h>
#include <unistd.h>
#include <fcntl.h>
#inc... | 2.390625 | 2 |
2024-11-18T21:42:46.062103+00:00 | 2014-05-09T03:58:42 | 40c54305c667a6927bf70702658b04fe1b2a5b5e | {
"blob_id": "40c54305c667a6927bf70702658b04fe1b2a5b5e",
"branch_name": "refs/heads/master",
"committer_date": "2014-05-09T03:58:42",
"content_id": "88ddd9258bce2b5d2271cc5e039c5188c95c2556",
"detected_licenses": [
"MIT"
],
"directory_id": "7e867987511031a4ded131fa9a4296fdce73dbc2",
"extension": "h"... | stackv2 | #ifndef _OBJECT
#define _OBJECT
#define true 1
#define false 0
#include <stdio.h>
typedef char bool;
typedef struct object object;
typedef enum opcode{
OP_INIT,
OP_LOAD,
OP_TOPLV,
OP_READ,
OP_EVAL,
OP_WRITE,
OP_ARGS,
OP_APPLY,
OP_LAMBDA,
OP_DEFINE,
OP_SET,
OP_IF,
OP_BEGIN,
OP_CONTINUATION,
... | 2.078125 | 2 |
2024-11-18T21:42:46.493551+00:00 | 2017-08-03T08:39:43 | d5c7bee33098553b7e97d469802a79c71393a87c | {
"blob_id": "d5c7bee33098553b7e97d469802a79c71393a87c",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-03T08:39:43",
"content_id": "e14b2ee2d02f7dce9dc7bc59711499772944a191",
"detected_licenses": [
"MIT"
],
"directory_id": "8700fa500c760a8049c65df590632783cd64940a",
"extension": "c"... | stackv2 | /* randomgraph.c Generate a graph of random data in pbm type
* gcc -o randomgraph randomgraph.c
* ./randomgraph > randomgraph.out.pbm
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SIZE 128
int main()
{
int i,j;
int map[SIZE][SIZE];
memset(map,0,sizeof(map));
for (i = 0; i < 1000; i++)... | 3.03125 | 3 |
2024-11-18T21:42:48.327119+00:00 | 2021-02-08T18:41:49 | 71f611e5023db5fe03c1d7eeae753266cf64fad6 | {
"blob_id": "71f611e5023db5fe03c1d7eeae753266cf64fad6",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-08T18:41:49",
"content_id": "fa65b627f7ff3b5b33bfe0c26f0fd4ccff3930bb",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f46a740291df0726111a3eb1317cb774c44404fa",
"extension"... | stackv2 | /****************************************************************************
* Copyright 2021 Gorgon Meducer (Email:embedded_zhuoran@hotmail.com) *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you m... | 2.421875 | 2 |
2024-11-18T21:42:48.405866+00:00 | 2021-03-17T07:29:19 | 2c5624f506f06985db48007afd8d5e71acdb0626 | {
"blob_id": "2c5624f506f06985db48007afd8d5e71acdb0626",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-17T07:29:19",
"content_id": "6db7b7487f800ea17f6b4669b861341b4c0458c5",
"detected_licenses": [
"Apache-2.0",
"curl"
],
"directory_id": "546018757d22ae76154b87335db68e1cfabfedcb",... | stackv2 | #ifndef io_k8s_api_networking_v1beta1_http_ingress_rule_value_TEST
#define io_k8s_api_networking_v1beta1_http_ingress_rule_value_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define io_k8s_api_networking_v1beta1_http_ingress_rule_value_MAIN
#endif // TEST_... | 2.140625 | 2 |
2024-11-18T21:42:48.600519+00:00 | 2023-02-16T11:27:40 | bec374355e3a527e76faac8e1d3a1be72f7afe9a | {
"blob_id": "bec374355e3a527e76faac8e1d3a1be72f7afe9a",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "e44ad50f7a1d333f24eda4b8f3612f7cbb4d1944",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright (c) 2016, 2017 Intel Corporation
* Copyright (c) 2017 IpTronix S.r.l.
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Bus-specific functionality for BME280s accessed via SPI.
*/
#include <zephyr/logging/log.h>
#include "bme280.h"
#if BME280_BUS_SPI... | 2.390625 | 2 |
2024-11-18T21:42:49.274257+00:00 | 2011-01-03T18:13:38 | 0f962dc4673dfd5a0d2a66b14fbfbfb75cda42b6 | {
"blob_id": "0f962dc4673dfd5a0d2a66b14fbfbfb75cda42b6",
"branch_name": "refs/heads/master",
"committer_date": "2011-01-03T18:13:38",
"content_id": "6faafe595ab80e687b5f1d67b0b0ca6533a2c276",
"detected_licenses": [
"MIT"
],
"directory_id": "5be1b3467e1380c4d87fbcae05842b73aca71948",
"extension": "c"... | stackv2 | /*
Copyright (c) 2006-2010 Jesper Svennevid
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, dist... | 2.015625 | 2 |
2024-11-18T21:42:49.511443+00:00 | 2020-06-29T15:49:12 | b2caf95b2f22a1272c754fcff3803e867668499b | {
"blob_id": "b2caf95b2f22a1272c754fcff3803e867668499b",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-29T15:49:12",
"content_id": "5259ddb761fdc27c82b40741585a1151d05ea7d0",
"detected_licenses": [
"MIT"
],
"directory_id": "f62607193dd200f16ee5b3870144a1798574bd02",
"extension": "h"... | stackv2 | // This header file provides a basic queue implementation
// ========== Forward Declarations ==========
// create and empty-initialize the queue
void create();
// returns 1 if queue is empty, 0 otherwise
int empty();
// returns the length of the queue
unsigned size();
// insert an element at the back of the queue
... | 3.09375 | 3 |
2024-11-18T21:42:49.937164+00:00 | 2021-09-09T16:43:06 | 530d40cc6c235d9994204291895e15ea25ad9764 | {
"blob_id": "530d40cc6c235d9994204291895e15ea25ad9764",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-09T16:43:06",
"content_id": "e18b2f0017766d770cf7425cb140068a9b37ffbb",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "f8069f807511c33c023dd3240987dba02f91c33e",
"extens... | stackv2 | /*(cb*/
/*******************************************************************************
*
* Copyright (c) 1993, 1994 Intel Corporation
*
* Intel hereby grants you permission to copy, modify, and distribute this
* software and its documentation. Intel grants this permission provided
* that the above copyright no... | 2.09375 | 2 |
2024-11-18T21:42:50.199735+00:00 | 2018-01-18T16:11:48 | d7faa9897197b660ae881efc9cf474bcb80da3d3 | {
"blob_id": "d7faa9897197b660ae881efc9cf474bcb80da3d3",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-18T16:11:48",
"content_id": "b042bff44962db611e22497ff783b84cc3087acc",
"detected_licenses": [
"MIT"
],
"directory_id": "c5138b004e95b2d733ac377c45968d1e1b97cee4",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* lexer_tool.c :+: :+: :+: ... | 2.59375 | 3 |
2024-11-18T21:42:50.422735+00:00 | 2019-05-15T08:09:50 | 4d8af173112835ed99a2eb62a3eb87bf4a43cc57 | {
"blob_id": "4d8af173112835ed99a2eb62a3eb87bf4a43cc57",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-15T08:09:50",
"content_id": "58c56fe02c59a5f987336365340003726823ace9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "64c133078b4847eceb7e92ffe25d073ca8cb3547",
"extensio... | stackv2 | #ifdef _MSC_VER
#include <stdio.h>
#include <intrin.h>
#include "stdatomic.h"
int8_t zenny_atomic_fetch_add8(volatile atomic_schar* object, int8_t operand)
{
int8_t expected = *object;
int8_t desired;
bool success;
do
{
desired = expected + operand;
} while ((success = zenny_atomic_c... | 2.515625 | 3 |
2024-11-18T21:42:50.629737+00:00 | 2023-09-01T02:41:42 | 3f3e07507465e60de5a94b83b4390856751f966f | {
"blob_id": "3f3e07507465e60de5a94b83b4390856751f966f",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-01T02:41:42",
"content_id": "df391cf88e5acd2e9ef38146d0d715c7d63f48dd",
"detected_licenses": [
"MIT"
],
"directory_id": "461619a84c6617ceaf2b7913ef58c99ff32c0fb5",
"extension": "c"... | stackv2 | /* ヘッダファイルのインクルード */
#include <stdio.h> /* 標準入出力 */
#include <string.h> /* 文字列処理 */
#include <unistd.h> /* UNIX標準 */
#include <sys/socket.h> /* ソケット */
#include <sys/types.h> /* 派生型 */
#include <sys/ioctl.h> /* IO制御 */
#include <net/if.h> /* ネットワークインターフェース */
#include <arpa/inet.h> /* IPアドレス変換 */
/* main関数 */
int main... | 3.046875 | 3 |
2024-11-18T21:42:50.884224+00:00 | 2017-01-24T22:04:19 | 658bee6343556aa23b53e69f052128e0a064da33 | {
"blob_id": "658bee6343556aa23b53e69f052128e0a064da33",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-24T22:04:19",
"content_id": "d040a1a05a0a5d0f815c268118c9fb44fe9f449a",
"detected_licenses": [
"MIT"
],
"directory_id": "00886360e73e257b53c1421bd35da70477cf5293",
"extension": "c"... | stackv2 | /*
* Copyright (C) 2016 Bas Stottelaar <basstottelaar@gmail.com>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup cpu_efm32_common
* @{
*
* @file
* @brief Low-... | 2.34375 | 2 |
2024-11-18T21:42:50.951554+00:00 | 2023-01-24T15:54:35 | cdb6eaf69384dc270e3a6782e7d980c1e1750cd2 | {
"blob_id": "cdb6eaf69384dc270e3a6782e7d980c1e1750cd2",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-24T15:54:35",
"content_id": "a86ac154b7dc368e1bbbdcbea230448f29690374",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a5d2d345d66f1fb30131064d377615dcf7020093",
"extens... | stackv2 | #ifdef SUPERH
enum
{
NSAVEREGS = 9,
BYTES_PER_REG = 4,
NAMELEN = 128,
STKSIZE = 8192,
MAX_NTHREADS = 1024,
/* */
/* Fixed size; If more than this */
/* number is detected when we probe */
/* hardware for count, kill thread. */
/* */
MAX_MAPCOUNT = 8192,
};
#endif
typedef enum
{
SPTHR_LIB_STA... | 2.328125 | 2 |
2024-11-18T21:42:51.739375+00:00 | 2020-11-28T22:21:51 | b3731cf13563b12b33ef44984113d7849ae22856 | {
"blob_id": "b3731cf13563b12b33ef44984113d7849ae22856",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-28T22:21:51",
"content_id": "7f437d54ac42ff9576cbdf7e15240aa2ecb368ba",
"detected_licenses": [
"MIT"
],
"directory_id": "8838de3d19e52481b17adc084a2cdf9995a78c66",
"extension": "c"... | stackv2 | /*
* mipi_csi_hw.c
*
* This file is part of YAOS and is licensed under the MIT License.
*
* Created on: 12 June 2020
* Author: Tom
*/
/*
* Hardware interfcace for revised MIPI streaming core.
*/
#include "mipi_csi_hw.h"
#include "mipi_csi.h"
/*
* Send a reset FIFO command, ensuring the FIFO starts of... | 2.4375 | 2 |
2024-11-18T21:42:51.920134+00:00 | 2023-07-12T18:35:41 | 1c978422784284a6c66488b088cc2d6578a3bf76 | {
"blob_id": "1c978422784284a6c66488b088cc2d6578a3bf76",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-12T18:35:41",
"content_id": "e05b12ad8947a3d5056543ad59654a65bebb6b61",
"detected_licenses": [
"MIT"
],
"directory_id": "e570c96ef3a4c58663ea04d394df8b20f2d2d8b0",
"extension": "c"... | stackv2 |
#include <proto/exec.h>
#include <exec/types.h>
#include <proto/intuition.h>
//#include <inline/intuition_protos.h>
#include <proto/graphics.h>
#include <graphics/gfxbase.h>
#include <hardware/custom.h>
#include <hardware/cia.h>
#include <hardware/blit.h>
#include <hardware/adkbits.h>
#include <hardware/dmabits.h>... | 2.109375 | 2 |
2024-11-18T21:42:52.055688+00:00 | 2018-07-04T06:22:03 | 16681838c6e14de16e504e154fc6fdaf8e808c53 | {
"blob_id": "16681838c6e14de16e504e154fc6fdaf8e808c53",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-04T06:22:03",
"content_id": "3086adc56f55f5c0a3ead082383afa5eb1ceca15",
"detected_licenses": [
"MIT"
],
"directory_id": "aa357a2ee4125166c78d0d373d8afc8e1f956a30",
"extension": "c"... | stackv2 | /**
** Gupi Alien Program
** Ahasanul Basher Hamza
** Date: 23/02/18
***/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <strings.h>
#include <math.h>
#include <ctype.h>
int main()
{
int i,j,n;
scanf("%d",&n);
for(i = 0;i < n;i++)
{
float t;
scanf("%f", &t);
... | 2.8125 | 3 |
2024-11-18T21:42:52.972680+00:00 | 2020-06-19T23:33:29 | 8f967ebbc4ccbd0b4ead8226962827457cd53720 | {
"blob_id": "8f967ebbc4ccbd0b4ead8226962827457cd53720",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-19T23:33:29",
"content_id": "c11aeb4528d4ed1ca2e935148009f85405f731e7",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ddb63e18391ab5a508ee0c3ad10b40898fff65cb",
"extens... | stackv2 | #include "unity.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <sys/delay.h>
#define NUM_TERMS 4
static int term[NUM_TERMS];
void term_0(void *args) {
term[0] = 0;
}
void term_1(void *args) {
term[1] = 1;
}
void term_2(void *args) {
term[2] = 2;
... | 2.875 | 3 |
2024-11-18T21:42:54.285511+00:00 | 2016-10-12T16:04:22 | 92fee5f115cef1c15c8abcfb85a357eac13816fc | {
"blob_id": "92fee5f115cef1c15c8abcfb85a357eac13816fc",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-12T16:04:22",
"content_id": "087b962d3c9f53a1854a705f74a73f28e655b83a",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "b15905b32e6cb30e56d42361f80b9520... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include "list.h"
/*
* list_add inserts a new node with the given value val in the list
* (if the value was absent) or does nothing (if the value is already present).
*/
list_t *list_add(list_t *e, val_t val)
{
e->next = malloc(sizeof(list_t));
e = e->next;
e->dat... | 3.484375 | 3 |
2024-11-18T21:42:54.363969+00:00 | 2021-09-11T11:09:23 | 2824b8902a17ddc56e27c3587f67c2e74519745b | {
"blob_id": "2824b8902a17ddc56e27c3587f67c2e74519745b",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-12T16:53:46",
"content_id": "2740bc242aed0ad94574f39649ab789346611fe7",
"detected_licenses": [
"MIT"
],
"directory_id": "be804b69ac2eefae793de515b74eba521b13f8a5",
"extension": "h"... | stackv2 | /**
* @file hal.h
* @author Leon Shan (813475603@qq.com)
* @brief
* @version 1.0.0
* @date 2021-08-07
*
* @copyright Copyright (c) 2021
*
*/
#ifndef __HAL_H
#define __HAL_H
#include "../rte_include.h"
#if __DCACHE_PRESENT
/*
the SCB_CleanDCache_by_Addr() requires a 32-Byte aligned address
adjust the ... | 2.25 | 2 |
2024-11-18T21:42:55.207641+00:00 | 2021-06-21T09:15:50 | bfcc7a28f2ed1e8a3911ad78538c7c546a749f01 | {
"blob_id": "bfcc7a28f2ed1e8a3911ad78538c7c546a749f01",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-21T09:15:50",
"content_id": "0c39ff07575db7476fb6b15015e408e7b827ed33",
"detected_licenses": [
"MIT"
],
"directory_id": "c450556dd5d69beb8622385aa86a57be16810ea9",
"extension": "c"... | stackv2 | /**
* @file test_power.c
* @author Duncan Hamill (dh2g16@soton.ac.uk/duncanrhamill@googlemail.com)
* @brief Power Application main test executable
*
* Task ref: [UT_2.11.6]
*
* @version 0.1
* @date 2021-02-26
*
* @copyright Copyright (c) 2021
*/
/* --------------------------------------------------------... | 2.390625 | 2 |
2024-11-18T21:42:56.079770+00:00 | 2021-11-25T22:27:12 | 29b66b103adaebd7e613c145f0416dea635e0065 | {
"blob_id": "29b66b103adaebd7e613c145f0416dea635e0065",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-25T22:27:12",
"content_id": "e0be461038b8c1c59b05ac668c6414e5a0994bdb",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bade93cbfc1f25160dfbe9493bfa83f853326475",
"extens... | stackv2 | #include "mprec.h"
/*
* Zerop returns a TRUE or FALSE depending on wether or not
* the mint pointed to by "a" is zero.
*/
zerop(a)
register mint *a;
{
return (a->len == 1 && *a->val == 0);
}
| 2.359375 | 2 |
2024-11-18T21:42:56.270965+00:00 | 2023-08-25T00:41:16 | 5b9763605af569826282dbafa8cfb849cfb66b16 | {
"blob_id": "5b9763605af569826282dbafa8cfb849cfb66b16",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-25T00:41:16",
"content_id": "5ac7502fc59130ca4128452908d8f5928643e5ae",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f0b7bcc41298354b471a72a7eeafe349aa8655bf",
"extens... | stackv2 | /* *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* */
/* ** Copyright UCAR (c) 1990 - 2016 */
/* ** University Corporation for Atmospheric Research (UCAR) */
/* ** National Center for Atmospheric Research (NCAR) */
... | 2.296875 | 2 |
2024-11-18T21:42:56.498159+00:00 | 2021-09-20T15:12:59 | d005087833e47784f5d96a8380b394f5bb057d80 | {
"blob_id": "d005087833e47784f5d96a8380b394f5bb057d80",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-20T15:12:59",
"content_id": "a4c79c9dc4d403f523c4e6b2987bc56b45478607",
"detected_licenses": [
"MIT"
],
"directory_id": "83260ec97858adbc55919b5d8aa7ed4237d13c15",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "debug.h"
#include "value.h"
#include "object.h"
void disassemble_segment(segment *s, const char *name) {
printf("==== %s ====\n", name);
for (size_t offset = 0; offset < s->len;) {
offset = dissassemble_instruction(s, offset);
}
}
static size_t simple_instruction(cons... | 2.609375 | 3 |
2024-11-18T21:42:56.621568+00:00 | 2022-12-08T22:17:05 | d08dee8e1361bf194c995e943766efe2ec9986a6 | {
"blob_id": "d08dee8e1361bf194c995e943766efe2ec9986a6",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-08T22:17:05",
"content_id": "dfb1d775d2301d9b9ce7efdb5bb61fd59c2f13b6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b3d5d49942a021ad7e04c71ff10e88d00cb92246",
"extens... | stackv2 | /*
* =====================================================================================
*
* Filename: rdtsc.c
*
* Description:
*
* Version: 1.0
* Created: 31.01.2011 10:56:58
* Revision: none
* Compiler: gcc
*
* Author: Georg Wassen (gw) (),
* C... | 2.359375 | 2 |
2024-11-18T21:42:56.696848+00:00 | 2018-01-31T01:42:37 | 05aad5f072b07a333e6dc50cb4072721a405029f | {
"blob_id": "05aad5f072b07a333e6dc50cb4072721a405029f",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-31T01:42:37",
"content_id": "d40bd41c9a8a00f140237f1a7854dd45c4f9ff5b",
"detected_licenses": [
"MIT"
],
"directory_id": "e054e6e7eb5bf0df1242078ebf5293edb2dd79ad",
"extension": "c"... | stackv2 | #include <ansi.h>
#include <room.h>
inherit ROOM;
void create()
{
set("short","溪水邊");
set("long",@LONG
你來到了一條小溪的旁邊,溪水很清澈,緩緩地向南流去,西面
灌木叢中隱隱的有條小路。
忽然水(water)中有一道亮光閃過,不過看不清是什麼,你是否要下去
找一找(search)?
LONG
);
set("exits",([
"west" :__DIR__"outdoor",
"north":__DIR__"stoneroom",
]) );
create_door("north","密門","south",DO... | 2.125 | 2 |
2024-11-18T21:42:57.092789+00:00 | 2023-08-02T15:01:55 | 8abbe8d4620b0f7fc2da87f9377ef3c97a74efba | {
"blob_id": "8abbe8d4620b0f7fc2da87f9377ef3c97a74efba",
"branch_name": "refs/heads/darwin",
"committer_date": "2023-08-02T15:01:55",
"content_id": "987207819aea66c90b635df9d29254f8cf1b8016",
"detected_licenses": [
"MIT"
],
"directory_id": "69c241081d85aef145ebcc893cc63f8ef916cb16",
"extension": "c"... | stackv2 | /*
* TAPENADE Automatic Differentiation Engine
* Copyright (C) 1999-2021 Inria
* See the LICENSE.md file in the project root for more information.
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "admm.h"
#include <time.h>
/* DEBUGGING AND STATISTICS:
* -------------------------
* Comp... | 2.375 | 2 |
2024-11-18T21:42:57.359788+00:00 | 2016-05-20T15:04:51 | 52fe50918d97e317e8d498cb885be84061068d54 | {
"blob_id": "52fe50918d97e317e8d498cb885be84061068d54",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-20T15:04:51",
"content_id": "a6b9b54750256a71d49eccaca886e2745f3d3f79",
"detected_licenses": [
"MIT"
],
"directory_id": "33f4cf37d65745a05df261bf55346fd4eb69d0cb",
"extension": "c"... | stackv2 | #include "longest_path.h"
int longestPath(Graph graph, int source, int target, int *path, int *length) {
int n, i;
int path[100];
n = topologicalSort(graph, path);
for(i = 0; i < n; i++) {
}
} | 2.359375 | 2 |
2024-11-18T21:43:00.015938+00:00 | 2017-10-26T02:11:06 | 8decb4be8386018842c10f9757319c2deec19874 | {
"blob_id": "8decb4be8386018842c10f9757319c2deec19874",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-26T02:11:06",
"content_id": "57e25d73836baabfe39ca00e081b8efbb9991f6e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "801f5997ff62f8673a9f332e407c5d73ca0d1c64",
"extensio... | stackv2 | #ifndef LONG_DOUBLE_COMPARISON_H
#define LONG_DOUBLE_COMPARISON_H
#include <cmath>
#include "constants.h"
inline int long_double_equals(long double a, long double b, long double epsilon = EPS)
{
return fabs(a - b) < epsilon;
}
inline int long_double_greater(long double a, long double b, long double epsilon = EPS)
{
... | 2 | 2 |
2024-11-18T21:43:00.139613+00:00 | 2019-08-05T00:43:11 | 9326429cf6f8d158dd59986d64419f315744c232 | {
"blob_id": "9326429cf6f8d158dd59986d64419f315744c232",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-05T00:43:11",
"content_id": "7494bf51b5466f22f97154ae2df0d2069ae027df",
"detected_licenses": [
"MIT"
],
"directory_id": "ae145e394055524bbb2b5e63ea3a5915292eb6ab",
"extension": "h"... | stackv2 | /*
FILE: rw_math.h
VERSION: 0.3.0
DESCRIPTION: Math library for games/graphics.
AUTHOR: Raymond Wan
USAGE: Simply including the file will only give you declarations (see __API)
To include the implementation,
#define RWM_IMPLEMENTATION
OR if you want this to be header only,
#define RWM_HEAD... | 2.21875 | 2 |
2024-11-18T21:43:00.236436+00:00 | 2015-10-18T13:24:21 | a2f153277eba26452227d7d57b25a9cb2d597fa8 | {
"blob_id": "a2f153277eba26452227d7d57b25a9cb2d597fa8",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-18T13:24:21",
"content_id": "62e006f154bf7e9901f8bf91448d0736a572ccd9",
"detected_licenses": [
"MIT"
],
"directory_id": "b2090d9d141ab1e92b8f6c83e0bef51d30e767d7",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define PORT 8888 /* Port number as an integer */
#define IP_ADDRESS "192.168.0.8" /* IP Address as a string */
#define BUFSIZE ... | 2.96875 | 3 |
2024-11-18T21:43:00.362034+00:00 | 2017-05-15T04:46:23 | 93467bd0fe13e9a592b7e2bb804f142054f26859 | {
"blob_id": "93467bd0fe13e9a592b7e2bb804f142054f26859",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-15T04:46:23",
"content_id": "b71f9ef6b22b1c1fe53f76b327e0c1a4c26ca3e9",
"detected_licenses": [
"MIT"
],
"directory_id": "6b3ab347e3c24427fcab6b13741193ea6be072f5",
"extension": "c"... | stackv2 | /*
Copyright (c) 2007 Michael P. Thompson <mpthompson@gmail.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 to... | 2.375 | 2 |
2024-11-18T21:43:02.588695+00:00 | 2018-08-22T21:36:12 | 19595819375e8b15665f3901356a1471c6f17ac1 | {
"blob_id": "19595819375e8b15665f3901356a1471c6f17ac1",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-22T21:36:12",
"content_id": "fd378aa43b512a19684ed1962d116a0573a410df",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d36b011432cf3f0ac0a77ab472e51887e3de3852",
"extensio... | stackv2 |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <errno.h>
#include <systemd/sd-bus.h>
#include <systemd/sd-event.h>
#include <unistd.h>
#include "systemd-compat.h"
#include "environment.h"
#include "dbus-http.h"
#include "log.h"
#define _cleanup_(fn) __attribute__((__cleanup... | 2.1875 | 2 |
2024-11-18T21:43:02.863344+00:00 | 2015-07-19T17:02:17 | e60cfe678fd825e92581aec2e6858a7fdee5404a | {
"blob_id": "e60cfe678fd825e92581aec2e6858a7fdee5404a",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-19T17:02:17",
"content_id": "b39098ace62904dbc739c7d8630e0dd3dc612399",
"detected_licenses": [
"MIT"
],
"directory_id": "9b2dbab3eceebe517dcd8877ee3f61314fc88a55",
"extension": "c"... | stackv2 | #include <erl_nif.h>
#include <string.h>
ERL_NIF_TERM utils_get_atom(ErlNifEnv* env, const char* name) {
ERL_NIF_TERM atom;
if (enif_make_existing_atom(env, name, &atom, ERL_NIF_LATIN1)) {
return atom;
}
return enif_make_atom(env, name);
}
ERL_NIF_TERM utils_ok_atom(ErlNifEnv* env) {
ret... | 2.15625 | 2 |
2024-11-18T21:43:03.435375+00:00 | 2021-09-15T14:05:29 | 57104a83b8e95794cbfe31d966b7215874d22977 | {
"blob_id": "57104a83b8e95794cbfe31d966b7215874d22977",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-15T14:05:29",
"content_id": "dd299d0e66a73f5128c81ca394aae7549ecb4ad8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "69a9922c1523ec73a8628032173425add2d4bcb8",
"extension"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <dirent.h>
#include "apue.h"
#include <sys/wait.h>
#include <math.h>
#include <signal.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/un.h>
#include... | 2.8125 | 3 |
2024-11-18T21:43:04.383103+00:00 | 2023-08-13T07:00:15 | d2c5fd484c3cae6a75dcd1e79020341b9387a199 | {
"blob_id": "d2c5fd484c3cae6a75dcd1e79020341b9387a199",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T07:00:15",
"content_id": "709749f4a59ad93d72f9451d4bd35d85f4f966af",
"detected_licenses": [
"MIT"
],
"directory_id": "2266eb133fc3121daf0aa7f4560626b46b94afe0",
"extension": "c"... | stackv2 | // zhua.c 神龙抓
#include <ansi.h>
#include <combat.h>
inherit F_SSERVER;
int perform(object me)
{
string msg;
object target;
int skill, ap, dp, damage;
if (! target)
{
me->clean_up_enemy();
target = me->select_opponent();
}
if (! target || ! me->is_figh... | 2.046875 | 2 |
2024-11-18T21:43:04.452647+00:00 | 2017-09-29T18:11:47 | 9955819af6b402dbb89da83786d9066a25cfa21d | {
"blob_id": "9955819af6b402dbb89da83786d9066a25cfa21d",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-29T18:11:47",
"content_id": "45a89d10a6133e5e9209bbdd28720035cda4d851",
"detected_licenses": [
"MIT"
],
"directory_id": "c8680091ab8376b149ab2d86bf3eb8641726bd36",
"extension": "c"... | stackv2 | //table lookup
//this will demonstrate the innards of a table-lookup package to illustrate nmore aspects of structures; this code is typical of what might be found in the symbnol table management routines of a macro processor or a monpiler;
#define IN 1
//the name IN and the replacement text 1 are stored in a table;... | 3.046875 | 3 |
2024-11-18T21:43:04.723247+00:00 | 2019-09-30T15:34:16 | 6ec572c0435b0c381d19fcb887d2a10f88334d8d | {
"blob_id": "6ec572c0435b0c381d19fcb887d2a10f88334d8d",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-30T15:34:16",
"content_id": "83f8e5d4314f8929e0edc6549cc45b9f86f2e037",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b862a937a4ec564729895cd6409375dcd3cac5ba",
"extens... | stackv2 | //Maxime VINCENT, Hugues GUILLEUS
#include "main.h"
int main() {
POINT clic_menu;
int ig = 1 ;
COUL joueur ;
srand(time(NULL));
init_graphics(L_FENETRE,H_FENETRE);
affiche_auto_off();
init_plateau();
afficher_menu();
joueur = BLANC;
while (TRUE) {
clic_menu = wait_clic();
if (est_dans_menu_bouton_qui... | 2.171875 | 2 |
2024-11-18T21:43:05.213186+00:00 | 2023-08-16T03:56:28 | c6f6ff6e3db289f6e4b8d18551b6d6458848602e | {
"blob_id": "c6f6ff6e3db289f6e4b8d18551b6d6458848602e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T03:56:28",
"content_id": "8b7d02fe21394867db4003fbcf8800b0111d4746",
"detected_licenses": [
"MIT",
"CC0-1.0",
"BSD-2-Clause"
],
"directory_id": "72f6d3ad72b2a4a9b6c5f93c5d... | stackv2 | /*
* cifra - embedded cryptography library
* Written in 2014 by Joseph Birr-Pixton <jpixton@gmail.com>
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and related and neighboring rights to this software to the
* public domain worldwide. This software is distributed without any
... | 2.609375 | 3 |
2024-11-18T21:43:05.539667+00:00 | 2015-06-02T12:45:54 | ccae1ef9b23b86072c3a05556d2db0e3785e0cda | {
"blob_id": "ccae1ef9b23b86072c3a05556d2db0e3785e0cda",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-02T12:45:54",
"content_id": "2946b7faa75ab62f0bd12f9eb6f6303b80a95fd6",
"detected_licenses": [
"BSD-4-Clause-UC"
],
"directory_id": "656be701e9dc77931e09085f21e60e1c4520def0",
"ext... | stackv2 | /* CoreGraphics - CGDataProvider.h
* Copyright (c) 1999-2008 Apple Inc.
* All rights reserved. */
#ifndef CGDATAPROVIDER_H_
#define CGDATAPROVIDER_H_
typedef struct CGDataProvider *CGDataProviderRef;
#include <CoreGraphics/CGBase.h>
#include <CoreFoundation/CFURL.h>
#include <stddef.h>
#include <unistd.h>
/* This... | 2.3125 | 2 |
2024-11-18T21:43:05.710727+00:00 | 2023-07-24T14:40:00 | 8ef6fea0a1b320590c739faf4b9e90d8ce4a1649 | {
"blob_id": "8ef6fea0a1b320590c739faf4b9e90d8ce4a1649",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-24T14:40:00",
"content_id": "9952b18f08d868f50b308b75c55cdd80348d916c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bc54724874382c728cf2d807ea18baa7d080fcd5",
"extensio... | stackv2 | /*
** $Id$
*/
/************************************************************************
* *
* Copyright (C) 2002 *
* Internet2 *
* ... | 2.296875 | 2 |
2024-11-18T21:43:05.951675+00:00 | 2023-04-12T10:39:41 | ebb5f0a8b53c46e3ba2570b42a792b67b8311637 | {
"blob_id": "ebb5f0a8b53c46e3ba2570b42a792b67b8311637",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-12T10:39:41",
"content_id": "2d1d8292686ae20ae52272ad91b69d379d9f15b0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0c7bae3df8f5ed0638fa200155cefbfbcaf544ba",
"extensio... | stackv2 | /*
* PicoSoC - A simple example SoC using PicoRV32
*
* Copyright (C) 2017 Clifford Wolf <clifford@clifford.at>
* 2023 Balint Cristian <cristian dot balint at gmail dot com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby gr... | 2.359375 | 2 |
2024-11-18T21:43:06.107779+00:00 | 2019-12-21T15:30:48 | 4f1dd0cd531c15946d31651623f8cb78fc93c25f | {
"blob_id": "4f1dd0cd531c15946d31651623f8cb78fc93c25f",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-21T15:30:48",
"content_id": "9feffa56518da187c67d7b8fd48d0ac7de0344e2",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "7409346c60b75473ec1fae7b6c0e99f4... | stackv2 | /*-
* Copyright (c) 2018 Ruslan Bukin <br@bsdpad.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:
* 1. Redistributions of source code must retain the above copyright
* notice, thi... | 2.140625 | 2 |
2024-11-18T21:43:06.387326+00:00 | 2020-04-19T17:58:29 | 3cd51d88a3fc3ce65d5c907b2def75fbdd8c131d | {
"blob_id": "3cd51d88a3fc3ce65d5c907b2def75fbdd8c131d",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-19T17:58:29",
"content_id": "69891acecae6fb9202f54e46a4240af2bdcc2509",
"detected_licenses": [
"MIT"
],
"directory_id": "3101324a40612f67ff75337106deb8013ddf4c10",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include "object.h"
void initialiserObj( Objet *obj , char name[] , int x , int y )
{
obj->image = IMG_Load(name);
if ( obj->image == NULL ) {
printf ( "Can not load image of tux: %s \n " , SDL_Get... | 2.21875 | 2 |
2024-11-18T21:43:06.559982+00:00 | 2020-12-31T00:51:10 | 71607180788b802974a3d1635c83945e6016a284 | {
"blob_id": "71607180788b802974a3d1635c83945e6016a284",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-31T00:51:10",
"content_id": "d2c1c4e2809cb7e2edf8302b2321a89d42052579",
"detected_licenses": [
"MIT"
],
"directory_id": "905edb741b057f984c3c5713224eb3563137d8c9",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct cliente {
char nome0[100]; // nome do cliente
char nome1[100]; // telefone do cliente
char nome2[100]; // cpf
char nome3[100]; // nome do produto
char nome4[100]; // codigo do produto
char nome5[100]; // preco do produto... | 3.34375 | 3 |
2024-11-18T21:43:06.609471+00:00 | 2010-09-08T02:28:39 | 24c222f994c6b3fb2c0625fd9ba73265b9673a6e | {
"blob_id": "24c222f994c6b3fb2c0625fd9ba73265b9673a6e",
"branch_name": "refs/heads/master",
"committer_date": "2010-09-08T02:28:39",
"content_id": "ea9154f9e4f685b7bff2ae4c0140986d633a204b",
"detected_licenses": [
"MIT"
],
"directory_id": "67e1af68e9523b7d4619d1d36f9bf5c5ddffc686",
"extension": "h"... | stackv2 | /*
* vsprintf.h
* by WN @ Jun. 25, 2009
*/
#ifndef WRAPPER_PRINTF_H
#define WRAPPER_PRINTF_H
#include <stdarg.h>
#include "injector.h"
#include "string_32.h"
extern SCOPE long
simple_strtol(const char *cp,char **endp,unsigned int base);
extern SCOPE long long
simple_strtoll(const char *cp,char **endp,unsigned i... | 2.015625 | 2 |
2024-11-18T21:43:07.066489+00:00 | 2015-07-28T21:22:22 | 9dba15826971008904d5fe318508958d538cb660 | {
"blob_id": "9dba15826971008904d5fe318508958d538cb660",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-28T21:22:22",
"content_id": "050af500fa3879a9f4484a0889571875f4811395",
"detected_licenses": [
"MIT"
],
"directory_id": "43538546006d7fa121d6a70f7d5554e96e24fae9",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include "brainfuck.h"
#include "shell.h"
#define SHELL_BUFFER_LENGTH 80
#define SHELL_QUIT_CHAR 'q'
#define SHELL_HELP "help\n"
void show_shell_help()
{
const char *help = "q: quit\n"
"help: show this help\n\n"
"Brainfuck cheatsheet:\n"
"\t< >: move the pointer\... | 2.90625 | 3 |
2024-11-18T21:43:07.137858+00:00 | 2022-05-15T12:26:58 | a91ed4a6ae3c21dac8ba6239c93f3d9970d89559 | {
"blob_id": "a91ed4a6ae3c21dac8ba6239c93f3d9970d89559",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-15T12:26:58",
"content_id": "318885190dc10138c0bfc8469a967a92ee9ea3b8",
"detected_licenses": [
"MIT"
],
"directory_id": "e831acf327c49951be026d01a3c1b6ad29399b79",
"extension": "c"... | stackv2 | /* TODO: restore the current file to be as close to the old current file before a file execution */
/* See LICENSE file for license details */
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include <string.h>
#include <ncurses.h>
#include <... | 2.375 | 2 |
2024-11-18T21:43:07.219623+00:00 | 2018-05-06T09:57:50 | 9357f325f705c601f053db19bbfac1ba158803dd | {
"blob_id": "9357f325f705c601f053db19bbfac1ba158803dd",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-06T09:57:50",
"content_id": "d886bebe1802f28a7f59c237047708ec0fa66604",
"detected_licenses": [
"BSD-1-Clause"
],
"directory_id": "11d71b6002cf87da679b06f3e1a996125251e889",
"extens... | stackv2 | #include <stdlib.h>
#include <time.h>
#include <math.h>
#include "alizarin.h"
#include "log.h"
#include "tile.h"
#include "world.h"
#include "terrain.h"
static void subdivideDisplace(int *heightMap, const int width, const int height, unsigned int maxHeight, const float jaggedness, const unsigned int maxIterations);
s... | 2.671875 | 3 |
2024-11-18T21:43:07.375282+00:00 | 2020-04-06T15:23:05 | cdb8ef1d96de58d75c6efd8bb92567a5454c863c | {
"blob_id": "cdb8ef1d96de58d75c6efd8bb92567a5454c863c",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-06T15:23:05",
"content_id": "298faedda7b8365273019753354aef4082a9d4ad",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9f9f08a9e36076947b85c2a0fa21218013321a3f",
"extensio... | stackv2 | /*!
\file
\brief The entry point of the triangle counting code
\date Started 5/10/2017
\author George
\version\verbatim $Id: cmdline.c 20946 2017-05-10 23:12:48Z karypis $ \endverbatim
*/
#include "tc.h"
/*************************************************************************
* The entry point
********************... | 2.28125 | 2 |
2024-11-18T21:43:07.496451+00:00 | 2015-01-23T15:52:02 | 506b0709ba03061f719c13e2e8826140100c25b6 | {
"blob_id": "506b0709ba03061f719c13e2e8826140100c25b6",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-23T15:52:02",
"content_id": "05b69080ba24ad2432a74f25d043337b62b57348",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "2f0cfd32acb3f8ba68ae72215f4ad86dfa57fdf3",
"extens... | stackv2 | /**
* RThread.c
* Author Kucheruavyu Ilya (kojiba@ro.ru)
* 12/16/14 2014 Ukraine Kharkiv
* _ _ _ _
* | | (_|_) |
* | | _____ _ _| |__ __ _
* | |/ / _ \| | | '_ \ / _` |
* | < (_) | | | |_) | (_| |
* |_|\_\___/| |_|_.__/ \__,_|
* _/ |
* |__/
**/
#include <RClassTable.h>
... | 2.0625 | 2 |
2024-11-18T21:43:07.640949+00:00 | 2023-08-14T21:35:58 | 9957aaf734c5d413736a89a3416a85afca3d185e | {
"blob_id": "9957aaf734c5d413736a89a3416a85afca3d185e",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-14T21:35:58",
"content_id": "8f8de4ddb1e2197a63cac295896ed4dec3cffda7",
"detected_licenses": [
"MIT"
],
"directory_id": "37e03845cb8de9ed1cf78a335a84b1e22f3c232f",
"extension": "c",
... | stackv2 | #include "sysbvm/macro.h"
#include "internal/context.h"
#include <stdlib.h>
SYSBVM_API sysbvm_tuple_t sysbvm_generatedSymbol_create(sysbvm_context_t *context, sysbvm_tuple_t value, sysbvm_tuple_t sourcePosition)
{
sysbvm_generatedSymbol_t *result = (sysbvm_generatedSymbol_t*)sysbvm_context_allocatePointerTuple(con... | 2.140625 | 2 |
2024-11-18T21:43:07.728491+00:00 | 2021-12-08T06:42:47 | 0081725abbb1bb743b84348c8536cff0b6a6ab4f | {
"blob_id": "0081725abbb1bb743b84348c8536cff0b6a6ab4f",
"branch_name": "refs/heads/tool_exchange_03.05.2017_rebase_extra_bug_fixes",
"committer_date": "2022-02-15T13:59:55",
"content_id": "f1ec32f7e03a6435bdcfef4b64c18affcda0ed57",
"detected_licenses": [
"NCSA"
],
"directory_id": "8bd2e73aedd84de2a93... | stackv2 | // RUN: %llvmgcc %s -emit-llvm -O0 -g -c -o %t1.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --single-repr-for-nan=1 -search=dfs -use-construct-hash-z3=1 -debug-assignment-validating-solver -z3-validate-models --output-dir=%t.klee-out --exit-on-error %t1.bc
#include "klee/klee.h"
#include <assert.h>
#include <stdio.h>
#... | 2.5625 | 3 |
2024-11-18T21:43:09.098664+00:00 | 2020-08-19T15:21:53 | aabd2b723f9d0ea6d8679f32bcf7949dcf4dd6f3 | {
"blob_id": "aabd2b723f9d0ea6d8679f32bcf7949dcf4dd6f3",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-19T15:21:53",
"content_id": "a281bf9a98f5aa6250a7b003ed5984fce8bd2b2d",
"detected_licenses": [
"MIT"
],
"directory_id": "4fa1e0711c3023a94035b58f6a66c9acd4a7f424",
"extension": "c"... | stackv2 | #include "stdinc.h"
#include "stdcomm.h"
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include "bbs.h"
#include "comm.h"
#include "xmodem.h"
#include "time.h"
#include "util.h"
#include <termio.h>
char *savetty; /* moved from bbs.c ... | 2.140625 | 2 |
2024-11-18T21:43:09.255808+00:00 | 2015-05-28T07:52:17 | a0ccca7bfe46a38a210529625687d89bdf730939 | {
"blob_id": "a0ccca7bfe46a38a210529625687d89bdf730939",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-28T07:52:17",
"content_id": "f65229e594952c8cedb9c86e4ac348488b799f3e",
"detected_licenses": [
"MIT"
],
"directory_id": "6a90219bf1b4a5935a676b76f90d398f344ec230",
"extension": "h"... | stackv2 | #include <stdio.h>
#include <string.h>
// Helper Methods
int stringMatches(char *str1, char *str2);
// Typedefs
typedef unsigned char BYTE;
typedef char SIGNED_BYTE;
typedef unsigned short WORD;
typedef signed short SIGNED_WORD;
/*
Flag Layout
7 6 5 4 3 2 1 0
Z N H C 0 0 0 0
*/
#define FL... | 2.09375 | 2 |
2024-11-18T21:43:09.442367+00:00 | 2019-03-21T01:33:20 | 570e8960c9f809063037d9332533c9b5308eee9e | {
"blob_id": "570e8960c9f809063037d9332533c9b5308eee9e",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-21T01:33:20",
"content_id": "31afd5a1befffa3c614895f4ca8e420cac33ce44",
"detected_licenses": [
"MIT"
],
"directory_id": "515a7a7c849a643c94ef3abb90f9d4342112de1a",
"extension": "c"... | stackv2 | #include <kipr/botball.h>
int main()
{
wait_for_light (0);
create_connect();
create_drive_direct (200,200); //drive towards the water tank
get_create_total_angle (90); // turn towards the tank
set_create_total_angle (90);
msleep (2000);
enable_servos ();
set_se... | 2.125 | 2 |
2024-11-18T21:43:15.416108+00:00 | 2021-05-08T17:12:47 | 9a4c8abfaf9aee1699b9273a00f3e614f598f6f0 | {
"blob_id": "9a4c8abfaf9aee1699b9273a00f3e614f598f6f0",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-08T17:12:47",
"content_id": "48cca3e41885749bdced99e5e46b05d525fe18b4",
"detected_licenses": [
"MIT"
],
"directory_id": "dc406045ba50a9892c8592e36890c2a242bc3a9a",
"extension": "c"... | stackv2 | /*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
* File: main.c
*
* MATLAB Coder version : 5.1
* C/C++ source code generated on : 19-Apr-2021 21:23:36... | 2.34375 | 2 |
2024-11-18T21:43:19.444693+00:00 | 2014-12-07T22:38:50 | e6aed52ab1c9d5f52d967e8104b0123059fa93a3 | {
"blob_id": "e6aed52ab1c9d5f52d967e8104b0123059fa93a3",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-07T22:38:50",
"content_id": "7d2e1997ad018854e4ccaee9a8e2396d007323d4",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "d98456371cae7b6468a347fe17a46748961fb6b3",
"extens... | stackv2 |
/*
sound.c
Gameboy sound emulation support for Linux.
*****************************************************
EXPERIMENTAL !!!!!
SOUNDS TERRIBLE !!!!!!!!
*****************************************************
*/
#ifdef SOUND
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>... | 2.234375 | 2 |
2024-11-18T21:43:19.517437+00:00 | 2020-06-22T16:48:58 | 51b246154383c226d663a8bbca8f52198124d241 | {
"blob_id": "51b246154383c226d663a8bbca8f52198124d241",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-22T16:48:58",
"content_id": "cee9b468b3a553979a2d74c5e1bd61a93c90da9a",
"detected_licenses": [
"MIT"
],
"directory_id": "a2c095931eae91bd58c9661d29a45b4d541c8197",
"extension": "c"... | stackv2 | #include "types.h"
#include "user.h"
#include "fcntl.h"
#define FILE_SZ 50
char writeBuf[FILE_SZ];
char readBuf[FILE_SZ];
int writeToFile(char* buf, char* filename)
{
int fd, writeres;
if((fd = open(filename, O_CREATE | O_RDWR)) < 0)
{
printf(1, "writeToFile: failed to create file\n");
re... | 3.125 | 3 |
2024-11-18T21:43:19.625830+00:00 | 2021-01-17T15:24:25 | 728fd3ac97b92bac848838b630831fd160ec2218 | {
"blob_id": "728fd3ac97b92bac848838b630831fd160ec2218",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-17T15:24:25",
"content_id": "9559702d36444a320d17eccfc4b2951e477e1dba",
"detected_licenses": [
"MIT"
],
"directory_id": "b83fff483cc35705a226447879468bfa61fcb8c2",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
//#include <ctype.h>
#ifndef _CTYPE_H_ // si ctype.h n'est pas inclu
int islower(char car);
int isupper(char car);
#endif // _C_TYPE_H
int main()
{
char lettre;
printf("Tapez une lettre : ");
scanf("%c", &lettre);
printf(islower(lettre) ? "minuscule" : "") ||
... | 3.375 | 3 |
2024-11-18T21:43:20.186313+00:00 | 2019-10-14T17:06:59 | 15ad2c82f98d5a93923a2a1ec5336e0851c38bf6 | {
"blob_id": "15ad2c82f98d5a93923a2a1ec5336e0851c38bf6",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-14T17:06:59",
"content_id": "87aa227e50d8da0e1156740b56cbd66896379e88",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6301ce4d970239e4734baf6f85d6988979644e8e",
"extens... | stackv2 | /* i2c derived from twitest.c by */
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <avr/io.h>
#include <util/twi.h>
#include "l3g4200d.h"
uint8_t twst;
// void setup_i2c() {
// TWBR = 72;
// }
int l3g4200d_write_byte(uint8_t addr, uint8_t value) {
uint8_t sla, n = 0;
int rv = 0... | 2.421875 | 2 |
2024-11-18T21:43:20.332254+00:00 | 2023-07-28T09:51:32 | f1954b7d9caf030e55ac0f6b3f3e6765e210bdac | {
"blob_id": "f1954b7d9caf030e55ac0f6b3f3e6765e210bdac",
"branch_name": "refs/heads/develop",
"committer_date": "2023-07-28T09:51:32",
"content_id": "67b2d0b1b4447415d5e22983e2f5d65d0fc0813f",
"detected_licenses": [
"MIT"
],
"directory_id": "9bcad7f414a0e68720b5470344c846fccf407d86",
"extension": "c... | stackv2 | // Controlling mirror speed by changing PWM duty
// BLDC Motor controller is DRV11873
/* Includes ------------------------------------------------------------------*/
#include "motor_controlling.h"
#include "encoder_processing.h"
#include "hardware.h"
#include "nvram.h"
#include "main.h"
#include "math.h"
/* Private ... | 2.28125 | 2 |
2024-11-18T21:43:20.535892+00:00 | 2019-11-28T09:54:28 | dfe8175b90e9e9736bed4e34c8f3beb6081df28f | {
"blob_id": "dfe8175b90e9e9736bed4e34c8f3beb6081df28f",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-28T09:54:28",
"content_id": "6e49b9e7f9deb6078f37613ff22048640aee998b",
"detected_licenses": [
"MIT"
],
"directory_id": "1f9c6400485e1e284e0c9dbad9cea2ff897cb899",
"extension": "c"... | stackv2 | /***************************************************************************/
/* */
/* BUFFER.C */
/* */
/* Copyright (c) 1991 - Microsoft Corp. */
/* All rights reserved. */
/* Microsoft Confidential */
/* ... | 2.296875 | 2 |
2024-11-18T21:43:20.594867+00:00 | 2017-06-14T14:35:12 | efcb3ccbcfe6a461e0e6326dc8bc85616c7e1ce9 | {
"blob_id": "efcb3ccbcfe6a461e0e6326dc8bc85616c7e1ce9",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-14T14:35:12",
"content_id": "4ff445ccd0f2c3f3047524190948c2c7a0fbeaaa",
"detected_licenses": [
"MIT"
],
"directory_id": "f78300d2f166bed63ba64fc793ea38cea797aa58",
"extension": "c"... | stackv2 | /**
* @file
* co.parabox.time.get node implementation.
*
*/
#include "node.h"
#include <stdio.h>
#include <time.h>
VuoModuleMetadata({
"title" : "Get Date and Time",
"keywords" : [ "second", "minute", "hour", "clock", "watch", "pink floyd", "date", "month", "year" ],
"version" : "1.0.0",
"... | 2.609375 | 3 |
2024-11-18T21:43:20.799348+00:00 | 2011-12-24T14:55:53 | dd5c4b591c5bfe72ba552de28be2ef64f76b72e2 | {
"blob_id": "dd5c4b591c5bfe72ba552de28be2ef64f76b72e2",
"branch_name": "refs/heads/master",
"committer_date": "2011-12-24T14:55:53",
"content_id": "04f0c29d97d7714fa14e58e5aec35f9061a85c81",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "2f6773ee1112a7419605530b83048d3b966544ea",
"... | stackv2 | /*!
\author Rémi Attab
\license FreeBSD (see the LICENSE file)
The main yarn header for the target programs.
*/
#include "yarn.h"
#include "yarn/dependency.h"
#include "tpool.h"
#include "epoch.h"
#include "bits.h"
#include "pmem.h"
#include <stdio.h>
struct task_info {
yarn_executor_t executor;
void* data;
... | 2.65625 | 3 |
2024-11-18T21:43:20.872152+00:00 | 2011-08-17T00:15:38 | d5f2a78b4d07dbfa6dfab5ec40b8a5b8e4777130 | {
"blob_id": "d5f2a78b4d07dbfa6dfab5ec40b8a5b8e4777130",
"branch_name": "refs/heads/master",
"committer_date": "2011-08-17T00:15:38",
"content_id": "6359137d21ae2dd4e0bc2b1fa10c11847e8c4028",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "607964185b2548930d572f19b2f3e30b0021e9f2",
"extens... | stackv2 | /*
flame m0dul - https://github.com/kiu/flame
*/
#include "basic/basic.h"
#include "core/i2c/i2c.h"
#include "basic/config.h"
#define FLAME_I2C_WRITE 0xC4
#define FLAME_I2C_READ 0xC5
#define FLAME_I2C_CR_INPUT 0x00
#define FLAME_I2C_CR_PSC0 0x01
#define FLAME_I2C_CR_PWM0 0x02
... | 2.5 | 2 |
2024-11-18T21:43:21.677076+00:00 | 2021-01-16T20:51:22 | 61cfeb733cde4d34451f6014af1246dfb450ec45 | {
"blob_id": "61cfeb733cde4d34451f6014af1246dfb450ec45",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-16T20:51:22",
"content_id": "64ce7164e9b2b022bcb564591d9ebe29145f3a10",
"detected_licenses": [
"MIT"
],
"directory_id": "74b7377f44050bcd4c0399e75e0637f7cab9192b",
"extension": "h"... | stackv2 | #include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#if !defined(LUA_VERSION_NUM) || (LUA_VERSION_NUM < 501)
#include <compat-5.1.h>
#endif
#ifdef _WIN32
#define LUA_EXPORT __declspec(dllexport)
#else
#define LUA_EXPORT
#endif
#ifdef _MSC_VER ... | 2.0625 | 2 |
2024-11-18T21:43:22.148872+00:00 | 2020-06-21T13:44:32 | 1929742261d443137effaf5ef4722c803f0a2e8e | {
"blob_id": "1929742261d443137effaf5ef4722c803f0a2e8e",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-21T13:44:32",
"content_id": "2910910da6c3aac1de0bd8af3f3aac4b7c013940",
"detected_licenses": [
"MIT"
],
"directory_id": "8554c9706a5b62e23b3bbf76ef4892d241163c6b",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "fs.h"
#include "fs_types.h"
#define BSSM_FS_ENV "BDSM_FS"
int main(int argc, char *argv[]) {
if (argc < 2) {
fprintf(stderr, "Missing command parameter.\n");
return 1;
}
char *command = argv[1];
char **argv_rem = NUL... | 2.453125 | 2 |
2024-11-18T21:43:22.842397+00:00 | 2020-08-17T02:55:22 | 1fcd6ad76ab04705f281f3bbb8aa527e562d1c48 | {
"blob_id": "1fcd6ad76ab04705f281f3bbb8aa527e562d1c48",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-17T02:55:22",
"content_id": "e68de9cd5f1cdda5ca7e6de37cf30dec4b85445c",
"detected_licenses": [
"MIT"
],
"directory_id": "4120ce8bfb52cfe707adc8c6917252bc3839a75d",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include<string.h>
static int rowNum=0;
static int columnNum=0;
uint64_t aHeader=0;
uint64_t bHeader=0;
int s=5,b=5;
uint64_t getSetIndex(uint64_t address)
{
return (address >> b) & ((1 << s) - 1);
}
int getIndexOfSigns(char ch)
{
if (ch >= '0' && ch <= ... | 2.90625 | 3 |
2024-11-18T21:43:23.026002+00:00 | 2023-08-25T00:41:16 | 05b8761d83f9f5b1f6704c7ed830e11aa59f0bb0 | {
"blob_id": "05b8761d83f9f5b1f6704c7ed830e11aa59f0bb0",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-25T00:41:16",
"content_id": "062961522e2f4e286e247e7e9a50a2801cbc54b9",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f0b7bcc41298354b471a72a7eeafe349aa8655bf",
"extens... | stackv2 | #include <trmm_rsl/rsl.h>
#include <unistd.h>
extern Radar *rapic_radar;
extern int rapicparse(void);
Radar *RSL_rapic_to_radar(char *infile)
{
/* Attach infile to stdin and call the parser. */
FILE *fp;
Radar *radar;
int save_fd;
radar = NULL;
if (infile == NULL) {
save_fd = dup(0);
fp = fdopen(sa... | 2.21875 | 2 |
2024-11-18T22:07:34.817535+00:00 | 2023-05-09T20:08:24 | 7345037a94b5b78eee79d8d7a130ed1564e40abe | {
"blob_id": "7345037a94b5b78eee79d8d7a130ed1564e40abe",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-09T20:08:24",
"content_id": "fdbabfd0840160274b879689626159f519a438cd",
"detected_licenses": [
"MIT"
],
"directory_id": "b5d28de0f81d800758bc8234f265e5290bc303df",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "i2cSetup.h"
#include "lcd02.h"
#include "delay.h"
#include "coders.h"
int main(void) {
initializeI2C();
affTexte("Test LCD\n");
initCoders();
setupInterrupt();
unsigned int count = 0;
char s[20];
while (1) {
count++;
if ((count % 60000) == 0) ... | 2.375 | 2 |
2024-11-18T22:07:34.981277+00:00 | 2019-01-21T02:54:59 | 387cffdcaa29f8757be0a1eeed174283064b198a | {
"blob_id": "387cffdcaa29f8757be0a1eeed174283064b198a",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-21T02:54:59",
"content_id": "820bccbb027aed830e71b91634dc383b15da40fe",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7270468e894914221ffcc6c414b64bc4799f278b",
"extens... | stackv2 | /* $title: 'BRESET.C ===== Reset all locks for user =====' */
/* $subtitle: 'Elipse Ltd. [jms] Revised: 1999 Mar 26' */
#include <stdio.h>
#include <bfile.h>
/* MAIN ===== Start up ===== $pageif:6 */
int main( int argc, char *argv[] )
{ /* main */
int st;
... | 2.03125 | 2 |
2024-11-18T22:07:35.243678+00:00 | 2019-02-08T12:21:51 | d434856480d4bc6c59d8524509990fdff3fe3e29 | {
"blob_id": "d434856480d4bc6c59d8524509990fdff3fe3e29",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-08T12:21:51",
"content_id": "d83580e7f9634587d353f01b2125d6363fd4cebc",
"detected_licenses": [
"MIT"
],
"directory_id": "39265fec0605fa5541b407bbc3625c75b7b30cec",
"extension": "c"... | stackv2 | #include <stdio.h>
#define NUM 0x12345678
int main(void)
{
size_t n = NUM;
size_t rot_left;
size_t rot_right;
__asm__ (
/* TODO: Use rol instruction to shift n by 8 bits left.
* Place result in rot_left variable.
*/
"mov eax, %2\n\t"
"rol eax, 8\n\t"
"mov %0, eax\n\t"
/* TODO: Use ror instruction ... | 3.046875 | 3 |
2024-11-18T22:07:35.414819+00:00 | 2013-12-02T22:49:45 | dce9943d69bd8c91715ba333db82ab283499eaec | {
"blob_id": "dce9943d69bd8c91715ba333db82ab283499eaec",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-02T22:49:45",
"content_id": "ead3751949ac3bebdacb42f347ad43ce6fe4313d",
"detected_licenses": [
"MIT"
],
"directory_id": "81a9183c6ca8924ecf68dbce39bc0a70061a3ab1",
"extension": "c"... | stackv2 | #include <p24FJ128GB206.h>
#include "config.h"
#include "common.h"
#include "timer.h"
#include "i2c.h"
#include "pin.h"
#include "uart.h"
#include <stdio.h>
#define True 1
#define Fale 0
/***********************************
**** Additional Timer Functions ****
***********************************/
/* wait - takes a r... | 2.6875 | 3 |
2024-11-18T22:07:35.646321+00:00 | 2018-06-02T09:46:25 | fe433d5f4437e945ba69cfcb4143c13b80c90c6c | {
"blob_id": "fe433d5f4437e945ba69cfcb4143c13b80c90c6c",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-02T09:56:42",
"content_id": "eeb28c61ec1d666ae1e221b43119395d78ab8d14",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b569d1f544b0f1d9138d0b5711f966ac973f1692",
"extens... | stackv2 | #include <errno.h>
#include <grp.h>
#include <membership.h>
#include <pwd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <syslog.h>
#include <unistd.h>
#include <uuid/uuid.h>
#include "pam_access_osx.h"
#include "access_conf.h"
access_conf_entry_t*
access_conf_entry_match(
access_conf_en... | 2.21875 | 2 |
2024-11-18T22:07:36.489289+00:00 | 2019-10-09T12:40:17 | 839da48246765a3e747f0dc5b756525c70b3f42b | {
"blob_id": "839da48246765a3e747f0dc5b756525c70b3f42b",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-09T12:40:17",
"content_id": "a219c6b3cfb367eaa42a114e50994ed5cf73beb3",
"detected_licenses": [
"MIT"
],
"directory_id": "22601301bf242b4d7ff29be21cb981adcff2dd13",
"extension": "c"... | stackv2 | #Reverse the order of the bits in a given integer.
#
#Example
#
#For a = 97, the output should be mirrorBits(a) = 67.
#
#97 equals to 1100001 in binary, which is 1000011 after mirroring, and that is 67 in base 10.
#
#For a = 8, the output should be mirrorBits(a) = 1.
#
#include <stdio.h>
int mirrorBits(int a) {
i... | 3.671875 | 4 |
2024-11-18T22:07:36.621793+00:00 | 2015-10-12T14:38:43 | a440811383abf26522939fbd20a108cde6ec4df0 | {
"blob_id": "a440811383abf26522939fbd20a108cde6ec4df0",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-12T14:38:43",
"content_id": "004a9df03c1af18d63fa1b8fc1148e66c539ef7d",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "cda2815b7c6efb39d6efe7cc42031fcb454a3617",
... | stackv2 | // Copyright (c) 2012-2013 Alexander Duchene
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <hpxc/threads.h>
#include <stdio.h>
#include <stdlib.h>
#if !defined(_MSC_VER)
# include <unistd.h>
# i... | 2.875 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.