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-19T03:16:29.250861+00:00 | 2021-03-25T20:18:59 | 4afebc7999a3c20c108c57f96363c8cdb6bac333 | {
"blob_id": "4afebc7999a3c20c108c57f96363c8cdb6bac333",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-25T20:18:59",
"content_id": "e9d19a320b03d856d026087ca7246e060b8dc411",
"detected_licenses": [
"MIT"
],
"directory_id": "1c23211d2c441f85ee8901b591d44209fb663d84",
"extension": "c"... | stackv2 | #include <genesis.h>
#include "portal_map.h"
s16* sector_data_start(s16 sector_idx, portal_map* mp) {
return &mp->sectors[sector_idx*SECTOR_SIZE];
}
s16 sector_wall_offset(s16 sector_idx, portal_map* mp) {
return mp->sectors[sector_idx*SECTOR_SIZE];
}
s16 sector_portal_offset(s16 sector_idx, portal_map* mp) ... | 2.046875 | 2 |
2024-11-19T03:16:31.308916+00:00 | 2015-04-10T13:47:16 | 8210ee8d3c0708f0b999d9c0bd66a8f29c8d72fe | {
"blob_id": "8210ee8d3c0708f0b999d9c0bd66a8f29c8d72fe",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-10T13:47:16",
"content_id": "313d77c3fc5a9629a41fd7180ced426b171e0295",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "fa51a997145cf14e4cb0e4ad037bd026aa769574",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <AL/al.h>
#include <AL/alc.h>
#include "../filter_audio.h"
static void sourceplaybuffer(ALuint source, int16_t *data, int samples, _Bool channels, unsigned int sample_rate)
{
if(!channels || channels > ... | 2.3125 | 2 |
2024-11-19T03:16:33.387247+00:00 | 2018-04-15T23:20:35 | ba705670f9d0a583c6fd2b310185d5145c53ed09 | {
"blob_id": "ba705670f9d0a583c6fd2b310185d5145c53ed09",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-15T23:20:35",
"content_id": "ff23a7f11a2bdc4a8ff671598b8b1bbfd2719998",
"detected_licenses": [
"MIT"
],
"directory_id": "5064182de935788c566c662860d698e4272b6b82",
"extension": "h"... | stackv2 | /*
* Julian Gutierrez
* Northeastern University
* High Performance Computing
*
* Sobel Algorithm Header
*
*/
#ifndef ALG_H
#define ALG_H
#include <stdio.h>
#include <stdlib.h>
#include <ctime>
#include <cuda.h>
#include "../cuda/timing.h"
#include "../config.h"
#define DEFAULT_THRESHOLD 3000
unsigned in... | 2.0625 | 2 |
2024-11-19T03:16:33.705775+00:00 | 2023-08-17T13:00:20 | ef3e43ee4098a29c8867dc1253351ab58ea495c6 | {
"blob_id": "ef3e43ee4098a29c8867dc1253351ab58ea495c6",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T07:43:37",
"content_id": "bec43b60ee2d0833006fd3fe15e5fb8fa8603d7e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c9bc99866cfab223c777cfb741083be3e9439d81",
"extens... | stackv2 | /*
* Arm SCP/MCP Software
* Copyright (c) 2017-2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef MOD_BOOTLOADER_H
#define MOD_BOOTLOADER_H
#include <fwk_element.h>
#include <stddef.h>
#include <stdint.h>
/*!
* \addtogroup GroupModules Modules
* \{
... | 2.265625 | 2 |
2024-11-19T03:16:33.973611+00:00 | 2023-07-15T20:00:27 | a88f0886a78c59c22fdef5f41b96c84e421f0b9b | {
"blob_id": "a88f0886a78c59c22fdef5f41b96c84e421f0b9b",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-15T20:00:27",
"content_id": "bc2fd8b256c37f778091d35c9824410ac46d83d7",
"detected_licenses": [
"Unlicense"
],
"directory_id": "f82defd467c7b33a1518d2df83a81d06b82dfb33",
"extension... | stackv2 | // Inter-integrated circuit (I2C) management
#include "i2c.h"
// I2C timeout, about 2ms
#define I2C_TIMEOUT 100U
// Maximum NBYTES value
#define I2C_NBYTES_MAX 255U
// Count rough delay for timeouts
static uint32_t I2C_CalcDelay(uint32_t delay) {
uint32_t cnt;
if (SystemCoreClock > 100000... | 2.703125 | 3 |
2024-11-19T03:16:34.140562+00:00 | 2016-01-02T03:40:30 | c2faadc0a6422e7d7abd0def0f314fa339b20ea4 | {
"blob_id": "c2faadc0a6422e7d7abd0def0f314fa339b20ea4",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-02T03:40:30",
"content_id": "c81d95e69549d1b762d1626e5b246ec59e30174c",
"detected_licenses": [
"MIT"
],
"directory_id": "16b8e47434186b3fc952d5c183b414bc965eaa64",
"extension": "c"... | stackv2 | /* TomsFastMath, a fast ISO C bignum library.
*
* This project is meant to fill in where LibTomMath
* falls short. That is speed ;-)
*
* This project is public domain and free for all purposes.
*
* Tom St Denis, tomstdenis@gmail.com
*/
#include <tfm.h>
int fp_count_bits( const fp_int *a )
{
int r;
f... | 2.6875 | 3 |
2024-11-19T03:16:34.213982+00:00 | 2021-08-28T20:43:27 | 4a15b74df91e195113994b0373dd218cc502738b | {
"blob_id": "4a15b74df91e195113994b0373dd218cc502738b",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-28T20:43:27",
"content_id": "fabb2bbc9b622f56d98bf5432fc7f9c842ec9804",
"detected_licenses": [
"MIT"
],
"directory_id": "8017daea8a759f90a75eec3341c1cba7fd0c9d1d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int main(void){
// katarları dosyaya yazmak için fputs, okumak için fgets() kullanılır.
FILE *file = fopen("data.txt", "r");
char *katar = (char*)malloc(128);
if (file){
while (fgets(katar, 7, file)){
printf("%s", katar);
}
}
fc... | 2.84375 | 3 |
2024-11-19T03:16:34.486528+00:00 | 2021-01-24T20:25:28 | 42554c23f8709e3cb877f9acf836b989de7d1085 | {
"blob_id": "42554c23f8709e3cb877f9acf836b989de7d1085",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-24T20:25:28",
"content_id": "e3d12d10cf493b157562c8464ef3f968e5691e54",
"detected_licenses": [
"Unlicense"
],
"directory_id": "f7b245336d9f5893da315d567882bc13c4823c1f",
"extension... | stackv2 | /*
* Name: MicroEMACS
* Atari 520ST file I/O.
* Version: 30
* Last edit: 22-Feb-86
* By: rex::conroy
* decvax!decwrl!dec-rhea!dec-rex!conroy
*/
#include "def.h"
extern FILE *fopen();
static FILE *ffp;
/*
* Open a file for reading.
*/
ffropen(fn)
char *fn;
{
ffp = fopen(fn, "r");
adjustcase(fn);
if (ffp... | 2.734375 | 3 |
2024-11-19T03:16:34.568297+00:00 | 2014-12-24T09:48:20 | 6cdf020934bdbac506f7f452a8a5c76a48f7ffbd | {
"blob_id": "6cdf020934bdbac506f7f452a8a5c76a48f7ffbd",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-24T09:48:20",
"content_id": "d2b053f4af4b3df8dae6e2ceda669d964c1e304d",
"detected_licenses": [
"ISC"
],
"directory_id": "a998f0f554a468c4efd123b28cfe308e6725d6bd",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2014 Franco Fichtner <franco@packetwerk.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | 2.53125 | 3 |
2024-11-19T03:16:35.015091+00:00 | 2014-09-17T23:30:34 | 8558813130842f8773ef60dabc57e9b366a48fba | {
"blob_id": "8558813130842f8773ef60dabc57e9b366a48fba",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-17T23:30:34",
"content_id": "92e59e2f34d72a8c8add111ef9443ce328d56d0d",
"detected_licenses": [
"MIT"
],
"directory_id": "647ef1667481ee757b328540495262f0fd837bae",
"extension": "c"... | stackv2 | /**************/
/* mdiodraw.c */
/**************/
/*******************/
/* System includes */
/*******************/
#include <windows.h>
#include <windowsx.h>
#include <math.h>
/****************/
/* Self include */
/****************/
#include "mdiodraw.h"
/******************/
/* Other includes */
/*****************... | 2.234375 | 2 |
2024-11-19T03:16:35.551606+00:00 | 2013-11-17T09:29:06 | ded8335944037024a77a0419cedbc8d9955ee3e7 | {
"blob_id": "ded8335944037024a77a0419cedbc8d9955ee3e7",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-17T09:29:06",
"content_id": "50549951507abf6ac18f60d25f4658fe9c2bd0a1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2ab5e042f613a2049d9dce5b6cb28980e89dae4f",
"extens... | stackv2 | #include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/un.h>
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "array.h"
#include "buffer.h"
#include "con... | 2.125 | 2 |
2024-11-19T03:16:35.792120+00:00 | 2018-12-03T19:41:45 | ef649e39311bf63b111d0befaba065d258d1c1e4 | {
"blob_id": "ef649e39311bf63b111d0befaba065d258d1c1e4",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-03T19:41:45",
"content_id": "4ed0929ff08fe5cc6cc6b19e5cb6ad3ce930e770",
"detected_licenses": [
"MIT"
],
"directory_id": "ed0d0391915babd9a53a5ede7264a8b807c4f0cb",
"extension": "h"... | stackv2 | #ifndef util_h
#define util_h
/**
* Scale the given value to a new range.
* @param value_to_map The value to scale.
* @param in_min The lower bound of the original range.
* @param in_max The upper bound of the original range.
* @param out_min The lower bound of the new range.
* @param out_max The upper bound of ... | 2.234375 | 2 |
2024-11-19T03:16:35.866857+00:00 | 2021-11-27T16:00:42 | 7a0b8db2a63cbb25c0cf1c24db0ec42e192ebe46 | {
"blob_id": "7a0b8db2a63cbb25c0cf1c24db0ec42e192ebe46",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-27T16:00:42",
"content_id": "469f3211f470ac753da9fab8cec577782d29677d",
"detected_licenses": [
"MIT"
],
"directory_id": "d3b4e666241cd8b96c38095ff540f24815d73046",
"extension": "c"... | stackv2 | #include<WinSock2.h>
#include "socket.h"
#define DATA_SIZE 60000
struct ClientSocket {
SOCKET sock;
SOCKADDR_IN addr;
DataReceiveHandler onDataReceiveHandler;
ClientSocketHandler onConnectionCloseHandler;
ClientSocketHandler onSendComplectionHandler;
};
int socket_iocp_op_initialize(struct Poll** p, SOCKET sock... | 2.78125 | 3 |
2024-11-19T03:16:37.206551+00:00 | 2021-01-08T19:27:30 | a3ea75ab070998fb25968b42268fcefba5e29cae | {
"blob_id": "a3ea75ab070998fb25968b42268fcefba5e29cae",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-08T19:27:30",
"content_id": "2bbca78821b28ef3b9b5d837412e0a109b48ec7b",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "301763238099aadad89cc73f4115e99162efc076",
"extension":... | stackv2 | /* ********************* TEXTO SIN ACENTOS *********************/
// Recuerda documentar tus codigos
#include <stdio.h>
#include <string.h>
int main () {
char fuente1[25], fuente2[25], destino[75];
strcpy(fuente1, " Esta es la primera fuente. ");
strcpy(fuente2, " Este es la segunda fuente. ");
strcpy(... | 2.90625 | 3 |
2024-11-19T03:16:37.300168+00:00 | 2014-03-11T20:19:14 | f8808aadff9900347d543397de94559236fc4158 | {
"blob_id": "f8808aadff9900347d543397de94559236fc4158",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-11T20:19:14",
"content_id": "6f6effbfe610d8b5ef733c62e4bf8fdf91635f13",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "291b2f8a5ad2e61c3eb072451b8630a0c1585ac5",
"extens... | stackv2 | #include "cache.h"
#include "options.h"
#include "debugging.h"
#define ASSERT(x) \
if (!((x))) { fprintf(stderr, "%s %d failed\n", __FILE__, __LINE__); exit(1); }
struct giga_options giga_options_t;
int Lookup(int key) {
struct giga_directory* entry = cache_lookup(&key);
int r = (entry == NULL) ? -1 : entry->... | 2.546875 | 3 |
2024-11-19T03:16:37.391265+00:00 | 2014-08-24T04:54:36 | ec80981a8e8d29a186dd051f05669200709eb4cc | {
"blob_id": "ec80981a8e8d29a186dd051f05669200709eb4cc",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-24T04:54:36",
"content_id": "8c9e1d8fe2d95188a5e10d7d1de499eec8ea9e55",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3b59edf3a01eae6a7a8ce1b565ba9b1e34eec3d4",
"extens... | stackv2 | /*
* The core calculation of distortion in projection, written in C
* Library for python available at https://github.com/MacroBull/lib-python-macrobull/tree/master/macrobull/projCorrection
* @author: macrobull
* @date: June 2014
*
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
... | 2.875 | 3 |
2024-11-19T03:16:37.657845+00:00 | 2019-02-21T19:07:08 | 33e5d77d47bc2137a1715ea5c90cf526705c7e7e | {
"blob_id": "33e5d77d47bc2137a1715ea5c90cf526705c7e7e",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-21T19:07:08",
"content_id": "d3372a38e1b63b4b63556dd4d6523e9760fded82",
"detected_licenses": [
"MIT"
],
"directory_id": "9ab04ba46c2654b4a1d54e997019d442ac78c777",
"extension": "c"... | stackv2 | /*
Function : calc_spd.c
Purpose : External Galaxy Model.
Calculate spheroid density distribution.
History : Began: 6 October 1992. Last edit: 16 May 1995.
Author : P.J.C.Hodder (hodder@geop.ubc.ca).
Comments : 1. See also comments in calc_dsk.c.
2. Fraction of stars on m-s NOT i... | 2.296875 | 2 |
2024-11-19T03:16:37.886911+00:00 | 2021-10-25T19:22:50 | a8c68f7e7e2ad25d634bcf8f9b32382e13cf5959 | {
"blob_id": "a8c68f7e7e2ad25d634bcf8f9b32382e13cf5959",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-25T19:22:50",
"content_id": "9e28a0c7f455fb0416135c00f782759e42821aa0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "18df702758fa034d30f7e3573e9a986a93b5ba88",
"extens... | stackv2 | /*
* $ Copyright Cypress Semiconductor $
*/
/** @file
*
* List of parameters and defined functions needed to access the
* Peripheral SPI driver.
*
*/
#ifndef __WICED_PSPI_DRIVER_H__
#define __WICED_PSPI_DRIVER_H__
#ifndef WICED_X
#include "brcm_fw_types.h"
#endif
/** \addtogroup PeripheralSpiDriver Peripheral SP... | 2.171875 | 2 |
2024-11-19T03:16:37.944615+00:00 | 2019-07-18T02:28:48 | 665db298ba322b3fbab20f56ecebfd3e2cc0fc1d | {
"blob_id": "665db298ba322b3fbab20f56ecebfd3e2cc0fc1d",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-18T02:28:48",
"content_id": "c4aeb779e01cc51cafb3daa134c7cafebecdd639",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "1ecbf0d5bebd1b295e8f79432c4323f558c58a70",
"extensio... | stackv2 | /*-------------------------------------------------------------------------
*
* binary_search.c
* PostgreSQL type definitions for BINARY_SEARCHs (ISBN, ISMN, ISSN, EAN13, UPC)
*
* Author: Boris Glavic
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
*
* IDENTIFICATION
* contrib/binar... | 2.28125 | 2 |
2024-11-19T03:16:38.007281+00:00 | 2021-01-30T03:54:52 | cb20eec72c94ed9ab81cdbcb1db59d4808e0b4a0 | {
"blob_id": "cb20eec72c94ed9ab81cdbcb1db59d4808e0b4a0",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-30T03:54:52",
"content_id": "f3719e6ce9a98aa6375bc39de842cee2991736d0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "86ee1f42f641c8bbf4177f53be4827754b4c59c0",
"extens... | stackv2 | /*---------------------------------------------------------------------------------------------
SH7305 CPG&BSC Register.
for fx-9860GII-2, fx-CG10/20 v1.01
copyright(c)2014,2015 by sentaro21
e-mail sentaro21@pm.matrix.jp
-------------------------------------------------------------------------... | 2.109375 | 2 |
2024-11-19T03:16:40.332103+00:00 | 2023-08-12T20:39:42 | 11fde83f7a275498eaf6d56b6f0c4257112b6552 | {
"blob_id": "11fde83f7a275498eaf6d56b6f0c4257112b6552",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-12T20:39:42",
"content_id": "811ea360c656b39095b9b4640ac43a3e882dcd21",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8e3c9ccc2c77e734331cb2b3753b8a394c6c8c3c",
"extens... | stackv2 | /* -- translated by f2c (version 19940927).
*/
#include "../../SRC/slu_sdefs.h"
/* Table of constant values */
static int c__3 = 3;
static int c__1 = 1;
static float c_b8 = 1.f;
static float c_b10 = 0.f;
/* Subroutine */ int slarge_slu(int *n, float *a, int *lda, int *
iseed, float *work, int *info)
{
/* Syste... | 2.171875 | 2 |
2024-11-19T03:16:40.632724+00:00 | 2019-11-11T11:08:12 | cdd808d68d6915f1f49c3ab9d066006498b43148 | {
"blob_id": "cdd808d68d6915f1f49c3ab9d066006498b43148",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-11T11:08:12",
"content_id": "6c5d4cc68655ba642117c602ebfb41535ec50ce2",
"detected_licenses": [
"MIT"
],
"directory_id": "52efc638fca5d6c668c761a3ad3d08a678488baa",
"extension": "h"... | stackv2 | /*
* Soubor: macros.h
* Datum: 30.09.2019 18:49
* Autor: Marek Nožka, nozka <@t> spseol <d.t> cz
* Licence: GNU/GPL
* Úloha:
* Popis: hlavičkový soubor pro macros.c
*/
#ifndef __MACROS_H__
#define __MACROS_H__
/***********************************
* set and clear bits
*****************************... | 2.0625 | 2 |
2024-11-19T03:16:40.828076+00:00 | 2017-08-19T15:12:03 | 4cf8ee223b5954f2020dff682a68dde2ab3ec2dd | {
"blob_id": "4cf8ee223b5954f2020dff682a68dde2ab3ec2dd",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-19T15:12:03",
"content_id": "9f6ac215341345118ccbd19fc68fea455d48d093",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1fa7907e4959f890e7609f64fa4468055b7a54c0",
"extens... | stackv2 | #include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <pthread.h>
#include <arpa/inet.h> //inet_addr
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/socket.h>
#include "coroutine.h"
// this demo show that: in coroutine,call sleep function should not block the other coroutine in the same threa... | 2.578125 | 3 |
2024-11-19T03:16:41.131204+00:00 | 2018-01-25T17:07:46 | fc4f5b154489464cbd6ccdf4297b7c90296c7aa2 | {
"blob_id": "fc4f5b154489464cbd6ccdf4297b7c90296c7aa2",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-25T17:07:46",
"content_id": "22910954c7a5f4dc7f34da9a517755b45c13e185",
"detected_licenses": [
"MIT"
],
"directory_id": "5589d54fab6a7626464ac1e3cba1a28bec95ff06",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "heap.h"
#include "arvore.h"
#define true 1
#define false 0
#define ESQUERDA 0
#define DIREITA 1
struct {
unsigned int bit : 1;
}Bit;
/*Implementação da estrutura de Huffman(código e árvore) e do algoritmo de Huffuman em si*/
//salvar nome origi... | 3.015625 | 3 |
2024-11-19T03:16:41.391748+00:00 | 2023-06-06T15:22:16 | 562e1299b78105398c3b53ef9969ca9e6b1cf33b | {
"blob_id": "562e1299b78105398c3b53ef9969ca9e6b1cf33b",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-06T15:22:16",
"content_id": "b8d455549592732ba25d485c6d2f0e4de06e115f",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "0ba2e5061577f6286ff9265ef1df9aca96769445",
"extension":... | stackv2 | #include <stdio.h>
#define LENGTH 10
int heapSize;
void Heapify(int* A, int i) //Heapify tree at every call
{
int l = 2 * i + 1;
int r = 2 * i + 2;
int largest;
//Checking if root node has the greatest value among other nodes
if(l <= heapSize && A[l] > A[i])
largest = l;
else
largest = i;
if(r ... | 3.65625 | 4 |
2024-11-19T03:16:42.105540+00:00 | 2023-02-16T11:27:40 | 47d5eb686456d3d2c7db2cd0eace508634f63a30 | {
"blob_id": "47d5eb686456d3d2c7db2cd0eace508634f63a30",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "6cb193e6341b82cf1a8468d9fca026b4beaf0354",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /** @file
* @brief IPv6 and IPv4 definitions
*
* Generic IPv6 and IPv4 address definitions.
*/
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_NET_NET_IP_H_
#define ZEPHYR_INCLUDE_NET_NET_IP_H_
/**
* @brief IPv4/IPv6 primitives and helpers
* @defg... | 2.203125 | 2 |
2024-11-19T03:16:42.262027+00:00 | 2020-07-15T13:56:23 | 60d97a29cf0b883e20969ab2ac6f2ec5cc46ece6 | {
"blob_id": "60d97a29cf0b883e20969ab2ac6f2ec5cc46ece6",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-15T13:56:23",
"content_id": "fae7b1cc2efa451f95e2f2f75e271b61e125bb69",
"detected_licenses": [
"NCSA"
],
"directory_id": "bf813a9c02ba6ae71a398274ed7f7853565c5887",
"extension": "c... | stackv2 | #include "klee/klee.h"
#include "klee/runtime/pthread.h"
#include "kpr/internal.h"
#include <errno.h>
#include <stdbool.h>
static int rwlock_tryrdlock(pthread_rwlock_t* lock) {
pthread_t th = pthread_self();
if (lock->acquiredWriter != NULL) {
if (lock->acquiredWriter == th) {
return EDEADLK;
} el... | 2.515625 | 3 |
2024-11-19T03:16:42.447560+00:00 | 2022-12-10T05:31:04 | 2517029cf45ccc4f85e5ff6026d42f5c0e33c813 | {
"blob_id": "2517029cf45ccc4f85e5ff6026d42f5c0e33c813",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-10T05:31:04",
"content_id": "2f6052814338d5319f278a9d51937169fbeceea6",
"detected_licenses": [
"MIT"
],
"directory_id": "d782f4de145f17f27147332b7dc7a84bf091dc0e",
"extension": "h"... | stackv2 | #pragma once
#include <stddef.h>
#include <stdint.h>
struct __attribute__((packed)) uniboot_info {
uint64_t magic; // have to be UNIBOOT_MAGIC
uint32_t version; // version of the boot info
uint32_t length; // total length of the info struct
// entries data starts here
};
#define UNIBOOT_MAGIC 0x55... | 2.046875 | 2 |
2024-11-19T03:16:42.509522+00:00 | 2021-04-16T17:03:55 | 2d8251ecd5acfbdd81ffe4219afa0917fa729489 | {
"blob_id": "2d8251ecd5acfbdd81ffe4219afa0917fa729489",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-16T17:03:55",
"content_id": "d2bfb4866ea8e0fc0c768e26eb8b9029714be002",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0f89a18a70b4f4d749332c575d4ad26a8e6784ff",
"extens... | stackv2 | //
// Created by Michael Davis on 11/12/2019.
//
//
// Created by Michael Davis on 11/12/2019.
//
#include "ballot.h"
#include "paxos_value.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <paxos_storage.h>
#include <paxos_types.h>
#include <assert.h>
#include <epoch_ballo... | 2.109375 | 2 |
2024-11-19T03:16:44.956726+00:00 | 2020-07-24T04:19:43 | d95f28c886dddeb62101d8a1b7189e296671e8c8 | {
"blob_id": "d95f28c886dddeb62101d8a1b7189e296671e8c8",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-24T04:19:43",
"content_id": "7bd8e45c854f48348d94894a99866a75787c3c88",
"detected_licenses": [
"MIT"
],
"directory_id": "37619fd2f0b180b3b39dbbc1a826dbd4c11d1d4a",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "hash_tables.h"
/**
* main - check the code for a software development program students.
*
* Return: Always EXIT_SUCCESS.
*/
int main(void)
{
hash_table_t *ht;
unsigned long int idx;
/* hetairas collides with mentioner*/
ht = hash_table... | 2.65625 | 3 |
2024-11-19T03:16:45.155448+00:00 | 2019-06-10T15:27:37 | 30301d38e93db2ebce14f099fe11c10976193d52 | {
"blob_id": "30301d38e93db2ebce14f099fe11c10976193d52",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-10T15:27:37",
"content_id": "bb7762256bc0ab86f83900eee28b50c0d84e1ae5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f31cc3c54d98e35ea7a76daa3a28a5e0be221ef2",
"extensio... | stackv2 | #pragma once
#include <stdint.h>
#define M5STACK_GAMEPAD_IO_LEFT GPIO_NUM_39
#define M5STACK_GAMEPAD_IO_RIGHT GPIO_NUM_37
#define M5STACK_GAMEPAD_IO_A GPIO_NUM_38
enum
{
M5STACK_INPUT_LEFT,
M5STACK_INPUT_RIGHT,
M5STACK_INPUT_A,
M5STACK_INPUT_B,
M5STACK_INPUT_MAX
};
typedef struct
{
uint8_t ... | 2.171875 | 2 |
2024-11-19T03:16:45.479900+00:00 | 2018-06-22T14:50:58 | ff5e33c5988c1fc2fad6e85b4e891bdfe678d708 | {
"blob_id": "ff5e33c5988c1fc2fad6e85b4e891bdfe678d708",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-25T05:19:43",
"content_id": "c6f1ca68fa5eed3619aca829593570ba9a19ed74",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4d9351f746dd5014887cdd73f727e20581162fee",
"extens... | stackv2 | /*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <hypervisor.h>
int validate_pstate(struct vm *vm, uint64_t perf_ctl)
{
struct cpu_px_data *px_data;
int i, px_cnt;
if (is_vm0(vm)) {
return 0;
}
px_cnt = vm->pm.px_cnt;
px_data = vm->pm.... | 2.609375 | 3 |
2024-11-19T03:16:45.720971+00:00 | 2014-04-13T18:39:48 | f8d47587aa202f10f4b86e6600a206148d5e3236 | {
"blob_id": "f8d47587aa202f10f4b86e6600a206148d5e3236",
"branch_name": "refs/heads/master",
"committer_date": "2014-04-13T18:39:48",
"content_id": "db772bab576ddfdc6520c70f5966d584d5601778",
"detected_licenses": [
"Zlib"
],
"directory_id": "089f582bec349c50395cd1052a9032ce92f63e00",
"extension": "h... | stackv2 | /*
* Copyright (c) 2007-2008 Riccardo Lucchese, riccardo.lucchese at gmail.com
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this s... | 2.265625 | 2 |
2024-11-19T03:16:45.912408+00:00 | 2017-03-04T07:49:02 | 3f5d7aad1f2eecaf95c13573b673be7424a6e3f2 | {
"blob_id": "3f5d7aad1f2eecaf95c13573b673be7424a6e3f2",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-04T07:49:02",
"content_id": "7b92f8571442a7ba8b2e6614616fbe1dd5379ecc",
"detected_licenses": [
"MIT"
],
"directory_id": "e909a9cbdf8d5332fa031d190d0f8d016e6ada70",
"extension": "c"... | stackv2 | #include<stdio.h>
int checkint(double a){
return a==(int)a;
}
int checkint2(double a, double b){
return checkint(a)&&checkint(b);
}
double add(double a, double b){
return a+b;
}
double minus(double a, double b){
return a-b;
}
double mul(double a, double b){
return a*b;
}
double divf(double a, double b){
return a/... | 2.96875 | 3 |
2024-11-19T03:16:46.223818+00:00 | 2023-05-26T07:03:59 | 0ef6062df6f54fb8f1f82e25033adcc5490ae535 | {
"blob_id": "0ef6062df6f54fb8f1f82e25033adcc5490ae535",
"branch_name": "refs/heads/hx20-hx30",
"committer_date": "2023-05-26T07:03:59",
"content_id": "2c62ada9ac5bb84453e538d1b56beed555f29258",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f9e7d65cb784c01a0200145ba8d289afe41d4a56",
"ext... | stackv2 | /* Copyright 2013 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.
*
* Raw keyboard I/O layer for MEC1322
*/
#include "gpio.h"
#include "keyboard_config.h"
#include "keyboard_raw.h"
#include "keyboard_scan.h"
#inclu... | 2.234375 | 2 |
2024-11-19T03:16:46.446556+00:00 | 2018-04-23T21:23:41 | 6040a6670cd9610c9c8f3eadcb1d37b44ed0738d | {
"blob_id": "6040a6670cd9610c9c8f3eadcb1d37b44ed0738d",
"branch_name": "refs/heads/develop",
"committer_date": "2018-04-23T21:23:41",
"content_id": "88aca9d246f2b4d974b3840ae279eb71153f40ee",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d",
"extension"... | stackv2 | /* *********************************************************************** */
/* *********************************************************************** */
/* MLB Executable Module Source File */
/* *********************************************************************** */
/*
File Name : %M%
File Versi... | 2.171875 | 2 |
2024-11-19T03:16:46.540753+00:00 | 2023-06-26T18:43:39 | 217dddb18a6fc79aa321d3902667ad24d6db0937 | {
"blob_id": "217dddb18a6fc79aa321d3902667ad24d6db0937",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-26T18:43:39",
"content_id": "bb2e0c316ea00c151f9e7c6f44df946cc5d3f1a8",
"detected_licenses": [
"MIT"
],
"directory_id": "f8a05e9979d87574d270239b9326ab74fdd9d3c2",
"extension": "c"... | stackv2 | //###########################################################################
//
// FILE: adc_ex5_soc_continuous.c
//
// TITLE: ADC continuous self-triggering.
//
//! \addtogroup driver_example_list
//! <h1> ADC Continuous Triggering (adc_soc_continuous)</h1>
//!
//! This example sets up the ADC to convert continuou... | 2.09375 | 2 |
2024-11-19T03:16:47.511293+00:00 | 2020-04-20T20:04:48 | aaf26b2525865df2d1d39e6ab77ac619dc04f5ed | {
"blob_id": "aaf26b2525865df2d1d39e6ab77ac619dc04f5ed",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-29T20:16:23",
"content_id": "5c2b947883094034c98179b7730f0a7c6bec976c",
"detected_licenses": [
"MIT"
],
"directory_id": "d2dbceb46f4d39c46b1aa9dfcb7af5752bd38f82",
"extension": "c"... | stackv2 | #include "util.h"
// built-in button is on pin P0.18. If it resets, connect external button or use https://github.com/makerdiary/nrf52840-mdk-usb-dongle/tree/master/examples/nrf5-sdk/pselreset_erase
#define BUTTON_PIN 18
void initButton() {
configureInputWithPullup(6);
}
bool getButton() {
return (NRF_P0->IN & (1... | 2.3125 | 2 |
2024-11-19T03:16:47.668338+00:00 | 2021-05-27T14:17:43 | c70d43bf9cd14a1e7edfc3d12ffa9bf9fde06cc5 | {
"blob_id": "c70d43bf9cd14a1e7edfc3d12ffa9bf9fde06cc5",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-01T20:41:31",
"content_id": "08eccf2b05367d0bcfb95a2e2eba8a3ac7b59b61",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "07ba368d71420f84de0cff20fc2a8cdde5b2e993",
"extensio... | stackv2 | /*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT espressif_esp32_pinmux
/* Include esp-idf headers first to avoid redefining BIT() macro */
#include <soc/gpio_reg.h>
#include <soc/io_mux_reg.h>
#include <soc/soc.h>
#include <errno.h>
#include <sys/util.h>... | 2.40625 | 2 |
2024-11-19T03:16:47.740987+00:00 | 2014-10-13T13:33:58 | a139bdf1faa06563f605b834aff00e2693c9c766 | {
"blob_id": "a139bdf1faa06563f605b834aff00e2693c9c766",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-13T13:33:58",
"content_id": "443e94d837dd56d020640f9cbc7ddd3078e8013a",
"detected_licenses": [
"MIT"
],
"directory_id": "abd013b60981151f048546634d1852b5fb4bbe38",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <rte_launch.h>
#include <luajit-2.0/lauxlib.h>
#include <luajit-2.0/lualib.h>
static const char* find_path(const char* file) {
// TODO: search file
return file;
}
lua_State* launch_lua(const char* file) {
... | 2.28125 | 2 |
2024-11-19T03:16:47.807421+00:00 | 2017-11-26T20:54:07 | d32d1c7e735a2c067c604d496959f1a51bd00717 | {
"blob_id": "d32d1c7e735a2c067c604d496959f1a51bd00717",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-26T20:54:07",
"content_id": "6567ff2a54518acb1d1ede28ff06daf97aab7b69",
"detected_licenses": [
"MIT"
],
"directory_id": "f727ef93c3359825f05fbfd762b01cfd6092a745",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdlib.h>
#include"functions.h"
#include "string.h"
#define EXIT "exit"
#define CLEAR "clear"
#define CAT "cat"
#define PALINDROME "palindrome"
#define TOPLA "topla"
#define ASAL "asal"
void initializeNewargv(char c1[],char c2[],char c3[]);
char *newargv[3];
int i,f;
char *data;
ssize_t bu... | 2.40625 | 2 |
2024-11-19T03:16:47.934946+00:00 | 2023-08-11T13:02:43 | ab2c934b6821439fe562e4cfc2466423c157053e | {
"blob_id": "ab2c934b6821439fe562e4cfc2466423c157053e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T13:02:43",
"content_id": "40d1ddcd59ffa6df0ad2cf9a2bf131377b4c7cd2",
"detected_licenses": [
"MIT"
],
"directory_id": "751d837b8a4445877bb2f0d1e97ce41cd39ce1bd",
"extension": "c"... | stackv2 | /*
Write a program which parses the output of uptime and generates an anatomically suggestive progress bar (as shown) with a length equal to the current uptime in days:
$ uptime
23:01 up 34 days, 7:30, 5 users, load averages: 0.23 0.27 0.24
$ uptime|<command>
8==================================D
(34 days = 34 equa... | 3.390625 | 3 |
2024-11-19T03:16:48.298194+00:00 | 2017-03-21T06:03:05 | 9e9bda1652591c020c30b53f50abcfe890ea9b53 | {
"blob_id": "9e9bda1652591c020c30b53f50abcfe890ea9b53",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-21T06:03:05",
"content_id": "30bb4a65b72a739ef7e89cf29773564e54b7d70e",
"detected_licenses": [
"Unlicense"
],
"directory_id": "27fb6cee9b1bcd6f9b92d59ce2de104a8f733118",
"extension... | stackv2 | #include "uart1.h"
#include <iodefine.h>
#include <iodefine_ext.h>
#include <stddef.h>
#define f_CLK 32000000 // 32 MHz
#define DESIRED_BAUDRATE 9600
/* Note that only 9600, 38400, and 115200 bps were tested. */
#define PRESCALE_THRESH ((38400 + 115200) / 2)
#define PRS_VALUE ((DESIRED_BAUDRA... | 2.359375 | 2 |
2024-11-19T03:16:49.270667+00:00 | 2022-03-20T17:53:25 | 8c11f6af6d8967d1a06bce91ccc39f82a946c8ec | {
"blob_id": "8c11f6af6d8967d1a06bce91ccc39f82a946c8ec",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-20T17:53:25",
"content_id": "f33d2152828e30325082cd337a3c5ce3ce8e2330",
"detected_licenses": [
"MIT"
],
"directory_id": "15fbb35cb68bd707f6a1eee9485e2ee37fc52876",
"extension": "c"... | stackv2 | #include <ch.h>
#include <hal.h>
#include <msgbus/messagebus.h>
#include "imu_thread.h"
#include "exti.h"
#include "mpu9250.h"
#include "main.h"
#define IMU_INTERRUPT_EVENT (0x01)
static void imu_init_hardware(mpu9250_t* mpu)
{
/*
* SPI1 configuration structure for MPU9250.
* SPI1 is on APB2 @ 84MHz /... | 2.296875 | 2 |
2024-11-19T03:16:49.372129+00:00 | 2021-06-06T22:45:34 | feb1b2f15806a40b50248b039779eb356449b5c8 | {
"blob_id": "feb1b2f15806a40b50248b039779eb356449b5c8",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-06T22:45:34",
"content_id": "4c39b500a594aff2d14b210afe0733918570a1dd",
"detected_licenses": [
"MIT"
],
"directory_id": "59eea81fb4cb631449f64e9b66758b5878306a31",
"extension": "c"... | stackv2 | //
// Created by danil on 27.04.2021.
//
#include "types.h"
static int int_comp(const void* arg1, const void* arg2) {
if(!arg1 || !arg2) return 1;
ll res = (*(ll*)arg1 - *(ll*)arg2);
if(res < 0) return -1;
else if(res > 0) return 1;
else return 0;
}
static int double_comp(const void* arg1, const void* arg2){
i... | 2.90625 | 3 |
2024-11-19T03:16:49.570035+00:00 | 2020-10-07T07:03:39 | 2f2bad1033c0679a37f0a0a1d31cb363e5ba476d | {
"blob_id": "2f2bad1033c0679a37f0a0a1d31cb363e5ba476d",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-07T07:03:39",
"content_id": "9ab8428ffeb0f8580658ffc2972ee6cf382b2863",
"detected_licenses": [
"MIT"
],
"directory_id": "33fb97f2314a19960f5378052a8368a25d9ad4b6",
"extension": "c"... | stackv2 | /**
* This is the example code of using pipe between two processes.
* A parent process will send messages periodically via the pipe,
* and a child process will receive the message from the pipe and print it.
*/
#include "types.h"
#include "stat.h"
#include "user.h"
#define SIZE_MSG 1 /* Size of eac... | 3.4375 | 3 |
2024-11-19T03:16:49.792302+00:00 | 2013-02-12T04:00:12 | 9704e63de427870ba20c420efdf24e0e2fb503c6 | {
"blob_id": "9704e63de427870ba20c420efdf24e0e2fb503c6",
"branch_name": "refs/heads/master",
"committer_date": "2013-02-12T04:00:12",
"content_id": "b30d4e0367863fba5704dddb136737f27f9e1413",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9f5cdc964f501a78b08c26bc011e47bd1b6be5c3",
"extens... | stackv2 | /*
* Synchronization primitives.
* See synch.h for specifications of the functions.
*/
#include <types.h>
#include <lib.h>
#include <synch.h>
#include <thread.h>
#include <curthread.h>
#include <machine/spl.h>
#include "opt-A1.h"
////////////////////////////////////////////////////////////
//
// Semaphore.
struct... | 2.78125 | 3 |
2024-11-19T03:16:49.871001+00:00 | 2021-02-09T16:07:29 | c912c47570bef583195c46f9e789a734c8f7edfd | {
"blob_id": "c912c47570bef583195c46f9e789a734c8f7edfd",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-09T16:07:29",
"content_id": "6664cd73c56c5b47edb2f3c334f29d45c9173b69",
"detected_licenses": [
"Unlicense"
],
"directory_id": "a5211e090d1a3df7e2191e3ab2c7c2ed0406c9a3",
"extension... | stackv2 | /****************************************************************************
* $Id:: dactest.c 6092 2011-01-06 22:55:04Z nxp12832 $
* Project: NXP LPC17xx DAC example
*
* Description:
* This file contains DAC test modules, main entry, to test DAC APIs.
*
***************************... | 2.09375 | 2 |
2024-11-19T03:16:50.086429+00:00 | 2016-08-24T04:41:26 | f84fad9ff55f4455ad531a3ed5b8f88ff6cde0dc | {
"blob_id": "f84fad9ff55f4455ad531a3ed5b8f88ff6cde0dc",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-24T04:41:26",
"content_id": "b51e4b9d1b5ff738a31be548ac124f402ac0563b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "ff670ae64e4f452e1a6dfc69881f601d9901ec88",
"extens... | stackv2 | /* -*- Mode: C; c-basic-offset:2 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2014-2016 Los Alamos National Security, LLC. All rights
* reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "hio_internal.h"
#include <stdlib.h>
struct hio_dataset... | 2.65625 | 3 |
2024-11-19T03:16:50.464494+00:00 | 2017-10-03T11:17:19 | c32195d62d0a57814868a133faedd3249dafaf04 | {
"blob_id": "c32195d62d0a57814868a133faedd3249dafaf04",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-03T11:17:19",
"content_id": "878338ec86efb6a57395f9dc0cd8716351f31d73",
"detected_licenses": [
"MIT"
],
"directory_id": "2e54007f4ddf2999df0fd3120301eef20b3ae680",
"extension": "c"... | stackv2 | /**\file files.c
* Disk management functions
*
* \author Loic Ottet (loic.ottet@epfl.ch)
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "global.h"
#include "activesenders.h"
#include "peerbase.h"
#ifdef IPRP_MULTICAST
#include "senderifaces.h"
#endif
#include "ird.h"
/**
Stores the given... | 2.515625 | 3 |
2024-11-19T03:16:54.623816+00:00 | 2018-10-03T11:44:46 | 7d3a44ebdfe25c9e360c84067070a349c069b36a | {
"blob_id": "7d3a44ebdfe25c9e360c84067070a349c069b36a",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-03T11:44:46",
"content_id": "8fd146485547eaa7e6717ad001591754a0f4c673",
"detected_licenses": [
"MIT"
],
"directory_id": "827b1f8c08ed3aa756ccf0c2f38e4027b60f7a70",
"extension": "c"... | stackv2 | #include "sk2cc.h"
typedef enum macro_type {
OBJECT_MACRO,
FUNCTION_MACRO
} MacroType;
typedef struct macro {
MacroType type;
Vector *params;
Vector *replace;
} Macro;
typedef struct scanner {
Vector *tokens;
int pos;
} Scanner;
Map *macros;
Scanner *scanner_new(Vector *tokens) {
Scanner *sc = (Sca... | 2.46875 | 2 |
2024-11-19T03:16:54.915104+00:00 | 2019-10-03T04:55:18 | 058f6f5b856d7d8487aa379d78fbd2263a7c62d9 | {
"blob_id": "058f6f5b856d7d8487aa379d78fbd2263a7c62d9",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-03T04:55:18",
"content_id": "cb24c74b0bcd23c6ed942d7af96de3c3c029878e",
"detected_licenses": [
"MIT"
],
"directory_id": "d647dd97213c0fea00298a858581cbdf5ebe32e7",
"extension": "h"... | stackv2 | #pragma once
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdbool.h>
// temporary fields for the static table
#define COL_USERNAME_SIZE 32
#define COL_EMAIL_SIZE 255
#define ROW_SIZE sizeof(struct Row)
#define PAGE_SIZE 4096
#define ROWS_PER_PAGE PAGE_SIZE/ROW_SIZE
#defi... | 2.3125 | 2 |
2024-11-19T03:16:55.142271+00:00 | 2019-01-28T17:08:45 | 9294a9903342af912030f9c12d05738bbc4a5ee6 | {
"blob_id": "9294a9903342af912030f9c12d05738bbc4a5ee6",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-28T17:08:45",
"content_id": "0dfacd7266880a40ebec1e25afdf80278bc358ab",
"detected_licenses": [
"MIT"
],
"directory_id": "edf79d65f6aada64a4432d7e1d38277ce447dd5d",
"extension": "c"... | stackv2 | //
// Created by jglrxavpok on 12/12/18.
//
#include <otf2/otf2.h>
#include <stdio.h>
#include <string.h>
#include "hashmap/hashmap.h"
#include "ezprofile.h"
ezdata* NewEZData(size_t thread_count, computation_mode computation_mode, int thread_index, char* thread_name) {
ezdata* data = calloc(1, sizeof(ezdata));
... | 2.59375 | 3 |
2024-11-19T03:16:55.353245+00:00 | 2020-07-25T04:17:14 | cf43f6534b0979b48c2cdef924cb0d771fda0da1 | {
"blob_id": "cf43f6534b0979b48c2cdef924cb0d771fda0da1",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-25T04:17:14",
"content_id": "e91c2ac2ad36545068c4d287820979b6b850f410",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bc7387a0892f441918f6ee4f861060d1619ad808",
"extensio... | stackv2 |
#define STUDENTS_MAX 5
#define NAME_MAX 20
typedef struct {
int studentID;
char name[20];
} Student;
struct Students{
Student **members;
int capacity;
int length;
};
void initial(struct Students **list);
int availableSpots(struct Students *list);
Student *add(struct Students *list, int id, char ... | 2.234375 | 2 |
2024-11-19T03:16:55.850893+00:00 | 2021-07-08T23:55:39 | f407a149f181c5c86a3c2f867f53cc9e413bf9ec | {
"blob_id": "f407a149f181c5c86a3c2f867f53cc9e413bf9ec",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-08T23:55:39",
"content_id": "92b05077c732a75f3b6919035f026dd428aa4415",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "812af0a402f6c1df3764dda3c3e5c914c11ece32",
"extension"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
struct car{
int car;
int hp;
struct car* next;
};
struct car* createCar(int, int);
void connect(struct car*, struct car*);
void printAll(struct car*);
void freeAll(struct car*);
int main(void){
printf("Enter the number of cars you want to track\n"... | 3.25 | 3 |
2024-11-19T03:16:55.960585+00:00 | 2020-11-13T07:30:28 | 389c763b38c15a12b9b451310b3a453896553a05 | {
"blob_id": "389c763b38c15a12b9b451310b3a453896553a05",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-13T07:30:28",
"content_id": "c626cf2be09ddd5dccd1b624c3b10e14a3fcbc24",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "13b03a8233edff308ce27a8b668767b920a83d5e",
"extens... | stackv2 | void *memcpy(void *dst, void *src, int num);
int main(int argc, char **argv) {
char buf[10];
char *str = "hello";
char *p = memcpy(buf, str, 7);
p[10] = 0;
sparrow_print(p);
return 0;
}
| 2.015625 | 2 |
2024-11-19T03:16:56.510108+00:00 | 2019-05-14T22:39:20 | c1fe17cff7e8c86b4009c524b137d623d2f1ee75 | {
"blob_id": "c1fe17cff7e8c86b4009c524b137d623d2f1ee75",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-14T22:39:20",
"content_id": "8ce26b35aa3b9ff358841c19c0e6ebe531775988",
"detected_licenses": [
"MIT"
],
"directory_id": "e7cce64de726b6459bf69aac2e4f76f8a14d26c8",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <stdbool.h>
#define REPORT_FILE "report.txt"
void analizeLog(char *logFile, char *report);
void gettype(char *type, size_t position, char *line);
int checkarray(char ... | 2.796875 | 3 |
2024-11-19T03:16:56.905530+00:00 | 2018-08-21T17:56:57 | 8c8e282e17b6b214cf1aecd3cb47e1f4753cb727 | {
"blob_id": "8c8e282e17b6b214cf1aecd3cb47e1f4753cb727",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-21T17:56:57",
"content_id": "eb26c6878d903b3db79d6e541efc3e6372327f9a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e1f8235b345f431b15ac1d1e75f5407b0f721180",
"extens... | stackv2 | /* Written by Jean-Claude Wippler, as part of Tclkit.
* March 2003 - placed in the public domain by the author.
*
* Interface to the "zlib" compression library
*/
#include "config.h"
#include "zlib.h"
#include <tcl.h>
typedef struct {
z_stream stream;
Tcl_Obj *indata;
} zlibstream;
static int
zstreamincmd(Cli... | 2.203125 | 2 |
2024-11-19T03:16:57.037017+00:00 | 2019-02-05T17:18:28 | 074adf0acaf4edbb936aa6c79fa9dc92a25142f3 | {
"blob_id": "074adf0acaf4edbb936aa6c79fa9dc92a25142f3",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-05T17:18:28",
"content_id": "e854002a58a47b14ed33f7b3c775802a3d1ca94a",
"detected_licenses": [
"MIT"
],
"directory_id": "33a5f69b581b937e30dc6143116b196b4610bd6e",
"extension": "c"... | stackv2 | #include "free_str.h"
#include "parser.h"
#include "hash_map.h"
#include <stdlib.h>
/**
* This will free all the commands in the
* list
*/
void freeCommandList(CommandList * list) {
if (list != NULL) {
if (list->frstCmd != NULL) {
Command * curr = list->frstCmd;
for (int i=0; i<l... | 2.359375 | 2 |
2024-11-19T03:16:57.827405+00:00 | 2023-03-13T19:34:34 | 540a5eb478cdeeb426392c92413556650b5e1a96 | {
"blob_id": "540a5eb478cdeeb426392c92413556650b5e1a96",
"branch_name": "refs/heads/v1.0.x",
"committer_date": "2023-03-13T19:34:34",
"content_id": "8e642ddb50c1653c7d79f2092cd52ebd40540324",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1a5ee9578a794aea1ff6e731a9b25ca8cb92af09",
"extens... | stackv2 | #ifndef MOTHERBOARD_H
#define MOTHERBOARD_H
#include "drv/hardware_targets.h"
#include "usr/user_config.h"
#include <stdbool.h>
#include <stdint.h>
#include "xparameters.h"
#if USER_CONFIG_HARDWARE_TARGET == AMDC_REV_D
#define MOTHERBOARD_MAX_IP_CORES (XPAR_AMDC_MOTHERBOARD_NUM_INSTANCES)
#define MOTHERBOARD_1_BASE_... | 2.0625 | 2 |
2024-11-19T03:16:57.975308+00:00 | 2020-07-02T17:44:55 | d460f4a1eeb2e233612cb9806a17ae41b5e70c7b | {
"blob_id": "d460f4a1eeb2e233612cb9806a17ae41b5e70c7b",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-02T17:44:55",
"content_id": "1d2834c9b30a3f0446dd721fc6bdb63536076fdb",
"detected_licenses": [
"MIT"
],
"directory_id": "e13a5ec84579b11878318ed09bf4d37bf86f10ee",
"extension": "c"... | stackv2 | /*Problem 2: Each new term in the Fibonacci sequence is generated by
adding the previous two terms. By starting with 1 and 2, the first 10
terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not
exceed four million, find the sum of the even-value... | 3.84375 | 4 |
2024-11-19T03:16:58.162018+00:00 | 2023-08-17T09:01:57 | 0f8ba1a7f5b944398372e0ad7eeebd8b761dcf2f | {
"blob_id": "0f8ba1a7f5b944398372e0ad7eeebd8b761dcf2f",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-17T09:01:57",
"content_id": "0f522e66437f436c406efab50c99a78a4911cd9b",
"detected_licenses": [
"MIT"
],
"directory_id": "9ca19ee62e2c985be413bd12e5eb63b44833750d",
"extension": "c"... | stackv2 | // JTAG programming functions for Atmel AT91SAM7
#include "types.h"
#include "aborts.h"
#include "jtag.h"
// Sets PMC_MCKR to CSS_SLOW, PRES(0), thus switching the processor to
// the slow clock.
void force_slow_clock()
{
jtag_set_mem(0, 0xfffffc30);
}
#define MCLK_MHZ 16
#ifndef FRDY
#define FRDY 1
#define MOS... | 2.421875 | 2 |
2024-11-19T03:16:58.256231+00:00 | 2017-02-24T09:04:09 | bcbf14e93cda767b60560f5434e251209b4eecf8 | {
"blob_id": "bcbf14e93cda767b60560f5434e251209b4eecf8",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-24T09:04:09",
"content_id": "8cfcda59fc241d721232017460c5ef451d9869f8",
"detected_licenses": [
"MIT"
],
"directory_id": "c0b2368278ce623a5f81137dfa271b408db7282c",
"extension": "c"... | stackv2 | /*
* Part of Very Secure FTPd
* Licence: GPL v2
* Author: Chris Evans
* utility.c
*/
#include "andutility.h"
#include "andsysutil.h"
#include "andstr.h"
#include "anddefs.h"
#define LOG_TAG "andutility"
#include "pplog.h"
#define DIE_DEBUG
void
die(const char* p_text)
{
PPLOGE("[die] %s", p_text);
#ifdef DIE_... | 2.171875 | 2 |
2024-11-19T03:16:58.803596+00:00 | 2018-04-25T10:11:49 | 69d9db344031824a613cdd35e7ef8117e305677c | {
"blob_id": "69d9db344031824a613cdd35e7ef8117e305677c",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-25T10:11:49",
"content_id": "87bc1ba0431908a5e6ca7655cefd9115f77491ec",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a0da2cf43141246a50818e526d64e087c65b389d",
"extens... | stackv2 | #include "setup.h"
#ifndef MAX_CNT
#define MAX_CNT 10000
#endif
#ifndef WAIT
#define WAIT 10
#endif
_UNCACHED int cpucnt = MAX_CORE_CNT;
_UNCACHED int data[MAX_LCK_CNT];
_UNCACHED int cnt1 = MAX_CNT;
_UNCACHED int cnt2 = MAX_CNT;
_UNCACHED int sync = 0;
int _main()
{
int cpuid = get_cpuid();
int stop;
for(int ... | 2.53125 | 3 |
2024-11-19T03:16:58.999613+00:00 | 2020-04-28T23:02:13 | 599ee807a5c7babc3d22fc17f8080ec682e26e49 | {
"blob_id": "599ee807a5c7babc3d22fc17f8080ec682e26e49",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-28T23:02:13",
"content_id": "6edd5dd1225ce6d66d4a596fa472fc69f6e2d6f1",
"detected_licenses": [
"MIT"
],
"directory_id": "2d5d170117deacbc4e4ad26fb7ce3728bfdfbc57",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <string.h>
# include <conio.h>
# include <time.h>
void forcabruta();
void rabinkarp();
void menu();
void menudeop();
int main(){
//Corzinha ui ui
system("color 3");
printf(" > Busca em Strings < \n\n\n");
menu();
}
void menu(){
setlocale(LC... | 2.9375 | 3 |
2024-11-19T03:16:59.180250+00:00 | 2023-08-13T13:58:07 | 6c9f7e7b40fc363774cd8e6007e41fc0b0a2d147 | {
"blob_id": "6c9f7e7b40fc363774cd8e6007e41fc0b0a2d147",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T13:58:07",
"content_id": "62b5937347ebbcf4e098d9e0120741003628f844",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "7e4eccee4ba976b6694cd944fea75e7835cd1a4b",
"extension":... | stackv2 | #include <unistd.h>
#include <stdint.h>
/* Lua wrapper for log_parse.h
Some context:
- log_parse.h is a parser (scanner) for the ad-hoc log file format
used in uc_tools and derivative firmware. it supports textual
logs + escape for short (127 byte) time-stamped binary messages.
it works by feed... | 2.09375 | 2 |
2024-11-19T03:02:42.805294+00:00 | 2022-08-30T23:00:25 | 5f7a06733c3f55c0b1d3fcbfc26736e8a350c559 | {
"blob_id": "5f7a06733c3f55c0b1d3fcbfc26736e8a350c559",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-30T23:00:25",
"content_id": "2ee0b2b69f013bac0596609a0d027a16a018ffac",
"detected_licenses": [
"ISC"
],
"directory_id": "b73f12231af5f59fee180ce04af85c6fd2dcfef3",
"extension": "c"... | stackv2 | /* See LICENSE file for copyright and license details */
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zone.h"
#include "symtab.h"
static size_t
hash(void const *k, size_t klen)
{
size_t i;
size_t const p = 16777619;
size_t hash = 2166136261u;
for (... | 2.84375 | 3 |
2024-11-19T03:02:44.352703+00:00 | 2015-03-26T19:50:04 | bcf2ab9aa098b4842f979979487a7aac3883cc79 | {
"blob_id": "bcf2ab9aa098b4842f979979487a7aac3883cc79",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-26T19:50:04",
"content_id": "865944b5dc4a1a3530eb6643f34a99e25433bdd3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0262f5a7605889b9ec91aada1c08f386afe6a8ea",
"extens... | stackv2 | #ifndef __SKIPLIST
#define __SKIPLIST
#include <inttypes.h>
#include <limits.h>
#include <stdio.h>
#include <sys/types.h>
#define KEY_INF_MIN INT_MIN /* -INFINITY */
#define KEY_INF_MAX INT_MAX /* +INFINITY */
#define SL_ADD_NEW 1 /* added new key */
#define SL_ADD_SAME 0 /* added existing key */
#define SL_ADD_... | 2.671875 | 3 |
2024-11-19T03:02:44.411209+00:00 | 2021-02-04T02:50:41 | af535cbde17300a0a832be8784e2170bc1796bbd | {
"blob_id": "af535cbde17300a0a832be8784e2170bc1796bbd",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-04T02:50:41",
"content_id": "e7a0f3bdb020cbb818497e4a3e25adc9138ec0cf",
"detected_licenses": [
"MIT"
],
"directory_id": "000947b3b81d9aed31ffd0920a0457e85c4e5cbb",
"extension": "c",
... | stackv2 | //3. Faça um Programa que peça dois números e imprima a soma.
#include <stdlib.h>
#include <stdio.h>
int main()
{
int Numero1,Numero2,Resultado;
printf("Digite um numero: ");
scanf("%i",&Numero1);
printf("Digite um numero: ");
scanf("%i",&Numero2);
Resultado = Numero1 + Numero2;
printf("... | 4.09375 | 4 |
2024-11-19T03:02:45.378875+00:00 | 2021-10-25T02:02:29 | 86037b7931139f0cc157c1d4222e2c18ec35aa6c | {
"blob_id": "86037b7931139f0cc157c1d4222e2c18ec35aa6c",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-25T02:02:29",
"content_id": "f812c878715a7810690895a267efd67c03d01690",
"detected_licenses": [
"MIT"
],
"directory_id": "abda7fa9bab285f213ad89e66e19b89602691a9e",
"extension": "c"... | stackv2 | #include <onnx.h>
enum auto_pad_t {
AUTO_PAD_NOTSET = 0,
AUTO_PAD_SAME_UPPER = 1,
AUTO_PAD_SAME_LOWER = 2,
AUTO_PAD_VALID = 3,
};
enum conv_mode_t {
CONV_SIMPLE = 0,
CONV_CACHED = 1,
CONV_IM2COL = 2,
};
struct operator_pdata_t {
enum auto_pad_t auto_pad;
int group;
int * kernels;
int nkernel;
int * dil... | 2.1875 | 2 |
2024-11-19T03:02:45.503591+00:00 | 2011-07-23T05:47:17 | f5ceadec6edc44528e6d7a3ab77e03e7b927d5f7 | {
"blob_id": "f5ceadec6edc44528e6d7a3ab77e03e7b927d5f7",
"branch_name": "refs/heads/master",
"committer_date": "2011-07-23T05:47:17",
"content_id": "914010c78bfaeae087f2b85f475c61e0ab0d577e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "39040af0ff84935d083209731dd7343f93fa2874",
"extensio... | stackv2 | /*
** 远程开机(局域网唤醒)
**
** 恶作剧版 '
**
** 适用范围:
局域网
** 使用方法:
在电脑使用高峰期
C:>power --find 192.168.0.%d
获取本局域网内其它电脑的MAC地址,保存到MacData文件中
只需要运行一次即可哦 '
等到大家差不多都关机了 嘿嘿 然后 运行一下
C:>power --startall
电脑就会神奇地启动起来了 哈哈,专对付关机后不关电源的人~~~
不知道的还以为自己电脑出毛病了呢。。然后格硬... | 2.5625 | 3 |
2024-11-19T03:02:45.594017+00:00 | 2015-04-29T17:47:53 | 839e0f083d718d72efff9611274c64b34424ecc8 | {
"blob_id": "839e0f083d718d72efff9611274c64b34424ecc8",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-29T17:47:53",
"content_id": "104596f1212f3335d597cf268464fd4839ceab60",
"detected_licenses": [
"MIT"
],
"directory_id": "6292621a965ef2e5892e142d20d92fde8d00ca08",
"extension": "h"... | stackv2 | /*! \file matrix.h
* \brief matrix mathematics header file
*
* \details
* by: ko shu pui, patrick
* date: 24 nov 91 v0.1b
* revi: Rodney Teo and Jung Soon Jang
* ref:
* [1] Mary L.Boas, "Mathematical Methods in the Physical Sciene,"
* John Wiley & Sons, 2nd Ed., 1983. Chap 3.
*
* \author Universi... | 2.125 | 2 |
2024-11-19T03:02:45.828457+00:00 | 2020-07-30T18:30:14 | 8eff905df0f9b458a60032922317ef36db2ad08e | {
"blob_id": "8eff905df0f9b458a60032922317ef36db2ad08e",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-30T18:30:14",
"content_id": "98bedd13b37e827533649d9b08b406dc9cb68929",
"detected_licenses": [
"MIT"
],
"directory_id": "8ed882ef52cd9ff8cba68b0dbf1b06581c5965de",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2020 Sekhar Bhattacharya
*
* SPDX-License-Identifier: MIT
*/
#include <kernel/kassert.h>
#include <kernel/list.h>
#include <kernel/kmem_slab.h>
#include <kernel/vm/vm_object.h>
#include <kernel/arch/arch_asm.h>
#include <kernel/arch/arch_atomic.h>
#include <kernel/arch/arch_mmu.h>
#include <kern... | 2.34375 | 2 |
2024-11-19T03:02:46.046988+00:00 | 2021-07-09T18:05:09 | e5558a2e75d8a669c3ecb163495ff1feecf1bcc4 | {
"blob_id": "e5558a2e75d8a669c3ecb163495ff1feecf1bcc4",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-09T18:05:09",
"content_id": "195f1751cd58613138647a0bf7f09f885534e505",
"detected_licenses": [
"MIT"
],
"directory_id": "c30d20ffd5522d4fe3e9fca3fb30e19931ab9e97",
"extension": "c",
... | stackv2 | // generated from rosidl_generator_c/resource/idl__functions.c.em
// with input from rmf_task_msgs:msg/TaskProfile.idl
// generated code does not contain a copyright notice
#include "rmf_task_msgs/msg/detail/task_profile__functions.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
/... | 2.078125 | 2 |
2024-11-19T03:02:46.339834+00:00 | 2023-06-21T03:14:20 | 0db44492ebaa9d0390d01b7159c0336e1d7d2761 | {
"blob_id": "0db44492ebaa9d0390d01b7159c0336e1d7d2761",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-21T03:14:20",
"content_id": "c826cb33d456e895ad209997589ef6e8d879d822",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "317410b28757af216145d23259d63fc96d07f613",
"extensio... | stackv2 | #include "jl_kws_common.h"
#include "btstack/avctp_user.h"
#if TCFG_USER_TWS_ENABLE
#include "bt_tws.h"
#endif /* #if TCFG_USER_TWS_ENABLE */
#if TCFG_KWS_VOICE_RECOGNITION_ENABLE
//=========================================================//
// KWS 事件处理 //
//================... | 2.0625 | 2 |
2024-11-19T03:02:46.557805+00:00 | 2017-06-05T16:02:48 | 154bbeb14c2ed13e1d138211d7d8de8330bf14a4 | {
"blob_id": "154bbeb14c2ed13e1d138211d7d8de8330bf14a4",
"branch_name": "refs/heads/RIFT.ware-4.4.1",
"committer_date": "2017-06-05T16:02:48",
"content_id": "19fb6184228e15734cb1c8a8d1c1d61258967646",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3eae9c14c119ee2d6a7d02ef1ba5d61420959e3c",
... | stackv2 | #include <CoreFoundation/CoreFoundation.h>
#define kNumKids 2
#define kNumBytesInPic 10
CFDictionaryRef CreateMyDictionary( void );
CFPropertyListRef CreateMyPropertyListFromFile( CFURLRef fileURL );
void WriteMyPropertyListToFile( CFPropertyListRef propertyList,
CFURLRef fileURL );
int main () {
CFPrope... | 2.265625 | 2 |
2024-11-19T03:02:46.966748+00:00 | 2017-02-18T17:48:49 | 7ca9a431471a9905de3aefd5026814eeceaa6625 | {
"blob_id": "7ca9a431471a9905de3aefd5026814eeceaa6625",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-18T17:48:49",
"content_id": "7bf10d4e798197e88315a8c982c5f02278666552",
"detected_licenses": [
"MIT",
"NCSA"
],
"directory_id": "dd80a584130ef1a0333429ba76c1cee0eb40df73",
"ext... | stackv2 | // RUN: %clang_cc1 -triple mips64-none-linux-gnu -emit-pch -o %t %s
// RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s
// Make sure the semantics of FloatingLiterals are stored correctly in
// the AST. Previously, the ASTWriter didn't store anything and the
// reader assumed PPC 128-bit float semantics, which is i... | 2.15625 | 2 |
2024-11-19T03:02:47.884439+00:00 | 2018-01-16T16:03:48 | 00c9d98618488408c544a8e3a26f4bd82440fae3 | {
"blob_id": "00c9d98618488408c544a8e3a26f4bd82440fae3",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-16T16:03:48",
"content_id": "3cf19c42f08370bf3314682340ecbd7022d8a50f",
"detected_licenses": [
"MIT"
],
"directory_id": "9637b60e61eeb01ce6fd5f1862d13798feb606bc",
"extension": "c"... | stackv2 |
/******************************************************************************
* INCLUDES
*****************************************************************************/
#include "graph.h"
#include "timer.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <mpi.h>
/****************************... | 2.15625 | 2 |
2024-11-19T03:02:48.107762+00:00 | 2017-12-30T13:01:31 | 4e929b742bc1a6804bf8cec2f48f9df91bc767e9 | {
"blob_id": "4e929b742bc1a6804bf8cec2f48f9df91bc767e9",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-30T13:01:31",
"content_id": "e4f68d8a7c5b7593bfd51d8859f1e10cf991c42d",
"detected_licenses": [
"MIT"
],
"directory_id": "e1f5161cb6cc16a5a35d30f440866bca98cce8e8",
"extension": "c"... | stackv2 | #include <unistd.h>
#include "defrag.h"
/**
* This function concatenate "-defrag" suffix to the file name given by argument src
* Note that if the source file name have a filename extension, the suffix will be put just before it
* In addition, the space for result is allocated by malloc, remember to ***free*** it.
... | 3.203125 | 3 |
2024-11-19T03:02:48.294830+00:00 | 2020-05-02T06:59:07 | 666d1850e51db60f6085acead1ec29bbe0d635b8 | {
"blob_id": "666d1850e51db60f6085acead1ec29bbe0d635b8",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-02T06:59:07",
"content_id": "c09b389282d20cf13dba6dada2d2766bd708562a",
"detected_licenses": [
"MIT"
],
"directory_id": "179c355156e924bcd4cbd8e04b3ffb4993fcbaa2",
"extension": "c"... | stackv2 | /* this file does most of disk i/o */
/* free() */
#include <stdlib.h>
/* write(), read() */
#include <unistd.h>
/* strlen() */
#include <string.h>
/* inet_ntop() */
#include <arpa/inet.h>
/* getnameinfo() */
#include <netdb.h>
/* running flag */
#include "common.h"
/* struct serworker */
#include "serworker.h"
/* log... | 2.34375 | 2 |
2024-11-19T03:02:48.530284+00:00 | 2020-08-28T14:23:00 | da066181d79ef00bbae5cfc91fb3e88d7a67dbc5 | {
"blob_id": "da066181d79ef00bbae5cfc91fb3e88d7a67dbc5",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-28T14:23:00",
"content_id": "8d30dc6dc5485f557b75db3786bf6bccf810c921",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "71479c3650204e888523e9c7fe7d938fd71590c2",
"extens... | stackv2 | //---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI (*^..^*)
// for Raspberry Pi
//
// Powered by XM6 TypeG Technorogy.
// Copyright (C) 2016-2017 GIMONS
// [ RaSCSI イーサーネット SCSI制御部 ]
//
// Based on
// Neptune-X board driver for Human-68k(ESP-X) ver... | 2.03125 | 2 |
2024-11-19T03:02:51.297570+00:00 | 2020-01-12T20:17:31 | b839abcb67d2d458c76a6587fed970301abd1d55 | {
"blob_id": "b839abcb67d2d458c76a6587fed970301abd1d55",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-12T20:17:31",
"content_id": "5da019fb78c220914f2d22104fddf4cc98040a90",
"detected_licenses": [
"MIT"
],
"directory_id": "23fbe0c517cf40f6e295675de6b5f0329b4b4d70",
"extension": "h"... | stackv2 | START_TEST (test_fn_sin)
{
stk_elem * stack = NULL;
push(&stack, M_PI / 2.0);
fn_sin (&stack, NAN, 0, NULL);
ck_assert (pop(&stack) == 1);
stk_free(&stack);
}
END_TEST
START_TEST (test_fn_cos)
{
stk_elem * stack = NULL;
push(&stack, M_PI);
fn_cos (&stack, NAN, 0, NULL);
ck_assert (p... | 2.4375 | 2 |
2024-11-19T03:02:51.714725+00:00 | 2022-01-10T14:18:10 | 7ad5af4e504cf4a3765fc4cb335df5ff308dbe5b | {
"blob_id": "7ad5af4e504cf4a3765fc4cb335df5ff308dbe5b",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-10T14:18:10",
"content_id": "14b1cb45568063eb46aecaa9439df8f580e94625",
"detected_licenses": [
"MIT"
],
"directory_id": "864c4d0090a1fb4db891fc7b85a518245fa37b90",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <goimg/goimg.h>
#define vu32(V, I) (((uint32_t *)(V))[I])
/* x1,y1---[x0,y0]
* | |
* | |
* | |
* [x2,y2]---x3,y3
* */
struct rect {
int x0, y0;
int x2, y2;
};
static void im_cut(Image_t *dst, Image_t *con... | 2.953125 | 3 |
2024-11-19T03:02:51.796450+00:00 | 2023-07-25T12:21:55 | 01e4e19280112102f913667df57ab2cb4693ab01 | {
"blob_id": "01e4e19280112102f913667df57ab2cb4693ab01",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-25T12:21:55",
"content_id": "fccceb77557851e7b77f8da0cd1861be067bc792",
"detected_licenses": [
"MIT"
],
"directory_id": "3e159a51aa9360f3dbc845f6597a285dea739f6b",
"extension": "c"... | stackv2 | /*****************************************************************************
*
* test_gradient_d3q27.c
*
* Test of field gradient computation.
*
*
* Edinburgh Soft Matter and Statistical Physics Group and
* Edinburgh Parallel Computing Centre
*
* (c) 2022 The University of Edinburgh
*
* Contributing... | 2.171875 | 2 |
2024-11-19T03:02:52.206131+00:00 | 2021-12-02T18:42:19 | 54c6aea8a6cb239c1d59fafa2a3245c15058ce20 | {
"blob_id": "54c6aea8a6cb239c1d59fafa2a3245c15058ce20",
"branch_name": "refs/heads/master",
"committer_date": "2021-12-02T18:42:19",
"content_id": "9f426761b2ce5b7eb491fa69e61d32ce153802f1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3c7b3a3ebe19228f25432f3fddedf232945bbf93",
"extensio... | stackv2 | #ifndef IODATA_H
#define IODATA_H
#include <stdlib.h>
/* sized data */
typedef struct IOData {
/* size of content */
long int size;
/* content */
void* content;
} IOData;
/* create_io_data */
IOData* create_iodata(long int size);
/*
* fill IOdata from input buffer
* NB: the content is still... | 2.421875 | 2 |
2024-11-19T03:02:54.204657+00:00 | 2022-09-21T11:43:44 | 43c3c4cfc133d2467795a64ba5e226fcc19ae58a | {
"blob_id": "43c3c4cfc133d2467795a64ba5e226fcc19ae58a",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-21T11:43:44",
"content_id": "925d2c4220f9242b5c9e38895a63292abf0297c2",
"detected_licenses": [
"MIT"
],
"directory_id": "cc7365a6ecce522833a90e6042b92f3a0f916886",
"extension": "c"... | stackv2 | /* mafFind -- find mafs intersecting a particular interval
*
* The basic command syntax is
* mafFind file.maf beg end
* The mafs whose first row intersects positions beg-end are printed. For
* non-reference species, a command like
* mafFind file.maf beg end mm3
* asks for mafs that have a row where"mm3" is a prefix of ... | 2.5625 | 3 |
2024-11-19T03:02:54.279736+00:00 | 2021-09-01T08:22:15 | 0ae5c13b63223a8b45ebe55d62baaa69aed6668f | {
"blob_id": "0ae5c13b63223a8b45ebe55d62baaa69aed6668f",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-01T08:22:15",
"content_id": "d878ef0eb8a7acb72e405b4759d062296141c912",
"detected_licenses": [
"MIT"
],
"directory_id": "01404e63fb7cc00848b000d903f7bf4e3763e9b8",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include "itoa.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <string.h>
#include <unistd.h>
#define MAXLINES 1024
int main(int argc, char*argv[]){
if(argc == 2){
int sock_serv_fd, sock_cli_fd;
int size_dgram;
int PO... | 2.671875 | 3 |
2024-11-19T03:02:54.347634+00:00 | 2021-10-22T07:39:06 | 0c8c25bbcb68ea1ed1a2982fb2fe31281738417c | {
"blob_id": "0c8c25bbcb68ea1ed1a2982fb2fe31281738417c",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-22T07:39:06",
"content_id": "f98534343bdbfb9f6d52c0c693dbd4561102e5f8",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "6664e991b0ca091857378289866b422fdb6bc30d",
"extensio... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include "util/Map.h"
typedef struct utMapValue {
uint64_t value;
uint64_t key;
} UtMapValue;
static int utInt64KeyCompare(void *key, void *key1) {
return *(uint64_t *)key - *(uint64_t *)key1;
}
static uint64_t utInt64Hash(void *key) {
return *(u... | 2.609375 | 3 |
2024-11-19T03:02:54.559106+00:00 | 2019-12-13T21:07:36 | 0f21142fdbee421aa24744137079467017ca4e63 | {
"blob_id": "0f21142fdbee421aa24744137079467017ca4e63",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-13T21:07:36",
"content_id": "3aab7657d93c7f747bb46174ef23100e4844ee10",
"detected_licenses": [
"MIT"
],
"directory_id": "3b68014d60513cba8b9f07df9a0b6f172e467077",
"extension": "h"... | stackv2 | #include "lcd.h"
/**
* This file defines the global hardware, as well as the state machine.
*
* SYS_IDLE: non-locking, sleeping
* The system in its idle state. The MCU should be put into sleeping in this state.
* This state is entered whenever an operation is done, or the system was sit idle for too long.
* ... | 2.078125 | 2 |
2024-11-19T03:02:54.973759+00:00 | 2022-11-04T20:30:08 | 44a53ae74b3b72944d795875430885e64ae7af3e | {
"blob_id": "44a53ae74b3b72944d795875430885e64ae7af3e",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-04T20:30:08",
"content_id": "1217559daf912663e7140585f9b1d98057d09139",
"detected_licenses": [
"MIT"
],
"directory_id": "4762c0b2b09414f357837cda4cc7cca7f58d7630",
"extension": "c"... | stackv2 |
#include <st-compiler.h>
#include <st-lexer.h>
#include <st-node.h>
#include <st-universe.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define BUF_SIZE 10000
int
main (int argc, char *argv[])
{
/* read input from stdin */
char buffer[BUF_SIZE];
char c;
int i = 0;
while ((c = ... | 2.234375 | 2 |
2024-11-19T03:02:59.273603+00:00 | 2023-08-24T07:58:02 | bfa67d8ac7df19f43f94234f5e788e73de80fb4e | {
"blob_id": "bfa67d8ac7df19f43f94234f5e788e73de80fb4e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-24T07:58:02",
"content_id": "757a970434c95db6f0bbd202aad4f944befb64a0",
"detected_licenses": [
"MIT"
],
"directory_id": "cb9ffece95cef31e363b55d9e07e21cc22a446eb",
"extension": "c"... | stackv2 | /* -*- coding: utf-8; tab-width: 8; indent-tabs-mode: t; -*- */
/*
* Suika 2
* Copyright (C) 2001-2023, TABATA Keiichi. All rights reserved.
*/
/*
* [Changes]
* - 2023/08/20 作成
*/
#include "suika.h"
static bool is_async;
static bool is_sysmenu;
/*
* 前方参照
*/
static bool init(void);
static void draw(int *x,... | 2.5625 | 3 |
2024-11-19T03:03:00.212235+00:00 | 2014-03-19T15:12:19 | f38a43089324c0425b8b088109ebbd92f541e553 | {
"blob_id": "f38a43089324c0425b8b088109ebbd92f541e553",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-19T15:12:19",
"content_id": "e425e572a02ca7fb3a00ce80b086483c64a95a3e",
"detected_licenses": [
"BSD-4-Clause-UC"
],
"directory_id": "b5ab7091100522c4097cf5323d4a3c5c098a1f93",
"ext... | stackv2 | /*
* Copyright (c) 2009 The Regents of the University of California
* Barret Rhoden <brho@cs.berkeley.edu>
* See LICENSE for details.
*/
#ifdef __SHARC__
#pragma nosharc
#endif
#include <arch/arch.h>
#include <atomic.h>
#include <smp.h>
#include <error.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>... | 2.15625 | 2 |
2024-11-19T03:03:00.750032+00:00 | 2021-09-23T17:06:38 | 393a0769f3815ba1d33c9ab79188e9233ff828bd | {
"blob_id": "393a0769f3815ba1d33c9ab79188e9233ff828bd",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-23T17:06:38",
"content_id": "f7a31d84b75706b659515b964abd5c315b93f8b7",
"detected_licenses": [
"MIT"
],
"directory_id": "c4f9646210782221d6b92ef970e00bae41738870",
"extension": "c"... | stackv2 | /*
* MIT License
*
* Copyright (c) 2020 vzvca
*
* 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, me... | 2.359375 | 2 |
2024-11-19T03:03:00.988251+00:00 | 2018-05-23T18:26:48 | 23088209d2393b4aea6d568c58e68461520e5deb | {
"blob_id": "23088209d2393b4aea6d568c58e68461520e5deb",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T18:26:48",
"content_id": "3c73b2b0c995373d739f5d341137a73ae8dae019",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f232bb80b549fddbacd30bb3ccf4b43c0a997c7c",
"extensio... | stackv2 | #define _GNU_SOURCE
#include <dlfcn.h>
#include <fcntl.h>
#include <libgen.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <utime.h>
#include "txnlib.h"
#include <errno.h>
#define FD_MAX ... | 2.328125 | 2 |
2024-11-19T03:03:01.380623+00:00 | 2012-09-10T17:21:07 | 6c4e7964ed53668b64a62529f03475bea9ca3028 | {
"blob_id": "6c4e7964ed53668b64a62529f03475bea9ca3028",
"branch_name": "refs/heads/master",
"committer_date": "2012-09-10T17:21:07",
"content_id": "b1ca53fbbb2a9882f650f60bd2cf5b51842f02de",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dc478ca10a1bc54f18b6b78875f0c676dc852cf9",
"extensio... | stackv2 | /* -------------------------------------------------------------------------
* Copyright (c) 2010 Inside Secure, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; ei... | 2 | 2 |
2024-11-19T03:03:04.159370+00:00 | 2018-10-16T00:35:30 | 4253840a28d3cb80c8dbe7769b10a83795f91aa7 | {
"blob_id": "4253840a28d3cb80c8dbe7769b10a83795f91aa7",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-16T00:35:30",
"content_id": "195f6e0cd22233b7ee46a08630ebf9639c9eaf1c",
"detected_licenses": [
"MIT"
],
"directory_id": "bd1d6acf25d13ede554869a290f33e4a7ba81f6a",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2014 Hugh Bailey <obs.jim@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND T... | 2.296875 | 2 |
2024-11-19T03:03:04.230474+00:00 | 2019-09-15T19:31:10 | 529e9272e2b0fb634ca626dbd425b87fc30d382d | {
"blob_id": "529e9272e2b0fb634ca626dbd425b87fc30d382d",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-15T19:31:10",
"content_id": "47c1d7cb934ba3104be0886c930f109109338175",
"detected_licenses": [
"MIT"
],
"directory_id": "82d2bc1a4d86529342ff58f20dad94abf33a3913",
"extension": "h"... | stackv2 | #ifndef INVENTORY_H
#define INVENTORY_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <tice.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../utils/vector.h"
#include "item.h"
typedef struct
{
Item item;
uint8_t count;
}InventoryItem;
ty... | 2.15625 | 2 |
2024-11-19T03:03:04.282890+00:00 | 2019-09-06T14:11:33 | 1948e46c2b3e4f0afc21be6cbc3ac086253c482d | {
"blob_id": "1948e46c2b3e4f0afc21be6cbc3ac086253c482d",
"branch_name": "refs/heads/io_service",
"committer_date": "2019-09-06T14:11:33",
"content_id": "16fe724a1f666497ab4f95c4243a105e5864805d",
"detected_licenses": [
"MIT"
],
"directory_id": "4473ffa5c5ed9743c7a5c453d8b66684a255c380",
"extension":... | stackv2 | /*
* Measurements.c
*
* Created on: 12 oct. 2018
* Author: twirteeop
*/
#include <IfxCbs_reg.h>
#include <IfxCpu.h>
#include <IfxCpu_reg.h>
#include "Measurements.h"
void initMeasurements(void)
{
/* Enable OCDS */
CBS_OEC.U = 0xa1;
CBS_OEC.U = 0x5e;
CBS_OEC.U = 0xa1;
CBS_OEC.U = 0x5e;
Ifx_CPU_CCTRL... | 2.078125 | 2 |
2024-11-19T03:03:04.357186+00:00 | 2017-11-01T17:55:23 | 64244434d79cca68d0d301bebd8e67a3e61b28d2 | {
"blob_id": "64244434d79cca68d0d301bebd8e67a3e61b28d2",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-01T17:55:23",
"content_id": "c8f16e9abeb9c7d32381968a72432546baca801d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c75f06318990b6e41c8f93226948138c0f2bbdc0",
"extensio... | stackv2 | // testfile
int main () {
int boom = 1;
int kah = 2;
//robin <3
boomkah = boom + kah;
/*
Tommi ja mä kaupungilla taas illat rullaillaan,
kevä illoissa kauniissa äänet kaikuu taas,
ei huolia ei murheita ei kiire mihinkää
*/
return 0;
} | 2.140625 | 2 |
2024-11-19T03:03:04.591192+00:00 | 2017-04-03T00:00:30 | 7a14d28e46b51fe3c66ac234d2ae2477d9cfede4 | {
"blob_id": "7a14d28e46b51fe3c66ac234d2ae2477d9cfede4",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-03T00:00:30",
"content_id": "68206c14c671055f0533f0ec53195ed13203bc37",
"detected_licenses": [
"MIT"
],
"directory_id": "d842eb1faefa7c16a81a00c2236f843e26ae80a2",
"extension": "c"... | stackv2 | /*
* Simple-SDL2-Audio
*
* Copyright 2016 Jake Besworth
*
* 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 ap... | 2.359375 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.