added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T22:40:30.359311+00:00 | 2017-04-11T09:23:05 | 09b4dd4c4c483df373dc044e08f5b8e29ea15675 | {
"blob_id": "09b4dd4c4c483df373dc044e08f5b8e29ea15675",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-11T09:23:05",
"content_id": "1e9131ef78f608eb30d7154a5cd0719ed7d45975",
"detected_licenses": [
"MIT"
],
"directory_id": "06c3cb582f1e2281540b89178b7db5eceeeedf90",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strsub.c :+: :+: :+: ... | 2.6875 | 3 |
2024-11-18T22:40:30.495553+00:00 | 2023-09-02T05:42:40 | e379f9d9624894f591eb32c369c355aac74c0071 | {
"blob_id": "e379f9d9624894f591eb32c369c355aac74c0071",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T05:42:40",
"content_id": "ef3bac8164a8d65f8019a211760584a3d06de9df",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "6cbc9ef86318b4cfcbe32fc27dc997eea5d0ae94"... | stackv2 | /* $Id$ */
#ifndef LIST_INCLUDED
#define LIST_INCLUDED
#define T List_T
typedef struct T *T;
struct T {
T rest;
void *first;
};
extern T List_append (T list, T tail);
extern T List_copy (T list);
extern T List_list (void *x, ...);
extern T List_pop (T list, void **x);
extern T List_pus... | 2.03125 | 2 |
2024-11-18T23:18:41.982244+00:00 | 2021-05-11T16:12:35 | 688c4ca9d25af30a443b56c9dadcbb94616cbf43 | {
"blob_id": "688c4ca9d25af30a443b56c9dadcbb94616cbf43",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-11T16:12:35",
"content_id": "34f5c7e0c0b7e1ee317f8891a88aaceb96a57b78",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "1757d198feefdec152737de84732098b48e31251",
"extension": "... | stackv2 | #ifndef __FUNCDEF_H__
#define __FUNCDEF_H__
/*--------------------------------------------------------------------------
N76E003 Function_define.h V1.02
All function define inital setting file for Nuvoton N76E003
--------------------------------------------------------------------------*/
//#include <intrins.h>
#incl... | 2 | 2 |
2024-11-18T23:18:42.239186+00:00 | 2021-06-27T19:04:11 | 0abe043252cbe8950b67b9d90025374fb6af9d54 | {
"blob_id": "0abe043252cbe8950b67b9d90025374fb6af9d54",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-27T19:04:11",
"content_id": "f361908c32b8d285e84484229299060ac8cd316b",
"detected_licenses": [
"MIT"
],
"directory_id": "9b313667c6b44a73ce21461e32a1812e18e3ebde",
"extension": "c"... | stackv2 | /*
* csum.c - Generate DAG file checksums
*
* Copyright (C) 2021 Linzhi Ltd.
*
* This work is licensed under the terms of the MIT License.
* A copy of the license can be found in the file COPYING.txt
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include ... | 2.359375 | 2 |
2024-11-18T23:18:43.176819+00:00 | 2018-07-03T15:09:33 | a3372e72e0151ee8afe39f725696eaf7a75aaf49 | {
"blob_id": "a3372e72e0151ee8afe39f725696eaf7a75aaf49",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-03T15:10:32",
"content_id": "1fe1a6021c41cda3f9d64a261b25f7392df367d3",
"detected_licenses": [
"MIT"
],
"directory_id": "6c8d397af0600f183e093a2556702c927a3b5e9a",
"extension": "c"... | stackv2 | /*
* @Author: Zheng Sirui
* @Filename: usart.c
* @Email: zsirui@126.com
* @Date: 2018-04-08 15:52:23
* @Last Modified by: Zheng Sirui
* @Last Modified time: 2018-06-12 16:23:25
*/
#include "usart.h"
#if 1
#pragma import(__use_no_semihosting)
// 标准库需要的支持函数
struct __FILE
{
int handle;
};
FILE __stdout;
// 定义_sys_e... | 2.28125 | 2 |
2024-11-18T23:18:43.262084+00:00 | 2014-10-14T05:59:48 | cd92fe50827f7af944f360efc4d5b02eecde7f84 | {
"blob_id": "cd92fe50827f7af944f360efc4d5b02eecde7f84",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-14T05:59:48",
"content_id": "dfad4cbe94a7114eaeb37b8475820148aa8c6ccf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2c1bba45051b503d6115b67427a1adaac2116e94",
"extensio... | stackv2 | #ifndef SPX_ALLOC_H
#define SPX_ALLOC_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
#include "spx_types.h"
#define SpxFree(ptr) do\
{\
if(NULL != ptr)\
{\
free(ptr);\
ptr = NULL; \
}\
}while(false)
void *spx_malloc(const size_t s,err_t *err)... | 2.09375 | 2 |
2024-11-18T23:18:44.107500+00:00 | 2021-09-18T03:33:04 | e1ccc962614571f329158a78074bdf9548ec19e3 | {
"blob_id": "e1ccc962614571f329158a78074bdf9548ec19e3",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-18T03:33:04",
"content_id": "9b7b5d58ebffab1a886b911482982db4a6a7cff9",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "b38b9465ce9f50b788e2cef036b74d071dfad6b0",
"ex... | stackv2 | #include "syscall.h"
#include "copyright.h"
int main()
{
int number;
PrintString("Enter a number: ");
number = ReadInt();
PrintString("\n");
PrintString("Your number: ");
PrintInt(number);
PrintString("\n");
Halt();
return 0;
}
| 2.140625 | 2 |
2024-11-18T23:18:44.528764+00:00 | 2018-09-26T12:22:52 | 39ebf240151039638a9de23479a44ce4ad170d8b | {
"blob_id": "39ebf240151039638a9de23479a44ce4ad170d8b",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-26T12:32:09",
"content_id": "846eea73fdab8c3cb41470dca9a513ed46308fc1",
"detected_licenses": [
"MIT"
],
"directory_id": "240a02bdc1fa52b6fc8fc8853ac1f19a89dbbbf0",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <lib/printf.h>
static void __flushbuf(struct printbuf *b)
{
if (b->error < 0) return;
int r = write(b->fd, b->data, b->cpos);
if (r > 0) b->tolwrite += r;
if (r < 0) b->error = r;
}
static void putch(int c, void *data)
{
struct printbuf *b = (struct printbuf *)data;
b->data[b->cpos+... | 2.671875 | 3 |
2024-11-18T23:18:44.654511+00:00 | 2019-01-02T13:50:58 | 36d2ba5023a01141e60acac5fec4a5defa0579dc | {
"blob_id": "36d2ba5023a01141e60acac5fec4a5defa0579dc",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-02T13:50:58",
"content_id": "2fd417b1ff905d499ab83ca69040fa2fb6c5c6c1",
"detected_licenses": [
"MIT"
],
"directory_id": "a55592c8831ffa5dcce891e8bda4bf55d1a4173e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BOARD_SIZE 12
#define EMPTY 0
#define BLACK 1
#define WHITE 2
#define DEPTH 4
typedef int BOOL;
#define TRUE 1
#define FALSE 0
typedef int OPTION;
#define UP 0
#define DOWN 1
#define LEFT 2
#define RIGHT 3
#define UP_LEFT 4
#define UP_RIGHT 5
#defin... | 2.484375 | 2 |
2024-11-18T23:18:44.798170+00:00 | 2015-07-05T20:03:05 | 43a9fa0bad2ef5d7e117a65455bcd39f7d1e3f33 | {
"blob_id": "43a9fa0bad2ef5d7e117a65455bcd39f7d1e3f33",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-05T20:03:05",
"content_id": "27e15131a161b81e2a2c8a25fb8c1043a719ed9d",
"detected_licenses": [
"MIT"
],
"directory_id": "578a9944d2b1a70081a9f881b3bff589aa24890c",
"extension": "c"... | stackv2 | /*
Lithium OS GDT related functions.
*/
#include <gdt.h>
#define GDT_ADDRESS 0xFFBB9000
struct gdtEntry
{
uint16_t limitLow;
uint16_t baseLow;
uint8_t baseMid;
uint8_t access;
uint8_t granularity;
uint8_t baseHigh;
} __attribute__((packed));
struct gdtInfo
{
uint16_t size;
uint32_t address;
} __attribute__(... | 2.546875 | 3 |
2024-11-18T23:18:44.852567+00:00 | 2020-11-25T18:03:46 | dcd4626444aea64020034cb75912a3bd5b01f35a | {
"blob_id": "dcd4626444aea64020034cb75912a3bd5b01f35a",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-25T18:03:46",
"content_id": "6e80ad062882f2447d238f95a5ec02105d10f06b",
"detected_licenses": [
"MIT"
],
"directory_id": "eb5e60e019e7a6642140b9052f270667beade6fa",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstlast.c :+: :+: :+: ... | 2.59375 | 3 |
2024-11-18T23:18:45.163575+00:00 | 2023-01-05T14:16:47 | d8d9c9de10b2b0cba6c7902060a35fc2615e33cf | {
"blob_id": "d8d9c9de10b2b0cba6c7902060a35fc2615e33cf",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-05T14:16:47",
"content_id": "525a577829377dcc7ad1d3379b0b3f5b788204ab",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3a6f2882f286f90bf729072748a11f515adedbe3",
"extensio... | stackv2 | #include <darknet.h>
void fill_image_f32(image* im, int w, int h, int c, float* data) {
int i;
for (i = 0; i < w*h*c; i++) {
im->data[i] = data[i];
}
}
void set_data_f32_val(float* data, int index, float value) {
data[index] = value;
}
void to_float_and_fill_image(image* im, int w, int h, uin... | 2.84375 | 3 |
2024-11-18T23:18:45.455055+00:00 | 2022-11-05T17:46:59 | a395173975a88a91c98e112ba3227480f17edfa0 | {
"blob_id": "a395173975a88a91c98e112ba3227480f17edfa0",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-05T17:46:59",
"content_id": "7d134160fe3f5263bf46d673a29dae70c7d6772a",
"detected_licenses": [
"MIT"
],
"directory_id": "c07d5913ecf3a23e5ba5b7fb1ed5f39550a86e96",
"extension": "c"... | stackv2 | /*
まずこない。
*/
#include "C:\Factory\Common\all.h"
#include "C:\Factory\Common\Options\CRandom.h"
#include "C:\Factory\Common\Options\rbTree.h"
#include "C:\Factory\OpenSource\sha512.h"
// ---- hashes_func ----
static uint HashClone(uint h)
{
return (uint)memClone((void *)h, 64);
}
static sint CompHash(uint h1, uint ... | 2.765625 | 3 |
2024-11-18T23:18:45.536384+00:00 | 2021-04-25T03:51:26 | 37ca030d9689ab1b6a5f0b99b0b5b693362d943f | {
"blob_id": "37ca030d9689ab1b6a5f0b99b0b5b693362d943f",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-25T03:51:26",
"content_id": "4a795bb05ef7d0acfcae6340c53c0dfa6aaa8573",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5e4d2e566637efbfd59477aa4fd622e7de831556",
"extension"... | stackv2 | #include "e32.h"
static int
e32_init_gpio(struct options *opts, struct E32 *dev)
{
int inputs[64], outputs[64];
int ninputs, noutputs;
int hm0=0, hm1=0, haux=0;
if(gpio_permissions_valid())
return -1;
if(gpio_exists())
return 1;
if(gpio_valid(opts->gpio_m0))
return 2;
if(gpio_valid(opts->... | 2.34375 | 2 |
2024-11-18T23:18:45.958624+00:00 | 2022-11-11T10:50:55 | 452ba8df1a56ac0e4d2402438a42eac1f16e253a | {
"blob_id": "452ba8df1a56ac0e4d2402438a42eac1f16e253a",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-11T10:50:55",
"content_id": "0ff0b5055c29e66d4dddff14a6a614bf1d159aa5",
"detected_licenses": [
"MIT"
],
"directory_id": "187b3b9385f262d75b2f0f111a35665d5761c08c",
"extension": "h"... | stackv2 | /*
* libe cross-platform library: Logging
*
* Authors:
* Antti Partanen <aehparta@iki.fi>
*/
#ifndef _LIBE_LOG_H_
#define _LIBE_LOG_H_
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <ctype.h>
#ifdef TARGET_LINUX
#include <string.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
/** Log lev... | 2.125 | 2 |
2024-11-18T23:18:46.378650+00:00 | 2017-02-05T20:42:19 | 72424bd25af20aac8521e43df0e4d9db245b4f64 | {
"blob_id": "72424bd25af20aac8521e43df0e4d9db245b4f64",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-05T20:42:19",
"content_id": "e0f383acc2f6f48f19219ddda8ff8494a0d5f7b4",
"detected_licenses": [
"Apache-2.0",
"MIT"
],
"directory_id": "72aa9d9734db1cf697f7a1a0a52a0add4f8b7b98",
... | stackv2 | // Copyright 2017 Jeremy Letang.
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to ... | 2.15625 | 2 |
2024-11-18T23:18:46.540670+00:00 | 2022-12-16T09:41:29 | 222e5302235fa969e2bf127b6354d519f7c69c2b | {
"blob_id": "222e5302235fa969e2bf127b6354d519f7c69c2b",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-16T09:41:29",
"content_id": "44c83cea3a79cda8fe9a0144ce82811a8f2fab6a",
"detected_licenses": [
"MIT"
],
"directory_id": "0db167cc0b914b8806aef97f0c3003303cf0eb49",
"extension": "c"... | stackv2 | /**
* ================================================
*
* Copyright 2017 Manoel Vilela
*
* Author: Manoel Vilela
* Contact: manoel_vilela@engineer.com
* Organization: UFC
*
* ===============================================
*/
#include <stdio.h>
#include <stdlib.h>
#include "list-cir... | 2.28125 | 2 |
2024-11-18T23:18:46.599614+00:00 | 2021-04-06T01:19:22 | 6f6bfeba3a69e420f6ef96a3909cee975ca26fb2 | {
"blob_id": "6f6bfeba3a69e420f6ef96a3909cee975ca26fb2",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-06T01:19:22",
"content_id": "3436fbdf8c30c0d827b8575fc1a17e7582c3e57b",
"detected_licenses": [
"MIT"
],
"directory_id": "40d6c51e10a5d2f6023d80fa83a16862d21582f3",
"extension": "h"... | stackv2 | /*! This function copies the elements of one arrays into another array
*
*
*
*/
#ifndef BLASxON__ARRAY_COPY_H
#define BLASxON__ARRAY_COPY_H
// -- CPU Architecture
#include "../../cpu_architecture/cpu_architecture.h"
#ifdef __cplusplus
extern "C" {
#endif
static void BLASxON__FuncHEAD
... | 2.3125 | 2 |
2024-11-18T23:18:47.817406+00:00 | 2020-10-06T22:04:44 | 8e66663bec07a0bb02067f3432a81d5559c840c6 | {
"blob_id": "8e66663bec07a0bb02067f3432a81d5559c840c6",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-06T22:04:44",
"content_id": "c90cfb67cd09a6b1e2bbf533d2273612a8d2d476",
"detected_licenses": [
"BSD-3-Clause-Clear"
],
"directory_id": "233a8c65e2936cb9323802764c62f4c5a1742389",
"... | stackv2 | /* variant of the temp.c program using symbolic substitutions via define */
#include <stdio.h>
#define UPPER 300 /* upper temp limit */
#define LOWER -300 /* lower temp limit */
#define STEP 20 /* step size */
/* now do the loopy thing to print the table */
int main()
{
int fahr; /* fahrenheight variable */
for (... | 3.140625 | 3 |
2024-11-18T23:18:48.969496+00:00 | 2023-08-16T08:50:33 | 4a1c34353df2c651bd2dc8825846a5ef25adc9b3 | {
"blob_id": "4a1c34353df2c651bd2dc8825846a5ef25adc9b3",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T09:13:27",
"content_id": "9c4b0385568578ccad7f478e9f13431855cf5229",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "55540f3e86f1d5d86ef6b5d295a63518e274efe3",
"extensio... | stackv2 | /* Copyright (C) 2002-2020 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
GCC is distribute... | 2.28125 | 2 |
2024-11-18T23:18:49.125662+00:00 | 2022-02-02T06:42:17 | 4a003110108629141390a9507f345c81c6213941 | {
"blob_id": "4a003110108629141390a9507f345c81c6213941",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-02T06:42:17",
"content_id": "29364dd5eb4e6f5514b82ac78be854daa89fc97f",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "ce1239badeaa79e26cb565f7553cfa1de800b6e5",
"extens... | stackv2 | #include <string.h>
#include "hclib.h"
#include "hclib-rt.h"
#include "hclib-task.h"
#include "hclib-async-struct.h"
#include "hclib-finish.h"
#ifdef __cplusplus
extern "C" {
#endif
/*** START ASYNC IMPLEMENTATION ***/
void hclib_async(generic_frame_ptr fp, void *arg, hclib_future_t **future_list,
... | 2 | 2 |
2024-11-18T23:18:49.562090+00:00 | 2020-12-10T08:18:59 | d24a171adcc525e7e2dcc98feb4a0d57e910fa40 | {
"blob_id": "d24a171adcc525e7e2dcc98feb4a0d57e910fa40",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-10T08:18:59",
"content_id": "c0193a20efc6eef2a2495d2ec4387a68eb771cc3",
"detected_licenses": [
"MIT"
],
"directory_id": "cdc89fcf5b07f1bc84ba56f3cc5d38605b32af96",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "data.h"
#include "function.h"
#include "./Libfdr/dllist.h"
#include "./Libfdr/jrb.h"
#include "./Libfdr/jval.h"
float float_rand( float min, float max )
{
float scale = rand() / (float) RAND_MAX; /* [0, 1.0] */
return min + scale * ( max - mi... | 2.46875 | 2 |
2024-11-18T23:18:49.886788+00:00 | 2023-05-17T19:49:47 | e331741842360b8d0eb30c56276034826cdd81cc | {
"blob_id": "e331741842360b8d0eb30c56276034826cdd81cc",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-17T19:49:47",
"content_id": "f44a7bf5f84fc64f3ac45d7406aeb8ab2904df23",
"detected_licenses": [
"MIT"
],
"directory_id": "cd9a7e2c8142f9f17f9e5253c8c17e627bee36a1",
"extension": "c"... | stackv2 | #include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>
#include <linux/limits.h>
#include <linux/usb/ch9.h>
#include <linux/usbdevice_fs.h>
#include <asm/byteorder.h>
#include <sys/ioctl.h>
#inclu... | 2.3125 | 2 |
2024-11-18T23:18:49.953671+00:00 | 2019-04-25T12:36:01 | 6f188ee7180c52b88a912f894f96f1c6c747bc6c | {
"blob_id": "6f188ee7180c52b88a912f894f96f1c6c747bc6c",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-25T12:36:01",
"content_id": "1309b50e117c3586dbe0b3307bc398439e783e08",
"detected_licenses": [
"MIT"
],
"directory_id": "d366f8b6fead0e9fba141e23048d9bb376d3de80",
"extension": "c"... | stackv2 | #include "nocc.h"
#define control_flow_state_none 0
#define control_flow_state_break_bit 1
#define control_flow_state_continue_bit 2
void sema_push_scope(ParserContext *ctx) {
assert(ctx != NULL);
scope_stack_push(ctx->env);
scope_stack_push(ctx->struct_env);
}
void sema_pop_scope(ParserContext *ctx) {
... | 2.46875 | 2 |
2024-11-18T23:18:50.139288+00:00 | 2016-04-01T02:40:15 | d037fe99501f00a5d5c39ffc59ee806cc0ecc6cd | {
"blob_id": "d037fe99501f00a5d5c39ffc59ee806cc0ecc6cd",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-01T02:40:15",
"content_id": "123f28ba5e50b0f0e1c58a5295bcc06d7d4bb28e",
"detected_licenses": [
"MIT"
],
"directory_id": "1a4cb15e0b7c690cd354198b464d2a3b5c5b45a3",
"extension": "c"... | stackv2 | /***
Copyright (c) 2016
All rights reserved.
文件名称:pulse_capture.c
文件标识:pulse_capture
摘 要:TIM4 GPIOB 6// 7 8 9
触发引脚 TIM4 GPIOB6
采样捕捉引脚 TIM4 GPIOB7
当前版本:
作 者:
完成日期:
取代版本:
原作者 :
完成日期:
***/
#include "super_sonic.h"
_Pulse pulse;
volatile u16 Speed = 0;
//#def... | 2.59375 | 3 |
2024-11-18T23:18:50.218135+00:00 | 2023-05-22T02:29:36 | dd8b3fba3fcd9d16efbe49d427558fdb5826a574 | {
"blob_id": "dd8b3fba3fcd9d16efbe49d427558fdb5826a574",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-22T02:29:36",
"content_id": "a053f1fb2ff821bf301ad5407570c6efbfa973f8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8b063fb927106f78181678fa1b40ce26da330cb4",
"extensio... | stackv2 | #include "nuclei_sdk_soc.h"
__STATIC_FORCEINLINE uint64_t get_timer_freq(void)
{
return (uint64_t)SOC_TIMER_FREQ;
}
uint32_t measure_cpu_freq(uint32_t n)
{
uint32_t start_mcycle, delta_mcycle;
uint32_t start_mtime, delta_mtime;
uint64_t mtime_freq = get_timer_freq();
// Don't start measuruing unt... | 2.359375 | 2 |
2024-11-18T23:18:51.664736+00:00 | 2015-08-22T07:54:37 | 0be3410b485fa6a902eb747f87b5aaf44b3905ff | {
"blob_id": "0be3410b485fa6a902eb747f87b5aaf44b3905ff",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-22T07:54:37",
"content_id": "570e7593f92e352e8566b413241ec59ad14d5865",
"detected_licenses": [
"MIT"
],
"directory_id": "961b8e9421ef1ac812f4c4e7c12122763b8e6277",
"extension": "h"... | stackv2 | #ifndef PQUEUE_H_
#define PQUEUE_H_
typedef int(*PQComparator)(const void *, const void *);
typedef void* PQElement;
typedef struct PriorityQueue {
/** The function used to determine the order of the priority queue */
PQComparator comparator;
/** The list of elements in the queue */
PQElement *el... | 2.8125 | 3 |
2024-11-18T23:18:51.864349+00:00 | 2020-09-08T10:40:26 | 3923364e39fc9d93f1fb798d35e168c1ab7b498e | {
"blob_id": "3923364e39fc9d93f1fb798d35e168c1ab7b498e",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-08T10:40:26",
"content_id": "e4bd451c7b1141eae9e551cde6a3eead9a7bb8c6",
"detected_licenses": [
"CC0-1.0",
"BSD-3-Clause"
],
"directory_id": "809f263b77b525549cd945c39c4c9cf2b8e6a... | stackv2 | #include <stdint.h>
#include <string.h>
#include "address.h"
#include "params.h"
#include "thash.h"
#include "sha2.h"
#include "sha256.h"
/**
* Takes an array of inblocks concatenated arrays of N bytes.
*/
static void thash(
unsigned char *out, unsigned char *buf,
const unsigned char *in, unsigned int inbl... | 2.4375 | 2 |
2024-11-18T23:18:52.255139+00:00 | 2023-08-27T20:08:08 | 879e4ff755815a6bce983cb67bb9f7987e97c4c1 | {
"blob_id": "879e4ff755815a6bce983cb67bb9f7987e97c4c1",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-27T20:08:08",
"content_id": "637dd58f4cd9f8c84f79559ceb3ec5a63a75cfdf",
"detected_licenses": [
"MIT"
],
"directory_id": "1af43c4ba32d78c60f007a4d068136ce575d917f",
"extension": "h"... | stackv2 | #ifndef __APPLE__
#undef fprintf
#define fprintf(f, ...) (void)(0)
#endif
// prevent using complex implementation of strstr and locale
char* strstr(char *haystack, const char *needle)
{
if (haystack == NULL || needle == NULL) {
return NULL;
}
for ( ; *haystack; haystack++) {
// Is the ... | 2.875 | 3 |
2024-11-18T23:18:52.442202+00:00 | 2018-09-14T21:25:23 | 1fd999fcf2d58d2574bb73521a3e1eb3cd11aafb | {
"blob_id": "1fd999fcf2d58d2574bb73521a3e1eb3cd11aafb",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-14T21:25:23",
"content_id": "94006b2bf155f14b62c149474cf1a597fb0c914b",
"detected_licenses": [
"MIT"
],
"directory_id": "74cc6f0b6232b4d0b01027cc28e0c2637d845a51",
"extension": "c"... | stackv2 | /* sequenceMatrix.c -- object for doing popGen etc. */
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "sequenceMatrix.h"
#include "pgSummaryStats.h"
struct sequenceMatrix *sequenceMatrix_new(int sampleSize, int length){
struct sequenceMatrix *aSeqMat;
stringWrap **aMat, **nameVect;
int i;
a... | 2.59375 | 3 |
2024-11-18T23:18:52.608885+00:00 | 2021-05-16T21:00:45 | b5283cb686e0ba49511df247da3a549600066bb7 | {
"blob_id": "b5283cb686e0ba49511df247da3a549600066bb7",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-16T21:00:45",
"content_id": "91abc66d2a547a9397db252b4a3222832e67431c",
"detected_licenses": [
"MIT"
],
"directory_id": "0c2b73bf13cf9ef435e39a3ce03c77dae92bef0b",
"extension": "c"... | stackv2 | /* mcciadklib_snprintf.c Thu Mar 23 2017 01:13:11 tmm */
/*
Module: mcciadklib_snprintf.c
Function:
McciAdkLib_Snprintf()
Version:
V0.1.1 Thu Mar 23 2017 01:13:11 tmm Edit level 1
Copyright notice:
This file copyright (C) 2017 by
MCCI Corporation
3520 Krums Corners Road
Ithaca, NY 14850
An unpublishe... | 2.515625 | 3 |
2024-11-18T23:18:53.442910+00:00 | 2020-04-18T00:22:14 | 961a68b88ac3a8597d9af2190bb4a058c47cda44 | {
"blob_id": "961a68b88ac3a8597d9af2190bb4a058c47cda44",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-18T00:22:14",
"content_id": "d2f143df8b8ab1c26cc2ffefb311fde8f2f12a88",
"detected_licenses": [
"MIT"
],
"directory_id": "2ee4c423423536be349fa5738dbca0c5c91a9f7b",
"extension": "c"... | stackv2 | /*! @file Euler1DSource.c
@author Debojyoti Ghosh
@brief Contains the functions to compute the source terms for the 1D Euler equations.
*/
#include <stdlib.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <physicalmodels/euler1d.h>
#include <mpivars.h>
#include <hypar.h>
/*! Compute the species dens... | 2.71875 | 3 |
2024-11-18T23:18:53.968328+00:00 | 2020-07-24T05:53:52 | f7eadb291d3e788b2521fdbe7895235d1c3b6cfa | {
"blob_id": "f7eadb291d3e788b2521fdbe7895235d1c3b6cfa",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-24T05:53:52",
"content_id": "280a9b5760141d1f7414293cade074cb4c31baea",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "247682866ca545feaf9de63601324351e6e31b96"... | stackv2 | /*
The MIT License (MIT)
Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus
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 wi... | 2.09375 | 2 |
2024-11-18T23:18:54.157720+00:00 | 2023-01-18T12:56:34 | fc07b3c772e532ce9bcd0bbd22b1b5fbd9a9641c | {
"blob_id": "fc07b3c772e532ce9bcd0bbd22b1b5fbd9a9641c",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-18T12:56:34",
"content_id": "c0b63d237a6adef3007271621319a222a97c47dd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b3e93a7094e2cd9436eb914cdca673149c0f9696",
"extensio... | stackv2 | /**@file
* This header file is part of the utilities library; it contains the
* singly-<a href="https://en.wikipedia.org/wiki/Linked_list">linked list</a>
* declarations.
*
* @copyright 2013-2020 Lely Industries N.V.
*
* @author J. S. Seldenthuis <jseldenthuis@lely.com>
*
* Licensed under the Apache License, V... | 2.6875 | 3 |
2024-11-18T23:18:54.457794+00:00 | 2022-01-08T13:44:59 | e1d7df12621c4a4a5ce54737764b8f5f0f4f7952 | {
"blob_id": "e1d7df12621c4a4a5ce54737764b8f5f0f4f7952",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-08T13:44:59",
"content_id": "beeac531ec4a1215e838e3cc3478dbf7774d4f2c",
"detected_licenses": [
"MIT"
],
"directory_id": "4969612b3896c54bf1ed261aee1ae1fd24fffe92",
"extension": "c"... | stackv2 | #include"element.h"
//////////////////////////////////////
// FUNZIONI DI LIBRERIA //
//////////////////////////////////////
//================== FUNZIONI FUNZIONI IO_ELEMENT ================================
int compareData(Data d1, Data d2) // d1 successiva d2 <=> result > 0
{
int result;
result = d1.anno - d2.a... | 3.28125 | 3 |
2024-11-18T23:18:54.577537+00:00 | 2023-07-22T01:56:22 | 4824b833d5a78a584434388f43882e10cf178db4 | {
"blob_id": "4824b833d5a78a584434388f43882e10cf178db4",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-22T01:56:22",
"content_id": "e741d65cdd4d27f9d8ca1c443cc35f12681c7fbd",
"detected_licenses": [
"MIT"
],
"directory_id": "4d78977ee7a816f97134d92b5826e929fb56c571",
"extension": "c"... | stackv2 | #include "port/system.h"
#if defined(_WIN32) || defined(_WIN64)
#include <Windows.h>
#else
#include <time.h>
#include <errno.h>
#include <string.h>
#include <sys/time.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "../deprecated/tools.h"
#if defined(_WIN32) || defined(_WIN64)
int syst... | 2.28125 | 2 |
2024-11-18T23:18:54.766427+00:00 | 2017-08-18T09:56:18 | 05bce7ddb1fb570c4d39208e33b2660d554c96fa | {
"blob_id": "05bce7ddb1fb570c4d39208e33b2660d554c96fa",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-18T09:56:18",
"content_id": "cc12d710eac6785b14893a4177a27b6edc15c9f4",
"detected_licenses": [
"MIT"
],
"directory_id": "a88e0b422daa713dfa9158f73843539efb757e43",
"extension": "c"... | stackv2 | #include "wallet.h"
#include <bitcoin/script.h>
#include <ccan/str/hex/hex.h>
#include <lightningd/lightningd.h>
struct wallet *wallet_new(const tal_t *ctx, struct log *log)
{
struct wallet *wallet = tal(ctx, struct wallet);
wallet->db = db_setup(wallet);
wallet->log = log;
wallet->bip32_base = NULL;
if (!wallet... | 2.28125 | 2 |
2024-11-18T23:18:55.033470+00:00 | 2021-03-23T01:42:59 | 5eaf1d015caef33c0ffe9d2e4ba2d3a28a15f0e9 | {
"blob_id": "5eaf1d015caef33c0ffe9d2e4ba2d3a28a15f0e9",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-23T01:42:59",
"content_id": "7f6a85a8d4b90a97f0b899cbb60497fc7ca8aa22",
"detected_licenses": [
"MIT"
],
"directory_id": "0f87d8093dc1e88e3a42d5f5274c8befe0ca9ebe",
"extension": "c"... | stackv2 | /* test/vcf-miniview.c -- minimal BCF/VCF viewer, for use by test harness.
Copyright (C) 2014 Genome Research Ltd.
Author: John Marshall <jm18@sanger.ac.uk>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to d... | 2.234375 | 2 |
2024-11-18T23:18:55.132883+00:00 | 2020-01-11T20:21:38 | bb3c85333d7ccd9d03f407b3fb6c7665ff6a1210 | {
"blob_id": "bb3c85333d7ccd9d03f407b3fb6c7665ff6a1210",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-11T20:21:38",
"content_id": "4a562ea76237089c3818b90a8f8070aa87861678",
"detected_licenses": [
"MIT"
],
"directory_id": "21ac37a748c6a12626ff58cd41ff36d8d27cc5aa",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
//! Ising model evolution
/*!
\param G Spins on the square lattice [n-by-n]
\param w Weight matrix [5-by-5]
\param k Number of iterations [scalar]
\param n Number of lattice ... | 2.90625 | 3 |
2024-11-18T23:19:00.791498+00:00 | 2019-09-07T17:23:55 | cf8cc8e764f2c8e764150c3b8439a53e67765597 | {
"blob_id": "cf8cc8e764f2c8e764150c3b8439a53e67765597",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-07T17:23:55",
"content_id": "85085906e5fda833401706cb321b932334d1e3ab",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a564ec14337391f1da7fbf09974364a8354ce541",
"extens... | stackv2 | /*
VETOR PARA LISTA. Escreva uma função que copie um vetor para uma lista encadeada.
Utilizando ponteiro de ponteiro
Sem utilizar ponteiro de ponteiro, aqui além de criar um ponteiro, crio também uma estrutura
a qual o ponteiro irá apontar.
Veja que a principal diferença está na forma com que eu... | 3.828125 | 4 |
2024-11-18T23:19:01.043398+00:00 | 2020-07-27T21:51:30 | caa9d24bec84a7af9d8aea7dc7a05b9e689d9055 | {
"blob_id": "caa9d24bec84a7af9d8aea7dc7a05b9e689d9055",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-27T21:51:30",
"content_id": "079f2b5b0d8e6f3682ad95cf083faa69af02c408",
"detected_licenses": [
"MIT"
],
"directory_id": "747db6a73336b94b11f767b752cd66376c1c66ca",
"extension": "h"... | stackv2 | #ifndef VVC_GLOBAL_H
#define VVC_GLOBAL_H
// Standard library includes.
#include <stdint.h>
#include <stdio.h>
#include <string.h>
// Device header file.
#include "stm32f7xx.h"
uint32_t SystemCoreClock;
volatile uint32_t systick;
extern uint32_t _sidata, _sdata, _edata, _sbss, _ebss;
// System call to enable standa... | 2.1875 | 2 |
2024-11-18T23:19:01.103511+00:00 | 2020-04-02T13:32:27 | ed43b14011f5118542438d04a6053cf1883e7b01 | {
"blob_id": "ed43b14011f5118542438d04a6053cf1883e7b01",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-02T13:32:27",
"content_id": "31d1b44425b49fa7bc17ccb130bb5d01999a60e5",
"detected_licenses": [
"MIT"
],
"directory_id": "5b6e198c33f06b7c36a9a829b42fbeaf85254ad7",
"extension": "c"... | stackv2 | //
// utils.c
// xdag
//
// Copyright © 2018 xdag contributors.
//
#include "utils.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/stat.h>
#include <time.h>
#if defined (__MACOS__) || defined (__APPLE__)
#include <libgen.h>
#define PATH_MAX 4096
#include <sys/time.h>
#include <unistd.h>... | 2.265625 | 2 |
2024-11-18T23:19:01.187339+00:00 | 2016-05-07T06:25:57 | 49284630d8902befc5827f5b49c84d96de9d91b3 | {
"blob_id": "49284630d8902befc5827f5b49c84d96de9d91b3",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-07T06:47:51",
"content_id": "29301b27892a851ca1e5eb04f30418087ffe05db",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b2b2590a5a7b95c9b8e1aae5f49ae4c8a479cd0c",
"extens... | stackv2 | #include "ssj.h"
#include "dvalue.h"
#include "sockets.h"
const char* const
CLASS_NAMES[] = {
"unknown",
"arguments",
"Array",
"Boolean",
"Date",
"Error",
"Function",
"JSON",
"Math",
"Number",
"Object",
"RegExp",
"String",
"global",
"ObjEnv",
"DecEnv",
"Buffer",
"Pointer",
"Thread",
"ArrayBuffer",... | 2.34375 | 2 |
2024-11-18T23:19:01.330573+00:00 | 2023-08-04T06:41:22 | 263aec1e8fad09da501a69ec94202a454c232fef | {
"blob_id": "263aec1e8fad09da501a69ec94202a454c232fef",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-04T06:41:22",
"content_id": "5ec39a895d7cda61c8c8be1122a921a297c47be8",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4bc40d60c146300030512b11e375cb8abbf2f5b3",
"extens... | stackv2 | #include "lite_fb.h"
#include <string.h>
/*
* fb_clear(), fb_fillrect() and fb_fill_poly() can be made *much faster* by
* adding a very crude "blitter" to the LiteX SOC. The Blitter can fill a
* contiguous zone of memory with a 32 bit value using DMA (much faster than
* with the CPU !). When the Blitter is decla... | 2.40625 | 2 |
2024-11-18T23:19:01.474358+00:00 | 2023-07-11T09:16:38 | 25717cf1645570d8af46d62988f71044fcac0cd4 | {
"blob_id": "25717cf1645570d8af46d62988f71044fcac0cd4",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-11T09:16:38",
"content_id": "9faa0bcdb01d821624ba3e5dcec113e23e0a8dad",
"detected_licenses": [
"MIT"
],
"directory_id": "6dcc14ae3442ccec3e9b4a1cd79ad78babe97516",
"extension": "c",
... | stackv2 | #include "idlist.h"
#include "terminal.h"
#include <gtk/gtk.h>
#include <stdlib.h>
typedef struct _layout_elem layout_elem;
struct _layout_elem {
GtkWidget *layout;
GtkWidget *parent;
int x, y;
};
static id_list *layout_list = NULL;
layout_elem *layout_get(int id) { return (layout_elem *)id_list_get_dat... | 2.53125 | 3 |
2024-11-18T23:19:01.879419+00:00 | 2020-02-22T10:26:11 | 1348a005ddba9fad91485303bb9e08f9ee6eb024 | {
"blob_id": "1348a005ddba9fad91485303bb9e08f9ee6eb024",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-22T10:26:11",
"content_id": "933ee35e67b7bc92d2b6f81f13299c3352887ecd",
"detected_licenses": [
"Unlicense"
],
"directory_id": "c5d1257a3081681e0eb935d30b250a8a0cd29641",
"extension... | stackv2 | #include "lak_window.h"
#include "../lak_memory/lak_memory.h"
#include <X11/Xlib.h>
#include <X11/Xutil.h>
struct _lak_window
{
Display *display;
Atom wm_delete_window;
int screen;
Window window;
lak_framebuffer_t framebuffer;
};
Display *lak_get_display(lak_window_t window)
{
return window->display;
}
... | 2.265625 | 2 |
2024-11-18T23:19:02.063398+00:00 | 2022-03-29T01:59:02 | dd10f93e2e7c6d2a5104c029ec5ae100340d7669 | {
"blob_id": "dd10f93e2e7c6d2a5104c029ec5ae100340d7669",
"branch_name": "refs/heads/unstable",
"committer_date": "2022-03-29T03:53:21",
"content_id": "d3dfae371e71eb53891cb308dcf1a65adf4a7caf",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e9c100c5ddd09dcd415518a039b91a1c299af59d",
"exte... | stackv2 | /* Copyright (c) 2018 Evan Wyatt
* 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 conditions a... | 2.0625 | 2 |
2024-11-18T23:19:02.235862+00:00 | 2018-09-16T08:56:40 | 10403e954f78f140afabdc0fea3bcfb91c4aca76 | {
"blob_id": "10403e954f78f140afabdc0fea3bcfb91c4aca76",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-16T08:56:40",
"content_id": "9c8192b41152edf8c63041e7b963d54abbe04df1",
"detected_licenses": [
"MIT"
],
"directory_id": "aa39a3c5e34e2f6af8e97913e10d44ba50f1bd13",
"extension": "c"... | stackv2 | /* example of code
*/
#include <stdio.h>
int main()
{
char name[10];
char ch;
int i = 0;
printf("Enter your name: ");
while (ch != '\n');
{
ch = getchar();
name[i] = ch;
i++;
}
name[i] = '\0';
printf("name: %s", name);
return 0;
}
| 2.84375 | 3 |
2024-11-18T23:19:06.471960+00:00 | 2022-06-30T12:56:02 | 53418c6c3c393f1429457ae2930beeb59d3ec1d6 | {
"blob_id": "53418c6c3c393f1429457ae2930beeb59d3ec1d6",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-30T12:56:02",
"content_id": "6cdb3bda0c248f3283d527a535d2eda42208b3ef",
"detected_licenses": [
"MIT"
],
"directory_id": "a2c9b0501dc6060d3a0985e78df4c3ac687d4883",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include "ansi_escapes.h"
#include "linuxMouseInteraction.h"
extern EVENT eventMain(VOID);
extern void setupConsole(void);
extern void restoreConsoleMode(void);
extern void restoreConsole(void);
extern void getCursorPosition(int* row, int*... | 2.6875 | 3 |
2024-11-18T23:19:06.953193+00:00 | 2020-10-23T23:23:14 | 6bff421cc90f7d7ea4da138735d4d831c0ccdbd3 | {
"blob_id": "6bff421cc90f7d7ea4da138735d4d831c0ccdbd3",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-23T23:23:14",
"content_id": "a8d6b751f748ce674295d2ed29dfface65ab7a9e",
"detected_licenses": [
"MIT"
],
"directory_id": "459771e0cdb5092561fd9598b5b6a9a348430b48",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h> // Para usar strings
// SOIL é a biblioteca para leitura das imagens
#include "SOIL.h"
// Um pixel RGB
typedef struct
{
unsigned char r, g, b;
} RGB;
// Uma imagem em RGB
typedef struct
{
int width, height;
RGB *img;
} Img;
// Protótipos
void lo... | 2.90625 | 3 |
2024-11-18T23:19:07.424429+00:00 | 2019-10-10T09:40:19 | 9d7903b2e4da7060dc4e4562c729a9d26f8fc75f | {
"blob_id": "9d7903b2e4da7060dc4e4562c729a9d26f8fc75f",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-10T09:40:19",
"content_id": "3b89f4c997df9755bdd2c3cb6b26e6881c9ea89b",
"detected_licenses": [
"MIT"
],
"directory_id": "fecf92a8dbe28c5aa04bca0fbc6a2977cfdda1ac",
"extension": "c"... | stackv2 |
#ifndef __MOCK_TEST__
#ifdef RDMA
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <assert.h>
//#include "pmi.h"
#include "dvl_rdma.h"
int cookie;
int modes = 0;
#define TRANS_LEN 128
#define TRANS_LEN_IN_BYTES ((TRANS_L... | 2.171875 | 2 |
2024-11-18T23:19:08.232411+00:00 | 2023-04-06T04:17:33 | 96e96bf73d598a13cd70b24569dba168a5c96427 | {
"blob_id": "96e96bf73d598a13cd70b24569dba168a5c96427",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-06T04:17:33",
"content_id": "2fbf35712091c6b2ef5b511e6bce13c6d1ad6f9b",
"detected_licenses": [
"Unlicense"
],
"directory_id": "53977acde82e08ebfc1deba613f1d06733302b6f",
"extension... | stackv2 | #include <stdio.h>
#ifdef __APPLE__
#define PRODUCT_NAME "PRODUCT,NAME"
#define PRODUCT_VERSION "PRODUCT,VERSION"
#else
#define PRODUCT_NAME "PRODUCT_NAME"
#define PRODUCT_VERSION "PRODUCT_VERSION"
#endif
#ifdef __GNUC__
char const PRODUCT_NAME_DATA[]
__attribute__ ((used, section(PRODUCT_NAME))) = "demonstration... | 2.03125 | 2 |
2024-11-18T23:19:08.309892+00:00 | 2018-06-11T15:55:48 | 6f69e89802ac7a37f61cd4202e21f81d2bab1aed | {
"blob_id": "6f69e89802ac7a37f61cd4202e21f81d2bab1aed",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-11T15:55:48",
"content_id": "62816dabc13583de007902f21daa102cbb00dfd7",
"detected_licenses": [
"MIT"
],
"directory_id": "76c7893cc6a315c4785405db1efbd6969d85a2f8",
"extension": "h"... | stackv2 | /*
* @author Thomas Gortemaker
* @date 19-05-18
* @description functions for the qtra linetracker
*/
#ifndef LineSensor_h
#define LineSensor_h
#include "Arduino.h"
#include <QTRSensors.h>
#include "../Util/Logger.h"
#define QTR_WHITE_LINE true // is the line white? (false => line is black)
#define ... | 2.8125 | 3 |
2024-11-18T23:19:08.400909+00:00 | 2017-12-17T16:32:08 | bb3e8d13a5f368164d580a1f8ce12941e2896868 | {
"blob_id": "bb3e8d13a5f368164d580a1f8ce12941e2896868",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-17T16:32:08",
"content_id": "9c060914be0944c42d183f19da0817fe020389d1",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "0ba5c9252ef82fe169e33eb755ed76dbdb8bf275",
"... | stackv2 | #include <sys/kprintf.h>
#include <stdarg.h>
#include <sys/defs.h>
#include <sys/virtualmem.h>
#include <sys/process.h>
#define UINT32_MAX 4294967295
#define VGA_WIDTH 80
#define VGA_HEIGHT 25
#define VGA_ADDR 0xB8000+VIRT_ST
extern int x,y;
extern int is_bg_set;
void print_int(unsigned int input, unsigned int format_... | 2.5625 | 3 |
2024-11-18T23:19:08.552889+00:00 | 2021-12-26T05:35:24 | a4640a9c4a78fef60eeed39054bc7d47b7a8e74b | {
"blob_id": "a4640a9c4a78fef60eeed39054bc7d47b7a8e74b",
"branch_name": "refs/heads/main",
"committer_date": "2021-12-26T05:35:24",
"content_id": "8a6d51b16ec15d1aa11e7c308a373efd80503b68",
"detected_licenses": [
"MIT"
],
"directory_id": "b4dc6ae1796640da99929d642fccccc4c26e3c82",
"extension": "c",
... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include "funcionalidades.h"
#include "fornecido.h"
int main(int argc, char **argv) {
char auxs1[100], auxs2[100], auxs3[100], auxs4[100];
int funcionalidade;
scanf("%d", &funcionalidade);
switch(funcionalidade) {
case 1:
scanf("%s %s %s", auxs1, auxs2, auxs3);
f1_r... | 2.265625 | 2 |
2024-11-18T23:19:08.738620+00:00 | 2016-08-02T15:11:51 | 1b49e2e1ee470867c357ea43d21216c616c9404f | {
"blob_id": "1b49e2e1ee470867c357ea43d21216c616c9404f",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-02T15:11:51",
"content_id": "01a5208f00d9158b7ea45c3e64b1c3b4649910b9",
"detected_licenses": [
"MIT"
],
"directory_id": "7b8b6eda92086dadb118ecb55eef73ca0133d47d",
"extension": "c"... | stackv2 | /*
* fat.c
* msdosdir
*
* Created by Harry Anuszewski on 7/28/10.
* Copyright 2010. All rights reserved.
*
*/
#include "fat.h"
/**
* Extracts the (index)th 12-bit value from byte array
**/
UINT16 extract12(BYTE* arr, unsigned int index)
{
UINT16 value = 0;
BYTE* pVal = (BYTE*)&value;
unsigned int i = (... | 3.109375 | 3 |
2024-11-18T23:19:08.950874+00:00 | 2017-02-28T17:29:52 | f2ce9105d2794de922f6d960f5013f9413a2a873 | {
"blob_id": "f2ce9105d2794de922f6d960f5013f9413a2a873",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-28T17:29:52",
"content_id": "76a3171cd6b02e56409aa0857cc8b37904370bd1",
"detected_licenses": [
"MIT"
],
"directory_id": "7228b0ad755d631e275a1a81ab1b867293d41740",
"extension": "c"... | stackv2 | #include "snfd_internal.h"
#include "string.h"
SNFD_BOOL snfd_block_is_state_change_allowed(SNFD_BLOCK_STATE old_state,
SNFD_BLOCK_STATE new_state)
{
if(new_state == SNFD_BLOCK_BROKEN) return SNFD_TRUE;
if((old_state == SNFD_BLOCK_BROKEN) ||
(old_state == S... | 2.78125 | 3 |
2024-11-18T23:19:10.009455+00:00 | 2023-08-29T08:33:01 | 4a3ebcccc194c3facdcd902f35696b62299ee0e4 | {
"blob_id": "4a3ebcccc194c3facdcd902f35696b62299ee0e4",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T08:33:01",
"content_id": "5f8b71dfbde102d6e1d13d345c53e8745d09c3dd",
"detected_licenses": [
"MIT"
],
"directory_id": "ed7189bcb31973648dca4cb9f0d67cb4653d0e70",
"extension": "c"... | stackv2 | #include <assert.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
void prevent_atforks(void){
exit(1);
}
int main() {
pid_t pid;
int status;
assert(!pthread_atfork(prevent_atforks, NULL, NULL));
switch (pid = vfork()) {
case -1:
perror("vfork");
abort... | 2.546875 | 3 |
2024-11-18T23:19:10.186138+00:00 | 2023-01-15T22:26:59 | df595b75116146821655096a630d10e417c29929 | {
"blob_id": "df595b75116146821655096a630d10e417c29929",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-15T22:26:59",
"content_id": "310f67e6e9e7a06b915c05c29f47f95f06fc5abe",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "eb266f888155c0fa59c923d7496e875c7259f1de",
"extens... | stackv2 | #include "lib/lib_geom.h"
#include "translationLayer.h"
#include "server.h"
static const struct luaL_Reg geom_meta[] =
{
{NULL, NULL},
};
static const struct luaL_Reg geom_static_methods[] =
{
{NULL, NULL},
};
static const struct luaL_Reg geom_methods[] = {
{NULL, NULL},
};
static const struct luaL_Reg... | 2.171875 | 2 |
2024-11-18T23:19:10.314280+00:00 | 2021-02-26T03:17:57 | c30cc977c630d8b1b9c2322b1ae31c1b7111a7c0 | {
"blob_id": "c30cc977c630d8b1b9c2322b1ae31c1b7111a7c0",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-26T03:22:47",
"content_id": "376862ca178b0481cdd86754957ddf2d71349b18",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "95b9eadeeb3be64019dfecb34057bf5ff9c946d4",
"extensio... | stackv2 | /* ========================================================================== */
/* Functions for reporting population statistics and other info */
/* ========================================================================== */
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#... | 2.5625 | 3 |
2024-11-18T23:19:10.509686+00:00 | 2021-07-09T18:05:09 | bdec9c3804857a31a1ce7722ed7cc1555f6da18c | {
"blob_id": "bdec9c3804857a31a1ce7722ed7cc1555f6da18c",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-09T18:05:09",
"content_id": "6cc1e229903958c85a8bc7b363493c89f19220de",
"detected_licenses": [
"MIT"
],
"directory_id": "c30d20ffd5522d4fe3e9fca3fb30e19931ab9e97",
"extension": "c",
... | stackv2 | // generated from rosidl_generator_c/resource/idl__functions.c.em
// with input from rmf_traffic_msgs:msg/ScheduleChangeAdd.idl
// generated code does not contain a copyright notice
#include "rmf_traffic_msgs/msg/detail/schedule_change_add__functions.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#inc... | 2.234375 | 2 |
2024-11-18T23:19:11.231925+00:00 | 2014-02-11T02:58:40 | f218fcaba1259bfad7278641d323c00409c43f14 | {
"blob_id": "f218fcaba1259bfad7278641d323c00409c43f14",
"branch_name": "refs/heads/master",
"committer_date": "2014-02-11T02:58:40",
"content_id": "c566059718d569ef0d6b36ebdcb061ce5871dbbc",
"detected_licenses": [
"MIT"
],
"directory_id": "fa20fb23d8c8138f0df067e5c85c65d80861419b",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
struct arp_record {
char ip[16];
char type[6];
char flags[6];
char mac[18];
char mask[4];
char dev[16];
};
int main( int argc, char* argv[] ) {
FILE *fp;
/* Open /proc/net/arp */
if ((fp = fopen("/proc/net/arp", "r")) == NULL) {
perro... | 2.765625 | 3 |
2024-11-18T23:19:11.306163+00:00 | 2016-11-11T14:29:57 | b19a4cbc4c93836bcd4524dcd786a0024bdc17ad | {
"blob_id": "b19a4cbc4c93836bcd4524dcd786a0024bdc17ad",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-11T14:29:57",
"content_id": "cadc8b1e7deebdde0560faa11f32023dcaf08f19",
"detected_licenses": [
"MIT"
],
"directory_id": "ca5906f04cef96a16bb293192c1f75fd8c261f8a",
"extension": "c"... | stackv2 | /************************
ROOPANSH BANSAL
150101053
CS210
************************/
/************************
Implementing the insertion sort using binary search for finding the right position of the element to be inserted
************************/
#include <stdio.h>
//Function prototypes
void InsertionSort(int arr[... | 4.15625 | 4 |
2024-11-18T23:19:11.532872+00:00 | 2021-10-08T12:53:29 | 3753b2ad9df86c1f791b8f56b45778659b812b55 | {
"blob_id": "3753b2ad9df86c1f791b8f56b45778659b812b55",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-08T12:53:29",
"content_id": "5ef43bac2174fc3146dc3a57eaf6f138168049bc",
"detected_licenses": [
"MIT"
],
"directory_id": "b5882500b4e16b74c4d4f52ae5586bccb19137e9",
"extension": "h",
... | stackv2 | #ifndef COLOR
#define COLOR
#include "utils/vec3d.h"
#include "rgba.h"
#include <cstdio>
extern const int i_MAXRGB;
extern const double d_MAXRGB;
extern const int i_MINRGB;
extern const double d_MINRGB;
using Color = Vec3d;
using Point = Vec3d;
Color randcolor(const int min = 0, const int max = 255);
Color rand_... | 2.0625 | 2 |
2024-11-18T23:19:11.756728+00:00 | 2018-05-20T20:29:35 | 16f4340e1b40d701573e78f79e672d663d0b9f96 | {
"blob_id": "16f4340e1b40d701573e78f79e672d663d0b9f96",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-20T20:29:35",
"content_id": "1b0e8f95660904deb7bb2583bda6875ed62cf73f",
"detected_licenses": [
"MIT"
],
"directory_id": "55bc718e7d994774806bef6d95e1c958243e1d37",
"extension": "c"... | stackv2 | #define _GNU_SOURCE
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/capability.h>
#include <sys/prctl.h>
#define WARN_UNUSED __attribute__((warn_unused_result))
// @return false on success; true otherwise
static bool WARN_UNUSED change_cap_state(const cap_value_t cap, ... | 2.390625 | 2 |
2024-11-18T23:19:12.132220+00:00 | 2014-11-29T16:42:25 | 883c023b2393ca7b2b28d17b8a98f4587f2df937 | {
"blob_id": "883c023b2393ca7b2b28d17b8a98f4587f2df937",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-29T16:42:48",
"content_id": "3ead5a574c11f0fc0771bb58994e042f3e2fb47d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1babb3b9c359aa73a6684262d4eab6ca8e6c6d41",
"extens... | stackv2 | /*============================================================================*
* main() module: ccp.c - Conditional copy command - OS/2 2.0 version.
*
* (C)Copyright IBM Corporation, 1991, 1992, 1993 Brian E. Yoder
*
* This program conditionally copies (based on size, modification time
* and date, and an... | 2.265625 | 2 |
2024-11-18T23:19:12.426092+00:00 | 2014-11-30T18:34:30 | 4118290b15a096023070133aeb74a52082091aba | {
"blob_id": "4118290b15a096023070133aeb74a52082091aba",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-30T18:34:30",
"content_id": "cfa61377b72cb8c0565824afc065a41b7a1eac66",
"detected_licenses": [
"Unlicense"
],
"directory_id": "d61c6911cfdd4b90a80d8ae35d2b46525868941f",
"extension... | stackv2 | extern void print_int(int x);
extern void print_string(char c[]);
void main(void){
int x, y;
x = 0;
y = 1;
print_string("Should print Foo\n");
if(!(x == 1)) {
print_string("Foo\n");
}
print_string("\n");
print_string("Should print Bar\n");
if(!(x == 0 && y == 10)) {
print_string("Bar\n");
... | 2.96875 | 3 |
2024-11-18T23:19:12.505148+00:00 | 2021-04-02T20:39:50 | 5f092cfcb418b9945b85667b6fb27b366fb55897 | {
"blob_id": "5f092cfcb418b9945b85667b6fb27b366fb55897",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-02T20:39:50",
"content_id": "c317a8260b9e7a5a818fc1ef61c260f8b773b9b3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "09064c4b7332688af1d42f1359a79e28a51497cb",
"extension"... | stackv2 | #include <stdio.h>
int main()
{
printf("Enter your weight (in pound): ");;
float wt_lb;
scanf("%f", &wt_lb);
printf("Enter your height (in inches): ");;
float ht_in;
scanf("%f", &ht_in);
float bmi = 703 * wt_lb / (ht_in * ht_in);
printf("Your BMI is %f.\n", bmi);
if (bmi < 18.5) {
printf("A... | 3.140625 | 3 |
2024-11-18T23:19:13.537794+00:00 | 2020-07-24T03:38:10 | 1d6e95df34b9daad841313d999d9527a36157321 | {
"blob_id": "1d6e95df34b9daad841313d999d9527a36157321",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-24T03:38:10",
"content_id": "6192c709cb8659f249d407e460e2d978b6dbe610",
"detected_licenses": [
"MIT"
],
"directory_id": "d51ff1fdcaa60ae19d6472ea20d9a1d65a078dbc",
"extension": "c"... | stackv2 | // Copyright 2011 Ninjas
// Licensed under the terms of the GNU GPL, version 2
// http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
#include "tools.h"
#include "types.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include "sha2.h"
i... | 2.265625 | 2 |
2024-11-18T23:19:13.982969+00:00 | 2019-06-06T11:40:41 | 4b462bfb68eeb68b01524fd99d0a415627381c1a | {
"blob_id": "4b462bfb68eeb68b01524fd99d0a415627381c1a",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-06T11:40:41",
"content_id": "41c6684e7b10589cd80de59e4280be2ab28c365d",
"detected_licenses": [
"MIT"
],
"directory_id": "3ef845ac474c9b761dbfd5d7dca6a43d96344d16",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* term_liveinfo.c :+: :+: :+: ... | 2.5 | 2 |
2024-11-18T23:19:16.632395+00:00 | 2020-01-06T22:07:03 | 6264940f94ceabb06c864efe02fa8f856b85a222 | {
"blob_id": "6264940f94ceabb06c864efe02fa8f856b85a222",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-06T22:07:03",
"content_id": "ff73aa1e81f551906ea166592517163613f27c1b",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
],
"directory_id": "9ae675b9ab00d2babf700... | stackv2 | /* This exhibits a bug with the types of tagged functions whose arguments
* appear tagged */
int foo(int x);
struct S {
void (*fptr)();
} g = { &foo };
int main() {
// Make g (and thus foo) TAGGED
int *pg = (int*)&g;
}
int foo(int arg) {
// Now take the address of x and make it tagged
int **px = &arg;
... | 2.765625 | 3 |
2024-11-18T23:19:16.860875+00:00 | 2023-03-16T14:41:42 | 24f25ab5c635779033eee3731f31e2f21be56c15 | {
"blob_id": "24f25ab5c635779033eee3731f31e2f21be56c15",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-16T14:42:35",
"content_id": "350972a1fd002516b4e0dd804035b4e98c470471",
"detected_licenses": [
"MIT"
],
"directory_id": "2be6e0573d5691e084629c32ecb43142b5b5a1ee",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ncurses.h>
#include "common.h"
bool term_size_ok() {
int lines, columns;
getmaxyx(stdscr, lines, columns);
return(lines >= MIN_TERM_LINES && columns >= MIN_TERM_COLS);
}
void tty_solitaire_generic_error(int errno, char *file, int line) {
ch... | 2.265625 | 2 |
2024-11-18T23:19:19.072843+00:00 | 2016-09-28T01:34:50 | b670b75daf652763ff5ac5c9efa5a18987dccace | {
"blob_id": "b670b75daf652763ff5ac5c9efa5a18987dccace",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-28T01:35:45",
"content_id": "893df043fb49d55849c85cca457af684ed307f2f",
"detected_licenses": [
"MIT",
"Apache-2.0"
],
"directory_id": "1298d1443dfedc0ae5fa3f967f8e8b353a329ab8",
... | stackv2 | #include <CUnit/CUnit.h>
#include <CUnit/Basic.h>
#include <stdlib.h>
#include <sys/param.h>
#include <time.h>
#include <assert.h>
#include "utils.h"
#include "olist.h"
void test_init(void) {
olist_t olist;
CU_ASSERT_EQUAL_FATAL(olist_init(&olist), 0);
olist_destroy(&olist);
}
typedef struct {
uns... | 2.390625 | 2 |
2024-11-18T23:19:19.192157+00:00 | 2021-08-13T18:16:47 | c1b4b54153fa499cf3651636c1cfd5e1ae506166 | {
"blob_id": "c1b4b54153fa499cf3651636c1cfd5e1ae506166",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-13T18:16:47",
"content_id": "d60b40007123d837af720a2b212542ac2e911dae",
"detected_licenses": [
"MIT"
],
"directory_id": "41845bc4d2cbf8efb92f8a107396bb95634ea592",
"extension": "c"... | stackv2 | /*
xray.jit.keepcell
Wesley Smith
wesley.hoke@gmail.com
last modified: 13-7-2006
*/
#include "jit.common.h"
#include "max.jit.mop.h"
typedef struct _max_xray_jit_keepcell
{
t_object ob;
void *obex;
} t_max_xray_jit_keepcell;
t_jit_err xray_jit_keepcell_init(void);
void *max_xray_jit_keepcell_new(t_symbol ... | 2.3125 | 2 |
2024-11-18T21:23:17.842137+00:00 | 2019-06-18T00:37:43 | 78d778239015dbabc4057076bfc653386cade6d5 | {
"blob_id": "78d778239015dbabc4057076bfc653386cade6d5",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-18T00:37:43",
"content_id": "1874bb7ec2f46dfd892948a62c72d9504912f4a9",
"detected_licenses": [
"MIT"
],
"directory_id": "c4e1dd7d0070fb840cfa5b5b8c7dd8e9e8bca051",
"extension": "c"... | stackv2 | #include <string.h>
#include <gbpMultifile.h>
int fopen_multifile_nth_file(fp_multifile_info *fp_in, int n) {
// Check that the file number makes sense
if(fp_in->n_files < n)
SID_exit_error("Invalid file number (%d) requested for multifile {%s;n_files=%d}.", n, fp_in->filename_base,
... | 2.6875 | 3 |
2024-11-18T21:23:18.220266+00:00 | 2023-07-15T02:10:11 | 8acd4dfa2fcf7e07734af36affebf7118e363d2e | {
"blob_id": "8acd4dfa2fcf7e07734af36affebf7118e363d2e",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-15T02:10:11",
"content_id": "fb716c9064f3ba066da79ffa9423f8339e13e85e",
"detected_licenses": [
"MIT"
],
"directory_id": "a269ac184134892824cd06b9d0344671feeaa1d0",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "BigInt.h"
// Demo of some basic BigInt functionality
int main() {
// Obtain a BigInt initialized to 42
BigInt* new_big_int = BigInt_construct(42);
// Get a normal int back (the BigInt must fit in an int type)
int as_int = BigInt_to_int(new_big_int);
// Print to ... | 3.421875 | 3 |
2024-11-18T21:23:18.448222+00:00 | 2022-02-14T17:12:13 | 8c051f9a8f7d6743f590211cd301c59fc3a2fab9 | {
"blob_id": "8c051f9a8f7d6743f590211cd301c59fc3a2fab9",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-14T17:12:13",
"content_id": "f8212759493a4d23f75a47b384dc01792be33f74",
"detected_licenses": [
"MIT"
],
"directory_id": "63d2b60e8a6e56ab70940b616100832140019f24",
"extension": "c"... | stackv2 | /*
* Copyright (C) 2019 xiehaocheng <xiehaocheng127@163.com>
*
* All Rights Reserved
*
* 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 limitat... | 2.515625 | 3 |
2024-11-18T21:23:18.554191+00:00 | 2019-03-15T21:16:11 | ebd9e9fa3c439760492a2b581b673bb50b01f549 | {
"blob_id": "ebd9e9fa3c439760492a2b581b673bb50b01f549",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-15T21:16:11",
"content_id": "0bfa1c7dc909e52553296c5fbe54a64d2216e755",
"detected_licenses": [
"MIT"
],
"directory_id": "1f8c9e4acf48da90e6027915dd902401ce07a71c",
"extension": "c"... | stackv2 | #ifdef PBL_PLATFORM_APLITE
#include "upng.h"
#include "png.h"
#define MAX(A,B) ((A>B) ? A : B)
#define MIN(A,B) ((A<B) ? A : B)
inline static char reverse_byte(uint8_t input) {
uint8_t result;
__asm__ ("rev %[input], %[result]\n\t"
"rbit %[result], %[result]"
: [result] "=r" (result)
... | 2.671875 | 3 |
2024-11-18T21:23:18.813991+00:00 | 2020-10-06T22:04:44 | ca06b4cbbc1fa043b90f06e14cbabbd43e7c7fa0 | {
"blob_id": "ca06b4cbbc1fa043b90f06e14cbabbd43e7c7fa0",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-06T22:04:44",
"content_id": "905e2f142a0baee99c724ee3e332407fd5c838cb",
"detected_licenses": [
"BSD-3-Clause-Clear"
],
"directory_id": "233a8c65e2936cb9323802764c62f4c5a1742389",
"... | stackv2 | /* This is just going through the usual process of starting through a Language book
* K&R's [ANSI] C 2nd Edition
*/
#include <stdio.h>
int main()
{
printf("Hello, world.\n");
return 0;
}
| 2.359375 | 2 |
2024-11-18T21:23:18.904576+00:00 | 2016-12-13T08:13:47 | 39b367ab7c882ab68c69c036391a5105b07aed8e | {
"blob_id": "39b367ab7c882ab68c69c036391a5105b07aed8e",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-13T08:13:47",
"content_id": "8baaa1f0a41d171970ddd9eff14e6a9fb25b0053",
"detected_licenses": [
"MIT"
],
"directory_id": "83a53e67b98127a47d1d0f971e08e30f752a9d82",
"extension": "c"... | stackv2 | /**
*Name: Tejas Patil
*Csu Id : 006949762
*Assignment No 5 - DNS
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "multi-lookup.h"
#include <pthread.h>
#include <unistd.h>
#include "util.h"
#include "queue.h"
#define MINARGS 3
#define USAGE "<inputFilePath> <outputFilePat... | 2.65625 | 3 |
2024-11-18T21:23:24.460128+00:00 | 2021-01-13T05:16:00 | b6c76b6d07619e121189d71945e067f339068896 | {
"blob_id": "b6c76b6d07619e121189d71945e067f339068896",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-13T05:16:00",
"content_id": "42159b8e7251d28f5b6be9eb43186e22c590aacc",
"detected_licenses": [
"MIT"
],
"directory_id": "fbfa83fa6d3275b1c62a1c9d28fed23e08a8cc2e",
"extension": "c"... | stackv2 | #include <stdint.h>
#include <stdio.h>
#include <zlib.h>
#include "kseq.h"
#include "paf.h"
#include "cf.h"
KSTREAM_INIT(gzFile, gzread, 0x10000)
color_file_t *cf_open(const char *fn)
{
gzFile fp = gzopen(fn, "r");
if (fp == 0) return 0;
color_file_t *pf = (color_file_t*) calloc(1, sizeof(color_file_t));
pf->fp... | 2.234375 | 2 |
2024-11-18T21:23:24.625633+00:00 | 2021-04-27T16:27:11 | 718da81fab512c51655b605873eea3c337e9e329 | {
"blob_id": "718da81fab512c51655b605873eea3c337e9e329",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-27T16:27:11",
"content_id": "9811489dfdb140b1b2ff23547e5db76ad4f996c2",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "3bd7d1029946e23840051f9c61208c0d8260f61e",
"extens... | stackv2 | /* ----------------------------------------------------------------------- */
/* bios_0.c */
/* ----------------------------------------------------------------------- */
/* */
/* -----... | 2.5625 | 3 |
2024-11-18T21:23:24.702016+00:00 | 2020-09-08T02:52:56 | a6f3b05cdab9d3a8539c3d85476c7e8855d5b888 | {
"blob_id": "a6f3b05cdab9d3a8539c3d85476c7e8855d5b888",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-08T02:52:56",
"content_id": "48e2a1f06ec92edb9cb907c3e1ee545ff49021e4",
"detected_licenses": [
"MIT"
],
"directory_id": "efb25a20ecddb3a0a8795bc616069fc1a94e5375",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/*! \file hal_frdm_fxs_mult2_b.c
\brief Hardware Abstraction layer for the FRDM-FXS-MULT2-B sensor shield.
*/
#include "sensor_fusion.h" // top level magCal a... | 2.03125 | 2 |
2024-11-18T21:23:24.771331+00:00 | 2020-01-31T09:38:51 | f2ce17566fd24772d05472cb0b6b42eae8aa7eec | {
"blob_id": "f2ce17566fd24772d05472cb0b6b42eae8aa7eec",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-31T09:38:51",
"content_id": "7a06e512afcfae4fe749b8b467eff2e832479a3c",
"detected_licenses": [
"MIT"
],
"directory_id": "15debf24c983eae615eb1b2d3e82f7c22265495a",
"extension": "c"... | stackv2 | #include "asm.h"
#include "partion.h"
#include "hard_disk.h"
#include "string.h"
#include "memory.h"
#define PARTION_NUM (4)
#define PARTION_POS (446)
#define BOOT_FLAG (0xaa55)
#define BOOT_FLAG_POS (510)
#define ACTIVE_FLAG (0x80)
PartionEntity partion_table[PARTION_NUM];
// NOTE: dev unused
error_t
init_partion(d... | 2.328125 | 2 |
2024-11-18T21:23:24.855758+00:00 | 2014-05-05T20:31:52 | 2de1822a82b8aa5823cb6ebd7e6b10c08a759e88 | {
"blob_id": "2de1822a82b8aa5823cb6ebd7e6b10c08a759e88",
"branch_name": "refs/heads/master",
"committer_date": "2014-05-05T20:31:52",
"content_id": "1afec0c174a1f81669b0dbbc4c774f10a53b6b18",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "76fe024b138a819c3f9fe76d29cdb6998ff5af0e",
"extensio... | stackv2 | #include "hw6.h"
/*
* read from stdin(filepath==NULL) or filepath
* return file descriptor or exit with error
*/
FILE* fileopen ( char *filepath )
{
FILE *fp;
if ( filepath == NULL ) {
fp = stdin;
} else {
fp = fopen ( filepath, "rb" );
if ( fp == NULL ) {
printerror ( "file open failed" );
exit ( 1 )... | 2.890625 | 3 |
2024-11-18T21:23:25.617385+00:00 | 2023-04-02T05:01:06 | 63fe255d67760fadfc559ba2d91fb5ccadf146a8 | {
"blob_id": "63fe255d67760fadfc559ba2d91fb5ccadf146a8",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-12T11:10:39",
"content_id": "49b3085b5bbab19e03c14c490ad5e31312afcc3d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9f275713fcb7930ddd22aa14123d1e3bb8da793d",
"extensio... | stackv2 | /*
* Copyright (c) 2022 Meta
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_NET_HTTP_SERVICE_H_
#define ZEPHYR_INCLUDE_NET_HTTP_SERVICE_H_
#include <stdint.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
struct http_resource_desc {
const char *resource;
void *detail;
};
/**
... | 2.328125 | 2 |
2024-11-18T21:23:25.770884+00:00 | 2023-08-25T22:11:30 | 8b02a0886fa540abc91423aec995e2eb63b9df25 | {
"blob_id": "8b02a0886fa540abc91423aec995e2eb63b9df25",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-25T22:11:30",
"content_id": "1f2feb4aa466a195d4592c9f76beda1e9d0fa61f",
"detected_licenses": [
"Zlib"
],
"directory_id": "1b108da12072c6babaff2707324385a0ae4533ba",
"extension": "c",... | stackv2 | /***************************************************************************//**
* @brief Character LCD Interface
*
* @file ILCD.h
*
* @author Matthew Spinks <https://github.com/mspinksosu>
*
* @date 9/24/22 Original creation
*
* @details
* TODO
*
* @section license License
* SPDX-FileCopyright... | 2.4375 | 2 |
2024-11-18T21:23:25.939768+00:00 | 2021-07-21T01:32:29 | 8d1a94aa8168228be3d8ce9c3e3e533e18dc902b | {
"blob_id": "8d1a94aa8168228be3d8ce9c3e3e533e18dc902b",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-21T01:32:29",
"content_id": "914aaff939e1bc79566828354a83762329ee70e8",
"detected_licenses": [
"MIT"
],
"directory_id": "c4dba6ee4e87b10b3005b12a8c98743556a4fb8d",
"extension": "c",
... | stackv2 | #include "NeoC/Environment.h"
#include "NeoC/String.h"
#include "NeoC/Console.h"
#include "NeoC/Exception/Exception.h"
#include "NeoC/Defer.h"
#include "NeoC/System.h"
void main() $_ {
String_t *text = String.New(u8"NeoC is a Neo C Programming Environment Library !");
Console.WriteLine(text);
uint8_t target ... | 2.21875 | 2 |
2024-11-18T21:23:26.082721+00:00 | 2021-08-08T03:18:44 | a087967df342a1bdd4c13318438d9a8a3b148f3c | {
"blob_id": "a087967df342a1bdd4c13318438d9a8a3b148f3c",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-08T03:18:44",
"content_id": "e24daefc8265acb405433ebf84492cb61f886a47",
"detected_licenses": [
"MIT"
],
"directory_id": "a58896b7abdaf4cf60007986778b13ad2591051c",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <io.h>
#include <ctype.h>
#include <gug.h>
void main(int argc, char *argv[])
{
char infile[132];
char outfile[132];
char headfile[132];
char *c;
int len;
long x,y,z;
unsigned char *buffer;
char palette[768];
unsigned short value;
... | 2.515625 | 3 |
2024-11-18T21:23:26.144162+00:00 | 2023-02-04T18:40:10 | fec4658ee1d6039624f8aa551beb4161c5df1b94 | {
"blob_id": "fec4658ee1d6039624f8aa551beb4161c5df1b94",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-04T18:40:10",
"content_id": "65ee3a353f8e4381a28322e20c82391243948b38",
"detected_licenses": [
"MIT"
],
"directory_id": "32697a577ac3c4c152ee382d0e599af51885fd33",
"extension": "c"... | stackv2 | /*
* demo-iopiinterrupt.c
*
* Created on: 27 March 2020
*
* compile with "gcc ../ABE_IoPi.c demo-iopiinterrupt.c -o demo-iopiinterrupt"
* run with "./demo-iopiinterrupt"
*/
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <time.h>
#include <unistd.h>
#include "../ABE_IoPi.h"
void... | 3.25 | 3 |
2024-11-18T21:23:26.340810+00:00 | 2022-03-19T14:29:49 | 308e73e38379ce7512c779be19939ab15719cc01 | {
"blob_id": "308e73e38379ce7512c779be19939ab15719cc01",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-19T14:29:49",
"content_id": "02e73788d9663a13ab799ab95338df17088f9686",
"detected_licenses": [
"MIT"
],
"directory_id": "714bf1aafaf5056f12f8f886c337e5dcb1068ef4",
"extension": "c"... | stackv2 | #include "brubeck.h"
#include <jansson.h>
#include <librdkafka/rdkafka.h>
#include <string.h>
static char errstr[512]; /* librdkafka API error reporting buffer */
static int kafka_shutdown(void *backend) {
struct brubeck_kafka *self = (struct brubeck_kafka *)backend;
rd_kafka_resp_err_t err;
self->connected = ... | 2.34375 | 2 |
2024-11-18T21:23:26.409260+00:00 | 2022-03-14T09:49:15 | ce34eb0c82827c4e2fa05dd3e6e284bb6ee552ae | {
"blob_id": "ce34eb0c82827c4e2fa05dd3e6e284bb6ee552ae",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T09:50:00",
"content_id": "c1eb9475e28490720b9cc222f13806ad7c9bcc30",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e1cddfd754d952134e72dfd03522c5ea4fb6008e",
"extensio... | stackv2 | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright(c) 2021 Cisco Systems, Inc.
*/
#ifndef __VNET_HASH_H__
#define __VNET_HASH_H__
#include <vlib/vlib.h>
#define foreach_vnet_hash_fn_types \
_ (ETHERNET, 0, "hash-fn-ethernet") \... | 2 | 2 |
2024-11-18T21:23:26.635290+00:00 | 2016-09-13T04:31:40 | 7d43a4e52e8680f39d7af2df99c1dfda0db3ca99 | {
"blob_id": "7d43a4e52e8680f39d7af2df99c1dfda0db3ca99",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-13T04:31:40",
"content_id": "3f0485265c8483c65e883666225b2f1d6755c178",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fa46ea049c5ee2f6571d4c1d392e267c0efab824",
"extensio... | stackv2 | #include<reg52.h>
#include<stdio.h>
#include<math.h>
#include "18b20.h"
#include "1602.h"
#include "delay.h"
#include "hcsr04.h"
sbit KEY=P1^3;
sbit LED=P1^4;
float CurrentTemperature;//当前温度
float CurrentSpeed;//当前声速
float CurrentDistance;//距离
char TempDisplayBuf[16];//温度显示字符串缓冲
char DistanceDisplayBuf[16];//距... | 2.796875 | 3 |
2024-11-18T21:23:27.170510+00:00 | 2012-01-14T16:19:41 | cabae9fda6d8bf13afa82dc694cfe80d584809d1 | {
"blob_id": "cabae9fda6d8bf13afa82dc694cfe80d584809d1",
"branch_name": "refs/heads/master",
"committer_date": "2012-01-14T16:19:41",
"content_id": "b99eb931c40977008094fe604423ffafec6775f0",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "03b60dde2f22afe5bb7752558c0cfa20c4f251c2",
"extension":... | stackv2 | #include "ninja.h"
#include "bus.h"
#include "console.h"
const bus_interface_t *current_bus = NULL;
static uint8_t outmode = OUTMODE_0x8; // output formatting for bus data
static BOOL log_enabled = TRUE;
/****************************************************************/
void bus_init(const bus_interface_t *bus)
{
... | 2.53125 | 3 |
2024-11-18T21:23:27.246388+00:00 | 2017-02-19T15:19:55 | 3ca5eb6735c464f1c89a06b6fd743c64e89355f6 | {
"blob_id": "3ca5eb6735c464f1c89a06b6fd743c64e89355f6",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-19T15:19:55",
"content_id": "9cd73b805013c72abf52537eec68aa80191960df",
"detected_licenses": [
"MIT"
],
"directory_id": "aabb8827406bb61de09a7aed27c83eefa2a8ee35",
"extension": "c"... | stackv2 | #include "config.inc.h"
#include "logger.h"
#include <stdio.h>
#include <stdarg.h>
static void log_log(const char* file, int line, const char* color, const char* fmt, va_list args) {
const char* filename = file;
for (const char* p = file; *p != '\0'; p++) {
if (*p == '/' || *p == '\\') {
filename = p + 1;
}
... | 2.359375 | 2 |
2024-11-18T21:23:27.320034+00:00 | 2021-04-19T14:58:43 | b1c235a2c9419b25f85c9aa7393f7d805a5f420b | {
"blob_id": "b1c235a2c9419b25f85c9aa7393f7d805a5f420b",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-19T14:58:43",
"content_id": "167ffb986a18a84699ea528f43da759475ad5daf",
"detected_licenses": [
"MIT"
],
"directory_id": "933f1150b6efe6184f14a327459926f208b71471",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <file.h>
cstring_t * readFile(const char *pathname)
{
cstring_t * cs = NULL;
FILE *fp = fopen(pathname, "rb");
if (!fp) return NULL;
fseek(fp, 0, SEEK_END);
size_t len = ftell(fp);
fseek(fp, 0, SEEK_SET);
cstring_new_len(str, len);
size_t total = 0;
whi... | 2.6875 | 3 |
2024-11-18T21:23:27.818490+00:00 | 2022-01-18T01:52:43 | b047f2f26ecaaf94a946cd5d37e564e4bae9c803 | {
"blob_id": "b047f2f26ecaaf94a946cd5d37e564e4bae9c803",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-18T01:52:43",
"content_id": "8e875269c00e3d66325364b19af12c02507e87e4",
"detected_licenses": [
"MIT"
],
"directory_id": "3753dfc22b0dcac60e9f4672ca6674e261602ba3",
"extension": "h"... | stackv2 | #ifndef DISPLAY_H
#define DISPLAY_H
#include <stdio.h>
#include "abuf.h"
#include "editor.h"
#define NUM_SYNTAX 2
#define SETTING_NUMBER (1 << 0)
#define SETTING_STRING (1 << 1)
struct erow;
/**
* Contains parameters for syntax highlighting of a given language.
*/
struct editorSyntax {
char* filetype;
ch... | 2.046875 | 2 |
2024-11-18T21:23:28.229692+00:00 | 2015-12-11T13:08:43 | dae4c7b2c3dd81aefc0ca1c20137fbbe57cb062f | {
"blob_id": "dae4c7b2c3dd81aefc0ca1c20137fbbe57cb062f",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-11T13:08:43",
"content_id": "fe9fa6610e14e1d3700be5b7f6290f2b0719745f",
"detected_licenses": [
"MIT"
],
"directory_id": "163815a77c218277a78a75da33755744dfe3c821",
"extension": "c"... | stackv2 | /*============================================================================
Include files
============================================================================*/
#include "Timers.h"
#include <dbg.h>
#include <dbg_uart.h>
/*============================================================================
Global v... | 2.53125 | 3 |
2024-11-18T21:23:28.667918+00:00 | 2021-10-01T18:24:24 | 66e1a2d1bf827e5cf9bb3053c221d7eaa2d379f9 | {
"blob_id": "66e1a2d1bf827e5cf9bb3053c221d7eaa2d379f9",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-01T18:24:24",
"content_id": "00bdf6983cb9ff71195d423149f04739bee6e260",
"detected_licenses": [
"MIT"
],
"directory_id": "d2a4cf4e6fff810e94c85c1c94ebef6638469ff4",
"extension": "c"... | stackv2 | #include<stdio.h>
int main()
{
int number,check;
scanf("%d",&number);
check= number & (number-1);
if(check==0)
printf("YES");
else
printf("NO");
} | 2.421875 | 2 |
2024-11-18T21:23:28.736949+00:00 | 2020-11-07T20:39:27 | c88192aca9490d07735892ef03a25fa7c5e21fac | {
"blob_id": "c88192aca9490d07735892ef03a25fa7c5e21fac",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-07T20:39:27",
"content_id": "81496d323f16186af3d7cbb819ddefdeebb13da3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5a66a12bccc91cdb17aaa86dfe11ebd37219a3f4",
"extension"... | stackv2 | /*
* Cache simulation project
* Class UCR IE-521
*
* Autores:
* Julian Morua Vindas B54872
* José López Picado
*/
#ifndef UTILITIES
#define UTILITIES
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include "L1cache.h"
#define BUFFER_SIZE 32
#define VC... | 2.34375 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.