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-19T01:49:05.063869+00:00 | 2020-09-09T19:49:47 | 3989801c5ce46f2a33c217effd0de28198b5d1d7 | {
"blob_id": "3989801c5ce46f2a33c217effd0de28198b5d1d7",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-09T19:49:47",
"content_id": "4772be41e69b4d94cb0dc5822e05371b5a9a24c7",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "72e27c99fb55cbcd5ffd460d3c98a78d54467ead",
"extens... | stackv2 | // This code is part of the Problem Based Benchmark Suite (PBBS)
// Copyright (c) 2011 Guy Blelloch and the PBBS team
//
// 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.109375 | 2 |
2024-11-19T01:49:05.133889+00:00 | 2020-09-12T17:58:53 | 8fe430968d0a39b8d3a46c7c036593206afc3647 | {
"blob_id": "8fe430968d0a39b8d3a46c7c036593206afc3647",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-12T17:58:53",
"content_id": "a80096d4983ac9a995be201997cb2129357bbbfc",
"detected_licenses": [
"MIT"
],
"directory_id": "a1587f9ac1b421cbf7e0f54fa16efa65f539c8eb",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_color_namstat.c :+: :+: :+: ... | 2.3125 | 2 |
2024-11-19T01:49:05.932513+00:00 | 2020-04-16T20:49:34 | d650b937fc7f9c719b881d28960f6a23f82b8905 | {
"blob_id": "d650b937fc7f9c719b881d28960f6a23f82b8905",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-16T20:49:34",
"content_id": "4d5ebbd8c0dada85d5d07e3c152280f0c61f82c9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "90dd32f913ef74833946f03a5b43d7cdfed209b8",
"extensio... | stackv2 | /*D***********************************************************
* Modul: DBI - database select
* get a HOST DLG_PARTS from a DL
*
* Copyright: yafra.org, Basel, Switzerland
**************************************************************/
#include <mpmain.h>
#include <mpproapi.h> /* Prototypes f�... | 2.375 | 2 |
2024-11-19T01:49:06.101343+00:00 | 2019-04-23T14:55:22 | 74dd19681dff291555b43e3b3fb7ea6d19ec74f3 | {
"blob_id": "74dd19681dff291555b43e3b3fb7ea6d19ec74f3",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-23T14:55:22",
"content_id": "195b2cd639c626a636dd46c23a9b775b82adc216",
"detected_licenses": [
"MIT"
],
"directory_id": "bbdcf00a7fa9a479a5d44c7457babf629a4dec71",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
#define MAX_LEN 512
#define READ 0
#define WRITE 1
int main(int argc, char* argv[]) {
if(argc != 2) {
printf("Usage: ./p3a <file_name>\n");
exit(1);
}
int fd[2],n;
char buffer[MAX_LEN... | 2.59375 | 3 |
2024-11-19T01:49:06.208221+00:00 | 2023-09-02T14:55:31 | 3518f9872afb3760aef85aec49d15198dea27a7b | {
"blob_id": "3518f9872afb3760aef85aec49d15198dea27a7b",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T14:55:31",
"content_id": "33e5f7508adb697a1990ef5fc496f3581d7c0a4b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca",
"extens... | stackv2 | #ifndef GEN_BOARD_CONF_H_
#define GEN_BOARD_CONF_H_
#include <stdint.h>
#include <stddef.h>
struct field_int {
const char *name;
const char *val;
};
struct field_reg_map {
const char *name;
const char *baseaddr;
const char *len;
};
struct field_pin {
const char *name;
const char *port;
const char *n;
const... | 2.109375 | 2 |
2024-11-19T01:49:06.268048+00:00 | 2019-03-23T22:28:53 | a6b7222d7b6ee87c0c80a3851e979260d52938ca | {
"blob_id": "a6b7222d7b6ee87c0c80a3851e979260d52938ca",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-23T22:28:53",
"content_id": "46a41ca8e8e873744b7fbbf8e9f7283c82cb19aa",
"detected_licenses": [
"MIT"
],
"directory_id": "6b82964d463d65f773f4278121d66a6baec98d92",
"extension": "c"... | stackv2 | /*
** Filename: vnc2-pdi-programmer.c
**
** Automatically created by Application Wizard 2.0.2
**
** Part of solution vnc2-pdi-programmer in project vnc2-pdi-programmer
**
** Comments:
**
** Important: Sections between markers "FTDI:S*" and "FTDI:E*" will be overwritten by
** the Application Wizard
*/
#include <strin... | 2.40625 | 2 |
2024-11-19T01:49:06.629155+00:00 | 2014-12-10T19:41:29 | 31e6f98e89f5c4980ce061b80c88b21f3545775a | {
"blob_id": "31e6f98e89f5c4980ce061b80c88b21f3545775a",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-10T19:41:29",
"content_id": "aa284c96288a4ecc662e71b626f3bdf4b23d3eb2",
"detected_licenses": [
"MIT"
],
"directory_id": "74ba20126d2bdb447d27fb2a4bf6ac618755a131",
"extension": "c"... | stackv2 | #include"array.h"
#include<stdlib.h>
#include<string.h>
static const float FACTOR = 1.5;
static const size_t INIT = 10;
static inline void appendDouble( double d, double** p_arr, size_t i, size_t* p_n ){
double* arr = *p_arr;
size_t n = *p_n;
//check that enough capacity remains in arr
if( i >= n... | 2.890625 | 3 |
2024-11-19T01:49:06.719055+00:00 | 2020-03-23T10:51:23 | d9a92ba2c7546253fcc97b8dd81405ae32130956 | {
"blob_id": "d9a92ba2c7546253fcc97b8dd81405ae32130956",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-23T10:51:23",
"content_id": "174ef5514cd326baa47affa75260882ef6293b7d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "cd4ec3b6871715a38d2f54bff533df5a35a1cf98",
"extens... | stackv2 | /*! \file
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
2015, 2016, 2017, 2018
University Corporation for Atmospheric Research/Unidata.
See \ref copyright file for more info.
*/
/*
Open a netcdf-4 file with horrendously l... | 2.234375 | 2 |
2024-11-19T01:49:06.809694+00:00 | 2023-08-02T17:24:06 | 6ef9bb6d6b60c661f813f631bbd1ab2e630ff91d | {
"blob_id": "6ef9bb6d6b60c661f813f631bbd1ab2e630ff91d",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-02T17:24:06",
"content_id": "218313c048dd63f5d1c3bb247b63a5d0f0c84e07",
"detected_licenses": [
"Apache-2.0",
"NCSA"
],
"directory_id": "bea347f558db7ef3521038bc4089471e9b563307",... | stackv2 | /**
* Authors: Claude Abounegm and Barry Wittman
*/
#include <standard/Array.h>
#include <stdlib.h>
shadow_Array_t* __allocateArray(shadow_Class_t* class, shadow_ulong_t elements, shadow_boolean_t nullable);
void __destroyArray(shadow_Array_t* array);
ArrayData* __shadow_standard__Array_getData(shadow_Array_t* shad... | 2.71875 | 3 |
2024-11-19T01:49:07.610826+00:00 | 2018-09-04T01:14:24 | 8867ff65c65f4d2fe7c2d0c767fc24be401dc440 | {
"blob_id": "8867ff65c65f4d2fe7c2d0c767fc24be401dc440",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-04T01:14:24",
"content_id": "1aeac967da881529351ac7d06f5512a4c6041b83",
"detected_licenses": [
"MIT"
],
"directory_id": "1f09ad361fbe1801636fbfc1b4db55b29e0d626b",
"extension": "c"... | stackv2 | /*
Código para somar dois grandes números
*/
#include <stdio.h>
#include <stdlib.h>
struct list
{
void *head; // Digito mais significativo
void *last; // Digito menos significativo
int n; // Numero de digitos
};
typedef struct list Num;
struct node
{
char item; // Digito
struct node *pre... | 3.9375 | 4 |
2024-11-19T01:49:07.721905+00:00 | 2017-04-22T07:09:21 | 50d824ede7034db14a726b7a07c7a2669117fd88 | {
"blob_id": "50d824ede7034db14a726b7a07c7a2669117fd88",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-22T07:09:21",
"content_id": "be5edd56f61aed64f884c56e65b62b73a98cc14d",
"detected_licenses": [
"MIT"
],
"directory_id": "463a377b1138a337e0a7776c403dddadb144f251",
"extension": "c"... | stackv2 | /*$T \Sources/tools_cmt.c GC 1.150 2011-09-22 20:52:18 */
/*$6
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/
/*$F
... | 2.1875 | 2 |
2024-11-19T01:49:07.796344+00:00 | 2015-08-01T16:29:13 | 7d06f6960faca746e05a8d7417f9210d8986a634 | {
"blob_id": "7d06f6960faca746e05a8d7417f9210d8986a634",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-01T16:29:13",
"content_id": "19fda7863c3462d095e5f8bc209a3133c4ede44f",
"detected_licenses": [
"MIT"
],
"directory_id": "9df87cf106bcc88028a007c979c19a8e54f9a14d",
"extension": "c"... | stackv2 | #pragma strict_types
#include "../def.h"
inherit MASTER_INDOORS_ROOM;
void create_object(void);
void reset(int arg);
void init(void);
int do_sit(string str);
int do_eat(string str);
int do_drink(string str);
int do_swing(string str);
void create_object(void)
{
::create_object();
set_short("A dining room (w)")... | 2.53125 | 3 |
2024-11-19T01:49:07.896230+00:00 | 2013-11-04T04:32:10 | 036f7ee50993a8835e135ae7e62247e469e930a0 | {
"blob_id": "036f7ee50993a8835e135ae7e62247e469e930a0",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-04T04:32:10",
"content_id": "76c98c80d01434761b6487b15eda8263c68889dd",
"detected_licenses": [
"MIT"
],
"directory_id": "ee08648ba56a5f813668bca2d419d026a9e15093",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "chess.h"
#define WIDTH 17
void printChessBoard(char grid[8][8][33], char pieceTranslator[33]);
void horizontalLine(short int length);
void legalDisplay(char grid[8][8][33], int piece);
void Print_Chess_Board_with_Legal(char grid[8][8][33], char pieceTranslator[33], i... | 3.125 | 3 |
2024-11-19T01:49:08.022651+00:00 | 2020-06-18T22:00:13 | ebe3b70b1e2ec255af826bf79bc1afaa8dc9838b | {
"blob_id": "ebe3b70b1e2ec255af826bf79bc1afaa8dc9838b",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-18T22:00:13",
"content_id": "5883f481d3dc14e0b8e900d4bbf4ca39cc052218",
"detected_licenses": [
"MIT"
],
"directory_id": "573043f43ca49a8873ec9ad1f51f7a86f4bd1a87",
"extension": "c"... | stackv2 | #include <ctype.h>
#include "./autocomplete.h"
char *to_lower_case(char *str)
{
char *t = str;
while (*t) {
*t = tolower(*t);
++t;
}
return str;
}
| 2.03125 | 2 |
2024-11-19T01:49:08.381689+00:00 | 2018-08-04T02:04:37 | 91109b32c5780eacb79bf6fbd2826fb9e4a08a10 | {
"blob_id": "91109b32c5780eacb79bf6fbd2826fb9e4a08a10",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-04T02:04:37",
"content_id": "610344db12a574a6906f2757d2b12c089aa95d41",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "ab831d976e3cc012e362b7b520f25ae5a127d799",
"extens... | stackv2 | #include "luaT.h"
#include "TH.h"
#include "utils.h"
extern void torch_Generator_init(lua_State *L);
extern void torch_Generator_new(lua_State *L);
#ifndef _CWRAP_STR_ARG_TYPES_4821726c1947cdf3eebacade98173939
#define _CWRAP_STR_ARG_TYPES_4821726c1947cdf3eebacade98173939
#include "string.h"
static void str_arg_types... | 2.234375 | 2 |
2024-11-19T01:49:08.527888+00:00 | 2020-06-19T19:57:59 | 65f149191909d30c14bd3990ae86410aaed8ac5c | {
"blob_id": "65f149191909d30c14bd3990ae86410aaed8ac5c",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-19T19:57:59",
"content_id": "10b8ad6b6dad26a4a9e46f9edab9fb8f8b638bd6",
"detected_licenses": [
"MIT"
],
"directory_id": "0bafc58f1e52f622e1a2902e50fcfacbd80a935d",
"extension": "c"... | stackv2 | #include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <ctime>
#include <sys/stat.h>
#include "flow-compiler.H"
#include "stru1.H"
#include "varsub.H"
#include "grpc-helpers.H"
using namespace varsub;
using namespace stru1;
#define DEBUG_CG 0
#define OUT i... | 2.109375 | 2 |
2024-11-19T01:49:08.592128+00:00 | 2019-08-06T14:24:54 | 597d174b9bd7d51c99c95a8d5dfbf2f208c10aa9 | {
"blob_id": "597d174b9bd7d51c99c95a8d5dfbf2f208c10aa9",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T14:24:54",
"content_id": "25e1c61fb0b7d037244ea9b8e9deda51d832041b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "021a3ccdcb91d84629f1de7343981b572840b169",
"extens... | stackv2 |
static char help[] = "Reads a PETSc matrix and vector from a file and solves a linear system.\n\
Test MatMatSolve(). Input parameters include\n\
-f <input_file> : file to load \n\n";
/*
Usage:
ex27 -f0 <mat_binaryfile>
*/
#include <petscksp.h>
extern PetscErrorCode PCShellApply_Matinv(PC,Vec,Vec);
int mai... | 2.328125 | 2 |
2024-11-19T01:49:08.738151+00:00 | 2021-07-26T18:31:53 | 547876f7a854db27f72506f1517a354682b66292 | {
"blob_id": "547876f7a854db27f72506f1517a354682b66292",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-26T18:31:53",
"content_id": "defbbe015d112e907bd88103eafe993dbfd6691c",
"detected_licenses": [
"MIT"
],
"directory_id": "62e9de3ce200c342119efd6e4c029a2e0fd1e87b",
"extension": "c"... | stackv2 | #include "stm32f4xx.h"
#include "stm32f4xx_rcc.h"
#include "stm32f4xx_gpio.h"
#include "stm32f4xx_tim.h"
#include "misc.h"
#include "defines.h"
#include "defines.h"
#include "macros.h"
#include "memmap.h"
#define NOP_ROAD{ \
ASM("nop \n"); \
ASM("nop \n"); \
ASM("nop \n... | 2.046875 | 2 |
2024-11-19T01:49:08.902824+00:00 | 2018-12-03T13:12:48 | 0c38a3c14238e54a50ecdf6aecf4ff35dd16f4c5 | {
"blob_id": "0c38a3c14238e54a50ecdf6aecf4ff35dd16f4c5",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-03T13:12:48",
"content_id": "7adbd829e173324811e1dec9a6dabd12ba59f275",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6b130896a2558b481e7a69587064b9ac284bdeb7",
"extens... | stackv2 | #include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include "log.h"
void
rpcapd_log_init(void)
{
}
void
rpcapd_log(log_priority priority, const char *message, ...)
{
const char *tag;
va_list ap;
/*
* Squelch warnings from compilers that *don't* assume that
* priority always has a valid enum value and ... | 2.71875 | 3 |
2024-11-19T01:49:09.122172+00:00 | 2021-10-01T21:18:06 | f120575d31c0affbfcec07ff365121326918d177 | {
"blob_id": "f120575d31c0affbfcec07ff365121326918d177",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-01T21:18:06",
"content_id": "3b68811164b240d5dda8815655af0410638c3457",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1df12e354137f1d3cdd5256453c473dcd7ab3757",
"extension"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "TAD_lista_aloc_enc.h"
/*
MATEUS SANTOS DE AZEVEDO = 2020100086
RHUAN GONZAGA CUNHA FRANCISCO - 2020100052
*/
TipoLista * opera(TipoLista *p1, TipoLista *p2, int op)
{
TipoLista * resultado = (TipoLista *)malloc(sizeof(TipoLista));
CriaListaVazia(resultado);
... | 2.625 | 3 |
2024-11-19T01:49:10.487189+00:00 | 2021-05-25T08:29:01 | aa1ef7ffc6b7c312877ac3836a5c844ff4342b34 | {
"blob_id": "aa1ef7ffc6b7c312877ac3836a5c844ff4342b34",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-25T08:29:01",
"content_id": "ea8e16573533f3532d3d1bba9dde61a7b12f5329",
"detected_licenses": [
"MIT"
],
"directory_id": "82873b85f33c88a9a717394296a4a658f6903493",
"extension": "c"... | stackv2 | /*
* Reading alias file that contains lines of the form:
* <directory in select format> <external name of directory>
* Copyright (c) 2003 Pertimm by Patrick Constant
* Dev : June 2003
* Version 1.0
*/
#include <loggen.h>
#define DOgMaxToken 10
struct og_token {
int start, end;
};
/* Format is the fo... | 2.4375 | 2 |
2024-11-19T01:49:10.542685+00:00 | 2017-02-05T04:24:47 | 0950c61ede166698dbdd505931479243961b15d9 | {
"blob_id": "0950c61ede166698dbdd505931479243961b15d9",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-05T04:24:47",
"content_id": "f7d454c764682f8e744fb5f4f54cb1425c0bd301",
"detected_licenses": [
"MIT"
],
"directory_id": "6f22129b708bfa82af7e7fb358bcf39f7a10baee",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
/*
Su codigo va aqui
Definan una funcion que cuente la cantidad de bits en un numero
y encuentren la posicion del bit 1 mas alto y la posicion del bit 1 mas bajo.
Las posiciones validas son entre 0 y 31, 0 para la posicion mas baja y 31 para
la posicion mas a... | 3.40625 | 3 |
2024-11-19T01:49:10.633349+00:00 | 2021-04-23T06:04:11 | abfe767d530af9d7d1c1ec455c516724e1ba018d | {
"blob_id": "abfe767d530af9d7d1c1ec455c516724e1ba018d",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-23T06:04:11",
"content_id": "2e15b05805d0b6bdd4a1e0c23e24e6412cce574f",
"detected_licenses": [
"MIT"
],
"directory_id": "50ee36197f18216b1dad907147961e5594301a0d",
"extension": "c"... | stackv2 | #include "curlconn.h"
#include "article.h"
#include "data.h"
#include "rssparser.h"
#include "htmlparser.h"
#include "tokenizer.h"
#include "index.h"
#include "threads_pool.h"
#include <stdlib.h>
#include <assert.h>
/**
* HashSetMapFunction<freq>
* ------------------------
* Update index with [word, frequency] pair... | 2.234375 | 2 |
2024-11-19T01:49:11.253958+00:00 | 2013-08-17T13:59:22 | ff36465db19cad9465ffe749af7ce91ee3becadd | {
"blob_id": "ff36465db19cad9465ffe749af7ce91ee3becadd",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-17T13:59:22",
"content_id": "c4b99096dd7f1a2a593b573332282ae3db812ed8",
"detected_licenses": [
"MIT"
],
"directory_id": "e896fff489e393865421db3ad9760233805c9385",
"extension": "c"... | stackv2 | /*
* itrace
*
* ELF symbols specific routines
*
*/
#include <stdio.h>
#include <elf.h>
#include <link.h>
#include <stdlib.h>
#include <string.h>
#include "elfsym.h"
#include "trace.h"
#include "ptrace.h"
elfsym_info e_info;
inline static uintptr_t adjust_addr(uintptr_t addr)
{
return e_info.pie ? e_info.baddr ... | 2.578125 | 3 |
2024-11-19T01:49:11.745939+00:00 | 2015-03-30T10:43:45 | 4c75d74c4a9a104deb9e6264bdb336f8faa0006f | {
"blob_id": "4c75d74c4a9a104deb9e6264bdb336f8faa0006f",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-30T10:43:45",
"content_id": "e9becebf19fb89ba4d68be291e19a887610fa2b8",
"detected_licenses": [
"MIT"
],
"directory_id": "0ad5980ec3f21756189577fbf488542f9010363a",
"extension": "c"... | stackv2 | #include "ruby.h"
void Init_line_matcher();
VALUE divisors(VALUE self, VALUE number);
void Init_prime_demo() {
VALUE mPrime = rb_define_module("PrimeC");
VALUE mDemo = rb_define_module_under(mPrime, "Demo");
rb_define_module_function(mDemo, "divisors", divisors, 1);
}
VALUE divisors(VALUE self, VALUE number) {... | 2.015625 | 2 |
2024-11-19T01:49:11.894421+00:00 | 2019-01-06T17:21:50 | d36a34e796a347c277aa810679dc21f2c3819a74 | {
"blob_id": "d36a34e796a347c277aa810679dc21f2c3819a74",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-06T17:21:50",
"content_id": "ef8299795f96992922951b95770f94274f62818c",
"detected_licenses": [
"NCSA"
],
"directory_id": "971c5ae1d87cdfbb97723485c3d76c17395b82b0",
"extension": "c... | stackv2 | #include "mini_string.h"
#include "mini_stdlib.h"
extern void abort (void);
typedef struct PgHdr PgHdr;
typedef unsigned char u8;
struct PgHdr {
int y;
struct {
unsigned int pgno;
PgHdr *pNextHash, *pPrevHash;
PgHdr *pNextFree, *pPrevFree;
PgHdr *pNextAll;
u8 inJournal;
short int nRef;
PgHdr *pDirty, *pPrevDirt... | 2.640625 | 3 |
2024-11-19T01:49:11.968397+00:00 | 2022-07-10T15:14:20 | af81a8143b5d8c7ad5c86f65cb377ebc82ad6ff1 | {
"blob_id": "af81a8143b5d8c7ad5c86f65cb377ebc82ad6ff1",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-10T15:14:20",
"content_id": "0ae1f56edd037521f154e04ec5f1f7cf6c605da1",
"detected_licenses": [
"MIT"
],
"directory_id": "10cd6cb61f622d32c46ef0ef303f4f96446e2507",
"extension": "c"... | stackv2 | /*******************************************************************************
* Stefan Bylund 2017
*
* Implementation of layer2_blit_off_screen_row() and
* layer2_blit_off_screen_sub_row() in zxnext_layer2.h.
******************************************************************************/
#include <arch/zxn.h>
... | 2.265625 | 2 |
2024-11-19T01:49:14.876882+00:00 | 2016-06-19T15:22:22 | 2fab26fe8325bd7e4ecee9b4e2ffb4251307f60c | {
"blob_id": "2fab26fe8325bd7e4ecee9b4e2ffb4251307f60c",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-19T15:22:22",
"content_id": "6b4044bb2848dc8d0e8ac5c1b4ac895395d66aeb",
"detected_licenses": [
"MIT"
],
"directory_id": "eee9654ac303f6d66a9dd0095720a1b42356a061",
"extension": "c"... | stackv2 | #include "point_ops.h"
void move_p (point3d *point, dir *d)
{
point->x += d->x;
point->y += d->y;
point->z += d->z;
}
point3d *new_p (point3d *point, vector *vec)
{
point3d *new_point = malloc(sizeof(point3d));
new_point->x = point->x - vec->x;
new_point->y = point->y - vec->y;
new_po... | 2.5 | 2 |
2024-11-19T01:49:15.128059+00:00 | 2011-12-14T16:03:28 | eb1d2f4f8ffec97c244d6d1c2f592c3e232ed848 | {
"blob_id": "eb1d2f4f8ffec97c244d6d1c2f592c3e232ed848",
"branch_name": "refs/heads/master",
"committer_date": "2011-12-15T10:36:06",
"content_id": "637fe0983712252be362f965e6b9df4168e3a65b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1d1108f20062ec4ed26856dc417ece56eb3d7388",
"extensio... | stackv2 | /* redsocks - transparent TCP-to-proxy redirector
* Copyright (C) 2007-2011 Leonid Evdokimov <leon@darkk.net.ru>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apa... | 2.125 | 2 |
2024-11-19T01:49:15.794512+00:00 | 2023-01-30T09:12:04 | a25773b3f647b758a99ff9b5d0c27c790db43727 | {
"blob_id": "a25773b3f647b758a99ff9b5d0c27c790db43727",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-30T09:12:04",
"content_id": "4da7f5ed7f5ac105ecbfaeee3a037acdb1393570",
"detected_licenses": [
"MIT"
],
"directory_id": "53f35a34892d66b1a5cee0ec3ecececec78d5f30",
"extension": "c"... | stackv2 | #include "test.h"
#include <string.h>
typedef struct base64url_test_s {
const char* encoded;
const char* decoded;
size_t decodedLen;
} base64url_test_t;
static base64url_test_t base64url_tests[] = {
// Test vectors from RFC 4648, section 10.
{"", "", 0},
{"Zg", "f", 1},
{"Zg==", "f", 1},
{"Zm8", "fo"... | 2.5 | 2 |
2024-11-19T01:49:15.888987+00:00 | 2022-09-26T22:56:20 | 360bedcb7772d0206d8c2ff06f8173eda4606cbc | {
"blob_id": "360bedcb7772d0206d8c2ff06f8173eda4606cbc",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-26T22:56:20",
"content_id": "4f4bdc857647df1ed02940055365a4be11cbfd19",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "73ea5311653dc8796d2a5fd493a64c8b0ed01966",
"extensio... | stackv2 | #include <string.h>
#include <sys/socket.h>
#ifndef WIN32
#include <arpa/inet.h>
#endif
#include <netinet/in.h>
#include <netdb.h>
#include "chaosvpn.h"
#include "addrmask.h"
struct addr_info ip;
struct string str;
bool ret;
int
main (int argc,char *argv[])
{
log_init(&argc, &argv, LOG_PID, LOG_DAEMON);
log_info(... | 2.421875 | 2 |
2024-11-19T01:49:16.600928+00:00 | 2018-04-09T16:49:39 | 4f36cb32f57ed957e752123a712f58c984a36903 | {
"blob_id": "4f36cb32f57ed957e752123a712f58c984a36903",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-09T16:49:39",
"content_id": "78132f19e004d2a2674e44350d16c75cb9f8e44a",
"detected_licenses": [
"Unlicense"
],
"directory_id": "01ff960cb48739c559a893efad8cdba777b38b63",
"extension... | stackv2 | #include <stdio.h>
#include <math.h>
#include <conio.h>
float uzaklik(int, int, int, int, int);
int main(void)
{
int a, b, c, x, y;
float u;
printf("ax+by+c denkleminin degerlerini giriniz\n---------------------------------------\n");
printf("a degeri: ");
scanf("%d", &a);
printf("b degeri: ");
scanf("%d",... | 3.234375 | 3 |
2024-11-19T01:49:16.711979+00:00 | 2021-09-02T01:01:57 | e8d2bb2ea1f5f49948ed092f06a1b714bee03ff0 | {
"blob_id": "e8d2bb2ea1f5f49948ed092f06a1b714bee03ff0",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-02T01:01:57",
"content_id": "ce179cbce505b75d12615e46db4d60a518a7bc52",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "979b595a2f8cb2df6846c1d9d666d2a93e6f0823",
"extensio... | stackv2 | /* get cookie from Request headers */
struct ast_variable *CVE_2014_2286_VULN_ast_http_get_cookies(struct ast_variable *headers)
{
struct ast_variable *v, *cookies=NULL;
for (v = headers; v; v = v->next) {
if (!strcasecmp(v->name, "Cookie")) {
char *tmp = ast_strdupa(v->value);
if (cookies) {
ast_variabl... | 2.015625 | 2 |
2024-11-19T01:49:17.809909+00:00 | 2023-03-25T08:13:19 | 2e1ad162b9f2b13b1a62c41d543c3bc8f44abb6d | {
"blob_id": "2e1ad162b9f2b13b1a62c41d543c3bc8f44abb6d",
"branch_name": "refs/heads/main",
"committer_date": "2023-03-25T08:13:19",
"content_id": "070efbb7f36a9fdf7bd2d2a212624c6f7415934d",
"detected_licenses": [
"MIT"
],
"directory_id": "1cc5d45273d008e97497dad9ec004505cc68c765",
"extension": "c",
... | stackv2 | #include <uv.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//
// 测试 libuv tty 操作控制台
// 输出一段有颜色的文字
//
void uv_tty_test(void) {
uv_tty_t tty;
uv_buf_t buf[3];
unsigned i, len = sizeof buf / sizeof *buf;
uv_loop_t * loop = uv_default_loop();
// 目前只对 tty 控制台处理
if (uv_guess_handle(... | 2.65625 | 3 |
2024-11-19T01:49:18.431872+00:00 | 2016-02-08T01:01:27 | 88358d72a98144dbf8a7a21d89c1144939b08318 | {
"blob_id": "88358d72a98144dbf8a7a21d89c1144939b08318",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-08T01:01:27",
"content_id": "08a150dbb92ced67d2217bf2c9ae265a991dae90",
"detected_licenses": [
"MIT"
],
"directory_id": "f0a2f33cf2031726b9c65a6ddbd77516fc266395",
"extension": "c"... | stackv2 |
#include "stuff.h"
#include "search.h"
int debug(func)
char *func;
{
extern int Debug;
int who = RUSAGE_SELF;
struct rusage *rusage;
switch(Debug)
{
case(TRACE):
{
rusage = (struct rusage*)malloc(sizeof(struct rusage));
getrusage(who, rusage);
printf("\n*%s memory = %d \n", func, rus... | 2.171875 | 2 |
2024-11-19T01:49:18.604812+00:00 | 2018-11-12T01:54:10 | c6b766a103fc87d5e3396ee35384632c5b508377 | {
"blob_id": "c6b766a103fc87d5e3396ee35384632c5b508377",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-12T01:54:10",
"content_id": "41bad855af20a049c1d04b9cd3610e5391c4b499",
"detected_licenses": [
"MIT"
],
"directory_id": "35f0288c6311f56b37443edc2c8c76cbd8ecd53e",
"extension": "c"... | stackv2 | #include "pwm.h"
#include "capture.h"
#include "key.h"
uint16_t capture = 0;
__IO uint16_t CCR1Val=100;
__IO uint16_t CCR2Val=1000;
void pwm_Init()
{
TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure;
TIM_OCInitTypeDef TIM_OCInitStructure;
GPIO_InitTypeDef GPIO_InitStructure;
NVIC_InitTypeDef NVIC_InitStructure;
/... | 2.515625 | 3 |
2024-11-19T01:49:18.791377+00:00 | 2018-12-17T18:52:46 | a17bdfca147433965e043a62b4af4a98fc6fb5f9 | {
"blob_id": "a17bdfca147433965e043a62b4af4a98fc6fb5f9",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-17T18:52:46",
"content_id": "c4e678ef5caa954edf1e99968a18e9e6cacf60b5",
"detected_licenses": [
"MIT"
],
"directory_id": "bcec689a9bbbaf16dacf61b7db9920461128d588",
"extension": "h"... | stackv2 | #ifndef INCLUDE_SRC_RGBWA_H
#define INCLUDE_SRC_RGBWA_H
#include <Arduino.h>
#include "rgbw.h"
/**
* Structure representing a color with alpha channel (transparency).
*/
struct rgbwa
{
/** Initializes a default color (transparent). */
rgbwa(): color(rgbw::black), a(0.0) { }
/** Initializes an opaque color (i.e.... | 2.359375 | 2 |
2024-11-19T01:49:19.212652+00:00 | 2021-03-29T22:04:15 | c9a9dd5b9ad0e0ace3b694ff684e0c5fa70e0f69 | {
"blob_id": "c9a9dd5b9ad0e0ace3b694ff684e0c5fa70e0f69",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-29T22:04:15",
"content_id": "8e6759eed920d30d6b73ef3a3a40d0af1fd4cb7f",
"detected_licenses": [
"MIT"
],
"directory_id": "a3ec920ca8602da600aa8c0e2a80bf8c153eae9b",
"extension": "c"... | stackv2 | #include "munit/munit.h"
#define LA_IMPLEMENTATION
#include "../la.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
static u64 fnv1a(const void *buf) {
const u8 *p = (const u8*)buf;
u64 hash = 2166136261;
while (*p) {
hash = hash ^ *p++;
hash = hash * 16777619;
}
return hash;
}
la_hashmap_dec... | 2.109375 | 2 |
2024-11-19T01:49:19.302806+00:00 | 2015-12-06T13:16:35 | 1c12321723ebb1863e426bac41d324acbc9f9392 | {
"blob_id": "1c12321723ebb1863e426bac41d324acbc9f9392",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-06T13:16:35",
"content_id": "9e21ca500739c215bfbe62df53851a781536e5e4",
"detected_licenses": [
"MIT"
],
"directory_id": "26fc3b4f94877eb6dd96e9aee2c0e6d06551732e",
"extension": "h"... | stackv2 | /**********************************
* Project: Game of Life
* Filename: gol_font.h
* Description: A szovegmegjelenitessel kapcsolatos fuggvenyek
*
* Copyright Telek Istvan 2015
*
**********************************/
#ifndef __GOL_FONT_H_INCLUDED__
#define __GOL_FONT_H_INCLUDED__
/** \brief Bet... | 2.296875 | 2 |
2024-11-19T01:49:19.416905+00:00 | 2020-04-16T12:19:50 | 5fced11ea0b805beece8946a943cfcb00c283ae3 | {
"blob_id": "5fced11ea0b805beece8946a943cfcb00c283ae3",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-16T12:19:50",
"content_id": "32e07e880425851c3b49e58609a64989ee1b6b87",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3fc387c26593a33355fadb857d3f9241566509c4",
"extensio... | stackv2 | /*
Copyright 2020 Ron Triepels
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | 2.046875 | 2 |
2024-11-19T01:49:19.479395+00:00 | 2019-02-26T14:23:03 | 69650850f608d6ea14c7c6f1fdfbbee70adb76df | {
"blob_id": "69650850f608d6ea14c7c6f1fdfbbee70adb76df",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-26T14:23:03",
"content_id": "19d3e8e7570826d018676ad58ff0270ba5ab680f",
"detected_licenses": [
"MIT"
],
"directory_id": "d22e5b6a4cbcb18178c859cdf0fcf3b6847a122b",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* wchar.c :+: :+: :+: ... | 2.890625 | 3 |
2024-11-19T01:49:19.707757+00:00 | 2015-12-11T16:25:09 | b9a7d2020c24da9fb9eaf9588534a5e2b938ebdd | {
"blob_id": "b9a7d2020c24da9fb9eaf9588534a5e2b938ebdd",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-11T16:25:09",
"content_id": "339b5b7bfab496b902bac4521ffa6e7f933d7fd8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5d9fdaf25959ec08c930218ded2550fb27bd71b6",
"extensio... | stackv2 | /* Copyright 2015 Codethink Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2.140625 | 2 |
2024-11-19T01:49:19.817500+00:00 | 2015-07-04T19:45:41 | 195887b44970c70a60a257461aac22e2354fdf4d | {
"blob_id": "195887b44970c70a60a257461aac22e2354fdf4d",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-04T19:45:41",
"content_id": "3630e2942c3ac7aef115941a595f0395719adcd9",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6caae2fd1e10045419e1723fe183ff81efd63dfa",
"extens... | stackv2 | /*
* Copyright (C) 2002-2005 Josh A. Beam
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list o... | 2.453125 | 2 |
2024-11-19T01:49:20.033606+00:00 | 2017-03-12T17:51:02 | 9e1d8a253d9f6a71f6bf97ec96943390a840a9a2 | {
"blob_id": "9e1d8a253d9f6a71f6bf97ec96943390a840a9a2",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-12T17:51:02",
"content_id": "36e2ec73fe5ead19eef69cd3a293040d7b3434a1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8f7837d77336abb4cf70eeeeffb75f820cd55b5e",
"extens... | stackv2 |
// DEBUG MACRO - TO BE REMOVED
//
// a ....: FILE * where to write to (e.g., stderr)
// v ....: Name/Identifier for the data to be debugged
// b ....: Pointer to the Unsigned Char buffer
// c ....: Size (bytes) of the buffer to dump
#define DEBUG_UNSIGNED(a,v,b,c) \
{ size_t _idx; ... | 2.4375 | 2 |
2024-11-19T01:49:20.105790+00:00 | 2020-08-18T20:09:15 | 7f9bf2dcf933f5fc03e1daa144974dc64e4e7e8c | {
"blob_id": "7f9bf2dcf933f5fc03e1daa144974dc64e4e7e8c",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-18T20:09:15",
"content_id": "0920f8ec7e4f834c30ca39c088acc88f62526b02",
"detected_licenses": [
"MIT"
],
"directory_id": "7685c4bbaa10ebbf931499b763adb49eea53a08f",
"extension": "h"... | stackv2 | /*
ToZero_4x_I2C.h - Library for use with the ToZero 4x adapter board that maps
the pinout of the Teensy family of microcontrollers (3.2, 3.5, 3.6, LC) to
the Raspberry Pi GPIO header
Copyright (c) 2020 Christopher (@ZodiusInfuser) Parrott. All right reserved.
*/
#ifndef _TO_ZERO_4X_I2C_H
#define _TO_ZERO_4X_I2C_H
#... | 2.0625 | 2 |
2024-11-19T01:49:20.193847+00:00 | 2022-12-10T05:31:04 | ac64c267b776d68f1d795552e892d20efa1cb6e5 | {
"blob_id": "ac64c267b776d68f1d795552e892d20efa1cb6e5",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-10T05:31:04",
"content_id": "9cf7d955dbe76716b26d19f4440446194e23cb80",
"detected_licenses": [
"MIT"
],
"directory_id": "d782f4de145f17f27147332b7dc7a84bf091dc0e",
"extension": "c"... | stackv2 | // SPDX-License-Identifier: MIT
#include "console.h"
#include "x86.h"
#define PORT 0x3f8 /* COM1 */
void console_init(void) {
outb(PORT + 1, 0x00); // Disable all interrupts
outb(PORT + 3, 0x80); // Enable DLAB (set baud rate divisor)
outb(PORT + 0, 0x01); // Set divisor to 1 (lo byte) 115200 baud
ou... | 2.671875 | 3 |
2024-11-19T01:49:20.664592+00:00 | 2013-12-10T00:24:19 | 80b83df3d274321b6d1198ccf4d40aa285d7efde | {
"blob_id": "80b83df3d274321b6d1198ccf4d40aa285d7efde",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-10T00:24:19",
"content_id": "c5f6e91f54eeb8482317550120a51159121ca46e",
"detected_licenses": [
"MIT"
],
"directory_id": "0f126f1c6c89d597ca30df06a73dc5546274a31d",
"extension": "c"... | stackv2 |
#include "Result.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Return a result with handle set to string if a_value is 5
Result findPattern(const char *a_buffer, const char *a_pattern) {
Result res;
char *pos = strstr(a_buffer, a_pattern);
if (pos)
{
res.status = OK;
... | 3.1875 | 3 |
2024-11-19T01:49:20.897877+00:00 | 2023-08-27T19:14:02 | aea99b824542c1197e34c1566247e4ae42d8c2fe | {
"blob_id": "aea99b824542c1197e34c1566247e4ae42d8c2fe",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-27T19:14:02",
"content_id": "b7a882b25975d06b1deec38e6767707f34e12168",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7c857119fe1505b1d80d6e62969661c06dc1a2f4",
"extens... | stackv2 | /** @file
Multicast Listener Discovery support routines.
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "Ip6Impl.h"
/**
Create a IP6_MLD_GROUP list entry node and record to IP6 service binding data.
@param[in, out] IpSb ... | 2.5 | 2 |
2024-11-19T01:49:20.963392+00:00 | 2022-11-05T17:46:59 | 647186c0a8d3bb430355509ffbfebb54e210903a | {
"blob_id": "647186c0a8d3bb430355509ffbfebb54e210903a",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-05T17:46:59",
"content_id": "34e8eb3abbcc45b1481ee71ad50bd07ffbb36f25",
"detected_licenses": [
"MIT"
],
"directory_id": "c07d5913ecf3a23e5ba5b7fb1ed5f39550a86e96",
"extension": "c"... | stackv2 | /*
seq.exe [/C WIDTH START-VAL COUNT STEP-VAL | /P PLAIN-PTN | PLAIN-PTN]...
- - -
例:
seq.exe "この行は " /C 1 1 100 1 " 行目です。"
*/
#include "C:\Factory\Common\all.h"
static void PrintSq(char *line)
{
uint back_ai = getArgIndex();
if(!hasArgs(1))
{
cout("%s\n", line);
}
else if(argIs("/C"))
{
uint width;
... | 2.90625 | 3 |
2024-11-19T01:49:21.140768+00:00 | 2018-07-30T02:31:03 | 0d374b85f10bbbaab229d4becf110d9cbde9a28a | {
"blob_id": "0d374b85f10bbbaab229d4becf110d9cbde9a28a",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-30T02:31:03",
"content_id": "64b5be66f7eb3e278a0278b06c90b8abafc915c9",
"detected_licenses": [
"MIT"
],
"directory_id": "9c6a1e4a73b0e7243a54a483fa9ea5a8fb8978cc",
"extension": "c"... | stackv2 | <<<<<<< HEAD
#include <stdio.h>
#include <fcntl.h>
#include <linux/i2c-dev.h>
#include <linux/i2c.h>
int main (void)
{
int deviceHandle;
int readBytes;
char buffer[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
// initialize buffer
buffer[0] = 0x55;
// address of DS1307 RTC device
int deviceI2CAddress = 0x5d;
... | 2.609375 | 3 |
2024-11-19T01:49:21.456428+00:00 | 2020-11-02T15:35:13 | 8fc375f37fc3e4534066a4c5cd5503f7eb8fed14 | {
"blob_id": "8fc375f37fc3e4534066a4c5cd5503f7eb8fed14",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-02T15:35:13",
"content_id": "676249742631e422d015c3c7eee1006b9eb85d7a",
"detected_licenses": [
"MIT"
],
"directory_id": "88e70e627d8b9e85092cf2945c72d9c540cd4b2a",
"extension": "c"... | stackv2 |
#include "types.h"
#include "defs.h"
#include "memlayout.h"
#include "mmu.h"
#include "param.h"
#include "proc.h"
#include "spinlock.h"
#include "traps.h"
#include "x86.h"
struct node* find_node() {
int found = 0;
int ptr = 0;
while(!found && ptr < NPROC) {
if (avl_nodes[ptr].use == 0) {
... | 2.703125 | 3 |
2024-11-19T01:49:21.696237+00:00 | 2016-04-04T22:20:15 | 34592483ade094bdfd9a0f0e3de64d07f51c6329 | {
"blob_id": "34592483ade094bdfd9a0f0e3de64d07f51c6329",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-04T22:20:15",
"content_id": "197f88e70fc40d96efbeb63a20e03367eae567cb",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "71e03b9356984d70d1d8e3cc0ee5bb3a87e79fd5",
"extens... | stackv2 | /*
* Copyright (c) 2014 Machine Zone, Inc.
*
* Original author: Lev Walkin <lwalkin@machinezone.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 code must retain the above c... | 2.46875 | 2 |
2024-11-19T01:49:21.892467+00:00 | 2019-07-17T06:58:26 | e0804919a889eb64f66a8b7764e7c7ed1c872519 | {
"blob_id": "e0804919a889eb64f66a8b7764e7c7ed1c872519",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-17T06:58:26",
"content_id": "378843d8d500c342378b89d9196a36d9a6cac345",
"detected_licenses": [
"MIT"
],
"directory_id": "e1a2a1245dbd3d92e8b2aeb49b33aba5df09594b",
"extension": "c"... | stackv2 | /*
* thread_cond.c
*
* Copyright (c) 2016-2019 Tim <and-joy@qq.com>
* All rights reserved.
*/
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <pthread.h>
#define AWE_LOG_TAG "thread_cond"
#include "awe/log.h"
#include "awe/mutex.h"
#include "awe/cond.h"
#include "arch_thre... | 2.609375 | 3 |
2024-11-19T01:49:22.033796+00:00 | 2018-03-16T04:29:12 | 91170a9a2631f76c1e76e74c097717e3339e4a45 | {
"blob_id": "91170a9a2631f76c1e76e74c097717e3339e4a45",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-16T04:29:12",
"content_id": "5171a0003b5be7b4f7e0506b5dfae57b0285bb94",
"detected_licenses": [
"ISC"
],
"directory_id": "b15d1d9b90000548c8a21676e6d45418a81916c5",
"extension": "h"... | stackv2 | /* ISC license. */
#ifndef GENSETDYN_H
#define GENSETDYN_H
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <skalibs/functypes.h>
typedef struct gensetdyn_s gensetdyn, *gensetdyn_ref ;
struct gensetdyn_s
{
stralloc storage ;
genalloc freelist ; /* array of unsigned int */
unsigned int esize... | 2.265625 | 2 |
2024-11-19T01:49:23.276099+00:00 | 2023-05-09T20:34:11 | f9af316ce9fde3b21449fb0ad4c762c617ef8311 | {
"blob_id": "f9af316ce9fde3b21449fb0ad4c762c617ef8311",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-09T20:34:11",
"content_id": "91a4395a1a6eb2c10752c9605c25342add8564a7",
"detected_licenses": [
"Unlicense"
],
"directory_id": "f9f5dbb0b51c6431f3d3f4731a6b832a95684560",
"extension... | stackv2 | # include <kernel/kernel.h>
# include <kernel/user.h>
inherit LIB_CONN; /* basic connection object */
object driver; /* driver object */
/*
* NAME: create()
* DESCRIPTION: initialize
*/
static void create()
{
::create("telnet", MODE_ECHO);
driver = find_object(DRIVER);
}
/*
* NAME: open()
* DESCRIPTI... | 2.265625 | 2 |
2024-11-19T01:49:27.254183+00:00 | 2020-12-05T15:36:40 | 15e292e7713f84bf8124a143c36e8a24e20c3631 | {
"blob_id": "15e292e7713f84bf8124a143c36e8a24e20c3631",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-05T15:36:40",
"content_id": "77c6c14971cd5154ab27db5832ee81fedbaaee8a",
"detected_licenses": [
"MIT"
],
"directory_id": "6113507fc2870701c35d01a5aaaf25615f4ab1dc",
"extension": "c"... | stackv2 | /*
* Copyright (C) 2020 Edward LEI <edward_lei72@hotmail.com>
*
* The code is licensed under the MIT license
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "http_msg.h"
//#define DEBUG
#include "debug.h"
#define MAX_NUM_MSG_LINES 35 /* MAX_NUM_HEADERS + 3 */
httpmsg_t *http_parse_req... | 2.625 | 3 |
2024-11-19T01:49:27.346947+00:00 | 2018-10-17T19:07:57 | facb2bd5d398538521aa369e08616f804160b36a | {
"blob_id": "facb2bd5d398538521aa369e08616f804160b36a",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-17T19:07:57",
"content_id": "391a12ed25b5c341e535aaf50eb21fc1088f49cd",
"detected_licenses": [],
"directory_id": "2b5810c47c46bc927b6b38055e9e094e796ee5d0",
"extension": "c",
"filename... | stackv2 | /* 2003.05.07 - module to do Parzen Intensity Inhomogeneity Correction (PIIC).*/
/*$Header: /data/petsun4/data1/src_solaris/nonlin/RCS/piic.c,v 1.5 2004/11/03 20:48:19 rsachs Exp $*/
/*$Log: piic.c,v $
* Revision 1.5 2004/11/03 20:48:19 rsachs
* Aesthetics.
*
* Revision 1.4 2004/10/28 21:57:27 rsachs
* Remov... | 2.125 | 2 |
2024-11-19T02:01:42.407740+00:00 | 2014-12-31T15:37:15 | 21bff6f48b5c70de2195256700fd8d427b4aa98b | {
"blob_id": "21bff6f48b5c70de2195256700fd8d427b4aa98b",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-31T15:37:15",
"content_id": "9ad2a59a1e891e296a925be93a51c19c07bf1a61",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "12f627014b5cd434f2e945be0a2a37b54a844b1e",
"extens... | stackv2 | /*
* pcode_manager.h
* Created on: Mar 25, 2014
* Author: Guido Rota
*
* Copyright (c) 2014, Guido Rota
* 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 ... | 2.046875 | 2 |
2024-11-19T02:01:42.551405+00:00 | 2018-05-28T22:34:42 | 91dc1e40bfc2b7ede7d0a46f2f5940c7ba25bb9e | {
"blob_id": "91dc1e40bfc2b7ede7d0a46f2f5940c7ba25bb9e",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-28T22:34:42",
"content_id": "b2f7ffdafed8b0ecc454a1a69b498283d8ac8e65",
"detected_licenses": [
"MIT"
],
"directory_id": "aea9456d090d539a46ea4f4bfa44da99f6235399",
"extension": "c"... | stackv2 | #include "cixl/ls.h"
struct cx_ls *cx_ls_init(struct cx_ls *ls) {
ls->prev = ls->next = ls;
return ls;
}
void cx_ls_append(struct cx_ls *ls, struct cx_ls *next) {
next->prev = ls;
next->next = ls->next;
ls->next->prev = next;
ls->next = next;
}
void cx_ls_prepend(struct cx_ls *ls, struct cx_ls *prev) {
... | 2.375 | 2 |
2024-11-19T01:37:28.638539+00:00 | 2020-01-14T00:43:57 | 1c6ba21719e8d943c6166e6893fab17a5022d78e | {
"blob_id": "1c6ba21719e8d943c6166e6893fab17a5022d78e",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-14T00:43:57",
"content_id": "eaec61a6ee7afab1863d01be4f219672babe8673",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2373542b6b84ac7a23c1aee26f585894021dc0e7",
"extens... | stackv2 | #include <stdint.h>
#include <gfx/types.h>
/*
* Here is a highly-tuned version of the AdvMame2x scaler.
*
* REFERENCE: http://scale2x.sourceforge.net/
*/
void
gfxscaleimg2x(struct gfximg *src,
struct gfximg *dest)
{
argb32_t *srcptr;
argb32_t *destptr;
argb32_t val1;
a... | 2.3125 | 2 |
2024-11-19T01:37:28.937813+00:00 | 2016-04-18T20:52:59 | 0d42d33ee1a22e9c28c396ff06cd8a61690fcb7c | {
"blob_id": "0d42d33ee1a22e9c28c396ff06cd8a61690fcb7c",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-18T20:52:59",
"content_id": "87ce6c191018696381b58dae653bc3ca2caedd93",
"detected_licenses": [
"MIT"
],
"directory_id": "ba675962bfafcc08e4ae20eb79457f0fa756146b",
"extension": "c"... | stackv2 | #include "client.h"
int file_desc;
char passbuf[PASSBUFSIZE + 1];
void print_password()
{
printf("password: %s\n", passbuf);
}
int read_password()
{
memset(passbuf, 0, PASSBUFSIZE);
int cnt = read(file_desc, passbuf, PASSBUFSIZE);
if (cnt == -1 && errno == EAGAIN)
{
printf("pipe was empty... | 2.5625 | 3 |
2024-11-19T01:37:29.308778+00:00 | 2023-05-26T07:03:59 | 43c27a8ec2f3ef1f0a45906b20ae8c339639d391 | {
"blob_id": "43c27a8ec2f3ef1f0a45906b20ae8c339639d391",
"branch_name": "refs/heads/hx20-hx30",
"committer_date": "2023-05-26T07:03:59",
"content_id": "b4368b46a825d6d670f850dbc347d42cbcf7a112",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f9e7d65cb784c01a0200145ba8d289afe41d4a56",
"ext... | stackv2 | /* Copyright 2017 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.
*/
/** @file tfdp.c
*MCHP Trace FIFO Data Port hardware access
*/
/** @defgroup MCHP Peripherals TFDP
* @{
*/
#include "common.h"
#include "gpio... | 2.265625 | 2 |
2024-11-19T01:37:29.387586+00:00 | 2021-10-29T19:33:34 | 86f95c1bf1c93c7076c8a0f8f4009f3c61427df3 | {
"blob_id": "86f95c1bf1c93c7076c8a0f8f4009f3c61427df3",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-29T19:33:34",
"content_id": "8abb658ac1cfa5fafab795fc548ec9d599371dfc",
"detected_licenses": [
"MIT"
],
"directory_id": "d6f4245de8d48703508b9b1430b042867625de68",
"extension": "c",
... | stackv2 | #include "smack.h"
#include <assert.h>
#include <math.h>
// @expect verified
// @flag --integer-encoding=bit-vector
int main(void) {
double NaN = 0.0 / 0.0;
double Inf = 1.0 / 0.0;
double negInf = -1.0 / 0.0;
assert(floor(2.9) == 2.0);
double val = __VERIFIER_nondet_double();
if (!__isnan(val) && !__is... | 2.328125 | 2 |
2024-11-19T01:37:29.858403+00:00 | 2020-02-01T00:54:11 | 2118ac3fe6e27e864850400201d711f9d25b2c81 | {
"blob_id": "2118ac3fe6e27e864850400201d711f9d25b2c81",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-01T00:54:11",
"content_id": "3f672ec8d87eda97b2d8ec2506b2536d7297f18d",
"detected_licenses": [
"MIT"
],
"directory_id": "eda5f7753deed08d7e90f5768056c59073a879ef",
"extension": "c"... | stackv2 | #include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
typedef void (*FnPtr) (void);
static pthread_mutex_t mut;
static pthread_cond_t cnd;
static FnPtr d;
static void*
native_starter (void *arg);
typedef void *MonoDomain;
typedef void *MonoObject;
typedef void *MonoAss... | 2.75 | 3 |
2024-11-19T01:37:30.186964+00:00 | 2021-07-06T19:26:28 | 5bc006b5b316506e5457b25ef39941859bee7ea2 | {
"blob_id": "5bc006b5b316506e5457b25ef39941859bee7ea2",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-06T19:26:28",
"content_id": "a59ade864106aac9f21719f784342e15896267da",
"detected_licenses": [
"MIT"
],
"directory_id": "d51a2274489fca9276ec99551118553632f819bb",
"extension": "c"... | stackv2 | #define FUSE_USE_VERSION 30
#include <fuse.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "blahaj.h"
char blahaj_text[] = "blahaj!\n";
static int is_jpeg(const char* path) {
size_t l = strlen(path);
if (l > 4 && (strcmp(pat... | 2.671875 | 3 |
2024-11-19T01:37:30.740554+00:00 | 2021-02-14T16:10:54 | 26b47393bdd08abbb276a5f3283d3236690645ab | {
"blob_id": "26b47393bdd08abbb276a5f3283d3236690645ab",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-14T16:10:54",
"content_id": "51968c3fb6a3149a5971dc858cc77c146e7ce55a",
"detected_licenses": [
"MIT"
],
"directory_id": "4541702f7b20e7ee127730dde50c473df3ce2ef6",
"extension": "c"... | stackv2 | #include "extlib/map.h"
#include <string.h>
#include "extlib/assert.h"
#define MAX_LOAD_FACTOR 0.75
#define INITIAL_CAPACITY 8
#define EMPTY_MARK 0
#define TOMB_MARK 1
#define IS_TOMB(bucket) ((bucket)->hash == TOMB_MARK)
#define IS_EMPTY(bucket) ((bucket)->hash == EMPTY_MARK)
#define IS_VALID(bucket) (!IS_EMPT... | 2.78125 | 3 |
2024-11-19T01:37:30.852105+00:00 | 2021-02-20T18:44:04 | 9ba9a8c897e9c9471bb42c37667c19fecb8c42d6 | {
"blob_id": "9ba9a8c897e9c9471bb42c37667c19fecb8c42d6",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-20T18:44:04",
"content_id": "1d5530c25205f054d46d544d6badbc3be56b6585",
"detected_licenses": [],
"directory_id": "bcb5c44df6746ec4c28a90200c8541bf86a9053f",
"extension": "c",
"filename... | stackv2 | // Sean Szumlanski
// COP 3502, Spring 2019
// =========================
// ListyString: UnitTest08.c
// =========================
// Basic test of destroyListyString(). This does not guarantee memory is being
// freed correctly, but it does check for preventable segmentation faults.
#include <stdio.h>
#include <std... | 2.96875 | 3 |
2024-11-19T01:37:30.923496+00:00 | 2020-01-06T03:24:59 | 52bea6fcde10cb955780e74713275659805ef9a2 | {
"blob_id": "52bea6fcde10cb955780e74713275659805ef9a2",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-06T03:24:59",
"content_id": "2726939c737483aa29eb896323d9f0cada4b8022",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "74f07fe0c8997c2d6a5e89679fc8d746da9ce50d",
"extensio... | stackv2 | #include <stdio.h>
#pragma clang diagnostic push
#pragma ide diagnostic ignored "hicpp-signed-bitwise"
/*
** the bitwise version :
** we apply n - 1 mask to n, and then check that is equal to 0
** it will be true for all numbers that are power of 2.
** Lastly we make sure that n is superior to 0.
*/
static inline int... | 3.171875 | 3 |
2024-11-19T01:37:31.095563+00:00 | 2023-06-29T14:40:32 | 762a78cf1aa2d32cac083ad2af313f6947761195 | {
"blob_id": "762a78cf1aa2d32cac083ad2af313f6947761195",
"branch_name": "refs/heads/main",
"committer_date": "2023-06-29T14:40:32",
"content_id": "4476995a0322e8adc9b036948e4a5599639d4aab",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ffaa662396301e25ea308ef9fcc64175b7646de3",
"extension"... | stackv2 | /* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 2.3125 | 2 |
2024-11-19T01:37:31.266131+00:00 | 2023-08-29T11:30:11 | f0acf692f642eed95a2506f81c4a89fe205b4aa0 | {
"blob_id": "f0acf692f642eed95a2506f81c4a89fe205b4aa0",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T11:30:11",
"content_id": "b2d5f6866e3cb1e95aec3bfb1582b83e5ebe6118",
"detected_licenses": [
"BSD-3-Clause",
"BSD-4-Clause-UC"
],
"directory_id": "07664200f77c4d87baf972e367e77... | stackv2 | /* $NetBSD: ntohs.c,v 1.10 2003/12/04 13:57:31 keihan Exp $ */
/*
* Written by J.T. Conklin <jtc@NetBSD.org>.
* Public domain.
*/
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: ntohs.c,v 1.10 2003/12/04 13:57:31 keihan Exp $");
#endif
#include <sys/types.h>
#undef ntohs
uint16... | 2.328125 | 2 |
2024-11-19T01:37:31.620273+00:00 | 2021-01-17T17:59:37 | 3530716832d8e2413b686eb40f4a5ada0e00d2f2 | {
"blob_id": "3530716832d8e2413b686eb40f4a5ada0e00d2f2",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-17T17:59:37",
"content_id": "ff3dfdb82c5f0705cf6b712f9bddad8cdd1185d0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b8027a3d8e07aba33dd52971b0f1812c677ea083",
"extensio... | stackv2 | TCPSocket socket;
int server_connect_id = 0;
int server_data_id = 0;
bool server_socket_open = false;
void serverDispatch() {
mdmEvent.set(MDM_EVENT_SERVER_DISPATCH);
}
void serverCb() {
tr_debug("Server socket cb");
mdmEvent.set(MDM_EVENT_SERVER_DATA);
}
void serverConnectRepeat() {
server_connect_i... | 2.203125 | 2 |
2024-11-19T01:37:31.834435+00:00 | 2022-11-11T10:50:55 | c316062b604620d1d65b73d3cc7cffbce60957f9 | {
"blob_id": "c316062b604620d1d65b73d3cc7cffbce60957f9",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-11T10:50:55",
"content_id": "4a1fdbd9261c1e978394dd27bba379854b3c1282",
"detected_licenses": [
"MIT"
],
"directory_id": "187b3b9385f262d75b2f0f111a35665d5761c08c",
"extension": "h"... | stackv2 | /*
* gpio hd44780 driver
*
* Not the fastest implementation, since every gpio pin state is
* set/read separately even if the display is connected to
* same "port". But with hd44780 I don't see a real problem
* here so far.
*
* License: MIT
* Authors: Antti Partanen <aehparta@iki.fi>
*/
#ifndef _DRIVERS_GPIO... | 2.125 | 2 |
2024-11-19T02:37:34.361895+00:00 | 2008-12-30T17:44:46 | 863535f73e21b713b77ce147cb73b9ad387574f4 | {
"blob_id": "863535f73e21b713b77ce147cb73b9ad387574f4",
"branch_name": "refs/heads/master",
"committer_date": "2008-12-30T17:44:46",
"content_id": "c3f1d8365c9adb7a0e93eb894f59e0daa5b25793",
"detected_licenses": [
"Zlib"
],
"directory_id": "689dfee7112ba150012c58b01c4a721352cb75a7",
"extension": "c... | stackv2 | // Modified by Francisco Mu�oz 'Hermes' (www.entuwii.net) MAY 2008
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gccore.h>
#include <asndlib.h>
#include "gcmodplay.h"
//#define _GCMOD_DEBUG
#define STACKSIZE 8192
#define SNDBUFFERSIZE (3840<<2) //that's the maximum buffer size for one VBlan... | 2.3125 | 2 |
2024-11-19T02:37:34.560373+00:00 | 2021-05-07T14:07:17 | 0bb7e88c0f37a21206dffc13c1bcfbadee1e1d49 | {
"blob_id": "0bb7e88c0f37a21206dffc13c1bcfbadee1e1d49",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-07T14:07:17",
"content_id": "187a2b17c59163fb5a1f2271a9ec675957a02b36",
"detected_licenses": [
"MIT"
],
"directory_id": "a99e146c733927caac302c8571b3bbd02307a277",
"extension": "c",
... | stackv2 | #include "httpcln.h"
#include "common.h"
#include "lwip/netdb.h"
#include <stdio.h>
#define HTTPCLN_METHOD_GET 0
#define HTTPCLN_METHOD_POST 1
typedef uint8_t httpcln_method_t;
#define HTTPCLN_WAIT_RESULT_NO_DATA_AVAILABLE 0
#define HTTPCLN_WAIT_RESULT_DATA_AVAILABLE 1
#define HTTPCLN_WAIT_RESULT_ERROR -1
... | 2.484375 | 2 |
2024-11-19T02:37:34.700421+00:00 | 2021-08-27T16:47:39 | 70c75a56325e92f50ff913fa9429f39cecd5cb58 | {
"blob_id": "70c75a56325e92f50ff913fa9429f39cecd5cb58",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-27T16:47:39",
"content_id": "c84049ade6513ac7f16816f4d5496e7ba40902ee",
"detected_licenses": [
"MIT"
],
"directory_id": "de4513a6f5c799dcf0222707fa52c5c961590076",
"extension": "h",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef __stack_h__
#define __stack_h__
//booleans
typedef enum
{
false, //0
true //
} Bool;
/* définition d'une pile
- cellule qui contient
un entier et un pointeur vers la cellule suivante.
*/
typedef struct Player
{
signed char username[256];
i... | 2.9375 | 3 |
2024-11-19T02:37:34.838530+00:00 | 2023-09-02T14:55:31 | 08661baddc2c73f72ff16597fefa02ea1d589d32 | {
"blob_id": "08661baddc2c73f72ff16597fefa02ea1d589d32",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T14:55:31",
"content_id": "17ba7dc3a44157ea5690cdb4d60faa86df0d8425",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca",
"extens... | stackv2 | /**
* @file
*
* @date Mar 11, 2020
* @Author Anton Bondarev
*/
#include <util/log.h>
#include <stdint.h>
#include <stdbool.h>
#include <kernel/panic.h>
#include <asm/mipsregs.h>
#include <asm/cacheops.h>
#include <asm/system.h>
#include <asm/io.h>
#include <drivers/mips/global_control_block.h>
#include <embo... | 2.40625 | 2 |
2024-11-19T02:37:34.924803+00:00 | 2014-08-29T12:49:57 | 93ae174db0905bf6be877721d7e3d91270d0724a | {
"blob_id": "93ae174db0905bf6be877721d7e3d91270d0724a",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-28T11:07:08",
"content_id": "652192bf4dfc8703de6a475c81c2c646badb84d5",
"detected_licenses": [
"MIT"
],
"directory_id": "1458b74c77e76b09c4e68c446e69ed1cd9a27f2d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>
#include <SDL2/SDL.h>
#include "jt_types.h"
#include "jt_machine.h"
#include "jt_render.h"
extern jt_machine_t machine;
void *jt_worker (void *data)
{
int id = (uint64_t) data;
int chunk;
for (;;)
{
switch (... | 2.84375 | 3 |
2024-11-19T02:37:35.121539+00:00 | 2014-08-03T15:09:04 | a86f2f18f49226430663fba0686062d50172aadd | {
"blob_id": "a86f2f18f49226430663fba0686062d50172aadd",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-03T15:09:04",
"content_id": "48718c27982aafb3f1924dd4279cd13581169a46",
"detected_licenses": [
"MIT"
],
"directory_id": "fe81378eb8b95be19525f1cbf41af1c622d1bcf5",
"extension": "h"... | stackv2 | #ifndef _OBJECT_ALLOCATOR_H_
#define _OBJECT_ALLOCATOR_H_
#include <cntr2/idef.h>
#include <memheap/heap_def.h>
/*
* the allocator object, allocator is not typical object, it does not have most of the
* method in iobject.h, it only responds to join method plus heap operation method.
*
* 1, allocator_join
* 2, ... | 2.078125 | 2 |
2024-11-19T02:37:36.171460+00:00 | 2020-11-17T08:35:16 | 2d991bea6817148616699b24e95544bc2d4e8ddb | {
"blob_id": "2d991bea6817148616699b24e95544bc2d4e8ddb",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-17T08:35:16",
"content_id": "0500786f609e97bccda0d9b631ea3d2b8ad1e786",
"detected_licenses": [
"MIT"
],
"directory_id": "86442e1873cfc66ce6aa4311bfb8f66933e4b420",
"extension": "c"... | stackv2 | //
// Created by Hugor Chau on 11/16/20.
//
#include "rt.h"
int cam_init(t_cam **dest, t_scn *scn, char *name)
{
t_cam *cam;
if (scn == NULL || dest == NULL || name == NULL)
return (rt_err("Given pointer is NULL"));
// if (scn_name_check(name))
// return (rt_err("cam_init(): invalid name"));
if ((cam = (t_ca... | 2.625 | 3 |
2024-11-19T02:37:36.334988+00:00 | 2021-04-08T16:35:41 | 2b58371eaf0d4a8328852d81502332860a159576 | {
"blob_id": "2b58371eaf0d4a8328852d81502332860a159576",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-08T16:35:41",
"content_id": "70aff2dde5e731bb1ce6892778ea9e785d1b1a76",
"detected_licenses": [
"MIT"
],
"directory_id": "5de4a80e68bd339755039ab25c592a197e9554b6",
"extension": "c",
... | stackv2 | /*
This program will ask for three numbers,
after that it will tell you if those three
numbers may or may not form a triangle.
*/
#include <stdio.h>
// Main fnction
int main(void) {
// Variables to receive the numbers.
int a, b, c;
// Ask for a number three times.
printf("Enter a number: ");
// Store th... | 4.15625 | 4 |
2024-11-19T02:37:36.405684+00:00 | 2020-07-29T09:52:15 | 549d5a349b98f8dd0ef3b04910ca3db1914ffb03 | {
"blob_id": "549d5a349b98f8dd0ef3b04910ca3db1914ffb03",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-29T09:52:15",
"content_id": "dc13af53ec85b88e60505c2c6d393ffec3453103",
"detected_licenses": [
"MIT"
],
"directory_id": "71abd1f67f3b83d159b9922f13b88f356e9fba4b",
"extension": "c"... | stackv2 | #include "ci-config.h"
#include <json-glib/json-glib.h>
#include "ci-logging.h"
#include <glib/gprintf.h>
#include <gtk/gtk.h>
#include "ci-display-elements.h"
#include "ci-call-list.h"
#include <memory.h>
#include "gtk2-compat.h"
#include "ci-utils.h"
#include <stdlib.h>
struct CIConfigVariable {
CIConfigType typ... | 2.203125 | 2 |
2024-11-19T02:37:36.546695+00:00 | 2020-05-19T07:23:36 | bdf1eb82d1c4f4517722987c6ec90486776ebaca | {
"blob_id": "bdf1eb82d1c4f4517722987c6ec90486776ebaca",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-19T07:23:36",
"content_id": "a1b26e672551e7706c868f36aac98945502f31fa",
"detected_licenses": [
"MIT"
],
"directory_id": "f6fc656e3b5ac41357cbab926b095b3535a36d42",
"extension": "c"... | stackv2 | void fill_from_file(TH1D* hist, TString filename = "../data/data1.txt"){
ifstream ifs(filename);
int n_escaped_turn;
while(ifs >> n_escaped_turn){
hist->Fill(n_escaped_turn);
}
}
void fill_from_files(){
int total_bin = 10;
int min_bin = 0;
int max_bin = 10;
TH1D* hist = new TH... | 2.1875 | 2 |
2024-11-19T02:37:36.710190+00:00 | 2017-08-30T04:06:50 | 230ac3b491d7f0af1d4305abc6318b4d8952a8f6 | {
"blob_id": "230ac3b491d7f0af1d4305abc6318b4d8952a8f6",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-30T04:06:50",
"content_id": "99ca40b527723f15324516e51fe7bfabb2c3df67",
"detected_licenses": [
"MIT"
],
"directory_id": "c76591c120978d8307f8da3bbbc47bd385272473",
"extension": "h"... | stackv2 | /*
Interface between Racing wheel and XINPUT Controller library
Compatible w/ PC
Developer: Daniel Nesvera
WTFPL lincense
*/
#ifndef __stm32_xinput_H
#define __stm32_xinput_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f1xx_hal.h"
#define NUM_BUTTONS 15
#define NUM_ANALOG 7
#define ENC... | 2.140625 | 2 |
2024-11-19T02:37:36.771826+00:00 | 2016-11-14T15:28:21 | 6098244982162476dc7bf34264111d2ba33a1b00 | {
"blob_id": "6098244982162476dc7bf34264111d2ba33a1b00",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-14T15:28:21",
"content_id": "49fbbef7e2743d23b386aa460508e9bf5815730c",
"detected_licenses": [
"MIT"
],
"directory_id": "f48df4e300ca20157a1df77c57ce0d2ec44856c4",
"extension": "c"... | stackv2 | #include <GLUT/glut.h>
#include <stdlib.h>
#include <math.h>
GLint xa, ya, xb, yb;
void initGL (void) {
glClearColor (1.0, 1.0, 1.0, 1.0);
glColor3f (0.0, 0.0, 0.0);
glMatrixMode (GL_PROJECTION);
glLoadIdentity ();
gluOrtho2D (0.0, 500.0, 0.0, 500.0);
glMatrixMode (GL_MODELVIEW);
}
void showGraphic (void) {
G... | 2.671875 | 3 |
2024-11-19T02:37:36.897855+00:00 | 2021-02-17T11:15:27 | b82582d7e1bc7bd6838d47ca839204484647e456 | {
"blob_id": "b82582d7e1bc7bd6838d47ca839204484647e456",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-17T11:15:27",
"content_id": "9859966dde96a0dba790e2b348ff3927f4ec34ba",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a5d04aec97e926f1bd9471dbfa8e2654e8a640d9",
"extension"... | stackv2 | # include "sim.h"
void genotype_to_phenotype(Genome * genome, double * c1, Parameters * c2) {
c1[1] = crom2IC(genome -> c1[0]);
c1[2] = crom2IC(genome -> c1[1]);
c1[3] = crom2IC(genome -> c1[2]);
c1[4] = DATA[0][0];
c1[5] = DATA[0][1];
c1[6] = DATA[0][2];
c1[7] = DATA[0][3];
c1[0] = POP_SIZE - (c1[1] + c1[2] +... | 2.109375 | 2 |
2024-11-19T02:37:37.088674+00:00 | 2020-01-12T11:47:08 | addc595fed6f309f1dcf4ad411e6d24aac575234 | {
"blob_id": "addc595fed6f309f1dcf4ad411e6d24aac575234",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-12T11:47:08",
"content_id": "02b8bfb76b8d10afadac436741655099e8b7c302",
"detected_licenses": [
"MIT"
],
"directory_id": "fd3e31a7d28321e057a3806828b1eadccd748591",
"extension": "c"... | stackv2 | //program to find the exponential function
#include<stdio.h>
#include<conio.h>
float exponential(int, float);
int main()
{
int n;
float x;
clrscr ();
printf("Enter the value of n : ");
scanf("%d", &n);
printf("Enter the value of x : ");
scanf("%f", &x);
printf("e^x = %f", exponential(n, x));
getch ();
return ... | 3.53125 | 4 |
2024-11-19T02:37:37.740826+00:00 | 2021-06-16T22:15:57 | 1154909f9434c8c607bbd6a408b164152593d711 | {
"blob_id": "1154909f9434c8c607bbd6a408b164152593d711",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-16T22:39:18",
"content_id": "3eb53d1d7c4aad2d74d12efa76a1541564b6b153",
"detected_licenses": [
"MIT"
],
"directory_id": "c20b4689d45a7302fd93b1bd32cf1a4d04073313",
"extension": "c"... | stackv2 | #include <fudge.h>
#include <kernel.h>
#include <modules/system/system.h>
static struct debug_interface interface;
static struct system_node root;
static struct system_node messages;
static struct system_node send;
static void interface_write(unsigned int level, char *string, char *file, unsigned int line)
{
cha... | 2.25 | 2 |
2024-11-19T02:37:38.958696+00:00 | 2013-05-07T14:22:25 | e339e507165a0282ea1ac155b363662ff2ad2e47 | {
"blob_id": "e339e507165a0282ea1ac155b363662ff2ad2e47",
"branch_name": "refs/heads/master",
"committer_date": "2013-05-07T14:22:25",
"content_id": "f2c9ccc3034c7c236faf3bb10ff1db5222d49aa7",
"detected_licenses": [
"MIT"
],
"directory_id": "10a79b63d0cbf3951face918c9708abb114788fc",
"extension": "c"... | stackv2 | #include <assert.h>
#include <stdio.h>
#include "test_helper.h"
void random_test_start(random_t random) {
random->file = tmpfile();
}
void random_test_final(random_t random) {
rewind(random->file);
}
void random_test_add_number(random_t random, mpz_t number) {
size_t length = (mpz_sizeinbase(number, 2) + 7) / ... | 2.453125 | 2 |
2024-11-19T02:37:39.038525+00:00 | 2021-10-24T08:54:15 | 7b1698950fe921e8c7dfc94c1586b99b8b70a5e2 | {
"blob_id": "7b1698950fe921e8c7dfc94c1586b99b8b70a5e2",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-24T08:54:15",
"content_id": "4c61739e5cecc9b8e14808adacb6e5fd66820d13",
"detected_licenses": [
"MIT"
],
"directory_id": "f56fe3faa198f8c037b5e7557b24cd286444aa80",
"extension": "c"... | stackv2 | static const unsigned char getAO(
const unsigned char* voxels,
const int n1,
const int n2,
const int n3
) {
const bool v1 = n1 != -1 && voxels[n1] != TYPE_AIR,
v2 = n2 != -1 && voxels[n2] != TYPE_AIR,
v3 = n3 != -1 && voxels[n3] != TYPE_AIR;
unsigned char ao = 0;
if (v1) ao += 20... | 2.125 | 2 |
2024-11-19T02:37:39.635920+00:00 | 2021-10-03T05:05:01 | 2e2c49debb9d3acfb84ecc548af359f3f56a4a27 | {
"blob_id": "2e2c49debb9d3acfb84ecc548af359f3f56a4a27",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-03T05:05:01",
"content_id": "ddf0762c21464084c1d84b5a749eee27292c3e51",
"detected_licenses": [
"MIT"
],
"directory_id": "6a47b50684e9a0dcbf145acea402bd97e298c89d",
"extension": "",
... | stackv2 | # include<stdio.h>
# include<stdlib.h>
# include<string.h>
void main()
{
int n1,n2,j;
char *p1,*p2;
printf("enter the size of first string:\n");
scanf("%d",&n1);
p1=(char*)malloc(n1*sizeof(char));
if(p1==NULL)
{
printf("error");
exit(0);
}
printf("enter the size of s... | 3.21875 | 3 |
2024-11-19T02:37:39.691022+00:00 | 2019-05-27T18:24:05 | cbebc9507728d4378351a162b5c7445d63ddcf17 | {
"blob_id": "cbebc9507728d4378351a162b5c7445d63ddcf17",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-27T18:24:05",
"content_id": "af2cf816b248f55fd46eefe217dedb8d91f3ade0",
"detected_licenses": [
"MIT"
],
"directory_id": "d3ebc3037eeef735d4835418de1690a6d562427b",
"extension": "c"... | stackv2 | #include "trie.h"
#include "dynlinks.h"
int test_append() {
struct DynamicLinkArray *s = NewDynamicLinkArray();
struct Link link1 = {.token='a', .next=NULL};
struct Link link2 = {.token='b', .next=NULL};
appendLink(s, link1);
appendLink(s, link2);
int flag = 0;
if (s->len != 2) {
... | 3.34375 | 3 |
2024-11-19T02:37:40.084542+00:00 | 2017-01-30T13:38:42 | 8d2a25bae30c97e1f01ba2fc031e9961ac851c59 | {
"blob_id": "8d2a25bae30c97e1f01ba2fc031e9961ac851c59",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-30T13:38:42",
"content_id": "2577d48603135ba03fe7dcd1802bc039d4e23d30",
"detected_licenses": [
"MIT"
],
"directory_id": "f97af54e26e0a2599f543f554d8dfb3c602686b8",
"extension": "c"... | stackv2 | #include <assert.h>
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include "util.h"
/**
* Reads the nb of particles on the first line of the specified file
* and returns it.
* After this operation, inputFile points on the second line of the file.
*/
long parseNbParticles(FILE *inputFile)
{
assert(f... | 2.90625 | 3 |
2024-11-19T02:37:40.184016+00:00 | 2023-08-16T20:16:17 | a41c936fd68700b0477ec1cbd7a8e405d7c75887 | {
"blob_id": "a41c936fd68700b0477ec1cbd7a8e405d7c75887",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T20:16:17",
"content_id": "8bec8f95afb0c03f006bd3f4f33e87cd06d5ab36",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "245c7d5d14cb26d07bba9629de983913eae6783b",
"extens... | stackv2 | /* ED_locale.h - C locale specific string to number conversions
*
* Copyright (C) 2015-2021, tbeu
* 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... | 2.0625 | 2 |
2024-11-19T02:37:40.713170+00:00 | 2021-10-28T18:49:06 | 0de13b09babe19d06630e1ac908149a50f5131d9 | {
"blob_id": "0de13b09babe19d06630e1ac908149a50f5131d9",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-28T18:49:06",
"content_id": "499208100e15fb622d2f80c010337fcb91fd2ff1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "efba78a78066879d69a6bb6e43cb4199b8ba203a",
"extension"... | stackv2 | /*
* SPDX-FileCopyrightText: 2020 Efabless Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 2.109375 | 2 |
2024-11-19T02:37:40.839405+00:00 | 2018-10-28T16:26:30 | 2ea09386fd4e69a694cd5f414d313344fcb3892e | {
"blob_id": "2ea09386fd4e69a694cd5f414d313344fcb3892e",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-28T16:26:30",
"content_id": "06157ffe942cef95586024e54cce1dc8a5eded1e",
"detected_licenses": [
"MIT"
],
"directory_id": "2f5a8f67e0a18ea4a08c9a0708024ac15397bcaf",
"extension": "c"... | stackv2 | /* \brief zboot - bootloader for ESP8266
* Copyright 2018 Zorxx Software, zorxx@zorxx.com
* Copyright 2015 Richard A Burton, richardaburton@gmail.com
* See license.txt for license terms.
* Based on rBoot from Richard A. Burton
*/
#include <stdlib.h>
#include "zboot-api.h"
#include "zboot_private.h"
#include "espr... | 2.21875 | 2 |
2024-11-19T02:37:41.775860+00:00 | 2021-10-22T01:08:05 | 235c5588d340bf49151b44f208302463ea3697db | {
"blob_id": "235c5588d340bf49151b44f208302463ea3697db",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-22T01:08:05",
"content_id": "a82e837965fa31be2676cc86abad8d8a2e052bfc",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "13bb612caea8391fd50a9159cd45cf15756336a1",
... | stackv2 | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2018 Siberian State University of Telecommunications
* and Information Science. All rights reserved.
* Copyright (c) 2018 Research Organization for Information Science
* and Te... | 2.015625 | 2 |
2024-11-19T02:37:42.080401+00:00 | 2023-09-01T10:01:01 | 06fe53d1ddba0c86bb1638acdd5f61ae92522186 | {
"blob_id": "06fe53d1ddba0c86bb1638acdd5f61ae92522186",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-01T10:22:12",
"content_id": "d5414775274317a92a63d8bfae4090f2530fc470",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "010279e2ba272d09e9d2c4e903722e5faba2cf7a",
"extensio... | stackv2 | /* Lzma2Enc.c -- LZMA2 Encoder
2018-07-04 : Igor Pavlov : Public domain */
#include "Precomp.h"
#include <string.h>
/* #define _7ZIP_ST */
#include "Lzma2Enc.h"
#ifndef _7ZIP_ST
#include "MtCoder.h"
#else
#define MTCODER__THREADS_MAX 1
#endif
#define LZMA2_CONTROL_LZMA (1 << 7)
#define LZMA2_CONTROL_COPY_NO_RESET... | 2.109375 | 2 |
2024-11-19T02:37:43.595278+00:00 | 2020-09-08T02:52:56 | 33901b46e051c53b4ef74fe0979f9be8d4fcd671 | {
"blob_id": "33901b46e051c53b4ef74fe0979f9be8d4fcd671",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-08T02:52:56",
"content_id": "8bc2d504650c3a57552658f01d05f1bfb02ea0d7",
"detected_licenses": [
"MIT"
],
"directory_id": "efb25a20ecddb3a0a8795bc616069fc1a94e5375",
"extension": "c"... | stackv2 | /*
* Copyright 2016 NXP
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
/***********************************************************************/
/* INCLUDES */
/********************************************************************... | 2.21875 | 2 |
2024-11-19T02:37:43.656379+00:00 | 2021-11-15T18:05:57 | cfcff0307751444f3901d7a8d9669984c4e25f57 | {
"blob_id": "cfcff0307751444f3901d7a8d9669984c4e25f57",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-15T18:05:57",
"content_id": "049dc2006932c4f3714cb61297a56dc28ab29164",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6ec0ec5c90d405cde9b871a88404f342ddb2afdc",
"extens... | stackv2 | /**
*
* @file control.c
*
* @copyright 2009-2014 The University of Tennessee and The University of
* Tennessee Research Foundation. All rights reserved.
* @copyright 2012-2016 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
* Univ. Bordeaux. All rights reserved.
* @copyrigh... | 2.03125 | 2 |
2024-11-19T02:37:43.818713+00:00 | 2015-12-10T19:58:29 | b5f5a32eaa5332dc03a3601cc4fd8d455f1589d8 | {
"blob_id": "b5f5a32eaa5332dc03a3601cc4fd8d455f1589d8",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-10T19:59:16",
"content_id": "c0b94e24757af058048c0c221880273a9ea1585e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ac875ae529a08c2d091aa5730ebb8c037cce4283",
"extens... | stackv2 | /**
* \file
*
* \brief A plugin which logs write operations and errors via the native journald interface
*
* \copyright BSD License (see doc/COPYING or http://www.libelektra.org)
*
*/
#ifndef HAVE_KDBCONFIG
# include "kdbconfig.h"
#endif
#include <stdlib.h>
#include <unistd.h>
#include <systemd/sd-journal.h>
... | 2.03125 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.