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:31:31.272008+00:00 | 2023-09-01T17:35:52 | 07f465bcbe08e4bee2c690c61c4730e8fa39d374 | {
"blob_id": "07f465bcbe08e4bee2c690c61c4730e8fa39d374",
"branch_name": "refs/heads/main",
"committer_date": "2023-09-01T17:35:52",
"content_id": "15d27781eac16b93165aeacc46900a85d11dc01b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2950d1852a03ab912de2c75c3a15c2276555cb5a",
"extension"... | stackv2 | /*
* pxf_option.h
* Foreign-data wrapper option handling for PXF (Platform Extension Framework)
*
* IDENTIFICATION
* fdw/pxf_option.h
*/
#include "postgres.h"
#include "nodes/pg_list.h"
#ifndef _PXF_OPTION_H
#define _PXF_OPTION_H
#define PXF_FDW_DEFAULT_PROTOCOL "http"
#define PXF_FDW_DEFAULT_HOST "... | 2.140625 | 2 |
2024-11-18T23:31:31.357060+00:00 | 2019-12-03T05:16:13 | a1115408b2b78656df43fdc143512aa585ce8566 | {
"blob_id": "a1115408b2b78656df43fdc143512aa585ce8566",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-03T05:16:13",
"content_id": "df7927ab7d44d5bad2b064fd06106fd32a3b2d0e",
"detected_licenses": [
"MIT"
],
"directory_id": "8745571e10194aa981f55a20cb624f3ba67544a0",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
// Incluindo a biblioteca "caseira" no arquivo.
#include "lib/helper.h"
int main(void){
printf("Usando a function clrscr() dessa lib.\n");
printf("Basta chamar elas depois de um loop ou qualquer outra manipulacao que voce fez\n\n");
// Chamando a clrscr()do helper.h
int ... | 3.0625 | 3 |
2024-11-18T23:31:31.428495+00:00 | 2018-11-15T02:13:03 | 0b34c84f361cd22b80b39c6494626a25ede9dd98 | {
"blob_id": "0b34c84f361cd22b80b39c6494626a25ede9dd98",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-15T02:13:03",
"content_id": "62867b26646e8ca055221f77111b3a749e6e4f17",
"detected_licenses": [
"MIT"
],
"directory_id": "541c5ddeed0b364e0793807e04e111aeb25eaec9",
"extension": "c"... | stackv2 | /*
ArdOS Copyright (C) 2012 Felipe Soares Gonçalves Rosa
ArdOS 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, or
(at your option) any later version.
ArdOS is distributed in the ... | 2.734375 | 3 |
2024-11-18T23:31:33.342870+00:00 | 2016-03-17T18:09:26 | 6c94be1bdd7f23636740a570f340958c55edc7d1 | {
"blob_id": "6c94be1bdd7f23636740a570f340958c55edc7d1",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-17T18:09:26",
"content_id": "b74201b256c7c23ab76d2659ffd6d13d5cdf43d6",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "e7c3ac194c7921451e5ca42dac82a81985dc4c1a",
"extens... | stackv2 | /* file: $RCSfile: equ2gal.c,v $
** rcsid: $Id$
** Copyright Jeffrey W Percival
** *******************************************************************
** Space Astronomy Laboratory
** University of Wisconsin
** 1150 University Avenue
** Madison, WI 53706 USA
** **********************************************************... | 2.234375 | 2 |
2024-11-18T23:31:34.414726+00:00 | 2021-08-15T14:04:55 | f26f19d014a648debfc3c8f36794a61a29c54b7e | {
"blob_id": "f26f19d014a648debfc3c8f36794a61a29c54b7e",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-15T14:04:55",
"content_id": "a5a24c436c13f420ee10faa90af86d14b859ef35",
"detected_licenses": [
"MIT"
],
"directory_id": "9b35d994db17ef39b468459d9b13a67869bd80af",
"extension": "c"... | stackv2 | /* ********************************
* Author: Johan Hanssen Seferidis
* License: MIT
* Description: Library providing a threading pool where you can add
* work. For usage, check the thpool.h file or README.md
*
*//** @file thpool.h *//*
*
********************************/
#include <un... | 2.84375 | 3 |
2024-11-18T23:31:34.596265+00:00 | 2014-03-26T17:40:27 | becde178d3fcbb45a6fe74fa8b3648ddb3909b5e | {
"blob_id": "becde178d3fcbb45a6fe74fa8b3648ddb3909b5e",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-26T17:40:27",
"content_id": "ffaf1111a97b609cb85edad01e47baac7d057a6c",
"detected_licenses": [
"MIT"
],
"directory_id": "5355d828688f09cfbd35ae6d32d3cd4593f4a105",
"extension": "h"... | stackv2 | #pragma once
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
struct Node {
struct Node* next;
struct Node* prev;
uintptr_t ptr;
};
struct LinkedList {
struct Node* first;
struct Node* last;
int length;
};
struct LinkedList linkedlist_new();
void linkedlist_free(struct LinkedList*);
void linkedlist_... | 2.59375 | 3 |
2024-11-18T23:31:34.709523+00:00 | 2014-02-26T20:16:36 | 2a7dd564e987aceb703f794e513855d667474661 | {
"blob_id": "2a7dd564e987aceb703f794e513855d667474661",
"branch_name": "refs/heads/master",
"committer_date": "2014-02-26T20:16:36",
"content_id": "042c516027a9915fd0c8ecb6df70b74dfec977b5",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "e41f37f2a72c162eca42808ac0e8640fe1075cdc",
"extens... | stackv2 | //
// Author Shyamsundar Parthasarathy
// Date Jan 15 2014
//
#include <stdio.h>
#include <string.h>
#include "strcspn_implementation.c"
void t_one()
{
char str[] = "fcba73";
char keys[] = "1234567890";
int i;
i = my_strcspn(str, keys);
printf("The first number in str is at position %d. \n", i+1)... | 2.984375 | 3 |
2024-11-18T23:31:34.864336+00:00 | 2018-04-14T23:39:48 | 601e191dda2c1950990a8eefe55617011591dd15 | {
"blob_id": "601e191dda2c1950990a8eefe55617011591dd15",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-14T23:39:48",
"content_id": "50e25812030ba34b2e1cc840d38c14458f3162dd",
"detected_licenses": [
"MIT"
],
"directory_id": "7e35333b136a10d82b50d8cce3aec7cba2bdde11",
"extension": "c"... | stackv2 | #include <stdio.h>
int main(void)
{
char first_name[20];
char last_name[20];
printf("Enter first and last name: ");
scanf("%19s %19s", first_name, last_name);
printf("First: %s Last: %s\n", first_name, last_name);
int number;
printf("Enter a number: ");
scanf("%i", &number);
printf("Number is: %i\n... | 3.328125 | 3 |
2024-11-18T23:31:34.951141+00:00 | 2023-08-25T04:46:28 | dd8c9116703fee286a5e1742540b050aac350390 | {
"blob_id": "dd8c9116703fee286a5e1742540b050aac350390",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-25T07:17:19",
"content_id": "e5c359a3fd36cb8560c6ab66cd98240d0fc299fa",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "dc7631ad46c850ad3b491c261c2da42edffabc4e",
"extensio... | stackv2 | /* Copyright 2021 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef ZEPHYR_INCLUDE_EMUL_I2C_MOCK_H_
#define ZEPHYR_INCLUDE_EMUL_I2C_MOCK_H_
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/i2c_emul.h>
/**
* @brief rese... | 2.046875 | 2 |
2024-11-18T23:31:35.415298+00:00 | 2021-04-14T08:44:07 | e2ec391e258a83755dcf895c41ac4b3092c3485f | {
"blob_id": "e2ec391e258a83755dcf895c41ac4b3092c3485f",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-14T08:44:07",
"content_id": "010c80f38e9b74e67b0ffe79e01d1fbda76da941",
"detected_licenses": [
"MIT"
],
"directory_id": "a175025f0c6901437c3086246d3f1f0838c37953",
"extension": "h"... | stackv2 | /*
belle-sip - SIP (RFC3261) library.
Copyright (C) 2010 Belledonne Communications SARL
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at y... | 2.03125 | 2 |
2024-11-18T23:31:35.553083+00:00 | 2020-09-27T14:17:48 | 2bbc8d21f2dac28f3ca61bb47eb780cd9c631748 | {
"blob_id": "2bbc8d21f2dac28f3ca61bb47eb780cd9c631748",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-27T14:17:48",
"content_id": "61a7f5ab4f617b8a37b6018e36a0a5cd5f1ca84f",
"detected_licenses": [
"MIT"
],
"directory_id": "50dd200b61f409da284660cfd6e1e05362f4d54d",
"extension": "c"... | stackv2 |
#include "jimic/stdio/sprintf.h"
#include "jimic/string/itoa.h"
#include "jimic/string/itoa_fast.h"
#include "jimic/string/dtos.h"
#include "jimic/string/string.h"
#include "jimic/basic/assert.h"
#if defined(_MSC_VER) && (_MSC_VER != 0)
#pragma warning(push)
#pragma warning(disable : 4102) // 禁止warning C4102: "未引用的... | 2.265625 | 2 |
2024-11-18T23:31:35.830023+00:00 | 2020-12-08T19:00:16 | f861fdd809254fabdbe73c46e624ad247e0836cf | {
"blob_id": "f861fdd809254fabdbe73c46e624ad247e0836cf",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-08T19:00:16",
"content_id": "161f8b61acb804b4d7bc219004e26186dabd1ef3",
"detected_licenses": [
"MIT"
],
"directory_id": "6cb68416e953f3e533050e633d240ad69360256d",
"extension": "c"... | stackv2 | //Progama que mostra se um número inteiro é par ou ímpar;
#include <stdio.h>
#include <locale.h>
int main () {
setlocale(LC_ALL,"");
int numero;
printf("Digite um número inteiro: ");
scanf("%d", &numero);
if(numero % 2 == 0)
printf("\né par!");
else
printf("\né impar!");
... | 3.609375 | 4 |
2024-11-18T23:31:36.097775+00:00 | 2014-06-26T18:29:02 | 85430539e66374c8901d305f94da9206f2e27944 | {
"blob_id": "85430539e66374c8901d305f94da9206f2e27944",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-26T18:30:17",
"content_id": "d4c7cfef753b40513e5b99b12bfbf29f52174ad3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "45174048966842f751b22e9ee1355be9cb90e224",
"extens... | stackv2 | /* Copyright (c) 2013, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <odp_buffer.h>
#include <odp_buffer_internal.h>
#include <odp_buffer_pool_internal.h>
#include <ti_em_rh.h>
void *odp_buffer_addr(odp_buffer_t buf)
{
return odp_buf_to_hdr(buf)->buf_vaddr;
}
si... | 2.515625 | 3 |
2024-11-18T23:31:36.203298+00:00 | 2012-01-14T16:19:41 | 90871c72a517f7e960997aca109d51593cde2349 | {
"blob_id": "90871c72a517f7e960997aca109d51593cde2349",
"branch_name": "refs/heads/master",
"committer_date": "2012-01-14T16:19:41",
"content_id": "19c8dda7338145efdeb40532d3197a5d7f55e647",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "03b60dde2f22afe5bb7752558c0cfa20c4f251c2",
"extension":... | stackv2 | #include "ninja.h"
#include "console.h"
#include "bus.h"
#include "hw_spi.h"
#include "bus_spi.h"
static void bus_spi_open(void)
{
hw_spi_init();
}
static void bus_spi_close(void)
{
hw_spi_shutdown();
}
static void bus_spi_start(void)
{
hw_spi_cs_assert();
bus_log_puts_P(PSTR("CS ENABLED"));
bu... | 2.15625 | 2 |
2024-11-18T23:31:36.851464+00:00 | 2016-04-08T15:22:36 | 971f46f50b0df150cd5cd935fbc2fa935019d643 | {
"blob_id": "971f46f50b0df150cd5cd935fbc2fa935019d643",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-08T15:22:36",
"content_id": "8d61bc5b2ade5fca37ee1511a2e40fb310545bd3",
"detected_licenses": [
"MIT"
],
"directory_id": "78ba4e25f970d2127bd932450353c8347ec3975d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "ocr.h"
void ocr_file(char *fn)
{
char ans[5];
char buf[5000];
FILE *f = fopen(fn, "rb");
int len = fread(buf, 1, sizeof(buf), f);
fclose(f);
ocr_jpeg(buf, len, ans);
ans[4] = '\0';
printf("%s\n", ans);
}
int main(int argc, char *argv[])
{
if (argc < 2) ... | 2.296875 | 2 |
2024-11-18T23:31:36.963773+00:00 | 2019-10-17T15:55:08 | 6b10abca235c1363ddab9ea7c84079bba1cc1adf | {
"blob_id": "6b10abca235c1363ddab9ea7c84079bba1cc1adf",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-17T15:55:08",
"content_id": "b694039047087e464b1975e4853b7efe5662803e",
"detected_licenses": [
"MIT"
],
"directory_id": "9cf8571a4d546e550b942b022a8728e1cacba2b6",
"extension": "c"... | stackv2 | #include <func.h>
typedef struct{
pthread_mutex_t mutex;
pthread_cond_t cond;
}Data_t,*pData_t;
void cleanup(void *p)
{
pthread_mutex_unlock((pthread_mutex_t*)p);
printf("unlock ok\n");
}
void* threadFunc(void* p)
{
pData_t pArg=(pData_t)p;
pthread_mutex_lock(&pArg->mutex);
pthread_cleanup_p... | 2.703125 | 3 |
2024-11-18T23:31:39.316626+00:00 | 2017-06-22T04:59:32 | dcdd854c1564c4f7bc46a7181532520ea62ceb37 | {
"blob_id": "dcdd854c1564c4f7bc46a7181532520ea62ceb37",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-22T04:59:32",
"content_id": "0e9723b83fa99653c2be004bec77c636f4abda65",
"detected_licenses": [
"MIT"
],
"directory_id": "1c89efc099293938fa435aad732ecea10228ac4c",
"extension": "h"... | stackv2 | #ifndef _MERGE_SORT_CPP_
#define _MERGE_SORT_CPP_
#include <iostream> /* std::cout */
#include <iomanip> /* std::setw */
#include <algorithm> /* std::vector */
#include <vector> /* std:vector */
namespace sort
{
template<typename T=int>
st... | 2.875 | 3 |
2024-11-18T23:31:40.078160+00:00 | 2018-12-25T03:19:13 | 72b1123b12a2ecc4693c29c6b994d8b0663bf193 | {
"blob_id": "72b1123b12a2ecc4693c29c6b994d8b0663bf193",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-25T03:19:13",
"content_id": "e93fb54646c18179ce00a7ace69a66ae06edde8c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "8a4bdb1cb737e1edf5bfa18741ca50c04e3b84bf",
"extens... | stackv2 | /*
* Copyright (c) 1984 through 2008, William LeFebvre
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, ... | 2.015625 | 2 |
2024-11-18T23:31:40.367310+00:00 | 2023-01-06T22:56:10 | 698ae55111b38434cfe6552170c5729e0d810908 | {
"blob_id": "698ae55111b38434cfe6552170c5729e0d810908",
"branch_name": "refs/heads/0.7.0-clearcontainers",
"committer_date": "2023-01-06T22:56:10",
"content_id": "91a7f95c99afd8b8881704e29cd703188c1f6ebb",
"detected_licenses": [
"MIT",
"Apache-2.0"
],
"directory_id": "1b91642480fc1f88435a8f2c2995... | stackv2 | #ifndef _CONTAINER_H_
#define _CONTAINER_H_
#include "exec.h"
struct volume {
char *device;
char *scsiaddr;
char *mountpoint;
char *fstype;
int readonly;
int docker;
};
struct fsmap {
char *source;
char *path;
int readonly;
int docker;
};
struct sysctl {
char *path;
char *value;
};
struct port {
int ... | 2.03125 | 2 |
2024-11-18T23:31:40.442086+00:00 | 2014-08-12T00:48:57 | 9ba678a0c58818cc2ded4b2dd7bc260e63476504 | {
"blob_id": "9ba678a0c58818cc2ded4b2dd7bc260e63476504",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-12T00:48:57",
"content_id": "6802b9f8bc3656a9b65c9cc95333fa7fb8dc3057",
"detected_licenses": [
"MIT"
],
"directory_id": "9b9bbe986f81e85f042b8700793251bf39553ba6",
"extension": "c"... | stackv2 | #include <ncurses.h>
#include <stdlib.h>
#include <ctype.h>
#include "editor.h"
#include "log.h"
#include "file.h"
void draw_text();
void move_cursor(int y, int x);
int init_ln_window(int y, int x, int height);
int calc_num_digits(int num);
int linelen(int index);
WINDOW *ewin; /* Editor window */
WINDOW *lnwin; /* ... | 2.625 | 3 |
2024-11-18T23:31:40.580810+00:00 | 2023-07-20T14:20:21 | 7dd16a4b500562fe306530f922c4aded6c64f3d2 | {
"blob_id": "7dd16a4b500562fe306530f922c4aded6c64f3d2",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-20T14:20:21",
"content_id": "f55ec4b1355b3d482423f42d71c0a58f17839e76",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "8ac75c526a86b0721d259f5f6d863eb3df7eb16e",
"extensio... | stackv2 | #include <common.h>
#include <ruby/thread.h>
struct streaming_decompress_t {
ZSTD_DCtx* ctx;
VALUE buf;
size_t buf_size;
char nogvl;
};
static void
streaming_decompress_mark(void *p)
{
struct streaming_decompress_t *sd = p;
rb_gc_mark(sd->buf);
}
static void
streaming_decompress_free(void *p)
{
struct ... | 2.265625 | 2 |
2024-11-18T23:31:40.910381+00:00 | 2018-08-21T09:49:17 | a7d1004118ef92db36d4f3567f0fb06993e8a943 | {
"blob_id": "a7d1004118ef92db36d4f3567f0fb06993e8a943",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-21T09:49:17",
"content_id": "5709aa83f1dde0d888137b30e2e82fa7638b2b1a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4269df9dee092acb8afbc2018d899da6c9c1638f",
"extens... | stackv2 | #ifndef CIMPLE_CIMPLE_AUXILIARY_FUNCTIONS_H
#define CIMPLE_CIMPLE_AUXILIARY_FUNCTIONS_H
/**
* @brief Macro computes number of an array.
*
* Remark: It is defined as a Macro so that it can be used independently of the type of the array
* e.g. int a[2]; =>N_ELEMS(a)=2
* polytope b[3]; =>N_ELEMS(a)=2 (this is a... | 2.21875 | 2 |
2024-11-18T23:31:40.989208+00:00 | 2016-07-10T10:07:25 | 314cd1e35deec62fa81bede6b3eb7a761e0c30fa | {
"blob_id": "314cd1e35deec62fa81bede6b3eb7a761e0c30fa",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-10T10:07:25",
"content_id": "aa9dacd77a6a0451b4d4d083aeb2eacc12e694c5",
"detected_licenses": [
"MIT"
],
"directory_id": "fca2fa2a8dcb0eabf0bbf5e5610027b2889379c5",
"extension": "c"... | stackv2 | /* See LICENSE file for copyright and license details. */
#include <stdio.h>
#include <dirent.h>
#include "wand/magick_wand.h"
#include "config.h"
#include "data_structures.h"
#include "file_io.h"
void clear_filelist_struct( FILE_LIST * ent ) {
ent->next = NULL;
ent->prev = NULL;
ent->path = N... | 2.90625 | 3 |
2024-11-18T23:31:41.717742+00:00 | 2020-10-24T13:48:47 | 2a134130a122f39e1079ebcd73f5da0604bbe8a4 | {
"blob_id": "2a134130a122f39e1079ebcd73f5da0604bbe8a4",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-24T13:48:47",
"content_id": "5b4c4281b41b711246ebaa436e528ed04b8464af",
"detected_licenses": [
"Unlicense"
],
"directory_id": "10aac48b3fea2d7470fe198f7e834d6b16649640",
"extension... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../include/union_find.h"
#include "../include/point.h"
#include "../include/dists.h"
/* Não consegui implementar aqui 🤔
UF *generate_MST_kruskal(Dist *distArray, Point **points_array, int nPoints)
{
UF *MST = UF_init(nPoints);
int pIndex = 0... | 2.921875 | 3 |
2024-11-18T23:31:42.577150+00:00 | 2021-01-12T02:38:57 | 5ce9013611b4f15c7bb8a6c0979184998920e033 | {
"blob_id": "5ce9013611b4f15c7bb8a6c0979184998920e033",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-12T02:38:57",
"content_id": "f8a32624430bc874db91a8e7928828791cc9a3a7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9587eca706ebd57bb39cd5a214bf9245662850be",
"extensio... | stackv2 | //
// Created by forgot on 2019-08-04.
//
/*1046 划拳 (15 point(s))*/
/*划拳是古老中国酒文化的一个有趣的组成部分。酒桌上两人划拳的方法为:每人口中喊出一个数字,同时用手比划出一个数字。如果谁比划出的数字正好等于两人喊
* 出的数字之和,谁就赢了,输家罚一杯酒。两人同赢或两人同输则继续下一轮,直到唯一的赢家出现。
下面给出甲、乙两人的划拳记录,请你统计他们最后分别喝了多少杯酒。
输入格式:
输入第一行先给出一个正整数 N(≤100),随后 N 行,每行给出一轮划拳的记录,格式为:
甲喊 甲划 乙喊 乙划
其中喊是喊出的数字,划是划出的数字,均为不超过 100 ... | 3.0625 | 3 |
2024-11-18T23:31:43.264005+00:00 | 2021-02-20T01:45:07 | 8e4a7accdf3626e3977fe78cb64c7dc3f748f24e | {
"blob_id": "8e4a7accdf3626e3977fe78cb64c7dc3f748f24e",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-20T01:45:07",
"content_id": "323a9d8b894d2dd80973db272b92e653ffc368d2",
"detected_licenses": [
"MIT"
],
"directory_id": "ba4df9cea3feed99235729e9a351320d3e40bb8c",
"extension": "c"... | stackv2 | /******************************************************************************
* CS 261 Data Structures
* Assignment 5 - Hash Table App
* Name: Will Geller
* Date: 3/11/2020
* Description: Complete Hash Map ADT by implementing functions that are labeled
* IMPLEMENT. Functions labeled HELPER CODE wer... | 3.4375 | 3 |
2024-11-18T23:31:43.338117+00:00 | 2023-06-25T14:40:02 | 5f40a34c2450aa358b656da51fa687b5003356f4 | {
"blob_id": "5f40a34c2450aa358b656da51fa687b5003356f4",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-25T14:40:02",
"content_id": "89def84118b002910ec39474a29595caac00d502",
"detected_licenses": [
"MIT"
],
"directory_id": "75253c0fabf20bdeb6000f304e3420b59290dfd4",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <math.h>
int main()
{
float n;
printf("Enter the value:");
scanf("%f",&n);
printf("log of %.2f is %.2f",n,log(n));
printf("\nlog 10 of %.2f is %.2f",n,log10(n));
return 0;
}
| 2.71875 | 3 |
2024-11-18T23:31:45.714273+00:00 | 2023-09-03T13:43:21 | 3b831eb45b1e43d3e9ce2c4ef4a6bd6a26a78899 | {
"blob_id": "3b831eb45b1e43d3e9ce2c4ef4a6bd6a26a78899",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-03T13:43:21",
"content_id": "23df5e3e30bbc9177c9cdf9058b39799449440ce",
"detected_licenses": [
"Zlib",
"BSD-3-Clause"
],
"directory_id": "f7848ee3bb2ffcbc1bde5a7f636dd7502b749381... | stackv2 | // symboltable.h
#include <stdio.h>
// Overall structure:
//
// - The context struct contains a list of elements (content).
// - The context struct optioinal points to a wider context.
// - The global context is stored separate and should be checks after the widere contexts.
// (about to implement the ... | 2.40625 | 2 |
2024-11-18T23:31:45.877368+00:00 | 2021-09-25T15:42:55 | b5826ef91ae308b9f90e028dbde8e1f312bcffbd | {
"blob_id": "b5826ef91ae308b9f90e028dbde8e1f312bcffbd",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-25T15:42:55",
"content_id": "b1ece6fca6ec18ce4de2e92471d4dc514bf35614",
"detected_licenses": [
"MIT"
],
"directory_id": "c75f0b32e8ebe46e6a62941ec26c5a31e4d074a8",
"extension": "h"... | stackv2 | /* See LICENSE file for copyright and license details. */
#include <X11/Xft/Xft.h>
#include <X11/Xlib.h>
typedef struct {
Cursor cursor;
} Cur;
typedef struct Fnt {
Display *dpy;
unsigned h;
XftFont *xfont;
FcPattern *pattern;
struct Fnt *next;
} Fnt;
enum {
ColFg,
ColBg,
ColBorder,
}; /* Clr scheme index ... | 2.421875 | 2 |
2024-11-18T23:31:46.438344+00:00 | 2020-05-04T21:10:03 | e51b77eb22721d3f5394b2ea2fb19881e3233981 | {
"blob_id": "e51b77eb22721d3f5394b2ea2fb19881e3233981",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-04T21:10:03",
"content_id": "ca86d3daf604a5f7f796b44dc13b0bbc12c072a4",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1345f5094610b5a7c555326a18babf246cc72707",
"extens... | stackv2 | # include <stdio.h>
# include <stdlib.h>
# include "estreak.h"
/* G_DOFLAT: Core streakflat algorithm.
*
*
*
* Revision history:
* ---------------
* 30 Apr 96 - Implementation (IB)
* 29 Oct 96 - Window size matches SPP version (IB)
*
*/
int g_doFlat (IOControl *ioc, int niter, int width[], in... | 2.484375 | 2 |
2024-11-18T23:31:48.624631+00:00 | 2020-03-01T09:47:23 | 404f519eadf54576e738e33045cc90008c975268 | {
"blob_id": "404f519eadf54576e738e33045cc90008c975268",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-01T09:47:23",
"content_id": "0ff2b8955370d2f8064dafa357aa2ad10dd269e0",
"detected_licenses": [
"MIT"
],
"directory_id": "7d3a33b2eff841c6004b2d136d73f3aa8be8c021",
"extension": "h"... | stackv2 | #ifndef __PCAP_H
#define __PCAP_H
#include <linux/bpf.h>
#include "bpf_helpers.h"
#include "bpf_endian.h"
#include "egress.h"
#include "ingress.h"
#define MAX_CPUS 128
#define SAMPLE_SIZE 1024ul
#define min(x, y) ((x) < (y) ? (x) : (y))
struct S {
__u16 cookie;
__u16 pkt_ken;
} __attribute__((packed));
s... | 2.28125 | 2 |
2024-11-18T23:31:49.118749+00:00 | 2021-06-05T17:34:42 | 6998c27278aa57b3627c9a31793fbab2a8364a85 | {
"blob_id": "6998c27278aa57b3627c9a31793fbab2a8364a85",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-05T17:34:42",
"content_id": "eda00a76cc3502f0b66fa2e32a63b039894b28ef",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2a633a5f42ca149fc97e2405c00cbb390bb6b685",
"extensio... | stackv2 | #include "stm32f0xx.h"
uint32_t ticks=0;
void CONFIG_delay(void){
if((RCC->CR & RCC_CR_HSION)==0){RCC->CR|=RCC_CR_HSION;}
while((RCC->CR & RCC_CR_HSIRDY)==0);
RCC->CFGR|=RCC_CFGR_PLLSRC_HSI_DIV2;
RCC->CFGR|=RCC_CFGR_PLLMUL12;
if((RCC->CFGR & RCC_CFGR_SWS)!=RCC_CFGR_SWS_PLL){RCC->CFGR|=RCC_CFGR_SW_PLL;}
RCC->CR|=... | 2.015625 | 2 |
2024-11-18T23:31:49.530363+00:00 | 2019-03-31T00:37:57 | 4a8fe25150c8b9756fcad48129df76d3e272fbed | {
"blob_id": "4a8fe25150c8b9756fcad48129df76d3e272fbed",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-31T00:37:57",
"content_id": "3d4421e118ab161c7b22932a6f70a1281eaab300",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "8f869d0a13482e04769b9e667d7cefefde99e017",
"extens... | stackv2 | //====== Copyright Valve Corporation, All rights reserved. ====================
//
// Some public types for communicating detailed connection stats
//
//=============================================================================
#ifndef STEAMNETWORKING_STATS_H
#define STEAMNETWORKING_STATS_H
#ifdef _WIN32
#pragma on... | 2.140625 | 2 |
2024-11-18T23:31:49.789419+00:00 | 2023-08-07T12:29:35 | e33d78654bbf68aeb5fbf77632bd5044de527eee | {
"blob_id": "e33d78654bbf68aeb5fbf77632bd5044de527eee",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T12:29:35",
"content_id": "f60985690d352e91f1e5e3b771dfed53b1786d44",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4b9c739a4d4af28a06b170441c3e20798d5a8a2b",
"extensio... | stackv2 | /*
* Copyright 2020 Andrey Terekhov, Egor Anikin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 2.015625 | 2 |
2024-11-18T23:31:49.893067+00:00 | 2021-01-04T00:35:08 | c40453f412a4c28295fcd712962ee2612e0d6eb1 | {
"blob_id": "c40453f412a4c28295fcd712962ee2612e0d6eb1",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-04T00:35:08",
"content_id": "13bed1bb25326b16218bb1bb97877861d0236912",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "7e2f15cffb365acf7409bdadc533c685c6b28b4c",
"... | stackv2 |
#include <iodefine.h>
#include <machine.h>
#include "drv/board.h"
#include "drv/port/port.h"
#include "drv/sci/sci.h"
#include "drv/cmt/cmt.h"
#include "drv/s12ad/s12ad.h"
#include "rx_utils/rx_utils.h"
#include "os/kernel.h"
#include "os/kernel_api.h"
static struct semaphore Sem;
static struct mutex Mutex;
static ... | 2.375 | 2 |
2024-11-18T23:31:49.955572+00:00 | 2013-09-15T09:37:49 | d55f85eac8c2c308b2fec9dfa48aecd17631f99a | {
"blob_id": "d55f85eac8c2c308b2fec9dfa48aecd17631f99a",
"branch_name": "refs/heads/master",
"committer_date": "2013-09-15T09:37:49",
"content_id": "7e4f0dbfcc429f2c80a4e4103e1fb25b76f3469f",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8c53d9ae31635f5af05dfb835d55098a1e8e5872",
"extens... | stackv2 | #ifndef SOPHIA_H_
#define SOPHIA_H_
/*
* sophia database
* sphia.org
*
* Copyright (c) Dmitry Simonenko
* BSD License
*/
#include <stdlib.h>
#include <stdint.h>
typedef void *(*spallocf)(void*, size_t, void*);
typedef int (*spcmpf)(char*, size_t, char*, size_t, void*);
typedef enum {
/* env related */
SPDIR,... | 2.078125 | 2 |
2024-11-18T23:31:50.269710+00:00 | 2019-03-05T15:36:04 | 8dd53791749444f2208999dccd1525553ae856e5 | {
"blob_id": "8dd53791749444f2208999dccd1525553ae856e5",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-05T15:36:04",
"content_id": "0b481d3a723c1288fdb1aa1985a4f8f8b8f0cd48",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a55c5e52744a2ca3612245fd31081a168f5e4f74",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <spTP_utils.h>
void preAlps_TP_parameters_display(MPI_Comm comm, char **matrixName, int *k, int ordering, int *printSVal, int *checkFact,
int *printFact, int argc, char **argv){
/* Default parameters */
int kD=2;
*k=kD;
char matrixNameD[]="cage4.mtx";
int max... | 2.203125 | 2 |
2024-11-18T23:31:50.424446+00:00 | 2020-11-24T20:57:48 | ea74199a29e0a996c5cdf22da46acb6a66819c70 | {
"blob_id": "ea74199a29e0a996c5cdf22da46acb6a66819c70",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-24T20:57:48",
"content_id": "47a8ff855c567916a6e75dfc0d4021357a364410",
"detected_licenses": [
"MIT"
],
"directory_id": "830e3742b04b42833d1dba054b21ebd60f1fdb03",
"extension": "c"... | stackv2 | #define _GNU_SOURCE
#include <dlfcn.h>
#include <stdio.h>
//#include <math.h>
////////////// Algebraic functions
static double (*real_sqrt)(double dbl);
static float (*real_sqrtf)(float dbl);
static double (*real_cbrt)(double dbl);
static float (*real_cbrtf)(float dbl);
static double (*real_hypot)(double dbl1, doubl... | 2.46875 | 2 |
2024-11-18T23:31:50.584021+00:00 | 2022-06-16T05:54:54 | 48c871ffaa7d7550ab157e05ff5b9d660ba6b112 | {
"blob_id": "48c871ffaa7d7550ab157e05ff5b9d660ba6b112",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-16T05:54:54",
"content_id": "7269f277088796edbc2af61251d361186d820f21",
"detected_licenses": [
"MIT"
],
"directory_id": "120324bbbf63c54de0b7f1ca48d5dcbbc5cfb193",
"extension": "c"... | stackv2 | #include "edit.h"
buffer_t *new_buffer() {
buffer_t *buffer = malloc(sizeof(buffer_t));
buffer->lines = new_lines(LINE_SIZE);
buffer->line_avail = LINE_SIZE;
buffer->color = NULL;
buffer->line_count = 0;
buffer->cursor_col = 0;
buffer->cursor_row = 0;
return buffer;
}
line_t *new_line(size_t size) {
... | 2.734375 | 3 |
2024-11-18T23:31:50.743775+00:00 | 2017-08-28T16:26:25 | 9dd94e452ee01f93260a345e4f18fbb3ab171fc3 | {
"blob_id": "9dd94e452ee01f93260a345e4f18fbb3ab171fc3",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-28T16:26:25",
"content_id": "0f42d80b474e4eef18d6e8920bd93f7cd93e2079",
"detected_licenses": [
"Apache-2.0",
"BSD-2-Clause"
],
"directory_id": "4cc4d9d488939dde56fda368faf58d8564... | stackv2 | /*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 app... | 2.140625 | 2 |
2024-11-18T23:31:51.000947+00:00 | 2018-11-26T23:23:31 | cf81e62f1ae87d9b63d5222fa7fdba6b3632bd8b | {
"blob_id": "cf81e62f1ae87d9b63d5222fa7fdba6b3632bd8b",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-26T23:23:31",
"content_id": "c4933ceca0c6584eeb6ddd1c88770b350fc7d9a7",
"detected_licenses": [
"MIT"
],
"directory_id": "b9ebf0aff7cb80f06c09d214cc9f39e3054e210b",
"extension": "c"... | stackv2 | #include <string.h>
#include "dbg.h"
#include "util.h"
#include "commands.h"
#include "mesh.h"
#include "bsp.h"
#include "bsp_mesh.h"
#include "export.h"
#include "cmd_audit.h"
typedef bsp_node_t* (*bsp_binary_op)(bsp_node_t *, bsp_node_t *);
// A generalization of a binary CSG operation being performed on an STL
//... | 2.4375 | 2 |
2024-11-18T23:31:51.636033+00:00 | 2014-04-29T10:55:22 | c7a8f558e5e793cc708848eaa60aa7c980f8a03a | {
"blob_id": "c7a8f558e5e793cc708848eaa60aa7c980f8a03a",
"branch_name": "refs/heads/master",
"committer_date": "2014-04-29T10:55:22",
"content_id": "011160e44ed0da88e5e9f11762869aaeacf1ec55",
"detected_licenses": [
"MIT"
],
"directory_id": "797be0e5138c8bde56fac860251dc4359f888222",
"extension": "h"... | stackv2 | #ifndef _CFF_H
#define _CFF_H
#include <stdio.h>
#include <stdint.h>
typedef enum {
OFFERR=0,
OFFSIZE8=1,
OFFSIZE16=2,
OFFSIZE24=3,
OFFSIZE32=4,
} CFF_OffSize;
struct CFF_Index {
uint16_t count;
CFF_OffSize offSize; // !=0, except for count==0
uint32_t *offset;
const char *dataStart;
};
typedef st... | 2.140625 | 2 |
2024-11-18T21:52:05.638458+00:00 | 2023-08-11T17:30:23 | 4fac5c93028322c3bd1cf58947bb37a91014edd8 | {
"blob_id": "4fac5c93028322c3bd1cf58947bb37a91014edd8",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T17:30:23",
"content_id": "d33cc3f3cb93c37e4ffe21777570d088495a92e2",
"detected_licenses": [
"MIT"
],
"directory_id": "7f6c2e05e9ea90f848f5bf4914dcda7a95bb245b",
"extension": "c"... | stackv2 | /*
* Copyright 2022 Jiri Svoboda
*
* Permission is hereby granted, free of charge, to any person obtaining
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, dis... | 2.390625 | 2 |
2024-11-18T21:52:06.420687+00:00 | 2017-02-27T21:41:40 | f10a8f9b248b403cb50811148e8d7b8cc15fd357 | {
"blob_id": "f10a8f9b248b403cb50811148e8d7b8cc15fd357",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-27T21:41:40",
"content_id": "caf1e9c72e136f8f95fbb5ff5ecf2c14d5cbae61",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "78d27b462ad53ac5cb01fb77a179ba08786744b9",
"extensio... | stackv2 | /*
* main.c
*
* Created on: 2 Nov 2016
* Author: rafpe
*/
#include "stm32f4xx.h"
#include "stm32f407xx.h"
int main(void)
{
volatile uint32_t delay;
RCC->AHB1ENR |= RCC_AHB1ENR_GPIODEN; // enable the clock to GPIOD & GPIOA
__DSB();
GPIOD->MODER = (1 << 26); // set pin 13 to be general purpose outp... | 2.3125 | 2 |
2024-11-18T21:52:06.788804+00:00 | 2013-11-02T16:31:40 | e0768f5ce8ff17db95c43587b60f7d6bdbcdfeb3 | {
"blob_id": "e0768f5ce8ff17db95c43587b60f7d6bdbcdfeb3",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-02T16:31:40",
"content_id": "630bab2d0324f2128653220129f56f8debcc1845",
"detected_licenses": [
"MIT"
],
"directory_id": "7281ea2c4491437ace53b45f6f8946c358e1828a",
"extension": "c"... | stackv2 | /**
* unsigned integer division
*/
/*
// Slow text book division ... O( floor(a/b) )
unsigned int __aeabi_uidiv(unsigned int a, unsigned int b) {
unsigned int q;
for (q= 0; a >= b; a-=b) {
++q;
}
return q;
}
*/
/**
* Binary long division ... O( sizeof(int) )
* @todo Use remainder for modulo.
*/
unsign... | 3.03125 | 3 |
2024-11-18T21:52:07.224847+00:00 | 2015-03-04T21:47:33 | 8931533a07f271f1b7169963e25163df9c0fe3a9 | {
"blob_id": "8931533a07f271f1b7169963e25163df9c0fe3a9",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-04T21:47:33",
"content_id": "54824b1e9dcb214064cb82a318d83e56751a3002",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "471f034415100f7fb1e0282ca913f05d71441833",
"extensio... | stackv2 | /*
* Copyright 2013 Google Inc. All Rights Reserved.
*
* 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.375 | 2 |
2024-11-18T21:52:07.367758+00:00 | 2023-08-07T19:18:32 | bec5942326bf83c7f340aff915d5b005c1c8bf95 | {
"blob_id": "bec5942326bf83c7f340aff915d5b005c1c8bf95",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T19:18:32",
"content_id": "2a028e4d1413f58368e6012c2f7133ce86531bc1",
"detected_licenses": [
"curl",
"Apache-2.0"
],
"directory_id": "e1d9c54e9925e30e388a255b53a93cccad0b94cb",... | stackv2 | #ifndef v1beta2_user_subject_TEST
#define v1beta2_user_subject_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define v1beta2_user_subject_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include "../... | 2.625 | 3 |
2024-11-18T21:52:07.550957+00:00 | 2022-04-28T13:12:28 | 84419f73d88ea23b1b3a0694e91c2e17cd6204ab | {
"blob_id": "84419f73d88ea23b1b3a0694e91c2e17cd6204ab",
"branch_name": "refs/heads/master",
"committer_date": "2022-04-28T13:12:28",
"content_id": "997ef7eedf2bf93bb2deff2c6f2a21e8c2d44841",
"detected_licenses": [
"MIT"
],
"directory_id": "01e940d71aa9a26de242fdaf085c0976f324aad4",
"extension": "h"... | stackv2 | #ifndef MT3620_REG_MBOX_H_
#define MT3620_REG_MBOX_H_
#include <stdbool.h>
#include <stdint.h>
typedef union __attribute__((__packed__)) {
struct __attribute__((__packed__)) {
bool soft_rst : 1;
bool soft_rst_myself : 1;
const unsigned res_31_2 : 30;
... | 2.171875 | 2 |
2024-11-18T21:52:08.138749+00:00 | 2019-01-20T16:53:58 | 67cfea44a8a43758b87a305a4896e1cd8a209c3a | {
"blob_id": "67cfea44a8a43758b87a305a4896e1cd8a209c3a",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-20T18:46:10",
"content_id": "9f247fb726f38754cc1250a10972f536cb3ccf66",
"detected_licenses": [
"MIT"
],
"directory_id": "f4bf4b0492a98bd3217cbb5fd322636cd78be804",
"extension": "c"... | stackv2 | /*************************************************************************/
/* */
/* SNU-RT Benchmark Suite for Worst Case Timing Analysis */
/* ===================================================== */
/* ... | 2.59375 | 3 |
2024-11-18T21:52:08.280088+00:00 | 2018-09-19T02:45:35 | 84694e7f98b51c251c55d813083161602015fa81 | {
"blob_id": "84694e7f98b51c251c55d813083161602015fa81",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-19T02:45:35",
"content_id": "220c91270251b5fe98b597585dda4f7afc59f2e7",
"detected_licenses": [
"MIT"
],
"directory_id": "3eab82fb0ca631b4a4361a414af3f55cea7d1923",
"extension": "h"... | stackv2 | /*
* Present - Date/Time Library
*
* Header file that includes all structures and methods for:
* ClockTime, Date, DayDelta, MonthDelta, TimeDelta, Timestamp
*
* If this is being read by a C compiler, it will just have the struct
* definitions and C method declarations (no implementations). In this case,
* you m... | 2.21875 | 2 |
2024-11-18T21:52:08.718165+00:00 | 2016-07-06T14:28:29 | 1ef512e7f6c229692429ca9486ecf2a8f8b04b05 | {
"blob_id": "1ef512e7f6c229692429ca9486ecf2a8f8b04b05",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-06T14:28:29",
"content_id": "e0650f59240db5ddb6bf23feed533e4b3f47e128",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "cfea402743457154a435826d573fa012ef81886c",
"extens... | stackv2 | //
// Created by vic on 16-7-5.
//
#ifndef OCTEL_UV_HELP_H
#define OCTEL_UV_HELP_H
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "uv.h"
#define uv_fatal(e) { \
assert(0 != e); \
fprintf(stderr, "%s:%d - err:%s: %s\n", \
__FILE__, __LINE__, uv_err_name((e)), uv_st... | 2.1875 | 2 |
2024-11-18T21:52:08.782625+00:00 | 2023-01-17T11:26:47 | 9914dd80956f430cc8c2be7534d3611cf2587ed5 | {
"blob_id": "9914dd80956f430cc8c2be7534d3611cf2587ed5",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-17T11:26:47",
"content_id": "f89171b263332c5f80a2f16b288d5807fd1da89e",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "3b1da326ba9877da9bfa00cbfabb261a93dd8f5e",
"extens... | stackv2 | /*
Glidix Runtime
Copyright (c) 2014-2017, Madd Games.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of co... | 2.359375 | 2 |
2024-11-18T21:52:08.958878+00:00 | 2022-08-15T09:41:51 | e07ef95ae8c0b2fc5209678d6fe69a3631cdeda4 | {
"blob_id": "e07ef95ae8c0b2fc5209678d6fe69a3631cdeda4",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-15T09:41:51",
"content_id": "e2eb54d589caf87ec857069c7fb097643ebccbb5",
"detected_licenses": [
"MIT"
],
"directory_id": "6a060ed7ca2cf942e0a2cbd410e3877b10a6132b",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "opus.h"
#define LPCM_SAMPLING_RATE (48000)
#define CH_NUM (1)
#define LPCM_BYTE (2)
#define LPCM_SAMPLE (960)
#define OPUS_BITRATE (64000)
#define OPUS_OUTBUF_SIZE (4000) /* 1066.6666...byte */
#define LPCM_HEAD_SIZE_MAX (200)
in... | 2.4375 | 2 |
2024-11-18T21:52:09.337914+00:00 | 2017-09-07T16:04:18 | cf4d245da8a5e96a89b38660da7514b7a520a887 | {
"blob_id": "cf4d245da8a5e96a89b38660da7514b7a520a887",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-07T16:04:18",
"content_id": "2e39428545e8f8f948066e9227defde76a1d6b00",
"detected_licenses": [
"MIT"
],
"directory_id": "31a6d3dc6212e28fb6fdcc9d5c7631d50846aa6c",
"extension": "c"... | stackv2 | /*
* ===================================================================================
*
* Filename: main.c
*
* Description: main
*
* Version: 1.0
* Created: 2014/05/28 20:02:18
* Revision: none
* Compiler: gcc
*
* Author: xuefu
* Organization: none
*
* ============... | 2.46875 | 2 |
2024-11-18T21:52:09.617524+00:00 | 2013-10-11T16:01:23 | 928e9fc0f8c8843b190bd64f2b9c5486f3435bfd | {
"blob_id": "928e9fc0f8c8843b190bd64f2b9c5486f3435bfd",
"branch_name": "refs/heads/master",
"committer_date": "2013-10-11T16:01:23",
"content_id": "9483864905ae8f227d2aa7add178e78db4ad86d5",
"detected_licenses": [
"Unlicense"
],
"directory_id": "92425d9741d9cf8cbda90aaa52b2dc6a455e02f1",
"extension... | stackv2 | /**
* @file camioes.h
* @author André Santos, Helena Alves, Ricardo Branco
* @date ??
*/
#ifndef _CAMIOES_H
#define _CAMIOES_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/**
* @struct sCamiao
* @brief EStrutura que guarda os dados de um determinado camião.
*/
typedef struct sCamiao{
/**
* @va... | 2.640625 | 3 |
2024-11-18T21:52:09.990665+00:00 | 2020-08-23T19:46:42 | e885715fda2eaa68c58a6bcdaaea9af81aa6304e | {
"blob_id": "e885715fda2eaa68c58a6bcdaaea9af81aa6304e",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-23T19:46:42",
"content_id": "7d666fb486640055a05cab97d39d9376a11a781c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "0740d3aa49e207ad7c6ece9f7661b5dda82b9db5",
"extens... | stackv2 | #include <stdio.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_joystick.h>
#include <SDL2/SDL_gamecontroller.h>
int SDLJBN_Init(void);
int SDLJBN_AddMappingsFromFile(const char* file);
int SDLJBN_GetButtonName(SDL_Joystick* joystick, SDL_GameControllerButton button, char *s);
int SDLJBN_GetAxisName(SDL_Joystick* joystick... | 2.390625 | 2 |
2024-11-18T21:52:10.517634+00:00 | 2019-06-27T10:17:12 | 1ee3cc1f3e657cc8ac749cfb7da7701b85b6bb23 | {
"blob_id": "1ee3cc1f3e657cc8ac749cfb7da7701b85b6bb23",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-27T10:17:12",
"content_id": "8ef980afb52bb44a1c028bf3567a15188e5c799b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a648663bd12437eb07f388afea899933c0205414",
"extensio... | stackv2 | /****************************************************************************/
/* FreeRTOS functions includes. */
#include "FreeRTOS_util.h"
/* Demo utlities includes. */
/****************************************************************************/
/* Test task to test FreeRTOS port. */
void vTestTimer0( void *para... | 2.5 | 2 |
2024-11-18T21:52:10.761867+00:00 | 2020-05-29T08:42:47 | 4ae595284eaa6a63976b57b48314ca3dcca87953 | {
"blob_id": "4ae595284eaa6a63976b57b48314ca3dcca87953",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-29T08:42:47",
"content_id": "f924d22b2d58dadde7a212e970c045c972c6d235",
"detected_licenses": [
"MIT"
],
"directory_id": "95ea65fd0962ecc00358c414b41ac4bc5324aa5d",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../include/network.h"
int main() {
printf("Configuring remote address...\n");
struct addrinfo hints;
memset(&hints, 0, sizeof(hints));
hints.ai_socktype = SOCK_DGRAM;
hints.ai_family = AF_INET6;
hints.ai_flags = AI_V4MAPPED... | 2.796875 | 3 |
2024-11-18T21:52:10.924125+00:00 | 2021-02-21T20:14:55 | d7af743c35b24120a6a7d680e6e9288b1575e96e | {
"blob_id": "d7af743c35b24120a6a7d680e6e9288b1575e96e",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-21T20:14:55",
"content_id": "c7d46e5546ce155d8d5c314ad6f25bec8561e762",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fd67ccd4eaa03fd60b160d09b7e44f0b03276359",
"extensio... | stackv2 | /*------------------------------------------------------------------------------
1 2 3 4 5 6 7
01234567890123456789012345678901234567890123456789012345678901234567890123456789
'volume.h' cree le 27/04/94 par geraud@ima.enst.fr
modifie le 17/03/95
modifie ... | 2.046875 | 2 |
2024-11-18T21:52:11.217136+00:00 | 2020-01-02T13:39:52 | 752a0179b9ef5f2501baf1f4f631d97dee12a18d | {
"blob_id": "752a0179b9ef5f2501baf1f4f631d97dee12a18d",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-02T13:39:52",
"content_id": "7c421817a1d704a8978a5e79847b730df7a08a64",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "320d64d850b5fa2d2ef362dfac2d7dc00800fb17",
"extensio... | stackv2 | #include "afl/types.h"
#include "afl/bitmap.h"
#include "afl/alloc-inl.h"
#include "afl/globals.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
/* Write bitmap to file. The bitmap is useful mostly for the secret
-B option, to focus a separate fuzzing session on a particular
interesting input w... | 2.015625 | 2 |
2024-11-18T21:52:11.317357+00:00 | 2017-01-23T21:56:18 | 7c556c83ab3f3e755c1f4b55886b04cfbe102b20 | {
"blob_id": "7c556c83ab3f3e755c1f4b55886b04cfbe102b20",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-23T21:56:18",
"content_id": "22d15e69eb648d2ef9a224469a1ffc4120009412",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bf99aab8a4f6baff39accb08287454afcf28579e",
"extensio... | stackv2 | #pragma once
#include "sam3x8e.h"
typedef enum {
PIN0,
PIN1,
PIN2,
PIN3,
PIN4,
PIN5,
PIN6,
PIN7,
PIN8,
PIN9,
PIN10,
PIN11,
PIN12,
PIN13,
PIN14,
PIN15,
PIN16,
PIN17,
PIN18,
PIN19,
PIN20,
PIN21,
PIN22,
PIN23,
PIN24,
PIN25,
PIN26,
PIN27,
PIN28,
PIN29,
PIN30,
... | 2.171875 | 2 |
2024-11-18T21:52:12.701480+00:00 | 2015-04-01T13:32:26 | 4686dd851b6e7b730278b38f48b6ed4a6c385c50 | {
"blob_id": "4686dd851b6e7b730278b38f48b6ed4a6c385c50",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-01T13:32:26",
"content_id": "6d310fe699d1c4f60237166f5edc296ebe3df608",
"detected_licenses": [
"MIT"
],
"directory_id": "e9333665bb44c75a358f5201e2040c373f9bb8ce",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include "dnode.h"
#include "dlist.h"
struct dlist *
dlist_create() {
return calloc(1, sizeof(struct dlist));
}
void
dlist_destroy(struct dlist *l) {
struct dnode *p = l->front;
do {
l->front = l->front->next;
free(p->data);
free(p);
p = l->front;
} while (l->fron... | 2.796875 | 3 |
2024-11-18T21:52:12.918372+00:00 | 2018-11-15T01:07:53 | a87473e2fd30dc85b86715b2da904803cc6aaf65 | {
"blob_id": "a87473e2fd30dc85b86715b2da904803cc6aaf65",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-15T01:08:45",
"content_id": "162c3148aca1bbbbad8b09ab2bf2166664269c6b",
"detected_licenses": [
"MIT"
],
"directory_id": "8db52c6880a5d74bc20f5e99146bff97fae71f6a",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <string.h>
#include "../headers/interfaceControl.h"
#include "../headers/attemptProcessor.h"
#include "../headers/codeGenerator.h"
#include "../headers/gameCore.h"
#include "../struct/gameData.h"
#include "../struct/gameMacros.h"
gameData *gameInstance;
/**
* Função responsável por inici... | 2.65625 | 3 |
2024-11-18T21:52:12.986286+00:00 | 2019-10-21T06:40:34 | 67e4bc1094d1e8819c48a6528c7d4f6a94d4df68 | {
"blob_id": "67e4bc1094d1e8819c48a6528c7d4f6a94d4df68",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-21T06:40:34",
"content_id": "afd8cf6901ec62dfd4fbec2158aa9923d5619372",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9b68aa979c7911d7e78bc979e35271a4ebbd5be2",
"extensio... | stackv2 | #include "address.h"
#include "common/base58.h"
#include <stdbool.h>
#include "os.h"
bool is_pub_key_hash(uint8_t* script, uint32_t script_len) {
return script_len == 25 && script[0] == 0x76 // OP_DUP
&& script[1] == 0xa9 // OP_HASH160
&& script[2] == 0x14 && scr... | 2.296875 | 2 |
2024-11-18T21:52:13.544969+00:00 | 2022-06-20T12:28:54 | 5f55e9c1d31843286bef888d200bbad61e0fae30 | {
"blob_id": "5f55e9c1d31843286bef888d200bbad61e0fae30",
"branch_name": "refs/heads/main",
"committer_date": "2022-06-20T12:29:06",
"content_id": "f21ba9f33c3c5bdd0629e2af8ad7605001ff41ca",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0924eea674d3888df178aaf89b47e6d852a3adb9",
"extensio... | stackv2 | /*
* utime.c - display system uptime
* Copyright (C) 2022 Andrey G-w <andgera@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... | 2.84375 | 3 |
2024-11-18T21:52:13.840839+00:00 | 2018-03-25T03:10:35 | b5c213fbfc711516983643654abde3becba3c727 | {
"blob_id": "b5c213fbfc711516983643654abde3becba3c727",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-25T03:10:35",
"content_id": "770f4a6e18cd96908d4bc64d262403ae99b2dbac",
"detected_licenses": [
"MIT"
],
"directory_id": "acc7eb8c6b84b782a481e972f04dca90326458ec",
"extension": "c"... | stackv2 | //
// n.queens.c
// queens
//
// Created by Mateus Nunes de B Magalhaes on 3/22/18.
// Copyright © 2018 mateusnbm. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
void printBoard(int *indexes, int n) {
int i, j;
for (i = 0; i < n; i++) {
for (j = 0; j < n; j++) {
... | 3.3125 | 3 |
2024-11-18T21:52:13.931379+00:00 | 2016-01-27T17:19:21 | 46fa360167342a868852a53331777c57f0212c77 | {
"blob_id": "46fa360167342a868852a53331777c57f0212c77",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-27T17:19:21",
"content_id": "08bf24a1ce5a10063437bb862875a5d8bec49000",
"detected_licenses": [
"MIT"
],
"directory_id": "649edc1598dbe9f17462ece9992295cb0832f274",
"extension": "c"... | stackv2 | #include <stdio.h>
int is_prime(int number);
int main(){
int number, check;
check = scanf("%d", &number);
if(!check){
printf("%d \n", -1);
}else{
printf("%d \n", is_prime(number));
}
return 0;
}
int is_prime(int number){
int divide;
for(divide = 2;divide < number;divide++){
if(number%divide... | 3.34375 | 3 |
2024-11-18T21:52:14.014028+00:00 | 2021-08-17T15:50:53 | c0722e64cd72d311407637267ddeffef72efe004 | {
"blob_id": "c0722e64cd72d311407637267ddeffef72efe004",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-17T15:50:53",
"content_id": "096b97eab12e1367cb0b487d8ab439d27351b7c9",
"detected_licenses": [
"MIT"
],
"directory_id": "29b1b3823fb70772a3f99e2ecc28686a752287a2",
"extension": "c"... | stackv2 | /*Write a program to find the sum of all positive number entered by the user. Read the numbers and keep calculating the sum until the user enter 0.*/
/*Importing header files*/
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main()
{
/*Variable declaration*/
int number, sum = 0, count = 0;
... | 4.40625 | 4 |
2024-11-18T21:52:14.202035+00:00 | 2017-09-04T12:47:20 | 3544e63bbce3bfc43f94e5cd957325dfae2f0aa6 | {
"blob_id": "3544e63bbce3bfc43f94e5cd957325dfae2f0aa6",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-04T12:47:20",
"content_id": "ff23b19edb1afa6b16cbe4f4cbfa841cd8f9c8f4",
"detected_licenses": [
"MIT"
],
"directory_id": "22c6515f47f53ab0bed4f93e933b47a11ec84a6e",
"extension": "c"... | stackv2 | #include <stdio.h>
struct book_t {
char *name[51];
int year_of_publishing;
int sold_copies;
};
struct bookstore_t {
struct book_t books[10];
int books_count;
};
int sorted_add(struct bookstore_t*, struct book_t);
int main() {
struct book_t b1 = { .year_of_publishing = 1997 };
struct book_t b2 = { .year_... | 3.078125 | 3 |
2024-11-18T21:52:14.386248+00:00 | 2020-01-01T13:02:41 | 580b694e2939159ef8489cc8f685e435677d4a74 | {
"blob_id": "580b694e2939159ef8489cc8f685e435677d4a74",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-01T13:02:41",
"content_id": "408fee1ecc59b00f9a69136092e4fef8cd0a9c3c",
"detected_licenses": [
"MIT"
],
"directory_id": "40aa72b4ac6807eb8b69ab1ebaa61f3d9a19a9f5",
"extension": "c"... | stackv2 | /*
* author: Mahmud Ahsan
* https://github.com/mahmudahsan
* blog: http://thinkdiff.net
* http://banglaprogramming.com
* License: MIT License
*/
/*
* String
* \0 is auto assigned
*/
#include <stdio.h>
int main(){
char name[] = {"Steve Jobs"};
char anotherName[] = "Bill Gates"; // curly braces are ... | 2.765625 | 3 |
2024-11-18T21:52:15.180394+00:00 | 2018-03-12T12:06:33 | d800695fad6bf9f421861806c8d0fa20a5b87790 | {
"blob_id": "d800695fad6bf9f421861806c8d0fa20a5b87790",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-12T12:06:33",
"content_id": "ef4b5567274e19a0f5f2737d8c5b071515ed617a",
"detected_licenses": [
"MIT"
],
"directory_id": "ec5ed5f813d10346d48ccc158fb6fca367b4c799",
"extension": "c"... | stackv2 | #include "helpers.h"
#include "tracee.h"
#include "elfutils.h"
#ifndef __ARCH__
#error "Please specify the architecture through the __ARCH__ preprocessor var"
#else
#if __ARCH__ == 32
#define TRAP 0xCC
#define TRAP_SZ 1
#elif __ARCH__ == 64
#define TRAP 0xCC
#define TRAP_SZ 1
#else
#error "Unsupported archite... | 2.53125 | 3 |
2024-11-18T21:52:15.790256+00:00 | 2014-03-27T14:31:56 | 57d1dd051b7d6b5c610c793c6ac6d9c8b4ba4240 | {
"blob_id": "57d1dd051b7d6b5c610c793c6ac6d9c8b4ba4240",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-27T14:31:56",
"content_id": "a42f5c5f2b284d37dccb1ac1bb6786fa4491e706",
"detected_licenses": [
"MIT"
],
"directory_id": "9c5c6c9adfb22678dbac85012438ad0e81e0f6e0",
"extension": "c"... | stackv2 | #include <stdio.h>
int main()
{
signed char wrong = 150;
unsigned long better = 150;
printf("wrong=%u better=%u\n", (unsigned int)wrong, (unsigned int)better);
return 0;
}
| 2.109375 | 2 |
2024-11-18T21:52:15.873713+00:00 | 2016-04-19T07:31:41 | 3befa11ba1d1347a500a75001b0d6750e0467881 | {
"blob_id": "3befa11ba1d1347a500a75001b0d6750e0467881",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-19T07:31:41",
"content_id": "f192f1934fff74998e5dadceacb97ec00b775aec",
"detected_licenses": [
"MIT"
],
"directory_id": "23181e1861c9d2aaa3bf269515ae0acea8d9cac7",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
/* Maximum sizes and number of configured extensions */
#define MAX_EXTENSION_LENGTH 10
#define MAX_EXTENSIONS_SUPPORTED 50
#define MAX_COMMAND_LENGTH 50
#define MAX_FILES 30
#define CONFIG_FILE_NAME "extensions.conf"
... | 2.84375 | 3 |
2024-11-18T21:52:16.055570+00:00 | 2018-09-04T01:14:24 | 4e2d0b683ef7ff70de525e452388c1d31b6e2e4b | {
"blob_id": "4e2d0b683ef7ff70de525e452388c1d31b6e2e4b",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-04T01:14:24",
"content_id": "02091e431ba0cc505fea986668628fd8b8fab1e5",
"detected_licenses": [
"MIT"
],
"directory_id": "1f09ad361fbe1801636fbfc1b4db55b29e0d626b",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <locale.h>
/*
41. Faça um programa que leia o valor da hora de trabalho (em reais) e número de horas
trabalhadas no mês. Imprima o valor a ser pago ao funcionário, adicionando 10% sobre
o valor calculado.
*/
int main(){
setlocale(LC_ALL, "");
float valorHora = 0, horasNoMes =... | 3.484375 | 3 |
2024-11-18T21:52:16.279259+00:00 | 2021-07-10T08:12:44 | d6530a34649491593daaf7ffdb3262a3f00f80ce | {
"blob_id": "d6530a34649491593daaf7ffdb3262a3f00f80ce",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-10T08:12:44",
"content_id": "cf15b606ed81772b65f26cb01a27d37b596b5427",
"detected_licenses": [
"MIT"
],
"directory_id": "70f39024ff2d42f865d75d15cdfddd244443c3ae",
"extension": "c",
... | stackv2 | #include <assert.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
enum DATA_SIZE {
IBLOCK_CNT = 5,
DATA_CNT = 56,
BLK_CNT = 64,
FILE_CNT = 80,
INODE_SIZE = 256,
BLK_SIZE = 4096
};
enum BLOCK {
SUPER = 0,
IBMAP,
DBMAP,
IBLOCK,
... | 2.671875 | 3 |
2024-11-18T21:52:16.441087+00:00 | 2020-06-04T01:20:41 | 181a4cb2e16082f8e5ed433daae5686116b64771 | {
"blob_id": "181a4cb2e16082f8e5ed433daae5686116b64771",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-04T01:20:41",
"content_id": "7cbe24aaf8f0b67b4c66e2a7293ff47b687ad918",
"detected_licenses": [
"MIT"
],
"directory_id": "cbb23fb6867fdaa94303e9591c6fc43a61dd2239",
"extension": "c"... | stackv2 | # include <stdio.h>
int main() {
printf("\nC says Hello!\n");
} | 2.140625 | 2 |
2024-11-18T21:52:16.531980+00:00 | 2020-08-09T14:16:41 | f26c0e8edab8c2b80b57cba8215b1cac7a163aca | {
"blob_id": "f26c0e8edab8c2b80b57cba8215b1cac7a163aca",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-09T14:16:41",
"content_id": "7fa103e9610b4a13f970dd189d22edafa6fea61a",
"detected_licenses": [
"MIT"
],
"directory_id": "a39501e2d88af0ac71d9f23db48665d207708597",
"extension": "c"... | stackv2 | #include<time.h>
#include<stdio.h>
#include<stdlib.h>
#include<limits.h>
void QuickSort(int *arr,int l, int r);
int partition(int *arr, int l, int r);
int minDiff(int *arr, int size);
struct timespec start,end;
int main()
{
int size, *arr;
scanf("%d",&size);
double ms;
arr = (int *) malloc(sizeof(int) * size);
for... | 3.53125 | 4 |
2024-11-18T21:52:16.621579+00:00 | 2022-08-08T12:16:05 | 854649829aa5c14666621d83579f2b836ad612e1 | {
"blob_id": "854649829aa5c14666621d83579f2b836ad612e1",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-08T12:18:13",
"content_id": "888617d011abc55ebd9fe4158b50192ef8081985",
"detected_licenses": [
"MIT"
],
"directory_id": "bc35172f5b5d54c4ebc343afc529ceacd743a68e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
// ----------------------------------------------------------------------------
// The following might end up in its own header file eventually, but for now
// only the application can really know how to set the right types and system
// ca... | 2.796875 | 3 |
2024-11-18T21:52:17.171292+00:00 | 2016-10-24T16:31:48 | 785053c1a7b26b4ea1123552225dce1cf6f20e35 | {
"blob_id": "785053c1a7b26b4ea1123552225dce1cf6f20e35",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-24T16:31:48",
"content_id": "09a4cf218d15a0918a5172a0738fddaf22669a1d",
"detected_licenses": [
"MIT"
],
"directory_id": "6f71ce76777a730ef114730a81ca90d3bb619948",
"extension": "h"... | stackv2 | #ifndef _LCD_H_
#define _LCD_H_
#include <avr/pgmspace.h>
#define pgm_read_pointer(addr) ((void *)pgm_read_word(addr))
#ifndef _swap_int16_t
#define _swap_int16_t(a, b) { int16_t t = a; a = b; b = t; }
#endif
// Pins for the LCD control lines
#define LCD_DC_PIN 2 //PD2
#define LCD_CE_PIN ... | 2.375 | 2 |
2024-11-18T21:52:17.336691+00:00 | 2021-09-14T16:48:58 | 2ff27ec95a77039d127376a9b1d0df3a7ce515fd | {
"blob_id": "2ff27ec95a77039d127376a9b1d0df3a7ce515fd",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-14T16:48:58",
"content_id": "8f092d6bc8b00fbc1e848a2fa71719e9a7e334b7",
"detected_licenses": [
"MIT"
],
"directory_id": "be41df54ba259a75e2e72c78f0aa38a8457bf879",
"extension": "h"... | stackv2 | #ifndef _CAJ_RBTREE_H_
#define _CAJ_RBTREE_H_
#include <errno.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
struct caj_rb_tree_node {
int is_black;
struct caj_rb_tree_node *left;
struct caj_rb_tree_node *right;
struct caj_rb_tree_node *parent;
};
typedef int (*caj_rb_tree_cmp)(struct caj_rb_... | 2.34375 | 2 |
2024-11-18T21:52:17.504993+00:00 | 2018-04-02T09:57:14 | eda1b714b7a9665b769f926e205f6cdae5127465 | {
"blob_id": "eda1b714b7a9665b769f926e205f6cdae5127465",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-02T09:57:14",
"content_id": "0426155965415445a445fe14546ff74a9783c04e",
"detected_licenses": [
"MIT"
],
"directory_id": "2d93a1a4a5c98904b2e1669c0e88b4d3723f223b",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "input.h"
static char buf[BUFSIZE];
static int bufp = 0;
int getword(char *word, int lim, int (*char_comp)(int))
{
int c;
char *w = word;
while ((c = getch()) == ' ' || c == '\t');
if (c != EOF)
*w++ = c;
if (!(*char_comp)(c) && c != '#') {
*w = '\0';
... | 2.859375 | 3 |
2024-11-18T21:52:18.284495+00:00 | 2021-08-14T20:26:24 | 97893638158303cec8b0f2855c7c20a73d8c6d28 | {
"blob_id": "97893638158303cec8b0f2855c7c20a73d8c6d28",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-14T20:26:24",
"content_id": "cd49364203e67015db331960b134c1f58d85ad5f",
"detected_licenses": [
"MIT"
],
"directory_id": "36d7032a70f6127f0b41b2514b50d0f78ceeefe1",
"extension": "c",
... | stackv2 | #include<stdio.h>
#include<stdlib.h>
#define MAX 50
struct node
{
struct node *lchild;
int info;
struct node *rchild;
};
struct node *search_nrec(struct node *root, int skey);
struct node *min_nrec(struct node *root);
struct node *max_nrec(struct node *root);
struct node *insert_nrec(struct no... | 3.484375 | 3 |
2024-11-18T21:52:18.460741+00:00 | 2023-07-19T09:21:02 | f240fb5a59a4f9c45b28991d39d190c209200435 | {
"blob_id": "f240fb5a59a4f9c45b28991d39d190c209200435",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-19T09:21:02",
"content_id": "31f5a28d427105bbd8c1c5f956737e8cef432ae7",
"detected_licenses": [
"MIT"
],
"directory_id": "d3e009aee2b0656ef5202a7cc467c12e4cfe7b03",
"extension": "h",
... | stackv2 | /*
* A single order book, buys & sells for a single instrument
*/
#ifndef ORDER_BOOK_H
#define ORDER_BOOK_H
#include <stdbool.h>
#include "exchange_defs.h"
#include "order_list.h"
typedef struct {
OrderList buys, sells;
char instrument[INSTRUMENT_SIZE];
} OrderBook;
OrderBook *OrderBook_init(OrderBook ... | 2.140625 | 2 |
2024-11-18T21:52:18.539790+00:00 | 2022-01-09T22:46:26 | dc321602582c0a686c0bac54b56afa1fc7d02737 | {
"blob_id": "dc321602582c0a686c0bac54b56afa1fc7d02737",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-09T22:46:26",
"content_id": "1104dcf101b3fd680d267eaa448000d17ef27987",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c4492c7ceacd029604dac6f71a797ea7cb81562c",
"extens... | stackv2 | #include <stdio.h>
int main(int argc, char *argv[]) {
int x;
char c;
// Remember float here
float farn = 70, cel;
int upper = 120;
c='A';
printf("c = %d %c \n", c, c);
printf("Test inline assignment in C\n Help\b");
if( (x=5) == 5)
printf("Inline assigned x=%d\n",x);
while (farn <= upper)
{
ce... | 3.296875 | 3 |
2024-11-18T21:52:19.636826+00:00 | 2019-11-10T10:48:58 | b87dd9c55745e3405039980a725ef8591e264f16 | {
"blob_id": "b87dd9c55745e3405039980a725ef8591e264f16",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-10T10:48:58",
"content_id": "1394107781c8f859c53a70121fdfe43223c9d60e",
"detected_licenses": [
"MIT"
],
"directory_id": "b411f9d4dac3ca4003421068a507e0ba95eb52ba",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_read_elems.c :+: :+: :+: ... | 2.765625 | 3 |
2024-11-18T21:52:19.686657+00:00 | 2020-11-24T08:56:30 | 7ad9b790dc85c0460d5834766838c3c38a5bfbe0 | {
"blob_id": "7ad9b790dc85c0460d5834766838c3c38a5bfbe0",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-24T08:56:30",
"content_id": "e39f9c4050e6d9d8c79245a8f468994cc3074a14",
"detected_licenses": [
"MIT"
],
"directory_id": "33c2f5bb8768a9f723ef8de144e984cabb069721",
"extension": "c",
... | stackv2 | #include<stdio.h>
main()
{
printf("Enter the number between 1 and 5: ");
int m;
scanf("%d",&m);
switch(m)
{
case 1: printf("Pizza, Rs. 239");
break;
case 2: printf("Burger, Rs. 129");
break;
case 3: printf("Pasta, Rs. 179");
break;
case 4: printf("French Fries, Rs. 99");
... | 3.3125 | 3 |
2024-11-18T21:52:20.141131+00:00 | 2020-09-12T10:22:59 | a8c5b96def263baac46a6dec5b113df58ec56470 | {
"blob_id": "a8c5b96def263baac46a6dec5b113df58ec56470",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-12T10:22:59",
"content_id": "f9374bdace932cc8a9504fb97155d18807949d7e",
"detected_licenses": [
"MIT"
],
"directory_id": "1952cdc3a9274231318b54bc3a6d62858a3c62b9",
"extension": "c"... | stackv2 | //Program to print the number the number of characters in a string
#include<stdio.h>
void main() {
int i;
char name[100];
printf("Enter your name without spaces : ");
scanf("%s",name);
printf("Name : ");
i=(printf("%s",name));
printf("\nNumber of Characters = %d \n",i);
}
| 3.1875 | 3 |
2024-11-18T21:52:20.452128+00:00 | 2023-01-07T00:09:11 | db4a7601c69a22ae19276842187e443044866195 | {
"blob_id": "db4a7601c69a22ae19276842187e443044866195",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-07T00:09:11",
"content_id": "5eff4c91459de898b6f388ef802655a5ff011447",
"detected_licenses": [
"MIT"
],
"directory_id": "1a16506ec1f8c0756ac727a7fe02b78031974188",
"extension": "c"... | stackv2 | // Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
struct b;
struct a {
int j;
struct b *i;
};
struct b {
struct a i;
};
int test(struct a t2) {
return t2.i->i.j;
}
int main() {
struct b t1;
struct a t2;
t2.i = &t1;
return test(t2);
}
| 2.125 | 2 |
2024-11-18T21:52:21.238629+00:00 | 2021-05-31T22:07:04 | 7adfd895e5bd54dbfb027a322bbeedd607045628 | {
"blob_id": "7adfd895e5bd54dbfb027a322bbeedd607045628",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-31T22:07:04",
"content_id": "b7e5f1bc6ced84033aa35988c389eb402a246959",
"detected_licenses": [
"MIT"
],
"directory_id": "8a08936a566b5f0fbc3d6727fc24fd16f54eea51",
"extension": "h",
... | stackv2 | #ifndef XMOD_H_
#define XMOD_H_
#define PROC_CREATE 0
#define PROC_EXIT 1
#define SIGNAL_RECV 2
#define SIGNAL_SENT 3
#define FILE_MODF 4
#define LOG_FILENAME "LOG_FILENAME"
#define FIRST_PROCESS_PID getpgrp()
#define START_TIME "START_TIME"
/**
* @brief Call recursive or single file xmod according to the fil... | 2.0625 | 2 |
2024-11-18T21:52:21.372369+00:00 | 2019-07-02T01:05:41 | 72bd36c60b1812191edeba181bba703978b7a3f9 | {
"blob_id": "72bd36c60b1812191edeba181bba703978b7a3f9",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-02T01:05:41",
"content_id": "0c557275e3f90e3d09ffd5521406e76abe0abfd9",
"detected_licenses": [
"MIT"
],
"directory_id": "14721fb71ca540439747c69add5922740d44507a",
"extension": "c"... | stackv2 | #include "include/access.h"
#include "include/options.h"
#include "include/filelib.h"
void fatlib_debug_print_file(FL_FILE *file)
{
printf("[DEBUG] File parent cluster: %d\n", file->parent_cluster);
printf("[DEBUG] File start cluster: %d\n", file->start_cluster);
printf("[DEBUG] File byte num: %d\n", file->byte_num... | 2.25 | 2 |
2024-11-18T21:52:21.447475+00:00 | 2018-08-22T14:20:54 | c37b38751a5aef543a0f08855a9af71990c8cc66 | {
"blob_id": "c37b38751a5aef543a0f08855a9af71990c8cc66",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-22T14:20:54",
"content_id": "694c10400af80d533e0d37e34304b52642a564ee",
"detected_licenses": [
"MIT"
],
"directory_id": "34a427e7bd09891efae483490cfe14fe0d720cfb",
"extension": "c"... | stackv2 | /*
Program: super-kpt.C
Author: D. Trinkle
Date: October 15, 2004
Purpose: This takes in:
1. unit cell definition
2. a periodic supercell
and we compute
1. the folding matrices for kpoints in the supercell BZ
Param.: <cell> <supercell>
cell: cell file describing our... | 2.3125 | 2 |
2024-11-18T21:52:24.012112+00:00 | 2021-02-24T20:12:47 | 7b94379aa1f173e13804225bbfccbe3b5162a45a | {
"blob_id": "7b94379aa1f173e13804225bbfccbe3b5162a45a",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-24T20:12:47",
"content_id": "0fe5303886f7d42e7ba9d64db3e1f653d47abca1",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "2fff83d018d0b022bab9797c7fb13711b1d9accf",
"extension":... | stackv2 | #include <libtensor/core/block_index_space_product_builder.h>
#include "../test_utils.h"
using namespace libtensor;
/** \test Product of spaces [6(2)] and []. Expected result: [6(2)].
**/
int test_0a() {
static const char testname[] =
"block_index_space_product_builder_test::test_0a()";
try {
... | 2.421875 | 2 |
2024-11-18T21:52:24.123830+00:00 | 2014-08-18T14:54:55 | 2ce9b1bbe507e23e12f4c1edebf36d1b11ab3956 | {
"blob_id": "2ce9b1bbe507e23e12f4c1edebf36d1b11ab3956",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-18T14:54:55",
"content_id": "adc0e30f8bfd650faff6525fd4fe1271510c607a",
"detected_licenses": [
"Zlib"
],
"directory_id": "1c55fa881fff9fb47af0464e978c6f2881a324f1",
"extension": "c... | stackv2 | #include <ax/file.h>
#include <ax/slib.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#define ALT_FORM (1<<('#'-' '))
#define ZERO_PAD (1<<('0'-' '))
#define LEFT_ADJ (1<<('-'-' '))
#define PAD_POS (1<<(' '-' '))
#define MARK_POS (1<<('+'-' '))
#define GROUPED (1<<('\''-' '))
#define FLA... | 2.34375 | 2 |
2024-11-18T21:52:31.342031+00:00 | 2020-09-22T08:24:29 | b2a77b3fe87bf67f0ca04edc266d2d11dfed927d | {
"blob_id": "b2a77b3fe87bf67f0ca04edc266d2d11dfed927d",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-22T08:24:29",
"content_id": "5f165ad3828cb97ee1c0494effc4a4d75ac329d0",
"detected_licenses": [
"MIT"
],
"directory_id": "f63e4a9e0d664fb80a59a15632926171fa3ba5dc",
"extension": "c"... | stackv2 | /*
* © 2020 Aaron Taylor <ataylor at subgeniuskitty dot com>
* See LICENSE file for copyright and license details.
*/
#include <stdlib.h>
#include "filetype_comm.h"
#include "interface_filedata.h"
#include "io_cmdline.h"
struct file_data *
load_file_data(char * file_data_path_prefix) {
struct file_data * file... | 2 | 2 |
2024-11-18T21:52:31.701860+00:00 | 2019-02-09T10:33:01 | 2edbc1c326750581d6a3b2ae683c3f123a778725 | {
"blob_id": "2edbc1c326750581d6a3b2ae683c3f123a778725",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-09T10:33:01",
"content_id": "f87e2b1c1bc9177330a4322db5cd21b3d97cf456",
"detected_licenses": [
"MIT"
],
"directory_id": "e58fc4b927b79ddb4eae4d54d8527144ff95d7c7",
"extension": "c"... | stackv2 | #include <transfers.h>
#include <debug.h>
#include <isd4002.h>
#include <audio_io.h>
#include <indicator.h>
#include <wait.h>
void HandleStateTransfer(const Context *ctx) {
DEBUGF("transfer %u\n", ctx->transfer);
switch (ctx->transfer) {
case PLAYBACK_TO_STOP:
PlaybackToStopHandler(ctx);
Se... | 2.234375 | 2 |
2024-11-18T21:52:31.768689+00:00 | 2021-06-21T01:29:48 | 81c43eea5afae7c90a2336dd63a9425e58ea1bbc | {
"blob_id": "81c43eea5afae7c90a2336dd63a9425e58ea1bbc",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-21T01:29:48",
"content_id": "3544ba50d4c3ad6430ebb6cb6c12352d29c609c7",
"detected_licenses": [
"MIT"
],
"directory_id": "00b3879e242fa3f467fa574467dfe2f6f2dc028c",
"extension": "c",
... | stackv2 | //deascending check
#include<stdio.h>
int main (void)
{
//declaring array
int input[6];
//declaring variavle
int i;
//taking inputs from the user
for(i = 0 ; i < 6 ; i++)
{
printf("Enter a Number : ");
scanf("%d" , &input[i]);
}
//check if the input sequence in ascending
for(i = 1 ; i < 6 ; i++)
... | 3.671875 | 4 |
2024-11-18T21:52:31.917681+00:00 | 2020-02-05T23:40:57 | d3f1f1dfc00bb290e005ea4cd2872ad0add87480 | {
"blob_id": "d3f1f1dfc00bb290e005ea4cd2872ad0add87480",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-05T23:40:57",
"content_id": "b69b92df075e343ac07ab0b3ce1897263fccecbb",
"detected_licenses": [
"MIT"
],
"directory_id": "8a3d5825d9b8a550f233d69a503d0f135d54e2c6",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sprintf.c :+: :+: :+: ... | 2.765625 | 3 |
2024-11-18T21:52:31.993797+00:00 | 2021-05-26T03:17:30 | e2ca9aa59589edb1f9c4d2f2d73ca9f773e9c37a | {
"blob_id": "e2ca9aa59589edb1f9c4d2f2d73ca9f773e9c37a",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-26T03:17:30",
"content_id": "93233ffce775f33fd6554b5183b9b3ff59717d61",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8d33f634d51d389ed8f6e938f378fcc4786fa61e",
"extension"... | stackv2 | #ifndef PAGE_H_
#define PAGE_H_
#include "type.h"
struct Page { // 每个page的头
pgid id;
uint16_t flag;
// 页面中存储的数据数量,仅在页面类型是freelist以及leaf的时候起作用。
uint16_t count;
// 当前页面如果还不够存放数据,就会有后续页面,这个字段表示后续页面的数量。
uint32_t overflow;
// 指向页表头数据结尾,也就是页面数据的起始位置。
char ptr[0];
meta *metaPtr() { return reinterpret_cast<... | 2.390625 | 2 |
2024-11-18T21:52:32.073834+00:00 | 2021-05-31T05:23:52 | 7efee9dcca9531f1c2cc50c94949113f86a418c3 | {
"blob_id": "7efee9dcca9531f1c2cc50c94949113f86a418c3",
"branch_name": "refs/heads/develop",
"committer_date": "2021-05-31T05:23:52",
"content_id": "0bea301780e21bb5d96430dc685b8ee12ece6bca",
"detected_licenses": [
"MIT"
],
"directory_id": "d2d9ebc032f26f54b08ac3f35e3777e3a3ef68f6",
"extension": "h... | stackv2 | #ifndef PM_PROTOCOL_H
#define PM_PROTOCOL_H
// --------------------------------------------------------------------------------------------------------------------
// Repository:
// - Github: https://github.com/rahmant3/polymath-iot
//
// Description:
// This file defines the core interface used to implement the pol... | 2.4375 | 2 |
2024-11-18T21:52:32.226473+00:00 | 2021-04-01T12:08:49 | 3bf9887a96c252e1f95d05a904e1c67baffd5d90 | {
"blob_id": "3bf9887a96c252e1f95d05a904e1c67baffd5d90",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-01T12:08:49",
"content_id": "bdfac8916b842b073ed16838f0244c57684ffdaf",
"detected_licenses": [
"MIT"
],
"directory_id": "54a06b55f984fd23ab65f583ced55773a8121c63",
"extension": "c"... | stackv2 | // Copyright (c) Christopher D. Dickson <cdd@matoya.group>
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT License was not distributed with this file,
// You can obtain one at https://spdx.org/licenses/MIT.html.
#include "matoya.h"
#include <limits.h>
#include <string.h... | 2.46875 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.