added
stringdate
2024-11-18 17:54:19
2024-11-19 03:39:31
created
timestamp[s]date
1970-01-01 00:04:39
2023-09-06 04:41:57
id
stringlengths
40
40
metadata
dict
source
stringclasses
1 value
text
stringlengths
13
8.04M
score
float64
2
4.78
int_score
int64
2
5
2024-11-18T22:28:54.487845+00:00
2021-01-25T13:19:28
549254795eb9452373c1ce6a2e778421fe6e700a
{ "blob_id": "549254795eb9452373c1ce6a2e778421fe6e700a", "branch_name": "refs/heads/master", "committer_date": "2021-01-25T13:19:28", "content_id": "5982354170d36ab95d8bb345fb4b27eec1d693b2", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0f64e993d8619ea9c9aa1cc706aea5d43b7b062c", "extensio...
stackv2
/* ** EPITECH PROJECT, 2017 ** my_str_isprintable ** File description: ** 1 only printable & 0 other */ #include "my.h" int my_str_isprintable(char const *str) { int i = 0; while (str[i] != '\0') { if ((' ' > str[i]) || (str[i] > '~')) return (0); i++; } return (1); }
2.84375
3
2024-11-18T22:28:54.855271+00:00
2016-03-15T07:16:04
246ef1350b14134ff9ca1316a47ab22ae16161fd
{ "blob_id": "246ef1350b14134ff9ca1316a47ab22ae16161fd", "branch_name": "refs/heads/master", "committer_date": "2016-03-15T07:16:04", "content_id": "1c9c9678f892ec44c19b77af59414e4fb849a3f5", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c56025bec94dd713a4995deca13ace7bac63b004", "extens...
stackv2
#pragma once #include "error.h" #include <sys/socket.h> #include <unistd.h> #include <stdbool.h> // simplifies calls to bind(), connect(), and accept() typedef struct sockaddr SA; #define MAXLINE 8192 static const int LISTENQ = 1024; /** * @brief Create a tcp socket for listening * * @param host The server hos...
2.203125
2
2024-11-18T22:28:57.897652+00:00
2019-01-03T00:59:19
b45317709a546b99037532361b990d3ffc2a5efc
{ "blob_id": "b45317709a546b99037532361b990d3ffc2a5efc", "branch_name": "refs/heads/master", "committer_date": "2019-01-03T00:59:19", "content_id": "2c41b9967e3de2fd4cd3a9262727135615b33fe3", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c3bcd169a63b17cf1e012673a64a4a4103ab04b8", "extens...
stackv2
/* * File: string.c * * Descrição: * Operações com strings. * Parte da biblioteca da linguagem C. * * Ambiente: * User mode. * * Versão: 1.0, 2016 - Created. */ #include <stddef.h> #include <string.h> /* * strcmp: * Compara duas strings. */ int strcmp (char * s1, char * s2){ int i;...
3.125
3
2024-11-18T22:29:00.468508+00:00
2015-04-17T17:56:20
12ae7065d240101026d783f31daf864ee5fccf2c
{ "blob_id": "12ae7065d240101026d783f31daf864ee5fccf2c", "branch_name": "refs/heads/master", "committer_date": "2015-04-17T17:56:20", "content_id": "0d931fd49a173dd9b99b37772d666adf8467b965", "detected_licenses": [ "ISC" ], "directory_id": "66bdc05e3e7e0a2069cbf59a8dad1fdf7a52caef", "extension": "c"...
stackv2
/*====================================================================* * * void regexhelp(void); * *. Motley Tools by Charles Maier *: Published 1982-2005 by Charles Maier for personal use *; Licensed under the Internet Software Consortium License * *-------------------------------------------------------...
2.25
2
2024-11-18T22:29:00.557536+00:00
2020-07-23T10:24:43
9e625707f2a44e7a1828029afa8dd448fb7d1d46
{ "blob_id": "9e625707f2a44e7a1828029afa8dd448fb7d1d46", "branch_name": "refs/heads/master", "committer_date": "2020-07-23T10:24:43", "content_id": "2d99048c3681b8c74de1e7039f7f7ac5b8d4f661", "detected_licenses": [ "Unlicense" ], "directory_id": "1a4a861a0b8bb73918366e8bd790ec1d8b1a29e8", "extension...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* map_functions.c :+: :+: :+: ...
2.734375
3
2024-11-18T22:29:00.872034+00:00
2022-11-22T01:50:54
2f9b7c4898f1c9324a463e0dd529f3b72817f285
{ "blob_id": "2f9b7c4898f1c9324a463e0dd529f3b72817f285", "branch_name": "refs/heads/master", "committer_date": "2022-11-22T01:50:54", "content_id": "75fed108cc6ea3882102f3a2c9a6def20734f8ba", "detected_licenses": [ "MIT" ], "directory_id": "6f5a56968962c1d60e105ee947b92a6043b058bc", "extension": "c"...
stackv2
#ifdef HAVE_GETRANDOM #include <sys/random.h> #else #include <syscall.h> #include <linux/random.h> #endif #include <stdio.h> int main(){ int buf; #ifdef HAVE_GETRANDOM getrandom((void *)&buf,sizeof(buf),GRND_RANDOM); #else syscall(SYS_getrandom, (void *)&buf, sizeof(buf), GRND_RANDOM); #endif prin...
2.484375
2
2024-11-18T22:29:01.383826+00:00
2020-01-15T00:27:08
e934e9cfac382490607a1fcaea2d650a1942ad39
{ "blob_id": "e934e9cfac382490607a1fcaea2d650a1942ad39", "branch_name": "refs/heads/master", "committer_date": "2020-01-15T00:27:08", "content_id": "8aa6a90f5cbfcf102f2ee27cfd60917320883f9d", "detected_licenses": [ "MIT" ], "directory_id": "ffe01a6159c235acfa2159688cf7cef6d0b66d5b", "extension": "c"...
stackv2
/** * FILE: ADC.c * DESCRIPTION: ADC interface for DSP * AUTHOR: Sharan ***REMOVED*** * COPYRIGHT: Copyright (c) 2014 Sharan ***REMOVED*** * LICENSE: MIT License */ #include "adc.h" void GPIO_Configuration(void) { GPIO_InitTypeDef GPIO_InitStructure; // init struct RCC_AHB1PeriphClockCmd(RCC_AHB1Periph...
2.625
3
2024-11-18T22:29:01.589439+00:00
2021-04-18T08:19:59
ef0ad1a43ffe471817f1502edac5e2b73e927ddf
{ "blob_id": "ef0ad1a43ffe471817f1502edac5e2b73e927ddf", "branch_name": "refs/heads/master", "committer_date": "2021-04-18T08:19:59", "content_id": "4f698bfe747a081de8e6bd947ff8c9a9939614b0", "detected_licenses": [ "MIT" ], "directory_id": "c7481b01ebc40a811ff18d3018f441d4933e59e9", "extension": "c"...
stackv2
/* * * @author : Nikolas Karakotas * @date : 08/01/2021 * */ #include "fin_internal.h" struct adc_map { fin_adc_channel_t adc_num; qapi_ADC_Handle_t handle; qapi_Adc_Input_Properties_Type_t properties; const char *channel_name; }; struct adc_map adc[ADC_MAX_NO] = { {ADC0, NULL, {0,0}, ADC_INPUT_ADC0}, {ADC1...
2.09375
2
2024-11-18T22:29:02.320302+00:00
2023-07-18T00:37:10
484f05cacb6db0773fc41697e00d28d7e616e9e1
{ "blob_id": "484f05cacb6db0773fc41697e00d28d7e616e9e1", "branch_name": "refs/heads/master", "committer_date": "2023-07-18T00:37:10", "content_id": "cf75c41236d1360fc10e97f33108f948d58ba454", "detected_licenses": [], "directory_id": "57ae8ea5d7b9bd3b1fac80997d037d29bfe012cf", "extension": "c", "filename...
stackv2
/* Sigh. According to the docs for <arpa/inet.h>, htonl() and friends may be implemented as macros only, so I have to re-export functions here to do the conversions. */ #if defined(WINDOWS) # include <winsock2.h> # include <inttypes.h> #else # include <arpa/inet.h> #endif uint32_t iostreams_htonl(uint32_t ho...
2.359375
2
2024-11-18T22:29:02.712355+00:00
2021-03-26T15:59:16
5d04bbe283b459a0a69fce4cd5cb650097e67c18
{ "blob_id": "5d04bbe283b459a0a69fce4cd5cb650097e67c18", "branch_name": "refs/heads/master", "committer_date": "2021-03-26T15:59:16", "content_id": "80d863ed9b91012a4713e4147d1e22e345745a02", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "4c59f4da523df5b09b8bcd1a4b390c093a26b9b0", "extens...
stackv2
#include "iterateur.h" #include <stdlib.h> struct iterateur { void *conteneur; void (*suivant)(void *); void (*precedent)(void *); S (*valeur)(const void *); bool (*egal)(const void *, const void *); }; iterateur* iterateur_nouveau(void* conteneur, void (*suivant)(void*), void (*precedent)(void*),S (*valeu...
2.84375
3
2024-11-18T22:29:03.824408+00:00
2019-10-16T09:34:49
2c0e6ecf779f0abcda2ea126943e3ea46baebcb7
{ "blob_id": "2c0e6ecf779f0abcda2ea126943e3ea46baebcb7", "branch_name": "refs/heads/master", "committer_date": "2019-10-16T09:34:49", "content_id": "6ba3ff7e5bea546de1a9ab8f43ef4ff12526778c", "detected_licenses": [ "MIT-Modern-Variant", "ISC" ], "directory_id": "8eeb4dc93d55619b20eba6b4fede0729424...
stackv2
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1987 Kanwar Jit Singh **********/ #include "spice.h" #include <stdio.h> #include "cktdefs.h" #include "asrcdefs.h" #include "util.h" #include "sperror.h" /* load the voltage source structure with those * pointers needed ...
2.25
2
2024-11-18T22:29:04.125388+00:00
2021-06-04T04:44:09
755e5bd6aad1754904146de6dcb6ec927a15d0d9
{ "blob_id": "755e5bd6aad1754904146de6dcb6ec927a15d0d9", "branch_name": "refs/heads/main", "committer_date": "2021-06-04T04:44:09", "content_id": "0f61cb03a70cfdde1c6bb54b71e176a5eedc55e3", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "43643c148317c5b5acf340136acc2ade79aa6d61", "extensio...
stackv2
#include "timer.h" #include "human.h" // 定义全局变量 u8 timer2_flag = 0; /* * 作用:定时器2初始化函数 * 参数:arr:计数值,psc:定时器2分频因子 * 返回值:无 */ void timer2_init(u16 arr, u16 psc) { RCC->APB1ENR |= 0x01; TIM2->CR1 &= 0; TIM2->CR1 |= 0x01<<2; TIM2->CR1 |= 0x01<<7; TIM2->DIER |= 0x01; TIM2->ARR = arr; TIM2->PSC = psc; NVIC_EnableIRQ...
2.28125
2
2024-11-18T22:29:04.291527+00:00
2016-06-26T20:52:03
69a7173899f075e386bafb4aa37fbbd49cd2d87a
{ "blob_id": "69a7173899f075e386bafb4aa37fbbd49cd2d87a", "branch_name": "refs/heads/master", "committer_date": "2016-06-26T20:52:03", "content_id": "ccf573161d6ffd0c7f10be00a1663aff468da522", "detected_licenses": [ "MIT" ], "directory_id": "fec9b22b72dd8bbc13df5e0026c87e66044643ec", "extension": "c"...
stackv2
// systems/events/eventmgmt.c - implementation of event management functions #include <mge.h> void MGE_addCallback(MGE_Event* event, void (*callback)(void*)) { MGEI_EventCallback* newCallback = malloc(sizeof(MGEI_EventCallback)); newCallback->callback = callback; newCallback->nextCallback = (struct MGEI_EventCa...
2.296875
2
2024-11-18T22:29:04.551997+00:00
2021-01-11T17:17:54
13240f758d8720df9f7efd5e4649ea35350ff4ce
{ "blob_id": "13240f758d8720df9f7efd5e4649ea35350ff4ce", "branch_name": "refs/heads/master", "committer_date": "2021-01-11T17:17:54", "content_id": "ef6b490245383490afdd2fabfd761a33838f32ba", "detected_licenses": [ "MIT" ], "directory_id": "304dbc081ff233f58e70911b848c2cb209180739", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <uchar.h> #define sucesso 1 #define falha 0 typedef struct lista{ char curva[10]; char rua[10]; struct lista * prox; struct lista * ant; }elemento; typedef struct desc{ elemento * prim; elemento * ult; int quant; }lista; int criaLista(list...
2.96875
3
2024-11-18T22:29:04.952870+00:00
2020-07-02T21:21:11
26c3c04a93482edb726536538f034c08cd1aa05e
{ "blob_id": "26c3c04a93482edb726536538f034c08cd1aa05e", "branch_name": "refs/heads/master", "committer_date": "2020-07-02T21:21:11", "content_id": "65b71d75c75a67e19aec991732e73a3f2a834b72", "detected_licenses": [ "MIT" ], "directory_id": "4d7f20f7bb41a64f854a20d78211821783e03b63", "extension": "c"...
stackv2
/* * MIT License * * Copyright (c) 2020 Tiago Vasconcelos * * 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...
2.078125
2
2024-11-18T22:29:06.110078+00:00
2016-09-05T07:15:40
7a8df0a0ec5f480af23315c5257830c837fb15f6
{ "blob_id": "7a8df0a0ec5f480af23315c5257830c837fb15f6", "branch_name": "refs/heads/master", "committer_date": "2016-09-05T07:15:40", "content_id": "5e50dd602f68f2fd0063688263839af280d9fddf", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "3395d74d96bcde9c54e724f4d17576c73107de50"...
stackv2
/** * A quick implementation of cat. No flags. * * Copyright (c) 2014, Stephen A. Balaban, Lambda Labs, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of sour...
2.390625
2
2024-11-18T22:29:06.200654+00:00
2013-01-12T16:51:42
2f3778f311ce931eadcaaa9dd8cbb8eeb41a4127
{ "blob_id": "2f3778f311ce931eadcaaa9dd8cbb8eeb41a4127", "branch_name": "refs/heads/master", "committer_date": "2013-01-12T16:51:42", "content_id": "4ae672aa5c99494490ee37a774e0ff33d83414f2", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "f86c6a8dead7546944dde1861550e1ea4d358fde", "extens...
stackv2
/* * * Copyright (C) 2002, 2003, 2004, 2005 * * Santiago Bazerque sbazerque@gmail.com * Nicolas de Galarreta nicodega@gmail.com * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that conditions specified on * the License file, located at the r...
2.109375
2
2024-11-18T22:29:06.616490+00:00
2016-03-26T11:59:30
79140fd73c7ab0a4869a2950413cf428bb957682
{ "blob_id": "79140fd73c7ab0a4869a2950413cf428bb957682", "branch_name": "refs/heads/master", "committer_date": "2016-03-26T11:59:30", "content_id": "6380edaab8e55175e7e9bc699ae9180b7dc87293", "detected_licenses": [ "Zlib" ], "directory_id": "b1f43eb8be0dbde380627e9a97126059ae991532", "extension": "c...
stackv2
//------------------------------------------------------------------------------ // File: JILAllocators.c (c) 2003 jewe.org //------------------------------------------------------------------------------ // // DISCLAIMER: // ----------- // THIS SOFTWARE IS SUBJECT TO THE LICENSE AGRE...
2.125
2
2024-11-18T22:29:06.858998+00:00
2021-05-18T09:09:11
04b4222de387048a83dd7280553c3ca67f8ace80
{ "blob_id": "04b4222de387048a83dd7280553c3ca67f8ace80", "branch_name": "refs/heads/main", "committer_date": "2021-05-18T09:09:11", "content_id": "f1c479f4e3a37edfb0dd401d5ace28783a2d9d52", "detected_licenses": [ "Apache-2.0" ], "directory_id": "2878bf5596fbeb8c2fe8c1e17033f5626fd775be", "extension"...
stackv2
/** Copyright 2017, 2021 Anton "Vuvk" Shcherbatykh (vuvk69@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://www.apache.org/licenses/LICENSE-2.0 Unless requi...
2.296875
2
2024-11-18T22:29:07.738029+00:00
2017-05-05T08:52:03
755ae69453ad01de8455748a66ffda2eb2f5056b
{ "blob_id": "755ae69453ad01de8455748a66ffda2eb2f5056b", "branch_name": "refs/heads/master", "committer_date": "2017-05-05T08:52:03", "content_id": "fdf27d86472ebcef94c12c61a4bcaf2e95270a51", "detected_licenses": [ "MIT" ], "directory_id": "7af747eb032a229d8a90e2bfed29786f12b4ebca", "extension": "c"...
stackv2
#include <stdio.h> typedef enum { COUNT, POUNDS, PINTS } unit_of_measure; typedef union { short count; float weight; float volume; } quantity; typedef struct { const char* name; const char* country; quantity amount; unit_of_measure units; } fruit_order; void display(fruit_order order) { printf("Th...
3.015625
3
2024-11-18T22:29:07.851861+00:00
2021-10-25T14:18:46
6e15d28561ea40078f2d05dc45da4ababb5d5f87
{ "blob_id": "6e15d28561ea40078f2d05dc45da4ababb5d5f87", "branch_name": "refs/heads/master", "committer_date": "2021-10-25T14:18:46", "content_id": "d4fc70e9be042512ec13de45db1e1bbd283001a4", "detected_licenses": [ "MIT" ], "directory_id": "8d499ee299c55674a97a94f607eabd481941c908", "extension": "c"...
stackv2
#include"dsp.h" void dsp_open() { dsp_data_t * dsp_data=(dsp_data_t *) mem_alloc(sizeof(dsp_data_t)); snd_device_t * snd_dsp=(snd_device_t *)mem_alloc(sizeof(snd_device_t)); dsp_data->rb = snd_buffer_create(SND_BUF_SIZE); dsp_data->samples = 0; dsp_data->written = 0; dsp_data->realtime = 0; snd_dsp...
2.1875
2
2024-11-18T22:29:08.565871+00:00
2019-04-30T20:53:27
542a40268e4f7f0d7533b02ef8cdde25fa38ad72
{ "blob_id": "542a40268e4f7f0d7533b02ef8cdde25fa38ad72", "branch_name": "refs/heads/master", "committer_date": "2019-04-30T20:53:27", "content_id": "6de60b80c2daecf8efce4db0e341773f9a77045d", "detected_licenses": [ "Xnet", "BSD-3-Clause" ], "directory_id": "1da2cbebd2d9c2cb4fbc570703e77d50daca033d...
stackv2
#include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #endif #include "sgtype.h" #include "sgbuf.h" #include "mt64.h" #include "vrand.h" void random_data(sgData_t *buf, size_t len){ #ifdef _OPENMP int nt = omp_get_max_threads(); #else int nt = 1; #endif #pragma omp parallel for num_threads(nt)...
2.375
2
2024-11-18T22:29:09.647858+00:00
2018-04-11T04:57:45
e9b4c6e6a299b5946c04a59fb47757b25f401308
{ "blob_id": "e9b4c6e6a299b5946c04a59fb47757b25f401308", "branch_name": "refs/heads/master", "committer_date": "2018-04-11T04:57:45", "content_id": "128d14dd0efcc120637f0575c8db8732838a74ee", "detected_licenses": [ "MIT" ], "directory_id": "a036790fd0265c34f2b9377fa94588d787f6ed8c", "extension": "c"...
stackv2
#include <stm32f7xx_hal.h> #include <lwip/api.h> #include <../CMSIS_RTOS/cmsis_os.h> #include <assert.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <queue.h> #include <stdarg.h> #include "tcpshell.h" static int ExitAppRun(pconsole, int, char**); const app exit_app = { "ex...
2
2
2024-11-18T22:29:10.319562+00:00
2017-05-08T15:19:17
b67f948de88f2d6292c38fc9836a3ac5a3e00a92
{ "blob_id": "b67f948de88f2d6292c38fc9836a3ac5a3e00a92", "branch_name": "refs/heads/master", "committer_date": "2017-05-08T15:19:17", "content_id": "c10d0711ec95da43b167fae8ed1eeac5e6266c3d", "detected_licenses": [ "ISC" ], "directory_id": "ad5fd7bb38a230bc98f76eefb065c66877a33d5c", "extension": "c"...
stackv2
#include <time.h> time_t time(time_t* t) { // TODO return 0; } double difftime(time_t time1, time_t time0) { // TODO return 0; } char *asctime(const struct tm *tm) { // TODO -- return 0; } char *ctime(const time_t *timep) { // TODO -- return 0; } struct tm *gmtime(const time_t *timep) { // TODO return 0; ...
2.03125
2
2024-11-18T22:29:10.543375+00:00
2018-08-20T08:19:24
aa124cc8dffb62a75511752cc469bcd5c7827b13
{ "blob_id": "aa124cc8dffb62a75511752cc469bcd5c7827b13", "branch_name": "refs/heads/master", "committer_date": "2018-08-20T08:32:32", "content_id": "585822f248435ab8bcd4880352ed0037d8253f78", "detected_licenses": [ "MIT" ], "directory_id": "4f7722c160bb09dd4433f185fcea0d925033a558", "extension": "c"...
stackv2
#include "cc.h" int main(int argc, char **argv) { if (argc != 2) { printf("[usage] ./cc filename\n"); return 0; } char *file = argv[1]; char *src = read_source(file); Vector *tokens = lexical_analyze(src); Vector *process_tokens = preprocess(tokens); Node *node = parse(process_tokens); analyze...
2.0625
2
2024-11-18T22:29:11.690879+00:00
2015-09-01T05:52:12
d2d99af016ecd62ea478d0316c47f47fb8401738
{ "blob_id": "d2d99af016ecd62ea478d0316c47f47fb8401738", "branch_name": "refs/heads/master", "committer_date": "2015-09-01T05:52:12", "content_id": "c8c0fc35bf6bb373c0c21aa1c72e68255a5dea60", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "bca6aa3f80d85a65be8925fb8d9fee31ac06b206", "extens...
stackv2
#include <curses.h> #include <string.h> #include "score.h" #include "yahtzee.h" static int top, bottom, total, bonus, vols, x; /* print helpers */ void printInt(int y, int x, int num, int bonus); void printHelp(int top); int printBonus(Player *p); /* for scores */ int printOne(Dice **dice); int printTwo(Dice **dice)...
2.40625
2
2024-11-18T22:29:11.773760+00:00
2018-02-24T09:17:10
64e274e3fcc60964b27be580c507fe9b05374e2a
{ "blob_id": "64e274e3fcc60964b27be580c507fe9b05374e2a", "branch_name": "refs/heads/master", "committer_date": "2018-02-24T09:17:10", "content_id": "c55e8ad58121605fece12a604e3e745c1b4d09c2", "detected_licenses": [ "MIT" ], "directory_id": "a9dfa872766fc214de804e5ee33ca580c5ead456", "extension": "c"...
stackv2
#include "stdio.h" #include "conio.h" #include "string.h" #include "stdlib.h" #define DATA_FILE "data.dat" #define MAX_COST 9999 //最大路径费用值 enum Boolean {false, true}; typedef struct road //为了文件存取而定义 { char source[10]; char destination[10]; int cost; }Road; typedef struct linkage //连线 { int id; int cost; struc...
3.15625
3
2024-11-18T22:29:11.840114+00:00
2021-12-03T07:02:29
734d54c720aca7eda15ce7291f69814c0c7bc49a
{ "blob_id": "734d54c720aca7eda15ce7291f69814c0c7bc49a", "branch_name": "refs/heads/master", "committer_date": "2021-12-03T07:02:29", "content_id": "8bf514a581b0d6bb29a08ef257278d56ed0b2986", "detected_licenses": [ "ISC" ], "directory_id": "35916bf2a7418b31886e2af1f381ad3dac9ad0b6", "extension": "h"...
stackv2
//\IgnoreLatex{ #ifndef COMPL_H #define COMPL_H #include <stdio.h> #include <stdlib.h> //} /* The following macro defines a switch statement assigning to the variable \texttt{VL} the complement of \texttt{VR}. */ #define ASSIGNCOMPLEMENT(VL,VR)\ switch(VR)\ {\ case 'A' : VL = (Uchar)...
2.328125
2
2024-11-18T22:29:13.255939+00:00
2023-03-31T03:17:22
873624cdd5546b21003e1802ab9960148ff8aba9
{ "blob_id": "873624cdd5546b21003e1802ab9960148ff8aba9", "branch_name": "refs/heads/master", "committer_date": "2023-03-31T03:17:22", "content_id": "cc4276e6278844d06d81f60cdbc490909fe6ef95", "detected_licenses": [ "Apache-2.0" ], "directory_id": "98dc5072330d818d162cab38365f034de19d0691", "extensio...
stackv2
#ifndef ACL_ALLOCATOR_INCLUDE_H #define ACL_ALLOCATOR_INCLUDE_H #ifdef __cplusplus extern "C" { #endif #ifndef ACL_PREPARE_COMPILE #include "acl_define.h" #include <stdlib.h> #endif typedef enum { ACL_MEM_TYPE_NONE, ACL_MEM_TYPE_8_BUF, ACL_MEM_TYPE_16_BUF, ACL_MEM_TYPE_32_BUF, ACL_MEM_TYPE_64_BUF, ACL_MEM_TYPE...
2.28125
2
2024-11-18T22:29:13.352763+00:00
2013-11-22T19:55:06
16440ed016bda94b576ed8f162db9024a17bbd94
{ "blob_id": "16440ed016bda94b576ed8f162db9024a17bbd94", "branch_name": "refs/heads/master", "committer_date": "2013-11-22T19:55:06", "content_id": "42310c7c6a4feff774c5c913943c293a3b92b166", "detected_licenses": [ "MIT" ], "directory_id": "4b93bce07e95eaf539ffacc758bef30207151787", "extension": "c"...
stackv2
/* * The MIT License (MIT) * * Copyright (c) 2013 ljr-ifsp * * 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, cop...
2.46875
2
2024-11-18T22:29:14.448949+00:00
2016-01-10T22:58:42
6c2fd45efe98708fb2451207143cecba4f105b89
{ "blob_id": "6c2fd45efe98708fb2451207143cecba4f105b89", "branch_name": "refs/heads/master", "committer_date": "2016-01-10T22:58:42", "content_id": "e172afcd7c3d2ecdbf828e0cad3736e977f2b189", "detected_licenses": [ "MIT" ], "directory_id": "029fdbd363fea3c58c88d9ffaab4b15e96a50217", "extension": "c"...
stackv2
#include "linear_probing.h" #include <stdlib.h> #include <stdbool.h> #include <stdio.h> typedef struct BucketT { bool empty; int key; void *val; } Bucket; struct Probe_HTableT { unsigned size; Bucket *buckets; hash_fn hash; }; // Creates a HashTable with a given size Probe_HTable *create_p...
3.28125
3
2024-11-18T22:29:14.849708+00:00
2021-04-29T00:47:42
2bfb4b8b162f3709e1cfac4b19f17fd0aa6f7f8c
{ "blob_id": "2bfb4b8b162f3709e1cfac4b19f17fd0aa6f7f8c", "branch_name": "refs/heads/main", "committer_date": "2021-04-29T00:47:42", "content_id": "07afb81c2aa4ea52cdcee9c83dcc1cdae128bb98", "detected_licenses": [ "MIT" ], "directory_id": "b3a2b8a3733996be74b5355df2b43d400238bf0c", "extension": "c", ...
stackv2
#include <stdio.h> #include <sys/mman.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <semaphore.h> #include <sys/stat.h> #include "circular_buffer.h" #include "colorprint.h" int main(int argc, char *argv[]) { int res; int fd; int len; pid_t pid; circular_buffer *addr; // Get argv ...
2.71875
3
2024-11-18T22:29:15.157154+00:00
2014-03-05T23:59:26
eb8c6593a97ae2df7cb7de4a7c017014f778cfc7
{ "blob_id": "eb8c6593a97ae2df7cb7de4a7c017014f778cfc7", "branch_name": "refs/heads/master", "committer_date": "2014-03-07T00:41:38", "content_id": "2dcdfbbf9b5a5d83877df0c17598f7eb0506ea92", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d07abaf4794b1e95a25aae78fe4893af5d38f201", "extens...
stackv2
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <assert.h> #include <stdlib.h> #include <syslog.h> #include "audio_thread.h" #include "cras_config.h" #include "cras_dsp.h" #include ...
2.265625
2
2024-11-18T22:29:15.419610+00:00
2022-07-23T08:54:06
faff618d7d660093f50c56fe2bb032487e843db4
{ "blob_id": "faff618d7d660093f50c56fe2bb032487e843db4", "branch_name": "refs/heads/main", "committer_date": "2022-07-26T17:57:49", "content_id": "d1372e9e5a7e11a81f276ad65d9fdf7c13eeb57e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "48ad898318b3f588726b086b91a4b5f4f5cce2a5", "extension"...
stackv2
/* * Copyright (c) 2021 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/zephyr.h> #include <zephyr/sys/byteorder.h> #include <zephyr/net/buf.h> #include <zephyr/mgmt/mcumgr/buf.h> #include <zephyr/mgmt/mcumgr/smp.h> #include <mgmt/mgmt.h> #include <smp/smp.h> void zephyr_smp_r...
2.515625
3
2024-11-18T22:29:15.654639+00:00
2020-07-01T14:02:01
a6cab89acc93b21eb71bf3a7ce8de3f1530e69a5
{ "blob_id": "a6cab89acc93b21eb71bf3a7ce8de3f1530e69a5", "branch_name": "refs/heads/master", "committer_date": "2020-07-01T14:02:01", "content_id": "762b5a14340811681a1ae48a28c480ac6392f28c", "detected_licenses": [ "MIT" ], "directory_id": "9e38b1cf6e99bb6a2ad337fb2b27a903a10633d5", "extension": "c"...
stackv2
#include "vfs.h" #include "tmpfs.h" // #include "../kernel/uart.h" // #include "../allocator/obj_allocator.h" extern struct mount* rootfs; void setup_vnode(struct vnode** vnode) { struct vnode* ptr = vnode; printf("%x\n", (*vnode)); *vnode = malloc(sizeof(struct vnode)); printf("%x\n", (*vnode));...
2.75
3
2024-11-18T22:29:15.723059+00:00
2013-02-19T20:53:35
9580ac536b611915c3b71553c92c71e7d7c00417
{ "blob_id": "9580ac536b611915c3b71553c92c71e7d7c00417", "branch_name": "refs/heads/master", "committer_date": "2013-02-19T20:53:35", "content_id": "2ee3245069fe6975af57547c7337a2fb813c5dae", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c5dab6c1cf8b21b456463c8ffe17b4e4898eddc5", "extens...
stackv2
/* * Lthread * Copyright (C) 2012, Hasan Alayli <halayli@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of...
2.171875
2
2024-11-18T22:29:15.825279+00:00
2020-04-29T22:58:50
b9c73952a3490c9c2b0f40e4e2eaf4ec970deaf8
{ "blob_id": "b9c73952a3490c9c2b0f40e4e2eaf4ec970deaf8", "branch_name": "refs/heads/master", "committer_date": "2020-04-29T22:58:50", "content_id": "78308c22e176f8ba1c797b3f64f9792079139229", "detected_licenses": [ "MIT" ], "directory_id": "60e7da9ce7e443b7cfbd0477104c10f9a17f9320", "extension": "c"...
stackv2
/* * Copyright (C) Madlambda Authors. */ #include <acorn.h> #include <stdlib.h> #include <string.h> void * copy(void *dst, const void *src, size_t n) { ptr p; p = (ptr) memcpy(dst, src, n); return (void *) (p + n); } void * zmalloc(size_t size) { void *ptr; ptr = malloc(size); if (sl...
2.53125
3
2024-11-18T22:29:16.111877+00:00
2023-03-25T08:13:19
419d3e6d526892b3a11c49d4e0fe18d4ff465d4a
{ "blob_id": "419d3e6d526892b3a11c49d4e0fe18d4ff465d4a", "branch_name": "refs/heads/main", "committer_date": "2023-03-25T08:13:19", "content_id": "f139702ace923d0cf3e44a9670a4f6aff30b97f8", "detected_licenses": [ "BSD-3-Clause", "MIT", "ISC" ], "directory_id": "1cc5d45273d008e97497dad9ec004505...
stackv2
#include <stdio.h> #include "queue.h" struct Data { SIMPLEQ_ENTRY(Data) next; int m_iValue; }; int main(void) { struct Data *pIndex = NULL; struct Data tData1 = { NULL, 1 }; struct Data tData2 = { NULL, 2 }; struct Data tData3 = { NULL, 3 }; struct Data tData4 = { NULL, 4 }; st...
3.28125
3
2024-11-18T22:29:16.175569+00:00
2022-10-13T02:28:54
1fcb04fa6a8e809beb1300372d847a085ee13eae
{ "blob_id": "1fcb04fa6a8e809beb1300372d847a085ee13eae", "branch_name": "refs/heads/master", "committer_date": "2022-10-13T02:28:54", "content_id": "5e693735b2da63231f3967a92e803ded492c6938", "detected_licenses": [ "MIT" ], "directory_id": "e30d6af49a2f03aac6585a42a5adf05721033ef0", "extension": "c"...
stackv2
#include <ir/ir.h> #include <target/util.h> size_t BUF_SIZE = 10000; static void cpp_defs(void) { emit_line("#include <cstdio>"); emit_line("#include <utility>"); emit_line(""); emit_line("const size_t BUF_SIZE = %d;", BUF_SIZE); emit_line(""); emit_line("constexpr char input[] ="); emit_line("#include ...
2.046875
2
2024-11-18T22:29:21.577859+00:00
2021-06-15T15:05:25
578bfec5c405c28278405041ca55ad9ffd8cc6c6
{ "blob_id": "578bfec5c405c28278405041ca55ad9ffd8cc6c6", "branch_name": "refs/heads/edk2-stable202102-lx2160acex7", "committer_date": "2021-06-15T15:05:25", "content_id": "4ba16c47dd43e05a8188bf7779b3cac740694bf7", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8dee61f02e2767c00498e7fd3c77a...
stackv2
/** @file Copyright 2019-2020 NXP SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include <Library/DebugLib.h> #include <Library/GpioLib.h> #include <Library/SerialPortLib.h> #include <Library/BaseLib.h> /** Function to get board system clock frequency. **/ UINTN GetBoardSysClk ( VOID ) { return 10000...
2.46875
2
2024-11-18T22:29:22.102598+00:00
2014-02-20T19:35:25
fa81f43ac43d199cc229d9a945e570ef72286fa5
{ "blob_id": "fa81f43ac43d199cc229d9a945e570ef72286fa5", "branch_name": "refs/heads/master", "committer_date": "2014-02-20T19:35:25", "content_id": "484b2750104adf272939cd2f960ca6ad553adea6", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ec01a3ce3f69cbfd0200c6c73cbc39e01a352860", "extens...
stackv2
/* * IRremote.c * * Created on: Jul 17, 2013 * Author: Jack */ #include "IRremote.h" //TA1CCR0 is config to capture timer A1 at every falling edge. //Put this func into the ISR to receive IR command. void IRR_capture_ISR(IRR_Obj * obj) { uint16_t capture_data = TA1CCR0; //get capture data TA1CTL |= TA...
2.390625
2
2024-11-18T23:19:57.502360+00:00
2018-12-04T13:11:33
c546a29bffa73f5a9c2716e00ddfb6375b122e6c
{ "blob_id": "c546a29bffa73f5a9c2716e00ddfb6375b122e6c", "branch_name": "refs/heads/master", "committer_date": "2018-12-04T13:11:33", "content_id": "b30217fddf473962ff7f4cd8ed5a194c8d948f7a", "detected_licenses": [ "MIT" ], "directory_id": "dfc0bf0c5f280107f1153b14cc632b0eaed5a650", "extension": "h"...
stackv2
/* * 链表演示 * */ #ifndef __01LINK_H__ #define __01LINK_H__ typedef struct node { int val; struct node *p_prev; struct node *p_next; } node; typedef struct { node head; node tail; node *p_cur; } link; //链表初始化函数 void link_init(link *); //链表清理函数 void link_deinit(link *); //统计数字个数的函数 i...
2.375
2
2024-11-18T23:19:57.771753+00:00
2021-04-02T06:32:08
1968c201561d9590c1cca3dcc9dfae3150131c97
{ "blob_id": "1968c201561d9590c1cca3dcc9dfae3150131c97", "branch_name": "refs/heads/master", "committer_date": "2021-04-02T06:32:08", "content_id": "3d2c8ec0e1aad25701ced992cb6737bac46e7f42", "detected_licenses": [ "Unlicense" ], "directory_id": "3c6ee68267b849621953da52084eedadb34cd340", "extension...
stackv2
int char_is_printable(char c) { if (' ' <= c && c <= '~') return (1); return (0); } int ft_str_is_printable(char *str) { while (*str && char_is_printable(*str)) str++; if (*str) return (0); return (1); }
2.625
3
2024-11-18T23:19:57.847021+00:00
2020-05-07T17:58:12
1ee6d2b092cae6fd3a7d0d4ad7268d8155837bcc
{ "blob_id": "1ee6d2b092cae6fd3a7d0d4ad7268d8155837bcc", "branch_name": "refs/heads/master", "committer_date": "2020-05-07T17:58:12", "content_id": "1a09417227aa0fc9156260551fa1d2e04024af2d", "detected_licenses": [ "CC0-1.0" ], "directory_id": "29bc4d9f953cdf7aec9ebfdafc94607dbc014e3d", "extension":...
stackv2
/** Let us C by Yashwant Kanetkar * Unit 2 * Exercise H * part (a) * If a five-digit number is input through the keyboard, write a program to calculate the sum of its digits. */ #include <stdio.h> #include <stdlib.h> int main() { int n, m, i, sum = 0, rem; printf("Enter a 5 Digit Number\n"); scanf("%d", &n);...
3.75
4
2024-11-18T23:19:58.090992+00:00
2020-11-17T18:35:07
87df188587f1ffb88341521cd4a682953bd6a5f3
{ "blob_id": "87df188587f1ffb88341521cd4a682953bd6a5f3", "branch_name": "refs/heads/master", "committer_date": "2020-11-17T18:35:07", "content_id": "472dce336b191057a968f9a4e23d8a30f615b5e9", "detected_licenses": [ "MIT" ], "directory_id": "377c72661d2ec1b12a7ca4ef5185278ee7669bda", "extension": "c"...
stackv2
#include "stdio.h" int main() { int numbers[] = { 1, 2, 3, 4, 8, 9, 10, 15, 75, 100, 101, 157, 254 }; int result = binarySearch(numbers, 13, 101); result == -1 ? printf("Element is not present in array\n") : printf("Element is present at index: %d\n", result); return 0; } int binarySearch(int ar...
3.609375
4
2024-11-18T23:19:58.429621+00:00
2021-06-04T19:26:17
1bee73fd7e7c4e679333f22602b7dd3590f664f5
{ "blob_id": "1bee73fd7e7c4e679333f22602b7dd3590f664f5", "branch_name": "refs/heads/master", "committer_date": "2021-06-04T19:26:17", "content_id": "d8b3d1691f8dd9114acd13270349fd1cda458102", "detected_licenses": [ "MIT" ], "directory_id": "2edc954687da8761f0ad6b8ee76343c4c46c42cc", "extension": "c"...
stackv2
/* * Copyright (C) 2009-2011 by Benedict Paten (benedictpaten@gmail.com) * * Released under the MIT license, see LICENSE.txt */ #include "cactus_workflow_shared.h" int main(int argc, char *argv[]) { parseArgs(argc, argv); FlowerStream *flowerStream = flowerWriter_getFlowerStream(cactusDisk, stdin); Fl...
2.234375
2
2024-11-18T23:19:58.962025+00:00
2017-11-16T06:40:04
9195b73c85c368fd7b2dab3d252752bdd5b79fad
{ "blob_id": "9195b73c85c368fd7b2dab3d252752bdd5b79fad", "branch_name": "refs/heads/master", "committer_date": "2017-11-16T06:40:04", "content_id": "125f241cb1fd6080e1c37151459dcc7253dfc662", "detected_licenses": [ "Unlicense" ], "directory_id": "76257303554778b6e928b88a92a391878dfece82", "extension...
stackv2
/** * Exercise 2-1, page 36 * Упражнение 2.1, страница 50 * * Write a program to determine the ranges of char, short, int, and long * variables, both signed and unsigned, by printing appropriate values from standard headers * and by direct computation. Harder if you compute them: determine the ranges of the vari...
3.421875
3
2024-11-18T23:19:59.069653+00:00
2019-01-14T05:53:53
9a8071a1dd1834862b8aa493e61d412e7fda46fb
{ "blob_id": "9a8071a1dd1834862b8aa493e61d412e7fda46fb", "branch_name": "refs/heads/master", "committer_date": "2019-01-14T05:53:53", "content_id": "be8191e6e6acf21513b6cd6f532761f571343f01", "detected_licenses": [ "MIT" ], "directory_id": "3569580b8a09eb089e3713768148a62ac1e650b9", "extension": "c"...
stackv2
#include <stdlib.h> #include "lstm_trainer.h" char* arg_iter[] = { "10000" }; char* arg_mse[] = { "0.0001" }; args_t arg_list[] = { {0, "csv", 'D', 1, NULL, NULL, "Training csv file path"}, {0, "cfg", 'C', 1, NULL, NULL, "LSTM config file path"}, {0, "out", 'O', 1, NULL, NULL, "LSTM model output path"}, {1, "...
2.015625
2
2024-11-18T23:19:59.334601+00:00
2020-11-22T23:37:16
d819e949693f2ff778d62f54fa91be0e847e96b9
{ "blob_id": "d819e949693f2ff778d62f54fa91be0e847e96b9", "branch_name": "refs/heads/master", "committer_date": "2020-11-22T23:37:16", "content_id": "88f3598bce22f55b0c526e4e677c21b28f60544c", "detected_licenses": [ "MIT" ], "directory_id": "fe56229710fc7d0193ce8a56a0e5a612e2be3d6e", "extension": "c"...
stackv2
#include <kit/matrix.h> mat3_t make_mat3_with_vec3 (vec3_t x, vec3_t y, vec3_t z) { mat3_t matrix; matrix.x = x; matrix.y = y; matrix.z = z; return matrix; } mat3_t make_mat3 (double xx, double xy, double xz, double yx, double yy, double yz, double zx, double z...
2.75
3
2024-11-18T23:19:59.508148+00:00
2018-11-12T00:56:08
22b99e5771f8cc448b427d16b4158b199a0ed2df
{ "blob_id": "22b99e5771f8cc448b427d16b4158b199a0ed2df", "branch_name": "refs/heads/master", "committer_date": "2018-11-12T00:56:08", "content_id": "e9ee478930d14f84996ddc4f1eef02b5ca06fe28", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "f0c2f961ea4b829f52b22e1f100eff0377ecd3be", "extens...
stackv2
#include "timer_event.h" void timer_event_irq(uint32_t id) { timer_event_t* te = (timer_event_t*)id; te->handler(te->id); } void timer_event_initialize(timer_event_t* te) { te->_ticker_data = get_lp_ticker_data(); ticker_set_handler(te->_ticker_data, timer_event_irq); } void timer_event_insert_absolu...
2.109375
2
2024-11-18T23:19:59.652453+00:00
2018-12-05T21:52:39
78c455d7cca8b82bf85a8fcbc0b6cb1bb90ac327
{ "blob_id": "78c455d7cca8b82bf85a8fcbc0b6cb1bb90ac327", "branch_name": "refs/heads/master", "committer_date": "2018-12-05T21:52:39", "content_id": "5b6ad6e88c6578d8144f3602aa464aa2fc7f8376", "detected_licenses": [ "Apache-2.0" ], "directory_id": "70fab0b00e2d0b0800f88e29cc42b41b8df09ee6", "extensio...
stackv2
#include "include.h" #include "structure.h" #include "function.h" int size_float = sizeof(float); float float_swap(char *); main(int ac, char **av) { FILE *fpr, *fopfile(); struct seisheader seishead; int fd, i, j, k, n, ngf[10000], nfile; int swap_bytes = 0; char infile[128]; char filelist[128...
2.640625
3
2024-11-18T23:19:59.859340+00:00
2017-05-29T14:23:43
a7b2438fe45eb3f10be128c916d98dcfc1aa11b1
{ "blob_id": "a7b2438fe45eb3f10be128c916d98dcfc1aa11b1", "branch_name": "refs/heads/master", "committer_date": "2017-05-29T14:23:43", "content_id": "ec1ae36a90545073a732f70bf1fe9c9d34bc52b1", "detected_licenses": [ "MIT" ], "directory_id": "e207a27ba1cfe1d8ce34de8b615143f06ab4a566", "extension": "c"...
stackv2
#include <stdlib.h> #include <assert.h> #include "src/wia.h" int printData(void){ printf("GOt here"); return 0; } int main(void){ wia_t *wia = wia_init("d_sk_uiaqbNd9MwnyFuDLLxNxwvIx"); assert(wia); int rc = wia_event_create(wia, "testEvent", "21.5", printData); assert(rc == WIA_SUCCESS); wia_free(wi...
2.0625
2
2024-11-18T23:20:00.498458+00:00
2019-11-19T14:58:09
c58d9836d4fadfdd32660f64d949046a8fb35c1f
{ "blob_id": "c58d9836d4fadfdd32660f64d949046a8fb35c1f", "branch_name": "refs/heads/master", "committer_date": "2019-11-19T14:58:09", "content_id": "3cb83fde8cb534098ad3238662876f633f7a9f3d", "detected_licenses": [ "MIT" ], "directory_id": "3b5fca622ca9f7c47170b0a423b533f6a7d5d53f", "extension": "c"...
stackv2
/* * util.h * * Created on: Nov 1, 2019 * Author: john */ #include "util.h" uint32_t usecs = 0U; volatile timestamp time= { .tenths = 0,.seconds = 0, .minutes = 0, .hours = 0 }; void delayMilliseconds(uint32_t delay) { uint32_t entryTime = usecs; while((usecs - entryTime) < delay*1000); } void updateTime...
2.53125
3
2024-11-18T23:20:01.065749+00:00
2020-12-26T22:16:34
1072d30d03b9e321c5bc86d9bf6169d0868eee50
{ "blob_id": "1072d30d03b9e321c5bc86d9bf6169d0868eee50", "branch_name": "refs/heads/master", "committer_date": "2020-12-26T22:16:34", "content_id": "2183a3c9e92827f1d8d34316b7c17b9524330746", "detected_licenses": [ "MIT" ], "directory_id": "830e1aa8d3af295804cc84a4ae5be921d91b19a4", "extension": "h"...
stackv2
#ifndef _CONST_H #define _CONST_H /**************************************************************************** * * This header file contains the global constant & macro definitions. * ****************************************************************************/ /* Maxi number of overall (eg, system, daemons, u...
2.109375
2
2024-11-18T23:20:01.173638+00:00
2020-09-20T22:15:18
f8dbfb0f9527b7c6ff341604dc856e681317c633
{ "blob_id": "f8dbfb0f9527b7c6ff341604dc856e681317c633", "branch_name": "refs/heads/master", "committer_date": "2020-09-20T22:15:18", "content_id": "8ba73aba1d3fc9b423253e5431ff759e65c67573", "detected_licenses": [ "MIT" ], "directory_id": "4ba0679abd49106afe4428529b267fb027023d80", "extension": "c"...
stackv2
#include "usart328p.h" #ifdef __AVR_ATmega328P__ void usart_init(const uint32_t baud) { USART_DDR |= _BV(USART_TX) | _BV(USART_RX); //Set baud rate uint16_t ubrr = (uint16_t)(F_CPU/16/baud-1);/* for normal mode */ UBRR0H = (uint8_t)(ubrr>>8); UBRR0L = (uint8_t)ubrr; //select frame format (8 bit data, 1 stop bit...
2.828125
3
2024-11-18T23:20:01.485308+00:00
2021-02-06T14:22:01
86e4a6f55085900c896fd9800e9c3d62eb0719fc
{ "blob_id": "86e4a6f55085900c896fd9800e9c3d62eb0719fc", "branch_name": "refs/heads/main", "committer_date": "2021-02-06T14:22:01", "content_id": "3cc8c1dc691a66b0e9585ce9802716ead2c26288", "detected_licenses": [ "MIT" ], "directory_id": "5f841485402a6e9a384b2804ecacbc7e46022f34", "extension": "c", ...
stackv2
#include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> /* printk() */ #include <linux/slab.h> /* kmalloc() */ #include <linux/fs.h> /* marsikaj */ #include <linux/errno.h> /* kode napak */ #include <linux/types.h> /* size_t */ #include <linux/fcntl...
2.4375
2
2024-11-18T23:20:01.679908+00:00
2019-10-16T09:34:49
490606fda690e624d71327795ce9889fea363fe0
{ "blob_id": "490606fda690e624d71327795ce9889fea363fe0", "branch_name": "refs/heads/master", "committer_date": "2019-10-16T09:34:49", "content_id": "ee337123bdeb0e974656d83ce8e1599a8a663565", "detected_licenses": [ "MIT-Modern-Variant", "ISC" ], "directory_id": "8eeb4dc93d55619b20eba6b4fede0729424...
stackv2
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 Hong J. Park, Thomas L. Quarles **********/ #include "spice.h" #include <stdio.h> #include "util.h" #include "bsim1def.h" void B1destroy(inModel) GENmodel **inModel; { B1model **model = (B1model**)inModel; ...
2.0625
2
2024-11-18T23:20:01.998034+00:00
2018-03-16T05:48:41
cc62844869f983cf956f10a1c4ef85b93e6c1177
{ "blob_id": "cc62844869f983cf956f10a1c4ef85b93e6c1177", "branch_name": "refs/heads/master", "committer_date": "2018-03-16T05:48:41", "content_id": "9a3518409620fd781b6863f2e32d39d6008503b5", "detected_licenses": [ "BSD-2-Clause-Views" ], "directory_id": "3c7d839c81df143e8b0fe380f77ef045b8f76b2d", "...
stackv2
#include <sys/syscall.h> #include <sys/isr.h> #include <sys/process.h> #include <sys/tarfs.h> #include <sys/timer.h> #include <sys/kprintf.h> void isr_handler128( struct stack_frame *sf ) { uint64_t syscall_no = 0; uint64_t buf, arg1, arg2; uint64_t size; uint64_t *ptr; uint64_t val; //Save register ...
2.484375
2
2024-11-18T23:20:02.264780+00:00
2020-09-20T12:00:36
b1972f339bbb6bff537d850b5ea8fc72d56a6ef6
{ "blob_id": "b1972f339bbb6bff537d850b5ea8fc72d56a6ef6", "branch_name": "refs/heads/master", "committer_date": "2020-09-20T12:02:20", "content_id": "ee016d8c175e412e61c988f7711ae37c53193fec", "detected_licenses": [ "MIT" ], "directory_id": "d3f85b0a3bc403abccd4c00c2385d8f562512b8e", "extension": "c"...
stackv2
#include <windows.h> #include <stdio.h> DWORD processId; char *account; char *password; int delay; void AL_Key(HANDLE hWnd, WORD vk, BOOL press) { INPUT ip; ZeroMemory(&ip, sizeof(INPUT)); ip.type = INPUT_KEYBOARD; ip.ki.wVk = vk; ip.ki.dwFlags = (press ? 0 : KEYEVENTF_KEYUP); SendInput(1, &ip, sizeof(INPUT))...
2.65625
3
2024-11-18T23:20:02.356264+00:00
2020-02-13T17:18:57
f92767ed17db674a9a1d3373179eb850dbe6247e
{ "blob_id": "f92767ed17db674a9a1d3373179eb850dbe6247e", "branch_name": "refs/heads/master", "committer_date": "2020-02-13T17:18:57", "content_id": "f51e9c11b2e2bf623cf3fcf158c052010ae072f0", "detected_licenses": [ "MIT" ], "directory_id": "012437b14b5d9987508c2f04276ef58d3719b1b4", "extension": "c"...
stackv2
#include "big_int.h" #define BASE 256 #define LONG_SIZE 16 struct big_int { unsigned char * bin; // array of bytes (like little endian) unsigned int len; // number of used char int `bin` unsigned int cap; // real capacity of `bin` enum { POSITIVE, NEGATIVE, } sign; }; static const unsigned char one_bin [] ...
3.015625
3
2024-11-18T23:20:02.883426+00:00
2017-10-02T14:59:53
25da341af474185aa39b5c8bdf0a647479f81de2
{ "blob_id": "25da341af474185aa39b5c8bdf0a647479f81de2", "branch_name": "refs/heads/master", "committer_date": "2017-10-02T15:01:42", "content_id": "2e415187fc86330b87faeba305571daf64c3c35a", "detected_licenses": [ "MIT" ], "directory_id": "d4afb74ff68d0a18b18eedfdd125abfe6964953d", "extension": "h"...
stackv2
#ifndef LOG_H #define LOG_H #include <stdio.h> #include <string.h> #undef DLOG #undef ELOG #undef FLOG void __log_func(const char* name, const char* fname, int line, const char* func, const char* msg); void __log_set_file(FILE* file); int __log_enabled(); extern __thread char __log_str[65536]; #define lassert(expr...
2.1875
2
2024-11-18T23:20:05.491380+00:00
2016-10-04T20:23:59
854a4272afc63a33598ae040da51e4ed5e8566bc
{ "blob_id": "854a4272afc63a33598ae040da51e4ed5e8566bc", "branch_name": "refs/heads/master", "committer_date": "2016-10-04T20:23:59", "content_id": "7eb01f947401aad7efd25a50f5938cb4ea743485", "detected_licenses": [ "MIT" ], "directory_id": "76b5614c01c11b9e7a90b80a5f73ec8187e127e9", "extension": "c"...
stackv2
/* * Mac Warmer * warmer.c * author Rijn */ #include "warmer.h" #include "pid_c.h" #include "smc.h" #include "monitor.h" #include "calculatepi.h" #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> #include <signal.h> #include <sys/types.h> #include <sys/sysctl.h> void invalid_op...
2.15625
2
2024-11-18T23:20:05.589157+00:00
2018-04-08T19:49:13
135a4599b0850d02b710b29965bfbee2b1ea4c7f
{ "blob_id": "135a4599b0850d02b710b29965bfbee2b1ea4c7f", "branch_name": "refs/heads/master", "committer_date": "2018-04-08T19:49:13", "content_id": "49cc7c8bab1001a898242e3d828052296ec296ad", "detected_licenses": [ "Unlicense" ], "directory_id": "32d09d58d45b55f3032722ffa82432122287b5a9", "extension...
stackv2
#include <sys/shm.h> #include <stdio.h> int vedicMultiply(int a, int b); int main(){ int shmid; key_t key=5678; //integer key assigned to shared memory size_t shm_size= 50; //size is the size of the requested shared memory. int *pointer; //integer pointer to initial address of shared memory buffer int a,b,p...
3.4375
3
2024-11-18T23:20:05.648142+00:00
2021-01-11T03:16:22
a5add24fba8de16a75a2a8bf17eae48ec3a4e988
{ "blob_id": "a5add24fba8de16a75a2a8bf17eae48ec3a4e988", "branch_name": "refs/heads/master", "committer_date": "2021-01-11T03:18:11", "content_id": "403713b31202c7242ebb25cea02b38ce0f2a3e59", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7be9310bb06691d7546422235010034ba69397c7", "extensio...
stackv2
/** * @brief * @details * @date azenk@2019-07-31 **/ /* Includes ------------------------------------------------------------------*/ #include "system.h" #include "axdr.h" #include "cosem_objects_exception.h" #include "dlms_application.h" /* Private typedef ---------------------------------------------------...
2.09375
2
2024-11-18T20:59:20.289320+00:00
2021-07-28T17:39:08
858d42cf948dd3d695000af610836bb65ba611ff
{ "blob_id": "858d42cf948dd3d695000af610836bb65ba611ff", "branch_name": "refs/heads/master", "committer_date": "2021-07-28T17:39:08", "content_id": "bede7c344d7a276f1c22eeaa724b167e78ead8b1", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "edcdab4db6325e5ebe093ff7d90ec57eb5df80a8", "extens...
stackv2
/* * ************************************************************** * Copyright (c) 2017-2022, Aastha Mehta <aasthakm@mpi-sws.org> * All rights reserved. * * This source code is licensed under the BSD-style license found * in the LICENSE file in the root directory of this source tree. * *************************...
2.703125
3
2024-11-18T20:59:20.358925+00:00
2015-07-02T05:33:14
4e195f360dfe6e09ce152791f53a75cb168caa9b
{ "blob_id": "4e195f360dfe6e09ce152791f53a75cb168caa9b", "branch_name": "refs/heads/master", "committer_date": "2015-07-02T05:33:14", "content_id": "444c8e0decf0db5c96a4d2cb34a914dd482e8ffe", "detected_licenses": [ "BSD-4-Clause-UC" ], "directory_id": "edf20ceb4b41f8b6bd0fcadba354bebf950e1fdf", "ext...
stackv2
/* See COPYRIGHT for copyright information. */ #ifdef __SHARC__ #pragma nosharc #endif #include <ros/common.h> #include <ros/ring_syscall.h> #include <arch/types.h> #include <arch/arch.h> #include <arch/mmu.h> #include <error.h> #include <syscall.h> #include <kmalloc.h> #include <pmap.h> #include <stdio.h> #include...
2.453125
2
2024-11-18T20:59:20.450724+00:00
2021-05-22T13:47:07
9cc61f261e26a61af9334d2ab5dea8762f9a04e5
{ "blob_id": "9cc61f261e26a61af9334d2ab5dea8762f9a04e5", "branch_name": "refs/heads/master", "committer_date": "2021-05-22T13:47:07", "content_id": "215df4a8ca4115e5a46191632f9784dc88025ab4", "detected_licenses": [ "MIT" ], "directory_id": "f088ac6bc17c6c36fb5004ede4a8503b2ff76ead", "extension": "c"...
stackv2
/** * Copyright (C) LibDriver 2015-2021 All rights reserved * * The MIT License (MIT) * * 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 limitati...
2.21875
2
2024-11-18T20:59:21.032187+00:00
2019-10-17T15:55:08
1ae7d29779dd15459e3ee8fec6e86dc2c020ea30
{ "blob_id": "1ae7d29779dd15459e3ee8fec6e86dc2c020ea30", "branch_name": "refs/heads/master", "committer_date": "2019-10-17T15:55:08", "content_id": "96d493665232cccd63d96249e12257e156c0e247", "detected_licenses": [ "MIT" ], "directory_id": "9cf8571a4d546e550b942b022a8728e1cacba2b6", "extension": "c"...
stackv2
#include <func.h> int setNonBlock(int fd) { int status; status=fcntl(fd,F_GETFL); status=status|O_NONBLOCK; fcntl(fd,F_SETFL,status); return 0; } int main(int argc,char* argv[]) { setNonBlock(0); char buf[128]={0}; int ret; sleep(5); ret=read(0,buf,sizeof(buf)); printf("ret=%...
2.359375
2
2024-11-18T20:59:21.677869+00:00
2021-06-16T20:01:59
9ff63c7c3afaf81f029e536d5312d809bef409ba
{ "blob_id": "9ff63c7c3afaf81f029e536d5312d809bef409ba", "branch_name": "refs/heads/master", "committer_date": "2021-06-16T20:01:59", "content_id": "9b20cea5934541a03fe2daa9c8c3a1881fc3b808", "detected_licenses": [ "MIT" ], "directory_id": "06e0c1c5c21e1eec9a6c63b84e40dad4d3ad4ab9", "extension": "h"...
stackv2
/* * IoT Hub Raspberry Pi C - Microsoft Sample Code - Copyright (c) 2017 - Licensed MIT */ /////////////////////////////////////////////////////////////////////////////// // // bme280.h: // SPI based interface to read temperature, pressure and humidity samples from // a BME280 module. // //////////////////////////////...
2.4375
2
2024-11-18T20:59:22.025339+00:00
2021-03-02T16:51:06
a6adeee63ffc847ae66c212e020dd2cdc20d14b4
{ "blob_id": "a6adeee63ffc847ae66c212e020dd2cdc20d14b4", "branch_name": "refs/heads/main", "committer_date": "2021-03-02T16:51:06", "content_id": "37641400334c9d27570da016152fb51d0ba07be5", "detected_licenses": [ "MIT" ], "directory_id": "12cdeef6ad8e2b601de4a2401dd76a3b1f06b23b", "extension": "c", ...
stackv2
/* Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software. ---------------------------------------------------------------------------------- MIT License Copyright (c) 2021 A...
2.125
2
2024-11-18T20:59:22.349896+00:00
2016-02-02T08:02:43
754220b0f752afbae9169f45419bffc910fd4f9f
{ "blob_id": "754220b0f752afbae9169f45419bffc910fd4f9f", "branch_name": "refs/heads/master", "committer_date": "2016-02-02T08:02:43", "content_id": "ad40b34079a34644b17146cd6b054f080ae4abdf", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c0e2fc2049cdb611b44af8c3a656d2cd64b3b62b", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <pthread.h> #include <unistd.h> #include <netdb.h> #include <arpa/inet.h> #include <sys/socket.h> #include <sys/un.h> #include <sys/ioctl.h> #include <netinet/in.h> #include <net/if.h> #include <sys/types.h> #include <asm/types.h> #i...
2.0625
2
2024-11-18T20:59:23.038151+00:00
2017-03-17T19:45:15
5758d8aa667aa71c53ead48ba7b51763f9d57660
{ "blob_id": "5758d8aa667aa71c53ead48ba7b51763f9d57660", "branch_name": "refs/heads/master", "committer_date": "2017-03-17T19:45:15", "content_id": "af18a5337be98b9114d55eafc73d32d05c76bb1a", "detected_licenses": [ "MIT" ], "directory_id": "85e8ca6402c7a673d807e6a6c9babd393f9c2cf9", "extension": "c"...
stackv2
#include <ctype.h> #include <string.h> #include "named.h" int chili_named_parse(char *line, char **library_path, char **test_name) { char *lib; char *sep = strchr(line, ':'); char *tst; int len; /* Separator not found */ if (sep == NULL){ ...
2.609375
3
2024-11-18T20:59:23.373396+00:00
2019-12-27T13:33:16
54ffaa33c8692f4e7ab535510c92e38732fa3210
{ "blob_id": "54ffaa33c8692f4e7ab535510c92e38732fa3210", "branch_name": "refs/heads/master", "committer_date": "2019-12-27T13:33:16", "content_id": "e773e5528d9d6a2d65573f29c2bc056002b81784", "detected_licenses": [ "MIT-Modern-Variant" ], "directory_id": "2e7c643f13e96ea2da93730c1d7773dccbf06c1b", "...
stackv2
#ifdef CHANGED /* userthread.h * */ #ifndef DEF_USERTHREAD #define DEF_USERTHREAD #include "machine.h" #include "system.h" #include "addrspace.h" typedef struct { int func; int args; }Params; /** * Create a new thread, initialize it and put it in the excecution queue * > f : adress of the function ...
2.046875
2
2024-11-18T20:59:23.691420+00:00
2023-06-23T21:34:12
65c2114b6dbc9c594b955b9241c1870403cc9656
{ "blob_id": "65c2114b6dbc9c594b955b9241c1870403cc9656", "branch_name": "refs/heads/master", "committer_date": "2023-07-21T09:00:02", "content_id": "306523fb0192a8e6b3c3d0a3cb2918dbb10a7812", "detected_licenses": [ "NCSA" ], "directory_id": "549f66608f0cb4e50cee2e51c53206e798ab82cd", "extension": "c...
stackv2
/*===-- bcmp.c ------------------------------------------------------------===// // // The KLEE Symbolic Virtual Machine // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
2.390625
2
2024-11-18T20:59:24.875213+00:00
2020-06-02T18:49:44
ddd4a882f1c34171a15b6aea7b539c4f608d0573
{ "blob_id": "ddd4a882f1c34171a15b6aea7b539c4f608d0573", "branch_name": "refs/heads/master", "committer_date": "2020-06-02T18:49:44", "content_id": "d1d6ff21442ea95bb347b85d031fe875b39b20c2", "detected_licenses": [ "MIT" ], "directory_id": "3af3a6381ce0e32ced4ea26209eb85c5f6ba2b14", "extension": "h"...
stackv2
#ifndef SERIALCOMM_H #define SERIALCOMM_H #include <ti/drivers/UART.h> #include <string.h> #include "ti_drivers_config.h" #define PREAMBLE_START 0xBE #define PREAMBLE_END 0xEE #define FRAME_TYPE_COMMAND 0x00 #define FRAME_TYPE_RESPONSE 0x01 #define FRAME_TYPE_PACKET 0x02 typedef enum CommandType { None = -1, ...
2.109375
2
2024-11-18T20:59:28.248497+00:00
2018-08-26T15:29:17
d0f9fb958c827079d9320855c875ad058ba55964
{ "blob_id": "d0f9fb958c827079d9320855c875ad058ba55964", "branch_name": "refs/heads/master", "committer_date": "2018-08-26T15:29:17", "content_id": "bbd6070a71154a8dd1c92c67f27eb298b1aefcc5", "detected_licenses": [ "MIT" ], "directory_id": "b1c728b2577a76b267641599a6bed382ffd6b4af", "extension": "c"...
stackv2
#include "beet_std.h" // ----------------------------------------------------------------------------------------- // Dequeue // ----------------------------------------------------------------------------------------- dequeue* InitDequeue() { dequeue* d = BEET_malloc(sizeof(dequeue)); if (d != NULL) d->head = d-...
2.9375
3
2024-11-18T20:59:28.319104+00:00
2016-05-26T18:25:39
fcdfddaff5e880fc975387b3d96e16f708f81197
{ "blob_id": "fcdfddaff5e880fc975387b3d96e16f708f81197", "branch_name": "refs/heads/master", "committer_date": "2016-05-26T18:25:39", "content_id": "c08d7d987204fe46dd25388534326c3dda9352cd", "detected_licenses": [ "MIT" ], "directory_id": "3910c97ee1a06c2b8c4ec12a5e85a136887bf294", "extension": "c"...
stackv2
/* The MIT License (MIT) Copyright (c) 2015-? suhetao 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, publi...
2.015625
2
2024-11-18T20:59:28.501381+00:00
2023-07-11T23:06:35
aba72fcd4f137404e2f49e16784d7943b36e8f29
{ "blob_id": "aba72fcd4f137404e2f49e16784d7943b36e8f29", "branch_name": "refs/heads/master", "committer_date": "2023-07-11T23:06:35", "content_id": "5b7060dcbb7f4d3d19faf62a1a1da7f170ccb7e1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "26bc498c752e59b3954113ca856e5807364c135e", "extensio...
stackv2
/* ------------------------------------------------------------------------- OBJECT NAME: cloudbase.c FULL NAME: ENTRY POINTS: scldbase() DESCRIPTION: Calculation for theoretical cloud base. COPYRIGHT: University Corporation for Atmospheric Research, 2003 -----------------------------------------------------------...
2.125
2
2024-11-18T20:59:28.728673+00:00
2023-02-03T13:11:50
62dc63d90b51f77d1250f05e5ef35642b822d14b
{ "blob_id": "62dc63d90b51f77d1250f05e5ef35642b822d14b", "branch_name": "refs/heads/master", "committer_date": "2023-02-03T13:11:50", "content_id": "d78ba52d1ea91677efbde94b9f0e1b3dbc0385b0", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "64f63e6468d7d1a8239ca8a60cb3a57671d7026e"...
stackv2
/* Copyright (C) 2011, 2012 The uOFW team See the file COPYING for copying permission. */ #ifndef COMMON_INCLUDED # error "Only include common_imp.h or common_header.h!" #endif static inline int pspGetK0(void) { int ret; asm("move %0, $k0" : "=r" (ret)); return ret; } static inline int pspGetK1(void) ...
2.546875
3
2024-11-18T20:59:28.851915+00:00
2021-06-22T13:05:36
d5a1c1fa07311b06c246d20cf92b2e842a42ecb6
{ "blob_id": "d5a1c1fa07311b06c246d20cf92b2e842a42ecb6", "branch_name": "refs/heads/master", "committer_date": "2021-06-22T13:05:36", "content_id": "87d24a6fd404cd78cbf1cbd5a0d5e297a7ada66c", "detected_licenses": [ "MIT" ], "directory_id": "6f4733f418dfb5e9dea9bd3adbd0f6058c392a76", "extension": "c"...
stackv2
/* ============================================================================================== Test for ZFile module Copyright (c) 2000 Nathan Youngman. All rights reserved. <contact@nathany.com> May 21, 2000 Initial Development - test app based on miniunz by Gilles Vollant - uses ZFile interfaces ...
2.578125
3
2024-11-18T20:59:29.118577+00:00
2023-08-11T20:42:51
e6cc996d810db12f45b5d2fe6c897090105958b5
{ "blob_id": "e6cc996d810db12f45b5d2fe6c897090105958b5", "branch_name": "refs/heads/master", "committer_date": "2023-08-11T20:42:51", "content_id": "293f7a96a50514271ae50fe8942b86fbb96ecefb", "detected_licenses": [ "MIT" ], "directory_id": "13bc1bef1e25f84cb240677f0fbf5d4b1b6f8463", "extension": "h"...
stackv2
#ifndef ZN_ERRORS_H #define ZN_ERRORS_H #include "log.h" #include "macros.h" // Abnormally terminate the program #ifdef _MSC_VER #define ZN_GENERATE_TRAP() __debugbreak() #else #define ZN_GENERATE_TRAP() __builtin_trap() #endif // The following macros print a message and crash the program. #define ZN_CRASH_MSG(msg)...
2.0625
2
2024-11-18T20:59:29.372237+00:00
2017-12-14T23:28:36
4424e9989c078ccfc8454f5e8878d8626ea0fa14
{ "blob_id": "4424e9989c078ccfc8454f5e8878d8626ea0fa14", "branch_name": "refs/heads/master", "committer_date": "2017-12-14T23:28:36", "content_id": "bab8f38f5031a125ac002208519c465b12a265c5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1a9edd7d67da518e2d6d22408a1cbbe8cddc375a", "extensio...
stackv2
#ifndef GF_H #define GF_H #endif #define m_val 2 // Extension degree 12 #define gf_extd 12 // Field size 2^12 #define gf_card (1 << gf_extd) // Field Group order 2^12 - 1 #define gf_ord ((gf_card)-1) // Subfield degree is 6 #define gf_extd_sf gf_extd / m_val // Subfield size 2^6 #define gf_card_sf (1 << gf_extd_sf) /...
2.265625
2
2024-11-18T20:59:29.521432+00:00
2022-01-09T16:00:31
7b71c97ea9172d9034beb823d85047c61033968a
{ "blob_id": "7b71c97ea9172d9034beb823d85047c61033968a", "branch_name": "refs/heads/master", "committer_date": "2022-01-09T16:00:31", "content_id": "b29b6e283626d3ede236cc807f3ac29f38e5b85c", "detected_licenses": [ "MIT" ], "directory_id": "e245b0f89eefea8711f667e9ed02f2ce0c9f91ec", "extension": "h"...
stackv2
/* * Copyright(C) 2012 Robinson Mittmann. All Rights Reserved. * * This file is part of the YARD-ICE. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3.0 of t...
2.03125
2
2024-11-18T20:59:29.764522+00:00
2023-08-29T19:00:49
a23b45a0296482ecc5c6005632995f620df48a8c
{ "blob_id": "a23b45a0296482ecc5c6005632995f620df48a8c", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T19:00:49", "content_id": "54e06f7b4e0793ba9da533a499ff26ceef2a9cbf", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e683a0b8dbb87c7ceb99e0d06896174a559d2c67", "extensio...
stackv2
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1997. All rights reserved. GEOWORKS CONFIDENTIAL PROJECT: PCGEOS MODULE: swat - ntcurses FILE: winscrol.c AUTHOR: Dan Baumann, Apr 08, 1997 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name ...
2.1875
2
2024-11-18T20:59:29.834609+00:00
2020-03-27T11:41:33
5772e0b87d6766a97df23e7bcdb804f2ac2b233e
{ "blob_id": "5772e0b87d6766a97df23e7bcdb804f2ac2b233e", "branch_name": "refs/heads/master", "committer_date": "2020-03-27T11:41:33", "content_id": "e86b888a5a99f1bf1222bc1add48a68eef8543c8", "detected_licenses": [ "MIT" ], "directory_id": "2e79f06ab0eb8b2536f097e295766f2361b754da", "extension": "h"...
stackv2
/*! * @file gdlFontDef.h * @brief 自定义字体结构的格式 * * @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com) * @licence The MIT License (MIT) * @author [Arya](xue.peng@dfrobot.com) * @version V1.0 * @date 2019-12-23 * @https://github.com/DFRobot/DFRobot_GDL */ #ifndef _GDLFONTDEF_H_ #define...
2.234375
2
2024-11-18T20:59:29.928601+00:00
2016-01-27T17:19:21
6f3a29dafe69204262044aec062a520efdca4b7d
{ "blob_id": "6f3a29dafe69204262044aec062a520efdca4b7d", "branch_name": "refs/heads/master", "committer_date": "2016-01-27T17:19:21", "content_id": "19c3781541fcd8b6ac2139e1ef75fbb90ef8b4dc", "detected_licenses": [ "MIT" ], "directory_id": "649edc1598dbe9f17462ece9992295cb0832f274", "extension": "c"...
stackv2
#include <stdio.h> void rev(); int main() { rev(); return 0; } void rev() { char c = getchar(); if(c != '\n') rev(); printf("%c",c); }
2.4375
2
2024-11-18T20:59:30.002174+00:00
2020-11-03T19:38:30
487d13bbcf34951da56c33d9aa7fd444943a0ccb
{ "blob_id": "487d13bbcf34951da56c33d9aa7fd444943a0ccb", "branch_name": "refs/heads/main", "committer_date": "2020-11-03T19:38:30", "content_id": "3d15e960c3498498cdbecedeeb1785dafa9373c5", "detected_licenses": [ "MIT" ], "directory_id": "382496ef927a1ac39e21fa2393da8504077710c5", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <SDL.h> #include <SDL_image.h> #include "variables.h" #include "functions.h" /* La ligne de départ et d'arrivé pour le joueur 1*/ int Firstline_P1[9]={0,9,18,27,36,45,54,63,72}; int Lastline_P1[9]={8,17,26,35,44,53,62,71,80}; /* La ligne de départ et d'arrivé pour le jo...
2.890625
3
2024-11-18T20:59:30.076477+00:00
2017-08-05T03:03:11
60f07df35c47a09f046d11e876dad30aa2047e35
{ "blob_id": "60f07df35c47a09f046d11e876dad30aa2047e35", "branch_name": "refs/heads/master", "committer_date": "2017-08-05T03:03:11", "content_id": "66d479be7cd0be412a347f8fcb1ba205656d775c", "detected_licenses": [ "MIT" ], "directory_id": "2349f4e5ad4adf2566f487e30caae046cacb88ba", "extension": "c"...
stackv2
/* * Demo Serial connection with pc */ #include <util/delay.h> #include "SerialDebug.h" char str1[] = "12345678901234567890"; char str2[] = ">> USC EE459L << "; char str3[] = ">> at328-6.c <<< "; char str4[] = "-- April 11, 2011 -- "; int main(void) { SerialDebugInit(); while (1) { // Loop fore...
2.375
2
2024-11-18T20:59:30.182879+00:00
2018-05-22T14:52:56
3316124d2232b434b7b25b9fa8afafdb50fb8ca3
{ "blob_id": "3316124d2232b434b7b25b9fa8afafdb50fb8ca3", "branch_name": "refs/heads/master", "committer_date": "2018-05-22T14:52:56", "content_id": "22bc4a370a49c20811cb261ea5e3c36ab5cc3bd6", "detected_licenses": [ "Apache-2.0", "BSD-3-Clause", "Zlib" ], "directory_id": "03b3b644e16e50257bfda7...
stackv2
/******************************************************************************/ /** @file db_query_mm.c @author Graeme Douglas @brief A stack-based memory manager to be used on a per-query basis. @see For more information, refer to @ref db_query_mm.h. @details @copyright Copyright 2013 Graeme Douglas @license Lice...
2.484375
2
2024-11-18T20:59:31.019542+00:00
2017-11-25T02:59:14
f29d7797a9395ea9486a3c8c5723a191de967646
{ "blob_id": "f29d7797a9395ea9486a3c8c5723a191de967646", "branch_name": "refs/heads/master", "committer_date": "2017-11-25T02:59:14", "content_id": "44ddf28de7645fe2fb1c22c6ab333dcf0fcfbc79", "detected_licenses": [ "MIT" ], "directory_id": "3ce6a11b09e071065fb10a4d725b1340c7a1d139", "extension": "c"...
stackv2
#include "types.h" #include "stat.h" #include "user.h" #include "fcntl.h" int main( int argc, char *argv[] ) { int fd_original; // File descriptor: apuntador del archivo int fd_new; char buf[512]; int n; // Check arguments if ( argc != 3 ) { printf( 2, "Usage: cp...
2.8125
3
2024-11-18T20:59:31.081202+00:00
2021-09-29T12:18:08
e6f7d2dc1bb7db332941038ef583c7cd08fd5c76
{ "blob_id": "e6f7d2dc1bb7db332941038ef583c7cd08fd5c76", "branch_name": "refs/heads/master", "committer_date": "2021-09-29T12:18:08", "content_id": "e700626ff61b680e21d147ed10006e4dde73cdb3", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "cc1b3cd47f7dbe676db36dae0f713c32e5d7507e", "extens...
stackv2
/* * Set of utilities for programming STM8 microcontrollers. * * Copyright (c) 2015-2021, Dmitry Kobylin * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of s...
2.375
2
2024-11-18T20:59:31.142547+00:00
2018-03-20T11:11:19
f153b5761270eab0072c4f83fa0a6e8dbdb5b3ab
{ "blob_id": "f153b5761270eab0072c4f83fa0a6e8dbdb5b3ab", "branch_name": "refs/heads/master", "committer_date": "2018-03-20T11:11:19", "content_id": "ee9b39788fdecf929e28067497bcf4634870f2bc", "detected_licenses": [ "MIT" ], "directory_id": "9c4fb834c039e343305cc1c5136497b8236813c6", "extension": "c"...
stackv2
#include "ui.h" #include<stdio.h> #include<pthread.h> #include<stdlib.h> #include <unistd.h> pthread_mutex_t lock; int gold = 100; int zombies = 1; int soldiers = 0; int health = 100; void *minerfunc(void *ptr){ while(1){ pthread_mutex_lock(&lock); gold = gold + 10; print_gold(gold); pthread_mutex_unlock(&...
2.921875
3
2024-11-18T20:59:31.580247+00:00
2018-08-25T22:32:58
debf7f50c2b1ca6d7a968526cb49f74912ae226a
{ "blob_id": "debf7f50c2b1ca6d7a968526cb49f74912ae226a", "branch_name": "refs/heads/master", "committer_date": "2018-08-25T22:32:58", "content_id": "e9a1b08e67a15c4d2fbda9763f54764d9b460f48", "detected_licenses": [ "MIT" ], "directory_id": "c57dde7ffd1c50bde5be464935d9716d9993deff", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <sys/mman.h> #include <stdint.h> #define FILEPATH "./mmapped.bin" #define INTERNAL_NODE_TYPE 0 #define LEAF_NODE_TYPE 1 // #define ROOT_INTERNAL_NODE_TYPE 2 // #define ROOT_LEAF_NODE_TYPE...
2.90625
3
2024-11-18T20:59:31.754292+00:00
2014-09-23T02:09:00
302bd33eed64441268f39d788861cbbbc28d98da
{ "blob_id": "302bd33eed64441268f39d788861cbbbc28d98da", "branch_name": "refs/heads/master", "committer_date": "2014-09-23T02:09:00", "content_id": "57c28a1b51ecf1ba229ab8c9e8f52a5af12d1c49", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "7a29424a19259028a183bbce017d1b79975684e8"...
stackv2
#include <errno.h> #include <time.h> #include <string.h> #include <xio/sp_pubsub.h> #include <xio/socket.h> #include <xio/cmsghdr.h> #include <utils/thread.h> #include "testutil.h" static char *hello = "hello world"; static int sub_thread (void *args) { char host[1024]; char buf[128]; int rc; int i; int eid; ch...
2.5
2
2024-11-18T20:59:31.848082+00:00
2021-09-17T19:30:22
9123885222e4231fd541f443ed3004237c54db5d
{ "blob_id": "9123885222e4231fd541f443ed3004237c54db5d", "branch_name": "refs/heads/main", "committer_date": "2021-09-17T19:30:22", "content_id": "97e318477d5f28c0cf7bee9025417150151c5a1a", "detected_licenses": [ "CC0-1.0" ], "directory_id": "9c6f48a029769fb78d343e6e7d2132567065900a", "extension": "...
stackv2
#include <stdio.h> #include <stdlib.h> #include "file.h" Bool is_empty_queue(void) { if (first == NULL && last == NULL) { return true; } return false; } int queue_length(void) { return nb_elements; } float queue_first(void) { if(is_empty_queue()) exit(1); return first->value; } float queue_last(void) ...
3.203125
3
2024-11-18T20:59:32.005322+00:00
2020-04-07T13:08:32
3e69249da180043e235d8116634466fb084bc7bc
{ "blob_id": "3e69249da180043e235d8116634466fb084bc7bc", "branch_name": "refs/heads/master", "committer_date": "2020-04-07T13:08:32", "content_id": "7bcc2203f81ca85943f717512b8ceb719971f6dc", "detected_licenses": [], "directory_id": "21d44af8504c077dec6d862203df0b762c911b91", "extension": "c", "filename...
stackv2
/***************************************************************************** File: casn.c Contents: Basic functions for ASN.1 objects. System: Compact ASN development. Created: Author: Charles W. Gardiner <gardiner@bbn.com> Remarks: ***************************************************************************...
2.1875
2
2024-11-18T20:59:32.057849+00:00
2021-10-25T14:18:46
fd826b21563921f1a162147fd0c018305447930d
{ "blob_id": "fd826b21563921f1a162147fd0c018305447930d", "branch_name": "refs/heads/master", "committer_date": "2021-10-25T14:18:46", "content_id": "2fec8e734b678fb62180b2ea7093e1e2a3cd6e56", "detected_licenses": [ "MIT" ], "directory_id": "8d499ee299c55674a97a94f607eabd481941c908", "extension": "c"...
stackv2
#include <errno.h> #include <sys/socket.h> #include <xbook/debug.h> #include <xbook/socketcache.h> #include <xbook/net.h> #include <xbook/file.h> #include <xbook/safety.h> #include <xbook/sockioif.h> #include <xbook/netif.h> #include <xbook/if_ether.h> #include <xbook/if_arp.h> #include <sys/ioctl.h> #ifndef CONFIG_NE...
2.09375
2
2024-11-18T20:59:32.244294+00:00
2020-11-10T00:23:31
e2f4df75d09ab5a6c840aa911c42bb28a5e90097
{ "blob_id": "e2f4df75d09ab5a6c840aa911c42bb28a5e90097", "branch_name": "refs/heads/master", "committer_date": "2020-11-10T00:23:31", "content_id": "067147ad34e2c3c354ee3d28e80531098b11cc43", "detected_licenses": [ "Apache-2.0" ], "directory_id": "15e818aada2b18047fa895690bc1c2afda6d7273", "extensio...
stackv2
/* * Copyright 2020 Makani Technologies LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
2.203125
2
2024-11-18T20:59:32.526045+00:00
2019-09-12T04:59:26
1c0b149d44dc3981d0724bc3cb5b0f3dcecb55d7
{ "blob_id": "1c0b149d44dc3981d0724bc3cb5b0f3dcecb55d7", "branch_name": "refs/heads/master", "committer_date": "2019-09-12T04:59:26", "content_id": "8bc5e9edbe6b2ad3b4f895c519c45ab0f99ff256", "detected_licenses": [ "MIT" ], "directory_id": "716d135d69f554bbda3efa547a298301388613ca", "extension": "h"...
stackv2
#include <stdbool.h> #include <stdlib.h> #include "generic.h" // This is the type of the vector elements #ifndef TYPE #error "Expected macro TYPE to be defined" #endif // This is an abbreviation of the type name. // The vector will be declared as `struct avl_TYPE_ABBREV`. #ifndef TYPE_ABBREV #error "Expected macro...
2.453125
2
2024-11-18T20:59:32.756627+00:00
2020-09-22T11:57:17
214d2c96332c94a11d9f6a1bd51e1c743ed4c7e7
{ "blob_id": "214d2c96332c94a11d9f6a1bd51e1c743ed4c7e7", "branch_name": "refs/heads/master", "committer_date": "2020-09-22T11:57:17", "content_id": "9d475ca6d9878ba029aa1a4361d789588ecaaaef", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1943ffe9e6de9e02d0a4f7c3592d017e6bbdfc97", "extensio...
stackv2
#include "cdds/cdds_util.h" static bool z_sertopic_equal (const struct ddsi_sertopic *acmn, const struct ddsi_sertopic *bcmn) { // no fields in stp beyond the common ones, and those are all checked for equality before this function is called (void) acmn; (void) bcmn; return true; } static uint32_t z_sertopic_ha...
2.34375
2