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-18T21:41:43.824793+00:00
2021-03-03T04:01:44
cbb4548afa30a1e6fe9103703584e3953a1f761f
{ "blob_id": "cbb4548afa30a1e6fe9103703584e3953a1f761f", "branch_name": "refs/heads/master", "committer_date": "2021-03-03T04:01:44", "content_id": "e4838aa0410431060c9dacc0ba7869048cb439c5", "detected_licenses": [ "MIT" ], "directory_id": "000ae59bd94befc3da88852411ee1701d3a0a343", "extension": "c"...
stackv2
// // CircleQueue.c // 队列 // // Created by 58 on 2020/10/16. // Copyright © 2020 58. All rights reserved. // #include "CircleQueue.h" #include <string.h> static int * c_queue=NULL; static int array_capaticty = 10; static int array_size = 0; static int front = 0; // 对头index索引值 void check_cqueue(void){ if (!c...
3.53125
4
2024-11-18T21:41:45.129437+00:00
2014-09-23T02:50:15
25c439d0d8a2a776a6d766411dd6b44bf5bb28c5
{ "blob_id": "25c439d0d8a2a776a6d766411dd6b44bf5bb28c5", "branch_name": "refs/heads/master", "committer_date": "2014-09-23T02:50:15", "content_id": "41213e72ba1671953a1f0470662921d197ab503a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d21d86376212b74ed66102914ea11ba504c15b78", "extens...
stackv2
/** * Copyright (c) 2011, Willem-Hendrik Thiart * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * @file * @brief Manages layer between memory and disk * @author Willem Thiart himself@willemthiart.com * @version 0.1 */ #include <stdlib.h> #include <stri...
2.703125
3
2024-11-18T21:41:45.363130+00:00
2016-09-01T19:36:04
abbe37407764c6825eac828fa68235616de54d12
{ "blob_id": "abbe37407764c6825eac828fa68235616de54d12", "branch_name": "refs/heads/master", "committer_date": "2016-09-01T19:36:04", "content_id": "cb9689793979671e19973d5c347b3d6bf40b370f", "detected_licenses": [ "MIT" ], "directory_id": "daf6bfbc75d38e79be6be8786911084adf40ab0e", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> #include <inttypes.h> #include <string.h> #include <pthread.h> /**************************************** Author: Tim Wood Author: Phil Lopreiato A...
2.578125
3
2024-11-18T21:41:46.329493+00:00
2019-12-15T23:04:24
576b6c41475997f0a7191fa97fa1de5e7cf61a1b
{ "blob_id": "576b6c41475997f0a7191fa97fa1de5e7cf61a1b", "branch_name": "refs/heads/master", "committer_date": "2019-12-15T23:04:24", "content_id": "84463513900a37816353dc2135f7b4ce80f75fee", "detected_licenses": [ "MIT" ], "directory_id": "366b6585fdd791f82148adbeb033b9972bae32d3", "extension": "c"...
stackv2
#include <wmcloud.h> #include <wmcloud_xively.h> #include <board.h> #include <httpc.h> #include <httpd.h> #include <wmcrypto.h> #include <json_parser.h> #include <json_generator.h> #include <psm.h> #include "libxively/xively.h" #include "libxively/xi_err.h" #define DEFAULT_PROBE_INTERVAL (5) /* in secs */ #define N...
2.125
2
2024-11-18T21:41:46.468807+00:00
2017-08-27T00:51:50
654e57d52b2dee77aa17a616f6859864083de89d
{ "blob_id": "654e57d52b2dee77aa17a616f6859864083de89d", "branch_name": "refs/heads/master", "committer_date": "2017-08-27T00:51:50", "content_id": "8d9cafe507868ee07bb5d0ccef3a80fb5ec39158", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "fb38b4a9e720b009e258d701d4631abf9f9b578b", "extens...
stackv2
/* * * Copyright (c) 2002, Smart Link Ltd. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright ...
2.0625
2
2024-11-18T21:41:46.844597+00:00
2021-03-08T17:52:33
a1d5ca3b0d977844068f592d8e1b45e6691d1eb2
{ "blob_id": "a1d5ca3b0d977844068f592d8e1b45e6691d1eb2", "branch_name": "refs/heads/master", "committer_date": "2021-03-08T17:52:33", "content_id": "75885e6398b8a0e66949d6eded1031483618df68", "detected_licenses": [ "ISC" ], "directory_id": "495b54b344e45510401b56d3eb97b1360fc9fd34", "extension": "c"...
stackv2
/* See LICENSE file for copyright and license details. */ #define IN_LIBGAMMA_X_RANDR #include "common.h" /** * Get the gamma ramp size of a CRTC * * @param this Instance of a data structure to fill with the information about the CRTC * @param crtc The state of the CRTC whose information should be read * ...
2.359375
2
2024-11-18T21:41:47.106289+00:00
2023-09-03T08:13:23
16caf94fe2899dd1415bebcaaa0b567e5c4bfd10
{ "blob_id": "16caf94fe2899dd1415bebcaaa0b567e5c4bfd10", "branch_name": "refs/heads/main", "committer_date": "2023-09-03T08:13:23", "content_id": "753e819dfe4f6f529acc236ab1b58dee65dfa529", "detected_licenses": [ "MIT" ], "directory_id": "fb0f9abad373cd635c2635bbdf491ea0f32da5ff", "extension": "c", ...
stackv2
/* libunwind - a platform-independent unwind library Copyright (C) 2010 Konstantin Belousov <kib@freebsd.org> This file is part of libunwind. 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 wi...
2.109375
2
2024-11-18T21:41:47.377416+00:00
2023-09-02T14:55:31
20416bc66e76fa5ad6ed1381ba8524d76f6fee4f
{ "blob_id": "20416bc66e76fa5ad6ed1381ba8524d76f6fee4f", "branch_name": "refs/heads/master", "committer_date": "2023-09-02T14:55:31", "content_id": "f3974c045a22b053dc922698da16d796ed0d24b2", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca", "extens...
stackv2
/** * @file * @brief * * @author Anton Kozlov * @date 24.07.2015 */ /** ****************************************************************************** * _ _ _ _ _ _ _ _ * | \ / |/ \ * | \/ _ _\ * | / * | MultiClet * | ...
2.140625
2
2024-11-18T21:41:47.453265+00:00
2021-11-10T22:00:38
3ca02b8b5da8db0deb61c24a0d6fb490fc1def17
{ "blob_id": "3ca02b8b5da8db0deb61c24a0d6fb490fc1def17", "branch_name": "refs/heads/master", "committer_date": "2021-11-10T22:00:38", "content_id": "1c2a330343194225a9ba49f3a00e9aeddcef9787", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d926aa6bca04664ba20b6365a2f3a499562a1179", "extens...
stackv2
#ifndef UNITTEST_DEFS_H #define UNITTEST_DEFS_H #include <time.h> #include <stdio.h> #define boolean int #define True 1 #define False 0 #define MAX_TEST_NAME 32 /* Location of binaries */ #define BIN_DIR "../src" /* Location of model files */ #define MODEL_DIR "../model/cvmh" /* Test datatype */ typedef struct...
2
2
2024-11-18T21:41:47.516104+00:00
2017-11-03T01:37:25
2db2932fbe4adaaeeaee8e257b6de799052c10a6
{ "blob_id": "2db2932fbe4adaaeeaee8e257b6de799052c10a6", "branch_name": "refs/heads/master", "committer_date": "2017-11-03T01:37:25", "content_id": "8e4d0fdeac8587b87e07b0cb4ef861bfadb643fc", "detected_licenses": [ "MIT" ], "directory_id": "4b08f38c6ab99a10d16d61ba666b338883fbe668", "extension": "c"...
stackv2
#include<stdlib.h> #include<sys/wait.h> #include<stdio.h> int main(int argc, char *argv[]) { int status; status = system("pwd"); if (!WIFEXITED(status)) { printf("abnormal exit\n"); } else { printf("the exit status is %d\n", status); } return 0; }
2.265625
2
2024-11-18T21:41:47.794014+00:00
2019-08-25T02:38:49
3dd15fbd350ccb80c405972bfc43f65898dcb2d5
{ "blob_id": "3dd15fbd350ccb80c405972bfc43f65898dcb2d5", "branch_name": "refs/heads/master", "committer_date": "2019-08-25T02:38:49", "content_id": "305e484ad8ad239f2617aae721f9096bbc60ac29", "detected_licenses": [ "Apache-2.0" ], "directory_id": "12eccbfc6b992d3d42f881f13a0f52a02e03fa96", "extensio...
stackv2
#include "timer.h" uint32_t HiSTM_system_ticks = 0; /* Configure TIM1 CH1, CH1N, CH2, CH2N * */ void HiSTM_Advance_TIM1_init(uint16_t ARR_1) { TIM_TimeBaseInitTypeDef TIM_Base_init_struct; TIM_BDTRInitTypeDef TIM_BDTR_init_struct; TIM_OCInitTypeDef TIM_OC_init_struct; GPIO_InitTypeDef GP...
2.25
2
2024-11-18T21:41:48.240280+00:00
2014-05-14T08:12:40
63dd5e42bda944e6a281e67a73b15048f3f5cd8d
{ "blob_id": "63dd5e42bda944e6a281e67a73b15048f3f5cd8d", "branch_name": "refs/heads/master", "committer_date": "2014-05-14T08:12:40", "content_id": "aa9b54e8941137919c079a840867b8f07f3104f4", "detected_licenses": [ "MIT" ], "directory_id": "36cb8fe413ba120d0a1eba52cce5532d6479c5b7", "extension": "c"...
stackv2
#include <stdio.h> #include <unistd.h> #include <htslib/vcf.h> #include <htslib/synced_bcf_reader.h> #include "bcftools.h" static void usage(void) { fprintf(stderr, "About: Convert between VCF/BCF.\n"); // Most of the original functionality was moved into vcfsubset fprintf(stderr, "Usage: bcftools vi...
2.46875
2
2024-11-18T21:41:48.428408+00:00
2017-03-25T07:02:34
40b88c35e4c75c83600ced60ff2ad6288c009f23
{ "blob_id": "40b88c35e4c75c83600ced60ff2ad6288c009f23", "branch_name": "refs/heads/develop", "committer_date": "2017-03-25T07:02:53", "content_id": "3fe651dd65b218f92ce458d8fb00cfaf66470ade", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8d9dd2e97de63c2d67a8f74939818670c1cc61ed", "extensi...
stackv2
#include "components/renderer.h" const struct mrb_data_type hiro_renderer_component_type = { "RendererComponent", hiro_renderer_component_mrb_free }; mrb_value hiro_renderer_component_new(mrb_state* mrb, mrb_int argc, mrb_value* argv) { struct RClass* klass; klass = mrb_class_get(mrb, "RendererComponent"); re...
2.046875
2
2024-11-18T21:41:49.788433+00:00
2020-07-19T09:51:14
c44c78a89efc74e57f27d52811c72bd8fc1ea7a8
{ "blob_id": "c44c78a89efc74e57f27d52811c72bd8fc1ea7a8", "branch_name": "refs/heads/master", "committer_date": "2020-07-19T09:51:14", "content_id": "31bdbd400dfc1d4666a16adb0ba23f974fbd764c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a1cae92e3015bdde25509af429316d01764469b4", "extensio...
stackv2
#ifndef _BUDDY_H #define _BUDDY_H #include <bsp.h> #include <kakaosstdint.h> #include <singly_linked_list.h> #define PAGE_SIZE_BYTE 1024u /*bytes*/ #define PAGE_SIZE_KB (PAGE_SIZE_BYTE/1024) /*KB*/ #define NOTHING OS_UINT16_MAX #define sizeof_level(i) (0x0001<<(i-1)) #define BUDDY_SPACE_SIZE (PAGE_SIZE_BYTE*(cur...
2.390625
2
2024-11-18T21:41:49.943339+00:00
2018-10-19T09:51:08
c1145cda3fd12886d3133bc0fa88775f22745a60
{ "blob_id": "c1145cda3fd12886d3133bc0fa88775f22745a60", "branch_name": "refs/heads/master", "committer_date": "2018-10-19T09:51:08", "content_id": "c546976fe3ae19761c4e0ddcead6018fccee75ff", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8abf036ec4fa214b6a8d6c8c244c1b64206f2c90", "extens...
stackv2
/** @file A simple OS Loader that load Dtb, Initrd and Linux Kernel from XIP flash memory. Copyright (c) 2018 Chen Baozi <cbz@baozis.org>. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which acc...
2.078125
2
2024-11-18T21:41:50.103804+00:00
2019-07-17T22:38:51
885612dc1488f80fc7a0a019286515aa1cd42bff
{ "blob_id": "885612dc1488f80fc7a0a019286515aa1cd42bff", "branch_name": "refs/heads/master", "committer_date": "2019-07-17T22:38:51", "content_id": "d0d502b323757c1a73b3e097946ea9438a587a60", "detected_licenses": [ "MIT" ], "directory_id": "5415e3120d14dc3f40c642d98ec5f55186374587", "extension": "c"...
stackv2
/************************************************************* * Source File: sph2pipe.c * Compilation: gcc -o sph2pipe sph2pipe.c shorten_x.c file_headers.c * Authors: Dave Graff, Willie Dong; LDC, University of Pennsylvania * Purpose: multi-platform utility for converting SPHERE waveform files * to other common...
2.25
2
2024-11-18T21:41:50.280428+00:00
2017-11-24T06:28:17
5ed464367d82e57b25d5f7fa24152f451038edf2
{ "blob_id": "5ed464367d82e57b25d5f7fa24152f451038edf2", "branch_name": "refs/heads/master", "committer_date": "2017-11-24T06:28:17", "content_id": "f6c3aa55e549587cbe2ca880eed99ad41e9b33ce", "detected_licenses": [ "MIT" ], "directory_id": "b409690cc7eb54030bc794000caccd448ac1f2e8", "extension": "h"...
stackv2
/****************************************************************************** * @file gamePhase.h * @brief Game phase handler * @author Ron * @created November 17, 2017 * @modified November 24, 2017 * * @par [explanation] * > Holds code used exclusively in the game phase ***********...
2.203125
2
2024-11-18T21:41:50.531932+00:00
2019-12-05T11:20:17
f38a4c7f998e874a3bf07f7b4d633e6113baed0f
{ "blob_id": "f38a4c7f998e874a3bf07f7b4d633e6113baed0f", "branch_name": "refs/heads/master", "committer_date": "2019-12-05T11:20:17", "content_id": "8b89c9cf56d63f4d85edc38a186c5501359a04e4", "detected_licenses": [ "MIT" ], "directory_id": "17d5b3b976966405a543f41f7cecbdb08b6714e3", "extension": "h"...
stackv2
#define tamMax 100//tamanho maxima da string //codigo base da professora Renata Galante struct TNodoA{ char palavra[tamMax]; int frequencia; //frequencia da palavra no texto struct TNodoA *esq; //subarvore esquerda struct TNodoA *dir; //subarvore direita }; long int comparacoes;//cont...
2.40625
2
2024-11-18T21:41:50.632563+00:00
2015-04-20T15:29:00
20a72533bb09f1a74fdc0066f4431df72cadd9f5
{ "blob_id": "20a72533bb09f1a74fdc0066f4431df72cadd9f5", "branch_name": "refs/heads/master", "committer_date": "2015-04-20T15:29:00", "content_id": "ca50671d37d46db3ee81689750ed2763e9eec9d0", "detected_licenses": [ "MIT" ], "directory_id": "ddbc93f690511772105a705339735c56bdf78a0d", "extension": "c"...
stackv2
/* data type definitions */ #include "stdint.h" /* stdlibs */ #include "stdlib.h" /* driver includes */ #include "uart.h" #include "misc.h" /* device includes */ #include "system_LPC17xx.h" #include "LPC17xx.h" #include "stdio.h" /* syscalls */ #include "syscalls.h" /* string */ #include "string.h" /* configurat...
2.375
2
2024-11-18T21:41:50.684147+00:00
2020-08-06T06:45:07
b0165473ddc90fc0ff91d3ec550d317c8536c1be
{ "blob_id": "b0165473ddc90fc0ff91d3ec550d317c8536c1be", "branch_name": "refs/heads/master", "committer_date": "2020-08-06T06:45:07", "content_id": "83e23014902360ab47fc193eac22408933200927", "detected_licenses": [ "MIT" ], "directory_id": "d4962f86765834e0a6cbe6de2603b527c1241917", "extension": "c"...
stackv2
// Diffusion simulation #include <c64.h> #include <stdlib.h> byte* screen = 0x0400; byte* screen_color = 0xd800; const word HALF_SCREEN = 480; const byte CIRCLE = 81; const byte MARGIN = 40; const word SCREEN_SIZE = 1000; void main() { init_screen(); while(true) { swap_cells(); } } void ini...
2.8125
3
2024-11-18T21:41:51.939035+00:00
2018-01-14T17:16:56
33c2976e4c20e0a56071b4be6b17c9dfc9ca5511
{ "blob_id": "33c2976e4c20e0a56071b4be6b17c9dfc9ca5511", "branch_name": "refs/heads/master", "committer_date": "2018-01-14T17:16:56", "content_id": "f27cd1c6a94d4b3817aa34f78211ab2c07b0c954", "detected_licenses": [ "MIT" ], "directory_id": "ed82f5f62a34173dc6bc1fffc0cddcc82c09459f", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include "utils.h" #define TAMANHO 25 void clean_buffer(){ char ch; while((ch = getchar()) != '\n' && ch !=EOF); } int lerString(char *string, int max){ if (fgets(string, max, stdin) != NULL) { int tamanho = strlen(string) - 1; if (s...
3.15625
3
2024-11-18T21:41:53.119507+00:00
2021-10-26T04:14:10
08ab87d2c341719cbbdc00bd1981d21fb83f308e
{ "blob_id": "08ab87d2c341719cbbdc00bd1981d21fb83f308e", "branch_name": "refs/heads/main", "committer_date": "2021-10-26T04:14:10", "content_id": "4237d3a69c378ec89eef2a7c0954a2c9a0306070", "detected_licenses": [ "MIT" ], "directory_id": "e8a226652c18d9982dd52f4595b0bcccf7b8ca8a", "extension": "c", ...
stackv2
/* This program implements the attachement of shared memory to the process and put data into the shared memory * * Email : abinashprabakaran@gmail.com * Date : 14.09.2021 * Author : Abinash */ #include<stdio.h> /* required for printf() */ #include<sys/shm.h> /* required for shmat() shmdt() shmget() */ #inc...
3.3125
3
2024-11-18T21:41:53.191555+00:00
2019-08-23T00:53:35
8ae8cf3fb852714b773b479e4d1bde8fbf5ad83a
{ "blob_id": "8ae8cf3fb852714b773b479e4d1bde8fbf5ad83a", "branch_name": "refs/heads/master", "committer_date": "2019-08-23T00:53:35", "content_id": "3cb026f8e1108943a034d350f403e2ea1c585607", "detected_licenses": [ "MIT" ], "directory_id": "09884947c578015a250e41dd8b7c694685490b66", "extension": "c"...
stackv2
#include "macros.h" #include "log_erfc.h" #include "io.h" /* regress Least squares regression on points (x,y) to give y = mx + b Returns the root mean squared error of the fit. */ double regress( int n, /* number of points */ double *x, /* x values */ double *y, /* y values */ double *m, /* slop...
2.859375
3
2024-11-18T21:41:53.278333+00:00
2019-12-18T11:04:14
f09e14bdbb984c44273f7f2d383f94ea3db648c4
{ "blob_id": "f09e14bdbb984c44273f7f2d383f94ea3db648c4", "branch_name": "refs/heads/master", "committer_date": "2019-12-18T11:04:14", "content_id": "717abbb839003ff5830c7615c8bb302fb4dadddb", "detected_licenses": [ "MIT" ], "directory_id": "89879a78ae1cfb42fa406f88fd582cbd6c175468", "extension": "c"...
stackv2
#include <limits.h> #include <sys/stat.h> #include <sys/socket.h> #include <unistd.h> #include <string.h> #include <stdio.h> #include "log.h" #include "http_header.h" #include "response.h" // 文件扩展名与MimeType数据结构 typedef struct { // 文件扩展名 const char *ext; // Mime类型名 const char *mime; } mime; // 目前支持的Mi...
2.671875
3
2024-11-18T21:41:53.811033+00:00
2020-09-11T06:20:39
657cbc4bdf33841a080cc5d0c011d3ca6d45b61a
{ "blob_id": "657cbc4bdf33841a080cc5d0c011d3ca6d45b61a", "branch_name": "refs/heads/master", "committer_date": "2020-09-11T06:20:39", "content_id": "f2294b734d509261fd5b1c92705a950ec8b0a685", "detected_licenses": [ "MIT" ], "directory_id": "f3a4f41abba31f14eadb712c52d1119828b46f36", "extension": "c"...
stackv2
#include "iot_flash.h" #include "hal_config.h" /**获取flash可用的地址空间,返回的地址用来传入iot_flash_erase、iot_flash_write、iot_flash_read等接口。 *@param addrout: 返回可用flash地址 *@param lenout: 返回可用flash长度,单位为字节 *@return E_AMOPENAT_MEMD_ERR: 成功:OPENAT_MEMD_ERR_NO, 其余失败 *@note 该接口返回的地址是64KB对齐 返回的地址空间根据当前程序大小来确定。 **/ VOID iot_flash_ge...
2.546875
3
2024-11-18T21:41:53.920610+00:00
2022-06-07T18:31:24
22c952f0592e28ddbe1123551f4a274a6b30517c
{ "blob_id": "22c952f0592e28ddbe1123551f4a274a6b30517c", "branch_name": "refs/heads/main", "committer_date": "2022-06-07T18:31:24", "content_id": "fa1088186c7acf4f1cf170caf3bbe0ab56bca23e", "detected_licenses": [ "Apache-2.0", "MIT", "MIT-0" ], "directory_id": "4b61201d0582bf0eaea812484e11d2d1...
stackv2
/* * Sigamadelta Test: * 1. basic configuration test * 2. pin, duty, prescale test */ #include "unity.h" #include "test_utils.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/sigmadelta.h" TEST_CASE("SigmaDelta config test", "[sigma_delta]") { sigmadelta_config_t sigmadelta_cfg = {...
2.5
2
2024-11-18T21:41:54.267135+00:00
2020-09-09T21:14:28
007657724d2c5998049828a73d3c8774677f769b
{ "blob_id": "007657724d2c5998049828a73d3c8774677f769b", "branch_name": "refs/heads/master", "committer_date": "2020-09-09T21:14:28", "content_id": "dfb831022ef4d3b5f0a8d5043aa3f31218800033", "detected_licenses": [ "MIT" ], "directory_id": "72dd38e0918ccf0a9b3cd4122871c580a8a48f75", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "functions_q2.h" /* * Program name: decode.c * Author: Maaz Syed * Last Update: March 9th, 2020 * Function: This is the main for all the function in the second part * Compilation: make file * Execution: make file */ int main(int ar...
2.6875
3
2024-11-18T21:41:54.963868+00:00
2021-08-12T18:09:30
d03165006af5f3cd66059cbbc7d80058099b6dff
{ "blob_id": "d03165006af5f3cd66059cbbc7d80058099b6dff", "branch_name": "refs/heads/master", "committer_date": "2021-08-12T18:09:30", "content_id": "d33437cbb0742569d2d8d806f309627ad5203aab", "detected_licenses": [ "MIT" ], "directory_id": "359c32c1204993a5c130c57225cd883540737a12", "extension": "h"...
stackv2
/** \file * * \author Copyright 2000 Scott Fritzinger * * \note * 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 2 of the License, or (at your option) any later ve...
2.09375
2
2024-11-18T21:41:56.119174+00:00
2023-05-30T06:45:30
f0077031c9bf75f75c054066b49bb6c90eba9b86
{ "blob_id": "f0077031c9bf75f75c054066b49bb6c90eba9b86", "branch_name": "refs/heads/paging-demo", "committer_date": "2023-05-30T06:45:30", "content_id": "e35fd8d08222e3278fc3089137aba98d7805c166", "detected_licenses": [ "MIT" ], "directory_id": "07aeb5740a8dae36edf24e2686ff67e2959758fe", "extension"...
stackv2
#include <string.h> #include "gui_text_view.h" #include "gui_scrollbar.h" #include "libgui.h" #include "utils.h" gui_text_view_t* gui_text_view_alloc(void) { gui_text_view_t* v = calloc(1, sizeof(gui_text_view_t)); gui_text_view_alloc_dynamic_fields(v); return v; } void gui_text_view_alloc_dynamic_fields(gui_text...
2.296875
2
2024-11-18T21:41:56.275082+00:00
2018-01-07T19:49:04
d3eb7bef805541cfe0591b0bc2a95b2d5f08968b
{ "blob_id": "d3eb7bef805541cfe0591b0bc2a95b2d5f08968b", "branch_name": "refs/heads/master", "committer_date": "2018-01-07T19:49:04", "content_id": "df3094c9c59415c4125a237bdf437f4b0c090ae7", "detected_licenses": [ "MIT" ], "directory_id": "72e9f404c6f9b0fc3055c19acf57ea4ce0fb527b", "extension": "h"...
stackv2
// Draw.h void drawPixel(int x, int y, Color c) { }; // Draws a 4x4 block with top left corner at (x,y) void drawBlock4(int x, int y, Color color) { }; // Makes a frame somewhat transparent. void onionFrame(Frame frame) { };
2.046875
2
2024-11-18T21:41:56.427332+00:00
2021-06-06T15:20:46
c04d2a994b02288fd48ffb288f7c4a01f24cd564
{ "blob_id": "c04d2a994b02288fd48ffb288f7c4a01f24cd564", "branch_name": "refs/heads/master", "committer_date": "2021-06-06T15:20:46", "content_id": "f85e9266aba620f5dc65dd8bf61cd35a03a676bf", "detected_licenses": [ "MIT" ], "directory_id": "ed4d44ea2545d09181df26f4a5906e6c0dec655a", "extension": "h"...
stackv2
#ifndef ST7789_H_ #define ST7789_H_ #include <stdint.h> #include <hardware/spi.h> // SPI interface struct st7789_port { bool swap_endian; int spi; int dma; int tx_pin; int cs_pin; int dc_pin; int sck_pin; uint8_t madctl; }; typedef struct st7789_port st7789_port_t; struct st7789_buf {...
2.21875
2
2024-11-18T21:41:56.515930+00:00
2020-06-04T00:35:48
06f6f1eb0dcd0b3a9346bb8a4e579bf0ad0c49c8
{ "blob_id": "06f6f1eb0dcd0b3a9346bb8a4e579bf0ad0c49c8", "branch_name": "refs/heads/master", "committer_date": "2020-06-04T00:35:48", "content_id": "048093eff62f6c4ad88f2c8165c91cf86dba60a4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "5d673487f2d9bf276608cc1328fe43fd4c5429d8", "extensio...
stackv2
/** * (C) Copyright 2016-2018 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 l...
2.09375
2
2024-11-18T21:41:56.639309+00:00
2021-10-05T14:17:00
8061c2c6046bd4b2eadec786a8a9b23d179e0bd4
{ "blob_id": "8061c2c6046bd4b2eadec786a8a9b23d179e0bd4", "branch_name": "refs/heads/main", "committer_date": "2021-10-05T14:17:00", "content_id": "19a86a06208c36a9320a7b0879bd1d85b1dde38b", "detected_licenses": [ "MIT" ], "directory_id": "ed7d17a41c8a0209d47c761522d286c2b1072215", "extension": "c", ...
stackv2
#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // Structure for storing a graph struct Graph { int vertexNum; int **edges; }; // Constructs a graph with V vertices and E edges void createGraph(struct Graph *G, int V) { G->vertexNum = V; G->edges = (int **)malloc(V * siz...
3.859375
4
2024-11-18T21:41:56.772829+00:00
2018-03-11T07:41:39
3e5baa99977ff8d2102b814c19fe8b2c1701e6dd
{ "blob_id": "3e5baa99977ff8d2102b814c19fe8b2c1701e6dd", "branch_name": "refs/heads/master", "committer_date": "2018-03-11T07:41:39", "content_id": "dbd6b5f05b7b06d6a04ada0aac9caf0e8a82452c", "detected_licenses": [ "MIT" ], "directory_id": "be86672c219b4b4695888bb393292839777eb6d9", "extension": "c"...
stackv2
#include "apue.h" #include <unistd.h> #define BUFFER_SIZE 4096 int main(int argc, char* argv[]) { char buff[BUFFER_SIZE]; int n; while ((n = read(STDIN_FILENO, buff, BUFFER_SIZE)) > 0) { if (write(STDOUT_FILENO, buff, n) != n) err_sys("write error"); } if (n < 0) err_...
2.140625
2
2024-11-18T21:41:57.021447+00:00
2022-09-06T20:43:52
1a30c43059c12276f480bcff279b348ba2817dd4
{ "blob_id": "1a30c43059c12276f480bcff279b348ba2817dd4", "branch_name": "refs/heads/master", "committer_date": "2022-09-06T20:43:52", "content_id": "00b119c9ab033717003b4566ca7fdb6f07da2fc2", "detected_licenses": [ "Unlicense" ], "directory_id": "3d5f6d704b151a2886a9e128eee2f4467bf98d2d", "extension...
stackv2
//Write a C program to find the factors of a given integer. #include(stdio.h> #include(conio.h) void main( ) { int no,x; clrscr( ); printf("Enter the required number:"); scanf("%d",&no); printf("\nThe factors are:"); for(x=1; x<=no; x++) { if(no%x==0) printf("\n%d",x); } getch( ); } Output:- Enter the required number...
3.46875
3
2024-11-18T21:41:57.201987+00:00
2019-11-06T15:32:59
abca69e7a341a492c77f1759fcc4d6b56fbc16c1
{ "blob_id": "abca69e7a341a492c77f1759fcc4d6b56fbc16c1", "branch_name": "refs/heads/master", "committer_date": "2019-11-06T15:32:59", "content_id": "7812a1b1735f390b3544fd4cf054169fc585b0a1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9f74f22d1ed6ae77b82f2154cacf25b9c73c9938", "extensio...
stackv2
/* CP16_22.C */ /* Changing Current directory */ #include <stdio.h> #include <string.h> #include <dir.h> #include <dos.h> #define CF 1 /* Carry flag */ int main(void) { char directory[80]; struct REGPACK reg; getcwd(directory, 100); printf("Current directory is : %s\n", directory); printf(...
2.890625
3
2024-11-18T21:41:57.411149+00:00
2021-01-12T17:40:12
ef5449437b9706f94216c816534cd42569a255cd
{ "blob_id": "ef5449437b9706f94216c816534cd42569a255cd", "branch_name": "refs/heads/main", "committer_date": "2021-01-12T17:40:12", "content_id": "c4c5ad918dcebfca037ef616b4d33d5bd1f3cb49", "detected_licenses": [ "MIT" ], "directory_id": "d03cc4c203bb9fdf3e758f954552c734ce067356", "extension": "c", ...
stackv2
#include <lcom/lcf.h> #include <lcom/lab3.h> #include "i8042.h" #include "i8254.h" #include "keyboard.h" #include "utils.h" #include "timer.h" #include <stdbool.h> #include <stdint.h> extern uint8_t keyScanned; extern uint32_t sysCounter; extern uint8_t size; extern int kbc_hook_id; extern int counter; int main(int...
2.34375
2
2024-11-18T21:41:57.746637+00:00
2020-10-27T17:48:53
aca4b50acaaf849b27e31104ed444a37e7dc914e
{ "blob_id": "aca4b50acaaf849b27e31104ed444a37e7dc914e", "branch_name": "refs/heads/master", "committer_date": "2020-10-27T17:48:53", "content_id": "4d9a28980b15ba34459234c151a44a6c10f94040", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3b66c775b1884af2e2c4535c244e90f39077da8f", "extensio...
stackv2
// Copyright 2016-2019 Coffee Stain Studios. All Rights Reserved. #pragma once /** * A collection of unit conversions to make code more readable. */ struct FUnits { /** Distance */ static FORCEINLINE float CmToM( float cm ) { return cm / 100.0f; } static FORCEINLINE float MToCm( float m ) { return m * 100.0f; } ...
2.5625
3
2024-11-18T21:41:57.842633+00:00
2017-10-10T11:31:43
0137508faeeb71a400d3463ef1da69de2c2d5d84
{ "blob_id": "0137508faeeb71a400d3463ef1da69de2c2d5d84", "branch_name": "refs/heads/master", "committer_date": "2017-10-10T11:31:43", "content_id": "eb8ae6ace03823cc0f901a9059c20196b397e6a3", "detected_licenses": [ "MIT" ], "directory_id": "a3cda01492c262b2b0c92963cb436e22b2beb4c4", "extension": "h"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* mem.h :+: :+: :+: ...
2.171875
2
2024-11-18T21:41:57.949965+00:00
2017-01-07T00:39:18
b7b85f57ab0eb622a2a3b03de4606fd3624e578a
{ "blob_id": "b7b85f57ab0eb622a2a3b03de4606fd3624e578a", "branch_name": "refs/heads/master", "committer_date": "2017-01-07T00:39:18", "content_id": "752873f16c9423fa3d571ec7cd2fe1cd08630028", "detected_licenses": [ "MIT" ], "directory_id": "77ec8812cc5287c2f9d0c956d582e6299b19adc1", "extension": "h"...
stackv2
#ifndef PERSONNAGE_H_INCLUDED #define PERSONNAGE_H_INCLUDED void jump (SDL_Surface *ecran, Informations *infos, Son *musique, Parametres *settings);//Gere le saut du personnage principal. void move_right (Informations *infos);//Gere le mouvement du personnage principal vers la droite. void move_left (Informations *inf...
2.4375
2
2024-11-18T21:42:00.013086+00:00
2021-03-17T16:34:57
5f5a570fc6ef4977f7a7347d712f17f515dba2a4
{ "blob_id": "5f5a570fc6ef4977f7a7347d712f17f515dba2a4", "branch_name": "refs/heads/master", "committer_date": "2021-03-17T16:34:57", "content_id": "f64d8aedf0743bfd71da2728b858ad877ac2dac7", "detected_licenses": [ "MIT" ], "directory_id": "998c8d4a03fcb0384af4c5f6b34ea7a6cac98ba1", "extension": "h"...
stackv2
#ifndef __LISTGRAPH_H__ #define __LISTGRAPH_H__ #include "LinkedList.h" typedef struct { LinkedList **neighbors; /* Listele de adiacenta ale grafului */ int nodes; /* Numarul de noduri din graf. */ } ListGraph; void init_list_graph(ListGraph *graph, int nodes); void add_edge_list_gr...
2.125
2
2024-11-18T21:42:00.114673+00:00
2020-05-09T00:01:05
a7f05267c7fca5d3a438958dcbd078c994ed1c4f
{ "blob_id": "a7f05267c7fca5d3a438958dcbd078c994ed1c4f", "branch_name": "refs/heads/master", "committer_date": "2020-05-09T00:01:05", "content_id": "4ac396f5a00a58b02d1d08388093d3db076063c4", "detected_licenses": [ "MIT" ], "directory_id": "6fc1d15289393775793c9cf687b60a04bd160db7", "extension": "h"...
stackv2
/** * @file utils.h * @brief Utility functions * @author Xiangyu Guo */ #ifndef __UTILS_H__ #define __UTILS_H__ /** * @brief get tsc timestamp. * @return a tsc timestamp in unsigned long */ static __always_inline unsigned long long rdtsc(void) { DECLARE_ARGS(val, low, high); asm volatile("rdtsc...
2.0625
2
2024-11-18T21:42:00.294802+00:00
2020-09-07T08:22:49
d1e0043153038f964e2efa7c7b06352de9433e50
{ "blob_id": "d1e0043153038f964e2efa7c7b06352de9433e50", "branch_name": "refs/heads/master", "committer_date": "2020-09-07T08:22:49", "content_id": "b43bf2c11594a521f8726a5aee1bcb4c936133f0", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "69ab4dad4dbaafef5e6ab7bab9ca9bf9865403a4", "extens...
stackv2
#include "xvpi.h" #include "xvpi_elaborate.h" static int clear_toplevel_module_property (PLI_BYTE8 *module_name) { struct xvpi_object *module = (struct xvpi_object *) vpi_handle_by_name(module_name, NULL); if (module) { struct xvpi_object *toplevel_property = xvpi_object_get_child_or_create(module, vpiTopModule, x...
2.234375
2
2024-11-18T21:42:01.382387+00:00
2016-09-22T17:28:47
ffd77c085faf733954ff680b22bbc737d7e95f68
{ "blob_id": "ffd77c085faf733954ff680b22bbc737d7e95f68", "branch_name": "refs/heads/master", "committer_date": "2016-09-22T17:28:47", "content_id": "d64bd64ef1030f3455a49d89a4370367c2897590", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d46604f16716c0bd1f66cca192149770746ee148", "extens...
stackv2
/* * Copyright (c) 2012 Christoph Niethammer <christoph.niethammer@googlemail.com> * * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER */ #define ENSEMBLE_SRC #include "ensemble.h" #include "typedefs.h" #include "utils/logger.h" #include <stdio.h> //ensemble_t ensemble; /* global energie...
2.09375
2
2024-11-18T21:42:01.478026+00:00
2013-11-18T23:46:04
90f9b8ac8dde1d5fc8b65e1f675604ae6ad3ac7a
{ "blob_id": "90f9b8ac8dde1d5fc8b65e1f675604ae6ad3ac7a", "branch_name": "refs/heads/master", "committer_date": "2013-11-18T23:46:04", "content_id": "c40c54de626521f7a8642f1efda0b3ce74015887", "detected_licenses": [ "MIT" ], "directory_id": "d9582297fd97be7e918aa57b423a7a12bd44ab2c", "extension": "c"...
stackv2
/*****************************************************************/ /* Computacao Cientifica - EEL 7021 /* Grupo 11A /* Daniel Gomes de Pinho Zanco Matricula: 13100574 /* Mateo Daniel Roig Greidanus Matricula: 13100601 /* T2 /***************************************************...
3.59375
4
2024-11-18T21:42:01.657387+00:00
2016-06-10T23:28:13
fa11a4e3eb419fcf85432c5e3375a4db54901aa1
{ "blob_id": "fa11a4e3eb419fcf85432c5e3375a4db54901aa1", "branch_name": "refs/heads/master", "committer_date": "2016-06-10T23:28:13", "content_id": "8f89103e4f344af94d9a96c91496e9bec026666c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0661129a3714fee729d447ad074e429e30569a01", "extensio...
stackv2
#include "single_linked.h" #define NR(x) ((sizeof(x))/sizeof(x[0])) #define MAP_LENGTH 26 #define ITEM_SIZE 128 /** * test struct */ typedef struct ITEM_DICT{ char en[ITEM_SIZE]; char ch[ITEM_SIZE]; }item_dict; /** * callback function */ void print(void* data); int compare(void* data, single_l...
2.796875
3
2024-11-18T21:42:01.798333+00:00
2020-06-11T07:42:00
dd588fd593eab6818d8250830377c6d88672fd77
{ "blob_id": "dd588fd593eab6818d8250830377c6d88672fd77", "branch_name": "refs/heads/master", "committer_date": "2020-06-11T07:42:00", "content_id": "012284160ba391c43e05358939a74e58523a8907", "detected_licenses": [ "MIT" ], "directory_id": "49efdb90fae2f61c72d441d54d47b2e0d4263771", "extension": "c"...
stackv2
#include <yuno.h> #include <windows.h> static HANDLE get_current_thread (){ reset_yunoerror(); DWORD currentthreadid = GetCurrentThreadId(); HANDLE currentthread = OpenThread(THREAD_ALL_ACCESS, FALSE, currentthreadid); if (currentthread == NULL){ set_yunoerror(YUNOOS_ERROR); return NULL; } return currentthre...
2.265625
2
2024-11-18T21:42:01.922763+00:00
2023-07-14T10:13:16
ef3974274c3714693b495994684279fd5d0c8428
{ "blob_id": "ef3974274c3714693b495994684279fd5d0c8428", "branch_name": "refs/heads/master", "committer_date": "2023-07-14T10:13:16", "content_id": "de3ec2e2f5ec52832042d0c53cb1586691c902bc", "detected_licenses": [ "Zlib", "Apache-2.0" ], "directory_id": "35ddd0f3036ac38423ded0435cd4b595f5dab31c",...
stackv2
/* * ddd.c - double dd (version 2) * * Copyright 1988 Helsinki University of Technology. * All rights reserved. * * Permission granted to distribute, use and modify * this code for uncommercial purposes, provided * that this copyright notice is not changed. * * Author: Tapani Lindgren (nispa@cs.hut.fi) * * ...
2.609375
3
2024-11-18T21:42:02.028479+00:00
2020-10-08T16:39:56
ff96073e861feba40e49e8b4cf9b6ceffb05ee88
{ "blob_id": "ff96073e861feba40e49e8b4cf9b6ceffb05ee88", "branch_name": "refs/heads/master", "committer_date": "2020-10-08T16:39:56", "content_id": "adfbfc747ddbb92c27a9ec69c0d2e023b632c934", "detected_licenses": [ "MIT" ], "directory_id": "b21342ea76e087bceb43eff033791b2efc5fc0e1", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include "helpers.h" #include "sw.h" #include "swGotoh.h" #include "swParallel.h" void run_sw(char *seq1, unsigned long len1, char *seq2, unsigned long len2) { BestCell bestCell = (BestCell) {0, 0, 0}; CellDecision** decisions = s...
2.421875
2
2024-11-18T21:42:02.359903+00:00
2022-01-02T22:10:04
b5e13007cc84ae8d21bc5b60149f546fc4639b14
{ "blob_id": "b5e13007cc84ae8d21bc5b60149f546fc4639b14", "branch_name": "refs/heads/master", "committer_date": "2022-01-02T22:10:04", "content_id": "8e92b5c63d68058b3f72d3c6aa3177ace4e1c099", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "5bb8e08e2d2bff503b4425cffe2e60dc32499089", "extens...
stackv2
#pragma once #include "uthash.h" typedef struct { double x; double y; } Point; Point initPoint(double *points); void pointPrint(Point p); Point pointAdd(Point p1, Point p2); Point pointSubtract(Point p1, Point p2); double pointDot(Point p1, Point p2); typedef struct { Point i; Point j; Point k; } Triangle;...
2.0625
2
2024-11-18T21:42:02.916058+00:00
2018-11-01T19:31:12
2679665699d588c29677adfaf0527a9884424da1
{ "blob_id": "2679665699d588c29677adfaf0527a9884424da1", "branch_name": "refs/heads/master", "committer_date": "2018-11-01T19:31:12", "content_id": "ff22615bd6f52d2400ad8619730d72168358ecf9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "513f44ebd8b7efbf2b6986fa57a023d43e71f8df", "extensio...
stackv2
#include "types.h" const char *operator_str[NUM_OPERATORS] = { "+", "-", "*", "/", // Arithmetic "==", "!=", ">", ">=", "<", "<=", // Relational "&&", "||", "!", // Logical "&", "|", "^", "~", // Binary "-", "&", "*", "++", "++", "--", "--", // Unary/postfix/ptr "=", "+=", "-=", "*=", "/=", // Assignment "inval...
2.90625
3
2024-11-18T21:42:03.008290+00:00
2019-08-27T13:23:40
347d0252dd993700864fe76509006f11a6387951
{ "blob_id": "347d0252dd993700864fe76509006f11a6387951", "branch_name": "refs/heads/master", "committer_date": "2019-08-27T17:21:55", "content_id": "cf97cf21943d889fba19eca3222484f57b3b3719", "detected_licenses": [ "MIT" ], "directory_id": "a08071f906b7eb291d6e9194616a8a8ca0518248", "extension": "c"...
stackv2
/*****************************************************************\ |IAED 2016/17 Projeto 2 - entradas/saidas de produtos num armazem |Ficheiro: main.c | |Livio Mendes Costa |Rafael Pestana de Andrade \*****************************************************************/ # include "ADT.h" void funcao_a(link armazem[DIM_...
2.984375
3
2024-11-18T21:42:03.251491+00:00
2016-04-25T03:08:39
9c4ad1391ecb6c837c4fc6eb0e833c3b1f00efb0
{ "blob_id": "9c4ad1391ecb6c837c4fc6eb0e833c3b1f00efb0", "branch_name": "refs/heads/master", "committer_date": "2016-04-25T03:08:39", "content_id": "1ead342a75eb317b9c1a410a16668fb2b43f60f4", "detected_licenses": [ "MIT" ], "directory_id": "aa6e0b1c20c7f29a26ef51eda0ec2fc8848c525c", "extension": "h"...
stackv2
/** ****************************************************************************** * @file Thread_Temp.h * @author Auguste Lalande, Felix Dube, Juan Morency Trudel * @version 1.0.0 * @date 16-March-2016 * @brief Implement a thread for temperature monitoring ***************************************...
2.109375
2
2024-11-18T21:42:03.406820+00:00
2023-08-04T12:40:00
9795bff802aaef05e361e13daef78eb3c1608381
{ "blob_id": "9795bff802aaef05e361e13daef78eb3c1608381", "branch_name": "refs/heads/master", "committer_date": "2023-08-04T12:40:00", "content_id": "c547216f3a9efba0b81cad460553ea50c6aefb62", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "5e4913b3d7b6dfd9f35d9e5f24486bb6b6145125", "extens...
stackv2
/** * @file * * @brief Tests for mmapstorage_crc plugin variant * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) * */ #define _XOPEN_SOURCE 600 /* -- Imports --------------------------------------------------------------------------------------------------------------------------- */ #...
2.359375
2
2024-11-18T21:42:03.496342+00:00
2023-08-01T23:53:31
0519d6f76e5d3c27c9170b276e3d94c83b52bace
{ "blob_id": "0519d6f76e5d3c27c9170b276e3d94c83b52bace", "branch_name": "refs/heads/master", "committer_date": "2023-08-01T23:53:31", "content_id": "481e76577276037a303b83b4085264772a70202c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3bb8fba898d392412653bf564b53f3362edc5af8", "extensio...
stackv2
#include <stdint.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "vtest/IShip.h" #include "vtest/Firefly.h" #include "vtest/cMakeShip.h" vtest_IShip vtest_cMakeShip() { vtest_Firefly* firefly = (vtest_Firefly*)malloc(sizeof(vtest_Firefly)); firefly->fuel = 42; // If the enum isnt 64 bits...
2.46875
2
2024-11-18T21:42:04.995914+00:00
2020-02-13T04:21:42
b5f2a0a323aa087825045e28d818ec085f858a12
{ "blob_id": "b5f2a0a323aa087825045e28d818ec085f858a12", "branch_name": "refs/heads/master", "committer_date": "2020-02-13T04:21:42", "content_id": "9fcafbe3edb7597f12f0dc6be258b9bad5c089d5", "detected_licenses": [ "MIT" ], "directory_id": "a99da288d25a49356d4751c9b7d9823ac022b24f", "extension": "c"...
stackv2
/* 二叉树链式存储 */ #include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node *lchild, *rchild; } TreeNode; int main(void) { TreeNode *parent = (TreeNode *)malloc(sizeof(TreeNode)); parent->data = 1; parent->lchild = (TreeNode *)malloc(sizeof(TreeNode)); parent->lchild->dat...
3.296875
3
2024-11-18T21:42:05.187273+00:00
2020-09-15T00:21:21
1668eacf0e34c29042c18bcb18e5f75fdf32636e
{ "blob_id": "1668eacf0e34c29042c18bcb18e5f75fdf32636e", "branch_name": "refs/heads/master", "committer_date": "2020-09-15T00:21:21", "content_id": "25fe254727febbe9a370dc4ca434a415b57a0dfb", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d716619184c48465157624564d498e8a9b94dba3", "extensio...
stackv2
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> int main() { pid_t pid; /* cria outro processo */ pid = fork(); if (pid < 0) { /* ocorrência de erro*/ fprintf(stderr, "Criação Falhou"); exit(-1); } else if (pid == 0) { /* processo filho*/ printf("Esta ...
2.890625
3
2024-11-18T21:42:05.629760+00:00
2021-11-08T03:26:00
632ef59bfa76a4a3696c21f5b76cedf4ae93b458
{ "blob_id": "632ef59bfa76a4a3696c21f5b76cedf4ae93b458", "branch_name": "refs/heads/master", "committer_date": "2021-11-08T03:26:00", "content_id": "338e6d08e875c1fbed2494e4db5c808af46a37cd", "detected_licenses": [ "MIT" ], "directory_id": "e2897f9663aa39e689fff6491165e118db905718", "extension": "c"...
stackv2
// break문을 이용해 전체 반복문 빠져나오기 #include <stdio.h> // break는 자신이 포함된 반복문을 종료시키는 기능 /* 하지만 break로 반복문을 종료하는 효과는 하나의 반복문에만 미치기 때문에, 중첩된 반복문에서도 하나의 반복문에만 적용된다. */ main() { int m, n; for (m = 5; m < 7; m++) { for (n = 0; n < 3; n++) { if (m == 5 && n == 1) { break; // n을 사용하는 반복문에서 break문으로 빠져나와서 } print...
3.828125
4
2024-11-18T21:42:05.705658+00:00
2020-11-01T19:43:18
b64a1e63a65c9e2ac806c27810cd49cc549964ac
{ "blob_id": "b64a1e63a65c9e2ac806c27810cd49cc549964ac", "branch_name": "refs/heads/master", "committer_date": "2020-11-01T19:43:18", "content_id": "12a54d5a8de269d231a791d1a736f2f67adf85f4", "detected_licenses": [ "MIT" ], "directory_id": "a24dfc70d53214df3997d7bfab55e3f08be066b7", "extension": "c"...
stackv2
// ESP32 component for TCP/IP utilities over WiFi and Ethernet // Rina Shkrabova, 2018 // // 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 "tcpip.h" #define TAG "TCP/I...
2.1875
2
2024-11-18T21:42:06.065491+00:00
2021-04-19T15:39:18
f8970cc32f1eda312c96ccf36f26ba1704a1ecc2
{ "blob_id": "f8970cc32f1eda312c96ccf36f26ba1704a1ecc2", "branch_name": "refs/heads/master", "committer_date": "2021-04-19T15:39:18", "content_id": "fe32ee45db4d4d43be36aad8bcf1ee3ba668cb51", "detected_licenses": [ "MIT" ], "directory_id": "7e2c2c3fd1a521ef39ada9698c6c53602f3953a5", "extension": "c"...
stackv2
/* -*- coding: utf-8-unix -*- */ #include <il/term_graph_easy.h> #include <vm/vm.h> #include <testit.h> /** * \brief Tests the code returns expected value. * * This testcase run the VM code similar to the below Haskell code: * ~~~haskell * let f = \\a b -> F a b in * let x = LHS in * let y = RHS in * ...
2.625
3
2024-11-18T21:42:06.516691+00:00
2018-05-30T21:57:54
a3874853dedefa4a6e55dcaa5ab7198f13877a10
{ "blob_id": "a3874853dedefa4a6e55dcaa5ab7198f13877a10", "branch_name": "refs/heads/master", "committer_date": "2018-05-30T21:57:54", "content_id": "3fed1f890cb89527bd1b1a087a9c0925089482cb", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "ca0b02d38560f039706bdc0d6c663d2181fec2ce", "extens...
stackv2
/* #ifndef __GRAPHICS_H__ #define __GRAPHICS_H__ #include <stdint.h> #include <stdbool.h> typedef struct graphics graphics_t; typedef struct font font_t; typedef struct triangle_tree triangle_tree_t; struct graphics { int xres; int yres; uint16_t *backbuffer; uint16_t *frontbuffer; int cursor_x, cursor_y, ...
2.28125
2
2024-11-18T21:42:06.779380+00:00
2023-06-02T14:07:14
1f61a683a889fa7ea987c62bee828122c3bf8927
{ "blob_id": "1f61a683a889fa7ea987c62bee828122c3bf8927", "branch_name": "refs/heads/master", "committer_date": "2023-06-02T14:07:14", "content_id": "526d54837893d97f0be6f2fc5e2f357e24d4f30f", "detected_licenses": [ "MIT" ], "directory_id": "9c35ef820cbfcaa47557114883501a631b2b3fa0", "extension": "h"...
stackv2
/** * MIT License * * Copyright (c) 2018 Américo Dias <americo.dias@gmail.com> * * 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 ...
2.046875
2
2024-11-18T21:42:08.273126+00:00
2021-03-15T08:50:26
cb05c7c00248e9b7d4e8e08780b31c275e48a30e
{ "blob_id": "cb05c7c00248e9b7d4e8e08780b31c275e48a30e", "branch_name": "refs/heads/master", "committer_date": "2021-03-22T12:09:52", "content_id": "40350217dde90a87d221c0bad590b05547e6e159", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c01fe30c83296efe90153a7a20e118900c8363a0", "extens...
stackv2
/**************************************************************************/ /* */ /* jfg_lib.h Version 2.01 Copyright (c) 1998-2000 Jan E. Mortensen */ /* */ /*...
2
2
2024-11-18T21:42:09.471944+00:00
2019-06-15T11:02:49
3e9b20ce011d165d0655968413e62d841f9d3445
{ "blob_id": "3e9b20ce011d165d0655968413e62d841f9d3445", "branch_name": "refs/heads/master", "committer_date": "2019-06-15T11:36:58", "content_id": "1223255386d72d374625fb05085460d7376b51bf", "detected_licenses": [ "MIT" ], "directory_id": "c8390b31f98d53e4b1b95b554d3816b3fd7cb5b6", "extension": "c"...
stackv2
#include "timer.h" #include <helpers.h> #include <io.h> #include <isr.h> #include <logger.h> /* Define a macro for timer interrupt */ #define IRQ0 32 #define PIT_DEFAULT_CLOCK 1193180 #define PIT_COMMAND_PORT 0x43 #define PIT_CHANNEL0_DATA 0x40 /* PIT command register has the following fields * * name | value | siz...
2.984375
3
2024-11-18T21:42:10.204761+00:00
2023-03-22T07:10:22
ed69b455236af2ec9a1b308180b7764e17636a33
{ "blob_id": "ed69b455236af2ec9a1b308180b7764e17636a33", "branch_name": "refs/heads/master", "committer_date": "2023-03-22T07:10:22", "content_id": "ea178a6abbf7f5385267e239ab5de56fd2f621d9", "detected_licenses": [ "MIT" ], "directory_id": "7e2cd12fb6eac8b562c9d041e487a30ab4e2da37", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_malloc.c :+: :+: :+: ...
2.25
2
2024-11-18T21:42:10.364649+00:00
2023-08-12T20:53:56
73bf5592f8d63e37108eedcb7499c6c113dd36c6
{ "blob_id": "73bf5592f8d63e37108eedcb7499c6c113dd36c6", "branch_name": "refs/heads/master", "committer_date": "2023-08-12T20:53:56", "content_id": "b6ba7bd2a781a15fa6adca23678b1def70b7fc1d", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "6799592f780197259b8217c70c7f905da233a2ed", "extens...
stackv2
#ifndef _MODULE_DEF_H_ #define _MODULE_DEF_H_ #define MODULE_EXPORT __stdcall struct ProgressContext { char szFilePath[MAX_PATH]; int nCurrentFileNumber; __int64 nCurrentFileSize; int nTotalFiles; __int64 nTotalSize; __int64 nProcessedFileBytes; __int64 nTotalProcessedBytes; int nCurrentProgress; Progress...
2.03125
2
2024-11-18T21:42:10.500911+00:00
2021-02-02T04:29:46
6722c648163433d8a6e71d0c8ca03ce374343000
{ "blob_id": "6722c648163433d8a6e71d0c8ca03ce374343000", "branch_name": "refs/heads/master", "committer_date": "2021-02-02T04:29:46", "content_id": "3bd66a52903b51aded4f461c458df6e16ce7a44c", "detected_licenses": [ "MIT" ], "directory_id": "9cbfded70ffc84c95bd6bdb03a5914449ebc9e70", "extension": "h"...
stackv2
/** * Copyright (C) 2013-2015 * * @author jxfengzi@gmail.com * @date 2013-11-19 * * @file WebSocketFrame.h * * @remark * set tabstop=4 * set shiftwidth=4 * set expandtab */ #ifndef __WEB_SOCKET_FRAME_H__ #define __WEB_SOCKET_FRAME_H__ #include <tiny_base.h> TINY_BEGIN_DECLS /** * 0 ...
2.09375
2
2024-11-18T21:42:10.799114+00:00
2020-03-19T23:33:56
3385220a6522002520aeaa666e698c8f10f0b681
{ "blob_id": "3385220a6522002520aeaa666e698c8f10f0b681", "branch_name": "refs/heads/master", "committer_date": "2020-03-19T23:33:56", "content_id": "658d12a6415e3aac4c553cb6e3ed43ef371b7d85", "detected_licenses": [ "MIT" ], "directory_id": "e3667f05e1ae78e118ca5fbead81f8a1a881e0b0", "extension": "c"...
stackv2
/* * ECE 153B - Winter 2020 * * Names: Benigno Ortega, Javier Jimenez * Section: T 7-9:50 */ #include "LED_Matrix.h" #include "SPI.h" void LED_Matrix_Init(void) { //SPI Initialization SPI1_GPIO_Init(); SPI_Init(); //LED Matrix Initialization LED_CS_Init(); initializeLEDMatrix(); Clear_LED_Matrix(); }...
2.4375
2
2024-11-18T21:54:06.684438+00:00
2020-08-14T02:29:37
2261dd061dcea76ee7595a314c2775fd89044032
{ "blob_id": "2261dd061dcea76ee7595a314c2775fd89044032", "branch_name": "refs/heads/master", "committer_date": "2020-08-14T02:29:37", "content_id": "eb971920a4251a7a5409a33f83e03c1002467697", "detected_licenses": [ "Unlicense" ], "directory_id": "75d56788c3a2a69acec2487d6f36e23126083a28", "extension...
stackv2
#include "basics.h" double sq( double a ){ return a * a; } double logarithm( double base, double x ){ return log2( x ) / log2( base ); } int random( int min, int max ){ return (rand() % (max-min)) + min; } double random_angle(){ // RAND_MAX : 32767 return 6.283185 * ( rand() / 32767.0 ); } double lerp(d...
2.578125
3
2024-11-18T21:54:06.898445+00:00
2018-10-10T02:25:09
1ab7040fa341ec434b9129154bdc6ef54c04d20a
{ "blob_id": "1ab7040fa341ec434b9129154bdc6ef54c04d20a", "branch_name": "refs/heads/master", "committer_date": "2018-10-10T02:28:03", "content_id": "15532e507e3c7b04fcb4298537a77920751fa716", "detected_licenses": [ "MIT" ], "directory_id": "56a01721a90b83844c11433438e017dd7e053101", "extension": "h"...
stackv2
/******************************************************************************************** * SIDH: an efficient supersingular isogeny-based cryptography library for ephemeral * Diffie-Hellman key exchange. * * Copyright (c) Microsoft Corporation. All rights reserved. * * * Abstract: internal header file * ...
2.3125
2
2024-11-18T21:54:07.100319+00:00
2021-07-01T16:06:05
2331f826ebd7638ea860feea9ddf35bd3f283c2a
{ "blob_id": "2331f826ebd7638ea860feea9ddf35bd3f283c2a", "branch_name": "refs/heads/main", "committer_date": "2021-07-01T16:06:05", "content_id": "aff63f0ffde025c8397a251b1f2c8ef876f2aafa", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "9aba9f9cbfee9e71f0496024842ea9f9607b4996", "extensio...
stackv2
#include <linux/uaccess.h> #include <linux/proc_fs.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/cred.h> #include <linux/fs.h> #include <linux/ioctl.h> #include <linux/delay.h> #define PWN_LOGIN _IO('p', 1) #define PWN_ADMIN _IO('p', 2) #define PWN_SUDO _IO('p', 3) #define PWN_LOGOUT _IO('p', ...
2.265625
2
2024-11-18T21:54:07.311037+00:00
2020-01-30T15:52:16
5dec02e65a276a20a4bce6811d84538d33044f38
{ "blob_id": "5dec02e65a276a20a4bce6811d84538d33044f38", "branch_name": "refs/heads/master", "committer_date": "2020-01-30T15:52:16", "content_id": "077baa4968bbb963293b6c7a4c7a1fcc6e922227", "detected_licenses": [ "MIT" ], "directory_id": "40de3da30239862f11a946166b50438174c2fd4e", "extension": "c"...
stackv2
inherit "obj/monster"; reset(arg) { int a; a = random(3); ::reset(arg); if (arg) return; set_animal(1); set_name("bear"); set_alias("bear"); switch(a) { case 0 : set_level(28+random(3)); set_short("A gigantic bear eating berries."); set_gender(1); set_alt_name("bear"); break; case 1 : set_level(28+random(3)); set_sho...
2
2
2024-11-18T21:54:07.578481+00:00
2023-08-11T13:02:43
08cd83c11adaa2fea0d56deb120bf1a96d32eecb
{ "blob_id": "08cd83c11adaa2fea0d56deb120bf1a96d32eecb", "branch_name": "refs/heads/master", "committer_date": "2023-08-11T13:02:43", "content_id": "cd5508dacb03af9c836ddfa3e6cdd53ba18a70f8", "detected_licenses": [ "MIT" ], "directory_id": "751d837b8a4445877bb2f0d1e97ce41cd39ce1bd", "extension": "c"...
stackv2
/* The Utopian Tree goes through 2 cycles of growth every year. Each spring, it doubles in height. Each summer, its height increases by 1 meter. Laura plants a Utopian Tree sapling with a height of 1 meter at the onset of spring. How tall will her tree be after n growth cycles? For example, if the number of growth c...
3.265625
3
2024-11-18T21:54:07.683390+00:00
2021-10-20T21:00:27
eb4fce7b7418fc1894e4c84908b46c0232ba8b7d
{ "blob_id": "eb4fce7b7418fc1894e4c84908b46c0232ba8b7d", "branch_name": "refs/heads/main", "committer_date": "2021-10-20T21:00:27", "content_id": "2f38cc673e00bf190ae836791fc78f15340371ea", "detected_licenses": [ "Apache-2.0" ], "directory_id": "026e19229b7c6d207bceb2eccbd268c29ee1bfc5", "extension"...
stackv2
/* * main.c * * Created on: 2021年9月14日 * Author: NekoSilverfox */ #include <stdio.h> #include "xparameters.h" //器件参数信息 #include "xgpiops.h" //包含PS GPIO的函数 #include "sleep.h" //包含sleep()函数 #define GPIO_DEVICE_ID XPAR_XGPIOPS_0_DEVICE_ID //连接到MIO的LED #define MIO50_LED1 50 /* 核心板PS端LED *...
2.84375
3
2024-11-18T21:54:08.165409+00:00
2019-10-06T13:24:55
ca21013747fa6a206bc0c43ca052bbd9fdf0f9a9
{ "blob_id": "ca21013747fa6a206bc0c43ca052bbd9fdf0f9a9", "branch_name": "refs/heads/master", "committer_date": "2019-10-06T13:24:55", "content_id": "da4a7859bcf33c9e8067db97b6a0649647c9fbe6", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "625c31c5ced96747b095877ea827f58c9131d4cc", "extens...
stackv2
/// @file /// @version 3.0 /// /// @section LICENSE /// /// This program is free software; you can redistribute it and/or modify it under /// the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause /// /// @section DESCRIPTION /// /// Defines macros for easier code generation of a timed affector. ...
2.09375
2
2024-11-18T21:54:08.277368+00:00
2017-07-07T23:06:45
5ab39c21346a2ca426b984b781b4111bbcfc1714
{ "blob_id": "5ab39c21346a2ca426b984b781b4111bbcfc1714", "branch_name": "refs/heads/master", "committer_date": "2017-07-07T23:06:45", "content_id": "05bdb85810e70683676bd40dbcf3b1db04fe2768", "detected_licenses": [ "MIT" ], "directory_id": "29010b118245b46351b78273df1c07fe732b4c32", "extension": "c"...
stackv2
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdio.h> #include <stdlib.h> /* This sample uses the _LL APIs of iothub_client for example purposes. That does not mean that HTTP only works with the _LL ...
2.15625
2
2024-11-18T21:54:08.656327+00:00
2019-06-07T00:18:13
00815b8589c37ef016d07015eb0af111db18f667
{ "blob_id": "00815b8589c37ef016d07015eb0af111db18f667", "branch_name": "refs/heads/master", "committer_date": "2019-06-07T00:18:13", "content_id": "7d6b1cc61ed8830b51c307f82345b74e1428eeee", "detected_licenses": [ "MIT" ], "directory_id": "8c50c4e3c8431815f1e2cedf1aeae4c200cd6136", "extension": "c"...
stackv2
/* ** Copyright 1998-2003 University of Illinois Board of Trustees ** Copyright 1998-2003 Mark D. Roth ** All rights reserved. ** ** extract.c - libtar code to extract a file from a tar archive ** ** Mark D. Roth <roth@uiuc.edu> ** Campus Information Technologies and Educational Services ** University of Illinoi...
2.4375
2
2024-11-18T21:54:08.743080+00:00
2017-06-13T13:28:43
6b065e2a523de90c8fe41e957c7b78702ed18a6d
{ "blob_id": "6b065e2a523de90c8fe41e957c7b78702ed18a6d", "branch_name": "refs/heads/master", "committer_date": "2017-06-13T13:28:43", "content_id": "4a5ffd46ca946a7731b7fa1e411202e86d48f22d", "detected_licenses": [ "MIT" ], "directory_id": "d8f42698cef6ad5bcdc18cd2ec75b0f75c1b381c", "extension": "c"...
stackv2
#include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/moduleparam.h> static char *charp_arg = "hello"; static int arr_arg[10] = {0}; static int arr_argc = 0; module_param(charp_arg, charp, 0644); module_param_array(arr_arg, int, &arr_argc, 0644); static int __init param_init(vo...
2.46875
2
2024-11-18T21:54:09.476328+00:00
2020-06-14T07:50:50
22b4adc4e3fcaa7050037fe09f87648e511f0978
{ "blob_id": "22b4adc4e3fcaa7050037fe09f87648e511f0978", "branch_name": "refs/heads/master", "committer_date": "2020-06-14T07:50:50", "content_id": "d05d807b0291cb93a891141102275fe515af1da2", "detected_licenses": [ "MIT" ], "directory_id": "70c50f6fb32f7eec0568f5332a924ff21182ebc3", "extension": "c"...
stackv2
#include <string.h> #include "py/runtime.h" #include "py/mperrno.h" #include "py/mphal.h" #include "extmod/misc.h" #include "usb.h" #include "uart.h" // this table converts from HAL_StatusTypeDef to POSIX errno const byte mp_hal_status_to_errno_table[4] = { [HAL_OK] = 0, [HAL_ERROR] = MP_EIO, [HAL_BUSY] =...
2.078125
2
2024-11-18T21:54:09.559537+00:00
2021-08-25T17:59:15
ee4a8387318702c6b09d1e4a1fd59b1979446e02
{ "blob_id": "ee4a8387318702c6b09d1e4a1fd59b1979446e02", "branch_name": "refs/heads/master", "committer_date": "2021-08-25T17:59:15", "content_id": "ee0a52dcf709a62197c6cdbf2a9d137647001cd5", "detected_licenses": [ "Artistic-2.0" ], "directory_id": "192f6a4c9d934be58bca0e610ec1a75e7777fcd1", "extens...
stackv2
/* Copyright (C) 2001-2012, Parrot Foundation. =head1 NAME pbc_disassemble - parrot bytecode disassembler =head1 SYNOPSIS pbc_disassemble [-bh?] [--bare|--header-only] [-o outfile] [file.pbc] =head1 DESCRIPTION C<pbc_disassemble> translates Parrot bytecode (C<PBC>) into Parrot assembly language (C<PASM>). C<fil...
2.28125
2
2024-11-18T21:54:09.616274+00:00
2019-03-08T15:02:19
266df4eb710dc2bc3f707ca6eabe475d2f649074
{ "blob_id": "266df4eb710dc2bc3f707ca6eabe475d2f649074", "branch_name": "refs/heads/master", "committer_date": "2019-03-08T15:02:19", "content_id": "2f69bcf9d0bbaebee14307f9d0daf03eb4b0d97c", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "4a6801e36b7624929cf04bada2da01320aad21af", "extens...
stackv2
#define F_CPU 2000000UL #include <stdint.h> #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include "tm1637.h" //-------------------------------------------------------------------- // DECLARATIONS void init_external_interrupts(); // on falling edge of PD2 & PD3. Enable pull-up resistors...
2.75
3
2024-11-18T21:54:09.710583+00:00
2018-01-01T09:41:05
9d4ec4aa12bef66354cb0817f74904ce7affe37c
{ "blob_id": "9d4ec4aa12bef66354cb0817f74904ce7affe37c", "branch_name": "refs/heads/master", "committer_date": "2018-01-01T09:41:05", "content_id": "cd679f77d8be83c430fafe32acced3ddac7785e4", "detected_licenses": [ "MIT" ], "directory_id": "0542abb7a71777ae6797b3ff078677685a0e8298", "extension": "c"...
stackv2
/*Given a set of 10 two-digit integer containing both positive and negative values, write a program using for loop to compute the sum of all positive values and print the sum and the number of values added. The program should use scanf to read the values and terminate when the sum exceeds 999. Do not use goto stat...
3.796875
4
2024-11-18T21:54:09.798144+00:00
2021-05-26T16:48:22
7a813fd7d08754113ff5a2444d152cbd87798e33
{ "blob_id": "7a813fd7d08754113ff5a2444d152cbd87798e33", "branch_name": "refs/heads/main", "committer_date": "2021-05-26T16:48:22", "content_id": "4d6a107f4427be2b7df44e609dbc42d8fe00acbe", "detected_licenses": [ "MIT" ], "directory_id": "4c09a0e8490c6d64ac75e431819628de8ba1e10f", "extension": "c", ...
stackv2
/* * Calcula o factorial de forma recursiva. */ #include "fact.h" int factorial (int n) { int fact; if(n == 0) fact = 1; else fact = n * factorial(n - 1); return fact; }
3.21875
3
2024-11-18T21:54:09.944553+00:00
2023-08-14T16:21:25
62c03ff3fa167430a9d4cde473ca7c2c6f20f8f1
{ "blob_id": "62c03ff3fa167430a9d4cde473ca7c2c6f20f8f1", "branch_name": "refs/heads/master", "committer_date": "2023-08-14T16:21:25", "content_id": "e18d6c9f507ece467b21276a9a2e4245a46ce447", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "a6bbf05116045ab187a9fa8e9cef37450459f663", "extens...
stackv2
/*================================================================= * * KeplerSTM_C.C Apply KEPLER STM to propagate two body orbit * * KeplerSTM_C(X0,DT,MU,X1) * X0 6 x 1 : [r_0, v_0] * DT float : time step (t1 - t0) * MU float : Gravitational paramter * X1 6 x 1 : [r...
2.25
2
2024-11-18T21:54:10.022310+00:00
2019-03-01T05:16:46
ba1e939b782f0180a8e315ce25d8b50868ce527b
{ "blob_id": "ba1e939b782f0180a8e315ce25d8b50868ce527b", "branch_name": "refs/heads/master", "committer_date": "2019-03-01T05:16:46", "content_id": "2df62c1bcbf8c398fc735ef21ede691fa3716ae3", "detected_licenses": [ "MIT" ], "directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f", "extension": "c"...
stackv2
// This program is a part of NITAN MudLIB // wuchang.c 無常五化 #include <ansi.h> inherit F_SSERVER; string name() { return "無常五化"; } int perform(object me, object target) { object weapon; string msg; int i; if (! target) { me->clean_up_enemy(); ta...
2.171875
2
2024-11-18T21:54:10.283350+00:00
2020-12-19T04:09:01
b9f9473eb1bf6e4991100a54f05632c6f1fac8cf
{ "blob_id": "b9f9473eb1bf6e4991100a54f05632c6f1fac8cf", "branch_name": "refs/heads/master", "committer_date": "2020-12-19T04:09:01", "content_id": "3b4f0ff15f85c6ce355652e54cadabdef3e98f8e", "detected_licenses": [ "MIT" ], "directory_id": "57d41978fae8da5e429c15294f1ce5b7ed83ac75", "extension": "c"...
stackv2
#include "oops.h" /* C Functions */ static Janet cfun_oops_emit_type(int32_t argc, Janet *argv) { janet_arity(argc, 2, 3); const char *name = janet_getcstring(argv, 0); const Janet *fields = janet_gettuple(argv, 1); JanetDictView methods = {NULL, 0, 0}; if (argc == 3) { methods = janet_g...
2.34375
2
2024-11-18T21:54:11.151436+00:00
2017-05-31T04:14:33
939b463de3263a1c07b402a65d6642cf569a6d72
{ "blob_id": "939b463de3263a1c07b402a65d6642cf569a6d72", "branch_name": "refs/heads/master", "committer_date": "2017-05-31T04:14:33", "content_id": "cbf33a5bac019f7f37bff8c6a1619300ff3927d0", "detected_licenses": [ "MIT" ], "directory_id": "84043c957b8aa36b788cd37ba25a7f699858aad4", "extension": "c"...
stackv2
#include "cat.h" /* * Declare test functions */ CAT_FUNC(sample_func1) { CAT_ASSERT(1); } CAT_FUNC(compare_numbers, int a, int b) { CAT_ASSERT(a == b); } CAT_FUNC(open_non_existing_file, const char *filename) { FILE *f = fopen(filename, "r"); CAT_ASSERT_NULL(f); } /* * Declare test cases */ CAT_CASE(use_...
2.375
2
2024-11-18T21:54:11.407694+00:00
2016-10-06T14:37:17
90d2473388eae3b5ac98cf199df706f73f08cd81
{ "blob_id": "90d2473388eae3b5ac98cf199df706f73f08cd81", "branch_name": "refs/heads/master", "committer_date": "2016-10-06T14:37:17", "content_id": "43dcc90db2240f65cad0d52713d83b2b2ee7150d", "detected_licenses": [ "MIT" ], "directory_id": "da7a4a78711a17b3ac62004eeee3fe0d908381c5", "extension": "c"...
stackv2
#include "attack_process.h" #include "io.h" void set_base_valor(char** arg_list, char* loic_path, char* ip){ arg_list[0] = loic_path; arg_list[1] = ip; arg_list[2] = "--syn"; arg_list[3] = "-p"; arg_list[4] = "80"; arg_list[5] = NULL; arg_list[6] = NULL; } void set_baseline( char**...
2.3125
2
2024-11-18T21:54:11.577729+00:00
2016-01-21T10:34:09
0e98ecd3e3a2d4b414a55d6f9e847b87b24a643c
{ "blob_id": "0e98ecd3e3a2d4b414a55d6f9e847b87b24a643c", "branch_name": "refs/heads/master", "committer_date": "2016-01-21T10:34:09", "content_id": "33dbe6de2be6c54b25377eb0dff9a639bbc87366", "detected_licenses": [ "MIT" ], "directory_id": "ad167ae8dd0a0ad8b2ac30fbd3d2522ee0e469fe", "extension": "c"...
stackv2
#include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <stdlib.h> #include <arpa/inet.h> #include <stdio.h> #include <errno.h> #include <netdb.h> #include "address.h" //Return 1 for IPv4 and 0 for all the others (We expect IPv6 then) int isIpv4(char *buf) { int len = strlen(buf); int dot_...
2.609375
3
2024-11-18T21:54:11.816159+00:00
2020-09-11T00:29:38
7cf45008d68f72661f2e780b7c7969729f0c1224
{ "blob_id": "7cf45008d68f72661f2e780b7c7969729f0c1224", "branch_name": "refs/heads/master", "committer_date": "2020-09-11T00:29:38", "content_id": "14be4ece4eae77f82981742a2314e3047f6079d3", "detected_licenses": [ "MIT" ], "directory_id": "1f115c782cd52e79e46b736a4445c34a65d29fd5", "extension": "c"...
stackv2
// Tran, Joshua N. // jnt6598 // 2020-05-07 //---------------------------------------------------------- #include <stdio.h> #include "line.h" #include "triangle.h" //---------------------------------------------------------- void dumpTriangle( View *view, Vertex *v1, Vertex *v2, Vertex *v3 ) { // TODO: Using a Line...
2.421875
2
2024-11-18T21:54:12.949323+00:00
2021-05-03T01:33:11
be3b6b60a50f3e1e0647dc7b677994997fbd330b
{ "blob_id": "be3b6b60a50f3e1e0647dc7b677994997fbd330b", "branch_name": "refs/heads/master", "committer_date": "2021-05-03T01:33:11", "content_id": "b69b2a1ac078754b4c92fee354cf03f45d238ef0", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "87c2b3b746e97b2442b6fbfc3845e88e27130a75", "extens...
stackv2
#include "common/include/inttypes.h" #include "common/include/page.h" #include "hal/include/lib.h" #include "hal/include/kernel.h" #include "hal/include/hal.h" #include "hal/include/mem.h" /* * Get physical address of a user virtual address */ paddr_t translate(void *page_table, ulong vaddr) { // L1 table s...
2.609375
3
2024-11-18T21:54:13.049498+00:00
2016-02-26T23:15:25
9aa2a1450b04f69015e85083da1d81f7ca7b5ae9
{ "blob_id": "9aa2a1450b04f69015e85083da1d81f7ca7b5ae9", "branch_name": "refs/heads/master", "committer_date": "2016-02-26T23:15:25", "content_id": "1d4d139f9a493e085d95e18aa09c643974dbec70", "detected_licenses": [ "NCSA" ], "directory_id": "6a07fd0abdc81c1268b3404d4f7377ef9164c112", "extension": "c...
stackv2
/// /// Perform several offloading codegen tests /// ///############################################## /// /// Test CodeGen for scalar reduction with parallel for /// ///############################################## #ifdef TT1 // RUN: %clang -fopenmp=libomp -target powerpc64le-ibm-linux-gnu -omptargets=nvptx64sm_3...
2.234375
2
2024-11-18T21:54:13.127324+00:00
2015-01-30T15:28:55
ac3cf5154dadd85274eb1df7f432286a68a13aa5
{ "blob_id": "ac3cf5154dadd85274eb1df7f432286a68a13aa5", "branch_name": "refs/heads/master", "committer_date": "2015-01-30T15:28:55", "content_id": "fd6d5473c381b9013c967d514545e98b8422711d", "detected_licenses": [ "MIT" ], "directory_id": "903cec060799aa5064786b4e467f5aa359611dcb", "extension": "c"...
stackv2
#include "internal/user.h" static int user_file_exists(){ return file_exists(DATA_DIR USERS_INDEX); } int create_user(const char * username){ if(user_file_exists() != 1) return 0; if(user_exists(username) == 1) return 1; FILE *fp = fopen(DATA_DIR USERS_INDEX, "a"); if(!fp){ fprintf(stderr, "%s\n", FAILED_FILE...
2.40625
2
2024-11-18T21:54:13.193928+00:00
2017-12-28T16:26:38
a5cf80cc340e985e43d5e802fb0f9cd326e8365f
{ "blob_id": "a5cf80cc340e985e43d5e802fb0f9cd326e8365f", "branch_name": "refs/heads/master", "committer_date": "2017-12-28T18:54:10", "content_id": "b8b677bce756bbb78c56688d0663705a19ffea7f", "detected_licenses": [ "MIT" ], "directory_id": "14f1e0554695e49a8fca071b8bf02243037ba013", "extension": "c"...
stackv2
/* * ===================================================================================== * * Filename: print_semicolon.c * * Description: Print semicolon to the output without using a semicolon * * Version: 1.0 * Created: 04/20/2017 09:11:18 * Revision: none * Compile...
2.546875
3
2024-11-18T21:54:13.359438+00:00
2020-07-09T00:38:47
1a35b7c052fa21c2894f2a9101054ff5c8f30dd6
{ "blob_id": "1a35b7c052fa21c2894f2a9101054ff5c8f30dd6", "branch_name": "refs/heads/master", "committer_date": "2020-07-09T00:38:47", "content_id": "5d733047cfccd2993a71ce0a5587a5db45ea64b9", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "f36e45eadd793a090db47bee7cbc1a5208bad675", "extens...
stackv2
#include<stdio.h> #include<stdlib.h> #include<unistd.h> #include <stdlib.h> #include<time.h> void replacecharacters(char dnabig[]); // function to replace characters R and W void countA(char dnabig[]); // function to count the number of A's in the sequence of 10^6 int main(int argc, char *argv[]) // main ...
3.53125
4
2024-11-18T21:54:13.421869+00:00
2015-11-24T15:23:23
c0ff806a0ffc57d0f12e3a258a5b300a45e0941c
{ "blob_id": "c0ff806a0ffc57d0f12e3a258a5b300a45e0941c", "branch_name": "refs/heads/master", "committer_date": "2015-11-24T15:23:23", "content_id": "92dfe1e53a92529b06e0f2045c0c80644783ef58", "detected_licenses": [ "MIT" ], "directory_id": "7cdb44cfdec5545b0778778983f16060dbeff45f", "extension": "c"...
stackv2
/* Chandu is a bad student. Once his teacher asked him to print the reverse of a given string. He took three hours to solve it. The teacher got agitated at Chandu and asked you the same question. Can you solve it? Input: The first line contains an integer T, denoting the number of test cases. Each test case contains a...
3.625
4
2024-11-18T21:54:13.577227+00:00
2020-04-11T01:31:26
ee54a03afef6d2ed58d6f416d029cf943ee1ed3b
{ "blob_id": "ee54a03afef6d2ed58d6f416d029cf943ee1ed3b", "branch_name": "refs/heads/master", "committer_date": "2020-04-11T01:31:26", "content_id": "ed112406f12c36025aaa3f2cdde1bdc6c8e3c131", "detected_licenses": [ "MIT" ], "directory_id": "a957c4cdc11f6decc2432db16c96026bf13a274e", "extension": "c"...
stackv2
/* * Copyright (c) 2018-2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> * * 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 * ...
2.5625
3
2024-11-18T21:54:13.662390+00:00
2019-03-01T05:16:46
6387913a887fb76b8b988329a8421cd53f09e8b8
{ "blob_id": "6387913a887fb76b8b988329a8421cd53f09e8b8", "branch_name": "refs/heads/master", "committer_date": "2019-03-01T05:16:46", "content_id": "92463c3fac630f66485bcd41561a72b715680060", "detected_licenses": [ "MIT" ], "directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f", "extension": "c"...
stackv2
#include <ansi.h> #include <emotion.h> inherit F_CLEAN_UP; #define BAR "────────────────────────────────────────\n" string help = @HELP 表情查詢指令 這個指令會列出目前所有可以使用的表情指令 指令格式: semote semote -t 查看錶情指令的使用排行表 semote -l 查看錶情指令的簡易説明 semote <表情代號> 查看 <表情代號> 的詳細表情訊息 相關指令: command HELP...
2.734375
3
2024-11-18T21:54:14.404239+00:00
2023-07-07T18:41:40
a6a1260712a2b862b27bd89688924fc6f8d5b262
{ "blob_id": "a6a1260712a2b862b27bd89688924fc6f8d5b262", "branch_name": "refs/heads/master", "committer_date": "2023-07-07T18:41:40", "content_id": "22981a0ae4fdf3c17a18419d4669611ea6308e2b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c26d7b0ed875357278e61627da2da0650da77986", "extens...
stackv2
/* * Copyright (c) 1987 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)mon.c 5.5 (GTE) 3/23/92"; #endif LIBC_SCCS and not lint ...
2.25
2
2024-11-18T21:54:14.583168+00:00
2020-06-18T11:32:10
a0f803fe5a832b359c99b0dc1aae455cc2d59455
{ "blob_id": "a0f803fe5a832b359c99b0dc1aae455cc2d59455", "branch_name": "refs/heads/master", "committer_date": "2020-06-18T11:32:10", "content_id": "3bd93ef0d89c1d6ab62c4a6fe2d878f1081b5256", "detected_licenses": [ "MIT" ], "directory_id": "bd6b0fa789fb1711b24859325b9c6a4a6c755f08", "extension": "c"...
stackv2
#include "lg/str.h" #include "lg/stream.h" #include "lg/macro.h" #include "lg/type.h" #include "lg/types/macro.h" #include "lg/val.h" struct lg_type lg_macro_type; static void copy_val(struct lg_val *src, struct lg_val *dst) { dst->as_macro = lg_macro_ref(src->as_macro); } static bool is_val(struct lg_val *x, stru...
2.390625
2