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-18T18:39:43.880578+00:00
2022-08-30T08:08:25
1a92cdde5f6399de1062b0e3c3d0b9d9c23da2a3
{ "blob_id": "1a92cdde5f6399de1062b0e3c3d0b9d9c23da2a3", "branch_name": "refs/heads/master", "committer_date": "2022-08-30T08:10:45", "content_id": "c0cd573612ece37cedf1c89aeec024f8f32279ac", "detected_licenses": [ "Zlib" ], "directory_id": "3cd4167a966806776fc468edf6ed354a5b4ee1ff", "extension": "c...
stackv2
/// @module nfd #include <assert.h> #define false 0 #include "nfd.h" #include "lua.h" #include "lauxlib.h" /*** * Prompt the user to open a file, and return their selection. * @function open * @param filter * @param initial * @return path */ static int l_open(lua_State* L) { nfdchar_t* out; const nfdch...
2.28125
2
2024-11-18T18:39:45.190025+00:00
2018-11-13T03:44:23
9f0bdea2c6a9cdd323dfdd800dbe4fa969658b31
{ "blob_id": "9f0bdea2c6a9cdd323dfdd800dbe4fa969658b31", "branch_name": "refs/heads/master", "committer_date": "2018-11-13T03:44:23", "content_id": "0794a6fc606d42149f14b6781385f8152754b961", "detected_licenses": [ "MIT" ], "directory_id": "3d8d76126b64bde9d280e721e272af23b2e5f3d3", "extension": "h"...
stackv2
/** * \file ev3speaker.h * \brief API for speaker. * \details This file is used to * \author ertl-liyixiao */ /** * \~English * \defgroup ev3api-brick EV3 Intelligent Brick * @{ * * \~Japanese * \defgroup ev3api-brick EV3本体機能 * @{ */ #pragma once /** * \~English * \defgroup ev3api-speaker Sp...
2.21875
2
2024-11-18T18:39:46.006903+00:00
2015-04-14T20:24:43
4f9044ce4f89f3cab1326ec48dbc0770f88ed71a
{ "blob_id": "4f9044ce4f89f3cab1326ec48dbc0770f88ed71a", "branch_name": "refs/heads/master", "committer_date": "2015-04-14T20:24:43", "content_id": "5c490ee3d49e76248c724d2387c78a9ac77b4960", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "45a175e1a470bf15f4a2aa5b066250d6f8ec5327", "extens...
stackv2
/** * @file * @brief Move or rename file. * * @date 18.12.12 * @author Ivan Tretyakov */ #include <unistd.h> #include <stdio.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <fs/perm.h> #include <fs/vfs.h> #include <fs/fsop.h> #include <util/array.h> #define MV_RECURSIVE (0x1 << 0) #defin...
3.15625
3
2024-11-18T18:39:46.077699+00:00
2017-05-10T09:50:21
38e535070689c2293defa5bf81f38fec785ba844
{ "blob_id": "38e535070689c2293defa5bf81f38fec785ba844", "branch_name": "refs/heads/arm", "committer_date": "2017-05-10T14:22:48", "content_id": "3fa23191678f8773edbbdece28975260ca76af90", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6af50a4b5b928211880dd9f1c6ce92c2afea828b", "extension":...
stackv2
/* * Copyright (c) 2016, Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ /** * @file PWM driver for Freescale K64 FlexTimer Module (FTM) * * This file implements Pulse Width Modulation using the Freescale FlexTimer * Module (FTM). Basic functionality is implemented using edge-aligned PWM ...
2.109375
2
2024-11-18T18:39:47.168551+00:00
2018-08-09T13:48:44
7e509f54c94084860e71a6ef3b1ac9ea9ebc9f09
{ "blob_id": "7e509f54c94084860e71a6ef3b1ac9ea9ebc9f09", "branch_name": "refs/heads/master", "committer_date": "2018-08-09T13:48:44", "content_id": "147b587548c8141c7d8d7c57dcea2ee6555245b9", "detected_licenses": [ "MIT" ], "directory_id": "b3136f391a9cd04f4b280b573e0356f3f4098b72", "extension": "c"...
stackv2
// // linked_list.c // argonauts // // Created by Vijayraj Mahida on 8/2/18. // Copyright © 2018 Vijayraj Mahida. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include "linked_list.h" typedef struct node { int data; struct node* next; } node; typedef void (*callback)(node* data); node*...
3.125
3
2024-11-18T18:39:48.415355+00:00
2017-09-17T09:50:07
f0fec856d5eed5321c1b06a5c981afa109c97848
{ "blob_id": "f0fec856d5eed5321c1b06a5c981afa109c97848", "branch_name": "refs/heads/master", "committer_date": "2017-09-17T09:50:07", "content_id": "fcb80ea72cd3c72f00baed654074f77de24c318b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "aa228d4691314f530ff20b06daa0e1308fc5ef40", "extens...
stackv2
static VALUE arf_create_sparse_array(VALUE self, VALUE shape_array, VALUE values_array, VALUE rowIdx_val, VALUE colIdx_val, VALUE stype_val){ afstruct* output = ALLOC(afstruct); afstruct* values; afstruct* rowIdx; afstruct* colIdx; Data_Get_Struct(values_array, afstruct, values); Data_Get_Struct(rowIdx_val...
2.203125
2
2024-11-18T18:39:48.475412+00:00
2017-12-07T05:13:17
3a24053191ed84702a864cc802fcf0db8a3b6405
{ "blob_id": "3a24053191ed84702a864cc802fcf0db8a3b6405", "branch_name": "refs/heads/master", "committer_date": "2017-12-07T05:13:17", "content_id": "db07525de7d4492861048f135a7999e3028ffd5f", "detected_licenses": [ "BSD-2-Clause-Views" ], "directory_id": "573d769638dfd44a81306b69e03e4ee4b378c030", "...
stackv2
#include <stdarg.h> #include <string.h> #include <sys/ahci.h> #include <sys/defs.h> #include <sys/elf64.h> #include <sys/gdt.h> #include <sys/interrupts.h> #include <sys/kprintf.h> #include <sys/paging.h> #include <sys/pci.h> #include <sys/syscall.h> #include <sys/tarfs.h> #include <sys/task.h> #include <sys/term.h> #i...
2.140625
2
2024-11-18T18:39:48.560847+00:00
2018-03-12T16:00:35
cdcc6681faf385d17dbdc3410b2885fdbcf578bb
{ "blob_id": "cdcc6681faf385d17dbdc3410b2885fdbcf578bb", "branch_name": "refs/heads/master", "committer_date": "2018-03-12T16:00:35", "content_id": "d661e016e42a3b056dda6f2d7a2edf3ac3ee0549", "detected_licenses": [ "MIT" ], "directory_id": "b7cf85245ee9b090bc08c4b5a1a87323105f0945", "extension": "c"...
stackv2
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ /** * @file libweather_tiempo.c * @brief Tiempo (ilmeteo.net) "driver" for libweather (implementation). * * Tiempo (ilmeteo.net) provides a nice API to get weather forecasts. * This "driver" provides a call to get Tiempo forecasts in libw...
2.125
2
2024-11-18T18:39:48.730710+00:00
2019-03-25T18:37:57
26386aee8d3443b98062da5b3c107edc25173db6
{ "blob_id": "26386aee8d3443b98062da5b3c107edc25173db6", "branch_name": "refs/heads/master", "committer_date": "2019-03-25T18:37:57", "content_id": "49beb086be0762d4925542e18816693acc3c9095", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0c1d0b7b3d47328835102c0b3de21e009f61f84a", "extensio...
stackv2
#include <stdio.h> #include <string.h> #include "defines.h" #include "enums.h" #include "protein.h" #include "pdbio.h" #include "pdbatom.h" #include "futil.h" #include "messages.h" #include "string_owner.h" #define MAX_VALUES 11 /** Split a ATOM Section Line into an array. Insert this array in atoms * line is a line...
2.671875
3
2024-11-18T18:39:48.932924+00:00
2016-12-29T18:03:16
322f120c4198b5f5aa1dc1857837c5d1b6da16b0
{ "blob_id": "322f120c4198b5f5aa1dc1857837c5d1b6da16b0", "branch_name": "refs/heads/master", "committer_date": "2016-12-29T18:03:16", "content_id": "bef71dd39e63278ca1021718e9868f775c3dfb57", "detected_licenses": [ "Unlicense" ], "directory_id": "c7667cde5efe512b6b0889817719b88e3293c400", "extension...
stackv2
/* * Bellman-Ford shortest path algorithm * ------------------------------------- * Uses adjacency matrix for storing the graph * If u and v are connected, then the adjacency matrix * will have adj-matrix[u,v] := weight. If u and v are * not connected, then adj-matrix[u,v] := infinity. * * INT_MAX defined ...
3.375
3
2024-11-18T18:39:50.456834+00:00
2018-04-17T19:46:20
abdeac0bc5a23bac0922e87eccd07d32d89acdd3
{ "blob_id": "abdeac0bc5a23bac0922e87eccd07d32d89acdd3", "branch_name": "refs/heads/master", "committer_date": "2018-04-17T19:46:20", "content_id": "a1ca00cb281fd087f8c6754d690488fd655a5e48", "detected_licenses": [ "MIT" ], "directory_id": "360c7954a31adbf725269fe3a179404f3457e7f8", "extension": "c"...
stackv2
#include "fileHandler.h" #include <stdio.h> #include <stdlib.h> int writeIntoFile(char* fileName,Matrix* matrix){ FILE* fp = fopen(fileName,"w"); if(fp == NULL){ return 1; } int i = 0; while(i<matrix->rows){ int j = 0; while(j<matrix->cols){ fprintf(fp,"%d\t",m...
2.84375
3
2024-11-18T18:39:50.820474+00:00
2021-02-06T16:07:35
63765821359f15e1b8cd7d949a30e8c6ed75316e
{ "blob_id": "63765821359f15e1b8cd7d949a30e8c6ed75316e", "branch_name": "refs/heads/master", "committer_date": "2021-02-06T16:07:35", "content_id": "9f9573a98ea668bc259f1d1610e9b7aa4b8c1375", "detected_licenses": [ "MIT" ], "directory_id": "d8f2d0b38c75d4365e54b155857ff7a27e1807dd", "extension": "c"...
stackv2
// Lierda | Senthink // Jianjun_xia // date: 2018.10.11 /** * Function:公共函数的实现 * * */ #include "common.h" //返回为转换后的字符串首地址 char* ChArray_To_String(char*dst,uint8_t src[],size_t size) { int loop; char *p_buff = dst; //将字符数组转换成字符串:重要转换,自定义转换过程 for(loop = 0; loop < size;loop++) { ...
3.140625
3
2024-11-18T18:39:50.895767+00:00
2023-08-12T07:52:03
1dbe7658c861ecd646add257ff3ab3a4c59ab42e
{ "blob_id": "1dbe7658c861ecd646add257ff3ab3a4c59ab42e", "branch_name": "refs/heads/master", "committer_date": "2023-08-12T13:24:08", "content_id": "efa3010c1c6888eb54b8cc2987f3af0bdd114633", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1a0276218c8a103c9a76409e510df5b5690f44e5", "extensio...
stackv2
/** * FreeRDP: A Remote Desktop Protocol Implementation * FreeRDP Proxy Server Session Capture Module * * Copyright 2019 Kobi Mizrachi <kmizrachi18@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a...
2.125
2
2024-11-18T18:39:51.386255+00:00
2023-08-31T16:51:49
c737468ec8e4fdc8acfcaa87d98db950f5475818
{ "blob_id": "c737468ec8e4fdc8acfcaa87d98db950f5475818", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T16:51:49", "content_id": "7cfd0fa4cf41942842f27a99c97a4970d5dda896", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e9454d56c6fdd3389b7590aa0cbe96eef716d8f4", "extensio...
stackv2
/* * ----------------------------------------------------------------- * $Revision: 1.1 $ * $Date: 2006/07/05 15:32:37 $ * ----------------------------------------------------------------- * Programmer(s): Scott D. Cohen, Alan C. Hindmarsh, Radu Serban, * and Aaron Collier @ LLNL * --------------...
2.203125
2
2024-11-18T18:39:51.476782+00:00
2021-08-06T05:44:28
924928ccb1df68a8a40291d28a40fb5cf5b3a0b9
{ "blob_id": "924928ccb1df68a8a40291d28a40fb5cf5b3a0b9", "branch_name": "refs/heads/main", "committer_date": "2021-08-06T05:44:28", "content_id": "ff0ace21bdfde754fe2da7b8d6763d362989cc06", "detected_licenses": [ "MIT" ], "directory_id": "792bece006227a67600d116e131934363e690ad2", "extension": "c", ...
stackv2
/* * AUTHORS : <jonathanmarpaung88@gmail.com> * VERSION : 1.0.0 * TYPE : Script * LICENSE : MIT */ /* Include header C */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/select.h> #include <termios.h> #include <fcntl.h> /* Include header */ #include "FGTL_System.h" ...
2.90625
3
2024-11-18T18:39:51.616428+00:00
2023-03-05T12:14:50
d9dafb63ee046e1c35be52535b142fe872e71316
{ "blob_id": "d9dafb63ee046e1c35be52535b142fe872e71316", "branch_name": "refs/heads/master", "committer_date": "2023-03-05T12:14:50", "content_id": "a983f43e81bf9a47613f82178c3781aef6eeb59a", "detected_licenses": [ "MIT" ], "directory_id": "fe0d57d369d8e67c20484da5d88e038a06638a48", "extension": "h"...
stackv2
#include "../src/vm.c" #ifndef TM2C_H #define TM2C_H #define LEVEL_ERROR 0 #define LOG(level, msg, lineno, func_name, value) /* x */ // 操作栈相关的宏函数 #define MP2C_PUSH(x) *(++top) = (x); #define MP2C_POP() *(top--) #define MP2C_TOP() (top[0]) #define MP2C_FIRST() (top[0]) #define MP2C_SECOND() (top[-1]) #define ...
2.4375
2
2024-11-18T18:39:51.751523+00:00
2020-05-18T18:20:33
9b1a59c23438ab892493c424b7e07fe86f282a8f
{ "blob_id": "9b1a59c23438ab892493c424b7e07fe86f282a8f", "branch_name": "refs/heads/master", "committer_date": "2020-05-18T18:20:33", "content_id": "770679b2c942a865a087423922f54845178244fe", "detected_licenses": [ "CC0-1.0" ], "directory_id": "fb301baede37019c7512d2b141b4a79e77f17d5a", "extension":...
stackv2
/*--------------------------------------------------------- IncArchive.c ---------------------------------------------------------*/ #include "IncArchive.h" #include "IncMeasure.h" #include "IncMeasureMode.h" #include "VistArchive.h" #include "mem.h" #include "lcd.h" #include "keybrd.h" #include "archive.h" static ...
2.078125
2
2024-11-18T18:39:51.826897+00:00
2019-03-26T18:29:42
37bf9827ea6745606a38d703d2ad11e1185d9017
{ "blob_id": "37bf9827ea6745606a38d703d2ad11e1185d9017", "branch_name": "refs/heads/master", "committer_date": "2019-03-26T18:29:42", "content_id": "d585bcca58b27034d82c7fe89461e7e6b01e06fd", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1916457b9d362245c5f2547dae9aa2d01d590b97", "extensio...
stackv2
#include <cstdlib> #include <ros/ros.h> #include <mavros_msgs/CommandBool.h> int main(int argc, char **argv) { ros::init(argc, argv, "mavros_arming"); ros::NodeHandle n; int rate = 10; ros::Rate r(rate); //////////////////////////////////////////// ///////////////////ARM/////////////////////...
2.140625
2
2024-11-18T18:39:51.927268+00:00
2016-01-27T16:32:36
2b00e8c58e7b42e90d57ba905f324d6c3bad9650
{ "blob_id": "2b00e8c58e7b42e90d57ba905f324d6c3bad9650", "branch_name": "refs/heads/master", "committer_date": "2016-01-27T16:32:36", "content_id": "1acc1cb35dd151a4e0f7dcc4aa985875ba7e8d0b", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d930b26f6ab178986701d4a84fe5929b94e7427b", "extensio...
stackv2
/* * GHEffects.c * * Effect parameter values are communicated to the hardware via dedicated PIOs. * This module handles the default behavior of parameters (simple increasing and decreasing) * and selecting the parameters. * * Created on: 2010-05-09 * Author: Tomasz Kaczmarczyk */ #include "GHEffects.h" ...
2.609375
3
2024-11-18T18:39:52.006299+00:00
2019-01-29T09:24:19
56141089d01f456b8dd044cedb619de43a0c3999
{ "blob_id": "56141089d01f456b8dd044cedb619de43a0c3999", "branch_name": "refs/heads/master", "committer_date": "2019-01-29T09:24:19", "content_id": "c08d73cf5c7c9620fb6a7f1c0a1ae518c45f150d", "detected_licenses": [ "MIT" ], "directory_id": "4830581ceedc7d1f9db1ec43e7fccae8bb8d0032", "extension": "c"...
stackv2
#include <stdio.h> #include <esp_err.h> #include <esp_event_legacy.h> #include <esp_log.h> #include <freertos/event_groups.h> #include <wifi_bits.h> #include <core.h> #include <nvs_flash.h> #include <wifi_services.h> #include <etc.h> #include <esp_http_client.h> #include <config.h> #include <string.h> #include <console...
2.03125
2
2024-11-18T18:39:52.342043+00:00
2019-06-02T20:48:47
dd450187a322f99e2b2ce6cb25d5a3beacb2bc16
{ "blob_id": "dd450187a322f99e2b2ce6cb25d5a3beacb2bc16", "branch_name": "refs/heads/master", "committer_date": "2019-06-02T20:48:47", "content_id": "5e454b2af39bee27f1e2f520e12c15f0580faf9e", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "caf37cd61086e453c5f15a615e89b12fd0ccc887", "extens...
stackv2
#ifdef EXPAND_C CONSTRUCT(WwriterMemory) { if (!self->start && self->ptr) self->start = self->ptr; else if (self->start && !self->ptr) self->ptr = self->start; } METHOD(WwriterMemory,public,int,putc,(char ch)) { *self->ptr++ = ch; } METHOD(WwriterMemory,public,int,cat,(const char* str)) {...
2.09375
2
2024-11-18T18:39:52.482118+00:00
2016-03-31T04:27:37
91fa4cd0fc9ee89a2f02e70a053593f4ac991138
{ "blob_id": "91fa4cd0fc9ee89a2f02e70a053593f4ac991138", "branch_name": "refs/heads/master", "committer_date": "2016-03-31T04:27:37", "content_id": "2e5433486af5af8f7bf1411d2cc9c3763a320b68", "detected_licenses": [ "MIT" ], "directory_id": "679bf883973eee060c1f19346fd32d0662db7f69", "extension": "h"...
stackv2
#ifndef __UTILITIES_H__ #define __UTILITIES_H__ // std #include "stdio.h" #include "string.h" #include "sys/mman.h" // local #include "list.h" /** @brief Prints to contents of the given array to stdout. * * @param array The array, the contents of which will be printed. * * @param n The size of the array. * * ...
2.828125
3
2024-11-18T18:39:52.553997+00:00
2023-06-01T07:56:47
7da2371123d1e92908d9d93542bd2d9b3054ff7e
{ "blob_id": "7da2371123d1e92908d9d93542bd2d9b3054ff7e", "branch_name": "refs/heads/main", "committer_date": "2023-06-01T07:56:47", "content_id": "90545aba0741ad3fd3773e781ca6dc1bbff5a84a", "detected_licenses": [ "MIT" ], "directory_id": "d9548973bd15f3be6052d0adbafc6113c9838010", "extension": "h", ...
stackv2
//=================================================================================== //项目名称:LH 个人Windows平台代码库 V1.0 //文件描述:一些扩展关键字 以及常用操作的宏定义文件 //模块名称:公共支持文件 // //组织(公司、集团)名称:None //作者:aMonst //创建日期:2015-5-20 17:20:18 //修改日志: //=================================================================================== #pragma...
2.140625
2
2024-11-18T18:39:52.720153+00:00
2023-02-16T11:27:40
ac557ba4e59c7ba458be0ae4fa3227686d0b1a09
{ "blob_id": "ac557ba4e59c7ba458be0ae4fa3227686d0b1a09", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "b5b935b53d060e95a8e306d53000fce9ccf97975", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2022 Andriy Gelman, andriy.gelman@gmail.com * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT infineon_xmc4xxx_adc #include <errno.h> #include <soc.h> #include <stdint.h> #include <xmc_scu.h> #include <xmc_vadc.h> #include <zephyr/drivers/adc.h> #include <zephyr/device.h> #includ...
2.484375
2
2024-11-18T18:39:53.020476+00:00
2016-10-28T07:26:27
9fb5733468e5cc3cc141a2a9c08a4a402904677a
{ "blob_id": "9fb5733468e5cc3cc141a2a9c08a4a402904677a", "branch_name": "refs/heads/master", "committer_date": "2016-10-28T07:26:27", "content_id": "599952538baadbdc711dde5d629814984ada85a0", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "375576112d6e9ca11db17e87717d9d89...
stackv2
/* * Copyright (C) Nginx, Inc. * Copyright (C) Valentin V. Bartenev */ #ifndef _NGX_THREAD_POOL_H_INCLUDED_ #define _NGX_THREAD_POOL_H_INCLUDED_ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_event.h> struct ngx_thread_task_s { ngx_thread_task_t *next; ngx_uint_t id; void ...
2.140625
2
2024-11-18T18:39:53.406909+00:00
2022-01-07T09:04:51
7fd893843ad3c848ba802169f31f8851cc67b39a
{ "blob_id": "7fd893843ad3c848ba802169f31f8851cc67b39a", "branch_name": "refs/heads/master", "committer_date": "2022-01-07T09:04:51", "content_id": "1a5a894b4cc9e4dffd10a00fe0963e328f5bc2b8", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "917803ece03d27a6b4c5dfb89ff620ef4ba933f9", "extens...
stackv2
#include<stdio.h> #include<cilktc.h> int main(){ printf("testing firm\n"); int i; int count = 0; int ov; int now; int clock; while(1){ now = gettime(ms); for(i=0; i<1000000000; i++){} fdelay(100, ms); printf("\n"); clock = gettime(ms); printf("time elapsed : %d", clock - now); ...
2.25
2
2024-11-18T18:39:53.490751+00:00
2023-08-31T11:13:23
d2aaae1fe277dc443d1764753281e18bf1f988d6
{ "blob_id": "d2aaae1fe277dc443d1764753281e18bf1f988d6", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T11:13:23", "content_id": "7d858a1804f3249fe4dedc9602a7036eb0e272d7", "detected_licenses": [ "MIT" ], "directory_id": "549270020f6c8724e2ef1b12e38d11b025579f8d", "extension": "c"...
stackv2
#include "SpiceUsr.h" #include <stdio.h> int main () { ConstSpiceDouble rectan[3] = {0.0000, 1.0000, 1.0000}; SpiceDouble radius; SpiceDouble longitude; SpiceDouble latitude; reclat_c(rectan, &radius, &longitude, &latitude); longitude *= dpr_c(); latitude *= dpr_c(); printf("Rectangular coordinates ...
2.34375
2
2024-11-18T18:39:54.028729+00:00
2023-07-30T17:41:18
a40458219f65d60a393fadc6108ebf87a79f8cf4
{ "blob_id": "a40458219f65d60a393fadc6108ebf87a79f8cf4", "branch_name": "refs/heads/main", "committer_date": "2023-07-30T17:41:18", "content_id": "e448d32e9403af797295cce9fb75918075befcb5", "detected_licenses": [ "BSD-3-Clause", "Apache-2.0" ], "directory_id": "0ac7388d092db127a5f34952a985ee3cfb3c...
stackv2
/* * Copyright 2018, University Corporation for Atmospheric Research * See netcdf/COPYRIGHT file for copying and redistribution conditions. */ #include <stdlib.h> #include <stdio.h> #include <errno.h> #include "ncpathmgr.h" /* Implement the ncstdio.h interface using unix stdio.h */ /* Forward */ static int NCFil...
2.390625
2
2024-11-18T18:39:54.113934+00:00
2023-08-21T22:56:29
a6499806e23553de0bc0ede2daf1e7cb5a3b336a
{ "blob_id": "a6499806e23553de0bc0ede2daf1e7cb5a3b336a", "branch_name": "refs/heads/master", "committer_date": "2023-08-21T22:56:29", "content_id": "315b1a4fcc26437367a3e40d6e1127535517ddc4", "detected_licenses": [ "BSD-3-Clause-Open-MPI" ], "directory_id": "a9b6d79c59a45a25e902b2809de43f62a8e77289", ...
stackv2
/* * Copyright (c) 2014-2018 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. */ #include "parsec/runtime.h" #include "vector.h" #include <stdarg.h> #include "parsec/utils/debug.h" #include "parsec/data_distri...
2.328125
2
2024-11-18T18:39:54.279996+00:00
2021-05-17T21:37:40
a4db60cf4673c184d3aa7e668a015d6f25140180
{ "blob_id": "a4db60cf4673c184d3aa7e668a015d6f25140180", "branch_name": "refs/heads/main", "committer_date": "2021-05-17T21:37:40", "content_id": "e83d5d4af2538d9c727d5baf52877d11880cd377", "detected_licenses": [ "MIT" ], "directory_id": "9c2cff2fa9e9eb56c575d3e7121112259db1a1d4", "extension": "c", ...
stackv2
#include <stdio.h> //Receber um número e informar se ele é positivo, negativo ou nulo. int main() { float numero; printf (" digite um numero: "); scanf ("%f", &numero); if (numero >0) { printf ("\n esse numero eh positivo"); } else if (numero ==0 ) { printf ("\n esse numero eh nulo"); { else { p...
3.4375
3
2024-11-18T18:39:54.584071+00:00
2017-11-16T15:01:01
dac6aff2dfbd6fd90e469834baaec3fb21417e50
{ "blob_id": "dac6aff2dfbd6fd90e469834baaec3fb21417e50", "branch_name": "refs/heads/master", "committer_date": "2017-11-16T15:01:01", "content_id": "7f54b581072c019f995f3f1a4302af49a37649e5", "detected_licenses": [ "MIT" ], "directory_id": "fbe2e33471d6508b528c13a600de64c9b8c2bda0", "extension": "c"...
stackv2
#include<unistd.h> #include<stdlib.h> #include<stdio.h> char passwd[11] = {0}; char admin = 0; int main() { gets(passwd); if(strncmp(passwd, "tajnehaslo", 10) == 0) admin = 1; setresuid(geteuid(),geteuid(),geteuid()); system(admin?"bash":""); }
2.03125
2
2024-11-18T18:39:54.744165+00:00
2021-01-24T23:44:16
b94be9a5ff81adca48d8c8480741f8cadfdd5cb0
{ "blob_id": "b94be9a5ff81adca48d8c8480741f8cadfdd5cb0", "branch_name": "refs/heads/master", "committer_date": "2021-01-24T23:44:16", "content_id": "9038ebc2e2c5d624fa3ed36837608960537ff047", "detected_licenses": [ "0BSD" ], "directory_id": "5d266d26a4d000c729d823e32ff058a9d8bc12e9", "extension": "c...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <sys/ptrace.h> #include <sys/reg.h> #include <signal.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <sys/user.h> #include <fcntl.h> #include <linux/limits.h> #include <linux/unistd.h> static void proce...
2.296875
2
2024-11-18T18:39:54.799186+00:00
2018-04-26T02:55:01
245120a96106f7175b60814107236ef879115e35
{ "blob_id": "245120a96106f7175b60814107236ef879115e35", "branch_name": "refs/heads/master", "committer_date": "2018-04-26T02:55:01", "content_id": "67519ec16b8e58c53daaea93f3c25b8596b3f2f3", "detected_licenses": [ "MIT" ], "directory_id": "ba3dd00bc7347a16a5c4c653311714576cb9eac4", "extension": "c"...
stackv2
#include "define.h" #include <assert.h> void saveBMP(const char* filename, const unsigned char* result, int w, int h){ //printf("saving image...\n"); FILE *f; unsigned char *img = NULL; int filesize = 54 + 3*w*h; //w is your image width, h is image height, both int unsigned char bmpfileheader[14] = {'B','M'...
2.609375
3
2024-11-18T18:39:55.124403+00:00
2019-01-31T09:38:48
f827fd92cc2b8b31f38ae40e8a7ec41b71dae50a
{ "blob_id": "f827fd92cc2b8b31f38ae40e8a7ec41b71dae50a", "branch_name": "refs/heads/master", "committer_date": "2019-01-31T09:38:48", "content_id": "ac1a8770731e3ec70426bea93dc51f610fd8aa5a", "detected_licenses": [ "MIT" ], "directory_id": "8510114e35c9bf62f60a830b7f57dfcd9ff57e98", "extension": "h"...
stackv2
#pragma once #include <stdint.h> typedef struct intset_s intset_t; struct intset_s { uint32_t encoding; /* int16, int32 or int64 */ uint32_t length; uint8_t contents[0]; }; uint8_t intset_get(intset_t *is, uint32_t pos, int64_t *v); void intset_dump(intset_t *is); /* EOF */
2.046875
2
2024-11-18T18:39:55.501425+00:00
2021-06-20T01:34:12
7df805eb2b83738116964bcace58792d04fc89fc
{ "blob_id": "7df805eb2b83738116964bcace58792d04fc89fc", "branch_name": "refs/heads/master", "committer_date": "2021-06-20T01:34:12", "content_id": "1acc946eeadbd80c925c67a48e6a23f689679dd1", "detected_licenses": [ "MIT" ], "directory_id": "77ea1e112cad86563235e94d99d806c4dbfe749b", "extension": "h"...
stackv2
#define vertex int typedef struct graph *Graph; typedef struct node *link; Graph GRAPHinit( int V ); static link NEWnode( vertex w, link next ); void GRAPHinsertArc( Graph G, vertex v, vertex w ); void GRAPHremoveArc( Graph G, vertex v, vertex w ); void GRAPHshow( Graph G ); Graph GRAPHrand( int V, int A ); bool isTo...
2.28125
2
2024-11-18T18:39:55.550105+00:00
2023-05-25T11:50:43
e363804de813bf5d3f236d79c2a8fd075855e834
{ "blob_id": "e363804de813bf5d3f236d79c2a8fd075855e834", "branch_name": "refs/heads/master", "committer_date": "2023-05-25T13:12:27", "content_id": "261387f6bd6ffbecb01377d2ef87efe7fd936431", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "6460b1478104dbcddb06eabdb2d96ec022cc8e99", "extens...
stackv2
/* +--------------------------------------------------------------------+ | PECL :: http | +--------------------------------------------------------------------+ | Redistribution and use in source and binary forms, with or without | | modificatio...
2.140625
2
2024-11-18T18:39:56.016625+00:00
2012-07-02T01:50:55
a76bdf2131511a6482e9aac23a3ee1c0f9363324
{ "blob_id": "a76bdf2131511a6482e9aac23a3ee1c0f9363324", "branch_name": "refs/heads/master", "committer_date": "2012-07-02T01:50:55", "content_id": "864342d58a617db767c0716c5f286a189a854b12", "detected_licenses": [ "MIT" ], "directory_id": "c1b455a3070a4de21be45863727e3bf2c80429b2", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include "matrix.h" #include "arithmetic.h" int add_matrices(matrix *mat1, matrix *mat2, matrix *result) { int rows,cols; int i,j; if ((mat1->row_dim != mat2->row_dim) || (mat1->col_dim!=mat2->col_dim ) ) { return -1; } else if((mat1->row_dim != result->row_dim) || (ma...
3.046875
3
2024-11-18T18:39:56.086119+00:00
2020-06-23T22:10:38
72e7627968d95378492db6fa955a80c7820f0be3
{ "blob_id": "72e7627968d95378492db6fa955a80c7820f0be3", "branch_name": "refs/heads/master", "committer_date": "2020-06-23T22:10:38", "content_id": "00f4b6a385f644aa8dff7a0823ff3c7b31bebda4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "850c34a4e22db4ef8e8b1459d3e696f925e333fc", "extensio...
stackv2
#include <stm32f4xx_hal.h> #include "FreeRTOS.h" #include "semphr.h" #include "Audio.h" // Peripheral handles static DMA_HandleTypeDef dmaInHandle; static DMA_HandleTypeDef dmaOutHandle; static DAC_HandleTypeDef dacHandle; static ADC_HandleTypeDef adcHandle; static TIM_HandleTypeDef timerHandle; #define AUDIO_SAMPLE_...
2.421875
2
2024-11-18T18:39:56.444301+00:00
2015-08-03T12:05:14
1445f364d402c546718623002e650c15daf82d84
{ "blob_id": "1445f364d402c546718623002e650c15daf82d84", "branch_name": "refs/heads/master", "committer_date": "2015-08-03T12:05:14", "content_id": "7f0ddd37236988e0c3383819ef2efaf1a2a1bc80", "detected_licenses": [ "MIT" ], "directory_id": "86b6df8d4a025bb8f17126efb96150137348291a", "extension": "h"...
stackv2
#ifndef lighting_common_h #define lighting_common_h vec3 tonemap_func(vec3 x, float a, float b, float c, float d, float e, float f) { return ( ( x * ( a * x + c * b ) + d * e ) / ( x * ( a * x + b ) + d * f ) ) - e / f; } vec3 tonemap(vec3 col) { //vec3 x = max( vec3(0), col - vec3(0.004)); //return ( x * (6....
2.46875
2
2024-11-18T18:39:56.640910+00:00
2018-01-18T06:12:19
cefddf84032f8ae6402867f51b68e7eae8899a81
{ "blob_id": "cefddf84032f8ae6402867f51b68e7eae8899a81", "branch_name": "refs/heads/master", "committer_date": "2018-01-18T06:12:19", "content_id": "a7cc341d7578deb90e6a2a2d4c4d966b98ff0207", "detected_licenses": [ "Apache-2.0" ], "directory_id": "100f079c1f777bd9c4e041bcf0c2111429024703", "extensio...
stackv2
/* Use bubble-sort technique to sort the given list in ascending order */ #include<stdio.h> #include<stdlib.h> void bb_sort(int *ptr, int arr_size); void swap(int *a, int *b); /* Use two array indices(i,j) and traverse the array comparing values at respective indices and swapping the values if value at array indic...
4.40625
4
2024-11-18T18:39:56.712470+00:00
2023-01-02T17:57:00
ac2a034598fb8fba652962f517317b60d7a475eb
{ "blob_id": "ac2a034598fb8fba652962f517317b60d7a475eb", "branch_name": "refs/heads/master", "committer_date": "2023-01-02T17:57:00", "content_id": "6567ec0c64efaa48046d067f1e1923a7a2253cda", "detected_licenses": [ "BSD-2-Clause", "BSD-2-Clause-Views" ], "directory_id": "88eaf472fcdbb4736ad95d52ed...
stackv2
/* * * Copyright (c) 1996 Algorithms Corporation * 3020 Liberty Hills Drive * Franklin, TN 37067 * * ALL RIGHTS RESERVED. * * * */ /* CLIENT code */ #include <windows.h> #include <sql.h> #include <sqlext.h> #include "generics.h" #include "resource.h" static long file_exit(object wind); static ...
2.203125
2
2024-11-18T18:39:57.545586+00:00
2019-01-14T10:06:57
4bdcf9109954b43ecb025a6200c7771b27018a15
{ "blob_id": "4bdcf9109954b43ecb025a6200c7771b27018a15", "branch_name": "refs/heads/master", "committer_date": "2019-01-14T10:06:57", "content_id": "a4362c10c3fc13b66c424cbf0cda5e9913eeef1d", "detected_licenses": [ "MIT" ], "directory_id": "dbe3388960b5af874297edc9c184a89485fdeb9d", "extension": "c"...
stackv2
// Device Control Unit #include <sys/types.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <termios.h> #include <stdio.h> #include <strings.h> #include <string.h> #include <zmq.h> #define FALSE 0 #define TRUE 1 #define CRC_MAX_CRC_RESEND 5 #define REGISTRATION_BYTES 6 #...
2.125
2
2024-11-18T18:39:57.795966+00:00
2015-10-23T23:39:07
92c75aa788bb05cc135cd54d036e18eb3dcc5927
{ "blob_id": "92c75aa788bb05cc135cd54d036e18eb3dcc5927", "branch_name": "refs/heads/master", "committer_date": "2015-10-23T23:39:07", "content_id": "19c66f66bf6cc0851cc6e219fd2dc214d4aab3aa", "detected_licenses": [ "MIT" ], "directory_id": "0bf5826f3dac0614440d9d639cf504cedee73665", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> int main() { int a,media; a=0; media=0; while(a<100){ a++; printf("-%d",a);} printf("\n soma de 1-100=\n"); media=(101*50); printf("%d\n",media); printf("\na divisao dessa soma por 100 = \n"); media= media/1...
2.84375
3
2024-11-18T18:39:58.175209+00:00
2023-01-17T12:57:32
55b7a3583e988eedc1362dbfea592d6c722e2b5d
{ "blob_id": "55b7a3583e988eedc1362dbfea592d6c722e2b5d", "branch_name": "refs/heads/master", "committer_date": "2023-01-17T12:57:32", "content_id": "c667faf3d622fae7a833bef44495b3aec29ec9a2", "detected_licenses": [ "Apache-2.0" ], "directory_id": "427b3b29b828f60aa06ea4cc56fedf93ee122d48", "extensio...
stackv2
#include "freertos/FreeRTOS.h" #include "freertos/semphr.h" #include <string.h> #include "esp_log.h" #include "esp_tls.h" #include "network_transport.h" #include "sdkconfig.h" TlsTransportStatus_t xTlsConnect( NetworkContext_t* pxNetworkContext ) { TlsTransportStatus_t xRet = TLS_TRANSPORT_SUCCESS; esp_tls_cf...
2.15625
2
2024-11-18T18:39:59.021241+00:00
2015-03-06T13:21:07
e369b86f540977465f018078a569c6468f68781c
{ "blob_id": "e369b86f540977465f018078a569c6468f68781c", "branch_name": "refs/heads/master", "committer_date": "2015-03-06T13:21:07", "content_id": "d28ae9749e86cc7a7ded0a7c419cf71a76e70a80", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "a886feb76097fe2ed60c62bb5a407e351a098f36", "extens...
stackv2
// -*- coding: utf-8 -*- /* * Copyright (c) 2012-2014, AMOSSYS * 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.140625
2
2024-11-18T18:39:59.349041+00:00
2021-02-02T06:24:58
580e1a08889e97374b342fdff52d9247d1646501
{ "blob_id": "580e1a08889e97374b342fdff52d9247d1646501", "branch_name": "refs/heads/master", "committer_date": "2021-02-02T06:24:58", "content_id": "1326a81dddc12edcb774e9a3de4f385503ed62ca", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b4235f6a5968640f5e2a1afe90aaebbe54ca57e7", "extensio...
stackv2
#include <zephyr.h> #include <ring_buffer.h> #include "messages.h" #include "hog_parser.h" /** Summary: * The HID-over-GATT (HOG) parser task is designed to parse the GATT Profile information * provided by a bluetooth device. * * The Zephyr BT LE GATT API's are designed to run asynchronously. To perform th...
2.0625
2
2024-11-18T18:39:59.987235+00:00
2016-10-08T21:12:53
e3eed13141a74bec617d7640c874f876b92d3ec9
{ "blob_id": "e3eed13141a74bec617d7640c874f876b92d3ec9", "branch_name": "refs/heads/master", "committer_date": "2016-10-08T21:12:53", "content_id": "b0d58258256546d22cf6e7dfc8508cef2caa8d08", "detected_licenses": [ "MIT" ], "directory_id": "7306a05327ef684090858e763812c39e9330ae4c", "extension": "c"...
stackv2
// Implementation of BInary Tree in C #include<stdio.h> #include<stdlib.h> int ncount=0; int lfcount=0; typedef struct TNODE { int data; struct TNODE *left,*right; }tnode; typedef struct { tnode *root; }tree; void insert(tree *,int ); void delete(tree *,int ); void nodecount(tnode * ); void leafcount(tnode * ); i...
3.78125
4
2024-11-18T18:40:00.612726+00:00
2020-11-26T04:01:01
df9e2dd6c78c7327833014913b64ae1e377c9f1f
{ "blob_id": "df9e2dd6c78c7327833014913b64ae1e377c9f1f", "branch_name": "refs/heads/master", "committer_date": "2020-11-26T04:01:01", "content_id": "ef72c37012cbf3e46927ca70027811e9feef1bd9", "detected_licenses": [ "MIT" ], "directory_id": "e5ceb8c8d3c94392b1925a1261af08892ea1d105", "extension": "h"...
stackv2
/* атомарные операции, T11.596-T13.155; $DVS:time$ */ #ifndef LDUS_ATOMIC_H_INCLUDED #define LDUS_ATOMIC_H_INCLUDED #include <stdint.h> #ifdef __cplusplus extern "C" { #endif #define LDUS_USE_ATOMIC #ifndef _GCC_VERSION #define _GCC_VERSION (__GNUC__ * 10000 | __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) #endif #i...
2.46875
2
2024-11-18T18:40:00.980320+00:00
2018-10-17T18:37:27
1d97103fa69765a54111973370e2635409e1fe92
{ "blob_id": "1d97103fa69765a54111973370e2635409e1fe92", "branch_name": "refs/heads/master", "committer_date": "2018-10-17T18:37:27", "content_id": "97f171fffeaecdebfe493e531b73c7f266b93211", "detected_licenses": [ "BSD-2-Clause-Views" ], "directory_id": "c536be62e0396437540fddde70d46acabe2e4142", "...
stackv2
// // ahcicomm.c // AHCI // #include <sys/ahci.h> #include <sys/kprintf.h> #include <sys/string.h> #define PAGE_TRANS_READ_WRITE 0x2ULL #define PAGE_TRANS_USER_SUPERVISOR 0x4ULL #define ATA_CMD_READ_DMA 0xC8 #define ATA_CMD_READ_DMA_EX 0x25 #define ATA_CMD_WRITE_DMA_EX 0x35 #define ATA_DEV_BUSY 0x80 #define ATA_DEV...
2.21875
2
2024-11-18T18:40:03.327714+00:00
2022-06-16T17:02:41
f6cd3624da61a7a075dbba47ffe4ede169c3143b
{ "blob_id": "f6cd3624da61a7a075dbba47ffe4ede169c3143b", "branch_name": "refs/heads/master", "committer_date": "2022-06-16T17:02:41", "content_id": "b024f8ec86ece8611e1776040ca1064d0c922ced", "detected_licenses": [ "MIT" ], "directory_id": "61166f1444017dec6f3e10b6fe40acaf8eccadb6", "extension": "h"...
stackv2
/** \file automatic-pool.h * * \brief Defines automatic pointers and automatic pools, objects that wrap * object pools and objects managed by them. These wrappers provide basic * automatic memory management. */ #ifndef UEL_AUTOMATIC_POOL_H #define UEL_AUTOMATIC_POOL_H #include "uevloop/utils/object-pool.h" ...
2.734375
3
2024-11-18T18:40:03.409694+00:00
2019-11-12T09:15:00
5f72820ecde7264ab2addfc7883683043c512ead
{ "blob_id": "5f72820ecde7264ab2addfc7883683043c512ead", "branch_name": "refs/heads/master", "committer_date": "2019-11-12T09:15:00", "content_id": "8b57506f87c1055178c3dc05998bfe5f6eb48820", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e021d69e6ce85288dab8b924cc46107f4fd057d4", "extensio...
stackv2
#include <stdio.h> #include <windows.h> #define PASSWORD "1234567" int verify_password(char *password) { int authenticated; char buffer[44]; authenticated=strcmp(password,PASSWORD); strcpy(buffer,password); return authenticated; } main() { int valid_flag=0; char password[1024]; FILE * fp; LoadLibrary("user32.d...
2.578125
3
2024-11-18T18:40:03.523130+00:00
2018-12-29T17:59:35
df747a34b3136b37d21ae54e426f30e77ea9e65c
{ "blob_id": "df747a34b3136b37d21ae54e426f30e77ea9e65c", "branch_name": "refs/heads/master", "committer_date": "2018-12-29T17:59:35", "content_id": "7d10e7f7b7d3e40e5d2049bf42116f03f07df13e", "detected_licenses": [ "MIT" ], "directory_id": "ac91240f93b701eb0f9c9cf1423ec5b19bdea188", "extension": "c"...
stackv2
#include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/time.h> #include <netdb.h> #include <stdio.h> #include <string.h> #include <math.h> #include <time.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <arpa/inet.h> #include <unistd.h> static unsigned short TI=1; i...
2.546875
3
2024-11-18T18:40:03.753308+00:00
2023-01-18T10:17:25
b98f23a251c4c60e241a7557e85abac8435e168b
{ "blob_id": "b98f23a251c4c60e241a7557e85abac8435e168b", "branch_name": "refs/heads/master", "committer_date": "2023-01-18T10:17:25", "content_id": "0172923fba836e2e364fb0be8a346c6bec3ad86b", "detected_licenses": [ "MIT" ], "directory_id": "4153021001f308549e2c8a3592a95ca80762f856", "extension": "c"...
stackv2
/******************************** * *** MPI ln(x) code. *** * * * * Taylor series representation * * of the trigonometric ln(x). * * * * Author: Carlos R. Morrison * * * * Date: 1/10/2017 * ***********...
3.046875
3
2024-11-18T18:41:30.830321+00:00
2023-05-03T00:06:45
af6483ff44a37e647e28cd18f236c14f1fd7926b
{ "blob_id": "af6483ff44a37e647e28cd18f236c14f1fd7926b", "branch_name": "refs/heads/master", "committer_date": "2023-05-03T00:06:45", "content_id": "741305bfa3b247707d2bdf2e8d13816b0ff37bcd", "detected_licenses": [ "MIT" ], "directory_id": "61cf74b5c2f3a4438839d11aa848706316e47f52", "extension": "c"...
stackv2
#include "acutest.h" #include "hsluv.h" #include "snapshot.h" #define EPSILON 0.00000001 #define ABS(x) ((x) >= 0 ? (x) : -(x)) #define TEST_CHANNEL(name, produced, expected) \ do { \ ...
2.21875
2
2024-11-18T18:41:31.182709+00:00
2018-05-04T17:15:59
676c8b6e9d12a5c39e4460f42f1bf78f8dea0274
{ "blob_id": "676c8b6e9d12a5c39e4460f42f1bf78f8dea0274", "branch_name": "refs/heads/master", "committer_date": "2018-05-04T17:15:59", "content_id": "b6b93fecc7258adcd71e2df3c31c71ea3a537df7", "detected_licenses": [ "MIT-Modern-Variant" ], "directory_id": "05ff77e31ebaf6b8a5619994bed17870faac17ef", "...
stackv2
#include "syscall.h" #include "stdlib.h" /* * Purpose is to test if calling halt does not stop nachos * machine execution, if called by other than root process. * * Creates child process joining to it. Child process simply * calls halt, which should child process execution to return * immediately, but not to hal...
3.046875
3
2024-11-18T18:42:06.945691+00:00
2012-01-29T23:53:42
ac1041e02b108c25e525e61cf1cd0377c2378bc5
{ "blob_id": "ac1041e02b108c25e525e61cf1cd0377c2378bc5", "branch_name": "refs/heads/master", "committer_date": "2012-01-29T23:53:42", "content_id": "778e59cb4965afb70748a60866b481a35d89833d", "detected_licenses": [ "MIT" ], "directory_id": "b642c2ede0f494f197679090ea0ac8e849a00da4", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "config.h" #include "bytes.h" #include "barf.h" #define INITIAL_SIZE 16 bytes_t *bytes_make() { bytes_t *self; if ((self = (bytes_t *)malloc(sizeof(bytes_t))) == NULL) { PRINT_ERROR(MSG_OUT_OF_MEMORY); abort(); } if ((self->p = (uint8_t *)mal...
3.171875
3
2024-11-18T18:42:07.024085+00:00
2023-08-31T17:08:02
3b4054ce0ca1e31ea857a2c37a4fd334332fab20
{ "blob_id": "3b4054ce0ca1e31ea857a2c37a4fd334332fab20", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T17:08:02", "content_id": "4f4bcacbd2edf24e04cde41b54e78e05e6850581", "detected_licenses": [ "MIT" ], "directory_id": "cce9747d80ed880b97b509660a3c6a7f733dd1c0", "extension": "c"...
stackv2
/* 7.10. 예제. 포인터를 사용한 문자열 출력 제어 : 포인터_문자열출력.c */ #include <stdio.h> int main(void) { char* p = "안녕하세요. 반갑습니다."; // 포인터 변수 p를 선언하고, 문자열을 가리키도록 초기화 printf("%s\n", p); // p가 가리키는 문자열 전체를 출력 printf("%s\n", p + 4); // p가 가리키는 문자열에서 4번째 인덱스부터 출력 printf("%s\n", p + 12); // p가 가리키는 문자열에서 12번째...
3.828125
4
2024-11-18T18:42:07.078166+00:00
2022-06-10T10:23:22
92f8a2ff3acf9bd7b50d3bcaf72c588b95a64ef2
{ "blob_id": "92f8a2ff3acf9bd7b50d3bcaf72c588b95a64ef2", "branch_name": "refs/heads/master", "committer_date": "2022-06-10T10:23:22", "content_id": "79790962591ca9dce154ac0c3be0278c214de4f5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ae6eabbec61d748ea2cad90cd30381c11b0afe41", "extensio...
stackv2
#ifndef COLOR_H #define COLOR_H struct Color { float r, g, b; Color(); Color(float l); Color(float r, float g, float b); virtual ~Color(); void clamp(float min = 0.0f, float max = 1.0f); void applyGammaCorrection(float exposure, float gamma); Color & operator=(const Color & c); ...
2.5
2
2024-11-18T18:42:08.461475+00:00
2020-05-31T18:17:58
51b3ab3c6b9bf0517f33728997f86847d17233f5
{ "blob_id": "51b3ab3c6b9bf0517f33728997f86847d17233f5", "branch_name": "refs/heads/master", "committer_date": "2020-05-31T18:18:22", "content_id": "e101261990379ad24233e63db21c33b49cee2c9f", "detected_licenses": [ "MIT" ], "directory_id": "3e58378abbb2ee7c85bf0c5ee99ac3bcf661bedc", "extension": "c"...
stackv2
#include <stdbool.h> #include <stdlib.h> #include <string.h> #include "expr.h" #include "logger.h" #include "parser.h" #include "scanner.h" #include "stmt.h" #define MAX_CALL_ARGS 254 struct tokenlist { Token *curr; }; static Stmt *declaration(struct tokenlist *tlist); static Stmt *class_declaration(struct toke...
2.421875
2
2024-11-18T18:42:08.546341+00:00
2021-05-28T10:51:34
2986c4bff70b6dab86965a8e10d093e8e10ef5b7
{ "blob_id": "2986c4bff70b6dab86965a8e10d093e8e10ef5b7", "branch_name": "refs/heads/main", "committer_date": "2021-05-28T10:51:34", "content_id": "752c0b75e993b571338cadc8599269981932df20", "detected_licenses": [ "MIT" ], "directory_id": "c9771ef127a73b4af5200ce0a9d9fd75d85661c9", "extension": "c", ...
stackv2
#include <unistd.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> static void encodeblock( unsigned char *in, unsigned char *out, int len ); #define handle_error(msg) \ { perror(msg); exit(EXIT_FAILURE); } //table of encoding static con...
2.765625
3
2024-11-18T18:42:08.642778+00:00
2020-07-23T23:41:55
1d77489fc3111a5ce868e56d77fea1538ef5dd69
{ "blob_id": "1d77489fc3111a5ce868e56d77fea1538ef5dd69", "branch_name": "refs/heads/master", "committer_date": "2020-07-23T23:41:55", "content_id": "fc6fe92f18ce7400adebb68b312fbd4d6e655c09", "detected_licenses": [ "MIT" ], "directory_id": "3a813bc2086d74adf75ae470426a7755cb58e3a3", "extension": "c"...
stackv2
#include"stdio.h" #include"stdlib.h" #include"sys/types.h" #include"sys/socket.h" #include"string.h" #include"netinet/in.h" #include"netdb.h" #include"pthread.h" #define PORTA 4444 #define BUF_SIZE 2000 void * receberMensagem(void * socket) { int sockfd, recebeu; char buffer[BUF_SIZE]; sockfd = ...
3.125
3
2024-11-18T18:42:08.725890+00:00
2013-10-16T01:57:43
62024c57af08d86f503e91a2ca3c6bcdf1a76698
{ "blob_id": "62024c57af08d86f503e91a2ca3c6bcdf1a76698", "branch_name": "refs/heads/master", "committer_date": "2013-10-16T01:57:43", "content_id": "f84def8472c21693ef1910da00a78fa3111334de", "detected_licenses": [ "MIT" ], "directory_id": "3ab19d1f52c29120d8536c2648fd7b9f61346041", "extension": "h"...
stackv2
/* SMAL Copyright (c) 2011 Kurt A. Stephens */ #ifndef _SMAL_FINALIZER_H #define _SMAL_FINALIZER_H typedef struct smal_finalizer smal_finalizer; struct smal_finalizer { void *referred; void *data; void (*func)(smal_finalizer *finalizer); smal_finalizer *next; }; smal_finalizer * smal_finalizer_create(vo...
2.15625
2
2024-11-18T18:42:08.849755+00:00
2019-04-04T09:41:41
100c62f0f0cac6791c8eee9e9ddd9dac2025911a
{ "blob_id": "100c62f0f0cac6791c8eee9e9ddd9dac2025911a", "branch_name": "refs/heads/master", "committer_date": "2019-04-04T09:41:41", "content_id": "b9cb6ad8b42b24ac349a0427a4a3bd43372c4837", "detected_licenses": [ "MIT" ], "directory_id": "7d2808498b4cc2ea5317f024aac6d8a6e39b7549", "extension": "c"...
stackv2
/* Name: Shyamal Vaderia ID: 2015A7PS0048P */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include "_SET.h" #include "_LEXER.h" #include "_LEXERDEF.h" #include "_PARSERDEF.h" #include "_PARSER.h" #include "_STACK.h" #include "_LINKEDLIST.h" #include "_SEMANTIC.h" #include "_SEMANTICDEF.h" int ...
2.53125
3
2024-11-18T18:42:09.169094+00:00
2016-05-12T04:16:32
72dbf26caab0ac9a8b4e8a759b098f2df044b6b9
{ "blob_id": "72dbf26caab0ac9a8b4e8a759b098f2df044b6b9", "branch_name": "refs/heads/master", "committer_date": "2016-05-12T04:16:32", "content_id": "bde1508dba49227acac35d362554065c2bd96793", "detected_licenses": [ "MIT" ], "directory_id": "e0815a8a894680859a8783a10080a1c76fce1911", "extension": "c"...
stackv2
#pragma config(I2C_Usage, I2C1, i2cSensors) #pragma config(Sensor, I2C_1, rightIEM, sensorQuadEncoderOnI2CPort, , AutoAssign ) #pragma config(Sensor, I2C_2, leftIEM, sensorQuadEncoderOnI2CPort, , AutoAssign ) #pragma config(Motor, port1, rightMotor, tmotorVex393_HBridge, openLoop, en...
2.59375
3
2024-11-18T18:42:09.335024+00:00
2020-06-03T18:24:28
5f70bf4c7ba9f7ebfe4aac9f7d34034a90458e1c
{ "blob_id": "5f70bf4c7ba9f7ebfe4aac9f7d34034a90458e1c", "branch_name": "refs/heads/master", "committer_date": "2020-06-03T18:24:28", "content_id": "102a7431e021ef4299f6a1931093e76ce8d5c294", "detected_licenses": [ "Apache-2.0" ], "directory_id": "99b709e62932685a3d438e7b3d021c25ca7e07a2", "extensio...
stackv2
#include <stdio.h> #include <dirent.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> #define BUF_LEN 4096 char buff[BUF_LEN]; char b16[BUF_LEN * 2 + 1]; void b16encode(char *input, int input_len, char *output, int *output_len) { int i; for (i = 0; i < input_len; i++) { output[2 * i] = (input[i] & ...
2.921875
3
2024-11-18T18:42:09.403825+00:00
2018-10-20T19:29:08
652cecec68b6c49e9d4b03c2c8fb41106e2cfa23
{ "blob_id": "652cecec68b6c49e9d4b03c2c8fb41106e2cfa23", "branch_name": "refs/heads/master", "committer_date": "2018-10-20T19:29:08", "content_id": "966600cb2f9c1b6a4fb6afd37417d3f9b6701690", "detected_licenses": [ "MIT" ], "directory_id": "2eda0079d3e553cec427c962d96f18ae2673874d", "extension": "h"...
stackv2
#ifndef __LIB_PAXOS_MESSAGE_H #define __LIB_PAXOS_MESSAGE_H #include "paxos.h" #include <stdlib.h> typedef enum { prepare_reqs = 0x01, prepare_acks = 0x02, accept_reqs = 0x04, accept_acks = 0x08, repeat_reqs = 0x10, submit = 0x20, leader_announce = 0x40, /*proposer leader的决议宣布协议,未实现*/ alive_ping = 0x41...
2.171875
2
2024-11-18T18:42:09.697450+00:00
2022-05-30T16:01:50
703a048df72c2d7d8f234e7e67156b76cc24d2c3
{ "blob_id": "703a048df72c2d7d8f234e7e67156b76cc24d2c3", "branch_name": "refs/heads/master", "committer_date": "2022-05-30T16:01:50", "content_id": "bd5d5abaa2526ef776ff8e40a39afd98a97e06c9", "detected_licenses": [ "MIT" ], "directory_id": "3b8bbad6b22b32c27bfc71223809690f311e503b", "extension": "c"...
stackv2
#include "../bios/devices.h" #include <libtinyc.h> #include <stdint.h> char inputbuf[128]; void load_color_palette() { static uint8_t default_palette[8][3] = { { 0, 0, 0 }, // black { 200, 0, 0 }, // red { 0, 200, 0 }, // green { 200, 200, 0 }, // yellow { 0, 0, 200 }, // b...
2.65625
3
2024-11-18T18:42:09.999825+00:00
2016-08-31T08:29:04
7e6e655777e9ae89ad62e1a6519ee53d0135fdc6
{ "blob_id": "7e6e655777e9ae89ad62e1a6519ee53d0135fdc6", "branch_name": "refs/heads/master", "committer_date": "2016-08-31T08:29:04", "content_id": "9b3c7a2d20f6dfe06c4970c8e70ca606674affe8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9aeeca8c18d79b09af8792a3279c80597e30f46a", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include "hashmap.h" #include "coumap/cmap.h" #include "coumap/util.h" #include "coumap/hash.h" typedef struct hashmap { struct cmap cmap; struct cmap_position cmap_position; int (*data_cmp)(void * d1, void * d2); void (*data_free)(void * data); } hashmap; typedef struc...
2.8125
3
2024-11-18T18:42:10.285935+00:00
2018-07-05T17:04:28
f2c3b3ca3b17ee9d9449840136acacb77adda0d1
{ "blob_id": "f2c3b3ca3b17ee9d9449840136acacb77adda0d1", "branch_name": "refs/heads/master", "committer_date": "2018-07-05T17:04:28", "content_id": "1ebfc8946b4d0cf631c7dd3413a5a08b5c624879", "detected_licenses": [ "MIT" ], "directory_id": "57190108fd8fbb39518fcc028e32e95122998998", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <fcntl.h> #include <string.h> #include <sys/times.h> #include <sys/resource.h> #include <sys/types.h> #include <sys/stat.h> #include <syslog.h> #include <sys/wait.h> int main(int argc, char **argv) { if (!argv[1]) return ...
2.59375
3
2024-11-18T18:42:11.289643+00:00
2019-10-03T17:25:29
1c892988394aab6863edadc1849d8ff6f2b4d13e
{ "blob_id": "1c892988394aab6863edadc1849d8ff6f2b4d13e", "branch_name": "refs/heads/master", "committer_date": "2019-10-03T17:25:29", "content_id": "55a0a925250f7d7f7f2e5cdb2682b57577da3bb0", "detected_licenses": [ "MIT" ], "directory_id": "2950bcbfb7fda224103fe3269f5b65627bfcaaa7", "extension": "c"...
stackv2
#include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/interrupt.h> #include <asm/io.h> #include "address_map_arm.h" #include "interrupt_ID.h" #define FPGA_tmr_CoReg 1 #define FPGA_tmr_Counter_L 2 #define FPGA_tmr_Counter_H 3 #define JP2_direction 1 #define JP2_imask 2 #de...
2.28125
2
2024-11-18T18:42:11.350493+00:00
2017-05-24T13:09:42
6d0f65b73cb7c2a5a3dfd8571718ec3e132c326f
{ "blob_id": "6d0f65b73cb7c2a5a3dfd8571718ec3e132c326f", "branch_name": "refs/heads/master", "committer_date": "2017-05-24T13:09:42", "content_id": "d9c0c263eea3a470e251c6d3655a7244abcc9cf7", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "41dcdf3a850f6ee21b64163fa483d59d0134cf4f", "extens...
stackv2
/** * \file * Header file for the Contiki netflow engine * * \author * Ndizera Eddy <eddy.ndizera@student.uclouvain.be> * Ivan Ahad <ivan.abdelahad@student.uclouvain.be> */ /*---------------------------------------------------------------------------*/ #include "contiki.h" #include "lib/list....
2.28125
2
2024-11-18T18:42:12.235181+00:00
2020-08-07T01:51:16
559a0a14e4ac26e42202cc43932d244fbe731af4
{ "blob_id": "559a0a14e4ac26e42202cc43932d244fbe731af4", "branch_name": "refs/heads/master", "committer_date": "2020-08-07T01:51:16", "content_id": "6f8265e7226351a5c34ea7d1ae8e022dd589e69e", "detected_licenses": [ "MIT" ], "directory_id": "feb08986f99162d579f3350bd1d2663b188d1496", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> int main() { int i=0; char nome[20]; float compras, bonus; for(i=0; i<150; i++) { printf("Qual o nome? "); scanf(" %s", nome); printf("Qual o valor das compras no ano passado? "); scanf("%f", &compras); if(compras > 50000...
3.25
3
2024-11-18T18:42:12.863881+00:00
2017-01-20T15:00:57
b778814a206d035394afd0bb2dc01733f026e74a
{ "blob_id": "b778814a206d035394afd0bb2dc01733f026e74a", "branch_name": "refs/heads/master", "committer_date": "2017-01-20T15:00:57", "content_id": "d4878da4fc1451f08a52f30ec93025531fc4d393", "detected_licenses": [ "MIT" ], "directory_id": "786d856d89eca33ebca0a47612d7e7f51e7fb38d", "extension": "c"...
stackv2
#include "mjhz.h" #include <stdlib.h> #include <string.h> #include <stdio.h> #include <math.h> #include "mj_algo.h" void _reset_wait_req(mjhz_t* mj) { int i; for (i = 0; i < mj->player_num; ++i) { mj->players[i].wait_chi = 0; mj->players[i].wait_peng = 0; mj->players[i].wait_gang = 0; ...
2.140625
2
2024-11-18T18:42:13.140637+00:00
2017-03-22T16:27:48
0afc604f6dccfc75e1cfa88b56d470bbd0bb466e
{ "blob_id": "0afc604f6dccfc75e1cfa88b56d470bbd0bb466e", "branch_name": "refs/heads/master", "committer_date": "2017-03-22T16:27:48", "content_id": "ca69c633be1d2d25bb22725dc0c2edbdf26b659d", "detected_licenses": [ "MIT" ], "directory_id": "7bed2823953b06edfa7cb34a38ea90f965811e9e", "extension": "c"...
stackv2
#include "test.h" #include <limits.h> static void fill_process(struct s_process *p, int carry, int valRegistre){ int i; for (i = 0; i < 16; i++) p->reg[i] = valRegistre; p->carry = carry; } static void test_ld_ok(struct s_process *p){ apply_ld(p, 130, 1); if (p->reg[1] == 130 && p->carry == 1) printf("%s...
2.734375
3
2024-11-18T18:42:14.168139+00:00
2019-03-05T18:50:49
49e6e872da9c22b32021e6c8e31a15548e4726d0
{ "blob_id": "49e6e872da9c22b32021e6c8e31a15548e4726d0", "branch_name": "refs/heads/mono", "committer_date": "2019-03-05T18:50:49", "content_id": "bb73c2b58f5da3f83d9e80757e952a89ab7ac467", "detected_licenses": [ "MIT" ], "directory_id": "c1f89beed3118eed786415e2a6d378c28ecbf6bb", "extension": "c", ...
stackv2
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // /*===================================================================== ** ** Source: test1.c ** ** Purpose: Tests the PAL implementation of the _makepath funct...
2.765625
3
2024-11-18T18:42:14.251496+00:00
2016-10-12T04:34:02
c4291f3ab5918bcbe8630fc9e48b60da4313e5dd
{ "blob_id": "c4291f3ab5918bcbe8630fc9e48b60da4313e5dd", "branch_name": "refs/heads/master", "committer_date": "2016-10-12T04:34:02", "content_id": "dd5dc4a37b1ae75cdd7986aea22c1392834c42a4", "detected_licenses": [ "MIT" ], "directory_id": "03e009481a03050883998c763850f19edc8ecde6", "extension": "c"...
stackv2
#include <tinydb.h> #include <pager.h> #include <stdio.h> #include <memory.h> #include <string.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <assert.h> #include <stdio.h> #include <errno.h> /** * typedef struct __Page {...} Page; * Modify the page struct only with pagerPageXXX * Because Pag...
2.671875
3
2024-11-18T18:42:14.440281+00:00
2023-01-07T16:05:14
77af9d156ac52d2d80f7521c57d9444939b28ab9
{ "blob_id": "77af9d156ac52d2d80f7521c57d9444939b28ab9", "branch_name": "refs/heads/master", "committer_date": "2023-01-07T16:05:14", "content_id": "0a584221ed37b1960d49f3e1f68371c62aa80286", "detected_licenses": [ "MIT" ], "directory_id": "e9931a22c88885a0dd260e6f5d0a219bf176cb67", "extension": "c"...
stackv2
#include <stdio.h> #include <comlin.h> /** * Hierarchically show results for options. */ void display_options( cl_cmd_t cmd ) { cl_cmd_t subcmd; cl_opt_p opts; cl_opt_t o; printf( "Options for: %s\n", cmd->name ); opts = cmd->opts; while ( *opts ) { o = *opts; printf( " G...
2.71875
3
2024-11-18T18:42:15.162168+00:00
2021-06-19T13:15:05
0b055077e5f29ea02591480181e93c3ff9b57b7e
{ "blob_id": "0b055077e5f29ea02591480181e93c3ff9b57b7e", "branch_name": "refs/heads/main", "committer_date": "2021-06-19T13:15:05", "content_id": "41ef723ac675fee485c67831554637dc25c5b9f8", "detected_licenses": [ "MIT" ], "directory_id": "bcb98ef460f807b2a8fb25eff29f7c4cb3c64227", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include "llist.h" int main() { No *l = NULL; printf("List is empty: %d \n", llist_is_empty(l)); insert_on_top(&l, 15); insert_on_top(&l, 30); insert_on_top(&l, 45); insert_end(l, 0); print_elements(l); printf("Do 15 exists on our List? %d\n", exis...
3.4375
3
2024-11-18T18:42:15.646802+00:00
2020-01-11T04:36:08
cadfbca7fc8d52f0a9251e9e29d07a46b8cfa838
{ "blob_id": "cadfbca7fc8d52f0a9251e9e29d07a46b8cfa838", "branch_name": "refs/heads/master", "committer_date": "2020-01-11T04:36:08", "content_id": "9acdad612e94603f7ed59805d4b9885797b7e82d", "detected_licenses": [ "MIT" ], "directory_id": "365c02cf747784ba0089e3bd6090131076a96417", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include "utils.h" void error(const char *fmt, ...) { va_list ap; va_start(ap, fmt); fprintf(stderr, "error: "); vfprintf(stderr, fmt, ap); fprintf(stderr, "\n"); va_end(ap); } void *xmalloc(size_t size) { void *ptr = malloc(size)...
2.59375
3
2024-11-18T18:42:16.055157+00:00
2014-06-20T18:27:32
1a6d6cf7a0ddfb279490ef719e8834b1e1c24f81
{ "blob_id": "1a6d6cf7a0ddfb279490ef719e8834b1e1c24f81", "branch_name": "refs/heads/master", "committer_date": "2014-06-20T18:27:32", "content_id": "7a789e764c24e94d06d59bf636461be78038db36", "detected_licenses": [ "MIT" ], "directory_id": "5324e7a7e11bb84d0a786116e6354eb366f4c3eb", "extension": "h"...
stackv2
#ifndef _CSR_USER_STRUCTURES_H #define _CSR_USER_STRUCTURES_H // Sample algorithm templates. Uncomment whichever (only the one) you want to use. //#define VWC_BFS 1 //#define VWC_SSSP 1 #define VWC_PR 1 // User's Compile-time constant definitions #define VWC_BFS_INF 1073741824 #define VWC_SSSP_INF 1073741824 #define ...
2.09375
2
2024-11-18T18:42:16.709124+00:00
2023-08-09T18:19:32
c05e4aa8a6b24eb2b13d6e94c9a8118bfac25e39
{ "blob_id": "c05e4aa8a6b24eb2b13d6e94c9a8118bfac25e39", "branch_name": "refs/heads/master", "committer_date": "2023-08-09T18:19:32", "content_id": "26e023fd58985c8eb2383805cba480d8d0d781de", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a4a96286d9860e2661cd7c7f571d42bfa04c86cf", "extensio...
stackv2
/* * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include "freertos/FreeRTOS.h" #include "esp_private/lp_periph_ctrl.h" #include "hal/lp_periph_clk_ctrl_ll.h" static portMUX_TYPE lp_periph_spinlock = portMUX_INITIALIZER_UNLOCKED; static uint8_t ref_...
2.078125
2
2024-11-18T18:42:16.879349+00:00
2017-09-19T20:43:30
4436740438899b18aa690c379efae46b5fd74d4a
{ "blob_id": "4436740438899b18aa690c379efae46b5fd74d4a", "branch_name": "refs/heads/master", "committer_date": "2017-09-19T20:43:30", "content_id": "905705a89d6b9ad76855ec4ddaf4acdf17df3a21", "detected_licenses": [ "Apache-2.0" ], "directory_id": "561dd18bf9052d8f3816d79ac84b4d3bd86f5dff", "extensio...
stackv2
// Array of Pointers.cpp : Defines the entry point for the console application. // #include <stdio.h> #include <conio.h> #include <stdlib.h> void main() { int *arr[10]; *arr=(int*)malloc(20*sizeof(int)); }
2.34375
2
2024-11-18T18:42:17.757775+00:00
2021-03-26T06:17:57
7defaee940ba7a1374efc30c816b24c0bacf23dd
{ "blob_id": "7defaee940ba7a1374efc30c816b24c0bacf23dd", "branch_name": "refs/heads/master", "committer_date": "2021-03-26T06:17:57", "content_id": "4a60b763c2559ff1b70addf5b0d0616fa2ab0fd6", "detected_licenses": [ "MIT" ], "directory_id": "5a881bee87d6090d1d92e171b5a210864fbc05ea", "extension": "c"...
stackv2
#include "io.h" #include "trie.h" #include "word.h" #include <stdio.h> void encode(int infile, int outfile) { TrieNode *root = trie_create(); TrieNode *curr_node = root; TrieNode *prev_node = NULL; Symbol curr_sym = 0; Symbol prev_sym = 0; Code next_code = START; while (read_sym(infile, &curr_sym)) { ...
2.75
3
2024-11-18T18:42:17.892037+00:00
2021-10-07T18:20:06
2593f910790b5582d277b79b5a7582858404d899
{ "blob_id": "2593f910790b5582d277b79b5a7582858404d899", "branch_name": "refs/heads/main", "committer_date": "2021-10-07T18:20:06", "content_id": "f56f91c07e227d65734ba07849e615fe1713a1a8", "detected_licenses": [ "MIT" ], "directory_id": "e34e5e09dd9377e100b5d84a968f1cb80eb1458a", "extension": "c", ...
stackv2
// Insertion Sort Algorithm, Sorting array in ascending order #include <stdio.h> void Inserion_Sort(int arr[],int n) { int i, j, key; //insertion sort algorithm for (int i = 1; i < n; i++) { key = arr[i]; j = i - 1; while (j >= 0 && arr[j] > key) { arr[j + 1] =...
4.1875
4
2024-11-18T18:42:18.104667+00:00
2017-11-15T12:25:42
98ec606b514d758253efac08b7cefed4d86b7d08
{ "blob_id": "98ec606b514d758253efac08b7cefed4d86b7d08", "branch_name": "refs/heads/master", "committer_date": "2017-11-15T12:25:42", "content_id": "cd5939a328379b8fb96f7652189c68651b26b3ec", "detected_licenses": [ "MIT" ], "directory_id": "40aab6b8517509047df52caa4d9cbb63097ef767", "extension": "c"...
stackv2
#include "main.h" void main() { TypeDefSudoku Sudoku,Solution; clock_t t_begin, t_end; InitSudoku(&Sudoku); InitSudoku(&Solution); USER_SetSudoku(&Sudoku); system("cls"); printf("Puzzle: \n"); PrintSudoku(Sudoku); system("pause"); t_begin = clock(); if(SudokuSearchSolution(Sudoku,&Solution)==TRUE) { prin...
2.5
2
2024-11-18T18:42:18.859561+00:00
2017-05-03T10:25:09
064afc27423998320dcc8b07e34f5d49c879a1bc
{ "blob_id": "064afc27423998320dcc8b07e34f5d49c879a1bc", "branch_name": "refs/heads/master", "committer_date": "2017-05-03T10:25:09", "content_id": "1aa04f1c3f1c90912d40fec385b0cb4d9d2dc99c", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "dd9b92658e419b90cd81c418498a40e2737a5787", "extens...
stackv2
/* * Top-level function of the model. * 1. initialization * 2. loop * 3. end of the simulation * * author: Nicolas Van der Noot */ #include "main_simulation.h" /* * Main function */ #ifdef CXX int C_main(int argc, char const *argv[]) #else int main(int argc, char const *argv[]) #endif { // variables ...
2.96875
3
2024-11-18T18:42:19.232912+00:00
2017-03-22T01:58:33
df650f08bbff8dbb1ecfe60fa919a355bd356040
{ "blob_id": "df650f08bbff8dbb1ecfe60fa919a355bd356040", "branch_name": "refs/heads/master", "committer_date": "2017-03-22T01:58:33", "content_id": "79c2f6d9328bfb57f64b95100bdf895b8dabdd8c", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "fc1bfb27d05426f3ef63f23d45c9cb8ffdcb9332", ...
stackv2
/* Copyright 2016-present Samsung Electronics Co., Ltd. and other contributors * * 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 * * U...
2.25
2
2024-11-18T18:42:19.293596+00:00
2015-09-12T20:13:55
0d0fdfacf3b682dd561ca9c2653c9954195108cc
{ "blob_id": "0d0fdfacf3b682dd561ca9c2653c9954195108cc", "branch_name": "refs/heads/master", "committer_date": "2015-09-12T20:13:55", "content_id": "25d48d7302bd77f11295012508e72c4275ba0763", "detected_licenses": [ "Apache-2.0" ], "directory_id": "27b4548656fe58780c5d25abca71fe032dc0d8da", "extensio...
stackv2
/* Sunfounder 84x48 lcd shield for rasbperry pi http://www.sunfounder.com/index.php?c=show&id=66&model=PCD8544%20Mini%20LCD ================================================================================= Name : PCD8544.h Version : 0.1 Copyright (C) 2010 Limor Fried, Adafruit Industries CORTEX-M3 ver...
2.03125
2
2024-11-18T18:42:19.711260+00:00
2023-08-05T20:08:36
e6c31e2edbab5956674ac34b03187e840eae45ca
{ "blob_id": "e6c31e2edbab5956674ac34b03187e840eae45ca", "branch_name": "refs/heads/master", "committer_date": "2023-08-05T20:08:36", "content_id": "cc7453d43181dbdf57ab1c1d5cf4aee00f9b60e4", "detected_licenses": [ "MIT" ], "directory_id": "9f7bc8df3f30f2ec31581d6d2eca06e332aa15b4", "extension": "c"...
stackv2
// // File: test_semiRtree.C // Author: Ke Yi <yike@cs.duke.edu> // // Test file for class AMI_semiRtree. // #include <iostream> #include <fstream> #include "app_config.H" #include <cpu_timer.H> #include "ami_PRtree.H" #include <sys/types.h> #include <time.h> int numleaves; int main(int argc, char **argv) { ...
2.03125
2
2024-11-18T18:42:20.249577+00:00
2022-11-25T14:31:40
f21eb8f7ac22a6d640e767eaa48f2f06ad909ea1
{ "blob_id": "f21eb8f7ac22a6d640e767eaa48f2f06ad909ea1", "branch_name": "refs/heads/main", "committer_date": "2022-11-25T14:31:40", "content_id": "6952b7abc710ce84387a491d193f490c32ecac72", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c6bbd226758134f7057e381234b14ab0e5f19410", "extensio...
stackv2
/* unrif.c - medium to low level routines to read in an Amiga/Zoetrope rif format file. (and ANIM op 5) */ #include "stdtypes.h" UBYTE *decode_vcolumn(UBYTE *comp, UBYTE *plane, int BytesPerRow) { int op_count; BYTE op; UBYTE data; op_count = *comp++; while (--op_count >= 0) { op = *comp++; if (op&0x80) {...
2.5625
3
2024-11-18T18:42:20.444620+00:00
2014-01-26T17:26:11
fedc9005465977d2ad654f252edb2e5db00efc14
{ "blob_id": "fedc9005465977d2ad654f252edb2e5db00efc14", "branch_name": "refs/heads/master", "committer_date": "2014-01-26T17:26:11", "content_id": "d7d87e45f5c6b51ab4d8ab3d694ad38d96ea793a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "7bdf58f25e4f5d71f3c7e8a1985491278cce1fb2", "extens...
stackv2
/* * context_save.c -- write out the updated context file * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include <h/mh.h> #include <h/signals.h> /* * static prototypes */ static int ...
2.625
3
2024-11-18T18:42:21.039575+00:00
2016-05-16T15:42:56
f57d294f64cae372171941c5e2d13c986e4e8107
{ "blob_id": "f57d294f64cae372171941c5e2d13c986e4e8107", "branch_name": "refs/heads/master", "committer_date": "2016-05-16T15:42:56", "content_id": "c3e631e92d8f609922a63489d02d78ac52a767cb", "detected_licenses": [ "PostgreSQL" ], "directory_id": "8b80d625317d3463ea2a6928c2a0ffa7a3f03abf", "extensio...
stackv2
#include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <arpa/inet.h> #include <signal.h> #include <unistd.h> #include "postgres.h" #include "postmaster/bgworker.h" #include "raft.h" #include "util.h" #include "state.h" #include "worker.h" #define MAX_CLIENTS 1024 #define LISTEN_QUEUE_SIZE...
2.28125
2
2024-11-18T18:42:21.398265+00:00
2019-11-18T05:37:07
0a2c22c98b01f5b10c8c15ef69fe77068d916f78
{ "blob_id": "0a2c22c98b01f5b10c8c15ef69fe77068d916f78", "branch_name": "refs/heads/master", "committer_date": "2019-11-18T05:37:07", "content_id": "8e126a7a449a5dd103b76c1d717aefb3fedef32e", "detected_licenses": [ "MIT" ], "directory_id": "a08fc752ee8d021e734b17d2e9df68b4fc35b89a", "extension": "h"...
stackv2
#ifndef _MM_H #define _MM_H #include "peripherals/base.h" #include "sched.h" // Virtual addresses in ARM 64 only take 48 bits into consideration. Here, the // least significant 48 bits are set as 0, and the remaining 16 bits are marked // as 1. The most significant 16 bits (all 1s) are ignored for address // calculat...
2.5625
3
2024-11-18T18:42:21.708795+00:00
2014-12-11T04:37:26
07cca2a82c4ab630776f61770d6a92b477083105
{ "blob_id": "07cca2a82c4ab630776f61770d6a92b477083105", "branch_name": "refs/heads/master", "committer_date": "2014-12-11T04:37:26", "content_id": "244499f562ff4e63bdfc9e82a55e03890a3e2e28", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "0489b12736da0baedddbb42e7d58ab630d73db3e", "extens...
stackv2
/* Copyright 2012-2013 Dietrich Epp. This file is part of SGLib. SGLib is licensed under the terms of the 2-clause BSD license. For more information, see LICENSE.txt. */ #include "sg/error.h" #include "sg/log.h" #include "sg/opengl.h" #include <stdarg.h> #include <stdio.h> struct sg_opengl_error { unsigned...
2.3125
2
2024-11-18T18:42:21.924272+00:00
2019-09-15T16:16:10
2d5d0b72ed2c00a3d42819187d2ff13e394a352f
{ "blob_id": "2d5d0b72ed2c00a3d42819187d2ff13e394a352f", "branch_name": "refs/heads/master", "committer_date": "2019-09-15T16:16:10", "content_id": "01568c02b91ec0f4ce4b69af8a818514e9405cd0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c1c7674c30d3e337efe48ed6311563520ea1f852", "extensio...
stackv2
// // array_queue.c // c_data_structure // // Created by 王显朋 on 2019/6/10. // Copyright © 2019年 wongxp. All rights reserved. // #include <stdio.h> #include <stdlib.h> #define MAXLEN 5 static int var[MAXLEN]; static int head = 0; static int tail = 0; void enqueue(int c); int dequeue(void); void list(void); int...
3.328125
3
2024-11-18T18:42:22.146624+00:00
2016-10-15T17:52:25
89c90d10b0f2d536effdea8b6d63aaf0a862efc1
{ "blob_id": "89c90d10b0f2d536effdea8b6d63aaf0a862efc1", "branch_name": "refs/heads/master", "committer_date": "2016-10-15T17:52:25", "content_id": "01ec3d0f2021cbaac4acbecc997486b033073b9b", "detected_licenses": [ "Apache-2.0" ], "directory_id": "84a97f328f6194b543c1b0c5eae306d5bc9f61aa", "extensio...
stackv2
#include <pthread.h> #include <stdio.h> #include <stdlib.h> #define DEBUG 0 struct merge_data { int i; int j; int *data; }; void mergesort(void *data) { struct merge_data *value = (struct merge_data*)data; struct merge_data right_side; struct merge_data left_side; int i, j, k, middle, vector...
3.3125
3
2024-11-18T19:39:16.231065+00:00
2019-10-14T06:28:25
f249384552cfd3bd07cf676c054fe4a46e5cd3cc
{ "blob_id": "f249384552cfd3bd07cf676c054fe4a46e5cd3cc", "branch_name": "refs/heads/master", "committer_date": "2019-10-14T06:28:25", "content_id": "0fef102feaa26821f6b791897dd63d13bf4ba0a9", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "be4c8ac930f6264989751d4f91befa3731cc39cc", "extens...
stackv2
#include <stdint.h> #include <stdbool.h> #include <errno.h> #include <stdio.h> #include "kernel_init.h" #include "thread.h" #include "irq.h" #ifdef MODULE_AUTO_INIT #include "auto_init.h" #endif #include "periph/pm.h" kernel_pid_t main_thread_pid; static char main_stack[(THREAD_STACKSIZE_DEFAULT * 16) + THREAD_EXTR...
2.40625
2
2024-11-18T19:39:16.940625+00:00
2021-04-21T21:52:43
b2d97a2b469ea2bdd0c4711f695217165d2d7a12
{ "blob_id": "b2d97a2b469ea2bdd0c4711f695217165d2d7a12", "branch_name": "refs/heads/main", "committer_date": "2021-04-21T21:52:43", "content_id": "7a9f3f910cdc197d5c890b3e5fc9849c8c23fb2a", "detected_licenses": [ "MIT" ], "directory_id": "a3687607bcd67a5e18093ab7354c58615470ebbb", "extension": "c", ...
stackv2
#include "cola.h" #include <stdlib.h> void** cola_multiprimeros(const cola_t* cola, size_t k) { void **primeros = calloc(k, sizeof(void *)); cola_t *colaAux; if ((colaAux = cola_crear()) == NULL) { free(primeros); return NULL; } for (int i = 0; !cola_esta_vacia(cola); i++) { ...
2.96875
3
2024-11-18T20:02:54.949704+00:00
2021-01-03T13:39:33
633c40651daf960f2dbf0de0a285b8d127772adc
{ "blob_id": "633c40651daf960f2dbf0de0a285b8d127772adc", "branch_name": "refs/heads/main", "committer_date": "2021-01-03T13:39:33", "content_id": "1b27794f47b0d7d0800de6689951c209873a4e8a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4a828fc72df472663357261d60dbf1e50cb8a133", "extension"...
stackv2
#ifndef NETGE_WEATHER_DEF_H #define NETGE_WEATHER_DEF_H //------------------------------------------------------------------------------ // 風向控制命令結構 #define WIND_RIGHT 0 // 向右吹 #define WIND_RIGHT_DOWN 1 // 向右下吹 #define WIND_DOWN 2 // 向下吹 #define WIND_LEFT_DOWN 3 // 向左下吹 #define WIND_LEFT ...
2.375
2
2024-11-18T20:02:55.072681+00:00
2019-12-20T14:05:43
1f492965e90250c881a4ad0b25582891f45919a7
{ "blob_id": "1f492965e90250c881a4ad0b25582891f45919a7", "branch_name": "refs/heads/master", "committer_date": "2019-12-20T14:05:43", "content_id": "7ba86412aed8ae201d848d9db67a2008e4cce0ba", "detected_licenses": [ "MIT" ], "directory_id": "b30067a35fb5b7dc455ee5445e66ecb9af2e91ef", "extension": "h"...
stackv2
/*************************************************************************** This is a library for the BME680 gas, humidity, temperature & pressure sensor Designed specifically to work with the Adafruit BME680 Breakout ----> http://www.adafruit.com/products/3660 These sensors use I2C or SPI to communicate, 2 ...
2.328125
2