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-18T23:30:41.447487+00:00 | 2020-10-28T08:47:36 | a865544e8cb176f7ebd19a25e8aad27188683261 | {
"blob_id": "a865544e8cb176f7ebd19a25e8aad27188683261",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-28T08:47:36",
"content_id": "54f19f6d06bb97cc0cece320970fc8b91970e1df",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5f7d234a937ad67e1e9b3261a202b0d55e0735be",
"extensio... | stackv2 | /* ubmc_gpio
*
* Copyright 2012 Manuel Traut <manut@linutronix.de>
*
* LGPL licensed
*/
#ifndef _UBMC_GPIO_H_
#define _UBMC_GPIO_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef enum _ubmc_gpio_direction {
GPIO_IN,
GPIO_OUT,
} ubmc_gpio_direction;
typedef enum _ubmc_gpio_value {
GPIO_LOW = 0,
GPIO_H... | 2.171875 | 2 |
2024-11-18T23:30:42.228125+00:00 | 2020-12-08T09:24:53 | 5cec55f25707a530f0756e0cb71e344689275206 | {
"blob_id": "5cec55f25707a530f0756e0cb71e344689275206",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-08T09:24:53",
"content_id": "215246dc0dd413b6b72d8e00538975b476b0d63d",
"detected_licenses": [
"MIT"
],
"directory_id": "26cb6fff112cbd8a01f5151d1c1aeeb83b418486",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int
main(int argc, char* argv[])
{
if (argc < 2)
{
perror("Usage: bytes_number [FILE]");
exit(1);
}
// INPUT FILE
FILE* in = fopen(argv[1], "rb");
// OUTPUT FILE
char output_filename[30];
sprintf(output_filename, "%s.bn", argv[1]);
FILE* out = fopen(output_filen... | 2.84375 | 3 |
2024-11-18T23:30:42.297378+00:00 | 2018-12-11T22:56:24 | 5ab5a8d951944d00b380e76e813c80cf097dfef2 | {
"blob_id": "5ab5a8d951944d00b380e76e813c80cf097dfef2",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-11T22:56:24",
"content_id": "e045e65219b4d87e16d8ffa6ad4faf131ef3efff",
"detected_licenses": [
"MIT"
],
"directory_id": "5342f738f18ee3bef0c06c52733c28009ab63057",
"extension": "c"... | stackv2 | #include <stddef.h>
#include <string.h>
#include "request.h"
void reqtobuf(const struct request *req, void *buffer, size_t n) {
memcpy(buffer, &req->length, 4);
memcpy((char *) buffer + 4, req->file, n - 4);
}
void buftoreq(const void *buffer, struct request *req, size_t n) {
memcpy(&req->length, buffer, ... | 2.40625 | 2 |
2024-11-18T23:30:43.696277+00:00 | 2015-09-14T04:11:38 | e46f2a982b1211e0ba1fa62ed841268dc835b0c0 | {
"blob_id": "e46f2a982b1211e0ba1fa62ed841268dc835b0c0",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-14T04:11:38",
"content_id": "8f4c8535c5976bb2e7a3ae086398e7dea9303d47",
"detected_licenses": [
"MIT"
],
"directory_id": "5e42df59e708b1870d7ed646545fc5f02b6d9e16",
"extension": "c"... | stackv2 | #define _GNU_SOURCE
#include "config.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/wait.h>
#include <stdbool.h>
extern char **environ;
static int usage(const char *arg0) {
fprintf(stderr, "Usage: %s [--fail-index N] [--libmalcheck libmalcheck.... | 2.453125 | 2 |
2024-11-18T23:30:43.771556+00:00 | 2020-04-24T23:20:40 | eba259752ab1f753a8cd823be180d78de6c67ddf | {
"blob_id": "eba259752ab1f753a8cd823be180d78de6c67ddf",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-24T23:20:40",
"content_id": "b3eeb867ad72c7327c6b6e3990a8f0f3a2766290",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "48c2d779adc3ec016b996d1bb03c5f9b2605bb3f",
"extens... | stackv2 | /* Reference implementation of the sliscp_light192 permutation of width 192 bits.
Written by:
Kalikinkar Mandal <kmandal@uwaterloo.ca>
*/
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<stdint.h>
#include "sliscp_light192.h"
/*
*SC1_192: step constants, applied on S_0
*SC2_192: step constan... | 2.609375 | 3 |
2024-11-18T23:30:43.840264+00:00 | 2020-10-21T15:54:51 | c30f1378fc0fd97758933e60ea671e6ffaf3b67b | {
"blob_id": "c30f1378fc0fd97758933e60ea671e6ffaf3b67b",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-21T15:54:51",
"content_id": "c594d72d3c2255c1b63da47aba89d23c5c34b4ae",
"detected_licenses": [
"MIT"
],
"directory_id": "4d90001b9923e852654f7b18e9c7efdd17b797ea",
"extension": "h"... | stackv2 | /**
* Resolves a path to the given target, provided that an absolute path to it is
* located in the PATH environment variable.
*
* @param target the name of the program that should be resolved
*
* @return the absolute path to the target binary
*/
char *resolve_path(char *target);
/**
* Recaches the PATH enviro... | 2.265625 | 2 |
2024-11-18T23:30:44.040383+00:00 | 2021-08-04T04:26:30 | 8dc81534f006a91a982e0355f4e225662a82fcc3 | {
"blob_id": "8dc81534f006a91a982e0355f4e225662a82fcc3",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-04T04:26:37",
"content_id": "a5d9bf7b191a6260c61eb58038b82465d79d5419",
"detected_licenses": [
"MIT"
],
"directory_id": "e43a0c28bc4fe818f1c84ce26d56066423982d22",
"extension": "c"... | stackv2 | #include <string.h>
#include "packer/include/elfutils.h"
void parse_mapped_elf(
void *start,
size_t size,
struct mapped_elf *elf)
{
elf->start = start;
elf->size = size;
elf->ehdr = (Elf64_Ehdr *) start;
elf->phdr_tbl = (Elf64_Phdr *) (elf->start + elf->ehdr->e_phoff);
elf->shdr_tbl = (Elf64_Sh... | 2.578125 | 3 |
2024-11-18T23:30:44.502126+00:00 | 2016-05-14T10:16:15 | 189d6b34ef2c28a4a8d4b37bb0ada21b7bb192bc | {
"blob_id": "189d6b34ef2c28a4a8d4b37bb0ada21b7bb192bc",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-14T10:16:15",
"content_id": "99943c5cefe6f6ffc9844a777628aa45e09376af",
"detected_licenses": [
"MIT"
],
"directory_id": "24010b3102f58140772aebe62ec8920797bb1b27",
"extension": "c"... | stackv2 | /*
* Roll Number = 12/CS/06,12/CS/07
* Name = Himansu Rathi, R Om Prakash
* Group No = 3
*/
#include<unistd.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<sys/ipc.h>
#include<sys/msg.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MSGSIZE 256
#define PERMS 0666
struct msg {
long int mty... | 2.71875 | 3 |
2024-11-18T23:30:44.846314+00:00 | 2015-12-30T02:00:47 | 586934f14bb3c69af39eaab088822944f56a1b5d | {
"blob_id": "586934f14bb3c69af39eaab088822944f56a1b5d",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-30T02:00:47",
"content_id": "a20635e05254e294390ed8458aec291889483b37",
"detected_licenses": [
"MIT"
],
"directory_id": "ff49403731196b7e6f1c696d47ed7f69061a2ddc",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
int main(int argc, const char* argv[]){
long STEP_SIM; // the random range used to add each read address randomly.
if(argc>1){
printf("#step set to 1024*%d\n",atoi(argv[1]));
STEP_SIM=1024L*atoi(argv[1]);// the random range used to add ea... | 2.78125 | 3 |
2024-11-18T23:30:45.244709+00:00 | 2021-04-19T01:53:12 | 33dab4d033c60b4dbf7170a890f798fd636bdc42 | {
"blob_id": "33dab4d033c60b4dbf7170a890f798fd636bdc42",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-19T01:53:12",
"content_id": "b917dd5532a700e8fe55f75619e15945919bd4c2",
"detected_licenses": [
"MIT"
],
"directory_id": "1353e9c9c8baa4bd323784e3645457033d7bec2c",
"extension": "c"... | stackv2 | #include "fuzz.h"
#include "private.h"
#include "tracer_dynamic.h"
static bool fuzz_loop = false;
static bool get_input(void) {
if (!input_limit)
return false;
if (debug)
printf("Get %lu bytes of input from %s\n", input_limit, input_path);
input_file = fopen(input_path, "r");
if (!in... | 2.390625 | 2 |
2024-11-18T23:30:45.488626+00:00 | 2023-08-27T19:14:02 | 4fb6655b4001a71ba8d7def77bdb770a2315e9fa | {
"blob_id": "4fb6655b4001a71ba8d7def77bdb770a2315e9fa",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-27T19:14:02",
"content_id": "c68a43329b0633a6af04effe4e397d5bb4b86fd1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7c857119fe1505b1d80d6e62969661c06dc1a2f4",
"extens... | stackv2 | /** @file
I/O and MMIO Library Services that do I/O and also enable the I/O operatation
to be replayed during an S3 resume.
Copyright (c) 2006 -2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/S3IoLib.h>
#include <Library... | 2.53125 | 3 |
2024-11-18T23:30:46.140861+00:00 | 2009-05-16T17:06:03 | 5db16bf9f296baaffffbfaf1f9e28e83b762d04a | {
"blob_id": "5db16bf9f296baaffffbfaf1f9e28e83b762d04a",
"branch_name": "refs/heads/master",
"committer_date": "2009-05-16T17:06:03",
"content_id": "99c61a0ab09c1eb73037c7cb2a4c2679abdd7a91",
"detected_licenses": [
"MIT"
],
"directory_id": "d6a6ddf25dcbe0051f26ce39075144acfdcef61e",
"extension": "c"... | stackv2 | #include "ruby_land_proxy.h"
#include "conversions.h"
DECLARE_RUBY_WRAPPER(rb_call_super, int argc; const VALUE* argv)
DEFINE_RUBY_WRAPPER(rb_call_super, rb_call_super, ARGLIST2(argc, argv))
DECLARE_RUBY_WRAPPER(rb_yield, VALUE v)
DEFINE_RUBY_WRAPPER(rb_yield, rb_yield, ARGLIST1(v))
static VALUE proxy_class = Qnil;
... | 2.21875 | 2 |
2024-11-18T23:30:46.305177+00:00 | 2015-07-25T11:30:04 | e8e55ab386153d41dae4baab6d6e1817d0df9006 | {
"blob_id": "e8e55ab386153d41dae4baab6d6e1817d0df9006",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-25T11:30:04",
"content_id": "c74d50f1c184615e942356dfe32c09377ada77ce",
"detected_licenses": [
"MIT"
],
"directory_id": "c8529195c67b55eed4c3850afc9adf10725fee9a",
"extension": "c"... | stackv2 | #include "vector3.h"
#include "util.h"
#include <math.h> /* sqrt */
void vector3_blend(vector3* target, const vector3* vector, const vector3* other, const float amount)
{
const float one_minus_amount = 1.0f - amount;
target->tuples[0] = vector->tuples[0] * amount + other->tuples[0] * one_minus_amount;
target->... | 2.90625 | 3 |
2024-11-18T23:30:46.706054+00:00 | 2021-07-19T20:54:28 | 30fa2b5499080f0a53bc0bd5ca97d01373e2ddf5 | {
"blob_id": "30fa2b5499080f0a53bc0bd5ca97d01373e2ddf5",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-19T20:54:28",
"content_id": "3b12343d9e4065bfefa1229725bb50366e333585",
"detected_licenses": [
"MIT"
],
"directory_id": "08075daabcb56244684fb84c3bd044f487556a18",
"extension": "c",
... | stackv2 | #include <stdio.h>
void manipula_array(int *ptr, int dim);
int main()
{
int i;
int dim=10;
int array[]={1,2,3,4,5,6,7,8,9,10};
printf("Array original: ");
for(i=0;i<9;i++){
printf("%d -> ",array[i]);
}
printf("%d \n",array[9]);
manipula_array(array,dim);
printf("Array manipulado e invertido: ");
fo... | 3.390625 | 3 |
2024-11-18T23:30:46.838460+00:00 | 2020-01-10T20:34:46 | 4030051dad30354601836744850efca1ce76cbec | {
"blob_id": "4030051dad30354601836744850efca1ce76cbec",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-10T20:34:46",
"content_id": "8b0dbf47608477a2245d86907c8911947286482b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7713283995c186a31e0ec99583ab02ba07d034e6",
"extens... | stackv2 | #ifndef TASK_SENSOR_H
#define TASK_SENSOR_H
/**
* @defgroup sensor_tasks Sensor tasks
*/
/*@{*/
/**
* @file task_sensor.h
* @author Otso Jousimaa <otso@ojousima.net>
* @date 2019-12-25
* @copyright Ruuvi Innovations Ltd, license BSD-3-Clause.
*
* Helper functions common to all sensors
*
*/
#include "ruuvi_dri... | 2.09375 | 2 |
2024-11-18T23:30:46.940997+00:00 | 2021-04-26T15:52:21 | 3953b6c2385a1e60756698abb67003e9ffd31054 | {
"blob_id": "3953b6c2385a1e60756698abb67003e9ffd31054",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-26T15:52:21",
"content_id": "087af317649d2b708958c9c8a09de14c3e3f6cd2",
"detected_licenses": [
"MIT"
],
"directory_id": "f86983f3ccacfe33c2a1b45a5fc26d38a11f174f",
"extension": "c"... | stackv2 | #include "queue.h"
#include <stdio.h>
#include <stdlib.h>
void queue_create(Queue *q) {
q->front = 0;
q->position = MAX_SIZE - 1;
q->size = 0;
}
int queue_push(Queue *q, int val) {
if (queue_full(q))
return QUEUE_IS_FULL;
q->position = (q->position + 1) % MAX_SIZE;
q->data[q->position... | 3.171875 | 3 |
2024-11-18T23:30:47.128580+00:00 | 2021-09-07T02:21:21 | a507fcb399a57289decb03ab3abc55abd1c9e5a0 | {
"blob_id": "a507fcb399a57289decb03ab3abc55abd1c9e5a0",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-07T02:21:21",
"content_id": "8412a6410279918dc95f924d96de977e55292e62",
"detected_licenses": [
"MIT"
],
"directory_id": "ae84a3c284d9977294052e033d6077202cf47ed3",
"extension": "c",
... | stackv2 | #include "cli.h"
#include <string.h>
/**
* get_commands - array of commands
* Return: pointer to the first element in the array
*/
command_t *get_commands(void)
{
static command_t commands[] = {
{wallet_load, "wallet_load"},
{wallet_save, "wallet_save"},
{send_cmd, "send"},
{mine_cmd, "mine"},
{info_cmd,... | 2.703125 | 3 |
2024-11-18T23:30:47.951327+00:00 | 2023-08-24T20:51:08 | 3c9a18187b255a8d71085d079bd93c23ade89bd1 | {
"blob_id": "3c9a18187b255a8d71085d079bd93c23ade89bd1",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-24T20:51:08",
"content_id": "225caa73f3ed746ccc7159f66b97930b916cca3f",
"detected_licenses": [
"MIT"
],
"directory_id": "54f59bfc9d657e35f52762fd7ac5a5034c301dfb",
"extension": "h"... | stackv2 | #ifndef SECP256K1_ECDSA_ADAPTOR_H
#define SECP256K1_ECDSA_ADAPTOR_H
#ifdef __cplusplus
extern "C" {
#endif
#include "secp256k1.h"
/** This module implements single signer ECDSA adaptor signatures following
* "One-Time Verifiably Encrypted Signatures A.K.A. Adaptor Signatures" by
* Lloyd Fournier
* (https://lis... | 2 | 2 |
2024-11-18T23:30:48.024374+00:00 | 2022-09-26T22:56:20 | 111f562203f1b5af2fbea3e05aff630aeba9604c | {
"blob_id": "111f562203f1b5af2fbea3e05aff630aeba9604c",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-26T22:56:20",
"content_id": "000cef34456c013b08e0b7265f9d5e06350cc47d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "73ea5311653dc8796d2a5fd493a64c8b0ed01966",
"extensio... | stackv2 | #include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include "string.h"
#define MAXSTRINGLEN 32
// ugly
bool string_putint(struct string* s, int i)
{
char buf[MAXSTRINGLEN];
int len;
len = snprintf(buf, MAXSTRINGLEN, "%d", i);
if (len >= (MAXSTRINGLEN - 1)) {
(vo... | 2.4375 | 2 |
2024-11-18T23:30:48.385615+00:00 | 2020-02-13T17:18:57 | 68f94b04dc50bbdd48f417a20cdc5790e362fceb | {
"blob_id": "68f94b04dc50bbdd48f417a20cdc5790e362fceb",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-13T17:18:57",
"content_id": "501cb31462f76f9ed4686c0b9cba5d17eb31007d",
"detected_licenses": [
"MIT"
],
"directory_id": "012437b14b5d9987508c2f04276ef58d3719b1b4",
"extension": "h"... | stackv2 |
/*
This config file aimed to centralize some configurations, macros, structs
*/
#ifndef CONFIG_H
#define CONFIG_H
#include <stdio.h>
#include "log.h"
// CONSOLE
#define CONSOLE_PROMPT ">>> "
#define CONSOLE_LINE_SIZE 256
#define CONSOLE_QUIT_WORD "q"
#define CONSOLE_INTRO_MSG "\nHi!\nJust type '"CONSOLE_QUIT_WOR... | 2.4375 | 2 |
2024-11-18T23:30:48.445595+00:00 | 2013-08-06T15:12:48 | d346cac7d061c2aadc513b48b74e8db663b01959 | {
"blob_id": "d346cac7d061c2aadc513b48b74e8db663b01959",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-06T15:12:48",
"content_id": "8747e601254b0422d0115161ec4c49f61f0bd2af",
"detected_licenses": [
"MIT"
],
"directory_id": "9ae81e217487388897309b2404e2cf0d143cf1ac",
"extension": "c"... | stackv2 | #include "engine.h"
#include "utils/log.h"
#include "utils/config.h"
#include "audio/stream.h"
#include "audio/audio.h"
#include "audio/music.h"
#include "audio/soundloader.h"
#include "video/texture.h"
#include "video/texturelist.h"
#include "video/video.h"
#include "game/text/languages.h"
#include "game/scene.h"
#inc... | 2.140625 | 2 |
2024-11-18T23:30:48.687172+00:00 | 2017-01-08T03:04:22 | 12525363ee6b797f3cac21ba75b5e7dae7a661bc | {
"blob_id": "12525363ee6b797f3cac21ba75b5e7dae7a661bc",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-08T03:07:44",
"content_id": "797860dce47a8a31a1e59b56cb6d25c4f34ee7db",
"detected_licenses": [
"MIT"
],
"directory_id": "c4f04f52e822f3b789cf971d0efbe1cb25918e31",
"extension": "c"... | stackv2 | // This code is for the computer to play itself,
// though it could be easily changed to involve
// human vs. computer play
//
// TODO: Improve the AI
#include <ctype.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
// ChessPiece Class
enum SideTypes {BLACK = -1, NONE, WHITE};
enum ... | 2.828125 | 3 |
2024-11-18T23:30:49.123770+00:00 | 2016-08-22T09:56:13 | 96a242af0bb061032df1ec9852502a45e2d60667 | {
"blob_id": "96a242af0bb061032df1ec9852502a45e2d60667",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-22T09:56:13",
"content_id": "1f96befdcddeb42f580a7a4ada0f911c72266849",
"detected_licenses": [
"MIT"
],
"directory_id": "94a99e0154a77a46a2f44e9ad2f8951aa4bc0a2b",
"extension": "c"... | stackv2 | /*Q2 - Program to use a function to find the average of 3 numbers and return the value*/
#include <stdio.h>
/*Declare function prototypes*/
int average (int, int, int);
main()
{
int a,b,c;
int result;
printf("Input number a:\n");
scanf("%d",&a);
printf("Input number b:\n");
scanf("%d",&b);
... | 4.03125 | 4 |
2024-11-18T23:30:49.207772+00:00 | 2021-06-08T18:54:25 | 782d305db118e34f85777f03f6aec2e0665b192d | {
"blob_id": "782d305db118e34f85777f03f6aec2e0665b192d",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-08T18:54:25",
"content_id": "581447c54d484f9f58f1852fad2f0d27c793ddd8",
"detected_licenses": [],
"directory_id": "129b4d8339296450fc4377e8800556b92fd3c537",
"extension": "h",
"filename... | stackv2 | #ifndef BSON_ARRAY_H
#define BSON_ARRAY_H
#include "bson_object.h"
typedef struct BsonElement BsonElement;
typedef struct BsonObject BsonObject;
typedef enum bson_boolean bson_boolean;
typedef enum element_type element_type;
//Object representing a BSON array
struct BsonArray {
//Array of BSON elements
BsonElem... | 2.671875 | 3 |
2024-11-18T23:30:49.413816+00:00 | 2021-07-19T11:46:18 | de9e67efc0ba30ce3a574592482236ce41be414c | {
"blob_id": "de9e67efc0ba30ce3a574592482236ce41be414c",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-19T11:46:18",
"content_id": "fe247a47c847a0d9295e3551a54fee4834f3798d",
"detected_licenses": [
"MIT"
],
"directory_id": "9723a95c812ef64a6256e716519bdf2eb6f1f219",
"extension": "h"... | stackv2 | #ifndef MUD_ECS_ENTITY_H
#define MUD_ECS_ENTITY_H
#include <stdlib.h>
#include "mud/ecs/entity_id.h"
/**
* Typedefs
**/
typedef struct game game_t; /* game.h */
typedef struct entity_dbo entity_dbo_t; /* entity_dbo.h */
/**
* Structs
**/
typedef struct entity {
entity_id_t id;
char* name;
char* description;... | 2.015625 | 2 |
2024-11-19T00:09:25.369314+00:00 | 2018-10-02T15:01:41 | a7e52611ee25753f0c216479a0752f216e1be69b | {
"blob_id": "a7e52611ee25753f0c216479a0752f216e1be69b",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-02T15:01:41",
"content_id": "362bf4b29d8fb83019f362a63266f0bb83b026ea",
"detected_licenses": [
"CC0-1.0",
"Apache-2.0"
],
"directory_id": "a1fd0718ca0ed88948d812d1bc8ae4c14b2c23b... | stackv2 | /*
* $ Copyright Broadcom Corporation $
*/
/*****************************************************************************
*
* Name: mbt.c
*
* Description: The manufacturing Bluetooth test tool (MBT) is used to test and verify the RF
* performance of the Cypress family of SoC Blueto... | 2.328125 | 2 |
2024-11-19T00:09:25.514128+00:00 | 2019-11-21T11:05:41 | 14a625f8896e72c6106abe1c9890667e0ef03174 | {
"blob_id": "14a625f8896e72c6106abe1c9890667e0ef03174",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-21T11:05:41",
"content_id": "94d931b84d06c1c984136b4f8c296c1b2cb553d8",
"detected_licenses": [
"MIT"
],
"directory_id": "ee48363130e997077aaa5208b13c37c70d4f08f5",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ast.h"
extern int lineno;
//
/*
struct _ast{
char *nodeType;
int line;
int value;
char *str;
past l;
past r;
past next;
};
*/
//left 和 right 分别指向运算分量的两个结点
past newAstNode()
{
past p = (past)malloc(sizeof(ast));
i... | 2.8125 | 3 |
2024-11-19T00:09:25.886831+00:00 | 2020-05-02T10:23:43 | f548443207cb88980e7d5679853c77180ae33d13 | {
"blob_id": "f548443207cb88980e7d5679853c77180ae33d13",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-02T10:23:43",
"content_id": "a418fc143d9da863719bf1ca98564f477142946f",
"detected_licenses": [
"MIT"
],
"directory_id": "3561e7c15ebb17b895ca3da86a8f17fdf935fca0",
"extension": "c"... | stackv2 | #include <linux/cdev.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kdev_t.h>
#include <linux/kernel.h>
#include <linux/kobject.h>
#include <linux/ktime.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/sysfs.h>
#include <linux/uaccess.h>
#include "fibdrv... | 2.296875 | 2 |
2024-11-19T00:09:27.797243+00:00 | 2022-11-07T11:35:30 | 29c72e2a92430a5d2ea0f731df237bf68b84ffa0 | {
"blob_id": "29c72e2a92430a5d2ea0f731df237bf68b84ffa0",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-07T11:35:30",
"content_id": "0d5bd5029a8057080066d6fd8f6cb4999c086221",
"detected_licenses": [
"MIT"
],
"directory_id": "872e0935544caaf5319677e8b4b29172e97b3a04",
"extension": "h"... | stackv2 | typedef int DIR;
struct dirent {
char d_name[50];
};
typedef struct dirent dirent;
DIR mock_state = -1;
dirent cur_ent;
DIR* opendir(const char* path) {
if (strcmp(path, "illegal") == 0) {
return NULL;
}
if (strcmp(path, "cant/close") == 0) {
/* Iteration will work but close will fail. */
mock_s... | 2.484375 | 2 |
2024-11-19T00:09:27.990354+00:00 | 2018-07-16T11:10:55 | 4f25231dd62d5ea11360cb28296e2687de1bb43d | {
"blob_id": "4f25231dd62d5ea11360cb28296e2687de1bb43d",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-16T11:10:55",
"content_id": "7d61157543c3f133232e844b7aca181e1d93f653",
"detected_licenses": [
"ISC"
],
"directory_id": "2ed3252d875c234d061e678c2a395a4eec0640f0",
"extension": "h"... | stackv2 | /* gpiotools.h
*
* Copyright (C) 2018 Jeff Spaulding <sarnet@gmail.com>
*
* This is the ISC License.
*
* 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 copi... | 2.171875 | 2 |
2024-11-19T00:09:28.109917+00:00 | 2023-08-10T13:42:17 | e92472ce31c4e2b53212dc85628ff3eb9a79feb9 | {
"blob_id": "e92472ce31c4e2b53212dc85628ff3eb9a79feb9",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-10T13:42:17",
"content_id": "c96f3b39f25f7d132d425ba47ba841952a6489e9",
"detected_licenses": [
"MIT"
],
"directory_id": "6ff85b80c6fe1b3ad5416a304b93551a5e80de10",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <locale.h>
#include <string.h>
int main(void) {
setlocale(LC_ALL, "Portuguese");
int escolha;
char sexo[11];
printf("Escolha uma das opções abaixo: ");
printf("\n1- Sou mulher ");
printf("\n2- Sou homem ");
scanf("%d", &escolha);
if (escolha == 1) strcpy(sexo, "Feminino");
else str... | 3.1875 | 3 |
2024-11-19T00:09:28.390808+00:00 | 2022-06-20T21:07:42 | 4e98e31da443662d799ad021d7119cb184d6d75d | {
"blob_id": "4e98e31da443662d799ad021d7119cb184d6d75d",
"branch_name": "refs/heads/main",
"committer_date": "2022-06-20T21:07:42",
"content_id": "93286124429a5f70e5f8183b58d299dfc06f6f3c",
"detected_licenses": [
"MIT"
],
"directory_id": "e65812fad72580e1205495a08b997276ac0b85da",
"extension": "c",
... | stackv2 | #include "env.h"
#include "gc.h"
#include "log.h"
#include "value.h"
Environment *env_new(Environment *parent)
{
Environment *env = gc_malloc(&gc, sizeof(Environment));
env->parent = parent;
env->map = map_new(32);
return env;
}
void env_set(Environment *env, char *symbol, const Value *value)
{
ma... | 2.8125 | 3 |
2024-11-19T00:09:28.460351+00:00 | 2018-10-02T13:49:26 | 2d7459a3c08edbdd10b2c694be7d4dba969252bf | {
"blob_id": "2d7459a3c08edbdd10b2c694be7d4dba969252bf",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-02T13:49:26",
"content_id": "8932521471a0de945eee8d1636400e1480e7e8be",
"detected_licenses": [
"MIT"
],
"directory_id": "930a252f2606507676ae1455db7bd82018191c9d",
"extension": "c"... | stackv2 | /*
** EPITECH PROJECT, 2018
** myftp
** File description:
** myftp
*/
#include "../../include/ftp.h"
#include "../../include/passive.h"
bool cmd_pasv(sess_t *sess, char *line, net_t *client)
{
(void)line;
start_passive_mode(sess);
dprintf(client->fd, "227 Entering Passive Mode (%d,%d,%d,%d,%d,%d).\n",
127, 0, 0,... | 2.171875 | 2 |
2024-11-19T00:09:28.688405+00:00 | 2020-12-02T15:08:32 | 043de2ae311f6e016ec6d5cd514b00c52653fd41 | {
"blob_id": "043de2ae311f6e016ec6d5cd514b00c52653fd41",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-02T15:08:32",
"content_id": "50702b4d57e884551bbfb7e3b551152c36524a31",
"detected_licenses": [
"MIT"
],
"directory_id": "d3e4681aa1a6f0f97a260466c454174447dcaa0d",
"extension": "c"... | stackv2 | #include "ucmdtests.h"
uc_TEST(ucOpt_get_name_returns_name)
ucOpt o;
o.name = "name 1";
uc_TRUE(ucOpt_get_name(&o));
o.name = "two NAME";
uc_TRUE(ucOpt_get_name(&o));
uc_PASS
uc_TEST(ucOpt_get_desc_returns_description)
ucOpt o;
o.desc = "description one";
uc_TRUE(ucOpt_get_desc(&o))... | 2.21875 | 2 |
2024-11-19T00:09:33.489904+00:00 | 2023-08-13T07:00:15 | f36bc851027dd6644cdc828c526514fcd2aa12df | {
"blob_id": "f36bc851027dd6644cdc828c526514fcd2aa12df",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T07:00:15",
"content_id": "51d7772af05972c6f67310b3196791b1da979016",
"detected_licenses": [
"MIT"
],
"directory_id": "2266eb133fc3121daf0aa7f4560626b46b94afe0",
"extension": "c"... | stackv2 | // Room: chaopath2.c 朝阳峰小路
//Date: Oct. 2 1997 by Venus
inherit ROOM;
void create()
{
set("short","朝阳峰小路");
set("long",@LONG
这里是朝阳峰小路,山势陡峭,两边下临深谷,一不小心都会掉
了下去。西面有一条小路,长草没径。
LONG);
set("outdoors", "huashan");
set("exits",([ /* sizeof() == 1 */
"southwest": __DIR__"chaopath1",
... | 2.09375 | 2 |
2024-11-19T00:09:33.808848+00:00 | 2020-02-01T06:01:12 | 7f4f50d50067d9b2d51ec01d2587ff0e0d9d3f96 | {
"blob_id": "7f4f50d50067d9b2d51ec01d2587ff0e0d9d3f96",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-01T06:01:12",
"content_id": "e54c19cb739a981dd2780c2fe9aa0b6f30e65fd7",
"detected_licenses": [
"MIT"
],
"directory_id": "d3eda419f7aac910aeb11de4909815f31cfe304b",
"extension": "c"... | stackv2 | // Hofstadter Q-sequence: a(1) = a(2) = 1; a(n) = a(n-a(n-1)) + a(n-a(n-2)) for n > 2.
// https://oeis.org/A005185
# include <stdio.h>
# include <string.h>
# include <stdlib.h>
// Recursive generation of Hofstadter Q-sequence:
int hof_q_recursive(int n)
{
if (n <= 2)
{
return 1;
}
else
{
re... | 3.8125 | 4 |
2024-11-19T00:09:33.895965+00:00 | 2020-11-18T13:51:22 | fe43c782c93bc427059910ba3bbb39ced72a8a8a | {
"blob_id": "fe43c782c93bc427059910ba3bbb39ced72a8a8a",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-18T13:51:22",
"content_id": "10c077cc7e3604aee908cd3c2f57140919eed8b0",
"detected_licenses": [
"MIT"
],
"directory_id": "67101b683d6732532bf87c7d1b310c5001885eed",
"extension": "c"... | stackv2 | /* Copyright (c) 2012-2018 Chris Swinchatt.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, ... | 2.109375 | 2 |
2024-11-19T00:09:34.194019+00:00 | 2020-01-20T11:14:30 | 9e7bb1404ce37164511cf772e68151d34e2c72fd | {
"blob_id": "9e7bb1404ce37164511cf772e68151d34e2c72fd",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-20T11:14:30",
"content_id": "2d187ba4523bf683b3f8639fd251c2d85171055a",
"detected_licenses": [],
"directory_id": "a03e2ad742f8a424bc66745a2a17e7e1e0fd917b",
"extension": "h",
"filename... | stackv2 | #ifndef _SYS_PCI_H_
#define _SYS_PCI_H_
#include <sys/cdefs.h>
#include <sys/queue.h>
#include <sys/device.h>
#include <sys/bus.h>
#include <sys/rman.h>
typedef struct {
uint16_t id;
const char *name;
} pci_device_id;
typedef struct {
uint16_t id;
const char *name;
const pci_device_id *devices;
} pci_vendo... | 2.21875 | 2 |
2024-11-19T00:09:34.245168+00:00 | 2013-07-03T11:34:48 | 50f2b7c098f2c1eb1d2acf5aa96d70b0a08bbf1d | {
"blob_id": "50f2b7c098f2c1eb1d2acf5aa96d70b0a08bbf1d",
"branch_name": "refs/heads/master",
"committer_date": "2013-07-03T11:34:48",
"content_id": "f8781a4927b8ff1055bf9f4a5c944b048f72ab65",
"detected_licenses": [
"Zlib"
],
"directory_id": "5fc1edf1cd349e28732deef2fdbb9c256bf44f50",
"extension": "c... | stackv2 | /*
*/
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <disktool_common.h>
// === CODE ===
void PrintUsage(void)
{
fprintf(stderr,
"Usage:\n"
" disktool <commands...>\n"
"\n"
"Commands:\n"
" lvm <image> <ident>\n"
" - Register an image with... | 2.5 | 2 |
2024-11-19T00:23:39.905748+00:00 | 2021-06-07T21:01:20 | 325500a531cf591b0d4c9232ebfcae0ee18c852b | {
"blob_id": "325500a531cf591b0d4c9232ebfcae0ee18c852b",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-07T21:01:20",
"content_id": "70d253ebcbcb2600bd07e2b63d807de6c69e3d5b",
"detected_licenses": [
"MIT"
],
"directory_id": "30e146aad3c8ff1464b579aa24c4341ba37ec7c7",
"extension": "c"... | stackv2 | #include "timer.h"
#include <stdio.h>
#include "cartridge/cart.h"
#include "debug.h"
#include "interrupt.h"
#define TIMER_ENABLE (1 << 2)
/* TIMA states. */
typedef enum {
TIMA_STATE_COUNTING = 0, /* Normal operation */
TIMA_STATE_OVERFLOW, /* Overflow happened. */
TIMA_STATE_RELOADING, /* TIMA i... | 2.78125 | 3 |
2024-11-19T00:23:39.994270+00:00 | 2019-08-30T12:48:21 | 235d30d466bb04eac4b21a7f1cd187e48bfea445 | {
"blob_id": "235d30d466bb04eac4b21a7f1cd187e48bfea445",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-30T12:48:21",
"content_id": "4ae45e56329f7cba5e25cf818d7e43781caf6513",
"detected_licenses": [],
"directory_id": "c9e63bd57f48b01f06e048ac7c147b67bf8de7f9",
"extension": "c",
"filename... | stackv2 | #include <linux/hrtimer.h>
#include <linux/ktime.h>
#include <linux/slab.h>
#include <linux/math64.h>
#include "sync_ctrl.h"
#include "pru_comm.h"
static int64_t ns_sys_to_wrap;
static uint64_t next_timestamp_ns;
static int64_t err_sum;
static enum hrtimer_restart timer_callback(struct hrtimer *timer_for_restart);
... | 2.40625 | 2 |
2024-11-19T00:23:40.277532+00:00 | 2020-01-08T14:42:38 | 2b2067c42b404d7cacbaf801028df7d88229d4b9 | {
"blob_id": "2b2067c42b404d7cacbaf801028df7d88229d4b9",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-08T14:42:38",
"content_id": "a10d9e54333021815a5cb5cc871065b8c14caea6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5789c083655c8e68fb9e2bcc371c6f54ae83b307",
"extensio... | stackv2 | /*
Copyright (C) 2019 hidenorly
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 2.234375 | 2 |
2024-11-19T00:23:40.371382+00:00 | 2023-08-31T11:39:28 | bfae6c8824e665eeb2549297ffc04c9962fc4cc1 | {
"blob_id": "bfae6c8824e665eeb2549297ffc04c9962fc4cc1",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-01T12:39:29",
"content_id": "ab5303bb0d9a9412bdad072a9a93f116ded2805a",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "cff4428975e403e4ef02d75498b78cd1a610a01a",
"extens... | stackv2 | #pragma once
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright 2010-2022, Tarantool AUTHORS, please see AUTHORS file.
*/
#include <stdbool.h>
#include <stddef.h>
#include <sys/types.h>
#include "small/ibuf.h"
/** Data entry of prbuf. */
struct prbuf_entry {
/** Size of the data pointed by ptr field. */
s... | 2.640625 | 3 |
2024-11-19T00:23:40.434670+00:00 | 2023-07-02T16:49:46 | bd65e3140fda15aed461b6cb2e08382040cb6ec9 | {
"blob_id": "bd65e3140fda15aed461b6cb2e08382040cb6ec9",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-02T17:53:27",
"content_id": "74936ba2acd9a6de624ad26fedf48d3ef31c6e79",
"detected_licenses": [
"MIT"
],
"directory_id": "604a90ec076332873b51719ab490bfa73aaf653b",
"extension": "c"... | stackv2 | /*
* scan - progressively reconstruct images using various frequency space scans.
* Copyright 2018 0x09.net.
*/
#include "scan_precomputed.h"
#include "scan_methods.h"
#include "scan.h"
#include <libavutil/eval.h>
#include <string.h>
#include <math.h>
#include <time.h>
struct scan_precomputed* scan_precompute(st... | 2.53125 | 3 |
2024-11-19T00:23:40.774604+00:00 | 2020-12-10T06:43:23 | 0ff233102887c47de1e077b6b0ce97738f08b03e | {
"blob_id": "0ff233102887c47de1e077b6b0ce97738f08b03e",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-10T06:43:23",
"content_id": "70a31a6090c967bbdb93d9b70fc5f2f3c13b2794",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b7c423c12fd7ab29b7ac999c33d735969d88f54f",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include "MemoryMapped.h"
FileMapping *createFileMaping(char *nameOfFile)
{
HANDLE hFile = CreateFileA(nameOfFile, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
if (hFile == INVALID_HANDLE_VALUE)
{
return NULL;
}
DWORD temp;
DWORD ... | 2.515625 | 3 |
2024-11-19T00:23:40.838024+00:00 | 2020-10-01T20:27:52 | 9bf94b9f669a4f25390c7c8dd29101d8bd221444 | {
"blob_id": "9bf94b9f669a4f25390c7c8dd29101d8bd221444",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-01T20:27:52",
"content_id": "0ee062d0f16f896d3b5751617f9460fcae129775",
"detected_licenses": [
"MIT"
],
"directory_id": "f4752ed453ae2b0758a4b3dd32bde1f149790c72",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int main (){
float c,k;
printf("Digite a temperatura em Celsius: ");
scanf("%f",&c);
k = c+273.15;
printf("a temperatura em Kelvin e %.2f",k);
return 0;
}
| 2.890625 | 3 |
2024-11-19T00:23:41.091925+00:00 | 2020-03-24T20:36:00 | e974e7fc8a296d2c02a01aeaf1dc1c8891f474e4 | {
"blob_id": "e974e7fc8a296d2c02a01aeaf1dc1c8891f474e4",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-24T20:36:00",
"content_id": "ed922f1b543f1aaacc4b7d6ec0970d57bcee28d7",
"detected_licenses": [
"MIT"
],
"directory_id": "edd4e044201fb8f47d7e19d3ff56bf176a504832",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
struct Array{
int A[10];
int size;
int length;
};
void Display(struct Array arr){
printf("\nElements are:\n");
for (int i = 0; i < arr.length; ++i) {
printf("%d ",arr.A[i]);
}
}
void Swap(int* x, int* y){
int temp=*x;
... | 3.578125 | 4 |
2024-11-19T00:23:41.255936+00:00 | 2023-03-21T10:24:13 | 020fc71a7ff5ea2ae3f19951a57ee1902b265c97 | {
"blob_id": "020fc71a7ff5ea2ae3f19951a57ee1902b265c97",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-21T10:24:13",
"content_id": "a9ffed3f42c676e075c0f252771c3218e065d303",
"detected_licenses": [
"MIT"
],
"directory_id": "57d291312405dd9093fbca45743984ab56c549d0",
"extension": "h"... | stackv2 | /*
* user.h - Contains functions for a SiriDB database user.
*/
#ifndef SIRIDB_USER_H_
#define SIRIDB_USER_H_
typedef struct siridb_user_s siridb_user_t;
#include <qpack/qpack.h>
#include <inttypes.h>
#include <siri/db/db.h>
#include <siri/db/access.h>
#include <cexpr/cexpr.h>
siridb_user_t * siridb_user_new(void)... | 2.203125 | 2 |
2024-11-19T00:23:41.547103+00:00 | 2021-07-09T12:55:00 | 33292e7b8dd9192b148276e5754f7bd46ebfd98b | {
"blob_id": "33292e7b8dd9192b148276e5754f7bd46ebfd98b",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-09T12:55:00",
"content_id": "a8cf3cacb3f09c64bb051f812f21e14fb4c48720",
"detected_licenses": [
"MIT"
],
"directory_id": "3e61de17b81b3011f13219a120554b9bac0532b9",
"extension": "c",
... | stackv2 | #include "ft.h"
/// --------------------- 32 ---------------------
inline uint32_t left_rotate_32(uint32_t a, uint32_t b) {
return (a << b) | (a >> (32 - b));
}
inline uint32_t right_rotate_32(uint32_t a, uint32_t b) {
return (a >> b) | (a << (32 - b));
}
inline uint32_t swap_endian_32(uint32_t number)
{
retu... | 2.890625 | 3 |
2024-11-19T00:23:41.850688+00:00 | 2021-01-31T23:58:03 | 3f1cc321fe2632d71ac9b7075da5cd753762ab33 | {
"blob_id": "3f1cc321fe2632d71ac9b7075da5cd753762ab33",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-31T23:58:03",
"content_id": "f076c2c6397050e78eaa980660560e9ef5ccf29a",
"detected_licenses": [
"MIT"
],
"directory_id": "b31c74c348c8890f8b17eb8f0f10651d3816a911",
"extension": "h"... | stackv2 | /**
******************************************************************************
* @file : rtos_mutex_base.h
* @brief :
* ****************************************************************************
* @attention
* nxRTOS Kernel V0.0.1
* Copyright (C) 2019 or its affili... | 2.015625 | 2 |
2024-11-19T00:23:41.950151+00:00 | 2019-03-23T15:16:52 | 2612a5cc61b04a9de27456172d2bb2d88b68acd9 | {
"blob_id": "2612a5cc61b04a9de27456172d2bb2d88b68acd9",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-23T15:16:52",
"content_id": "8c8be85a4c0fbb690cf2d6ef88029fad6c876022",
"detected_licenses": [
"MIT"
],
"directory_id": "06b5ae74d9a3e9a0ecb3f3164a427f87129794a8",
"extension": "c"... | stackv2 | /*---------------------------------------------------------------------------
* Copyright 2013-2017 Inria
*
* 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... | 2.09375 | 2 |
2024-11-19T00:23:42.035420+00:00 | 2022-05-11T16:01:03 | d5ef1a3b002d5c570f8eb0d19bc57061acd43332 | {
"blob_id": "d5ef1a3b002d5c570f8eb0d19bc57061acd43332",
"branch_name": "refs/heads/develop",
"committer_date": "2022-05-11T16:01:03",
"content_id": "00fd70d978451b46bb41186538e5a6978a862bc5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "19a9f2c19bcb81c4a14ba17831d3098de7731fb5",
"extensi... | stackv2 | #include <stdio.h>
#include "wrapper.h"
extern void NGCALLF(wetbulbprofs,WETBULBPROFS)(int *, double *, double *, double *, double *,
double *, double *, double *, int *);
NhlErrorTypes wetbulb_W( void )
{
/*
* Input variables
*/
/*
* Argument # 0
*/
void *p;
d... | 2.265625 | 2 |
2024-11-19T00:23:42.180471+00:00 | 2021-03-24T10:52:19 | 9287102dd669807b8805a0a3f45509c802cf5434 | {
"blob_id": "9287102dd669807b8805a0a3f45509c802cf5434",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-24T10:52:19",
"content_id": "228a617d1e52bac74507f68dc96f7b7a82db76e8",
"detected_licenses": [
"MIT"
],
"directory_id": "a86071e9d92150f5a91d17dd4b65ece6d450825a",
"extension": "c",
... | stackv2 | #include "log.h"
bool x11_test_global_log_info = false;
bool x11_test_global_log_error = false;
bool x11_test_global_log_debug = false;
void x11_test_open_log(x11_test_log_type_t type)
{
switch (type)
{
case X11_TEST_LOG_TYPE_INFO:
x11_test_global_log_info = true;
break;
case X11_TEST... | 2.171875 | 2 |
2024-11-19T00:23:42.446971+00:00 | 2023-08-23T04:46:46 | 636d54b1d498933e22619919761f106dc30548a2 | {
"blob_id": "636d54b1d498933e22619919761f106dc30548a2",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-23T04:46:46",
"content_id": "8710fa6266a4a104218c62a438cba2b293b68a6f",
"detected_licenses": [
"MIT"
],
"directory_id": "2c73a693c2b3c162eae2ab94f649d8c4494878ba",
"extension": "c"... | stackv2 |
#include "luat_base.h"
#include "luat_spi.h"
#include "luat_gpio.h"
#include "luat_sfd.h"
#define LUAT_LOG_TAG "sfd"
#include "luat_log.h"
//--------------------------------------------------------------------
// SFD at memory , for test
#include "luat_zbuff.h"
static int sfd_mem_init (void* userdata);
static int... | 2.09375 | 2 |
2024-11-19T00:23:42.791484+00:00 | 2016-05-11T14:15:02 | f1f822685d9576287aa38cdcfeadc82a751ebbf4 | {
"blob_id": "f1f822685d9576287aa38cdcfeadc82a751ebbf4",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-11T14:15:02",
"content_id": "1747e5caccc95b92161fe6a203d34a1ef1bf494c",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "9f1ad6b8525afb596461100328783ae96536f6cd",
"extension":... | stackv2 | /*
* pedro.leite.001@acad.pucrs.br
*/
#include <stdio.h>
double fatorial(double);
double fatorial(double n) {
double r = 1L;
double f;
for (f = 1; f <= n; f = f + 1L)
r = r * f;
return r;
}
int main() {
double n;
scanf("%lf", &n);
double f = fatorial(n);
printf("N=%f\nF=%f\n", n, f);
return 0;
}
| 3.15625 | 3 |
2024-11-19T00:23:43.138531+00:00 | 2018-02-10T09:19:10 | 9b3f1ffc3e3c287ac556d8c4818204a2e4a34eba | {
"blob_id": "9b3f1ffc3e3c287ac556d8c4818204a2e4a34eba",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-10T09:19:10",
"content_id": "2a96f8faec817bcb0e456bf04123f0ab48c92202",
"detected_licenses": [
"MIT"
],
"directory_id": "0f24deddffff3726f55411d1e77ad4dc0a4982ea",
"extension": "c"... | stackv2 | #include "includes.h"
IMAGE *MokhtarPics[MokhtarImageCount];
float xM,yM;
float wM,hM;
int directionM;
int PlayerM=0;
EtatPlayer etatM;
int IndexM;
void LoadMokhtar(int player)
{
int i;
char path[255];
for (i=0; i<MokhtarImageCount; i++)
{
sprintf(path,"Resources/Images/Mokhtar/Gamplay/%d.... | 2.171875 | 2 |
2024-11-19T00:23:43.287089+00:00 | 2017-02-05T23:41:37 | 5ca26393ccfc7633e92b64f0e941eab78ebf6a94 | {
"blob_id": "5ca26393ccfc7633e92b64f0e941eab78ebf6a94",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-05T23:41:37",
"content_id": "13c8a72d5a97912b878ce6c53caa29a409d1b0db",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "cd68e6128a9a3ed8039b61b8c23f3e395d59c182",
"extens... | stackv2 | /*
* Copyright (C) 2012 Trevor Woerner
* (see LICENSE file included in this repository)
*/
/*
* Why does the call to chmod() in the following code fail?
*/
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
int
main (void)
{
int fd, ret;
ret = mkdir ("test... | 2.828125 | 3 |
2024-11-19T00:23:43.498159+00:00 | 2019-03-05T15:36:04 | d0b9a998e359daaa12919d3b6e6a55cdd3ac86cc | {
"blob_id": "d0b9a998e359daaa12919d3b6e6a55cdd3ac86cc",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-05T15:36:04",
"content_id": "6d8e25417c4b67e9edb70ae65aa5b3a1ef767429",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a55c5e52744a2ca3612245fd31081a168f5e4f74",
"extens... | stackv2 | /*
============================================================================
Name : mumps_solver.h
Author : Simplice Donfack
Version : 0.1
Description : Wrapper for mumps functions.
Date : July 8, 2017
============================================================================
*/
#ifndef MUMP... | 2.359375 | 2 |
2024-11-19T00:23:43.902983+00:00 | 2020-08-21T15:32:58 | 07b826a0ab8643345e02e81c284b707cf07be995 | {
"blob_id": "07b826a0ab8643345e02e81c284b707cf07be995",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-21T15:32:58",
"content_id": "a5d4adeb590027c60774ecf254700aeae6f5db18",
"detected_licenses": [
"MIT"
],
"directory_id": "6a4e5e158db8f242a0611bd23fef68611ff568f0",
"extension": "c"... | stackv2 | /*
* MIT License
*
*
* Copyright (c) 2020 Temirkhan Myrzamadi
*
* 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,... | 2.265625 | 2 |
2024-11-19T00:23:44.138442+00:00 | 2014-09-17T23:30:34 | 1c5a3b763fcfc2aaaa6a3ff8e1e858b69dd33a21 | {
"blob_id": "1c5a3b763fcfc2aaaa6a3ff8e1e858b69dd33a21",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-17T23:30:34",
"content_id": "3ee5230b1cbdf9253339ae76ee5e5989aa43beb8",
"detected_licenses": [
"MIT"
],
"directory_id": "647ef1667481ee757b328540495262f0fd837bae",
"extension": "c"... | stackv2 | #include <stdio.h>
// FILE *TLIstdin = stdin;
// FILE *TLIstdout = stdout;
// FILE *TLIstderr = stderr;
static int save_flags;
void
TLIsaveFlags( )
{
/*
save_flags = fcntl( 0, F_GETFL, 0 );
*/
}
void
TLIrestoreFlags( )
{
/*
(void) fcntl( 0, F_SETFL, save_flags );
*/
}
void
TLIenableSIGIO( )
{
/*
i... | 2.21875 | 2 |
2024-11-19T00:23:44.615671+00:00 | 2019-02-23T11:14:38 | 136b9fb97406480e6b2f35faa57c11d00935a5d1 | {
"blob_id": "136b9fb97406480e6b2f35faa57c11d00935a5d1",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-23T11:14:38",
"content_id": "71a52bfc5da44e3b99ad9e8b42297388e84229e3",
"detected_licenses": [
"MIT"
],
"directory_id": "60e1cd76871d782458e936e82887c6069bb15baf",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdlib.h>
struct Node
{
int data;
struct Node *next;
};
void push(struct Node **head_ref, int data)
{
struct Node *new_node = (struct Node*)malloc(sizeof(struct Node));
new_node->data = data;
new_node->next = *head_ref;
*head_ref = new_node;
}
void segregateEvenOdd(... | 3.765625 | 4 |
2024-11-19T00:23:44.685261+00:00 | 2016-11-28T15:38:40 | f08427c6167368893dac2188b5e6d2d1e32f42e6 | {
"blob_id": "f08427c6167368893dac2188b5e6d2d1e32f42e6",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-28T15:38:40",
"content_id": "d5a8ce5eca96d9b6a3278e0aa99930ba7ab7f008",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "eb1fa21273e35406f56791a93672ffa78bc19230",
"extensio... | stackv2 | /*
Copyright 2014 Akira Midorikawa
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | 2.5 | 2 |
2024-11-19T00:23:45.542143+00:00 | 2018-12-20T05:10:38 | 98acedc2fa0784b642677822a40c1b1d892af67a | {
"blob_id": "98acedc2fa0784b642677822a40c1b1d892af67a",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-20T05:10:38",
"content_id": "3b97a5b43595f5b90e9d7830ca10e6152a8d8ac8",
"detected_licenses": [
"MIT"
],
"directory_id": "fa24dcead4e5c3bacde49b1a3f052d10e60e194a",
"extension": "c"... | stackv2 | #include <u.h>
#include <libc.h>
/*
* floating-point mod function without infinity or NaN checking
*/
double
fmod (double x, double y)
{
int sign, yexp, rexp;
double r, yfr, rfr;
if (y == 0)
return x;
if (y < 0)
y = -y;
yfr = frexp(y, &yexp);
sign = 0;
if(x < 0) {
r = -x;
sign++;
} else
r = x;
wh... | 2.671875 | 3 |
2024-11-19T00:23:45.762580+00:00 | 2016-05-11T03:50:32 | 15d186a0e90681a774e3c8d66ca2724645fcf6e2 | {
"blob_id": "15d186a0e90681a774e3c8d66ca2724645fcf6e2",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-11T03:50:32",
"content_id": "80a5584dffb7f6b8e84aee72124e3b35194dec13",
"detected_licenses": [
"Zlib"
],
"directory_id": "27ec00e1a47d0a35d0cc23df27927362a4092b26",
"extension": "c... | stackv2 | /*
* parent.c
* Parent in the child-parent comms pair
* By J. Stuart McMurray
* Created 20160319
* Last Modified 20160319
*/
#include "plainshell.h"
/* handle takes a packet, and double-forks off a handler for it. */
void handle(u_char *name, const struct pcap_pkthdr *hdr, const u_char *pkt) {
int ret;
... | 2.515625 | 3 |
2024-11-19T00:23:46.712324+00:00 | 2020-09-28T00:06:59 | f5bf9c539da6ccb76e978827c9efc3fa7a7bb552 | {
"blob_id": "f5bf9c539da6ccb76e978827c9efc3fa7a7bb552",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-28T00:06:59",
"content_id": "51a6de0d31f7400c64ff2ed0b043e593f7bee4a2",
"detected_licenses": [
"MIT"
],
"directory_id": "a9bd9a2e9e975fb0a2099f8701559b791ecdb7fc",
"extension": "h"... | stackv2 | #pragma once
#include "tm4c1294ncpdt.h"
// Number of LEDs used in Parts 2 and Part 3
#define NUM_LEDS 4U
#define NUM_LEDS_PART2 NUM_LEDS
#define NUM_LEDS_PART3 2U
// Number of switches used in Part 3
#define NUM_SW 2U
#define NUM_SW_PART3 NUM_SW
// Delay ... | 2.234375 | 2 |
2024-11-19T00:23:46.841353+00:00 | 2020-10-22T07:09:55 | b8981348cac448a4bca4f405ddc268b3b9a71342 | {
"blob_id": "b8981348cac448a4bca4f405ddc268b3b9a71342",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-22T07:09:55",
"content_id": "af7042b320baa32981e5efaab8fa4b494052da39",
"detected_licenses": [
"MIT"
],
"directory_id": "be643cafc46704e30c33679a874bcbfd3c19ac8e",
"extension": "c"... | stackv2 | #include"headerfiles/headers.h"
#include"headerfiles/cd.h"
void cd(char arg[], char wd[]){
char arg1[256];
strcpy(arg1, arg);
char *cmd = strtok(arg1, " ");
int i=0, stop=0, pre_variable;
char remainder[256], dir[256];
while(cmd[i] == arg[i]){
i++;
if(arg[i] == '\0')
stop=1;
}
if(!stop)
strcpy(re... | 2.546875 | 3 |
2024-11-19T00:23:46.981470+00:00 | 2021-07-12T08:35:49 | 3fc261e04e8bf87fda0f05450626f20fef1ed327 | {
"blob_id": "3fc261e04e8bf87fda0f05450626f20fef1ed327",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-12T08:35:49",
"content_id": "e281e24c58adf48f8ce789d01f1152e36cac568c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "44370b8e5980b4590267bfd184d39317f92bb2c5",
"extension"... | stackv2 | #include <stdio.h>
/*
Program to demonstrate:
1) nested while loop
*/
int main()
{
int stepSize=1;
char alphabet;
scanf("%c",alphabet);
while (stepSize <= 4) //1,2,3,4,(5)
{
alphabet = 97; // (same as) alphabet = 'a';
while (alphabet <= 'e') //97 <=101, 98<=101, 99<=101 100 101 ... | 3.578125 | 4 |
2024-11-19T00:23:47.043585+00:00 | 2018-03-10T05:42:49 | aaa168e403507f76e17ae20490804fb6044be2fc | {
"blob_id": "aaa168e403507f76e17ae20490804fb6044be2fc",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-10T05:42:49",
"content_id": "bfe48409020890d694d611099590a37c9601be9d",
"detected_licenses": [
"MIT"
],
"directory_id": "48fc9c393915fbeab779f60429ee4f27f5d6d81e",
"extension": "c"... | stackv2 | #include "RBTree.h"
void RBTreeRR(RBTree* t, RBNode* n) {
RBNode *left = n->left;
if (left == t->leaf)
return;
if (n->parent->left == n)
n->parent->left = left;
else
n->parent->right = left;
left->parent = n->parent;
n->left = left->right;
left->right = n;
}
void RBTreeLR(RBTree* t, RBNode* n) {
... | 3 | 3 |
2024-11-19T00:23:47.582397+00:00 | 2016-02-28T01:33:35 | 52918b8256b90217673c1d16b7213d0e9f17cd02 | {
"blob_id": "52918b8256b90217673c1d16b7213d0e9f17cd02",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-28T01:33:35",
"content_id": "41c54dc7585d3c078525ac5dfd244d03dad14e6c",
"detected_licenses": [
"MIT"
],
"directory_id": "fb377dc5c72055c51edcece616a76baf95d23cfd",
"extension": "c"... | stackv2 | #include <stdarg.h>
#include <string.h>
#include "odap.h"
void odap_init (struct odap_session *dap) {
dap->events = NULL;
dap->tracking = true;
dap->trackdata_file = NULL;
}
struct odap_session *odap_alloc () {
struct odap_session *dap = malloc (sizeof *dap);
if (dap)
odap_init (dap);
return dap;
}
void od... | 2.828125 | 3 |
2024-11-19T00:23:47.834025+00:00 | 2020-02-22T11:37:06 | b51ed45cfcb534a44f85abed3f0887c614efe728 | {
"blob_id": "b51ed45cfcb534a44f85abed3f0887c614efe728",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-22T11:37:06",
"content_id": "7276e2b4b2708f8f32895ee8f0b9443b00006bf5",
"detected_licenses": [
"MIT"
],
"directory_id": "8acc17fe01c9c5837aca2301fc9df43870d7cadb",
"extension": "c"... | stackv2 | /*Program for Velocity */
/*Velocity is a measure of how quickly an object moves.
So, the velocity is the change in the position of an object,
divided by the time.*/
/* Velocity = final position - initial position / time */
#include <stdio.h>
int main(void) {
float velocity, initial_pos, final_pos, time;
while... | 3.78125 | 4 |
2024-11-19T00:23:47.928269+00:00 | 2016-06-11T21:32:16 | b21db76081b3ddd63bb989a113dac7c9560af286 | {
"blob_id": "b21db76081b3ddd63bb989a113dac7c9560af286",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-19T14:11:24",
"content_id": "cde35d7b4411e366a58170224a0d4711229c1542",
"detected_licenses": [
"ISC"
],
"directory_id": "925bff4b7bf8807c5ed4c4188580e206da63e936",
"extension": "c"... | stackv2 | int printf(const char *, ...);
static void
foo(int a, ...)
{
int b, c;
char **p;
__builtin_va_list ap;
__builtin_va_start(ap, a);
b = __builtin_va_arg(ap, (int)0);
c = __builtin_va_arg(ap, (int)0);
p = __builtin_va_arg(ap, (char **)0);
printf("%d %d %d %p %s\n", a, b, c, p, *p);
}
int
main(int argc, char **a... | 2.34375 | 2 |
2024-11-19T00:23:48.350157+00:00 | 2019-11-12T06:16:53 | 7998b9e1d52ca50b4a359dcad8550cbed0d41cd4 | {
"blob_id": "7998b9e1d52ca50b4a359dcad8550cbed0d41cd4",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-12T06:16:53",
"content_id": "8364701f9c023c792afafe9c732c998cc726bc16",
"detected_licenses": [],
"directory_id": "22d610c6e21fb1a216dc16927434b2fcb6a10367",
"extension": "c",
"filename... | stackv2 | /*
** Copyright Notice and Disclaimer
** -------------------------------
** (c) Copyright 2013.
** SAP AG or an SAP affiliate company. All rights reserved.
** Unpublished rights reserved under U.S. copyright laws.
**
** SAP grants Licensee a non-exclusive license to use, reproduce,
** modify, a... | 2.15625 | 2 |
2024-11-19T00:23:48.648834+00:00 | 2022-11-30T06:57:28 | 77501fbe2c0b67d28ca21aa165e5e643aa12d566 | {
"blob_id": "77501fbe2c0b67d28ca21aa165e5e643aa12d566",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-30T06:57:28",
"content_id": "9e25f599d86e0f9fb559ae42e222ac76fd8db340",
"detected_licenses": [
"MIT"
],
"directory_id": "6b63786b7e4328816ae2504383efc2fce7f1d03c",
"extension": "c"... | stackv2 | /*
============================================================================
Name : base.c
Author : wcs.com
Copyright : 2017(c) Xiamen wangsu Technologies Co., Ltd
Description :
============================================================================
*/
#include "base.h"
#include "../b64/ur... | 2.671875 | 3 |
2024-11-19T00:23:48.802120+00:00 | 2023-04-12T00:29:24 | c73e68f693ccbf78fc1520fc642e49a61a6786da | {
"blob_id": "c73e68f693ccbf78fc1520fc642e49a61a6786da",
"branch_name": "refs/heads/main",
"committer_date": "2023-04-12T00:29:24",
"content_id": "6328660113f4af5f4b295081a03be9315587193a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e60e42a88d58b1ecf6c2b237751bf68df19d3937",
"extensio... | stackv2 | #include "graph_defs.h"
#include "graph_gen.h"
#include "graph_kernels.h"
#include "graph_metrics.h"
#include "graph_partitioning.h"
#include "utils.h"
#include "stdlib.h"
#include <float.h>
#include <time.h>
#if defined(_OPENMP)
#define OMP(x) _Pragma(x)
#if defined(__GNUC__)||defined(__INTEL_COMPILER)
/* The follow... | 2.09375 | 2 |
2024-11-19T00:23:50.198933+00:00 | 2019-04-24T10:52:58 | 6f92c2342ffae3de0914ca1a4ffae6e89e02ba6b | {
"blob_id": "6f92c2342ffae3de0914ca1a4ffae6e89e02ba6b",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-24T10:52:58",
"content_id": "6f442a849d9a5ca41c5445ca462f055d2c08af82",
"detected_licenses": [
"MIT"
],
"directory_id": "7158cbfe2e7f7c8a3aff46874c2993224eff7edf",
"extension": "h"... | stackv2 | #pragma once
#include <Windows.h>
static void UnprotectModule(HMODULE p_Module)
{
//This function was provided by Orfeasz
PIMAGE_DOS_HEADER s_Header = (PIMAGE_DOS_HEADER)p_Module;
PIMAGE_NT_HEADERS s_NTHeader = (PIMAGE_NT_HEADERS)((DWORD)p_Module + s_Header->e_lfanew);
SIZE_T s_ImageSize = s_NTHeader->OptionalHe... | 2.265625 | 2 |
2024-11-19T00:23:56.878689+00:00 | 2023-03-23T13:54:48 | 675ea87da1598dc22bf65a92bbcfd06f65453c83 | {
"blob_id": "675ea87da1598dc22bf65a92bbcfd06f65453c83",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-23T20:31:46",
"content_id": "5dd90493299086737cd1144454c2188a5ba9c3fe",
"detected_licenses": [
"MIT"
],
"directory_id": "dea152592f01deba26c973827e567f02757db2b1",
"extension": "c"... | stackv2 | #include "module.h"
static bool hello_init(const IRCCoreCtx*);
static void hello_cmd (const char*, const char*, const char*, int);
enum { HELLO_SAY_IT };
const IRCModuleCtx irc_mod_ctx = {
.name = "helloworld",
.desc = "Minimal example module.",
.on_cmd = &hello_cmd,
.on_init = &hello_init,
.... | 2.640625 | 3 |
2024-11-19T00:23:57.069466+00:00 | 2021-06-26T01:32:33 | 62c9e4d099fae8ebdb96f9be16a522b7c0bb8a60 | {
"blob_id": "62c9e4d099fae8ebdb96f9be16a522b7c0bb8a60",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-26T01:32:33",
"content_id": "f61a626323214e9702bc30c73cc8ea7801aa870d",
"detected_licenses": [
"MIT"
],
"directory_id": "c7ae7b3cbdef814acca4d7db525e6673f5383a47",
"extension": "c"... | stackv2 | #include "common.h"
#include "kvs.h"
#include "priv_reg.h"
#include "acpi/acpi_tables.h"
#include "registry.h"
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <types.h>
#include <cardinal/local_spinlock.h>
// Parse tables and store them in a registry
// Load and initialize sec... | 2.25 | 2 |
2024-11-19T00:23:57.270335+00:00 | 2021-01-26T17:21:13 | 8e159b9feccf15f8e202cce7ef8f6f2b8583861c | {
"blob_id": "8e159b9feccf15f8e202cce7ef8f6f2b8583861c",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-26T17:21:13",
"content_id": "f61d9c8dbf52e78d32196520e1193b9015fff4e0",
"detected_licenses": [
"MIT"
],
"directory_id": "6099b15457d72898872a708113cc6cae715f050b",
"extension": "h"... | stackv2 | // Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
/**
* @file common.h
*
* This file defines the inline functions, macros and data-structures used in
* oeedger8r generated code on both enclave and host side.
* These internals are subject to change without notice.
*
*/
#ifndef _O... | 2.546875 | 3 |
2024-11-19T00:23:57.551294+00:00 | 2021-11-05T19:49:58 | aae388cf16b66f33bd63ce2b76887ed82b30291b | {
"blob_id": "aae388cf16b66f33bd63ce2b76887ed82b30291b",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-05T19:49:58",
"content_id": "a08942ef3f7db950eec73632aeb05d7e4921e2f4",
"detected_licenses": [
"MIT"
],
"directory_id": "bd03d53f4dbf9efbc99464a2571025e73d49e870",
"extension": "c",
... | stackv2 | #include <stdio.h>
#define MAX 50
#include <time.h>
void mergeSort(int arr[], int low, int mid, int high);
void partition(int arr[], int low, int high);
int main()
{
clock_t start, end;
double cpu_time_used;
int merge[MAX], i, n;
printf("Enter the total number of elements: ");
scanf("%d", &n);
p... | 3.234375 | 3 |
2024-11-19T00:23:58.032278+00:00 | 2016-02-14T21:32:45 | 4c08e37d910c0d6a853bdc5646865d43769a0f08 | {
"blob_id": "4c08e37d910c0d6a853bdc5646865d43769a0f08",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-14T21:32:45",
"content_id": "7c9b988b488edbda9c508279608154d0dc5d5689",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7b855dc7d80a0a00ccf663e5ddc82912bf10ed84",
"extens... | stackv2 | #include "gicht.h"
#include "gicht/dbuf.h"
dbuf_t *dbuf_init(dbuf_t *dbuf, size_t blk)
{
if (dbuf) {
memset(dbuf, 0, sizeof(*dbuf));
} else {
dbuf = calloc(1, sizeof(*dbuf));
}
return dbuf;
}
void dbuf_dtor(dbuf_t *dbuf)
{
if (dbuf) {
if (dbuf->buf) {
free(dbuf->buf);
dbuf->buf = NULL;
}
}
}
vo... | 2.71875 | 3 |
2024-11-19T00:23:58.808105+00:00 | 2021-08-26T09:50:52 | 66105da30811a24e595c80044b21362af74a843b | {
"blob_id": "66105da30811a24e595c80044b21362af74a843b",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-26T09:50:52",
"content_id": "20c260a6a9e08e1e02228410194bad7d61d05bf0",
"detected_licenses": [
"MIT"
],
"directory_id": "16aa1d19e5c31bfd601fc84dc97a91653b08c308",
"extension": "c",
... | stackv2 | #include <am.h>
#include <klib.h>
#include <klib-macros.h>
#include <stdarg.h>
#if !defined(__ISA_NATIVE__) || defined(__NATIVE_USE_KLIB__)
int printf(const char *fmt, ...) {
va_list ap;
char c = *fmt;
// char pre ;
va_start(ap,fmt);
int print_cnt = 0;
int num;
char *str;
while(c)
{
if ( (fmt... | 2.578125 | 3 |
2024-11-19T00:23:59.068171+00:00 | 2018-06-12T04:12:30 | e328e37d99d2efd6e58a0800a0f2ba64d0ee77be | {
"blob_id": "e328e37d99d2efd6e58a0800a0f2ba64d0ee77be",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-12T04:12:30",
"content_id": "5cebd510bbebf73c157f7eae0afb3ca20a722067",
"detected_licenses": [
"MIT"
],
"directory_id": "1f6d6b97ee2f4c7ed05439e5acffd11af416b3ff",
"extension": "h"... | stackv2 | #pragma once
#include "bigint.h"
#define MAX_STACK 50100
enum TYPE { OP = 1, NUM = 2 };
typedef struct CalcData {
int type;
char op;
BigInt num;
} CalcData;
typedef struct CalcStack {
int top;
CalcData data[MAX_STACK];
} CalcStack;
void push(CalcStack* stack, const CalcData* val);
CalcData* pop(CalcStack*... | 2.15625 | 2 |
2024-11-19T00:23:59.254307+00:00 | 2023-08-30T19:33:44 | a9a0ae4d0f20bacd3775fb60df2a6bdc9e4b9731 | {
"blob_id": "a9a0ae4d0f20bacd3775fb60df2a6bdc9e4b9731",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-30T19:33:44",
"content_id": "0f4766fea9dd5f68b4b968115df50d1b3cd1eff7",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "e65a4dbfbfb0e54e59787ba7741efee12f7687f3",
"extensio... | stackv2 | --- dvorak7min.c.orig Mon Mar 15 20:41:06 2004
+++ dvorak7min.c Mon Mar 15 20:41:25 2004
@@ -41,7 +41,6 @@
*
*/
-#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
@@ -173,7 +172,8 @@
/* calculate typing speed in a given interval */
inline float calcSpeed (time_t timeStart, tim... | 2.375 | 2 |
2024-11-19T00:24:01.033186+00:00 | 2017-03-07T23:19:48 | f304306cf0a423663c4804757d97bb4170c4d4c4 | {
"blob_id": "f304306cf0a423663c4804757d97bb4170c4d4c4",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-07T23:19:48",
"content_id": "708903cd8afdb5d06aa2d991d25593224e5b39f5",
"detected_licenses": [
"Unlicense"
],
"directory_id": "5dfff6e3ed0a0226a22bb06d359bc90ce7d9c835",
"extension... | stackv2 | #include "region.h"
/* Every Nintendo DS cart has a serial in the form of XXX-YYYY-ZZZ.
* That number is in the format of TYPE-SERIAL-REGION.
* -TYPE = "NTR" (for regular carts) or "TWL" (for DSi enhanced carts)
* -SERIAL = a four byte code that exists in the ROM itself at bytes[12-15].
* -REGION = the region. Th... | 2.296875 | 2 |
2024-11-19T00:24:03.303628+00:00 | 2021-02-01T15:14:29 | 27bbc07c6541031dfc6850dcef789da65c44a013 | {
"blob_id": "27bbc07c6541031dfc6850dcef789da65c44a013",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-01T15:14:29",
"content_id": "0551356dee7e10c25a710ff155e95351835be7ea",
"detected_licenses": [
"MIT"
],
"directory_id": "8a8631b66ec96df7510561840abf568be239112c",
"extension": "c",
... | stackv2 | /*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <zephyr.h>
#include <device.h>
#include <devicetree.h>
#include <settings/settings.h>
#include <logging/log.h>
LOG_MODULE_REGISTER(zmk, CONFIG_ZMK_LOG_LEVEL);
#include <zmk/matrix.h>
#include <zmk/kscan.h>
#include <zmk/dis... | 2.078125 | 2 |
2024-11-19T00:24:03.401317+00:00 | 2023-08-31T16:20:55 | 9f80173f866aa8fb08013edbe3591ac57d6cff6a | {
"blob_id": "9f80173f866aa8fb08013edbe3591ac57d6cff6a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T16:20:55",
"content_id": "20c611a6f0dbfdb445d4324e5b66940e05c9b6d9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "99bdb3251fecee538e0630f15f6574054dfc1468",
"extensio... | stackv2 | /*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2010-01-25 Bernard first version
* 2012-05-31 aozima Merge all of the C source code into cpuport.c
* 2012-08-17 aozima fixed bug: ... | 2.140625 | 2 |
2024-11-19T00:24:08.345268+00:00 | 2023-04-11T12:29:43 | f8cbafafcef33e87eeee0638e4d20cfdc2976c84 | {
"blob_id": "f8cbafafcef33e87eeee0638e4d20cfdc2976c84",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-11T12:29:43",
"content_id": "d5aad0a44b1eefcff797e5d93927c278f6042266",
"detected_licenses": [
"MIT",
"PostgreSQL",
"ISC",
"BSD-3-Clause",
"BSL-1.0",
"BSD-2-Clause"
... | stackv2 | /**
******************************************************************************
* @file stm8l1528_eval_glass_lcd.c
* @author MCD Application Team
* @version V2.1.3
* @date 28-June-2013
* @brief This file includes driver for the glass LCD Module mounted on
* Big-Falco EVAL board.
***... | 2.15625 | 2 |
2024-11-19T00:24:08.421171+00:00 | 2014-03-31T02:47:30 | 18dbfd2b6a8e8bd6af1e0da3e2241c918725fb6c | {
"blob_id": "18dbfd2b6a8e8bd6af1e0da3e2241c918725fb6c",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-31T02:47:30",
"content_id": "928767f7916f57d95480ffaccfea5330695a93d5",
"detected_licenses": [
"MIT"
],
"directory_id": "c4cc63cd8fb44a22a0945c9d7ad71ba8405779f3",
"extension": "c"... | stackv2 | /*
** fill_map.c for zappy_bibicy in /home/lefevr_u/GIT/zappy/Zappy/Server/src
**
** Made by ulric lefevre
** Login <lefevr_u@epitech.net>
**
** Started on Sat Jun 23 20:17:00 2012 ulric lefevre
** Last update Fri Jul 13 17:12:59 2012 ulric lefevre
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#inc... | 2.53125 | 3 |
2024-11-19T00:24:08.657982+00:00 | 2022-09-14T14:08:50 | bb045bbb51f85162f4b4a002a3a23dadf7513dce | {
"blob_id": "bb045bbb51f85162f4b4a002a3a23dadf7513dce",
"branch_name": "refs/heads/main",
"committer_date": "2022-09-14T14:08:50",
"content_id": "dded3a059e4d04fd5face7acec1c3873ae04dfa1",
"detected_licenses": [
"MIT"
],
"directory_id": "1cfc3b598004cef0ce33c46df69583a5985e0f22",
"extension": "c",
... | stackv2 | // mc.rotate~ -- example of MC auto-adapting
#include "ext.h"
#include "ext_obex.h"
#include "commonsyms.h"
#include "z_dsp.h"
typedef struct _mcrotate {
t_pxobject m_obj;
long m_size; // the count of input channels
} t_mcrotate;
void *mcrotate_new(long size);
void mcrotate_free(t_mcrotate *x);
void mcrotate_as... | 2.328125 | 2 |
2024-11-19T00:24:08.999955+00:00 | 2020-06-29T18:04:46 | 163749706c7c7a8f9e3aaf79f1b53c4968e8b9d9 | {
"blob_id": "163749706c7c7a8f9e3aaf79f1b53c4968e8b9d9",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-29T18:04:46",
"content_id": "eec446fb958c995511f3e813d8f390817eb867ef",
"detected_licenses": [
"BSD-3-Clause",
"Zlib"
],
"directory_id": "61c0a17391f6315359b80e27a60e0f1013de41e1... | stackv2 | /*
Copyright 2020 Google LLC
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/
#include "strbuf.h"
#include "system.h"
#include "reftable.h"
#include "basics.h"
#ifdef REFTABLE_STANDALONE
void strbuf_init... | 2.84375 | 3 |
2024-11-19T00:24:09.130275+00:00 | 2019-02-26T21:29:18 | bd7759d8d934d44062caea9afc3b91c29864bf51 | {
"blob_id": "bd7759d8d934d44062caea9afc3b91c29864bf51",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-26T21:29:18",
"content_id": "9affaf426edccdcec733f48bb9307ca5fd939b38",
"detected_licenses": [
"MIT"
],
"directory_id": "43f44f4a254ae7149b8b46eeae352129601ec427",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "sandia.h"
int main(int argc, char** argv) {
if (1) {
printf("obtain ip address by amazon service\n");
sandia s = sandia_create("checkip.amazonaws.com", 80);
sandia_response response = sandia_get_request(&s, "/");
printf("%s\n", res... | 2.46875 | 2 |
2024-11-19T00:24:09.615400+00:00 | 2022-02-04T23:23:44 | f96161ed7553d9a136e9295af27bfc498b76e41b | {
"blob_id": "f96161ed7553d9a136e9295af27bfc498b76e41b",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-04T23:23:44",
"content_id": "a2d3e25c35fb51ef5b9e06832afc8a03be269662",
"detected_licenses": [
"MIT"
],
"directory_id": "4467b47ffcbef541c0350440fbda4fabeaab5149",
"extension": "h"... | stackv2 | #ifndef FL_THREADS_H
#define FL_THREADS_H
#include <stdbool.h>
// MinGW supports a pthreads implementation
// if FL_PTHREADS is defined we will use it, if not
// we will use Windows threads
#if _WIN32 && !defined(FL_PTHREADS)
#define FL_WIN_THREADS
#elif defined(__linux__) || defined(__CYGWIN__)
#define FL_PT... | 2.4375 | 2 |
2024-11-19T00:24:09.732375+00:00 | 2016-05-20T17:03:24 | cd2634e6d7c2beb6dd2ee4f76f4056701564ddc1 | {
"blob_id": "cd2634e6d7c2beb6dd2ee4f76f4056701564ddc1",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-20T17:03:24",
"content_id": "ebe886f7e8fdb08e7ebcf164104467f3e07b7dac",
"detected_licenses": [
"MIT"
],
"directory_id": "bb5e3345224f08e4b1ca60fee6a9781bf3f11fab",
"extension": "c"... | stackv2 | #include <v3_core.h>
#include <assert.h>
#include "../v3_exception.h"
static v3_int_t v3_init_prototype(v3_ctx_t *ctx);
static v3_base_object_t *TypeError(v3_ctx_t *ctx);
v3_object_t *TypeError_prototype;
v3_int_t v3_init_TypeError(v3_ctx_t *ctx)
{
v3_function_object_t *object;
v3_int... | 2.265625 | 2 |
2024-11-19T00:24:09.919841+00:00 | 2021-07-26T16:58:50 | 32c60b0e85848bc4206433209f1922e54e50bc20 | {
"blob_id": "32c60b0e85848bc4206433209f1922e54e50bc20",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-26T16:58:50",
"content_id": "e9f0425b9a98191243e0f1e793d4df2381d281ce",
"detected_licenses": [
"MIT"
],
"directory_id": "a8f1378290571ea696e6a6309691dbcf7daff267",
"extension": "c"... | stackv2 | #include "vk2d_list.h"
#include <Vk2d/Vk2D_Base/vk2d_log.h>
#include <stdlib.h>
#include <string.h>
vk2d_list* vk2d_list_new(size_t size)
{
vk2d_new(vk2d_list* list, sizeof(vk2d_list));
if (list)
{
list->size = size;
list->count = 0;
list->max = 0;
list->items = NULL;
... | 2.890625 | 3 |
2024-11-19T00:24:10.274290+00:00 | 2020-01-30T15:52:16 | 96d44b041b4d81f6f0826824f63d2ab2b956cbf9 | {
"blob_id": "96d44b041b4d81f6f0826824f63d2ab2b956cbf9",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-30T15:52:16",
"content_id": "592cca49f693e02490ef5c194ef7f2302364cca6",
"detected_licenses": [
"MIT"
],
"directory_id": "40de3da30239862f11a946166b50438174c2fd4e",
"extension": "c"... | stackv2 | // A room for marriage -Nalle
#define TP this_player()
#define MARRIAGE_COST 1000 // marriage cost
#define PROPOSAL_OB "/wizards/nalle/marriage/proposal_ob"
inherit "room/room";
int marry_checks(string str);
reset(arg) {
if(arg) return;
short_desc = "A silent room, flooded by bright light";
long_desc =
"T... | 2.46875 | 2 |
2024-11-19T00:24:10.341021+00:00 | 2017-10-07T19:29:26 | e34d862a5ced8b003b7ee5e2bdfd6b5680a4b580 | {
"blob_id": "e34d862a5ced8b003b7ee5e2bdfd6b5680a4b580",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-07T19:29:26",
"content_id": "d488a882a013127ffbfeae59e398d3d4aa3d7297",
"detected_licenses": [
"Zlib"
],
"directory_id": "fa1dae174e3f2cd3c0064ece5c7c08e5afbf13df",
"extension": "c... | stackv2 | /*
* CS 261 Assignment 5
* Name:
* Date:
*/
#include "dynamicArray.h"
#include "task.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
/**
* Loads into heap a list from a file with lines formatted like
* "priority, name".
* @param heap
* @param file
*/
void listLoad(DynamicArray* heap, FILE* fi... | 3.59375 | 4 |
2024-11-19T00:24:10.436029+00:00 | 2018-09-26T03:14:59 | 61683721c4556aa91ee5bc91b2c0b2847c8b9328 | {
"blob_id": "61683721c4556aa91ee5bc91b2c0b2847c8b9328",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-26T03:14:59",
"content_id": "ac9020c4f1eb056744554f47abc6830d1920d889",
"detected_licenses": [
"MIT"
],
"directory_id": "09b6f5f8e5e76b1fff8f5b8d8d92bacba0177e64",
"extension": "c"... | stackv2 | #include <stdio.h>
int main()
{
// 1.case的穿透问题
// 在switch中, 只要有一个case被匹配了, 其它的case和default都会失效
// break在switch中的作用, 就是跳出switch语句(结束当前的switch语句)
// 如果default是写在最后, 那么default后面的break可以省略
// int day = 1;
// switch(day){
// case 1:
// printf("星期一\n");
// break;
// case 2:
// ... | 3.59375 | 4 |
2024-11-19T00:24:10.517767+00:00 | 2019-06-16T12:39:07 | 46372ea5723b8a54dd731867a5a43a023a1b1485 | {
"blob_id": "46372ea5723b8a54dd731867a5a43a023a1b1485",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-16T12:39:07",
"content_id": "0f394031a0bfc5fdafda4ff80c6a764a08114630",
"detected_licenses": [
"MIT"
],
"directory_id": "7ef92d3b2468b125947532a3b79f38222ef6b627",
"extension": "c"... | stackv2 | #include "types.h"
#include "stat.h"
#include "user.h"
#include "fs.h"
#include "fcntl.h"
#define DRNTSIZE sizeof(struct dirent)
#define NUM_PARAMS 7
#define DIRSIZ 14
#define INODEINFOS_PATH "/proc/inodeinfo"
//struct dirent {
// ushort inum;
// char name[DIRSIZ];
//};
//
//struct inode {
// uint dev; ... | 2.71875 | 3 |
2024-11-19T00:24:10.767912+00:00 | 2017-03-17T19:45:15 | 79d5073d678a19e89fc531500128526ac3ede960 | {
"blob_id": "79d5073d678a19e89fc531500128526ac3ede960",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-17T19:45:15",
"content_id": "e196d04cf125c2109d525a7edd9b3e0e979b109a",
"detected_licenses": [
"MIT"
],
"directory_id": "85e8ca6402c7a673d807e6a6c9babd393f9c2cf9",
"extension": "h"... | stackv2 | #pragma once
#include "handle.h"
#include "run.h"
/**
* @brief Initializes a library containing tests.
*
* Abstraction of a test library
*
* @param library_path Path to shared library containing
* tests.
* @param report_progress Callback to function that reports
* p... | 2.1875 | 2 |
2024-11-19T00:24:11.026356+00:00 | 2021-09-17T23:21:13 | fc40ffd0cd20c1ebe24c9bb87388d57e92def110 | {
"blob_id": "fc40ffd0cd20c1ebe24c9bb87388d57e92def110",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-17T23:21:13",
"content_id": "58429af943a4550e2003ac25a93313ce4289da1f",
"detected_licenses": [
"MIT"
],
"directory_id": "72e63bd6725a5291842f1b46128d8fc3ef82ead5",
"extension": "c",
... | stackv2 | #include "mpi_error.h"
#include "mpi/mpi.h"
#include <assert.h>
const char *myMPI_decode_error(int MPI_ret_val) {
switch (MPI_ret_val) {
case myMPI_NOT_INITIALIZED:
return "MPI isn't initialized";
case myMPI_FINALIZED:
return "MPI is finalized";
case MPI_ERR_BUFFER:
return "Invalid buffer point... | 2.359375 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.