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-19T01:31:03.418933+00:00 | 2018-04-27T20:58:23 | 02cbc00f09848742826e23dae7cc81082f63c50d | {
"blob_id": "02cbc00f09848742826e23dae7cc81082f63c50d",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-27T20:58:23",
"content_id": "7a8b92aecbc30aac8a782280f35562368d4e8dec",
"detected_licenses": [
"MIT"
],
"directory_id": "25c32221edba7bd49987ee1b26d14e07f7debd2e",
"extension": "c"... | stackv2 | #include "sensors.h"
u8_t timerFlag = 1;
void Sensors_Init()
{
SHT21_Init(SENSORS_I2C_MODULE);
BMP085_Init(SENSORS_I2C_MODULE);
TIM_TimeBaseInitTypeDef TIM_InitStructure;
TIM_DeInit(TIM2);
RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2, ENABLE);
TIM_TimeBaseStructInit(&TIM_InitStructure);
TIM_InitStructure.TIM_... | 2.421875 | 2 |
2024-11-19T01:31:03.484345+00:00 | 2021-06-17T14:22:07 | dd9094a8c71cac8949b031f23ae48fcce6070ec2 | {
"blob_id": "dd9094a8c71cac8949b031f23ae48fcce6070ec2",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-17T14:22:07",
"content_id": "1632d1b5ec09f22d5da91b781981c732d36e1d6f",
"detected_licenses": [
"Unlicense"
],
"directory_id": "de1706b03b1e4e6120784c1805d0455208857896",
"extension":... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rpn_utils.c :+: :+: :+: ... | 3 | 3 |
2024-11-19T01:31:03.578964+00:00 | 2016-03-24T23:07:04 | b5e3c8401eb9c2c739a778868c6a20daf80134b6 | {
"blob_id": "b5e3c8401eb9c2c739a778868c6a20daf80134b6",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-24T23:07:04",
"content_id": "74672a7c02e1869c15d945b89b6c9e2fb8fcd160",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c6747d2c27fb487cc744c2fe7880eac18840482c",
"extensio... | stackv2 | /* copyright 2016 Apache 2 sddekit authors */
#include "../sddekit.h"
/**
* Interface to time-stepping schemes.
*
* \note Schemes create internal data structures which are cleaned
* up during a call to the free method, however, the history,
* rng and sys structures are considered external and will not
* be fre... | 2.140625 | 2 |
2024-11-19T01:31:03.784894+00:00 | 2020-12-15T22:22:13 | 696076558d9d5d297c0693a184c63fe7d0abff74 | {
"blob_id": "696076558d9d5d297c0693a184c63fe7d0abff74",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-15T22:22:13",
"content_id": "61730816c5a0e1cd7a454637a46ddf0a0f4a9e06",
"detected_licenses": [
"MIT"
],
"directory_id": "21c7e0cf987ed0e58515e601682df7af4435c36f",
"extension": "c",
... | stackv2 | #include <SDL/SDL.h>
#include <math.h>
#include "rotation.h"
static Uint32 SDL_LirePixel(SDL_Surface* surface, int x, int y);
static void SDL_EcrirePixel(SDL_Surface* surface, int x, int y, Uint32 pixel);
inline Uint32 SDL_LirePixel(SDL_Surface* surface, int x, int y)
{
int bpp = surface->format->BytesPerPixel;
... | 2.90625 | 3 |
2024-11-19T01:31:03.954356+00:00 | 2019-01-08T09:11:47 | 20182c15d8e665ddd6a88ca18a6c59b5fcaf8d0c | {
"blob_id": "20182c15d8e665ddd6a88ca18a6c59b5fcaf8d0c",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-08T09:11:47",
"content_id": "5b984d985fc188ed3fd9f58a845667668d3d4a0d",
"detected_licenses": [
"MIT"
],
"directory_id": "e40003253b3108ce10fa1407cadca8e0bc4eac7e",
"extension": "c"... | stackv2 | /*
Name: Joel v
Kieran K
Module: isr
*/
#include "isr.h"
/*
Name: installVector
Purpose: replaces a TOS ISR with a custom one
Input: num - the number of the vector being replaced, type int
vector - pointer to the function being installed, type Vector
Return value: orig - the origi... | 2.796875 | 3 |
2024-11-19T01:31:04.258838+00:00 | 2019-12-23T21:23:06 | cc8403a8f6bf1db1a97af20a12822d2b8d8382ea | {
"blob_id": "cc8403a8f6bf1db1a97af20a12822d2b8d8382ea",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-23T21:23:06",
"content_id": "153f728812abbbb9b738fb378717c47ac96ce97a",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "5f794d8b53421198da244ab81c9cebd20c4af58e"... | stackv2 | /* Copyright (c) 2017 - 2019 LiteSpeed Technologies Inc. See LICENSE. */
/*
* Write several things to HEADERS stream and check the results. What
* varies is the amount of bytes that are written to stream every time.
* This will exercise buffering in frame writer and verify that contents
* are written out correctl... | 2.046875 | 2 |
2024-11-19T01:31:05.000292+00:00 | 2021-08-02T08:13:19 | 0a5d327d8fc0f7645cc79a18703d176f0f82d0fc | {
"blob_id": "0a5d327d8fc0f7645cc79a18703d176f0f82d0fc",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-02T08:13:19",
"content_id": "0bbd2ab07cc5297fb58a47ba282c3772ecd0e517",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "fd81afd43333803faafef56258ea3682bfebf6ae",
"extens... | stackv2 | /*
* DDS Security library
* Copyright (c) 2018-2019, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/*!
* @file dsec_hh_challenge.h
* Source code for challenge generation.
*/
#ifndef DSEC_HH_CHALLENGE_H
#define DSEC_HH_CHALLENGE_H
#ifdef __cplusplus
extern "C"... | 2.34375 | 2 |
2024-11-19T01:31:05.376932+00:00 | 2023-08-31T05:50:29 | 2454e56fff9a49542400a2ac01c9c5d1d6f483a4 | {
"blob_id": "2454e56fff9a49542400a2ac01c9c5d1d6f483a4",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T05:50:29",
"content_id": "89b25e6cc79963a160911b06a9b7ad3e1339055b",
"detected_licenses": [
"MIT"
],
"directory_id": "79d343002bb63a44f8ab0dbac0c9f4ec54078c3a",
"extension": "h"... | stackv2 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _XT_POLICY_H
#define _XT_POLICY_H
#include <linux/netfilter.h>
#include <linux/types.h>
#include <linux/in.h>
#include <linux/in6.h>
#define XT_POLICY_MAX_ELEM 4
enum xt_policy_flags {
XT_POLICY_MATCH_IN = 0x1,
XT_POLICY_MATCH_OUT = 0x2,
XT_PO... | 2.0625 | 2 |
2024-11-19T01:31:05.489403+00:00 | 2023-07-13T20:24:07 | 41d5b280c8ea57453b386f5db53a15bab15cdc82 | {
"blob_id": "41d5b280c8ea57453b386f5db53a15bab15cdc82",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-13T20:24:07",
"content_id": "06f62ca8d8188378fe42a8007e870ab5b6521d07",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "667be8b1a5d7cce70b6424aa22e8c8e56e358fb3",
"extensio... | stackv2 | // Copyright 2018-2020 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... | 2.0625 | 2 |
2024-11-19T01:31:05.869893+00:00 | 2020-12-14T06:08:32 | 7eca112085eac8c345fc50c8d5b026402bb8a6fa | {
"blob_id": "7eca112085eac8c345fc50c8d5b026402bb8a6fa",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-14T06:08:32",
"content_id": "a8072445985192350c9ca09feab2d5700fedba91",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "5b4582abdddfa1d0cd224cb8a0c7463b1b686c71",
"extens... | stackv2 | /**
*******************************************************************************
* @file timera/timera_base_timer/source/main.c
* @brief Main program of Timera Base Count for the Device Driver Library.
@verbatim
Change Logs:
Date Author Notes
2020-09-15 CDT First ... | 2.21875 | 2 |
2024-11-19T01:31:05.954193+00:00 | 2021-08-15T23:27:49 | 26a60c69fd51b377d196d26eebd6d8252f4afd1f | {
"blob_id": "26a60c69fd51b377d196d26eebd6d8252f4afd1f",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-15T23:27:49",
"content_id": "c185ba003b29a9b87a779cbe578c8cf4900ef07d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "16c3d340e2112ee82d8f6ee97fa8ec105dbdab44",
"extensio... | stackv2 | #include<stdio.h>
int main (void){
int cont1, cont2;
scanf("%d",&cont1);
printf("texto qualquer\n");
cont1 = cont2;
if( cont1 > cont2 ){
cont2 = cont1 ;
}
else
printf("qualquer coisa\n");
exit(0);
}
| 2.671875 | 3 |
2024-11-19T01:31:06.524693+00:00 | 2023-08-11T13:02:43 | 44a5605a4c2ca06909c234ea547def39b00b6996 | {
"blob_id": "44a5605a4c2ca06909c234ea547def39b00b6996",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T13:02:43",
"content_id": "8ce09f20116b48ca2abd82c74bb65118c4997be3",
"detected_licenses": [
"MIT"
],
"directory_id": "751d837b8a4445877bb2f0d1e97ce41cd39ce1bd",
"extension": "c"... | stackv2 | // Write a program to remove trailing blanks and tabs from each line of
// input, and to delete entirely blank lines.
#define _GNU_SOURCE
#include <stdio.h>
ssize_t
trimspaces(char *s)
{
ssize_t i;
i = 0;
while (s[i] != '\n')
i++;
i--;
while (i >= 0 && (s[i] == ' ' || s[i] == '\t'))
i--;
if (i >= 0) {
s[... | 3.34375 | 3 |
2024-11-19T01:31:07.038250+00:00 | 2017-09-10T07:41:06 | 0d14641050955e08bfc2eed18188563b43306e8d | {
"blob_id": "0d14641050955e08bfc2eed18188563b43306e8d",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-10T07:41:06",
"content_id": "2756948a04262c90ecaaf578479ec38b88b36769",
"detected_licenses": [
"MIT"
],
"directory_id": "136ff91ac13eaeba0e7b24a09f74451d10a003e5",
"extension": "c"... | stackv2 | #include <stddef.h>
#include "gpio.h"
#include "interrupt.h"
#include "log.h"
#include "ltc_afe.h"
#include "plutus_config.h"
#include "soft_timer.h"
#include "spi.h"
int main(void) {
gpio_init();
interrupt_init();
soft_timer_init();
LtcAfeSettings afe_settings = {
.mosi = { GPIO_PORT_A, 7 }, //
.mi... | 2.28125 | 2 |
2024-11-19T01:31:07.106468+00:00 | 2015-12-09T03:38:23 | 1b8534eb59fb62699d20d8dca504465c4fa3f911 | {
"blob_id": "1b8534eb59fb62699d20d8dca504465c4fa3f911",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-09T03:38:23",
"content_id": "4f83199bbab590ac818a82432aab2b7644b71a57",
"detected_licenses": [
"MIT"
],
"directory_id": "0573d4e4357990e184cc95f885adf128bae2f6f2",
"extension": "c"... | stackv2 | /* Project : Exam Scheduler- creates time slots for exam to be held such that no same student has two exams at the same time slot.
We have used the greedy approach and knowledge of data structures like graph, linked lists, arrays etc. to create the scheduler
It is our original work!
<<<<<<<<<<<<<<<<<< ... | 3.265625 | 3 |
2024-11-19T01:31:07.451633+00:00 | 2017-01-04T04:08:46 | 58d6d46b368214204a4d892686bc52ca1a58b3c5 | {
"blob_id": "58d6d46b368214204a4d892686bc52ca1a58b3c5",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-04T04:08:46",
"content_id": "7cfd06a88996eb17714fd0f4fa62fa78227f2a97",
"detected_licenses": [
"MIT"
],
"directory_id": "c1b799bb4293dc58c82758003e89a0d26a4e7b52",
"extension": "h"... | stackv2 |
#ifndef __VENDING_MACHINE_PRODUCT_H
#include "CoinChanger.h"
#include "CoinSlot.h"
#include <stdint.h>
#include <stdbool.h>
//Misc definitions.
#define PRODUCT_NAME_MAXLEN 8
#define PRODUCT_MSG_PREFIX "Product: "
#define PRODUCT_VEND_MESSAGE PRODUCT_MSG_PREFIX "Vended"
#define PRODUCT_SOLDOUT_MESSAGE PRODUCT_MSG_PRE... | 2.25 | 2 |
2024-11-19T01:31:07.668507+00:00 | 2017-06-25T13:27:52 | 207f473f086d332fbc455f8efc56460a6969fd51 | {
"blob_id": "207f473f086d332fbc455f8efc56460a6969fd51",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-25T13:27:52",
"content_id": "4680917104855247d9ccdff23ad50b13615c4009",
"detected_licenses": [
"MIT"
],
"directory_id": "a8d0bd09e0833f83003eb8fb49798f3562e6352d",
"extension": "c"... | stackv2 | #include <stdio.h>
int findGapBetweenOnes(int N){
int max_count=0;
int cur_count=0;
while(N && ((N&1)==0)) N>>=1;
while(N){
if(N&1){
if(cur_count>max_count){
max_count=cur_count;
}
cur_count=0;
}
else{
... | 3.03125 | 3 |
2024-11-19T01:31:08.109066+00:00 | 2020-03-13T06:08:01 | 174950bbe389ed9720403ff58997a6a0c126be21 | {
"blob_id": "174950bbe389ed9720403ff58997a6a0c126be21",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-13T06:08:01",
"content_id": "d1299f4f981e89a160ed21e3c20056faa60370cd",
"detected_licenses": [
"MIT"
],
"directory_id": "df3ec0c046bdb722347bf8ddbcfafdefc974f7d6",
"extension": "h"... | stackv2 | #ifndef PRNG_HEADER
#define PRNG_HEADER
#ifdef OS_LINUX_CPP
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#else
#include <windows.h>
#endif
/* Written in 2018 by David Blackman and Sebastiano Vigna (vigna@acm.org)
To the extent possible under law, the author has dedic... | 2.4375 | 2 |
2024-11-19T01:31:08.189447+00:00 | 2015-09-10T12:21:47 | 03d78f480ac4868872d3b35de91b02364159a101 | {
"blob_id": "03d78f480ac4868872d3b35de91b02364159a101",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-10T12:21:47",
"content_id": "f554bca75026c1481116a7292a23204c0ac4b01f",
"detected_licenses": [
"MIT"
],
"directory_id": "520bf7676a04d8a2d379bb11292c864a631dd59d",
"extension": "c"... | stackv2 | #include "../testlib/main_test.c"
#include <errno.h>
/* char * __cdecl strncat (char *d, const char *s, size_t n).
Flow-graph:
(1): Copy from s to end of d until zero character or n-th character
is copied.
(2): Return original d as result.
Tests:
Test for copy.
Test for segfault for invalid s or d
*/
in... | 2.671875 | 3 |
2024-11-19T01:31:08.272121+00:00 | 2021-09-22T17:29:46 | 5f5dbb32954a1472a5b10f7a15192f71c7833078 | {
"blob_id": "5f5dbb32954a1472a5b10f7a15192f71c7833078",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-22T17:29:46",
"content_id": "f1fc1e05b23273dbf4d39750c561ce44c8d45d14",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "156dcded7b6abb374a5a3afaeeb78f4af724bd4e",
"extens... | stackv2 | //Generates a unit-impulse signal (1-D vector of floats),
//with specified length (N), samp, and amplitude.
//The signal is amp at sample samp, and 0 elsewhere.
//This is identical to delta_impulse, except that the
//amplitude is fixed at 1.0 (since "unit").
//For the complex case, the real part is the unit_impulse,
... | 2.84375 | 3 |
2024-11-19T01:31:08.548331+00:00 | 2020-03-27T07:42:12 | ef18bc2699fbdcf845b2e2a0064ae3d07b1f834b | {
"blob_id": "ef18bc2699fbdcf845b2e2a0064ae3d07b1f834b",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-27T07:42:12",
"content_id": "7bbc3ee7acc0c8bbf0f8eb477665b1e502cdc931",
"detected_licenses": [
"MIT"
],
"directory_id": "dab70c7243c62876df98ab5e2da7bb06c983a483",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <MyLibrary.h>
void main()
{
char str[] = "Reverse this string for me";
printf("Reverse = %s\n", ReverseString(str));
}
| 2.15625 | 2 |
2024-11-19T01:31:08.743209+00:00 | 2016-01-15T19:18:26 | 4d917074c419c6a1d0b21f20d06449d692127c80 | {
"blob_id": "4d917074c419c6a1d0b21f20d06449d692127c80",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-15T19:18:26",
"content_id": "5b428bf527f01fe24de6d30593cda2a57ad5a4a1",
"detected_licenses": [
"MIT"
],
"directory_id": "387b2c3208310ad3a1e534efb92a004d12377448",
"extension": "h"... | stackv2 | #ifndef _TYRAN_STRING_H
#define _TYRAN_STRING_H
struct tyran_memory;
struct tyran_memory_pool;
#include <tyranscript/tyran_types.h>
typedef u16t tyran_string_length_type;
typedef u16t tyran_string_char;
typedef struct tyran_string {
tyran_string_length_type len;
tyran_string_char* buf;
} tyran_string;
void tyra... | 2.125 | 2 |
2024-11-19T01:31:08.879512+00:00 | 2022-08-25T18:20:52 | 73a505301e49ac9b7c0e8d389b475713ab899d91 | {
"blob_id": "73a505301e49ac9b7c0e8d389b475713ab899d91",
"branch_name": "refs/heads/riscv",
"committer_date": "2022-08-25T18:20:52",
"content_id": "c6bab157e3e2b6843d9e2335b5c00554e53a859e",
"detected_licenses": [
"MIT"
],
"directory_id": "f37bed43adb2e588156192aebb45f63ae2a88d09",
"extension": "c",... | stackv2 | // File system implementation. Five layers:
// + Blocks: allocator for raw disk blocks.
// + Log: crash recovery for multi-step updates.
// + Files: inode allocator, reading, writing, metadata.
// + Directories: inode with special contents (list of other inodes!)
// + Names: paths like /usr/rtm/xv6/fs.c for ... | 2.53125 | 3 |
2024-11-19T01:31:09.239490+00:00 | 2014-07-02T07:59:50 | 3062ea240a7f50e3aaeec5ac605b8ee65a411108 | {
"blob_id": "3062ea240a7f50e3aaeec5ac605b8ee65a411108",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-02T07:59:50",
"content_id": "707d286f2211310dd81f871c5abe69cf3fb9e0c4",
"detected_licenses": [
"MIT"
],
"directory_id": "9c6f2a9b41cb8140bf26c1ed1b14b86f020eede9",
"extension": "c"... | stackv2 | /*
* Scheduler: scheduler.c
* Part of BRO Project, 2014 <<https://github.com/BRO-FHV>>
*
* Created on: 05.03.2014
* Description:
* The scheduler is responsible for switching processes.
* It uses the TODO strategy for deciding which process is next.
*
*/
#include <string.h>
#include <stdio.h>
#include <setjmp... | 2.8125 | 3 |
2024-11-19T01:31:09.966892+00:00 | 2020-06-26T14:54:55 | 98873b78cb7e122866b7cacd9821ef5a8f2bd318 | {
"blob_id": "98873b78cb7e122866b7cacd9821ef5a8f2bd318",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-26T14:54:55",
"content_id": "1612c4faa4f0f7a2c09644395b7308bb50a2c030",
"detected_licenses": [
"MIT"
],
"directory_id": "f8fe012cb5d3bb8ba065b2ec249ae6f976b9a006",
"extension": "c"... | stackv2 | /*
*Name - Nikhil Ranjan Nayak
*Regd No - 1641012040
*Desc - Simple calculator
*/
#include <stdio.h>
#include <math.h>
void do_next_op(char, double, double*);
void scan_data(char*, double*);
void main()
{
double accumulator = 0, operand;
char operator_symbol;
printf("\n+ add");
printf("\n- subtract... | 3.71875 | 4 |
2024-11-19T01:31:10.554615+00:00 | 2019-10-09T13:20:56 | 201cf2ed24ce964022e98d68d8fdc83c6ddc5d58 | {
"blob_id": "201cf2ed24ce964022e98d68d8fdc83c6ddc5d58",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-09T13:20:56",
"content_id": "4dd16f2e5d6087062edd95787ecf65ffe392261f",
"detected_licenses": [
"MIT"
],
"directory_id": "ebaa0b640f14d2b4b51272bcd256c124e5492aa2",
"extension": "h"... | stackv2 | #ifndef STDINT_H__
#define STDINT_H__
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef signed long long int64_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef unsigned lon... | 2.0625 | 2 |
2024-11-19T01:31:10.876094+00:00 | 2021-08-09T20:59:01 | 441736e088f692709033c0ad88a1d6ce056c2c9f | {
"blob_id": "441736e088f692709033c0ad88a1d6ce056c2c9f",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-09T20:59:01",
"content_id": "b89e7d6450bee3d7116e3b9f8f09098d527497d5",
"detected_licenses": [
"MIT"
],
"directory_id": "bef5bd3b91af9f3a2340b697d8d752557f39d8d0",
"extension": "h",
... | stackv2 | #ifndef __CLARKE_CLA_H__
#define __CLARKE_CLA_H__
// structure definition for DMC CLA blocks
typedef struct {
float As; // Input : a
float Bs; // Input : b
float alpha; // Output: alpha
float beta; // Output: beta
}CLARKE_CLA;
#define CLARKE_CLA_MACRO(v) ... | 2.140625 | 2 |
2024-11-19T01:31:10.978564+00:00 | 2020-11-04T10:08:25 | 1a520f3ba2b4fe145298ffadbc630ae53658a22e | {
"blob_id": "1a520f3ba2b4fe145298ffadbc630ae53658a22e",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-04T10:08:25",
"content_id": "296236a22f4af701dbca639d0fd9b2adca93f85b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "31582c1b704849403d4a9fd3f8ecd992d2c134d5",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hiredis.h"
/*
gcc -o test_hiredis test_hiredis.c -I../../src/mq/include/hiredis -L/usr/local/lib -lhiredis
*/
int main()
{
redisContext *c;
redisReply *reply;
struct timeval timeout = { 5, 500000 }; // 1.5 seconds
c = redisConne... | 2.109375 | 2 |
2024-11-19T01:31:11.292544+00:00 | 2019-10-06T06:30:41 | 59568bd389d091ab22cd304f1a0b2ca3ed7fecb1 | {
"blob_id": "59568bd389d091ab22cd304f1a0b2ca3ed7fecb1",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-06T06:30:41",
"content_id": "5c95f63eebf913cf4b45a55bad245c106985950c",
"detected_licenses": [
"MIT"
],
"directory_id": "180c1a81f28a0d633faf478d374c78bc2366bbb8",
"extension": "c"... | stackv2 | /* Copyright (C) 2016 RDA Technologies Limited and/or its affiliates("RDA").
* All rights reserved.
*
* This software is supplied "AS IS" without any warranties.
* RDA assumes no responsibility or liability for the use of the software,
* conveys no license or title under any patent, copyright, or mask work
* right to t... | 2.125 | 2 |
2024-11-19T01:31:13.079044+00:00 | 2023-09-03T08:13:23 | 1217d1bebcf9508c99a0a303c05e91c777626cab | {
"blob_id": "1217d1bebcf9508c99a0a303c05e91c777626cab",
"branch_name": "refs/heads/main",
"committer_date": "2023-09-03T08:13:23",
"content_id": "cb77505bc9a7076fd45740fad2f231157dd3e628",
"detected_licenses": [
"MIT"
],
"directory_id": "fb0f9abad373cd635c2635bbdf491ea0f32da5ff",
"extension": "c",
... | stackv2 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "pal_config.h"
#include "pal_console.h"
#include "pal_utilities.h"
#include "pal_signal.h"
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#inc... | 2.234375 | 2 |
2024-11-19T01:31:13.267858+00:00 | 2023-06-23T10:11:23 | 6e1809253df96e0e2c5e53f99a3a0c8e6342d7f4 | {
"blob_id": "6e1809253df96e0e2c5e53f99a3a0c8e6342d7f4",
"branch_name": "refs/heads/main",
"committer_date": "2023-06-23T10:11:23",
"content_id": "b14734758270e884e473119f3c0b90b3fc8d74a2",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "803898f95f34521f4fc08ff42534888367ff4028",
"extensio... | stackv2 | #include "geminc.h"
#include "gemprm.h"
FILE *spf_create ( char *filnam, int *hlen, int *iret )
/************************************************************************
* spf_create *
* *
* This function creates a new SPF file with an appropriate header. If *
* the file suffix is not ".spf", it wi... | 2.21875 | 2 |
2024-11-19T01:31:14.897770+00:00 | 2019-03-07T09:20:37 | 2eacabfdf12d798dfeb23ea507ef4d0518d3e0af | {
"blob_id": "2eacabfdf12d798dfeb23ea507ef4d0518d3e0af",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-07T09:20:37",
"content_id": "a773ab3ca84b72e9fe8e1565d899c84bcd827e79",
"detected_licenses": [
"MIT"
],
"directory_id": "e7b521c8b58aeb5e54c69f683390165d2ee17cdf",
"extension": "c"... | stackv2 | // Bibliotecas
#include <stdio.h>
// Função para ler um número real de forma sequencial
void lerNumero( int i, double *n ) {
printf( "Numero %d > ", i + 1 );
scanf( "%lf", n );
}
// Função para devolver a posição do maior número real existente num vetor
int posicaoDoMaior( double v[], int l ) {
int p = 0;
for... | 3.40625 | 3 |
2024-11-19T01:31:15.247281+00:00 | 2017-08-08T08:30:38 | 40f6dbccaf2f028a298e8e59c0f2f56827654d71 | {
"blob_id": "40f6dbccaf2f028a298e8e59c0f2f56827654d71",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-08T08:30:38",
"content_id": "8f7d2cf47f90a7d691d5ec54f9bafe9a6f8971cc",
"detected_licenses": [
"MIT"
],
"directory_id": "52befd3814a07b335d5467769abc1597ff77ccf8",
"extension": "c"... | stackv2 | #include "../ailang.h"
static void iter_dealloc(AiSeqiterObject *iter);
static AiObject *iter_iter(AiSeqiterObject *iter);
static AiObject *seqiter_iternext(AiSeqiterObject *iter);
AiTypeObject AiType_Seqiter = {
AiVarObject_HEAD_INIT(&AiType_Type, 0)
"iterator", /* tp_name */
size... | 2.625 | 3 |
2024-11-19T01:31:15.439226+00:00 | 2021-04-14T08:44:07 | 824845f20327856bf627e0a7072e7fce1d1d4a7e | {
"blob_id": "824845f20327856bf627e0a7072e7fce1d1d4a7e",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-14T08:44:07",
"content_id": "af9cfe469796d06a852b6e259fce36665983f433",
"detected_licenses": [
"MIT"
],
"directory_id": "a175025f0c6901437c3086246d3f1f0838c37953",
"extension": "h"... | stackv2 | /*
mediastreamer2 library - modular sound and video processing and streaming
Copyright (C) 2006 Simon MORLAT (simon.morlat@linphone.org)
This program 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 versio... | 2.34375 | 2 |
2024-11-19T01:31:15.592232+00:00 | 2019-08-22T08:48:11 | dd8a8d2608c6c3b862f6f866f640f2c2feab9b5f | {
"blob_id": "dd8a8d2608c6c3b862f6f866f640f2c2feab9b5f",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-22T08:48:11",
"content_id": "6026b9da82e5df3021b58eab26d7e13a525636bb",
"detected_licenses": [
"MIT"
],
"directory_id": "371201b1557efb2a3ad200ce51288e371312442d",
"extension": "c"... | stackv2 | /**
******************************************************************************************
* ... | 2.3125 | 2 |
2024-11-19T01:31:15.989006+00:00 | 2015-06-14T20:25:45 | eb28871514eda200ca128c5573c5d96e427108b8 | {
"blob_id": "eb28871514eda200ca128c5573c5d96e427108b8",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-14T20:25:45",
"content_id": "d83a0fb15b74a0f34f48c524608f81737d540e70",
"detected_licenses": [
"MIT"
],
"directory_id": "8efbed94f05ecb239e609f1bc7e13f886d83b8ca",
"extension": "c"... | stackv2 | #include <pebble.h>
#define TEA_TEXT_GAP 14
static Window *s_menu_window, *s_countdown_window, *s_wakeup_window;
static MenuLayer *s_menu_layer;
static TextLayer *s_error_text_layer, *s_tea_text_layer, *s_countdown_text_layer, *s_cancel_text_layer;
static BitmapLayer *s_bitmap_layer;
static GBitmap *s_tea_bitmap;
st... | 2.375 | 2 |
2024-11-19T01:31:16.129166+00:00 | 2023-08-30T15:57:59 | db84b70753a8f1ab6a09b1160dbc196b7ad96b53 | {
"blob_id": "db84b70753a8f1ab6a09b1160dbc196b7ad96b53",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T15:57:59",
"content_id": "b94e52bba15bcaca609bd5c89c7547ebb8138cf1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a0838b4cd2ce8a2862a6a82dc2e75a701447c28b",
"extens... | stackv2 | /*
* Copyright (c) 2019 Tomoyuki Sakurai <y@trombik.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | 2.140625 | 2 |
2024-11-19T01:31:16.268439+00:00 | 2017-12-27T01:45:19 | 3a31225b47b8b447542b19f6672fea5b4c0f8ba8 | {
"blob_id": "3a31225b47b8b447542b19f6672fea5b4c0f8ba8",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-27T01:45:19",
"content_id": "96bde9f715baff3db2f6ced514ff9091573a5578",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "f574f85a2c3ad539534201bf71137edc698149d9",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include "units.h"
#include "unitbuilder.h"
#include "battle.h"
/* opts
* -f NEW_TEAM
* -u UNIT_NAME as string
* -m NUMBER_MEMBERS_IN_UNIT as int
*
* TODO: not building separate factions properly, error with unitialized
* values brought up by valgr... | 2.6875 | 3 |
2024-11-19T01:31:16.378221+00:00 | 2016-03-21T05:21:11 | e8807f2b49be7cfb2374a370f3dac0099f1b0406 | {
"blob_id": "e8807f2b49be7cfb2374a370f3dac0099f1b0406",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-21T05:21:11",
"content_id": "e0e83be8c03f4abfafb92bda524c808257ebc609",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e26bf62a722296ad4a17982f45630a4f10dec386",
"extensio... | stackv2 | //Emanuel Brici
//4/16/2015
#include <stdio.h>
#include <stdlib.h>
extern int stringgt(char* s1,char* s2);
int main(int argc, char* argv[]) {
char s1[32];
char s2[32];
//first string
printf("Enter first string:");
fgets(s1,32,stdin);
//second string
printf("Enter second string:");
fgets(s2,32,stdin);... | 3.078125 | 3 |
2024-11-19T01:31:16.486272+00:00 | 2015-04-22T23:05:48 | 0073aa14eb2c8ce0c49683e8d99ed86e928dca5d | {
"blob_id": "0073aa14eb2c8ce0c49683e8d99ed86e928dca5d",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-22T23:05:48",
"content_id": "7feef2215a53e6eaf3369f763f25207b01c170c3",
"detected_licenses": [
"Unlicense"
],
"directory_id": "285d6b18e0749f3eb9178346320e9d575e80a93d",
"extension... | stackv2 | #include <bfam.h>
static void test_insert()
{
// domain test
bfam_domain_t *domain;
// Test new domain
domain = bfam_domain_new(MPI_COMM_WORLD);
static const char *elems[] = {"a", "aa", "b", "bb", "ab", "ba",
"aba", "bab", "a1", "a2", "a3", "a4",
... | 2.484375 | 2 |
2024-11-19T01:31:17.374530+00:00 | 2020-06-07T14:09:07 | ea3f2e9ca9175c1f74f4150456627761efad6efe | {
"blob_id": "ea3f2e9ca9175c1f74f4150456627761efad6efe",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-07T14:09:07",
"content_id": "a8a1bf19810e685a030ce8bfdcb0a9c0e52b8435",
"detected_licenses": [
"MIT"
],
"directory_id": "1aace1f1391ea95ec44af0b6f9239e976bcf9690",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
int lg_pref_max(const char* sir, int n) {
// pref_max[i] = lungimea prefixului maxim din sir[0..i]
int* pref_max = (int*)malloc(sizeof(int) * n);
// sunt 0 prefixe de lungime 0
pref_max[0] = 0;
int i = 1, lg = 0;
// incerc prefixele... | 3.1875 | 3 |
2024-11-19T01:31:17.674874+00:00 | 2020-09-08T02:52:56 | e9aa6e60cf56727c456d856fef4ce82a2146f1fc | {
"blob_id": "e9aa6e60cf56727c456d856fef4ce82a2146f1fc",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-08T02:52:56",
"content_id": "fd5da4cea617f6c088a64ebad21c103fbfcd82b0",
"detected_licenses": [
"MIT"
],
"directory_id": "efb25a20ecddb3a0a8795bc616069fc1a94e5375",
"extension": "c"... | stackv2 | /**
* @file ax_crypto_rng.c
* @author NXP Semiconductors
* @version 1.0
* @section LICENSE
* ----------------------------------------------------------------------------
* Copyright 2016 NXP
*
* This software is owned or controlled by NXP and may only be used
* strictly in accordance with the applicable licens... | 2.109375 | 2 |
2024-11-19T01:31:17.734341+00:00 | 2017-06-23T15:07:23 | 7cbb54afd21cc0911867cd3bf59664912d32cefa | {
"blob_id": "7cbb54afd21cc0911867cd3bf59664912d32cefa",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-23T15:07:23",
"content_id": "ab92868239929f4b6fe7e64f32d45aff218eec6f",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f0acd69a3eeb93ba23184440670aa4fd0988535b",
"extens... | stackv2 | /*
* PLEASE NOTICE!
* I am not the author of the code. The original code can be found at:
* https://github.com/v8/v8/blob/085fed0fb5c3b0136827b5d7c190b4bd1c23a23e/src/base/utils/
*
* https://github.com/v8/v8/blob/085fed0fb5c3b0136827b5d7c190b4bd1c23a23e/src/base/utils/random-number-generator.h
*
* https://github... | 2.765625 | 3 |
2024-11-19T01:31:17.883681+00:00 | 2021-11-25T22:27:12 | fda0a7bd8fec9fe11503d64c866e8ac0066564f2 | {
"blob_id": "fda0a7bd8fec9fe11503d64c866e8ac0066564f2",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-25T22:27:12",
"content_id": "fb0bc588913b471da9281254b052a30a1b665a1a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bade93cbfc1f25160dfbe9493bfa83f853326475",
"extens... | stackv2 | /*
* General Loader-Binder
*
* Knows about FILE struct to the extent it is revealed in putc
* if BREADBOX is non-zero
*
*/
#include <stdio.h>
#ifdef GEMDOS
#include <stat.h>
#define DIRSIZ 14
typedef unsigned long fsize_t;
#else
#include <sys/stat.h>
#include <sys/dir.h>
#endif
#include <mtype.h>
#include <coff.h... | 2.078125 | 2 |
2024-11-19T01:31:18.078066+00:00 | 2023-06-18T19:21:52 | 9192b4e0875d61034422947c8278ced72d243328 | {
"blob_id": "9192b4e0875d61034422947c8278ced72d243328",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-18T19:28:33",
"content_id": "5a7ce08e070d72e6bfb7d2c2dbb0aa752fc790d0",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "bbaa11609ac9b324e44bc15fea4eb69b5d56aefb",
"extens... | stackv2 | #include <stdlib.h>
#include <math.h>
#include "lights.h"
#include "../voxtrees/geom.h"
struct get_color_struct {
vox_dot intersection;
vox_dot color;
};
struct vox_light_manager {
vox_dot ambient_light;
struct vox_mtree_node *bound_lights;
};
static int check_light (const vox_dot color);
struct vox... | 2.828125 | 3 |
2024-11-19T01:31:18.385183+00:00 | 2018-04-17T02:36:40 | 8540072bcc7c8e84735ac59f663b64d72276ad71 | {
"blob_id": "8540072bcc7c8e84735ac59f663b64d72276ad71",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-17T02:37:45",
"content_id": "4ae21caa536d896a5ef31cbf4633f5426a6c800e",
"detected_licenses": [
"Unlicense"
],
"directory_id": "a6447764449f6574c4ba66751058c44840623d57",
"extension... | stackv2 | #include "string_util.h"
#include <stdlib.h>
#include <string.h>
error_t string_copy(const char* s, char** result) {
char* tmp = malloc(strlen(s) + 1);
if (!tmp) {
return ERROR_OUT_OF_MEMORY;
}
strcpy(tmp, s);
*result = tmp;
return 0;
}
| 2.34375 | 2 |
2024-11-19T01:31:18.844420+00:00 | 2018-02-28T15:16:35 | 28cbafd98983cc4a87367617d1b90ee709bb86f8 | {
"blob_id": "28cbafd98983cc4a87367617d1b90ee709bb86f8",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-28T15:16:35",
"content_id": "ff2117bad834686811d94bd778eccf1959cd2e93",
"detected_licenses": [
"MIT"
],
"directory_id": "e81df0a1e143c11464afd17a215b8c8cabc7994b",
"extension": "c"... | stackv2 | #include <stddef.h>
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <sys/time.h>
#include "lua_star.h"
#include "star_main.h"
#include "star_seri.h"
extern Star *star;
static inline void
star_send(lua_State *L)
{
int n = lua_gettop(L)... | 2.03125 | 2 |
2024-11-19T01:31:19.093099+00:00 | 2014-12-22T16:03:15 | c5c77728ae43bccd931c0362a2b9d0a9e5fcdd23 | {
"blob_id": "c5c77728ae43bccd931c0362a2b9d0a9e5fcdd23",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-22T16:03:15",
"content_id": "53a173536eb5e3fb32766a769a86ef3e6d1e4d95",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b16da6cfa00c5d176f3b2c0f7a3acb90b73a1c62",
"extensio... | stackv2 |
// Tests interval timer and elapsed time timer (After, Now)
#include "sched.h"
#include "timer.h"
#include "types.h"
#include <pthread.h>
#include <stdio.h>
#include <time.h>
#define NS_PER_SEC 1000000000
int main(int argc, char **argv)
{
printf("After: tests interval timer and elapsed time timer\n");
init... | 2.75 | 3 |
2024-11-19T01:31:19.603994+00:00 | 2021-02-24T15:39:59 | aff864b74c4e19501ac4996e490acb7bc332704e | {
"blob_id": "aff864b74c4e19501ac4996e490acb7bc332704e",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-24T15:39:59",
"content_id": "c9a87fba3408d9d6165bd07df24046dee0a0a91c",
"detected_licenses": [
"MIT"
],
"directory_id": "50008b3b7fb7e14f793e92f5b27bf302112a3cb4",
"extension": "c"... | stackv2 | //Author: Cheeng Shu Chin
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
typedef String (*cmd_func_ptr)();
typedef String (*funcp)(String);
typedef struct
{
String cmd;
cmd_func_ptr func;
} command;
String cmd,cmdlck;
volatile int int0=0;
volatile int int1=0;
int dbg=1;
cmd_func_ptr func;
command commands[] =
{
... | 2.6875 | 3 |
2024-11-19T01:31:20.164351+00:00 | 2018-08-12T22:24:15 | 3996d0b616d43e87c2c3927c3fd5e7a23630e9d1 | {
"blob_id": "3996d0b616d43e87c2c3927c3fd5e7a23630e9d1",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-12T22:24:15",
"content_id": "4634a0776ce7d98fc78894d3d612b7b33e72e37c",
"detected_licenses": [
"MIT"
],
"directory_id": "ccd3c8549379f9f3119608aead85f5628426b429",
"extension": "h"... | stackv2 | #ifndef EPT_H
#define EPT_H
#include <stdint.h>
// todo: write @brief-s
#define EPT_MT_UC 0
#define EPT_MT_WC 1
#define EPT_MT_WT 4
#define EPT_MT_WP 5
#define EPT_MT_WB 6
typedef struct ept_entry
{
union
{
struct
{
/// @brief Read access
char r:1;
/// @brief Write access
char w:1;
/// @brief Ex... | 2.109375 | 2 |
2024-11-19T01:31:20.237545+00:00 | 2022-04-14T05:49:03 | 7574452dbb31a42d3fcb1b9b60618387d7f87a5f | {
"blob_id": "7574452dbb31a42d3fcb1b9b60618387d7f87a5f",
"branch_name": "refs/heads/master",
"committer_date": "2022-04-14T05:49:03",
"content_id": "ea78cc8d0dbd63a6eb7a9b6c58f41c0212cd25be",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "b3525792b9539354cfd7788f63a451bfef... | stackv2 | /* jtag-dap.c
*
* Copyright 2015 Brian Swetland <swetland@frotz.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 2.09375 | 2 |
2024-11-19T01:31:20.314524+00:00 | 2020-02-19T10:50:31 | d914e788c04649f2a8a4da5c892999c85e5e71b8 | {
"blob_id": "d914e788c04649f2a8a4da5c892999c85e5e71b8",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-19T10:50:31",
"content_id": "1d4f8b885464a3e688909d3a97433acef76d48f7",
"detected_licenses": [
"MIT"
],
"directory_id": "68138020be2fb4d62d28986c55b8c834775de956",
"extension": "c"... | stackv2 | //---------------
// mini-c, by Sam Nipps (c) 2015; modified to create wasm binary code instead by Dave Mugridge 2017.
// MIT license
//---------------
// functions to r/w 8 bits when only 32 bit memory access
int getChar (const char* buffer) {return buffer[0] & 255;}
void writeChar(char* buffer, char ch) { buffer[0... | 3.03125 | 3 |
2024-11-19T01:31:20.812657+00:00 | 2018-04-13T15:02:20 | a24d640ff70f6f33aea1060243b590c7ee4af5c9 | {
"blob_id": "a24d640ff70f6f33aea1060243b590c7ee4af5c9",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-13T15:02:20",
"content_id": "5cdfb60dcc82d315a4ee56340c7c307e188642a0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c5eaa07372e72b1afa9a011cc6e550ce73ac8be8",
"extensio... | stackv2 | /** \file ykhat.c */
/*
Copyright 2018 Yepkit Lda (www.yepkit.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | 2.671875 | 3 |
2024-11-19T01:31:21.122707+00:00 | 2020-09-02T18:43:02 | 86e9da0e3275cbf089d5d1ae6dbfc096ba169f6a | {
"blob_id": "86e9da0e3275cbf089d5d1ae6dbfc096ba169f6a",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-02T18:43:02",
"content_id": "358a79c37e28b3cd5a321367a39948e2c0ae5e13",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e05ca0aa9ae95e42165f7c5d5e3653afc5ee2265",
"extens... | stackv2 | #include "general.h"
#include "util.h"
// Converts a pointer to a ML value.
//
// Assumes that the pointer is alligned to a word boundary, and that the word
// size is a multiple of 2.
value Val_addr(void* addr) {
return (long)addr + 1;
}
void* Addr_val(value val) {
return (void*)(val - 1);
}
| 2.265625 | 2 |
2024-11-19T01:31:21.233652+00:00 | 2018-04-14T02:32:49 | 3fb297583be93df3633d3d7c6a5cb5863abc70e7 | {
"blob_id": "3fb297583be93df3633d3d7c6a5cb5863abc70e7",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-14T02:32:49",
"content_id": "83cf9e8147af7c4e23498754d9b7b57e5e5f1e39",
"detected_licenses": [
"MIT"
],
"directory_id": "db37a25d4048c51f66aa3a6ef122cee19a99aa08",
"extension": "c"... | stackv2 | #include "fmp4-writer.h"
#include "mov-internal.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <time.h>
struct fmp4_writer_t
{
struct mov_t mov;
size_t mdat_size;
int has_moov;
uint32_t frag_interleave;
uint32_t fragment_id; // start from 1
uint32_t sn; // sample sn
}... | 2.203125 | 2 |
2024-11-19T01:31:21.526138+00:00 | 2017-08-19T02:37:12 | 1eacb903126a45e6f04e663381a5af829d64002a | {
"blob_id": "1eacb903126a45e6f04e663381a5af829d64002a",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-19T02:37:12",
"content_id": "d7f987fb20af523f0ac15e4ff95fb9a0c9a4457e",
"detected_licenses": [
"MIT"
],
"directory_id": "b280c202cc1c359762f1f344531bf143d45fe5a2",
"extension": "c"... | stackv2 | #include "record.h"
#include "device_file.h"
#include "event.h"
#include "mouse.h"
#include "signal.h"
#include "util.h"
#include <X11/Xlib.h>
#include <fcntl.h>
#include <linux/input.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <uni... | 2.296875 | 2 |
2024-11-19T01:31:21.611235+00:00 | 2019-12-13T13:40:01 | 61f02ac83dc9dd6c2ea13e16d26c36ba36fb7703 | {
"blob_id": "61f02ac83dc9dd6c2ea13e16d26c36ba36fb7703",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-13T13:40:01",
"content_id": "35c26e8acc618a8e9c5b4563c7cd64886ef7b0f5",
"detected_licenses": [
"NCSA",
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "10aa54143d3dd355bbca... | stackv2 | /*
* Copyright (c) 2018, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <debug.h>
#include <psci.h>
#include <stdlib.h>
#include <test_helpers.h>
#include <tftf_lib.h>
#include <xlat_tables_v2.h>
#define SENTINEL 0x55
#define MEM_PROT_ENABLED 1
#define MEM_PROT_DISABLED 0... | 2.65625 | 3 |
2024-11-19T01:31:22.069625+00:00 | 2015-07-13T09:36:13 | d5d210f8b202ae80a4222f6f87bb0cb8c7807f4a | {
"blob_id": "d5d210f8b202ae80a4222f6f87bb0cb8c7807f4a",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-13T09:36:13",
"content_id": "e977863ba0d0ed72499f35082afc2e0d262938cd",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "b80efe3364e094a7e93cf332fc241c81b7028f30",
"extension":... | stackv2 |
#define F_CPU 14745600
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "lcd.c"
#include "Position_Encoder.h"
#include "Servo_Motor.h"
unsigned char left_motor_velocity = 0x00;
unsigned char right_motor_velocity = 0x00;
unsigned char horz_servo_pos = 0x00;
unsigned char vert_servo_po... | 2.140625 | 2 |
2024-11-19T01:31:22.340490+00:00 | 2020-10-20T21:03:17 | e5112d0e51b78d4573ea828df1f7ace43d8ba25e | {
"blob_id": "e5112d0e51b78d4573ea828df1f7ace43d8ba25e",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-20T21:03:17",
"content_id": "e910a0d5a5393fda65054b0337b5898541bf8fd5",
"detected_licenses": [
"MIT"
],
"directory_id": "d5880356812f50d31028bc581bd5f89135979b90",
"extension": "h",
... | stackv2 | #ifndef __COMMON_H__
#define __COMMON_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
typedef struct {
int type;
int data;
} expr_item;
enum {NONE, VALUE, OPAREN, CPAREN, ADD, SUB, MUL, DIV, UNARYPLUS, UNARYMINUS};
#define tokstr(t) (t==NONE)?"NONE": \
(t... | 2.140625 | 2 |
2024-11-19T01:31:22.667628+00:00 | 2018-06-01T10:02:48 | e8a575b233a23982a8d2f5c68b0732efdf734c4b | {
"blob_id": "e8a575b233a23982a8d2f5c68b0732efdf734c4b",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-01T10:02:48",
"content_id": "6f2f423d2ebd9c7126c080baa435dceafc9d3c9f",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e25b2f0cd711d1f86bfee70ecfc3a040ca052561",
"extens... | stackv2 | #ifndef SHAPITO_PARAMETER_H
#define SHAPITO_PARAMETER_H
/*
* Shapito.
*
* Protocol-level PostgreSQL client library.
*/
typedef struct shapito_parameter shapito_parameter_t;
typedef struct shapito_parameters shapito_parameters_t;
struct shapito_parameter
{
uint32_t name_len;
uint32_t value_len;
char data[]... | 2.421875 | 2 |
2024-11-19T01:31:22.839492+00:00 | 2017-11-07T14:34:33 | 442fb19d8a542403e2e250545411ccc618deee5b | {
"blob_id": "442fb19d8a542403e2e250545411ccc618deee5b",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-07T14:34:33",
"content_id": "0736f8b2dbd53f26721bfea6da83223cad9f4471",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2eac84edf941c64588fef76f10d02309aabcb2fb",
"extens... | stackv2 | // This file was generated by createCFunction.sci on 03-03-2017 01:18
// Computational function for X2C block Delay
#define SCILAB_SIM_FILE /* mark this file as Scilab simulation file */
/* include Scicos / Xcos headers */
#include <scicos.h>
#include <scicos_block4.h>
#include <scicos_malloc.h>
#include <scicos_fre... | 2.03125 | 2 |
2024-11-19T01:31:22.891787+00:00 | 2019-05-29T15:40:45 | 8178fb060e152fc533bfdf33a5d8106d0c543498 | {
"blob_id": "8178fb060e152fc533bfdf33a5d8106d0c543498",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-29T15:40:45",
"content_id": "fc27b185593ed4f954c09fb4928f5c308883d29d",
"detected_licenses": [
"MIT"
],
"directory_id": "a85ae2ddeebcb3f534c57b4f2933fe566c49551a",
"extension": "h"... | stackv2 | /*
* UAVCAN data structure definition for libcanard.
*
* Autogenerated, do not edit.
*
* Source file: E:\DSDL\libcanard\dsdl_compiler\pyuavcan\uavcan\dsdl_files\uavcan\protocol\file\46.GetDirectoryEntryInfo.uavcan
*/
#ifndef __UAVCAN_PROTOCOL_FILE_GETDIRECTORYENTRYINFO
#define __UAVCAN_PROTOCOL_FILE_GETDIRECTORY... | 2.140625 | 2 |
2024-11-19T01:31:23.006163+00:00 | 2023-08-08T22:58:35 | fdb2a203d452b0f0efba7c24093a6d69ec237316 | {
"blob_id": "fdb2a203d452b0f0efba7c24093a6d69ec237316",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-08T22:58:35",
"content_id": "ca7b477eb16264d4bb4097bab170e46e8d0c1666",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "31dc0ce3e65a2c262fe7651f5320d93885b1c2db",
"extensio... | stackv2 | /*
* C128 CP/M 8563 VDC bitmap functions.
*
* Copyright (c) Steven P. Goldsmith. All rights reserved.
*/
#include <hitech.h>
#include <bitmap.h>
#include <vdc.h>
/*
* Initialize screen struct for VIC.
*/
void initVdcBmp(bitmap *bmp, ushort bmpMem, ushort colMem, uchar *chrMem) {
static uchar vdcColors[16] = { ... | 2.375 | 2 |
2024-11-19T01:31:23.520579+00:00 | 2018-09-29T15:28:55 | 40bb4c0277605e0c15c70c45505ca44b4062f54f | {
"blob_id": "40bb4c0277605e0c15c70c45505ca44b4062f54f",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-29T15:28:55",
"content_id": "9912e9a362fd1a5541b3950ef63fbb73567a8a3e",
"detected_licenses": [
"MIT"
],
"directory_id": "077a8f2b3d566d2bdeedb1a378bb95d8d50c4b13",
"extension": "c"... | stackv2 | /*
* Copyright 2018 Anish Bhobe, glmc Contributors
*
* 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... | 2.53125 | 3 |
2024-11-19T01:31:24.860511+00:00 | 2015-03-31T20:25:19 | aff6cfd1912f5f93c3c572496b92f34c8271682b | {
"blob_id": "aff6cfd1912f5f93c3c572496b92f34c8271682b",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-31T20:25:19",
"content_id": "9509f21220d2162b546b660c5627995f9cbca97d",
"detected_licenses": [
"MIT"
],
"directory_id": "7836e773a47d98b741db58ec21004e8e469870bb",
"extension": "c"... | stackv2 | #include <pebble.h>
#include <stdlib.h>
#include "const.h"
//extent of array used. Must be less than MAX_BUFFER_SIZE.
int userBufferSize;
//settings maintained by const.h
extern int bVibration; // boolean on/off
extern int bSound; // boolean on/off
extern int bSwitch; // boolean on/off
extern int iSe... | 2.25 | 2 |
2024-11-19T01:31:25.224874+00:00 | 2023-02-01T14:49:51 | 90a2f93a51b0d0d736bc57969cf7975e37fb53c3 | {
"blob_id": "90a2f93a51b0d0d736bc57969cf7975e37fb53c3",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-01T14:49:51",
"content_id": "a927cd7f199aeb65a43ba1b8495a2d632507ebd5",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "21c0643ebf6521e6589a765b78cb8065b58ccc06",
"extens... | stackv2 | /**
*
* Copyright (c) 2017-2023 King Abdullah University of Science and Technology
* All rights reserved.
*
* ExaGeoStat is a software package provided by KAUST
**/
/**
*
* @file flat_file.c
*
* Auxiliary functions that are used to read and process flat files.
*
* @version 1.2.0
*
* @author Sameh Abdulah... | 2.5625 | 3 |
2024-11-19T01:31:26.768739+00:00 | 2017-04-19T10:57:25 | f14fe2237a58e213da4f274bc06639aa518205cf | {
"blob_id": "f14fe2237a58e213da4f274bc06639aa518205cf",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-19T10:57:25",
"content_id": "465dbd1a845df31acf653238ca85f473967758bc",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "dfb354c760f47ba15dc54cb78d01394a8841dbc2",
"extens... | stackv2 | // renderlib
#include "anim.h"
#include "camera.h"
#include "error.h"
#include "font.h"
#include "image.h"
#include "light.h"
#include "mesh.h"
#include "scene.h"
#include "shader.h"
#include "text.h"
#include "texture.h"
// matlib
#include <matlib.h>
/**
* Material.
*/
struct Material {
struct Texture *texture;
... | 2.21875 | 2 |
2024-11-19T01:31:26.995595+00:00 | 2020-03-03T14:27:22 | 2cf8dbc7efe83a4e230fcc1cb337d1246ab30902 | {
"blob_id": "2cf8dbc7efe83a4e230fcc1cb337d1246ab30902",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-03T14:27:22",
"content_id": "8ca7610c0cd63a6bd65875a4ce08454f40eff693",
"detected_licenses": [
"MIT"
],
"directory_id": "dd27dd2074f2fa16d316c71a65abdf857907a4d8",
"extension": "c"... | stackv2 | #include <ignotum.h>
#include <string.h>
// just an ideia
// ignotum_getmaplist gets info through /proc/[pid]/maps
// but if /proc is not avaliable maybe you can get the heap
// address by inject brk(0) syscall in the target pid,
// and to measure the bound, you can use process_vm_readv
int getheapmap(pid_t pid, ignot... | 2.484375 | 2 |
2024-11-19T01:31:27.168041+00:00 | 2021-05-15T13:34:36 | ca190ef83e1e6191c6b57154eb7dede4350413a7 | {
"blob_id": "ca190ef83e1e6191c6b57154eb7dede4350413a7",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-15T13:34:36",
"content_id": "87ebd042527d554a161d1a23e2a9a9e4f86de5aa",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "b94c1cb75cf07b7de3d1585dc2979062e9cd771d",
"extens... | stackv2 | #include "project.h"
#include "connection.h"
#include "ssl.h"
#ifdef FORK
#include "fork.h"
#endif
#include <arpa/inet.h> /* inet_ntop */
#include <errno.h>
#include <fcntl.h> /* F_SETFL, F_GETFL, fcntl() */
#include <netdb.h> /* freeaddrinfo */
#include <netinet/tcp.h> /* SOL_TCP, TCP_NODELAY */
#include <pwd.h> /* ... | 2.171875 | 2 |
2024-11-19T01:31:27.243152+00:00 | 2023-08-17T13:00:20 | 40208584f26f1cda2456fee0a7c6b6e2483bca98 | {
"blob_id": "40208584f26f1cda2456fee0a7c6b6e2483bca98",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T07:43:37",
"content_id": "c59c4d3f096915efca17cf2bfa1b4b9ae22f828a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c9bc99866cfab223c777cfb741083be3e9439d81",
"extens... | stackv2 | /*
* Arm SCP/MCP Software
* Copyright (c) 2015-2022, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Description:
* SGM775 DMC-500 module.
*/
/* The use of "primary" may not be in sync with older versions of TRM */
#include <mod_sgm775_dmc500.h>
#include <m... | 2.03125 | 2 |
2024-11-19T01:31:27.472078+00:00 | 2015-01-10T13:24:35 | e976c57b2d321ee9f998eb8e72c7e84d7f2a67c4 | {
"blob_id": "e976c57b2d321ee9f998eb8e72c7e84d7f2a67c4",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-10T13:24:35",
"content_id": "1fc6728f8097a8976f6a163845e9042d3d446f5a",
"detected_licenses": [
"MIT"
],
"directory_id": "4c6c7422a7192c05d08830ee40ab7ce3a3a53949",
"extension": "c"... | stackv2 | /****************************************************************************
* Project: Atx delay power on *
* Author: Jussi Kinnunen *
****************************************************************************/
#includ... | 2.328125 | 2 |
2024-11-19T01:31:27.998763+00:00 | 2020-10-19T12:34:27 | 6827e3e28ea595fc997ab34a44cde1c1a99140b6 | {
"blob_id": "6827e3e28ea595fc997ab34a44cde1c1a99140b6",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-19T12:34:27",
"content_id": "e1b4399a5dce10cd33618a6e75e89040b6e333dd",
"detected_licenses": [
"MIT"
],
"directory_id": "f5b9218e1ec6b6fb9f9b4f65eda59fca8d33ad9b",
"extension": "h"... | stackv2 | #ifndef RR_GRID_H
#define RR_GRID_H
#include "point.h"
#include "entity.h"
#include "cutil/btree.h"
#include <stdlib.h>
#define RR_GRID_WIDTH 23
#define RR_GRID_HEIGHT 23
typedef struct rrGrid rrGrid;
rrGrid* rr_grid_create(int width, int height);
void rr_grid_destroy(rrGrid* grid);
int rr_grid_position_is_valid(... | 2.0625 | 2 |
2024-11-19T01:31:28.272343+00:00 | 2021-01-20T02:37:13 | 25ca9a0ecc7de3b2a6f31badc4deb4c7fbc616f4 | {
"blob_id": "25ca9a0ecc7de3b2a6f31badc4deb4c7fbc616f4",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-20T02:37:13",
"content_id": "d247114991af4656709c706dd41cc70426a20c44",
"detected_licenses": [
"MIT"
],
"directory_id": "dc423606057d6cf4ae01e2a48e3930c4df03aa49",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUFFER_SIZE 1024
int main(int argc, char *argv[])
{
FILE *fpin;
FILE *fpout;
char *buff[BUFFER_SIZE];
fpin = stdin;
fpout = stdout;
if ( 2 == argc ) {
if ( NULL == (fpin = fopen(argv[1], "r")) ) {
fprintf(stderr, "%s: cannot open file \'... | 3.09375 | 3 |
2024-11-19T01:31:28.527446+00:00 | 2018-11-05T11:40:19 | 399495b1901788572c0ce3a6f66d6c636911a122 | {
"blob_id": "399495b1901788572c0ce3a6f66d6c636911a122",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-05T11:40:19",
"content_id": "d62b94c9b28c195d3bda1e1985b5b53c6250deea",
"detected_licenses": [
"MIT"
],
"directory_id": "3eaf0fbdc7f161fe9857e6b3c4077ec08872e2fe",
"extension": "c"... | stackv2 | #include "dht11_sensor.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
static float getValue(FILE * fp) {
static char cmdBuf[8];
memset(cmdBuf, 0, sizeof(cmdBuf));
if(NULL == fp) {
return NAN;
}
if(NULL != fgets(cmdBuf, sizeof(cmdBuf)-1, fp)) {
float val = strtof(cmdB... | 2.1875 | 2 |
2024-11-19T01:31:28.637338+00:00 | 2018-03-21T08:54:29 | 54a428a09e0123c6b0231e454d91f4b91c17831a | {
"blob_id": "54a428a09e0123c6b0231e454d91f4b91c17831a",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-21T08:54:29",
"content_id": "43d49b8afd2227a5fe0a819f4f5eb36e9e64d9a9",
"detected_licenses": [
"MIT"
],
"directory_id": "6fb4ea1d149a5d5cab8ab4c2d0ca978b54802d16",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <sys/ioctl.h>
#include <linux/spi/spidev.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#include <math.h>
#include <stdint.h>
#define WIDTH 13
#define HEIGHT 36
//#define TAIL 21
#define PIXELS (WIDTH * HEIGHT)
#d... | 2.375 | 2 |
2024-11-19T01:31:28.712965+00:00 | 2023-06-27T09:37:07 | d9bcae2c2ad67523c8cfbbfc29d0c1c13b7dc2d9 | {
"blob_id": "d9bcae2c2ad67523c8cfbbfc29d0c1c13b7dc2d9",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-03T13:55:18",
"content_id": "1e054d9936036a772fc851e76d9c5123cbf7d35e",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "bbe9714204043d77bf874a84b530a23f814edca4",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "memcached.h"
#include "mc_sasl.h"
/******************************************************************************/
/* wrappers on cyrus sasl lib */
/********************************... | 2 | 2 |
2024-11-19T01:31:29.148181+00:00 | 2020-05-09T04:33:52 | 45a9fb06206fc82013cd7fa2e46a038e86159f4c | {
"blob_id": "45a9fb06206fc82013cd7fa2e46a038e86159f4c",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-09T04:33:52",
"content_id": "6cbdef0765023262e6de7107bcffdba5756202b2",
"detected_licenses": [
"MIT"
],
"directory_id": "2d436bef79812570ccf83e76b0d30c47a1bfa1cd",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdarg.h>
#include "tree.h"
#include "stack.h"
void printstack(node *stack)
{
printf("stack: ");
while (!isempty(stack))
{
printf("%p ", stack->top->data);
}
printf("\n");
}
void inorder(tree *root)
{
node *stack = NULL;
while (1)
{
if (root)
{
push(root... | 3.171875 | 3 |
2024-11-19T01:31:29.388507+00:00 | 2016-04-26T16:49:55 | 7eef42f38d73412d6b5973defd297bbbb0878e24 | {
"blob_id": "7eef42f38d73412d6b5973defd297bbbb0878e24",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-26T16:49:55",
"content_id": "9d267077445434636b45e3750eed64110411a722",
"detected_licenses": [
"MIT"
],
"directory_id": "d52090f1dac7c25df01b49c3005ad4281a69fe3b",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
// the purpose of this code is to call exit function
void riskyCode() {
printf("Calling exit from C code\n");
exit(1);
}
| 2.03125 | 2 |
2024-11-19T01:31:29.563283+00:00 | 2023-09-01T13:17:02 | 7e79ed68e73f7cf7df136bd4305e478d279b0d09 | {
"blob_id": "7e79ed68e73f7cf7df136bd4305e478d279b0d09",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-01T13:17:02",
"content_id": "205c027fb3287810e96b1177318b2893cd449b51",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "4cd1537b92864ee108def7886aafc0f924... | stackv2 | #include <include/exceptions.h>
zend_class_entry *tea_exception_throw(const char *message) {
zend_class_entry *ce = zend_exception_get_default();
zend_throw_exception(ce, (char *)message, 0);
return ce;
}
bool tea_exception_eq(zend_class_entry *ce, const char *message) {
if (!tea_exception_exists()) r... | 2.09375 | 2 |
2024-11-19T01:31:31.300764+00:00 | 2020-10-01T12:49:05 | 325368a0339d2b5399a91d2a7616fa766ad4a511 | {
"blob_id": "325368a0339d2b5399a91d2a7616fa766ad4a511",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-01T12:49:05",
"content_id": "393ce0d2734e3bae3283d1d4045f034e7d5b76a5",
"detected_licenses": [
"ISC"
],
"directory_id": "37abc7d818bbb246b7d55b1d178b9853c2dd5752",
"extension": "c"... | stackv2 | /**
* collectd - src/meta_data.c
* Copyright (C) 2008-2011 Florian octo Forster
*
* 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
* t... | 2.4375 | 2 |
2024-11-19T01:31:31.514015+00:00 | 2018-12-13T08:05:37 | e5dbd66ef8a42add12190b7a5f34de245bd32fac | {
"blob_id": "e5dbd66ef8a42add12190b7a5f34de245bd32fac",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-14T05:21:15",
"content_id": "94cfed104b89c9900bb56c48fff54ee7bc625f3e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b35abac612fa2462930f04d008744e6f425cb76b",
"extensio... | stackv2 | /*
* Copyright (c) 2018 Inho Oh <webispy@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 2.203125 | 2 |
2024-11-19T01:31:35.818784+00:00 | 2014-05-22T05:58:58 | 79f068c99a3839a9b87d28f636c4333a78685898 | {
"blob_id": "79f068c99a3839a9b87d28f636c4333a78685898",
"branch_name": "refs/heads/master",
"committer_date": "2014-05-22T05:58:58",
"content_id": "72588d88b88dc61bde1914083145c2966f0e6dc7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7a34ed2bf7d5dad79d64a5a24ed9f2d4d602e56e",
"extensio... | stackv2 | /*
Copyright 2013-2014 bcstack.org
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | 2.3125 | 2 |
2024-11-19T01:31:36.166170+00:00 | 2017-01-07T00:39:18 | daf2ee564b89538d34867a92eda15f301399b6b7 | {
"blob_id": "daf2ee564b89538d34867a92eda15f301399b6b7",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-07T00:39:18",
"content_id": "0b549c58d6274f952d6a5fdadf20c8ba9e0b1216",
"detected_licenses": [
"MIT"
],
"directory_id": "77ec8812cc5287c2f9d0c956d582e6299b19adc1",
"extension": "h"... | stackv2 | /**
* \file reseau.h
* \brief Fichier de gestion reseau pour l'envoi et reception de scores en ligne.
* \author Demingeon Cyril
*/
#include <windows.h>
#include <curl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//char* url="http://www.faraweb.fr/dk/dk.php";
char* url="http://ogizanagi.fr/dk/dk.p... | 2.40625 | 2 |
2024-11-19T01:31:36.635630+00:00 | 2017-06-30T23:22:54 | eba52028b945c77c3d5f155379f7cf49408d599d | {
"blob_id": "eba52028b945c77c3d5f155379f7cf49408d599d",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-30T23:22:54",
"content_id": "de494acb0e0e2c455f57eed735d40e49dfba2553",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "897780b089a88d0f020c46f4db1f0b07fa90117c",
"extens... | stackv2 | #include <stdio.h>
#include "dedup-characters.h"
void
dedup_characters(get_character source, put_character sink, char to_dedup) {
(void)source;
(void)sink;
(void)to_dedup;
int current_character = 0;
int previous_character = 0;
while((previous_character = source()) != EOF) {
sink(previous_character);
... | 2.90625 | 3 |
2024-11-19T01:31:37.118749+00:00 | 2017-11-06T01:46:10 | 6a93ee57d39c9a4b9471ba127668ab1a20b44eaf | {
"blob_id": "6a93ee57d39c9a4b9471ba127668ab1a20b44eaf",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-06T01:46:10",
"content_id": "60fc9b11dc144d3eafd559ac4630924a8650610b",
"detected_licenses": [
"MIT"
],
"directory_id": "9dfc2fb69112231b0e84be51084b194b5eafbf67",
"extension": "c"... | stackv2 | /**
* mario.c
*
* Nouriel M. Eshaghian
* nouriele10@gmail.com
*
* Recreates half pyramid from level 1-1 of Super Mario Bros.
* using hashes based on user's input of pyramid height
* from 1 through 23.
*/
#include <stdio.h>
#include <cs50.h>
int main(void)
{
// prompt user for input for pyramid heigh... | 3.09375 | 3 |
2024-11-19T01:31:37.765125+00:00 | 2022-08-11T03:18:22 | 1b3e0088af08f2674269161da03b1012795aa6bc | {
"blob_id": "1b3e0088af08f2674269161da03b1012795aa6bc",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-11T03:18:22",
"content_id": "df78c676690c721775cc2cced92ac33b6b4d1824",
"detected_licenses": [
"MIT"
],
"directory_id": "8afb5afd38548c631f6f9536846039ef6cb297b9",
"extension": "c"... | stackv2 | #include <Python.h>
static PyObject *is_palindrome(PyObject *self, PyObject *args) {
int i, n;
const char *text;
int result;
/* "s" means a single string: */
if (!PyArg_ParseTuple(args, "s", &text)) {
return NULL;
}
/* The old code, more or less: */
n=strlen(text);
result = ... | 2.46875 | 2 |
2024-11-19T01:31:38.233324+00:00 | 2023-04-05T10:32:55 | 6ed5e5652985003599c55274d6406921a8b11281 | {
"blob_id": "6ed5e5652985003599c55274d6406921a8b11281",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-05T10:32:55",
"content_id": "4709bb76f7699c0335c882116c8d664dd3a6892d",
"detected_licenses": [
"MIT"
],
"directory_id": "972000fdab7ed433bc8696617d98debfcba16144",
"extension": "c"... | stackv2 | #include <ctype.h>
#include <masc/json.h>
#include <masc/map.h>
#include <masc/list.h>
#include <masc/str.h>
#include <masc/bool.h>
#include <masc/none.h>
#include <masc/cstr.h>
#include <masc/math.h>
typedef enum {
EXPECT_VALUE, EXPECT_END, EXPECT_COLON, EXPECT_COMMA
} expect_t;
static JsonError expect2err[] =... | 2.765625 | 3 |
2024-11-19T01:31:42.143359+00:00 | 2018-04-10T17:10:16 | a6a031d5a5d4d7a439b661feb39884cbc3a92f13 | {
"blob_id": "a6a031d5a5d4d7a439b661feb39884cbc3a92f13",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-10T17:10:16",
"content_id": "5b99a768b150aa38d937ec90e1034ab89de540b3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "83c831db17943c30921deb11feaad744beafe183",
"extensio... | stackv2 | //
// dict.c
// cache
//
// Created by working on 2018/3/25.
// Copyright © 2018年 working. All rights reserved.
//
#include "dict.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "dict.h"
#define MaxSize 1000 // 暂时指定 1000 个长度
// 结构的具体定义
struct dictStruct {
GwList *list[MaxSize];
};
... | 3.046875 | 3 |
2024-11-19T01:31:42.205291+00:00 | 2023-05-03T13:59:01 | 636b531dd5422ab4d39de63f640b46a040c9ad19 | {
"blob_id": "636b531dd5422ab4d39de63f640b46a040c9ad19",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-03T14:01:36",
"content_id": "448cf7e33c1eb094e37b3d1d3254239d7f6443b3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "729a9a5543592ccce276856a19a18d7d540f6cd3",
"extensio... | stackv2 | //consolidate_forward.c
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define SIZE 16
int main(int argc, char* argv[])
{
if (argc != 2 ) {
printf("usage: ./program arg1. Exiting...\n");
exit(-1);
}... | 2.671875 | 3 |
2024-11-19T01:31:42.278461+00:00 | 2019-11-03T10:05:02 | 333ea19d85b48ebe071df1bf48d265ed0f23eaf9 | {
"blob_id": "333ea19d85b48ebe071df1bf48d265ed0f23eaf9",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-03T10:05:02",
"content_id": "f5794b50868fa511ef12fce7152d503eedb67504",
"detected_licenses": [
"MIT"
],
"directory_id": "ff0cca7dd0de6cc741c086d5be22cc9436323607",
"extension": "c"... | stackv2 | /*
Binarnic Project
(c) 2019
*/
#include "map.h"
#include <stdlib.h>
#include <string.h>
void map_init(map_t* m) {
m->entries = malloc(sizeof(entry_t) * MAX_ENTRIES);
m->count = 0;
}
entry_t* map_get(map_t* m, char* key) {
for (int i = 0; i < m->count; i++) {
entry_t* e = &m->entries[i];
if (strcmp(key,... | 3.140625 | 3 |
2024-11-19T01:31:43.201613+00:00 | 2021-07-01T02:20:17 | a7abfef265082e3c9384f8106b066ec8c4a771a2 | {
"blob_id": "a7abfef265082e3c9384f8106b066ec8c4a771a2",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-01T02:20:17",
"content_id": "12efb7c0000f7b738dc5d159dc9760e4c5b7d8ed",
"detected_licenses": [
"MIT"
],
"directory_id": "428ac79277a8892d851b01f53de962c0523be215",
"extension": "c"... | stackv2 | long fun(const int * v,
unsigned long l, // Lo primero que se me viene a la cabeza
unsigned long r, // con estos valores son left y right
int t) {
long p = (l+r)/2;
int m = v[p]; // Seguramente sea m de middle
if (m == t)
return p; //L8 - Además vemos que devuelve p y no m por la firma de la función.
if (t < ... | 2.75 | 3 |
2024-11-19T01:31:43.429893+00:00 | 2021-09-01T04:27:58 | 458558496af27c77d0bd1881ee917a744766085b | {
"blob_id": "458558496af27c77d0bd1881ee917a744766085b",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-01T05:28:03",
"content_id": "d4c131adc4c33987121fefdcefc165bebf105fa4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d41ed191fa747241677195fe00eeaff71886e6f9",
"extensio... | stackv2 | /*
* Project: cmdrecplay
* Version: 2.0
* Copyright: (C) 2014-2017 Dr.Sc.KAWAMOTO,Takuji (Ext)
* Create: 2017/05/13 10:43:35 JST
*/
#include <sqlite3.h>
#include <string.h>
#include <stdio.h>
#include "config.h"
#include "debug.h"
#include "Database.h"
static int callback(void *arg, int argc, char **argv, char ... | 2.078125 | 2 |
2024-11-19T01:31:43.501997+00:00 | 2020-10-02T05:46:50 | 7fb4ce8b58f40cc1c4aea786aafe5d31f1585f35 | {
"blob_id": "7fb4ce8b58f40cc1c4aea786aafe5d31f1585f35",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-02T05:46:50",
"content_id": "bb19fb684b4e3e60a005f720f4b102a6128e9276",
"detected_licenses": [
"Unlicense"
],
"directory_id": "28397e787305912377a1b35fe9b3476bd22e64b3",
"extension... | stackv2 | #ifdef LINE_DIRECTIVE
#line 2 "token.h"
#endif
// ---------------------------------------------------------------------------
//
// token
// integer-constant
// character-constant
// string-literal
// identifier-or-keyword
// symbol
//
// integer-constant
// ... | 2.15625 | 2 |
2024-11-19T01:31:44.124547+00:00 | 2020-02-27T18:27:43 | eea8b4e5d634137b46723c608eec1f0a0b93d5c3 | {
"blob_id": "eea8b4e5d634137b46723c608eec1f0a0b93d5c3",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-27T18:27:43",
"content_id": "98a9b8889801d4bee35eb4f8f3ddd4b59c118747",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "da87c3c4568baf73eafba3bdd0398b72... | stackv2 | /*
* FILE %ned/07/ned0752.c
*
* find first line in a list of lines
*
* written: 1995-02-11
* latest update: 1998-08-16 14:25:41
*
*/
#ifdef MSDOS
#pragma check_stack(off)
#endif
#include "ed.h"
#include "proto.h"
/* ------------------------------------------------------------------------ */
struct ... | 2.234375 | 2 |
2024-11-19T01:31:44.323526+00:00 | 2021-07-06T00:47:53 | 39c6629333aa258459b9573db15b68395c2f50b7 | {
"blob_id": "39c6629333aa258459b9573db15b68395c2f50b7",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-06T00:47:53",
"content_id": "0085051c290bb27007b814477c973bb0b0dbebcd",
"detected_licenses": [
"MIT"
],
"directory_id": "913d575e0d3ca709d7dfb521dbb61255291cad8d",
"extension": "c"... | stackv2 | #include "cssmin.h"
#include <stdio.h>
#include <stdlib.h>
#define LOGGER_IMPLEMENTATION
#define LOGGER_ALWAYS_COLOR 0
#include "simple-logger/logger.h"
// TODO: use logger
// TODO: batch operation
// Minify a CSS file
// Returns 1 on sucess, 0 on failure
int minify(char *source_path, char *minified_path) {
log_le... | 2.796875 | 3 |
2024-11-19T01:31:44.494405+00:00 | 2020-12-04T19:28:26 | cee128111a7980bc25fc685d24d8285bc68d505c | {
"blob_id": "cee128111a7980bc25fc685d24d8285bc68d505c",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-04T19:28:26",
"content_id": "797506da2e602f9891a782a691587bdb89fcf3c7",
"detected_licenses": [
"MIT"
],
"directory_id": "ec32d2027d2688863bc8c0173f635aa18f04eb65",
"extension": "c"... | stackv2 | /**
* \file main.c
* \brief Game of life main program
*
* This is the main c code of Conway's Game of Life
*
*/
#include <ncurses.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int MAX_X; /*!< Maximum screen columns/width */
int MAX_Y; /*!< Maximum screen rows/height */
/**
* \brief Uni... | 3.375 | 3 |
2024-11-19T01:31:44.872935+00:00 | 2019-09-23T10:00:39 | f76ea8143067189aef8b4a5f191e1f1d66c9a668 | {
"blob_id": "f76ea8143067189aef8b4a5f191e1f1d66c9a668",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-23T10:00:39",
"content_id": "400756308bd9f48099a4dd5432c8b85f8adc37aa",
"detected_licenses": [
"MIT"
],
"directory_id": "820022bad0a1c0434f1b95f5856c17e9b82654af",
"extension": "h"... | stackv2 | #ifndef SERIALPORT_H
#define SERIALPORT_H
#ifdef __cplusplus
extern "C" {
#endif
#include "serialport_defs.h"
struct SerialportHandle;
typedef struct SerialportHandle sSerialportHandle;
/**
* @brief 打开串口
*
* @param port 串口名称
* @param param 串口参数 @sSerialportParam
* *
* @return 打开成功返回串口句柄sSerialportHandle,否则返... | 2.25 | 2 |
2024-11-19T01:31:45.350903+00:00 | 2017-12-26T19:57:42 | 4344198de123f29ff7b1314910fcd71dd2d07fbc | {
"blob_id": "4344198de123f29ff7b1314910fcd71dd2d07fbc",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-26T19:57:42",
"content_id": "e3fb798254a3b65565eff1c39e290214a821541c",
"detected_licenses": [
"MIT"
],
"directory_id": "34f2677a123f4a3b097fb540a2392995539a5c45",
"extension": "h"... | stackv2 | #ifndef VEC2_H
#define VEC2_H
#include "types.h"
inline constexpr vec2 vec2_zero()
{
return vec2 { 0.0f, 0.0f };
}
inline constexpr vec2 operator+(vec2 p1, vec2 p2)
{
return vec2 { p1.x + p2.x, p1.y + p2.y };
}
inline constexpr vec2 operator-(vec2 p1, vec2 p2)
{
return vec2 { p1.x - p2.x, p1.y - p2.y };... | 2.234375 | 2 |
2024-11-19T01:31:45.712368+00:00 | 2018-11-27T22:57:22 | 695836e397d4db7629f4c3833a36bf3e96b97796 | {
"blob_id": "695836e397d4db7629f4c3833a36bf3e96b97796",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-27T22:57:22",
"content_id": "b10627a84fe85ecd7da5e6b4fc44382f5f49c922",
"detected_licenses": [
"MIT"
],
"directory_id": "52d109d3780d7a9d9d1e28635957b0ac4f613885",
"extension": "c"... | stackv2 | /*
* main implementation: use this 'C' sample to create your own application
*
*/
#include "derivative.h" /* include peripheral declarations */
/* ClockOutput options */
#define CLOCKOUT_FLASH_CLOCK 2
#define CLOCKOUT_LPO 3 //Low Power Clock 1KHz
#define CLOCKOUT_MCGIRC 4 //Internal reference clock
#d... | 2.328125 | 2 |
2024-11-19T02:20:09.725918+00:00 | 2017-08-18T13:24:41 | 755011af4eefd218a497b71c8e951a689a45cf04 | {
"blob_id": "755011af4eefd218a497b71c8e951a689a45cf04",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-18T13:24:41",
"content_id": "891c48dcd5ab4c68ad0938331ecdcc042bc30d9d",
"detected_licenses": [
"MIT"
],
"directory_id": "6cf292f62c1c0ed02b9f6b86648a0779cf674327",
"extension": "h"... | stackv2 | /********************* (C) COPYRIGHT 2010 e-Design Co.,Ltd. ********************
File Name : Draw.h
Version : DS203_APP Ver 2.3x Author : bure
*******************************************************************************/
#ifndef __DRAW_H
#define __DRAW_H
#include "stm32f10x_li... | 2.09375 | 2 |
2024-11-19T03:16:29.179113+00:00 | 2018-04-08T14:42:56 | 689872745ca905bd32d2b48c714af92f8f3df58e | {
"blob_id": "689872745ca905bd32d2b48c714af92f8f3df58e",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-08T14:48:07",
"content_id": "a1d0df945293fbca412d2a56c5e803c25889a131",
"detected_licenses": [
"Unlicense"
],
"directory_id": "f33bedd1a9dbd17956eae15041b7ae38d531c0b6",
"extension... | stackv2 | /**
* Set 1 Challenge 4 - Detect single-character XOR
* https://www.cryptopals.com/sets/1/challenges/4
*
* One of a list of stings in a file has been encrypted by single-character
* XOR. Find it.
*/
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "util/... | 3.046875 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.