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:53:33.165808+00:00
2023-06-06T15:22:16
651ae024f10cb32226385a1959b2cd217c297e16
{ "blob_id": "651ae024f10cb32226385a1959b2cd217c297e16", "branch_name": "refs/heads/master", "committer_date": "2023-06-06T15:22:16", "content_id": "e2d0133dc24c472e422819226a2a78e7b3800d8c", "detected_licenses": [ "CC0-1.0" ], "directory_id": "0ba2e5061577f6286ff9265ef1df9aca96769445", "extension":...
stackv2
#include<stdio.h> #include<stdlib.h> struct Node { int data; struct Node *next; }; void add(struct Node **head_ref, int data) { struct Node *ptr1 = (struct Node *)malloc(sizeof(struct Node)); struct Node *temp = *head_ref; ptr1->data = data; ptr1->next = *head_ref; if (...
3.640625
4
2024-11-18T22:53:34.287995+00:00
2018-05-23T06:55:18
26d0f853696e06184391ce3a1038ccd0d5d35f2c
{ "blob_id": "26d0f853696e06184391ce3a1038ccd0d5d35f2c", "branch_name": "refs/heads/master", "committer_date": "2018-05-23T06:55:18", "content_id": "16c857c422632520beeb844863173bbb0dd802c2", "detected_licenses": [ "MIT" ], "directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd", "extension": "c"...
stackv2
// Jay 3/17/96 #include <ansi.h> #include <weapon.h> inherit F_UNIQUE; inherit WHIP; void create() { set_name("柔丝索", ({"rousi suo", "silk", "suo"})); set_weight(60); if (clonep()) set_default_object(__FILE__); else { set("unit", "摞"); set...
2.046875
2
2024-11-18T22:53:34.434886+00:00
2013-12-20T00:47:40
d10d7b3b6e651dea2f1b75161f473f667cd48824
{ "blob_id": "d10d7b3b6e651dea2f1b75161f473f667cd48824", "branch_name": "refs/heads/master", "committer_date": "2013-12-20T00:47:40", "content_id": "e25c1c848d7976640b20bb19a05daeb110c478e8", "detected_licenses": [ "MIT" ], "directory_id": "7446a2c8f333eb57cdc957de6ac934fc0b6bab9b", "extension": "h"...
stackv2
#ifndef MATHLIB_H #define MATHLIB_H #ifdef __CUDACC__ #define PREFIX __device__ #else #define PREFIX #endif #include <math.h> #include <string.h> typedef float t_vec3[3]; struct t_sphere { t_vec3 position; float radius; t_vec3 color; }; PREFIX static inline void vec3_zero( t_vec3 out ) { memset( ou...
2.65625
3
2024-11-18T22:53:35.569889+00:00
2023-09-02T14:55:31
b4f98ae63e550316814063ce5f9a077094b19622
{ "blob_id": "b4f98ae63e550316814063ce5f9a077094b19622", "branch_name": "refs/heads/master", "committer_date": "2023-09-02T14:55:31", "content_id": "c34d9b115a189e35126d304b4db5e5da62ca91c8", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca", "extens...
stackv2
/** * @file * @brief Programmable Interval Timer (PIT) chip driver * * @date 27.12.10 * @author Nikolay Korotky */ #include <framework/mod/options.h> #include <errno.h> #include <stdio.h> #include <stdint.h> #include <util/array.h> #include <hal/clock.h> #include <asm/io.h> #include <kernel/irq.h> #include ...
2.40625
2
2024-11-18T22:53:35.704168+00:00
2020-07-27T18:51:19
e8f90aa6fc5343d3fb0dbf304f333e861faeb963
{ "blob_id": "e8f90aa6fc5343d3fb0dbf304f333e861faeb963", "branch_name": "refs/heads/master", "committer_date": "2020-07-27T18:51:19", "content_id": "e75326c7f1af8c786776a92239c2eeaba73bbfa8", "detected_licenses": [ "MIT" ], "directory_id": "e03a60121c0fbe814e0301e2288553120c31bb6b", "extension": "h"...
stackv2
/* * Base16: https://github.com/chriskempson/base16 */ #define THEME_BACKGROUND "#181818" #define THEME_FOREGROUND "#d8d8d8" /* * Colors */ #define THEME_BLACK "#181818" #define THEME_RED "#ab4642" #define THEME_GREEN "#a1b56c" #define THEME_YELLOW "#f7ca88" #define THEME_BLUE "#7cafc2" #define THEME_MAGENTA "#ba...
2.109375
2
2024-11-18T22:53:35.762213+00:00
2023-02-22T04:31:37
1fd65a4ed4f96de82859d88c66ea0c49c8ba6c65
{ "blob_id": "1fd65a4ed4f96de82859d88c66ea0c49c8ba6c65", "branch_name": "refs/heads/main", "committer_date": "2023-02-22T04:31:37", "content_id": "b21e0c5aa7ec9f40917abcc1bbad40dea965499e", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c078aaf13845d41f8d547bad0b4a464b6a52e387", "extensio...
stackv2
#include <string.h> #include <glib.h> #include "charset.h" #include "chimara-glk-private.h" #include "garglk.h" #include "magic.h" #include "ui-message.h" #include "window.h" extern GPrivate glk_data_key; /* Internal function: cancels any pending input requests on the window and * presents a warning if not INPUT_R...
2.40625
2
2024-11-18T22:53:35.853042+00:00
2022-12-09T19:54:39
b25f40ba782c0d43c8ffdb469ff6549a1c17002e
{ "blob_id": "b25f40ba782c0d43c8ffdb469ff6549a1c17002e", "branch_name": "refs/heads/master", "committer_date": "2022-12-09T19:54:39", "content_id": "3706badb4bf75b522f7ded31fb2ec4fe029fa759", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "fa294a32c055a07adb2497b77144c5a2f7f74df4", "extens...
stackv2
/* -------------------------------------------------------------------------- * Name: stage.c * Purpose: Generates a document background * ----------------------------------------------------------------------- */ #include <assert.h> #include <stdlib.h> #include "appengine/types.h" #include "appengine/vdu/scree...
2.8125
3
2024-11-18T22:53:35.960151+00:00
2022-10-25T08:48:49
5d33984a9e3be15c5f12859bb89e0497d0bce7e0
{ "blob_id": "5d33984a9e3be15c5f12859bb89e0497d0bce7e0", "branch_name": "refs/heads/master", "committer_date": "2022-10-25T08:48:49", "content_id": "e7580e560c7815fb781cedf36af073b8216df9a1", "detected_licenses": [ "Apache-2.0", "BSD-3-Clause" ], "directory_id": "2a505950da885d50ef8942344765ee2570...
stackv2
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
2.796875
3
2024-11-18T22:53:36.599814+00:00
2018-08-02T17:04:10
fe5a1e6a7e0f85ee8e59ff6e9839241df32ea1ee
{ "blob_id": "fe5a1e6a7e0f85ee8e59ff6e9839241df32ea1ee", "branch_name": "refs/heads/master", "committer_date": "2018-08-02T17:04:10", "content_id": "7fdb60c957748c262952cad93e323080c14bc4bf", "detected_licenses": [ "Apache-2.0" ], "directory_id": "493b5ea3b378e40b39a6455818618a4f7d3292b8", "extensio...
stackv2
// // csvprintf - Simple CSV file parser for the UNIX command line // // Copyright 2010 Archie L. Cobbs <archie@dellroad.org> // // 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...
2.03125
2
2024-11-18T22:53:36.735272+00:00
2015-04-17T17:56:20
a0d0f3a12f5ecae4e31dba0e3f3c0de2e894e3fe
{ "blob_id": "a0d0f3a12f5ecae4e31dba0e3f3c0de2e894e3fe", "branch_name": "refs/heads/master", "committer_date": "2015-04-17T17:56:20", "content_id": "554ed15d0b15444cc053c99d8a8ae543779b0473", "detected_licenses": [ "ISC" ], "directory_id": "66bdc05e3e7e0a2069cbf59a8dad1fdf7a52caef", "extension": "c"...
stackv2
/*====================================================================* * * void menusize (MENU * menu); * * menu.h * * return the number of nodes in a menu; * *. Motley Tools by Charles Maier *: Published 1982-2005 by Charles Maier for personal use *; Licensed under the Internet Software Consort...
2.1875
2
2024-11-18T22:53:36.847220+00:00
2020-12-11T01:32:25
d42204fbdc2ea75996bb7e6ada5d84e4a65156b3
{ "blob_id": "d42204fbdc2ea75996bb7e6ada5d84e4a65156b3", "branch_name": "refs/heads/main", "committer_date": "2020-12-11T01:32:25", "content_id": "5ac393c52e191a642ab962271a4519bf2bc0f887", "detected_licenses": [ "MIT" ], "directory_id": "6d2e6006b35d51817c48241682796f00a2d3ed1e", "extension": "c", ...
stackv2
/* |4.2| * 1. Dado um número real qualquer informado pelo usuário, mostre o valor absoluto dele. */ #include <stdio.h> int main(void) { float numero; puts("Entre com um número real qualquer:"); scanf("%f", &numero); printf("Valor absoluto: %f\n", \ (nume...
4.125
4
2024-11-18T22:53:36.967925+00:00
2020-01-02T15:04:54
3f6a6b6a33e303e1c27e66e0f113c59021520399
{ "blob_id": "3f6a6b6a33e303e1c27e66e0f113c59021520399", "branch_name": "refs/heads/master", "committer_date": "2020-01-02T15:04:54", "content_id": "5bccba76f98852117b109dc9d00c1393f09118f9", "detected_licenses": [ "Unlicense" ], "directory_id": "36d7d3eaac7ca537f37f810e11f9ec6a279288dd", "extension...
stackv2
#include <stdio.h> #include <stdlib.h> #include <pigpio.h> #include "rotary_encoder.h" struct _Pi_Renc_s { int gpioA; int gpioB; Pi_Renc_CB_t callback; int levA; int levB; int lastGpio; }; /* +---------+ +---------+ 0 | | | | A ...
2.609375
3
2024-11-18T22:53:37.184421+00:00
2017-04-20T10:17:49
f4d56e3b1a2adf7421ce27d56f8c5fa5cd559c2e
{ "blob_id": "f4d56e3b1a2adf7421ce27d56f8c5fa5cd559c2e", "branch_name": "refs/heads/master", "committer_date": "2017-04-20T10:17:49", "content_id": "8067ff565f4666c865f691d56444b36c77d2317e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ebd585fdafb22d31fcd6d04b209f81e88d1a2083", "extensio...
stackv2
/*==================================================================== * * FILE: flash_hal_common.c * * SERVICES: Functions used across all flash controller HALs * * DESCRIPTION: Functions used across all flash controller HALs * * PUBLIC CLASSES AND STATIC FUNCTIONS: * * INITIALIZATION AND SEQUENCING REQUIREM...
2.03125
2
2024-11-18T22:53:37.442235+00:00
2019-12-02T22:27:10
46fdce9f0ffeec4292abc9b267cf41f64f413429
{ "blob_id": "46fdce9f0ffeec4292abc9b267cf41f64f413429", "branch_name": "refs/heads/master", "committer_date": "2019-12-02T22:27:10", "content_id": "260df4cf781dc4df1a77dcc6e57bf5eea3ca4ddb", "detected_licenses": [ "MIT" ], "directory_id": "41b33b4d82e174668984ef5b1e1f2ce2d6a55e6b", "extension": "c"...
stackv2
/// @copyright /// This file is part of ydotool. /// Copyright (C) 2019 Harry Austen /// Copyright (C) 2018-2019 ReimuNotMoe /// /// This program is free software: you can redistribute it and/or modify /// it under the terms of the MIT License. /// /// This program is distributed in the hope that it will be useful, ///...
2
2
2024-11-18T22:53:37.657973+00:00
2023-08-12T08:24:27
ce8eed664e71f3565c306d687d304c8b823b16a1
{ "blob_id": "ce8eed664e71f3565c306d687d304c8b823b16a1", "branch_name": "refs/heads/master", "committer_date": "2023-08-12T08:24:27", "content_id": "233a918d9cff29fb402d6978f10679c5dc2f87bf", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cbe8756c4068574f2f1cf8f0ce6f11632622eccb", "extensio...
stackv2
/* ввод следующего байта из файла данных a=get() */ /* установ начального адреса чтения iniget(adr) */ #include <stdio.h> #include <stdlib.h> #include "..\common\advexter.h" #define adv_data "data.adv" #define adv_data2 "\advent\data.adv" static FILE *cb; static char *bevents, *pevents; iniget(adr) unsigned...
2.375
2
2024-11-18T22:53:37.736528+00:00
2017-06-25T18:10:36
fabaeeac5b97d5dd5c93096750940bc6be603e7f
{ "blob_id": "fabaeeac5b97d5dd5c93096750940bc6be603e7f", "branch_name": "refs/heads/master", "committer_date": "2017-06-25T18:10:36", "content_id": "dc8cad94b44861f49be7bf8574d425661995859b", "detected_licenses": [ "MIT" ], "directory_id": "9fc6b8506660b2467dc825ceaf9ae5854535a21d", "extension": "h"...
stackv2
#include "kernel/cachezoom_kernel.h" #define OPEN_CACHEZOOM_DRV()({\ do {\ _FD_ = open("/dev/cachezoom", O_RDWR);\ if (_FD_ == -1) {\ printf("Couldn't open /dev/cachezoom\n");\ return -1;\ }\ } while(0);\ }) #define INIT_CACHEZOOM(next_dead, timer_inter, interval, target)({\ do {\ ...
2.015625
2
2024-11-18T22:53:38.258516+00:00
2021-04-10T20:13:54
ba806704bd6c829e851d00b65aac45c56403485e
{ "blob_id": "ba806704bd6c829e851d00b65aac45c56403485e", "branch_name": "refs/heads/main", "committer_date": "2021-04-10T20:13:54", "content_id": "ab5649bd71c39a8b6d2a69418fa53ee659f39430", "detected_licenses": [ "MIT" ], "directory_id": "15347aebc96637f1ab9dca1c3ce09e958ee339e2", "extension": "c", ...
stackv2
#include <string.h> #include <ctype.h> #include "./include/myio.h" #include "./include/error.h" #include "./include/bigfloat.h" static int preprocess_str(char *str, int *mant, int *exp_len, sign_t *mant_sign, int *exp) { if (str[0] != '+' && str[0] != '-') return INCORRECT_SIGN; int len = strlen(str);...
2.96875
3
2024-11-18T22:53:38.357526+00:00
2016-09-29T23:23:40
8d84e72d291aa2fae15e71724390108b83167c2d
{ "blob_id": "8d84e72d291aa2fae15e71724390108b83167c2d", "branch_name": "refs/heads/master", "committer_date": "2016-09-29T23:23:40", "content_id": "71f35e0cf58b48b9f6294d78ac9dfeccde869953", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "72299e9719584a94a972ef143e8e88c51d86981c", "extens...
stackv2
/** @file 16550 UART Serial Port library functions (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR> Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD Lice...
2.46875
2
2024-11-18T22:53:38.422603+00:00
2023-06-02T13:46:19
03869d1183dcc5a128c46283d613b819c265b46f
{ "blob_id": "03869d1183dcc5a128c46283d613b819c265b46f", "branch_name": "refs/heads/3.16.0-stm32mp", "committer_date": "2023-07-28T12:39:20", "content_id": "ad20bac0c4151de52d409f4aed41b8e7e512d140", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a8378f8953015617c24004b33177cdfe45422174", ...
stackv2
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2014, STMicroelectronics International N.V. * Copyright (c) 2020, Linaro Limited */ #ifndef __KERNEL_USER_ACCESS_H #define __KERNEL_USER_ACCESS_H #include <assert.h> #include <tee_api_types.h> #include <types_ext.h> #ifdef CFG_WITH_USER_TA TEE_Result c...
2.046875
2
2024-11-18T22:53:38.575694+00:00
2020-07-11T23:09:12
79824628695b6bb1f1759f6e072851e938f1e7eb
{ "blob_id": "79824628695b6bb1f1759f6e072851e938f1e7eb", "branch_name": "refs/heads/master", "committer_date": "2020-07-11T23:09:12", "content_id": "7818896836432b3f2b77ea84dd9c015c729eae75", "detected_licenses": [ "Unlicense" ], "directory_id": "eda9632b0278c1255f76535201d1648d778e31e9", "extension...
stackv2
//****************************************************************************** //! //! Author: Ying Xiong //! Created: May 2020 //! //****************************************************************************** #include <errno.h> #include <stdio.h> #include <string.h> #include <stddef.h> #include <stdbool.h> #inc...
2.34375
2
2024-11-18T22:53:38.637952+00:00
2023-04-13T10:15:41
8f087c51ae4851584be3d0f3d8951e19d3a2f38b
{ "blob_id": "8f087c51ae4851584be3d0f3d8951e19d3a2f38b", "branch_name": "refs/heads/master", "committer_date": "2023-04-13T10:15:41", "content_id": "e7cd2c37110defb2c86fb27be8aa8d41a62f5f59", "detected_licenses": [ "Apache-2.0" ], "directory_id": "af84dbfbdca0ee1a354924881b6578c37a66efcf", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include "Status.h" #define INFINITY 8888 #define MAX_VER 8 #define VALID_ARC_NUM 12 /* * 求解一个正方体使用四种颜色来染色每一个顶点的一个解,任意两个相邻顶点不能同色 */ typedef struct{ int inode; char color; }VERTICE; typedef struct{ int weight; }ARC[MAX_VER][MAX_VER]; typedef struct{ VERTICE vers[MAX_VER];...
3.03125
3
2024-11-18T22:53:38.816711+00:00
2021-03-23T15:51:08
df674a3a771af62ebb69ebf42d53f6799e318487
{ "blob_id": "df674a3a771af62ebb69ebf42d53f6799e318487", "branch_name": "refs/heads/master", "committer_date": "2021-03-23T15:51:08", "content_id": "5f1ea9c7bca1ee270472540ae381e9a39c0d1380", "detected_licenses": [ "MIT" ], "directory_id": "1d358629e244a2616b1041aad2d215851c602893", "extension": "c"...
stackv2
#include "visitor/AstNodeVisitor.h" #include "AST/ast.h" #include "OoUtils.h" typedef struct __AstNodeVisitor { AST_NODE_VISITOR_VIRTUAL_FUNCTIONS; } AstNodeVisitor; static void visitProgramNode(AstNodeVisitor *self, struct __ProgramNode *program_node) { MEMBER_FUNCTION_PROLOGUE; ...
2.140625
2
2024-11-18T22:53:39.090053+00:00
2016-06-04T05:01:09
effaf3aeeb1b29b6caf839c8855bcba7e6a2f449
{ "blob_id": "effaf3aeeb1b29b6caf839c8855bcba7e6a2f449", "branch_name": "refs/heads/master", "committer_date": "2016-06-04T05:01:09", "content_id": "f7ef41f3e49f23532fcf00a70de37cf8f264be7b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "b987fbb7660d57ed66fafc3e38c70d681ead12ca", "extens...
stackv2
#ifndef __CLIPPING_H__ #define __CLIPPING_H__ #include <stdbool.h> static inline bool IsSpanCompletelyInside(int start,int len,int max) { if(start<0) return false; if(start+len>max) return false; return true; } static inline bool IsSpanCompletelyOutside(int start,int len,int max) { if(start>=max) return true; i...
2.5625
3
2024-11-18T22:53:39.299060+00:00
2011-09-12T19:41:03
577a2f49f6844077a2eb68eb817ff464846d9598
{ "blob_id": "577a2f49f6844077a2eb68eb817ff464846d9598", "branch_name": "refs/heads/master", "committer_date": "2011-09-12T19:41:03", "content_id": "e344dab71378a49fce88373268ef1f9dee07fe42", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "f363f5ce39820ea457ff23f4582cf5bb827f52b7", "extens...
stackv2
/* * Requête vers le site www.google.com * */ #include <stdio.h> #include <stdlib.h> #include <websearch.h> int main() { t_websearch google = new_websearch("www.google.com", 80, "/search?q=%s", "<a href=\"([^\"]*)\" class=l"); const char *request = "publiée+dans+le+magazine+de+son+école+lorqu'il+ava...
2.5625
3
2024-11-18T22:53:39.485930+00:00
2021-06-16T02:43:37
9746bcb77ac7b84d4d6b1744fdc050657d2de589
{ "blob_id": "9746bcb77ac7b84d4d6b1744fdc050657d2de589", "branch_name": "refs/heads/master", "committer_date": "2021-06-16T02:43:37", "content_id": "30ef44385fe9cdd6f627607de25dffd512c8b82b", "detected_licenses": [ "MIT" ], "directory_id": "6b27783cbde1e39fb4f8e0f727e28d8702e31066", "extension": "c"...
stackv2
#include <stdio.h> /* Write a program that prompts the user to enter a number n, and then prints all even squares between 1 and n */ int main(void) { int i, n; printf("Enter a number: "); scanf("%d", &n); for (i = 1; (i * i) <= n; i++) { if ((i * i) % 2 == 0) { printf("%d\n", i * i); }...
3.921875
4
2024-11-18T22:53:39.742854+00:00
2021-01-09T15:26:52
91e0f6e6e8ccb73052307f0113506751d8a45716
{ "blob_id": "91e0f6e6e8ccb73052307f0113506751d8a45716", "branch_name": "refs/heads/main", "committer_date": "2021-01-09T15:26:52", "content_id": "b5b16de29fc1d9692537483407702918fbd68a75", "detected_licenses": [ "MIT" ], "directory_id": "b2bcccd7556c74e56297b5df3a99c503ef667b1f", "extension": "c", ...
stackv2
#include <stdio.h> int main(void) { printf("\nMeu \n\tsegundo \n\t\tprograma \n\t\t\tem linguagem C"); return 0; }
2.5
2
2024-11-18T22:53:39.824447+00:00
2019-07-18T02:47:19
aebbec0e1e1167114561c1d30439cf48e2ab5492
{ "blob_id": "aebbec0e1e1167114561c1d30439cf48e2ab5492", "branch_name": "refs/heads/master", "committer_date": "2019-07-18T02:47:39", "content_id": "60bdc5168abc747809fe821864aecf9d07fd29f3", "detected_licenses": [ "Unlicense" ], "directory_id": "ea2bfabfd7f97dc64c4ef6dd9d9d27f3c271bdab", "extension...
stackv2
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <flint/nmod_poly.h> #include "util.h" #include "sage_output.h" #include "nmod_poly_extra.h" /*------------------------------------------------------------*/ /* if opt = 1, runs a check */ /* else, runs timings ...
2.671875
3
2024-11-18T22:53:39.884808+00:00
2018-04-09T02:23:03
33f791fe4810132aca9d9e4c99c3ff3e700384eb
{ "blob_id": "33f791fe4810132aca9d9e4c99c3ff3e700384eb", "branch_name": "refs/heads/master", "committer_date": "2018-04-09T03:21:07", "content_id": "da91bc56366e1dd76de0af0a916e9c53a6e52295", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "846daf82b52c77efa76151960f833bee856412f4"...
stackv2
// Copyright 2017 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <ddk/debug.h> #include "dwc3.h" #include "dwc3-regs.h" #include "dwc3-types.h" #include <stdio.h> #include <string.h> #define EP0_LOCK(dwc) (...
2.078125
2
2024-11-18T22:53:40.305709+00:00
2021-09-19T23:42:47
ea978b911ab4b8d47c58cad891a5b472ff2c49ea
{ "blob_id": "ea978b911ab4b8d47c58cad891a5b472ff2c49ea", "branch_name": "refs/heads/main", "committer_date": "2021-09-19T23:42:47", "content_id": "f6300790b0de7862b3746e43c06d3391c7589a19", "detected_licenses": [ "CC0-1.0" ], "directory_id": "6a9814518a0d3d0209be88ce530d7386e4538c55", "extension": "...
stackv2
//Rodrigo Britto Calovi //UERGS - Universidade Estadual do Rio Grande do Sul //Prof. Dra. Fabrícia Damando //Disciplina: Estrutura de dados #include <stdio.h> #include <stdlib.h> typedef struct nodo{ int dados; struct nodo *proximo; }nodo, inicio, fim; int menu(); int solicitaValor(); void criaLista(struct n...
3.328125
3
2024-11-18T22:53:40.600917+00:00
2020-09-20T19:24:53
8f596f452a2ba95693ea64b3a05ac266f4c39b32
{ "blob_id": "8f596f452a2ba95693ea64b3a05ac266f4c39b32", "branch_name": "refs/heads/master", "committer_date": "2020-09-20T19:24:53", "content_id": "13099e5ffb0379a442377b7c7e1d0547ff354113", "detected_licenses": [ "MIT" ], "directory_id": "23b287fb635cb13c9dab2c674b3aa454445d1c68", "extension": "c"...
stackv2
// Author: Trevor Martin // Date of Completion: 20 March 2019 // Language: C // Class: CSCI 241 | Systems Programming | Oberlin College // Homework#: 4, tohex.c //=================================================================================================== // DESCRIPTION //=======================================...
3.375
3
2024-11-18T22:53:41.472927+00:00
2018-12-12T19:34:58
fb43c1ff2d2aa9af103a7c055c4450d6d94e594a
{ "blob_id": "fb43c1ff2d2aa9af103a7c055c4450d6d94e594a", "branch_name": "refs/heads/master", "committer_date": "2018-12-12T19:34:58", "content_id": "a45b4fa03bda02c78483f1a994c3b43c901ec269", "detected_licenses": [ "MIT" ], "directory_id": "205798618411cd76c20bb2af66a6b9a5208f111c", "extension": "c"...
stackv2
/* * adc.c * * Created on: 28 de set. de 2018 * Author: sebas */ #include "../inc/main.h" void initTouch ( void ) { initADC(); // initPinesTouch(); } /* void initADC ( void ) { ADC_CLOCK_SETUP_T ADCSetup; Chip_ADC_Init(LPC_ADC, &ADCSetup); Chip_ADC_SetSampleRate(LPC_ADC, &ADCSetup, fs); Chip_ADC_En...
2.1875
2
2024-11-18T22:53:42.201086+00:00
2023-05-30T16:08:18
e0e246ffa3523f584d72ab66414822e68a0a4a0e
{ "blob_id": "e0e246ffa3523f584d72ab66414822e68a0a4a0e", "branch_name": "refs/heads/main", "committer_date": "2023-05-30T16:08:18", "content_id": "be76b426be1e180238b42328f2529e3f6bc858cb", "detected_licenses": [ "MIT" ], "directory_id": "89ffe54c77f257455e2bcb8b8ad9d9686384312d", "extension": "c", ...
stackv2
#include "../c-mpi.h" int mpi_check_arnoldi_repres( MPI_Comm mpi_comm, double *norm_repres, long int m, int mloc, int k, double *b, double *Q, int ldq, double beta, double *H, int ldh ){ double *bAQ, *d_R; double normA, *work; int ii, jj; bAQ = (double *) malloc( mloc * (k+1) * sizeof(double)); d_R = (double...
2.109375
2
2024-11-18T22:53:42.520943+00:00
2018-09-20T19:19:42
3a5295d8e33822329ef42d961de1f604550ff025
{ "blob_id": "3a5295d8e33822329ef42d961de1f604550ff025", "branch_name": "refs/heads/master", "committer_date": "2018-09-20T19:19:42", "content_id": "5069eb78b8f546aac5c8fb00a9e3f84122aab5a3", "detected_licenses": [ "MIT" ], "directory_id": "38ba22c0e6cc44c188e130fd964410beeeca8fa7", "extension": "c"...
stackv2
#include <stdlib.h> #include "table.h" /* * -------------------------------- Function definitions -------------------------------------- */ // int isEqual(hashkey_t * K1, hashkey_t * K2){ if(K1->len != K2->len) return FALSE; int i; for(i = 0; i < K1->len; i++){ if(K1->key[i] != K2->key[i]) return FALSE; } r...
2.90625
3
2024-11-18T22:53:42.777463+00:00
2016-01-04T18:02:36
fa32de8f0cc491bebd8c869c42e5980b7e5f9ada
{ "blob_id": "fa32de8f0cc491bebd8c869c42e5980b7e5f9ada", "branch_name": "refs/heads/master", "committer_date": "2016-01-04T18:02:36", "content_id": "8ec6bd43f63a2beaac086063fd3ca7c6b29b994b", "detected_licenses": [ "MIT" ], "directory_id": "29ff8e952ddde47b49b7bf289814b2125fd4e72d", "extension": "c"...
stackv2
#include <stdio.h> #include "wich.h" bool cmp(String * x); bool cmp(String * x) { return String_eq(x,String_new("ca")); } int main(int ____c, char *____v[]) { setup_error_handlers(); String * x; String * y; x = String_new("cat"); y = String_new("dog"); if (String_eq(x,y)) { print_string(String_new("...
2.875
3
2024-11-18T22:53:43.113783+00:00
2020-09-22T16:05:34
b7f019fe86a7635f855b4078d525e87834a28ee7
{ "blob_id": "b7f019fe86a7635f855b4078d525e87834a28ee7", "branch_name": "refs/heads/master", "committer_date": "2020-09-22T16:05:34", "content_id": "ea28ed3b35bf84fc3ee2e48bb629e4d21b438dc0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "abbb1e132b3d339ba2173129085f252e2f3311dc", "extensio...
stackv2
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #ifndef _XLINK_TOOL_H #define _XLINK_TOOL_H #ifdef __cplusplus extern "C" { #endif #ifdef NDEBUG // Release configuration #ifndef ASSERT_XLINK #define ASSERT_XLINK(condition) do { \ if(!(condition)) { \ ...
2.015625
2
2024-11-18T22:53:43.350021+00:00
2014-05-29T21:23:07
fd5726cede7bfd35d71567482def6fb19f3df06a
{ "blob_id": "fd5726cede7bfd35d71567482def6fb19f3df06a", "branch_name": "refs/heads/master", "committer_date": "2014-05-29T21:23:07", "content_id": "c6fb5cb0a6ebf77c648a2ae6fd2e66b6915e57b6", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "677151e25e2a82a2ba005feb23d18bb539676d7d", "extens...
stackv2
/** * Randomly generate a clustered graph. * * Author: Paul McCarthy <pauld.mccarthy@gmail.com> */ #include <stdint.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "graph/graph.h" #include "util/array.h" /** * Randomly generates sizes for each cluster over the range [clustersz - * (range...
2.71875
3
2024-11-18T22:53:43.709587+00:00
2016-11-27T16:11:35
1cfe45f3ed6465f9c75cca3d52c70abcf26af574
{ "blob_id": "1cfe45f3ed6465f9c75cca3d52c70abcf26af574", "branch_name": "refs/heads/master", "committer_date": "2016-11-27T16:11:35", "content_id": "f3fd4b7bf8e0eea6be6926c014266669ade777cd", "detected_licenses": [ "MIT" ], "directory_id": "6a927c08d3f80613b3503aa1e1df28eb1a517560", "extension": "c"...
stackv2
// // VGA 64 demo - using a COG C based VGA driver. // This is a very basic translation of Kwabena W. Agyeman's // VGA64 6 Bits Per Pixel demo to C. I haven't included all // of the methods of the original Spin object, just enough to // get the visual demo going. // Interested readers should get the original object; it...
2.5625
3
2024-11-18T22:53:43.822849+00:00
2015-05-11T06:02:08
1b339cf3ec6ae27baf71aeb2e0df57d76a627673
{ "blob_id": "1b339cf3ec6ae27baf71aeb2e0df57d76a627673", "branch_name": "refs/heads/master", "committer_date": "2015-05-11T06:02:08", "content_id": "41f63f9f948c3b867006d6fab76879b557a60ec0", "detected_licenses": [ "ISC" ], "directory_id": "b15b9c29c4172d665da8d5fc6920096078b1db89", "extension": "h"...
stackv2
// Motors. enum Motor { elbow = 0, // U1 & U2 shoulder, // U3 & U4 rwrist, // U5 & U6 // U7 & U8 (spare) base, // U9 & U10 gripper, // U11 & U12 (unused) lwrist // U13 & U14 }; // Bitmask for motor commands. enum Command { elbow_l = ...
2.0625
2
2024-11-18T22:53:43.978481+00:00
2023-09-02T14:55:31
785e610b3dc80fe0ac819a38f09658b7c655d8d2
{ "blob_id": "785e610b3dc80fe0ac819a38f09658b7c655d8d2", "branch_name": "refs/heads/master", "committer_date": "2023-09-02T14:55:31", "content_id": "907177b1e1447e78f4b55280e0a962c50b830df3", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca", "extens...
stackv2
/** * @file * * @date Mar 23, 2020 * @author Anton Bondarev */ #ifndef SRC_DRIVERS_INTERRUPT_MIPS_GIC_MIPS_GIC_H_ #define SRC_DRIVERS_INTERRUPT_MIPS_GIC_MIPS_GIC_H_ #include <framework/mod/options.h> #include <config/embox/driver/interrupt/mips_gic.h> #define MIPS_GIC_BASE OPTION_MODULE_GET(embox__driver__inter...
2.015625
2
2024-11-18T22:53:45.550751+00:00
2023-08-30T19:55:29
dc5207e8fc7a1ec926e9c28aa7751eea3edf45da
{ "blob_id": "dc5207e8fc7a1ec926e9c28aa7751eea3edf45da", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T19:55:29", "content_id": "203c92e76bef493166f878d19c80c15e5964d244", "detected_licenses": [ "MIT" ], "directory_id": "83e7dc1281874779c46dfadcc15b2bb66d8e599c", "extension": "c"...
stackv2
#include "../../lv_examples.h" #if LV_USE_BTN && LV_BUILD_EXAMPLES static void event_handler(lv_event_t * e) { lv_event_code_t code = lv_event_get_code(e); if(code == LV_EVENT_CLICKED) { LV_LOG_USER("Clicked"); } else if(code == LV_EVENT_VALUE_CHANGED) { LV_LOG_USER("Toggled"); } }...
2.546875
3
2024-11-18T22:53:45.695636+00:00
2017-02-15T20:05:02
3d5e67d52612f38d158c25bed356b78e4e9e8c91
{ "blob_id": "3d5e67d52612f38d158c25bed356b78e4e9e8c91", "branch_name": "refs/heads/master", "committer_date": "2017-02-15T20:05:02", "content_id": "71add79f54968eacd61c2dc5f8f00bb50311640a", "detected_licenses": [ "MIT" ], "directory_id": "e591393c86bcd004e3cf74b65dcd081933a4c75b", "extension": "h"...
stackv2
/* * erreurs.h * * "@(#)erreurs.h 1.2 (C) P. Durif 1994" * */ enum ERREUR { OK, PARAMETRES_INCONSISTANTS, TABLE_INOEUDS_SATUREE, SYSTEME_DE_FICHIER_SATURE, LIEN_SUR_REPERTOIRE, REPERTOIRE_INEXISTANT, VOLUME_INEXISTANT, VOLUME_DEJA_MONTE, VOLUME_NON_MONTE, EXISTE_DEJA, FICHIER_INE...
2.015625
2
2024-11-18T22:53:47.306756+00:00
2017-06-14T12:00:42
2e8e403d96097d90c1f7cb7f9c46b22bc437d0d1
{ "blob_id": "2e8e403d96097d90c1f7cb7f9c46b22bc437d0d1", "branch_name": "refs/heads/master", "committer_date": "2017-06-14T12:00:42", "content_id": "60efecc7bdf2b6adb00578ff86355b1e0eea05bf", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a37cb3d2c473c3b7bf430321ddf38138c305dd81", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include "test.pb-c.h" #include "test.pb-iter.h" #include "ssrtb_v6.pb-c.h" #include "ssrtb_v6.pb-iter.h" #include "test.h" typedef struct { size_t index; char buffer[65535]; } FakeAllocatorData; static void *perf_system_alloc(void *adata, size_t size)...
2.234375
2
2024-11-18T22:53:47.595956+00:00
2016-07-03T18:26:53
f1acbe7414d1bedc824014130e55c4dbbb57e2e9
{ "blob_id": "f1acbe7414d1bedc824014130e55c4dbbb57e2e9", "branch_name": "refs/heads/master", "committer_date": "2016-07-03T18:26:53", "content_id": "3b549dc6694e25adce79d61053d4db63f6e71b83", "detected_licenses": [ "Apache-2.0" ], "directory_id": "2baf77518b231fbc7f810ea7f15983bbe2d3b479", "extensio...
stackv2
// // author : ciro ceissler // email : ciro.ceissler at gmail.com // description : trapezoidal rule program // #include <stdio.h> #include <stdlib.h> #ifdef _OPENMP # include <omp.h> #endif // _OPENMP void trap(double a, double b, int n, double* global_result_p); double local_trap(double a, double b, ...
3.09375
3
2024-11-18T22:53:47.959159+00:00
2021-08-22T16:57:31
fd3fddf201fd4693a84b755764ae8570360b97cb
{ "blob_id": "fd3fddf201fd4693a84b755764ae8570360b97cb", "branch_name": "refs/heads/master", "committer_date": "2021-09-26T16:58:16", "content_id": "bd163b2761052c3b01cb7b22040067139f8f6b5d", "detected_licenses": [ "CC0-1.0" ], "directory_id": "30adece44d4b2be3ded5ddc9dbaa419b39fd5079", "extension":...
stackv2
// An SSE2/SSSE3 version of shishua half. Slower than AVX2, but more compatible. // Also compatible with 32-bit x86. // // SSSE3 is recommended, as it has the useful _mm_alignr_epi8 intrinsic. // We can still emulate it on SSE2, but it is slower. #ifndef SHISHUA_HALF_SSE2_H #define SHISHUA_HALF_SSE2_H #include <stdint...
2.328125
2
2024-11-18T22:53:48.219808+00:00
2020-10-29T00:35:16
4629e2290244c165ed31220032021eaaf4b7165d
{ "blob_id": "4629e2290244c165ed31220032021eaaf4b7165d", "branch_name": "refs/heads/main", "committer_date": "2020-10-29T00:35:16", "content_id": "8857316de52463b22ceadccb4b7543a69689cb7f", "detected_licenses": [ "MIT" ], "directory_id": "d3d81df4392fdc9aabe0c8653f862cb21a0eb89f", "extension": "c", ...
stackv2
#include <stdlib.h> #include <stdio.h> #include "lista.h" #define max 20 struct pilha { int vetor[max]; int topo; }; Pilha cria() { // Aloca a pilha na memoria Pilha resultado = (Pilha) malloc(sizeof(struct pilha)); if (resultado){ // verifica se alocou com sucesso resultado->topo = -1; } ...
3.671875
4
2024-11-18T22:53:48.312005+00:00
2019-10-30T10:18:38
e193a8916bf0f2aee65a740a3454b2320ed3070a
{ "blob_id": "e193a8916bf0f2aee65a740a3454b2320ed3070a", "branch_name": "refs/heads/master", "committer_date": "2019-10-30T10:18:38", "content_id": "7a62281b8a1c54b7521b300244bb3ea58170b11b", "detected_licenses": [], "directory_id": "b03695e24f15755e4d87f6d142c062feae064f0d", "extension": "c", "filename...
stackv2
#include "pg_sphere.h" #include "sbuffer.h" /* Functions to buffer the parser input. */ /* Maximum count of buffered angles. */ #define MAX_BUF_ANGLE 20 /* The type of parsed spherical object. */ unsigned char spheretype; /* The angle buffer. */ float8 bufangle[MAX_BUF_ANGLE]; /* A simple spherical point. */ typed...
2.640625
3
2024-11-18T22:53:48.795224+00:00
2018-03-06T02:32:21
c3f99d20c6df76e3e3eaf93dffb6824a43f1e014
{ "blob_id": "c3f99d20c6df76e3e3eaf93dffb6824a43f1e014", "branch_name": "refs/heads/master", "committer_date": "2018-03-06T02:32:21", "content_id": "1dd718f0082672e202fa9c1d222b409907633a99", "detected_licenses": [ "Apache-2.0" ], "directory_id": "920881bc8494fa97169a902eb298cfd256ce5c05", "extensio...
stackv2
#include "header.h" void readfile(char *inputfile,struct hashentry **ht) { char line[80]; FILE *file; file = fopen(inputfile,"r"); printf("%s","Starting reading file "); unsigned int counter = 0; while(fgets(line,80, file)) { // printf("\nline read:%s",line); if(counter%10000 == 0) { printf("*"); f...
2.4375
2
2024-11-18T22:53:49.094716+00:00
2020-02-15T23:49:30
9a5422ac74f14cb3b803d5b053c4a77080159bc5
{ "blob_id": "9a5422ac74f14cb3b803d5b053c4a77080159bc5", "branch_name": "refs/heads/master", "committer_date": "2020-02-15T23:49:30", "content_id": "9eb529bb3e684c6498bce0ea606cdc04c7cb7ff2", "detected_licenses": [ "MIT" ], "directory_id": "ab4c5dcf2ded51d15877d79d3e374752ab99cfda", "extension": "c"...
stackv2
/* URI Online Judge | 1041 Coordinates of a Point Adapted by Neilor Tonin, URI Brazil https://www.urionlinejudge.com.br/judge/en/problems/view/1041 Timelimit: 1 Write an algorithm that reads two floating values (x and y), which should represent the coordinates of a point in a plane. Next, determine which quadrant th...
3.3125
3
2024-11-18T23:05:39.822059+00:00
2022-05-04T16:08:39
a872d7c8f7b7133653c51692c19787b58be2ac89
{ "blob_id": "a872d7c8f7b7133653c51692c19787b58be2ac89", "branch_name": "refs/heads/main", "committer_date": "2022-05-04T16:08:39", "content_id": "5d63a6d478afc749c65945cf852da5d7c4322d3e", "detected_licenses": [ "MIT" ], "directory_id": "e8cc91c76805c729a36305d03a80e43e057af188", "extension": "c", ...
stackv2
// // leak-at-exit.c // // Author: // Rolf Bjarne Kvinge // // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. // #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <time.h> static void my__exit (int status); typedef void (*ExitFunc) (...
2.34375
2
2024-11-18T23:05:39.923577+00:00
2017-03-26T23:25:57
3f212089e90826caa7b35dff01b73ae42d88180b
{ "blob_id": "3f212089e90826caa7b35dff01b73ae42d88180b", "branch_name": "refs/heads/master", "committer_date": "2017-03-26T23:25:57", "content_id": "1390a443c55a8900a84ca1e325099d88a127f904", "detected_licenses": [ "Zlib" ], "directory_id": "1c4d3b5a11137f750f07851a772c490a22b2cb0c", "extension": "c...
stackv2
/** * @src/menustate.c */ #include <GFraMe/GFraMe_accumulator.h> #include <GFraMe/GFraMe_audio.h> #include <GFraMe/GFraMe_audio_player.h> #include <GFraMe/GFraMe_event.h> #include <GFraMe/GFraMe_messagebox.h> #ifdef GFRAME_MOBILE #include <GFraMe/GFraMe_mobile.h> #endif #include <GFraMe/GFraMe_screen.h> #include <GFr...
2.15625
2
2024-11-18T23:05:40.947548+00:00
2019-11-19T09:01:35
380fc6914ce0719f08e0fbca150356baa1e4b11c
{ "blob_id": "380fc6914ce0719f08e0fbca150356baa1e4b11c", "branch_name": "refs/heads/master", "committer_date": "2019-11-19T09:01:35", "content_id": "30f1b646fd02d2a5cbcf942f0a9395e084da2fc3", "detected_licenses": [ "Apache-2.0" ], "directory_id": "55b5eaaa1180acceef2df4315629caf6c780bbc2", "extensio...
stackv2
/** * Copyright 2012 Marc Worrell * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
2.125
2
2024-11-18T23:05:40.999532+00:00
2019-10-09T19:04:50
6ea1e37ba3f1124339226fd3d559f84048a197e4
{ "blob_id": "6ea1e37ba3f1124339226fd3d559f84048a197e4", "branch_name": "refs/heads/master", "committer_date": "2019-10-09T19:04:50", "content_id": "c31b4685b6ee56dbbe397f92d7c48fb1b8153903", "detected_licenses": [ "MIT" ], "directory_id": "f5ff9159d6d845a012e7b1a9466c1cb94017c0c6", "extension": "h"...
stackv2
#pragma once struct Trigger { enum States { UNSET, LOW, HIGH }; States state = States::UNSET; const float lowThreshold = 0.0f; const float highThreshold = 0.1f; bool process(const float in_) { switch (state) { case States::LOW: if (in_ >= highThreshold) { state = States::HIGH; return tru...
2.5625
3
2024-11-18T23:05:41.476685+00:00
2023-05-24T05:00:51
47f176106e724b161060c773575d55990cb6a332
{ "blob_id": "47f176106e724b161060c773575d55990cb6a332", "branch_name": "refs/heads/master", "committer_date": "2023-05-24T05:00:51", "content_id": "5389e298976dcbecce036829d7d40188d2050870", "detected_licenses": [ "MIT" ], "directory_id": "9a595b2b73f756c15c585abf3a7e5b011416e1fc", "extension": "h"...
stackv2
/* Copyright (c) 2011 by Markus Duft <markus.duft@ssi-schaefer.com> * This file is part of the 'tachyon' operating system. */ #pragma once #include "tachyon.h" #define BMAP_SRCH_FORWARD 0x0 #define BMAP_SRCH_BACKWARD 0x1 #define BMAP_SRCH_HINTED 0x2 /**< use and update the hint field during the search */ /**...
2.71875
3
2024-11-18T23:05:42.122179+00:00
2023-07-17T23:25:32
28c90a6a2744c4f4bf60b56f577c3217c99fe213
{ "blob_id": "28c90a6a2744c4f4bf60b56f577c3217c99fe213", "branch_name": "refs/heads/main", "committer_date": "2023-07-17T23:25:32", "content_id": "a93c27dce408958df9bb82b15e2c0765fb3188b6", "detected_licenses": [ "MIT" ], "directory_id": "4ac5de343b368c5220325658b1fc78f2fba10575", "extension": "c", ...
stackv2
#include "reallocf.h" #include <stdlib.h> void *imm_reallocf(void *ptr, size_t size) { void *nptr = realloc(ptr, size); if (!nptr && ptr && size != 0) free(ptr); return (nptr); }
2.515625
3
2024-11-18T23:05:42.223351+00:00
2017-11-04T05:47:27
75314b8ac770f5e87eac7d39104ecb67f0527223
{ "blob_id": "75314b8ac770f5e87eac7d39104ecb67f0527223", "branch_name": "refs/heads/master", "committer_date": "2017-11-04T05:47:27", "content_id": "ee5ee88b6bfcb31175ccbc9528bc9ba3833e9b23", "detected_licenses": [ "MIT" ], "directory_id": "56b3f720c8b7df1c6ae48e4a6e2dafa79762dab6", "extension": "c"...
stackv2
// Copyright (c) 2017 Yule Fox // All rights reserved #include "http.h" static struct mg_mgr mgr; static const char *s_http_port = "8000"; static struct mg_serve_http_opts s_http_server_opts; static void handle_cmd(struct mg_connection *nc, struct http_message *hm) { const struct mg_str *cmd = NULL; if (mg_vcas...
2.59375
3
2024-11-18T23:05:44.221669+00:00
2021-06-02T19:12:14
f976a78a67e54991317d8dfc38a3ea2825f37c08
{ "blob_id": "f976a78a67e54991317d8dfc38a3ea2825f37c08", "branch_name": "refs/heads/main", "committer_date": "2021-06-02T19:12:14", "content_id": "0d4fcd78bccc953f4643c9b1d45c4b80ec8662e7", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "7b371e5690eb47644489b554f73298c7c0038fcf", "extensio...
stackv2
#include <mulib/str.h> bool is_string_a_number(const char *str) { size_t length = strlen(str); for (size_t i = 0; i < length; i++) { if (!(isdigit(str[i]) || str[i] == '-')) { return false; } } return true; } int mustr_find_table_entry(const char *entry_name, const char **table, size_t table_s...
2.4375
2
2024-11-18T23:05:44.278290+00:00
2023-04-11T02:48:42
da68c1c6ba80fafdbb5a1c1bb96402e16032436d
{ "blob_id": "da68c1c6ba80fafdbb5a1c1bb96402e16032436d", "branch_name": "refs/heads/master", "committer_date": "2023-04-11T02:48:42", "content_id": "2a46405f400f3fcab93cf7c5931d7473b683553a", "detected_licenses": [ "Apache-2.0", "MIT", "BSD-2-Clause" ], "directory_id": "4b64dbbcd51ac0ff67c1ef9...
stackv2
/* * Copyright 2015 Naver Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
2.28125
2
2024-11-18T23:05:44.357598+00:00
2017-08-30T10:25:27
9edf9c5313f8558b942d82710a5e44c512f2cc9d
{ "blob_id": "9edf9c5313f8558b942d82710a5e44c512f2cc9d", "branch_name": "refs/heads/master", "committer_date": "2017-08-30T10:25:27", "content_id": "5ffe537b79d95900a3a8014b91803d496b20379a", "detected_licenses": [ "MIT" ], "directory_id": "009cc336e3a650f580abb44e7e083bb5780fec70", "extension": "c"...
stackv2
// // enginx.c // xcode // // Created by stephenw on 2017/5/16. // Copyright © 2017年 stephenw.cc. All rights reserved. // #include "enginx.h" #include "enginx_dev.h" #include "http_parser.h" #include "Mem.h" #include <string.h> #include <regex.h> const char* ENGINX_CONFIG_VAR_DEF_REQUEST_URI = "$request_uri"; con...
2.03125
2
2024-11-18T23:05:44.653788+00:00
2021-05-04T22:03:27
4eb625c710a59997354f55be52be2952cb37df4b
{ "blob_id": "4eb625c710a59997354f55be52be2952cb37df4b", "branch_name": "refs/heads/master", "committer_date": "2021-05-04T22:03:27", "content_id": "e0cd1e434dc062d6f1026aa0cf2ab36d45e909ea", "detected_licenses": [ "MIT" ], "directory_id": "bc8186616c2f186faaeaccae74021851a446fbe4", "extension": "h"...
stackv2
#ifndef channel_h #define channel_h #include <stdio.h> #include <stdint.h> #include "protocol/mpdu.h" #define STRIPS_PER_ALLOC 32 typedef struct { int mcu_seq, mpdu_seq; uint8_t *pixels; unsigned long offset, len; int apid; } Channel; /** * Initialize a Channel object * * @param ch the channel to initialize ...
2.34375
2
2024-11-18T23:05:45.020902+00:00
2019-02-17T01:55:35
0a2be9938377965b3c7e67fbd358d4c4b944387b
{ "blob_id": "0a2be9938377965b3c7e67fbd358d4c4b944387b", "branch_name": "refs/heads/master", "committer_date": "2019-02-17T01:55:35", "content_id": "dbf7a8de136bed1189fbd6c689c3a0236f1c0e68", "detected_licenses": [ "MIT" ], "directory_id": "4e927b82fa163c6197fce9ae7ca53feb8830e6d7", "extension": "c"...
stackv2
/* This is a managed file. Do not delete this comment. */ #include <corto> #include "src/store/object.h" #include "interface.h" #include "class.h" bool corto_struct_castable_v( corto_struct this, corto_type type) { return corto_struct_compatible(this, type); } bool corto_struct_compatible_v( corto_str...
2.328125
2
2024-11-18T23:05:45.361384+00:00
2018-02-20T18:55:19
6a17c3a49fcbb5cd99c2ea4b73da021a641178af
{ "blob_id": "6a17c3a49fcbb5cd99c2ea4b73da021a641178af", "branch_name": "refs/heads/master", "committer_date": "2018-02-20T18:55:19", "content_id": "b5ae798f5a3156136cfaff9e724bbb1e01381223", "detected_licenses": [ "MIT" ], "directory_id": "72b89fbce63753f65b6f9de5793ae0c6aedfa4fd", "extension": "c"...
stackv2
/** * @file tiledb_kv_write.c * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2018 TileDB, Inc. * * 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 witho...
2.25
2
2024-11-18T23:05:45.997663+00:00
2021-12-09T03:49:43
51ab21301bf433fbbabf14a86eb12bd0ec166798
{ "blob_id": "51ab21301bf433fbbabf14a86eb12bd0ec166798", "branch_name": "refs/heads/master", "committer_date": "2021-12-09T03:49:43", "content_id": "8f43fed9eacf42b5d4d2caac77d99171b452bc69", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "706034d68a2a6c7ff50c6849d47b5967384df0fa", "extens...
stackv2
/* Copyright (C) 2003 Commonwealth Scientific and Industrial Research Organisation (CSIRO) Australia Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above c...
2.421875
2
2024-11-18T23:05:46.054923+00:00
2018-03-22T02:13:11
3e3b130fffd965fb596d3dae87be7c8de0c65f48
{ "blob_id": "3e3b130fffd965fb596d3dae87be7c8de0c65f48", "branch_name": "refs/heads/master", "committer_date": "2018-03-22T02:13:11", "content_id": "f0fd4e75906405c80928b946fee3690b7b16b11b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "fa4deb7f4cbfc8083fbacd5ccdd5137850a76fe3", "extens...
stackv2
/* * main implementation: use this 'C' sample to create your own application * */ #include "derivative.h" /* include peripheral declarations */ extern void xcptn_xmpl(void); int main(void) { volatile int counter = 0; AXBS_0.PORT[3].CRS.B.ARB = 1; /* Round-robin (rotating) priority */ xcptn_xmpl (); ...
2.109375
2
2024-11-18T23:05:46.113429+00:00
2023-07-12T07:38:29
c6354f11e75fcf9c61f500ac3ca1e456e19a0487
{ "blob_id": "c6354f11e75fcf9c61f500ac3ca1e456e19a0487", "branch_name": "refs/heads/master", "committer_date": "2023-07-12T07:38:29", "content_id": "df9cc68ab25e089f4f6c49ba2c56ed5935ad5e6f", "detected_licenses": [ "MIT" ], "directory_id": "52c8ed39b32ccc7c0673278c1adea3638797c9ff", "extension": "h"...
stackv2
#ifndef __XFT_H__ #define __XFT_H__ #include <assert.h> #include <limits.h> #include <setjmp.h> #include <stddef.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <float.h> /* * type */ typedef signed long XCG_FT_Fixed; typedef signed int XCG_FT_Int; typede...
2.140625
2
2024-11-18T23:05:46.171663+00:00
2023-08-31T16:20:55
d04b4c854557f5ebd3e8ac73f0004ea2a4ea9da6
{ "blob_id": "d04b4c854557f5ebd3e8ac73f0004ea2a4ea9da6", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T16:20:55", "content_id": "51040ca0b577391a9cf3d5b2ab5a5ff175741d6a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "99bdb3251fecee538e0630f15f6574054dfc1468", "extensio...
stackv2
/* * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2005-02-22 Bernard The first version. * 2017-12-11 Bernard Use rt_free to instead of free in fd_is_open(). * 2018-03-20 Heyuanjie dyna...
2.28125
2
2024-11-18T23:05:46.318532+00:00
2013-10-18T16:01:51
e91dc4819bdcc024de1df186979bc8b0f8c39c89
{ "blob_id": "e91dc4819bdcc024de1df186979bc8b0f8c39c89", "branch_name": "refs/heads/master", "committer_date": "2013-10-18T16:01:51", "content_id": "3f2fae1f932a15778fddea72b76a2173d2498d3c", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "818ab6cd56545b2950fa05d29a740f98...
stackv2
#include "sofam.h" int iauEform ( int n, double *a, double *f ) /* ** - - - - - - - - - ** i a u E f o r m ** - - - - - - - - - ** ** Earth reference ellipsoids. ** ** Status: canonical. ** ** Given: ** n int ellipsoid identifier (Note 1) ** ** Returned: ** a double equatorial radiu...
2.046875
2
2024-11-18T23:05:47.011033+00:00
2015-10-27T09:42:27
d621b94c4339ad40eb1fe3f8d50ea3ff022504da
{ "blob_id": "d621b94c4339ad40eb1fe3f8d50ea3ff022504da", "branch_name": "refs/heads/master", "committer_date": "2015-10-27T09:42:27", "content_id": "5f9f2b32e3cfa66e049fd6593d2548b1723d5226", "detected_licenses": [ "MIT" ], "directory_id": "b6d7e07d54d96d266de265248cb7e2295a47dd30", "extension": "h"...
stackv2
/* * ## nlk_err.h ## * * Error handling - based on the GSL error handling and Debug/Log based on * Zed's Debug Macros * * Copyright (c) 2014 Luis Rei <me@luisrei.com> http://luisrei.com @lmrei * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated do...
2.125
2
2024-11-18T23:05:47.293126+00:00
2020-06-03T17:40:26
272d90cce232d590afe270f7c45a0962314b48a5
{ "blob_id": "272d90cce232d590afe270f7c45a0962314b48a5", "branch_name": "refs/heads/master", "committer_date": "2020-06-03T17:40:26", "content_id": "43b98054b74ca6ac1ea545d47445a4d263282166", "detected_licenses": [ "MIT" ], "directory_id": "e59ba222fda0746b295afd9edc3a1d41452f4a2d", "extension": "c"...
stackv2
/* * This file implements testing of the AGB star file I/O functions at * vice/src/io/agb.h */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include "../../io.h" #include "agb.h" /* ---------- static function comment headers not duplicated here ---------- */ static unsigned short spawn_test...
2.484375
2
2024-11-18T23:05:47.349258+00:00
2023-08-18T10:23:24
df4bb720ac2c46e673c3d810fc254dbfedd75739
{ "blob_id": "df4bb720ac2c46e673c3d810fc254dbfedd75739", "branch_name": "refs/heads/master", "committer_date": "2023-08-18T10:23:24", "content_id": "b4273df6439e34839e4164e050933a3f3696d238", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "7ffcd38a2382f905c3d4494cf61aca930aea9cec", "extens...
stackv2
/** * @file schema_features.c * @author Radek Krejci <rkrejci@cesnet.cz> * @brief Schema feature handling * * Copyright (c) 2015 - 2020 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. * You may obta...
2.125
2
2024-11-18T23:05:47.553957+00:00
2019-05-07T15:18:25
70f63ec4ce749dabdd50b6d7a635ea2a2f14c3b0
{ "blob_id": "70f63ec4ce749dabdd50b6d7a635ea2a2f14c3b0", "branch_name": "refs/heads/master", "committer_date": "2019-05-07T15:18:25", "content_id": "6f46aab1f311db85f6cbf6a43c1f9996458a5a27", "detected_licenses": [ "MIT" ], "directory_id": "6eebe671de10bfd200d02db874bb6345a5f9a649", "extension": "h"...
stackv2
#ifndef CLIENTE_INCLUDE_H #define CLIENTE_INCLUDE_H #include "juego.h" /** * Estructura de los clientes */ typedef struct { int idCliente; char apellido[51]; char nombre[51]; char sexo; char domicilio[51]; int isEmpty; } eCliente; /** * Menu de clientes */ int menuClientes(eCliente client...
2.640625
3
2024-11-18T23:05:48.489753+00:00
2019-07-03T21:23:42
7aa047ddb04d4e68efcd6381af2663fd29d60c25
{ "blob_id": "7aa047ddb04d4e68efcd6381af2663fd29d60c25", "branch_name": "refs/heads/master", "committer_date": "2019-07-03T21:23:42", "content_id": "81384f4fff764302c574974a1dfdaef6407fd839", "detected_licenses": [ "MIT" ], "directory_id": "1fc0c80c49b33e3fbf67e87195abf63fd35778af", "extension": "c"...
stackv2
/* iflist.c : retrieve network interface information thru netlink sockets (c) Jean Lorchat @ Internet Initiative Japan - Innovation Institute v1.0 : initial version - Feb 19th 2010 This file was obtained at the following address : http://www.iijlab.net/~jean/iflist.c Find out more on the blog pos...
2.671875
3
2024-11-18T23:05:48.559795+00:00
2021-02-26T02:36:14
759c68206966070dd161678bc04669987dd49c35
{ "blob_id": "759c68206966070dd161678bc04669987dd49c35", "branch_name": "refs/heads/master", "committer_date": "2021-02-26T02:36:14", "content_id": "64aaf99efef32aa12829632b4275c60e8cd7e6cb", "detected_licenses": [ "MIT" ], "directory_id": "4e3183ff9dcc6a3bc2318deaec8eff6901d6967f", "extension": "c"...
stackv2
/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ int kthToLast(struct ListNode* head, int k){ if(head == NULL) { return -1; } struct ListNode* fast = head; struct ListNode* low = head; while(k!=0) { fast = fast->...
3.046875
3
2024-11-18T23:05:48.906758+00:00
2019-07-30T17:35:24
102821f9dd99513517804de0d08e94b07a04fb64
{ "blob_id": "102821f9dd99513517804de0d08e94b07a04fb64", "branch_name": "refs/heads/master", "committer_date": "2019-07-30T17:35:24", "content_id": "f9158e0e10865e27ac96732da546288271235b90", "detected_licenses": [ "MIT" ], "directory_id": "fa2bd0e0915a4c5401770ca78fb65ae33526e072", "extension": "c"...
stackv2
/* Sam Shippey * SIGUSR1, SIGUSR2 * * The user defined signals. * Shows how to catch them and how to send them. * * Written based off Jeff Lund's SIGSEGV, Matthew Spohrer's SIGCHLD tests. */ #include <errno.h> #include <error.h> #include <stdio.h> #include <signal.h> void usrdefsignal_handler(int signo) { in...
3.078125
3
2024-11-18T23:05:49.578471+00:00
2017-08-01T11:32:17
74ff9f0516b936ab6379e5c9fc8beb3f7595ed2b
{ "blob_id": "74ff9f0516b936ab6379e5c9fc8beb3f7595ed2b", "branch_name": "refs/heads/master", "committer_date": "2017-08-01T11:32:17", "content_id": "e997b8b690b3e9932d8d0a4055768ef0d9c304ac", "detected_licenses": [ "MIT" ], "directory_id": "7787bd764bc26f50f23d00b467b847838a6bfdc1", "extension": "c"...
stackv2
#include <stdio.h> #define BASIC 10.00 #define EXTRA 1.5 #define STAGE1 0.15 #define STAGE2 0.2 #define STAGE3 0.25 int main(void) { float wt, salary, tax, net; scanf("%f", &wt); salary = BASIC * (wt > 40 ? 40 : wt) + EXTRA * BASIC * (wt > 40 ? wt - 40 : 0); if (salary <= 300) tax =...
2.921875
3
2024-11-18T23:05:49.977458+00:00
2018-08-25T22:05:42
544d2b6a24024348bf992bc470d583ab361a906d
{ "blob_id": "544d2b6a24024348bf992bc470d583ab361a906d", "branch_name": "refs/heads/master", "committer_date": "2018-08-25T22:05:42", "content_id": "eb7c6a788f73517bd00238259ed68e351201ce43", "detected_licenses": [ "MIT" ], "directory_id": "bf3b0137fd0b95b63898ca6a58de62e0b78e934b", "extension": "c"...
stackv2
#include <GL/gl.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include "3dEngine.h" #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642 // print to screen void printfScrn(float x, float y, float size, int color, struct rendrInfo rI, char *dbgString, ...) { va_list arg; char dbgMsg[1024];...
2.09375
2
2024-11-18T23:05:50.224659+00:00
2020-07-01T15:28:16
2349f7d02d59af5535c9cdf8f793ce7454b4f787
{ "blob_id": "2349f7d02d59af5535c9cdf8f793ce7454b4f787", "branch_name": "refs/heads/0856064", "committer_date": "2020-07-01T15:28:16", "content_id": "609b195970a2f68cc73cb193b5d8705702dae962", "detected_licenses": [ "MIT" ], "directory_id": "f35541ab9add459d8bbc915d0e3dbd8042fad7f6", "extension": "c...
stackv2
#include "info.h" #include "io.h" #include "irq.h" #include "sys.h" #include "map.h" #include "time.h" #include "timer.h" #include "sched.h" const char *entry_error_messages[] = { "SYNC_INVALID_EL1t", "IRQ_INVALID_EL1t", "FIQ_INVALID_EL1t", "ERROR_INVALID_EL1T", "SYNC_INVALID_EL1h", "IRQ_INVALID_EL1h", ...
2.359375
2
2024-11-18T23:05:50.987012+00:00
2021-01-04T11:57:46
f39eb7d710cb39606ca9b3452bb3c7e04c9cd682
{ "blob_id": "f39eb7d710cb39606ca9b3452bb3c7e04c9cd682", "branch_name": "refs/heads/main", "committer_date": "2021-01-04T11:57:46", "content_id": "c91cdc034adc8cd10f46a80f5302fdcaf05c3da9", "detected_licenses": [ "MIT" ], "directory_id": "415d753e471da3d2b6c6ef13904583f211226ccf", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "decode.h" int main() { char *result = decode_morse(".... . -.-- .--- ..- -.. ."); printf("The result is: %s \n", result); return 0; }
2.3125
2
2024-11-18T23:05:51.086106+00:00
2021-01-19T18:55:02
5322a8bf44f80e464dfbc668c37b40f13733bed4
{ "blob_id": "5322a8bf44f80e464dfbc668c37b40f13733bed4", "branch_name": "refs/heads/master", "committer_date": "2021-01-19T18:55:02", "content_id": "3b2c0c0482467e162941847112a71e2181ebb7e7", "detected_licenses": [ "MIT" ], "directory_id": "b173d8356d0f5c74db12d15be3a8892c300d6568", "extension": "c"...
stackv2
/* * @Copyright: Copyright (C) 2021-2021 Kevin group. All rights reserved. * @Description: the delay, time. * @Author: Kevin * @Email: weikaiup@163.com * @Date: 2021-01-07 */ #include "util_sys.h" #include "cmsis_os.h" void DelayMs(uint32_t ms) { uint32_t tick = osKernelGetTickFreq() * ms / 1000; osDela...
2.171875
2
2024-11-18T23:05:51.185611+00:00
2021-02-04T03:58:48
51ab8964473a651193a309d41a04e1c33ecbd19c
{ "blob_id": "51ab8964473a651193a309d41a04e1c33ecbd19c", "branch_name": "refs/heads/master", "committer_date": "2021-02-04T03:58:48", "content_id": "44983827a14be7c9c0ecbc61b4fbc49bae2ad54c", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "854c5f23b4947fdb17b8f69ee4a13debcdb70d57"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <assert.h> /* Takes raw binary FPGA data (32 chans of 20-bit samples) on stdin and * outputs CSV on stdout. Optional command line argument is a floating * point sample rate. e.g. * * ddc232-raw2csv 333.333 * * Which outputs CSV samples at 3...
2.96875
3
2024-11-18T23:05:51.676424+00:00
2021-07-21T23:14:53
1b4119fde1abbab1a9633fb2b59916784b575a35
{ "blob_id": "1b4119fde1abbab1a9633fb2b59916784b575a35", "branch_name": "refs/heads/master", "committer_date": "2021-07-21T23:14:53", "content_id": "852b666d63fdcb419556e8a3d95e04a90c639b9a", "detected_licenses": [ "BSD-2-Clause-Patent" ], "directory_id": "a29e0e317e23d1f991dda1b51c63be5433a6cc39", ...
stackv2
/** @file SPDM common library. It follows the SPDM Specification. Copyright (c) 2020, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "SpdmRequesterLibInternal.h" typedef struct { UINT8 RequestResponseCode; SPDM_GET_ENCAP_RESPONS...
2.234375
2
2024-11-18T23:05:51.833182+00:00
2021-05-03T06:28:45
0b013aabe7a38811ea53ed5a6e24d6dec96bfeda
{ "blob_id": "0b013aabe7a38811ea53ed5a6e24d6dec96bfeda", "branch_name": "refs/heads/master", "committer_date": "2021-05-03T06:28:45", "content_id": "ecd1755407a5ffa828d7b8338e9f4319f50bce45", "detected_licenses": [ "MIT" ], "directory_id": "57aa38a5e2d697a7b87730b7e4f80e144e4332e3", "extension": "c"...
stackv2
/* FFTwrapper.c - A wrapper for Fast Fourier Transforms Author: Nasca O. Paul, Tg. Mures, Romania De-classified and ported to C code by Paul Batchelor 2015 License: Public Domain This requires FFTW library (http://www.fftw.org) to compile and run. */ #include <stdlib.h> #include <math.h> #include <strin...
2.59375
3
2024-11-18T23:05:52.027596+00:00
2023-08-29T22:56:49
bdc096d9bd104d0391659781bb514df6517cd806
{ "blob_id": "bdc096d9bd104d0391659781bb514df6517cd806", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T22:56:49", "content_id": "c0d87df1ea3b8a916a3a3716c41ae02f7a34e9d3", "detected_licenses": [ "Unlicense" ], "directory_id": "74af2b6e48d89f3974baae5cf6062c4365a11153", "extension...
stackv2
/* * Written by @dchest. Public domain. */ #include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "tweetnacl.h" size_t readmsg(unsigned char **out) { unsigned char buf[4096]; size_t n, have = 0; unsigned char *msg = calloc(1, crypto_secretbox_ZEROBYTES); if (msg...
2.46875
2
2024-11-18T23:05:52.351135+00:00
2019-01-15T23:26:12
eee5958e447d2938c271c56f34fb4d800ff90169
{ "blob_id": "eee5958e447d2938c271c56f34fb4d800ff90169", "branch_name": "refs/heads/release/201808", "committer_date": "2019-01-15T23:26:12", "content_id": "49d143e9bbcb0a7a4775371373495aefaf24ffea", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "23a4b94c8526131345872d2410e90f0646974427", ...
stackv2
/** @file UEFI Runtime DebugLib constructor that gets the pointers to the system table and boot services table This is needed to prevent a circular dependency between UefiBootServices lib and DebugLib Differs from the DXE constructor in that it needs to register a callback on ExitBootServices to close off prot...
2.484375
2
2024-11-18T23:05:52.434887+00:00
2021-10-07T09:14:48
738ddcca00dd4f627da0a0a68501bd25735eba46
{ "blob_id": "738ddcca00dd4f627da0a0a68501bd25735eba46", "branch_name": "refs/heads/main", "committer_date": "2021-10-07T09:14:48", "content_id": "7a274aa39d6bf248ad20d1b75b1b274839405925", "detected_licenses": [ "MIT" ], "directory_id": "00853d971d5aa794f53aef3b7180260ec8daa847", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include "sorting_algorithms.h" void printArray(int A[], int size) { int i; for (i = 0; i < size; i++) { printf("%d ", A[i]); } printf("\n"); } void fill_up_array(int array[], int n, int experiment) { if (experiment...
3.578125
4
2024-11-18T23:05:52.538482+00:00
2022-06-06T12:12:03
27fa43cf94e69dffe9609b0b99be33ab5280fdf0
{ "blob_id": "27fa43cf94e69dffe9609b0b99be33ab5280fdf0", "branch_name": "refs/heads/master", "committer_date": "2022-06-06T12:12:03", "content_id": "ce999e7601dbc91bac510b36006657017e97c2c7", "detected_licenses": [ "MIT" ], "directory_id": "3b4eb535197196f699948b9d6beb9a4fae7623eb", "extension": "c"...
stackv2
/* % Copyright (C) 2003 GraphicsMagick Group % Copyright (C) 2002 ImageMagick Studio % % This program is covered by multiple licenses, which are described in % Copyright.txt. You should have received a copy of Copyright.txt with this % package; otherwise see http://www.graphicsmagick.org/www/Copyright.html. % %%%%%%%%%...
2.15625
2
2024-11-18T23:05:52.844499+00:00
2021-03-10T18:40:29
fdd2b906a0cd6546a4a666232cbb3d2a68d256c4
{ "blob_id": "fdd2b906a0cd6546a4a666232cbb3d2a68d256c4", "branch_name": "refs/heads/master", "committer_date": "2021-03-10T18:40:29", "content_id": "af8fa4d193c5b3220e9e6f98e2bc076784f21125", "detected_licenses": [ "MIT" ], "directory_id": "40c64ec53289104bb29a641700160674c2e2de22", "extension": "c"...
stackv2
#define MAF_C /****************** Includes ********************/ #include <maf.h> #include <string.h> /******************* Defines ********************/ /******************** Types *********************/ /***************** Private Data *****************/ /****************** Prototypes ******************/ /*****...
2.359375
2
2024-11-18T23:05:53.566627+00:00
2021-08-05T14:42:35
c21ecb6d7137dbf6cc6bca7279b4b7ccbd0c22e0
{ "blob_id": "c21ecb6d7137dbf6cc6bca7279b4b7ccbd0c22e0", "branch_name": "refs/heads/main", "committer_date": "2021-08-05T14:42:35", "content_id": "0309bedbed57c784821a3d277a1857979b8e39dd", "detected_licenses": [ "MIT" ], "directory_id": "7d948e1764f4a66a1ba867c69d0001d6fb2895d5", "extension": "c", ...
stackv2
/*! @file ad5697r.h * @brief Driver source for the AD5697R 12-Bit, DAC C driver. */ #include <stdio.h> #include "ad5697r.h" /*! * @brief AD5697R Command Definitions */ typedef enum { AD5697R_CMD_NO_OP = 0x00, /* No operation */ AD5697R_CMD_W_INPUT_REG_N = 0x01, /* W...
2.5
2
2024-11-18T23:05:54.293276+00:00
2015-10-07T22:47:36
db6e6aef982528413dd762cbdff29be083b91a32
{ "blob_id": "db6e6aef982528413dd762cbdff29be083b91a32", "branch_name": "refs/heads/master", "committer_date": "2015-10-07T22:47:36", "content_id": "88a34b80b4b8aff7cdba12c373c58ce94827217a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b00c54389a95d81a22e361fa9f8bdf5a2edc93e3", "extensio...
stackv2
#include <stdio.h> #include <sys/ioctl.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <cutils/properties.h> #include "util.h" #include "fw_version_check.h" #define DNX_SYSFS_INT "/sys/devices/ipc/intel_fw_update.0/dnx" #define DNX_SYSFS_INT_ALT "/sys/kernel/fw_update...
2.0625
2
2024-11-18T23:05:56.174898+00:00
2013-05-07T03:27:06
06e402fbd98bfe83f2d8843620bd1658ae0fa09c
{ "blob_id": "06e402fbd98bfe83f2d8843620bd1658ae0fa09c", "branch_name": "refs/heads/master", "committer_date": "2013-05-07T03:27:06", "content_id": "27c0243240cd1d76e28640bb92f94b72e136b728", "detected_licenses": [ "MIT" ], "directory_id": "c0a47adeb5216eb3f6d8603f66d89b7d2be22197", "extension": "c"...
stackv2
/* * char_bst.c * * Paul Jones * Professor Brian Russell * Computer Architecture (01:198:211) * Rutgers University * * February 13th, 2013 * */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include "char_bst.h" alph_tree_node * new_char_tree() { alph_tree_node *node = ...
3.4375
3
2024-11-18T23:05:56.236186+00:00
2017-12-18T14:52:47
44eea47dc218c69ce62963f54c1268001fa18aa4
{ "blob_id": "44eea47dc218c69ce62963f54c1268001fa18aa4", "branch_name": "refs/heads/master", "committer_date": "2017-12-18T14:52:47", "content_id": "9b59fa90c192829d86c5a3def810228499e8e690", "detected_licenses": [ "MIT" ], "directory_id": "6c8732e7685578c7c88c7de6306f863f2ee36f94", "extension": "c"...
stackv2
//***********************************************************************/ // Author : tywind // Original Date : Aug 25,2015 // Module Name : Apploader.c // Module Funciton : // // // ...
2.34375
2
2024-11-18T23:05:56.302269+00:00
2022-10-19T09:02:08
90d2515c5696180ed88fa7729dbbb45626afda50
{ "blob_id": "90d2515c5696180ed88fa7729dbbb45626afda50", "branch_name": "refs/heads/master", "committer_date": "2022-10-19T09:02:08", "content_id": "538a06d814277d79ed105624861dc26d22d29bef", "detected_licenses": [ "MIT" ], "directory_id": "7ba3af6ba79b675daff3811e4f55e1196372213a", "extension": "c"...
stackv2
/* * Digital Clock with Alarm * * Created: 1/3/2020 8:20:05 PM * Author : Maryam Saeedmehr */ #include <avr/io.h> #define F_CPU 11059200 #include <util/delay.h> #include <stdlib.h> #include <avr/interrupt.h> #include <avr/sfr_defs.h> #define enable 5 #define registerselection 6 void send_a_command(u...
2.578125
3
2024-11-18T23:05:56.422049+00:00
2023-04-05T10:32:55
a48f632d1e7fe081c1aa602720cba00e4d9c3212
{ "blob_id": "a48f632d1e7fe081c1aa602720cba00e4d9c3212", "branch_name": "refs/heads/master", "committer_date": "2023-04-05T10:32:55", "content_id": "0587feeb78eb472a71360a20d5c36169c449a94d", "detected_licenses": [ "MIT" ], "directory_id": "972000fdab7ed433bc8696617d98debfcba16144", "extension": "h"...
stackv2
#ifndef _MASC_PATH_H_ #define _MASC_PATH_H_ #include <unistd.h> #include <stdbool.h> #include <masc/str.h> #include <masc/array.h> #include <masc/list.h> #include <masc/map.h> typedef enum { PATH_FILE, PATH_DIR, PATH_LINK, PATH_OTHER, PATH_ERROR } PathType; bool path_is_abs(const char *path); ...
2.15625
2
2024-11-18T23:05:57.681568+00:00
2020-05-18T00:11:14
ff89e4a95288f2fe51f064f26335bfb5ea196c1b
{ "blob_id": "ff89e4a95288f2fe51f064f26335bfb5ea196c1b", "branch_name": "refs/heads/master", "committer_date": "2020-05-18T00:11:14", "content_id": "4af23af9e95473eeea00662a2e519674a7d34e43", "detected_licenses": [ "MIT" ], "directory_id": "b9eee4cc3afd9d2fb4c15bdc95570529b1b99fb0", "extension": "h"...
stackv2
/* (Get-Content .\src\versionInfo.h | foreach-object { if($_.StartsWith("const VersionInfo")){ $line = $_; $line -match "(?<version>\{.*Minor:\s+(?<minor>\d+).*BuildTime:\s+(?<buildtime>\S+)\})" | out-null; $line = $line.replace($matches['minor'],[int]$matches['minor']+1) $buildTime = [datetime]::UtcNow.ToStrin...
2.0625
2
2024-11-18T23:05:57.967495+00:00
2020-12-23T08:36:28
9f835234d25e93d57bcc3027002c399d7c9ae7f3
{ "blob_id": "9f835234d25e93d57bcc3027002c399d7c9ae7f3", "branch_name": "refs/heads/main", "committer_date": "2020-12-23T08:36:28", "content_id": "f745e0e79ecdae07c424007c63aef2c142d987c2", "detected_licenses": [ "CC0-1.0" ], "directory_id": "75e1d9446cb1fca5c6a79ad0ba7f38268df1161f", "extension": "...
stackv2
2D String Array Sub-String Search [ZOHO] 2D String Array Sub-String Search: Given a string S of length L, the program must store the characters of the string S in a two dimensional array and search for a given sub-string SUB in the two dimensional array both from left to right and from top to bottom. If found the prog...
3.3125
3
2024-11-18T23:05:58.029973+00:00
2020-11-30T19:09:49
bc59c66902d0f32b551291ea9dc588295f30774a
{ "blob_id": "bc59c66902d0f32b551291ea9dc588295f30774a", "branch_name": "refs/heads/master", "committer_date": "2020-11-30T19:09:49", "content_id": "98a18e6dceb994f823d5346ec4a050c99678ca9a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "9646047ca1f4b6f4a54e749d8670b11d940bf616", "extens...
stackv2
/** * @file fs.c */ #include "spm.h" /** * * @param _path * @return */ FSTree *fstree(const char *_path, char **filter_by, unsigned int filter_mode) { FTS *parent = NULL; FTSENT *node = NULL; FSTree *fsdata = NULL; int no_filter = 0; char *path = NULL; char *abspath = realpath(_path, NULL...
2.75
3
2024-11-18T23:05:58.649408+00:00
2022-04-10T15:02:04
8a1bc1a56145c34d596488c4aba23870db65e6c3
{ "blob_id": "8a1bc1a56145c34d596488c4aba23870db65e6c3", "branch_name": "refs/heads/develop", "committer_date": "2022-04-10T15:02:04", "content_id": "a153f4e041d627c833dac375baa376aa4a1b2652", "detected_licenses": [ "Apache-2.0" ], "directory_id": "18753748b5117ed4317498f4bce093da823474dc", "extensi...
stackv2
/* Created for EnOcean ESP3 by Cédric Huguenin <cedric.huguenin@telecomnancy.eu>, Mathieu Morainville <mathieu.morainville@telecomnancy.eu> and Mickaël Walter <mickael.walter@telecomnancy.eu> for TELECOM Nancy and Institut Mines Télécom. */ #include "erp1.h" #include <stdlib.h> #include <stdio.h> #include <st...
2.96875
3
2024-11-18T23:05:58.810602+00:00
2021-05-30T11:38:47
122b6e0e510516b3434d138634f56eba3df5792a
{ "blob_id": "122b6e0e510516b3434d138634f56eba3df5792a", "branch_name": "refs/heads/master", "committer_date": "2021-05-30T11:38:47", "content_id": "8f997fa069652c6369afa9e7e29da5035eaaf1e6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d97dba9c2747be68fcabee6deae95078199afbb9", "extensio...
stackv2
/** * @file hk_ll.h * * A linked list library. */ #pragma once #include <esp_log.h> #include <esp_err.h> #include <stdlib.h> #include <string.h> #define __FILENAME__ (strstr(__FILE__, "/hk_") ? strstr(__FILE__, "/hk_") + 1 : __FILE__) // write reverse strstr and use / instead of /hk_ #define TAG "hk" /** * @b...
2.171875
2
2024-11-18T23:05:59.015826+00:00
2022-02-01T17:50:31
639f2c0c73916f18d87cd8de36411e60a024f2f3
{ "blob_id": "639f2c0c73916f18d87cd8de36411e60a024f2f3", "branch_name": "refs/heads/master", "committer_date": "2022-02-01T17:50:31", "content_id": "0fa7f0bcc435f88b83f3a8f2502b2db532cb21b9", "detected_licenses": [ "NCSA" ], "directory_id": "2898fa4f2ad766afa0495a837f59fe95daa081a7", "extension": "c...
stackv2
extern "C" void abort(void); int main() { int *ptr; int error = 1; try { try { throw 0; } catch (int &x) { ptr = &x; throw; } } catch (int &y) { if (ptr != &y) abort(); error--; } return error; }
2.234375
2
2024-11-18T23:05:59.258693+00:00
2023-07-19T20:44:41
17b8987356aa54c51a83ba091888d12ddd222487
{ "blob_id": "17b8987356aa54c51a83ba091888d12ddd222487", "branch_name": "refs/heads/master", "committer_date": "2023-07-19T20:44:41", "content_id": "673bba6d54d16dba1e895a255795f521d5a1030b", "detected_licenses": [ "Zlib" ], "directory_id": "beb77fc3b7ddda44b23430f72780475851cd64f5", "extension": "c...
stackv2
/* mkpowers.c Make data tables for Nibbles for NES */ /* Copyright 2001 Damian Yerrick 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 rig...
2.296875
2
2024-11-18T23:05:59.343669+00:00
2023-02-08T17:02:27
d1695eadda2fafd3fc07aa163758f3bf734edaf1
{ "blob_id": "d1695eadda2fafd3fc07aa163758f3bf734edaf1", "branch_name": "refs/heads/main", "committer_date": "2023-02-08T17:02:27", "content_id": "a8869e280c58ea1753f27a172f9157b8d8e59eaf", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "a970ea9acec6febb661ea9b639d76b19fd...
stackv2
/* * Thea's Lisp * Thea Leake * https://github.com/thea-leake/build_a_lisp */ #include <stdlib.h> #include <stdio.h> #include <mpc/mpc.h> #include "common_types.h" #include "operators.h" #include "parsing.h" #include "eval.h" #include "environment.h" list* build_list(mpc_ast_t* t, env* e, int count, int accum_co...
2.6875
3