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:50:50.071927+00:00 | 2020-10-01T20:39:01 | cd8ac7efd0a9f13466b8c07a43940e41a58275d0 | {
"blob_id": "cd8ac7efd0a9f13466b8c07a43940e41a58275d0",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-01T20:39:01",
"content_id": "5935a172686fc5a079f4cd99b9b67ef00cf0be69",
"detected_licenses": [
"MIT"
],
"directory_id": "2ff9fcab91719ca5e96e1869be0d3dfe2767d345",
"extension": "h"... | stackv2 | /**
* @file commands.h
*
* Lists the instruction keywords that may be used from the commandline interface.
*
*/
#pragma once
/**
@brief Contains all instruction key to use MC Analyzer form command line. Additionally syntax information are given how to use the instructions.
*/
struct cli_commands {
/**
@b... | 2.359375 | 2 |
2024-11-18T22:50:50.261058+00:00 | 2021-12-10T03:49:42 | 6743ba2db176027c33e8afee1e12b81e23b406dd | {
"blob_id": "6743ba2db176027c33e8afee1e12b81e23b406dd",
"branch_name": "refs/heads/master",
"committer_date": "2021-12-10T03:49:42",
"content_id": "176af7d0436aabf896073eb329e21441bd4eec68",
"detected_licenses": [
"MIT"
],
"directory_id": "3d58bca8dd4c5060e0e23e5ba499e277bd01fab0",
"extension": "h"... | stackv2 | /*
* gssw.h
*
* Created by Erik Garrison, based on SSW by Mengyao Zhao.
*
*/
#ifndef SSW_H
#define SSW_H
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#define SIMDE_ENABLE_NATIVE_ALIASES
#include "simde/x86/sse4.1.h"
/*! @typedef structure of the query pro... | 2.46875 | 2 |
2024-11-18T22:50:51.673706+00:00 | 2022-01-19T01:26:16 | eec2438f0e9a10f39fdd8dd3e9a97e2f7f483407 | {
"blob_id": "eec2438f0e9a10f39fdd8dd3e9a97e2f7f483407",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-19T01:26:16",
"content_id": "a7ad217b78e2bb3d8304b06ae420c76097d107ac",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "67305fcba68fdf469862aed2959ad1dd5b22a536",
"extensio... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "iot_import.h"
#include "lite-utils.h"
#include "subdev_example_api.h"
iotx_thing_masterlave_pt g_thing_masterlave_t = NULL;
#define GET_JSON_VALUE(node, param, buf) \
do { \
(node) = LITE_json_value_of((param), (buf)); \
if((no... | 2.09375 | 2 |
2024-11-18T22:50:51.918133+00:00 | 2019-10-06T19:49:04 | d5906ca9e31a92a63047a04c1a7f58953650c13c | {
"blob_id": "d5906ca9e31a92a63047a04c1a7f58953650c13c",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-06T19:49:04",
"content_id": "32b2951fe1b3e2626c759780235589771a128ebd",
"detected_licenses": [
"MIT"
],
"directory_id": "7ee916587d9da78cea153666f6b2d6c9b2a63ba0",
"extension": "c"... | stackv2 | /*******************************************************************************
* Copyright (C) 2018 Maxim Integrated Products, Inc., 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 d... | 2.1875 | 2 |
2024-11-18T22:50:52.983251+00:00 | 2018-01-25T17:56:58 | 3d72b3b432e82254346e58072f0b9d77cdee9d95 | {
"blob_id": "3d72b3b432e82254346e58072f0b9d77cdee9d95",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-25T17:56:58",
"content_id": "eb6d20bd7924ad413f839fef9bddcdc0508bf2ae",
"detected_licenses": [
"Unlicense"
],
"directory_id": "ad8463d92149abd70b197fc5a62845207d07adf4",
"extension... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ush/env.h :+: :+: :+: ... | 2.359375 | 2 |
2024-11-18T22:50:53.063860+00:00 | 2016-09-05T07:00:50 | 71f5c878a4ed18799dc320825e696760da23c61d | {
"blob_id": "71f5c878a4ed18799dc320825e696760da23c61d",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-05T07:00:50",
"content_id": "45b9c872509fed3b5bc42098dde455a1eac82d9f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9c458e692ac89dbf8522ba353c028feecc6b2a39",
"extensio... | stackv2 | #include "Configuration.h"
void I2C1_Init(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
I2C_InitTypeDef I2C_InitStructure;
/* I2C Periph clock enable */
RCC_APB1PeriphClockCmd(RCC_APB1Periph_I2C1, ENABLE);
/* Configure I2C pins: SCL and SDA */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6 | GPIO_Pin_7;
G... | 2.546875 | 3 |
2024-11-18T22:50:53.455892+00:00 | 2014-06-15T16:40:02 | c04694ecf8b73ebc9baf2912ec10131a5d709a1a | {
"blob_id": "c04694ecf8b73ebc9baf2912ec10131a5d709a1a",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-15T16:40:02",
"content_id": "7dcbb1e9da06bd0eb15b3583146c51357c6699cd",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "cd7c067fa82206ab5d6c6fbc251111c532786c3e",
"extens... | stackv2 | #include "archive-unrar.h"
#include "stringutils.h"
#include "inklog.h"
#define INKLOG_MODULE "archive-unrar"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <err.h>
#include <ctype.h>
#define EXPECT(condition) if ( !(condition) ) { \
inklog(LOG_ERR, "Condition failed in readline: %s",... | 2.1875 | 2 |
2024-11-18T22:50:53.707637+00:00 | 2023-07-26T08:56:53 | 7cc8634377462cff6f9f459b095443e809692cf0 | {
"blob_id": "7cc8634377462cff6f9f459b095443e809692cf0",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-26T08:56:53",
"content_id": "e2a018af6a52491d7054c8881d150d9a192becf2",
"detected_licenses": [
"MIT"
],
"directory_id": "faa5661ad28b3bb2ec2b732356c22c18479d7c94",
"extension": "c"... | stackv2 | #include "drally.h"
#include "drally_display.h"
#if defined(DR_MULTIPLAYER)
extern __DWORD__ ___19bd60h;
void ___623d4h(void);
#endif
extern void_cb ___2432c8h;
void dRally_Keyboard_init(void);
void ___60466h(int, int);
void ___3e720h(void);
void __VGA3_SETMODE(void);
void dRally_System_init(void);
void dRally_Sound... | 2.109375 | 2 |
2024-11-18T22:50:53.817639+00:00 | 2015-06-19T16:37:38 | 69aa93f689efb1b8cb3f613ed9e83d237a2d6b2b | {
"blob_id": "69aa93f689efb1b8cb3f613ed9e83d237a2d6b2b",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-19T16:37:38",
"content_id": "c9b39b1de3f5c58fb3b722e000b4b167737053b7",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "70b5b15075c40f33789f0b3044572768c9bf4872",
"extens... | stackv2 | /** @file
This library will parse the coreboot table in memory and extract those required
information.
Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompan... | 2.265625 | 2 |
2024-11-18T22:50:54.083423+00:00 | 2020-11-24T22:50:26 | f29e5e513373911795d0111780b18414e4d07ea3 | {
"blob_id": "f29e5e513373911795d0111780b18414e4d07ea3",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-24T22:52:08",
"content_id": "8387ae0f08e94fbf0c030cd0238dc81099df51f3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1db01e41f650bda66992d8f8c98a06835c4da995",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <fftw3.h>
#include <time.h>
#define alpha (0.23f)
#define waveq 0.8f
#define timeprinter 600
#define maxwindows 1000000
#define num_cel 10
#define M 800
#define N 1
#define L (M*N)
#define X (L/sqrt(2)/2/num_cel)
#define dx M_PI/X
// #define dx 0.088
... | 2.328125 | 2 |
2024-11-18T22:50:54.191890+00:00 | 2020-12-20T14:17:34 | 3381489eccc4f3432990270ba2612afdcbd15878 | {
"blob_id": "3381489eccc4f3432990270ba2612afdcbd15878",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-20T14:17:34",
"content_id": "bf81671c2b3b8e6c9a4af015e775e7215f7149d6",
"detected_licenses": [
"MIT"
],
"directory_id": "b341fe653178d68acee457a872a9b1252724bf0d",
"extension": "c"... | stackv2 | /*
* Chinese Comment by UTF-8
*
* 题目内容
* 按以下规则生成数列:
* 1. 前2项为2和3
* 2. 若(n - 1)和(n - 2)项的乘积为一位数,则n项就是这个一位数
* 3. 若上述乘积是两位数,则第n项和第(n + 1)分别是这个数的十位和个位数
* 请求出这个数列的第n项。
*
* 分析
* 翻译题。模拟算法即可
*/
int get_in_list(unsigned int loca) {
int list[loca + 1]; // 多开一个是为了防止最后一次计算大于10
list[0] = 2, list[1] = 3;
... | 3.203125 | 3 |
2024-11-18T22:50:54.428247+00:00 | 2023-07-17T10:16:59 | e3c113a0d3195c579ba205b61d25232028bea362 | {
"blob_id": "e3c113a0d3195c579ba205b61d25232028bea362",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-19T01:33:00",
"content_id": "b1aee34788b4bb86d02d83a3f899386918e0b5b4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bf31cb8bef9b5c75ab7b783897fcfb2d2a23b2b4",
"extension"... | stackv2 | /*
* Copyright (c) 2023 Nordic Semiconductor
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "friendship_common.h"
#include "mesh_test.h"
#define LOG_MODULE_NAME friendship_common
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
static uint16_t bt_mesh_test_friend_lpn_addr;
static ATOMI... | 2.09375 | 2 |
2024-11-18T22:50:54.531025+00:00 | 2021-04-18T15:43:14 | 620cc169ba6c311eaa078f4cb4fca60b8c576751 | {
"blob_id": "620cc169ba6c311eaa078f4cb4fca60b8c576751",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-18T15:43:14",
"content_id": "56e2b4ed5d8dfacdd595880d0b20a58c7187c090",
"detected_licenses": [
"MIT"
],
"directory_id": "68c744ff6d792a60f5228d2942abf591c6347ece",
"extension": "c"... | stackv2 | /*
* MIT License
*
* Copyright (c) 2020 dead-end
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | 2.34375 | 2 |
2024-11-18T22:50:55.328136+00:00 | 2013-09-07T13:48:55 | 1098230584b4bd1cc0d3d267e1b829a71ffca61e | {
"blob_id": "1098230584b4bd1cc0d3d267e1b829a71ffca61e",
"branch_name": "refs/heads/master",
"committer_date": "2013-09-07T13:48:55",
"content_id": "e97bcb8eea6d4730cf709feb991b2c42b6171d7d",
"detected_licenses": [
"MIT"
],
"directory_id": "3a8aa4af7ea56f27173c2b173a0d57702a6c5ee7",
"extension": "c"... | stackv2 | /* ========================================
MarchVM (Medvedish Architecture
Virtual Machine)
medvedx64 2013
comes under the terms of the MIT license
======================================== */
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
struct marchCPU { // Registers
... | 2.453125 | 2 |
2024-11-18T22:50:55.955627+00:00 | 2019-11-25T13:19:06 | 4fd567b0bf98094d3c566177be5dd67179607f34 | {
"blob_id": "4fd567b0bf98094d3c566177be5dd67179607f34",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-25T13:19:06",
"content_id": "dd7138ad9abf9ef7aa0cc70e6bead7943bcacf8a",
"detected_licenses": [
"MIT"
],
"directory_id": "9e166c9dcf21dde5db02aa1155bc604641ac6f3b",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
FILE *fint,*ftab,*flen,*fsym,*fout,*ftemp;
int op1[10],txtlen,txtlen1,i,j=0,len,wordcount;
char add[5],symadd[5],op[5],start[10],temp[30],line[20],label[20],mne[10],operand[10],symtab[10],opmne[10];
void threeword(){
fscanf(fint,"%s%s%s%s",add,... | 2.40625 | 2 |
2024-11-18T22:50:56.884682+00:00 | 2016-03-06T04:21:32 | 0b2462c2e6fcc443044ef4f25d50b03d64d36518 | {
"blob_id": "0b2462c2e6fcc443044ef4f25d50b03d64d36518",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-06T04:21:32",
"content_id": "7b8ba620810c312c49206426e0173cd3a76e8441",
"detected_licenses": [
"MIT"
],
"directory_id": "955badb6a88f883d132492032d020461a03157be",
"extension": "h"... | stackv2 | #ifndef STROKKUR_SEND_H
#define STROKKUR_SEND_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/socket.h>
#include "strokkur_common.h"
/* At most 64 (+ 1) extra messages. */
#define STROKKUR_MAX_REDUNDANT 64
struct strokkur_send_state {
struct strokkur_chunk_header header;
... | 2.328125 | 2 |
2024-11-18T22:50:56.951515+00:00 | 2017-06-12T15:55:05 | 57ffca891e9177a2fa9327e7fbfb2bb4a6d40ac4 | {
"blob_id": "57ffca891e9177a2fa9327e7fbfb2bb4a6d40ac4",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-12T15:55:05",
"content_id": "b295be4ae6ee8dd7e0da2557911d9386a01958c9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e7b13950ac0c12eb4a82d50344b3bbf3579c1839",
"extensio... | stackv2 | //
// Created by Stanislav Lakhtin on 02/03/2017.
//
#include <libopencm3/cm3/common.h>
#include <libopencm3/stm32/f1/memorymap.h>
#include <libopencm3/stm32/f1/gpio.h>
#define ENCODER_PORT GPIOA
#define ENCODER_A GPIO2
#define ENCODER_B GPIO3
#define ENCODER_BUTTON GPIO4
uint8_t *vControl;
void encoder_setup(uint8_... | 2.421875 | 2 |
2024-11-18T23:02:47.625417+00:00 | 2022-10-28T03:04:02 | f96dff3ec0d65ee5e9ef6375750ef0cab6470418 | {
"blob_id": "f96dff3ec0d65ee5e9ef6375750ef0cab6470418",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-28T03:04:02",
"content_id": "8492a5057da6f7a70b6a55e7b88d5658bf152a74",
"detected_licenses": [
"MIT"
],
"directory_id": "3aa0ee48aa17c9c3c0885a65bf7c15ca1d93ddf0",
"extension": "h"... | stackv2 | /*
* File: acf.h
* Author: tahull
* Autocorrelation function
*/
#ifndef ACF_H
#define ACF_H
#include "interp.h"
#include "../tuner_defs.h"
#define ACF_FP_SHFT 5
#ifdef __cplusplus
extern "C" {
#endif
/* @Summary
* Apply autocorrelation to a sample array
* @Description
* Autocorrelation Function with nor... | 2.234375 | 2 |
2024-11-18T23:02:48.002018+00:00 | 2020-05-09T12:51:44 | 146c763d8be7e8ac6e4344ac344a331efb721e3b | {
"blob_id": "146c763d8be7e8ac6e4344ac344a331efb721e3b",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-09T12:51:44",
"content_id": "15f2bbae02cf8bf4a7bf7c0e07b866951ce95f6b",
"detected_licenses": [
"MIT"
],
"directory_id": "873e248ddff557adff31fbcbd96ebfa9f3eda5d3",
"extension": "c"... | stackv2 | //LOGIC
//1. Membaca file tiap characters
//2. Menggantikan tab dengan spasi
//3. Jika 1 spasi gacukup ya ditambah
//4. Tulis di file lain
#include "types.h"
#include "stat.h"
#include "user.h"
//pembuatan buffer
char buf[512];
//fungsi pembuatan file
void cat(int text)
{
//deklarasi variabel
int n, count = 1;
... | 3.328125 | 3 |
2024-11-18T23:02:48.083909+00:00 | 2021-10-07T21:46:24 | 148da11fb91cafa16c1bcf83357e1737387f0b28 | {
"blob_id": "148da11fb91cafa16c1bcf83357e1737387f0b28",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-08T01:08:36",
"content_id": "5e28870e53cfc4dcf176c1ce766f557f3a75fb62",
"detected_licenses": [
"MIT"
],
"directory_id": "25ec76142b3dc23999abcc507a719117859eaacc",
"extension": "c"... | stackv2 | /**
* @author Cristóvão Zuppardo Rufino <cristovaozr@gmail.com>
* @version 0.1
*
* @copyright Copyright Cristóvão Zuppardo Rufino (c) 2021
* Please see LICENCE file to information regarding licensing
*/
#include "drivers/mpu6050/mpu6050_driver.h"
#include "include/device/i2c.h"
#include "include/errors.h"
#inc... | 2.4375 | 2 |
2024-11-18T23:02:48.534755+00:00 | 2018-06-12T18:56:49 | d065ac6f5e676617e3a58598417b77f178b8b949 | {
"blob_id": "d065ac6f5e676617e3a58598417b77f178b8b949",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-12T18:56:49",
"content_id": "31b65a36822b11c48328a3a7eff020276539cc56",
"detected_licenses": [
"MIT"
],
"directory_id": "5b6e8b81dd91d1a7d2ef3052f0855b55faa28cf2",
"extension": "h"... | stackv2 | #ifndef CHALLOC_STRUC_H_
#define CHALLOC_STRUC_H_
#include <stdlib.h>
#ifndef CHALLOC_STATIC_BLK_SIZE
/**
* To makro definiuje rozmiar w bajtach pojedynczego bloku zaalokowanego statycznie.
* Wartość tę można zmienić podczas kompilacji.
*/
#define CHALLOC_STATIC_BLK_SIZE 8192
#endif
#ifndef CHALLOC_STATIC_BLK_COU... | 2.546875 | 3 |
2024-11-18T23:02:48.947310+00:00 | 2023-07-20T16:50:46 | 766c6e246fe42e6fef6e926c0609ae133fb50f02 | {
"blob_id": "766c6e246fe42e6fef6e926c0609ae133fb50f02",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-20T16:50:46",
"content_id": "889d5a146e19249fb205a66374c07c9b50c3b89e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "505585f1d89447adea3f9519f12255602acdb1b2",
"extensio... | stackv2 | /*---------------------------------------------------------------
* Programmer(s): Daniel R. Reynolds @ SMU
*---------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2023, Lawrence Livermore National Security
* and Southern Methodist University.
* All rights ... | 2.21875 | 2 |
2024-11-18T23:02:49.015202+00:00 | 2019-12-19T12:22:30 | 41cee9bd21353e1813f085f295033e5392395630 | {
"blob_id": "41cee9bd21353e1813f085f295033e5392395630",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-19T12:22:30",
"content_id": "d0d0596ca8d4f924097c3d0cab4118ba2a40e4f1",
"detected_licenses": [
"MIT"
],
"directory_id": "e714209c7433e76cf652d8e004d31145bd07545a",
"extension": "c"... | stackv2 | #include "stm32f30x.h"
int main ()
{
// initialization
// setup the pin (mode, type, speed, pupd)
RCC -> AHBENR |= RCC_AHBENR_GPIODEN; // enabling the D port
GPIOD -> MODER = 0b01010101010101010101010101010101; // general purpose output mode; 0x55555555
GPIOD -> OTYPER = 0; // output push-pull
GPIOD -> OSPEEDR =... | 2.796875 | 3 |
2024-11-18T23:02:49.539174+00:00 | 2020-10-16T01:23:50 | 8782f4b276677987eae28c84ab14f357df809852 | {
"blob_id": "8782f4b276677987eae28c84ab14f357df809852",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-16T01:23:50",
"content_id": "0de023ba5a7b03ef36690ee850f9f09f8f163415",
"detected_licenses": [
"MIT"
],
"directory_id": "fc098589a063dfc5b8d7836c0a9ab541fae3aebb",
"extension": "c",
... | stackv2 | #include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define BUF_SIZE 80
void check_codex(char key, int* icodex, char* ccodex, int index)
{
int i = 0;
for(i = 0; i < strlen(ccodex); i++)
{
if(key == ccod... | 3.328125 | 3 |
2024-11-18T23:02:50.924100+00:00 | 2019-09-24T12:15:53 | 97bf1943dd61a6d853f0293f4559a2b7b78125a1 | {
"blob_id": "97bf1943dd61a6d853f0293f4559a2b7b78125a1",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-24T12:15:53",
"content_id": "1be0a695366b28175217d77e8f57466c79d3b033",
"detected_licenses": [
"MIT"
],
"directory_id": "7f90d982dd457a00e5ef19c82a15969669c246cb",
"extension": "h"... | stackv2 | #ifndef DEF_BUTTONS
#define DEF_BUTTONS
#include <stdio.h>
#include <stdlib.h>
#include "SDL.h"
#include "SDL_image.h"
#include "settings.h"
#include "cells.h"
#define GOL_BUTTONS_NUMBER 9
#define GOL_BUTTONS_PIPE_OFFSET 8
#define GOL_BUTTONS_OFFSET_Y 650
#define GOL_BUTTONS_OFFSET_X 8
#define GOL_BUTTONS_DISTANC... | 2.03125 | 2 |
2024-11-18T23:02:51.007992+00:00 | 2018-06-28T19:29:27 | a6e1d4d2addd750e93ee32c10c1e32dc22c1de9b | {
"blob_id": "a6e1d4d2addd750e93ee32c10c1e32dc22c1de9b",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-28T19:29:27",
"content_id": "752f9ec34aad2ee65f7f9745db8f3332945fdce5",
"detected_licenses": [
"MIT"
],
"directory_id": "372d34c9ee76d1d49a0c338978e62332c5aa0f9d",
"extension": "c"... | stackv2 | //original
// Test that fork fails gracefully.
// Tiny executable so that the limit can be filling the proc table.
#include "param.h"
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fs.h"
#include "fcntl.h"
#include "syscall.h"
#include "traps.h"
#include "memlayout.h"
#define TAMANIOBUFFER 10
#define... | 2.78125 | 3 |
2024-11-18T23:02:51.198483+00:00 | 2021-03-13T14:30:41 | 1467d69f02f30c5463d46c25528ac5012e1695c1 | {
"blob_id": "1467d69f02f30c5463d46c25528ac5012e1695c1",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-13T14:30:41",
"content_id": "2647718067fc37e83816ae658239ad3b05652a04",
"detected_licenses": [
"MIT"
],
"directory_id": "673487fc58f63c24b4f1fa1836d443c89e286a1c",
"extension": "h",
... | stackv2 | #ifndef __QUEUE_H
#define __QUEUE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "statistics.h"
/* Initialising structs */
struct QueueNode
{
int toleranceLimit;
int servingTime;
int timeSpentWaiting;
struct QueueNode *nextNode;
struct QueueNode *previousNode;
};
typedef stru... | 2.109375 | 2 |
2024-11-18T23:02:51.970775+00:00 | 2015-06-26T17:00:06 | 0c99f2aaff750fa82f255dcddcad1b2e0be7721d | {
"blob_id": "0c99f2aaff750fa82f255dcddcad1b2e0be7721d",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-26T17:00:06",
"content_id": "e070e6acde5970b087c54b477dc76b472f1a1cfe",
"detected_licenses": [
"MIT"
],
"directory_id": "7ee8756eb4e1f10539b13b1fe4246bccc5d7416f",
"extension": "c"... | stackv2 | #include "rsx/reality.h"
s8 initialized = 0;
gcmConfiguration config;
void *heap_pointer;
// Really dumb allocater, It will do until we start dealing with textures and vertex buffers.
void *rsxMemAlign(s32 alignment, s32 size) {
if (!initialized) {
gcmGetConfiguration(&config);
initialized = 1;
heap_pointer = ... | 2.3125 | 2 |
2024-11-18T23:02:52.682367+00:00 | 2019-01-19T19:17:42 | b8e26b218cad55ef228db6ef425ac45b3b099a58 | {
"blob_id": "b8e26b218cad55ef228db6ef425ac45b3b099a58",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-19T19:17:42",
"content_id": "982aef59a4dea173935353e9a71c3369194621f6",
"detected_licenses": [
"MIT"
],
"directory_id": "415723f96bc30db1f3d545a39538da62d4309739",
"extension": "c"... | stackv2 | #include "abstract.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct {
Atom * x, * y;
int xLength, yLength;
} Rule;
#define NUM_RULES 1
Rule rules[NUM_RULES];
/* Connect next/prev of an Atom array */
void connect(Atom * a[], int len) {
for (int i = 0; i < len - 1; i++) {
a[i]->n... | 3.421875 | 3 |
2024-11-18T23:02:53.513983+00:00 | 2022-05-13T03:37:33 | 0a813c43f7f69054c4349f49b151c5acae0fb20d | {
"blob_id": "0a813c43f7f69054c4349f49b151c5acae0fb20d",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-13T03:37:33",
"content_id": "3a51f4aaa53f2d0907405f2389199763c478bd1b",
"detected_licenses": [
"curl",
"Apache-2.0"
],
"directory_id": "8b06ec428600e7f4b36b1544b5b75cd2527b2e8e",... | stackv2 | /*
* v1alpha1_role_binding.h
*
* RoleBinding references a role, but does not_ contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only ha... | 2.03125 | 2 |
2024-11-18T23:02:53.576233+00:00 | 2019-06-03T09:18:36 | 209f8498bbd9714e6fe3a8f364aaf30755ec7191 | {
"blob_id": "209f8498bbd9714e6fe3a8f364aaf30755ec7191",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-03T09:18:36",
"content_id": "c52f0286d6a3a2deed3da8abac2fcf4debf84c06",
"detected_licenses": [
"MIT"
],
"directory_id": "55d04d69bc2fa036ffb0bec8b94dc6089b795e2c",
"extension": "h"... | stackv2 | /*******************************************************************************
| Program: A Definition of a C Queue |
| Last Updated: 15/5/2019 FCUP|
*****************************************************************************... | 2.328125 | 2 |
2024-11-18T23:02:53.655020+00:00 | 2021-03-25T20:24:19 | 891febc86ce104c3e36a99d368dfd6c191057c6c | {
"blob_id": "891febc86ce104c3e36a99d368dfd6c191057c6c",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-25T20:24:19",
"content_id": "6c20c344419cd0b90627c75b2a4370436def4805",
"detected_licenses": [
"MIT"
],
"directory_id": "ad10d689a157ee6cbd772898aaf569ca91edafe8",
"extension": "c",
... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "app.h"
const char *app_request_to_string (AppRequest type) {
switch (type) {
#define XX(num, name, string) case APP_REQUEST_##name: return #string;
APP_REQUEST_MAP(XX)
#undef XX
}
return NULL;
}
AppMessage *app_message_new (void) {
Ap... | 2.78125 | 3 |
2024-11-18T23:02:53.790231+00:00 | 2021-09-21T14:58:40 | 1f551d0f53828f9f0285bfb73f2fc8266e3bc4a9 | {
"blob_id": "1f551d0f53828f9f0285bfb73f2fc8266e3bc4a9",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-21T14:58:40",
"content_id": "d488793fee92529e8d7155893c220b1b22aa52d4",
"detected_licenses": [
"MIT"
],
"directory_id": "84b026b3bfb51c7968291d1860eeffc98b052621",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <locale.h>
int main(){
setlocale(LC_ALL, "");
int vetor[20];
int i, j, aux;
int cont = 0;
//lendo vetor
for (i = 0; i < 20; i++){
scanf("%d", &vetor[i]);
}
//ordenando vetor
for(i = 0; i < 20; i++){
for (j = i+1; j < ... | 3.3125 | 3 |
2024-11-18T23:02:54.023757+00:00 | 2017-04-11T12:01:28 | 2262b957051a222537dcf4f2eac90679841eb7cb | {
"blob_id": "2262b957051a222537dcf4f2eac90679841eb7cb",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-11T12:01:28",
"content_id": "e20d12f902b4d37109b368c8405bbbb877b01c76",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0e97befe89ff9ec5c81e11b35127a0bbafe516e2",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <time.h>
#include "terminal.h"
#include "sim.h"
#include "m68k.h"
#include "scc2691.h"
#include "calendar.h"
/* Memory-mapped IO ports */
//#define INPUT_ADDRESS 0x50000
//#define OUTPUT_ADDRESS 0x60000
#define RAM1 0x20000
#define RAM2 0x30000
#def... | 2.5 | 2 |
2024-11-18T23:02:54.888805+00:00 | 2020-06-23T04:06:12 | f1539e69827eed88abb0b781ca7dafc34ce2f3f8 | {
"blob_id": "f1539e69827eed88abb0b781ca7dafc34ce2f3f8",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-23T04:06:12",
"content_id": "3db17d250acc970bc34000bd2d515b23acb85e06",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d894c0eac2b268f475356ab860ac699b2f6a5e85",
"extensio... | stackv2 | #include <circ.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int test_full() {
int status = 0;
struct circ c;
if (circ_open(&c, 1 << 10) == -1) {
perror("circ_open");
return 1;
}
// Read a bit into it to make sure we test wrapping properly.
circ_write(&c, 16);
circ_read(&c, 16);... | 3 | 3 |
2024-11-18T23:02:55.316099+00:00 | 2019-01-22T21:40:18 | 9cb17a5c31b4caa73f5a825071ae479395821bc1 | {
"blob_id": "9cb17a5c31b4caa73f5a825071ae479395821bc1",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-22T21:40:18",
"content_id": "885b56c4f433f707d86204a53f34cb9502ee4fce",
"detected_licenses": [
"MIT"
],
"directory_id": "96c1a8e6192dfdb71b44a98f97de854e09115ade",
"extension": "c"... | stackv2 | /**
* SAMPPARAM.C -- (Internal) Interface to Param objects.
*
* param = samp_newParam ()
* samp_freeParam (Param param)
*
* param = samp_paramInit (Msg msg);
* samp_addStringParam (Msg msg, char *keyw, String val)
* samp_addListParam (Msg msg, char *ke... | 2.78125 | 3 |
2024-11-18T23:02:55.439301+00:00 | 2019-07-05T11:26:25 | e62cd6d3a79a145787967e3238f1373f5922019c | {
"blob_id": "e62cd6d3a79a145787967e3238f1373f5922019c",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-05T11:26:25",
"content_id": "812ebcee6ae338dc86b5314cff8fbb7cf68fdbb2",
"detected_licenses": [
"Unlicense"
],
"directory_id": "81be14b73d7f0bbbbde90056135a4fd36e291898",
"extension... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* obj_line_process_vn.c :+: :+: :+: ... | 2.34375 | 2 |
2024-11-18T23:02:55.915495+00:00 | 2017-11-17T21:22:36 | ec8c3aa62178cc8127c81cb3753e97145e15f72d | {
"blob_id": "ec8c3aa62178cc8127c81cb3753e97145e15f72d",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-17T21:22:36",
"content_id": "5057fa193ac3e16f30b15c25d5b043a6af97cea3",
"detected_licenses": [
"MIT"
],
"directory_id": "aea8dc49d1795eafa80c19c48e5f79ada06d2b2c",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
typedef struct{
int chave;
}registro;
typedef struct tempRegistro{
registro reg;
struct tempRegistro* prox;
}elemento;
typedef elemento* pont;
typedef struct {
pont cabeca;
}lista;
void inicializaLista(lista* l){
l->cabeca = (pont) mal... | 3.21875 | 3 |
2024-11-18T23:02:55.998581+00:00 | 2019-11-28T09:54:28 | 128a4a7f32de20099e159bc40eeb8b3f05a2c5b9 | {
"blob_id": "128a4a7f32de20099e159bc40eeb8b3f05a2c5b9",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-28T09:54:28",
"content_id": "e2aff997fac4273fc7a49860888ff5ef01073b63",
"detected_licenses": [
"MIT"
],
"directory_id": "1f9c6400485e1e284e0c9dbad9cea2ff897cb899",
"extension": "c"... | stackv2 | /***************************************************************************/
/* */
/* DSK_BOOT.C */
/* */
/* Copyright (c) 1991 - Microsoft Corp. */
/* All rights reserved. */
/* Microsoft Confidential */
/*... | 2.078125 | 2 |
2024-11-18T23:02:56.222504+00:00 | 2018-12-07T11:48:35 | 4d840bdfc41795da468bfe666c388ffb4d98b72e | {
"blob_id": "4d840bdfc41795da468bfe666c388ffb4d98b72e",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-07T11:48:35",
"content_id": "858f64ab77441e8d163274702dae2b865b457ffa",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f5aacb6a9009186944b63757f4c8685c1d73e57f",
"extensio... | stackv2 | /*-
* SPDX-License-Identifier: Apache License 2.0
*
* Copyright 2017-2018 Yutaro Hayakawa
*
* 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/LICEN... | 2.125 | 2 |
2024-11-18T23:02:56.540504+00:00 | 2019-04-12T05:18:46 | bc5af1d9a601a1d7503b72c0fe462b8bc9117c98 | {
"blob_id": "bc5af1d9a601a1d7503b72c0fe462b8bc9117c98",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-12T05:18:46",
"content_id": "7e79885182d6853f66c21584ad1513963f8f8c92",
"detected_licenses": [
"MIT"
],
"directory_id": "5ce3b27bf43030a41291bb16aadbd303380c4b07",
"extension": "c"... | stackv2 | /**
* Options parsing and handling.
*/
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "Include.h"
/* globals */
int optIndex;
char optError[64];
char *optArg;
/**
* Initialize options.
*/
void
OptionInit(void)
{
optIndex=1;
optArg=NULL;
}
/**
* Get next option (pair) fr... | 3.09375 | 3 |
2024-11-18T23:02:56.617117+00:00 | 2016-11-07T01:07:17 | c59693cc6ce4cb6d4bff12b6d3835503fcea6f7f | {
"blob_id": "c59693cc6ce4cb6d4bff12b6d3835503fcea6f7f",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-07T01:07:17",
"content_id": "2f7946769303bc9f93655f05c68bb3482375b9f5",
"detected_licenses": [
"MIT"
],
"directory_id": "d8a010015d2c34e36b15bb171d6a37b3c6306303",
"extension": "c"... | stackv2 | #include "SaucerDodge.h"
#include "HaD_Badge.h"
#include "stdbool.h"
static uint8_t shipLeftPosition = 3;
static uint8_t gameTick = 0;
typedef struct point {
int8_t x;
int8_t y;
} point;
static uint8_t const numberOfEachObstacleType = 3;
static point twoByFourObstacle[numberOfEachObstacleType];
static point... | 2.171875 | 2 |
2024-11-18T23:02:56.726466+00:00 | 2018-02-04T18:59:28 | 9501c8c991a1f0c722bf989caa6ea79beb48f4c0 | {
"blob_id": "9501c8c991a1f0c722bf989caa6ea79beb48f4c0",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-04T18:59:28",
"content_id": "a12e3708c1b5a8a3d26f963dedf3d40842c63e18",
"detected_licenses": [
"Unlicense"
],
"directory_id": "e312ce2591f8779d34e1db9f55445f3ae9f72f00",
"extension... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include "object.h"
#include "symtab.h"
#include "eval.h"
#include "reader.h"
#include "detach.h"
object_t *parent_detach;
uint8_t detach_hash (object_t * o)
{
pid_t proc = OPROC (o);
return hash (&proc, sizeof (pid_... | 2.5 | 2 |
2024-11-18T23:02:57.029738+00:00 | 2021-08-07T08:38:54 | a4ecef5ddb6088e532034fd135104efab204e581 | {
"blob_id": "a4ecef5ddb6088e532034fd135104efab204e581",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-07T11:06:13",
"content_id": "73058c97b61c25f512a1d1becaddb76a038cb68d",
"detected_licenses": [
"MIT"
],
"directory_id": "396ac12c62c49c2db8657543fc605535e9395831",
"extension": "c",
... | stackv2 | /* This file is part of Eovim, which is under the MIT License ****************/
#include <eovim/types.h>
#include <eovim/gui.h>
#include <eovim/nvim.h>
#include <eovim/main.h>
#include <eovim/log.h>
#include <eovim/nvim_api.h>
#include "gui_private.h"
static void _tabs_shown_cb(void *data, Evas_Object *obj, const ch... | 2.125 | 2 |
2024-11-18T23:02:57.228070+00:00 | 2017-10-15T19:57:34 | c7f5f1659886da2d082f8dd8e024889391692e10 | {
"blob_id": "c7f5f1659886da2d082f8dd8e024889391692e10",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-15T19:57:34",
"content_id": "74b4ccac74af1d960f87fd7194dbe71183bb5bdc",
"detected_licenses": [
"MIT"
],
"directory_id": "219710580b61ffe3563bfedd64cf59d0861b4fef",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "func2.h"
int main()
{
printf("Hello, size of int=%lu\n", sizeof(int));
// printf("Hello World\n");
// basic_bad_srand_lines();
// uipair_bad_srand_lines();
const size_t MAX_SIZE_STR=200;
char str[MAX_SIZE_STR];
int_pair_to_str(2,20,str, MAX_SIZE_STR)... | 2.328125 | 2 |
2024-11-18T23:02:57.639236+00:00 | 2019-12-12T18:16:11 | 6bcc83d7764f4362edaec286de4ccf7e6b7d141f | {
"blob_id": "6bcc83d7764f4362edaec286de4ccf7e6b7d141f",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-12T18:16:11",
"content_id": "d44ba746f6b3fd9992d21849bfadd94174224562",
"detected_licenses": [
"MIT"
],
"directory_id": "86f46f4536b9464d8e0195e72d29cb791e7c9ba6",
"extension": "c"... | stackv2 | #include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <stdint.h>
#include <string.h>
#include "main.h"
#include "serial.h"
void removeCommand(void);
void insertCommand_P(const char* message);
void modeCommands();
void textCommands();
void shapeCommands();
void numberWords(uint8_t number);... | 2.6875 | 3 |
2024-11-18T23:02:58.581519+00:00 | 2020-10-14T10:42:36 | d1ddc1c62b0dd8eccb6fe94d380cd33b36462094 | {
"blob_id": "d1ddc1c62b0dd8eccb6fe94d380cd33b36462094",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-14T10:42:36",
"content_id": "b757cbbad6645bdb09cc0937aec356129c30b4a3",
"detected_licenses": [
"MIT"
],
"directory_id": "73dde894e1d8babfb20c51d798a1f46c2d8f3367",
"extension": "c",
... | stackv2 | #include<stdio.h>
int Convert(int* s, int spu);
int main(void)
{
const int minute = 60, hour = 3600, day = 86400, week = 604800;
int weeks, days, hours, minutes, seconds;
int input;
printf("Convert seconds: ");
scanf("%d", &input);
weeks = Convert(&input, week);
days = Convert(&input, day);
hours = Co... | 3.28125 | 3 |
2024-11-18T23:02:58.952776+00:00 | 2021-07-18T14:39:52 | 26e0627da8f8557591a7626994a4a68cda99364d | {
"blob_id": "26e0627da8f8557591a7626994a4a68cda99364d",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-18T14:39:52",
"content_id": "2df177b2725add83ba90317a7a605b29725c22c9",
"detected_licenses": [
"MIT"
],
"directory_id": "9c21711a61fa0adbece81ea7daeec38f63eb2ef3",
"extension": "c"... | stackv2 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Alexander Chumakov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... | 2.15625 | 2 |
2024-11-18T23:02:59.157261+00:00 | 2018-01-24T17:30:05 | a67283e88f30962ac2948d40872c93fc2084ce8c | {
"blob_id": "a67283e88f30962ac2948d40872c93fc2084ce8c",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-24T17:30:05",
"content_id": "fd2eede7d73b0c4c4365b12ff6f5e9196421809b",
"detected_licenses": [
"MIT"
],
"directory_id": "f27eb20635fea6adc3e57e3153df66108b271ec0",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_infos_symbols.c :+: :+: :+: ... | 2.46875 | 2 |
2024-11-18T23:02:59.534275+00:00 | 2018-05-02T04:02:42 | 0a47209f0b089e27d37d95f8060a89b42fd7546e | {
"blob_id": "0a47209f0b089e27d37d95f8060a89b42fd7546e",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-02T04:02:42",
"content_id": "c02971ae75db4ea29caa971b0b684e55da9ebfa1",
"detected_licenses": [
"MIT"
],
"directory_id": "5174f62513a35f153539376de761e288e3ecbd6c",
"extension": "c"... | stackv2 | #include <sys/types.h>
#include <sys/socket.h> /* socket, connect */
#include <netdb.h> /* struct hostent, gethostbyname */
#include <stdio.h> /* printf, sprintf */
#include <stdlib.h> /* exit */
#include <unistd.h> /* read, write, close */
#include <string.h> /* memcpy, memset */
// open ssl bc smu uses https
#includ... | 2.5625 | 3 |
2024-11-18T23:02:59.679623+00:00 | 2016-10-06T06:54:14 | d82d82d7826e5bfecb46229d5f833bc3be46daa5 | {
"blob_id": "d82d82d7826e5bfecb46229d5f833bc3be46daa5",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-06T06:54:14",
"content_id": "dbdbeca4ad9060c545a489fe77cb2c6da194d12a",
"detected_licenses": [
"MIT"
],
"directory_id": "e2521fe7b35722d0ded260400ecde41e80af54ad",
"extension": "c"... | stackv2 | #include <iolpc2378.h>
#include <board.h>
#include <bsp.h>
#include <timers.h>
// Initialise Timer0
// handler - the interrupt handler for the timer0 interrupt
// ticksPerSec - the tick rate
void initTimer0(pVoidFunc_t handler, uint32_t ticksPerSec) {
T0TCR = 0x02; // reset timer
T0PR = 0x00; // set prescaler ... | 2.25 | 2 |
2024-11-18T23:02:59.738659+00:00 | 2014-06-19T16:54:19 | 2dc5471b9d76e3faf9904e4c121bd9121e1c0417 | {
"blob_id": "2dc5471b9d76e3faf9904e4c121bd9121e1c0417",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-19T16:54:19",
"content_id": "577019ab413c61acb1ce635c4366f26571ab29df",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0934c21f4ec719c468a8bf79abd764861c811121",
"extens... | stackv2 | /*
* This file is part of the MIAMI framework. For copyright information, see
* the LICENSE file in the MIAMI root folder.
*/
/*
* File: file_utilities.C
* Author: Gabriel Marin, mgabi99@gmail.com
*
* Description: A few useful functions for working with files.
*/
#include <sys/types.h>
#include <sys/stat.h>
#... | 2.796875 | 3 |
2024-11-18T23:02:59.809963+00:00 | 2021-09-16T02:20:27 | 027cf85fb9c672c5f6d7ee5b35da6714972b3780 | {
"blob_id": "027cf85fb9c672c5f6d7ee5b35da6714972b3780",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-16T02:20:27",
"content_id": "f1cb8461a1ea676f6ef7e431d01708438b6b48d4",
"detected_licenses": [
"MIT"
],
"directory_id": "92980e02a8eafef1402e7b31af7b78008340cfa8",
"extension": "h"... | stackv2 | #pragma once
#include "mgm128.h"
#include <string.h>
#include <emmintrin.h>
#include <smmintrin.h>
#include <immintrin.h>
//kuznechick_start
inline static void func_X(uint8_t out[MGM_128_BLOCK_SIZE],
const uint8_t var1[MGM_128_BLOCK_SIZE],
const uint8_t var2[MGM_128_BLOCK_SIZE])
{
__m128i... | 2.125 | 2 |
2024-11-18T23:02:59.891103+00:00 | 2016-06-04T00:44:23 | e3174961392b41e6c5ff1d5b9737cafc0ebb6685 | {
"blob_id": "e3174961392b41e6c5ff1d5b9737cafc0ebb6685",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-04T00:44:48",
"content_id": "735f4e8db33b9156d08a1aaebb1cc56897a52a6b",
"detected_licenses": [
"MIT"
],
"directory_id": "30fa16d99a432773d76396f00dd5d7f03ca29f07",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2016 Sean Parkinson (sparkinson@iprimus.com.au)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to us... | 2.328125 | 2 |
2024-11-18T23:02:59.984789+00:00 | 2022-10-20T16:05:32 | 8d8fa5f353b36d8c71038a41003ed6f612a209ef | {
"blob_id": "8d8fa5f353b36d8c71038a41003ed6f612a209ef",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-20T16:05:32",
"content_id": "7ed064d04734386e3b71065685063ebb84bffb16",
"detected_licenses": [
"MIT"
],
"directory_id": "6cd2d4d8205fba7d6388ffedfe86218e1391a0a3",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2009-2018 Michael P. Touloumtzis.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modif... | 2.109375 | 2 |
2024-11-18T23:03:01.299443+00:00 | 2021-07-24T16:06:48 | b98dcd5d58e8d2b4169d817a5756a95a2bc2761b | {
"blob_id": "b98dcd5d58e8d2b4169d817a5756a95a2bc2761b",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-24T16:06:48",
"content_id": "800a7830384f671e5cf20489fba6dd26300c8b0c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8e0266bf80985e6a5e0280708528fc5e6571bb91",
"extensio... | stackv2 | #include <stdint.h>
#include <stdio.h>
#include <net/ethernet.h>
#include <arpa/inet.h>
void print_hex(void *buf, size_t buflen)
{
uint8_t *poiner = (uint8_t *)buf;
size_t offset = 0;
for (offset = 0; offset < buflen; offset++)
{
printf("%02x", (uint8_t)*poiner);
poiner++;
if ... | 2.84375 | 3 |
2024-11-18T23:03:02.425651+00:00 | 2021-05-09T14:06:15 | f3ffc826abf76a5d161b98a4d528b1bcb6230c9a | {
"blob_id": "f3ffc826abf76a5d161b98a4d528b1bcb6230c9a",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-09T14:06:15",
"content_id": "957063ca44de3aff9b0e89bbd3966ffef1600a83",
"detected_licenses": [
"MIT"
],
"directory_id": "2563b5ee81624c0761b2d6086efcdab0be8bef23",
"extension": "h"... | stackv2 | /*
* Copyright (c) 2021 Pedro Falcato
* This file is part of Onyx, and is released under the terms of the MIT License
* check LICENSE at the root directory for more information
*/
#ifndef _LIBONYX_HANDLE_H
#define _LIBONYX_HANDLE_H
#include <onyx/public/handle.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief ... | 2.3125 | 2 |
2024-11-18T23:03:02.621629+00:00 | 2021-08-22T07:17:55 | ccb688499b442044b59b549195de48fe17ae3d9a | {
"blob_id": "ccb688499b442044b59b549195de48fe17ae3d9a",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-22T07:17:55",
"content_id": "54cf542adf191706de4969525648e0c0b16f86f4",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "d1e752d904c60487527e3b77c585d9d2d5989cbb",
"extension": "... | stackv2 | #include <stdio.h>
/* Pointers are simple integer variables that hold a memory address, instead of the actual value
of the variable itself.
Computer memory is a sequential store of data, and pointers point to a specific part of the memory.
Our program can use pointers in such a way that the pointers point to a large
a... | 4.1875 | 4 |
2024-11-18T23:03:06.064264+00:00 | 2020-07-24T15:14:16 | 2f667c649db264f1b44191452590621b8eb182fd | {
"blob_id": "2f667c649db264f1b44191452590621b8eb182fd",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-24T15:14:16",
"content_id": "6c7d0bbdeb6e7f674ec78ab57c337527721b456d",
"detected_licenses": [
"MIT"
],
"directory_id": "319aeb6df67e00d92c9512f2945e96a1bb6cbfaf",
"extension": "h"... | stackv2 | /**
* @file command.h
* @author Liber (lvlebin@outlook.com)
* @brief
* @version 1.0
* @date 2020-03-23
*
*/
#ifndef __NANO_SHELL_LINKER_H
#define __NANO_SHELL_LINKER_H
#define __align(x) __attribute__((aligned(x)))
/**
* @brief array entry declare.
* @_type: data type of the entry.
* @_name: name of the en... | 2.5 | 2 |
2024-11-18T23:03:06.254771+00:00 | 2022-11-25T14:31:40 | 6c90c22f3c3417678af2891c3b74d130ea11de90 | {
"blob_id": "6c90c22f3c3417678af2891c3b74d130ea11de90",
"branch_name": "refs/heads/main",
"committer_date": "2022-11-25T14:31:40",
"content_id": "58e288d296a12511eda6777bf413a61031f93443",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c6bbd226758134f7057e381234b14ab0e5f19410",
"extensio... | stackv2 | #include <string.h>
#include "errcodes.h"
#include "memory.h"
#include "picdrive.h"
#include "rif.h"
static void bits_to_bytes(UBYTE *in, UBYTE *out, int w, UBYTE out_mask)
/*****************************************************************************
* Subroutine to help convert from bit-plane to byte-a-pixel repres... | 2.46875 | 2 |
2024-11-18T23:03:06.492024+00:00 | 2021-09-08T09:48:09 | b96db195e12559db54387af8632bc34adfd6cd4f | {
"blob_id": "b96db195e12559db54387af8632bc34adfd6cd4f",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-08T09:48:09",
"content_id": "530018bab233313febc9bae895834c4be4faff25",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "d023d194a390704cdbc40b97931a28e20cf7adff",
"extension": "... | stackv2 |
#include <stdio.h>
#include<string.h>
#include<time.h>
#include "customerbilling.h"
int bill(int a);
int sum(int k);
void edit(int e);
struct billing
{
char item[100];
float qty;
float price;
}b[100];
int i=1,c=1,m,h;
float amt,total=0;
char cur_time[128];
time_t t;
struct... | 3.15625 | 3 |
2024-11-18T23:03:06.774906+00:00 | 2021-02-15T21:14:45 | db9f2fef9a477ab5738f17e94ecb8ab7fa2b159b | {
"blob_id": "db9f2fef9a477ab5738f17e94ecb8ab7fa2b159b",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-15T21:14:45",
"content_id": "d14fe3adf8cb724589208dce887fecfa0fe78f22",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "fc967cf0fcbad0d4271133df74eff07051... | stackv2 | /**
* (C) Copyright 2014- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an in... | 2.1875 | 2 |
2024-11-18T23:03:07.302716+00:00 | 2016-06-14T07:53:15 | 90b6150dd6250ca51506aaae5847c39e9ccbf873 | {
"blob_id": "90b6150dd6250ca51506aaae5847c39e9ccbf873",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-14T07:53:15",
"content_id": "cf960de34edf4aa0acdfeb055565b9b49fa6e805",
"detected_licenses": [
"MIT"
],
"directory_id": "d2abdfc2be9929fd1dca6fa442dd51444a1fc654",
"extension": "c"... | stackv2 | /**************************************************************************//**
* @file EBI_NOR.c
* @version V2.00
* $Revision: 1 $
* $Date: 12/04/05 7:07p $
* @brief NOR Flash - W39L010 Driver Source File
*
* @note
* Copyright (C) 2011 Nuvoton Technology Corp. All rights reserved.
*
*****************... | 2.1875 | 2 |
2024-11-18T23:03:09.843835+00:00 | 2013-04-17T18:42:40 | 5b597115a46ee3f05a0b34adc4598fea978ee7a2 | {
"blob_id": "5b597115a46ee3f05a0b34adc4598fea978ee7a2",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-17T18:42:40",
"content_id": "983f96ca7314994a6549faab6228fda26ae3420a",
"detected_licenses": [
"MIT"
],
"directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef",
"extension": "c"... | stackv2 | /***************************************************************************
ppccom.c
Common PowerPC definitions and functions
***************************************************************************/
#include "emu.h"
#include "ppccom.h"
/****************************************************************... | 2.21875 | 2 |
2024-11-18T23:03:10.036920+00:00 | 2023-03-21T23:49:44 | e850b1b9643f4f6820c4901cf4b697869fa16c59 | {
"blob_id": "e850b1b9643f4f6820c4901cf4b697869fa16c59",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-21T23:49:44",
"content_id": "b484cb3ff5a131c891f3a8445fd3cb5982e32264",
"detected_licenses": [
"MIT"
],
"directory_id": "b452bbb87214f174122f425f6f98f4c3890c3cca",
"extension": "c"... | stackv2 | #include "dthdr.h"
/* Flatten a dictionary into a linked list.
** This may be used when many traversals are likely.
**
** Written by Kiem-Phong Vo (5/25/96).
*/
Dtlink_t* dtflatten(Dt_t* dt)
{
reg Dtlink_t *t, *r, *list, *last, **s, **ends;
/* already flattened */
if(dt->data->type&DT_FLATTEN )
return dt->data-... | 2.4375 | 2 |
2024-11-18T23:03:10.848011+00:00 | 2016-04-06T13:20:57 | 15236b322f59d109fda329bb0c9371c38c181039 | {
"blob_id": "15236b322f59d109fda329bb0c9371c38c181039",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-06T13:20:57",
"content_id": "70feae639dc1a220832f3c3c7310cc1264fdda63",
"detected_licenses": [
"MIT"
],
"directory_id": "a0f39a3463f3f289cad5978e64eaae6800a796b9",
"extension": "h"... | stackv2 | /*
-- ============================================================================
-- FILE NAME : rom.h
-- DESCRIPTION : ROM ヘッダ
-- ----------------------------------------------------------------------------
-- Revision Date Coding_by Comment
-- 1.0.0 2011/06/27 suito 新規作成
-- ========================... | 2.375 | 2 |
2024-11-18T23:03:10.988584+00:00 | 2020-02-26T12:55:06 | b022d89dd3098ed19929edbaff43ade0c012b6cd | {
"blob_id": "b022d89dd3098ed19929edbaff43ade0c012b6cd",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-26T12:55:06",
"content_id": "0b7b4afe53d63bff8ee2bd723ce196c37bb75525",
"detected_licenses": [
"MIT"
],
"directory_id": "1f6738e46e8914162bfff05e24fa7b13e7ae3eec",
"extension": "h"... | stackv2 | /*
* low_level_noinit_atmega328.h
*
* Created on: Sep 16, 2019
* Author: emekcan
*/
#ifndef LOW_LEVEL_NOINIT_ATMEGA328_H_
#define LOW_LEVEL_NOINIT_ATMEGA328_H_
#include "conf.h"
#if NVRAM_EN
typedef struct noinit__info{
uint8_t address;
uint8_t size;
uint8_t page;
uint8_t last_frame_used;
}noinit_info_t... | 2.390625 | 2 |
2024-11-18T23:03:11.110538+00:00 | 2019-11-27T13:04:39 | bfb8451eb917c4b42b6acdac21a9e2182153ff31 | {
"blob_id": "bfb8451eb917c4b42b6acdac21a9e2182153ff31",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-27T13:04:39",
"content_id": "2bdc4df380b24ef2b945788e883e733007d287d0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6bda294fb10184e54f586b44b4a51068da577f11",
"extensio... | stackv2 | /*
MIT Licence
David Graeff <david.graeff@web.de>
*/
/*
* Implements an object for screen control
*
* Multiple
* Object | ID | Instances | Mandatoty |
* Test | 1024 | Yes | No |
*
* Ressources:
* Supported Multiple
* Name | ID | Operations | Instances | Man... | 2.53125 | 3 |
2024-11-18T23:03:11.266998+00:00 | 2018-10-08T02:03:43 | 0e411ad5af3d3d0518832ade500d66ebb5214f3f | {
"blob_id": "0e411ad5af3d3d0518832ade500d66ebb5214f3f",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-09T02:45:53",
"content_id": "455208536ada5af5e3f9cb81667d1555601ca9b0",
"detected_licenses": [
"MIT"
],
"directory_id": "e0b181ba95bf4691394d969fa3c01322212a57b0",
"extension": "c"... | stackv2 | #include <signal.h>
#include <errno.h>
#include "libc/cdefs.h"
int sigwait(const sigset_t * restrict set, int *restrict ptr)
{
int sig;
sig = sigtimedwait(set, 0, 0);
if (__unlikely(sig == -1))
return errno;
*ptr = sig;
return 0;
}
| 2.203125 | 2 |
2024-11-18T23:03:13.112936+00:00 | 2014-12-08T07:20:39 | 1520dcbe86fb1b9a80d82e1633c2b3316c1204da | {
"blob_id": "1520dcbe86fb1b9a80d82e1633c2b3316c1204da",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-08T07:20:39",
"content_id": "c30378b05dfe4726698f1c671289c354b3a590dc",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "d3220d05b7e7ad34846e1227b3fdb21dd932f756",
"extens... | stackv2 | #include "../Cache.h"
#include <stdio.h>
#include <time.h>
#define MAX_SECTOR 20000
#define TEST_LOOPS 10000
#pragma pack(1)
typedef union _SECTOR
{
int in;
UCHAR d[SECTOR_SIZE];
}SECTOR, *PSECTOR;
typedef struct _VDISK
{
ULONG Sectors;
PSECTOR Content;
PSECTOR Backup;
}VDISK, *PVDISK;
#pragma pack()
stat... | 2.640625 | 3 |
2024-11-18T23:03:13.238104+00:00 | 2018-05-27T19:30:02 | c879a755dc9b3e953cdfc3df0f38d85b91f3bce1 | {
"blob_id": "c879a755dc9b3e953cdfc3df0f38d85b91f3bce1",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-27T19:30:02",
"content_id": "ab50f45c823f92eb9311c6f32c7297ae19f0d276",
"detected_licenses": [
"MIT"
],
"directory_id": "a8157af58435d2308c07e04a3dc61f3bf49d955b",
"extension": "c"... | stackv2 | #pragma config(Sensor, S1, lightSensor, sensorLightInactive)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
#include "..\RobotCDrivers\drivers\lego-light.h"
#define LS_LOW_THRESHOLD 150
#define LS_HIGH_THRESHOLD 270
task main()
{
LSsetInactive(lightSens... | 2.140625 | 2 |
2024-11-18T23:03:13.622801+00:00 | 2016-07-24T22:07:47 | 401f5a26707f8fa32f2eafe130423ef3ed5e6939 | {
"blob_id": "401f5a26707f8fa32f2eafe130423ef3ed5e6939",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-24T22:07:47",
"content_id": "24cfb687eda081fdcb7f9a80bc619de78fabf585",
"detected_licenses": [
"MIT"
],
"directory_id": "fd2cd2f0e7e786abe158e9868b85119755330baf",
"extension": "c"... | stackv2 | /*********************************************************************************
* 文件名 :pwm_output.c
* 描述 定时器TIM1输出4路PWM,其中两路驱动一部减速电机实现正反转,一路驱动一部减速电机实现正转;一路驱动一部舵机实现定角度转动
* 项目:Robomasters2015_Group11_Designed by LiChao
* 硬件连接:---------------------
* | PA.08: (TIM1_CH1) |
* | PA.... | 2.546875 | 3 |
2024-11-18T23:03:13.895534+00:00 | 2017-12-17T03:22:59 | 0b5e950c828b135d7072f7943c6f05d5d8bfa984 | {
"blob_id": "0b5e950c828b135d7072f7943c6f05d5d8bfa984",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-17T03:22:59",
"content_id": "48e401a84fc765d270057b908006988252c41847",
"detected_licenses": [
"MIT"
],
"directory_id": "5f64e71c2780def572221e32bd271c82b28cf269",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <time.h>
struct termios *configure;
void tty_c... | 2.703125 | 3 |
2024-11-18T23:03:14.043897+00:00 | 2017-02-24T14:14:52 | f0b59ff1e63c09e5ff562da174742f34b1e7a074 | {
"blob_id": "f0b59ff1e63c09e5ff562da174742f34b1e7a074",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-24T14:14:52",
"content_id": "26afcbb4974fe4355ab2c5676f408f3a4618d5ff",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "5f1b242f49d21a7f427070475b1ae47ab64669d0",
"extens... | stackv2 | #include "mex.h"
// [sig] = fdr_vector(p, psorted, alpha, stringent)
/* the gateway function */
void mexFunction( int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[])
{
double *p,*psorted, *sig;
double alpha, stringent;
double pcut = 0;
double c =1;
mwSize nvals, N, mrows, ncols;
... | 2.171875 | 2 |
2024-11-18T23:03:14.300566+00:00 | 2023-09-04T14:10:51 | 84164888670f3f8806220f81e5c31125a2d89773 | {
"blob_id": "84164888670f3f8806220f81e5c31125a2d89773",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-04T14:10:51",
"content_id": "47c80bf38421b2738e315d592b463b7ab1cb8e45",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2a3ec4afa3e0c84218958f389b6fc6a7fdf48ba2",
"extensio... | stackv2 | // Compile like so:
// gcc thread_example.c -Wall -O3 -static -g -nostdlib -mfsgsbase
// aarch64-linux-gnu-gcc thread_example.c -Wall -O3 -static -g -nostdli
// arm-linux-gnueabihf-gcc thread_example.c -Wall -O3 -static -g -nostdlib
#include <stdint.h>
#include "syscall.c"
// From /usr/include/linux/sched.h
#defi... | 2.015625 | 2 |
2024-11-18T23:03:15.709198+00:00 | 2020-12-26T16:46:14 | 4df4e4d73bdea04a33c832a2e9cf95d9391e04d7 | {
"blob_id": "4df4e4d73bdea04a33c832a2e9cf95d9391e04d7",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-26T16:46:14",
"content_id": "2f0f86e1b89ff6e875b544afccf87b974da2c978",
"detected_licenses": [
"MIT",
"Apache-2.0"
],
"directory_id": "d9f2050f6813bc4a66fcb6458914422343dede23",
... | stackv2 | /* Pointer assignments program */
#include<stdio.h>
int set_nth_bit_to_1(int num, int n) {
int set_bit = 1 << n;
int result = num | set_bit;
return result;
}
int set_nth_bit_to_0(int num, int n) {
int set_bit = 1 << n;
set_bit = ~set_bit;
int result = num & set_bit;
return result;
}
int main()... | 3.515625 | 4 |
2024-11-18T23:03:16.397307+00:00 | 2018-11-27T14:15:29 | 3746965529ca192baea449f95f061b3225297854 | {
"blob_id": "3746965529ca192baea449f95f061b3225297854",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-27T14:15:29",
"content_id": "6becc370a57ab639038166f623d33bd7a01ade5b",
"detected_licenses": [
"MIT"
],
"directory_id": "fe458cb9c3c22015de8b95917f1316629f778096",
"extension": "h"... | stackv2 | /*
* Copyright © 2003-2018 Acronis International GmbH.
*/
#ifndef __TIMER_H__
#define __TIMER_H__
#include "pcs_types.h"
#include "pcs_config.h"
#include "rbtree.h"
#include "std_list.h"
#include "pcs_atomic.h"
#include "pcs_thread.h"
typedef unsigned long long abs_time_t;
typedef long long time_diff_t;
struct pc... | 2.3125 | 2 |
2024-11-18T23:03:17.865984+00:00 | 2019-02-13T12:31:40 | 47055eef3d3c69215ca231450316005528a1c307 | {
"blob_id": "47055eef3d3c69215ca231450316005528a1c307",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-13T12:31:40",
"content_id": "1c97642a1df10ed57d00da7695cdf88d499e9418",
"detected_licenses": [
"MIT"
],
"directory_id": "2f3089bf0d11a63ee563d2f6cb3f56e4ad35502e",
"extension": "c"... | stackv2 | /*
** EPITECH PROJECT, 2017
** tests_utils
** File description:
** tests_utils
*/
#include <criterion/criterion.h>
#include "header_corewar.h"
Test(create_list_champion, fail)
{
char *path[1] = {
NULL
};
cr_assert_eq(create_list_champion(NULL), NULL);
cr_assert_eq(create_list_champion(path), NULL);
}
Test(crea... | 2.515625 | 3 |
2024-11-18T23:03:18.352560+00:00 | 2020-06-08T21:10:52 | 5c4dc22061ff8fffd1a2a50b6f908ac8ddfe1414 | {
"blob_id": "5c4dc22061ff8fffd1a2a50b6f908ac8ddfe1414",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-08T21:10:52",
"content_id": "b5f52e02fb70d09f4fc9f8c715f8afa0bc94b974",
"detected_licenses": [
"MIT"
],
"directory_id": "09d194c13b0bac878960eb52df53f0226a91e448",
"extension": "h"... | stackv2 | #ifndef WW_SCREEN_H
#define WW_SCREEN_H
#include "ww_config.h"
#include <stdint.h>
#include <stddef.h>
#define WW_BACKGRND_WIDTH (((WW_SCREEN_WIDTH + WW_TILE_SIZE - 1) / WW_TILE_SIZE) + 1)
#define WW_BACKGRND_HEIGHT (((WW_SCREEN_HEIGHT + WW_TILE_SIZE - 1) / WW_TILE_SIZE) + 1)
typedef struct {
uint8_t tiles[WW_... | 2.140625 | 2 |
2024-11-18T23:03:18.505057+00:00 | 2023-08-11T05:28:50 | ae238e045e18222d903f5ba8bab1b356cda2d17b | {
"blob_id": "ae238e045e18222d903f5ba8bab1b356cda2d17b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T05:28:50",
"content_id": "85df279e22a4dce8703475c7646fff7888dcf4fd",
"detected_licenses": [
"MIT"
],
"directory_id": "f84321cbc44eadc437dddeb4e3529ddcc1c5bcae",
"extension": "h"... | stackv2 | /* from Mike Stewart at NERSC:
c12-5c2s7n1, which means the
column 12, row 5, cage 2, slot 7 (blade), node 1.
*/
typedef struct xctopo_s
{
int col;
int row;
int cage;
int slot;
int anode;
}
xctopo_t;
| 2.1875 | 2 |
2024-11-18T23:03:18.689660+00:00 | 2020-08-24T18:49:33 | 83634c2ad225cf822ef0d79a53c7957968aecef2 | {
"blob_id": "83634c2ad225cf822ef0d79a53c7957968aecef2",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-24T18:49:33",
"content_id": "ea0409e61727f147afdc472b73e769c7a7f78ac7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "325ce73be05f61615d4ce152685044772cf790eb",
"extensio... | stackv2 | #include <mruby.h>
#include <mruby/class.h>
#include <mruby/data.h>
#include <mruby/variable.h>
#include <rayfork.h>
#include <orgf/alloc.h>
#include <orgf/color.h>
#include <orgf/font.h>
#include <orgf/bitmap.h>
#include <orgf/file.h>
#include <orgf/rect.h>
#define FONT mrb_intern_lit(mrb, "#font")
const char *MRB... | 2.1875 | 2 |
2024-11-18T23:03:19.650492+00:00 | 2018-04-22T23:35:53 | 47a91c568fb3c422da4391a9b4d4428393e4b7e9 | {
"blob_id": "47a91c568fb3c422da4391a9b4d4428393e4b7e9",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-22T23:35:53",
"content_id": "31c1a9a373cda7b55109544c67781cb7b2cd2dcc",
"detected_licenses": [
"ISC"
],
"directory_id": "d65e72708a902ef7fe79ca03fa476d2ec67b3571",
"extension": "h"... | stackv2 | ; VePseu's definitions
NULL = 0 ; The value of NULL
ONE = 1 ; The value of one
WALLCNT = 10 ; The number of walls to render in scrend
PIXH = 3 ; The height of each pixel, in scanlines (x2)
MMSIZE = 32 ; The size of the minimap in bytes
UPPRWALL_S = 30
LOWRWALL_S = 6
HADJ_A = $00 ; The horizontal adj... | 2.21875 | 2 |
2024-11-18T23:03:19.714367+00:00 | 2023-06-05T22:23:21 | 9f51ea87bf3d815e3e0690c90e4bf7f95da9aa15 | {
"blob_id": "9f51ea87bf3d815e3e0690c90e4bf7f95da9aa15",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-05T22:23:21",
"content_id": "73b6bdc2567b6099deba995611e64ff24c3bce5b",
"detected_licenses": [
"MIT"
],
"directory_id": "ac8f2bb926d3afc27f27109620d1fdc357f93284",
"extension": "c"... | stackv2 | #include "assertions.h"
#include "cbor.h"
static size_t generate_overflow_data(unsigned char **overflow_data) {
int i;
*overflow_data = (unsigned char *)malloc(CBOR_MAX_STACK_SIZE + 3);
for (i = 0; i < CBOR_MAX_STACK_SIZE + 1; i++) {
(*overflow_data)[i] = 0xC2; // tag of positive bignum
}
(*overflow_dat... | 2.46875 | 2 |
2024-11-18T23:03:19.937276+00:00 | 2018-03-10T06:02:33 | c2aa6cab8c4e1364783947631f5dd5ba0d283d7c | {
"blob_id": "c2aa6cab8c4e1364783947631f5dd5ba0d283d7c",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-10T06:02:33",
"content_id": "4fdd784dcca6667fe489fe7647964a9062eda2dc",
"detected_licenses": [
"MIT"
],
"directory_id": "a9ca0c0b182af1991f4d066f67be3aa8e2207f1b",
"extension": "h"... | stackv2 | /** \file stack_illustration.h
* Macros and functon declarations for testing stack.
*/
#ifndef STACK_ILLUSTRATION_H
#define STACK_ILLUSTRATION_H
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include "stack.h"
/** \def print_int_color(color, num)
* Macro function to print an intege... | 2.34375 | 2 |
2024-11-18T23:03:20.235681+00:00 | 2023-04-02T05:01:06 | 41e9f03e3d851e8f23b5299f4a19c7ad583e5bd1 | {
"blob_id": "41e9f03e3d851e8f23b5299f4a19c7ad583e5bd1",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-12T11:10:39",
"content_id": "48da6170dab88878591267513470512b83d53bbf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9f275713fcb7930ddd22aa14123d1e3bb8da793d",
"extensio... | stackv2 | /*
* Copyright (c) 2023 Trackunit Corporation
* Copyright (c) 2023 Bjarki Arge Andreasen
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file drivers/rtc.h
* @brief Public real time clock driver API
*/
#ifndef ZEPHYR_INCLUDE_DRIVERS_RTC_H_
#define ZEPHYR_INCLUDE_DRIVERS_RTC_H_
/**
* @brief RTC Interface
... | 2.109375 | 2 |
2024-11-18T23:03:20.369198+00:00 | 2020-03-24T13:24:54 | 7cd24e52d67f9472665b57639b9923597aa6f59f | {
"blob_id": "7cd24e52d67f9472665b57639b9923597aa6f59f",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-24T13:24:54",
"content_id": "37b40e91639d22763329e59faad6d1f74e3419dc",
"detected_licenses": [
"MIT"
],
"directory_id": "e58c3c7281a612d3a1d4cd6e06fa7fb4ce67a5b4",
"extension": "c"... | stackv2 | /*-----------------------------------------------------------------------*
* filename - mbscspn.c
*
* function(s)
* _mbscspn - Return the number of characters for the initial
* segment not containing any subset of a given set
* of characters.
*--------------------------... | 2.53125 | 3 |
2024-11-18T23:03:25.682853+00:00 | 2021-08-31T21:27:54 | 19d17f6b26d3b1bfdea36007c75d713489537eda | {
"blob_id": "19d17f6b26d3b1bfdea36007c75d713489537eda",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-31T21:40:13",
"content_id": "d4cdab4c8101a5a9760426930211b87ece4515c7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5a034ac8ef747a18d4ace76cfafbcc38c99808a8",
"extensio... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "rti_me_c.h"
#include "disc_dpde/disc_dpde_discovery_plugin.h"
#include "ChatApplication.h"
#include "ChatPlugin.h"
#include "wh_sm/wh_sm_history.h"
#include "rh_sm/rh_sm_history.h"
#include "netio/netio_udp.h"
void
Application_help(char *appname)
{... | 2.015625 | 2 |
2024-11-18T23:03:25.788933+00:00 | 2016-03-10T08:03:37 | 048a3e57acc6e2731940304ee33b63ff31cc9823 | {
"blob_id": "048a3e57acc6e2731940304ee33b63ff31cc9823",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-10T08:03:37",
"content_id": "d1057a82b5002dbac488bdd46e274fedaadef5f3",
"detected_licenses": [
"MIT"
],
"directory_id": "e7453ffbc5d37d4ff4e88fa6c63b295d74355b4b",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <pthread.h>
#include "controllers.h"
static void action_distrupt_station(struct loki_state*);
static void action_distrupt_network(struct loki_state*);
static void action_flood_ap(struct loki_state*);
static void *flood(void*);
static void action_send_disruption(uint8_t*, uint8_t*, uint8_t*... | 2.015625 | 2 |
2024-11-18T23:49:19.223844+00:00 | 2023-07-14T10:13:16 | be4ae9013d8b479276d70d649a6474cca65e04d6 | {
"blob_id": "be4ae9013d8b479276d70d649a6474cca65e04d6",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-14T10:13:16",
"content_id": "a8fe941a8a8ecc1b4e750b074eef3036e9fbe886",
"detected_licenses": [
"Zlib",
"Apache-2.0"
],
"directory_id": "35ddd0f3036ac38423ded0435cd4b595f5dab31c",... | stackv2 | /*
* Copyright (c) 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* @(#)ioctl.h 1.4 (2.11BSD GTE) 1997/3/28
*/
/*
* Ioctl definitions
*/
#ifndef _IOCTL_
#define _IOCTL_
#ifdef KERNEL
#inclu... | 2.375 | 2 |
2024-11-18T23:49:19.467593+00:00 | 2016-05-30T10:20:15 | 63470e66ba6d1d035381f7eeb13c75feec4b4016 | {
"blob_id": "63470e66ba6d1d035381f7eeb13c75feec4b4016",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-30T10:20:15",
"content_id": "ab1f329531704b35db3beff7ab0d89cdbba1c332",
"detected_licenses": [
"MIT"
],
"directory_id": "853c95632e559e2d8b771b1ba503b15433463270",
"extension": "h"... | stackv2 | /* $Id: list_util.h,v 1.7 2009/09/09 22:38:13 alex Exp $ */
/*******************************************************************************
list_util.h
List Manipulation Utility Definitions.
*******************************************************************************/
#ifndef LIST_UTIL_H /* Has the fi... | 2.125 | 2 |
2024-11-18T23:49:20.859905+00:00 | 2023-06-21T03:14:20 | 9f86014c7c7ed4d6313800433f6dbfbfd1307636 | {
"blob_id": "9f86014c7c7ed4d6313800433f6dbfbfd1307636",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-21T03:14:20",
"content_id": "7a3d50a7881ed5155223352e24a05b251400fb36",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "317410b28757af216145d23259d63fc96d07f613",
"extensio... | stackv2 | /**
* @file uart.c
* @author JL
* @brief 串口UART模块C文件
* @version 1.2
* @date 2018-11-22
*/
#include "asm/clock.h"
#include "asm/uart_dev.h"
#include "asm/cpu.h"
#include "generic/gpio.h"
#include "spinlock.h"
#ifdef SUPPORT_MS_EXTENSIONS
#pragma bss_seg(".uart_bss")
#pragma data_seg(".uart_data")
#pragma const_s... | 2.46875 | 2 |
2024-11-18T23:49:21.066760+00:00 | 2021-05-14T00:22:46 | 3668adbfa86be1b992e7495ad0ddacdc47e553fb | {
"blob_id": "3668adbfa86be1b992e7495ad0ddacdc47e553fb",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-14T00:22:46",
"content_id": "ec8afa92f5790c3fd9a6422539bbbe1708741fa0",
"detected_licenses": [
"MIT",
"curl"
],
"directory_id": "354708418fbf26d225c770887875267b6707d9b8",
"ext... | stackv2 | #include <stdio.h>
/*
1) Faça um programa que leia um vetor de números inteiros com 10 posições e tenha um menu que possibilite:
1 - Somar todos os elementos do vetor lido
2 - Calcular a média aritmética simples dos elementos do vetor
3 - Mostrar o maior valor
4 - Mostrar todos os elementos do vetor em ordem inv... | 4.09375 | 4 |
2024-11-18T23:49:21.794604+00:00 | 2021-04-28T12:52:16 | 5fad4466394f5da8a7a0dd6f4e752e00a813d1ed | {
"blob_id": "5fad4466394f5da8a7a0dd6f4e752e00a813d1ed",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-28T12:52:16",
"content_id": "b5f0e4fe4f9a760b93ec9ecfaf79ec8253e79334",
"detected_licenses": [
"MIT"
],
"directory_id": "147e56bd58a86e0a56c25ecb82a149dd33f6d364",
"extension": "c"... | stackv2 | #include "hoc.h"
typedef struct MacroEnv {
struct MacroEnv* next;
char* name;
Token* tokens;
Vector* params;
} MacroEnv;
static Token* input;
static Token* output;
static MacroEnv* gbl_env;
static char* src_dir;
static void traverse(void);
static Token* copy_token(Token* src) {
Token* new = calloc(1, size... | 2.234375 | 2 |
2024-11-18T23:49:22.461054+00:00 | 2023-05-25T08:57:05 | 559908217249cd3cc8af1a15760ead9c4f86449a | {
"blob_id": "559908217249cd3cc8af1a15760ead9c4f86449a",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-25T21:47:26",
"content_id": "2aa556249dc784c7f711bef7cde79857a2330b89",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "57bf287d6afe5789a695e643a19e4e1652dbb9c4",
"extens... | stackv2 | /* SPDX-License-Identifier: BSD-3-Clause */
/*****************************************************************************
* Copyright 2021, Fraunhofer Institute for Secure Information Technology SIT.
* All rights reserved.
****************************************************************************/
/**
* @file c... | 2.0625 | 2 |
2024-11-18T23:49:22.581608+00:00 | 2019-04-11T12:43:41 | 22a02397ca3e9ed511e221d77fb11d609ae56024 | {
"blob_id": "22a02397ca3e9ed511e221d77fb11d609ae56024",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-11T12:43:41",
"content_id": "8a1e309b2792e87296b91329282061163c91210e",
"detected_licenses": [
"MIT"
],
"directory_id": "d3aaa326aa784a7d06db9b1e26ae30162949ecbc",
"extension": "c"... | stackv2 | #include "include.h"
#include "FreeCars_uart.h"
#include "FreeCars_isr.h"
#include "usart.h"
/************一下是根据FreeCars上位机协议修改的,无需改变**************/
uchar uSendBuf[UartDataNum*2 + LineDataNum]={0};
uchar FreeCarsDataNum=UartDataNum*2; //+ LineDataNum;
//uchar FreeCarsCount=0;
double UartData[9] = {0};
SerialPortType S... | 2.5625 | 3 |
2024-11-18T23:49:23.016221+00:00 | 2021-08-30T12:49:14 | 42354c25bcc5ed38ac3bd00bab21bc56251774f9 | {
"blob_id": "42354c25bcc5ed38ac3bd00bab21bc56251774f9",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-30T12:49:14",
"content_id": "c508ac313b550babc2edb71ded69490a25dcf298",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f806f354a11285d41c6817c3e33c795b5030c054",
"extensio... | stackv2 | /*
* Copyright 2020-2021 NXP.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redist... | 2 | 2 |
2024-11-18T23:49:23.702002+00:00 | 2020-03-27T10:18:27 | 1150ed2d5071b7650e5af7eb5826858f0f46072b | {
"blob_id": "1150ed2d5071b7650e5af7eb5826858f0f46072b",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-27T10:18:27",
"content_id": "57561ff88a77320b88cf4ee790103cf9d7a9cccb",
"detected_licenses": [
"MIT"
],
"directory_id": "19be3ceaeb2898f2e7fdb2eb71e6d43321604d1d",
"extension": "c"... | stackv2 | #include<stdio.h>
long long int fib()
{
long long int tmp;
long long int i;
long long int first = 1;
long long int second = 2;
long long int total = 0;
while(second < 4000000)
{
if(second % 2 == 0)
{
total = total + second;
}
tmp = first;
first = second;
second = second + tmp;
}
return total;
}
int ma... | 2.796875 | 3 |
2024-11-18T23:49:24.568190+00:00 | 2021-01-30T01:45:38 | e13e3381f8b56d218f55a8c6c7091b62e0d5c980 | {
"blob_id": "e13e3381f8b56d218f55a8c6c7091b62e0d5c980",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-30T01:45:38",
"content_id": "3b2e4faa448e58476afa410567946bbe9c4b7613",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "25da260321f74ccaa34315b59f8e61703b9d37f1",
"extensio... | stackv2 | /*
* Copyright (c) 2014-2018 Cesanta Software Limited
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the ""License"");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 2.03125 | 2 |
2024-11-18T23:49:24.634514+00:00 | 2021-10-02T00:53:57 | 993aa81a25cfb829886d26409f92487b3bb55239 | {
"blob_id": "993aa81a25cfb829886d26409f92487b3bb55239",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-02T00:53:57",
"content_id": "078cee45787e4fec43fd2f1714b3c0a8703326e2",
"detected_licenses": [
"MIT"
],
"directory_id": "9018d1ddaf5966b3444c6ad32327ecc83e3b84b2",
"extension": "c"... | stackv2 |
/*6) O mesmo exercício anterior, mas agora deve escrever o menor elemento do vetor e a
respectiva posição dele nesse vetor.*/
#include <stdio.h>
#define TAM 20
int main()
{
float v[TAM], menor = 9999;
int i, a;
for (i = 0; i < TAM; i++)
{
printf("Digite o %dº valor: ", i+1);
scanf("%f", &v[i]);
if (v... | 3.765625 | 4 |
2024-11-18T23:49:24.762501+00:00 | 2018-05-07T12:46:49 | ce2179e43f320c2562a82a46789f94798c87a268 | {
"blob_id": "ce2179e43f320c2562a82a46789f94798c87a268",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-07T12:46:49",
"content_id": "7927cecf3f62617f2043d839381038546615f679",
"detected_licenses": [
"MIT"
],
"directory_id": "5282e06b246dcc6e9dbf67a777592bb16beb8bf4",
"extension": "c"... | stackv2 | #include <stdio.h>
double power(double n, int p)
int main(void)
{
double x;
double xpow;
int exp;
printf("Enter a number and the positive integer power to which\n");
printf("the number will be raised. Enter q to quit.\n");
while (scanf ("%lf%d",&x, &exp)==2)
{
xpow=power(x,exp);
printf("%.3g t... | 3.640625 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.