added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T22:21:12.884021+00:00 | 2023-08-10T09:04:44 | c44afa8d37d54bad243d33f4581601ed7d2657e5 | {
"blob_id": "c44afa8d37d54bad243d33f4581601ed7d2657e5",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-10T09:04:44",
"content_id": "d3187f2c55e9bc8f1aa3fa084ebc070fdddc56ff",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c6759b857e55991fea3ef0b465dbcee53fa38714",
"extensio... | stackv2 | /*
* Copyright (C) 2018 ETH Zurich and University of Bologna and
* GreenWaves Technologies
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICEN... | 2.34375 | 2 |
2024-11-18T22:21:13.032966+00:00 | 2023-08-29T19:12:09 | bd44fb846d018ea905ae7e09ce1662579ca71755 | {
"blob_id": "bd44fb846d018ea905ae7e09ce1662579ca71755",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T19:12:09",
"content_id": "d5fc16b9ed332f46da5045da3d3cbba8e0126ee3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7f49001b258dd1000e6d99e5a2ff595aadb58e53",
"extensio... | stackv2 |
// Copyright 2018 University of Chicago and Argonne National Laboratory
//
// 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 ... | 2.03125 | 2 |
2024-11-18T22:21:13.537616+00:00 | 2021-10-18T09:39:09 | 2112109fce31d4eb63271aba139d31c5d0fb94e9 | {
"blob_id": "2112109fce31d4eb63271aba139d31c5d0fb94e9",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-18T09:39:09",
"content_id": "58226332456980335f8c8179162da8978c764206",
"detected_licenses": [
"MIT"
],
"directory_id": "6d106f5c8831a9e8a93cc2fa3e0d52988592584f",
"extension": "h"... | stackv2 | /*
* Copyright (c) 2008-2012 the MansOS team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of con... | 2.21875 | 2 |
2024-11-18T22:21:14.217238+00:00 | 2019-04-10T08:30:25 | f15760b50cb3070c9612a46b65c0d455b319aaf9 | {
"blob_id": "f15760b50cb3070c9612a46b65c0d455b319aaf9",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-10T08:30:25",
"content_id": "111e24dad75443f232f3beb993706a0f40b4f486",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2c1549b621e4f3f16f550f1a14d782b5b72b5c02",
"extensio... | stackv2 | #include "command_context.h"
struct command_context {
// By using 8 bit we can define up to 8 contexts
uint8_t context;
char *command_name;
char *command_desc;
void (*command)(void);
};
uint8_t context;
void print_menu();
void switch_context(uint8_t ctx);
extern void println(char *str);
exter... | 2.859375 | 3 |
2024-11-18T22:21:15.629825+00:00 | 2014-07-27T15:28:14 | b88b287b589bae9fd6a10b3c4a17b5c8d24ab509 | {
"blob_id": "b88b287b589bae9fd6a10b3c4a17b5c8d24ab509",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-27T15:28:14",
"content_id": "69fda55fd10a0245a75e1a930b592a097ef0453e",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "44349fa6b339380cc811f105e67d928ddc3201fe",
"extens... | stackv2 | #include "uhid.h"
#include <err.h>
#include <stdio.h>
#include <sysexits.h>
bool
want(uint32_t application, uint32_t usage_min, uint32_t usage_max)
{
printf("report: application %x, usage %x", application, usage_min);
if (usage_min != usage_max)
printf("-%x", usage_max);
printf("\n");
return t... | 2.390625 | 2 |
2024-11-18T22:21:15.837585+00:00 | 2021-11-07T19:34:41 | f97561fdc352eadbf17936b11b86c1171a2b7bf0 | {
"blob_id": "f97561fdc352eadbf17936b11b86c1171a2b7bf0",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-07T19:34:41",
"content_id": "fa76324dede565f74d5c822676b79e1d83184d21",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f513818b0b9db1e345de3e390dad71e692987c9a",
"extensio... | stackv2 | /*
* 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, software
* distribu... | 2.1875 | 2 |
2024-11-18T22:21:15.918025+00:00 | 2017-04-20T04:42:58 | 986a35c552b16e920388de8205ac5f7220a211a4 | {
"blob_id": "986a35c552b16e920388de8205ac5f7220a211a4",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-21T07:41:17",
"content_id": "a2f798b3607c7de15956bda96bf6a8b8d00e3d27",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ee480d854d82e64c1197ebbcfaa02d7cfd241e2b",
"extens... | stackv2 | #include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include <ctype.h>
#include <unistd.h>
#include <assert.h>
#include <stdarg.h>
#include <sys/stat.h>
#include <stdarg.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>... | 2.4375 | 2 |
2024-11-18T22:21:16.168741+00:00 | 2019-08-20T17:55:20 | 80b917f08aee35ea8bd4bbd698245322f378641f | {
"blob_id": "80b917f08aee35ea8bd4bbd698245322f378641f",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-20T17:55:20",
"content_id": "4dbb5f4cf793501c058f49d377797704225526cf",
"detected_licenses": [
"MIT"
],
"directory_id": "febc86f7b070feba106b5f1411ed68ad9e2bda10",
"extension": "h"... | stackv2 | #ifndef VECTOR_H
#define VECTOR_H
#include <stddef.h>
/**
* @brief Initializes a new vector type.
* @param T The type that the Vector contains.
*/
#define vector_t_init(T) struct { int count; T* elements; }
/**
* @brief base vector types.
*/
typedef vector_t_init(void*) vector_t_void;
/**
* @brief Initialize ... | 2.859375 | 3 |
2024-11-18T22:21:16.235211+00:00 | 2019-04-25T06:02:28 | 1e56a1455624a6e857f622f2487c1770265feb21 | {
"blob_id": "1e56a1455624a6e857f622f2487c1770265feb21",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-25T06:02:28",
"content_id": "2443fd17c16ca9a73a9b08b4f532c7c4ecb1dc01",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b2e3790cee9293ea0160adfafcc9a6214c3acbe9",
"extens... | stackv2 | /*
* THE NEMESIS PROJECT
* Copyright (C) 1999, 2000, 2001 Mark Grimes <mark@stateful.net>
* Copyright (C) 2001 - 2003 Jeff Nathan <jeff@snort.org>
* Copyright (C) 2019 Joachim Nilsson <troglobit@gmail.com>
*
* nemesis-dhcp.c (DHCP Packet Injector)
*/
#include "nemesis-dhcp.h"
#include "nemesis.h"
#if defined(WI... | 2.140625 | 2 |
2024-11-18T22:21:16.548992+00:00 | 2018-04-04T02:36:31 | 34dd7c68f3902093b127b74d1d58a6eb2e2992d3 | {
"blob_id": "34dd7c68f3902093b127b74d1d58a6eb2e2992d3",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-04T02:36:31",
"content_id": "fea38359d8031c35482c76f99b29b6f3aa1c8ccf",
"detected_licenses": [
"MIT"
],
"directory_id": "942fa6425f30bfbda6c0b072d19e974a224508db",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <errno.h>
int mult_3x5(int number) {
long unsigned int i,sum=0;
for(i=0;i<number;i++)
{
if((i%5==0)||(i%3==0))
{
sum=sum+i;
}
}
return sum;
}
int main(int argc, char *argv[]) {
// argv[1] is number entered in comma... | 2.875 | 3 |
2024-11-18T22:21:17.128473+00:00 | 2019-03-17T12:03:07 | e471fc7801f5248fae164706c332ed181275b4cf | {
"blob_id": "e471fc7801f5248fae164706c332ed181275b4cf",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-17T12:03:07",
"content_id": "6b4064a73af8ff9af0bb6e833b964345e947af3f",
"detected_licenses": [
"MIT"
],
"directory_id": "db9a6d2e508bfce919eb496e726eabb8176a4dff",
"extension": "c"... | stackv2 | #include <stdio.h>
struct book{ int no; char name; };
int main () { struct book myBook; myBook.no = 3; myBook.name = 'C';
printf( "Book No : %d\n", myBook.no); printf( "Book Name : %c\n", myBook.name);
return 0; }
| 2.59375 | 3 |
2024-11-18T22:21:22.153888+00:00 | 2021-09-10T10:17:41 | ec7359824c114e4ac3a375b61ec302465cecab1d | {
"blob_id": "ec7359824c114e4ac3a375b61ec302465cecab1d",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-10T11:21:22",
"content_id": "a4652e31b8942e39a1e8d0e5dc912afdec3fb242",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause",
"NCSA",
"Zlib"
],
"directory_id": "8717a9e7... | stackv2 | /*
* Copyright 2017-2018 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Author Ruchika Gupta <ruchika.gupta@nxp.com>
*/
#include <platform_def.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <errno.h>
#include <arch_helpers.h>
#include <debug.h>
... | 2.234375 | 2 |
2024-11-18T22:21:22.279116+00:00 | 2015-02-20T08:41:37 | 1251dfb88bd83b1a4d2076d278f1fca9b7c8896d | {
"blob_id": "1251dfb88bd83b1a4d2076d278f1fca9b7c8896d",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-20T08:41:37",
"content_id": "173542d46aa96c3d1676390a2af4b28b9f01ac10",
"detected_licenses": [
"Unlicense"
],
"directory_id": "2e39453c978f0dfd72df8ebfc4593e4931329814",
"extension... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <semaphore.h>
#include <pthread.h>
#define MAX_customers 10
#define NUM_customers 50
int customers=0;
int n_filmfare=4;
int value;
pthread_t cust[NUM_customers];
pthread_t barb[3];
sem_t mutex;
sem_t chair;
sem_t barber;
sem_t customer;
sem_t cash;
sem_t receipt;
sem_t mu... | 2.796875 | 3 |
2024-11-18T22:21:22.378669+00:00 | 2023-08-18T10:48:30 | 991bef3fc5007657e725b79314400d84f20814bc | {
"blob_id": "991bef3fc5007657e725b79314400d84f20814bc",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T10:48:30",
"content_id": "ef98ffbd0dc144987d911e05f26adc9e456bc0f4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8b04bef9aa1ac8e2c109dd315f133c8f4d28ae6",
"extensio... | stackv2 | #ifndef WR_NODE_H
#define WR_NODE_H
#define WR_NODE(x) ((WrNode *)(x))
#ifdef __cplusplus
extern "C" {
#endif
struct WrNode;
typedef struct WrNode WrNode;
struct WrTransform;
typedef struct WrTransform WrTransform;
void wr_node_delete(WrNode *node);
WrTransform *wr_node_get_parent(WrNode *node);
void wr_node_set_... | 2.03125 | 2 |
2024-11-18T22:21:22.790567+00:00 | 2023-08-28T18:59:29 | f2b2b86c7283c2fed854076153f079d87def54bd | {
"blob_id": "f2b2b86c7283c2fed854076153f079d87def54bd",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T18:59:29",
"content_id": "0387648b30e95c3c2a4a001bec7ade15af6e8f27",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d36a429823199f063d3529553e68eb64839534fc",
"extensio... | stackv2 | /*
* Copyright (c) 2019 Trail of Bits, Inc.
*
* 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 o... | 2.046875 | 2 |
2024-11-18T22:21:23.661724+00:00 | 2020-02-02T23:23:14 | 87455d42a9c54832a1b2df3ee30cf8363ebf78f5 | {
"blob_id": "87455d42a9c54832a1b2df3ee30cf8363ebf78f5",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-02T23:23:14",
"content_id": "9f4fbbba4cc942f896f24e47bc07383832d5e495",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "00f7db8768c0fc6b52413aa588465a992f129aa9",
"extensio... | stackv2 | // SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Charles University
#include <exc.h>
#include <lib/print.h>
#include <lib/queue.h>
#include <proc/sem.h>
/** Initializes given semaphore.
*
* @param sem Semaphore to initialize.
* @param value Initial semaphore value (1 effectively creates mutex).
* @return ... | 3.046875 | 3 |
2024-11-18T22:21:24.245191+00:00 | 2018-07-13T13:35:01 | b5c18d2261454d35f238ea8b613dcbffeea4231d | {
"blob_id": "b5c18d2261454d35f238ea8b613dcbffeea4231d",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-13T13:44:28",
"content_id": "47bd7cf38f08a64e2934a5b71adb5cb4f0b6eec3",
"detected_licenses": [
"MIT"
],
"directory_id": "84186a7fe3e71f470ced957c735758fc3bf6d2bc",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include "SWI-Prolog.h"
#include "JPX.h"
static jobject lookup(JNIEnv *env, term_t term) {
jobject termObject;
jclass termClass = (*env)->FindClass(env,"Ljpx/impl/TermImpl;");
jclass variableClass = (*env)->FindClass(env,"Ljpx/impl/VariableImpl;");
jclass integerClass ... | 2.578125 | 3 |
2024-11-18T22:21:24.962619+00:00 | 2018-11-06T21:47:19 | 158717fdecafe4c7e988dbc5c1a2f034ba6b5548 | {
"blob_id": "158717fdecafe4c7e988dbc5c1a2f034ba6b5548",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-06T21:47:19",
"content_id": "09a2a68804c37c64b6270c090cea2af1b319effb",
"detected_licenses": [
"MIT"
],
"directory_id": "e263d88b1e69320cd5321309afbf023bff504d6b",
"extension": "c"... | stackv2 | #define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <pthread.h>
#include <ctype.h>
#if ENABLE_TRACE
#include "trace.c"
#endif
void fatal(const char *msg, ...) {
va_list valist;
va_start(valist, msg);
... | 2.8125 | 3 |
2024-11-18T22:21:25.053515+00:00 | 2023-05-26T07:03:59 | 5320910d1a28d72a01d7b45ca6bea49226771a85 | {
"blob_id": "5320910d1a28d72a01d7b45ca6bea49226771a85",
"branch_name": "refs/heads/hx20-hx30",
"committer_date": "2023-05-26T07:03:59",
"content_id": "5344566272eaa39a221894a9145b65272759130e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f9e7d65cb784c01a0200145ba8d289afe41d4a56",
"ext... | stackv2 | /* Copyright 2018 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* UART register map
*/
#ifndef __CROS_EC_SERIAL_REG_H
#define __CROS_EC_SERIAL_REG_H
#include "registers.h"
/* Number of hardware ports */
#defi... | 2.328125 | 2 |
2024-11-18T22:21:25.104148+00:00 | 2020-12-12T13:11:36 | 389be5ec372acd0618598993dcc871d71f92f8eb | {
"blob_id": "389be5ec372acd0618598993dcc871d71f92f8eb",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-12T13:11:36",
"content_id": "63c8a9224265a43048e7264dcde188f5dcfd1ff8",
"detected_licenses": [
"MIT"
],
"directory_id": "161c1c93850003bf8328d75defd56d1182f1b067",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "word_list.h"
#include "parser.h"
#include "hash.h"
int main(int argc, char** argv)
{
node* list[NB_PACK];
if ( argc != 2 )
{
fprintf(stderr, "usage : %s <file_name>\n", argv[0] );
return -1;
}
init_hash_tab(list, NB_PACK);
get_file_word_hash_tab(argv[1], list);
if ( list != ... | 2.28125 | 2 |
2024-11-18T22:21:25.284571+00:00 | 2023-08-17T16:08:06 | 5913a13905324166cd892d314ee9cb744b085812 | {
"blob_id": "5913a13905324166cd892d314ee9cb744b085812",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T16:08:06",
"content_id": "3ed31b46f408f968fde8056531044c341c01a9e3",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066",
"extensio... | stackv2 | static char help[] = "Tests MatShift for SeqAIJ matrices with some missing diagonal entries\n\n";
#include <petscmat.h>
int main(int argc, char **argv)
{
Mat A;
PetscInt coli[4], row;
PetscScalar vali[4];
PetscMPIInt size;
PetscFunctionBeginUser;
PetscCall(PetscInitialize(&argc, &argv, (char *... | 2.265625 | 2 |
2024-11-18T22:21:25.347939+00:00 | 2019-10-28T08:34:00 | 366677b7a0d5b04e2121c262ae1de1081405fb7b | {
"blob_id": "366677b7a0d5b04e2121c262ae1de1081405fb7b",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-28T08:34:00",
"content_id": "517ce31edf5d2f0649e530763f7aed81c8955df4",
"detected_licenses": [
"MIT"
],
"directory_id": "0f0f094609ae489277c5cfd3859b52dfa3381fe9",
"extension": "h"... | stackv2 | /**
* Name: Marc Julian Jamerlan
* Lab: Lab 4
* Date: 9/22/18
**/
#ifndef __MATRIX_MULT_H_
#define __MATRIX_MULT_H_
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#define oops(errmsg, err) { perror(errmsg); exit(err); }
// struct for passing indices to the threads
struct matrixCell
{
int i; // resul... | 2.609375 | 3 |
2024-11-18T22:21:25.407902+00:00 | 2021-03-14T20:29:54 | e75fd80927ba06724c49a7a58663538ba76956cc | {
"blob_id": "e75fd80927ba06724c49a7a58663538ba76956cc",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-14T20:29:54",
"content_id": "a8bc1a7e254c94cfd318943e2fcf2667226e20f3",
"detected_licenses": [
"MIT"
],
"directory_id": "ec53de34881276a7bd5348f1f550483347cd5db4",
"extension": "c",
... | stackv2 | /**
\file lcd-BTHQ21605V.c
\author G. Icking-Konert
\date 2013-11-22
\version 0.1
\brief implementation of 2x16 I2C LCD functions for BTHQ21605V-COG-FSRE-I2C
implementation of functions for printing strings via I2C to 2x16 LCD
Batron BTHQ21605V-COG-FSRE-I2C (Farnell 1220409).
Connect LCD I2C... | 2.953125 | 3 |
2024-11-18T22:21:25.616707+00:00 | 2012-04-12T16:47:51 | 310608447f9ae08a161ddfc71d5f2aad9a436991 | {
"blob_id": "310608447f9ae08a161ddfc71d5f2aad9a436991",
"branch_name": "refs/heads/master",
"committer_date": "2012-04-12T16:47:51",
"content_id": "4f4524e12bd335383de8b864a1301b53ac2d55a9",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1bcf95a12cc2bc1e7a07269cf1355216ef730536",
"extens... | stackv2 |
#ifndef _delay_h_
#define _delay_h_
#include "dev_config.h"
#include "delay.h"
#define DELAY_US_CONV(us) ((uint16_t)(((((us)*1000L)/(1000000000/F_CPU))-1)/4))
#define delay_us(us) delayloop16(DELAY_US_CONV(us))
/* delay function for millisec
(6 cycles per x + 20(?) overhead) */
void delayloop32( uint32_t l); // ... | 2.34375 | 2 |
2024-11-18T22:21:25.758830+00:00 | 2016-11-26T14:40:31 | f7752961ea4c7708ef77f110dea1a824b7d18f38 | {
"blob_id": "f7752961ea4c7708ef77f110dea1a824b7d18f38",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-26T14:40:31",
"content_id": "72c07370f299a3777957c0bc8eb12529e487b969",
"detected_licenses": [
"Unlicense"
],
"directory_id": "f45dde840930e916198f8fbfa53c16a0c34f2c0d",
"extension... | stackv2 | // Hardware abstraction layer for 2nd hw revision
#include <inttypes.h>
#include <avr/io.h>
#include <avr/eeprom.h>
#include <avr/interrupt.h>
#include <avr/sfr_defs.h>
#include <util/delay.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#define BAUD 115200
#include <util/setbaud.h>
#include "hal2.h"
... | 2.375 | 2 |
2024-11-18T22:21:25.850822+00:00 | 2017-05-24T16:26:29 | 2aab9657dbc5503a8b262525426cb35f8b8317c0 | {
"blob_id": "2aab9657dbc5503a8b262525426cb35f8b8317c0",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-24T16:26:32",
"content_id": "bae7bf715f9020d1fa24e7a0f5b0935165d33713",
"detected_licenses": [
"MIT"
],
"directory_id": "973395bac677a3bf8d45b613a9058ad63d345613",
"extension": "h"... | stackv2 | /*
** listen_for_client.h for list_for_client_h in /Users/pierre/Epitech/PSU/FTP
**
** Made by Pierre Monge
** Login <pierre@epitech.net>
**
** Started on Sat May 20 04:57:04 2017 Pierre Monge
** Last update Sun May 21 22:52:45 2017 Pierre Monge
*/
#ifndef LISTEN_FOR_CLIENT
# define LISTEN_FOR_CLIENT
# include "so... | 2.109375 | 2 |
2024-11-18T22:21:26.238596+00:00 | 2023-01-24T21:25:07 | 806de02b840e0c2ff3e0db46f3f211d56c25c5f0 | {
"blob_id": "806de02b840e0c2ff3e0db46f3f211d56c25c5f0",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-24T21:25:07",
"content_id": "02c4ec8508a29aac202588f4726264a8f07c6b95",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "32e9d92407db8ecf228a1c8a6e5b0b5b10d7b260",
"extensio... | stackv2 | /*
* Copyright 2019, The OpenNMS Group
*
* 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 agr... | 2.515625 | 3 |
2024-11-18T22:21:26.617344+00:00 | 2017-03-07T18:38:13 | 7159ad8405d163e874f896b7a49652dfff50eba8 | {
"blob_id": "7159ad8405d163e874f896b7a49652dfff50eba8",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-07T18:38:13",
"content_id": "35751fca8d59cd1f08ceeb99448899616acbbcd4",
"detected_licenses": [
"MIT"
],
"directory_id": "d5a69c15d798e326e4a0f1093f5954bef9d06d47",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <stdint.h>
#include "string_op.h" /* Main string operation header file. */
/* Copy source into destination of size n (including the trailing NUL byte).
Note, SU_strcpy() always clears the buffer before
copying results into i... | 3.125 | 3 |
2024-11-18T22:21:26.669518+00:00 | 2017-12-08T06:15:24 | b2ec4c597f7462754bfd2863de3243cca5d17bd1 | {
"blob_id": "b2ec4c597f7462754bfd2863de3243cca5d17bd1",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-08T06:15:24",
"content_id": "f25b2c861b88750e6ef523e7a6535f7da05fec89",
"detected_licenses": [
"MIT"
],
"directory_id": "0bbd4472b4eda31b0c4d320333931a84e7dcfa64",
"extension": "c"... | stackv2 | /**
* Copyright (c) 2017 Tara Keeling
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <driver/i2c.h>
#include "ssd1306.h"
#include "iface_esp32_i2c.h"
int ESP32_WriteCommand_I2... | 2.53125 | 3 |
2024-11-18T22:21:27.635674+00:00 | 2019-04-14T01:26:31 | b47b215fe8ca4a2838f0834786b4ab572e882cb9 | {
"blob_id": "b47b215fe8ca4a2838f0834786b4ab572e882cb9",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-14T01:26:31",
"content_id": "565a80c1d18540df099d0293c933ed412b965faf",
"detected_licenses": [
"MIT"
],
"directory_id": "46e5a4125ded12e9895e95422c747898481071e6",
"extension": "c"... | stackv2 | #include "types.h"
#include "stat.h"
#include "user.h"
int main(int argc, char* argv[]){
int numForks = 20;
int i;
int wtime;
int rtime;
int iotime;
int pid;
printf(1, "pid\tready\trunning\tsleeping\t\n");
for (i = 0; i < numForks; i++) {
pid = fork();
if (pid) { //aka parent process
contin... | 2.640625 | 3 |
2024-11-18T22:21:27.691537+00:00 | 2022-09-22T13:04:49 | e7cf9c92f2137a3100c7bd328dfd219444ed4c41 | {
"blob_id": "e7cf9c92f2137a3100c7bd328dfd219444ed4c41",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-24T13:37:45",
"content_id": "9b6c75019dbb172950b753a2e84c5803e820b77d",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "3a6381d0f3933bf1a0c046eb4148a533... | stackv2 | /*
* Phoenix-RTOS
*
* EXT2 filesystem
*
* SuperBlock
*
* Copyright 2017, 2020 Phoenix Systems
* Author: Kamil Amanowicz, Lukasz Kosinski
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <errno.h>
#include <stdlib.h>
#include "sb.h"
int ext2_sb_sync(ext2_t *fs)
{
if (fs->write(fs->oid.i... | 2.28125 | 2 |
2024-11-18T22:21:27.862214+00:00 | 2020-06-08T19:08:04 | 33ddbc9f4f3e58564e9f09dc24b26274fca7269b | {
"blob_id": "33ddbc9f4f3e58564e9f09dc24b26274fca7269b",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-08T19:08:04",
"content_id": "6b585e45258715b4c66d64307bc651dcb6f6dd42",
"detected_licenses": [
"MIT"
],
"directory_id": "9aaad23e29634c3cddb5de7714443886f9b82647",
"extension": "c"... | stackv2 | # include "../src/string-utils.h"
# include "unity/unity.h"
void shouldReplaceASimpleString()
{
char baseString[] = "Hello Mundo";
char oldChar[] = "Mundo";
char newChar[] = "World";
TEST_ASSERT_EQUAL_STRING("Hello World", replace(baseString, oldChar, newChar));
}
void shouldReplaceAWhitespace()
{
... | 2.6875 | 3 |
2024-11-18T22:21:27.997441+00:00 | 2019-04-07T23:54:16 | 14ca0d6a7d62af9062f624a01f782e023b3ada2e | {
"blob_id": "14ca0d6a7d62af9062f624a01f782e023b3ada2e",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-07T23:54:16",
"content_id": "15e61a7e2ece0dec9d2b9276fa503945e624f2a8",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "34386c35883fe80ed5c12231d8739e4325c81fbc",
"extens... | stackv2 | #include <fcntl.h>
#include <linux/fb.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <string.h>
#include "draw.h"
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define NLEVELS (1 << 8)
static int fd;
static voi... | 2.3125 | 2 |
2024-11-18T22:21:28.060808+00:00 | 2022-04-16T12:41:52 | b5de22c865a442707c5a0ea4ffab6dda4691c93e | {
"blob_id": "b5de22c865a442707c5a0ea4ffab6dda4691c93e",
"branch_name": "refs/heads/master",
"committer_date": "2022-04-16T12:41:52",
"content_id": "19bfe64f820a5ab593ca2db92be906a01f32fdfc",
"detected_licenses": [
"MIT"
],
"directory_id": "fa451bcdc5df291739bfae82fa4ec66fef60cf13",
"extension": "h"... | stackv2 | #include <stdio.h>
#include <stdbool.h>
#define MAXTEXT 254
typedef struct todo {
const char *filename;
FILE *file;
char name[60];
int length;
struct task {
bool space;
char mark;
char text[MAXTEXT];
} *tasks;
} Todo;
size_t todo_init(Todo *list, const char *filename);
void load_tasks(Todo *list, void *t... | 2.203125 | 2 |
2024-11-18T22:21:28.122737+00:00 | 2013-11-19T13:37:19 | 4c9fe5d70faf9c0c6272bcad4022bf5f0769e151 | {
"blob_id": "4c9fe5d70faf9c0c6272bcad4022bf5f0769e151",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-19T13:37:19",
"content_id": "285d49c995f99b7fcaa406f6db94875337591993",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a76c51be1b86e52df0248362576b8c96bb236892",
"extensio... | stackv2 | #include "swoole.h"
#ifdef HAVE_EPOLL
typedef struct swReactorEpoll_s swReactorEpoll;
#pragma pack(4)
typedef struct _swFd
{
uint32_t fd;
uint32_t fdtype;
} swFd;
#pragma pack()
static int swReactorEpoll_add(swReactor *reactor, int fd, int fdtype);
static int swReactorEpoll_set(swReactor *reactor, int fd, int fdt... | 2.546875 | 3 |
2024-11-18T22:21:28.519586+00:00 | 2018-06-18T03:59:27 | b835d6e94883841e82d946ca3f2ccc7addc08484 | {
"blob_id": "b835d6e94883841e82d946ca3f2ccc7addc08484",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-18T03:59:27",
"content_id": "2e1e36cb8aefb993cc881117694c5238f7b4e75e",
"detected_licenses": [
"MIT"
],
"directory_id": "775f7c148bb0ac46180a1a25a9a252da404af789",
"extension": "c"... | stackv2 | #include <windows.h>
#include <windowsx.h>
#include <tchar.h>
LRESULT CALLBACK WindowProc(
HWND hWnd,
UINT message,
WPARAM wParam,
LPARAM lParam);
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
// the handle for the window,filled by a function
HWND h... | 2.078125 | 2 |
2024-11-18T22:21:28.692677+00:00 | 2018-03-10T06:02:33 | f745213766046b3381dc03dec054ff7cabb6cdc4 | {
"blob_id": "f745213766046b3381dc03dec054ff7cabb6cdc4",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-10T06:02:33",
"content_id": "c733d757a2868b89739309f69fd014c2f00d52ff",
"detected_licenses": [
"MIT"
],
"directory_id": "a9ca0c0b182af1991f4d066f67be3aa8e2207f1b",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
void array_show(int [], int, int, int);
int sequential_search(int [], int, int);
int
main(void) {
// random seed.
srand((unsigned)time(NULL));
const int num = 10;
int array[num];
int key, index;
/* Create a random in... | 3.296875 | 3 |
2024-11-18T22:21:28.760440+00:00 | 2018-04-23T21:23:41 | e714fdf3ae1a5ac9560472ce6cbb442cead3d5e4 | {
"blob_id": "e714fdf3ae1a5ac9560472ce6cbb442cead3d5e4",
"branch_name": "refs/heads/develop",
"committer_date": "2018-04-23T21:23:41",
"content_id": "537bf10ec7170d9359f4a370bcfbab3960b86688",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d",
"extension"... | stackv2 | /* *********************************************************************** */
/* *********************************************************************** */
/* DATFUNCS Date Functions Library */
/* *********************************************************************** */
/*
File Name : %M%
File Versio... | 2.515625 | 3 |
2024-11-18T22:21:29.522191+00:00 | 2019-07-21T08:51:57 | 1ee72462c436ffeab231931f8e04083b4bbd1804 | {
"blob_id": "1ee72462c436ffeab231931f8e04083b4bbd1804",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-21T08:51:57",
"content_id": "ac1923bdfaf56aeb622cf85ffcd0128097cc8b04",
"detected_licenses": [
"MIT"
],
"directory_id": "5145b7405f1ae107ba99a41fd28f638772165994",
"extension": "h"... | stackv2 | /*
* contactless_card_interface.h
*
* Created on: 2012-7-11
* Author: yaomaobiao
*/
#ifndef CONTACTLESS_CARD_INTERFACE_H_
#define CONTACTLESS_CARD_INTERFACE_H_
#ifdef __cplusplus
extern "C"
{
#endif
#define CONTACTLESS_CARD_MODE_AUTO 0
#define CONTACTLESS_CARD_MODE_TYPE_A 1
#define CONTACTLESS_CARD_MODE_... | 2.078125 | 2 |
2024-11-18T22:21:29.862763+00:00 | 2020-05-27T06:12:00 | 149c5986aa289c35135cfede8d322217355cb4b1 | {
"blob_id": "149c5986aa289c35135cfede8d322217355cb4b1",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-27T11:04:37",
"content_id": "ea4af357ec90944fe18c992821395c9ca100a961",
"detected_licenses": [
"MIT"
],
"directory_id": "9b943a52a2c9ccef16532e1e513382e20ad1f0b9",
"extension": "c"... | stackv2 | #include <flecs_systems_physics.h>
#include <string.h>
#include <math.h>
#define ECS_g (9.807)
#define ECS_air_density (1.225)
void EcsAddRotate2D(ecs_rows_t *rows) {
ecs_entity_t ecs_entity(EcsRotation2D) = ecs_column_entity(rows, 2);
int i;
for (i = 0; i < rows->count; i ++) {
ecs_set(rows->wor... | 2.25 | 2 |
2024-11-18T22:21:29.951705+00:00 | 2016-03-08T19:47:42 | 75654b7b44f6b15de7416fa6e3c5f5f2272661b9 | {
"blob_id": "75654b7b44f6b15de7416fa6e3c5f5f2272661b9",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-08T19:49:12",
"content_id": "27528f59535f4bf132fa9e22a472b7e10b5f9298",
"detected_licenses": [
"MIT"
],
"directory_id": "3afb15f12755a3a83264edb78109ee718437d779",
"extension": "c"... | stackv2 | #include "refine_topology.h"
#include <assert.h>
#include "arrays.h"
#include "loop.h"
#include "mesh.h"
#include "tables.h"
/* two more dimensions are introduced in the implementation:
* the "base" dimension is the product dimension minus one,
* product entities are generated by connecting a base entity
... | 2.390625 | 2 |
2024-11-18T22:21:30.298643+00:00 | 2017-01-19T02:02:50 | 194b9aec6557ed681d09c68f73d1930cd7c76865 | {
"blob_id": "194b9aec6557ed681d09c68f73d1930cd7c76865",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-19T02:02:50",
"content_id": "2aeb86732e906b398bb484eeb1f0b748f5d0d855",
"detected_licenses": [
"PostgreSQL",
"BSD-2-Clause"
],
"directory_id": "4d5f2cdc0b7120f74ba6f357b21dac063e... | stackv2 | /*-------------------------------------------------------------------------
*
* smgr.c
* public interface routines to storage manager switch.
*
* All file system operations in POSTGRES dispatch through these
* routines.
*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions ... | 2.078125 | 2 |
2024-11-18T22:21:39.961043+00:00 | 2018-03-06T15:43:36 | 82a71ff5aa71ac613adb9ac7feb4d7caecc425c1 | {
"blob_id": "82a71ff5aa71ac613adb9ac7feb4d7caecc425c1",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-06T15:43:36",
"content_id": "30cfd54e289d7949490efa9d27a2ad2d72880f3a",
"detected_licenses": [
"MIT"
],
"directory_id": "77df34f8f8e20dee990c02094020445e3ae49395",
"extension": "c"... | stackv2 | //
// Created by Nicolas A Perez on 2/11/18.
//
#include "collective_collect_all.h"
#include <mpi.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
int number_of_dimensions(int numberOfProcessors);
int get_adj(int processorId, int dimension);
int total_package_size(const int *count_buffer);
void encode_pa... | 2.640625 | 3 |
2024-11-18T22:21:40.328705+00:00 | 2016-10-06T02:42:20 | 5bcfca8a24bbb10950f52e7e96c6cecc661eaaf2 | {
"blob_id": "5bcfca8a24bbb10950f52e7e96c6cecc661eaaf2",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-06T02:50:02",
"content_id": "4882fa2cfbd8396b8361aa20df2c6209fabf670a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d04eeab9d686bd99893c07058261ca5fd2cb8732",
"extensio... | stackv2 | /*
* Copyright 2014-2016 Nippon Telegraph and Telephone Corporation.
*
* 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 requi... | 2.328125 | 2 |
2024-11-18T23:25:00.859833+00:00 | 2021-06-14T01:54:02 | 21d61d4f65d3936dd476ef0bd0907cb3b69d6884 | {
"blob_id": "21d61d4f65d3936dd476ef0bd0907cb3b69d6884",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-14T01:54:02",
"content_id": "0d94351046346f5e6e44f86d080bb9604a760373",
"detected_licenses": [
"MIT"
],
"directory_id": "8f3e764cbe2768c0bfd608cd5c6ec1e5ed093816",
"extension": "c"... | stackv2 | /**
* Copyright (C) 2017, Earth Computing Inc. All rights reserved.
*
*
* @file entl_reflect.c
* @brief ENTL refrect code
*
* Author: Atsushi Kasuya
*
*/
#include "entl_reflect.h"
__intrinsic void
entl_reflect(unsigned int dst_isl, unsigned int dst_me, unsigned int dst_xfer,
... | 2.1875 | 2 |
2024-11-18T23:25:00.974948+00:00 | 2018-05-06T05:15:37 | 795134e3898e6eb4ae6cd6bf9207b72aa68ce29f | {
"blob_id": "795134e3898e6eb4ae6cd6bf9207b72aa68ce29f",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-06T05:15:37",
"content_id": "51f55a5e220fcc9e7696c89c151741b986a891e8",
"detected_licenses": [
"MIT"
],
"directory_id": "3b29fe203a16fcca5e1f68c717a22c515f68a731",
"extension": "c"... | stackv2 | #include <string.h>
#include <stdio.h>
#include "../common.h"
int main(void) {
unsigned char best_input[1024];
memset(best_input, 0, 1024);
FILE *fp = fopen("8.txt", "rb");
if (fp == NULL) {
fprintf(stderr, "8.txt could not be found\n");
exit(EXIT_FAILURE);
}
char input[1024];
... | 2.734375 | 3 |
2024-11-18T23:25:01.113404+00:00 | 2017-03-14T05:00:59 | 9e9a9c2cdd631e83cb0771b58c3f444f3d818989 | {
"blob_id": "9e9a9c2cdd631e83cb0771b58c3f444f3d818989",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-14T05:00:59",
"content_id": "1932487ffcda7787e78892bcba82baeaff520e58",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fa3a994751395f959e9fd9c9241b0ec5c17becc6",
"extensio... | stackv2 | /*
* Copyright 2016 Jeff Upton
*
* 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.046875 | 2 |
2024-11-18T23:25:01.162860+00:00 | 2018-04-23T21:23:41 | 6b6ecea2d537d538d7d7d4c90dfa2917f9023a0c | {
"blob_id": "6b6ecea2d537d538d7d7d4c90dfa2917f9023a0c",
"branch_name": "refs/heads/develop",
"committer_date": "2018-04-23T21:23:41",
"content_id": "4ea819d48dfebf137f18d8503f2d85be5388c439",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d",
"extension"... | stackv2 | /* *********************************************************************** */
/* *********************************************************************** */
/* STRFUNCS String and Memory Functions Library Module */
/* *********************************************************************** */
/*
File Name : %M... | 2.3125 | 2 |
2024-11-18T23:25:01.782788+00:00 | 2021-01-24T00:43:05 | 5ba860faf0efda4c11aac5e935497b13b49c414f | {
"blob_id": "5ba860faf0efda4c11aac5e935497b13b49c414f",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-24T00:43:05",
"content_id": "e3c5c17c10ab049ad8c7672efdb096e72d6cbc5f",
"detected_licenses": [
"MIT"
],
"directory_id": "e9ddf45110a834f36b96edf4ccc6d6172e6769ea",
"extension": "c"... | stackv2 | /*
* File : RunInSRAM.c
* Remark : Sample to demonstrate program that can be ran in SRAM. This is the same as any other samples except
* for the linker script. The linker script put .text section in SRAM.
*
* *** Note:
* NanoOS can not guaranty that run in SRAM is fast... | 3.09375 | 3 |
2024-11-18T23:25:02.061345+00:00 | 2017-11-01T13:49:38 | e925d496e61c1acfa6b2471a327cb372bbd1af95 | {
"blob_id": "e925d496e61c1acfa6b2471a327cb372bbd1af95",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-01T13:49:38",
"content_id": "c2c26cf9673deee73c3fb8d2621fa0114ee8dfee",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "9259236e584af4a828fe05c22c0478f3820edc5c",
"extens... | stackv2 | /**
* Copyright(c) 2016-2017 rryqszq4
*
*
*/
#include "ngx_http_python_module.h"
#include "ngx_http_python_code.h"
ngx_http_python_code_t *
ngx_http_python_code_from_file(ngx_pool_t *pool, ngx_str_t *code_file_path)
{
ngx_http_python_code_t *code;
size_t len;
u_char *p;
code = ngx_pcalloc(pool... | 2.296875 | 2 |
2024-11-18T23:25:02.146795+00:00 | 2017-03-05T02:18:41 | 2ea29eb8d605c2772f88e870c9e20ba8b82b8c46 | {
"blob_id": "2ea29eb8d605c2772f88e870c9e20ba8b82b8c46",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-05T02:18:41",
"content_id": "cbbbaa11445bcfaa4d53d1267ba80386bbed81ac",
"detected_licenses": [
"MIT"
],
"directory_id": "630fcad605f12ba3c47aa7d85ec7f11178d16f1d",
"extension": "c"... | stackv2 | /* @author Xingfan Xia*/
/*** Creation and destruction ***/
/* Feel free to read from this struct's members, but don't write to them except
through the accessor functions. */
typedef struct sceneNode sceneNode;
struct sceneNode {
GLdouble rotation[3][3];
GLdouble translation[3];
GLuint unifDim;
GLuint texNum;
GL... | 2.984375 | 3 |
2024-11-18T23:25:03.431812+00:00 | 2014-04-23T05:30:39 | fa771d498c8a85e16278c02e430c80dfcc758364 | {
"blob_id": "fa771d498c8a85e16278c02e430c80dfcc758364",
"branch_name": "refs/heads/master",
"committer_date": "2014-04-23T05:30:39",
"content_id": "36a1fc13793a23f7b921fa629837621c2d901a17",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "34e599728a1ff8565bfab19b40e34e42645ab773",
"extens... | stackv2 | /* Copyright 2003-2008 Wang, Chun-Pin All rights reserved. */
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/time.h>
#include <sys/select.h>
#include <errno.h>
#include <syslog.h>
#include <string.h>
#include "smbftpd.h"
/*
* Get value from set by username and transfer the val... | 2.578125 | 3 |
2024-11-18T23:25:03.482612+00:00 | 2017-01-28T14:38:52 | a93491e7795ad12c3dc779a35b86a75d97ae3866 | {
"blob_id": "a93491e7795ad12c3dc779a35b86a75d97ae3866",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-28T14:38:52",
"content_id": "6bc9b237ddea293bb55724d2256ebedf0fdbc8e5",
"detected_licenses": [
"Unlicense"
],
"directory_id": "d0580d0be83924512da681917a22334f27b3d408",
"extension... | stackv2 | /* signals.h implements a signal handler */
#define _signals_h
/* sig_handler handles SIGCHLD and SIGINT signals.*/
void sig_handler(int signo) {
if (signo == SIGCHLD) {
waitpid(-1, NULL, WNOHANG);
} else if (signo == SIGINT) {
return;
}
}
/* Only handles SIGINT. */
void handle_signals() {
struct sigaction sa... | 2.65625 | 3 |
2024-11-18T23:25:03.547017+00:00 | 2020-05-04T21:10:03 | f18f69dc661ce3ceaa6cf2bd6afb6496ab076264 | {
"blob_id": "f18f69dc661ce3ceaa6cf2bd6afb6496ab076264",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-04T21:10:03",
"content_id": "d6ad9e57f542e9497bf43c1b7436c9f6ff14acbf",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1345f5094610b5a7c555326a18babf246cc72707",
"extens... | stackv2 | # include <stdio.h>
# include <time.h>
# include "pedsky.h"
/* N_HISTORY: Appends HISTORY record to image header. The output file
** inherits the header (except FILENAME) from the input file.
**
**
**
** Revision history:
** ---------------
** H. Bushouse 05-May-1999 Implemented
**
*/
int n_history (TaskInfo *i... | 2.234375 | 2 |
2024-11-18T23:25:03.611481+00:00 | 2022-12-20T03:38:05 | 0dc8c1332f9ef8124c977d13af2648c90077605b | {
"blob_id": "0dc8c1332f9ef8124c977d13af2648c90077605b",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-20T03:38:05",
"content_id": "1f522991401e1780d3dc2be8b0c32c6f1a520ed1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4b1aedd2f7acfc16d8be1b61cb7d7b74a8646497",
"extens... | stackv2 | /*
* This code is part of the tng binary trajectory format.
*
* Copyright (c) 2010,2013, The GROMACS development team.
* Copyright (c) 2020, by the GROMACS development team.
* TNG was orginally written by Magnus Lundborg, Daniel Spångberg and
* Rossen Apostolov. The API is implemented mainly by Magnus Lundborg,
... | 2.234375 | 2 |
2024-11-18T23:25:04.105207+00:00 | 2015-08-20T23:30:30 | dea69714f3722bda3f2d0eff0727e46865c8eeb7 | {
"blob_id": "dea69714f3722bda3f2d0eff0727e46865c8eeb7",
"branch_name": "refs/heads/main",
"committer_date": "2015-08-20T23:30:30",
"content_id": "9f24ccf276d1bddf5bd1c776cb4aec623ab50f2d",
"detected_licenses": [
"Unlicense"
],
"directory_id": "be828ef91735421ac5a09bd69807ef60ac8ef9f7",
"extension":... | stackv2 | /*
* HelloWorldAVR.c
*
* Created: 03.06.2015 18:51:15
* Author: Dmitry Victorov
*/
#define F_CPU 1000000UL // ATmega16 Internal clock frequency
#include <stdbool.h>
#include <avr/io.h>
#include <util/delay.h>
int main()
{
// DDRB register is responsible of port B lines direction.
// If some of bit... | 3 | 3 |
2024-11-18T23:25:04.246391+00:00 | 2023-04-23T11:12:08 | 19e37e0d0da0f9c396f4a9d2c752015dba40c1d7 | {
"blob_id": "19e37e0d0da0f9c396f4a9d2c752015dba40c1d7",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-23T11:12:08",
"content_id": "7e91d129c9f1624e6d67eaea17d120826ba6f2b7",
"detected_licenses": [
"MIT"
],
"directory_id": "544e7cd6e6ade047bdc9e73d4727a30230bbd7f4",
"extension": "c"... | stackv2 |
#include "ffmdecode.h"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
int targw, targh;
uint8_t * data;
int frames;
FILE * f ;
void got_video_frame( unsigned char * rgbbuffer, int linesize, int width, int height, int frame )
{
//else data = realloc( data, width*height*(++frames));
uint8_t * fd = data;
... | 2.296875 | 2 |
2024-11-18T23:25:04.607879+00:00 | 2022-05-24T21:03:38 | 7944ed581ca2bb4812d2bee4ac6f02c8a2bf91fc | {
"blob_id": "7944ed581ca2bb4812d2bee4ac6f02c8a2bf91fc",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-24T21:03:38",
"content_id": "dc10d69693569d530c7b2c3f8bf7427ef3cee8a2",
"detected_licenses": [
"MIT"
],
"directory_id": "7b4ce7c1411fb2a3b0ab088d89bf93ed97b1905d",
"extension": "h"... | stackv2 | /*
** $Id: lpcap.h $
*/
#if !defined(lpcap_h)
#define lpcap_h
#include "lptypes.h"
/* kinds of captures */
typedef enum CapKind {
Cclose, /* not used in trees */
Cposition,
Cconst, /* ktable[key] is Lua constant */
Cbackref, /* ktable[key] is "name" of group to get capture */
Carg, /* 'key' is arg's ... | 2 | 2 |
2024-11-18T23:25:04.795413+00:00 | 2016-10-18T14:19:28 | a7a0e4210992a35377397abb60cf3b5a4b54beac | {
"blob_id": "a7a0e4210992a35377397abb60cf3b5a4b54beac",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-18T14:19:28",
"content_id": "360fc0af13b800a80ecbf7a0d5ebd495f9668605",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2330e7233171525b73fd03128f0f6ae959450b4f",
"extens... | stackv2 | #include <stdio.h>
#include <debug-uart.h>
#include "uart1.h"
#include <string.h>
#include <strformat.h>
#include "debug_lprintf.h"
#ifdef USE_UART1_TRACE
#define OUTPUT_ID 1
#else
#ifdef USE_UART2_TRACE
#define OUTPUT_ID 2
#else
#ifdef USE_USBCDC_TRACE
#define OUTPUT_ID 4
#else
#define OUTPUT_ID 0
#en... | 2.40625 | 2 |
2024-11-18T23:25:05.783844+00:00 | 2022-06-12T08:21:39 | bffa7c3a576d98858e83e374f95a88b64d1378da | {
"blob_id": "bffa7c3a576d98858e83e374f95a88b64d1378da",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-12T08:21:39",
"content_id": "b6cf21c8c2438d688510e502ba0ff0b948f836f3",
"detected_licenses": [
"MIT"
],
"directory_id": "6d5121ddfdfcec8add38fae75de4d51c6b194690",
"extension": "c"... | stackv2 | #include <zephyr/types.h>
#include <stddef.h>
#include <stdio.h>
#include <errno.h>
#include <zephyr.h>
#include <sys/printk.h>
#include <sys/byteorder.h>
#include <sys/ring_buffer.h>
#include <drivers/gpio.h>
#include <drivers/uart.h>
#include <drivers/i2c.h>
#include <drivers/sensor.h>
#include <drivers/counter.h>
... | 2.28125 | 2 |
2024-11-18T23:25:06.166492+00:00 | 2016-12-07T06:30:43 | bc6b5020ab64a55f3b3c0002f7ed74b8c89b0551 | {
"blob_id": "bc6b5020ab64a55f3b3c0002f7ed74b8c89b0551",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-07T06:30:43",
"content_id": "1b3f750ec97dac49995537cf02334226222b03eb",
"detected_licenses": [
"MIT"
],
"directory_id": "9716c8da6f3e7109520e8c09de0aef7e7da7ddfd",
"extension": "c"... | stackv2 | /*
Author: Pakkpon Phongthawee
LANG: C
Problem: due_date
*/
#include<stdio.h>
int main(){
int worker,job,i,sumJob=0,cJob;
scanf("%d %d",&worker,&job);
worker*=100;
for(i=0;i<job;i++){
scanf("%d",&cJob);
sumJob+=cJob;
printf("%d\n",(sumJob/worker)+1);
}
return 0;
}
| 2.65625 | 3 |
2024-11-18T23:25:06.574657+00:00 | 2014-07-13T08:32:38 | 4cbc655b5f1c970caf5fca9eb92324bd5815f330 | {
"blob_id": "4cbc655b5f1c970caf5fca9eb92324bd5815f330",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-13T08:32:38",
"content_id": "e30c5595b98cc7edae32a134106bc83fea57c512",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "308a573defef90644963372cec081353cc46d4e9",
"extens... | stackv2 | //ROOT: src/lib/lang/lang.c
anna_object_t *anna_buffer_create()
{
return anna_object_create(buffer_type);
}
void anna_buffer_set(struct anna_object *this, ssize_t offset, unsigned char value)
{
size_t size = anna_buffer_get_count(this);
ssize_t pos = anna_idx_wrap(offset, size);
// anna_message(L"Set e... | 2.671875 | 3 |
2024-11-18T23:25:06.669928+00:00 | 2017-07-25T01:26:14 | a63292f3961d0be502ac813732f2e55d475098e7 | {
"blob_id": "a63292f3961d0be502ac813732f2e55d475098e7",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-25T01:26:14",
"content_id": "e66d6695c0209aa23978c04b83272f4c64fa4174",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "87a3c14177ae0b35fe90afe4d422244ea6e7f63d",
"extensio... | stackv2 | #ifndef BUFFER_H
#define BUFFER_H
#include "Arduino.h"
#ifdef __cplusplus
extern "C" {
#endif
/*----------------------------------------------*/
/* Type definitions */
typedef struct
{
uint16_t len;
uint16_t wr_ptr;
uint16_t rd_ptr;
uint16_t buff_size;
uint8_t *data;
} t_buffer;
/*-----------------------------... | 2.0625 | 2 |
2024-11-18T23:25:06.741512+00:00 | 2016-03-09T18:43:00 | f3145fac29b7ce60c92442fac9af7c25d4303c8e | {
"blob_id": "f3145fac29b7ce60c92442fac9af7c25d4303c8e",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-09T18:43:00",
"content_id": "be5d0f2198e3d71b285a7b33aaf875536fa2bda1",
"detected_licenses": [
"MIT"
],
"directory_id": "03dc86fced7ccf554bf525bbe0872066c0db2346",
"extension": "c"... | stackv2 | /*! ===========================================================================
@file RenderGradient.c
@brief A simple function that fills in an array of pixel data.
@copyright 2015 David Owens II. All rights reserved.
============================================================================ */
#import <sim... | 2.890625 | 3 |
2024-11-18T23:25:06.840723+00:00 | 2023-08-21T06:16:41 | 6c3393bd0a278fec61c6c3e6c8973a3f11a94998 | {
"blob_id": "6c3393bd0a278fec61c6c3e6c8973a3f11a94998",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-21T06:16:41",
"content_id": "8646cc05697d2f937794d591d1f3af65d0e5257d",
"detected_licenses": [
"MIT"
],
"directory_id": "62e9ec62c910bac5eeb77c6cf9719a1fb30f566e",
"extension": "c"... | stackv2 | #include <stdio.h>
int global_var;
int global_initialized_var = 5;
void function() {
int stack_var;
printf("the function's stack_var is at address 0x%08x\n", &stack_var);
}
int main() {
int stack_var;
static int static_initialized_var = 5;
static int static_var;
int *heap_var_ptr;
heap_va... | 3.015625 | 3 |
2024-11-18T23:25:07.427805+00:00 | 2019-04-02T03:53:42 | 0cc364245c6d5dda70c2bb4a90592bd15fa3b63a | {
"blob_id": "0cc364245c6d5dda70c2bb4a90592bd15fa3b63a",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-02T03:53:42",
"content_id": "76d812a6ab12e36eabd0cf1b0ce987daa915d2bc",
"detected_licenses": [
"MIT"
],
"directory_id": "42acbb5d140957c9d2c3975a10c9119d50023edb",
"extension": "h"... | stackv2 | /*
* File: ioMapping.h
* Author: guilherme
*
* Created on 31 de Março de 2019, 23:03
*/
#ifndef IOMAPPING_H
#define IOMAPPING_H
#include <xc.h> // include processor files - each processor file is guarded.
// This file should contain a reference of what is connected in which pin.
// Change the name of a defin... | 2.1875 | 2 |
2024-11-18T23:25:07.683626+00:00 | 2020-03-02T16:53:04 | 1273c5471b4d816b95f1ec892ea1b536c15e6888 | {
"blob_id": "1273c5471b4d816b95f1ec892ea1b536c15e6888",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-02T16:53:04",
"content_id": "419ac9d19aa3dde033eaa62142847368ac6fedd1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b4f4172eb79b0b8f5ad4470f4fdf9b93169eaaa8",
"extens... | stackv2 | /* Declare display-related functions from mipslabfunc.c */
void display_image(int x, const uint8_t *data);
void display_image2(int x, const uint8_t *data);
void display_init(void);
void display_string(int line, char *s);
void display_update(void);
uint8_t spi_send_recv(uint8_t data);
/* Declare lab-related functions f... | 2.28125 | 2 |
2024-11-18T23:25:07.750679+00:00 | 2020-09-30T16:28:01 | 99ad9928061c4957210c2622d311b8453888d131 | {
"blob_id": "99ad9928061c4957210c2622d311b8453888d131",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-30T16:28:01",
"content_id": "d43601bba93afef8c9a4746425dad4d9ca91aab0",
"detected_licenses": [
"MIT"
],
"directory_id": "221ad05902f966f85104c473afb33a84f21fccae",
"extension": "c"... | stackv2 | // https://practice.geeksforgeeks.org/problems/remove-all-duplicates-from-a-given-string/0
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void removeDuplicates(char* str, int n)
{
char* hashMap = (char*)calloc(256,sizeof(char));
int i;
for(i=0;i<256;i++)
{
hashMap[i]=0;
}
... | 3.390625 | 3 |
2024-11-18T23:25:07.986147+00:00 | 2020-04-20T00:29:31 | 91c48af019b8e3cfe700942e5a1b754fc2b11f3e | {
"blob_id": "91c48af019b8e3cfe700942e5a1b754fc2b11f3e",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-20T00:29:31",
"content_id": "8b8a46a5bca16157ca308e502fec63cebc11e9f2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "484e834ea2716a8a048f94e3f01802153e779682",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/shm.h>
#include <sys/time.h>
#include <string.h>
#include "shm.h"
Message* p_msg;
int shmemory;
int semaphore;
void intHandler(int sig) {
//turn off shared mem... | 2.828125 | 3 |
2024-11-18T23:25:08.072021+00:00 | 2022-07-15T13:25:37 | 30c34c315e0e9a30c297537c5c63766a7567a2ce | {
"blob_id": "30c34c315e0e9a30c297537c5c63766a7567a2ce",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-15T13:25:37",
"content_id": "1549812475d1c582215f8322aeaad08a343a2cc8",
"detected_licenses": [
"MIT"
],
"directory_id": "5489e7d8e4f9ad5f7ef7f77728f34a3e66164938",
"extension": "c"... | stackv2 | /**
* |----------------------------------------------------------------------
* | Copyright (c) 2016 Tilen MAJERLE
* |
* | 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 r... | 2.453125 | 2 |
2024-11-18T23:25:08.492064+00:00 | 2019-10-16T09:34:49 | d0e752b0fa3bdfee822a5453ee79bb69306e9a54 | {
"blob_id": "d0e752b0fa3bdfee822a5453ee79bb69306e9a54",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-16T09:34:49",
"content_id": "e1b83cf6797b2c6218fde3e76f8f9953c7df15f0",
"detected_licenses": [
"ISC"
],
"directory_id": "8eeb4dc93d55619b20eba6b4fede07294240a856",
"extension": "c"... | stackv2 | /*
* ISC License
*
* Copyright (C) 1984-2018 by
* Pieter van der Wolf
* Simon de Graaf
* Delft University of Technology
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission n... | 2.4375 | 2 |
2024-11-18T23:25:08.707039+00:00 | 2018-12-02T19:48:26 | 9c192dfdcf57ec5dd4e0aa28da3bcff03dc03149 | {
"blob_id": "9c192dfdcf57ec5dd4e0aa28da3bcff03dc03149",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-02T19:48:26",
"content_id": "f56a96ec920a1bf14aecc305aef0eb767b0a61ae",
"detected_licenses": [
"MIT"
],
"directory_id": "305f441eff2362fde797c9c1bdb0ef9c13805522",
"extension": "h"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <time.h>
const int BUFF_SIZE = 1024;
const int HBUFF_SIZE = 256;
int respond(int newSock, char rbuffer[BUFF_SIZE], double delay, int verbose, char HOMEPAGE... | 2.6875 | 3 |
2024-11-18T23:25:09.335824+00:00 | 2016-12-05T11:13:21 | ef48bcb1c825bc284e9a87ba97b718973834e373 | {
"blob_id": "ef48bcb1c825bc284e9a87ba97b718973834e373",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-05T11:13:21",
"content_id": "89f343aa0ca94e6b1764b0db3457d028b0a5b69f",
"detected_licenses": [
"MIT"
],
"directory_id": "e44272a0ef2e87401eb7bb45b707772011c8cd25",
"extension": "c"... | stackv2 | /*#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <sys/un.h>
#include <fcntl.h>
#include <unistd.h>
#include <pigpio.h>
#define NAME "socket1"
#define MIN_SIGNAL 1000
#define AVR_SIGNAL 1500
#define MAX_SIGNAL 2000
#define DELAY 60000... | 2.921875 | 3 |
2024-11-18T23:25:09.435460+00:00 | 2018-05-23T06:55:18 | 8056a2bc40623a004a7ded430920ffc8bed59be0 | {
"blob_id": "8056a2bc40623a004a7ded430920ffc8bed59be0",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T06:55:18",
"content_id": "00ae9423c76a68e8f40227e4a58f34b070dfb73d",
"detected_licenses": [
"MIT"
],
"directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd",
"extension": "c"... | stackv2 | // jiading.c 家丁
inherit NPC;
string ask_kid();
void create()
{
set_name("家丁", ({ "jia ding", "jia" }));
set("gender", "男性");
set("age", 35);
set("combat_exp", 4000);
set_skill("dodge", 20);
set_skill("unarmed", 20);
set_temp("apply/attack", 10);
set_te... | 2 | 2 |
2024-11-18T23:25:09.519284+00:00 | 2023-05-05T12:05:00 | 6ab911c78e4285f58fcdd47b26dd8c17a569e1b4 | {
"blob_id": "6ab911c78e4285f58fcdd47b26dd8c17a569e1b4",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-05T12:05:00",
"content_id": "310011c0404c45aac2d3837e70112aebb7b65849",
"detected_licenses": [
"MIT"
],
"directory_id": "e00bffaab5f79d783fed961697b2fbe13c57f8ef",
"extension": "c"... | stackv2 | /**
* dynprog.c: This file is part of the PolyBench/C 3.2 test suite.
*
*
* Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
* Web address: http://polybench.sourceforge.net
*/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
/* Include polybench common header. */
#include <pol... | 2.734375 | 3 |
2024-11-18T23:25:09.636137+00:00 | 2019-07-20T14:19:49 | 65013eb54087debf8f5e917b16abacf64d1e9402 | {
"blob_id": "65013eb54087debf8f5e917b16abacf64d1e9402",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-20T14:19:49",
"content_id": "c6c614447187eecbcbdff768a1f5254c1405432d",
"detected_licenses": [
"Unlicense"
],
"directory_id": "a58358f41ac6cb4cdc934016541a86996f1cca56",
"extension... | stackv2 | #ifndef __POINTER_TYPE_HEADER__
#define __POINTER_TYPE_HEADER__
#include "execute.h"
#include "typedef.h"
typedef void *callbind_error;
typedef void (*callbind_code)(Execute, addr);
typedef void (*callbind_macro)(Execute, addr, addr);
typedef void (*callbind_none)(void);
typedef void (*callbind_any)(Execute);
typedef... | 2.015625 | 2 |
2024-11-18T23:25:10.450538+00:00 | 2020-08-27T10:35:10 | acafd5285775ff49f660b64b95a3fe1fa44be2a7 | {
"blob_id": "acafd5285775ff49f660b64b95a3fe1fa44be2a7",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-27T10:35:10",
"content_id": "932c8e4a42e0087f7f222ea780bb126507ff9a03",
"detected_licenses": [
"MIT"
],
"directory_id": "f409caf214293a1c42fbdd8e859c0a7d906cb00f",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <errno.h>
#include "util.h"
void stub_set_online_cpus(__attribute__((unused)) const unsigned char max_cpu_id) { return; }
void set_online_cpus(const unsigned char max_cpu_id) {
unsigned char cpu_id = 1;
char path[40];
do {
snprintf(path, 36, "/sys/devices/system/cpu/cpu%u/online... | 2.359375 | 2 |
2024-11-18T23:25:10.655539+00:00 | 2020-06-08T07:39:35 | f93cc37e3dc2c7abfb76afa10069b2830bf308bc | {
"blob_id": "f93cc37e3dc2c7abfb76afa10069b2830bf308bc",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-08T07:39:35",
"content_id": "ee0bdee22b7ee4aa76bdcdd4cf8a62360c6a1928",
"detected_licenses": [
"MIT"
],
"directory_id": "33ed5aa84b5ec1f8c59ca11f0379160ce2d9f42f",
"extension": "c"... | stackv2 | /*
MIT License
Copyright (c) 2020 Alejandro Ambroa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, ... | 2.515625 | 3 |
2024-11-18T23:25:11.063748+00:00 | 2021-07-08T11:19:55 | 35462cde408b3f1d80a60de84afdbb80d0be217c | {
"blob_id": "35462cde408b3f1d80a60de84afdbb80d0be217c",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-08T11:19:55",
"content_id": "04e7e3db9f60d9afa675e2ab995eaaa1bc5ebf84",
"detected_licenses": [
"MIT"
],
"directory_id": "9b28c8cf948e12ec6566c2420eb9860b58569339",
"extension": "c",
... | stackv2 | //Check if a given Binary Tree is SumTree
#include <stdio.h>
#include <stdlib.h>
struct node{
int data;
struct node* left;
struct node* right;
};
struct node* newNode(int x){
struct node* temp=(struct node*) malloc(sizeof(struct node));
temp->data=x;
temp->left=NULL;
temp->right=NULL;
re... | 3.640625 | 4 |
2024-11-18T23:25:11.346544+00:00 | 2020-09-28T15:30:24 | d89737d489f5fba5cdddc78c86231316a3fdf427 | {
"blob_id": "d89737d489f5fba5cdddc78c86231316a3fdf427",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-28T15:30:24",
"content_id": "0a5b3704234fa4ad77b4d844d5fb0722514200ac",
"detected_licenses": [
"MIT"
],
"directory_id": "63acb4bd31fef41aa481274c4e3bdda1f8f3b36d",
"extension": "h"... | stackv2 | // PIC24EP512GU810 Configuration Bit Settings
// 'C' source line config statements
#include <xc.h>
// FGS
#pragma config GWRP = OFF // General Segment Write-Protect bit (General Segment may be written)
#pragma config GSS = OFF // General Segment Code-Protect bit (General Segment Code pro... | 2.0625 | 2 |
2024-11-18T23:25:11.424282+00:00 | 2021-06-10T02:41:53 | 546dc8e416c7306955f5b502a6c91e03645d6e4f | {
"blob_id": "546dc8e416c7306955f5b502a6c91e03645d6e4f",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-10T02:41:53",
"content_id": "92d829fa9b6be06212277c2866afa3855dc08cfd",
"detected_licenses": [
"MIT"
],
"directory_id": "ced389697643ebadb612e4cd185152bb461f5b0a",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <ctype.h>
#include <math.h>
int main()
{
setlocale(LC_ALL,"Portuguese");
int Num = 0;
printf("\t\t\t\tCapítulo 4 - Letra L\n\n");
printf("Digite um número: \n>>> ");
scanf("%i", &Num);
if (!(Num > 3))
printf("\nO número digitado foi %i... | 2.609375 | 3 |
2024-11-18T23:25:12.905458+00:00 | 2023-08-13T17:11:39 | 19318126feb5d401121bd40c86e08ac1aeb39cda | {
"blob_id": "19318126feb5d401121bd40c86e08ac1aeb39cda",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T17:11:39",
"content_id": "80f9f7b85cc7116e300186ff68ac72345c364b4a",
"detected_licenses": [
"MIT"
],
"directory_id": "40eadff029ed08d1c01ee93a735c1b46afca5c19",
"extension": "c"... | stackv2 | /*
* The MIT License
*
* Copyright (C) 2010-2019 Alexander Saprykin <saprykin.spb@gmail.com>
*
* 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... | 2.015625 | 2 |
2024-11-18T23:25:13.008393+00:00 | 2016-08-06T08:41:37 | 06d2d9bb79f4da5fcea74127fa86f8a7c81125d0 | {
"blob_id": "06d2d9bb79f4da5fcea74127fa86f8a7c81125d0",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-06T08:41:37",
"content_id": "d5a359c1420b28cdbd246431cbcc1b24023cca64",
"detected_licenses": [
"MIT"
],
"directory_id": "53191b2385f51f54d0115c3574a2860da96451b4",
"extension": "c"... | stackv2 | #include <stdlib.h>
int singleNumber(int A[], int n)
{
if (!A || !n)
abort();
if (n == 1)
return(A[0]);
int ones, twos, common;
int i;
for (ones = twos = i = 0; i < n; i++) {
twos |= ones & A[i];
ones ^= A[i];
common = ~(ones & twos);
ones &= common;
twos &= common;
}
return(ones);
}
void main... | 2.609375 | 3 |
2024-11-18T23:25:13.169602+00:00 | 2021-03-30T14:49:29 | 4761b959cbf38b60005f330bc0eee75de9dfbef0 | {
"blob_id": "4761b959cbf38b60005f330bc0eee75de9dfbef0",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-30T14:49:29",
"content_id": "81de0e33f98eb2b2f848c7becb2de168e817ac28",
"detected_licenses": [
"MIT"
],
"directory_id": "14355c912c84fa012e94d4dba1086f5ce8059535",
"extension": "c",
... | stackv2 | #include <graphics.h>
#include <conio.h>
#include <math.h>
#include <stdlib.h>
//queue functions
struct node
{
struct node* next;
struct t_node* data;
};
struct node* new_qNode(struct t_node* x)
{
struct node* temp=(struct node*)malloc(sizeof(struct node));
temp->next=NULL;
temp->data=x;
retur... | 3.03125 | 3 |
2024-11-18T23:25:14.734791+00:00 | 2022-02-11T23:58:00 | a2382f571ec184e9a03142f1cc7d31112be6495c | {
"blob_id": "a2382f571ec184e9a03142f1cc7d31112be6495c",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-11T23:58:00",
"content_id": "ddadd46348f976c343870ecd30f483aba51dc787",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "39a525871c500f97221d8074aca85a4dd3bf7955",
"extens... | stackv2 | /*
* fpu.c -- floating-point unit
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "console.h"
#include "error.h"
#include "fpu.h"
Word fpAdd(Word x, Word y) {
/* !!!!! FIXME !!!!! */
return 0;
}
Word fpSub(Word x, Word y) {
/* !!!!! FIXME !!!!! */
return 0;
}
... | 2.203125 | 2 |
2024-11-18T23:25:15.401057+00:00 | 2020-12-20T07:20:36 | db7edd86b77890ed9f01fe65422be16a5d9137aa | {
"blob_id": "db7edd86b77890ed9f01fe65422be16a5d9137aa",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-20T07:20:36",
"content_id": "b94821e3621b6a59e0fcd6ba250d42164d48d189",
"detected_licenses": [
"MIT"
],
"directory_id": "3fa967088f687185150a54752668f41bb0adda5e",
"extension": "c"... | stackv2 | /*
Copyright (c) 2020 Gameblabla
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, publish, distribute, subl... | 2.390625 | 2 |
2024-11-18T23:25:16.373952+00:00 | 2018-04-25T15:36:59 | abf367a5441eeb4d8a1c0532bb7844eac1d5ffa5 | {
"blob_id": "abf367a5441eeb4d8a1c0532bb7844eac1d5ffa5",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-25T15:36:59",
"content_id": "c51e0d78597c9bdd819deae5b4b3dbef230ca6d4",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
],
"directory_id": "be3f014f6655db2d0a286... | stackv2 | // automatically generated by the FlatBuffers compiler, do not modify
#ifndef FLATBUFFERS_GENERATED_IS84ISISEVENTS_H_
#define FLATBUFFERS_GENERATED_IS84ISISEVENTS_H_
#include "flatbuffers/flatbuffers.h"
struct ISISData;
enum RunState {
RunState_SETUP = 0,
RunState_RUNNING = 1,
RunState_MIN = RunState_SETUP,... | 2.234375 | 2 |
2024-11-18T23:25:16.891735+00:00 | 2020-05-29T11:50:48 | bd0b5454a1a55d44d0b4636cbe21db0ea0e29c90 | {
"blob_id": "bd0b5454a1a55d44d0b4636cbe21db0ea0e29c90",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-29T11:50:48",
"content_id": "7f7ed3ffbcfbf8d8cac82bff4d575d98ba6705f4",
"detected_licenses": [
"MIT"
],
"directory_id": "43d2fed1566e1cfbe850bbfc4b03df0486ff94eb",
"extension": "h"... | stackv2 | #ifndef DFS_ARRAY_H
#define DFS_ARRAY_H
#include "dfs_types.h"
#include "dfs_string.h"
struct array_s
{
void *elts; //数组首地址 element
uint32_t nelts; //已使用的元素个数
size_t size; //每个元素的大小
uint32_t nalloc; //整个数组长度
pool_t *pool; //数组所在的内存池
};
typedef int (*array_cmp_func)(void *, void *);
... | 2.078125 | 2 |
2024-11-18T23:25:16.951774+00:00 | 2023-06-16T15:47:02 | fe4b4dff6529185c1698817affc6bc7ca7427bf9 | {
"blob_id": "fe4b4dff6529185c1698817affc6bc7ca7427bf9",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-16T15:47:02",
"content_id": "40bd4acad855de8250ef50e68471b10a7944df9e",
"detected_licenses": [
"Zlib"
],
"directory_id": "8301e9607481f19635c9ab5bfa0b879c5d6234f8",
"extension": "c... | stackv2 | /*
gcsd.h
Hardware routines for reading and writing to SD geckos connected
to the memory card ports.
These functions are just wrappers around libsdcard's functions.
Copyright (c) 2008 Sven "svpe" Peter <svpe@gmx.net>
Redistribution and use in source and binary forms, with or without modification,
are permi... | 2.046875 | 2 |
2024-11-18T23:25:17.196859+00:00 | 2022-05-15T20:29:08 | b8d6ce30349b1f5a1b16f1d9ff8fdc5bebf98ba1 | {
"blob_id": "b8d6ce30349b1f5a1b16f1d9ff8fdc5bebf98ba1",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-15T20:29:08",
"content_id": "091f5cea89385f80a6369f17afe1ca6c4078455e",
"detected_licenses": [
"MIT"
],
"directory_id": "76f9898ff7a555f4a729d725056a317af818375d",
"extension": "c"... | stackv2 | static inline uint32_t getfield(uint32_t w, int n, int s)
{
return (w >> s) & (((uint32_t)1 << n) - 1);
}
static inline int32_t argvi(gfxd_macro_t *m, int idx)
{
return m->arg[idx].value.i;
}
static inline uint32_t argvu(gfxd_macro_t *m, int idx)
{
return m->arg[idx].value.u;
}
static inline float argvf(gfxd_macr... | 2.3125 | 2 |
2024-11-18T23:25:17.276219+00:00 | 2016-04-05T11:35:01 | 85480f14800c50c6a2eb1dd83ddb31316dc29375 | {
"blob_id": "85480f14800c50c6a2eb1dd83ddb31316dc29375",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-05T11:35:01",
"content_id": "c3751bc111642591f81ffff03e6b628fee96c77b",
"detected_licenses": [
"MIT"
],
"directory_id": "2c0aa76cfbb1b8b296aefd7a73154db162a8d94c",
"extension": "h"... | stackv2 | #ifndef __HIDEENTRY_H_VERSION__
#define __HIDEENTRY_H_VERSION__ 100
#include <ntddk.h>
#include "SortedList.h"
#define TAG_HIDE_ADDRESS_ENTRY ('EdiH')
#define TAG_HIDE_ARRAY ('AdiH')
typedef enum _HIDE_TYPE
{
REPLACE,
REPLACE_NATIVE_POINTER,
DEL,
} HIDE_TYPE;
typedef struct _HIDE_ADDRESS_ENTRY
{
SORTED_LIST_ENT... | 2.0625 | 2 |
2024-11-18T23:25:17.344739+00:00 | 2023-02-16T18:40:06 | d468660e8df3393b5205f6f2f5950e1330da3fc0 | {
"blob_id": "d468660e8df3393b5205f6f2f5950e1330da3fc0",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T18:40:06",
"content_id": "ead78d693a632081b2004b109b8c58eb2fa30228",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "fb6245383e7e7d53ab94b6eb2bb09469db466c58",
"extensio... | stackv2 | /*
* Copyright 2014, University Corporation for Atmospheric Research.
* All rights reserved. See file COPYRIGHT in the top-level source-directory
* for copying and redistribution conditions.
*/
#ifndef _LDMPRINT_H_
#define _LDMPRINT_H_
#include "ldm.h"
#include <stddef.h> /* size_t */
#include <stdarg.h> /* ... | 2.171875 | 2 |
2024-11-18T23:25:17.813205+00:00 | 2014-02-06T13:47:14 | ec5602a062264003e836d6357b12226f8e5fbea7 | {
"blob_id": "ec5602a062264003e836d6357b12226f8e5fbea7",
"branch_name": "refs/heads/master",
"committer_date": "2014-02-06T13:47:14",
"content_id": "6161109d32d8aade72507bb4d66bef2d3a43ed4c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "118576db820fadf637e81b800c8a71bdaee5629c",
"extens... | stackv2 |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <tee_client_api.h>
#include <trustlets/rsa_trustlet.h>
#include <tee_utils.h>
#define RSABITLEN 512
#define RSABYTELEN (RSABITLEN/8)
static TEEC_Context ctx;
static TEEC_Session session;
int newKey(char *);
int privateKey(char *);
int publicKey(cha... | 2.265625 | 2 |
2024-11-18T23:25:18.200417+00:00 | 2018-05-02T04:49:10 | 004bf7d3682234124b949a97172d3be53a577678 | {
"blob_id": "004bf7d3682234124b949a97172d3be53a577678",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-02T04:49:10",
"content_id": "5da78f28a09662e009bc0688ed632230ea374225",
"detected_licenses": [
"MIT"
],
"directory_id": "ca8b82f34a4953bd464f54d7026f5b89d61c3955",
"extension": "c"... | stackv2 | #include "all.h"
#define LOGFILESIZE_MAX 10000000 // 10m
#define LOGFILE_PERIOD 3600
int coutOff;
static FILE *WrFP;
static char *LogFileBase;
static uint64 LogFileSize;
static uint LogFileTime;
static void CloseWrFP(void)
{
if(WrFP)
{
fileClose(WrFP);
WrFP = NULL;
}
}
void setCoutWrFile(char *file, char *mo... | 2.359375 | 2 |
2024-11-18T23:25:18.312470+00:00 | 2020-11-01T13:42:59 | ae06a6fe121afd22fb260a292d21493737b36cb9 | {
"blob_id": "ae06a6fe121afd22fb260a292d21493737b36cb9",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-01T13:42:59",
"content_id": "133e2194436b64b8fc4249e13ce07e446a14631d",
"detected_licenses": [
"0BSD"
],
"directory_id": "66acc667e8690db0968237baa5342fe29353c079",
"extension": "c... | stackv2 | #include <radix_sort.h>
#include <eval.h>
void radixSort_test()
{
// Setup
uint32_t unsorted[] = {40, 19, 21, 20, 50, 2};
uint32_t expected[] = { 2, 19, 20, 21, 40, 50};
uint32_t *sorted;
CLONE_ARRAY(6, unsorted, sorted);
// Test
printf("\n" "radixSort_test:\n");
radixSort(6, sorted, 50);
PRINT_ARRAYS(6, s... | 2.484375 | 2 |
2024-11-18T23:25:18.950947+00:00 | 2020-12-15T13:35:13 | f658705426b1b70098c77da299fa2b6a7b8b489c | {
"blob_id": "f658705426b1b70098c77da299fa2b6a7b8b489c",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-15T13:35:13",
"content_id": "97d10fcc6eee7256144b367d69217d95f3d90c0a",
"detected_licenses": [
"MIT"
],
"directory_id": "4d8ecf6a48d814057f0b4d37712e407a3dfa9a4b",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* scn_print_mat.c :+: :+: :+: ... | 2.59375 | 3 |
2024-11-18T23:25:19.083165+00:00 | 2014-07-17T05:00:13 | 9bf93ae5f0bb58193a378061be8267f8cb93eb05 | {
"blob_id": "9bf93ae5f0bb58193a378061be8267f8cb93eb05",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-17T05:00:13",
"content_id": "ef7b53129be3b40128a764040335f2264cc34791",
"detected_licenses": [
"MIT"
],
"directory_id": "5e403db9522358f02ddc44f88a40dbd7a01caa20",
"extension": "c"... | stackv2 | // A zero-indexed array A consisting of N integers is given.
// An equilibrium index of this array is any integer P such that 0 = P < N
// and the sum of elements of lower indices is equal to the sum of elements of higher indices,
// i.e. A[0] + A[1] + ... + A[P-1] = A[P+1] + ... + A[N-2] + A[N-1].
// Sum of zero eleme... | 3.375 | 3 |
2024-11-18T23:25:19.146188+00:00 | 2020-10-01T20:27:52 | 8590d56602a22e6c1110b9b4bb7cf7e00d317894 | {
"blob_id": "8590d56602a22e6c1110b9b4bb7cf7e00d317894",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-01T20:27:52",
"content_id": "129943370618ff209fd243a9d4b678880a95b5a8",
"detected_licenses": [
"MIT"
],
"directory_id": "f4752ed453ae2b0758a4b3dd32bde1f149790c72",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int main (){
float j,m;
printf("Digite um comprimento em jardas: ");
scanf("%f",&j);
m = 0.91*j;
printf("o comprimento em metros e %.2f",m);
return 0;
}
| 2.890625 | 3 |
2024-11-18T23:25:19.753619+00:00 | 2017-12-08T04:51:40 | 40d43875e15fefd04d6f822f6f6131d952eeb316 | {
"blob_id": "40d43875e15fefd04d6f822f6f6131d952eeb316",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-08T04:51:40",
"content_id": "3ae071abde57246fa5b151766c6bbcafd96f6423",
"detected_licenses": [
"MIT"
],
"directory_id": "c664625cc7751459e519c80c7d118a60b6306dce",
"extension": "h"... | stackv2 | #ifndef GBAIO_H
#define GBAIO_H 1
#include <stdint.h>
#include <stdbool.h>
#define MEM_IO 0x4000000
#define REG_KEYINPUT (* (volatile uint32_t*) 0x4000130)
/**
* Key codes.
*/
#define KEY_A 0x1
#define KEY_B 0x2
#define KEY_SELECT 0x4
#define KEY_START 0x8
#define KEY_RIGHT 0x10
#define KEY_LEFT 0x20
#define K... | 2.484375 | 2 |
2024-11-18T23:25:19.977937+00:00 | 2018-07-11T18:18:13 | d46d1dea226d55a39577955ed84e8185cee5d78f | {
"blob_id": "d46d1dea226d55a39577955ed84e8185cee5d78f",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-11T18:18:13",
"content_id": "2cd0175827ef2b3ecdbde01b63a7f177a09ea9e3",
"detected_licenses": [
"MIT"
],
"directory_id": "333ccea84459b394d22386b031114cd0088e2b72",
"extension": "c"... | stackv2 | /* NOT IMPLEMENTED YET
* NB. This is more likely to be incorrect as it will be tested less */
#define _WIN32_WINNT 0x0600
#include "tftp.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <limits.h>
#include <string.h>
#include <stdint.h>
#include <direct.h>
#include <time.h>
#include <winsock2.h>... | 2.28125 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.