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-19T02:48:12.641332+00:00
2023-08-30T12:41:33
ee8a5a9a64cba048456040dd26a61ea0da3eb838
{ "blob_id": "ee8a5a9a64cba048456040dd26a61ea0da3eb838", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T12:41:33", "content_id": "f97308e381e3de2d9eb0378cba3652f9d1aea0a4", "detected_licenses": [ "MIT" ], "directory_id": "4aa3252c05a22ac52587758f98ff7b020c54c659", "extension": "c"...
stackv2
/* * Copyright (c) 1996 Argonaut Technologies Limited. All rights reserved. * Program to Display a Chrome-Textured Fork(8-bit) */ #include <stddef.h> #include "brender.h" #include "dosio.h" int main() { br_pixelmap *screen_buffer, *back_buffer, *depth_buffer, *palette, *shade; br_actor *world, *observer, *fork; ...
2.1875
2
2024-11-19T02:48:12.803546+00:00
2018-02-14T07:59:48
18922ed816f35680619e86c83e22d1eda4f6a937
{ "blob_id": "18922ed816f35680619e86c83e22d1eda4f6a937", "branch_name": "refs/heads/master", "committer_date": "2018-02-14T07:59:48", "content_id": "49bff3d68e2bfe7a55a9c0000dae77e034f79af2", "detected_licenses": [ "MIT" ], "directory_id": "a71d8039ba9a9b92fd7c17159b56368d68f21544", "extension": "c"...
stackv2
/* * I2C drivers. */ #include "i2c.h" void i2c_init(void) { /* clock high and as output, we are teh master */ I2C_SCL_HIGH(); I2C_SCL_OUTPUT(); /* data high and as input */ I2C_SDA_HIGH(); I2C_SDA_INPUT(); } int i2c_addr7(uint8_t addr, uint8_t rw) { I2C_SDA_OUTPUT(); /* start bit */ I2C_SCL_HIGH(); I2C...
2.609375
3
2024-11-19T02:48:12.921055+00:00
2023-08-11T13:02:43
e9130f5d866d0e37c492b1089a74e984acd2342c
{ "blob_id": "e9130f5d866d0e37c492b1089a74e984acd2342c", "branch_name": "refs/heads/master", "committer_date": "2023-08-11T13:02:43", "content_id": "bc9c054a0d415abffe2a813eef9d89a78185acf9", "detected_licenses": [ "MIT" ], "directory_id": "751d837b8a4445877bb2f0d1e97ce41cd39ce1bd", "extension": "c"...
stackv2
/* Given a non-empty string, keep removing the first and last characters until you get to one or two characters. For example, if the string was abcde, your program should print: abcde bcd c However, if it was abcdef, it should stop at two characters: abcdef bcde cd Trailing newlines and trailing spaces at the...
3.671875
4
2024-11-19T02:48:13.057642+00:00
2021-06-26T13:57:32
fb77b0546baaee9c9d7e5cb4392a3dd2ef0940e2
{ "blob_id": "fb77b0546baaee9c9d7e5cb4392a3dd2ef0940e2", "branch_name": "refs/heads/main", "committer_date": "2021-06-26T13:57:32", "content_id": "104e104565669edaa974dd6888956784ca8563d3", "detected_licenses": [ "MIT" ], "directory_id": "75436b6abf4c5606015bdddbdb9e08cf8edc7502", "extension": "c", ...
stackv2
#include <stdio.h> #include "GLEStrace.h" static char s_strbuf[512]; // [FIXME] thread safe static char * get_readdraw_str (EGLint readdraw) { switch (readdraw) { case EGL_READ : return "EGL_READ"; case EGL_DRAW : return "EGL_DRAW"; } snprintf (s_strbuf, sizeof (s_strbuf), "0x%x", readdr...
2.171875
2
2024-11-19T02:48:13.171061+00:00
2018-07-24T00:06:08
104129d79b7278b940cbcb1f22225312a5754aa8
{ "blob_id": "104129d79b7278b940cbcb1f22225312a5754aa8", "branch_name": "refs/heads/master", "committer_date": "2018-07-24T00:06:08", "content_id": "8a049358368b67cb875bfcdb337643a903b4d845", "detected_licenses": [ "MIT" ], "directory_id": "02d821456a4a961bec2d0b2cfe379b4cf6f37b87", "extension": "h"...
stackv2
#ifndef __SPI_NOR_FLASH__ #define __SPI_NOR_FLASH__ #include "stm32f0xx_hal.h" #include "n25q256_commands.h" #define ERASE_BLOCK_SIZE 4096 #define PAGE_PROGRAM_SIZE 256 typedef enum{ RESULT_OK, RESULT_ERROR }result_t; void init_spi_flash(void); void write_enable(uint8_t enable); result_t read_status_register...
2.015625
2
2024-11-19T02:48:14.133760+00:00
2023-02-15T21:37:44
06a331f76ccb37adc20c545ff2631a255fd3a42a
{ "blob_id": "06a331f76ccb37adc20c545ff2631a255fd3a42a", "branch_name": "refs/heads/master", "committer_date": "2023-02-15T21:49:32", "content_id": "3c97cbaeef3084a7f04cbc52c0c42b04c9d64844", "detected_licenses": [ "BSL-1.0" ], "directory_id": "34d5d1b0b0806fc0208f12e530b216ba18ab8ee0", "extension":...
stackv2
#include <lfp.h> #include <unistd.h> #include <assert.h> #include <stdio.h> #include <pthread.h> #define CHILDREN 128 #define NTEMPFILES (TMP_MAX/CHILDREN) char **allocStrings(int, int); void *stuff(void *arg); char **allocStrings(int nstrings, int length) { char **out=malloc(sizeof(char *) *nstrings); char ...
2.921875
3
2024-11-19T02:48:14.449059+00:00
2019-09-14T17:54:03
fdbee593cf2492473ef9fb80ab17f785049ce2e1
{ "blob_id": "fdbee593cf2492473ef9fb80ab17f785049ce2e1", "branch_name": "refs/heads/master", "committer_date": "2019-09-14T17:54:03", "content_id": "92cf4163f899500c3e64e963f350559cc6fb03b9", "detected_licenses": [ "MIT" ], "directory_id": "aeab3458b25d06e7f9bd7316c1bc7ff99635b3ec", "extension": "c"...
stackv2
#include <cs50.h> #include <stdio.h> #include <string.h> #include <ctype.h> int main(int argc, string argv[]) { int key; if (argc == 2) { string str_key = argv[1]; for (int i = 0; i < strlen(str_key); i++) { if (!isdigit(str_key[i])) { printf...
2.953125
3
2024-11-19T02:48:14.576156+00:00
2021-09-24T05:38:16
f2f14172a5b617893496f5df6ed9c082556f4198
{ "blob_id": "f2f14172a5b617893496f5df6ed9c082556f4198", "branch_name": "refs/heads/master", "committer_date": "2021-09-24T05:38:16", "content_id": "6c2772ee4a51f77a6a6d9870c1305405399b88fa", "detected_licenses": [ "MIT" ], "directory_id": "6f1bb8e13b0b81854b8ee6add25a775c187c7618", "extension": "h"...
stackv2
/** * \file exponent.h * \brief Signatures des fonctions concernant l'exponentiation rapide. * \author Clément Caumes - Yassin Doudouh * \date 26 Avril 2018 * * Programme de test de primalité de Solovay-Strassen. * */ #ifndef EXPONENT__H #define EXPONENT__H /** * \fn void calcule_nombre_bits (mpz_t bits,mpz...
2.359375
2
2024-11-19T02:48:14.737694+00:00
2020-12-15T15:12:34
8e2e6ac622376f795e80b6144a12128de9da66de
{ "blob_id": "8e2e6ac622376f795e80b6144a12128de9da66de", "branch_name": "refs/heads/main", "committer_date": "2020-12-15T15:12:34", "content_id": "0c85b6cea05568e3d5cd80f44ed7efc4de57d8cb", "detected_licenses": [ "MIT" ], "directory_id": "3ab5060f8df71ab5068854d47328de98c89c5d97", "extension": "c", ...
stackv2
/* * Final_Project.c * * Created: 26/11/2020 22:23:47 * Author: Guillermo CortÚs Orellana & Omar Bin Rahman */ /*********************************************************************** * * System security door AVR-GCC. * ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2 * * Copyright (c) Guillerm...
2.84375
3
2024-11-19T02:48:15.513934+00:00
2018-05-14T13:07:44
ed2c68875332bc862a4a1ccba13ee8bb6202cc23
{ "blob_id": "ed2c68875332bc862a4a1ccba13ee8bb6202cc23", "branch_name": "refs/heads/master", "committer_date": "2018-05-14T13:07:44", "content_id": "a5bcc6fa4fa8724507d14b999aa18cbea152e088", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "b2019f8b756940741ed3972cb917dd104181187a", ...
stackv2
#include "uthread.h" thread_t all_thread[MAX_THREAD]; thread_p current_thread; thread_p next_thread; int getLength(char *a) { int len=0; while(a[len]!='\0') len++; return len; } void init_lock(spinlock *lk, char *lock_name){ char * temp = (char *) malloc(getLength(lock_name)+1); int k = 0; ...
2.6875
3
2024-11-19T02:48:15.614356+00:00
2020-04-15T20:58:21
f797f1e0ef3b11ac6f85dc6f21655daa6624dc50
{ "blob_id": "f797f1e0ef3b11ac6f85dc6f21655daa6624dc50", "branch_name": "refs/heads/master", "committer_date": "2020-04-15T20:58:21", "content_id": "72423da3779be266a87bc2bc4f3f0fbce2a95544", "detected_licenses": [ "MIT" ], "directory_id": "ebc700cb11b49d5319544d3f7bbc8882250a8e5a", "extension": "c"...
stackv2
/********************************************************************\ |* |* Copyright: Copyright (c) 2008, Altium |* |* Description: Demonstrate the use of the PWMX driver with an |* RC servo device. |* \********************************************************************/ #include <timing....
2.546875
3
2024-11-19T02:48:15.751547+00:00
2021-10-13T21:28:46
82d32451532e9c259a8455a535dfb695b681a0e5
{ "blob_id": "82d32451532e9c259a8455a535dfb695b681a0e5", "branch_name": "refs/heads/main", "committer_date": "2021-10-13T21:28:46", "content_id": "7300216b3b730da65db5d6385900547662ec0372", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "9a279e120a5717df1cc4bbfc9ea8a56accd2c380", "extensio...
stackv2
/* * Copyright (C) 2019-2021 Data Ductus AB * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disc...
2.09375
2
2024-11-19T02:48:16.158708+00:00
2010-08-20T23:22:39
0ce2e74e44acb59eb7a34934f981e8a3e43f61c4
{ "blob_id": "0ce2e74e44acb59eb7a34934f981e8a3e43f61c4", "branch_name": "refs/heads/master", "committer_date": "2010-08-20T23:22:39", "content_id": "9892186d05f6ba10f42e3422e448d09b0109c688", "detected_licenses": [ "ISC" ], "directory_id": "fb059d2182dfbda5d5f880eb5478dc9010bfa5dd", "extension": "c"...
stackv2
#include <string.h> #define STRSAFE_NO_DEPRECATE #include <strsafe.h> #include "tap/basic.h" void testDestEnd(){ char dest[11]; char * destEnd; diag("Test calculation of destEnd."); strcpy(dest, "foo"); ok(SUCCEEDED(StringCbCatNExA(dest, 11, "Data", 5, &destEnd, NULL, 0)), "Test calcu...
2.5
2
2024-11-19T02:48:16.463283+00:00
2020-11-04T19:23:35
b0da99896c850da766fcbee20aa5ce70d7fbfa0e
{ "blob_id": "b0da99896c850da766fcbee20aa5ce70d7fbfa0e", "branch_name": "refs/heads/main", "committer_date": "2020-11-04T19:23:35", "content_id": "2a00ac6a355f55dc7e2af2e9477ec857de87c7ae", "detected_licenses": [ "Apache-2.0" ], "directory_id": "12478643b7818072dcca4a817972ba5a2949fdcc", "extension"...
stackv2
#include <stdio.h> int ft_ten_queens_puzzle(void); int main() { int x; printf("\n\nQueens Puzzle\n\n"); x = ft_ten_queens_puzzle(); printf(" function returns: %d", x); return (0); }
2.65625
3
2024-11-19T02:48:16.783901+00:00
2020-08-01T02:33:55
4acb24ecf994d7af92ab68442e49c6a594055c16
{ "blob_id": "4acb24ecf994d7af92ab68442e49c6a594055c16", "branch_name": "refs/heads/master", "committer_date": "2020-08-01T02:33:55", "content_id": "86a09f039a54f555d96a6ee2e54e654772ed5710", "detected_licenses": [ "MIT" ], "directory_id": "8e0c03b7d369c2bdd424a1fc3f26e9563e69f5be", "extension": "c"...
stackv2
#include <stdarg.h> #include <stdlib.h> #include <stddef.h> #include <ctype.h> #include <wchar.h> #include <string.h> #include "../fioFormatHeader.h" #include "stdio.h" #define BASE 10 #define CHAR_OFFSET '0' void handle_string_output ( FIO_SHARED_VALUES *values, va_list vaList, /* pointer to var...
2.328125
2
2024-11-18T17:59:45.293250+00:00
2021-05-30T07:19:22
55cc2b8d036a6d7bc147b3162befa812d25a2fb1
{ "blob_id": "55cc2b8d036a6d7bc147b3162befa812d25a2fb1", "branch_name": "refs/heads/devel", "committer_date": "2021-05-30T07:19:22", "content_id": "5aecf16435cfb1f6a85dd29d9e9733961549b26d", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d366bfe30d8b5e26650807ec3cc5496eff0b16f4", "extensi...
stackv2
#include <math.h> double k_uu(t1,t2,theta1,theta2,sig1,sig2) { double kern=0; double dist=0; dist = sqrt(t2*t2-t1*t1) kern = sig1*(1+theta1*dist)*exp(-theta1*dist) return kern; } double k_yy(t1, t2, theta1,theta2,sig1,sig2) { double kern=0; double dist=0; dist = sqrt(t2*t2-t1*t1) ...
2.34375
2
2024-11-18T17:59:45.382734+00:00
2020-04-23T16:24:52
cf01b015e4ec152da60d85b6d08ed8806dce5218
{ "blob_id": "cf01b015e4ec152da60d85b6d08ed8806dce5218", "branch_name": "refs/heads/master", "committer_date": "2020-04-23T16:24:52", "content_id": "b17127d6c66cdc0f92895a073771d3c3f9f162d8", "detected_licenses": [ "MIT" ], "directory_id": "d9fcefdeda25b408df471ee0aab406b43b65e6db", "extension": "c"...
stackv2
#include <avr/interrupt.h> #include <avr/wdt.h> #include <stdint.h> #include <util/delay.h> #include "controller.h" #include "libs/Neopixel.h" #include "usb.h" #include "usbdrv/usbdrv.h" #define DEBUG_MATCH 0 // Enable PIN_TIMER toggle on timer match #define GCN_RETRY_LIMIT 5 // Number of times to retry the GCN s...
2.46875
2
2024-11-18T17:59:45.990251+00:00
2018-02-17T06:33:09
a4eeaa3492f18086a8fc907fd3b2b85231870e16
{ "blob_id": "a4eeaa3492f18086a8fc907fd3b2b85231870e16", "branch_name": "refs/heads/master", "committer_date": "2018-02-17T06:33:09", "content_id": "4cc51d9c3b6c44fd7cb3f0cf1d82336f20cf3024", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a277bd2f527a154a0ec78093e8608c386d772e84", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "ocr.h" #include "utils/tracer/tracer.h" #include "utils/tracer/trace-events.h" #include "ocr-perfmon.h" #define IDX_OFFSET OCR_TRACE_TYPE_EDT #define MAX_FCT_PTR_LENGTH 16 #define SYS_CALL_COMMAND_LENGTH 256 #define BIN_PATH_LENGTH 128 void transl...
2.296875
2
2024-11-18T17:59:46.151600+00:00
2016-07-21T12:32:52
a5072aa85e508e18da95d3078bba1de73e41efe1
{ "blob_id": "a5072aa85e508e18da95d3078bba1de73e41efe1", "branch_name": "refs/heads/master", "committer_date": "2016-07-21T12:32:52", "content_id": "0516d45a056b20e9bb6c0e8b30c12ee065e56372", "detected_licenses": [ "MIT" ], "directory_id": "e4b8bd1690a5b604ac22b88a98d577253f61f086", "extension": "c"...
stackv2
#include "keyboard.h" uint16_t keyboard_adcLevels[] = {540, 1080, 1630, 2210, 2960, 4020}; uint16_t keyboard_ADC_values[40] = {0}; uint32_t keyboard_pressTime = 0; int8_t keyboard_lastKey = -1, keyboard_lastLeftLvl = -1, keyboard_lastRightLvl = -1, keyboard_wasClick = 0; void (*keyboard_KeyPressHandler)(int8_t, ...
2.765625
3
2024-11-18T18:05:40.394490+00:00
2018-02-17T00:05:31
1ee1fa8a141c6163c35235460839eef99542c5ab
{ "blob_id": "1ee1fa8a141c6163c35235460839eef99542c5ab", "branch_name": "refs/heads/windows", "committer_date": "2018-02-17T00:05:31", "content_id": "640ca182e78bcac8ef3514741a73f52a612f509d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a7803d38c49c393009bd85ce54659bb8678840b8", "extensi...
stackv2
/* * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
2.03125
2
2024-11-18T19:30:25.939548+00:00
2018-09-23T21:03:19
2a161b11fd905156e1b703e1c77a0d6f4ab93ac1
{ "blob_id": "2a161b11fd905156e1b703e1c77a0d6f4ab93ac1", "branch_name": "refs/heads/master", "committer_date": "2018-09-23T21:16:56", "content_id": "b7be429819aa366471ce821a0f4ffad023afcf60", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "b420559dcd0f8e3b73e59a26a357ea44fdeb30d8", "extens...
stackv2
/* * Copyright (c) 2017 - 2018, Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list ...
2.25
2
2024-11-18T19:30:26.171678+00:00
2021-12-06T11:37:59
dd666551e00d2b9bb0d4a2af0d06e978a18a4d78
{ "blob_id": "dd666551e00d2b9bb0d4a2af0d06e978a18a4d78", "branch_name": "refs/heads/master", "committer_date": "2021-12-06T11:37:59", "content_id": "4cf150c48cf83c11938276228ee7d92da183c6f4", "detected_licenses": [ "MIT" ], "directory_id": "55368cb4c9d5fec97deaec8db38e9956c9e98435", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* list_getitem.c :+: :+: :+: ...
2.875
3
2024-11-18T19:30:26.377273+00:00
2022-12-26T18:38:23
010e6552118648fd27dce3d0be7bc9073c414963
{ "blob_id": "010e6552118648fd27dce3d0be7bc9073c414963", "branch_name": "refs/heads/master", "committer_date": "2022-12-26T18:38:23", "content_id": "9833aa71510c3304f199fa02ff5f9d87a4674f3f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "de772540922a23124c7a488e639b52a3798b2dc9", "extens...
stackv2
/* Copyright 2016, Alistair Boyle, 3-clause BSD License */ #include "config.h" #include <stdio.h> #include <stdlib.h> /* malloc, free */ #include <string.h> /* memcpy, memset */ #include <math.h> /* sqrt */ #include <assert.h> /* assert */ //#include <cblas.h> //#include <lapacke.h> #include "argv.h" #include "file.h"...
2.46875
2
2024-11-18T19:30:26.477619+00:00
2021-03-13T13:22:00
102a234c66f491578a1827a6ee13e7ee5e307e2a
{ "blob_id": "102a234c66f491578a1827a6ee13e7ee5e307e2a", "branch_name": "refs/heads/main", "committer_date": "2021-03-13T13:22:00", "content_id": "95b3bc40d2a32042d03cad2fc345dab126fd99a3", "detected_licenses": [ "Unlicense" ], "directory_id": "5dc4ea36514927efd678638e2095a4e8e32c0386", "extension":...
stackv2
//----- p_crypt.h ------------------------------------------------------------- //---------------------------------------------------------------------------- #ifndef p_crypt_H #define p_crypt_H //---------------------------------------------------------------------------- #include "precHeader.h" #include "pDef.h" #in...
2.03125
2
2024-11-18T18:09:44.448419+00:00
2019-10-28T11:46:55
3354eb80222f2824f82135c853ff5eca36202b63
{ "blob_id": "3354eb80222f2824f82135c853ff5eca36202b63", "branch_name": "refs/heads/master", "committer_date": "2019-10-28T11:46:55", "content_id": "1d81cf86399466b69638ebfab523fce2684697d5", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "73185944d6e7ec558dd7da69d3f5edefa64c1c96", "extens...
stackv2
#include <stdio.h> int main(){ int i = 1; switch(i) { printf("This statement will never execute\n"); case 1: printf("Mory\n"); break; case 2: printf("Ann\n"); break; default: printf("Surpasser\n"); break; } return 01; } /* Test note: return...
2.9375
3
2024-11-18T18:09:46.817952+00:00
2014-12-12T23:27:52
69ad97fb398bd7fa12072585c9653c24cd369d4d
{ "blob_id": "69ad97fb398bd7fa12072585c9653c24cd369d4d", "branch_name": "refs/heads/master", "committer_date": "2014-12-12T23:27:52", "content_id": "cf648dbf91d82b7533f646f6449702ad35a94471", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c12af9cf150016e4ac764851f4a13dc97b81965e", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> // Macro ~ é substituição de palavras por isso não chega a ser uma função #define HASH(t_string, t_table) (t_string % t_table) // Ativa o DEBUG VISUAL // Retire o comentario da linha abaixo para ativar o debug visual // #define DEBUG 1 // H...
3.078125
3
2024-11-18T18:09:47.174850+00:00
2021-01-14T13:49:27
995f240803074127e373a947fc1c8b97996ea553
{ "blob_id": "995f240803074127e373a947fc1c8b97996ea553", "branch_name": "refs/heads/main", "committer_date": "2021-01-14T13:49:27", "content_id": "1ba7f086eb9a94d7f3e0cc84c77c6acb7a1da876", "detected_licenses": [ "MIT" ], "directory_id": "b8f74fd6ed441c3df48629d4b334c285fe4d56fc", "extension": "h", ...
stackv2
/** ****************************************************************************** *@file Main.h *@authors Eng.Akram Sayed <akramsayed.m@gmail.com> *@date 17/2/2014 *@brief This file contains All Options for My Project .\n\n *@Detail * \b PROJECT \n&nbsp;&nbsp; Duplex_Elevator_Control_...
2.109375
2
2024-11-18T18:09:47.305758+00:00
2021-07-12T14:03:16
14449cb904b18eb82fa2077c48c770349c9cddf3
{ "blob_id": "14449cb904b18eb82fa2077c48c770349c9cddf3", "branch_name": "refs/heads/master", "committer_date": "2021-07-12T14:03:16", "content_id": "4555bb0bbad0462b0013e14482cad790ee696612", "detected_licenses": [ "MIT" ], "directory_id": "777bb211f34ee8b4b81ddb90d738afd4c2d59f3f", "extension": "c"...
stackv2
#include <assert.h> #include <ctype.h> #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <string.h> typedef struct { unsigned port; char scheme[32]; char host[256]; char path[512]; } Uri; static void uriNormalize(Uri* const uri) { assert(uri); #define TO_LOWER(Target) \ for(char* c...
2.8125
3
2024-11-18T18:09:47.619681+00:00
2014-10-20T10:57:51
76b34f24cd154b72fe5ccff306f3b480b4776f61
{ "blob_id": "76b34f24cd154b72fe5ccff306f3b480b4776f61", "branch_name": "refs/heads/master", "committer_date": "2014-10-20T10:57:51", "content_id": "ee60411e68fdaf8b2982d5460614f83c067d118f", "detected_licenses": [ "MIT" ], "directory_id": "74778b718b42576fb79dd33b3cf5f46a6f790b1d", "extension": "c"...
stackv2
#include "profit.h" #include "helper.h" #include "technology.h" struct st_profit_level profit_levels[MAX_TECH_LEVELS]; void profit_init(void) { profit_levels[0].min_cash = 500.0; profit_levels[0].max_cash = 1000.0; profit_levels[0].p_profit = 0.7; profit_levels[1].min_cash = 1000.0; profit_levels[1].max_ca...
2.453125
2
2024-11-18T18:09:47.804794+00:00
2018-02-18T01:49:22
24d3bda02705659b2e60bf8d5bf2fb8cf6c5b779
{ "blob_id": "24d3bda02705659b2e60bf8d5bf2fb8cf6c5b779", "branch_name": "refs/heads/master", "committer_date": "2018-02-18T01:49:22", "content_id": "b0cc812468754125592383e43f9ebeddef0968ab", "detected_licenses": [ "MIT" ], "directory_id": "62343df97270504b13bdfc9626937871c7de7f88", "extension": "c"...
stackv2
/* * A program that sleeps for sleep_factor seconds then prints it's pid repeat_factor times */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main (int argc, char *argv[]) { int i; int repeat_factor; int sleep_time; if (argc != 3) { /* check for valid number of command-line...
3.375
3
2024-11-18T18:09:47.867833+00:00
2015-04-14T02:59:41
998923e6ae4726659f1905e695b1ad43862c92da
{ "blob_id": "998923e6ae4726659f1905e695b1ad43862c92da", "branch_name": "refs/heads/master", "committer_date": "2015-04-14T02:59:41", "content_id": "59b4986dcca963e67a1986791b3d5d944b0837c7", "detected_licenses": [ "MIT" ], "directory_id": "3f9ed2189ad1697bf40706b43b059959c3900a1b", "extension": "h"...
stackv2
#ifndef COEUS_CSL_INTERPRETER_CSL_OPERATOR_H #define COEUS_CSL_INTERPRETER_CSL_OPERATOR_H enum CSLOperator { INVALID_OPERATOR = -1, OPERATOR_PLUS, OPERATOR_PLUS_EQUALS, OPERATOR_PLUS_PLUS, OPERATOR_MINUS, OPERATOR_MINUS_EQUALS, OPERATOR_MINUS_MINUS, OPERATOR_MULT, OPERATOR_MULT_EQUALS, OPERATOR_DIV, OPE...
2.078125
2
2024-11-18T18:09:48.004302+00:00
2017-09-03T07:51:39
91bb257abc39d6983b4baaa960263166407597ee
{ "blob_id": "91bb257abc39d6983b4baaa960263166407597ee", "branch_name": "refs/heads/master", "committer_date": "2017-09-03T07:51:39", "content_id": "2e79c2cfad574d92a2034a6c7fb8a16f15a4177b", "detected_licenses": [ "Unlicense" ], "directory_id": "888b1cfb6a90f8a9bdfb872299b719f2b965aed8", "extension...
stackv2
#pragma warning(push, 0) #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <inttypes.h> #ifdef _MSC_VER #include <intrin.h> #else #include <x86intrin.h> #endif #pragma warning(pop) /* Discard SAL annotations if you're not using MSVC :( */ #ifndef _MSC_VER #define _In_ #define _In...
2.734375
3
2024-11-18T18:09:48.262879+00:00
2016-05-17T20:14:06
397fabc56a6a1ba666da5c527be2d2e79ceeb2d5
{ "blob_id": "397fabc56a6a1ba666da5c527be2d2e79ceeb2d5", "branch_name": "refs/heads/master", "committer_date": "2016-05-17T20:14:06", "content_id": "354bf726b4a62d3c30aef76395e129105853da26", "detected_licenses": [ "Apache-2.0" ], "directory_id": "52e1e236bfffc73fb68f42c6d512c4c456b8da77", "extensio...
stackv2
/* Contains 3 primary functions ### PRIMER ALIGNMENT bounded_edit_distance - edit distance bounded to the 5' end with restrictions to the 3' end edit_distance - standard edit distance ### BARCODE ALIGNMENT hammingdist_distance - hamming distance */ #include "Python.h" #if defined(_MSC_VER) typedef unsigned __int...
2.546875
3
2024-11-18T18:09:48.527808+00:00
2016-08-24T17:08:54
536ee59981c387a1ba295e6313a9f8c4b504be1c
{ "blob_id": "536ee59981c387a1ba295e6313a9f8c4b504be1c", "branch_name": "refs/heads/master", "committer_date": "2016-08-24T17:08:54", "content_id": "2fa34ae99c4bbd5554c9b88ecdd9d8edeef7eaba", "detected_licenses": [ "MIT" ], "directory_id": "c94209342f6b069108068d19ffaee55e3a0496e4", "extension": "c"...
stackv2
#include "utils_list.h" #include "utils.h" void list_add(list_t **list, void *object) { while (*list) { list = &(*list)->next; } *list = alloc(list_t); (*list)->content = object; (*list)->next = NULL; } void list_insert(list_t **list, void *object, uint pos) { uint i = 0; while (*list && i < pos) { list...
2.90625
3
2024-11-18T18:09:48.797257+00:00
2023-08-03T18:19:18
36f5b94b3c2f6fedb481d0ce5891c975edc52d15
{ "blob_id": "36f5b94b3c2f6fedb481d0ce5891c975edc52d15", "branch_name": "refs/heads/master", "committer_date": "2023-08-03T18:21:11", "content_id": "41889788735868c95b539c337cf579df766ef808", "detected_licenses": [ "MIT" ], "directory_id": "67a6ea051cdf9c05f2fb57e484b8ee24c258fe80", "extension": "c"...
stackv2
#import fs int main(int argc, char *argv[]) { if (argc > 2) { fprintf(stderr, "Usage: dir [path]\n"); return 1; } const char *path = NULL; if (argc > 1) { path = argv[1]; } else { path = "."; } fs.dir_t *d = fs.dir_open(path); if (!d) { fprintf(stderr, "Couldn't read %s\n", path); return 1; } whi...
2.4375
2
2024-11-18T18:09:49.108396+00:00
2020-04-23T00:45:32
7c14e09f3d56c4ec6fc42161227693136147dd26
{ "blob_id": "7c14e09f3d56c4ec6fc42161227693136147dd26", "branch_name": "refs/heads/combined", "committer_date": "2020-04-23T00:45:32", "content_id": "5093f4074519cd042c7cba07090cf53a0e4e28ae", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "1d856ec1fa3ff5dd5466b3ff8f34e444535e7fb7", "exte...
stackv2
/* * optix_double.h - declaration for operations on double vectors on GPUs. */ #ifndef OPTIX_DOUBLE_HEADER #define OPTIX_DOUBLE_HEADER #include "accelerad_copyright.h" __forceinline__ RT_HOSTDEVICE double3 make_double3(const double d) { double3 t; t.x = d; t.y = d; t.z = d; return t; } __forceinline__ RT_HOSTDE...
2.28125
2
2024-11-18T18:09:51.277558+00:00
2019-09-16T15:54:50
12b18abb1b7f0ca079cad5be7b4b951f1f2a8e82
{ "blob_id": "12b18abb1b7f0ca079cad5be7b4b951f1f2a8e82", "branch_name": "refs/heads/master", "committer_date": "2019-09-16T15:54:50", "content_id": "a57e575eb6cabd2071e16051915e731d9575e332", "detected_licenses": [ "MIT" ], "directory_id": "9255b94dfaf8e6706d70276c30140cd296e40bc5", "extension": "c"...
stackv2
#include "types.h" #include "user.h" #include "fs.h" bool fullDetailsFlagPresent(char** argv, int argc); bool recursiveFlagPresent(char** argv, int argc); int getSpecifiedDirectoryIndex(char** argv, int argc); void printFileNameAndExtension(struct _DirectoryEntry* directoryEntry); void processDirectoryEntry(int direct...
2.6875
3
2024-11-18T18:09:51.445808+00:00
2021-12-21T07:11:26
29fca91bc8c99234b1a4c03ea78e392642c5a1b5
{ "blob_id": "29fca91bc8c99234b1a4c03ea78e392642c5a1b5", "branch_name": "refs/heads/master", "committer_date": "2021-12-21T07:11:26", "content_id": "6e3bdbc9ae2c669eb61a94dfb05e8c9ea14fef8a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f5e5a60fd1158d390d09ffe6ab36c5f7eda4dd62", "extensio...
stackv2
/* Copyright 2017 D-Wave Systems 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://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
2.40625
2
2024-11-18T18:09:51.672563+00:00
2023-09-03T11:51:00
4fae0b29b299a9a2a77c0a02911c1e8771e48d12
{ "blob_id": "4fae0b29b299a9a2a77c0a02911c1e8771e48d12", "branch_name": "refs/heads/master", "committer_date": "2023-09-03T12:12:27", "content_id": "a4284637947627a3c96db8bf7061a4ef8be47923", "detected_licenses": [ "Apache-2.0" ], "directory_id": "eb9f655206c43c12b497c667ba56a0d358b6bc3a", "extensio...
stackv2
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. #include "fsnotifier.h" #include <dirent.h> #include <errno.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/inotify.h> #include <sys/stat.h> #include...
2.28125
2
2024-11-18T18:09:51.735497+00:00
2017-12-07T03:27:10
7ca2669fc720a0cd42dd074e7395f8613d03ba57
{ "blob_id": "7ca2669fc720a0cd42dd074e7395f8613d03ba57", "branch_name": "refs/heads/master", "committer_date": "2017-12-07T03:27:10", "content_id": "ea95a964c5f36bc87a5100665bf2e2056a738e0e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "424bfa9f6420b46d855fb62d0aeaacb2c3d2c974", "extensio...
stackv2
source: http://www.securityfocus.com/bid/7058/info A memory corruption vulnerability has been discovered in Qpopper version 4.0.4 and earlier. The vulnerability occurs when calling the 'mdef' command and a malicious macro name is supplied. By filling a target buffer with a malicious macro name it may be possible to ...
2.484375
2
2024-11-18T18:09:51.896477+00:00
2020-10-28T14:18:19
326939212609161b94d17ad62fbfb977fc689141
{ "blob_id": "326939212609161b94d17ad62fbfb977fc689141", "branch_name": "refs/heads/main", "committer_date": "2020-10-28T14:18:19", "content_id": "d593096bffe6f62939f4212d8cf710f72648256e", "detected_licenses": [ "MIT" ], "directory_id": "f3d1e11ec6009558c00e4ea1177d2b3df3040b15", "extension": "h", ...
stackv2
#ifndef __SCI_DRIVER_H__ #define __SCI_DRIVER_H__ enum SCI_STOP_BIT { ONE_STOP_BIT, TWO_STOP_BIT }; enum SCI_PARITY { ODD_PARITY, EVEN_PARITY }; enum SCI_PARITY_EN { PARITY_DISABLE, PARITY_ENABEL }; enum SCI_LOOPBACK_EN { LOOPBACK_DISABLE, LOOPBACK_ENABLE }; enum SCI_MODE_SEL { ...
2.015625
2
2024-11-18T18:09:52.008374+00:00
2021-06-17T07:10:29
2c11797b35dd385a173e486332010689f1fa2228
{ "blob_id": "2c11797b35dd385a173e486332010689f1fa2228", "branch_name": "refs/heads/master", "committer_date": "2021-06-17T07:10:29", "content_id": "a353912c388e84ae4bb6a5a3054d314e1b96c4d7", "detected_licenses": [ "MIT" ], "directory_id": "0035069df069767216eccfecbd16ebee445eb123", "extension": "c"...
stackv2
#include "partial_sort.h" #include "make_heap.h" #include "pop_heap.h" #include "push_heap.h" #include "sort_heap.h" #include "swap.h" #include "PartitionLemmas.acsl" #include "MultisetSwap.acsl" void partial_sort(value_type* a, size_type m, size_type n) { if (m > 0u) { make_heap(a, m); //@ assert reorde...
2.4375
2
2024-11-18T18:09:52.360404+00:00
2017-05-12T14:04:22
cba7b10ddf22f92e217738c8f585ca416b9b85c5
{ "blob_id": "cba7b10ddf22f92e217738c8f585ca416b9b85c5", "branch_name": "refs/heads/master", "committer_date": "2017-05-12T14:04:22", "content_id": "a944ce14caa7253fcce09a3eae540a827f37092c", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "cf92adfba3719aa12fa5d6e7bbb8050bc62b6b7b", "extens...
stackv2
/** * Copyright (c) 2015 Parrot S.A. * 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 * notice, this list of conditio...
2.078125
2
2024-11-18T18:09:52.562422+00:00
2018-11-08T17:41:29
1475146b0253bb711e562ec7533e2adab20667a8
{ "blob_id": "1475146b0253bb711e562ec7533e2adab20667a8", "branch_name": "refs/heads/master", "committer_date": "2018-11-08T17:41:29", "content_id": "252d3349a957724a7389c335951b50ef98770928", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4c3f012dd3a4c146334858c6eb5681460f135920", "extensio...
stackv2
/* * main.c * * this is the main blinky application (this code is dependent on the * extra shu libraries such as the pinmappings list and the clock configuration * library) * * author: Dr. Alex Shenfield * date: 01/09/2018 * purpose: 55-604481 embedded computer networks : lab 101 */ // include the ...
2.546875
3
2024-11-18T18:09:52.998736+00:00
2013-09-28T23:37:02
7b797f7ede15483dd1708309a0e8b274fa59071f
{ "blob_id": "7b797f7ede15483dd1708309a0e8b274fa59071f", "branch_name": "refs/heads/master", "committer_date": "2013-09-28T23:37:02", "content_id": "8029a427a9759946a0e18e8dd3613bf365d89f64", "detected_licenses": [ "MIT" ], "directory_id": "352626eae2670e70558207494c9e035f7f62fe03", "extension": "h"...
stackv2
/* Copyright (C) 2013 Baptiste COVOLATO <b.covolato@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
2.359375
2
2024-11-18T18:09:53.870985+00:00
2018-05-23T06:55:18
393bd95756210963a1fe4e961937d81551946658
{ "blob_id": "393bd95756210963a1fe4e961937d81551946658", "branch_name": "refs/heads/master", "committer_date": "2018-05-23T06:55:18", "content_id": "eb9d72e5b920ebaae6136e0587b7e87664f0a98a", "detected_licenses": [ "MIT" ], "directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd", "extension": "c"...
stackv2
// shenkong-xing.c 身空行 #include <ansi.h>; inherit SKILL; string type() { return "martial"; } string martialtype() { return "dodge"; } string *dodge_msg = ({ "$n使出一招"HIC"「心空」"NOR",身体向侧后飘去 \n", "$n使出一招"HIW"「誓言空」"NOR",双足一点,跃至数丈之外 \n", "$n使出一招"HIM"「莲空」"NOR",身形一变,滑至$N身后 \n", "$n大吼一声,使出一招"HI...
2.296875
2
2024-11-18T18:09:53.949831+00:00
2020-10-31T08:20:00
8ba05b6ed1acb49572721ae95bd2af4ddd280dd1
{ "blob_id": "8ba05b6ed1acb49572721ae95bd2af4ddd280dd1", "branch_name": "refs/heads/master", "committer_date": "2020-10-31T08:20:00", "content_id": "2b6cc3b57ecaa00ada522ab3c9c7020f5fe45cbe", "detected_licenses": [ "CC0-1.0" ], "directory_id": "fa6d98200d3ffbcc06bae58ff26726abf1e875d6", "extension":...
stackv2
// LANGUAGE: C // AUTHOR: Pratiksha Ramteke // GITHUB: https://github.com/Pratiksha0100 #include <stdio.h> int main() { printf("Hello, World!"); return 0; }
2.109375
2
2024-11-18T18:09:54.271084+00:00
2017-10-06T23:11:43
abab9de00577b39a44f62cffb0a8e64e71e6b1c5
{ "blob_id": "abab9de00577b39a44f62cffb0a8e64e71e6b1c5", "branch_name": "refs/heads/master", "committer_date": "2017-10-06T23:11:43", "content_id": "c1759a4d4f74d8674495cb43deaa07d20acbacb3", "detected_licenses": [ "MIT" ], "directory_id": "35c62db2adaae7a98ed310042592d1eea986c0d9", "extension": "c"...
stackv2
/* Technically a memory allocator. */ void *malloc(size_t size){static size_t *ptr=0;if(ptr==0)ptr=kernel_end;ptr+=size; return (ptr-size);}
2.3125
2
2024-11-18T18:09:54.628149+00:00
2021-03-04T05:22:19
25ec08cc512d4a6ec4de906ad288b14e1dd1114a
{ "blob_id": "25ec08cc512d4a6ec4de906ad288b14e1dd1114a", "branch_name": "refs/heads/master", "committer_date": "2021-03-04T05:22:19", "content_id": "741ffaeb1e7b82b4b462abada03ea66858a203d8", "detected_licenses": [ "MIT" ], "directory_id": "b5ac350f8d12792bf6353030089baf700729271c", "extension": "h"...
stackv2
/** * @file re_mem.h Interface to Memory management with reference counting * * Copyright (C) 2010 Creytiv.com */ #ifndef ___MEM_H___ #define ___MEM_H___ #include <stdint.h> /** * Defines the memory destructor handler, which is called when the reference * of a memory object goes down to zero * * @param data...
2.3125
2
2024-11-18T18:09:55.640153+00:00
2021-04-14T15:20:24
f3f2ac371ea117096bfdcb8abaec2f9caf4fa40b
{ "blob_id": "f3f2ac371ea117096bfdcb8abaec2f9caf4fa40b", "branch_name": "refs/heads/main", "committer_date": "2021-04-14T15:20:24", "content_id": "a599b58c1bfd646911728a42fe520a8041b67cc6", "detected_licenses": [ "MIT" ], "directory_id": "54f080932de982a671443cc3552dd1c1461f97da", "extension": "c", ...
stackv2
#include<stdio.h> #include<string.h> //Biblioteca para concatenar #include<stdlib.h> int menu(); //Função do Menu struct Lista *CriarLista(int quantidade); //Criação de lista de aluno int procurar(struct Lista* Lista); //Função para procurar pelo codigo digitado struct Aluno { //Estrutura de dados Heterogeneos c...
3.171875
3
2024-11-18T18:09:55.712976+00:00
2021-02-09T02:04:22
dc8cedf9230b1caa47ae676ed687c0d4a92c2b9e
{ "blob_id": "dc8cedf9230b1caa47ae676ed687c0d4a92c2b9e", "branch_name": "refs/heads/main", "committer_date": "2021-02-09T02:04:22", "content_id": "028acb0530a4c1c930ff66cd7ed635af5cde2233", "detected_licenses": [ "MIT" ], "directory_id": "97a0a520871ca05e02193f6219f5e5ce2f492f84", "extension": "c", ...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/wait.h> #include <sys/types.h> #include <signal.h> #include <fcntl.h> #include "../constants/constants.h" #include "../builtinFunctions/builtinFunctions.h" #include "../signalHandlers/signalHandlers.h" #include "../activeProces...
2.8125
3
2024-11-18T18:09:55.945258+00:00
2020-11-23T12:05:41
31a2c4debef935bcc44031dd90109cff435c74a5
{ "blob_id": "31a2c4debef935bcc44031dd90109cff435c74a5", "branch_name": "refs/heads/master", "committer_date": "2020-11-23T12:05:41", "content_id": "7ef17b27d2efbb88b7d5ec2d3aaaca09b6070060", "detected_licenses": [ "MIT" ], "directory_id": "6248829502fa0f5c04425738c38b9956da612ab9", "extension": "c"...
stackv2
/* * Copyright (c) 2018-2020 Zhixu Zhao * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pub...
2.625
3
2024-11-18T18:09:56.368052+00:00
2015-02-19T11:38:52
d82752c5d1a8ce6b599b0cb1c65aa28c82b6e719
{ "blob_id": "d82752c5d1a8ce6b599b0cb1c65aa28c82b6e719", "branch_name": "refs/heads/master", "committer_date": "2015-02-25T04:49:44", "content_id": "d273f3bb826d27b925ecd223d87b565622603ad1", "detected_licenses": [ "BSD-2-Clause", "MIT" ], "directory_id": "b89a6a122a7b82e4fd0872f1ec935bc45633c9eb"...
stackv2
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ #include "rrutil.h" static void bad_breakpoint(void) { int break_here = 1; (void)break_here; } static void good_breakpoint(void) { int break_here = 1; (void)break_here; } int main(int argc, char** argv) { int num_syscalls; in...
2.5
2
2024-11-18T18:09:56.579483+00:00
2022-10-16T11:44:07
e95f08cb275ad1e27308ebe0835cb5b2157065db
{ "blob_id": "e95f08cb275ad1e27308ebe0835cb5b2157065db", "branch_name": "refs/heads/master", "committer_date": "2022-10-16T11:44:07", "content_id": "c8ae188a32a57c8d34bf3ff738f60852f49c5810", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "44bb52cacb6206f3075b1f5a7105fb153c738c49", "extens...
stackv2
/************************************************************************* Write to the console withot using stdio.h *************************************************************************/ #include <unistd.h> #include <string.h> /* 1 = std input 0 = std o/p 2 = std error To understand more on how this progra...
3.140625
3
2024-11-18T18:09:56.784599+00:00
2020-12-14T10:50:05
dfeab308065c161dfe73cc2f3b3e7f54eeb71c38
{ "blob_id": "dfeab308065c161dfe73cc2f3b3e7f54eeb71c38", "branch_name": "refs/heads/master", "committer_date": "2020-12-14T10:50:05", "content_id": "e6e425867c162668170687b4de41705fc4020364", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ddf36093e96ec7bfce238390795ba83ea8a897fb", "extensio...
stackv2
/* Copyright 2017 Cedric Mesnil <cslashm@gmail.com>, Ledger SAS * * 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 ...
2.09375
2
2024-11-18T18:09:56.852656+00:00
2023-08-31T11:39:28
59c5a7307263433fcbaf8d6e58e4c4e61cc3009d
{ "blob_id": "59c5a7307263433fcbaf8d6e58e4c4e61cc3009d", "branch_name": "refs/heads/master", "committer_date": "2023-09-01T12:39:29", "content_id": "a451e3ee03b3a713c10a05300b9c603c1a293fc5", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "cff4428975e403e4ef02d75498b78cd1a610a01a", "extens...
stackv2
/* * SPDX-License-Identifier: BSD-2-Clause * * Copyright 2010-2023, Tarantool AUTHORS, please see AUTHORS file. */ #pragma once #include <assert.h> #include <stdbool.h> #include "diag.h" #include "trivia/util.h" /* * A tweak is an object that provides a convenient setter/getter API for * an arbitrary C variabl...
2.8125
3
2024-11-18T18:09:57.031388+00:00
2020-12-05T11:32:46
a30573636b80befd91b83c468bd46a97cbccc99b
{ "blob_id": "a30573636b80befd91b83c468bd46a97cbccc99b", "branch_name": "refs/heads/master", "committer_date": "2020-12-05T11:32:46", "content_id": "6df2adb99e79efddcbf2076abe9f55498a626226", "detected_licenses": [ "MIT" ], "directory_id": "468fa3b06d5034f4ff5191cc59cd329603bff01f", "extension": "h"...
stackv2
// Properties typedef any_t (*builtin_property_pointer)(any_t* lhs); typedef typeid_info (*builtin_has_property_pointer)(typeid_info lhs); struct builtin_property_t { string_view name; builtin_has_property_pointer has_property; builtin_property_pointer get_property; }; typeid_info array_has_size_property(...
2.453125
2
2024-11-18T18:10:01.319169+00:00
2023-04-03T12:28:13
dd20f75f3dde4c9b97dcd386b134fbe9da3134bc
{ "blob_id": "dd20f75f3dde4c9b97dcd386b134fbe9da3134bc", "branch_name": "refs/heads/master", "committer_date": "2023-04-03T12:28:13", "content_id": "73dfd7620bc353a31ae461a857273e50f1a236dc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "43376ef5b514feaadf33dffd8ab0d72068e676b5", "extensio...
stackv2
#include "kernel/process.h" #include "fs/fs.h" #include "kernel.h" #include "kernel/elf.h" #include "kernel/kheap.h" #include "kernel/memlayout.h" #include "kernel/mmu.h" #include "kernel/sched.h" #include "lib/list.h" #include <errno.h> extern page_dir_t *_kernel_pd; extern page_dir_t *_current_pd; extern void page_...
2.3125
2
2024-11-18T18:10:01.469328+00:00
2021-10-04T10:33:23
ebe6a2bf924a8c5e6e2570fface785fe5218ff3f
{ "blob_id": "ebe6a2bf924a8c5e6e2570fface785fe5218ff3f", "branch_name": "refs/heads/master", "committer_date": "2021-10-04T10:33:23", "content_id": "007bb07093d32dbc19334eebd31365f3c3110cdf", "detected_licenses": [ "MIT" ], "directory_id": "f736f10a1d851bc7192c3bc6ce7d676c801183e3", "extension": "c"...
stackv2
#include<stdio.h> #include<string.h> #include<sys/types.h> #include<sys/socket.h> #include<netinet/in.h> #include<netdb.h> #include <arpa/inet.h> #include <unistd.h> #include<stdlib.h> #include<time.h> #define SERV_TCP_PORT 8080 #define SA struct sockaddr int main(){ int sockfd,connfd; struct sockaddr_in serv_addr; soc...
2.765625
3
2024-11-18T18:10:01.547698+00:00
2021-04-28T10:22:19
7aecb6adcfdbd46ef04fedeb219439fd99397960
{ "blob_id": "7aecb6adcfdbd46ef04fedeb219439fd99397960", "branch_name": "refs/heads/master", "committer_date": "2021-04-28T10:22:19", "content_id": "eee59c31e76fbcf3ee32619d733c475d02bb80c6", "detected_licenses": [ "MIT" ], "directory_id": "c2fb6846d5b932928854cfd194d95c79c723f04c", "extension": "c"...
stackv2
#include<stdio.h> int main() { int pow,num,i=1; long int sum=1; printf("\nEnter a number: "); scanf("%d",&num); printf("\nEnter power: "); scanf("%d",&pow); while(i<=pow) { sum=sum*num; i++; } printf("\n%d to the power %d is: %ld",num,pow,sum); return 0; }
3.140625
3
2024-11-18T18:10:02.475158+00:00
2017-09-25T10:04:06
faafca0b404a464ff74ffac3fd260ac7391d5e6d
{ "blob_id": "faafca0b404a464ff74ffac3fd260ac7391d5e6d", "branch_name": "refs/heads/master", "committer_date": "2017-09-25T10:04:06", "content_id": "cd56128e638ffae681076d00e869d9122d5a6fa1", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "61d4129753b7ab6e365a7e9be4de3fc4ad729874", "extens...
stackv2
#include "kernel/types.h" #include "kernel/panic.h" #include "kernel/timer.h" #include "drivers/systick.h" #include "drivers/semihosting.h" #include "sched/sched.h" #include "kernel/irq.h" #include "sched/cpu.h" void NAKED systick_handler() { asm ( "push {lr}\n" "bl timer_tick\n" "pop...
2.4375
2
2024-11-18T18:10:02.551180+00:00
2023-02-28T15:06:32
36ce3940f3f22f86cdd00c82b1a118df63d0c953
{ "blob_id": "36ce3940f3f22f86cdd00c82b1a118df63d0c953", "branch_name": "refs/heads/master", "committer_date": "2023-02-28T15:06:32", "content_id": "e74567549ec8b7b1511fd5b155490bc9fdd32c4b", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "120c112ce63daaa939438e0b6f9390634af0f7ae", ...
stackv2
/* SPDX-License-Identifier: Apache-2.0 OR MIT * * SPDX-FileCopyrightText: Copyright 2022 Micron Technology, Inc. */ #include <rbtree.h> #include <hse/limits.h> #include <hse/util/base.h> #include <hse/util/keycmp.h> #include <hse/test/support/ref_tree.h> /* * Reference Tree API */ struct ref_tree { struct...
2.359375
2
2024-11-18T18:10:03.160329+00:00
2021-06-04T02:53:59
a613cb15e5a6559724f61208735262f67ef9c79b
{ "blob_id": "a613cb15e5a6559724f61208735262f67ef9c79b", "branch_name": "refs/heads/main", "committer_date": "2021-06-04T02:53:59", "content_id": "a7d00b8c6240e4c1f87cac14106ebbd2dd530e5c", "detected_licenses": [ "MIT" ], "directory_id": "1ed163c86ec83c8a5e0fbcf582181eeeab329c22", "extension": "c", ...
stackv2
#include <stdlib.h> #include "brainfuck.h" void push(Stack *s, size_t line, size_t column) { StackNode *node = (StackNode *)malloc(sizeof(StackNode)); node->val.line = line; node->val.column = column; node->next = s->top; s->top = node; ++s->size; } void pop(Stack *s) { if (s->top) { ...
2.46875
2
2024-11-18T18:10:03.335043+00:00
2023-03-17T16:03:44
86cce772c29499ea2768dbbbf7ac38a0145c6792
{ "blob_id": "86cce772c29499ea2768dbbbf7ac38a0145c6792", "branch_name": "refs/heads/master", "committer_date": "2023-03-17T16:03:44", "content_id": "12f22545ccbe1fcf8beee0403f5e54e8d46c38a1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "93dc2677497a99d0a2df6b1f190af2434383367c", "extensio...
stackv2
/* * This work is part of the Core Imaging Library developed by * Visual Analytics and Imaging System Group of the Science Technology * Facilities Council, STFC * * Copyright 2019 Daniil Kazantsev * Copyright 2019 Srikanth Nagella, Edoardo Pasca * * Licensed under the Apache License, Version 2.0 (the "License")...
2.25
2
2024-11-18T18:10:03.658970+00:00
2023-08-29T10:55:46
67df84dfd2d2937424f6c19f1c924d7a918ebaa3
{ "blob_id": "67df84dfd2d2937424f6c19f1c924d7a918ebaa3", "branch_name": "refs/heads/main", "committer_date": "2023-08-29T10:55:46", "content_id": "0fcee339b8ab1c114520b565fa45ca42ece38fad", "detected_licenses": [ "MIT" ], "directory_id": "fd016aacb50a65dbda2f0e2b35cec38a63baf68d", "extension": "c", ...
stackv2
// // Copyright (c) .NET Foundation and Contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // #include <esp32_idf.h> #ifndef ESP_ROM_HAS_CRC_BE extern const uint32_t c_CRCTable[256]; const uint32_t *myCRCTable = c_C...
2.546875
3
2024-11-18T18:10:03.739703+00:00
2015-09-21T08:59:49
3155e350147f225e10886e244fca24aa4fbe1814
{ "blob_id": "3155e350147f225e10886e244fca24aa4fbe1814", "branch_name": "refs/heads/master", "committer_date": "2015-09-21T09:01:11", "content_id": "e7954bcfc610a9eaa2a8f2e90b166a242ff48911", "detected_licenses": [ "MIT" ], "directory_id": "b5bfa5c141402c985d296679d4c7776326946e22", "extension": "c"...
stackv2
#include "decisionTree.h" decisionTree* newDecisionTree(int siteSize, char siteValence){ decisionTree* dt=malloc(sizeof(decisionTree)); dt->siteSize=siteSize; dt->siteValence=siteValence; dt->root=NULL; dt->nSites=0; dt->sites=NULL; dt->nProgs=0; dt->progs=NULL; dt->nLearntSites=0; return dt; } void addPro...
2.90625
3
2024-11-18T18:10:04.187820+00:00
2014-08-05T03:50:01
0b8a8fc1daca9942fb53ca5ab6ac61d792df874b
{ "blob_id": "0b8a8fc1daca9942fb53ca5ab6ac61d792df874b", "branch_name": "refs/heads/master", "committer_date": "2014-08-05T03:50:01", "content_id": "bd80ad987e3c76e93f7968afe6539191346c8ca5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "62f67f81dc2976b09d6121d08349671ddc3b90ae", "extensio...
stackv2
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ #ifndef _FCGI_CONTEXT_H_ #define _FCGI_CONTEXT_H_ #include <pthread.h> #include "fcgi_config.h" #include "request.h" #include "chunk.h" #include "fcgi_fd.h" struct fcgi_context { int thread_id; struct chunk_list cl; struct request_lis...
2.203125
2
2024-11-18T18:10:04.421482+00:00
2009-01-07T03:02:33
82ce49c9f8eed6cb52377e7b0facb51679faa160
{ "blob_id": "82ce49c9f8eed6cb52377e7b0facb51679faa160", "branch_name": "refs/heads/master", "committer_date": "2009-01-07T03:02:33", "content_id": "1cd3a105d6b7329fd2f3b2d2013294505da13de6", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d8ebf9e07863f6cb4cb75df3176d85b68343f6ad", "extens...
stackv2
#include <smk/inttypes.h> #include <smk/strings.h> #include <mm/mm.h> #include <debug/assert.h> #include "kmem_cache.h" #define ALIGNMENT 4 #define CACHE_UNIT 32 #define MAX_CACHES 12 static kmem_cache_t* caches[ MAX_CACHES ]; static void reclaim(void *token) { int i; for ( i = 0; i < MAX_CACHES; i++ ) ...
2.53125
3
2024-11-18T18:10:04.493020+00:00
2022-02-27T22:41:37
a82d4f9c5294ea96023ca0e6e48e753a6fd81edf
{ "blob_id": "a82d4f9c5294ea96023ca0e6e48e753a6fd81edf", "branch_name": "refs/heads/master", "committer_date": "2022-02-27T22:41:37", "content_id": "abca5efdd74e3f31de411cde0a7ce51cb17d6913", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "903c0b770949e5de50351726333f9dfda5b12619", "extens...
stackv2
/* * filsys.h -- structure of the super-block */ #ifndef _FILSYS_H_ #define _FILSYS_H_ #define SUPER_MAGIC 0x44FCB67D /* magic number for super block */ #define NICINOD 500 /* number of superblock inodes */ #define NICFREE 500 /* number of superblock free blocks */ #define S_PADSIZE (BSIZE - sizeof(unsigned...
2.4375
2
2024-11-18T18:10:04.847027+00:00
2023-09-02T22:30:44
9aab6a74bb98c8cd2318c12c19e0e4594013531e
{ "blob_id": "9aab6a74bb98c8cd2318c12c19e0e4594013531e", "branch_name": "refs/heads/master", "committer_date": "2023-09-02T22:30:44", "content_id": "8bc8bcebd8b0687a0938ffa21eef9c2b845bad56", "detected_licenses": [ "Zlib" ], "directory_id": "83372fce92c9088ee5c1e1c13bc67385a3b02a36", "extension": "c...
stackv2
// cl65 -t apple2enh --start-addr 0x4000 dhgrshow.c #include <tgi.h> #include <conio.h> #include <fcntl.h> #include <string.h> #include <unistd.h> #include <dirent.h> #include <peekpoke.h> void main (void) { unsigned old; DIR *dir; struct dirent *ent; old = videomode (VIDEOMODE_80x24); tgi_instal...
2.0625
2
2024-11-18T18:10:05.409622+00:00
2013-08-25T15:30:51
7e8dda606224419ca73c1fe56318ce7128ee9dd1
{ "blob_id": "7e8dda606224419ca73c1fe56318ce7128ee9dd1", "branch_name": "refs/heads/master", "committer_date": "2013-08-25T15:30:51", "content_id": "cccf9f2c1d802d60a89987a8c8ad6146bbbad924", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "d36febe44a2a5b62652bdea124186f68...
stackv2
/* * Copyright (c) 2012, Alexander I. Mykyta * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditi...
2.265625
2
2024-11-18T18:10:05.510614+00:00
2020-01-05T12:28:06
2ad71d328e2c77ae4165c4bdaa8384d3f62193dd
{ "blob_id": "2ad71d328e2c77ae4165c4bdaa8384d3f62193dd", "branch_name": "refs/heads/master", "committer_date": "2020-01-05T12:28:06", "content_id": "d62dbbe529275a2d11f53e5af178de74d1f1c529", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "bb58a472d49f4292faf93b1719471c0f934f3896", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <regex.h> static void do_grep(regex_t *pat, FILE *f); int main(int argc, char *argv[]) { regex_t pat; int err; int i; if (argc < 2) { fputs("no pattern\n", stderr); exit(1); } err = regc...
2.625
3
2024-11-18T18:10:05.577759+00:00
2021-08-10T09:59:51
7d028c04ee74ae6acbd7804a5427c5ec4c1a436a
{ "blob_id": "7d028c04ee74ae6acbd7804a5427c5ec4c1a436a", "branch_name": "refs/heads/main", "committer_date": "2021-08-10T09:59:51", "content_id": "2ff48d71b59b9f0a6b010340014e390ce0a0c3e1", "detected_licenses": [ "MIT" ], "directory_id": "c9fb62dce311444708a60de5f7d8e9f459bf3cf3", "extension": "c", ...
stackv2
// Copyright 2021 Ocean (iiot2k@gmail.com) // All rights reserved. #include "pico/stdlib.h" #include "pico/util/datetime.h" #include "hardware/watchdog.h" #include "hardware/rtc.h" #include "sys_time.h" #include <time.h> #include <locale.h> #include <string.h> bool sys_timeout_ms(uint64_t* tm, uint32_t timeout_ms) ...
2.59375
3
2024-11-18T18:10:05.672357+00:00
2021-07-08T02:43:15
2ce53f5fc0661e2e7f24c5b0fef5bc0e46cd7941
{ "blob_id": "2ce53f5fc0661e2e7f24c5b0fef5bc0e46cd7941", "branch_name": "refs/heads/master", "committer_date": "2021-07-08T02:43:15", "content_id": "06b0a21ade666f503a5ef8d2417d8bce358616d0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "580ba6292ee5f76800c560ca66ae51fd4417bf5b", "extensio...
stackv2
/** * Copyright (C) 2019 Alibaba.inc, All rights reserved. * * @file: tgcts_speech.h * @brief: * @author: * @date: 2019/12/15 * @version: 1.0 */ #ifndef _TG_SPEECH_H_ #define _TG_SPEECH_H_ #ifdef __cplusplus extern "C" { #endif enum AGEngineCMD { ENGINE_WAKEUP_SCENCE, //引擎夜间模式/白天模式的切换 ENGINE_...
2.109375
2
2024-11-18T18:10:05.739490+00:00
2021-01-11T13:40:44
822cac386f2e0f575acfdcc058943f0a99bdcbed
{ "blob_id": "822cac386f2e0f575acfdcc058943f0a99bdcbed", "branch_name": "refs/heads/master", "committer_date": "2021-01-11T13:40:44", "content_id": "5e8167aae2d411541488f61f0451d1e573728930", "detected_licenses": [], "directory_id": "d6cca5444e830b6b69457f59d60b4e370d08a726", "extension": "h", "filename...
stackv2
#ifndef _SYS_RWLOCK_H_ #define _SYS_RWLOCK_H_ #include <stdbool.h> #include <sys/cdefs.h> typedef enum { RW_READER, RW_WRITER } rwo_t; typedef enum { RW_UNLOCKED = 0, RW_RLOCKED = 1, RW_WLOCKED = 2, RW_LOCKED = 3 } rwa_t; typedef struct thread thread_t; typedef struct rwlock { /* private */ union { ...
2.1875
2
2024-11-18T18:10:06.294877+00:00
2020-11-22T16:38:49
353623f86ad64cb9fd8a50fccbfaacb55f2af806
{ "blob_id": "353623f86ad64cb9fd8a50fccbfaacb55f2af806", "branch_name": "refs/heads/master", "committer_date": "2020-11-22T16:38:49", "content_id": "fb742e3f0d56350b56f2e61230b718f01e4944c5", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "e45a3eb24469c21c3d2ec33766f69c71...
stackv2
int choosing1 = 0, choosing2 = 0; // N boolean flags int number1 = 0, number2 = 0; // N natural numbers int x; //variable to test mutual exclusion void thr1() { int tmp; choosing1 = 1; tmp = number2 + 1; number1 = tmp; choosing1 = 0; while (choosing2 >= 1) {}; while (number1 >= number2 && number2 > 0) { ...
3.0625
3
2024-11-18T18:10:06.388204+00:00
2019-06-13T15:24:33
429490ed92ab7197ec5db555097d48e77d09e51e
{ "blob_id": "429490ed92ab7197ec5db555097d48e77d09e51e", "branch_name": "refs/heads/master", "committer_date": "2019-06-13T15:24:33", "content_id": "2adb2bcda6e6b33d3f62ec3de6b8c6b8fe545ee5", "detected_licenses": [ "MIT" ], "directory_id": "80b70f2b7fc6898f49049810781c6afda00868c7", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main() { char c; scanf("%c", &c); char string[256]; scanf("%s", string); scanf("\n"); char* sentence = NULL; size_t size; getline(&sentence, &size, stdin); printf("%c\n", c); printf("%s\n", ...
2.578125
3
2024-11-18T18:10:06.588790+00:00
2019-12-10T10:01:49
163b8f971c42be187303d18f17a48fd41f37971f
{ "blob_id": "163b8f971c42be187303d18f17a48fd41f37971f", "branch_name": "refs/heads/master", "committer_date": "2019-12-10T10:01:49", "content_id": "d53ec5b5aec79b8dc79dd58f463b76d68baf4bff", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4e2c10263b5011fe8637885c106c782715561788", "extensio...
stackv2
/******************************************************************* * _________ _____ _____ ____ _____ ___ ____ * * |_ ___ | |_ _| |_ _| |_ \|_ _| |_ ||_ _| * * | |_ \_| | | | | | \ | | | |_/ / * * | _| | | _ | | | |\...
2.03125
2
2024-11-18T18:10:06.686018+00:00
2016-03-07T09:59:26
8975b265302eb0968d817f49488c50888b7b56f5
{ "blob_id": "8975b265302eb0968d817f49488c50888b7b56f5", "branch_name": "refs/heads/master", "committer_date": "2016-03-07T09:59:26", "content_id": "bbb3f3096b64673bd8596159fb4b4583a17190ea", "detected_licenses": [ "Apache-2.0" ], "directory_id": "018b131088f375e0c216e43fd658836558176d3e", "extensio...
stackv2
/********************************************************************************************/ /* Montage Technology (Shanghai) Co., Ltd. */ /* Montage Proprietary and Confidential */ /* Copyright (c) 2014 Montage Techn...
2.0625
2
2024-11-18T18:10:07.187104+00:00
2014-03-20T21:40:04
7d2d8d4d1ac72f3d09912e39ef49e5378058052d
{ "blob_id": "7d2d8d4d1ac72f3d09912e39ef49e5378058052d", "branch_name": "refs/heads/master", "committer_date": "2014-03-20T21:40:04", "content_id": "0c4b1304d5848e8a37ad5e3211ef05a0f8d8edc6", "detected_licenses": [ "MIT" ], "directory_id": "96f794a5e59680bab31e963bd05ddd7a8718b9f9", "extension": "c"...
stackv2
#include <pebble.h> #include "pebble-assist.h" static Window *window; static TextLayer *text_layer; static ActionBarLayer *action_layer; static GBitmap *icon_increment; static GBitmap *icon_decrement; static char counter_string[4]; static int counter = 0; static int text_width = 120; static int text_height = 80; s...
2.453125
2
2024-11-18T18:10:07.425835+00:00
2016-02-02T08:02:43
db59699481548f18efa457c9396c37f07b6c2300
{ "blob_id": "db59699481548f18efa457c9396c37f07b6c2300", "branch_name": "refs/heads/master", "committer_date": "2016-02-02T08:02:43", "content_id": "40c3099189c4f24dead0a7b66f9746d6775dd11a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c0e2fc2049cdb611b44af8c3a656d2cd64b3b62b", "extensio...
stackv2
/********************************************************************* * File Name : rtsp_method.c * Description : Implementation of RTSP method. * Author : Hu Lizhen * Create Date : 2012-12-22 ********************************************************************/ #include <stdio.h> #include <netinet/in...
2.09375
2
2024-11-18T18:10:08.750618+00:00
2017-12-20T18:18:21
bbdf26befed4b4d44cddc00fee42548d1cb80e43
{ "blob_id": "bbdf26befed4b4d44cddc00fee42548d1cb80e43", "branch_name": "refs/heads/master", "committer_date": "2017-12-20T18:18:21", "content_id": "fd5cea7f166ef0989cd279c7aff38463d73362ab", "detected_licenses": [ "MIT" ], "directory_id": "d4649e71a4edec27a85b22bbd9191925980eefd7", "extension": "c"...
stackv2
//contains sorting void sort(int *recommended_movies, double *predicted_ratings, int no_of_recommended_movies){ int i=0,j=0; //sorting recommended movies and their ratings from highest rating to lowest for(i=0;i<no_of_recommended_movies;i++){ for(j=i+1;j<no_of_recommended_movies;j++){ if(predicted_ratings[i]<...
2.703125
3
2024-11-18T18:10:09.062787+00:00
2012-05-01T11:34:42
eecc6ff1f830c12722dcfc22012ae04f9bf4dbb8
{ "blob_id": "eecc6ff1f830c12722dcfc22012ae04f9bf4dbb8", "branch_name": "refs/heads/master", "committer_date": "2012-05-01T11:34:42", "content_id": "1e6ad66c69ccf569e098b92c7ebf6545c72cb573", "detected_licenses": [ "MIT" ], "directory_id": "54a986f12e71e90e646b43051f6f16a1160d7900", "extension": "h"...
stackv2
// // LFThread.h // Lite Foundation // // Copyright (c) 2011 by Sidney Just // 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 ri...
2.078125
2
2024-11-18T18:10:09.393290+00:00
2021-06-08T14:30:02
d97bf07f18193dbfcffcb7346c7a780e820a2738
{ "blob_id": "d97bf07f18193dbfcffcb7346c7a780e820a2738", "branch_name": "refs/heads/master", "committer_date": "2021-06-08T14:30:02", "content_id": "6b83a4a82ff2c5bf7559eb82119debb6fb379bf2", "detected_licenses": [ "MIT" ], "directory_id": "6c5fadba5b946d12217a78a4a2f6eb82ed5510f9", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> int main() { int i = 1234567; write(STDOUT_FILENO, &i, sizeof(i)); printf("\n%d", i); return 0; }
2.40625
2
2024-11-18T18:10:09.457289+00:00
2020-10-19T06:25:19
cfab082401e131ad46460d83d7edbe3206b6ead2
{ "blob_id": "cfab082401e131ad46460d83d7edbe3206b6ead2", "branch_name": "refs/heads/master", "committer_date": "2020-10-19T06:25:19", "content_id": "44d948275bf1dab9e5d2ef409c7ad92c8103ed17", "detected_licenses": [ "MIT" ], "directory_id": "e3818da472cbabb201d3a6848978b5a575d934d4", "extension": "c"...
stackv2
#include "util.h" /** * Rotate word left (analog c++ <<< operation) * * @param value - rotated value * @param shift - the size by which the value is shifted * @return result - shifted value */ word rotate_left(word value, int shift) { return (value << shift) | (value >> (32 - shift)); } /** * Returns word...
3.203125
3
2024-11-18T18:10:09.782387+00:00
2018-03-04T05:20:19
f0928b3576863370bae3a180c6c425146ea7d1d3
{ "blob_id": "f0928b3576863370bae3a180c6c425146ea7d1d3", "branch_name": "refs/heads/master", "committer_date": "2018-03-04T05:20:19", "content_id": "63f1e6d43e384bb00be3b07fd2c8c9f0286807a3", "detected_licenses": [ "MIT" ], "directory_id": "386ac8dc04a00694976da79ec76c75c6eca7ef06", "extension": "c"...
stackv2
#include <stdio.h> int main(){ float valor,comissao; do{ printf("Enter sales in dollars (-1 to end):\n"); scanf("%f",&valor); comissao=valor*0.09+200; printf("%7.1f\n",comissao); }while(valor<0); return 0; }
2.796875
3
2024-11-18T18:10:10.059887+00:00
2016-09-22T14:31:10
72b561aea2125f7a6292b7fb8d86f2c98e06ea68
{ "blob_id": "72b561aea2125f7a6292b7fb8d86f2c98e06ea68", "branch_name": "refs/heads/master", "committer_date": "2016-09-22T14:31:10", "content_id": "c8daf91ea23daba4735d98b08d6e8a6bcf932dd3", "detected_licenses": [ "MIT" ], "directory_id": "ab5deec3bb9acbbcf87ec85bae5b1a3249cef041", "extension": "c"...
stackv2
#include "util.h" #include "x.h" void init_x11(dx11_t *x) {/*{{{*/ assert(x); debug("Initialize X Window System."); warn_if(!setlocale(LC_CTYPE, "") || !XSupportsLocale(), "No locale support: %m"); x->display = XOpenDisplay(NULL); assert2(x->display, "Cannot open display"); x->screen = DefaultScreen(x->dis...
2.140625
2
2024-11-18T18:22:45.356682+00:00
2023-08-30T18:12:56
5e88855abd976d0c812703f5b978a5681ecee3ab
{ "blob_id": "5e88855abd976d0c812703f5b978a5681ecee3ab", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T18:12:56", "content_id": "3935955a9dbb77a5ccab5aa44b2e580ddb581879", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "6e1cde66aa5a649138babe297293962cdf97743e", "extens...
stackv2
/* Part of SWI-Prolog Author: Jan Wielemaker E-mail: J.Wielemaker@vu.nl WWW: http://www.swi-prolog.org Copyright (c) 1985-2021, University of Amsterdam CWI, Amsterdam SWI-Prolog Solutions b.v. All rights reserved. Redistribution and use in source and...
2.0625
2
2024-11-18T18:22:45.419261+00:00
2019-08-26T15:14:36
25a3b0f82ed80324922d45dcb2b514f144b4d55a
{ "blob_id": "25a3b0f82ed80324922d45dcb2b514f144b4d55a", "branch_name": "refs/heads/master", "committer_date": "2019-08-26T15:14:36", "content_id": "f388acd41f7bcdd5993f92f551d495b9d0c5d271", "detected_licenses": [ "MIT" ], "directory_id": "da0a0312c6fe4fa80949637b0ec8319f77bc87d0", "extension": "c"...
stackv2
#include "IT8951_USB.h" #include <math.h> #include <stdio.h> unsigned char sense_buffer[SENSE_LEN]; unsigned char data_buffer[BLOCK_LEN * 256]; DWord gulPanelW, gulPanelH; char *path; int evpd, page_code; int main(int argc, char *argv[]) { Byte src[(1600 * 1200)]; SystemInfo *Sys_info; // SystemInfo struc...
2.34375
2
2024-11-18T18:22:45.673482+00:00
2023-09-01T14:59:31
02a5440d86ba41ab7c10eeaf08f9426fa54045cb
{ "blob_id": "02a5440d86ba41ab7c10eeaf08f9426fa54045cb", "branch_name": "refs/heads/master", "committer_date": "2023-09-01T14:59:31", "content_id": "adc7ec377611a8245b4c80ec5589e012d8d81dee", "detected_licenses": [ "Apache-2.0" ], "directory_id": "5f0cc6c71f175a81cabf39a5367b3725104304b6", "extensio...
stackv2
#define LOG_CLASS "RtpH264Payloader" #include "../../Include_i.h" STATUS createPayloadForH264(UINT32 mtu, PBYTE nalus, UINT32 nalusLength, PBYTE payloadBuffer, PUINT32 pPayloadLength, PUINT32 pPayloadSubLength, PUINT32 pPayloadSubLenSize) { ENTERS(); STATUS retStatus = STATUS_SUCCE...
2.15625
2
2024-11-18T18:22:46.625414+00:00
2022-11-11T03:31:42
53e7c5d98609c4e040b9cf3a9c6a1c4628850a49
{ "blob_id": "53e7c5d98609c4e040b9cf3a9c6a1c4628850a49", "branch_name": "refs/heads/master", "committer_date": "2022-11-11T03:31:42", "content_id": "17a93133bf52736deeb897d4d05694fb29662948", "detected_licenses": [ "MIT" ], "directory_id": "b66d4f1b3ad5f8be9228d5d7d7a245a574d3e270", "extension": "c"...
stackv2
// What is the first fibonacci number to have 1000 digits in it? #include "euler_util.h" #include <string.h> #define FIBONACCI 1000 #define ARRAYS 3 int carry(int fibo[], int hd) { int i; for (i=0; i < hd; i++) { if (fibo[i] > 9) { fibo[i] %= 10; fibo[i+1]++; } ...
3.234375
3
2024-11-18T18:22:46.836897+00:00
2014-12-07T15:54:40
756de84c6d3e2d71d307c1d2fe369f1f0505be14
{ "blob_id": "756de84c6d3e2d71d307c1d2fe369f1f0505be14", "branch_name": "HEAD", "committer_date": "2014-12-07T15:54:40", "content_id": "536180c37c5dbb9234b60c6dca1ea2447f69df8b", "detected_licenses": [ "MIT" ], "directory_id": "a61eeda7f12b43c53f358977d6469e1a91719fca", "extension": "c", "filename...
stackv2
/* See LICENSE file for copyright and license details. */ #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> #include "util.h" static void mkdirp(char *); static void usage(void) { eprintf("usage: %s [-pm] directory...\n", argv0); } int main(int ...
2.9375
3
2024-11-18T18:22:46.938252+00:00
2017-10-28T17:45:11
e517cc2d2cf36ddbf9c2f4047db794b3f34d6192
{ "blob_id": "e517cc2d2cf36ddbf9c2f4047db794b3f34d6192", "branch_name": "refs/heads/master", "committer_date": "2017-10-28T17:45:11", "content_id": "84540b31bb77654b5eb54d9003bca1d0a3f53ba6", "detected_licenses": [ "MIT" ], "directory_id": "f74fc362ee3312baf9abf3999de2a8d1d53238af", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <kex.h> #include <utility.h> static char brain_commands[BRAINCOMMANDS] = {'<', '>', '+', '-', '.', ',', '[', ']'}; char file_name[BUFFERSIZE] = ""; void new_file() { KeX_clear_lines(1); } void open_file() { KeX_input("Enter yout testing file:", f...
2.46875
2
2024-11-18T18:22:47.813444+00:00
2021-06-06T15:55:01
c06434f17259d6dde68ceb369ef308c79007ec88
{ "blob_id": "c06434f17259d6dde68ceb369ef308c79007ec88", "branch_name": "refs/heads/main", "committer_date": "2021-06-06T15:55:01", "content_id": "5ee49cb2126781836657711bb92d2fc6bf11f862", "detected_licenses": [ "MIT" ], "directory_id": "07628c963bf91730a71999af59ab0827a403a338", "extension": "c", ...
stackv2
#include <stdio.h> /* exercise 1-4: print Celcius-Fahrenheit table for celcius = -20, 0, ..., 200 */ main() { float fahr, celcius; int lower, upper, step; lower = -20; /* lower limit of temperature table */ upper = 200; /* upper limit */ step = 20; /* step size */ printf("celcius f...
3.59375
4
2024-11-18T18:22:48.104399+00:00
2022-08-24T15:45:26
91c38803fc7933aff5065b6d5d439f39149c6f8c
{ "blob_id": "91c38803fc7933aff5065b6d5d439f39149c6f8c", "branch_name": "refs/heads/master", "committer_date": "2022-08-24T15:45:26", "content_id": "939e138916af8cc81531d432f9989a39a7e2c529", "detected_licenses": [ "MIT" ], "directory_id": "22e5475d457c0e29897f1afbc40fee10ecec24e7", "extension": "c"...
stackv2
#include <stdio.h> int main(){ int a = 10; // Print the same integer in different representations printf("Decimal %d\nOctal %o\nhex %x\nHEX %X\n", a, a, a, a); // You can even read the input in different formats // Give the input as 101 scanf("%o", &a); printf("%o in octal is %d in dec...
3.75
4
2024-11-18T18:22:48.162262+00:00
2023-08-22T03:23:25
431daf3ce7350e10eac36728e71421447b5d31f6
{ "blob_id": "431daf3ce7350e10eac36728e71421447b5d31f6", "branch_name": "refs/heads/master", "committer_date": "2023-08-22T07:13:15", "content_id": "fbd3800e9618797c351a4dae11e8dbea0b186154", "detected_licenses": [ "Apache-2.0" ], "directory_id": "af1f72ae61b844a03140f3546ffc56ba47fb60df", "extensio...
stackv2
#include "sljitLir.h" #include <stdio.h> #include <stdlib.h> typedef long SLJIT_CALL (*func3_t)(long a, long b, long c); static long SLJIT_CALL print_num(long a) { printf("a = %ld\n", a); return a + 1; } /* This example, we generate a function like this: long func(long a, long b, long c) { if ((a & 1) == 0) ...
3.140625
3
2024-11-18T18:22:48.708427+00:00
2021-02-09T00:15:04
5dd9c9030179c064cdad06673b140c717de79973
{ "blob_id": "5dd9c9030179c064cdad06673b140c717de79973", "branch_name": "refs/heads/main", "committer_date": "2021-02-09T00:15:04", "content_id": "a31d05f686dadab0d8ff9594b90f1605123f15c6", "detected_licenses": [ "MIT" ], "directory_id": "92e3b56c8b80f667432c8fb3687d9db1b5427ff8", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> #define INI 1 #define FIN 1000 int generar_aleatorio(int inicio, int final); int menu(); void jugar(); int main(void){ srand(time(NULL)); char respuesta = 'N'; do { int op = menu(); switch (op) { case 1: jugar(); ...
3.25
3
2024-11-18T18:22:48.784191+00:00
2019-06-03T04:16:19
84856204a349489fd3db6398cba965487dfb8ee7
{ "blob_id": "84856204a349489fd3db6398cba965487dfb8ee7", "branch_name": "refs/heads/master", "committer_date": "2019-06-03T04:16:19", "content_id": "fb7fe958a7b078256ba184e013be2f4bc8b1b9a5", "detected_licenses": [ "MIT" ], "directory_id": "0bbab0e540cbafe9eb9014d0aaa846b19be948a7", "extension": "c"...
stackv2
#include <stdio.h> // void (*)(void) void test(void) { printf("test\n"); } // int (*p)[3] vs int *p[3] // int[3](*) p vs (int *)[3] p // int[3]* p vs (int *)[3] p // void (*)(void) test_test(void) void (* test_test(void))(void) { printf("test_test\n"); return test; } int main(void) { test_test()(); return 0; ...
2.515625
3
2024-11-18T18:22:49.902072+00:00
2015-03-31T01:49:24
6eb5f51c90a91a0add46e3c911a5760cdbb3a7c0
{ "blob_id": "6eb5f51c90a91a0add46e3c911a5760cdbb3a7c0", "branch_name": "refs/heads/master", "committer_date": "2015-03-31T01:49:24", "content_id": "e226173705c3124ad77f7e3d2d6363d96b643926", "detected_licenses": [ "Zlib" ], "directory_id": "5848285ab5cdedd8f32a145d410b838f8d2d366a", "extension": "c...
stackv2
#include <GFraMe/wavtodata/chunk.h> #include <GFraMe/wavtodata/readbytes.h> void readChunkInfo(FILE *f, struct chunk *c) { char tmp[4]; fread(c->id, sizeof(char), 4, f); fread(tmp, sizeof(char), 4, f); c->len = readWORD(tmp); c->read = 0; } int readChunkBytes(FILE *f, struct chunk *c, char *buffer, int max) { ...
2.609375
3
2024-11-18T18:22:50.301434+00:00
2020-12-24T10:06:56
6e06b1f5790c00cfa784e1810621d8a118df871b
{ "blob_id": "6e06b1f5790c00cfa784e1810621d8a118df871b", "branch_name": "refs/heads/master", "committer_date": "2020-12-24T10:06:56", "content_id": "ac929ade2707398f2748f29a08fdf78555955cc4", "detected_licenses": [ "MIT" ], "directory_id": "1e465c29d62f87f8310ab2c8f1ea7c02f60fa561", "extension": "c"...
stackv2
/* * Erfan Sabouri Shirazi * 9532578 */ #include <stdio.h> #include <stdlib.h> struct Node{ int data; struct Node * left; struct Node * right; }; struct Node *add(int data , struct Node *root){ if(root == NULL){ struct Node *temp = (struct Node *)malloc(sizeof(struct Node)); temp->d...
3.625
4