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-18T21:51:51.404501+00:00 | 2016-10-18T14:29:42 | 7e14c777379505882415d4ef49f86e54ae1ab68c | {
"blob_id": "7e14c777379505882415d4ef49f86e54ae1ab68c",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-18T14:29:42",
"content_id": "d2eedf7f641b6ccebfec00cefe451835729aad57",
"detected_licenses": [
"MIT"
],
"directory_id": "f37c7b67bbac5762e32c636e0a87a1c2acd9e2c1",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include "pureLisp.h"
int main(int argc, char *argv[]) {
initialize();
Object *readExp, *evalExp;
Object *env;
FILE *fp = stdin;
// 引数があればソースファイルを読み込む
if (argc == 2) {
if (strcmp(argv[1], "-e") == 0) {
// -eオプションは標準入力で読み込みと評価だけにする
// (多言語の慣習と違うけどテストが楽なので)
} else... | 2.5 | 2 |
2024-11-18T21:51:52.309221+00:00 | 2023-08-29T17:14:36 | 6c440dce7d88956bc47e520b052747b0822bb01a | {
"blob_id": "6c440dce7d88956bc47e520b052747b0822bb01a",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-29T17:14:36",
"content_id": "6101ecea66d0a21dd802463135bf6627ffe30fff",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ca67bdf8860b0e3bdbd5b9e8cdbca8ada860be66",
"extension"... | stackv2 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/testing/aws_test_harness.h>
#include <aws/mqtt/private/fixed_header.h>
#include <aws/mqtt/private/mqtt311_decoder.h>
#include <aws/mqtt/private/packets.h>
struct mqtt_311_decoding_test_... | 2.296875 | 2 |
2024-11-18T21:51:52.688143+00:00 | 2015-10-19T08:42:45 | 57db06dd79d430e6784b19b6ec998ea9b5d2b47e | {
"blob_id": "57db06dd79d430e6784b19b6ec998ea9b5d2b47e",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-19T08:42:45",
"content_id": "06b058236672e692aa019f5e2c60d63516f44f89",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "55692197f3346accc7bad471ca5945ce1d10bd79",
"extens... | stackv2 | /*
* Copyright (c) 2010, Vrije Universiteit Brussel
* 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 ... | 2.09375 | 2 |
2024-11-18T21:51:52.930434+00:00 | 2013-12-30T06:10:50 | b4f065736da0a7e00a9730700360bb10359a29ad | {
"blob_id": "b4f065736da0a7e00a9730700360bb10359a29ad",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-30T06:10:50",
"content_id": "d55f04632bf8ebd6daaed3bdd9590f78d8eeacf6",
"detected_licenses": [
"MIT"
],
"directory_id": "1434ae4307bef7139443ed7082b46ef2c3e008c0",
"extension": "c"... | stackv2 | // Prints out the last n lines of input (where n defaults to 10).
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
FILE *create_temporary_file(void);
long get_tail_length(int, char *[]);
int is_number(char *);
void print_file(FILE *);
void print_tail(long, FILE *);
int read_file_backwards(FILE *);
void set_f... | 3.515625 | 4 |
2024-11-18T21:51:53.010340+00:00 | 2016-05-18T19:42:46 | 5b5e53814cb7acce2a28c2358817f1cc5a2a67c0 | {
"blob_id": "5b5e53814cb7acce2a28c2358817f1cc5a2a67c0",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-18T19:42:46",
"content_id": "e6af81aa4ae227eb8dcc372505ff535f34ab53fc",
"detected_licenses": [
"MIT"
],
"directory_id": "de6604045fb627b86b6bb03c9f99fc69ed01a954",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <errno.h>
#include <locale.h>
#include <ksu_common.h>
#include <ksu_dates.h>
#include <ksu_pg.h>
#define FORMAT_LEN 200
#define LEADING 0
#define TRAILING 1
static int trim_not_numeric(char **fmtp,
... | 2.75 | 3 |
2024-11-18T21:51:53.119604+00:00 | 2020-02-27T18:27:43 | 483c9b67dfb2ebb6b98578f608cdbcc16fe63a10 | {
"blob_id": "483c9b67dfb2ebb6b98578f608cdbcc16fe63a10",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-27T18:27:43",
"content_id": "a8ba3ca6cd58dc6054b09e0ff5484df7cd05b9b2",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "da87c3c4568baf73eafba3bdd0398b72... | stackv2 | /*
* FILE %ned/07/ned0754d.c
*
* paste the current date into the current window
*
* written: 1995-11-28
* latest update: 1997-11-28 12:39:33
*
*/
#ifdef MSDOS
#pragma check_stack(off)
#endif
#include <stdlib.h>
#include <gg/dates.h>
#include "ed.h"
#include "proto.h"
extern struct WINDOWCTRL *aw;
... | 2.0625 | 2 |
2024-11-18T21:51:54.305253+00:00 | 2020-05-22T07:03:12 | a756d77760d439aa127910fb0870487921958cf7 | {
"blob_id": "a756d77760d439aa127910fb0870487921958cf7",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-22T07:03:48",
"content_id": "1266f87ccab7f03b8a01efda66323ade011f2cbe",
"detected_licenses": [
"MIT"
],
"directory_id": "4c9a57fe17a83de323271c9683457a6f30d3138c",
"extension": "c"... | stackv2 | #include <tthread.h>
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <sys/time.h>
#include "unity.h"
static void test_pthread_attr_setdetachstate(void) {
pthread_attr_t attr;
memset(&attr, 0x55, sizeof(attr));
TEST_ASSERT_EQUAL_MESSAGE(0, pthread_attr_init(&attr),
... | 2.375 | 2 |
2024-11-18T21:51:54.583436+00:00 | 2021-03-30T13:39:02 | df6381ae57dd50639a217e4714d2d4b9aecaba00 | {
"blob_id": "df6381ae57dd50639a217e4714d2d4b9aecaba00",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-30T13:39:02",
"content_id": "4ded7cd1ff484f38ff0ea0a3f3892e6333acf6f9",
"detected_licenses": [
"MIT"
],
"directory_id": "4520626bab2e761c937be79a96d2a047997476f1",
"extension": "c"... | stackv2 | #include "dynarray.h"
#include "utils.h"
#include <string.h>
void dynarray_append(void ***array, void *value) {
int curlen = *array ? array_len(*array) : 0;
*array = realloc(*array, sizeof(void *) * (curlen + 2));
(*array)[curlen] = value;
(*array)[curlen + 1] = 0;
}
void dynarray_remove(void ***array, void *valu... | 2.71875 | 3 |
2024-11-18T21:51:54.675643+00:00 | 2021-08-16T04:08:42 | e771e891aac03b8a22017157a51419053ac4257a | {
"blob_id": "e771e891aac03b8a22017157a51419053ac4257a",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-16T04:08:42",
"content_id": "be3deacaa15a24122eb597931e0daff26946984b",
"detected_licenses": [
"MIT"
],
"directory_id": "8e9593a17628bfcc701e33073cff637eeeeaeaea",
"extension": "h",
... | stackv2 | #ifndef WINDOWED_BUFFER_INCLUDE
#define WINDOWED_BUFFER_INCLUDE
struct WindowedBuffer
{
static const int bufferSize = 4096;
float buffer[bufferSize];
int appendIndex = 0;
void append(float *values, size_t size)
{
if (appendIndex >= bufferSize)
{
int extra = (appendIndex + size) - bufferSize;... | 2.59375 | 3 |
2024-11-18T21:51:54.924843+00:00 | 2023-07-10T16:06:35 | 492ea9a6a9adad70b817f9ec5f0d1248dfadbb75 | {
"blob_id": "492ea9a6a9adad70b817f9ec5f0d1248dfadbb75",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-10T16:06:35",
"content_id": "62da48edce167c8a38c1bd8de5114caf7f8077ad",
"detected_licenses": [
"ISC",
"MIT"
],
"directory_id": "d2e0fb3fdad7fc2cb70894591d358f40d8db13d2",
"exte... | stackv2 | /* Copyright (c) 2022 Dennis Wölfing
*
* 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 DISCLAI... | 2.453125 | 2 |
2024-11-18T21:51:55.499333+00:00 | 2021-02-18T17:40:49 | 21b142404d0471d32d11b7d6b5f1043f5daed884 | {
"blob_id": "21b142404d0471d32d11b7d6b5f1043f5daed884",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-18T17:40:49",
"content_id": "8741b5dfbba38e646a55602e6a99e61634c43ec0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "aa455e796b48222496775caab1330e47d403537a",
"extens... | stackv2 | #include "SSD1306.h"
#include "Robot.h"
uint8_t SSD1306_Buff_L[SSD1306_WIDTH * SSD1306_HEIGHT / 8];
uint8_t SSD1306_Buff_R[SSD1306_WIDTH * SSD1306_HEIGHT / 8];
SSD1306_LEFT_st SSD1306_Left;
SSD1306_RIGHT_st SSD1306_Right;
HAL_StatusTypeDef SSD1306_WriteCmdRight(uint8_t command)
{
HAL_StatusTypeDef status;
statu... | 2.453125 | 2 |
2024-11-18T21:51:55.923972+00:00 | 2013-08-25T22:32:29 | b0d2efefa26428b26412a0257030d36024349569 | {
"blob_id": "b0d2efefa26428b26412a0257030d36024349569",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-25T22:32:29",
"content_id": "a52c52a7e50f92a6c779ce65ceb92710a60ad776",
"detected_licenses": [
"MIT"
],
"directory_id": "d4027b567b24e3191dd81e96605ee73f9be9d9ff",
"extension": "c"... | stackv2 | /** list.c **/
#include "list.h"
list_t *l_new() {
list_t *newlist;
assert((newlist = malloc(sizeof(list_t))) != NULL);
newlist->head = NULL;
newlist->tail = NULL;
newlist->position = NULL;
return(newlist);
}
void l_add(list_t *list, void *object) {
node_t *new;
/* Create and initiali... | 3.46875 | 3 |
2024-11-18T21:51:56.027610+00:00 | 2020-11-03T07:56:33 | 4c62e11acd1e08f96fa9dc518879431784795da8 | {
"blob_id": "4c62e11acd1e08f96fa9dc518879431784795da8",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-03T07:56:33",
"content_id": "b4bdafebe4b61f455af185ee21b10838c77cf959",
"detected_licenses": [
"MIT"
],
"directory_id": "7aa5ccf59ddb2f04aaae244120b7ba0edc8bbc8b",
"extension": "c",
... | stackv2 | /*******Program to reverse an array or string*********/
#include<stdio.h>
int main(){
// Enter the size of the array
int n;
printf("Enter the size of the array: ");
scanf("%d", &n);
// Enter the values in array
int arr[n];
printf("Enter array: ");
for(int i=0; i<n; i++){
scan... | 4 | 4 |
2024-11-18T21:51:56.216031+00:00 | 2014-09-24T23:35:28 | b4a90adf5f5bfe6d6a450d3c07359277eeebe75a | {
"blob_id": "b4a90adf5f5bfe6d6a450d3c07359277eeebe75a",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-24T23:35:28",
"content_id": "01b4aa6d15ea536eccda3ae6d4f237f1105b56a5",
"detected_licenses": [
"BSD-1-Clause"
],
"directory_id": "f9b5883f506b3a66ec52b5813e1114b38011ae5b",
"extens... | stackv2 | /**
* This file, alder_hashtable_mcas2.c, is part of alder-kmer.
*
* Copyright 2013, 2014 by Sang Chul Choi
*
* alder-kmer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License... | 2.1875 | 2 |
2024-11-18T21:51:56.319073+00:00 | 2022-01-22T12:14:41 | 0f71db8cdece660b2ab795c9ec928ecf431469ac | {
"blob_id": "0f71db8cdece660b2ab795c9ec928ecf431469ac",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-22T12:14:41",
"content_id": "9b4056a334daf23788fa7e25fda132f5d3642cf8",
"detected_licenses": [],
"directory_id": "62da3ad76849ea4f7cd9d9ab72091b5884dfae4e",
"extension": "c",
"filename... | stackv2 | #include "lionPrint.h"
#include <assert.h>
#include <stdarg.h>
int lion_verbosity_level = 0;
FILE* lion_stdout = NULL;
FILE* lion_stderr = NULL;
int lion_get_verbosity() {
return lion_verbosity_level;
}
void lion_set_verbosity(int lvl) {
assert(lvl >= 0);
lion_verbosity_level = lvl;
}
void lion_set_stdout(FIL... | 2.703125 | 3 |
2024-11-18T21:51:58.322925+00:00 | 2018-09-26T19:35:14 | 71a73b741e09ba33e9c2aba4139aaa0c0533bc39 | {
"blob_id": "71a73b741e09ba33e9c2aba4139aaa0c0533bc39",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-26T19:35:14",
"content_id": "bff4d67ce16d5d62934196a6a9c3f617ddd016b4",
"detected_licenses": [
"MIT"
],
"directory_id": "54adda89c3fe904aa4b53b7d3bff5c65cca174ec",
"extension": "c"... | stackv2 | #include <unistd.h>
#include <strings.h>
#include <string.h>
#include <stdio.h>
void ft_bzero(void *mem, unsigned int len);
_Bool fail = 0;
static void test1() {
// Assign
char t1[] = "Hello, world!";
char r1[] = "Hello, world!";
// Act
ft_bzero(t1, 14);
bzero(r1, 14);
// Assert
if ... | 2.859375 | 3 |
2024-11-18T21:52:02.183647+00:00 | 2023-08-24T09:42:53 | f00a27d4e2a0d3439f156d9272f0dc2b4be562d9 | {
"blob_id": "f00a27d4e2a0d3439f156d9272f0dc2b4be562d9",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-24T09:42:53",
"content_id": "35a52c5fecfc8fa7d2e6a7002675adbcfccae8da",
"detected_licenses": [
"Zlib",
"MIT"
],
"directory_id": "e2d31e3754624eeb0a2dace8691c5c25ed3b988e",
"ext... | stackv2 | // poly34.h : solution of cubic and quartic equation
// (c) Khashin S.I. http://math.ivanovo.ac.ru/dalgebra/Khashin/index.html
// khash2 (at) gmail.com
#ifndef POLY_34
#define POLY_34
#include "LinearMath/btScalar.h"
// x - array of size 2
// return 2: 2 real roots x[0], x[1]
// return 0: pair of complex roots: x[0]i*... | 2.078125 | 2 |
2024-11-18T21:52:02.331880+00:00 | 2023-07-26T08:56:53 | 5859fc45d423e8485c888062492c77c7341bb14c | {
"blob_id": "5859fc45d423e8485c888062492c77c7341bb14c",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-26T08:56:53",
"content_id": "7e7fd891843c25dfec4130b217a3b6ca76774c9c",
"detected_licenses": [
"MIT"
],
"directory_id": "faa5661ad28b3bb2ec2b732356c22c18479d7c94",
"extension": "c"... | stackv2 | #include "drally.h"
#pragma pack(1)
typedef struct s3m_position_s {
__BYTE__ Order;
__BYTE__ Row;
} s3m_position_t;
s3m_position_t S3M_Position = {0, 0};
s3m_position_t S3M_NewPosition = {0, 0};
int S3M_UpdatePosition = 0;
__DWORD__ ___71a44h_cdecl(void){ // getPosition
__DWORD__ rslt;
if(S3M_P... | 2.328125 | 2 |
2024-11-18T21:52:02.404075+00:00 | 2021-01-30T13:15:23 | f11e2b643be20307a975ba5260ab7f7bc7caab4a | {
"blob_id": "f11e2b643be20307a975ba5260ab7f7bc7caab4a",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-30T13:15:23",
"content_id": "cdeed85b196d2fe5187870e4cedeff3629468f1a",
"detected_licenses": [
"Unlicense"
],
"directory_id": "5ad69a5199de09595b9f9e6564eb86babb3c2717",
"extension... | stackv2 | /*
* Author: Zhenxing Xu <xzxlnmail@163.com>
*
* This is free and unencumbered software released into the public domain.
* For details see the UNLICENSE file at the root of the source tree.
*
* Struct timespec: first parameters
* CLOCK_REALTIME: system current time, from 1970.01.01 date.
* CLOCK_MONOTONIC: syst... | 2.671875 | 3 |
2024-11-18T21:52:02.576669+00:00 | 2014-09-30T03:32:18 | 3af0686a2e7d7c32bb5f8d611b793bba9ea65541 | {
"blob_id": "3af0686a2e7d7c32bb5f8d611b793bba9ea65541",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-30T03:32:18",
"content_id": "bf439044036b57defa3182f3e374f55f524d0698",
"detected_licenses": [
"Unlicense"
],
"directory_id": "336287060408afdb489aed35d958a10cf0c9c546",
"extension... | stackv2 | /*
Geração de números aleatórios
em C:
rand(): gera números entre 0 e RAND_MAX (no stdlib.h)
srand(semente): initica o gerador. a semente deve ser sempre diferente (usaremos o time).
time(0): tempo da bios em segundos
stdlib.h
time.h
Revisar comportamento de variáveis dinâmicas e estáticas na memória;
... | 3.5 | 4 |
2024-11-18T21:52:02.663593+00:00 | 2023-08-11T07:49:36 | 722eb3a20132d45152139d1f19cb153078b6e57e | {
"blob_id": "722eb3a20132d45152139d1f19cb153078b6e57e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T13:20:27",
"content_id": "aee60df4fd1acbf6e79f2e365ce6ef45c8b0dd6b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1f399edf85d995443d01f66d77eca0723886d0ff",
"extens... | stackv2 | /*
* Copyright (C) 2021-2022 Intel Corporation.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef ARCH_X86_GUEST_VIRQ_H
#define ARCH_X86_GUEST_VIRQ_H
struct acrn_vcpu;
struct acrn_vm;
/**
* @brief virtual IRQ
*
* @addtogroup acrn_virq ACRN vIRQ
* @{
*/
/**
* @brief Queue exception to guest.
*
* This ... | 2.03125 | 2 |
2024-11-18T21:52:02.989693+00:00 | 2016-12-11T21:37:21 | b37ef1c2d36b821b21f9eff9b2f80d53d5e07c1f | {
"blob_id": "b37ef1c2d36b821b21f9eff9b2f80d53d5e07c1f",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-11T21:37:21",
"content_id": "ae2ba2c8a1b56cd03739971ec9e2454cf4cc5611",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "21ace9c12a399ad71cc5b1bb056903238309eb43",
"extensio... | stackv2 | /* benchmark.h
*/
#ifndef BENCHMARKS_INCLUDE_BENCHMARK_H_
#define BENCHMARKS_INCLUDE_BENCHMARK_H_
#include "misc/configreport.h"
#define RDTSC_START(cycles) \
do { \
register unsigned c... | 2.578125 | 3 |
2024-11-18T21:52:03.089022+00:00 | 2021-02-28T19:55:49 | 64ccdde500f4a801dfc38c54b646bd2c47eb2bfc | {
"blob_id": "64ccdde500f4a801dfc38c54b646bd2c47eb2bfc",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-28T19:55:49",
"content_id": "3b3ec4528d3875862fe1553e850873a749c4f68a",
"detected_licenses": [
"Unlicense"
],
"directory_id": "d52b9a9e1838189d6b324704865ca6badec1dd79",
"extension":... | stackv2 | /******************************************************************************
Method of False Position (or Regula Falsi) - Algorithm 2.4B
*******************************************************************************
To find a solution to f(x) = 0 given the continuous function f on the
interval [a,b] where f(a) an... | 3.171875 | 3 |
2024-11-18T21:52:04.211390+00:00 | 2023-08-10T09:04:44 | 7b67d7b569cc27b0cc2cf398440c6ab30f5173be | {
"blob_id": "7b67d7b569cc27b0cc2cf398440c6ab30f5173be",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-10T09:04:44",
"content_id": "8612c05d9d2205f406b260a619fe54a0f8ec6a6f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c6759b857e55991fea3ef0b465dbcee53fa38714",
"extensio... | stackv2 | /*
* Copyright (C) 2017 ETH Zurich, University of Bologna and GreenWaves Technologies
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
* Authors: Germain Haugou, ETH (germain.haugou@iis.ee.ethz.ch)
*/
#include "... | 2.34375 | 2 |
2024-11-18T21:52:04.328249+00:00 | 2019-09-29T14:55:14 | 1af3e13b754dbf190f979a081c0648bd04b16760 | {
"blob_id": "1af3e13b754dbf190f979a081c0648bd04b16760",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-29T14:55:14",
"content_id": "d0aa297b1bad516eb4fa06d3ee05c800bada67f9",
"detected_licenses": [
"MIT"
],
"directory_id": "b6cd074e616b21945cf4d4cdbba401e0214e9dc4",
"extension": "c"... | stackv2 | /*
- A simple card game that asks player for 4 cards (i.e., 2H, 3D, 5C), and determind the best cards.
- the game will ask player to input a "Trump Suit", which will overpower the other suits, if one of the card contains said suit.
- if no cards contain the trump suit, the first card's suit becomes the dominant suit, c... | 3.609375 | 4 |
2024-11-18T21:52:05.704474+00:00 | 2018-04-15T08:12:10 | 613a1f06e1bd82ab947ab4578b0d210845634b2f | {
"blob_id": "613a1f06e1bd82ab947ab4578b0d210845634b2f",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-15T08:12:10",
"content_id": "dc97bea48e9836e80f17e15aed3a1cb49d9c30ad",
"detected_licenses": [
"MIT"
],
"directory_id": "f04113a45f188528c3665eff17da3209ea61fd29",
"extension": "c"... | stackv2 | #include "Tinn.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
// Error function.
// 错误函数
static float err(float a, float b)
{
return 0.5f * powf(a - b, 2.0f);
}
// Partial derivative of error function.
// 错误函数偏导数
static float pderr(float a, float b)
{
return a - b;
}
// Total ... | 2.984375 | 3 |
2024-11-18T21:52:06.026083+00:00 | 2019-10-04T03:56:27 | 42b8568a96cc44cb2ffb5a9be6b216ae649308cf | {
"blob_id": "42b8568a96cc44cb2ffb5a9be6b216ae649308cf",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-04T03:56:27",
"content_id": "840669e7f615f30a50b6c336e66f7576b9a03771",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7958ba70a603c0af7ae933f50416cb002c9de51b",
"extensio... | stackv2 | /*
* File : title.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date ... | 2.28125 | 2 |
2024-11-18T21:52:06.203595+00:00 | 2019-02-14T12:20:25 | b05eb9da48f3499567e8f88c044bd9320dcfe53e | {
"blob_id": "b05eb9da48f3499567e8f88c044bd9320dcfe53e",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-14T12:20:25",
"content_id": "71675fa61127d5a9392572d7226ab8c96402ef89",
"detected_licenses": [
"MIT"
],
"directory_id": "e0ba609130c217a32b9658c86401330a897737b8",
"extension": "c"... | stackv2 | /*
==============================================================================
Author : Tifan Dwi Avianto (github.com/ifananvity)
NIM : A11.2017.10629 / A11.4113
Version : 1.0 - 02/12/2017
PERILAKU PROGRAM :
repeat 10 times
Meminta user jawaban dari soal n + n
I.S : n = 1
Proses : n = n + 1
F.S : n = 10
... | 3.40625 | 3 |
2024-11-18T21:52:10.371621+00:00 | 2018-10-25T04:21:58 | fe6fedcb95767da99b97a40e88024b24d9310aad | {
"blob_id": "fe6fedcb95767da99b97a40e88024b24d9310aad",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-25T04:21:58",
"content_id": "623fc64196bc93f844220a38c1bb91a6e2a2fcfa",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e281acf1b9adaac88d7b85443adfbcfaca1a41d9",
"extensio... | stackv2 |
#ifndef SALSA10_SIMPLE_H
#define SALSA10_SIMPLE_H
#include <stdint.h>
#define ROTL32(v, n) ((v) << (n)) | ((v) >> (32 - (n)))
#define LE(p) (((uint32_t)((p)[0])) | ((uint32_t)((p)[1]) << 8) | ((uint32_t)((p)[2]) << 16) | ((uint32_t)((p)[3]) << 24))
#define FROMLE(b, i) (b)[0] = i & 0xFF; (b)[1] = (i >> 8) & 0xFF; (b... | 2.375 | 2 |
2024-11-18T21:52:10.542235+00:00 | 2014-12-30T04:29:35 | 0f52aa260354c57cdf08fc6383a09124d79ce252 | {
"blob_id": "0f52aa260354c57cdf08fc6383a09124d79ce252",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-30T04:29:35",
"content_id": "95ac4b5cf62981564e530379dc0ef7670a58f170",
"detected_licenses": [
"MIT"
],
"directory_id": "eb7b3068320d7ed4d8126863f14c13e48aa2dd60",
"extension": "h"... | stackv2 | /*
Author: limenghong
*/
#ifndef __UTILS_H__
#define __UTILS_H__
/* Log to stderr. */
#define LOG(...) \
do { \
fprintf(stderr, "%s", __VA_ARGS__); \
fflush(stderr); \
} while (0)
#define LOGF(...) \
do {... | 2.0625 | 2 |
2024-11-18T21:52:10.920570+00:00 | 2019-10-24T02:35:13 | 60987207346ab5823145b545ee8c113a403e74ab | {
"blob_id": "60987207346ab5823145b545ee8c113a403e74ab",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-24T02:38:09",
"content_id": "fc6f805ee5078bbe3e6092e36139c52ed7495e63",
"detected_licenses": [
"MIT"
],
"directory_id": "8f2a18269c5a25a861eb299b012cf72b81cca84e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "array.h"
#include "util.h"
/**
* Simple hash
*/
#define HASHSIZE 8192
#define GOODPRIME 2711 /* Near prime number of 8192/3 */
#define MINUSLIMIT 99 /* Assumed -99 to positive number 0 */
#define HASHFUNC(k) (((k + MINUSLIMIT) * GOODPRIME) & (HASHS... | 3.078125 | 3 |
2024-11-18T21:52:11.148702+00:00 | 2018-02-01T06:00:00 | b3db8b32cc6e71ddd595c9490b98ba131fb6e7a6 | {
"blob_id": "b3db8b32cc6e71ddd595c9490b98ba131fb6e7a6",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-01T06:00:00",
"content_id": "e2d6b0aecda861b11c66fd7fb7b7fb266e61728a",
"detected_licenses": [
"MIT"
],
"directory_id": "07713c745f6b5c0a73fdfc5bebe8815af52a0f7d",
"extension": "c"... | stackv2 | # include <stdio.h>
# include <stdlib.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <unistd.h>
# include <fcntl.h>
struct stat a;
int main()
{
int in=0;
int u_read=0,u_write=0,u_x=0,g_read=0,g_write=0,g_x=0,o_read=0,o_write=0,o_x=0,u_s=0,g_s=0,sticky=0;
if((in=open("plain.txt",O_RDONLY)) <0)
{
pe... | 2.78125 | 3 |
2024-11-18T21:52:11.566230+00:00 | 2014-09-11T17:14:13 | 27e00f0bcc9f4566b0fcd756c741fe5143969ef6 | {
"blob_id": "27e00f0bcc9f4566b0fcd756c741fe5143969ef6",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-11T17:14:13",
"content_id": "6a1a61b8075ba052f09cc75f3da4f0b986f5eb17",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1aad083a71b8d77f45c735b89b1ad7a52646cf62",
"extensio... | stackv2 | #include <stdio.h>
#define MAXLINEA 80
#define MAXFRASE 40
int main (void)
{
int a,b;
char frase [MAXFRASE+1];
char linea [MAXLINEA+1];
printf ("Dame el valor de un entero: ");
gets (linea);
sscanf (linea, "%d", &a);
printf ("Introduce ahora una frase: ");
gets (frase);
printf... | 3.21875 | 3 |
2024-11-18T21:52:11.772826+00:00 | 2020-09-19T11:34:06 | 37d0e29eb4de34a2320055ba1816184f9f4a3819 | {
"blob_id": "37d0e29eb4de34a2320055ba1816184f9f4a3819",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-19T11:34:06",
"content_id": "675a7bc534d40493e8184ea93481a025be473329",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "3ab1032c35cbef5fb5cc54be0c1a555297fdbfa5",
"extension":... | stackv2 | #include <math.h>
#include <advanced_calculator.h>
float add(float operand1, float operand2)
{
return operand1 + operand2;
}
float subtract(float operand1, float operand2)
{
return operand1 - operand2;
}
float multiply(float operand1, float operand2)
{
return operand1 * operand2;
}
float divide(float op... | 3 | 3 |
2024-11-18T21:52:12.333989+00:00 | 2015-06-29T08:49:41 | 465487e45a7c7b5bea939954f4b989fe56c9d6a9 | {
"blob_id": "465487e45a7c7b5bea939954f4b989fe56c9d6a9",
"branch_name": "refs/heads/http-server-2-with-net-skeleton",
"committer_date": "2015-06-29T08:49:41",
"content_id": "98b2a3fa56dfbcb0e8da7a8f1f342ad2099411c5",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b27f857c54d7998d86e2db5bc2b... | stackv2 | /* =========================================================================
wap_server - wap_server
Copyright (c) the Contributors as noted in the AUTHORS file.
(insert license text here)
==============... | 2.046875 | 2 |
2024-11-18T21:52:13.565542+00:00 | 2023-08-21T22:56:29 | b98750a551bbbb6c5694492e76948e60b2afb123 | {
"blob_id": "b98750a551bbbb6c5694492e76948e60b2afb123",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-21T22:56:29",
"content_id": "b163846efd4097e10edb21a03946b62550b3fc56",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "a9b6d79c59a45a25e902b2809de43f62a8e77289",
... | stackv2 | /*
* Copyright (c) 2017-2021 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
*/
/* Naive star-based reduce-bcast allreduce; just an example, so keep it
* simple... */
/* parsec things */
#include "parsec/run... | 2.328125 | 2 |
2024-11-18T21:52:14.132560+00:00 | 2017-11-22T13:31:42 | 86e81286bf5620aa49c08b880064ae054b9c8016 | {
"blob_id": "86e81286bf5620aa49c08b880064ae054b9c8016",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-22T13:31:42",
"content_id": "b290aea5cb799d993a9c9c404e855664487b0894",
"detected_licenses": [
"MIT"
],
"directory_id": "373be8770d4b7b59675452a0bfb206992a99c1cd",
"extension": "c"... | stackv2 | /*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Chester Tseng
*
* 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 So... | 2.203125 | 2 |
2024-11-18T21:52:14.402392+00:00 | 2023-03-21T06:37:34 | 1c7e01135b5bbc1596ea39c8f516934f5cb93bad | {
"blob_id": "1c7e01135b5bbc1596ea39c8f516934f5cb93bad",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-21T06:37:34",
"content_id": "75e65a51f4f6b151bf8228147baaec437fde0c3e",
"detected_licenses": [
"MIT"
],
"directory_id": "9408e8ba586af119424a37256f1eb9f612a46986",
"extension": "c"... | stackv2 | /* This file is auto-generated from pkcs11_5_10_decrypt.rpc by rpcc. */
/* -*- c -*-
*
* Copyright (c) 2020-2023 Markku Rossi.
*
* All rights reserved.
*/
#include "vp_includes.h"
/** Version: 3.0 */
/** Section: 5.10 Decryption functions */
/* C_DecryptInit initializes a decryption operation. */
CK_RV
C_Decryp... | 2.21875 | 2 |
2024-11-18T21:52:14.467772+00:00 | 2019-11-19T03:01:14 | 7ec73061eb5b1aec2a81024b88113a045b8833a3 | {
"blob_id": "7ec73061eb5b1aec2a81024b88113a045b8833a3",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-19T03:01:14",
"content_id": "9ed141e6606477e835ac5acaec0bf562ce570b6f",
"detected_licenses": [
"MIT"
],
"directory_id": "5e489d8c073a60537fbb326d54428e745d276431",
"extension": "h"... | stackv2 | /* heaer.h */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define FALSE 0
#define TRUE 1
#define NORMAL 0
#define ERROR 1
#define MAXSTRSIZE 1024
/* Token */
#define TNAME 1 /* Name : Alphabet { Alphabet | Digit } */
#define TPROGRAM 2 /* program : Keyword */
#define TVAR 3 /* var... | 2.296875 | 2 |
2024-11-18T21:52:14.577276+00:00 | 2020-05-21T11:49:01 | dac85d1bf1d9ab3c95d3cc6473c45817df935eba | {
"blob_id": "dac85d1bf1d9ab3c95d3cc6473c45817df935eba",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-21T11:49:01",
"content_id": "c6821b8784cde2a344ef732484c59a0b0c5cf806",
"detected_licenses": [
"MIT"
],
"directory_id": "da6300a879112dce942fc6efdb221201caba4831",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_list_remove_if.c :+: :+: :+: ... | 2.78125 | 3 |
2024-11-18T21:52:14.646284+00:00 | 2021-10-09T23:04:58 | f3853a371bfb1d65948b13dbcd68a74b68873ced | {
"blob_id": "f3853a371bfb1d65948b13dbcd68a74b68873ced",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-09T23:04:58",
"content_id": "28b8cf35f0a4ca81a822e25663d5af97e2c8a1d6",
"detected_licenses": [
"MIT"
],
"directory_id": "60e86ea670f170aa12ba0cb19157fe328f5e429f",
"extension": "c",
... | stackv2 | /*-------------------------------------------------------------/
/
/ FILE: spi.c
/
/ VERSION: 1.3 -- 05 July 2013
/
/ AUTHOR: John Greenwell
/
/ DESCRIPTION:
/ This c file contains functions referenced in spi.h for
/ Atmel AVR SPI communication.
/
/ NOTES:
/ See spi.h for more information.
/
/--------------------------... | 2.515625 | 3 |
2024-11-18T21:52:14.728910+00:00 | 2014-07-24T03:30:19 | 608360481e6d5bee595ccc673854df751b187531 | {
"blob_id": "608360481e6d5bee595ccc673854df751b187531",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-24T03:30:19",
"content_id": "4e92059e9b4d9cbfdf3b21a4c84726ece1060c64",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "bb1c13a9ecaba88cc9f20fba657d9a45b6b89fb9",
"... | stackv2 | #include <riows.h>
#include <rstatic.h>
char *default_header =
"HTTP/1.1 200 OK\r\n"
"Server: riows 0.1\r\n"
"Content-Type: %s\r\n"
"Content-Length: %d\r\n\n";
char *default_response =
"HTTP/1.1 200 OK\r\n"
"Server: riows 0.1\r\n"
"Content-Type: text/html\r\n"
"Content-Length: 49\r\n\n... | 2.1875 | 2 |
2024-11-18T21:52:14.997451+00:00 | 2021-11-24T01:31:32 | b7bc8b0f5f990b638020370b1577213a89e75abb | {
"blob_id": "b7bc8b0f5f990b638020370b1577213a89e75abb",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-24T01:31:32",
"content_id": "5365ade49b0487674e5a1fea35bef2539a1c2d10",
"detected_licenses": [
"MIT"
],
"directory_id": "b9023092aca53e15d4884c7adb7ddd50e5fb7b47",
"extension": "c"... | stackv2 |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <benejson/benejson.h>
static unsigned s_last_keylen;
static unsigned s_last_strlen;
int usercb(const bnj_state* state, bnj_ctx* ctx, const uint8_t* buff){
return 0;
}
int main(int argc, const char* argv[]){
uint32_t stackbuf... | 2.3125 | 2 |
2024-11-18T21:52:15.062465+00:00 | 2020-08-23T09:52:49 | 6247b4d57bebd39579a872b7eb522b69fc40fc32 | {
"blob_id": "6247b4d57bebd39579a872b7eb522b69fc40fc32",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-23T09:52:49",
"content_id": "42d6bfe45301ecc22f94ccec7d312d8601af295c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4f9e2777885d124eb1f70454aec6fef70d7565c2",
"extens... | stackv2 | #include "avgpool_layer.h"
#include "cuda.h"
#include <stdio.h>
void test_avgpool_layer_forward(int batch, int width, int height, int chan) {
printf("----- avgpool forward -----\n");
avgpool_layer l = make_avgpool_layer(batch, width, height, chan);
network *net = make_network(1);
net->input_gpu = cuda_... | 2.5625 | 3 |
2024-11-18T21:52:15.257078+00:00 | 2020-02-25T11:30:55 | d812b0c0b9d1b662dabdaac3960cabffdaa9eadf | {
"blob_id": "d812b0c0b9d1b662dabdaac3960cabffdaa9eadf",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-25T11:30:55",
"content_id": "7e3cd3a1beafb723b0e2999f04b4d2c37c6bee7a",
"detected_licenses": [
"MIT"
],
"directory_id": "80a8401264df042728a0be8cd0c385eacc9ebf7c",
"extension": "c"... | stackv2 | //
// dishierzhang13.c
// dishisizhang
//
// Created by mingyue on 15/11/26.
// Copyright © 2015年 G. All rights reserved.
//
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
enum spectrum {red, orange, yellow, green, blue, violet};
const char* colors[] = {"red","orange","yellow","green","blue","violet"... | 3.015625 | 3 |
2024-11-18T21:52:16.323062+00:00 | 2018-05-23T06:55:18 | f0f379fe8931cbcaca0f4a29babe4a24cba11911 | {
"blob_id": "f0f379fe8931cbcaca0f4a29babe4a24cba11911",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T06:55:18",
"content_id": "30aa75b94dedb673233d8a45f0b9181a3eb3eec7",
"detected_licenses": [
"MIT"
],
"directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd",
"extension": "c"... | stackv2 | // This program is a part of NT MudLIB
#include <ansi.h>
void remove_effect(object me,int count);
int exert(object me)
{
/*
if ( !me->is_fighting())
return notify_fail("你只能在战斗中使用「金刚不坏体神功」!\n");
*/
if( (int)me->query_skill("yijinjing", 1) < 400 )
return ... | 2.421875 | 2 |
2024-11-18T21:52:16.383793+00:00 | 2020-06-09T21:15:37 | 176eb00db6e63ba94a793ec1ee921e7c92ae3945 | {
"blob_id": "176eb00db6e63ba94a793ec1ee921e7c92ae3945",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-09T21:15:37",
"content_id": "9351c838fecfd393c096117e0e30cd89c7661bb8",
"detected_licenses": [
"MIT"
],
"directory_id": "ca75f7099b93d8083d5b2e9c6db2e8821e63f83b",
"extension": "c"... | stackv2 | #include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
#include "gamma.h"
#include <stdbool.h>
#include <string.h>
int main() {
/*
scenario: test_random_actions
uuid: 559704682
*/
/*
random actions, total chaos
*/
gamma_t* board = gamma_new(5, 4, 5, 6);
assert( board != NULL );
assert( gamm... | 2.34375 | 2 |
2024-11-18T21:52:16.832607+00:00 | 2019-05-06T08:19:08 | 7aee6713a701e6add72d802f230fff56fa256609 | {
"blob_id": "7aee6713a701e6add72d802f230fff56fa256609",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-06T08:19:08",
"content_id": "15cdf41b2325ffd98ee6f8385f7ef7399b102411",
"detected_licenses": [
"MIT"
],
"directory_id": "01431d9c1dae599e6a857fa4c1e9a5aa8be47d16",
"extension": "h"... | stackv2 |
/*
Copyright (c) 2016-2018 Azeez Adewale <azeezadewale98@gmail.com>
MIT License Copyright (c) 2018 simple
*/
/*
* File: mathic.h
* Author: thecarisma
*
* Created on February 7, 2018, 3:50 AM
*/
#ifndef MATHIC_H
#define MATHIC_H
#ifdef __cplusplus
extern "C" {
#endif
SIMPLE_API void init_simple_... | 2.078125 | 2 |
2024-11-18T21:52:17.334399+00:00 | 2013-03-10T06:52:57 | 53a1dcbb5d87fb019f32efc372df2205d606b2a6 | {
"blob_id": "53a1dcbb5d87fb019f32efc372df2205d606b2a6",
"branch_name": "refs/heads/master",
"committer_date": "2013-03-10T06:52:57",
"content_id": "e557683b75fc4e8dd8c288b31d55644802ceee6b",
"detected_licenses": [
"MIT"
],
"directory_id": "7942574e8fe1738a24a459903ed85e16bf95596e",
"extension": "c"... | stackv2 | #include "worker/worker.h"
/* Sync worker Area */
void setupSync();
void syncWorkerCron();
int syncSendData(struct client *c, struct slice *data); // pass `data` ownership to
int syncRecvData(struct client *c);
/* Async worker Area */
void setupAsync();
void asyncWorkerCron();
int asyncSendData(struct client *c, stru... | 2.0625 | 2 |
2024-11-18T21:52:17.396279+00:00 | 2018-10-05T02:15:51 | 08bea1e42a243ec29c92ff7a8d6c1fe60ef870b6 | {
"blob_id": "08bea1e42a243ec29c92ff7a8d6c1fe60ef870b6",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-05T02:15:51",
"content_id": "a4fbddaca3d1636e385e2050d611f7cf72a2907f",
"detected_licenses": [
"MIT"
],
"directory_id": "7d2ceb2680652d3357cf628aeee4d59873619e01",
"extension": "h"... | stackv2 | /**
* @file trycatch.h
* @brief defined try-catch function
* @author simpart
*/
#ifndef __CK_TRYCATCH_H__
#define __CK_TRYCATCH_H__
/*** include ***/
#include "ckai/util.h"
/*** define ***/
#define try memset(&gck_tchctl, 0x00, sizeof(ck_trychctl_st));
#define catch \
return; \
goto CK_CAT... | 2.171875 | 2 |
2024-11-18T21:52:17.804297+00:00 | 2023-01-02T20:21:58 | 3defdc35075a25554a927505b1d90f7868617cf9 | {
"blob_id": "3defdc35075a25554a927505b1d90f7868617cf9",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-02T20:21:58",
"content_id": "d24397e95109065c9183ca6cfcd3835e5fd6782b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "d59e72e53af69c58d8e75c81c990f84fca1ae07b",
"extens... | stackv2 | #define _GNU_SOURCE
#include "exploit.h"
#include <assert.h>
#include <fcntl.h>
#include <linux/if_packet.h>
#include <sched.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/eventfd.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.... | 2.140625 | 2 |
2024-11-18T21:52:18.667731+00:00 | 2021-05-17T15:50:40 | 9915f4c3b6b223e7e210a8b45d76d72b755ec54e | {
"blob_id": "9915f4c3b6b223e7e210a8b45d76d72b755ec54e",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-17T15:50:40",
"content_id": "dca8ddbe6dbbf83ed1046e42f1e73013c5e9a795",
"detected_licenses": [
"ISC"
],
"directory_id": "efdd5299c16a2e3e2a767db8c42516ff1ce62c40",
"extension": "c",
... | stackv2 | /*
* dhdb - Multi-format dynamic and hierarchical database for C
* Copyright (c) 2015 Tommi M. Leino <tleino@me.com>
*
* 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 ... | 2.328125 | 2 |
2024-11-18T21:52:18.779824+00:00 | 2023-08-15T14:37:02 | 92acd7d77cac7b9e39b8c4c06dff126aa3536ce5 | {
"blob_id": "92acd7d77cac7b9e39b8c4c06dff126aa3536ce5",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-15T14:37:02",
"content_id": "f8c560667613f65bd84bde6d1abd0fe865f1ab60",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ea02c5d09c489c747f92a8a17acc0e7041365faa",
"extens... | stackv2 | /* mainrej -- Main program for controlling WF3REJ */
# include <stdio.h>
# include <stdlib.h> /* calloc */
# include <string.h>
#include "hstcal_memory.h"
#include "hstcal.h"
# include "c_iraf.h" /* for c_irafinit */
# include "hstio.h"
# include "wf3.h"
# include "hstcalerr.h"
# include "wf3rej.h"
# i... | 2.125 | 2 |
2024-11-18T21:52:18.884551+00:00 | 2020-06-16T11:05:58 | 5d79d18efa3f6bd9c08c1d48fd4adf931fa75115 | {
"blob_id": "5d79d18efa3f6bd9c08c1d48fd4adf931fa75115",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-16T11:05:58",
"content_id": "52cd4cae93f3e308027f1ec9263c6795f9709c99",
"detected_licenses": [
"MIT"
],
"directory_id": "1eb263b2633dd6bd56ad39cef8cf8c8bb18357bc",
"extension": "c"... | stackv2 | #ifndef HEADERS_IMPORTED
#include "main.h"
#include "commonFunctions.h"
#include "goodsLinkedList.h"
#include "SortGoods.h"
#endif
//** This function searches for the goods with the input name
struct good *searchName(struct good *goodsHead, char *goodName)
{
// create the result LL
struct good *searchedHead = ... | 2.390625 | 2 |
2024-11-18T21:52:19.259005+00:00 | 2021-05-18T07:41:36 | e4f0d2727b6ee17759cbc14b8b8bd73edd02da7f | {
"blob_id": "e4f0d2727b6ee17759cbc14b8b8bd73edd02da7f",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-18T07:41:36",
"content_id": "e653802626dc4660533b6b762153dc1593a80199",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6014a80d9e265444a98e4f37f0f7c96c83caa47a",
"extens... | stackv2 | /*Brandon Post (bkp472)
May, 2016
CS 345 - Rellermeyer
Fixed/edited by Loc Hoang
*/
#include<stdio.h>
#include<float.h>
#include<math.h>
struct Node { // nodes for the final graph
int x;
int y;
int nodeId;
};
struct Element { // elements for linked list
struct Node *node;
struct Element *next;
};
double dist... | 3.296875 | 3 |
2024-11-18T21:52:19.308996+00:00 | 2021-05-19T07:03:13 | 71a25b33349daf4e3771b5df40222ed50bffe9ad | {
"blob_id": "71a25b33349daf4e3771b5df40222ed50bffe9ad",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-19T07:03:13",
"content_id": "ad2146b17c6fd2ba9962ad3668c5dd87fe1f5a8b",
"detected_licenses": [
"MIT"
],
"directory_id": "2ed2351cc8255b6f5b5ddce12486966c8667b5da",
"extension": "h"... | stackv2 | #ifndef TwoLayeredBucket_h
#define TwoLayeredBucket_h
#include <stdbool.h>
#include "DualyLinkedList.h"
//////////////////////////////////////////////////
typedef enum TLBOption {
TLB_OPTION_NONE,
TLB_OPTION_WITH_ELEMENT
} TBL_OPTION_e;
typedef struct BucketElement {
int value;
void *element;
} TLBE_... | 2.28125 | 2 |
2024-11-18T21:52:19.643453+00:00 | 2023-08-31T20:36:52 | 631415d4f3c66cc07092a97af3ff0a364fddacd0 | {
"blob_id": "631415d4f3c66cc07092a97af3ff0a364fddacd0",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-31T20:36:52",
"content_id": "2dedb75f19627dd71835557c23401f902d577c9d",
"detected_licenses": [
"MIT"
],
"directory_id": "c72e8e7a91acfc92d6cbd02dfbbcc20f00aab63f",
"extension": "c",
... | stackv2 | /***********************************************************************************************************************************
Gz Decompress
Based on the documentation at https://github.com/madler/zlib/blob/master/zlib.h
********************************************************************************************... | 2.28125 | 2 |
2024-11-18T21:52:20.194556+00:00 | 2021-10-31T10:37:33 | af3faad5a73f81ea16d7fbc7947484e65a6e1652 | {
"blob_id": "af3faad5a73f81ea16d7fbc7947484e65a6e1652",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-31T10:38:38",
"content_id": "7897611cbe8bfb2e6156fa5a442c51dfcabba44d",
"detected_licenses": [
"MIT"
],
"directory_id": "711079159ff6dcfab9f17481a81444ee15539853",
"extension": "c",
... | stackv2 | #include <stdio.h>
#define MAXNUM 100
int isPrime(int num);
int main()
{
int endJudge = 1;
for (int num = 4; num <= MAXNUM; num=num+2)
{
int middleJudge = 0;
for (int i = 2; i < num - 1; ++i)
{
if (isPrime(i))
{
int cha = num -i;
... | 3.328125 | 3 |
2024-11-18T21:52:20.720347+00:00 | 2018-06-08T01:20:01 | a7067a36d576fc8c2977e709561c3552c1039449 | {
"blob_id": "a7067a36d576fc8c2977e709561c3552c1039449",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-08T01:20:01",
"content_id": "33384c3aadd69e4635b0f6990c7f61789a6c3c8c",
"detected_licenses": [
"MIT"
],
"directory_id": "3a6024cbf9fb4e9a9db6582906f4f2b5a8622b40",
"extension": "c"... | stackv2 | /* Inter thread serialization module for the Lua/APR binding.
*
* Author: Peter Odding <peter@peterodding.com>
* Last Change: June 30, 2011
* Homepage: http://peterodding.com/code/lua/apr/
* License: MIT
*
* Note the use of memcpy() to avoid unaligned access.
* Relevant: http://lwn.net/Articles/259732/
*/
#in... | 2.21875 | 2 |
2024-11-18T21:52:20.840095+00:00 | 2020-09-16T07:44:11 | 88b2e8803241ff279cec39b2777ec0fad3481a67 | {
"blob_id": "88b2e8803241ff279cec39b2777ec0fad3481a67",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-16T07:44:11",
"content_id": "1134fc950c62d5ba5e24e928fe1acefb9db45470",
"detected_licenses": [
"MIT",
"Apache-2.0"
],
"directory_id": "a6e713bce397b2f5e66c07a2523e034b5fcd8236",
... | stackv2 | #include "parse.h"
#include <stdio.h>
//--------------------------------------------------
int nmea_position_parse(char *s, nmea_position *pos)
{
char *cursor;
pos->degrees = 0;
pos->minutes = 0;
if (s == NULL || *s == '\0') {
return -1;
}
/* decimal minutes */
if (NULL == (cursor = strchr(s, '.'))) {
re... | 2.921875 | 3 |
2024-11-18T21:52:21.030745+00:00 | 2015-04-22T04:48:45 | ec897714319fbaa8a2282c96935437d48e716d38 | {
"blob_id": "ec897714319fbaa8a2282c96935437d48e716d38",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-22T04:48:45",
"content_id": "7d58b0f2dd923aeacc2d7140add3562f8ae00f27",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "28e6d1c254fc0290475aea44b6e315c6de4b2c0e",
"extensio... | stackv2 | // i2c.c
// This is where we implement i2c.h
#include "i2c.h"
volatile uint32_t *bcm2835_gpio = (volatile uint32_t *)MAP_FAILED;
volatile uint32_t *bcm2835_bsc0 = (volatile uint32_t *)MAP_FAILED;
volatile uint32_t *bcm2835_bsc1 = (volatile uint32_t *)MAP_FAILED;
volatile uint32_t *bcm2835_st = (volatile uint32_t *)MA... | 2.828125 | 3 |
2024-11-18T22:02:35.983963+00:00 | 2019-11-16T22:07:55 | 3fd45b937e1bad15b740d2dfce06a9aab42f8245 | {
"blob_id": "3fd45b937e1bad15b740d2dfce06a9aab42f8245",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-16T22:15:13",
"content_id": "b9d32ee0342157f2f7f3171162c51e2dff071b9a",
"detected_licenses": [
"MIT"
],
"directory_id": "218a7b74dd777cc502309cb2d99bd2dafa886db6",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include "trie.h"
#include "test.h"
#include "test_trie.h"
static bool test_trie(void);
static ftest tests[] = {
test_trie,
};
//------------------------------------------------------------------------------
static char reserved;
#define TRIE_TAG_WORD_END (&reserved)
stati... | 2.5 | 2 |
2024-11-18T22:02:36.184506+00:00 | 2022-11-17T15:14:41 | ea07a535ae81f2728882a7adbbb101bcbb6f7e64 | {
"blob_id": "ea07a535ae81f2728882a7adbbb101bcbb6f7e64",
"branch_name": "refs/heads/main",
"committer_date": "2022-11-17T15:14:41",
"content_id": "2540a0c9ccd647c2c38832fa4eb4335859bd9a9c",
"detected_licenses": [
"MIT"
],
"directory_id": "5f6c7e42274acd776e425670fdb2d630d111c56f",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <assert.h>
void swap_regular(int a, int b);
void swap_by_pointer(int * a, int * b);
int main(void)
{
int x = 10;
int y = 12;
swap_regular(x, y);
assert(x == 10);
assert(y == 12);
swap_by_pointer(&x, &y);
assert(x == 12);
assert(y == 10);
return 0;
}
v... | 3.578125 | 4 |
2024-11-18T22:02:36.258187+00:00 | 2023-07-17T21:01:17 | 1b7e0849d5d1e1d7852cc477d3f3b74c006ab6c3 | {
"blob_id": "1b7e0849d5d1e1d7852cc477d3f3b74c006ab6c3",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-21T00:07:03",
"content_id": "9d08edb72c1d703bed17ef9b4019f87824c7fa17",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "9f33f09e5398d9b6104e09d54264c89e0a1e0e86",
... | stackv2 | #include "vcard.h"
#include <errno.h>
#include <stdbool.h>
#include "alloc.h"
#include "log.h"
/*
* TODO (next iteration) Implement RFC 6350.
* (The current code implements RFC 6493 *only*.)
*/
/**
* Reminder: UTF-8 strings are **not** C strings.
* They can contain null characters, which do not terminate them.... | 3.15625 | 3 |
2024-11-18T22:02:36.344654+00:00 | 2021-04-30T13:41:34 | 646151567b6524922b0533ec5ecbb753eb3a8b9e | {
"blob_id": "646151567b6524922b0533ec5ecbb753eb3a8b9e",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-30T13:41:34",
"content_id": "0a9cbbad977b11e0f58664126fd3d493e58ea709",
"detected_licenses": [
"MIT"
],
"directory_id": "ceeec9de0756703024e37e78f78fd59a8e2acedc",
"extension": "c",
... | stackv2 | #include <stdio.h>
int main()
{
int sayi = 1234; // 0 haricinde bir sayi
while (sayi != 0)
{
printf("sayi girin (programi durdurmak icin 0)\n");
scanf("%d", &sayi);
int sonuc = sayi * sayi;
printf("sayinin karesi: %d\n\n", sonuc);
}
printf("program bitti\n");
retu... | 3.140625 | 3 |
2024-11-18T22:02:41.397561+00:00 | 2017-04-03T14:04:11 | 0f4d456eaa617239d49f249eeb6301658c5abc65 | {
"blob_id": "0f4d456eaa617239d49f249eeb6301658c5abc65",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-03T14:04:11",
"content_id": "d13d409dce7d14dab7906d67281e42553ec15c67",
"detected_licenses": [
"MIT"
],
"directory_id": "9d121733df655028f133c08e0d8f040ffd5cb08d",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<string.h>
int main(){
char kalimat[101];
scanf("%[^\n]c",&kalimat);
int i;
for(i=0;i<strlen(kalimat);i++){
printf("%c",kalimat[i]);
switch(kalimat[i]){
case 'a' : printf("pa"); break;
case 'i' : printf("pi"); break;
case 'u' : printf(... | 2.71875 | 3 |
2024-11-18T22:02:41.540019+00:00 | 2015-05-03T11:27:01 | acbe9ccd60300788be7e0fd86c4943f8c651d762 | {
"blob_id": "acbe9ccd60300788be7e0fd86c4943f8c651d762",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-03T11:27:01",
"content_id": "d6c94f59ca7dfb70075f249c1532f5cbdd8367ae",
"detected_licenses": [
"MIT"
],
"directory_id": "f3175d659fb4f5c9ea4cf043663bf337779cb32a",
"extension": "c"... | stackv2 | #include "generator.h"
#include "optimizer.h"
#include <assert.h>
extern int outputStage; // This variable is located in vslc.c
int peephole = 1;
static char
*lr = "lr", *r0 = "r0", *r1 = "r1", *r2 = "r2", *r3 = "r3",
*fp = "fp", *sp = "sp", *r5 = "r5", *r6 = "r6",
*d0 = "d0", *d1="d1", *s0 = "s0", *s1 = "s1", *pc = ... | 2.296875 | 2 |
2024-11-18T22:02:41.898901+00:00 | 2015-10-13T04:01:54 | 0ec8c16c2abcc7d9f0b0edea5951e40ce3f6c2be | {
"blob_id": "0ec8c16c2abcc7d9f0b0edea5951e40ce3f6c2be",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-13T04:01:54",
"content_id": "a871d174702573e350d3dc0284a0a0139aae9ebf",
"detected_licenses": [
"MIT"
],
"directory_id": "b0e410a6afdc532d80d4c7f2d05891b987c84f21",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <netdb.h>
#include <netinet/in.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/stat.h>
#define SIZE_FILE_MAX 104857600
#define PACKET_SIZE 1024
/*
Because our chat system does not strictly follow a send/response protocol
We need to have a ... | 2.75 | 3 |
2024-11-18T22:02:41.966640+00:00 | 2015-08-07T17:47:06 | b37f64b1c89703ef1c0ab0086b0b52bec4ffccdb | {
"blob_id": "b37f64b1c89703ef1c0ab0086b0b52bec4ffccdb",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-07T17:47:06",
"content_id": "563e870227a5f422121cc35683d4ed39664b8f47",
"detected_licenses": [
"MIT"
],
"directory_id": "aa1d1d6b96ce68c3bad0751884fbead5dcfc1cce",
"extension": "h"... | stackv2 | #ifndef DLINKED_LIST_H
#define DLINKED_LIST_H
#include <stdio.h>
/* errors */
#define DL_INVALID_ARGS_MSG fprintf(stderr,"Error: Invalid arguments\n")
#define DL_OUT_OF_BOUND_MSG fprintf(stderr,"Error: List index out of bound\n")
#define DL_OUT_OF_MEM_MSG fprintf(stderr,"Error: Could not allocate memory" \
... | 2.8125 | 3 |
2024-11-18T22:02:42.262365+00:00 | 2023-06-16T19:53:24 | 35674ccf415e1990659d5aa2803bffc089a50b9e | {
"blob_id": "35674ccf415e1990659d5aa2803bffc089a50b9e",
"branch_name": "refs/heads/openvx_1.3",
"committer_date": "2023-06-16T19:53:24",
"content_id": "0cf687448cc870f5f58575d8cc412747ab6cb1d6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dc5b5723f2aebc9abaa125e281b59cb88362996f",
"exte... | stackv2 | /*
* Copyright (c) 2012-2017 The Khronos Group 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 applicab... | 2.328125 | 2 |
2024-11-18T22:02:42.534910+00:00 | 2020-12-20T16:46:27 | a5a85f4ca6b6e8e99dcacb351c7d9f70d71a4274 | {
"blob_id": "a5a85f4ca6b6e8e99dcacb351c7d9f70d71a4274",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-20T16:46:27",
"content_id": "675da2856ae164d57fd584818702393e79d9d883",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "d3a8eeb5bcaed23d5bfc3c643aa9fb035667d3ea",
"extens... | stackv2 | /*===========================================================================
= =
= MtkDataBufferAllocate3D =
= =
========... | 2.5625 | 3 |
2024-11-18T22:02:42.618357+00:00 | 2016-06-27T17:51:43 | 46a3d74fc8059acca898a0a4e65babe4d1843561 | {
"blob_id": "46a3d74fc8059acca898a0a4e65babe4d1843561",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-27T17:51:43",
"content_id": "bf4d4aab7318df3d1589cf40f88a8669c7d6cfcd",
"detected_licenses": [
"MIT"
],
"directory_id": "78832ca141c024225e17d5d6f57c5a4f4ae711d4",
"extension": "c"... | stackv2 | /*
* CS356 Operating System Project 2: test_sched
* Test if kernel modification works properly.
* anthor: Ma Yesheng 5140209064
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sched.h>
#include <unistd.h>
#define BUF_SIZE 100
#define TEST_PROCESS "est.processtest"
#define MY... | 2.953125 | 3 |
2024-11-18T22:02:42.725563+00:00 | 2015-06-06T04:53:10 | ff61c1833c1989516352b50a29e55060b27f5242 | {
"blob_id": "ff61c1833c1989516352b50a29e55060b27f5242",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-06T04:53:10",
"content_id": "da68049a8c0e7d43775d8a2f8b2365f4480e4a87",
"detected_licenses": [
"MIT"
],
"directory_id": "16c75512df81a8f4e127c057f86d63e434cddfd6",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "GoL.h"
short ** allocate_matrix(short ** matrix, int size_x, int size_y)
{
int i;
matrix = (short**) malloc(size_x * sizeof(short*));
for (i=0; i<size_x; ++i)
{
matrix[i] = (short*) malloc(size_y * sizeof(short));
}
return matrix;
}
void fre... | 2.765625 | 3 |
2024-11-18T22:02:44.555857+00:00 | 2023-08-22T23:31:42 | d40bb133c736aa534cd4f9f6c115c25adcc2c5c2 | {
"blob_id": "d40bb133c736aa534cd4f9f6c115c25adcc2c5c2",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-22T23:31:42",
"content_id": "4f75869cf5690df638d7b8d434c102ef788855e0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1ecae23f22fd25334e9803f83c5f5f319a606cfe",
"extens... | stackv2 | #include <stdlib.h>
int dereferences_argument_16(int *ptr) __attribute__((noinline)) {
return ptr[16];
}
int oob_read_heap() {
int *x = malloc(8*sizeof(int));
return dereferences_argument_16(x);
}
| 2.109375 | 2 |
2024-11-18T22:02:45.522272+00:00 | 2020-06-04T11:50:49 | 60de6a3df4ba3c4269151daf5302445c7b4708ec | {
"blob_id": "60de6a3df4ba3c4269151daf5302445c7b4708ec",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-04T11:50:49",
"content_id": "f7a9b79182e1537ecb05ea0ab4bd16eb448cd205",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f8270ad35ceaf8654274a74d9fcc28ffb60e3e82",
"extensio... | stackv2 | #include "../../cpsrksec.h"
int
cp_shrink_graph(struct cp_par *par, struct graph *graph, struct vertex *qstart, struct repo *repo)
{
int rval = 0;
switch (par->srk_rule)
{
case CP_SRK_C1:
cp_shrink_c1(par, graph, qstart, repo);
break;
case CP_SRK_C1C2:
cp_shrink_c1c2(par, graph, qstart, repo);
... | 2.359375 | 2 |
2024-11-18T22:02:48.292083+00:00 | 2017-11-20T02:06:37 | 484fd06497d352756566399fc3ca67778d65a7e3 | {
"blob_id": "484fd06497d352756566399fc3ca67778d65a7e3",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-20T02:44:52",
"content_id": "a4c20e5f7682e278b7e4c2aa9776d69ce4fc7fcc",
"detected_licenses": [
"MIT"
],
"directory_id": "d6c31164ba74c6b71af658e89da753ac65086a27",
"extension": "c"... | stackv2 | #include <math.h>
#include <stdio.h>
int count_factors(num) {
int factors = 0;
int end = sqrt((double)num);
for (int i = 1; i < end; i++) {
if (num % i == 0) {
factors++;
if (i != num / i) {
factors++;
}
}
}
return factors;
}
int ... | 3.15625 | 3 |
2024-11-18T22:02:48.353231+00:00 | 2023-01-26T12:45:32 | 2929d07022da290e16046623e6f4faff134cc5d9 | {
"blob_id": "2929d07022da290e16046623e6f4faff134cc5d9",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-26T12:45:32",
"content_id": "99d3b713dbfa765335f09e3148287bfd62000b94",
"detected_licenses": [
"MIT"
],
"directory_id": "0ff5c3178e87a28a82165bfa908d9319cf7a2323",
"extension": "c"... | stackv2 | /* Program for creating a minimum spanning tree from Kruskal's algorithm */
#include<stdio.h>
#define MAX 20
struct edge
{
int u;
int v;
int weight;
struct edge *link;
}*front = NULL;
int father[MAX]; /*Holds father of each node */
struct edge tree[MAX]; /* Will contain the edges of spanning tree */
int n; /*De... | 3.8125 | 4 |
2024-11-18T22:02:49.115889+00:00 | 2019-01-07T01:08:02 | 56ed37bcd777552f962fdcc96e4ed368a6276ee7 | {
"blob_id": "56ed37bcd777552f962fdcc96e4ed368a6276ee7",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-07T01:08:02",
"content_id": "0f8ecf06a25018e780395371f7350465a5ff5768",
"detected_licenses": [
"MIT"
],
"directory_id": "8ee332244296d35b8e5f674e0d8d4b9b2cf6ba52",
"extension": "c"... | stackv2 | #include<stdio.h>
int getint(){
int a;
scanf("%d",&a);
return a;
}
int putint(int a){
printf("%d\n",a);
return 0;
}
| 2.109375 | 2 |
2024-11-18T22:02:49.175050+00:00 | 2016-02-11T14:22:20 | b5b1f039da297a9816e6d6a25ea4b89609228c75 | {
"blob_id": "b5b1f039da297a9816e6d6a25ea4b89609228c75",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-11T14:22:20",
"content_id": "cab4266981829f4d5cab4ee4ceec929bbdb56c12",
"detected_licenses": [
"Artistic-2.0"
],
"directory_id": "d4c7ee36f2e4b108e93c34fc6621053ed32d2b16",
"extens... | stackv2 | /*
* main.c: the main file
*/
#include "main.h"
#include <stdbool.h> // Booleans
#include <stdlib.h> // Malloc etc.
#include <err.h>
int LER_init(void) {
// LER_wall_handler(NULL); // set the default handler to be null //FIXME: NYI
return 0;
}
LER_field_t * LER_create_field(unsigned int width, unsigned int he... | 3.015625 | 3 |
2024-11-18T22:02:50.376608+00:00 | 2023-07-03T17:04:59 | a77e591c6b3f0bd213628cac15b32102fc8ea079 | {
"blob_id": "a77e591c6b3f0bd213628cac15b32102fc8ea079",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-03T17:06:28",
"content_id": "656c5fe1b36ad701dd2bc1cb5cedc8bc9e551f43",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5f6fcaa45dc7411f237b44a14abe085b6666123b",
"extensio... | stackv2 | /*
superUser
A simple and lightweight utility to start any process
with TrustedInstaller privileges.
https://github.com/mspaintmsi/superUser
superUser.c
*/
#include <windows.h>
#include <stdio.h>
#include "tokens.h" // Defines tokens and privileges management functions
// Program options
static struct {
un... | 2.640625 | 3 |
2024-11-18T22:02:50.711841+00:00 | 2020-07-08T19:48:35 | 828a11d4709315b936e3a4730e0d728f235902f6 | {
"blob_id": "828a11d4709315b936e3a4730e0d728f235902f6",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-08T19:48:35",
"content_id": "3d5ae0c0f273ae82def1b71604bfa081a93e9731",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "d1b56714b7d5f0e7b1ca82bf8bb8e270a794f67c",
"extens... | stackv2 | #include "stdout_broadcaster.h"
#include "sgm_signal.h"
#include <stdio.h>
#include <stdint.h>
#include <glib.h>
// The stdout broadcaster is a signal receiver.
typedef struct {
SignalReceiver receiver; // The interface through which the signal manager can push signals
GAsyncQueue *queue;
} StdoutBroadcaste... | 2.84375 | 3 |
2024-11-18T22:02:50.897700+00:00 | 2021-06-30T06:33:22 | 9142f884c68349795dad06d08f42fe637619f55a | {
"blob_id": "9142f884c68349795dad06d08f42fe637619f55a",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-30T06:33:22",
"content_id": "11c1eb8e6942639ba631cd0b8504b34df9e82d62",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0d9b8bec2a76cd67354fb6e790bc9a663efe0e0b",
"extensio... | stackv2 | /**
******************************************************************************
* @file main.c
* @author MCU Software Team
* @Version V1.0.0
* @Date 21-Oct-2019
* @brief main function
******************************************************************************
*/
/* Includes ----------------... | 2.46875 | 2 |
2024-11-18T22:02:51.421065+00:00 | 2016-05-25T06:37:43 | e7815ec3927a3c2fef7bdba8284e190d0bd6c76a | {
"blob_id": "e7815ec3927a3c2fef7bdba8284e190d0bd6c76a",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-25T06:37:43",
"content_id": "6324f87dba46dc88dbc1f6c7179156dddab91c2c",
"detected_licenses": [
"MIT"
],
"directory_id": "b213473cd90c89ba696ff1a208936fd9059b6481",
"extension": "c"... | stackv2 | #include "psem.h"
#include <sys/stat.h> /* For mode constants */
void Open( sem_t ** sem, const char * name,int oflag, mode_t mode, unsigned int value){
*sem = sem_open(name,oflag,mode,value);
}
void Wait(sem_t *sem){
sem_wait(sem);
}
void TryWait(sem_t *sem){
sem_trywait(sem);
}
void TimedWait(sem_... | 2.390625 | 2 |
2024-11-18T22:02:51.835872+00:00 | 2020-04-13T19:54:57 | 373e08b564f6826b41caa0bcbd71a2d87148b492 | {
"blob_id": "373e08b564f6826b41caa0bcbd71a2d87148b492",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-13T19:54:57",
"content_id": "9cdbf3d64555f9f6eaa6d2bdd84eec003d9ce7ec",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5bf4266a73a340d384258e9a6c4d1ae2d8fc5496",
"extensio... | stackv2 | // Copyright 2018 (c) Xerpa
//
// 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 wr... | 2 | 2 |
2024-11-18T22:02:52.566358+00:00 | 2020-05-28T14:05:58 | 43b704a3298eab4058604fd08ec9d472542d7d27 | {
"blob_id": "43b704a3298eab4058604fd08ec9d472542d7d27",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-28T14:05:58",
"content_id": "83184ab6311c66d8ac50dc8b6c892d367ff462e4",
"detected_licenses": [
"MIT"
],
"directory_id": "8c6478c814ff31e6c430eaf0bd8812ebefc92ace",
"extension": "c"... | stackv2 | /**
* Created by OliverDD on 2020/5/26.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "cstring.h"
int main(){
CString *string1 = c_cstring_New(12, "hello");
CString *string2 = c_cstring_New(4, "");
CString *string3 = c_cstring_New(10, "%d %s", 10, "sss");
... | 2.65625 | 3 |
2024-11-18T22:02:52.915899+00:00 | 2020-07-21T00:03:22 | e5afa530be81f05524059b84348f91a23fbdafa1 | {
"blob_id": "e5afa530be81f05524059b84348f91a23fbdafa1",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-21T00:03:22",
"content_id": "54a0b4a9edfc42a2b3828ecf3c4a304e75dea764",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "80c0f8e238be00dd70e72d8fed2b13f5d0882815",
"extens... | stackv2 | /*
* Structures and types used to implement opendir/readdir/closedir
* on Windows 95/NT.
*/
#ifndef APACHE_READDIR_H
#define APACHE_READDIR_H
#include <io.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#ifndef API_EXPORT
# define API_EXPORT(type) __declspec(dllexport) type __stdcall
#endif
/... | 2.5625 | 3 |
2024-11-18T22:02:54.611339+00:00 | 2016-01-09T11:45:00 | fe6b55ef93b418d180187e97b8a1c6251d73b88b | {
"blob_id": "fe6b55ef93b418d180187e97b8a1c6251d73b88b",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-09T11:45:00",
"content_id": "8e2de26e9fc15923573b374e2003896f70ca98f9",
"detected_licenses": [
"MIT"
],
"directory_id": "d8dc36b5c3c651b13b96f89c2fa3d214e7f5a93e",
"extension": "c"... | stackv2 | #include <math.h>
#include <stdio.h>
int main(int argc, char const *argv[]) {
int a = 2; //współczynnik przy x^2
int b = 3; //współczynik przy x
int c = 1; //wyraz wolny
double delta = b * b - 4 * a * c;
printf("delta=%f\n", delta);
if (delta > 0) {
double x1 = (-b - sqrt(delta)) / 2 * a;
double x... | 2.9375 | 3 |
2024-11-18T22:25:34.135720+00:00 | 2020-06-30T20:31:52 | ce2be97374fe1c3b703e36a462de86ac46c19a92 | {
"blob_id": "ce2be97374fe1c3b703e36a462de86ac46c19a92",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-30T20:31:52",
"content_id": "c38aee7ee9763ca07e018676eb882166443a433a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e4b4447f6144ac63b7b5a7acf72c5054af285ef5",
"extensio... | stackv2 | /*
* Copyright 2019-present MongoDB, 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 or ag... | 2.015625 | 2 |
2024-11-18T22:25:34.699644+00:00 | 2023-01-18T19:18:05 | ac0b3b09697037f3773053181809340e618c67e5 | {
"blob_id": "ac0b3b09697037f3773053181809340e618c67e5",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-18T19:18:05",
"content_id": "14d332bf616082bb9dfa3d3f33bd3bfd881eb16f",
"detected_licenses": [
"MIT"
],
"directory_id": "c4f7aac376a6f5b53e5ceb7f0df23561cc8302ac",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "debugger.h"
int32_t buffer_cur = 0; // 디버깅용 출력 버퍼 커서
char debug_buffer[50000] = {0}; // 디버깅용 출력 버퍼'
int32_t log_split[10] = {0};
void write_log(char *log_msg, ...)
{
char buffer[500] = {0};
va_list varg;
va_s... | 2.75 | 3 |
2024-11-18T22:25:34.884745+00:00 | 2018-12-16T02:08:02 | fb21a398b862ca51e83196f090ed8f69e05cb2fe | {
"blob_id": "fb21a398b862ca51e83196f090ed8f69e05cb2fe",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-16T02:08:02",
"content_id": "0d7061a2c5276cd7cb48c97dd5909f34cd5b59e8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2aa0df01653834d23b7ce51b9f0e85d163f12758",
"extensio... | stackv2 | #include "hx711.h"
#include "delay.h"
#include "usart.h"
uint32_t weight_maopi = 82240;
static float sum = 0;
void init_hx711(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_GPIO, ENABLE);
GPIO_InitStructure.GPIO_Pin = SCLK;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_... | 2.78125 | 3 |
2024-11-18T22:25:35.476207+00:00 | 2020-05-06T18:07:50 | cde05ab5005eabb4c8f4c6de7f8325bd810bd9d8 | {
"blob_id": "cde05ab5005eabb4c8f4c6de7f8325bd810bd9d8",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-06T18:07:50",
"content_id": "7ea3e36eb0143f672bd01c6a34740cf018cba754",
"detected_licenses": [
"MIT"
],
"directory_id": "d49b05a0a72c864bdda2396fb12c5c94dcd9b750",
"extension": "c"... | stackv2 | #include "nbodysim.h"
#include "timing.h"
#include <stdio.h>
#include <stdlib.h>
#define MAXSTR (256)
#define TIME_STEP (0.01)
#define STEPS (1000)
float scaleFactor = 1.5f; // 10.0f, 50
float velFactor = 8.0f; // 15.0f, 100
float massFactor = 120000.0f; // 50000000.0,
int NUM_BODIES = 4096;
void dumpt(sim... | 2.25 | 2 |
2024-11-18T22:25:35.607854+00:00 | 2016-01-31T09:14:01 | edca27e9a4b2cd6ba7a9f8002e691754289d2d7f | {
"blob_id": "edca27e9a4b2cd6ba7a9f8002e691754289d2d7f",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-31T09:14:01",
"content_id": "4d154c8d0fc79cc25c290a792902333e2daccdf2",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0dd7b9248c0f3f5a82c1607a018fb7c443fc0f7d",
"extens... | stackv2 | #include <linux/config.h> /* has to be first! */
#include <linux/init.h>
#include <linux/module.h>
#ifdef CONFIG_KRECOVER
#include <linux/krecover.h>
#endif
#define IN_DEPUTY_LIBRARY
#include "deputy/checks.h"
asmlinkage
void deputy_fail_mayreturn(const char *check, const char *text,
_... | 2.609375 | 3 |
2024-11-18T22:25:36.253200+00:00 | 2019-09-28T16:05:36 | 4080992bb1aa8c56a085df560123921051c67e98 | {
"blob_id": "4080992bb1aa8c56a085df560123921051c67e98",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-28T16:05:36",
"content_id": "11cb7e379b2c35d7962c8a4982688b017c081415",
"detected_licenses": [
"MIT"
],
"directory_id": "a51a1af9a66078c0a5ce5c4077075a5979e89849",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* validation.c :+: :+: :+: ... | 2.296875 | 2 |
2024-11-18T22:25:36.379392+00:00 | 2022-09-27T17:11:57 | e11a7f2167ae3f1fcbc4c2db0330c0bfe0655f78 | {
"blob_id": "e11a7f2167ae3f1fcbc4c2db0330c0bfe0655f78",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-27T17:11:57",
"content_id": "b26777238dd89fe0a8d0227adada0954ac3f479b",
"detected_licenses": [
"MIT"
],
"directory_id": "d4995b87c8564054f4366654ab738223416ad5ea",
"extension": "h"... | stackv2 | #pragma once
// Returns true if the specified file exists
bool FileExists(const char * szPath);
// Returns true if the specified directory exists
bool DirectoryExists(const char * szPath);
// Returns true if the directory is created
// Recursively creates directory, ensuring all previously non-existent directories i... | 2.171875 | 2 |
2024-11-18T22:25:36.796264+00:00 | 2023-08-02T09:06:56 | 9ee0aa5cbe0a02493de5571703bd25595e1fcc25 | {
"blob_id": "9ee0aa5cbe0a02493de5571703bd25595e1fcc25",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-08T07:01:20",
"content_id": "b2a749e4287b87bfaae9a26ebad7ac38cc2dd081",
"detected_licenses": [
"Intel",
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "a8194cf6ffd12f7551e... | stackv2 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright (C) 2017 Intel Corporation.
* All rights reserved.
*/
#include "spdk/stdinc.h"
#include "spdk_internal/cunit.h"
#include "CUnit/Basic.h"
#include "iscsi/init_grp.c"
#include "unit/lib/json_mock.c"
SPDK_LOG_REGISTER_COMPONENT(iscsi)
struct spdk_iscsi_glo... | 2.15625 | 2 |
2024-11-18T22:25:37.130863+00:00 | 2018-08-14T12:52:18 | dd83f0e5c5d9c99be60241044daff3855dba146a | {
"blob_id": "dd83f0e5c5d9c99be60241044daff3855dba146a",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-14T12:52:18",
"content_id": "243893d632e28ffda52f32363b472891d8ba19d6",
"detected_licenses": [
"MIT"
],
"directory_id": "8fcf62cb9f1b7191083a5f9322b4a7eb81e2647f",
"extension": "h"... | stackv2 | #ifndef LINKQUEUE_H
#define LINKQUEUE_H
#include <stdio.h>
#include <malloc.h>
typedef int DataType;
typedef struct queue
{
DataType data;
struct queue *next;
}LQNode;
typedef struct
{
LQNode *front;
LQNode *rear;
}LQueue;
void QueueInitiate(LQueue *);
int QueueNoEmpty(LQueue);
int QueueAppend(LQueue *,DataTyp... | 2.203125 | 2 |
2024-11-18T22:25:37.289446+00:00 | 2021-01-11T10:37:24 | dfd44250c99a2b8374d58c7e6b0902d997c3561b | {
"blob_id": "dfd44250c99a2b8374d58c7e6b0902d997c3561b",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-11T10:37:24",
"content_id": "2345a565fa0d8d52163f3d42db38e7d702eb244a",
"detected_licenses": [
"MIT"
],
"directory_id": "66ba61aa21bd44fa01fcf571ca3fd6460d085ffa",
"extension": "c"... | stackv2 | /* File main.c */
#include "/src/Date.h"
int main() {
TIME* Test1;
Test1= (TIME*) malloc(sizeof(TIME));
TIME* Test2;
Test2 = (TIME*) malloc(sizeof(TIME));
IType days; //number of days which we will use latter
printf("Write me number of days which you want, please: ");
scanf_s("%d", &days);
/*check functions... | 3.390625 | 3 |
2024-11-18T22:25:38.832946+00:00 | 2016-03-12T22:13:59 | 100c0c8856c85387c089c0af81d0d71b426cb74e | {
"blob_id": "100c0c8856c85387c089c0af81d0d71b426cb74e",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-12T22:13:59",
"content_id": "7e1ea1c164682ce151ec11a3753bab298ade9290",
"detected_licenses": [
"Unlicense"
],
"directory_id": "33da387c2abd56d9a00155935a70cb7416cebe93",
"extension... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef CALLOC_TEST
#include <unistd.h>
#endif
#include "yaht.h"
#define HASH_DEF_BITS 2
#define HASH_DEF_ARSZ (1 << (HASH_DEF_BITS))
#ifdef CALLOC_TEST
size_t dbg_fragsize = 0;
unsigned int totalFree = 0;
#endif
#ifndef SWAIT
#define SWAIT 2
#endif
PHas... | 2.53125 | 3 |
2024-11-18T22:25:38.888377+00:00 | 2018-10-09T11:53:52 | ae8f69e0c66776a1c5914bc40def8d9b0398e129 | {
"blob_id": "ae8f69e0c66776a1c5914bc40def8d9b0398e129",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-09T11:53:52",
"content_id": "275bf87ac2860c0e8ac804dabde2a34243e436df",
"detected_licenses": [
"MIT"
],
"directory_id": "9b97a409a12c3792dbc01e0dd90cab4a56b96682",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstmap.c :+: :+: :+: ... | 2.515625 | 3 |
2024-11-18T22:25:39.006896+00:00 | 2021-05-21T02:04:36 | fc0379e6ccaa9984fa193cf4f2ab1ae70622c196 | {
"blob_id": "fc0379e6ccaa9984fa193cf4f2ab1ae70622c196",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-21T02:04:36",
"content_id": "a292d9cbeaff1b2aaaf0adfd83ba88b5e9f1dd92",
"detected_licenses": [
"MIT"
],
"directory_id": "186391f5c43048f059db4ca5c0edfa416066314c",
"extension": "h"... | stackv2 | #ifndef MEMFLOW_WIN32_H
#define MEMFLOW_WIN32_H
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "memflow.h"
typedef struct Kernel_FFIMemory__FFIVirtualTranslate Kernel_FFIMemory__FFIVirtualTranslate;
typedef struct Win32ModuleInfo Win32ModuleInfo;
typedef struct Win32Proces... | 2.125 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.