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-18T20:55:54.500520+00:00
2018-05-23T22:16:54
b1764122e75594216770d40b3dbc3cc1786d7ad5
{ "blob_id": "b1764122e75594216770d40b3dbc3cc1786d7ad5", "branch_name": "refs/heads/master", "committer_date": "2018-05-23T22:16:54", "content_id": "6d086795499eb09da226eafb75829e8b534132ad", "detected_licenses": [ "MIT" ], "directory_id": "551d26d520f3d4ddfc852add32eb647f3b02ebcf", "extension": "h"...
stackv2
/* minPQ.h (what is the purpose of this file?) */ #ifndef C101MinPQ #define C101MinPQ /* Multiple typedefs for the same type are an error in C. */ typedef struct MinPQNode * MinPQ; struct MinPQNode { int n, numPQ, minVertex; double oo; int* status; double* priority; int* parent; }; #define UNSEEN ('u...
2.59375
3
2024-11-18T20:55:55.061738+00:00
2021-09-04T12:05:43
8621a467550529ec86781ea3576311d75054feeb
{ "blob_id": "8621a467550529ec86781ea3576311d75054feeb", "branch_name": "refs/heads/main", "committer_date": "2021-09-04T12:05:43", "content_id": "1b27aa7e838d99dd5240e96538514401808b0b86", "detected_licenses": [ "MIT" ], "directory_id": "e675df4b539ad6206e1b426d22ba0b20e5aa8ced", "extension": "c", ...
stackv2
#include "includes.h" Menu_StateTypeDef menu_state = Menu_R; uint8_t menu_item = 1; uint8_t key_value = 0; void apl_menu_init(void) { apl_menu_r_display((menu_item-1)/3); } void apl_menu_handle(void) { key_value = bsp_key_read(); if(key_value) { switch(menu_state) { case Menu_R: apl_m...
2.40625
2
2024-11-18T20:55:55.701014+00:00
2021-10-03T11:56:22
1a870f2431c65e280d483659eeac09c88395dd56
{ "blob_id": "1a870f2431c65e280d483659eeac09c88395dd56", "branch_name": "refs/heads/main", "committer_date": "2021-10-03T11:56:22", "content_id": "6d6b8cc4ec754386486f3115e051649422cf4a9e", "detected_licenses": [ "MIT" ], "directory_id": "aca18d757735f0790a6e09e7edbfd168c61a8854", "extension": "h", ...
stackv2
#pragma once #include <sqlite3.h> static int sqlite3_lasterrno; static inline intptr_t kk_sqlite3_open(kk_string_t filename, kk_db__open_mode mode, kk_context_t *ctx) { sqlite3 *ret; sqlite3_lasterrno = sqlite3_open_v2( kk_string_cbuf_borrow(filename, NULL), &ret, (mode.write ? SQLITE_OPEN_READWRITE ...
2.265625
2
2024-11-18T20:55:55.759292+00:00
2017-02-06T19:23:44
c1a451841f27f2dfc7c750fc6bb7dbea184aa6a2
{ "blob_id": "c1a451841f27f2dfc7c750fc6bb7dbea184aa6a2", "branch_name": "refs/heads/master", "committer_date": "2017-02-06T19:23:44", "content_id": "477987d0082a7e8045276a45e97bc8ec823dd1f2", "detected_licenses": [ "MIT" ], "directory_id": "197542e201d267c4ac5b7b3faa89bc475dd65a31", "extension": "c"...
stackv2
#include "handler.h" void logString(char * data) { FILE * file; time_t rawtime; struct tm timeinfo; char timeString[26]; time(&rawtime); localtime_s(&timeinfo, &rawtime); fopen_s(&file, "hotkeys.log", "a"); fputc('[', file); asctime_s(timeString, 26, &timeinfo); timeString[strlen(timeString) - 1] = ']'; f...
2.453125
2
2024-11-18T20:55:55.856102+00:00
2019-12-01T10:48:39
ce22eeed44f9ac01a2d1fd7dcc6e4dacdf7548c8
{ "blob_id": "ce22eeed44f9ac01a2d1fd7dcc6e4dacdf7548c8", "branch_name": "refs/heads/master", "committer_date": "2019-12-01T10:48:39", "content_id": "001e4cd3c42b9a59f09408c4f2ca19b245fe3b73", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f4de39842f2b9890ff5e90e3989367ae4693f2dc", "extensio...
stackv2
/* * Test simple chroot()-ed CT */ #include <unistd.h> #include <libct.h> #include <stdio.h> #include <sys/mman.h> #include <string.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include "test.h" #define FS_ROOT "libct_test_root" #define FS_DATA "libct_test_string" #define FS_FILE "file" stati...
2.875
3
2024-11-18T20:55:55.949083+00:00
2022-05-17T22:35:29
1d24cb7de9716e4fbcebf910aed34d54217fbb14
{ "blob_id": "1d24cb7de9716e4fbcebf910aed34d54217fbb14", "branch_name": "refs/heads/master", "committer_date": "2022-05-17T22:35:29", "content_id": "d6c70b01ff5707f6ed79ba3b969fcdbfeca7f1fc", "detected_licenses": [ "MIT" ], "directory_id": "c9bc4abf08727c668c495ef7df8b366c698f5bdd", "extension": "c"...
stackv2
#include <sys/types.h> #include <arpa/inet.h> #include <ifaddrs.h> #include <libgen.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> typedef struct IPA { char ip[16]; char name[32]; } IPA; typedef struct Args { short showColor; short hideName; short maxCount; char *ipForma...
2.765625
3
2024-11-18T20:55:56.013383+00:00
2019-02-11T08:49:08
cd45178dc3ace9b4c8dea28688422ac5c7467e05
{ "blob_id": "cd45178dc3ace9b4c8dea28688422ac5c7467e05", "branch_name": "refs/heads/master", "committer_date": "2019-02-11T08:49:08", "content_id": "e25a2e265b262b144a69c3ef5e93d8dc42d59aee", "detected_licenses": [ "Apache-2.0" ], "directory_id": "72773c724c42a2a2d7da63f04ca1647ce5be179a", "extensio...
stackv2
#include <stdio.h> #include <time.h> typedef unsigned short ushort; typedef unsigned int uint; typedef unsigned long long ulong; typedef unsigned char byte; typedef unsigned int bool; #define true 1 #define false 0 #define null ((void *)0) int sprintf( char* const _Buffer, char const* const _For...
2.421875
2
2024-11-18T20:55:56.472555+00:00
2016-11-09T16:56:51
4810fa4d94a22338c282782430a0eb4615826926
{ "blob_id": "4810fa4d94a22338c282782430a0eb4615826926", "branch_name": "refs/heads/master", "committer_date": "2016-11-09T16:56:51", "content_id": "519d10c6354a21c5aaeb5aa9735925df0e417b23", "detected_licenses": [ "Apache-2.0", "MIT" ], "directory_id": "8384bcd2af4aefa1abfa24a857007353dde13330", ...
stackv2
#include "json2map.h" #include "config.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include "jsmn.h" #include "debugging.h" #include "stringlib.h" char *json2map_setTokenValue(char *jsonString, jsmntok_t *token); char *json2map_concatPaths(char *parent, char *key, int arrayIdx); int json2map_calcE...
2.609375
3
2024-11-18T20:55:56.626755+00:00
2017-07-27T05:28:34
526e8cbbae926ac97e668f6adbd6f6c0fe6211f4
{ "blob_id": "526e8cbbae926ac97e668f6adbd6f6c0fe6211f4", "branch_name": "refs/heads/master", "committer_date": "2017-07-27T05:28:34", "content_id": "292e88f62bc5f61c6043b1dabf20ce13b2b0a6e6", "detected_licenses": [ "MIT" ], "directory_id": "6b024a41cc27fec03f924a140abe6dbca771c3db", "extension": "c"...
stackv2
/* ** This source file is part of AGE ** ** For the latest info, see http://code.google.com/p/ascii-game-engine/ ** ** Copyright (c) 2011 Tony & Tony's Toy Game Development Team ** ** Permission is hereby granted, free of charge, to any person obtaining a copy of ** this software and associated documentation files (the...
2.09375
2
2024-11-18T20:55:56.849923+00:00
2019-01-04T19:58:51
bdf2cce6996270859118edfa8f6d3d05fbfe6f96
{ "blob_id": "bdf2cce6996270859118edfa8f6d3d05fbfe6f96", "branch_name": "refs/heads/master", "committer_date": "2019-01-04T19:58:51", "content_id": "4c6c015e5752f435e1fa56420afcd6415af5f684", "detected_licenses": [ "MIT" ], "directory_id": "9f615adae9bc754e52041e1cf8083e8f574219c5", "extension": "c"...
stackv2
/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferable use...
2.125
2
2024-11-18T20:55:57.389901+00:00
2023-03-19T12:00:50
443d53092e8b5025958e7235b1b51e63f087d044
{ "blob_id": "443d53092e8b5025958e7235b1b51e63f087d044", "branch_name": "refs/heads/master", "committer_date": "2023-03-19T12:00:50", "content_id": "bce387e759c257971a6a5924e02fcebbcb0bb9cb", "detected_licenses": [ "MIT" ], "directory_id": "b085331fe9d658eebeaac0e27a96ea963a6ee5fb", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> int main(void) { char string[] = "Something"; for (int i = 0, lenght = strlen(string); lenght > 0; i++) { printf("%i", i); } }
2.625
3
2024-11-18T20:55:57.821959+00:00
2020-01-31T15:59:26
a097ef5620223ad35100e476f13b638b83007a3c
{ "blob_id": "a097ef5620223ad35100e476f13b638b83007a3c", "branch_name": "refs/heads/master", "committer_date": "2020-01-31T15:59:26", "content_id": "1f3f8913cd7f0f53fa5122236f6b42590cb8d812", "detected_licenses": [ "MIT" ], "directory_id": "98d53231958db63943fcf80544190d222066b21b", "extension": "c"...
stackv2
#include "smh.h" #include "simple_logger.h" #include "gf2d_scene.h" #include "gf2d_physics_entity.h" extern float frameTime; void do_the_thing( Entity *self ) { self->position.y = 350.0f + 100.0f * cosf( 0.025f * self->position.x ); } void smh_awake() { Entity *ent = NULL; PhysicsEntity *pe = NULL; ...
2.171875
2
2024-11-18T20:55:58.636527+00:00
2020-05-06T16:31:42
8d0ed6c2e98038bdce6206f9a7c977efca197e8e
{ "blob_id": "8d0ed6c2e98038bdce6206f9a7c977efca197e8e", "branch_name": "refs/heads/master", "committer_date": "2020-05-06T16:31:42", "content_id": "7a3a616acea1f750a95ae82d7143d81ae71286e5", "detected_licenses": [ "Zlib" ], "directory_id": "e8d24bda03d80e1bf0dda672b340ebb69f38f2b3", "extension": "c...
stackv2
#include <raylib.h> #include <tdd_ecs.h> #include "../../components.h" static Vector2 scoreboard_players_positions[] = { (Vector2){70, 514}, (Vector2){262, 514}, (Vector2){453, 514}, (Vector2){641, 514}}; static const char* scoreboard_players_happy_region_names[][5] = { {"scoreboard_bomberman_hap...
2.0625
2
2024-11-18T20:56:00.337780+00:00
2018-04-10T21:16:51
4b2f7e7026fcc5ab5aa91ef69b1f1433b58b2585
{ "blob_id": "4b2f7e7026fcc5ab5aa91ef69b1f1433b58b2585", "branch_name": "refs/heads/master", "committer_date": "2018-04-10T21:16:51", "content_id": "b49251782d9d3a1f25293bbe137c9e0de9c593a3", "detected_licenses": [ "MIT" ], "directory_id": "f0e35da626bab2fd72b4326857cf9d12141cdb25", "extension": "h"...
stackv2
#ifndef DICT_H_INCL #define DICT_H_INCL #include <sodium.h> #define DICT_NAME_MAX_LENGTH 64 // get the right path separator #ifdef _WIN32 #define PATH_SEPARATOR '\\' #else #define PATH_SEPARATOR '/' #endif //_WIN32 typedef struct dict_ { unsigned int lines; char name[DICT_NAME_MAX_LENGTH + 1]; char hash[65]; ...
2.046875
2
2024-11-18T20:56:01.223229+00:00
2018-03-20T11:12:08
ecda86298f953d03b6185e2ef9c401bccb6d44d4
{ "blob_id": "ecda86298f953d03b6185e2ef9c401bccb6d44d4", "branch_name": "refs/heads/master", "committer_date": "2018-03-20T11:12:08", "content_id": "51a8ef21a7cc738d70d27bb263ef4f158aa97333", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ed675ee1295b12773b2cc4562df3b16e296ef2c6", "extens...
stackv2
#include "instruction_set.h" #include "util.h" extern inline bool instruction_is_active(struct instruction_set *is, uint8_t type); void instruction_set_init(struct instruction_set *is) { is->active = 0; action_list_init(&is->apply_act.actions); action_set_init(&is->write_act.actions); } void add_apply_...
2.328125
2
2024-11-18T20:56:01.498103+00:00
2018-05-27T19:30:48
a81a00ad1a6b15b7a3e7cba69650dc553f1250fa
{ "blob_id": "a81a00ad1a6b15b7a3e7cba69650dc553f1250fa", "branch_name": "refs/heads/master", "committer_date": "2018-05-27T19:30:48", "content_id": "6377a93dc042f8995c745d4f0c8831b32d845e88", "detected_licenses": [ "MIT" ], "directory_id": "5d8a4acbf458e531399a61d5ffccfa2c12448f98", "extension": "h"...
stackv2
#if 0 /// Copyright (c) Titan Robotics Club. All rights reserved. /// /// <module name="servo.h" /> /// /// <summary> /// This module contains the library functions for the servo subsystem. /// </summary> /// /// <remarks> /// Environment: RobotC for Lego Mindstorms NXT. /// </remarks> #endif #ifndef _SERVO_H ...
2.265625
2
2024-11-18T20:56:02.718817+00:00
2015-04-17T17:56:20
f22a10f8ab895470fa187614d7cacfb622f28042
{ "blob_id": "f22a10f8ab895470fa187614d7cacfb622f28042", "branch_name": "refs/heads/master", "committer_date": "2015-04-17T17:56:20", "content_id": "68eeb69b4694b7df61efde55abd9df634ce70331", "detected_licenses": [ "ISC" ], "directory_id": "66bdc05e3e7e0a2069cbf59a8dad1fdf7a52caef", "extension": "c"...
stackv2
/*====================================================================* * * void menulength (MENU * menu); * * menu.h * *. Motley Tools by Charles Maier *: Published 1982-2005 by Charles Maier for personal use *; Licensed under the Internet Software Consortium License * *---------------------------...
2.015625
2
2024-11-18T20:56:04.429628+00:00
2019-06-21T07:10:16
1f88441fb767cdb4a8447e7fd1814695095760cf
{ "blob_id": "1f88441fb767cdb4a8447e7fd1814695095760cf", "branch_name": "refs/heads/master", "committer_date": "2019-06-21T07:10:16", "content_id": "9960debca22324c03c5f3ad085ed6cf36c824c4e", "detected_licenses": [], "directory_id": "4e0d616e5be0bfaaf36273d335e3aba9f82289f3", "extension": "c", "filename...
stackv2
// ============================================================================= // High Performance ParalleX Library (libhpx) // // Copyright (c) 2013-2017, Trustees of Indiana University, // All rights reserved. // // This software may be modified and distributed under the terms of the BSD // license. See the C...
2.4375
2
2024-11-18T21:20:01.176442+00:00
2017-09-13T16:17:56
e69dfcf08492d2d94b30a7b4b89d50e689ffcb3c
{ "blob_id": "e69dfcf08492d2d94b30a7b4b89d50e689ffcb3c", "branch_name": "refs/heads/master", "committer_date": "2017-09-13T16:17:56", "content_id": "98434f872344cfeb00ea729915fb167d2488a441", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "41ed8144286e50100b78adea787f3896...
stackv2
#include <ppl.hh> #include <sstream> #include <iostream> #include "PPL_Power.h" using namespace std; using namespace Parma_Polyhedra_Library; using namespace Parma_Polyhedra_Library::IO_Operators; /* Check new powerset is the same as old powerset, return true else merge the two powerset, delete old_m, return fals...
2.390625
2
2024-11-18T21:20:01.453519+00:00
2016-08-02T01:33:43
7590ce174fe0299094f9e4be0e68c2ac1a400979
{ "blob_id": "7590ce174fe0299094f9e4be0e68c2ac1a400979", "branch_name": "refs/heads/master", "committer_date": "2016-08-02T03:01:09", "content_id": "a0b8fc861d163c11f0c388986709e6908e36110b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "f8a203c9c6f4032cfc656aee367db8e0eb34b8fa", "extens...
stackv2
#include <unistd.h> #include <stdint.h> #include <stdlib.h> #include <errno.h> #include <time.h> #include <sys/types.h> #include "common.h" #include "cpio.h" #include <zlib/contrib/minizip/unzip.h> #include <stdio.h> // TODO: helper functions for manipulating file_chunks enum override_flags { OVER_CREATE = 1<<0, /...
2.203125
2
2024-11-18T21:20:01.596199+00:00
2020-06-26T12:36:36
2fb9ae5922fb53337b5e1571a2b41c5a1dbc5a0d
{ "blob_id": "2fb9ae5922fb53337b5e1571a2b41c5a1dbc5a0d", "branch_name": "refs/heads/master", "committer_date": "2020-06-26T12:36:36", "content_id": "474dea1e7c499368d76ede21088c6e2050f8f2ff", "detected_licenses": [ "Apache-2.0" ], "directory_id": "780dd01e385ee622f3220f2ffcb00f785dbbfb49", "extensio...
stackv2
/* * Copyright (c) 2016 Martin Jäger / Libre Solar * * SPDX-License-Identifier: Apache-2.0 */ #ifndef LEDS_H #define LEDS_H /** @file * * @brief * Control of status LEDs with charlieplexing */ #ifdef __cplusplus extern "C" { #endif /** LED state type */ enum LedState { LED_STATE_OFF = 0, LED_STATE_...
2.28125
2
2024-11-18T22:23:03.230658+00:00
2017-04-20T10:17:49
507749e40d1172776e33592b4212d958328b9e18
{ "blob_id": "507749e40d1172776e33592b4212d958328b9e18", "branch_name": "refs/heads/master", "committer_date": "2017-04-20T10:17:49", "content_id": "7c736a8f0e6a77152b0d8d2180c4784648ab01db", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ebd585fdafb22d31fcd6d04b209f81e88d1a2083", "extensio...
stackv2
#ifndef _SECBOOT_HASH_H #define _SECBOOT_HASH_H /*======================================================================== SECURITY SERVICES HASHING MODULE FOR SECBOOT FILE: secboot_hash.h DESCRIPTION: This is the secboot interface into hashing. There is one function for hashing a single buffer (secboot_hash), ...
2.21875
2
2024-11-18T22:23:03.287009+00:00
2023-07-17T19:08:32
eb195cf067c2013d1dac0437ef64491b8b164575
{ "blob_id": "eb195cf067c2013d1dac0437ef64491b8b164575", "branch_name": "refs/heads/master", "committer_date": "2023-07-17T19:08:32", "content_id": "ead2ece3ea1532cf12021ce84a1540ca6a76c8f2", "detected_licenses": [ "Apache-2.0" ], "directory_id": "5dd12f565868b9fd8136a87939fe13997879def4", "extensio...
stackv2
/*************************************************************************\ * * Package: TestU01 * File: utezuka.c * Environment: ANSI C * * Copyright (c) 2002 Pierre L'Ecuyer, DIRO, Université de Montréal. * e-mail: lecuyer@iro.umontreal.ca * All rights reserved. * * This software is prov...
2.375
2
2024-11-18T22:23:03.586527+00:00
2019-09-22T01:46:12
9ea8912657d3a724943003cd6bca53ccfee7ab23
{ "blob_id": "9ea8912657d3a724943003cd6bca53ccfee7ab23", "branch_name": "refs/heads/master", "committer_date": "2019-09-22T01:46:12", "content_id": "51f5a230e6bc5588dee975418bf2d1a7b69d33e4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9d8f38036ebddb5dc2cce75c5c500a83d7f51274", "extensio...
stackv2
/* * Copyright (c) 2018 Samsung Electronics Co., 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...
2.5625
3
2024-11-18T22:23:03.780282+00:00
2022-05-17T13:30:59
e8d24248cc3231e8d55ae2c7beecb4a9031ae8c7
{ "blob_id": "e8d24248cc3231e8d55ae2c7beecb4a9031ae8c7", "branch_name": "refs/heads/master", "committer_date": "2022-05-17T13:31:08", "content_id": "2eb23c01259be74b810177c2479cf3e8873f8431", "detected_licenses": [ "MIT", "CC0-1.0" ], "directory_id": "667d3b23c42d542c468993c789dde4e4745c5695", "...
stackv2
#include <arch.h> #include <x64/apic.h> #include <debug.h> #ifdef DEBUG_BUILD bool arch_asan_is_kernel_address(vaddr_t addr) { return addr < 0xffff8000fec00000; // APIC registers. } extern char __kernel_image_start[]; extern char __kernel_image_end[]; void arch_asan_init(void) { size_t image_len = (size_t) _...
2.046875
2
2024-11-18T22:23:04.169127+00:00
2022-08-24T08:26:13
e0baa359c2bcd1247a94a39898034af5706db052
{ "blob_id": "e0baa359c2bcd1247a94a39898034af5706db052", "branch_name": "refs/heads/master", "committer_date": "2022-08-24T08:45:13", "content_id": "00f9741f17d3721cf0e218590eb85ed37881c499", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8aa62ead9aa06e286f88b71ab93f9b960458a0ed", "extensio...
stackv2
/** * Copyright (C) 2017-2019 Alibaba Group Holding Limited. */ #include "hal_test.h" int hal_dump_data(const char *name, uint8_t *data, uint32_t size) { #if defined(CONFIG_HAL_DEBUG) size_t i; if (data == NULL || size == 0) { HAL_TEST_ERR("invalid input args\n"); return -1; } HAL_...
2.4375
2
2024-11-18T22:23:04.317281+00:00
2020-04-23T16:20:36
0b49d684285fdebf09e3d63935ef7c39456e0e33
{ "blob_id": "0b49d684285fdebf09e3d63935ef7c39456e0e33", "branch_name": "refs/heads/master", "committer_date": "2020-04-23T16:20:36", "content_id": "eb6307bbe840eed06be1f576c69281369bc74bec", "detected_licenses": [ "MIT" ], "directory_id": "04a8ed52b7405fcd7a3902dac354a6cbba6dd98c", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> void encrypt(FILE * f, int key, FILE * outfile){ char * line = NULL; size_t sz = 0; while (getline(&line,&sz, f) >= 0) { char * ptr = line; while (*ptr != '\0') { int c = *ptr; if (isalpha(c)) { c = tolower(c); c ...
3.046875
3
2024-11-18T22:23:04.401101+00:00
2021-07-28T16:09:24
791944c780c2deb90a8c0ad8f580a6bae71111a1
{ "blob_id": "791944c780c2deb90a8c0ad8f580a6bae71111a1", "branch_name": "refs/heads/main", "committer_date": "2021-07-28T16:09:24", "content_id": "d61a3ac121eee2f4a5589f96ee0f3f0a0ba48b1b", "detected_licenses": [ "MIT" ], "directory_id": "87731093dcdd20800f4609b7fbfd1f78c76add05", "extension": "c", ...
stackv2
#include <stdio.h> /*Faça uma função que dado a base e a altura de um retângulo retorne a área.*/ int main(void) { float a, b, c; printf("Base:\t"); scanf("%f",&b); printf("Altura:\t"); scanf("%f",&a); c = a * b; printf("A área deste retângulo é %f", c); return 0; }
3.5625
4
2024-11-18T22:23:04.510695+00:00
2023-07-18T20:28:44
d61c91e5f7faea122e7b9f41b6349b77b626c79c
{ "blob_id": "d61c91e5f7faea122e7b9f41b6349b77b626c79c", "branch_name": "refs/heads/master", "committer_date": "2023-07-18T20:28:44", "content_id": "b301d0809575331d5bf349136219f9689a6431d1", "detected_licenses": [ "MIT" ], "directory_id": "fd30f70fb125ed18f900ec30566756b40d24fc17", "extension": "h"...
stackv2
#ifndef VM_H #define VM_H #include <signal.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include "compiler.h" #include "hashtable.h" #include "jstar.h" #include "jstar_limits.h" #include "object.h" #include "util.h" #include "value.h" // Enum encoding special method names needed at runtime // Main...
2.125
2
2024-11-18T22:23:05.325810+00:00
2013-06-11T10:58:43
ba33761b1117a92486a2fd2316fc95df0962a658
{ "blob_id": "ba33761b1117a92486a2fd2316fc95df0962a658", "branch_name": "refs/heads/master", "committer_date": "2013-06-11T10:58:43", "content_id": "02a176d6994d8244d370d5c359f96fc62adb5051", "detected_licenses": [ "Apache-2.0", "Zlib" ], "directory_id": "e9c0b619c425a96bd71f5c560fd4f2ab126da4b5",...
stackv2
/* Copyright 2011 Justin Erenkrantz and Greg Stein * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
2.328125
2
2024-11-18T22:23:05.547639+00:00
2023-07-05T03:22:19
cd25f10e81ca262e6ad8707828559117fa9decd5
{ "blob_id": "cd25f10e81ca262e6ad8707828559117fa9decd5", "branch_name": "refs/heads/master", "committer_date": "2023-07-05T03:22:19", "content_id": "83cbe658e1edb4a0ec2de01a8864e052887c4c4b", "detected_licenses": [ "MIT" ], "directory_id": "1934dc2bbe2cdb7b7fd553ff6a81d03f03b3fd58", "extension": "c"...
stackv2
/* Copyright (c) 2009-2017 Dave Gamble and cJSON contributors 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, m...
2.0625
2
2024-11-18T22:23:06.404620+00:00
2021-11-22T16:39:51
37c24e6c6aab6dd608d1054d9d69aac4ba0f3f39
{ "blob_id": "37c24e6c6aab6dd608d1054d9d69aac4ba0f3f39", "branch_name": "refs/heads/main", "committer_date": "2021-11-22T16:39:51", "content_id": "8752d08c635e048891a2fcf7eec78729076cf25a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "062b8d08a7f8f0e96fcd0b3380da0527d0f00979", "extensio...
stackv2
// ################################################################################################# // # << neoTRNG Test (TRNG Peripheral of the NEORV32 RISC-V Processor) # // # ********************************************************************************************* # // # NEORV32 HQ: ...
2.078125
2
2024-11-18T22:23:06.839149+00:00
2012-11-14T00:01:50
6a6253aad4902fa782504b9c28629e8d9e3d215d
{ "blob_id": "6a6253aad4902fa782504b9c28629e8d9e3d215d", "branch_name": "refs/heads/master", "committer_date": "2012-11-14T00:01:50", "content_id": "3ac42eda856924887c9dc5b7d0f3dfb7aa377171", "detected_licenses": [ "MIT" ], "directory_id": "4a4ecb68a54cdc54504382c83ba98fae7b2ec37b", "extension": "c"...
stackv2
#include <assert.h> #include <stdio.h> int main(int argc, char **argv) { unsigned int c1, c2, c3, c4; int i = 0; while (1) { c1 = getchar(); if (feof(stdin)) break; c2 = getchar(); if (feof(stdin)) break; c3 = getchar(); if (feof(stdin)) break; c4 = getchar(); if (feof(stdin)) break; ...
2.859375
3
2024-11-18T22:23:06.911501+00:00
2019-10-31T05:47:52
8569b9d061b4a6b43e5019931832a4e65c1da187
{ "blob_id": "8569b9d061b4a6b43e5019931832a4e65c1da187", "branch_name": "refs/heads/develop", "committer_date": "2019-10-31T05:47:52", "content_id": "fcba455d08119acea0139d5c091dd9bc91509219", "detected_licenses": [ "MIT" ], "directory_id": "2ca42747e43ea1ddb8f5a54f7eaabd89b859c092", "extension": "h...
stackv2
// to use AddFontMemResourceEx in VC++ 6 // hamparawa@gmail.com #ifndef FONTMEM_H #define FONTMEM_H #include <windows.h> typedef int (__stdcall *FONTPROC)(PVOID, DWORD, PVOID, DWORD *); inline int __stdcall AddFontMemResourceEx_dyn(PVOID pbFont, DWORD cbFont, PVOID pdv, DWORD *pcFonts ) { FONTPROC pTrans; HINSTAN...
2
2
2024-11-18T22:23:09.496694+00:00
2021-10-27T08:27:13
834fcc4294932b5869bb4a2032f7dc67ec5fb62d
{ "blob_id": "834fcc4294932b5869bb4a2032f7dc67ec5fb62d", "branch_name": "refs/heads/master", "committer_date": "2021-10-27T08:27:13", "content_id": "c83e0db45a55ecf503310d33451132dabce0bf98", "detected_licenses": [ "MIT", "Unlicense" ], "directory_id": "6eeda417c62f8c35dc8a83dd3adf06a8655f04da", ...
stackv2
#include <stdio.h> #include <string.h> struct STUDENT { char name[50]; int rollNo,m1,m2,m3; float percentage; }; void result_name(struct STUDENT arr[],int size,char name[50]){ int i=0; int result=-1; while(result!=0){ result = strcmp(arr[i].name,name); i++; if (i > size...
3.28125
3
2024-11-18T20:22:50.962678+00:00
2023-08-22T19:25:15
0c248923648ccc48f8df9c8c14c7682771ef0555
{ "blob_id": "0c248923648ccc48f8df9c8c14c7682771ef0555", "branch_name": "refs/heads/main", "committer_date": "2023-08-22T19:25:15", "content_id": "98a1a4fd4ff958c15a1d474daea85206504f00f6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6bae10c29fef626e72f8f9ea684fd0be6e1c210b", "extension"...
stackv2
#include <stdio.h> #include <string.h> #include <memory.h> #include <mysql.h> #define QUERIES_SIZE 14 char *queries[QUERIES_SIZE] = { "create table test (pk int, `value` int, primary key(pk))", "describe test", "select * from test", "insert into test (pk, `value`) values (0,0)", "select * from test",...
2.3125
2
2024-11-18T20:22:51.087912+00:00
2017-08-18T09:56:18
fa47dd4fc469d7697528dc9a7b40d7318e7ed68a
{ "blob_id": "fa47dd4fc469d7697528dc9a7b40d7318e7ed68a", "branch_name": "refs/heads/master", "committer_date": "2017-08-18T09:56:18", "content_id": "f23167415f94bbe3740d2c3d36b73a7b2cf1bc54", "detected_licenses": [ "MIT" ], "directory_id": "a88e0b422daa713dfa9158f73843539efb757e43", "extension": "c"...
stackv2
#include <bitcoin/address.h> #include <bitcoin/base58.h> #include <bitcoin/script.h> #include <ccan/tal/str/str.h> #include <daemon/bitcoind.h> #include <daemon/chaintopology.h> #include <daemon/jsonrpc.h> #include <errno.h> #include <lightningd/hsm/gen_hsm_wire.h> #include <lightningd/hsm_control.h> #include <lightnin...
2.03125
2
2024-11-18T20:48:29.803725+00:00
2023-07-15T20:00:27
35b5f640f631aed72f5dd07e1014f8525b1f29ee
{ "blob_id": "35b5f640f631aed72f5dd07e1014f8525b1f29ee", "branch_name": "refs/heads/master", "committer_date": "2023-07-15T20:00:27", "content_id": "200ebf7ed5f6657ea36e9c287744aabeb7af2490", "detected_licenses": [ "Unlicense" ], "directory_id": "f82defd467c7b33a1518d2df83a81d06b82dfb33", "extension...
stackv2
#ifndef __STM32L4xx_CLOCKS #define __STM32L4xx_CLOCKS // Oscillator values adaptation // The value of External High Speed oscillator (HSE) #if !defined(HSE_VALUE) #define HSE_VALUE ((uint32_t)16000000U) // Hz #endif // HSE_VALUE // The default value of Internal Multiple Speed oscillator (MSI) // This v...
2.25
2
2024-11-18T20:48:30.135181+00:00
2023-02-16T11:27:40
5ca1954f353975246eb34d6f2f30a525a40d4e0b
{ "blob_id": "5ca1954f353975246eb34d6f2f30a525a40d4e0b", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "2ba31894891ea235544f10c103c50aca08c667b6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2022 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/shell/shell.h> static int cmd2_handler(const struct shell *sh, size_t argc, char **argv) { ARG_UNUSED(sh); ARG_UNUSED(argc); ARG_UNUSED(argv); return 20; } SHELL_SUBCMD_ADD((section_cmd), cmd2, NULL, ...
2.109375
2
2024-11-18T20:48:30.647905+00:00
2019-07-29T09:42:07
088bd374575591db823c8b79e65bd253ef8c06fc
{ "blob_id": "088bd374575591db823c8b79e65bd253ef8c06fc", "branch_name": "refs/heads/master", "committer_date": "2019-07-29T09:42:07", "content_id": "cbc7bdbe7da552d84689b61f6a82d6c80efdf7c4", "detected_licenses": [ "MIT" ], "directory_id": "a1541ec9975c2611a79cdeaf4240442a9ac612d6", "extension": "c"...
stackv2
// // fake_file.c // libms // // Created by Jianguo Wu on 2018/12/23. // Copyright © 2018 wujianguo. All rights reserved. // #include "fake_file.h" static void ms_cs_md5(char buf[33], ...) { unsigned char hash[16]; const uint8_t *msgs[20], *p; size_t msg_lens[20]; size_t num_msgs = 0; va_list ap; v...
2.5
2
2024-11-18T20:48:30.932457+00:00
2023-08-26T17:35:16
784eb838d4908cf1c3a5c09657552dbdd241cc7c
{ "blob_id": "784eb838d4908cf1c3a5c09657552dbdd241cc7c", "branch_name": "refs/heads/master", "committer_date": "2023-08-26T17:35:16", "content_id": "a6407042fc17d13ae47597396e90009b22067e58", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f389215145b18879687b8deffdad65c2df127895", "extensio...
stackv2
// Puzzle: Implement a fantasy computer to find out the answer to this program // https://www.reddit.com/r/adventofcode/comments/128t3c6/puzzle_implement_a_fantasy_computer_to_find_out/ // Puzzle designed by https://www.reddit.com/user/codeobserver for https://codeguppy.com // Solution by E. Dronkert https://github.com...
2.46875
2
2024-11-18T20:48:31.249369+00:00
2020-10-19T17:51:59
0f28bc06252ece02eaf68686f8b4fae779fd419d
{ "blob_id": "0f28bc06252ece02eaf68686f8b4fae779fd419d", "branch_name": "refs/heads/master", "committer_date": "2020-10-19T17:51:59", "content_id": "4e86f62e085c0b054667483a260358bd8aabc7fd", "detected_licenses": [ "MIT" ], "directory_id": "67f3b7aee6600a344a37df82d6331fd0bcab3a9d", "extension": "h"...
stackv2
#include <sys/types.h> #include <unistd.h> #include "parse.h" /* Maximum character limit on command */ #define CMD_SIZE 1024 /* Max number of processes allowed in a group */ #define MAX_PROCS_IN_GROUP 16 /* Flags needed while reading/writing a file */ #define READ_FLAGS (O_RDONLY) #define CREATE_FLAGS (O_WRONLY | O_...
2.453125
2
2024-11-18T20:48:31.721529+00:00
2014-10-31T07:59:14
7d1b9e0609020f01f62e2b4d4b11a03dc100d59d
{ "blob_id": "7d1b9e0609020f01f62e2b4d4b11a03dc100d59d", "branch_name": "refs/heads/master", "committer_date": "2014-10-31T07:59:14", "content_id": "a48d6531952764d8511060e75c031be13d43675e", "detected_licenses": [ "NTP" ], "directory_id": "441f1d69b8dc09d769645c670d20edeb78714c2b", "extension": "c"...
stackv2
/* * refclock_as2201 - clock driver for the Austron 2201A GPS * Timing Receiver */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #if defined(REFCLOCK) && defined(CLOCK_AS2201) #include "ntpd.h" #include "ntp_io.h" #include "ntp_refclock.h" #include "ntp_unixtime.h" #include "ntp_stdlib.h" #include <stdio.h> #in...
2.1875
2
2024-11-18T20:48:32.930604+00:00
2023-08-12T07:52:03
dfa07d7fe10c974534ab263ce72eae3da799f054
{ "blob_id": "dfa07d7fe10c974534ab263ce72eae3da799f054", "branch_name": "refs/heads/master", "committer_date": "2023-08-12T13:24:08", "content_id": "a1d5190d592472ec1ddd1087f8c09ce70a110f9f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1a0276218c8a103c9a76409e510df5b5690f44e5", "extensio...
stackv2
/** * FreeRDP: A Remote Desktop Protocol Implementation * * Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> * * 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...
2.078125
2
2024-11-18T20:48:33.181106+00:00
2018-02-25T20:04:09
4122147079fd300683b543f71d7d80f5008b0200
{ "blob_id": "4122147079fd300683b543f71d7d80f5008b0200", "branch_name": "refs/heads/master", "committer_date": "2018-02-25T20:04:09", "content_id": "d2ad28e3662e295758cf3d941f4fa90bb22499ca", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "0e321529e10eed6fcf26a30b3bd2eb03...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdarg.h> #include <math.h> #include <stdint.h> #include "citrine.h" /** * CTRWalkerReturn * * Returns from a block of code. */ ctr_object* ctr_cwlk_return(ctr_tnode* node) { char wasReturn = 0; ctr_tlistitem* li; ctr_objec...
2.484375
2
2024-11-18T20:48:33.327422+00:00
2020-07-13T02:23:35
5209ce691c1ef8785a7a0073cb6956f07dbc4b8a
{ "blob_id": "5209ce691c1ef8785a7a0073cb6956f07dbc4b8a", "branch_name": "refs/heads/master", "committer_date": "2020-07-13T02:23:35", "content_id": "c2d6aac08831b1fbdbd01effb4ec39262ae15fb8", "detected_licenses": [ "MIT" ], "directory_id": "5743796cdf5f28a1faf92543d4cb349d703ec23a", "extension": "c"...
stackv2
/** * \file dataservice/dataservice_data_txn_commit.c * * \brief Commit a transaction in the data service. * * \copyright 2018 Velo Payments, Inc. All rights reserved. */ #include <agentd/dataservice/private/dataservice.h> #include <agentd/inet.h> #include <cbmc/model_assert.h> #include <unistd.h> #include <vpr...
2
2
2024-11-18T20:48:33.393212+00:00
2022-06-21T23:20:46
d951fe16da6def53a054e5cb433cfece2bf41949
{ "blob_id": "d951fe16da6def53a054e5cb433cfece2bf41949", "branch_name": "refs/heads/master", "committer_date": "2022-06-21T23:20:46", "content_id": "a0509a138ff384e5b52185ab7c5e3d2fa6162e5e", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "32d00deba84b6e6c03ce6e69c21d4d6aab9b7c71", "extens...
stackv2
// Server connection handling #include "connections.h" #include "items.h" #include "server.h" #include <assert.h> #include <event.h> #include <pthread.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/stat.h> #include <sys/socket.h> #include <sys/un....
2.4375
2
2024-11-18T20:48:34.622566+00:00
2017-01-15T12:06:31
7f8f0e80d6d0c63edb0e2d70158320c966c6c79a
{ "blob_id": "7f8f0e80d6d0c63edb0e2d70158320c966c6c79a", "branch_name": "refs/heads/master", "committer_date": "2017-01-15T12:06:31", "content_id": "abf0dc58e7a3fc1d118ea3be56ac5e36d94a7448", "detected_licenses": [ "MIT" ], "directory_id": "cbbfe762ce01cad1a53523266b1d07c5b34ad571", "extension": "c"...
stackv2
// // main.c // Bitwize // // Created by Miguel Oliveira on 25/02/15. // Copyright (c) 2015 GAZELAINC. All rights reserved. // #include <stdio.h> int main(int argc, const char * argv[]) { unsigned long a = 0x00000001; unsigned long b = 0x0; for (int i = 0; i < 31; i++) { a = a << 2; ...
2.625
3
2024-11-18T20:48:34.698046+00:00
2016-11-26T02:08:41
1de19482274fd873217f029db8ac1e71c0d3492b
{ "blob_id": "1de19482274fd873217f029db8ac1e71c0d3492b", "branch_name": "refs/heads/master", "committer_date": "2016-11-26T02:08:41", "content_id": "adfdde128cad3d4f146d34d145e259d7894e5c01", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b567a85824b775e8ff59af529d4daba0f7b637ac", "extensio...
stackv2
#include "main.h" int sig_flag = 0; void sigint(int a) { sig_flag = 1; } int main (int argc, char* argv[]) { // Input validation if (argc == 1 || argc > 2) { debug_print("%s", "Invalid number of arguments!"); return 0; } FILE* fp = fopen(argv[1], "rb"); // Load ROM into dynami...
2.359375
2
2024-11-18T20:48:34.786980+00:00
2020-07-29T19:42:15
806160c10eb52fa45460720027c3f7c2efacd64e
{ "blob_id": "806160c10eb52fa45460720027c3f7c2efacd64e", "branch_name": "refs/heads/master", "committer_date": "2020-07-29T19:42:15", "content_id": "46f13981e33959f874dad591ebe4cb18af79d1db", "detected_licenses": [ "curl" ], "directory_id": "93fa8ba477a8ee5b721f387b3c888b92d61ac825", "extension": "c...
stackv2
#include <stdlib.h> #include <stdio.h> #include <ctype.h> #include "HolidayAPI.h" #define MAX_BUFFER_LENGTH 4096 #define intToStr(dst, src) \ do {\ char dst[256];\ snprintf(dst, 256, "%ld", (long int)(src));\ }while(0) // View a list of entered holidays // // Allows the user to view all holidays entered...
2.125
2
2024-11-18T20:48:35.171798+00:00
2023-09-02T14:55:31
494eaebbb5f4ace999ef65d5b314a1baed283f15
{ "blob_id": "494eaebbb5f4ace999ef65d5b314a1baed283f15", "branch_name": "refs/heads/master", "committer_date": "2023-09-02T14:55:31", "content_id": "b5979ae1431c84ca3cf5c6844a335e65092fce2e", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca", "extens...
stackv2
/** * @file * @brief Cache operations * * @date 25.11.09 * @author Anton Bondarev */ #ifndef MICROBLAZE_CACHE_H_ #define MICROBLAZE_CACHE_H_ #include <framework/mod/options.h> #include <module/embox/arch/microblaze/kernel/arch.h> #define CONFIG_ICACHE_BYTE_SIZE \ OPTION_MODULE_GET(embox__arch__microblaze__k...
2.40625
2
2024-11-18T20:48:35.229763+00:00
2021-02-26T04:08:10
84e8e2881a189a7f0524ad1df00d834e7060e041
{ "blob_id": "84e8e2881a189a7f0524ad1df00d834e7060e041", "branch_name": "refs/heads/main", "committer_date": "2021-02-26T04:08:10", "content_id": "d455612f3e46b5b875694b6daf1f3cf537c25d8e", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c8ddfea14a0abcac2db30dbddb1efc9c39d45bef", "extensio...
stackv2
#ifndef MINICOMMON_H #define MINICOMMON_H #if defined (WIN32) #ifdef __MGNCS_LIB__ #define MGNCS_EXPORT __declspec(dllexport) #else #define MGNCS_EXPORT __declspec(dllimport) #endif #else #define MGNCS_EXPORT #endif typedef struct Allocator{ void *(*alloc)(void* pold, size_t new_size); size...
2.109375
2
2024-11-18T20:48:35.644640+00:00
2020-10-25T04:45:43
eb90d24680f7f652227546e42a2a6274f1793210
{ "blob_id": "eb90d24680f7f652227546e42a2a6274f1793210", "branch_name": "refs/heads/main", "committer_date": "2020-10-25T04:45:43", "content_id": "13a7d091bdcc6ae119a38ac0b405352d1d979421", "detected_licenses": [ "MIT" ], "directory_id": "84053f08269ba4e15bf8fd3e33c70644a4db175f", "extension": "", ...
stackv2
#include<stdio.h> int main() { printf("\n\n\t\tStudytonight - Best place to learn\n\n\n"); int n, m, c, d, first[10][10], second[10][10], sum[10][10], diff[10][10]; printf("\nEnter the number of rows and columns of the first matrix \n\n"); scanf("%d%d", &m, &n); printf("\nEnter the %d elements of...
3.78125
4
2024-11-18T20:48:35.809944+00:00
2021-11-09T02:55:05
ae54ee90643968d4572117f00990957d9ab22635
{ "blob_id": "ae54ee90643968d4572117f00990957d9ab22635", "branch_name": "refs/heads/master", "committer_date": "2021-11-09T02:55:05", "content_id": "4d7914db4f0661e9bc5138a62d165c90c2c6096b", "detected_licenses": [ "MIT" ], "directory_id": "6d8ce5aeb3970e78c64fd8cc3c9d0576a5182670", "extension": "c"...
stackv2
#include <string.h> #include "simple_logger.h" #include "gfc_matrix.h" #include "gf3d_camera.h" static Camera gf3d_camera = { 0 }; void gf3d_camera_get_view_mat4(Matrix4* view) { if (!view)return; memcpy(view, gf3d_camera.cameraMat, sizeof(Matrix4)); } void gf3d_camera_set_view_mat4(Matrix4* view) { i...
2.53125
3
2024-11-18T20:48:36.020109+00:00
2021-11-02T23:36:59
72f02c6b66e7a82a37e09dcd13d3c1a4d42c0fce
{ "blob_id": "72f02c6b66e7a82a37e09dcd13d3c1a4d42c0fce", "branch_name": "refs/heads/main", "committer_date": "2021-11-02T23:36:59", "content_id": "9d9d3d97ba07de2e59fca633ed52ee742818c751", "detected_licenses": [ "MIT" ], "directory_id": "0b894136e13f6e00ea175e28eb47a0456e6a8487", "extension": "c", ...
stackv2
//This code is based on the example "foo". //Authors: // Bernardo Koefender - @BernardoKoefender // Frederico Arnaldo Ballve Neto - @fredballve // Willian Analdo nunes - @Willian-Nunes #include "sort.h" #include "unity.h" #include "unity_fixture.h" TEST_GROUP(Sort); TEST_SETUP(Sort) { } TEST...
2.953125
3
2024-11-18T20:48:36.195524+00:00
2020-12-10T09:01:19
8011f1148f962f05505b63cbfc2e36d20f77ebea
{ "blob_id": "8011f1148f962f05505b63cbfc2e36d20f77ebea", "branch_name": "refs/heads/master", "committer_date": "2020-12-10T09:02:34", "content_id": "b6513ea1aa4050be1249358f76ca1dfaff5ffe37", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ece1b77232731ca6541064c211d42bd713c064d6", "extensio...
stackv2
/* * Copyright (c) 2017-2019 Cisco and/or its affiliates. * 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.234375
2
2024-11-18T20:48:36.878085+00:00
2015-10-08T06:10:05
59c3dd9e46da2cb085ffbb6be7bc22d110f0c6ab
{ "blob_id": "59c3dd9e46da2cb085ffbb6be7bc22d110f0c6ab", "branch_name": "refs/heads/master", "committer_date": "2015-10-08T06:10:05", "content_id": "9c674f84601fa1bd1c3d4568b2a01f5197fe4b45", "detected_licenses": [ "MIT" ], "directory_id": "75780b68b6816e3e3715dce170d07bc2f7211d97", "extension": "c"...
stackv2
/* ** search_free_block.c ** ** Made by oleszkiewicz Jonathan ** Email <JonathanOlesz@gmail.com> ** ** Started on Sun Feb 16 22:04:52 2014 oleszkiewicz ** Last update Sun Feb 16 22:16:04 2014 oleszkiewicz */ #include "malloc.h" /** * recherche un block de données free de taille >= size + sizeof(t_block) * @param...
3.0625
3
2024-11-18T20:48:37.397108+00:00
2017-07-05T16:50:53
31e72238d363bb65f51d983bcbc50329d6cea6f3
{ "blob_id": "31e72238d363bb65f51d983bcbc50329d6cea6f3", "branch_name": "refs/heads/master", "committer_date": "2017-07-05T16:50:53", "content_id": "a55617ba58b76d11a2bda7d83c758687e4abb4e0", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "57fbc5752da661c7e39ec3c92de05f7a538a991e", "extens...
stackv2
#include <string.h> #include "m_list.h" int m_list_init(m_list* list) { if (list == NULL) return M_LIST_E_NULL; list->first = NULL; list->last = NULL; list->length = 0; list->index = NULL; return M_LIST_OK; } int m_list_length(m_list* list, uint64_t* out_length) { if (list == NULL || out_length == NULL) ...
2.859375
3
2024-11-18T20:48:37.940784+00:00
2018-04-08T17:33:38
eba2aa6e72d8dbf74632e78d2b29a76bb3c552c5
{ "blob_id": "eba2aa6e72d8dbf74632e78d2b29a76bb3c552c5", "branch_name": "refs/heads/master", "committer_date": "2018-04-08T17:33:38", "content_id": "0d06065361aa6b23ceb1ecaf0bcb834581e19e12", "detected_licenses": [ "MIT" ], "directory_id": "68ca08feba3026d751d1eed2bdb3b4b09c63d1f5", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <ctype.h> int main(int argc, char *argv[]) { if (argc != 2) { printf("Usage: %s filename\n", argv[0]); exit(EXIT_FAILURE); } FILE *fp = fopen(argv[1], "r+"); if (fp == NULL) { printf("Can't open file.\n"); exit(EXIT_FAILURE...
3.140625
3
2024-11-18T20:48:39.025951+00:00
2019-03-07T04:12:40
d276e32e2f1a60b110fe3361e7576d8b332f0f99
{ "blob_id": "d276e32e2f1a60b110fe3361e7576d8b332f0f99", "branch_name": "refs/heads/master", "committer_date": "2019-03-07T04:12:40", "content_id": "0b63b4b2e3ab6664b559662ec6207afc4770fcf8", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "6fef398b4f213d3883a8392855a67002eda940e8", ...
stackv2
/* */ #include <unistd.h> #include <fcntl.h> #include <stdio.h> #include <errno.h> #include <lvgl.h> /* Stub for LVGL ufs (ram based FS) init function * as we use Zephyr FS API instead */ void lv_ufs_init(void) { } bool lvgl_fs_ready(void) { return true; } static lv_fs_res_t errno_to_lv_fs_res(int err) { swi...
2.5
2
2024-11-18T20:48:39.114599+00:00
2021-01-28T18:34:37
1a655fa9691fbef1df572ec5c401e137d79f7e99
{ "blob_id": "1a655fa9691fbef1df572ec5c401e137d79f7e99", "branch_name": "refs/heads/main", "committer_date": "2021-01-28T18:34:37", "content_id": "63990a1e787c975aa8f4bd0d77184fc052a5cbc6", "detected_licenses": [ "MIT" ], "directory_id": "dc184e8350b88926da2c97aa10643d4aef2aaab0", "extension": "c", ...
stackv2
/* * task_console.c * * Created on: Nov 25, 2020 * Authors: Michael Sexton and Jack Bybel * */ #include <main.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // This file is only used for debugging purposes QueueHandle_t Queue_Console; SemaphoreHandle_t Sem_Console; #define RX_ARRAY_SIZE 10 //...
2.8125
3
2024-11-18T20:48:39.411492+00:00
2018-04-05T17:57:20
f36a734a2a3a3c934fb61db9c11faa19c0fac07c
{ "blob_id": "f36a734a2a3a3c934fb61db9c11faa19c0fac07c", "branch_name": "refs/heads/master", "committer_date": "2018-04-05T17:57:20", "content_id": "1508912badc841faf9834dcdb1363fbfea7ef5b8", "detected_licenses": [ "MIT" ], "directory_id": "cb0600d3f91eb4dbcf80961415ea4e3652194e0d", "extension": "c"...
stackv2
#ifdef CS333_P5 #include "types.h" #include "user.h" // User command for chgrp system call // Takes a pathname and a GID argument // reverses order of arguents for system call // syscall - chmod(TARGET, GROUP); // usercmd - chmod GROUP TARGET int main(int argc, char **argv) { if (argc != 3) { printf(1, "I...
2.90625
3
2024-11-18T20:48:40.163515+00:00
2017-10-21T20:00:27
be4681290aae833517e7ed1eb9f8eeed0d42805a
{ "blob_id": "be4681290aae833517e7ed1eb9f8eeed0d42805a", "branch_name": "refs/heads/master", "committer_date": "2017-10-21T20:00:27", "content_id": "000fbe0eaea38ce6b949aad839e401f8610d2ae6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0d87634341940432c3ea35435441204c4500fa40", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> // #include <mpi.h> #define max_rows 1000 int array[max_rows]; int main(int argc, char **argv){ int i, num_rows; long int sum; printf("enter the amount of numbers: \n"); scanf("%d", &num_rows); if (num_rows > max_rows){ printf("Too many numbers.\n"); exit(1); } for (i ...
3.0625
3
2024-11-18T20:48:40.229070+00:00
2020-06-16T16:18:04
8718bbbdf6927653d06d84d605f246d98ad01d0c
{ "blob_id": "8718bbbdf6927653d06d84d605f246d98ad01d0c", "branch_name": "refs/heads/master", "committer_date": "2020-06-16T16:18:04", "content_id": "e2d482205c89530326162e5bf6e8c7b1f6c45d6f", "detected_licenses": [ "MIT" ], "directory_id": "df358035400a73ff30fe08a93bf5da36ebddd425", "extension": "c"...
stackv2
#include "peripherals/uart.h" #include "sys.h" #include "fork.h" #include "sched.h" /* void handle_sync(unsigned long esr, unsigned long address) { uart_send_hex(address); uart_send_hex(esr >> 26); uart_send_hex(esr & 0x1ffffff); } */ #define SYS_ALLOCATOR_REGISTER 5 #define SYS_ALLOCATOR_ALLOC ...
2.359375
2
2024-11-18T20:48:40.293074+00:00
2020-07-08T15:11:35
6041df49cbd7bd6d2f924141cb777819b5886325
{ "blob_id": "6041df49cbd7bd6d2f924141cb777819b5886325", "branch_name": "refs/heads/master", "committer_date": "2020-07-08T15:11:35", "content_id": "81b6b7b5a68925d4ae332f08d98079b8b203eaa0", "detected_licenses": [ "Unlicense" ], "directory_id": "f00a571b5dc68f264dbb44b84bf47a3bcbc3d9f9", "extension...
stackv2
#ifndef POINTERNAMES_POINTERNAMES_H #define POINTERNAMES_POINTERNAMES_H #include <malloc.h> #define NULL (void*)0 /** * @struct PointerNamesNamesList in linked list * @var string name value of this node * @var PointerNamesNamesList next child node of linked list */ struct PointerNamesNamesList { const char* nam...
2.03125
2
2024-11-18T20:48:41.530221+00:00
2012-04-26T08:19:12
d78f06d78edf618ad7f6a9a100dba69c5b1634c0
{ "blob_id": "d78f06d78edf618ad7f6a9a100dba69c5b1634c0", "branch_name": "refs/heads/master", "committer_date": "2012-04-26T08:19:12", "content_id": "f3c76bebca72358d5791a4031cf9dd9494c06aae", "detected_licenses": [ "MIT" ], "directory_id": "9357bed2ab063ec0d62774a22112bec3dd655ffd", "extension": "h"...
stackv2
// assert2.h // // Authors: Aric Parkinson, Spencer Phippen // Date created: March 29, 2012 // // Contains an assertion function for debugging purposes #ifndef ASSERT2_H_ #define ASSERT2_H_ #undef assert2 // MACRO: assert2(bool condition, const char* message) // If NDEBUG is defined, then the macro does nothing. //...
2.265625
2
2024-11-18T20:48:41.920321+00:00
2016-12-04T21:11:46
ea4334cd8a6660d605d3ad6dca6cbfaeadd2b813
{ "blob_id": "ea4334cd8a6660d605d3ad6dca6cbfaeadd2b813", "branch_name": "refs/heads/master", "committer_date": "2016-12-04T21:11:46", "content_id": "b41b93b1eb6a70c9d0eddc94889975f7af57f0b3", "detected_licenses": [ "MIT" ], "directory_id": "1ec04a68de7345754f2243c83ca1c4f5e30443d3", "extension": "c"...
stackv2
#include <stdio.h> int main(){ int cifra; scanf("%d", &cifra); printf("\n%d\n", cifra*cifra); printf("%d\n", cifra*cifra*cifra); return 0; }
2.296875
2
2024-11-18T20:48:42.592575+00:00
2022-11-11T07:29:12
69ae5cf1b7fc333c2f3edb358b7ca24f2154e76b
{ "blob_id": "69ae5cf1b7fc333c2f3edb358b7ca24f2154e76b", "branch_name": "refs/heads/master", "committer_date": "2022-11-11T07:29:12", "content_id": "cb0e1b8bea098fa536ac4269d54cddea29b5f111", "detected_licenses": [ "MIT" ], "directory_id": "3763c9079322394c4840f4f411c0e7f2cf207f81", "extension": "c"...
stackv2
/* Includes */ #include <stdio.h> #include <stdlib.h> #include <benzina/benzina.h> #include <benzina/itu/h26x.h> /** * Defines */ #define tstmessageflush(fp, f, ...) \ do{ \ fprintf((fp), (f), ## __VA_ARGS__); \ fflush((fp)); ...
2.390625
2
2024-11-18T20:48:43.553227+00:00
2021-01-15T09:45:04
89018f43e26a43918706bf95786cf51913fa664a
{ "blob_id": "89018f43e26a43918706bf95786cf51913fa664a", "branch_name": "refs/heads/master", "committer_date": "2021-01-15T09:45:04", "content_id": "c83be611f33cbc58a5aa3970080761b382bf5ea5", "detected_licenses": [ "Apache-2.0", "MIT" ], "directory_id": "ba3b7ea827038ccf4d8d03919ad1c95e18bbe90c", ...
stackv2
#include "demo.h" static int centercols; static int fader(struct notcurses* nc, struct ncplane* ncp, void* curry){ int* flipmode = curry; int rows, cols; ncplane_dim_yx(ncp, &rows, &cols); const bool smallscreen = rows < 26; const int row1 = rows - 10 + smallscreen; const int row2 = 6 - smallscreen; // bo...
2.40625
2
2024-11-18T20:48:43.866146+00:00
2019-07-21T01:02:33
8b680da96638375b93a3bd30a437d979e6bedb4f
{ "blob_id": "8b680da96638375b93a3bd30a437d979e6bedb4f", "branch_name": "refs/heads/master", "committer_date": "2019-07-21T01:02:33", "content_id": "2b5fdfdd95f0a184c335659c9b9fb1b9959c74c8", "detected_licenses": [ "MIT" ], "directory_id": "d0f2a76f1c235e25f31b6fde48b70f38022712f2", "extension": "c"...
stackv2
/* 输入5名学生的分数并显示出其中的最高分和最低分 */ #include <stdio.h> #define NUMBER 5 int main(void) { int i; int tensu[NUMBER]; int max, min; printf("请输入%d名学生的分数。\n", NUMBER); for (i = 0; i < NUMBER; i++) { printf("%-2d号:", i + 1); scanf("%d", &tensu[i]); } min = max = tensu[0]; f...
4
4
2024-11-18T20:48:44.298789+00:00
2021-03-02T15:26:10
3722817db01dee495b26e20079ec73b2d89183bc
{ "blob_id": "3722817db01dee495b26e20079ec73b2d89183bc", "branch_name": "refs/heads/main", "committer_date": "2021-03-02T15:26:10", "content_id": "745e33fcc30ad24952641e8d78c12aebabe1b28d", "detected_licenses": [ "MIT" ], "directory_id": "ff7c2d3080aec61543ac9ccfb298b357479e53d5", "extension": "c", ...
stackv2
#include "../Include/NanoCRT.h" int main(long argc, char *argv[]) { FILE* fp = NULL; char* buf = "hello how are you \n"; char* tmp = NULL; long len = strlen(buf); fp = fopen("test.txt", "w"); fwrite(buf, 1, len, fp); printf("hello world\n"); printf("%d\n%s\n", len, buf); ...
2.625
3
2024-11-18T20:48:44.637028+00:00
2019-03-16T05:56:34
6b69134ddb6d908f152604c21caf489cff546209
{ "blob_id": "6b69134ddb6d908f152604c21caf489cff546209", "branch_name": "refs/heads/master", "committer_date": "2019-03-16T05:56:34", "content_id": "8d5de37e6f751b2f74e2f7cb624b51929b354215", "detected_licenses": [ "MIT" ], "directory_id": "5c2d4b84778a9c2c922dc5a974a65ba87c2c000d", "extension": "h"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include <assert.h> typedef struct PAGE { int TotalItem; //1.共多少条数据 int TotalPage; //2.共多少页 int CurrentPage; //3.当前是第几页 int OnePageItem; //4.一页显示多少条数据 }Page; typedef struct NODE { int serialNum; char* name; char* phone; struct NO...
2.140625
2
2024-11-18T20:48:44.749600+00:00
2020-09-22T21:07:44
4cfbb8eb3aabc2169e07f47a3a15ce81fc737e60
{ "blob_id": "4cfbb8eb3aabc2169e07f47a3a15ce81fc737e60", "branch_name": "refs/heads/master", "committer_date": "2020-09-22T21:07:44", "content_id": "3288f95b861594b753d77d56a2eae16c239d08a9", "detected_licenses": [], "directory_id": "ac0b308bfd3c3e5c46ba28d2c4fe70f8516c9e7d", "extension": "c", "filename...
stackv2
/* Array Calcular la media aritmatica de los números del 1 al 10 */ #include <stdio.h> int main(){ int i, iNumeros[100]; float fSuma,fMedia; //Llenar los datos del array for(i = 0; i <= 100; i++ ){ iNumeros[i] = i; printf("\n N%cmero %d",163,iNumeros[i]); }//fin for //Calcular la suma de ...
3.75
4
2024-11-18T20:48:45.016857+00:00
2020-04-28T20:23:29
76b8008c185fe0e8981098da914c968d4bd08f10
{ "blob_id": "76b8008c185fe0e8981098da914c968d4bd08f10", "branch_name": "refs/heads/master", "committer_date": "2020-04-28T20:23:29", "content_id": "81193b0432c08e34a8ac7fe3a5d2274a22c9a0f4", "detected_licenses": [ "MIT" ], "directory_id": "90d7c26e3f1dc9a16b9091f1e7bb0f8e5e56a9d9", "extension": "c"...
stackv2
#include <stdio.h> #include "mixed_fhn_mod_mitchell.h" // TODO: Maybe change this function // Set number_of_ode_equations to the maximum 'NEQ' ? GET_CELL_MODEL_DATA(init_cell_model_data) { if(get_initial_v) cell_model->initial_v = INITIAL_V_1; if(get_neq) cell_model->number_of_ode_equat...
2.578125
3
2024-11-18T20:48:45.137276+00:00
2019-04-24T16:13:07
5158a9268e676a02c3091735241eea9085c1bd16
{ "blob_id": "5158a9268e676a02c3091735241eea9085c1bd16", "branch_name": "refs/heads/master", "committer_date": "2019-04-24T16:13:07", "content_id": "eb6aece1c4499a4352c1730139c7ea1a50f533b4", "detected_licenses": [ "MIT" ], "directory_id": "6daa7e1743383b143cffd2686eb4070474745566", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include "queue.h" #include <string.h> #include <pthread.h> #include <unistd.h> #include "plane.h" struct Node { struct plane *planeInfo; struct Node *next; }; extern char **global_argv; extern int global_argc; struct Node *head;// global variable - pointer to head node...
3.171875
3
2024-11-18T20:48:45.403052+00:00
2019-11-12T00:20:51
46f7ebf1df43a0826f096087078462dbd1a58e08
{ "blob_id": "46f7ebf1df43a0826f096087078462dbd1a58e08", "branch_name": "refs/heads/master", "committer_date": "2019-11-12T00:20:51", "content_id": "55bfbbf9113b7947ec80d284f07bcc2379352d58", "detected_licenses": [ "MIT" ], "directory_id": "af1713d6dcaed61b4ba0e59af9a55c4f04cbe8ae", "extension": "c"...
stackv2
// For loop example // Converts temperatures in Celsius to Fahrenheit #include <stdio.h> int main(void) { double fahr, celsius; int lower = 0; int upper = 100; int step = 10; printf("C F\n\n"); for (celsius = lower; celsius <= upper; celsius += step) { fahr = (9.0/5.0) * celsius + 32.0; printf("%3.0f %...
3.734375
4
2024-11-18T20:48:45.657866+00:00
2017-12-17T12:46:31
59d8dda73b4d8bfbd330bad03df7a1293be2b86e
{ "blob_id": "59d8dda73b4d8bfbd330bad03df7a1293be2b86e", "branch_name": "refs/heads/master", "committer_date": "2017-12-17T12:46:31", "content_id": "40e75379ec519c0ced5cd22ecbc9c085ec673069", "detected_licenses": [ "MIT" ], "directory_id": "711791acea0ce300c1aa035778ead8392f43c2cd", "extension": "c"...
stackv2
/* * Library for moving Kondo robot * Version 0.1 2016-05-21 Sladjan Kantar (School of Computing) * * * kondo.c */ /** * Make one's bow */ void bow(){ int speed = 200; sbus_initnext(); sbus_setnext( 18, 60 * PWM_DEG ); //groin sbus_setnext( 12, 60 * PWM_DEG ); //groin sbus_setnext( 1...
2.515625
3
2024-11-18T20:48:45.821753+00:00
2020-05-28T00:19:01
a84fe344b72584ed5fe160ecda7f121a376fb7b5
{ "blob_id": "a84fe344b72584ed5fe160ecda7f121a376fb7b5", "branch_name": "refs/heads/master", "committer_date": "2020-05-28T00:19:01", "content_id": "5606f01e9dedf20a8de50c2c7a48ec197a381199", "detected_licenses": [ "CC0-1.0" ], "directory_id": "0fa4e3520321bee02a3d204148b89c043f689287", "extension":...
stackv2
#include <nds.h> //Referenias Graficas #include "gfx_ball.h" #include "gfx_brick.h" #include "gfx_gradient.h" //Entradas tile #define tile_empty 0 //tile 0 = empty #define tile_brick 1 //tile 1 = brick #define tile_gradient 2 //tile 2 = gradient //macro para calcular memoria BG VRAM //direccion con el indice de ti...
2.46875
2
2024-11-18T20:48:46.031639+00:00
2023-08-19T14:05:02
e3e3a78460981c1f907f93cc104eee6ab62bc355
{ "blob_id": "e3e3a78460981c1f907f93cc104eee6ab62bc355", "branch_name": "refs/heads/master", "committer_date": "2023-08-19T14:05:02", "content_id": "44de290449edbcf56f264c4b0989bff361ea2dcf", "detected_licenses": [ "MIT" ], "directory_id": "4ed2d6d3646dbcc3676aed7ed6297cc827048876", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include "shader.h" #include "utils.h" static const char *vertex_shader = "\n\ #version 150 \n\ in vec4 aPosition;\n\ void main(void) {\n\ gl_Position = aPosition;\n\ }\n\ "; static GLuint create_shader(const char *source, GLenum type) { // Create the shader object GLuin...
2.375
2
2024-11-18T20:48:46.347918+00:00
2023-08-22T10:28:25
a97c9cb2aaf9dbe4671e4d56e877b74a42febfdb
{ "blob_id": "a97c9cb2aaf9dbe4671e4d56e877b74a42febfdb", "branch_name": "refs/heads/main", "committer_date": "2023-08-22T10:28:25", "content_id": "041333ef0d146b8c682db321d9e431c0befab65a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "255dbd3013e6aa689282591f29831cf0355c7a4c", "extension"...
stackv2
// Copyright 2018 The NATS Authors // 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 wr...
2.09375
2
2024-11-18T20:48:46.550830+00:00
2016-04-21T16:53:57
163b47bd33e38322871e719ba6cce390b3fa9c53
{ "blob_id": "163b47bd33e38322871e719ba6cce390b3fa9c53", "branch_name": "refs/heads/master", "committer_date": "2016-04-21T16:53:57", "content_id": "16b2b5059c703e8eea1ed54d5f3706b87378757e", "detected_licenses": [ "MIT" ], "directory_id": "2c3e5676fde1a80d3e0cda0e2a4b69309445b288", "extension": "c"...
stackv2
#include <diffproc/diffprocio.h> /* * Generate a vector of gaussian white noise adjusted to a given mean and variance. * * Vector is generated by the Central Limit Thorem Method, that states that * the sum of N randoms will approach normal distribution as N approaches infinity. * N is recommended to be >= 20. * ...
2.375
2
2024-11-18T20:48:46.737326+00:00
2023-07-25T00:14:43
a0724c81a99a7602c40613c5af3b2f0ea735c736
{ "blob_id": "a0724c81a99a7602c40613c5af3b2f0ea735c736", "branch_name": "refs/heads/develop", "committer_date": "2023-07-25T05:28:12", "content_id": "07d275353fa0c3fb5b563f5a16ef1045c4f905cc", "detected_licenses": [ "MIT" ], "directory_id": "41969c213434c5a5942d52f9f23993a65613a52e", "extension": "h...
stackv2
/* ========================================================================== * setproctitle.h - Linux/Darwin setproctitle. * -------------------------------------------------------------------------- * Copyright (C) 2010 William Ahern * Copyright (C) 2013 Salvatore Sanfilippo * Copyright (C) 2013 Stam He * Co...
2.078125
2
2024-11-18T20:48:46.885031+00:00
2017-12-31T01:19:26
ce54b1992d7a7cc7c2155818b94834746d3b890c
{ "blob_id": "ce54b1992d7a7cc7c2155818b94834746d3b890c", "branch_name": "refs/heads/master", "committer_date": "2017-12-31T01:19:26", "content_id": "cd8df698d0d48f82b8a23f5271db590c10411d61", "detected_licenses": [ "Apache-2.0" ], "directory_id": "35b71f0329e774b346d643d9df4c58182597eabd", "extensio...
stackv2
#include <stdint.h> static uint64_t next(uint64_t g, uint16_t factor) { g *= factor; // This is an optimised way to take remainder modulo a Mersenne prime. // But newer versions of GCC might already know how to optimise that! // So might not be necessary to explicitly do this. while (g >= 0x7fffffff) { g...
2.96875
3
2024-11-18T20:48:47.486487+00:00
2023-02-16T11:27:40
6ebb077198847039b61af4d05bc00649b036fdf3
{ "blob_id": "6ebb077198847039b61af4d05bc00649b036fdf3", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "66e3e881c696621d7c0fd92b29dfed54d2bf4530", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2017 Intel Corp. * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include "targets.h" const uint32_t rodata_var = RODATA_VALUE; uint8_t data_buf[BUF_SIZE] __aligned(sizeof(int)); int overwrite_target(int i) { printk("text not modified\n")...
2.046875
2
2024-11-18T20:48:47.589125+00:00
2023-05-13T23:51:51
b4d7534f6c8d1000a025c41e53a4f538f4f6bf10
{ "blob_id": "b4d7534f6c8d1000a025c41e53a4f538f4f6bf10", "branch_name": "refs/heads/main", "committer_date": "2023-05-13T23:51:51", "content_id": "d917d73400de3e78fa2c905b5429ed46f193c916", "detected_licenses": [ "MIT" ], "directory_id": "592977275dab4c9efa2550cf78387d8951d06e2e", "extension": "c", ...
stackv2
/* * Author: Daniel Lenski <dlenski@gmail.com> * Copyright © 2021 Daniel Lenski * * 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 th...
2.546875
3
2024-11-18T20:48:47.651897+00:00
2017-03-04T03:21:35
7a96616f6ff516fe02f01368bab4a276f800d063
{ "blob_id": "7a96616f6ff516fe02f01368bab4a276f800d063", "branch_name": "refs/heads/master", "committer_date": "2017-03-04T03:21:35", "content_id": "4da98f2165747d4c4aaf297ccee033e3f09ab83b", "detected_licenses": [ "MIT" ], "directory_id": "82e0bc6a6b1d884d74f3e9279a6d5264a077c2c7", "extension": "h"...
stackv2
/* Userland spinlock public API */ #define NTHR 256 struct uspin; /* forward declaration */ int uspin_init (struct uspin *sem); void uspin_acquire(struct uspin *sem); void uspin_release(struct uspin *sem); void uspin_destroy(struct uspin *sem); /* Userland semaphore public API */ struct usem; /* forward declarati...
2.25
2
2024-11-18T20:48:51.628610+00:00
2021-06-10T14:57:30
d5f68a181664dbb140062f98785c1ec89014c3ee
{ "blob_id": "d5f68a181664dbb140062f98785c1ec89014c3ee", "branch_name": "refs/heads/main", "committer_date": "2021-06-10T14:57:30", "content_id": "deee9a069a3dd0403fda95fe77e386da9c1b2167", "detected_licenses": [ "MIT" ], "directory_id": "28bf7793cde66074ac6cbe2c76df92bd4803dab9", "extension": "c", ...
stackv2
#include <stdio.h> int palindrome(int arr[], int first, int last); int main() { int n, i; printf("Enter the no of elements in array:- "); scanf("%d",&n); int a[n]; for(i=0;i<n;i++) { printf("Enter element no %d of array",i+1); scanf("%d", &a[i]); } if (palindrome(a, ...
3.546875
4
2024-11-18T20:48:51.787246+00:00
2021-07-10T07:27:56
219c51b21847746dd05930a1fadbf4b8e0633d8d
{ "blob_id": "219c51b21847746dd05930a1fadbf4b8e0633d8d", "branch_name": "refs/heads/master", "committer_date": "2021-07-10T07:27:56", "content_id": "a5344e19242ed8fb29a685303ad0ed5743d701eb", "detected_licenses": [ "MIT" ], "directory_id": "ff5fa972c44a80ee89bbd5693790fb2ef7a05758", "extension": "c"...
stackv2
// Minimalist USB "Mail Notifier" LED device support #define WIN32_LEAN_AND_MEAN #define WINVER 0x0A00 // _WIN32_WINNT_WIN10 #define _WIN32_WINNT 0x0A00 #include <windows.h> #include <stdio.h> #include <SetupAPI.h> #pragma comment(lib, "SetupAPI.lib") #ifdef __cplusplus extern "C" { #endif #define INITGUID #in...
2.328125
2
2024-11-18T20:48:52.982064+00:00
2018-12-03T05:14:35
8851e64b0effe7eb3cf7d507dfbf99c65f676453
{ "blob_id": "8851e64b0effe7eb3cf7d507dfbf99c65f676453", "branch_name": "refs/heads/master", "committer_date": "2018-12-03T05:14:35", "content_id": "d3a4a80f851b19d58791e7beac0cfafd8ba97660", "detected_licenses": [ "MIT" ], "directory_id": "b168762c80deb54832ad04adf602b5fdf99319bb", "extension": "h"...
stackv2
//============================================================================= // // 敵処理 [enemy.h] // Author : // //============================================================================= #ifndef _ENEMY2_H_ #define _ENEMY2_H_ // マクロ定義 #define NUM_ENEMY2 (2) // ポリゴン数 #define TEXTURE_GAME_ENEMY2 _T("data...
2.34375
2
2024-11-18T20:48:53.214838+00:00
2014-05-05T17:33:31
ecac04b5903f5a7668b07ca94b7dbdcb8e78f2a5
{ "blob_id": "ecac04b5903f5a7668b07ca94b7dbdcb8e78f2a5", "branch_name": "refs/heads/master", "committer_date": "2014-05-05T17:33:31", "content_id": "c3b9678592a3b64b01a94116c1beb81e4a7991a7", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ca0b220bc0e3d65b2ea19985dda2817dafa37406", "extensio...
stackv2
#include "tl_slist.h" #include <stdlib.h> #include <assert.h> #ifndef INLINE #ifdef _MSC_VER #define INLINE __inline #elif __GNUC__ #define INLINE __inline__ #else #define INLINE inline #endif /* MSC_VER */ #endif /* !INLINE */ static INLINE int sllist_contains(tl_SLIST *list, tl_SLNODE *item) { tl_SLNODE *ll; ...
2.765625
3
2024-11-18T20:48:53.437831+00:00
2021-07-28T02:15:44
370dd5e39390df2efe15cc8b375268876cca8ab8
{ "blob_id": "370dd5e39390df2efe15cc8b375268876cca8ab8", "branch_name": "refs/heads/master", "committer_date": "2021-07-28T02:15:44", "content_id": "33a81099f32d2a99eff976c35230b81233437f50", "detected_licenses": [ "MIT" ], "directory_id": "1d711f63f16977e50ff64e1fb8e5e63fdd50d037", "extension": "h"...
stackv2
/** * MIT License * * Copyright (c) 2020 Cole Vikupitz * * 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, m...
2.46875
2
2024-11-18T20:48:53.679988+00:00
2017-09-07T17:01:48
54a924dbaa9983c5e6d6d136f9dd575dda625415
{ "blob_id": "54a924dbaa9983c5e6d6d136f9dd575dda625415", "branch_name": "refs/heads/master", "committer_date": "2017-09-07T17:01:48", "content_id": "951e9057d45f7fe8d370932155bd5bd1ec742584", "detected_licenses": [ "MIT" ], "directory_id": "9fe68253bdaf1fea4a484ff9fe5c6ca5c0fcad67", "extension": "c"...
stackv2
#include <gmp.h> #include "bhjl.h" /* * BHJL encryption * Inputs: * - Message to encrypt: m * - Public parameters and precomputed values: n, y, _2k * - Bit-length of messages: k * - State of GMP randomness generator * Outputs: ciphertext c * Assumptions: * - message is within the valid range 0 <=...
2.828125
3
2024-11-18T20:48:53.741747+00:00
2020-07-02T01:30:38
7e52491004f75479d213fbc49b3cebe6d00afbe6
{ "blob_id": "7e52491004f75479d213fbc49b3cebe6d00afbe6", "branch_name": "refs/heads/master", "committer_date": "2020-07-02T01:30:38", "content_id": "8fd27dd26290d1b5f07bdfeeba62523e4f22b8e0", "detected_licenses": [ "PostgreSQL" ], "directory_id": "9b972e7e915a1b68c1a3b46811a2903727d882a2", "extensio...
stackv2
/*------------------------------------------------------------------------- * * d-tree.c * Implementation of the decomposition-tree algorithm for approximate confidence computation. * * * Copyright (c) 2009, MayBMS Development Group * *-------------------------------------------------------------------------...
2.078125
2
2024-11-18T20:48:53.843795+00:00
2020-07-19T23:21:11
7449be706cab0508fe77c28a38bb2f33f10ba89c
{ "blob_id": "7449be706cab0508fe77c28a38bb2f33f10ba89c", "branch_name": "refs/heads/master", "committer_date": "2020-07-19T23:21:11", "content_id": "9aa5bea31c389ce9a0526ee1f5bf4fd76d777933", "detected_licenses": [ "MIT" ], "directory_id": "4819e1478ff71392d72be8c8222863cfc3a9847e", "extension": "c"...
stackv2
#include "bitarray_impl.h" #include "lualibdefs.h" /** * The data structure Bitarray stores bits (booleans) in an array in a * memory-saving manner internally. One can assign value (0 or 1) to * each element as well as extract values from the array. <br/> * Github: <a href="https://github.com/cleoold/bitarray">re...
2.609375
3
2024-11-18T20:48:53.911828+00:00
2021-03-31T05:54:26
dac0912f44ca2f665836a36fc3de823df6f5cf68
{ "blob_id": "dac0912f44ca2f665836a36fc3de823df6f5cf68", "branch_name": "refs/heads/main", "committer_date": "2021-03-31T05:54:26", "content_id": "fccff4b26d81fa91ac633476c792d0ae550b1251", "detected_licenses": [ "MIT" ], "directory_id": "52278536766976999f22bed761e271e0f3fbe84a", "extension": "c", ...
stackv2
/* MIT License Copyright (c) 2021 gremlin1206 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
2.109375
2
2024-11-18T20:48:54.238456+00:00
2019-08-07T01:16:48
0bd8233114f920f5779782c01b18cd7e8a8dcfb7
{ "blob_id": "0bd8233114f920f5779782c01b18cd7e8a8dcfb7", "branch_name": "refs/heads/master", "committer_date": "2019-08-07T01:16:48", "content_id": "4541ed67f278f24bf391c9614c045c566a6531b1", "detected_licenses": [ "MIT" ], "directory_id": "63a54bc72b5860fa51117334b80c4e8e027258dd", "extension": "c"...
stackv2
/* ** my_putchar.c for my_putchar in /home/rodrig_1/fractals/gwen ** ** Made by gwendoline rodriguez ** Login <rodrig_1@epitech.net> ** ** Started on Tue Apr 28 11:40:38 2015 gwendoline rodriguez ** Last update Tue Apr 28 10:25:56 2015 Loik Fauré-Berlinguette */ void my_putchar(char c) { write(1, &c, 1); } void ...
2.53125
3
2024-11-18T20:48:54.343303+00:00
2023-02-01T02:28:07
0c72f6bb704a667b59fe15182565377a4373e751
{ "blob_id": "0c72f6bb704a667b59fe15182565377a4373e751", "branch_name": "refs/heads/master", "committer_date": "2023-02-01T02:28:07", "content_id": "554ac6fbc5037c098a74e5a97b71e03d642fde1a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "07bf9cf42b6de573861515451034cd0215deb0ba", "extensio...
stackv2
/***************************************************************************/ /* Copyright (c) 1988, 1989, Regents of the University of California. */ /* All rights reserved. */ /***************************************************************************/ #includ...
2.015625
2
2024-11-18T20:48:54.779624+00:00
2022-08-14T07:18:35
591eea2ef5632b6c55fdcc6232e30cd88a771a8b
{ "blob_id": "591eea2ef5632b6c55fdcc6232e30cd88a771a8b", "branch_name": "refs/heads/main", "committer_date": "2022-08-14T07:18:35", "content_id": "aef8d5ce993d9fb8ae9c54c18a0ea515549911e0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8c9eba1dee9fb8d03a739e8ba262469ffa197c86", "extension"...
stackv2
/* Copyright 2019, Awesome Audio Apparatus. 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 wr...
2.046875
2
2024-11-18T20:48:54.917416+00:00
2018-03-22T02:13:11
d07fbce4cbbb2febd8f530446683e970ac74c0cd
{ "blob_id": "d07fbce4cbbb2febd8f530446683e970ac74c0cd", "branch_name": "refs/heads/master", "committer_date": "2018-03-22T02:13:11", "content_id": "a96b6f30b759459917b89c94f16834300ec3f849", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "fa4deb7f4cbfc8083fbacd5ccdd5137850a76fe3", "extens...
stackv2
/*****************************************************************************/ /* FILE NAME: spi_Z4_1.c COPYRIGHT (c) NXP Semiconductors 2016 */ /* All Rights Reserved */ /* PLATFORM: DEVKIT-MPC5748G */ /* DESCRIPTION: Main C program for c...
2.140625
2
2024-11-18T20:48:55.348895+00:00
2021-05-03T01:33:11
c45d9856ddcfcbc3a25be8ad9ede92c40d4616ef
{ "blob_id": "c45d9856ddcfcbc3a25be8ad9ede92c40d4616ef", "branch_name": "refs/heads/master", "committer_date": "2021-05-03T01:33:11", "content_id": "254fad5aa2b1f5c4527740c5c64d5f41331b4403", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "87c2b3b746e97b2442b6fbfc3845e88e27130a75", "extens...
stackv2
#include <internal/printf.h> #include "libk/include/math.h" static void u64_to_hex(u64 num, char *buf) { for (int i = 0; i < 16; i++) { u64 digit = (int)((num << (i << 2)) >> 60); buf[i] = digit >= 10 ? (char)(digit - 10 + 'a') : (char)(digit + '0'); } } static...
2.5
2