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-18T23:49:24.978089+00:00 | 2018-02-28T10:18:22 | 83d9f45e07de4fda63bc537d62ccc22f7c59c027 | {
"blob_id": "83d9f45e07de4fda63bc537d62ccc22f7c59c027",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-28T10:18:22",
"content_id": "3c901c41685f87eb09173a381d38dd4d62ccb606",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "800105c9a9ac47041885a4a660b73667243de8a6",
"extens... | stackv2 | //NeMOS tick / time relevant definition.
//
//This IS a part of the kernel.
//
//Author: zhanzr<zhanzr@foxmail.com>
//Date : 2/28/2018
/**@defgroup los_sys System time
* @ingroup kernel
*/
#ifndef _LOS_SYS_H
#define _LOS_SYS_H
#include "los_base.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplus... | 2.046875 | 2 |
2024-11-18T23:49:25.220099+00:00 | 2023-08-07T19:18:32 | 8e9b64a28a882690f40ba9eb634f49283809197c | {
"blob_id": "8e9b64a28a882690f40ba9eb634f49283809197c",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T19:18:32",
"content_id": "b1120eb60d1922d304e300e9359359120fe0b120",
"detected_licenses": [
"curl",
"Apache-2.0"
],
"directory_id": "e1d9c54e9925e30e388a255b53a93cccad0b94cb",... | stackv2 | #ifndef v1_network_policy_egress_rule_TEST
#define v1_network_policy_egress_rule_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define v1_network_policy_egress_rule_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#includ... | 2.546875 | 3 |
2024-11-18T23:49:25.938546+00:00 | 2017-06-03T12:26:04 | 7adedc571e1112b046fe5875976cbbec08355fa9 | {
"blob_id": "7adedc571e1112b046fe5875976cbbec08355fa9",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-03T12:26:04",
"content_id": "b044643f10adeba58a24049a2f41174f253eda39",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3839a59d66f65daaaf9f8f12ed1952223ecc116c",
"extensio... | stackv2 | /*
* Copyright (c) 2016 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 2.3125 | 2 |
2024-11-18T23:49:26.808812+00:00 | 2017-02-21T16:31:09 | 849dac002233f635785c65dceedc400b8369a50e | {
"blob_id": "849dac002233f635785c65dceedc400b8369a50e",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-21T16:31:09",
"content_id": "811b078118ca6d2e79d85cdb01a5aba83355f9c0",
"detected_licenses": [
"MIT"
],
"directory_id": "24529afc204f05db152182235ab1b3cb83db1ead",
"extension": "c"... | stackv2 | /* ssh-honeypot -- by Daniel Roberson (daniel(a)planethacker.net) 2016
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <libssh/libssh.h>
#include <lib... | 2.328125 | 2 |
2024-11-18T23:49:26.892429+00:00 | 2019-08-19T20:56:00 | b9ad9d0a19d5a32588029ca2ff888c548325dc47 | {
"blob_id": "b9ad9d0a19d5a32588029ca2ff888c548325dc47",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-19T20:56:00",
"content_id": "ef30179a382851d26b922f7d546637e8732cdc14",
"detected_licenses": [
"MIT"
],
"directory_id": "33eb23a97a7b80d7666f91f48143bbdf10b7664a",
"extension": "c"... | stackv2 | #include "fonts.h"
int find_a8_format(xcb_render_query_pict_formats_reply_t *formats_reply, xcb_render_pictformat_t *format) {
for (xcb_render_pictforminfo_iterator_t i = xcb_render_query_pict_formats_formats_iterator(formats_reply);
i.rem;
xcb_render_pictforminfo_next(&i)) {
if (i.data->type != XCB_RENDER_PI... | 2.5 | 2 |
2024-11-18T23:49:27.525247+00:00 | 2022-12-06T10:30:56 | ac4e07fbbfa1545735e2a87de7f001fde6e3c605 | {
"blob_id": "ac4e07fbbfa1545735e2a87de7f001fde6e3c605",
"branch_name": "refs/heads/release/v4.2",
"committer_date": "2022-12-06T10:33:43",
"content_id": "c843598fd11de809369de1e8f57d1fcd64347cf1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "aa48b3e1905fadca72653e60cb1ad758fad7c1d4",
"ex... | stackv2 | /* ESP BLE Mesh Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
... | 2.171875 | 2 |
2024-11-18T23:49:27.745699+00:00 | 2020-03-05T02:31:19 | ea7546ceba4d30c27624ce7fc72f49d389172678 | {
"blob_id": "ea7546ceba4d30c27624ce7fc72f49d389172678",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-05T02:31:19",
"content_id": "7a1900ae28674f33528bd209d978c6c09a8800ee",
"detected_licenses": [
"MIT"
],
"directory_id": "8721aeafd706c1ffbeeaf41a8f9b96cacefc071a",
"extension": "h"... | stackv2 | /*Programação Dinâmica*/
/*Problema da sequência de moedas: Pegar a maior quantidade de dineiro sem pegar moedas adjacentes*/
int numMoedas;
int Tabela[numMoedas+1][2];
recebe numMoedas;
for(int i=1; i<numMoedas; i++){
recebe Tabela[i][0];
}
Tabela[0][0]='0';
Tabela[0][1]='0';
Tabela[1][1]=Tabela[1][0];
... | 2.71875 | 3 |
2024-11-18T23:49:28.022874+00:00 | 2019-07-22T15:36:46 | 55e05910877ae0728c2b42b1eccec6e0035a132e | {
"blob_id": "55e05910877ae0728c2b42b1eccec6e0035a132e",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-22T15:36:46",
"content_id": "979a6953f73e9a9b7e8d8ea7996cbe7540437a9e",
"detected_licenses": [
"MIT"
],
"directory_id": "eec4c154a43c94be4e1f7ac553a751e855b11fbf",
"extension": "c"... | stackv2 | #include <assert.h>
#include <stdlib.h>
#include "list.h"
#include <stdio.h>
#include "common.h"
static uint16_t values[256];
static void list_merge(struct list_head *head,
struct list_head *left,
struct list_head *right)
{
struct list_head *tmp;
while (1) {
... | 3.09375 | 3 |
2024-11-18T23:49:28.914032+00:00 | 2019-01-28T19:30:57 | 0e1f71fd9cdbf947eabb917a7e0f07e230af488b | {
"blob_id": "0e1f71fd9cdbf947eabb917a7e0f07e230af488b",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-28T19:30:57",
"content_id": "cafcb287be56e00b8bffa4b1a621152fc0201bf1",
"detected_licenses": [
"MIT"
],
"directory_id": "bfe0ada678595472ec84d24b24daf2c8fab48ae5",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#define SIZE 50
int main()
{
puts("Enter two words");
char str1[50], str2[50];
scanf(" %s", str1);
scanf(" %s", str2);
int rate = strcmp(str1,str2);
if(rate < 0)
{
printf("%s is less than %s\n", str1, str2);
}
else if(r... | 3.21875 | 3 |
2024-11-18T23:49:29.384196+00:00 | 2021-04-08T10:38:59 | 4d1013806cd9a1fc721026d6170683c3c0656b25 | {
"blob_id": "4d1013806cd9a1fc721026d6170683c3c0656b25",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-08T10:38:59",
"content_id": "cf5df7e1a2079d1375b7f5ec6617bf79d30671eb",
"detected_licenses": [
"MIT"
],
"directory_id": "42e8a72da3005cb9bdd50a52d252e0a03a7b9e07",
"extension": "c",
... | stackv2 |
#include "adc.h"
void adc_init(void){
ADCSRA |= (ADC_PRESCALER);
ADMUX |= ((ADC_REFERENCE) << 6);
ADCSRA |= (1<<ADEN); // Enable ADC
ADCSRA |= (1<<ADSC); // Make first conversation and ready adc
}
void adc_deinit(){
ADCSRA &= ~(1<<ADEN); // Shut-down ADC
}
uint16_t adc_read(uint8_t channel)
{
ADMUX &= 0... | 2.53125 | 3 |
2024-11-18T23:49:29.505666+00:00 | 2022-12-10T01:54:51 | 6cca5c8b665ecd89cc6633637ab1b2a232c1f10a | {
"blob_id": "6cca5c8b665ecd89cc6633637ab1b2a232c1f10a",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-10T01:54:51",
"content_id": "248622daf0588e46d0fb3ce04f65a18643ee0eaa",
"detected_licenses": [
"MIT"
],
"directory_id": "6878572558672cbff535a0684ad0b63b6839717c",
"extension": "c"... | stackv2 | /* Generated by Nim Compiler v1.3.7 */
/* (c) 2020 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64
/* section: NIM_merge_HEADERS */
#include "nimbase.h"
#include <stdio.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i... | 2.046875 | 2 |
2024-11-18T23:49:29.600046+00:00 | 2017-08-30T15:10:06 | 33ac92e810fe5ef5c876456914e1645c05bef40c | {
"blob_id": "33ac92e810fe5ef5c876456914e1645c05bef40c",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-30T15:10:06",
"content_id": "498612a0fd8feef8d119ffa65f9283b92b54287f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4933438b7bf35fd80c040dfcfcd334d12a7f5304",
"extensio... | stackv2 | /**
Copyright 2016 Otavio Rodolfo Piske
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | 2.328125 | 2 |
2024-11-18T23:49:29.871976+00:00 | 2021-07-25T09:19:23 | fa42e763f0ef7b434654abf7307d0a409d523510 | {
"blob_id": "fa42e763f0ef7b434654abf7307d0a409d523510",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-25T09:19:23",
"content_id": "3d2884912b02c505b64fe8bff8b197b64bc55855",
"detected_licenses": [
"MIT"
],
"directory_id": "5c9a47c82e74ebdbb83abce965aa6d2b2e4ddfc9",
"extension": "h",
... | stackv2 | #pragma once
#include <stdbool.h>
typedef struct Condition_ Condition;
typedef struct Reservation_ Reservation;
typedef struct Repository_ {
Reservation *(*_get_by_id)(struct Repository_ *self, char const *id);
Reservation **(
*_query_reservations)(struct Repository_ *self, Condition const *cond);
} Reposi... | 2.21875 | 2 |
2024-11-18T23:49:30.057933+00:00 | 2020-07-22T23:08:14 | 1ac8a1334de7c24db4103cf9935f9eae1a2a8615 | {
"blob_id": "1ac8a1334de7c24db4103cf9935f9eae1a2a8615",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-22T23:08:14",
"content_id": "92e6a31610eb12359dd7106f59bc3fc767785166",
"detected_licenses": [
"MIT"
],
"directory_id": "4adcaa01f9820756fc3f6e80a491d94480fbe23d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
void swap( int *element1Ptr, int *element2Ptr );
int partition(int s[], int l, int h);
void quicksort(int s[], int l, int h);
int particao( int vetor[], int inicio, int fim );
void quicksort_v2( int vetor[], int inicio, int fim );
int main( void )
{
int vetor[ 8 ] = { 1, 15, -3... | 3.28125 | 3 |
2024-11-18T23:49:30.203907+00:00 | 2020-06-22T14:21:03 | 35a5bbfe233f446659f3e1d76668be043dcbb028 | {
"blob_id": "35a5bbfe233f446659f3e1d76668be043dcbb028",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-22T14:21:03",
"content_id": "fe65d294fce879908a9c2226de07f81560ea9ccb",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c95a3adbf6d5d905dfec648bec87a7523fed4d90",
"extensio... | stackv2 | /*
tinyTLS project
Copyright 2015 Nesterov A.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | 2.515625 | 3 |
2024-11-18T23:49:30.271767+00:00 | 2020-04-08T22:36:18 | 1f230980b1158d7cfb5fed18fc39f2d0ed673274 | {
"blob_id": "1f230980b1158d7cfb5fed18fc39f2d0ed673274",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-08T22:36:18",
"content_id": "e19819b2bd8e9dcc76ab4ae567997a795d7b1d9b",
"detected_licenses": [
"MIT"
],
"directory_id": "2d810a21d047db60e2aa82593fb6038d97ded059",
"extension": "c"... | stackv2 | /*
AUTHOR: Fábio Pereira da Silva
YEAR: 2019
LICENSE: MIT
EMAIL: fabioegel@gmail.com or fabioegel@protonmail.com
*/
// This tool generates a Lookup table of NANO cryptocurrency factor adjust to convert any value to RAW 128bit to be used in FIOT firmware
// Don't modify any parameter below
//Oct 13 2019
#include <s... | 2.65625 | 3 |
2024-11-18T23:49:30.655957+00:00 | 2017-04-27T02:46:51 | 871ba93ed3767aaae5c1222ec8daed1b6a7c3412 | {
"blob_id": "871ba93ed3767aaae5c1222ec8daed1b6a7c3412",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-27T02:46:51",
"content_id": "ebf4389d0b488fe8aa433b8f9b23b73342656d97",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8d16fc3663a957c075f079bd116d2df955f33ecd",
"extensio... | stackv2 | /*
* Copyright 2014, The Android Open Source Project
*
* 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 applica... | 2.09375 | 2 |
2024-11-18T23:49:30.778894+00:00 | 2018-02-21T20:58:17 | 840a04c042bade905880a72d800172cb24c3ba46 | {
"blob_id": "840a04c042bade905880a72d800172cb24c3ba46",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-23T18:20:55",
"content_id": "a9cf62dda3d59d358e5ed67267e407b7aa73eb50",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "61cffd4bb110c0215eb8e8bb5fb10b1130a1d5b0",
"extens... | stackv2 | /* Copyright (c) 2014, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdlib.h>
#include <string.h>
#include <example_debug.h>
#include <odp_api.h>
#include <odp/helper/ipsec.h>
#include <odp_ipsec_cache.h>
/** Global pointer to ipsec_cache db */
ipsec_cache_t... | 2.25 | 2 |
2024-11-18T23:49:30.896173+00:00 | 2019-10-17T16:17:56 | e0f2ecc2c3486af06600c2bbaf7d15d948608f3c | {
"blob_id": "e0f2ecc2c3486af06600c2bbaf7d15d948608f3c",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-17T16:17:56",
"content_id": "4084863fa18df4fe91fe0dcdcdf1402352ea4c90",
"detected_licenses": [
"MIT"
],
"directory_id": "f39d5002beaf1809a95e1da4fdd126493d588568",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_list_sort.c :+: :+: :+: ... | 2.78125 | 3 |
2024-11-18T23:49:31.294795+00:00 | 2021-05-13T08:09:48 | 413d282eac67bc0c75b6a3f15120bff5d2165621 | {
"blob_id": "413d282eac67bc0c75b6a3f15120bff5d2165621",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-13T08:09:48",
"content_id": "388048153122d2e7f38ea4662bcd7fe03c1c36a3",
"detected_licenses": [
"MIT"
],
"directory_id": "9b0df9a22da25423a1525cdb312c0b082de7543c",
"extension": "c",
... | stackv2 | /**
* @file test.c
* @author vzican (vvzpumpkin@gmail.com)
* @brief
* @version 1.0
* @date 2021-05-13
*
* @copyright Copyright (c) 2021 vzican@github.com
*
* @licence: MIT license
*/
#include "ringbuffer.h"
#include "stdint.h"
#include "stdio.h"
void dump(uint8_t *data, uint32_t size) {
for (uint32_t i; i... | 2.890625 | 3 |
2024-11-18T23:49:31.717013+00:00 | 2020-10-12T11:32:48 | fd4029650d09042e94ec4938591da0aeebaaf65d | {
"blob_id": "fd4029650d09042e94ec4938591da0aeebaaf65d",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-12T11:32:48",
"content_id": "c5d2acec19d0a9aaec9355ba06fbfa4a9f0332ff",
"detected_licenses": [
"MIT"
],
"directory_id": "6087a8a0e8b62660f1a7e393a0625a7bda70e986",
"extension": "h",
... | stackv2 | /**
* @file jutil_args.h
* @author Manuel Nadji (https://github.com/gnarrf95)
*
* @brief Interface for parsing command line arguments.
*
* CLI options get defined in @c #jutil_args_option_t .
* Should be created in array and then passed to
* @c #jutil_args_process() along with size of the
* array and the CLI... | 2.671875 | 3 |
2024-11-18T23:49:32.148223+00:00 | 2020-12-16T05:29:47 | 9aed4bc714b7137e905015fb63a42e246d016cc8 | {
"blob_id": "9aed4bc714b7137e905015fb63a42e246d016cc8",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-16T05:29:47",
"content_id": "10ec8ac0793e82769080404fe53505059b9e1942",
"detected_licenses": [
"MIT"
],
"directory_id": "c8e40999571c9104fd12d72954e6778b831d3ffd",
"extension": "c"... | stackv2 | #include "user_config.h"
#include "servo.h"
#include "debug.h"
#include <osapi.h>
#include <c_types.h>
#include <pwm.h>
#define PWM_PERIOD 20000
#define MAXDUTY (1000*PWM_PERIOD/45)
#define MIN_DUTY 8889
#define MAX_DUTY 53333
#define STEP 240.5
//52300 - 9000 = 43300
ICACHE_FLASH_... | 2.34375 | 2 |
2024-11-18T23:49:32.233338+00:00 | 2022-07-26T02:38:42 | deee582250cf82b2262b9b882d9494f42cd9fe0f | {
"blob_id": "deee582250cf82b2262b9b882d9494f42cd9fe0f",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-26T02:38:42",
"content_id": "45c0f9825667422762bf52fd9597a32a69d02b72",
"detected_licenses": [
"MIT"
],
"directory_id": "832f285a320e6dcba86421e50181e814309e77e2",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <emu.h>
#define VRAM_SIZE 0x10000
#define SAT_SIZE 0x100
#define PALETTE_SIZE 0x200
#define COLOR_CODES 0x10
#define MAX_TILES 4096
#define MAX_SPRITES 4096
#define SCR... | 2.3125 | 2 |
2024-11-18T23:49:32.499443+00:00 | 2018-05-31T15:47:57 | 3f584d794559e9d8929285782d22fb26b455a317 | {
"blob_id": "3f584d794559e9d8929285782d22fb26b455a317",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-31T15:47:57",
"content_id": "1e6ca5a4378df85801cd3406f177a4c4a9905669",
"detected_licenses": [
"MIT"
],
"directory_id": "a5357c0fc74cedcec8c1a21708495ea57198d505",
"extension": "c"... | stackv2 | #include "fread.h"
#include <stdlib.h>
Array* newArray(){
Array *a = (Array*)malloc(sizeof(Array)+sizeof(Record*)*10);
a->size=10;
a->no_of_rec=0;
for(int i=0; i<10; i++){
a->arr[i]=newRecord();
}
return a;
}
Record* newRecord(){
Record *rec=(Record*)malloc(sizeof(Record));
rec->cd=NULL;
rec->bc=NULL;
rec-... | 2.96875 | 3 |
2024-11-18T23:49:32.824769+00:00 | 2023-05-03T06:16:50 | d4768d3ddcbf335c1601472896ade3151446a912 | {
"blob_id": "d4768d3ddcbf335c1601472896ade3151446a912",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-03T06:16:50",
"content_id": "89f7c962bc168b7592c60273d54097f69d2f55c5",
"detected_licenses": [
"MIT"
],
"directory_id": "b27f9f9062d35817af7888e35da3f781ce9d7e1f",
"extension": "c"... | stackv2 | /*****************************************************************************
*
* File: ht.c
* Author: Alex Stivala
* Created: April 2009
*
* Separate chaining hash table.
*
*
* $Id: ht.c 3084 2009-12-20 03:39:46Z alexs $
*
*****************************************************************************/... | 2.640625 | 3 |
2024-11-18T23:49:33.047678+00:00 | 2019-07-14T03:36:59 | b6a5193123814502ca611421d61cf60511ac3f13 | {
"blob_id": "b6a5193123814502ca611421d61cf60511ac3f13",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-14T03:36:59",
"content_id": "6c92142da3aeba2155cc76b46d608bf3e1afd347",
"detected_licenses": [
"ISC"
],
"directory_id": "ac96059bd3e747db69de742c27557810f218b8e6",
"extension": "c"... | stackv2 | #define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "/usr/tmp/tssdir/tpm2-tss/include/tss2/tss2_esys.h"
#include "pytpm2_functions.h"
#include "pytpm2.h"
static PyObject *pytpm2_getrandom(PyObject *self, PyObject *args){
int i;
if(!PyArg_ParseTuple(args, "i", &i)){
return NULL;
}
ESYS_CONTE... | 2.140625 | 2 |
2024-11-18T23:49:33.116610+00:00 | 2022-05-01T10:06:41 | fadb78a9f7df8a0ef147af9d0cde7e263286535a | {
"blob_id": "fadb78a9f7df8a0ef147af9d0cde7e263286535a",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-01T10:06:41",
"content_id": "fa4e695256ec6a21cabc50abac5f9b01b609a817",
"detected_licenses": [
"MIT"
],
"directory_id": "4f435ede0ad586e00dc39d705b2b000573c4a898",
"extension": "h"... | stackv2 | static int isatty_safe(int fd) {
int ret = isatty(fd);
if (!ret && errno != ENOTTY) {
fprintf(stderr, "Error isatty: %s\n", strerror(errno));
}
return ret;
}
| 2.046875 | 2 |
2024-11-18T23:49:33.214406+00:00 | 2013-02-22T01:02:55 | 91470fd24897e64e35dca023d63a120454fadaaf | {
"blob_id": "91470fd24897e64e35dca023d63a120454fadaaf",
"branch_name": "refs/heads/master",
"committer_date": "2013-02-22T01:02:55",
"content_id": "bdb707c76963dc020107cfdb8c5756576a0d5064",
"detected_licenses": [
"MIT"
],
"directory_id": "17fc13b64a8aeae86d14b409349bae4d7bec11d6",
"extension": "c"... | stackv2 | /* Prints a sideways sine wave...
A large portion of credit goes to
some anonymous guys who helped me
understand this and Itsacon from
devarticles forum. */
#include <stdio.h>
#include <math.h>
#define M_PI 3.1415926538979323846
int main(int argc, char *argv[])
{
int i;
int j;
for (i = 0; i... | 2.5625 | 3 |
2024-11-18T23:49:33.409755+00:00 | 2019-12-29T02:26:46 | 8c10cdf4998860acb9ce990c2fab3bfb84a6b95a | {
"blob_id": "8c10cdf4998860acb9ce990c2fab3bfb84a6b95a",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-29T02:26:46",
"content_id": "afc0c44a37352e5ca557347c1ddc524c099d6b81",
"detected_licenses": [
"MIT"
],
"directory_id": "375cfde972750f790d4e2c19ad9b0d146e639ac6",
"extension": "h"... | stackv2 | void grabarDatos()
{
char charVal[10];
File dataFile = SD.open("Datalog.txt", O_CREAT | O_WRITE | O_APPEND);
boolean estadoLed = digitalRead(LED);
if (dataFile)
{
digitalWrite(LED, !estadoLed);
String dataString = "";
dataString += Dia;
dataString += "/";
dataString... | 2.171875 | 2 |
2024-11-18T23:49:37.867671+00:00 | 2020-09-27T02:51:38 | 3e507e4502975f6b9a14d536c91abbeed447e6e7 | {
"blob_id": "3e507e4502975f6b9a14d536c91abbeed447e6e7",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-27T02:51:38",
"content_id": "562bf2bbac3a3436d537343d8c6c8056242d65ab",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "da5744498f170e523dbf900a69b63729cadb7a88",
"extensio... | stackv2 | /**
*
有效括号字符串为空 ("")、"(" + A + ")" 或 A + B,其中 A 和 B 都是有效的括号字符串,+ 代表字符串的连接。例如,"","()","(())()" 和 "(()(()))" 都是有效的括号字符串。
如果有效字符串 S 非空,且不存在将其拆分为 S = A+B 的方法,我们称其为原语(primitive),其中 A 和 B 都是非空有效括号字符串。
给出一个非空有效字符串 S,考虑将其进行原语化分解,使得:S = P_1 + P_2 + ... + P_k,其中 P_i 是有效括号字符串原语。
对 S 进行原语化分解,删除分解中每个原语字符串的最外层括号,返回 S 。
示例 1:
输入:... | 3.21875 | 3 |
2024-11-18T23:49:38.158733+00:00 | 2023-07-15T18:57:29 | da56bd98fee7008411cdbfa9d7392887afc9912c | {
"blob_id": "da56bd98fee7008411cdbfa9d7392887afc9912c",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-15T18:57:29",
"content_id": "0b71ac95d12edf260643e2ec372212fae4824775",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "25a7cb8af933d28bbabbef0aca9a30e5df60b49f",
"extens... | stackv2 | #ifndef pelican_H
#define pelican_H
#include <stdlib.h>
#ifndef CRYPTO_ALIGN
# if defined(__INTEL_COMPILER) || defined(_MSC_VER)
# define CRYPTO_ALIGN(x) __declspec(align(x))
# else
# define CRYPTO_ALIGN(x) __attribute__((aligned(x)))
# endif
#endif
#ifndef pelican_KEYBYTES
# define pelican_KEYBYTES 16
#endif
#if ... | 2.03125 | 2 |
2024-11-18T23:49:39.040760+00:00 | 2019-12-03T15:48:38 | 0f7f0860a2eeff769fe1eb3ed577fd3b6a1aab32 | {
"blob_id": "0f7f0860a2eeff769fe1eb3ed577fd3b6a1aab32",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-03T15:48:38",
"content_id": "b7eff6fbe73d581298b358946fef2fab11b16757",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1a72572fb2185c9c71abb24f2553589ab3029f1f",
"extens... | stackv2 | // TOUT A FAIRE !! //
/*
indispensable pour pouvoir adresser les registres des périphériques.
Rem : OBLIGATION d'utiliser les définitions utiles contenues dans ce fichier (ex : TIM_CR1_CEN, RCC_APB1ENR_TIM2EN ...)
pour une meilleure lisibilité du code.
Pour les masques, utiliser également les définitions proposée... | 2.6875 | 3 |
2024-11-18T23:49:39.191105+00:00 | 2020-05-29T15:15:53 | 3383edcd7ada428ef77235bc80ed45becc344199 | {
"blob_id": "3383edcd7ada428ef77235bc80ed45becc344199",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-29T15:15:53",
"content_id": "06b186ec9672e5f00cf631d6d3ee680c378f58b8",
"detected_licenses": [
"Unlicense"
],
"directory_id": "b2efad63b163ad7f0b72b566de05468f3bf94811",
"extension... | stackv2 | #include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdint.h>
#include <signal.h>
#include <stdio.h>
#define MUX_MSG_HELLO 0x00000001
#define MUX_C_NEW_STDIO_FWD 0x10000008
#define MUX_S_PERMISSION_DENIED 0x80000002
#define MUX_S_FAILURE ... | 2.40625 | 2 |
2024-11-18T23:49:39.577982+00:00 | 2014-09-23T12:54:14 | 3b1986f5fe3a8d2673c9401822ccbf2228018d22 | {
"blob_id": "3b1986f5fe3a8d2673c9401822ccbf2228018d22",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-23T12:54:14",
"content_id": "34545f38915da06edf509365ef3e8a6594044a3c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "97a8b1c4c8dea484094daaf694058acab39b77a5",
"extensio... | stackv2 | /* Author: Mo McRoberts <mo.mcroberts@bbc.co.uk>
*
* Copyright (c) 2014 BBC.
*
* 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
*
... | 2.234375 | 2 |
2024-11-18T23:49:39.686025+00:00 | 2015-05-02T10:35:00 | 0df1ed6d22605c9a2d73eb71554b223704f8e421 | {
"blob_id": "0df1ed6d22605c9a2d73eb71554b223704f8e421",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-02T10:35:00",
"content_id": "7efa1a0c6821e2aedda9221be1efb523d7baf01e",
"detected_licenses": [
"MIT"
],
"directory_id": "ebce702c5f8e0801097a002acc9fd086c854e6bd",
"extension": "c"... | stackv2 | /**
* @file luawrapper.c
* @brief Launcher for a luascript embedded at the end of the program's binary
*
* @date 21 juin 2014
* @author carrier.nicolas0@gmail.com
*/
/******************************************************************************
* Copyright (C) 2015 Nicolas Carrier
*
* Permission is hereby gr... | 2.203125 | 2 |
2024-11-18T23:49:39.749816+00:00 | 2020-12-30T18:25:17 | 16f236d1a173d2848cc90b9d8db8243c595b8e56 | {
"blob_id": "16f236d1a173d2848cc90b9d8db8243c595b8e56",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-30T18:25:17",
"content_id": "0e864015fc4ac5852fba6e187dc74f89b5a54b84",
"detected_licenses": [
"MIT"
],
"directory_id": "c7c6bbeb7199c9626e242014519fc4bf180a9249",
"extension": "c"... | stackv2 | #include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "expr.h"
#include "gc.h"
#include "str.h"
struct Expr atom_as_expr(struct Atom *atom)
{
struct Expr expr = {
.type = EXPR_ATOM,
.atom = atom
};
return expr;
}
st... | 2.859375 | 3 |
2024-11-18T23:49:39.858209+00:00 | 2017-05-02T09:18:48 | dc3cdb1f331bb2ec3536bbd7b4ad4c74ba7b19f3 | {
"blob_id": "dc3cdb1f331bb2ec3536bbd7b4ad4c74ba7b19f3",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-02T09:18:48",
"content_id": "b588e15230edd72fa4fac85a63e8cc218401acdd",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "5c0a07ea2e49f386ab44a8efbe9bfb4b2169be37",
"extens... | stackv2 | // Oh boy, why am I about to do this....
#ifndef NETWORK_H
#define NETWORK_H
#include "image.h"
#include "layer.h"
#include "data.h"
typedef enum {
CONSTANT, STEP, EXP, POLY, STEPS, SIG
} learning_rate_policy;
typedef struct network{
int n;
int batch;
int *seen;
float epoch;
int subdivisions;... | 2.1875 | 2 |
2024-11-18T23:49:40.541512+00:00 | 2022-07-02T11:17:44 | 62095393312570f87a6f811f1b57b731f2937f92 | {
"blob_id": "62095393312570f87a6f811f1b57b731f2937f92",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-02T11:17:44",
"content_id": "f8e10995f8d2918ec95788ebac11b76fb61f0547",
"detected_licenses": [
"Unlicense"
],
"directory_id": "03b2c80dbc41e904b167d504666e27d798da5447",
"extension... | stackv2 | #include "symbol.c"
#include "clos.h"
#include "character.h"
#include "common.h"
#include "condition.h"
#include "degrade.h"
#include "package.h"
#include "package_intern.h"
#include "stream.h"
#include "type_parse.h"
#include "type_table.h"
static int test_symbol_heap(void)
{
addr pos, check;
symbol_heap(&pos);
t... | 2.15625 | 2 |
2024-11-18T23:49:41.207849+00:00 | 2020-10-17T03:42:50 | 0b44e40cc231d197f41fa185da30e72163952e27 | {
"blob_id": "0b44e40cc231d197f41fa185da30e72163952e27",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-17T03:42:50",
"content_id": "1d8f6c904e95e61f4a619aac9a82533f7cc8e3f1",
"detected_licenses": [
"MIT"
],
"directory_id": "8bd2ec89e73d50543012de0f12f5a778adb9b498",
"extension": "c"... | stackv2 | /*
* list.c
*
* Created on: 2020年2月23日
* Author: LuYonglei
*/
#include "list.h"
void initListItem(ListItem *const listItem) {
//初始化链表节点,表示节点还没有插入任何节点
listItem->listHeader = NULL;
}
void initListHeader(ListHeader *const listHeader) {
//初始化链表头节点
//将链表索引指针指向链表尾节点
listHeader->itemIndex = (ListItem*) (&(l... | 3.3125 | 3 |
2024-11-18T23:49:41.366241+00:00 | 2020-05-29T00:30:35 | 5ce9014a4aa332a3f9235c1e621850ae1a037f62 | {
"blob_id": "5ce9014a4aa332a3f9235c1e621850ae1a037f62",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-29T01:30:11",
"content_id": "acdc78a4abb53bb590f7fd05911da9e50764ddc8",
"detected_licenses": [
"MIT"
],
"directory_id": "07a02573aa17b3e68a1b5e2e87d344b72377691d",
"extension": "c"... | stackv2 | /*
* llist.c
*
* Created on: 13 de abr de 2016
* Author: Cristóvão Rufino <cristovaozr@gmail.com>
* Co-author: Estêvão Rufino <estevaozr@gmail.com>
*/
#include "llist.h"
#include <string.h>
#include <stdlib.h>
void llist_init(llist_root_t *root) {
root->llist_count = 0;
root->head = root->tail = NULL;
... | 3.15625 | 3 |
2024-11-18T23:49:41.614203+00:00 | 2022-12-06T20:04:48 | 9ecf5917f78cb8fcc9859a9d5658ce12e2288fa4 | {
"blob_id": "9ecf5917f78cb8fcc9859a9d5658ce12e2288fa4",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-06T20:04:48",
"content_id": "593a5ef672a17d3170822d2d1a27f1e59d4c0ccd",
"detected_licenses": [
"MIT"
],
"directory_id": "9254939d504e935ec93f516c79ef6f79c17062a0",
"extension": "h"... | stackv2 | #ifndef PARTICLE_H
#define PARTICLE_H
#include <mpi.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*initType)(void *, void *start, int size, int stride, int begin, int n) ;
typedef struct particleinfo_st
{
void **start;
int size, stride,nParticle;
MPI_Datatype type;
initType init;
void *initParms;... | 2.125 | 2 |
2024-11-18T23:49:41.736941+00:00 | 2021-04-14T03:03:42 | a166cf2e760669961f1bd55813370f245c63d5c6 | {
"blob_id": "a166cf2e760669961f1bd55813370f245c63d5c6",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-14T03:03:42",
"content_id": "cf394db3521a0039883af60d9093dddd6f6e5d11",
"detected_licenses": [
"MIT"
],
"directory_id": "6bf8b0e9eb9ba052ff5ddd2ea1c0a3f786bc8eb6",
"extension": "c",
... | stackv2 | #include "stm8/i2c_slave.h"
#include "stm8/i2c_shared.h"
#include "stm8/registers.h"
#include "shared/comms.h"
void i2c_slave_init() {
// turn off i2c peripheral
*I2C_CR1 = 0;
// need to set ADDCONF to 1
// leave everything else as 0 to use 7-bit addresses
*I2C_OARH = I2C_OARH_ADDCONF;
*I2C_OARL = BASE_I2C_ADD... | 2.265625 | 2 |
2024-11-18T23:49:41.841540+00:00 | 2016-11-02T14:58:04 | 584b4cfca004ce77cc09426be1ac38dd642cf2c8 | {
"blob_id": "584b4cfca004ce77cc09426be1ac38dd642cf2c8",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-02T14:58:04",
"content_id": "9e4859e0d25c2b94590416ada8b4a0788ac315c4",
"detected_licenses": [
"MIT"
],
"directory_id": "d6d484fad3d82bc7cb122d390b35b2cf29cd2ef5",
"extension": "c"... | stackv2 | /* master.c
* 15 June 2005
*
* Sets up the bgio master pipe and prepares it to accept tasks.
* Automatically installs the echo task as its first task.
*
* TODO: get rid of st_child_pid
* TODO: stdio is not reentrant. Can't call log_XX from a signal
* handler.
*/
#include <stdio.h>
#include <stdlib.h>
#includ... | 2.578125 | 3 |
2024-11-18T23:49:42.321518+00:00 | 2019-10-22T10:46:15 | 39c6e917e5776015ec4f18176f6bfb153f3cf8b3 | {
"blob_id": "39c6e917e5776015ec4f18176f6bfb153f3cf8b3",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-22T10:46:15",
"content_id": "332ae72a27ddb6ce4fd4518ae7012111e26fccb9",
"detected_licenses": [
"MIT"
],
"directory_id": "6d889479c8e50e836c5ec9e9ca78c0c1f2dc4d62",
"extension": "c"... | stackv2 | #include <signal.h>
void *handle_signal(){
sigset_t set;
int signal_type;
sigemptyset(&set);
sigaddset(&set, SIGHUP);
sigwait(&set, signal_type);
if (signal_type == SIGHUP) {
printf("%s\n","Caught the signal");
}
}
int main() {
pthread_t handlerID;
sigset_t set;
pthread_create(&handlerID, NULL, handle... | 2.8125 | 3 |
2024-11-18T23:49:42.594571+00:00 | 2019-11-26T09:44:32 | 22e2f9074d09afd7a66b439ffd28b81df4d6da2d | {
"blob_id": "22e2f9074d09afd7a66b439ffd28b81df4d6da2d",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-26T09:44:32",
"content_id": "91d1abc0d4d2638b9b2337392a96c54e49bc055a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "16d77cc7dd377773bd27494a95feb627c70d9f4e",
"extensio... | stackv2 | /**
* sqstack.c
*
* implementation of sequence stack
*
* Created by Houor
*/
#include <stdio.h>
#include <stdlib.h>
#include "sqstack.h"
int initializeStack(Stack *stack) {
stack->base = (ElementType *) malloc(STACK_INIT_SIZE * sizeof(ElementType));
if (!stack->base)
return OVERFLOW;
stack... | 3.5 | 4 |
2024-11-18T23:49:43.685873+00:00 | 2022-05-18T22:48:58 | c39dfbd3bb5f29a727906641573c3bbd67d25644 | {
"blob_id": "c39dfbd3bb5f29a727906641573c3bbd67d25644",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-18T22:48:58",
"content_id": "00b5b8538400aead45240efa48d995c90a0d9d55",
"detected_licenses": [
"NetCDF"
],
"directory_id": "f311072a5ac74e4d749c28491755e24840102951",
"extension": ... | stackv2 | /**
* $Id: nccf_add_data_att.c 929 2012-06-20 20:45:40Z pletzer $
*/
#include <nccf_data.h>
/**
* \ingroup gs_data_grp
* Add attribute to object.
*
* \param dataid data ID
* \param name attribute name
* \param valuep attribute value
* \return NC_NOERR on success
*
* \author Alexander Pletzer and David Kind... | 2.453125 | 2 |
2024-11-18T23:49:44.226066+00:00 | 2021-05-18T15:50:08 | cd98d44546884ae2e5b7ba1b42f821e194c38dbd | {
"blob_id": "cd98d44546884ae2e5b7ba1b42f821e194c38dbd",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-18T15:50:08",
"content_id": "1747ff5e6e582874e54c72b8e4e6717f98518a68",
"detected_licenses": [
"MIT"
],
"directory_id": "5c7d4e940d32aa9d0ada677ea844dd5f4e479efd",
"extension": "c"... | stackv2 | #include "pickle_location.h"
#include <stdlib.h>
const PickleLocation* PickleLocation_new(int line, int column) {
PickleLocation* location = (PickleLocation*)malloc(sizeof(PickleLocation));
location->line = line;
location->column = column;
return location;
}
const PickleLocations* PickleLocations_new_... | 2.71875 | 3 |
2024-11-18T23:49:45.025447+00:00 | 2016-02-04T08:59:15 | 15b9767b9ad0ec9e7d43a1f0a558d9f04f76f623 | {
"blob_id": "15b9767b9ad0ec9e7d43a1f0a558d9f04f76f623",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-04T08:59:15",
"content_id": "a2b30327ccf7a2f0f5ce9ae7746974e311862c46",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3e3b8fe00bf46c60d0534ba6e00cfe3047d7e23b",
"extensio... | stackv2 | #include "process.h"
#include "thread.h"
#include "list.h"
#include "tree.h"
static tree_t processes = NULL;
static tree_t threads = NULL;
/* Get a process by its PID. The process is not refcounted. If there is no such process, return NULL. */
process_t * process_get(pid_t pid) {
process_t * process = tree_get(&... | 3.09375 | 3 |
2024-11-18T23:49:45.168538+00:00 | 2020-09-12T09:36:18 | c0f6ca4b1cd3c7a505f4c06c7c5a147e56ecca1e | {
"blob_id": "c0f6ca4b1cd3c7a505f4c06c7c5a147e56ecca1e",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-12T09:36:18",
"content_id": "df66e72ccccfaf23be0853c6d7af23761b990b03",
"detected_licenses": [
"MIT"
],
"directory_id": "f4abf5739bccf6f61468e66dfb7401cb343b4f9e",
"extension": "c"... | stackv2 | /*
CalcDist.c is part of the NUPACK software suite
Copyright (c) 2007 Caltech. All rights reserved.
Coded by: Justin Bois 9/2006
For use with Distributions.c.
This program solves the problem presented in Dirks, et al.,
"Thermodynamic analysis of interacting nucleic acid strands", in
progress. All varia... | 2.3125 | 2 |
2024-11-18T23:49:45.685566+00:00 | 2018-08-06T13:34:33 | 07b0646b21c6b558498f3dbf0d898f00051e5a9b | {
"blob_id": "07b0646b21c6b558498f3dbf0d898f00051e5a9b",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-06T13:34:33",
"content_id": "88c51787ededf56d8255837a797cdfcdd916687b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fe22ef92013c8141714c1a87a0d6c73c0d9b2e0a",
"extensio... | stackv2 | #include <stdint.h>
#include "constants.h"
int buffer_to_number(char *buffer, int len, char type, void* output)
{
uint16_t temp_int16 = buffer[0] | buffer[1] << 8 ;
uint32_t temp_int32 = buffer[0] | buffer[1] << 8 | buffer[2] << 16 | buffer[3] << 24;
union {
uint32_t i;
float f;
} u1;
... | 2.640625 | 3 |
2024-11-18T23:49:45.800201+00:00 | 2022-11-21T17:01:22 | 784dcd3de16611578e20b91b08d66504f6439180 | {
"blob_id": "784dcd3de16611578e20b91b08d66504f6439180",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-22T20:13:35",
"content_id": "3f6513d9b50e1c992fe9d0c703e8f9a30488484e",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "31b33fd6d6500964b2f4aa29186451c3db30ea1b",
"extens... | stackv2 | /*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <Kernel/API/POSIX/netinet/in.h>
#include <endian.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
in_addr_t inet_addr(char const*);
static inline uint16_t htons(uint16_t value)
{
#if __B... | 2.421875 | 2 |
2024-11-18T23:49:45.880119+00:00 | 2012-12-11T10:48:40 | 5216b1497e2cd1bb7e8e4d4dd21716b175ba75ee | {
"blob_id": "5216b1497e2cd1bb7e8e4d4dd21716b175ba75ee",
"branch_name": "refs/heads/master",
"committer_date": "2012-12-11T10:48:40",
"content_id": "cfc29143f1aa1a16aff5a3e05004db54f9823fbe",
"detected_licenses": [
"MIT"
],
"directory_id": "e25407ee25e2e1d262107a395887ea748aa7d262",
"extension": "h"... | stackv2 |
//
// Heap Interface 'c style'
//
#include <stdlib.h>
/////////////////////////////////////////////
// CODE GENORATED BY AN AWK SCRIPT
// appox
// cmd> awk -f api2c.awf IHeap.api_def
/////////////////////////////////////////////
//
// Macros - if not already defined
//
#ifndef HEADER_CODE
#define HEADER_CODE static... | 2.40625 | 2 |
2024-11-18T23:50:16.247007+00:00 | 2015-01-15T19:42:05 | 066096c208469d3fafb0041050e5eb4e714e4a06 | {
"blob_id": "066096c208469d3fafb0041050e5eb4e714e4a06",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-15T19:42:05",
"content_id": "f539198193eeaa58cb0e5bbbe87e121bf0b89ab8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c9528a420b746776c74bac5716bdb68f03a9ede1",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "binarytree.h"
#include "hash.h"
void linked_list_insert(linked_list **ll, const char *key, int value)
{
assert(ll != NULL); // we need at least a pointer to assign to
if (*ll == NULL) { // initialize the first entry
*ll = ... | 3.125 | 3 |
2024-11-18T23:50:16.932397+00:00 | 2019-07-19T06:46:43 | 14844cdf05325fdf5b87d033079ae738c1841e36 | {
"blob_id": "14844cdf05325fdf5b87d033079ae738c1841e36",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-19T06:46:43",
"content_id": "3f4987b4db09aab70a9634fc4236ee778fb35810",
"detected_licenses": [
"MIT"
],
"directory_id": "b32e934873bc89fca1497f9a007ec7dba554426f",
"extension": "h"... | stackv2 | #ifndef DECODERS
#define DECODERS
#include <string.h>
#include <math.h>
#include "../sym.h"
#include "../destabilisers.h"
#include "../error_models/error_models.h"
//----------------------------------------------------------------------------------------
// The Decoder Base 'class'
//--------------------------------... | 2.4375 | 2 |
2024-11-18T23:50:17.085292+00:00 | 2020-12-28T17:58:00 | 64a6507c753523c97f3244a30ef18ba42883b8d2 | {
"blob_id": "64a6507c753523c97f3244a30ef18ba42883b8d2",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-28T17:58:00",
"content_id": "424ed3aa6483a281f6fcc2dc5ad4f18a9de5f535",
"detected_licenses": [
"MIT"
],
"directory_id": "a403be0761ab9ba17361fbdd031f44593d0d3856",
"extension": "c",
... | stackv2 | /*
* main2.c
*
* Created on: Sep 17, 2020
* Author: s0lid
*/
#include <stdio.h>
#include <string.h>
#include "stm32f4xx_hal.h"
#include "main.h"
void SystemClock_Config(uint32_t);
void UART2_Init(void);
void Error_handler(void);
UART_HandleTypeDef uart_2;
char *user_data = "s\n";
#define FALSE 0
#define ... | 2.71875 | 3 |
2024-11-18T23:50:17.220037+00:00 | 2017-03-30T17:17:12 | 266f888f6aafd19ee8f5bdf1196d4624eb4fee1b | {
"blob_id": "266f888f6aafd19ee8f5bdf1196d4624eb4fee1b",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-30T17:17:12",
"content_id": "fe936ef363eef1cb78e13a0e39601007e6a64f29",
"detected_licenses": [
"ISC"
],
"directory_id": "30902fc833129cc532686cbebbca386e213c1ee0",
"extension": "c"... | stackv2 | // Unit Test Framework Includes
#include "atf.h"
// File To Test
#include <stdc.h>
#include <utf8.h>
static bool is_rejected(char* seq) {
Rune rune = 0;
size_t length = 0;
while (*seq && !utf8decode(&rune, &length, *seq))
seq++;
return (rune == RUNE_ERR);
}
//---------------------------------... | 2.734375 | 3 |
2024-11-18T23:50:17.834284+00:00 | 2020-08-08T09:50:39 | fbab30ae481c43830005fbaa65daee4238d8c8ba | {
"blob_id": "fbab30ae481c43830005fbaa65daee4238d8c8ba",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-08T09:50:39",
"content_id": "016b5977c3f7459a09c231ce2958633b8d7b2b18",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "c9797fdfce38f32bf11c9e9bd36218fbe46819ef",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <assert.h>
#include <log.h>
#include <token.h>
typedef struct _TOKEN_UNIQUE {
char * Name;
size_t Count;
}
TOKEN_UNIQUE;
static void _token_destroy_callback(void *Token);
static void
_token_dest... | 2.609375 | 3 |
2024-11-18T23:50:18.259072+00:00 | 2020-08-07T01:51:16 | 400a9dc7a038ef96bb0e6d91d26a5df9bc8bba8e | {
"blob_id": "400a9dc7a038ef96bb0e6d91d26a5df9bc8bba8e",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-07T01:51:16",
"content_id": "f8a437e7b844c3633c9bea243135cb79655d166c",
"detected_licenses": [
"MIT"
],
"directory_id": "feb08986f99162d579f3350bd1d2663b188d1496",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int main()
{
int idade=0;
float desconto=0, precoN=0, precoT=0;
while(idade != -1)
{
printf("Qual a sua idade(Digite -1 para sair)? ");
scanf("%i", &idade);
if(idade >= 0 && idade<=200)
{
precoN = 1000 - (1000 * (((ida... | 3.28125 | 3 |
2024-11-18T23:50:18.353590+00:00 | 2013-10-01T08:51:29 | 28c7c4b795cd30fec002f1e874dc551128c06414 | {
"blob_id": "28c7c4b795cd30fec002f1e874dc551128c06414",
"branch_name": "refs/heads/master",
"committer_date": "2013-10-01T08:51:29",
"content_id": "f74ef3498f79032a2da6ee0001381e0877e31a1f",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "596c31b047ca731e4908aaf9f056b6ec39623380",
"extens... | stackv2 | #include "evas_common.h"
#include "evas_private.h"
/* private calls */
static int
evas_key_modifier_number(const Evas_Modifier *m, const char *keyname)
{
int i;
for (i = 0; i < m->mod.count; i++)
{
if (!strcmp(m->mod.list[i], keyname)) return i;
}
return -1;
}
static int
evas_key_lock_number(con... | 2.515625 | 3 |
2024-11-18T23:50:18.866310+00:00 | 2017-05-14T02:21:57 | 6e96eb3253b4b19408f76f214fcad8c66da24b3f | {
"blob_id": "6e96eb3253b4b19408f76f214fcad8c66da24b3f",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-14T02:34:14",
"content_id": "f1986e9863894ec0d906e3ca80f9015cc3d1c27b",
"detected_licenses": [
"Zlib"
],
"directory_id": "784ff849c9cc1c714b49e322f39a701a36c5c1c3",
"extension": "c... | stackv2 | /**
* Authors: Erik Buchanan, Nitay Joffe
* Class: CSE 123B - Networking
* Assignment: 1 - Web Server
* Date: 1/21/07
*/
#include <stdlib.h>
#include <string.h>
#include "debug.h"
#include "string_set.h"
struct string_set *create_string_set() {
struct string_set *the_string_set = malloc(sizeof(struct string_se... | 3.140625 | 3 |
2024-11-18T23:50:19.196306+00:00 | 2021-01-05T23:00:26 | cc06eab7d07ffc23c696d6903485ea61205cbcc8 | {
"blob_id": "cc06eab7d07ffc23c696d6903485ea61205cbcc8",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-05T23:00:26",
"content_id": "e0aa6ec8e8ae36228c5beab442088c72bb894cf0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "8c91ecc95ef0ece921dbe311b9e06754b92b2541",
"extensio... | stackv2 | //
// main.c
// Options_db
//
// Created by Sato on 12/21/20.
//
#include <stdio.h>
#include <sqlite3.h>
int callback(void *, int, char **, char **);
int main(void)
{
sqlite3* db;
char* err_msg = 0;
int rc = sqlite3_open("/Users/Sato/Documents/PycharmProjects/Tsuru/Options_temp.db", &db);
... | 2.59375 | 3 |
2024-11-18T23:50:19.500754+00:00 | 2021-05-20T06:17:54 | 88f8066670df825f2de31b644a3536893efba3eb | {
"blob_id": "88f8066670df825f2de31b644a3536893efba3eb",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-20T06:17:54",
"content_id": "23978cb9354116982e62c07436136a83434f1905",
"detected_licenses": [
"MIT"
],
"directory_id": "6dde1386e1901824dcaccb7f24944f08b60f908b",
"extension": "c"... | stackv2 | #include "types.h"
#include "stat.h"
#include "user.h"
#include "fs.h"
#define PGSIZE 4096
#define ARR_SIZE 55000
/**
* Test used to check the swapping machanism in fork.
* Best tested when LIFO is used (for more swaps)
*/
void forkTest(){
int i;
char * arr;
arr = malloc (50000);
for (i = 0; i < ... | 3.046875 | 3 |
2024-11-18T23:50:19.618997+00:00 | 2015-03-19T01:37:07 | b3b8c5bc1430a7294f9b90c088b0bc5617582f40 | {
"blob_id": "b3b8c5bc1430a7294f9b90c088b0bc5617582f40",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-19T01:37:07",
"content_id": "1b7c1690c889aabeb11d0ff22e2029b80137324d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d5f639197cfc4c7207c80685ea17fa9440c9dd15",
"extensio... | stackv2 | /* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 Alexander Larsson
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your o... | 2.25 | 2 |
2024-11-18T23:50:19.944027+00:00 | 2022-09-27T20:55:02 | 0f3a2d1035b3b4fec5d65101da9eefcec60aece4 | {
"blob_id": "0f3a2d1035b3b4fec5d65101da9eefcec60aece4",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-27T20:55:02",
"content_id": "305bb3876041c1e0b43d1d08d267c1e319974141",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "36cbda449252d044ebdc0af44f7b4f69f64aa717"... | stackv2 | #include <pocketsphinx.h>
#include "ps_alignment.h"
#include "pocketsphinx_internal.h"
#include "test_macros.h"
int
main(int argc, char *argv[])
{
bin_mdef_t *mdef;
dict_t *dict;
dict2pid_t *d2p;
ps_alignment_t *al;
ps_alignment_iter_t *itor;
cmd_ln_t *config;
config = cmd_ln_init(NULL, NULL, FALSE,
... | 2.109375 | 2 |
2024-11-18T23:50:21.226888+00:00 | 2023-08-25T10:41:36 | c75544261eb64507dbb96711297f7cc53b651ac1 | {
"blob_id": "c75544261eb64507dbb96711297f7cc53b651ac1",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-25T16:03:30",
"content_id": "6ac777fe32be697ac4a745ee2aefbe22c0e76421",
"detected_licenses": [
"BSD-3-Clause",
"Apache-2.0"
],
"directory_id": "7c9936e3eb0d6672a4bb1ef9fc54eb03a220... | stackv2 | // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// This is a balloon device helper tool, which allocates an amount of
// memory, given as the first starting parameter, and then tries to find
// 4 consecutive occurences of an integer, given as the second... | 3.046875 | 3 |
2024-11-18T23:50:23.202591+00:00 | 2023-07-04T18:55:14 | 5b6e7cd8c22539b68a9955b7a670c7550d2bf971 | {
"blob_id": "5b6e7cd8c22539b68a9955b7a670c7550d2bf971",
"branch_name": "refs/heads/staging",
"committer_date": "2023-08-09T10:28:32",
"content_id": "c0d0fb3a21d239c72d088c097fb1ea6bc8e3d1c7",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "00ec01a8d8ceed4a007495a903fe7d2743509265",
"exten... | stackv2 | /* SPDX-License-Identifier: BSD-3-Clause */
/*
* Authors: Simon Kuenzer <simon.kuenzer@neclab.eu>
*
* Copyright (c) 2019, NEC Laboratories Europe GmbH, NEC Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... | 2.1875 | 2 |
2024-11-18T23:50:23.888614+00:00 | 2021-05-07T15:10:15 | cf39ffa6bc9d9194ba681495538b18487aad748c | {
"blob_id": "cf39ffa6bc9d9194ba681495538b18487aad748c",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-07T15:10:15",
"content_id": "26f656b0147c182383e78d21b08c21046bc26838",
"detected_licenses": [
"MIT"
],
"directory_id": "3f72f2b1a257c88e9ab99b4dc5f096d542928766",
"extension": "c"... | stackv2 | #include "makise_e_message_window.h"
#if ( MAKISE_E_MESSAGE_WINDOW > 0 )
static char name[] = "MessageWindow";
static MResult draw ( MElement* b, MakiseGUI *gui );
void m_create_message_window ( MMessageWindow* b,
MContainer* c,
MPosition pos,
... | 2.203125 | 2 |
2024-11-18T23:50:23.970612+00:00 | 2016-10-15T09:48:50 | 68dd207898970a01ef241d41bc6cb210c8a4fe02 | {
"blob_id": "68dd207898970a01ef241d41bc6cb210c8a4fe02",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-15T09:51:15",
"content_id": "780bffb99d0cdba048d1224e018d0af7d25a3db8",
"detected_licenses": [
"MIT"
],
"directory_id": "20f91422ac5f57d310f64cc8fc51cbd3ffd2a4e1",
"extension": "h"... | stackv2 | /* Copyright [2016] <Alexis Lescouet, Benoît Bazard> */
/**
* @file
*
* Matrix functions header
*
*/
#ifndef RELEASE_INCLUDE_MATRIX_H_
#define RELEASE_INCLUDE_MATRIX_H_
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <fftw3.h>
/**
* @brief Define pi constant
*
*/
#defi... | 2.125 | 2 |
2024-11-18T23:50:24.352716+00:00 | 2016-11-10T18:27:13 | 380e0b14f0fbcf3aac1539ef070f919cd6af4ad1 | {
"blob_id": "380e0b14f0fbcf3aac1539ef070f919cd6af4ad1",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-10T18:27:13",
"content_id": "554706c119c2617f6bf452132109e3b2c5dce60f",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f3fea5e4ece5eafc110178fe83335e753144334a",
"extens... | stackv2 | /* $Id: scheduler.c,v 1.17 2008-10-06 01:57:07 niallo Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Niall O'Higgins <niallo@p2presearch.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 ... | 2.125 | 2 |
2024-11-18T23:50:24.773181+00:00 | 2019-02-24T09:07:58 | b1e14bd0df5d37e2fc93b7b4e325a1670287c56e | {
"blob_id": "b1e14bd0df5d37e2fc93b7b4e325a1670287c56e",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-24T09:07:58",
"content_id": "5e58085e46096a3462647196fb72337226375eca",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a241df8d7bf0ba518a9417a95599b6d04377b1a2",
"extens... | stackv2 | /******************************************************************
*
* uEcho for C
*
* Copyright (C) Satoshi Konno 2015
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <string.h>
#include <uecho/object_internal.h>
... | 2.1875 | 2 |
2024-11-18T23:50:24.933352+00:00 | 2023-05-10T20:45:39 | 20e89bd28bcadea80b8bdb9fc9a382414458d794 | {
"blob_id": "20e89bd28bcadea80b8bdb9fc9a382414458d794",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-10T20:45:39",
"content_id": "6f44f10ce2c64b9bddfe8768c6113014189ddaa4",
"detected_licenses": [
"MIT"
],
"directory_id": "c0361bfbc44c64cb5c607d1745322136deed8fd8",
"extension": "h"... | stackv2 | #ifndef __DEFS_H__
#define __DEFS_H__
#include <stdint.h>
#define MAX_FUNCTIONS 256
#define MAX_ARGS 8
#define NUM_LEDS 4
#define SCALE_FACTOR 1000
#define S_PIM2 6283 // PI * 2 * SCALE_FACTOR
#define S_PI 3141 // PI * SCALE_FACTOR
#define S_PID2 1570 // PI / 2 * SCALE... | 2.125 | 2 |
2024-11-18T22:49:48.964440+00:00 | 2023-08-29T11:30:11 | 06bd2845ced370b53613269a5181f005e686193b | {
"blob_id": "06bd2845ced370b53613269a5181f005e686193b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T11:30:11",
"content_id": "778a8c734c1f9cb9474cd8698ea0ea2d5cfa2624",
"detected_licenses": [
"BSD-3-Clause",
"BSD-4-Clause-UC"
],
"directory_id": "07664200f77c4d87baf972e367e77... | stackv2 | /*
* Copyright (c) 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* @(#)file.h 1.3 (2.11BSD GTE) 1/19/95
*/
#ifndef _SYS_FILE_H_
#define _SYS_FILE_H_
#include <sys/fcntl.h>
#include <sys/uni... | 2.15625 | 2 |
2024-11-18T22:49:49.623301+00:00 | 2013-11-14T13:45:40 | 48ccdfe277b844e08a7a53deb8094ba2d3883518 | {
"blob_id": "48ccdfe277b844e08a7a53deb8094ba2d3883518",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-17T11:38:57",
"content_id": "4924c346186594f38857126ce9d620afacf110cb",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1e30f099b943619b733dddac436dfad444d1ae30",
"extens... | stackv2 | /* $Id$
* $Source$
*------------------------------------------------------------------
*
* Sample Importer
*
* Apr 26, 2007, Carol Iturralde
*
* Copyright (c) 2006-2008 by cisco Systems, Inc.
* All rights reserved.
*
* Description:
*
* A utility program to receive and print reports generated by
* the VQE... | 2.03125 | 2 |
2024-11-18T22:49:49.883417+00:00 | 2019-12-09T07:28:02 | 6ee89b6ce4f4823d8d54ab9bbeb7ccbe166e87be | {
"blob_id": "6ee89b6ce4f4823d8d54ab9bbeb7ccbe166e87be",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-09T07:28:02",
"content_id": "6f835965df6b8cec00e72c6a177f0e60037d5999",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "cdfdd7793596dc01f1abc3ac3d35c82a6932d42c",
"extensio... | stackv2 | /****************************************************************************************
* The Sentential Decision Diagram Package
* sdd version 2.0, January 8, 2018
* http://reasoning.cs.ucla.edu/sdd
****************************************************************************************/
#include "sdd.h"
/****... | 2.3125 | 2 |
2024-11-18T22:49:50.793750+00:00 | 2021-03-03T02:01:32 | 143d319daae39d522dde6d7787be7e3f1e320fff | {
"blob_id": "143d319daae39d522dde6d7787be7e3f1e320fff",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-03T02:01:32",
"content_id": "033a84e35aacd62eba38fedf4854adc3ba3362d5",
"detected_licenses": [
"MIT"
],
"directory_id": "135dc036d1a10b1672efd2cb10166578e9b7439d",
"extension": "c"... | stackv2 | #include <string.h>
char* strncpy(char destination[static restrict 1], const char source[static restrict 1], size_t length)
{
char* output = destination;
for (; length && *source; --length)
*output++ = *source++;
if (length) // clang is happier with this
memset(output, 0, length);
re... | 2.453125 | 2 |
2024-11-18T22:49:50.889191+00:00 | 2023-08-11T13:11:54 | f77270485d9851e15241fe073c6cd6a2af39684e | {
"blob_id": "f77270485d9851e15241fe073c6cd6a2af39684e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T13:11:54",
"content_id": "d5439764c272036b34b2c0e2419c2867995a1792",
"detected_licenses": [
"MIT"
],
"directory_id": "c0a3a698c8d72fe5df73a0fbbcf19b0e45e93ba6",
"extension": "c"... | stackv2 | /* Example of authentic stalin-sort of chars
*
* compilation: cc example-int.c stalin-sort.c
* (or any other compiler)
*
* Also you can just copy stalin-sort() function from stalin-sort.c
*/
#include "stalin-sort.h"
#include <stdio.h>
/* Compares chars by ASCII - code */
int cmp_chars(const void *arg1, const vo... | 3.546875 | 4 |
2024-11-18T22:49:51.459268+00:00 | 2012-10-18T20:45:22 | 0f628c286683bf35bb93627461b82bc40c62737a | {
"blob_id": "0f628c286683bf35bb93627461b82bc40c62737a",
"branch_name": "refs/heads/master",
"committer_date": "2012-10-18T20:45:22",
"content_id": "9467a9b24dcd7f51ffa446d77346b285cc271e46",
"detected_licenses": [
"MIT"
],
"directory_id": "0cac372ccae7375523a1a00b75202e32c936c2a3",
"extension": "h"... | stackv2 | /* Chip-8 Memory
* Aleksi Blinnikka 7.10.2012-12.10.2012
*/
#ifndef _MEMORY_H_
#define _MEMORY_H_
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
typedef struct _Memory
{
uint8_t data[0x1000];
} Memory;
/* Loads the Chip-8 font sprites to memory (0x0 - 0x4F).
* There is a sprite for all hexadecimal n... | 2.296875 | 2 |
2024-11-18T22:49:51.545342+00:00 | 2016-07-07T14:10:47 | 042d329934814544da4cbb2bb1ac51e9dfd8da6a | {
"blob_id": "042d329934814544da4cbb2bb1ac51e9dfd8da6a",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-07T14:10:47",
"content_id": "2ea2d0341e0f641c8a783493fa844a48df520dcb",
"detected_licenses": [
"MIT"
],
"directory_id": "663dc80386f66332978a9f914e4790313a3a1fb6",
"extension": "c"... | stackv2 | /**
* atax.c: This file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: Scott Grauer-Gray <sgrauerg@gmail.com>
* Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
* Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#i... | 2.390625 | 2 |
2024-11-18T22:49:51.800721+00:00 | 2019-08-06T07:35:08 | fd0af8ff13e366700d154c48bc3a0f8e408f4033 | {
"blob_id": "fd0af8ff13e366700d154c48bc3a0f8e408f4033",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T07:35:08",
"content_id": "084a151610ea13bf749c8efa07b762f6d151a128",
"detected_licenses": [
"MIT"
],
"directory_id": "9d8178f3401860259e8e27220cb2e9e035a0af44",
"extension": "c"... | stackv2 | #include "bsp_include.h"
#include "app_include.h"
#if defined(USING_INC_MB1616DEV6)
pca9539a_t pca9539a_1;
pca9539a_t pca9539a_2;
uint8_t homeSensorPin[3]={PD_12,PD_10,PD_11};
static rt_timer_t timer1;
static rt_uint8_t out_flash_on[16]={0};
static rt_uint8_t out_flash_value[16]={0};
static rt_uint16_t out_flash_... | 2.25 | 2 |
2024-11-18T22:49:52.144751+00:00 | 2021-05-24T11:02:34 | 97b29eac85b19c3036ecff761c635e8d928e5167 | {
"blob_id": "97b29eac85b19c3036ecff761c635e8d928e5167",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-24T11:02:34",
"content_id": "b96b249f75be019096a53f51744fafa45a756385",
"detected_licenses": [
"MIT"
],
"directory_id": "903855cbeb65affd6620ded59191c8a8b8d1df45",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdbool.h>
#include <winsock2.h>
char board[4][4];
int turn_number = 0;
bool wwin = false;
bool server_work = true;
void pokazat_hod_igri() {
printf("\n %c | %c | %c \n---+---+---\n %c | %c | %c \n---+---+---\n %c | %c | %c \n\n",
board[1][1], board[1][2], board[1][3], boar... | 2.734375 | 3 |
2024-11-18T22:49:53.057525+00:00 | 2011-09-30T06:41:08 | 5a1515049c2d240d95fc5965c5e29fe3b22306be | {
"blob_id": "5a1515049c2d240d95fc5965c5e29fe3b22306be",
"branch_name": "refs/heads/master",
"committer_date": "2011-09-30T06:41:08",
"content_id": "bd99a03b5f9046b1386c8d6c6384c505f8e6a23d",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a0aef7cb9b84831f8559763b1e3d956e9c2d305d",
"extens... | stackv2 | /*
chase.c - Code for one object to chase another
XRogue: Expeditions into the Dungeons of Doom
Copyright (C) 1991 Robert Pietkivitch
All rights reserved.
Based on "Advanced Rogue"
Copyright (C) 1984, 1985 Michael Morgan, Ken Dalka and AT&T
All rights reserved.
Based on "Rogue: ... | 2.5 | 2 |
2024-11-18T22:49:53.387995+00:00 | 2021-07-24T01:57:02 | d003f95b61b67e69f22cebb62c21c29bb55111de | {
"blob_id": "d003f95b61b67e69f22cebb62c21c29bb55111de",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-24T01:57:02",
"content_id": "2caa2430f66762c9cc0c92cced6d563be63167ff",
"detected_licenses": [
"MIT"
],
"directory_id": "2d5af4db494305a7a8a588eed771e370678ef1e3",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
void lerNomeArquivo (char *arquivoEntrada) {
printf("Informe o nome do arquivo de entrada: ");
setbuf(stdin, NULL);
scanf("%s", arquivoEntrada);
}
int numeroPalavras (char *nomeArquivo) {
FILE *arq;
arq = fopen(nomeArquivo, "r");
char string[15... | 3.34375 | 3 |
2024-11-18T22:49:53.461444+00:00 | 2016-05-10T11:12:03 | 473a79b923f9de7ad33d7aa21af7d0f27bf0e61b | {
"blob_id": "473a79b923f9de7ad33d7aa21af7d0f27bf0e61b",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-10T11:12:03",
"content_id": "e69e0a614a922a6229d2549feb6222cffb0a23d4",
"detected_licenses": [
"MIT"
],
"directory_id": "225d7a50445ab07f3e2b2b9ab8688d6e8a7283e7",
"extension": "c"... | stackv2 | #include "linkedlist.h"
#include <stdlib.h> // calloc, free
LinkedList *linked_list_new() {
LinkedList *list = calloc(1, sizeof(LinkedList));
return list;
}
void linked_list_dealloc(LinkedList *list) {
Node *node;
node = list->root_node;
for (uint32_t i = 0; i < list->length; i++) {
Node *next_node = no... | 3.59375 | 4 |
2024-11-18T22:49:59.657179+00:00 | 2021-02-12T12:31:06 | e48a052dab18af4114c9d26a7f9d057c738be3dc | {
"blob_id": "e48a052dab18af4114c9d26a7f9d057c738be3dc",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-12T12:31:06",
"content_id": "92943a59029cfa9225a4fd72529860a0f9def0e6",
"detected_licenses": [
"MIT"
],
"directory_id": "52e7a1790e26493fd670f7f9967f1ba91cedf8b9",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#ifndef WIN32
#include <pcap.h>
#else
#include "pcap.h"
#endif // !WIN32
#include "common.h"
pcap_t *g_handle = NULL;
int main(int argc, char *argv[])
{
// Check Basic Environment
printf("Info: pktRxTx was built at %s, %s\n", __DATE__, __TIME__);
... | 2.5 | 2 |
2024-11-18T22:49:59.966074+00:00 | 2021-01-07T07:21:21 | c2be625bfe5a5192e570c8b1a6f842b03c77bc13 | {
"blob_id": "c2be625bfe5a5192e570c8b1a6f842b03c77bc13",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-07T07:21:21",
"content_id": "4140167c82d957be7e3faf93b5b62340ab19d7f5",
"detected_licenses": [
"MIT"
],
"directory_id": "0007f253931805bfe577ae24424e422f3f96214a",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "smal_malloc.h"
#include "smal_u8queue.h"
/*!
* @brief 配列要素位置が待ち行列範囲であるか確認する
* @param[in] q キュー管理
* @param[in] id 配列の要素位置
*/
static int
is_use_range(const smal_u8queue_t *const q, unsigned int id)
{
if((id < q->tail) && (id >= q->head)) {
return 1;
}
if((id > q->tai... | 3.09375 | 3 |
2024-11-18T22:50:00.088628+00:00 | 2023-08-28T20:54:09 | ec0e0dc7df603dc4a97907e42e9ee9c148645203 | {
"blob_id": "ec0e0dc7df603dc4a97907e42e9ee9c148645203",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T20:54:09",
"content_id": "c0c6343937b73e273e60db0aa7634cd56a86dab0",
"detected_licenses": [
"MIT"
],
"directory_id": "d51e54dccbb594a056005cb50a9dbad472ddb034",
"extension": "c"... | stackv2 | /*
* aadraw.c
*
* The code that actually draws the lines.
*
* The jaggy lines are not bug free. They hit a few stray
* pixels. Sorry.
*/
#include <math.h>
#include "aaline.h"
/* Tables that need to be initialized */
long int slope_corr_table[SC_TABLE_SIZE];
long int filter_table[F_TABLE_SIZE];
long int sqr... | 2.6875 | 3 |
2024-11-18T22:50:00.151291+00:00 | 2022-01-08T17:01:14 | ee225125300b6a5939458e8d031434940e4ca8b1 | {
"blob_id": "ee225125300b6a5939458e8d031434940e4ca8b1",
"branch_name": "refs/heads/main",
"committer_date": "2022-12-08T01:29:53",
"content_id": "c1e2697d3755b38c3ac65fd8d458978690266cfe",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "2b1b459706bbac83dad951426927b5798e1786fc",
"extensio... | stackv2 | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
//
//
#include "spinel/ext/geometry/arc.h"
#include <math.h>
#include "spinel/spinel_assert.h"
//
//
//
#ifndef M_PI
#define M_PI 3.141592653589793... | 2.3125 | 2 |
2024-11-18T22:50:00.252537+00:00 | 2019-03-31T15:11:02 | d46b9ac96dd9ad9b63a921f482be1825021c3108 | {
"blob_id": "d46b9ac96dd9ad9b63a921f482be1825021c3108",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-31T15:11:02",
"content_id": "bbda26a7761dee293f2cfadec8a730b5869d9a67",
"detected_licenses": [
"MIT"
],
"directory_id": "6f1a07e955aad8dfe00863df822c64b9e0389348",
"extension": "c"... | stackv2 | #include "systick.h"
void delay(u32 i)
{
while(i--); //6000000大概一秒
}
void delay_us(u32 i) //最大延时为1864135us
{
u32 temp;
SysTick->LOAD = 9*i; //设置重装数值,72MHz下使用
SysTick->CTRL = 0X01; //使能systick,减到零不触发中断,采用外部时钟,
SysTick->VAL = 0; //清零计数器
do
{
temp = SysTick->CTRL; //读取当前倒计数值
}
while((... | 2.4375 | 2 |
2024-11-18T22:50:01.674896+00:00 | 2019-01-10T13:15:09 | 2be8ea3f6d3429b76b8f4d8b9ed6032d246cc5a6 | {
"blob_id": "2be8ea3f6d3429b76b8f4d8b9ed6032d246cc5a6",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-10T13:15:09",
"content_id": "2faf3850b7659fdddcd7143e62c57dc4603e3387",
"detected_licenses": [
"MIT"
],
"directory_id": "3be53bd7d4838a87c7e652a838037960401345e0",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "NameCard.h"
NameCard * MakeNameCard(char * dummy, char * name, char * phone) {
NameCard * newCard = (NameCard *)malloc(sizeof(NameCard));
strcpy_s(newCard->dummy, strlen(dummy)+1, dummy);
strcpy_s(newCard->name, strlen(name)+1, name);
strcpy_s(n... | 2.765625 | 3 |
2024-11-18T22:50:01.733317+00:00 | 2023-08-30T23:07:48 | a9b7a199fcc51454bc40bae15d137d88f52d84e8 | {
"blob_id": "a9b7a199fcc51454bc40bae15d137d88f52d84e8",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T23:07:48",
"content_id": "e7d00e5ce12f9751c33caf37bb4db8f59a216f31",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "8a51a96f61699f0318315ccc89cef39f6866f2b5",
"extensio... | stackv2 | /*-------------------------------------------------------------------------
*
* proclist.h
* operations on doubly-linked lists of pgprocnos
*
* The interface is similar to dlist from ilist.h, but uses pgprocno instead
* of pointers. This allows proclist_head to be mapped at different addresses
* in different b... | 2.734375 | 3 |
2024-11-18T22:50:01.823075+00:00 | 2022-03-25T06:54:15 | 1010369162184de89c6a5fa010d3a2bc5edfd78e | {
"blob_id": "1010369162184de89c6a5fa010d3a2bc5edfd78e",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-25T06:54:15",
"content_id": "9db7b20a95f23c54d7520fd7d7d07fc8c1385141",
"detected_licenses": [
"MIT"
],
"directory_id": "056b7d69eb9a2517eb574c93decc3bf5a4d6ac73",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
#include <math.h>
#include "pngle.h"
uint8_t *img;
uint8_t *counts; // draw counter on (x, y)
int width, height;
double scale_factor = 1.0;
#define UNUSED(x) (void)(x)
void put_... | 2.671875 | 3 |
2024-11-18T22:50:01.992554+00:00 | 2023-06-12T22:35:24 | 19e4723ab8f0b3bb2583b7c72159d9bd42968f08 | {
"blob_id": "19e4723ab8f0b3bb2583b7c72159d9bd42968f08",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-13T11:24:05",
"content_id": "1302f72289dba8e0399223524529dcdfaadb74fc",
"detected_licenses": [
"MIT"
],
"directory_id": "0b02e10c88d4b403209fc484eead289ec07a1c56",
"extension": "c"... | stackv2 | // SPDX-License-Identifier: MIT
/* Kill the most memory-hungy process */
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h> /* Definition of SYS_* constants */
#include <time.h>
#include ... | 2.390625 | 2 |
2024-11-18T22:50:05.881053+00:00 | 2019-04-25T09:16:27 | 4fe80030fd96e5c51f71b3c140f67c289944179d | {
"blob_id": "4fe80030fd96e5c51f71b3c140f67c289944179d",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-25T09:16:27",
"content_id": "197253f1e696928e166cb0c2abf02620fbcd6da2",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "12b0ebcf42ddd72e96fd101998b2ca2e6983393d",
"extens... | stackv2 | /*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Author: Francesc Alted <francesc@blosc.org>
Creation date: 2018-07-04
See LICENSE.txt for details about copyright and rights to use.
********************************************************... | 2.078125 | 2 |
2024-11-18T22:50:06.069847+00:00 | 2020-10-04T06:30:14 | 7b14ef9bcfc1d9b97bc4e5a64619f70d3c99c5e7 | {
"blob_id": "7b14ef9bcfc1d9b97bc4e5a64619f70d3c99c5e7",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-04T06:30:14",
"content_id": "5bb89281d13a0f9eb0e4beb85a1136ef23d95ab5",
"detected_licenses": [
"MIT"
],
"directory_id": "c1819f4e99f9a36bb79e21f2761cc09f9e9795aa",
"extension": "c"... | stackv2 | /* An array is a collection of items stored at contiguous memory locations and elements can be accessed randomly using indices of an array.
They are used to store similar type of elements as in the data type must be the same for all elements. */
#include<stdio.h>
void main()
{
int array[5]; /* Declaring an arr... | 4.09375 | 4 |
2024-11-18T22:50:06.379093+00:00 | 2019-02-10T15:15:23 | 9934e3b72b9f43b1c5ce006832bb1352e4cb92d0 | {
"blob_id": "9934e3b72b9f43b1c5ce006832bb1352e4cb92d0",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-10T15:15:23",
"content_id": "0fe594625d303fa0811b58d0a56affc9dc402c7b",
"detected_licenses": [
"MIT"
],
"directory_id": "97591de53777cdda355365f41ca2bdc8e429d780",
"extension": "c"... | stackv2 | #include "line-arg.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
// Text copied from GNU ls help message
lnA_Parser* par = NULL;
bool fAll = false;
bool fAlmostAll = false;
bool fEscape = false;
bool fLine = false;
int iWidth = 0;
char* sFile = NULL;
... | 2.546875 | 3 |
2024-11-18T22:50:07.141982+00:00 | 2021-05-27T11:44:09 | 02cb204c74a4ba057700f7f23b546d000d21bbdb | {
"blob_id": "02cb204c74a4ba057700f7f23b546d000d21bbdb",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-27T11:44:09",
"content_id": "30efe0d116b4f15442e5a8474efb73b1d702e4e7",
"detected_licenses": [
"MIT"
],
"directory_id": "8eafa7cee6a646f387d4bae89ec794837cb35bdc",
"extension": "h"... | stackv2 | #include <TM1637Display.h>
TM1637Display display(segCLK, segDIO);
void showNumber(int number){
if(dots){
display.showNumberDecEx(number, (0x80 >> 1), true);
// liczba, przesuniecie bitowe(kropki na srodku, czy pokazywac zera jesli liczba nie jest 4 cyfrowa)
}else{
display.showNumberDecEx(number, (0x80... | 2.453125 | 2 |
2024-11-18T22:50:07.210369+00:00 | 2019-12-01T10:48:39 | 7cb1a6cdaafd344362165b210c1e7e7765e6f16f | {
"blob_id": "7cb1a6cdaafd344362165b210c1e7e7765e6f16f",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-01T10:48:39",
"content_id": "aab24f4d1d49c90bb68e15018de0c09c20e9f8cf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f4de39842f2b9890ff5e90e3989367ae4693f2dc",
"extensio... | stackv2 | #include <sys/stat.h>
#include <sys/types.h>
#include <sys/mount.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <ctype.h>
#include <sys/param.h>
#include <sys/socket.h>
#include "uapi/libct.h"
#include "xmalloc.h"
#include "util.h"
#inc... | 2.546875 | 3 |
2024-11-18T22:50:07.302394+00:00 | 2023-08-30T19:33:44 | 10d80bb0644df36d0551eb18e1c10fa2d66bb5d9 | {
"blob_id": "10d80bb0644df36d0551eb18e1c10fa2d66bb5d9",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-30T19:33:44",
"content_id": "a04553d433007a95d0e0f3a62a03be9a1812a74f",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "e65a4dbfbfb0e54e59787ba7741efee12f7687f3",
"extensio... | stackv2 | --- src/check.c.orig 2017-08-26 19:37:29 UTC
+++ src/check.c
@@ -36,7 +36,7 @@ int check(btree_t *torrentbtree)
btfile_t *btfile;
void *piecebuffer, *piecedigest;
size_t size, length;
- int ret, pieceindex, failure;
+ int ret, pieceindex, failure, numpieces;
torrentinfo = search_dict_value(torrentbtree, Tor... | 2.015625 | 2 |
2024-11-18T22:50:07.483887+00:00 | 2022-01-12T20:57:21 | 56e07b3559e479ebf078c5b8ad4c4f35d181d4e2 | {
"blob_id": "56e07b3559e479ebf078c5b8ad4c4f35d181d4e2",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-12T20:57:21",
"content_id": "de5bfe7e0b3c30792354ca630c053ca9744ac24f",
"detected_licenses": [
"MIT"
],
"directory_id": "8a779bea3a89795496c01c8767e687782522b25b",
"extension": "c"... | stackv2 | /** serial_i2c app:
This app turns a Wixel into a serial-to-I2C bridge, acting as a master
controller on a single-master I2C bus. To perform I2C operations, another
device can issue serial ASCII commands to the Wixel on its radio, UART, or USB
interface.
For complete documentation and a precompiled version of this ap... | 2.515625 | 3 |
2024-11-18T22:50:07.751342+00:00 | 2023-06-24T15:20:29 | e100f4f985265d4a6b2ca86f57b3ebeaf99db4e4 | {
"blob_id": "e100f4f985265d4a6b2ca86f57b3ebeaf99db4e4",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-24T15:20:29",
"content_id": "e4d613163548099b829adff3d8289195a953f650",
"detected_licenses": [
"MIT"
],
"directory_id": "fc88739d37b84554258de6d8057bed3c3b037103",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "fun.h"
int main() {
int x;
int r = fun("hello");
printf("fun returns %d\n", r);
return 0;
}
| 2.21875 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.