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-19T00:59:56.118317+00:00
2023-08-28T15:49:31
b9c3a9e1954d6e95df8c2999c0925be55895ffe0
{ "blob_id": "b9c3a9e1954d6e95df8c2999c0925be55895ffe0", "branch_name": "refs/heads/master", "committer_date": "2023-08-28T15:49:54", "content_id": "0ed39d3915244718f36111ab042cfe176e3edf78", "detected_licenses": [ "MIT" ], "directory_id": "64dca62dd18660e93f14b5f173df16b8ef9ab80e", "extension": "c"...
stackv2
// This file is part of Deark. // Copyright (C) 2016 Jason Summers // See the file COPYING for terms of use. // MAKIchan graphics // Supported: Most .MAG, .MKI // Not supported: .MAX, some variant formats #include <deark-config.h> #include <deark-private.h> DE_DECLARE_MODULE(de_module_makichan); typedef struct loc...
2.28125
2
2024-11-19T00:59:56.263358+00:00
2023-08-11T13:02:43
07fc242a564a9d6fefdff1e83d375759ff8de384
{ "blob_id": "07fc242a564a9d6fefdff1e83d375759ff8de384", "branch_name": "refs/heads/master", "committer_date": "2023-08-11T13:02:43", "content_id": "52c2aa7bf8a9e89ced7b7a81fd39361c8995afdc", "detected_licenses": [ "MIT" ], "directory_id": "751d837b8a4445877bb2f0d1e97ce41cd39ce1bd", "extension": "c"...
stackv2
/* An uninteresting number (which I totally didn't make up only for this challenge) is created like this: Take a positive integer N Create a new number O by adding the digits of N at the end of N The final uninteresting number is O*N For example for N=12: O = 1212 O*N = 1212 * 12 Final number is 14544 Input A positi...
3.65625
4
2024-11-19T00:59:56.371206+00:00
2023-08-30T19:55:29
88f69fe45c0965ece62695ddef3deeec4d75fc99
{ "blob_id": "88f69fe45c0965ece62695ddef3deeec4d75fc99", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T19:55:29", "content_id": "a684d46d691081f5383cda39b20defde997630c5", "detected_licenses": [ "MIT" ], "directory_id": "83e7dc1281874779c46dfadcc15b2bb66d8e599c", "extension": "c"...
stackv2
/** * @file lv_draw_img.c * */ /********************* * INCLUDES *********************/ #include "lv_draw_sw.h" #if LV_USE_DRAW_SW #include "../lv_img_cache.h" #include "../../disp/lv_disp.h" #include "../../disp/lv_disp_private.h" #include "../../misc/lv_log.h" #include "../../core/lv_refr.h" #include "../...
2.234375
2
2024-11-19T00:59:56.508354+00:00
2020-01-24T08:27:20
7648c04c3c45bec5eec5a9ef4afba2e3c66f1bd7
{ "blob_id": "7648c04c3c45bec5eec5a9ef4afba2e3c66f1bd7", "branch_name": "refs/heads/master", "committer_date": "2020-01-24T08:27:20", "content_id": "b94cfb7dd4208528c12d8f06af02b70f9b54f684", "detected_licenses": [ "ISC" ], "directory_id": "ff16d70849062161c2607e79651041b76b02ebe4", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <scc/mach.h> #include "ld.h" extern int bintype; extern Symbol defhead; /* char *name; int type; int sect; unsigned long long size; unsigned long long value; */ void pass5(int argc, char *argv[]) { Obj *obj; Symbol *sym; Seg...
2
2
2024-11-19T00:59:56.621243+00:00
2013-04-17T18:42:40
572e6f9265dba2013dab47ee1675079e8ca84ed7
{ "blob_id": "572e6f9265dba2013dab47ee1675079e8ca84ed7", "branch_name": "refs/heads/master", "committer_date": "2013-04-17T18:42:40", "content_id": "a17cd7f3cb78a0530d373c50feed477e5bdbe27f", "detected_licenses": [ "MIT" ], "directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef", "extension": "c"...
stackv2
/****************************************************************************** Video Hardware for Video System Mahjong series. Driver by Takahiro Nogi <nogi@kt.rim.or.jp> 2001/02/04 - ******************************************************************************/ #include "emu.h" #include "includes/fromanc...
2.109375
2
2024-11-19T00:59:56.692874+00:00
2020-11-12T03:02:40
d460a85da1b55c6e6dc3cdd3ce14e287c7038c3e
{ "blob_id": "d460a85da1b55c6e6dc3cdd3ce14e287c7038c3e", "branch_name": "refs/heads/master", "committer_date": "2020-11-12T03:02:40", "content_id": "50eb1c257c02de060a7818621c58a85a9fe458db", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ef3cfa49aeda2025faaaff85fb83141aa7a68f04", "extensio...
stackv2
/* Pointers on c - ch9, ex3 my_strcpy.c - my_strcpy with dest_length param to avoid overflow and tests author: nicolas miller <nicolasmiller@gmail.com> */ #include <stdio.h> #include <stddef.h> #include <string.h> char *my_strcpy(char *dest, const char *source, size_t dest_length) { char *front_of_dest = dest; s...
3.71875
4
2024-11-19T00:59:56.790386+00:00
2023-08-29T11:30:11
946687315c25d756e975cff5e4cc2a1fd59689c3
{ "blob_id": "946687315c25d756e975cff5e4cc2a1fd59689c3", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T11:30:11", "content_id": "b444bc9e25ae45077300042059a670e06c19c68b", "detected_licenses": [ "BSD-3-Clause", "BSD-4-Clause-UC" ], "directory_id": "07664200f77c4d87baf972e367e77...
stackv2
# include "../ingres.h" /* ** EXPR -- evaluate expression ** ** This module evaluates an expression in somewhat standard ** infix notation. Several restrictions apply. There are ** no variables, since this can be simulated with the macro ** processor. No numeric overflow is checked. There may be ** no spaces, tab...
2.3125
2
2024-11-19T00:59:59.227953+00:00
2020-07-01T22:56:01
6d17f41e8602fa962dfcc0e23ef9826ef3afb0ad
{ "blob_id": "6d17f41e8602fa962dfcc0e23ef9826ef3afb0ad", "branch_name": "refs/heads/master", "committer_date": "2020-07-01T22:56:01", "content_id": "ea76e129e76f29288fc2ed8ad1f09da3da20826f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "b0b967e5ebee9ec18e347924335621b2ed6833c1", "extens...
stackv2
/*/* * Modified form FreeRTOS Blinky example */ #include "FreeRTOS.h" #include "task.h" #include "chip.h" /***************************************************************************** * Private types/enumerations/variables ****************************************************************************/ /***********...
2.6875
3
2024-11-19T00:59:59.424161+00:00
2019-07-26T10:40:27
65e47c49d744181e1afb39160bc8bf13d8f6de64
{ "blob_id": "65e47c49d744181e1afb39160bc8bf13d8f6de64", "branch_name": "refs/heads/master", "committer_date": "2019-07-26T10:40:27", "content_id": "7ed230d4e3a9cf4395a99911f4454fdff42cd0ad", "detected_licenses": [ "MIT" ], "directory_id": "2725bed874de7d01173ecd2e2fd1f54d702c07dd", "extension": "c"...
stackv2
// // main.c // MasteringAlgorithms // Illustrates breadth-first search (see Chapter 11). // // Created by YourtionGuo on 05/05/2017. // Copyright © 2017 Yourtion. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include <string.h> #include "bfs.h" #include "graph.h" #include "list.h" #include "se...
3.03125
3
2024-11-19T00:59:59.536673+00:00
2015-08-31T10:35:26
4e81f95596154b65094a7aebeef23edca8d78ff9
{ "blob_id": "4e81f95596154b65094a7aebeef23edca8d78ff9", "branch_name": "refs/heads/master", "committer_date": "2015-08-31T10:35:26", "content_id": "4431f5b650f2330d1a32e8cebb92e54e07833b41", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "cf4376825201a3e44f5b20c9caad10d3409415c6", "extens...
stackv2
/*=========================================================================== _____ _____ _____ _____ ___| _|__ __|_ |__ __|__ |__ __| __ |__ ______ | \ / | || \ || | || |/ / ||___ | | \/ | || \ || \ || \ ||___ | |__/\__...
2.234375
2
2024-11-19T00:59:59.620990+00:00
2021-11-12T23:17:28
53b63fd68d1bee57e1b2d431cff07109b203e931
{ "blob_id": "53b63fd68d1bee57e1b2d431cff07109b203e931", "branch_name": "refs/heads/master", "committer_date": "2021-11-12T23:17:28", "content_id": "fb9d6f0ea4decf099144ed12ad6d1e7f5fea719d", "detected_licenses": [ "MIT" ], "directory_id": "b55e6b2960d08840d4571e060d1e6506ed74c20f", "extension": "h"...
stackv2
/* log.h * (c) Jonas Gunz, 2019 * License: MIT * */ #pragma once #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <time.h> #include <fcntl.h> #include <unistd.h> #define _LOG_ERRNO 1 #define _LOG_ERROR 2 #define _LOG_WARNING 3 #define _LOG_NOTE 4 #define _LOG_DEBUG 5 extern ...
2.484375
2
2024-11-19T00:59:59.714833+00:00
2020-01-06T15:35:40
4288c53c714734145e5c5509ffd23d189f1031f2
{ "blob_id": "4288c53c714734145e5c5509ffd23d189f1031f2", "branch_name": "refs/heads/master", "committer_date": "2020-01-06T15:35:40", "content_id": "12e8dbe21ca9bd404dd10b5da5d9e6f56d949323", "detected_licenses": [ "MIT" ], "directory_id": "07182be5980a4ecd0c62d7f925b50565b265eb54", "extension": "c"...
stackv2
#include <pthread.h> #include <stdio.h> #include <sys/ioctl.h> #include <time.h> #include <stdlib.h> #include <unistd.h> #define CLEARSCR "\x1B[2J\x1B[;H" // Clear Screen #define GOTOYX "\x1B[%.2d;%.2dH" // Goto at (y,x) #define INSERTMOD "\x1B[4h" // Mode insertion #define CLEARCDW "\x1B[0J" // Clear Curseur Down #de...
2.78125
3
2024-11-19T01:00:00.902632+00:00
2023-04-05T16:38:18
7d507a626ed95bb46df4cf2ccd7a3fb0959029cb
{ "blob_id": "7d507a626ed95bb46df4cf2ccd7a3fb0959029cb", "branch_name": "refs/heads/master", "committer_date": "2023-04-05T16:38:18", "content_id": "0d9f5b7e43d6f87d11578a7bd9268a1282c3fea8", "detected_licenses": [ "MIT" ], "directory_id": "e2990cde74213c8858d1b56adb64fa7e479ec7bc", "extension": "c"...
stackv2
/** * row.c 2014-05-04 * anonymouse(anonymouse@email) * * Copyright (C) 2000-2014 All Right Reserved * * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A * ...
2.46875
2
2024-11-19T01:00:00.968085+00:00
2023-07-26T16:49:48
3cb83507e15812a6382fbcda25c44e86384f6195
{ "blob_id": "3cb83507e15812a6382fbcda25c44e86384f6195", "branch_name": "refs/heads/master", "committer_date": "2023-07-27T08:00:50", "content_id": "1cb7a291e5334fe14a870197cd98263e6e6e43ae", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "892f38bae3bf2653624e777d725e718ff387fcb6", "extens...
stackv2
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <errno.h> #include <endian.h> #include <unistd.h> #include <fcntl.h> #include <linux/limits.h> #include <sys/stat.h> #include "gxlimg.h" #include "fip.h" #include "amlcblk.h" #include "ssl.h" #define FOUT_MODE_DFT (S_IRUSR | S_IW...
2.234375
2
2024-11-19T01:00:01.592805+00:00
2018-06-21T13:36:17
18248d769ca916a48fa474243ffc274f425c3aae
{ "blob_id": "18248d769ca916a48fa474243ffc274f425c3aae", "branch_name": "refs/heads/master", "committer_date": "2018-06-21T13:36:17", "content_id": "da10bff3966c5c0b43899a815ee2256e5b4f9488", "detected_licenses": [ "MIT" ], "directory_id": "0a42049f5105f8f533c7533d50419ce2e33179e4", "extension": "c"...
stackv2
#include "ansi.h" #define ESC 0x1B void fgcolor(uint8_t foreground) { /* Value foreground Value foreground ------------------------------------------------ 0 Black 8 Dark Gray 1 Red 9 Light Red 2 Green ...
2.9375
3
2024-11-19T01:00:01.751499+00:00
2023-05-08T03:10:41
a9e8321242df3e70fccbb385358a57873b4ec256
{ "blob_id": "a9e8321242df3e70fccbb385358a57873b4ec256", "branch_name": "refs/heads/master", "committer_date": "2023-05-08T03:10:41", "content_id": "fde1573ac5d14ed26b3b1266c0aa4591914e2b0d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8bae51ddb3ad34a234dd786f948336ee63132fbd", "extensio...
stackv2
/**************************************************************************//** * @file main.c * @version V1.00 * @brief Demonstrate how to generate a secure boot application. * * @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved. ************************************************************...
2.296875
2
2024-11-19T01:00:02.235784+00:00
2019-10-22T13:34:08
68ced6ae03e2b0818886626d24fd4bcb7cb31fab
{ "blob_id": "68ced6ae03e2b0818886626d24fd4bcb7cb31fab", "branch_name": "refs/heads/master", "committer_date": "2019-10-22T13:34:08", "content_id": "1235b84e058bd3abef48063f10de7858e886dd92", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a98c55ba32ed8ea7c8247a0eabd2108db5a7baff", "extensio...
stackv2
//*************************************************************************** // // Copyright (c) 1999 - 2006 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 // // ...
2.09375
2
2024-11-19T01:00:02.321301+00:00
2019-08-14T04:55:21
baf02981c6b699f838494ed0ed2da75cb382231f
{ "blob_id": "baf02981c6b699f838494ed0ed2da75cb382231f", "branch_name": "refs/heads/master", "committer_date": "2019-08-14T07:04:49", "content_id": "cdc087418f95263312ff09b37b7d81afc1a13db8", "detected_licenses": [ "Unlicense", "MIT" ], "directory_id": "50dad9b6cc7de8c944a3837362b59204b281cec5", ...
stackv2
#include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include "util.h" int asprintf(char **s, const char *fmt, ...) { int ret, l; va_list ap; va_start(ap, fmt); l = vsnprintf(0, 0, fmt, ap); va_end(ap); if(l < 0 || !(*s = malloc(l+1U))) return -1; va_start(ap, fmt); ret = vsnprintf(*s, l+1U, fmt, ap); ...
2.234375
2
2024-11-19T01:00:02.376554+00:00
2023-07-28T09:53:12
d5c44d36c9df8734dfdbef3ad9985f0ce8376715
{ "blob_id": "d5c44d36c9df8734dfdbef3ad9985f0ce8376715", "branch_name": "refs/heads/master", "committer_date": "2023-07-28T09:53:12", "content_id": "b86c0f2b57dfa155bb9e2071271d1f6d6cc2b5c1", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "e753f8ab10eb6732f272217169e48ab4754295ee", "extens...
stackv2
--- src/mydns/recursive.c.orig Mon Apr 30 08:17:52 2007 +++ src/mydns/recursive.c Mon Apr 30 08:22:13 2007 @@ -109,8 +109,7 @@ #endif /* Send to remote server */ - if ((rv = sendto(t->recursive_fd, query, querylen, 0, - (struct sockaddr *)&recursive_sa, sizeof(struct sockaddr_in))) != querylen) + if ((rv = ...
2.0625
2
2024-11-19T01:00:02.626241+00:00
2020-09-02T23:46:34
691a6028e7ef2e91dbabc450afdf29cfb23fbac6
{ "blob_id": "691a6028e7ef2e91dbabc450afdf29cfb23fbac6", "branch_name": "refs/heads/master", "committer_date": "2020-09-02T23:46:34", "content_id": "60d8251e2062fb4776e886aa74985a08b8e4bcaa", "detected_licenses": [ "MIT" ], "directory_id": "6f0b7753233ebf4768a4bec47b142c7045e0c89e", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* :::::::: */ /* ft_lstmap_bonus.c :+: :+: ...
2.421875
2
2024-11-19T01:00:03.705971+00:00
2018-10-08T02:00:59
3d577dc1f069fd8785b6c5261e433bc6b73a305a
{ "blob_id": "3d577dc1f069fd8785b6c5261e433bc6b73a305a", "branch_name": "refs/heads/master", "committer_date": "2018-10-08T02:00:59", "content_id": "908fe1fc27ec1eac31d101d46451e39d830c5c14", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "0d2811497b377bc3530c3ddc10f4e948ef3ab902", "extens...
stackv2
#ifndef INCLUDE_atomic_increment_h #define INCLUDE_atomic_increment_h #pragma cilnoremove("cbi_atomicIncrementCounter") #pragma sampler_exclude_function("cbi_atomicIncrementCounter") static inline void cbi_atomicIncrementCounter(cbi_TupleCounter *counter) { #if __i386__ || __x86_64__ asm ("lock inc" CBI_TUPLE_COUNTE...
2.265625
2
2024-11-19T01:00:03.872201+00:00
2020-01-04T05:12:14
19cb0e438940d39cb320f8b6936e8aab7114a7be
{ "blob_id": "19cb0e438940d39cb320f8b6936e8aab7114a7be", "branch_name": "refs/heads/master", "committer_date": "2020-01-04T05:12:14", "content_id": "0d3fdb6e5b78e6a59df698709f76a77247f29893", "detected_licenses": [ "MIT" ], "directory_id": "8507d3451799a3e748cc8d1fc01b41b3d82f4f81", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #define ISF_VECT_SCL 1.960985419 /* Factor used to calculate length of <11-2> inverse azimuth */ #define TIMEERROR 0.44995 int main ( int argc, char *argv[] ) { int i,j,linecount=0,dim; double vect_len,result[4],error_fract; char inname[20], outname[20], *...
2.515625
3
2024-11-19T01:00:04.148710+00:00
2019-07-25T19:58:20
b788b0316d98ad8c594aef89ce4c708aab1a4106
{ "blob_id": "b788b0316d98ad8c594aef89ce4c708aab1a4106", "branch_name": "refs/heads/master", "committer_date": "2019-07-25T19:58:20", "content_id": "617b3c69a07ff39dcaf7d56eb86e7916e36c76aa", "detected_licenses": [ "MIT" ], "directory_id": "6f1bbe034d469c681397e8f067f43adb4a832376", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include "grafo.h" #define MAX(a, b) ((a) > (b) ? (a) : (b)) int *safe_array_malloc(int n) { int *ret = malloc(n * sizeof(int)); if (ret == NULL) { printf("Erro ao alocar memoria"); exit(EXIT_FAILURE); } return ret; } void imprime_resultado(int *...
3.25
3
2024-11-19T01:00:04.352616+00:00
2020-05-04T04:32:25
16dcd0936a822960f4aad42afa5076c582ff7285
{ "blob_id": "16dcd0936a822960f4aad42afa5076c582ff7285", "branch_name": "refs/heads/master", "committer_date": "2020-05-04T04:32:25", "content_id": "38346373df7ada3dfdad67549f54f804df09d22d", "detected_licenses": [ "MIT" ], "directory_id": "1929c33f96719af6ce62da7d76e5cba6d361eea8", "extension": "c"...
stackv2
/*Gerenciamento de uma agenda telefonica. O programa deve; estar apto a realizar inclusões(OK), alterações(OK), exclusões, consultas por nome(OK), telefone(OK) ou data de nascimento(OK)*/ #include<string.h> #include<stdio.h> #include<conio.h> #include<stdlib.h> //int pos = 0;//variavel global para increment...
3.296875
3
2024-11-19T01:00:04.451573+00:00
2015-06-21T20:46:31
ebb5446a054c2731ea964bbc877448bda3d6ddd5
{ "blob_id": "ebb5446a054c2731ea964bbc877448bda3d6ddd5", "branch_name": "refs/heads/master", "committer_date": "2015-06-21T20:46:31", "content_id": "e050bf4c04adf29c2db2fc139ab24f979fafd185", "detected_licenses": [ "MIT" ], "directory_id": "57ebfd1d0d228c9d6fc9d7eaf334c14f80ea3294", "extension": "c"...
stackv2
#include "types.h" #include "x86.h" #include "defs.h" #include "date.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" int sys_fork(void) { return fork(); } int sys_exit(void) { int status; if(argint(0, &status) < 0) return -1; exit(status); // never gets here return ...
2.421875
2
2024-11-19T01:00:04.508090+00:00
2019-07-20T14:19:49
80059a941f779ab547e1a970ab53911e723f39cb
{ "blob_id": "80059a941f779ab547e1a970ab53911e723f39cb", "branch_name": "refs/heads/master", "committer_date": "2019-07-20T14:19:49", "content_id": "6622840583fac15166dbd874bd41d6e0439159fd", "detected_licenses": [ "Unlicense" ], "directory_id": "a58358f41ac6cb4cdc934016541a86996f1cca56", "extension...
stackv2
/* * bignum */ #include <math.h> #include <errno.h> #include "arch.h" #include "character.h" #include "charqueue.h" #include "condition.h" #include "cons.h" #include "bigcons.h" #include "bigdata.h" #include "bignum.h" #include "condition.h" #include "integer.h" #include "number.h" #include "real_float.h" #include "...
2.421875
2
2024-11-19T01:00:04.601570+00:00
2013-12-30T06:10:50
1896b40c66e355a2f02d3259ebfd79eb69dc7ed6
{ "blob_id": "1896b40c66e355a2f02d3259ebfd79eb69dc7ed6", "branch_name": "refs/heads/master", "committer_date": "2013-12-30T06:10:50", "content_id": "ad525bb0c8cc63c29af4eb6e4cf16577bf189691", "detected_licenses": [ "MIT" ], "directory_id": "1434ae4307bef7139443ed7082b46ef2c3e008c0", "extension": "c"...
stackv2
//////////////////////////////////////////////////////////////////////////////// // Comments // Tests adding a multi-character string constant midway in a character array. //////////////////////////////////////////////////////////////////////////////// // Libraries #include <stdio.h> ///////////////////////////////...
2.71875
3
2024-11-19T01:00:04.699935+00:00
2022-09-22T00:25:09
377b18ac16f93ee8f4764d9d249a882a4e45a66d
{ "blob_id": "377b18ac16f93ee8f4764d9d249a882a4e45a66d", "branch_name": "refs/heads/master", "committer_date": "2022-10-09T09:36:50", "content_id": "40e99ee78c5ebf44011aae4cc35178866df09b48", "detected_licenses": [ "MIT" ], "directory_id": "aae31f940f85fafa6451661b2391f140705fef54", "extension": "h"...
stackv2
/* * This file is part of RTRlib. * * This file is subject to the terms and conditions of the MIT license. * See the file LICENSE in the top level directory for more details. * * Website: http://rtrlib.realmv6.org/ */ #ifndef LRTR_UTILS_PRIVATE_H #define LRTR_UTILS_PRIVATE_H #include <stdint.h> #include <time....
2.578125
3
2024-11-19T01:00:05.620357+00:00
2018-03-24T17:12:33
7d15a57deae7a6f468b32febcbb98e97e7767385
{ "blob_id": "7d15a57deae7a6f468b32febcbb98e97e7767385", "branch_name": "refs/heads/master", "committer_date": "2018-03-24T19:43:24", "content_id": "f85c3aac7a8e9cc96b0ae3c8d2515724e23136c4", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "1e4480220e43d9b7ca576bfcf49533dd381e0a4f", "extens...
stackv2
//---------------------------------------------------------------------------------------------------------------------- // Module : layout // Copyright : (c) Julian Bouzas 2014 // License : BSD3-style (see LICENSE) // Maintainer : Julian Bouzas - nnoell3[at]gmail.com // Stability : stable //--------...
2.15625
2
2024-11-19T01:00:05.908653+00:00
2013-12-10T05:42:22
dcfcc37ff229de90c20929538024035542db60d2
{ "blob_id": "dcfcc37ff229de90c20929538024035542db60d2", "branch_name": "refs/heads/master", "committer_date": "2013-12-10T05:42:22", "content_id": "44065058c015dd63c8bc908b04c3934faa514a1d", "detected_licenses": [ "MIT" ], "directory_id": "139090b103f275355ff6662e99af6e1f13e79082", "extension": "h"...
stackv2
//struct DataPoint { float x; float y; }; struct color { uint8_t r,g,b; }; typedef struct { float x; float y; float z; } PVector; typedef struct { float xMin, xMax, yMin, yMax; // Axis scales char *xDesc, *yDesc; PVector lowerColor; float lowerThreshold; PVector middleColor; PVector upperColor; fl...
2.046875
2
2024-11-19T01:00:06.506147+00:00
2022-05-21T18:57:22
1dc30861bc3eadcaff71106f9bcf0211c2ea24f0
{ "blob_id": "1dc30861bc3eadcaff71106f9bcf0211c2ea24f0", "branch_name": "refs/heads/master", "committer_date": "2022-05-21T18:57:22", "content_id": "30aaef78b4fc8b8f785d980d4b2a98dcf6096f39", "detected_licenses": [ "MIT" ], "directory_id": "2ef91f4f949a514fa33157a807730d7f4bed6185", "extension": "c"...
stackv2
#include <assert.h> #include "constants.h" #include "pathfinding.h" #include "vec3d.h" #ifdef __N64__ #include "mathdef.h" #else #include "float.h" #endif float Path_distance(Node* a, Node* b) { invariant(a != NULL); invariant(b != NULL); return Vec3d_distanceTo(&a->position, &b->position); } float Path_heuri...
2.625
3
2024-11-19T01:00:07.406821+00:00
2020-12-19T01:01:41
bbfa7f97eb9c32e09ee26e1be5b3714e9a42ade0
{ "blob_id": "bbfa7f97eb9c32e09ee26e1be5b3714e9a42ade0", "branch_name": "refs/heads/master", "committer_date": "2020-12-19T01:27:11", "content_id": "a22a384fe5e07f96f09368c6dcbb844441c8a5c9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "72ae25373a47bada8b38604cf8075be9e090a8c4", "extensio...
stackv2
/*! \file smartcard.h \brief This file contains all the functions prototypes for the Smartcard firmware library. */ /* Copyright (C) 2017 GigaDevice 2014-12-26, V1.0.0, platform GD32F1x0(x=5) 2016-01-15, V2.0.0, platform GD32F1x0(x=5) 2016-04-30, V3.0.0, firmware update for GD32F1x0(x=5) ...
2.078125
2
2024-11-19T01:00:07.574158+00:00
2023-05-17T17:31:26
81965cf1c18832bb7934c83c01dfbb8420393146
{ "blob_id": "81965cf1c18832bb7934c83c01dfbb8420393146", "branch_name": "refs/heads/master", "committer_date": "2023-05-17T17:31:26", "content_id": "94ae2122e3dc2cb5d1c177d6a0af8097b0867297", "detected_licenses": [ "MIT" ], "directory_id": "5f24074e7f1da263968bb33fcce2301a559e92f1", "extension": "c"...
stackv2
/* adht.c: maintain a Distributed Hash Table of connected nodes * every allnet daemon runs a DHT node. * nodes that are externally reachable cooperate to build the distributed * hash table * each DHT node stores data for one range of the possible AllNet * destination addresses * together, all DHT nodes span t...
2.03125
2
2024-11-19T01:00:07.695937+00:00
2020-01-28T13:14:02
b018f79f817a61bfbd3e3d72353c43bd56e16b0a
{ "blob_id": "b018f79f817a61bfbd3e3d72353c43bd56e16b0a", "branch_name": "refs/heads/master", "committer_date": "2020-01-28T13:14:02", "content_id": "2ab2f7740e10b3139ce691c01f6dd7f6de00d901", "detected_licenses": [ "MIT" ], "directory_id": "2c2c93aadde79c3d30367a3e066d159c613a9f5f", "extension": "c"...
stackv2
#include <u.h> #include <libc.h> #include <thread.h> enum { Nfileprocs = 4, Nblkprocs = 16, Blksz = 128*1024, }; typedef struct Waitgroup Waitgroup; typedef struct File File; typedef struct Blk Blk; struct Waitgroup { Rendez; QLock; Ref; }; struct File { Dir; Waitgroup wg; Channel *errchan; char *src, *d...
2.296875
2
2024-11-19T01:00:07.990642+00:00
2019-01-12T04:23:09
95adb15ab3a6b177777d2828834005685128e4cf
{ "blob_id": "95adb15ab3a6b177777d2828834005685128e4cf", "branch_name": "refs/heads/master", "committer_date": "2019-01-12T04:23:09", "content_id": "45a6dc08b187a4a1e6d02438f615c377d44da9ad", "detected_licenses": [ "MIT" ], "directory_id": "89db21a53397700a7adcc54fa70325525a294903", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include "declare.h" void do_actfunc (Layer **input){ int a; for(a = 0; a < (*input)->perceptron; a++){ (*input)->layer_out->matrix[0][a] = (*input)->activation_func((*input)->layer_in->matrix[0][a]); } } void do_actfunc (EndLayer **input){ int a; if((*input)->act...
2.390625
2
2024-11-19T01:00:08.175027+00:00
2019-10-24T10:55:49
3603fae85a35a39bbfbb816c7197352ebc6b7e2f
{ "blob_id": "3603fae85a35a39bbfbb816c7197352ebc6b7e2f", "branch_name": "refs/heads/master", "committer_date": "2019-10-24T10:55:49", "content_id": "f423795936afb1d21e8aad82fbb6ed11cee7d254", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d3d00aebc5e1f643d6482fcf2375460e32ff15b5", "extensio...
stackv2
/* * PROCESS.C * * (c) Copyright 2005, vbmacher * */ #include <rtl.h> #include <mau.h> #include <colors.h> #include <app_io.h> #include <logic_io.h> #include <console.h> #include <process.h> char *proc_addr; static char cfname[16]; // Nacita nejaky proces do pamate - subor s max. velkostou nejakych int loadPR...
2.421875
2
2024-11-19T01:00:08.243807+00:00
2021-07-05T11:38:13
f831feaf73671fc37d31d19de1af7fef5d3e1cb9
{ "blob_id": "f831feaf73671fc37d31d19de1af7fef5d3e1cb9", "branch_name": "refs/heads/main", "committer_date": "2021-07-05T11:38:13", "content_id": "a7915d2f630f2733553d4250bcc4e0cd2087a5a4", "detected_licenses": [ "MIT" ], "directory_id": "968884098503ac0d3782dbe97749bb317e20809f", "extension": "c", ...
stackv2
#include <avr/io.h> #include <stdio.h> void TransmitUSART(char data) { while(!(UCSRA & (1<<UDRE))) ; UDR = data; } unsigned char ReceiveUSART() { while(!(UCSRA & (1<<RXC))) ; return UDR; } void InitUSART() { UCSRA = 0x00; UCSRB = 0x18; UCSRC = 0x86; UBRRH = 0x00; UBRRL = 51; } void adc_init() { ADM...
2.84375
3
2024-11-19T01:00:08.365773+00:00
2017-09-27T17:44:20
eef996a91b1be05fb07b4c4ee31ac8aaea005157
{ "blob_id": "eef996a91b1be05fb07b4c4ee31ac8aaea005157", "branch_name": "refs/heads/master", "committer_date": "2017-09-27T17:44:20", "content_id": "b6e0e9a2f511e3278bb0d7b4f87c1cd968180f76", "detected_licenses": [ "Unlicense" ], "directory_id": "03dde64d1ed914eaf8052f797e4b59eb4a6f0315", "extension...
stackv2
/* LINKLIST.H */ #ifndef __LINKLIST_H__ #define __LINKLIST_H__ 1 /* Linked list structure */ typedef struct tLinkedListCell { void *element; unsigned nElementSize; struct tLinkedListCell *next; } tCell, *tLinkedList, *tPosition; /* Functions: */ tLinkedList ll_init(voi...
2.421875
2
2024-11-18T23:31:12.997449+00:00
2014-10-02T15:16:21
03f567c1867f8dbf43815d89c439f0676383ac39
{ "blob_id": "03f567c1867f8dbf43815d89c439f0676383ac39", "branch_name": "refs/heads/master", "committer_date": "2014-10-02T15:16:21", "content_id": "d54c29ee1533d57187d969ad9b48d58c0c0786e0", "detected_licenses": [ "MIT" ], "directory_id": "affbb8327b72a5cf0cd0c0ba82652a4b086e1143", "extension": "c"...
stackv2
#include "tests.h" #include "entity.h" START_TEST (test_entity) { struct hyd_ent *ent = hyd_ent_create(NULL, "ent", NULL); struct hyd_ent *child = hyd_ent_create(NULL, "child", ent); ck_assert_str_eq(ent->name, "ent"); ck_assert_str_eq(child->name, "child"); ck_assert_ptr_eq(ent->parent, NULL); ck_assert_ptr_eq...
2.5
2
2024-11-18T23:31:13.087256+00:00
2023-08-09T18:19:32
413e58450cc701a0379bdbe6e6dffc47bec8d6a4
{ "blob_id": "413e58450cc701a0379bdbe6e6dffc47bec8d6a4", "branch_name": "refs/heads/master", "committer_date": "2023-08-09T18:19:32", "content_id": "2cb60e4ee97ae7ab59fb8e39a2d921d8272f8264", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a4a96286d9860e2661cd7c7f571d42bfa04c86cf", "extensio...
stackv2
/* * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include "esp_srp_mpi.h" esp_mpi_t *esp_mpi_new(void) { esp_mpi_t *a = (esp_mpi_t *)malloc(sizeof (esp_mpi_t)); if (!a) { return NULL; } mbedtls_mpi_init(a); return a; } es...
2.5
2
2024-11-18T23:31:13.179518+00:00
2021-06-20T22:42:29
fc747bab70fad3c0e77a4c4cbf1defdb9daf630a
{ "blob_id": "fc747bab70fad3c0e77a4c4cbf1defdb9daf630a", "branch_name": "refs/heads/master", "committer_date": "2021-06-20T22:42:29", "content_id": "1b62fbd4d463cd3f40517b48a1b310a551fa19fc", "detected_licenses": [ "MIT" ], "directory_id": "d87f9e9d55b36ec1e97687bc0ee6999b6fe44b70", "extension": "h"...
stackv2
#ifndef PARAMETROS_H #define PARAMETROS_H /* Este módulo define o tipo Parametros, responsável por ler e armazenar os parâmetros do programa. Assim como criar os caminhos finais destes arquivos com base nos seus dados. */ #include <stdbool.h> typedef struct Parametros_s *Parametros; /* Recebe a quantidade de argume...
2.75
3
2024-11-18T23:31:13.258398+00:00
2021-06-22T11:39:26
7a951419b47e9bcf8ff626af2d7a072bb5f2b5df
{ "blob_id": "7a951419b47e9bcf8ff626af2d7a072bb5f2b5df", "branch_name": "refs/heads/develop", "committer_date": "2021-06-22T11:39:26", "content_id": "108541d1a9dd51d041b8c11e4e04d461379872f5", "detected_licenses": [ "MIT" ], "directory_id": "441f561ed4fa44bba8ea854f49d474890d26ef4a", "extension": "h...
stackv2
#ifndef crypto_generichash_blake2b_H #define crypto_generichash_blake2b_H #include <stddef.h> #include <stdint.h> #include <stdlib.h> #include "export.h" #define crypto_generichash_blake2b_BYTES 32U #define crypto_generichash_blake2b_BYTES_MIN 16U #define crypto_generichash_blake2b_BYTES_MAX 64U #def...
2.09375
2
2024-11-18T23:31:13.557869+00:00
2020-10-19T17:38:00
c929625d10a8d5138dc81dc737003af872e6b50d
{ "blob_id": "c929625d10a8d5138dc81dc737003af872e6b50d", "branch_name": "refs/heads/master", "committer_date": "2020-10-19T17:38:00", "content_id": "f0b7891919130316311a9e2d15e8cf228a965899", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "45468be5e620a0c5a8f94268f6e4d8efa086f11d", "extens...
stackv2
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <lib.h> #include <memoryManager.h> #include <scheduler.h> #include <semaphore.h> #include <stringFunctionsKernel.h> #include <adminScreen.h> #define MAX_LEN 25 ...
2.6875
3
2024-11-18T23:31:13.708149+00:00
2022-08-24T07:36:21
36fac127fe3b509353ae1aa8549e0af74b20bf16
{ "blob_id": "36fac127fe3b509353ae1aa8549e0af74b20bf16", "branch_name": "refs/heads/master", "committer_date": "2022-08-24T07:36:21", "content_id": "cfe451e0295ccf33d53c3ef63a177a185ef5a28b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "ada6c9f523a14f219b62766a39bd363462bf8984", "extens...
stackv2
/* * Copyright (c) 2014, Intel Corporation * All rights reserved. * * Author: Andrew Boie <andrew.p.boie@intel.com> * Author: Anisha Dattatraya Kulkarni <anisha.dattatraya.kulkarni@intel.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
2
2
2024-11-18T23:31:14.099899+00:00
2020-02-15T04:32:40
6dc863cf0e0a8119f03b668fbf144b1c48106e73
{ "blob_id": "6dc863cf0e0a8119f03b668fbf144b1c48106e73", "branch_name": "refs/heads/master", "committer_date": "2020-02-15T04:32:40", "content_id": "c872484445a158665cfc1bb436d272378eeba52b", "detected_licenses": [ "TCL", "BSD-3-Clause" ], "directory_id": "0fab21bc0d9fdc1369d06a2b268512a913d090c9"...
stackv2
/* * tkUnix3d.c -- * * This file contains the platform specific routines for drawing 3d * borders in the Motif style. * * Copyright (c) 1996 by Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * * RCS: ...
2.421875
2
2024-11-18T23:31:14.206051+00:00
2021-11-15T01:51:02
adc07c47c685544b5ae6df46dfc2b8665c089b79
{ "blob_id": "adc07c47c685544b5ae6df46dfc2b8665c089b79", "branch_name": "refs/heads/RTX_NXP_Android601", "committer_date": "2021-11-15T01:51:02", "content_id": "ca4df5c1806dbf66ca6febbfb75fa156e588c0d8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d5bd083dbcacce8cf62ebbd73c77c14c8247e057",...
stackv2
/****************************************************************************** * * Copyright (C) 2014 Google, Inc. * * 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://ww...
2.25
2
2024-11-18T23:31:14.705317+00:00
2020-03-30T18:43:01
039bf6f692ad210c04a16fafeedbb8fcfde95dfa
{ "blob_id": "039bf6f692ad210c04a16fafeedbb8fcfde95dfa", "branch_name": "refs/heads/master", "committer_date": "2020-03-30T18:43:01", "content_id": "c6a445e627b9ed834f12d91341f7310358b21d5c", "detected_licenses": [ "MIT" ], "directory_id": "447cafda0c8e387dc415ae569ac6d16ad3a28f6d", "extension": "c"...
stackv2
#include "pihm.h" void ReadBedrock(const char *filename, atttbl_struct *atttbl, meshtbl_struct *meshtbl, ctrl_struct *ctrl) { FILE *br_file; int i; char cmdstr[MAXSTRING]; int match; int index; int lno = 0; br_file = ...
2.296875
2
2024-11-18T23:31:15.798825+00:00
2014-04-21T16:04:40
03e3e49c68e5affb4a97dd235aac85b6938eca8f
{ "blob_id": "03e3e49c68e5affb4a97dd235aac85b6938eca8f", "branch_name": "refs/heads/master", "committer_date": "2014-04-21T16:04:40", "content_id": "8c0680717cda0f8e66f2f8a76f2b1afe0b578373", "detected_licenses": [ "MIT" ], "directory_id": "5f15b5fc0f84481eb0276b81710f941993c29808", "extension": "c"...
stackv2
#include <tests/minunit.h> #include <src/struct/darray.h> static struct darray *arr = NULL; char *test1 = "test1 data"; char *test2 = "test2 data"; char *test3 = "test3 data"; char *test_create() { arr = darray_create( 2 ); mu_assert(arr != NULL, "Array should not be null"); mu_assert(arr->max_size, "Max size of a...
3
3
2024-11-18T23:31:16.046035+00:00
2021-05-25T08:29:01
8ab0d78181db6817370ae10f1ddd565472fa2da3
{ "blob_id": "8ab0d78181db6817370ae10f1ddd565472fa2da3", "branch_name": "refs/heads/master", "committer_date": "2021-05-25T08:29:01", "content_id": "37cf94fc0791c05f70d16fa9865c51b04f1ec46f", "detected_licenses": [ "MIT" ], "directory_id": "82873b85f33c88a9a717394296a4a658f6903493", "extension": "c"...
stackv2
/* * Checking some consistancy between packages for a given request * Copyright (c) 2017 Pertimm, by Patrick Constant * Dev : October 2017 * Version 1.0 */ #include "ogm_nlp.h" static og_status NlpCheckPackage(og_nlp_th ctrl_nlp_th, package_t package); static og_status NlpCheckMissingInterpretation(og_nlp_th ...
2
2
2024-11-18T23:31:16.146253+00:00
2021-05-21T06:45:38
a1ad7e25e951b5781df3aa269d608b893dc33080
{ "blob_id": "a1ad7e25e951b5781df3aa269d608b893dc33080", "branch_name": "refs/heads/main", "committer_date": "2021-05-21T06:45:38", "content_id": "a2a1d5037a2261b26067db2e3d02c6a74bb9e189", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "19252029c1d42dc515708a90609a91a5e5f763e4", "extensio...
stackv2
// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include <stdlib.h> // Reverses a UTF-8 string in-place. void reverse(char *str) { // Calculate leng...
2.65625
3
2024-11-18T23:31:16.191604+00:00
2021-01-18T04:11:43
6cc5194ac675194f9ada048794cac55948c74926
{ "blob_id": "6cc5194ac675194f9ada048794cac55948c74926", "branch_name": "refs/heads/main", "committer_date": "2021-01-18T04:11:43", "content_id": "db8279f0bcd20a2ab04b258f8f72ea473b5fae49", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8fe07cf177969a9d1b43f1c462ba5e3007259de6", "extensio...
stackv2
#include <stdio.h> void bit_print(int a); int main(void) { int k; for ( ; ; ) { printf("Input an integer: "); if (scanf("%d", &k) != 1) break; printf("\n%7d = ", k); bit_print(k); printf("\n\n"); } printf("\nBye!\n\n"); return 0; }
3.171875
3
2024-11-18T23:31:16.450629+00:00
2017-12-20T20:38:28
e928e828a6f64961811809d46bcdff35a959af83
{ "blob_id": "e928e828a6f64961811809d46bcdff35a959af83", "branch_name": "refs/heads/master", "committer_date": "2017-12-20T20:38:28", "content_id": "a3337d8810af52a2dd550dd27a287d4ebacfcb48", "detected_licenses": [ "CC0-1.0" ], "directory_id": "e25c61618c7c51aebd0a8214459d14053fcd7b63", "extension":...
stackv2
#include <stdlib.h> #include <time.h> #include <Rinternals.h> #include "zip.h" SEXP R_zip_zip(SEXP zipfile, SEXP keys, SEXP files, SEXP dirs, SEXP mtime, SEXP compression_level, SEXP append) { const char *czipfile = CHAR(STRING_ELT(zipfile, 0)); int ccompression_level = INTEGER(compression_level)[0]; ...
2.078125
2
2024-11-18T23:31:16.571815+00:00
2022-12-06T07:14:06
1e7165e924e77126a8acde3056fca5ae829df072
{ "blob_id": "1e7165e924e77126a8acde3056fca5ae829df072", "branch_name": "refs/heads/dev", "committer_date": "2022-12-06T07:14:06", "content_id": "5c1de0e2aab4da0d1267b9aa10559eb234cfe501", "detected_licenses": [ "MIT" ], "directory_id": "b04c60b92571a77520c2272cf50f5c02ce1b0c1e", "extension": "h", ...
stackv2
/** * @file lv_style.h * */ #ifndef LV_STYLE_H #define LV_STYLE_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include <stdbool.h> #include "../lv_misc/lv_color.h" #include "../lv_misc/lv_area.h" #include "../lv_misc/lv_font.h" #include "../lv_misc/lv_ani...
2.515625
3
2024-11-18T23:31:16.858842+00:00
2021-04-26T20:48:38
5d0bff2a010ac86900cf867c8631679470e7b05b
{ "blob_id": "5d0bff2a010ac86900cf867c8631679470e7b05b", "branch_name": "refs/heads/main", "committer_date": "2021-04-26T20:48:38", "content_id": "d98d082a4c24a6fdd69a3478ecec9fea0ab03e03", "detected_licenses": [ "MIT" ], "directory_id": "7d52235ced905668ac44f844c60f0330bef7858b", "extension": "c", ...
stackv2
//z20.c #include <stdio.h> #include <stdlib.h> int main() { int i; int *pi; i = 7; pi = &i; printf("Promenljiva - adresa:\t %p, vrednost:\t %d\n\n", &i, i); printf("Pokazivac - adresa:\t %p, vrednost:\t %p\n\n", &pi, pi); printf("Pokazivac - vrednost:\t %p, sadrzaj:\t %d\n\n", pi, *pi...
3.09375
3
2024-11-18T23:31:17.281753+00:00
2018-08-22T16:28:51
32fe49728a702b582f6af79e70aef78b0d253c67
{ "blob_id": "32fe49728a702b582f6af79e70aef78b0d253c67", "branch_name": "refs/heads/master", "committer_date": "2018-08-22T16:28:51", "content_id": "5f9d1865060652018c8fcb9d6f948f504aeccb38", "detected_licenses": [ "MIT" ], "directory_id": "84823eba0a9ad02f25d277474307bc096ab75e76", "extension": "c"...
stackv2
/* ** ** Purpose: The three stage implementation of pipeline; fetch decoded execute ** */ #include "pipeline.h" /* The three-stage pipeline */ void pipeline(ARM11 *arm11) { /* Initially fetched and decoded are "uninitialised" to some unused value */ uint32_t fetched = UNINITIALISED; instruction *decodedInstru...
2.9375
3
2024-11-18T23:31:18.512764+00:00
2020-12-18T22:28:59
65c844073e8f7a29ade6cd764eae0206eaf2bcc8
{ "blob_id": "65c844073e8f7a29ade6cd764eae0206eaf2bcc8", "branch_name": "refs/heads/main", "committer_date": "2020-12-18T22:28:59", "content_id": "7e29d69995287884c76941c104846a25c29c228a", "detected_licenses": [ "MIT" ], "directory_id": "3df5904eef4014edbe1e50dc87476d4755e570b4", "extension": "c", ...
stackv2
#include <stdio.h> #include "ctrlflag.h" #include "infra.h" #include "timer.h" #include "elogs.h" void doit(void) { LOG_INIT(ddmmyyyy); LOG_INFO("Easy Logs module is working -> %d", 1); LOG_DBGL("Low level debug logging is working -> %d", 2); LOG_DBGM("Med level debug logging is working -> %d", 3); ...
2.109375
2
2024-11-18T23:31:18.684610+00:00
2019-09-02T18:24:48
b88fa0b40eeb0cf2d125835f6ff71bf2a65f75a6
{ "blob_id": "b88fa0b40eeb0cf2d125835f6ff71bf2a65f75a6", "branch_name": "refs/heads/master", "committer_date": "2019-09-02T18:24:48", "content_id": "5584b8e8492ee3541f0e23863f42bf5238b0199f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "15343dc993330ba3777f0dbaedc62d4e7879a296", "extens...
stackv2
// int and numeric #define IMPLEMENT_OP1_INTEGER_FUSION_POINT(OPNAME) \ IMPLEMENT_ANY_OP1_FUSION_POINT(__forceinline,OPNAME,Int,int32_t); \ IMPLEMENT_ANY_OP1_FUSION_POINT(__forceinline,OPNAME,UInt,uint32_t); \ IMPLEMENT_ANY_OP1_FUSION_POINT(_msc_inline_bug,OPNAME,Int64,int64_t); \ IMPLEMENT_ANY_OP1_FUS...
2.03125
2
2024-11-18T23:31:19.154738+00:00
2020-02-12T19:09:06
f75573aa999b6cf735a4a46bd3cc56e59eba2b19
{ "blob_id": "f75573aa999b6cf735a4a46bd3cc56e59eba2b19", "branch_name": "refs/heads/master", "committer_date": "2020-02-12T19:09:06", "content_id": "303f2e359d02784a0198223db6f334e9c18fe391", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "18c8a1628817a0103e3dcf301546877b537a680d", "extens...
stackv2
/* This file was generated using https://github.com/mosra/flextgl: path/to/flextGLgen.py -D generated -t templates/glfw3-es profiles/gles30.txt Do not edit directly, modify the template or profile and regenerate. */ #include "flextGL.h" #include <stdio.h> #include <GLFW/glfw3.h> #ifdef __cplusplus ...
2.203125
2
2024-11-18T23:31:19.581880+00:00
2017-09-29T08:33:02
715d1a345c541d2fcad9e3b320d37301d4aa6440
{ "blob_id": "715d1a345c541d2fcad9e3b320d37301d4aa6440", "branch_name": "refs/heads/master", "committer_date": "2017-09-29T08:33:02", "content_id": "ee4a10e58b5d0190fd57796c6f844b13fb2b6fbb", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c230773655503638c63cf1c93f5e1ae44e982f96", "extensio...
stackv2
#ifndef _IIC_H_ #define _IIC_H_ #include "stm32f1xx_hal.h" #define I2C_WR 0 /* 写控制bit */ #define I2C_RD 1 /* 读控制bit */ /* * AT24C02 2kb = 2048bit = 2048/8 B = 256 B * 32 pages of 8 bytes each * * Device Address * 1 0 1 0 A2 A1 A0 R/W * 1 0 1 0 0 0 0 0 = 0XA0 * 1 0 1 0 0 0 0 1 = 0XA1 *...
2.03125
2
2024-11-18T23:31:20.173343+00:00
2021-03-24T16:43:30
14f11688d6df377679a16bc76bebd8c0eaffe885
{ "blob_id": "14f11688d6df377679a16bc76bebd8c0eaffe885", "branch_name": "refs/heads/master", "committer_date": "2021-03-24T16:43:30", "content_id": "f2dbe810780d2c72f6f359ef71b08fa3cd749690", "detected_licenses": [ "MIT" ], "directory_id": "c304eba343baa45f373fece59eeeb963a295aa61", "extension": "c"...
stackv2
#include "lib9.h" #include <sys/types.h> #include <sys/stat.h> #define ISTYPE(s, t) (((s)->st_mode&S_IFMT) == t) static void statconv(Dir *dir, struct stat *s) { ulong q; #ifdef NO extern char* GetNameFromID(int); strncpy(dir->uid, GetNameFromID(s->st_uid), NAMELEN); strncpy(dir->gid, GetNameFromID(s->st_gid), ...
2.484375
2
2024-11-18T23:31:20.752900+00:00
2021-10-18T08:57:34
3124ecf3fe3f911a60d5f924828539c6630fc8d0
{ "blob_id": "3124ecf3fe3f911a60d5f924828539c6630fc8d0", "branch_name": "refs/heads/master", "committer_date": "2021-10-18T08:57:34", "content_id": "eec2a77f16debc63a5c412cc219604583672d45a", "detected_licenses": [ "MIT" ], "directory_id": "5942a8c7cd6c57ee226036ce810c2a0f9896c02a", "extension": "c"...
stackv2
/* * Compile: "gcc testlab2.c" * Run: "./a.out" */ #include <string.h> #include <assert.h> #include <stdio.h> #include <errno.h> #include <stdlib.h> #define __LIBRARY__ #include <unistd.h> _syscall2(int, whoami,char*,name,unsigned int,size); _syscall1(int, iam, const char*, name); #define MAX_NAME_LEN 23 #...
2.625
3
2024-11-18T23:31:21.907141+00:00
2020-12-13T03:04:46
4fb6c01c0402fd54ce6a780d0f9064aedae02a62
{ "blob_id": "4fb6c01c0402fd54ce6a780d0f9064aedae02a62", "branch_name": "refs/heads/master", "committer_date": "2020-12-13T03:04:46", "content_id": "8e2950b228561e04fd009c7d2466fc7e43730c8a", "detected_licenses": [ "Unlicense" ], "directory_id": "16bb9f9c23d85ae283ba08dc8a2571b5e1e9b70f", "extension...
stackv2
#include "beep.h" //初始化 PB8 为输出口.并使能这个口的时钟 //蜂鸣器初始化 void beep_Init(void) { RCC->APB2ENR|=1<<3; //使能 PORTB 时钟 GPIOB->CRH&=0XFFFFFFF0; GPIOB->CRH|=0X00000003; //PB.8 推挽输出 beep = 0; //关闭蜂鸣器输出 }
2.21875
2
2024-11-18T23:31:21.987988+00:00
2016-12-14T15:02:10
f2717d646ad0c91f98349cd1e72fba50d523b561
{ "blob_id": "f2717d646ad0c91f98349cd1e72fba50d523b561", "branch_name": "refs/heads/master", "committer_date": "2016-12-14T15:02:10", "content_id": "d5d6ef11b4ffbc1859b14119f95d8816da6b8eb1", "detected_licenses": [ "Unlicense" ], "directory_id": "756f9ebd3b7bfa11469ab907197d19357120afa3", "extension...
stackv2
#pragma once #include "common_util.h" int open_wronly_no_wait(const char *path, int flags) { /* * We can't simply open a pipe in O_WRONLY mode without waiting for readers. * Here's how we do it. */ int r; int rd_fd = -1, wr_fd = -1; rd_fd = open(path, O_RDONLY|O_NONBLOCK); if (rd_fd < 0) { log("Failed ...
2.75
3
2024-11-18T23:31:22.041169+00:00
2017-09-06T09:31:07
91b9fca488f92e176e9762e2c9fd112759462815
{ "blob_id": "91b9fca488f92e176e9762e2c9fd112759462815", "branch_name": "refs/heads/master", "committer_date": "2017-09-06T09:31:07", "content_id": "84d793305c450bac7bdf11a5fbf8f1ab7c56c0a6", "detected_licenses": [ "Unlicense" ], "directory_id": "752c15e5dbb58b4cdc8f8fe1f696145f7cdfef7b", "extension...
stackv2
#include <stdlib.h> #include <string.h> #include <ctype.h> #include <limits.h> #include <event2/buffer.h> #include <event2/http.h> #include <event2/http_struct.h> #include <event2/keyvalq_struct.h> #include "database.h" #include "entity.h" #include "methods.h" #include "response.h" #include "utils.h" #include "reques...
2.21875
2
2024-11-18T23:31:22.267067+00:00
2023-02-16T11:27:40
d43ac0dd1b57c0a71b38c125d580614393e1c616
{ "blob_id": "d43ac0dd1b57c0a71b38c125d580614393e1c616", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "14015bb09cc57b7c9d1d322a488ce6cd1ac15d2a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2020 Antmicro <www.antmicro.com> * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT adi_adxl345 #include <zephyr/drivers/sensor.h> #include <zephyr/init.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/i2c.h> #include <zephyr/logging/log.h> #include <zephyr/sys/__asser...
2.34375
2
2024-11-18T23:31:22.453513+00:00
2017-08-27T00:23:32
7d74525287edd4e0bcdb3e27a74ea29e3c224af7
{ "blob_id": "7d74525287edd4e0bcdb3e27a74ea29e3c224af7", "branch_name": "refs/heads/master", "committer_date": "2017-08-27T00:26:09", "content_id": "f0c62ee1fd71b92f930f73a637ab862968fa0548", "detected_licenses": [ "MIT" ], "directory_id": "0175c32775ae14fa60a67a24eb640a4926000bfa", "extension": "h"...
stackv2
#ifndef _TEST_H_ #define _TEST_H_ #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_GREEN "\x1b[32m" #define ANSI_COLOR_RESET "\x1b[0m" #define ANSI_BOLD_START "\e[1m" #define ANSI_BOLD_END "\e[0m" #define NUM_TEST_DASHES 50 int num_tests_pass = 0; int num_tests_fail = 0; #define EXPECT(a, b) ...
2.421875
2
2024-11-18T23:31:22.647282+00:00
2019-01-06T05:11:09
4f48ddaeb2d9415c9324b7a26d30fcb7d0778948
{ "blob_id": "4f48ddaeb2d9415c9324b7a26d30fcb7d0778948", "branch_name": "refs/heads/master", "committer_date": "2019-01-06T05:11:09", "content_id": "b0b596284790b12382a52422848a2145466265ba", "detected_licenses": [ "Unlicense" ], "directory_id": "69e9ef51126651f9482fd0b4925cb9710648bd69", "extension...
stackv2
/* 2-9.c #include<stdio.h> #include<string.h> int main(void) { char array1[50] = "Good-morning, Good-afternoon, Good-evening"; char array2[10] = "morning"; char* p1=NULL; char* p2=NULL; p1 = strchr(array1, 'a'); p2 = strstr(array1, array2); printf("문자 a의 위치: %x \n", p1); printf("문자열: %s \n", p1); print...
3.546875
4
2024-11-18T23:31:23.075074+00:00
2015-03-25T12:49:17
35ddf181ed2d69273d814a24d5ba0ad4b2718c2a
{ "blob_id": "35ddf181ed2d69273d814a24d5ba0ad4b2718c2a", "branch_name": "refs/heads/master", "committer_date": "2015-03-25T12:49:17", "content_id": "11837c6ef8b3d177bd5bdce01e2a315fbcc11f40", "detected_licenses": [ "ISC" ], "directory_id": "1677af48020a4798ac4f290f2da171ce00395dae", "extension": "c"...
stackv2
/* Ngaro VM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Copyright (c) 2008 - 2012, Charles Childers Copyright (c) 2009 - 2010, Luke Parrish Copyright (c) 2010, Marc Simpson Copyright (c) 2010, Jay Skeer Copyright (c) 2011, Kenneth Keating Copyright (c) 2011, ...
2.265625
2
2024-11-18T23:31:23.327737+00:00
2023-04-19T04:40:52
df1432c407465c97b02ea58a38bfb97245f8ef8c
{ "blob_id": "df1432c407465c97b02ea58a38bfb97245f8ef8c", "branch_name": "refs/heads/master", "committer_date": "2023-04-19T04:40:52", "content_id": "d6b5bcbfeebb95834e777b80ea75f2ebd6d66913", "detected_licenses": [ "TCL" ], "directory_id": "d8b0a8df26dcc23cf68f243edb6ff032849a467c", "extension": "c"...
stackv2
/* * tclThread.c -- * * This file implements Platform independent thread operations. Most of * the real work is done in the platform dependent files. * * Copyright (c) 1998 by Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIME...
2.78125
3
2024-11-18T23:31:24.157739+00:00
2019-03-15T15:52:54
519ba831b0a9e19224df5439bea445f984194d60
{ "blob_id": "519ba831b0a9e19224df5439bea445f984194d60", "branch_name": "refs/heads/master", "committer_date": "2019-03-15T15:52:54", "content_id": "2e22cea97268b47ecb8eaa7b9b5083001ae99e36", "detected_licenses": [ "MIT" ], "directory_id": "28066f8b6023c8e5d9a965edf890b41398a6765c", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdbool.h> #include <string.h> #include <stdio.h> int* maxNumberSingleArray(int *nums, int k, int n) { int j = 0; int *ret = (int*)malloc(sizeof(int)*k); memset(ret, 0, sizeof(int)*k); for (int i = 0; i<n; ++i) { while (n - i + j>k && j>0 && nums[i]>ret[j - 1]) { j--; } if (...
3.359375
3
2024-11-18T23:40:39.575367+00:00
2021-08-29T07:43:49
ce58ff66a5ba0ba3478a4f79f920b457c5ed9f53
{ "blob_id": "ce58ff66a5ba0ba3478a4f79f920b457c5ed9f53", "branch_name": "refs/heads/main", "committer_date": "2021-08-29T07:43:49", "content_id": "8f4458532bd08eed35c7a2bde9b95370cfcd11dd", "detected_licenses": [ "MIT" ], "directory_id": "0c034b5fec493e2a95db5b04488a0f7fb2300177", "extension": "c", ...
stackv2
/** * @file ICommunication.c * @brief Interface for communication protocols * @author m2enu * @date 2021/08/29 * @par License * https://github.com/m2enu/clang_interface/blob/main/LICENSE */ #include <stdint.h> #include <stddef.h> #include "ICommunication.h" #define IS_NULL(p) ((p)...
2.140625
2
2024-11-18T23:40:40.225789+00:00
2018-07-24T17:35:56
6b612cf9d1a9501e416664949ae0cf1eea4ef2ed
{ "blob_id": "6b612cf9d1a9501e416664949ae0cf1eea4ef2ed", "branch_name": "refs/heads/master", "committer_date": "2018-07-24T17:35:56", "content_id": "d36c2095c88144d389bf59064e02802d3050bf2a", "detected_licenses": [ "MIT" ], "directory_id": "a428a9dc4a289be39741fcb59362673bdf956393", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "Matrix.h" #include "Layer.h" const char *layer_description[3] = {"Fully connected layer", "Filter layer", "Pooling layer"}; void create_layer(Shape *input_shape, Shape *output_shape, Layer **created) { Layer *layer = malloc(sizeof(Layer)); la...
2.5
2
2024-11-18T23:40:40.617753+00:00
2019-10-06T19:49:04
a6a945e104412269d38bbbd65cdfd322ba8ad025
{ "blob_id": "a6a945e104412269d38bbbd65cdfd322ba8ad025", "branch_name": "refs/heads/master", "committer_date": "2019-10-06T19:49:04", "content_id": "c3a84812fcb3f105a8e1ccf4c710c64854d63269", "detected_licenses": [ "MIT" ], "directory_id": "7ee916587d9da78cea153666f6b2d6c9b2a63ba0", "extension": "c"...
stackv2
#include "display.h" #include "Fonts/fonts.h" #include "FreeRTOS.h" #include "LCD_Driver.h" #include "epicardium.h" #include "gfx.h" #include "gpio.h" #include "task.h" #include "tmr.h" #include "tmr_utils.h" static TaskHandle_t lock = NULL; static int check_lock() { TaskHandle_t task = xTaskGetCurrentTaskHandle(); ...
2.390625
2
2024-11-18T23:40:40.835358+00:00
2019-10-22T21:57:24
11d259e9d35f8c085d032b265b0402d203ce7ad0
{ "blob_id": "11d259e9d35f8c085d032b265b0402d203ce7ad0", "branch_name": "refs/heads/master", "committer_date": "2019-10-22T21:57:24", "content_id": "f40506c83f84724114ebdfbc8627baf3be6ef842", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "a602f2910ad73741d3957f26f28a6566111a8b31"...
stackv2
#version 450 out vec4 fragColor; in vec4 vs_color; //in vec4 vs_position; uniform sampler2D iChannel0; // input channel Bkgd uniform sampler2D iChannel1; // input channel Frgd uniform vec2 iTextureResolution; // image /texture resolution (in pixels) uniform vec2 iViewportSize; ...
2.296875
2
2024-11-18T23:40:42.208070+00:00
2019-10-03T14:45:29
d3ee66c68bdbf5f6bfd25fc6159633e5b4b1715d
{ "blob_id": "d3ee66c68bdbf5f6bfd25fc6159633e5b4b1715d", "branch_name": "refs/heads/master", "committer_date": "2019-10-03T14:45:29", "content_id": "e4cf9302f12253d11bcee6935cc0b413649d47a3", "detected_licenses": [ "MIT" ], "directory_id": "1422f8f821ca4132b82e03bf1aa7c391f38ddc71", "extension": "c"...
stackv2
#include <stdio.h> #include <espressif/esp_wifi.h> #include <espressif/esp_sta.h> #include <espressif/esp_system.h> #include <esp/uart.h> #include <esp8266.h> #include <etstimer.h> #include <esplibs/libmain.h> #include <FreeRTOS.h> #include <task.h> #include <homekit/homekit.h> #include <homekit/characteristics.h> #inc...
2.234375
2
2024-11-18T23:40:42.340107+00:00
2018-12-12T18:46:58
dbb377406293363263fd56165170aaa11b3f1e2b
{ "blob_id": "dbb377406293363263fd56165170aaa11b3f1e2b", "branch_name": "refs/heads/master", "committer_date": "2018-12-12T18:46:58", "content_id": "e5dee8c696c58a643fc8d806e11ec04cfe97d285", "detected_licenses": [ "Zlib" ], "directory_id": "153db221949fd0071a8e0bce5ea173e2408e46e3", "extension": "c...
stackv2
#include "image2amivideo.h" #include <stdlib.h> #include <libilbm/byterun.h> #include <libilbm/interleave.h> #include <libamivideo/viewportmode.h> void SDL_ILBM_initPaletteFromImage(const ILBM_Image *image, amiVideo_Palette *palette) { if(image->colorMap == NULL) { /* If no colormap is provided by the ...
2.5
2
2024-11-18T23:40:42.472191+00:00
2016-01-03T22:30:42
e011f2d162181e661283c417f34b227a50f9ef89
{ "blob_id": "e011f2d162181e661283c417f34b227a50f9ef89", "branch_name": "refs/heads/master", "committer_date": "2016-01-03T22:30:42", "content_id": "60734128e9e69f7af158704aca635508e518d964", "detected_licenses": [ "MIT" ], "directory_id": "a55a2129f4ca59600487c04728460f655750ce17", "extension": "c"...
stackv2
#include <3ds.h> #include <stdio.h> #include "memchunkhax2.h" int main(int argc, char **argv) { Handle amHandle = 0; Result res; u8 success; gfxInitDefault(); consoleInit(GFX_TOP, NULL); // This one should fail res = srvGetServiceHandleDirect(&amHandle, "am:u"); printf("am:u init1 r...
2.296875
2
2024-11-18T23:40:42.936435+00:00
2020-07-19T20:52:28
59c0c95d01cedc9b6c4be7231d0b27434dbd4596
{ "blob_id": "59c0c95d01cedc9b6c4be7231d0b27434dbd4596", "branch_name": "refs/heads/master", "committer_date": "2020-07-19T20:52:28", "content_id": "691e01ef1a36ba4a83adb1d981fe7cefda54fb8d", "detected_licenses": [ "MIT" ], "directory_id": "8ab6cc39fcc28a07a82ad0bb22056570f1921ae0", "extension": "c"...
stackv2
/** * @file lv_theme_templ.c * */ /********************* * INCLUDES *********************/ #include "jolt_gui/jolt_gui.h" /********************* * DEFINES *********************/ /********************** * TYPEDEFS **********************/ /********************** * STATIC PROTOTYPES ********...
2.359375
2
2024-11-18T23:40:43.403216+00:00
2009-12-07T19:16:28
9598efa2c98e6ddc7ef9bdf9dd3e41ee6714dada
{ "blob_id": "9598efa2c98e6ddc7ef9bdf9dd3e41ee6714dada", "branch_name": "refs/heads/master", "committer_date": "2009-12-07T19:16:28", "content_id": "9f24ea45d64ad34adf191616e5965010c9edcf5b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "da629a9d850efa7daa5e2a8017131624f874fc10", "extens...
stackv2
/* * Copyright (c) 2009, Matteo Bertozzi <theo.bertozzi@gmail.com> * All rights reserved. * * 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 copyright * ...
2.40625
2
2024-11-18T23:40:43.552460+00:00
2020-08-25T20:21:40
9050b45789d9259b86844cace21a243608602940
{ "blob_id": "9050b45789d9259b86844cace21a243608602940", "branch_name": "refs/heads/main", "committer_date": "2020-08-25T20:21:40", "content_id": "c203a85de0f612f2f6dcf345158ba368788f4a5c", "detected_licenses": [ "NTP" ], "directory_id": "a364f5e25e4ec3563c2a6e366069488786927948", "extension": "c", ...
stackv2
/* $NetBSD: fptoms.c,v 1.2 1998/01/09 03:16:11 perry Exp $ */ /* * fptoms - return an asciized s_fp number in milliseconds */ #include "ntp_fp.h" char * fptoms(fpv, ndec) s_fp fpv; int ndec; { u_fp plusfp; int neg; if (fpv < 0) { plusfp = (u_fp)(-fpv); neg = 1; } else { plusfp = (u_fp)fpv; neg = 0; ...
2.390625
2
2024-11-18T23:40:43.919055+00:00
2021-12-20T21:23:16
877ae3689c60584d96cc6cc769b434f060d26c4d
{ "blob_id": "877ae3689c60584d96cc6cc769b434f060d26c4d", "branch_name": "refs/heads/master", "committer_date": "2021-12-20T21:23:16", "content_id": "396079ab0ea0cf0d1a001445a7735a2fab9aae94", "detected_licenses": [ "MIT" ], "directory_id": "aeb12262c02d1c874dd4dcd271eca5f23f13a23c", "extension": "c"...
stackv2
#include<stdlib.h> #include<stdio.h> #define maxnode 100 #define TRUE 1 #define FALSE 0 int numberNodes; int numberLinks; int numberQuery; int sizeofHashTable; int prime; int parent[maxnode]; int distance[maxnode]; int seen[maxnode]; int graph[maxnode][maxnode]; int shortestDis[maxnode][maxnode]; int query[maxnode][2];...
2.734375
3
2024-11-18T23:40:44.234992+00:00
2023-06-23T10:11:23
b51b19978a91197dc5f9a5ec77163c7ee7924099
{ "blob_id": "b51b19978a91197dc5f9a5ec77163c7ee7924099", "branch_name": "refs/heads/main", "committer_date": "2023-06-23T10:11:23", "content_id": "d2112c4fc0556b27d4ff98db297fec73113b644e", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "803898f95f34521f4fc08ff42534888367ff4028", "extensio...
stackv2
#include "lyrdiag.h" #define SGN(x) ( (x) > 0.01 ? 1. : ( G_ABS(x) < 0.00001 ? 0. : -1. ) ) void dl_fvonisfc ( char *uargs, char *glvl, char *stprm, int *iret ) /************************************************************************ * dl_fvonisfc * * ...
2.0625
2
2024-11-18T23:40:44.336397+00:00
2017-04-25T13:02:03
f74cce2b6d7e21b91777b65d34623769748e1649
{ "blob_id": "f74cce2b6d7e21b91777b65d34623769748e1649", "branch_name": "refs/heads/master", "committer_date": "2017-04-25T13:02:03", "content_id": "3a9e04abc9b357f7efea7d5a8cd15b9203aa8cf1", "detected_licenses": [ "Zlib" ], "directory_id": "b401c034d79212ef3e284e13b31ab696505351fc", "extension": "c...
stackv2
/* * ObjectivelyMVC: MVC framework for OpenGL and SDL2 in c. * Copyright (C) 2014 Jay Dolan <jay@jaydolan.com> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is ...
2.234375
2
2024-11-18T23:40:44.401851+00:00
2020-07-03T17:17:46
e83a1751ffe9f1c299ecbbe4903705eec38e3219
{ "blob_id": "e83a1751ffe9f1c299ecbbe4903705eec38e3219", "branch_name": "refs/heads/master", "committer_date": "2020-07-03T17:17:46", "content_id": "5ff84f04e018d138e1d105c4c67685c8c210e9f5", "detected_licenses": [ "MIT" ], "directory_id": "af3c61c6620d706ab96432320335787eef4956a2", "extension": "c"...
stackv2
#define uchar unsigned char #define SCREEN ((uchar*)0x0400) #define COLS (40) #define RASTER_COUNTER ((uchar*)0xd012) #define CHARSET ((uchar*)0xd800) #define BORDER ((uchar*)0xd020) #define BORDER_CHANGE __asm__("inc $d020") #define BORDER_RESET \ __asm__("lda #0"); \ __asm__("sta $d020") // Each value in ANIMATIO...
2.125
2
2024-11-18T23:40:44.600176+00:00
2020-06-18T08:35:56
ce3e34137214df3f83db86548ea510ffc8588dff
{ "blob_id": "ce3e34137214df3f83db86548ea510ffc8588dff", "branch_name": "refs/heads/master", "committer_date": "2020-06-18T08:35:56", "content_id": "ade50483b2ddf7c5da3406cd48c9e2a1944996c6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cc153bdc1238b6888d309939fc683e6d1589df80", "extensio...
stackv2
/*-------------------------------------------------------------------------- Copyright (c) 2015 Qualcomm Technologies, Inc. All Rights Reserved. Qualcomm Technologies Proprietary and Confidential. --------------------------------------------------------------------------*/ #include <stdio.h> #include <stdlib.h> #...
2.46875
2
2024-11-18T23:40:45.316301+00:00
2021-05-13T04:35:34
5d91b4f251aeb3d3b5cedd1ca5bd5a683ab066fb
{ "blob_id": "5d91b4f251aeb3d3b5cedd1ca5bd5a683ab066fb", "branch_name": "refs/heads/main", "committer_date": "2021-05-13T04:35:34", "content_id": "2c5f3baa63046e829e31820a22022a955d781ff5", "detected_licenses": [ "MIT" ], "directory_id": "bf3b603a768515206adbcf0e4ffc829d9d7edba9", "extension": "c", ...
stackv2
#include <stdio.h> void ExibeMenu(){ printf("\n============Menu============\n" "\t[1]-Adicao\n" "\t[2]-Subtracao\n" "\t[3]-Multiplicacao\n" "\t[4]-Divisao\n" "\t[5]-Sair\n"); } int soma (int a, int b){ return a + b; } int subtracao (int a, int b){ return a - b; } ...
3.4375
3
2024-11-18T23:40:45.748769+00:00
2018-09-07T00:43:23
ac4cf8db8f34ae69fcb3b4555e51b3964677dbdc
{ "blob_id": "ac4cf8db8f34ae69fcb3b4555e51b3964677dbdc", "branch_name": "refs/heads/master", "committer_date": "2018-09-07T00:43:23", "content_id": "473efddf02b3477e7dec973cc038d32e71264206", "detected_licenses": [ "MIT" ], "directory_id": "f390d30c730b93f08e571e1ec8871db274245623", "extension": "c"...
stackv2
/* ------------------------------------------- Name: Stefan Djurkic /* ------------------------------------------- Name: Stefan Djurkic Email: stefandjurkic@gmail.com Website: stefandjurkic.com Date: 12/20/2017 File: contactsHelpers.c Purpose: This file contains the implementations for functions that manipulate i/o in ...
3.265625
3
2024-11-18T23:40:45.965072+00:00
2023-04-04T19:23:06
9c4997508252a220e5ca545c3c614b9c66280596
{ "blob_id": "9c4997508252a220e5ca545c3c614b9c66280596", "branch_name": "refs/heads/master", "committer_date": "2023-04-04T19:36:32", "content_id": "d79e71e6035a7a772447232e06d396dc934ceec6", "detected_licenses": [ "ISC" ], "directory_id": "b4ddc1641ba23f5575239d2e97e925a10328e932", "extension": "c"...
stackv2
#include <usual/mdict.h> #include <usual/string.h> #include "test_common.h" static const char *xget(struct MDict *d, const char *k) { const char *val = mdict_get(d, k); return val ? val : "NULL"; } static void test_mdict(void *p) { struct MDict *d; struct MBuf buf; const char *s; d = mdict_new(NULL); str_ch...
2.21875
2
2024-11-18T23:40:47.705438+00:00
2018-10-11T22:40:21
8b2c61479fc1ce8ce7389d97f51fbbf25ae6ed82
{ "blob_id": "8b2c61479fc1ce8ce7389d97f51fbbf25ae6ed82", "branch_name": "refs/heads/master", "committer_date": "2018-10-11T22:40:21", "content_id": "8917801960c485d05047df7b667cf401fa12f632", "detected_licenses": [ "MIT" ], "directory_id": "aa8842ce01e1f971c6cdc48a709d6ed4be365b9e", "extension": "c"...
stackv2
// Copyright 2018 Pedro Victor Rodrigues de Carvalho #include <stdio.h> #include <ctype.h> #include <stdbool.h> #include "conta_linhas.h" /* Funcao conta_linhas_codigo: Le o arquivo de codigo fornecido linha por linha e, para cada linha, checa se e uma linha vazia ou se e uma linha de comentario. ...
3.296875
3
2024-11-18T23:40:48.139329+00:00
2016-10-02T09:12:27
b5da79ac046f1bf7338e5378f6d7753e821a9d13
{ "blob_id": "b5da79ac046f1bf7338e5378f6d7753e821a9d13", "branch_name": "refs/heads/master", "committer_date": "2016-10-02T09:24:43", "content_id": "7d4f956b186650b0920e495e0af296eab2bda8c4", "detected_licenses": [ "MIT" ], "directory_id": "d1dea061247499cb71bc0f99109b62f30f1ac790", "extension": "c"...
stackv2
/* pts_shunt * Create two pseudoterminal slaves and shunt data between them. * * $ gcc pts_shunt.c -o pts_shunt * $ ./pts_shunt * /dev/pts/5 <=> /dev/pts/8 * ...^C * $ * */ #define _GNU_SOURCE #include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> int pts_open(...
3.109375
3
2024-11-18T23:40:48.366167+00:00
2021-10-10T08:37:27
d3c4080e9c1c5361069173c1778d6be1b045545b
{ "blob_id": "d3c4080e9c1c5361069173c1778d6be1b045545b", "branch_name": "refs/heads/main", "committer_date": "2021-10-10T08:37:27", "content_id": "9848714bd8e30fa30ab123b129d6bfcc31eea15b", "detected_licenses": [], "directory_id": "094706ac8143081f12ebcd3fb1cb6a150be5a692", "extension": "c", "filename":...
stackv2
#include<stdio.h> #include<stdlib.h> int lsearch(int n,int *arr,int search) { int res=0; int i; for( i=0;i<n;i++) { if(search==arr[i]) { res=1; break; } } if(res==0) return -1; else return i; } int main() { int n,*arr,search,...
3.453125
3
2024-11-18T23:40:48.455578+00:00
2020-09-24T03:25:08
6f5467a8e4bd253973c565f7a267d17d03a0d1d5
{ "blob_id": "6f5467a8e4bd253973c565f7a267d17d03a0d1d5", "branch_name": "refs/heads/master", "committer_date": "2020-09-24T03:25:08", "content_id": "c80a10b28f4f2d88b12751fa69c6c2351b28a0ba", "detected_licenses": [ "MIT" ], "directory_id": "4182da7e0ccc1c4b4b63130d9c8261c32fd21203", "extension": "h"...
stackv2
/* * Anthony Bartman * 3/8/19 * Dr. Livingston * Function: * This method will hold all the method and variables used in the * SevenSegs.c file */ #ifndef SEVENSEGS_H_ #define SEVENSEGS_H_ #include "alt_types.h" #include "system.h" /* * This method will read the value of which switches are enabled or * not *...
2.140625
2
2024-11-18T23:40:48.921430+00:00
2023-07-31T18:59:30
090eaf436b7df121dfb616608dc838bf3d46dbe1
{ "blob_id": "090eaf436b7df121dfb616608dc838bf3d46dbe1", "branch_name": "refs/heads/master", "committer_date": "2023-07-31T18:59:30", "content_id": "609ef4d18f47bc5722f8091acc86686bfe6d9c60", "detected_licenses": [ "NetCDF" ], "directory_id": "cc88672f8cfc6f60bf9de4c0842e08ef77a1051d", "extension": ...
stackv2
/* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc. See the COPYRIGHT file for more information. */ #include <unistd.h> #include <fcntl.h> #include "ocinternal.h" #include "ocdebug.h" #ifdef WIN32 #define snprintf _snprintf #endif static char* DDSdatamark = "Data:"; static char* DDSdatamarkR = "Data:\r"; /* Not al...
2.390625
2
2024-11-18T23:40:49.684012+00:00
2018-02-17T07:51:29
62eb7e626e24b0ce242e2cb09667317ba0c8535d
{ "blob_id": "62eb7e626e24b0ce242e2cb09667317ba0c8535d", "branch_name": "refs/heads/master", "committer_date": "2018-02-17T07:51:29", "content_id": "1250eec9801f17d412c5cf2a4599bf68264e4c8c", "detected_licenses": [ "MIT" ], "directory_id": "1f0d5a4f93d5d777b731b2091b2a89a3b5855f28", "extension": "c"...
stackv2
#include <stdio.h> #include <unistd.h> #include <dirent.h> #include <string.h> #include <stdlib.h> void showPermission(char*); void checkPermission(char *); void showACL(char*); void checkACLPermission(char*); void undoSetUid(int); void printUid(void); void main(int argc, char* argv[]) { char root_dir[] = "/simple_s...
3.046875
3
2024-11-18T23:40:49.854665+00:00
2014-11-20T11:41:23
6a64c8e99b1400e18d229f595fcf8217b2bcc56e
{ "blob_id": "6a64c8e99b1400e18d229f595fcf8217b2bcc56e", "branch_name": "refs/heads/master", "committer_date": "2014-11-20T11:41:23", "content_id": "b627681e0c0b8984c63110ba1ee9e17e12b73740", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "605d3c95134cbf85bea599c965ddee069b4a39cf", "extens...
stackv2
#include "scheme-private.h" #include "parser.h" #ifndef prompt # define prompt "ts> " #endif #define BACKQUOTE '`' #define DELIMITERS "()\";\f\t\v\n\r " /* ========== Routines for Printing ========== */ #define ok_abbrev(x) (is_pair(x) && cdr(x) == sc->NIL) /* ========== Routines for Reading ========== */ sta...
2.4375
2
2024-11-18T23:40:51.897403+00:00
2012-02-27T10:19:03
76a2807dd3ab9157a7efd4462ccc8057c41c7bc5
{ "blob_id": "76a2807dd3ab9157a7efd4462ccc8057c41c7bc5", "branch_name": "refs/heads/master", "committer_date": "2012-02-27T10:19:03", "content_id": "457775a366058f227cac31c13cbf71274c7e49fe", "detected_licenses": [ "Apache-2.0" ], "directory_id": "99516148207e821dd87127e16af12dc5240187de", "extensio...
stackv2
/* FreeRDP: A Remote Desktop Protocol client. ISO layer Copyright (C) Matthew Chapman 1999-2008 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/licen...
2.125
2
2024-11-18T23:40:51.990256+00:00
2020-11-14T02:12:08
9224e0feb6d544428ed1e28903393025b7edf262
{ "blob_id": "9224e0feb6d544428ed1e28903393025b7edf262", "branch_name": "refs/heads/master", "committer_date": "2020-11-14T02:12:08", "content_id": "ab718426c40f2d8e460d9a93d31d929ad7173a4d", "detected_licenses": [ "MIT" ], "directory_id": "95994724b2f660a87b70f7a15b70f51365f6c41c", "extension": "c"...
stackv2
#include "ray.h" #include <float.h> #include "../Shapes/shape.h" Intersection closestHit(Ray *this, Shape *shapes) { Intersection nearestHit, currentAttempt; nearestHit.t = FLT_MAX; for (unsigned int i = 0; shapes[i].derived; i++) { currentAttempt = shapes[i].hit(&shapes[i], this); if (currentAttempt.t < neare...
2.21875
2
2024-11-18T23:40:52.163726+00:00
2021-04-20T03:39:57
23f5aa6cee27e0860d1b34013ceac01e0b7798ea
{ "blob_id": "23f5aa6cee27e0860d1b34013ceac01e0b7798ea", "branch_name": "refs/heads/master", "committer_date": "2021-04-20T03:39:57", "content_id": "5b4b60026931b4e2befadf76212b43985554952b", "detected_licenses": [ "MIT" ], "directory_id": "6ed4073a453fa04ea9670ba2162f294f5208acf7", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> struct Node { int data; struct Node *next; }; void display(struct Node *); int append(struct Node **, int); int build(int *, int, struct Node **); void clear(struct Node **); void segregateLinkedList(struct Node**); int main() { struct Node *root = NULL; int arr[10...
3.71875
4
2024-11-18T23:40:52.243839+00:00
2022-06-19T18:06:21
146325b3051153fb2d555a372c334c165247f651
{ "blob_id": "146325b3051153fb2d555a372c334c165247f651", "branch_name": "refs/heads/master", "committer_date": "2022-06-19T18:06:21", "content_id": "8cc5448cb496cd317ee861e0f16f970a312bb824", "detected_licenses": [ "MIT" ], "directory_id": "1a41075640469143c655347ef02b268ba9eee1ca", "extension": "c"...
stackv2
/*************************** Saludo ************************/ #include <stdio.h> #include <stdlib.h> #define TAM_BUF 20 main(){ char *mensaje1 = "Bienvenido a C"; char *mensaje2 = "Te alegrara el haberme conocido"; char nombre[TAM_BUF]; system("cls"); printf("¿Cual es tu nombre? "); gets_s(nombre, TAM_BUF); ...
2.671875
3
2024-11-18T23:40:52.455207+00:00
2021-09-02T21:32:36
9b8b022668461791278b1bc2c652a404109a5d24
{ "blob_id": "9b8b022668461791278b1bc2c652a404109a5d24", "branch_name": "refs/heads/master", "committer_date": "2021-09-02T21:32:36", "content_id": "686c2e36e597b49fd01d56be2635b0df4a921920", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "fad3b0e537ee09f5c4cf5b2c53524a0a8f6c4fbc", "extens...
stackv2
/** * Checks that `lsp_eval` can add a new binding to a nested scope. */ #include "lsp.h" #include "lspt.h" int main(void) { lsp_vm_init(); lsp_push_default_env(); lsp_dup(0); lsp_push_scope(); lsp_push_string("(define x 4)"); lsp_parse(); lsp_car(); lsp_dup(1); lsp_eval...
2.734375
3