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:06:00.860307+00:00 | 2016-02-15T11:53:04 | 9a76c6f97ad16fdd393e050b1e96eb5571ac782a | {
"blob_id": "9a76c6f97ad16fdd393e050b1e96eb5571ac782a",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-15T11:53:04",
"content_id": "6611a640a277fb1f30828f186b812afc708a9735",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "97c8b89985ae555c224680a36fa45143da98a6ea",
"extensio... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sigupdate.c :+: :+: :+: ... | 2.21875 | 2 |
2024-11-18T23:06:01.619167+00:00 | 2014-06-10T03:14:36 | 83172b0785595c610bc77a8c7f2bde72274cd031 | {
"blob_id": "83172b0785595c610bc77a8c7f2bde72274cd031",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-10T03:14:36",
"content_id": "292246d3a2df56f9a84b75ba1503f46b0de40e4c",
"detected_licenses": [
"MIT"
],
"directory_id": "8a84e6ab2925235d870c76685e61ddeba08e6c25",
"extension": "c"... | stackv2 | /*Demonstrate that copying a file with metadata copies the metadata*/
/*This file just reads the metadata from the new copied file "copy.txt" and prints it out */
/*Run test2.c first to generate README.txt to be copied.*/
/*Run test5.sh to copy README.txt*/
/*Run this file to verify copy.txt still holds metadata*/
#inc... | 2.984375 | 3 |
2024-11-18T23:06:02.025431+00:00 | 2021-03-20T01:32:33 | 43ad1ed8b3c398a8a6c9b6caa02dc270054d6383 | {
"blob_id": "43ad1ed8b3c398a8a6c9b6caa02dc270054d6383",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-20T01:32:33",
"content_id": "42d53b15a26b222c6fb7aada1d5c72af64d1708d",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "fe7ab9b607890659f11c3c48350bb8d811a9bdc9",
"extens... | stackv2 | #include <sched/smp.h>
#include <int/idt.h>
#include <int/gdt.h>
#include <int/apic.h>
#include <debug.h>
#include <acpi/madt.h>
#include <drivers/hpet.h>
extern symbol smp_core_init_begin;
extern symbol smp_core_init_end;
static_vec(struct core_local, core_locals);
static void prep_core_init(size_t stack, uint64_t ... | 2.203125 | 2 |
2024-11-18T23:06:02.239649+00:00 | 2021-08-10T17:23:50 | 1f91622b1f82ddec29bf429324ec47064ea2fd4f | {
"blob_id": "1f91622b1f82ddec29bf429324ec47064ea2fd4f",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-10T17:23:50",
"content_id": "3e024ce20a06730c3977873aba1a50d02ede5ef7",
"detected_licenses": [
"MIT"
],
"directory_id": "a4e35947714af7e73159d918000f13b85a7d3953",
"extension": "c"... | stackv2 | #include <unistd.h>
#include <stdio.h>
int *char_to_binary(char c);
void ft_putchar(char c);
char binary_to_char(char *binary);
int main(int argc, char *argv[])
{
int *binary;
int i;
char a;
char *string;
i = 0;
if(argv[1][0] == '0')
{
i = 2;
while(i < argc)
{
a = binary_to_char(argv[i]);
ft_... | 3.046875 | 3 |
2024-11-18T23:06:02.512059+00:00 | 2018-10-24T04:02:14 | d00445263864f9f1a34f4590a2b275611a1e6dd6 | {
"blob_id": "d00445263864f9f1a34f4590a2b275611a1e6dd6",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-24T04:02:14",
"content_id": "606f532db630082062caf2e73b7e7dc7db72c35d",
"detected_licenses": [
"MIT"
],
"directory_id": "348b4cf286f99c7cb2abb3582d974de5cda0284b",
"extension": "c"... | stackv2 | /* ========================================
*
* Copyright Ethan Gordon, Luke Pfleger, 2016
* Car Lab, Task 2
* PID Loop Module
*
* ========================================
*/
#include "pid.h"
#include <stdlib.h>
extern int millis;
/* Constants */
#define MAX_PID 1
#define EMA_ALPHA 0.1f
#define DEADBAND 0.001f
... | 3.109375 | 3 |
2024-11-18T23:06:02.967065+00:00 | 2023-05-26T07:03:59 | 9bf756d766eabe3be5bd7501210c2e3e7498896e | {
"blob_id": "9bf756d766eabe3be5bd7501210c2e3e7498896e",
"branch_name": "refs/heads/hx20-hx30",
"committer_date": "2023-05-26T07:03:59",
"content_id": "869cad4493eb5806673159d9d56240df36107105",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f9e7d65cb784c01a0200145ba8d289afe41d4a56",
"ext... | stackv2 | /* Copyright 2014 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.
*/
/* Host command module for PD MCU */
#include "charge_state.h"
#include "common.h"
#include "console.h"
#include "gpio.h"
#include "host_command.h... | 2.046875 | 2 |
2024-11-18T23:06:03.048522+00:00 | 2022-08-06T21:27:59 | 1c401a345cd6212ce8b4e6c7de13d0ea28c06578 | {
"blob_id": "1c401a345cd6212ce8b4e6c7de13d0ea28c06578",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T18:51:07",
"content_id": "356e75db2973d09b2e28d567bf734b93c65af423",
"detected_licenses": [
"ISC"
],
"directory_id": "03c4541abb686e34572d76786db168bcd370aaa9",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include "tap.h"
#include "array.h"
#include "util.h"
typedef struct {
char key[64];
int value;
} Item;
static int values[] = { 2, 3, 5, 7, 11 };
static const size_t len = LENGTH(values);
static b... | 3.09375 | 3 |
2024-11-18T23:06:03.187519+00:00 | 2022-08-10T20:28:43 | f8575a3914327933777069748f21233febf5185f | {
"blob_id": "f8575a3914327933777069748f21233febf5185f",
"branch_name": "refs/heads/main",
"committer_date": "2022-11-18T03:33:05",
"content_id": "aa994de9acbf0b64d72f29690c7ae33de1d76c40",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c7f3db94cc3d69cd9a2ae24aa3c69cd767b28672",
"extensio... | stackv2 | // clang-format off
// RUN: %c-to-llvm -fno-discard-value-names %omp_c_flags %s | %apply-typeart -typeart-stack -typeart-call-filter -typeart-filter-pointer-alloca=false -S 2>&1 | %filecheck %s
// RUN: %c-to-llvm -fno-discard-value-names %omp_c_flags %s | %opt -O2 -S | %apply-typeart -typeart-stack -typeart-call-filter... | 2 | 2 |
2024-11-18T23:06:03.763855+00:00 | 2020-01-30T15:52:16 | 864150f28cc29d6241bae31db8e583b691d576db | {
"blob_id": "864150f28cc29d6241bae31db8e583b691d576db",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-30T15:52:16",
"content_id": "e2ce8d55b6ba2a5df70990edc875f555543ca726",
"detected_licenses": [
"MIT"
],
"directory_id": "40de3da30239862f11a946166b50438174c2fd4e",
"extension": "c"... | stackv2 | inherit "obj/monster";
reset(arg) {
object eq,eq2,eq3,eq4;
::reset(arg);
if(arg) return;
set_level(35);
set_str(query_str()*2);
set_exp(query_exp() /2);
set_name("guard");
set_alias("gateguard");
set_short("A guard watching the gate of Duranghom");
set_long("The guard looks skillful and muscular. He... | 2.046875 | 2 |
2024-11-18T23:06:08.537065+00:00 | 2015-06-25T09:36:02 | 9af5d9d17d03f1c45cecc4f597f1b930dbca78f6 | {
"blob_id": "9af5d9d17d03f1c45cecc4f597f1b930dbca78f6",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-25T09:36:02",
"content_id": "4c0da086f4d2905e947bb37d4f6c28d41c69591a",
"detected_licenses": [
"MIT"
],
"directory_id": "a1d8c7b3af2bcba1597e7483275f325bf2c78338",
"extension": "c"... | stackv2 | /*
** separator_pipe.c for pipe in /home/ayasch_d/Home/rendu/PSU_2014_42sh
**
** Made by Dan Ayasch
** Login <ayasch_d@epitech.net>
**
** Started on Fri May 22 11:03:25 2015 Dan Ayasch
** Last update Sun Jun 7 15:43:33 2015 Dan Ayasch
*/
#include <sys/types.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <... | 2.5 | 2 |
2024-11-18T23:06:11.015651+00:00 | 2020-01-30T15:52:16 | fba9bb4db36104d32fd0586202921e0e2e8cee17 | {
"blob_id": "fba9bb4db36104d32fd0586202921e0e2e8cee17",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-30T15:52:16",
"content_id": "ac0901a6e22dfd5724e8b59d5c7d9e7001b32367",
"detected_licenses": [
"MIT"
],
"directory_id": "40de3da30239862f11a946166b50438174c2fd4e",
"extension": "c"... | stackv2 | #define STACK_D "/daemons/string_stack_d"
int max_weight, local_weight;
void set_max_weight(int i) {
max_weight=i;
call_out("end_pocket", i);
}
end_pocket() {
object ob;
int i;
ob = all_inventory(this_object());
for(i=0;i<sizeof(ob);i++) {
move_object(ob[i], environment(this_player()));
}
write("The void pocket ... | 2.109375 | 2 |
2024-11-18T23:06:11.089245+00:00 | 2021-10-18T15:02:16 | c1658cda6dc8aff8c7f9568c01480099fa5a7174 | {
"blob_id": "c1658cda6dc8aff8c7f9568c01480099fa5a7174",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-18T15:02:16",
"content_id": "2ac39e69f4424ece0d72f84b1de73008b53b27d2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "47fe446ed57af1183a88cc25ce683e88d11058f5",
"extensio... | stackv2 | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 2.109375 | 2 |
2024-11-18T23:06:11.216331+00:00 | 2020-01-26T13:24:46 | 8fe563722e79b8e957565a16dbaf3a5ceb5fc904 | {
"blob_id": "8fe563722e79b8e957565a16dbaf3a5ceb5fc904",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-26T13:24:46",
"content_id": "ce211c32ea9a1fd95f8c5d8e2fb76da3c531ade2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1add778e1e823880417304eebd751662088b1ec4",
"extensio... | stackv2 | // Auto generated by formatgen on Sep 21 2019
#pragma once
#if !defined(TINYIMAGEFORMAT_DECODE_H_) && !defined(TINYIMAGEFORMAT_IMAGEFORMAT_H)
#define TINYIMAGEFORMAT_DECODE_H_ 1
#include "tinyimageformat_base.h"
#if __cplusplus > 201402L
#define TIF_CONSTEXPR constexpr
#else
#define TIF_CONSTEXPR
#endif
#ifndef Tiny... | 2.359375 | 2 |
2024-11-18T23:06:14.013320+00:00 | 2014-01-11T00:23:51 | 1535f696ad31bd19cc8577b4600e85356f0088a3 | {
"blob_id": "1535f696ad31bd19cc8577b4600e85356f0088a3",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-11T00:23:51",
"content_id": "46083857c4a914672ea3a13315c4efda404fa45d",
"detected_licenses": [
"BSD-4-Clause"
],
"directory_id": "822144216853b9a428d7e91478ab041c1f8d2c3e",
"extens... | stackv2 | #include <stdio.h>
#include <string.h>
#include "../machine/x6502.h"
#include "../machine/io.h"
#include "hdimg.h"
#include "ioClassStorage.h"
static void write (ioDevice *device, u8 port, u8 data);
static void intAck (ioDevice *device);
static void cleanup(ioDevice *device);
static void sysCommand(ioDevice *device, ... | 2.515625 | 3 |
2024-11-18T23:06:14.702256+00:00 | 2023-03-29T01:11:21 | 32cee51ebc108f21b6f56690670df2d7996daab9 | {
"blob_id": "32cee51ebc108f21b6f56690670df2d7996daab9",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-29T01:11:21",
"content_id": "f82e7357bc124a99bb5ec18eed284ed61439e603",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "02147e3367d4a8aa3a40df188dc815ef3c734952",
"extens... | stackv2 | /* grow.c -- increases the size of "box" by "change" */
#include "geom/box.h"
void box_grow(box_t *box, int change)
{
box->x0 -= change;
box->y0 -= change;
box->x1 += change;
box->y1 += change;
}
| 2.59375 | 3 |
2024-11-18T23:06:15.557578+00:00 | 2015-05-02T10:35:00 | 3a8f2b5ccb46c5ae33010f2a620c70f5e2d20965 | {
"blob_id": "3a8f2b5ccb46c5ae33010f2a620c70f5e2d20965",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-02T10:35:00",
"content_id": "c42b808f4fe8df0a832ad0d1392645356b364371",
"detected_licenses": [
"MIT"
],
"directory_id": "ebce702c5f8e0801097a002acc9fd086c854e6bd",
"extension": "c"... | stackv2 | /*
* Converts binary data into a C source file. The C source file
* defines a string with the file name of the source of data, and an
* unsigned character array containing the binary data.
*
* For example, if the source file is dl.lua, the generated file
* contains:
*
* static const char dl_lua_source[] = "dl.... | 2.046875 | 2 |
2024-11-18T23:06:15.774994+00:00 | 2021-05-05T03:26:47 | 51bfaa62465d8f5a7fc6ee031ff817ce57250bca | {
"blob_id": "51bfaa62465d8f5a7fc6ee031ff817ce57250bca",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-05T03:26:47",
"content_id": "e08ac9351a2cdcc475fac9eab4e4ae13ca7e6515",
"detected_licenses": [
"MIT"
],
"directory_id": "071f5216d37f1d6a944758bd591a7601738e126f",
"extension": "c"... | stackv2 | // Chad Tolleson Copyright (c) 2019
// New Beginnings - Capstone Project
// filename: f_sqlUpdateCampDist.c
#include "headers.h"
// static function prototype
// these need to be included in the related implementation file
// versus a universal header file
static int callback(void *NotUsed, int argc, char **argv,
... | 2.515625 | 3 |
2024-11-18T23:06:15.865171+00:00 | 2013-12-19T05:08:46 | 84b636287afc294c9f7122bdf17174c58692598d | {
"blob_id": "84b636287afc294c9f7122bdf17174c58692598d",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-19T05:08:46",
"content_id": "5a60e9eecf7a5b04b133fb4650704d3c6f84fbdc",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "65d20f22eaf70bb2403d7d6ddba7b7d63e7ba32c",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
#include <strings.h>
#include <getopt.h>
#include <unistd.h>
/* TODO:
Check for root, getuid()
Display pid
Attach BPF filter
Variable length message buffer
Send file contents */
static... | 2.953125 | 3 |
2024-11-18T23:06:16.178840+00:00 | 2023-08-09T18:19:32 | d8225d5d6eb77f4413bbb7ffbf75e16c9fd1bc13 | {
"blob_id": "d8225d5d6eb77f4413bbb7ffbf75e16c9fd1bc13",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-09T18:19:32",
"content_id": "7c366afabe3eb1fe64ae7169d72d768c3160e8b0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a4a96286d9860e2661cd7c7f571d42bfa04c86cf",
"extensio... | stackv2 | /*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "sdkconfig.h"
#include "driver/adc_types_legacy.h"
#ifdef __cplusplus
extern "C" {
#endif
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP3... | 2 | 2 |
2024-11-18T23:06:16.287285+00:00 | 2020-03-13T21:58:09 | 43a9f68a435a99be32ecc180f15f90b4517fba1c | {
"blob_id": "43a9f68a435a99be32ecc180f15f90b4517fba1c",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-13T21:58:09",
"content_id": "630c10f97f28a6d0cf9933de3acd5faa09d92de3",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "035c23cff67a9e0fdce3d9a021807697fe266883",
"extens... | stackv2 |
// ---------------------------------------------------------
//
// eltopo.h
// Tyson Brochu 2009
//
// C-callable API for El Topo
//
// ---------------------------------------------------------
#ifndef ELTOPO_H
#define ELTOPO_H
#include "libexport.h"
#ifdef __cplusplus
extern "C" {
#endif
// =====... | 2.109375 | 2 |
2024-11-18T23:06:16.731606+00:00 | 2016-01-22T18:55:19 | 11819fe66bb43fdc142decb66d93d49da8b767d6 | {
"blob_id": "11819fe66bb43fdc142decb66d93d49da8b767d6",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-22T18:55:19",
"content_id": "d0030ca6c9e22ea751179ad7fbb19395ab5536dd",
"detected_licenses": [
"MIT"
],
"directory_id": "39f0f8d7a7eb0467a5988f470b39ecb8fe432200",
"extension": "c"... | stackv2 | #include<stdio.h>
int main()
{
int rows,s,n,i;
i=0;
printf("Enter rows: ");
scanf("%d",&rows);
if(rows<0)
printf("Enter a bigger number for a triangle. ;)");
for(n=1;n<=rows;n++)
{
for(s=1;s<=rows-n;s++)
{
printf(" ");
}
while(i!=2*n-1)
... | 3.1875 | 3 |
2024-11-18T23:06:18.360499+00:00 | 2017-09-10T02:16:17 | ee31be2a3837d02c31d0433ab5009cee6e46f134 | {
"blob_id": "ee31be2a3837d02c31d0433ab5009cee6e46f134",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-10T02:16:17",
"content_id": "1fda3ffc1d7980b3b7ac143f1631a9bc5ade76b6",
"detected_licenses": [
"MIT"
],
"directory_id": "3ff5f1f7f8849e3e3121c8e36053c48250e56576",
"extension": "c"... | stackv2 | /* TestFilePath:testdata/data_structure/Graph/Graph/ */
/* 测试文件所在路径,必须放在第一行,相对于Makefile所在路径 */
/* 包含的库函数,会自动展开引号中的文件,相对于Grunfile所在路径 */
#include <stdio.h>
#include "clib/types/x64.h"
#include "clib/data_structure/Graph/Graph.h"
int main(int argc,char * argv[])
{
int n,i,v,w;
scanf("%d\n",&n);
Graph g = ne... | 2.3125 | 2 |
2024-11-18T23:06:19.134111+00:00 | 2019-01-09T21:54:35 | b74f68d99c515b0bbf387985ae66dccfe79c359b | {
"blob_id": "b74f68d99c515b0bbf387985ae66dccfe79c359b",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-09T21:54:35",
"content_id": "abb391673272d9a09db6a4013da77ce7a9ec4ef8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b107d7f73326f8725e08023c5da3e5082535ca85",
"extensio... | stackv2 | /* Test and measure strcasestr functions.
Copyright (C) 2010-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Ulrich Drepper <drepper@redhat.com>, 2010.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Ge... | 2.375 | 2 |
2024-11-18T23:06:20.221478+00:00 | 2016-08-20T06:53:07 | e582af876daeea4ff74281766951e7b88b389ecb | {
"blob_id": "e582af876daeea4ff74281766951e7b88b389ecb",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-20T06:53:07",
"content_id": "fdd25912116a4ca2541852d14ebb27862cb299b0",
"detected_licenses": [
"MIT"
],
"directory_id": "9f5c8968dc5d001b58ad9b5c1ad696c3d1a4b47f",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#include <Windows.h>
#else
#include <unistd.h>
#endif
/* If you are building x64 on Windows with WinPcap change add
* || defined(_WIN64) to #if defined(WIN32) on line 40 */
#include <pcap/pcap.h>
int main(int argc, char **argv)
{
p... | 2.625 | 3 |
2024-11-18T23:06:20.454143+00:00 | 2021-04-22T08:15:52 | 1cc24ecf6e7bc7f2f7496169d8e064ceed680b67 | {
"blob_id": "1cc24ecf6e7bc7f2f7496169d8e064ceed680b67",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-22T08:15:52",
"content_id": "0aec76814b573acdd4d36531c460d41c18b671f3",
"detected_licenses": [
"MIT"
],
"directory_id": "5a09a1c1ec00a56dcbe72e2f8efe2befae6d3e91",
"extension": "c",
... | stackv2 | #include "cnp.h"
int echo(int connect_fd)
{
char buf[BUFFER_SIZE];
bzero(buf, sizeof(buf));
return socket_revc_and_send(connect_fd, buf);
}
void poll_handler(int listen_fd)
{
int max_fd = 1025;
struct pollfd poll_fd_array[max_fd];
// 添加listen_fd, 关注POLLIN事件
poll_fd_array[0].fd = listen_fd... | 2.875 | 3 |
2024-11-18T23:06:20.857352+00:00 | 2020-12-18T13:23:11 | e9493eb248182f2e1a93bcadce54d1e23a345dc1 | {
"blob_id": "e9493eb248182f2e1a93bcadce54d1e23a345dc1",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-18T13:23:11",
"content_id": "6df13e9e04b9b92ba1b868c0cf57e11f74ad41da",
"detected_licenses": [
"MIT"
],
"directory_id": "d8aa155d7bec1ebb0bb15822e076e08bba527691",
"extension": "h",
... | stackv2 | //GABE Control Registers
//$AFE880..$AFE887
#define GABE_MSTR_CTRL (*(volatile unsigned char *)0xAFE880)
#define GABE_CTRL_PWR_LED 0x01 // Controls the LED in the Front of the case (Next to the reset button)
#define GABE_CTRL_SDC_LED 0x02 // Controls the LED in the Front of the Case (Next to SDCard)
#de... | 2.015625 | 2 |
2024-11-18T23:06:21.267954+00:00 | 2022-01-27T09:58:37 | ef270d88fe4c6ba489d0ce33553738feb2677442 | {
"blob_id": "ef270d88fe4c6ba489d0ce33553738feb2677442",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-27T09:58:37",
"content_id": "8c87ec05a309a490dfd892af1654bcc9c935ea2b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0a77b46ed308ff293fe5c3804462dbc8411cda13",
"extens... | stackv2 | /* -*- c -*- *******************************************************/
/*
* Copyright (C) 2003 Sandia Corporation
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
* the U.S. Government retains certain rights in this software.
*
* This source code is released under the New BSD License.
*/
#... | 2.265625 | 2 |
2024-11-18T23:06:21.476761+00:00 | 2021-09-09T00:22:38 | fc9b6849ab8cf481d883bfd9cb503f7696435625 | {
"blob_id": "fc9b6849ab8cf481d883bfd9cb503f7696435625",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-09T00:22:38",
"content_id": "beba067a516cb95614a13edc0740c14a5b430e8e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0d25ac15baf0a0d01f2497a43c2d5338c0a3ad8c",
"extensio... | stackv2 | /**
* Copyright 2014 Paul Michael McNab
*
* 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... | 2.046875 | 2 |
2024-11-18T23:06:21.911347+00:00 | 2012-04-03T11:01:37 | 542998de26b742088dbb12f233a2a186c2d81497 | {
"blob_id": "542998de26b742088dbb12f233a2a186c2d81497",
"branch_name": "refs/heads/master",
"committer_date": "2012-04-03T11:01:37",
"content_id": "c00e07e46fcce0a86133d3d147be3fd33c5d5dcf",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "be86e5da03474ae34e6b79feadc5353269f6b51d",
"... | stackv2 | #include "syscall.h"
void print(char c) {
int j = 0, i=0;
for (j=0; j<3; j++) {
for (i=0; i<3000; i++) {}
PutChar(c);
}
/* UserThreadExit(); // Facultatif*/
}
int main() {
int i = 0;
for (i=0; i<3000; i++) {}
PutString("Début du fils 2 : lancement des deux threads c et x\n")... | 2.84375 | 3 |
2024-11-18T23:06:22.621181+00:00 | 2023-05-05T02:26:49 | ba8b66679f42d0a2d534403128f76b2fd0c32ed3 | {
"blob_id": "ba8b66679f42d0a2d534403128f76b2fd0c32ed3",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-05T02:26:49",
"content_id": "7c8cf37ed445abf9c172c0da56fd91ad1275f0f9",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "5efe877bf5ebc9da1e7edb8efabb66b88a78cee4",
"extens... | stackv2 | /*
* Copyright (c) 2018, Intel Corporation.
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* Implementation of Linux device adapter interface for general operations.
*/
#include <stdio.h>
#include "lnx_adapter.h"
/*
* Retrieve the vendor specific NVDIMM driver version.
*/
int get_vendor_driver_revision(char * v... | 2.03125 | 2 |
2024-11-18T23:06:23.178494+00:00 | 2021-06-18T06:26:29 | 0cb7dd635e2bd844c3f45dbb44453f026dc4e5ad | {
"blob_id": "0cb7dd635e2bd844c3f45dbb44453f026dc4e5ad",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-18T06:26:29",
"content_id": "c6d716443b158582c41a2ad4636c0c6849706140",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "eb0d1442028593af6b2c9d023be7170be2ee7b2b",
"extens... | stackv2 | /*
* Copyright (c) 2021-2021 Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... | 2.0625 | 2 |
2024-11-18T23:06:23.314448+00:00 | 2023-08-13T13:58:07 | 768300e3c876548275803a0701de7e3650025b1b | {
"blob_id": "768300e3c876548275803a0701de7e3650025b1b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T13:58:07",
"content_id": "6e81f95a23e34116f49bbeae205b6190aaafa9ab",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "7e4eccee4ba976b6694cd944fea75e7835cd1a4b",
"extension":... | stackv2 | #ifndef ETHERNET_H
#define ETHERNET_H
// FIXME: actually make these platform independent
#define NTOHS(w) ((((w)&0xFF00) >> 8) | (((w)&0x00FF) << 8))
#define HTONS(w) NTOHS(w)
#define NTOHL(w) (NTOHS((w)>>16) | (NTOHS(w)<<16))
#define HTONL(w) NTOHL(w)
static inline uint16_t ntohs(uint16_t w) { return NTOHS(w); }
s... | 2.453125 | 2 |
2024-11-18T23:06:23.461289+00:00 | 2018-06-15T15:10:55 | 24a9b86fb59383c9358e2a3f9b35d98fe818e67f | {
"blob_id": "24a9b86fb59383c9358e2a3f9b35d98fe818e67f",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-15T15:10:55",
"content_id": "2030e06ed045482f024950f3c4f6e160fab31b06",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9df159ed19b1550fcbe7c1f93b2c961c926ce565",
"extens... | stackv2 | #ifndef UART_H
#define UART_H
#include "main.h"
#include <stdint.h>
#define UART_UBRR_115200 (F_CPU/16/(115200-1))
#define UART_UBRR_10400 (F_CPU/16/(10400-1))
#define UART_UBRR_9600 (F_CPU/16/(9600-1))
typedef enum {
UART0 = 0,
UART1 = 1,
} uart_num_t;
typedef enum {
UART_NOT_READY = 0,
UART_... | 2.046875 | 2 |
2024-11-18T23:06:23.518629+00:00 | 2021-09-21T16:41:55 | 3202fe3f437e40f1ff9ee59bffd03a45cf76ad72 | {
"blob_id": "3202fe3f437e40f1ff9ee59bffd03a45cf76ad72",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-21T16:41:55",
"content_id": "8259dd8faeaa5b824ad36d1b57c8c629c87587e8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "80be2e63ae0f3939655834a19617a5e33281fbb1",
"extensio... | stackv2 | #include <stdlib.h>
#include "list.h"
LinkList *get_single_list() {
LinkList *L = (LinkList *) malloc(sizeof(LinkList));
L->first = NULL;
L->size = 0;
return L;
}
int list_insert(LinkList *L, int e) {
LNode *s = (LNode *) malloc(sizeof(LNode));
s->data = e;
s->next = L->first;
L->fir... | 3.234375 | 3 |
2024-11-18T23:06:24.275551+00:00 | 2020-12-06T22:18:41 | bc4453311d03aff09ebbf76b12756cc89e08b23c | {
"blob_id": "bc4453311d03aff09ebbf76b12756cc89e08b23c",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-06T22:18:41",
"content_id": "e26d908dbfaa468c6b117d294ecb3606e85bb12b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "30ad53617ae3187a32a5699e77b7ac3fbcd4d828",
"extens... | stackv2 | /* The prime 41, can be written
* as the sum of six consecutive primes:
* 41 = 2 + 3 + 5 + 7 + 11 + 13
* This is the longest sum of consecutive
* primes that adds to a prime below one-hundred.
* The longest sum of consecutive primes
* below one-thousand that adds to a prime,
* contains 21 terms, and is equa... | 3.421875 | 3 |
2024-11-18T23:06:24.972730+00:00 | 2016-03-31T04:27:37 | cb2e84d9d89633bfd34a049d4fa30e47180a00fa | {
"blob_id": "cb2e84d9d89633bfd34a049d4fa30e47180a00fa",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-31T04:27:37",
"content_id": "459f1c13cb3b3411ef29b54f3769e9aeee14bbfb",
"detected_licenses": [
"MIT"
],
"directory_id": "679bf883973eee060c1f19346fd32d0662db7f69",
"extension": "h"... | stackv2 | #ifndef __DISPLAY_DIR_H__
#define __DISPLAY_DIR_H__
// std
#include "stdio.h"
#include "stdlib.h"
// sys
#include "sys/stat.h"
// misc
#include "dirent.h"
#include "string.h"
#include "errno.h"
// local
#include "common.h"
#include "dynamic_string_array.h"
#include "display_file_info.h"
/** @brief Recursively disp... | 2.125 | 2 |
2024-11-18T23:06:25.033544+00:00 | 2021-08-06T17:17:51 | 4c5f69c6950775dca895abb12e91f29ff58a0ed2 | {
"blob_id": "4c5f69c6950775dca895abb12e91f29ff58a0ed2",
"branch_name": "refs/heads/develop",
"committer_date": "2021-08-06T17:17:51",
"content_id": "b0aa89df32fbb5098b7dd4fca7a51f7c289266f7",
"detected_licenses": [
"BSD-3-Clause-LBNL"
],
"directory_id": "b76b1e3a44753e7cafcc3eed663fa3ccda4ba40f",
"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
#include "hdf5.h"
#include "h5_async_lib.h"
/* #define DIMLEN 10 */
#define DIMLEN 1024
int print_dbg_msg = 1;
int
main(int argc, char *argv[])
{
hid_t file_id, grp_id, dset1_id, dset0_id, dspace_id, async_dxpl, attr_space,... | 2.046875 | 2 |
2024-11-18T23:06:25.128325+00:00 | 2015-01-08T05:36:23 | a53c78f235a5a0f03f5266d100014bd0f0793f89 | {
"blob_id": "a53c78f235a5a0f03f5266d100014bd0f0793f89",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-08T05:36:23",
"content_id": "c268e95a47e53019edf9a39e3bfb3a683d4f76ca",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9b68ea36349bc699985d410ede3f556299fdb766",
"extensio... | stackv2 | #ifndef __PINPADAPI_H__
#define __PINPADAPI_H__
#include <jni.h>
#ifdef __cplusplus
extern "C" {
#endif
#define PINPAD_MODEL_KMY 0 //凯明扬-KMY3512
#define PINPAD_MODEL_XYD 1 //信雅达-P90
#define ALGO_ENCRYPT 1
#define ALGO_DECRYPT 2
#define DECRYP... | 2.28125 | 2 |
2024-11-18T23:06:25.288829+00:00 | 2023-08-19T10:45:52 | dd8335dadd905e125a9eba5390f91294717b0123 | {
"blob_id": "dd8335dadd905e125a9eba5390f91294717b0123",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-19T10:45:52",
"content_id": "13646231b3147a71334748f83a85ebf9d8d7cfc4",
"detected_licenses": [
"MIT"
],
"directory_id": "9c7ac2d65d82e1f31e383893952181a0b35277c1",
"extension": "h"... | stackv2 | /*
The MIT License
Copyright <2022> <Allan Kiipli>
*/
#ifndef TIMELINE_H_INCLUDED
#define TIMELINE_H_INCLUDED
int ACCELERATION_DEFAULT = 3;
#define ACCELERATION_DEFAULT_OUT 2.0
#define ACCELERATION_DEFAULT_IN 2.0
#define ACCELERATION_NONE 0
#define ACCELERATION_START 1
#define ACCELERATION_END 2
#define ACCELERATION... | 2.390625 | 2 |
2024-11-18T23:06:25.532798+00:00 | 2018-05-27T10:31:53 | d46a713c795436a2bcb82f14a8d31ef610c84eaf | {
"blob_id": "d46a713c795436a2bcb82f14a8d31ef610c84eaf",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-27T10:31:53",
"content_id": "a6aff9f7f8340746d7a51b9708cb76481736dc0a",
"detected_licenses": [
"MIT"
],
"directory_id": "16adf514b087ba2f41c0a8f0ab8548e02d06a660",
"extension": "c"... | stackv2 | /**************************************
* 파일이름 : ExternalStatic.c
* 파일용도 : 전역 static 변수 실습
* 작성자 : 김명진
**************************************/
#include <stdio.h>
int sum(int);
static int cntFunction = 0;
void main(void)
{
int count = 1;
for(;count <= 5; count++)
printf("1부터 %3d까지의 합은 %5d이다.\n", count, sum(c... | 3.5625 | 4 |
2024-11-18T23:06:25.613102+00:00 | 2014-05-02T13:05:16 | 970939f55dd45d610431ba9b30c13380723dc39f | {
"blob_id": "970939f55dd45d610431ba9b30c13380723dc39f",
"branch_name": "refs/heads/master",
"committer_date": "2014-05-02T13:05:16",
"content_id": "ce72a91408cccd8227f15f6f06403592c41e9e58",
"detected_licenses": [
"MIT"
],
"directory_id": "661647aa5374ac352533b3516cf54e353868142e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
static int idb_mf_c = 0; //malloc free count
void *idb_malloc(size_t size,char* file,unsigned int line){
void *t;
t = malloc(size);
if(t)
++idb_mf_c; //if malloc fail , don't count
fprintf(stderr,"%s:%d\tmalloc %d byte(s):%X\n",file,line,size,t);
return t;
}
void idb_free(... | 2.859375 | 3 |
2024-11-18T23:06:25.702794+00:00 | 2018-07-27T06:30:29 | 6fb38532f152f5d2488f56fe671047bbc7a60e57 | {
"blob_id": "6fb38532f152f5d2488f56fe671047bbc7a60e57",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-27T06:30:29",
"content_id": "92fc44ab9c1b746e893044f601832bf4a0e160eb",
"detected_licenses": [
"MIT"
],
"directory_id": "6bfdf8ca82f70bb40fadc8ad4b784403bf898913",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <pthread.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <signal.h>
#include <time.h>
#include "work.h"
#include "pub.h"
void setdaemon()
{
pid_t pid, s... | 2.390625 | 2 |
2024-11-18T23:06:26.204161+00:00 | 2023-02-14T06:55:32 | 72803f7cf67ee40972a2d33cb4403622449e50ac | {
"blob_id": "72803f7cf67ee40972a2d33cb4403622449e50ac",
"branch_name": "refs/heads/develop",
"committer_date": "2023-02-14T06:55:32",
"content_id": "a6a2205d952ade09f68ae2a754c57843d6f61992",
"detected_licenses": [
"MIT"
],
"directory_id": "0a3363c1d3d5867f1340de49b84eab84defa3fb8",
"extension": "c... | stackv2 |
#include <stdint.h>
#include <stdbool.h>
#include <hal/types.h>
#include <hal/board.h>
#include <ti/am335x/hw_types.h>
#include <ti/am335x/soc.h>
#include <ti/am335x/chipdb.h>
#include <ti/am335x/hw_cm_per.h>
#include <ti/am335x/hw_cm_wkup.h>
#include <ti/am335x/hw_cm_rtc.h>
#include <ti/am335x/musb.h>
#include <ti/am... | 2 | 2 |
2024-11-18T23:06:29.965005+00:00 | 2021-08-08T03:17:35 | ae4f08aa8d94b286665cc1fe504a43ba13bbdb62 | {
"blob_id": "ae4f08aa8d94b286665cc1fe504a43ba13bbdb62",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-08T03:17:35",
"content_id": "5cd7af817c0cd9c45dd4704dca40286216dc45da",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "adfda3643a99f69da49bccbd8e0afcc98fde2741",
"extensio... | stackv2 | #ifndef ACN_OSEK_OS_FIFO_H
#define ACN_OSEK_OS_FIFO_H
#include <ostypes.h>
#include <sg_tasks.h>
typedef struct {
OsTaskType** task;
u32 head;
u32 tail;
const u32 size;
bool full;
} OsFifoType;
typedef enum {
OS_QUEUE_WAITING,
OS_QUEUE_SUSPENDED,
OS_QUEUE_READY,
OS_QUEUE_RUNNING,
OS_QUEUE_MAX
}OsQu... | 2.234375 | 2 |
2024-11-18T23:06:30.091120+00:00 | 2018-09-08T20:39:36 | 8b3f6881f7da1175b88fe964181b1a0093d685af | {
"blob_id": "8b3f6881f7da1175b88fe964181b1a0093d685af",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-08T20:39:36",
"content_id": "540347f832489fa46bb7e45936e6ecf7c970dc56",
"detected_licenses": [
"MIT"
],
"directory_id": "034e16e9f313726af37c0415a9a9b53ee7dbf84f",
"extension": "c"... | stackv2 |
/*
MIT License
Copyright (c) 2018 PS
GitHub: https://github.com/ClnViewer/LibWchar2
*/
START_TEST (test_Lmacro)
{
/* g++ -E -dD -fshort-wchar -xc++ /dev/null | grep WCHAR */
_fwprintf(stdout, L"\n\tLibrary wchar2 version:%d -> %s\n\n", __LINE__, wchar2version());
# if defined(__WCHAR_TYPE__)
... | 2.203125 | 2 |
2024-11-18T23:06:30.221743+00:00 | 2023-08-02T07:26:01 | 804643e21bcabd6a7cd1081ecf2ef96d580f4b39 | {
"blob_id": "804643e21bcabd6a7cd1081ecf2ef96d580f4b39",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-02T07:26:01",
"content_id": "7daa0d70b8a9fe2d789cd873e1d7de50921c78d4",
"detected_licenses": [
"MIT"
],
"directory_id": "ea401c3e792a50364fe11f7cea0f35f99e8f4bde",
"extension": "h"... | stackv2 | #ifndef __NS_STD_SET_H__
#define __NS_STD_SET_H__
#include <nsconfigure.h>
#include <std/nsmacros.h>
#include <std/nstypes.h>
#include <std/nsdebug.h>
#include <std/nserror.h>
#include <std/nsfunc.h>
#include <std/nsmemory.h>
#include <std/nstree.h>
NS_DECLS_BEGIN
typedef NsTree NsSet;
typedef nstreeiter ... | 2.203125 | 2 |
2024-11-18T23:06:30.287416+00:00 | 2016-10-31T00:53:44 | 723b23b5b79cfa5c919b4848876538019c27ae2e | {
"blob_id": "723b23b5b79cfa5c919b4848876538019c27ae2e",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-31T00:53:44",
"content_id": "c9c81d75d10b9a3566dda6e0a64364fc94b09d1a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "667d8acb89812ad11161a780b9840021a5af9aff",
"extens... | stackv2 | /*
* Copyright (c) 1994-2015 Nineties Retro
*
* Lex a PEG file and generate a binary version. Primarily used as
* part of the bootstrap process for PEP.
*/
#include <stdio.h>
#include <stdlib.h>
#include "pe_hash.h"
#include "pe_as_kw.h"
#include "pe_as_lit_kw_map.h"
#include "pe_as_lit_kw_map_rd.h"
#include "pe... | 2.28125 | 2 |
2024-11-18T23:06:30.441699+00:00 | 2015-06-06T16:23:25 | 9786dc3a8323d47823fd5cf6b14293425afbaea4 | {
"blob_id": "9786dc3a8323d47823fd5cf6b14293425afbaea4",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-06T16:23:25",
"content_id": "d23f22d5a7929a4ad5f2ffcdc1974a57ce89bcf6",
"detected_licenses": [
"MIT"
],
"directory_id": "5f6a1ea0996b0d5eaedfb0e952e6dc636c704873",
"extension": "c"... | stackv2 | #include "lexer.h"
#include <stdlib.h>
struct Lexer {
Token *tokens;
size_t token_count;
};
static Token *init_tokens(Regex *regex)
{
if (regex == NULL) {
return NULL;
}
Token *tokens = malloc(sizeof(Token) * Regex_get_length(regex));
if (tokens != NULL) {
unsigned int i;
... | 2.953125 | 3 |
2024-11-18T23:06:30.585286+00:00 | 2021-03-13T13:22:00 | 178e5f1ecebdab6b9907dbba6f61cd07db29d373 | {
"blob_id": "178e5f1ecebdab6b9907dbba6f61cd07db29d373",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-13T13:22:00",
"content_id": "4203a10daffa45591a4cc7c399dbf918794b2944",
"detected_licenses": [
"Unlicense"
],
"directory_id": "5dc4ea36514927efd678638e2095a4e8e32c0386",
"extension":... | stackv2 | //----- p_param_v.h -------------------------------------------------------------
//----------------------------------------------------------------------------
#ifndef P_PARAM_V_H
#define P_PARAM_V_H
//----------------------------------------------------------------------------
#include "precHeader.h"
#ifndef PDEF_H_... | 2.296875 | 2 |
2024-11-18T23:06:31.614642+00:00 | 2014-08-25T14:24:17 | 245a420b8b2c4b65b2f0879ce57c944877abf338 | {
"blob_id": "245a420b8b2c4b65b2f0879ce57c944877abf338",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-25T14:24:17",
"content_id": "cc553dd8b28a957ec3d5b3614a5c228ac34cd52e",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "b759314eed7edf6e27ca8d2381ac73835e54cb3d",
"... | stackv2 | #include <stdio.h>
#include <assert.h>
#include <esc64asm/freelist.h>
static FreeList freeList;
static void StaticAlloc(uword_t address, udword_t size);
static void DynAlloc(udword_t size);
void TestFreelist(void)
{
puts("Hello World");
const size_t nodeCount = 16;
FreeListNode nodeStore[nodeCount];
FreeListIn... | 2.796875 | 3 |
2024-11-18T23:06:31.734256+00:00 | 2019-08-26T08:08:55 | 19b855e26f950fee83d732fc2a2bd29e51086639 | {
"blob_id": "19b855e26f950fee83d732fc2a2bd29e51086639",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-26T08:08:55",
"content_id": "b7ad90e237e2364409c4cf3da89cf823f5566407",
"detected_licenses": [
"ISC"
],
"directory_id": "d218d7b99ef03d63d1fd40344e4469dee453ea6d",
"extension": "c"... | stackv2 |
// MT, 2016mar01
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include "Deb.h"
#include "Str.h"
#include "Stack.h"
#include "json_state_number.h"
enum JsonState json_state_number(struct JsonStateInput * const inObj)
{
assert(inObj!=NULL);
assert(!Stack_isEmpty(inObj->stack));
enum JsonSta... | 2.1875 | 2 |
2024-11-18T23:06:32.153649+00:00 | 2021-05-26T12:54:52 | f7c61a42ebd730936b11eb52e5779d36502c6c6b | {
"blob_id": "f7c61a42ebd730936b11eb52e5779d36502c6c6b",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-26T12:54:52",
"content_id": "bec59efe762d5648432b6599038f5660bac77799",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8d276df5c22634a08e7962deb0239096a028c4fc",
"extension"... | stackv2 | #include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<dir.h>
char fn2[20];
main()
{
int c;
clrscr();
do{
printf("\n\t\tMain Menu\n-------------------------------\n");
printf("1.Copy a File\n2.Move a File\n3.Exit\n");
scanf("%d",&c);
switch(c)
{
case 1:
copy_file();
break;
case 2:
move_file();
break;
case 3:
exit... | 2.8125 | 3 |
2024-11-18T23:06:32.293429+00:00 | 2021-03-17T20:17:48 | f3ab9e1484896b49a5713867d5a3e08aab1f020c | {
"blob_id": "f3ab9e1484896b49a5713867d5a3e08aab1f020c",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-17T20:17:48",
"content_id": "5903c3b2fe0f14414cfd6b3db5b86b447efdc585",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "d975574c0ba8f23de3ac21af8a0bff13bee3c9c0",
"extension": "... | stackv2 | #include<stdio.h>
#include<errno.h>
#include<string.h>
#include<time.h>
extern int errno;
int main(){
time_t seconds;
seconds = time(NULL);
if(seconds==-1)
fprintf(stderr, "Error %d: %s\n", errno, strerror(errno));
else
printf("Time is %d\n", seconds);
return 0;
}
| 2.40625 | 2 |
2024-11-18T23:06:32.370058+00:00 | 2017-11-12T16:01:45 | f0fe4a837a90961e825029df6e3450a03226b706 | {
"blob_id": "f0fe4a837a90961e825029df6e3450a03226b706",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-12T16:01:45",
"content_id": "28cc5200ab510dd7e60d245912100c6e9befa16b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0345df8f3f019cce422ed303783b0d2c2e17eb29",
"extens... | stackv2 | #include <errno.h>
#include <stdio.h>
#include "netsniff.h"
#if 0
enum {
IPPROTO_IP = 0, /* Dummy protocol for TCP */
IPPROTO_ICMP = 1, /* Internet Control Message Protocol */
IPPROTO_IGMP = 2, /* Internet Group Management Protocol */
IPPROTO_IPIP = 4, ... | 2.390625 | 2 |
2024-11-18T23:06:32.692795+00:00 | 2023-08-09T21:38:18 | 4749470e43cc1b4221d9ddcaf53266581922584e | {
"blob_id": "4749470e43cc1b4221d9ddcaf53266581922584e",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-09T21:38:18",
"content_id": "d368a0c4a5f714272da856bffb76fc1c717d319b",
"detected_licenses": [
"BSD-3-Clause",
"Apache-2.0"
],
"directory_id": "43bf0bdbd65c8bc8bc99d0ed1d408a79aee2... | stackv2 | #ifndef PROACTOR_PROACTOR_INTERNAL_H
#define PROACTOR_PROACTOR_INTERNAL_H
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this fi... | 2.015625 | 2 |
2024-11-18T23:06:32.789888+00:00 | 2022-11-07T11:35:30 | 6d3e39674d435e9d4e2ffe3b381ee28ee6f673b9 | {
"blob_id": "6d3e39674d435e9d4e2ffe3b381ee28ee6f673b9",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-07T11:35:30",
"content_id": "64eb0a86656775fea3bdb8b30cc764bf0e54b086",
"detected_licenses": [
"MIT"
],
"directory_id": "872e0935544caaf5319677e8b4b29172e97b3a04",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include "tl0-c-api.h"
/*like strnlen*/
int cstring_length(char* cstring, int max_length) {
int length = 0;
while (cstring[length] != '\0' && length < max_length) {
++length;
}
return length;
}
Returncode string_clear(String* this) {
this->actual_length = 0;
ret... | 2.84375 | 3 |
2024-11-18T23:06:32.855792+00:00 | 2017-07-14T09:10:05 | a642795ba292dada8f5020dcf74e06bd881461f5 | {
"blob_id": "a642795ba292dada8f5020dcf74e06bd881461f5",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-14T09:10:05",
"content_id": "d432cd83d8377c04c347f989a4ccb9e351c1f110",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fcd6647e9e8861bf05aa678faba4b913074edf3e",
"extensio... | stackv2 | /*
* Copyright (c) 2016 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 2.359375 | 2 |
2024-11-18T23:06:33.105276+00:00 | 2019-05-09T05:45:13 | de4cf61177998c45636ed3726808112aef0c804f | {
"blob_id": "de4cf61177998c45636ed3726808112aef0c804f",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-09T05:45:13",
"content_id": "9f48cd94c08264abd9945b50f121af7ca292c3db",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "ed242aa26b942538479041c7ca0a8da831b27736",
"extens... | stackv2 | /*
* =====================================================================================
*
* Filename: stringmap.c
* Description: handle (string) objects in a linked map
* Author: Stephan Laukien
* Email: software@laukien.com
* License: Simplified BSD License
* Copyr... | 3.0625 | 3 |
2024-11-18T23:06:34.368141+00:00 | 2019-02-06T16:30:26 | 083459aefcec9d9ba5e00689a6d70716d5aa6388 | {
"blob_id": "083459aefcec9d9ba5e00689a6d70716d5aa6388",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-06T16:30:26",
"content_id": "41fc03ab283ce4f10069728312504d444cc2780a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "eee04de555c840fbb85dc22587c6e23f35f84893",
"extens... | stackv2 | /**************************************************************/
/* PROTOTHREAD_TEST.C */
/* See LICENSE (LarryRuane@gmail.com) */
/**************************************************************/
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include "protothread.h"... | 2.90625 | 3 |
2024-11-18T23:06:34.630470+00:00 | 2023-01-06T03:11:42 | 2189bd61c72b56a765354f96a10928783ecfe978 | {
"blob_id": "2189bd61c72b56a765354f96a10928783ecfe978",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-06T03:11:42",
"content_id": "cdf9a54a7dbaccee7f2dc1a9d3a79075b60c93cf",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4aaffaf0196381d6a3d116c73f62ca10450ff128",
"extens... | stackv2 | /*
* Copyright (c) 2011-2015, Thomas Bischof
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this lis... | 2.390625 | 2 |
2024-11-18T23:06:35.075553+00:00 | 2019-03-23T01:35:07 | 7084793218e0e3c6d11ba3282b28e308748c2b60 | {
"blob_id": "7084793218e0e3c6d11ba3282b28e308748c2b60",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-23T01:35:07",
"content_id": "9d6f42c4a5819778dc25bdf9d5a465134e562ec7",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "df33f1348277ef3bacda73a99c3fcfa8269e73e4",
"extens... | stackv2 | /**
* Copyright (C) 2017, Hao Hou
**/
/**
* @brief The exotic object data type
**/
#ifndef __PSS_EXOTIC_H__
#define __PSS_EXOTIC_H__
/**
* @brief The data structure used for an exotic object
**/
typedef struct _pss_exotic_t pss_exotic_t;
/**
* @brief The data used to create an exotic object
**/
typedef struct ... | 2.46875 | 2 |
2024-11-18T23:06:35.455527+00:00 | 2013-09-25T13:28:19 | 19100e06c0b5bd050f8072b6eaaa70af37ea44ed | {
"blob_id": "19100e06c0b5bd050f8072b6eaaa70af37ea44ed",
"branch_name": "refs/heads/master",
"committer_date": "2013-09-25T13:28:19",
"content_id": "a6aad859a7f8d893e7895688de589b0d99605e88",
"detected_licenses": [
"MIT"
],
"directory_id": "125c3a897b5b84a810d1185d777ff9a02ca9855a",
"extension": "c"... | stackv2 | #include "mobiledevice.h"
#include <string.h>
#include <stdlib.h>
enum MobileDeviceCommandType
{
GetUDID,
InstallApp,
UninstallApp,
ListInstalledApps,
Tunnel
};
struct
{
struct am_device_notification *notification;
enum MobileDeviceCommandType type;
const char *app_path;
const char *bundle_id;
int... | 2.609375 | 3 |
2024-11-18T23:06:36.353942+00:00 | 2021-10-22T17:05:02 | cc23384e1c7e1482b8586bf4b1270a56af6f0181 | {
"blob_id": "cc23384e1c7e1482b8586bf4b1270a56af6f0181",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-22T17:43:52",
"content_id": "2690e3b44743ac880b46999065a7bfff4255a0c3",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "df60b97faff81252c5caae756c681621274a7c35",
"extens... | stackv2 | /**
* @file FootSupport.h
*
* This file defines a representation that describes an abstract distribution of
* how much each foot supports the weight of the robot. Positive value mean the
* left foot supports more weight, while negative value mean the left foot supports
* more weight.
*
* @author Thomas Röfer
*... | 2.265625 | 2 |
2024-11-18T23:06:36.471364+00:00 | 2021-05-04T02:45:23 | f159a4509ae4be461ecc42c3dd5ebc83bb406980 | {
"blob_id": "f159a4509ae4be461ecc42c3dd5ebc83bb406980",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-04T02:45:23",
"content_id": "a3cc499d31e1c7a8ac656f5ebb2b34e356dd62f9",
"detected_licenses": [],
"directory_id": "2bfe54c1dd23cd40e2bd92bb2a90ec760737647c",
"extension": "c",
"filename... | stackv2 | #include <ross.h>
#define TW_GVT_NORMAL 0
#define TW_GVT_COMPUTE 1
static unsigned int g_tw_gvt_max_no_change = 10000;
static unsigned int g_tw_gvt_no_change = 0;
static tw_stat all_reduce_cnt = 0;
static unsigned int gvt_cnt = 0;
static unsigned int gvt_force = 0;
static const tw_optdef gvt_opts [] =
{
TWOPT_GROUP... | 2.09375 | 2 |
2024-11-18T23:06:36.530081+00:00 | 2021-07-11T07:35:20 | 1d482c0163ae35385a6d8760e07fb0b19c8d56fd | {
"blob_id": "1d482c0163ae35385a6d8760e07fb0b19c8d56fd",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-11T07:35:20",
"content_id": "2ff97987511ed9f0e0f18c23c5d130e63f067e87",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4f1408d1159e1ac33b25d0ca88f26e51d41b3493",
"extensio... | stackv2 | /*
* Copyright 2017-present varchar.io
*
* 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 agree... | 2.09375 | 2 |
2024-11-18T23:06:37.195620+00:00 | 2023-06-04T22:36:49 | 4685688d245ed47c027fc4fbff46dd0e0f9a95b7 | {
"blob_id": "4685688d245ed47c027fc4fbff46dd0e0f9a95b7",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-04T22:36:49",
"content_id": "8dbe7fba026633fc0023172da1c8809c80c1e4a0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2a1e1ecb828719db613019eb6892d83bfb0a768d",
"extens... | stackv2 | #ifndef __LOGGER_UTILS_H__
#define __LOGGER_UTILS_H__
#include <time.h>
#include <sys/time.h>
#include <stdio.h>
static inline void current_datetime(char buf[], struct tm* tp) {
struct tm ltm;
if (!tp) {
tp = <m;
}
struct timeval tv;
gettimeofday(&tv, NULL);
localtime_r(&tv.tv_sec, ... | 2.234375 | 2 |
2024-11-18T23:06:37.289360+00:00 | 2021-07-16T10:50:29 | a39b961de75b38c876658c110a13837a778387b0 | {
"blob_id": "a39b961de75b38c876658c110a13837a778387b0",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-16T10:50:29",
"content_id": "b1639955f7b3d06a86927ce18e639b44a8ca7001",
"detected_licenses": [
"ISC"
],
"directory_id": "d1feba8cd2106d79ecc1cd1b264f5129475985a2",
"extension": "c"... | stackv2 | /*
* Copyright (C) 2011-2013 Felix Fietkau <nbd@openwrt.org>
*
* 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 notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | 2.15625 | 2 |
2024-11-18T23:06:37.700234+00:00 | 2021-02-28T23:22:13 | 2bce4896f2e828a9b4b409f0e2d8fbc0112e7ad6 | {
"blob_id": "2bce4896f2e828a9b4b409f0e2d8fbc0112e7ad6",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-28T23:22:13",
"content_id": "cb4de270e2e736b530f61166bccbb90e48e42ccb",
"detected_licenses": [
"MIT"
],
"directory_id": "6f35d069e0e3c89c7f5d026376f3501fa840f860",
"extension": "c"... | stackv2 | /* ---------------------------------------------------------------------------------
StringsTest.c
Testing strings with assert
MIT License
Copyright (c) 2020 Tomas Sanchez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated docume... | 2.703125 | 3 |
2024-11-18T23:06:38.623588+00:00 | 2020-01-30T15:52:16 | e25ed5bab04c6e86536d092b2f6ff4e3f6a1f19a | {
"blob_id": "e25ed5bab04c6e86536d092b2f6ff4e3f6a1f19a",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-30T15:52:16",
"content_id": "54a15aa5f9a1d5a29e35c5bca9491ee7d8bb9b50",
"detected_licenses": [
"MIT"
],
"directory_id": "40de3da30239862f11a946166b50438174c2fd4e",
"extension": "c"... | stackv2 | inherit "room/room";
object monster,monster2;
reset(arg) {
if(!monster) {
monster = clone_object("/wizards/kaappi/mine/mosat/guard.c");
move_object(monster, this_object()); }
if(!monster2) {
monster2 = clone_object("/wizards/kaappi/mine/mosat/guard.c");
move_object(monster2, this_object()); }
if... | 2.03125 | 2 |
2024-11-18T23:06:38.757841+00:00 | 2014-01-25T02:36:34 | 4e575eb72db9f70deca24d31ddefed5f4800781c | {
"blob_id": "4e575eb72db9f70deca24d31ddefed5f4800781c",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-25T02:36:34",
"content_id": "539f0323205416577fa5b9b21f5fa6c16cea2839",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "60680facd1d405d56273f3d5b21a70ed319b2f26",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "greatest.h"
#include "anki_greatest.h"
#include "protocol.h"
#include "anki_util.h"
SUITE(vehicle_protocol);
TEST test_struct_attribute_packed(void) {
ASSERT_EQ(sizeof(anki_vehicle_msg_sdk_mode_t), ANKI_VEHICLE_MSG_SDK_MODE_SIZE+ANKI_VEHICLE_M... | 2.25 | 2 |
2024-11-18T23:06:39.334777+00:00 | 2023-08-23T22:01:11 | 2c2262cdfadcdfd7d9e31ae04e7cbe0316c0eb15 | {
"blob_id": "2c2262cdfadcdfd7d9e31ae04e7cbe0316c0eb15",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-23T22:01:11",
"content_id": "257a9119ef6e56876985f83089b041b434a966c6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a3d6556180e74af7b555f8d47d3fea55b94bcbda",
"extensio... | stackv2 | // Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifdef BASE_ALLOCATOR_PARTITION_ALLOCATOR_SHIM_ALLOCATOR_SHIM_OVERRIDE_GLIBC_WEAK_SYMBOLS_H_
#error This header is meant to be included only once by allocator_shim.cc
#endif
#... | 2.0625 | 2 |
2024-11-18T23:06:39.470506+00:00 | 2020-05-02T13:03:57 | 7eeb311fb2129bf29c037c4347a12987006959fe | {
"blob_id": "7eeb311fb2129bf29c037c4347a12987006959fe",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-02T13:03:57",
"content_id": "b23a8a9a05bc855930a23d8588f56b89a4167668",
"detected_licenses": [
"MIT"
],
"directory_id": "f46800a22e7274b7d398f9fda3e19a21b0832f57",
"extension": "c"... | stackv2 | /*
* Module: ICT1002
* Language: C
* Lab 4 Assignment
* Done By: bitxer
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#define MAX_LENGTH 32
struct list {
char *word;
struct list *next;
};
typedef struct list LIST;
typedef LIST * LIST_PTR;
int main(){
LIST_PTR head... | 3.546875 | 4 |
2024-11-18T23:06:39.689944+00:00 | 2019-03-01T05:16:46 | b1dd045f1c7616622f522c85f4621a38c31bc898 | {
"blob_id": "b1dd045f1c7616622f522c85f4621a38c31bc898",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-01T05:16:46",
"content_id": "83a3ecb6912404096ceff1c84ba19b97715a26bc",
"detected_licenses": [
"MIT"
],
"directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f",
"extension": "h"... | stackv2 | /* add the following lines in boat file
void init()
{
add_action("do_turn","turn");
add_action("do_out","out");
add_action("do_start","start");
add_action("lookout","lookout");
add_action("do_stop","stop");
}
*/
#include <ansi.h>
inherit ITEM;
void dest(object ob);
void over(object ob);
int turnning(o... | 2.375 | 2 |
2024-11-18T23:06:39.805326+00:00 | 2013-12-20T23:43:07 | a81442eaf71d1ee3ce4f1634ba13df33684e9947 | {
"blob_id": "a81442eaf71d1ee3ce4f1634ba13df33684e9947",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-20T23:43:07",
"content_id": "339c4a7f56248810a26adf6d0e71f4684fa73d2e",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "f917dde86de0986191dc97ec404e77141d58b867",
"... | stackv2 | #include <stdio.h>
#include <ustdlib.h>
int main(){
printf("Process sleeping for 10 seconds\n");
sleep(10);
printf("Process woken up after 10 seconds\n");
return 0;
}
| 2.34375 | 2 |
2024-11-18T23:06:39.915264+00:00 | 2019-06-03T19:32:33 | 4e192191c196b44daf5468b82466486578fc2cd1 | {
"blob_id": "4e192191c196b44daf5468b82466486578fc2cd1",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-03T19:32:33",
"content_id": "57379f92bd52b494b49c29f086e79273b2fea07c",
"detected_licenses": [
"MIT"
],
"directory_id": "301f166eefd55156b7c63c2b422b6296cad04969",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <time.h>
#define MAX 100
#define SIZE 3
int main()
{
struct data {
int a;
char b;
};
struct data stuff[SIZE];
int x;
/* seed randomizer */
srand( (unsigned)time(NULL) );
for(x=0;x<SIZE;x++)
{
stuff[x].a = rand() % MAX + 1;
stuff[x].b = rand() % 26 + 'A';
}
return(0);... | 2.671875 | 3 |
2024-11-18T23:06:39.987534+00:00 | 2020-04-15T20:58:21 | 2237beca7bc51d29056c94f24f2e9a9146656dec | {
"blob_id": "2237beca7bc51d29056c94f24f2e9a9146656dec",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-15T20:58:21",
"content_id": "20c867206beec3144a9f22f05e6419c9b2dcdae3",
"detected_licenses": [
"MIT"
],
"directory_id": "ebc700cb11b49d5319544d3f7bbc8882250a8e5a",
"extension": "c"... | stackv2 | #include "swplatform.h"
// from wb_multi_manual.c
extern int test_convert( void );
// The adresses used in the #defines are defined in file generic_devices.h
#define BITCOUNT (*((uint32_t volatile *)WB_SINGLE_BASEADDRESS))
#define DO_SQR (*((float volatile *)SQRCTRL_BASEADDRESS))
// Interface to swap() implemented... | 2.46875 | 2 |
2024-11-18T23:06:40.276063+00:00 | 2023-08-09T20:04:53 | 7c6e2d423e68e41c50c09b0d6bc00f2792bdb35a | {
"blob_id": "7c6e2d423e68e41c50c09b0d6bc00f2792bdb35a",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-09T20:04:53",
"content_id": "2d6f3f6a3f50c82460a39a2b29e0efdc25699c82",
"detected_licenses": [
"MIT"
],
"directory_id": "420227858a6ac3d4364c95f5321d370b373ded5e",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#include <string.h>
#define ALPHSIZE 27
#define TXTSIZE 500
typedef struct node node;
struct node{
char letter;
int index;
};
node alphabet[ALPHSIZE];
void fill_alphabet(node vet[]); //Testada
bool eh_primo(int n); //Testada
void gener... | 3.515625 | 4 |
2024-11-18T23:06:40.560819+00:00 | 2019-04-10T14:42:36 | c796ea11ef90097e288e3e3b3d61f6b2c17a089f | {
"blob_id": "c796ea11ef90097e288e3e3b3d61f6b2c17a089f",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-10T14:42:36",
"content_id": "fc49723c2f247c4302b849ae432123e4c885f4ab",
"detected_licenses": [
"MIT"
],
"directory_id": "924c23b0a9409da6742b1781c4363b2dc19ba729",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sha256_update.c :+: :+: :+: ... | 2.5625 | 3 |
2024-11-18T23:06:41.046424+00:00 | 2020-06-17T17:45:50 | 18529e18175595b728d673dd05e9391ce23e10aa | {
"blob_id": "18529e18175595b728d673dd05e9391ce23e10aa",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-17T17:45:50",
"content_id": "4453b8eee2e1f936f8efed432cfb6b63601bc5f3",
"detected_licenses": [
"ISC"
],
"directory_id": "766aab3ae97e3affa4f0838802f4518728aa946d",
"extension": "c"... | stackv2 | /*
C o*pyright (c) 2016, prpl Foundation
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 notice appear
in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ... | 2.03125 | 2 |
2024-11-18T23:06:41.404229+00:00 | 2018-05-02T22:03:58 | 33377c94d8ab0a71412a94aa9c20b6af50edd462 | {
"blob_id": "33377c94d8ab0a71412a94aa9c20b6af50edd462",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-02T22:03:58",
"content_id": "7e30f4548f6708e1e64d14e59ee76436582e6897",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "71d3a1528d13e719eb6722690c142919e1792502",
"extens... | stackv2 | #ifndef ROTATE
#define ROTATE
__global__ void turnImageP(int width, int height, int* inputImage, int* outputImage);
__global__ void turnImageN(int width, int height, int* inputImage, int* outputImage);
__global__ void transposeImage(int width, int height, int* inputImage, int inputImagePitchInInts, int* outputImage... | 2.03125 | 2 |
2024-11-18T23:06:41.594594+00:00 | 2023-05-05T17:46:09 | 02974e3e05ec049486d6dad08a12cabe46f6083d | {
"blob_id": "02974e3e05ec049486d6dad08a12cabe46f6083d",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-05T17:46:09",
"content_id": "953030263ce5def586ae137e092db778d04b3eb0",
"detected_licenses": [
"MIT",
"Zlib"
],
"directory_id": "98dd5a3f2a5cd1949e9284d204a0a353e256aad6",
"ext... | stackv2 | #include <string.h>
#include <pb_encode.h>
#include <unittests.h>
#include "test.pb.h"
int main()
{
pb_byte_t buf[512];
MyMessage msg = MyMessage_init_zero;
pb_ostream_t stream = pb_ostream_from_buffer(buf, sizeof(buf));
msg.mybytes.size = 0xFFFFFFFF;
if (pb_encode(&stream, MyMessage_fields, ... | 2.21875 | 2 |
2024-11-18T23:06:41.812545+00:00 | 2018-12-27T03:45:00 | 1402d5188dd2ac2d207654802286ffa55035aed1 | {
"blob_id": "1402d5188dd2ac2d207654802286ffa55035aed1",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-27T03:45:00",
"content_id": "cdcd6ee5153f49f10430a16db9a981cf94b56a26",
"detected_licenses": [
"Unlicense"
],
"directory_id": "5edc2a4cb5ddc83a5a6afc1b16b2191b4e884e89",
"extension... | stackv2 |
#include "max31850.h"
int max31850_read_scratchpad(int pin, const uint8_t *addr, uint8_t *sp) {
if (!onewire_match_rom(pin, addr)) {
printde("onewire_match_rom() failed where pin = %d and address = %2hhx%2hhx%2hhx%2hhx%2hhx%2hhx%2hhx%2hhx\n", pin, addr[0], addr[1], addr[2], addr[3], addr[4], addr[5], addr... | 2.53125 | 3 |
2024-11-18T23:06:43.121626+00:00 | 2018-12-20T15:04:09 | 2d376d6afbd547572257cd0599fbf17d4c6dbb29 | {
"blob_id": "2d376d6afbd547572257cd0599fbf17d4c6dbb29",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-20T15:04:09",
"content_id": "48c840d78c363927ec18f925667915375ff415d3",
"detected_licenses": [
"MIT"
],
"directory_id": "b404a1a14e53538f7a226df98008f35598015990",
"extension": "c"... | stackv2 | #include "selectchat.h"
int main(int iRtn, char *cpCMD[]){
int iFd;
struct sockaddr_in stAddr;
int iLen;
char cBuf[BUF_SIZE];
fd_set fdRead;
char cMSG[MSG_SIZE];
char cNick[NIC_NAME_SiZE];
unsigned short usPORT=PORT;
if(iRtn == 2){
iFd = atoi(cpCMD[1]);
if(1024 < iFd){
if(65535 > iFd){
usPORT=iFd;... | 2.484375 | 2 |
2024-11-18T23:06:43.182963+00:00 | 2023-08-13T10:00:00 | 60d312c6b1aa6b21d4edf7f4b6b0ae14f139741c | {
"blob_id": "60d312c6b1aa6b21d4edf7f4b6b0ae14f139741c",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T10:00:00",
"content_id": "484061e2f1fe019be3522980aab379574f3a485c",
"detected_licenses": [
"MIT"
],
"directory_id": "0cc343d927d5db6693006018986715c43acab961",
"extension": "c"... | stackv2 | // Test that multiple nested includes results in
// correct verification.
//
// Taken file stack.c from the examples:
// -split the declarations and annotations over multiple headers
// -add macros everywhere
#include "nested_multiple_include.h"
#include "nested_multiple_include1.h"
struct stack* create_empty_st... | 2.328125 | 2 |
2024-11-18T23:06:44.335793+00:00 | 2023-08-30T18:36:27 | 54d8306ac0c5d11916de5a9a127a7b840482a753 | {
"blob_id": "54d8306ac0c5d11916de5a9a127a7b840482a753",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T18:36:27",
"content_id": "42e38bbf5a07e1ae64db96d53ebf75ba8c84bced",
"detected_licenses": [],
"directory_id": "8e56b05b32a978eb170e01409a7aaaa1fc755979",
"extension": "h",
"filename... | stackv2 | /* $NetBSD: ksh_limval.h,v 1.2 1997/01/12 19:11:59 tls Exp $ */
/* Wrapper around the values.h/limits.h includes/ifdefs */
/* $NetBSD: ksh_limval.h,v 1.2 1997/01/12 19:11:59 tls Exp $ */
#ifdef HAVE_VALUES_H
# include <values.h>
#endif /* HAVE_VALUES_H */
/* limits.h is included in sh.h */
#ifndef DMAXEXP
# define D... | 2.03125 | 2 |
2024-11-18T23:17:44.721871+00:00 | 2012-12-14T00:32:54 | c8fd1e7e655f1ef277491cbba898d3087710bdf5 | {
"blob_id": "c8fd1e7e655f1ef277491cbba898d3087710bdf5",
"branch_name": "refs/heads/master",
"committer_date": "2012-12-14T00:32:54",
"content_id": "a35929969e9dd9e68822242f2bdd7d5c7ebd12e3",
"detected_licenses": [
"MIT"
],
"directory_id": "09dbb5a4fb108719b66f86626aba7f4448e942f7",
"extension": "c"... | stackv2 | #include "config.h"
#include "../exception.h"
#include "../array.h"
#include "../file/filebuffer.h"
#include "../info.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
static struct config _offset = {};
void set_config_value_int(struct config *config, void *dest, char *value) {
*(int*)dest = atoi(value)... | 2.65625 | 3 |
2024-11-18T23:17:45.124993+00:00 | 2014-08-07T03:15:09 | 87fb3048d31a88b5eb030bef8a96e13db1828a50 | {
"blob_id": "87fb3048d31a88b5eb030bef8a96e13db1828a50",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-07T03:15:09",
"content_id": "9ebde3005f04ee61decf4a606bfb45d143e441b3",
"detected_licenses": [
"Apache-2.0",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
],... | stackv2 | /*
* twemproxy - A fast and lightweight proxy for memcached protocol.
* Copyright (C) 2011 Twitter, 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/lice... | 2.0625 | 2 |
2024-11-18T23:17:49.395414+00:00 | 2022-05-10T00:20:09 | bf12c0357f508f155f184a0bf008d35c10fc1b61 | {
"blob_id": "bf12c0357f508f155f184a0bf008d35c10fc1b61",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-10T00:20:09",
"content_id": "edfdd624983b5f8113f97b4cce63afff3dbfab86",
"detected_licenses": [
"MIT"
],
"directory_id": "3c6f2227a4d7a5cbeed52df6dd84f62e4eea5de8",
"extension": "c"... | stackv2 | #include <jni.h>
#include <assert.h>
#include <stdlib.h>
#include <android/log.h>
#include <HaskellActivity.h>
#include "MainWidget.h"
jint android_timezone_offset() {
JNIEnv *env;
jint attachResult = (*HaskellActivity_jvm)->AttachCurrentThread(HaskellActivity_jvm, (void **)&env, NULL);
assert(attachResult == JN... | 2.0625 | 2 |
2024-11-18T23:17:49.791705+00:00 | 2021-06-10T14:57:30 | c44bb40981a23291848cd9e3267809634bb723b7 | {
"blob_id": "c44bb40981a23291848cd9e3267809634bb723b7",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-10T14:57:30",
"content_id": "10ac8e9b689209c732a6019a35efdc003b55c160",
"detected_licenses": [
"MIT"
],
"directory_id": "28bf7793cde66074ac6cbe2c76df92bd4803dab9",
"extension": "c",
... | stackv2 | #include <stdio.h>
int sum();
int main()
{
int num;
printf("\nEnter the number: ");
scanf("%d", &num);
printf("\nSum = %d\n", sum(num));
}
int sum(int num)
{
if(num == 0)
return 0;
return ((num % 10) + sum(num / 10));
}
| 3.5 | 4 |
2024-11-18T23:17:50.188830+00:00 | 2021-03-26T11:42:37 | ffee52090b3cfc92241cc234e9379d2b4a233c34 | {
"blob_id": "ffee52090b3cfc92241cc234e9379d2b4a233c34",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-26T11:42:37",
"content_id": "7ff196fc70f6d58d371344a091746bc6d8961952",
"detected_licenses": [
"Zlib"
],
"directory_id": "8cb3fce93e737fdee11292a4e87ddeb0f322dbda",
"extension": "c... | stackv2 | /*
Copyright (c) 2018-2021 Alexander Pogudaev
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applic... | 2.359375 | 2 |
2024-11-18T23:17:50.489977+00:00 | 2018-12-09T19:38:21 | ca8d74b18691bb80e3539e38e32baaec573307a6 | {
"blob_id": "ca8d74b18691bb80e3539e38e32baaec573307a6",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-09T19:38:21",
"content_id": "604dc82ed02acc138423d6ec8262981895df774a",
"detected_licenses": [
"MIT"
],
"directory_id": "d7077868a26e9c49a64a6f52dff3591e77b8c42b",
"extension": "h"... | stackv2 | /**
* Wrapping for memory allocation functions
* to exit on a failure with corresponding message.
*
* @authors: Denis Chernikov, Vladislav Kuleykin
*/
#ifndef C_PARSER_MALLOC_WRAP_H_INCLUDED
#define C_PARSER_MALLOC_WRAP_H_INCLUDED
#include <stddef.h>
/// Wrapping for `malloc' function. Exits application if `NUL... | 2.3125 | 2 |
2024-11-18T23:17:50.696257+00:00 | 2011-05-10T18:58:39 | e49d60555fcf977572f326ffcb70ae39ad017951 | {
"blob_id": "e49d60555fcf977572f326ffcb70ae39ad017951",
"branch_name": "refs/heads/master",
"committer_date": "2011-05-10T18:58:39",
"content_id": "5a26b596f9798bbe124c7c1074b5738777870974",
"detected_licenses": [
"Zlib"
],
"directory_id": "584a095d385b17f3a2e4f3f2525b67667af92ad8",
"extension": "h... | stackv2 | /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
/*
Title: OS Abstraction
*/
#ifndef BASE_SYSTEM_H
#define BASE_SYSTEM_H
#include "detect.h"
#ifdef __cplusplus
extern "C" {... | 2.625 | 3 |
2024-11-18T23:17:50.812114+00:00 | 2015-10-01T00:02:38 | b49f10c4fe04c072d0741bb842396d912949d955 | {
"blob_id": "b49f10c4fe04c072d0741bb842396d912949d955",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-01T00:02:38",
"content_id": "12d0237c5f3850bde1bf295aaa8006ace0bab54b",
"detected_licenses": [
"MIT"
],
"directory_id": "6470a4b0cc4f8512cdd0516d304eb146133b36ea",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include "matrix.h"
#include "vector.h"
int main(int argc, char const *argv[]) {
unsigned D; // Numero de paginas. (Dimensão da matriz)
double dampingFactor; // Fator de Damping
double **matriz = NULL; // Matriz a ser alocada.
double **said... | 2.65625 | 3 |
2024-11-18T23:17:50.963207+00:00 | 2021-06-30T20:14:19 | 540d7279eb2305f5086d7e292a1ea864e31f5497 | {
"blob_id": "540d7279eb2305f5086d7e292a1ea864e31f5497",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-30T20:14:19",
"content_id": "65b529052f38af8b43f5c9eaccbe8a6479a84d11",
"detected_licenses": [
"MIT"
],
"directory_id": "ea51b8ea329ab09ab960b610157384672a3c1700",
"extension": "h"... | stackv2 | #ifndef SS_POEM_H_GUARD
#define SS_POEM_H_GUARD
#include "general.h"
#include "line.h"
/**
* An array of lines of a poem
*/
typedef struct {
int len; ///< The number of lines
line_t *vals; ///< The actual lines
size_t textLen; ///< `text`'s length
letter *text; ///< Where all lines r... | 2.65625 | 3 |
2024-11-18T23:17:52.094640+00:00 | 2016-09-18T15:12:24 | 08ef91fb508ab0ec2da0af9296c39080c0108b86 | {
"blob_id": "08ef91fb508ab0ec2da0af9296c39080c0108b86",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-18T15:12:24",
"content_id": "2c639cc2806589a166a0a0950b13e7cbb6bff45f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5c66d2cfb69a7e8f5127e444adcd51314c7af88b",
"extensio... | stackv2 | #include "caryll-sfnt-builder.h"
#ifndef MAIN_VER
#define MAIN_VER 0
#endif
#ifndef SECONDARY_VER
#define SECONDARY_VER 0
#endif
#ifndef PATCH_VER
#define PATCH_VER 0
#endif
static uint32_t buf_checksum(caryll_buffer *buffer) {
uint32_t actualLength = (uint32_t)buflen(buffer);
buflongalign(buffer);
uint32_t sum = ... | 2.4375 | 2 |
2024-11-18T23:17:52.755966+00:00 | 2020-10-23T07:06:57 | b3444b00c30cb0011639f92fcdcf6c3879b9fc3e | {
"blob_id": "b3444b00c30cb0011639f92fcdcf6c3879b9fc3e",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-23T07:06:57",
"content_id": "0bd20063acc53470d0ef166997c4e108ec3cb54b",
"detected_licenses": [],
"directory_id": "aef526403d02dae6b5e85e8c404ebb532d704f02",
"extension": "c",
"filename... | stackv2 | #include<stdio.h>
#include<stdlib.h>
struct NODE
{
int data;
struct NODE* left;
struct NODE* right;
};
int getLevelUtil(struct NODE *NODE, int data, int level)
{
if (NODE == NULL)
return 0;
if (NODE->data == data)
return level;
int downlevel = getLevelUt... | 3.359375 | 3 |
2024-11-18T23:17:52.839853+00:00 | 2017-02-28T07:47:20 | 746194e9a7ff1ba56835d3fa4c16fe7f4f9db3b8 | {
"blob_id": "746194e9a7ff1ba56835d3fa4c16fe7f4f9db3b8",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-01T14:14:08",
"content_id": "1a1c05ce9aff8722436e30ead26939dce434c644",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "f94e99c522d03e90adb895ebcc93f6b1... | stackv2 | #ifndef _PHONEBOOK_H
#define _PHONEBOOK_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define MAX_LAST_NAME_SIZE 16
/* simplify struct */
#define OPT 1
typedef struct __PHONE_BOOK_ENTRY_REMAIN {
char firstName[16];
char email[16];
char phone[10];
char cell[10];
... | 2.0625 | 2 |
2024-11-18T23:17:53.512879+00:00 | 2019-09-05T07:16:27 | 97fbd410a6aff159bf6ec645533738fd5d0ec8df | {
"blob_id": "97fbd410a6aff159bf6ec645533738fd5d0ec8df",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-05T07:16:27",
"content_id": "d3e5c860b7a431300546984e8f3814cc0877470c",
"detected_licenses": [
"MIT"
],
"directory_id": "5a97be73f3c6e2987480194a791675259f8d7edf",
"extension": "c"... | stackv2 | // This is an empty program with decimal lib
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
// ---------- decimal lib start ----------
#define PREC 2100
#define Decimal_len (PREC / 9 + 1)
const int Decimal_mo = 1000000000;
typedef struct {
bool is_neg;
long long integer;
int data[Decimal_len];
} D... | 3.03125 | 3 |
2024-11-18T23:17:53.667733+00:00 | 2021-01-24T23:04:25 | 51d42cf349ace6b1774242c9ec135fc77adfb2bd | {
"blob_id": "51d42cf349ace6b1774242c9ec135fc77adfb2bd",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-24T23:04:25",
"content_id": "8ad92d56d3137869ec6bd19f58155a9ec164c0a7",
"detected_licenses": [
"MIT"
],
"directory_id": "5d29a95397845ab42a1a430601f4cc5ba6a7466e",
"extension": "c"... | stackv2 | /* -----------------------------------------------------------------------------
* Copyright (C) 2021 Jaime M. Villegas I. <jaime7592@gmail.com>
* -----------------------------------------------------------------------------
* Filename : ADT_Matrix.c
* Description : Abstract Data Type for matrices. Library f... | 2.890625 | 3 |
2024-11-18T23:17:54.721153+00:00 | 2023-08-18T12:54:06 | a9e4ac4d96da504f1ee6c38aded75f8f2133f974 | {
"blob_id": "a9e4ac4d96da504f1ee6c38aded75f8f2133f974",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T12:54:06",
"content_id": "a0f53851e49dde0079b3f6ebab0215594b67b8b5",
"detected_licenses": [
"MIT"
],
"directory_id": "22446075c2e71ef96b4a4777fe966714ac96b405",
"extension": "c"... | stackv2 | /*!
* \file
* \brief Rs4854 Click example
*
* # Description
* This example reads and processes data from RS485 4 clicks.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initializes driver.
*
* ## Application Task
* Reads the received data.
*
* ## Additional Functi... | 2.671875 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.