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-19T00:17:16.476075+00:00 | 2021-01-24T14:52:15 | b30e602bdcf64d9d85a8eccad72e31195cec11bb | {
"blob_id": "b30e602bdcf64d9d85a8eccad72e31195cec11bb",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-24T14:52:15",
"content_id": "5b00087a57e67defa82ee9985d63cae57b7b65c7",
"detected_licenses": [
"MIT"
],
"directory_id": "1ceddd83f84218ed3e92b4414ebff2fe495832a5",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdint.h>
int main(){
uint8_t arr[4] = {0x01, 0x02, 0x03, 0x04};
int32_t *ptr_int;
float *ptr_float;
uint16_t val_uint16;
// left: int32_t*, right: uint8_t*
ptr_int = (int32_t*)arr;
// left: float*, right: uint8_t*
ptr_float = (float*)arr;
// left: uint16_t, right: uint8_t... | 2.8125 | 3 |
2024-11-19T00:17:17.132643+00:00 | 2021-05-25T08:29:01 | 3569cd2b3935be845a7ae13de1e57d8be1706872 | {
"blob_id": "3569cd2b3935be845a7ae13de1e57d8be1706872",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-25T08:29:01",
"content_id": "c68f527b70c63c72a4689aceaa40213619e6f6ce",
"detected_licenses": [
"MIT"
],
"directory_id": "82873b85f33c88a9a717394296a4a658f6903493",
"extension": "c"... | stackv2 | /*
* Handling operations (used for quality assessments)
* Copyright (c) 2010 Pertimm, Inc. by Lois Rigouste
* Dev : April 2010
* Version 1.0
*/
#include "ogm_ltras.h"
PUBLIC(og_status) OgLtrasOperationInit(void *handle)
{
struct og_ctrl_ltras *ctrl_ltras = (struct og_ctrl_ltras *)handle;
IFE(OgAutReset(ctrl_... | 2 | 2 |
2024-11-19T00:17:17.190292+00:00 | 2022-11-25T14:31:40 | 38487c934239fe15275c588980cf56887d59d3f3 | {
"blob_id": "38487c934239fe15275c588980cf56887d59d3f3",
"branch_name": "refs/heads/main",
"committer_date": "2022-11-25T14:31:40",
"content_id": "9d3209ec1d953fe1b393c1e5448a0f13119dab18",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c6bbd226758134f7057e381234b14ab0e5f19410",
"extensio... | stackv2 |
/* names.c - general purpose string handling. A shell sort. */
#include <ctype.h>
#include <string.h>
#include "jimk.h"
#include "memory.h"
/* Force a string to upper case */
to_upper(s)
register UBYTE *s;
{
register UBYTE c;
while ((c = *s++) != 0)
{
if (islower(c))
*(s-1) = _toupper(c);
}
}
/* Convert all o... | 2.75 | 3 |
2024-11-19T00:17:17.261046+00:00 | 2015-02-26T00:48:39 | 540ba1b57db7008b7a7d47e620a989b36d4d69e5 | {
"blob_id": "540ba1b57db7008b7a7d47e620a989b36d4d69e5",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-26T01:27:25",
"content_id": "8f86775f4229fe10a0d4952770aaca6fe6f6ac7b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "acd615278ad2ce40ac1ea9abb9061ab6adad3648",
"extensio... | stackv2 | #include <stdio.h>
#include "rpg_conf.h"
#include "rpg_defs.h"
#include "chs_defs.h"
#include "chs_load.h"
#include "chs_intr.h"
#include "mfs.h"
void rpg_chs_run_prog(rpg_display_data *data, rpg_map *map, int prognum, char *param) {
char fname[16];
mfs_dir_entry *dir;
cheese_envyro envyro;
rpg_extra_data ... | 2.046875 | 2 |
2024-11-19T00:18:20.493284+00:00 | 2018-01-28T22:56:37 | d9ae2deac0de63c8bb15bdaec2dab0faac69db84 | {
"blob_id": "d9ae2deac0de63c8bb15bdaec2dab0faac69db84",
"branch_name": "refs/heads/halvm",
"committer_date": "2018-01-28T22:56:37",
"content_id": "c83714337edd7611ff606575c36b555ab0163ba8",
"detected_licenses": [],
"directory_id": "413a62285fc7ab174a9dd63211181704a30b1109",
"extension": "c",
"filename"... | stackv2 | /* -----------------------------------------------------------------------------
*
* (c) The GHC Team, 1998-2004
*
* General utility functions used in the RTS.
*
* ---------------------------------------------------------------------------*/
#include "PosixSource.h"
#include "Rts.h"
#include "RtsAPI.h"
#include... | 2.15625 | 2 |
2024-11-19T00:18:20.561912+00:00 | 2022-01-24T18:26:38 | 2fe0e2dfda1f8b627708d92b65102cae82177b88 | {
"blob_id": "2fe0e2dfda1f8b627708d92b65102cae82177b88",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-26T17:48:19",
"content_id": "1025e31d6d05d9d07b2174e995644fdac25e17a1",
"detected_licenses": [
"MIT"
],
"directory_id": "d577b1df061587011d32a4f3c0dee0ac92718817",
"extension": "h"... | stackv2 | /*
Copyright (C) 2021 Christian Jaeger, <ch@christianjaeger.ch>
Published under the terms of the MIT License, see the LICENSE file.
*/
#ifndef SLICE_H_
#define SLICE_H_
/*
A Slice is representing a subsection of an Vec, borrowing the
latter's data.
See `Vec_sub_Slice_unsafe` and `Vec_sub_Slice` in `Vec.h`... | 2.328125 | 2 |
2024-11-19T00:18:20.642193+00:00 | 2013-06-14T09:19:55 | a1b5f7815372a8e8fecb9885965b37dc5b616b3e | {
"blob_id": "a1b5f7815372a8e8fecb9885965b37dc5b616b3e",
"branch_name": "refs/heads/master",
"committer_date": "2013-06-14T09:19:55",
"content_id": "3a1a322f71382503d1b9079d4803212f64e7104a",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "c3ca81bcc87ea5b3a01038ddc6312a7dbef12d00",
"extens... | stackv2 | /*
--------------------------------------------------------------------
By Bob Jenkins, September 1996. recycle.h
You may use this code in any way you wish, and it is free. No warranty.
This manages memory for commonly-allocated structures.
It allocates RESTART to REMAX items at a time.
Timings have shown that, if m... | 2.515625 | 3 |
2024-11-19T00:18:20.887863+00:00 | 2020-05-06T16:31:42 | b72434ffc6ffc48f1c776b2e559de90f279d1110 | {
"blob_id": "b72434ffc6ffc48f1c776b2e559de90f279d1110",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-06T16:31:42",
"content_id": "a70994a4cfefe39d2191019279c0b9d5f4bf6d80",
"detected_licenses": [
"Zlib"
],
"directory_id": "e8d24bda03d80e1bf0dda672b340ebb69f38f2b3",
"extension": "c... | stackv2 | #include "tdd_network.h"
measure_stream_t* measure_stream_create()
{
measure_stream_t* measure_stream = malloc(sizeof(measure_stream_t));
measure_stream->base.type = STREAM_MEASURE;
measure_stream->base.serialize_uint_func = (serialize_uint_func_t)measure_stream_serialize_uint;
measure_stream->base.se... | 2.6875 | 3 |
2024-11-19T00:18:20.941939+00:00 | 2020-12-20T16:46:27 | b7894ab6f6e06eae57750585a9aa55701b397a55 | {
"blob_id": "b7894ab6f6e06eae57750585a9aa55701b397a55",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-20T16:46:27",
"content_id": "40c1191b3e4d9f00e4263699eb28f2b2582960b9",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "d3a8eeb5bcaed23d5bfc3c643aa9fb035667d3ea",
"extens... | stackv2 | /*===========================================================================
= =
= MtkDdToRad_test =
= =
========... | 2.546875 | 3 |
2024-11-19T00:18:21.017996+00:00 | 2020-11-07T00:55:36 | 3f22792cbb5f4be60fd271f636ed19e045926909 | {
"blob_id": "3f22792cbb5f4be60fd271f636ed19e045926909",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-07T00:55:36",
"content_id": "705ecbe8cdaa1baf751b81d6746ac89dddd3fdc4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7ca6b3d303fcb11c69560fedc641b7c1c96b30d1",
"extension"... | stackv2 | #include<KF8A100GQS.h>
#include "includes.h"
#include "PinConfig.h"
#include "SoftSpi.h"
#include "Work.h"
#include "Timer.h"
void SYS_Init(void)
{
SCLKCTL =0X78;//禁止输出时钟,选择内部高频作为时钟源,分频器1:1分频
HFCKCTL =0x8E;//使能高频外设时钟,INTHF/64,
Init_IO();
IS31FL3265B_Init();
Timer0_Init();
Timer1_Init();
Timer2_Init();
PUIE =1;
... | 2.03125 | 2 |
2024-11-19T00:18:21.111617+00:00 | 2017-06-10T16:08:33 | e406372273d87064629d3c08a767035464c39b3a | {
"blob_id": "e406372273d87064629d3c08a767035464c39b3a",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-10T16:08:33",
"content_id": "c9a5325e30de365742f66067cedd283735ab7e54",
"detected_licenses": [
"MIT"
],
"directory_id": "3c30ec0464e2cfdfc73a66ed17d233e58021eed9",
"extension": "c"... | stackv2 | void enter_menu()
{
unsigned char cursor = 1;
print_menu(cursor);
while (1)
{
print_menu(cursor);
if (isBtnUp() && check_cursor_boundary(cursor - 1))
{
cursor -= 1;
print_menu(cursor);
tone(0);
}
if (isBtnDown() && check_cursor... | 2.640625 | 3 |
2024-11-19T00:18:21.379202+00:00 | 2017-05-10T09:50:21 | f09c3a0bf4cae0e1736f23429a37e0054421c86a | {
"blob_id": "f09c3a0bf4cae0e1736f23429a37e0054421c86a",
"branch_name": "refs/heads/arm",
"committer_date": "2017-05-10T14:22:48",
"content_id": "2dc786531d03f2d2123e8e1a17c05dedf6d6b6b3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6af50a4b5b928211880dd9f1c6ce92c2afea828b",
"extension":... | stackv2 | /*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
unsigned int irq_lock(void)
{
return 0;
}
void irq_unlock(unsigned int key)
{
}
#include <net/buf.c>
void k_queue_init(struct k_queue *fifo) {}
void k_queue_append_list(struct k_queue *fifo, void *head, voi... | 2.171875 | 2 |
2024-11-19T00:18:21.792544+00:00 | 2021-04-14T08:26:32 | 1b0c30d1f443edcd0bba8d59b4c3ebc1e59c8749 | {
"blob_id": "1b0c30d1f443edcd0bba8d59b4c3ebc1e59c8749",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-14T08:37:23",
"content_id": "11e4056f94fe113087c751ad2875f1438d61babb",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "df230fb99b630854e72ee2e276304948e43934a5",
"extens... | stackv2 | /*
TinyGLUT Small implementation of GLUT (OpenGL Utility Toolkit)
Copyright (C) 2015 Nicolas Caramelli
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 s... | 2.109375 | 2 |
2024-11-19T00:18:21.874206+00:00 | 2019-12-07T19:04:27 | 0e2d9f389665ed87aaf25472eef1bf6df04cc637 | {
"blob_id": "0e2d9f389665ed87aaf25472eef1bf6df04cc637",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-07T19:04:27",
"content_id": "1344f752405d3b829ad0f989dac8fbbaceea695f",
"detected_licenses": [
"MIT"
],
"directory_id": "27ca196c9f0769b36a7e70c2d93ab9d138f6ddb0",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2007 - 2015 Joseph Gaeddert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | 2.25 | 2 |
2024-11-19T00:18:23.235807+00:00 | 2023-09-01T01:01:47 | d84dca5ffb105925555c9a122d654400afc5b394 | {
"blob_id": "d84dca5ffb105925555c9a122d654400afc5b394",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-01T01:01:47",
"content_id": "78b8057dd8d41825ed27ee7d3337b40c32388629",
"detected_licenses": [
"MIT"
],
"directory_id": "08d028267d3494963a87e5e5cdc3bd0cf65df843",
"extension": "c"... | stackv2 | #include "alloc.h"
#include <stdlib.h>
static void *ts_malloc_default(size_t size) {
void *result = malloc(size);
if (size > 0 && !result) {
fprintf(stderr, "tree-sitter failed to allocate %zu bytes", size);
abort();
}
return result;
}
static void *ts_calloc_default(size_t count, size_t size) {
void... | 2.828125 | 3 |
2024-11-19T00:18:23.374210+00:00 | 2016-10-26T17:52:45 | c34ba55967f8b9bffcd7b2748b004d8264218808 | {
"blob_id": "c34ba55967f8b9bffcd7b2748b004d8264218808",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-26T17:52:45",
"content_id": "492710ccdf3b04ccca2d29c0e0db801ab3558e79",
"detected_licenses": [
"MIT"
],
"directory_id": "57b61987b78f3f3811a37d4aa724127dac688617",
"extension": "c"... | stackv2 | #include <mun/array.h>
void
array_init(array* self, word size){
self->size = 0x0;
self->asize = size;
self->data = malloc(sizeof(V) * size);
for(int i = 0; i < size; i++) self->data[i] = NULL;
}
void
array_resize(array* self, word nasize){
if(nasize > self->asize){
V* ndata = realloc(self->data, sizeof(... | 2.71875 | 3 |
2024-11-19T00:18:23.557028+00:00 | 2018-12-09T17:02:35 | 931fafad986f913564ee2034467df305eb2b03fe | {
"blob_id": "931fafad986f913564ee2034467df305eb2b03fe",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-09T17:02:35",
"content_id": "bef3ae5ae2ecb2371dcccb0b20518a3503037ba8",
"detected_licenses": [
"MIT"
],
"directory_id": "1012504543830fbb10190e710ba2229451281221",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <stdlib.h>
int main(int argc, char *argv[]){
DIR *pdir;
struct dirent *pde;
int i = 0;
if(argc < 2){
fprintf(stderr, "Usage: file_dir dirname\n");
exit(1);
}
if((pdir = opendir(argv[1])) < 0){
perror("opendir");
exit(1);
}
while((pdir = rea... | 2.59375 | 3 |
2024-11-19T00:18:23.639068+00:00 | 2018-04-02T01:34:52 | c2b9e7bef1f73d9aefa77b6d1376f23f401acc19 | {
"blob_id": "c2b9e7bef1f73d9aefa77b6d1376f23f401acc19",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-02T01:34:52",
"content_id": "18d00159a65eeeff6302b890d78bfb4f0b3bb6da",
"detected_licenses": [
"MIT"
],
"directory_id": "ce165143db1820f21aa46de2de94b76c7e5da05f",
"extension": "c"... | stackv2 | //
// lossless_encode.c
// mjpeg423app
//
// Created by Rodolfo Pellizzoni on 12/23/13.
// Copyright (c) 2013 __MyCompanyName__. All rights reserved.
//
#include <stdio.h>
#include "../common/mjpeg423_types.h"
#include "mjpeg423_decoder.h"
#include "../common/util.h"
#ifndef NULL_LOSSLESS
//Structure to hold a ... | 2.515625 | 3 |
2024-11-19T00:18:23.795455+00:00 | 2016-09-29T09:30:28 | 486b1102e8fdd74908fbc3e3952a961404ca596f | {
"blob_id": "486b1102e8fdd74908fbc3e3952a961404ca596f",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-29T09:30:28",
"content_id": "ca682476a16ec67f03798eee7f37b17191cb4557",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "5ffd02b1ae04c38c2c6a93364a542f2f... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int main(void)
{
FILE *fp = fopen("orig.txt", "r");
FILE *output = fopen("output.txt", "w");
if (!fp) {
printf("ERROR opening input file orig.txt\n");
exit(0);
}
int i = 0;
char append[50], find[50], total[50];
double orig_sum_a = 0.0, ... | 2.640625 | 3 |
2024-11-19T00:18:24.043546+00:00 | 2021-10-25T16:54:56 | ce22ba112df359008e87cadbd3c1f5dc466ff050 | {
"blob_id": "ce22ba112df359008e87cadbd3c1f5dc466ff050",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-25T16:54:56",
"content_id": "98ab0e6d2c04a02a0f376333854ffa2d1aa13d0b",
"detected_licenses": [
"MIT"
],
"directory_id": "f2b3643d18f6d3dad225edff8a06d827816cd2f1",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdlib.h>
struct List {
int data;
struct List *next;
};
void ListPrint(struct List **head) {
struct List *current = *head;
while (current != NULL){
printf("%d -> ", current->data);
current = current->next;
}
printf("NULL\n\n");
}
void ListInsert(stru... | 3.921875 | 4 |
2024-11-19T00:18:24.887829+00:00 | 2023-08-29T11:30:11 | eae51d651e3bcd9cccc0ba2ccf57ba348556b1c6 | {
"blob_id": "eae51d651e3bcd9cccc0ba2ccf57ba348556b1c6",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T11:30:11",
"content_id": "c210a819370d9216213b1affb06add3c460678d8",
"detected_licenses": [
"BSD-3-Clause",
"BSD-4-Clause-UC"
],
"directory_id": "07664200f77c4d87baf972e367e77... | stackv2 | # include <stdio.h>
# define _actsize 2000
# define _memsize 3500
# define _nstates 500
# define _nterms 100
# define _nprod 350
# define _nnonterm 200
# define _tempsize 400
# define _cnamsz 2500
# define _lsetsize 300
# define _wsetsize 150
# define _tbitset 8 /* increased from 6 for equel -- -tih */
int tbitset; ... | 2.0625 | 2 |
2024-11-19T00:18:26.126023+00:00 | 2016-09-14T15:53:21 | ba822594ed384ca19f4125a7ca7554db993d6bee | {
"blob_id": "ba822594ed384ca19f4125a7ca7554db993d6bee",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-14T15:53:21",
"content_id": "6685de9afa0f8d1a5480da47ec25e2abf9780f50",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4112266f5190070ee892e198ff8b25acb613ab28",
"extens... | stackv2 | /*
* timer_handler.c
*
* Created on: 2014/06/22
* Author: Yoshio
*/
#include "../system/cmsis/LPC13Uxx.h"
#include "../system/peripheral/timer.h"
#if TIMER_INTERRUPT
typedef struct timer_event_handler
{
timer_event_func func;
struct timer_event_handler* next;
} timer_event_handler;
timer_event_handler ... | 2.578125 | 3 |
2024-11-19T00:18:27.295004+00:00 | 2019-06-07T11:33:26 | 73c15a916aa1fdd95db7bdda3800908a84df3829 | {
"blob_id": "73c15a916aa1fdd95db7bdda3800908a84df3829",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-09T10:59:23",
"content_id": "7308588c670465c285b780b9cd2188a25048cb03",
"detected_licenses": [
"BSD-2-Clause",
"MIT"
],
"directory_id": "1b08cad7ae54ecf3b5e435f770416ce85be191ef"... | stackv2 | #include <stddef.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "history.h"
#include "linenoise.h"
void add_history(const char *ln) { linenoiseHistoryAdd(ln); }
int write_history(const char *path) {
int err = linenoiseHistorySave(path);
if (err)
return EIO;
return ... | 2.03125 | 2 |
2024-11-19T00:18:27.930781+00:00 | 2020-01-12T19:27:08 | 6bf99f46168d72e219b9c07e9cb8e54f84cad72b | {
"blob_id": "6bf99f46168d72e219b9c07e9cb8e54f84cad72b",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-12T19:27:08",
"content_id": "57c3750e7fcabc46ed254f4976d8d237a90dbe6f",
"detected_licenses": [
"MIT"
],
"directory_id": "c59ac00e686b56a339345c97cda24857480537d0",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "funcoes_auxiliares.h"
#include "funcoesProjeto.h"
#include "funcoesMenus.h"
#include "constantes.h"
// ---------- LER DADOS PERGUNTA ----------
tipoPergunta lerDadosPergunta(tipoPergunta vetorPerguntas[], int nPerguntas)
{
int min=1, maxP=40, maxR... | 2.984375 | 3 |
2024-11-19T00:18:29.691515+00:00 | 2019-10-11T22:04:00 | 27e77883bd492da0eafa66acc642f1e7b45c0e4d | {
"blob_id": "27e77883bd492da0eafa66acc642f1e7b45c0e4d",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-11T22:04:00",
"content_id": "22e902d874c84fb6256de17ae0b66afddc016412",
"detected_licenses": [
"MIT"
],
"directory_id": "2096c9a34de0737c1899c831fc5446bf50467e9d",
"extension": "c"... | stackv2 | #include "adc.h"
void (*_adc_handler)(uint8_t pin, uint16_t);
volatile uint8_t _adc_pin_qty;
uint16_t adc_read(uint8_t prescaler, uint8_t vref, uint8_t pin) {
#ifdef MUX5
if (pin > 7) {
ADCSRB |= _BV(MUX5);
ADMUX = vref | (pin - 8);
} else {
ADCSRB &= ~(_BV(MUX5));
ADMUX = vref | pin;
}
#else
ADMUX = vref... | 2.40625 | 2 |
2024-11-19T00:18:29.836457+00:00 | 2017-09-02T18:04:18 | 7a4421a32053ce1eb6f63d405182def49e2f9f20 | {
"blob_id": "7a4421a32053ce1eb6f63d405182def49e2f9f20",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-02T18:04:18",
"content_id": "cc293c6c7aa5736d62a4360f6a96a60d299513ba",
"detected_licenses": [
"MIT"
],
"directory_id": "30f7951ccb8d5e57324e2df1af307284d854861f",
"extension": "c"... | stackv2 | #include <math.h>
#include <stdio.h>
int main()
{
double x;
printf("Enter x: ");
if (!scanf("%lf", &x))
{
printf("Invalid value.\n");
return 1;
}
double eps;
printf("Enter eps: ");
if (!scanf("%lf", &eps))
{
printf("Invalid value.\n");
return 1;
}
double sum = 1;
int fact = 1;
doubl... | 3.4375 | 3 |
2024-11-19T00:11:03.967603+00:00 | 2023-06-01T07:27:12 | 4eabaf2559d57c2969efa629ef2cad1a286070c4 | {
"blob_id": "4eabaf2559d57c2969efa629ef2cad1a286070c4",
"branch_name": "refs/heads/main",
"committer_date": "2023-06-03T16:30:09",
"content_id": "34078600d9eaea8fe057fc92fb0315920cf603e8",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7aeaa1edebceae34cf66713981229b1441e03635",
"extensio... | stackv2 | /*
* Copyright 2014-2017 Katherine Flavel
*
* See LICENCE for the full copyright terms.
*/
#include <string.h>
#include <stddef.h>
#include <assert.h>
#include "../txt.h"
#include "pretty.h"
#include "node.h"
#include "list.h"
static int
bottom_loop(struct node **np)
{
struct node *n;
assert(np != NULL);
... | 2.578125 | 3 |
2024-11-19T00:11:04.174376+00:00 | 2023-06-09T04:08:38 | 57516ceb708f8914a96f98391bd17970c95ef7db | {
"blob_id": "57516ceb708f8914a96f98391bd17970c95ef7db",
"branch_name": "refs/heads/main",
"committer_date": "2023-06-09T06:59:05",
"content_id": "4bd9ed78177ccb709c854b6b5b73174e6ee0fd63",
"detected_licenses": [
"MIT"
],
"directory_id": "f8908906f2b10913a89638d9740c9bed3c47e090",
"extension": "c",
... | stackv2 | #include <stdio.h>
int main(int argc, const char **argv, const char **envp)
{
(void) argc;
(void) argv;
for (size_t i = 0; envp[i] != NULL; i++) {
printf("%s\n", envp[i]);
}
return 0;
}
| 2.21875 | 2 |
2024-11-19T00:11:04.276037+00:00 | 2023-03-26T15:40:23 | 6d8fb93bf6363d15f8d4190b3041eb48b9ba2ecb | {
"blob_id": "6d8fb93bf6363d15f8d4190b3041eb48b9ba2ecb",
"branch_name": "refs/heads/dev",
"committer_date": "2023-03-26T15:40:23",
"content_id": "cada1f162966ba5986ae5d2e152954e9a15b0ec4",
"detected_licenses": [
"MIT"
],
"directory_id": "dedae7f284ca271834d4289c3b03b5615cb9527a",
"extension": "c",
... | stackv2 | #include <stdlib.h>
#include "../readstat.h"
#include "test_buffer.h"
#include "test_buffer_io.h"
int rt_open_handler(const char *path, void *io_ctx) {
return 0;
}
int rt_close_handler(void *io_ctx) {
return 0;
}
readstat_off_t rt_seek_handler(readstat_off_t offset,
readstat_io_flags_t whence, void... | 2.34375 | 2 |
2024-11-19T00:11:04.385815+00:00 | 2023-07-29T21:54:06 | 45352650e5ca784d446ee7ce431733f2a853ec72 | {
"blob_id": "45352650e5ca784d446ee7ce431733f2a853ec72",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-29T21:54:06",
"content_id": "21045b48c7847b6d2e2dbac2344aed864fd7b54d",
"detected_licenses": [
"MIT"
],
"directory_id": "84e97d818876d20fab9591ff9d88129acfcc4295",
"extension": "c"... | stackv2 | /*
* gptimer_common.c
* Copyright (C) 2014 xent
* Project is distributed under the terms of the MIT License
*/
#include <halm/platform/lpc/gptimer_base.h>
#include <halm/platform/lpc/gptimer_defs.h>
#include <assert.h>
/*----------------------------------------------------------------------------*/
#define UNPACK_... | 2.484375 | 2 |
2024-11-19T00:11:05.524743+00:00 | 2015-11-16T09:39:42 | e00af770610bff13806290c4970a5d65f242b96a | {
"blob_id": "e00af770610bff13806290c4970a5d65f242b96a",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-16T09:39:42",
"content_id": "09ed33079f30871745edcc9fdf04ea2043ffda56",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e3b5a899c0c6683cd5440100ed2f1aa80ca94bf9",
"extens... | stackv2 | #ifndef __UTIL_H__
#define __UTIL_H__
#include <pthread.h>
#include <stdint.h>
#include "lmdb.h"
/** Posible states of a stream.
*
* @verbatim
* ---> Error <-----+
* ^ |
* | |
* ---> Init ----> Next --+-> End
* ^ |
* +-----------+
* @endver... | 2.671875 | 3 |
2024-11-19T00:11:05.600630+00:00 | 2021-10-26T19:15:25 | 97ebe0337f471c8de04d0da48ce91f48fae23527 | {
"blob_id": "97ebe0337f471c8de04d0da48ce91f48fae23527",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-26T19:15:25",
"content_id": "2f1ffd3e01a81ff3549e1be4838e4c61aeaab81e",
"detected_licenses": [
"MIT"
],
"directory_id": "1f163a44b0724d6254e07b8023730820a233a361",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
void uncalledFunction ()
{
printf("This line should not execute.");
}
void funct (int i)
{
if (0 == i || i == 1)
{
printf("Decision and Condition evaluated to TF.");
}
}
int main(int argc, char **argv)
{
int a = atoi(argv[1]); //should be 0
int b = atoi(argv[2]); //s... | 3.46875 | 3 |
2024-11-19T00:11:05.678314+00:00 | 2018-06-09T10:58:38 | ef66a7b9c088d7e15e6e28a366b9c6fd170e6d84 | {
"blob_id": "ef66a7b9c088d7e15e6e28a366b9c6fd170e6d84",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-09T10:58:38",
"content_id": "6abf6c137c05c4acb4c81c1368d2a8df3f99e295",
"detected_licenses": [
"MIT"
],
"directory_id": "03b39c11d9e73bf4aee483dcd05af3865ebd9998",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <ulib.h>
#include <malloc.h>
struct slot {
char data[4096];
struct slot *next;
};
int main(void)
{
int pid, exit_code;
if ((pid = fork()) == 0) {
struct slot *tmp, *head = NULL;
int n = 0, m = 0;
cprintf("I am child.\n");
cprintf("I am going to eat out all the mem, MU HA HA!!.\... | 2.78125 | 3 |
2024-11-19T00:11:06.109239+00:00 | 2023-08-04T13:08:55 | 2578064979bc3673f814e066e2b4c1ba0bf4fa13 | {
"blob_id": "2578064979bc3673f814e066e2b4c1ba0bf4fa13",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-04T13:08:55",
"content_id": "b4023f14f7ac304aa2b72d388a93e91fadadd08b",
"detected_licenses": [
"MIT"
],
"directory_id": "275af38f3b87e907d65b02fa351ddde714836451",
"extension": "c"... | stackv2 | /* This file is part of Lwt, released under the MIT license. See LICENSE.md for
details, or visit https://github.com/ocsigen/lwt/blob/master/LICENSE.md. */
#include "lwt_config.h"
#if !defined(LWT_ON_WINDOWS)
#include <caml/mlvalues.h>
#include <caml/socketaddr.h>
#include <caml/unixsupport.h>
#include <errno.h... | 2.25 | 2 |
2024-11-19T00:11:06.523397+00:00 | 2020-12-28T00:55:17 | d3ab58f239c54b43d124adccf0a1c1b33deb2769 | {
"blob_id": "d3ab58f239c54b43d124adccf0a1c1b33deb2769",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-28T00:55:17",
"content_id": "43d3bc7462ea188e367f79c0eed53a8d54edee95",
"detected_licenses": [
"MIT"
],
"directory_id": "3222a4a5464df9c1822a3aeb7c575b3bb6b6eb2b",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <string.h>
#include "longer.h"
void validateLongerStr(int * longestItemIndex, int itemsCount, char * items[]) {
int temporaryLongestItemIndex = 0;
long longestItemLength = 0;
for (int i = 1; i < itemsCount; i++)
{
if(strlen(items[i]) > longestItemLength) {
longestItemLengt... | 2.546875 | 3 |
2024-11-19T00:11:06.741582+00:00 | 2010-04-15T22:00:11 | 9bd16b498e5be83c1bc06683d22158c07bef83d0 | {
"blob_id": "9bd16b498e5be83c1bc06683d22158c07bef83d0",
"branch_name": "refs/heads/master",
"committer_date": "2010-04-15T22:00:11",
"content_id": "c3fa6c4e06c65811c8501bdf6426a0f8451eb4b2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3962899b0350c4ccdec015a555603f5a705bc698",
"extensio... | stackv2 | /*
* (c) Copyright 2008, IBM Corporation.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 2.140625 | 2 |
2024-11-19T00:11:06.909702+00:00 | 2022-05-31T05:38:00 | 2c0664d1bb098322c9cfc5b9f1be2be44193151c | {
"blob_id": "2c0664d1bb098322c9cfc5b9f1be2be44193151c",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-31T05:38:00",
"content_id": "c7b3bfb259dd83d7ae4c42d07f88c471a86eb759",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "728ab94180227ce9b6cfdc3bbdddfd76eb8a94a9",
"extens... | stackv2 | /* $Id$ */
/* Copyright (c) 2018 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS uKernel */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <kernel/drivers/console.h>
/* private */
/* variables */
static ukConsole * _console = NULL;
static char _console_buf[1024];
stat... | 2.625 | 3 |
2024-11-19T00:11:06.986451+00:00 | 2023-08-31T17:08:02 | f1e01b2939e838a10e9fd6859c8a4c0de0d1a668 | {
"blob_id": "f1e01b2939e838a10e9fd6859c8a4c0de0d1a668",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T17:08:02",
"content_id": "c2c390265ca3c0297aef72b7f72e82122b1f995f",
"detected_licenses": [
"MIT"
],
"directory_id": "cce9747d80ed880b97b509660a3c6a7f733dd1c0",
"extension": "c"... | stackv2 | //[?] 영문 대문자 A부터 Z까지의 문자 하나를 입력받아 소문자로 바꾸어 출력하는 프로그램
#include <stdio.h>
int main()
{
int c;
printf("영문 대문자 A부터 Z까지의 문자 하나를 입력: _\b");
c = getche();
printf("\n입력한 문자의 소문자: %c\n", tolower(c));
return 0;
}
| 3.671875 | 4 |
2024-11-19T00:11:07.328665+00:00 | 2023-03-13T06:44:50 | a2b78b711f7695938dcdde29d8983af9154ea039 | {
"blob_id": "a2b78b711f7695938dcdde29d8983af9154ea039",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-13T06:44:50",
"content_id": "1fdf74fdd2ea9e0ff9a4fe865e757812cb5804ac",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "d9d9fdc94e69f984b682305efddc1162e0401953"... | stackv2 | #ifndef KERNEL_SCHED_H_INCLUDED
#define KERNEL_SCHED_H_INCLUDED
#include <stdint.h>
#include <dev/resource.h>
#include <kernel/semaphore.h>
#include <kernel/svc.h>
/* Boolean field indicating whether or not the scheduler
* has begun task switching. */
extern volatile uint8_t task_switching;
/* Type used to refer to... | 2.65625 | 3 |
2024-11-19T00:11:07.853638+00:00 | 2013-08-15T14:45:20 | d50f105c26128223661ac09a7bcd2baa79117edd | {
"blob_id": "d50f105c26128223661ac09a7bcd2baa79117edd",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-15T14:45:20",
"content_id": "9bffd9be260c54e925259f56070dd220cef4bfd0",
"detected_licenses": [],
"directory_id": "8cadc8215e585deb3422237caf832a248d323dcc",
"extension": "c",
"filename... | stackv2 | /*
* getopt replacement
*
* Tommy van Leeuwen <tommy@chiparus.org>
* 2004 March, 6th First Version, written because some OS'es lack getopt
*
* Create an array like this:
*
* struct option opts[] = {
* { "help", 0, NULL, 'h', 0 },
* { "config", 1, NULL, 'c', 0 },
* // Leave this last line
* { NULL, 0, NUL... | 3.109375 | 3 |
2024-11-19T00:11:08.198115+00:00 | 2015-12-05T21:07:46 | 6bb4042aa55b46ffcf8c901f51d51e9cfbce0f1b | {
"blob_id": "6bb4042aa55b46ffcf8c901f51d51e9cfbce0f1b",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-05T21:07:46",
"content_id": "a582083d6206b811c74ab5dc071963692760bbbb",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ab10f438d84f52c6808cde2e4e6468604c7ded82",
"extens... | stackv2 | #include "io.h"
// Inicializa el timer y establece el período entre
// interrupciones en milisegundos.
// Codigo extraido de mtask version 24
void pit_setup(uint32_t msecs) {
uint32_t count = 1193182 * msecs;
count /= 1000;
outb(0x43, 0x36);
outb(0x40, count);
outb(0x40, count >> 8);
}
| 2.234375 | 2 |
2024-11-19T00:11:08.821308+00:00 | 2016-11-28T06:28:55 | aa662f46712e5c1fb53b01257674d2b2c4d19e0c | {
"blob_id": "aa662f46712e5c1fb53b01257674d2b2c4d19e0c",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-28T06:28:55",
"content_id": "ba8d5e9fa896914cdfd01910cf92f95b0f95ec65",
"detected_licenses": [
"MIT"
],
"directory_id": "775765545e428c94a07b27c6bb6f85129fea1345",
"extension": "c"... | stackv2 | /*
* Alpha-ftp
* by: Allen Garvey
* usage: aftp-server <port>
* server based on: http://www.cs.cmu.edu/afs/cs/academic/class/15213-f99/www/class26/tcpserver.c
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#incl... | 2.390625 | 2 |
2024-11-19T00:11:09.189438+00:00 | 2017-01-13T05:26:59 | 020e67a5c0a28750142e1c523a94d82e29a1e646 | {
"blob_id": "020e67a5c0a28750142e1c523a94d82e29a1e646",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-13T05:26:59",
"content_id": "ac106afbbe9e4d278d1430cf6923b90cdb9880a0",
"detected_licenses": [
"MIT"
],
"directory_id": "a10598f198797060210f586780a91bd6dd920ab0",
"extension": "c"... | stackv2 | //
// Copyright 2017 Garrett D'Amore <garrett@damore.org>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
// file was obtained (LICENSE.txt). A copy of the license may also be
// found online at https://opensource.org/licenses/MIT.... | 2.359375 | 2 |
2024-11-19T00:11:09.255863+00:00 | 2018-08-09T14:09:17 | a03732bdfb77fda6597bcc9a1c27ed9a6a3f2204 | {
"blob_id": "a03732bdfb77fda6597bcc9a1c27ed9a6a3f2204",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-09T14:09:17",
"content_id": "1603a0f66b32ea55fd69af68d7c58c4cb32834ae",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6f8d42f598fc7a5b89039395dbf4ff475653f3d6",
"extens... | stackv2 |
#include <Python.h> // Include first to avoid redef problems
#define OC_NEW_STYLE_INCLUDES
#include "ocval.h"
#include "arraydisposition.h"
////////////////////////////////////////////////////////////////////
// OCPyDumpContext: Needed to get the proxies and markers right
//
// Info needed to get the shape of the ... | 2.1875 | 2 |
2024-11-19T00:11:09.343648+00:00 | 2013-12-12T22:18:10 | d93eb91aa2448fe3656eb8fc5a4ee1b63a2da8ec | {
"blob_id": "d93eb91aa2448fe3656eb8fc5a4ee1b63a2da8ec",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-12T22:18:10",
"content_id": "4dddbc4883c45acf7863056b8e30592cbe310770",
"detected_licenses": [
"MIT"
],
"directory_id": "22101ced0fe7722663a0dc1dbfca8814e520dad3",
"extension": "c"... | stackv2 |
//
// main.c
//
// Copyright (c) 2013 Stephen Mathieson
// MIT licensed
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "wiki-registry.h"
#include "case.h"
#include "commander.h"
#include "clib-search.h"
#include "strsplit.h"
filter_t filter;
/**
* Check if the given `pkg` matches any `args`... | 2.375 | 2 |
2024-11-19T00:11:09.489268+00:00 | 2020-05-13T19:40:59 | ffd46658b23325640dea7b1668a437dc737fb7d2 | {
"blob_id": "ffd46658b23325640dea7b1668a437dc737fb7d2",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-13T19:40:59",
"content_id": "86611eeab67d99edce03a9f77cdb88113300525b",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "2657ca12a04b1d025b2fb914d522bef0... | stackv2 | #include <theft/theft.h>
#include <theft/theft_mt.h>
#include <stdlib.h>
#include <string.h>
#ifndef UGC_IMPLEMENTATION
#define UGC_IMPLEMENTATION
#endif
#include "ugc.h"
typedef struct gc_obj_s gc_obj_t;
typedef struct gc_ref_info_s gc_ref_info_t;
enum gc_op_type_e
{
GC_ALLOC,
GC_SET_REF_BACKWARD,
GC_SET_REF_FORW... | 2.40625 | 2 |
2024-11-19T00:11:09.588040+00:00 | 2014-10-24T14:18:47 | 5edbf1cefe3d8c437d7ce0d1a1e8e947d3886403 | {
"blob_id": "5edbf1cefe3d8c437d7ce0d1a1e8e947d3886403",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-24T14:18:47",
"content_id": "4cb088a23207e5cfbae8609f2285e39055e89665",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "830d19615851513ca8b563e2653e8a0d3a1d4074",
"extens... | stackv2 | #include "stdio_impl.h"
#include <termios.h>
#include <sys/ioctl.h>
#include <osv/debug.h>
extern int vfs_initialized;
size_t __stdout_write(FILE *f, const unsigned char *buf, size_t len)
{
struct termios tio;
// We can only use __stdio_write, which uses file descriptor 1,
// after vfs_init() opens this file desc... | 2.296875 | 2 |
2024-11-19T00:58:13.580495+00:00 | 2022-04-02T14:01:00 | fec0ca1cec6e7a7fd5b574d536079d800542392c | {
"blob_id": "fec0ca1cec6e7a7fd5b574d536079d800542392c",
"branch_name": "refs/heads/master",
"committer_date": "2022-04-02T14:01:00",
"content_id": "e774b1e9a2ee20ad7c56a4c8ed102a1f1bdd1d09",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "edcb22d7b1192881e888d55301205ac1dd1c94fd",
"extensio... | stackv2 | /* testHRT() */
/* Rip_HRT() */
/* Depack_HRT() */
#include "globals.h"
#include "extern.h"
int16_t testHRT ( void )
{
/* test 1 */
if ( PW_i < 1080 )
{
return BAD;
}
/* test 2 */
PW_Start_Address = PW_i-1080;
for ( PW_j=0 ; PW_j<31 ; PW_j++ )
{
if ( in_data[45+PW_j*30+PW_Start_Address] > 0... | 2.3125 | 2 |
2024-11-19T00:58:13.863615+00:00 | 2021-09-15T01:18:51 | 4d477c280cb0ee60629387a53db4f9e5dde4b60d | {
"blob_id": "4d477c280cb0ee60629387a53db4f9e5dde4b60d",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-15T01:18:51",
"content_id": "de5d0a03418882ffc55ca4bf37e0c6f309974579",
"detected_licenses": [
"MIT"
],
"directory_id": "80ddd5b88806820ba4cbeb0cee40c5220799e49c",
"extension": "h"... | stackv2 | /**
@file osal_json_indexer.h
@brief Access compressed binary JSON data.
@author Pekka Lehtikoski
@version 1.0
@date 26.4.2021
Copyright 2020 Pekka Lehtikoski. This file is part of the eosal and shall only be used,
modified, and distributed under the terms of the project licensing. By continuin... | 2.265625 | 2 |
2024-11-19T00:58:14.101256+00:00 | 2023-08-24T21:07:19 | 44dbe8f3212f5ad9c97fcb2cd856e19dc6f06f8d | {
"blob_id": "44dbe8f3212f5ad9c97fcb2cd856e19dc6f06f8d",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-24T21:19:33",
"content_id": "9073a71e36accc1e16552a6529830375065d07af",
"detected_licenses": [
"MIT"
],
"directory_id": "de07f50fe5bacfc0ba1b0d3f73df8552cad74155",
"extension": "c"... | stackv2 | #include <x86intrin.h>
#include <stdio.h>
#include <inttypes.h>
#define WARMUP 100
#define TRIALS (1000 /* >100 for normal distribution approximation, odd for median*/|1)
#define COOLDOWN 10
#define LAPS (WARMUP+TRIALS+COOLDOWN)
#include "testdata.c"
void upstr(uintptr_t bufaddr, uintptr_t len);
int main(int argc, ... | 2.375 | 2 |
2024-11-19T00:58:14.163859+00:00 | 2020-12-08T02:03:17 | 2bb678c0538c50f9455b172abeb717d5503f9900 | {
"blob_id": "2bb678c0538c50f9455b172abeb717d5503f9900",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-08T02:03:17",
"content_id": "4c3ee6466a984834904ee4e9044fc6a160a85e47",
"detected_licenses": [
"MIT"
],
"directory_id": "82acd1583eebc8f306cd16574a9fbf04718836c2",
"extension": "h",
... | stackv2 | #ifndef XWC
#define XWC
#include "xwc.h"
#endif
typedef enum {PONTO,RETA,ARCO,CIRC,POLIGONO,SEGMENTO} TIPO_OBJ;
typedef struct _OBJETO * ap_objeto;
struct _OBJETO
{
TIPO_OBJ tipo;
double Ox,
Oy;
int id,
cor;
void *descr;
ap_objeto prox;
};
typedef struct _RETA * ap_reta;
struct _RETA
{
d... | 2.15625 | 2 |
2024-11-19T00:58:14.550642+00:00 | 2023-08-07T19:18:32 | a9dc3d81c02c0320c010b27eb06e9d7754d69b01 | {
"blob_id": "a9dc3d81c02c0320c010b27eb06e9d7754d69b01",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T19:18:32",
"content_id": "8bbc7cadb29e24e128120e9ab32262ad0a81862f",
"detected_licenses": [
"curl",
"Apache-2.0"
],
"directory_id": "e1d9c54e9925e30e388a255b53a93cccad0b94cb",... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "v1_csi_driver.h"
v1_csi_driver_t *v1_csi_driver_create(
char *api_version,
char *kind,
v1_object_meta_t *metadata,
v1_csi_driver_spec_t *spec
) {
v1_csi_driver_t *v1_csi_driver_local_var = malloc(sizeof(v1_csi_driver_t));
... | 2.34375 | 2 |
2024-11-19T00:58:14.655989+00:00 | 2015-01-11T16:28:49 | 346e4a18fb487022b8e72998587928e977e021be | {
"blob_id": "346e4a18fb487022b8e72998587928e977e021be",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-11T16:28:49",
"content_id": "5965ef2af0fecf95cb74019c3fa2d529fb2df18b",
"detected_licenses": [
"Unlicense"
],
"directory_id": "19d84f1c42a86426a6c9e872017c6a0b15d2f81f",
"extension... | stackv2 |
// what a hack, I'm sure there's a better way, but I still hate dns
short int _ts_ljump(unsigned char *ptr)
{
short int i = 0;
unsigned char j = 0xc0;
j ^= ptr[0];
((unsigned char*)&i)[0] = j;
((unsigned char*)&i)[1] = ptr[1];
return i;
}
void _ts_lcopy(unsigned char *a, unsigned char *label, ... | 2.625 | 3 |
2024-11-18T23:55:16.436313+00:00 | 2019-10-04T03:56:27 | ec0ec71b7e38212cd46664782ec9c359d67faade | {
"blob_id": "ec0ec71b7e38212cd46664782ec9c359d67faade",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-04T03:56:27",
"content_id": "977f7967d103e5bfa7a33ba400fbee30ed07b3c7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7958ba70a603c0af7ae933f50416cb002c9de51b",
"extensio... | stackv2 | #ifndef __RTGUI_XML_H__
#define __RTGUI_XML_H__
#include <rtgui/rtgui.h>
/* Types of events: start element, end element, text, attr name, attr
val and start/end document. Other events can be ignored! */
enum
{
EVENT_START = 0, /* Start tag */
EVENT_END, /* End tag */
EVENT_TEXT, /* Text */
... | 2.140625 | 2 |
2024-11-18T23:55:16.904703+00:00 | 2018-08-12T07:13:23 | 42633a08492f8aa8dc95f3843d4977d5ff302c3a | {
"blob_id": "42633a08492f8aa8dc95f3843d4977d5ff302c3a",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-12T07:13:23",
"content_id": "f86178b6c03d78f5f4ec1e764cdb2ddabbeacdb1",
"detected_licenses": [
"MIT"
],
"directory_id": "9ea402e9a7f478e8e97ca7f4bae0f4a41ab96438",
"extension": "c"... | stackv2 | #include <hiredis/hiredis.h>
#include <openssl/sha.h>
#include "uthash.h"
#include "trace.h"
#include "stats.h"
#include "update_redis.h"
#include "update_csv.h"
#include "subscriber_db.h"
#include "utils.h"
static void set_to_db_internal(ThreadData* td, const char* ip, const char* name)
{
struct ip_to_name_entry... | 2.21875 | 2 |
2024-11-18T23:55:17.282210+00:00 | 2020-08-10T07:33:18 | 58cf480ca523d01318acff40504dcef26b140cc3 | {
"blob_id": "58cf480ca523d01318acff40504dcef26b140cc3",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-10T07:33:18",
"content_id": "864e0484ce85cc00d89135e6c81b713ce3bf797d",
"detected_licenses": [
"MIT"
],
"directory_id": "46ab8a0e6adce4eec8a23596f4f38662bee9f370",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#define STB_IMAGE_IMPLEMENTATION
#include "wsq.h"
#include "stb_image.h"
int debug =1;
int main(void) {
int width,height,channels;
unsigned char *img = stbi_load("rp2.jpg",&width,&height,&channels,0);
unsigned char *gray_img=(unsigned char *)malloc(640 * 480 * sizeof... | 2.375 | 2 |
2024-11-18T23:55:18.180078+00:00 | 2021-10-31T11:50:42 | 1d9e6d858aa53145da154b4018eb42e3e2def1d3 | {
"blob_id": "1d9e6d858aa53145da154b4018eb42e3e2def1d3",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-31T11:50:42",
"content_id": "ddca4a43dcdbd26e9dac563b0d678c2a7242da27",
"detected_licenses": [
"MIT"
],
"directory_id": "7df786d1b34921eb56c48ee0d61f32faf7ef8590",
"extension": "c",
... | stackv2 | #include <dummy_data.h>
#include <malloc.h>
#include <inttypes.h>
uint8_t *get_numbers(int len) {
uint8_t *data = malloc(len);
for (int i = 0; i < len; i++) {
data[i] = i*i;
}
return data;
}
void free_numbers(uint8_t *data) {
free(data);
}
| 2.6875 | 3 |
2024-11-18T23:55:18.439890+00:00 | 2020-09-29T07:24:59 | 24fca40bfd666e7ddf146d2bc397c0765470f11e | {
"blob_id": "24fca40bfd666e7ddf146d2bc397c0765470f11e",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-29T07:24:59",
"content_id": "ad097e4da991e9079d744fc01ec78d631e9a7d6c",
"detected_licenses": [
"MIT"
],
"directory_id": "e390b951f62c9facd316fce245137994af754445",
"extension": "c"... | stackv2 | /*
* protocol8086.c
*
* Created: 2020-09-23 오전 10:34:47
* Author: Jinsan Kwon
*/
#include "protocol8086.h"
#include <stdint.h>
#include <stddef.h>
#include "definitions.h"
#define _ROLE PWR_MONITOR
static enum UART_STATE uartState;
static void (*parseDoneCallBack)(uint8_t data1, uint8_t data2, uint8_t data3... | 2.0625 | 2 |
2024-11-18T23:55:18.800286+00:00 | 2021-10-03T02:26:06 | 07ef9e938eaa198f3d5b54bc0babec900b7dad90 | {
"blob_id": "07ef9e938eaa198f3d5b54bc0babec900b7dad90",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-03T02:45:04",
"content_id": "fdc90fa97fc0e60b02e54ce1f1bad610ce5d2475",
"detected_licenses": [
"MIT"
],
"directory_id": "470d1134598477fb2e5878860de93cf5ab249851",
"extension": "c"... | stackv2 | #include <calendon/test.h>
#include <calendon/utf8.h>
#include <stdlib.h>
#include <stdio.h>
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpointer-sign"
#endif
CN_TEST_SUITE_BEGIN("UTF-8")
CN_TEST_UNIT("Bytes in UTF-8 code point") {
CN_TEST_ASSERT_EQ_U8(cnUtf8_NumByt... | 2.53125 | 3 |
2024-11-18T23:55:19.063295+00:00 | 2023-08-26T22:47:22 | 3bec0e39ec283f8c2fc3e912be4f8bbf1db0550f | {
"blob_id": "3bec0e39ec283f8c2fc3e912be4f8bbf1db0550f",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-26T22:47:22",
"content_id": "21a9b2237d4dfe5f12dd47ae0df7fbedf0732a24",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "97897b9c2031e06969b796bdda7dfda0... | stackv2 | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "daemonize.h"
#include "warnp.h"
int
main(int argc, char * argv[])
{
const char * pidfile;
/*
* This will allocate some memory for the program name, which will be
* freed by an atexit() function. The non-daemonized fork of... | 2.65625 | 3 |
2024-11-18T23:55:19.129879+00:00 | 2018-02-05T12:42:10 | b196df7d7c7528b79732f71b98696b39c3dd01c7 | {
"blob_id": "b196df7d7c7528b79732f71b98696b39c3dd01c7",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-05T12:42:10",
"content_id": "a8a70ca2f40887b2b1d28c7640c7aacc294eee63",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b88667e73756b6ead29489ab9b7e4cb2e6edf7d3",
"extensio... | stackv2 | /*
Project present like RTree
Created by Vladimir Nedved 2017
Apache License 2.0
file unimem.h
*/
#pragma once
#include "stdlib.h"
#include "malloc.h"
#include "memory.h"
#ifdef _WIN
inline void* aligned_alloc(size_t alignment, size_t size) {
return _aligned_malloc(size, alignment);
}
#else
inline void _aligned... | 2.453125 | 2 |
2024-11-18T23:55:19.571476+00:00 | 2019-10-04T03:33:53 | 252defd70d1f83a1d066e0bcc9c589287ef8db75 | {
"blob_id": "252defd70d1f83a1d066e0bcc9c589287ef8db75",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-04T03:33:53",
"content_id": "74aaa73935813e66bfcee2a39e20130bfebefaaa",
"detected_licenses": [
"MIT"
],
"directory_id": "f7210e9ea3eaf7f0da64c0343a74550b8b80e0ea",
"extension": "c"... | stackv2 | #include "SPI.h"
// REQUIRES: Nothing.
// PROMISES: Configure SPI peripheral with RC2 = SCLK, RC3 = MISO, RC4 = MOSI
// Configure pin RC7 as digital output (CS for SD Card)
// Configure SPI Baud Rate to Fosc / 4
void SPI_Init(void) {
//Configure Pin C2 as Serial Clock
TRISC2 = 0; //... | 2.75 | 3 |
2024-11-18T23:55:20.065493+00:00 | 2014-01-02T06:15:12 | f97adab85f3699db9c38db390274b3007ffde43c | {
"blob_id": "f97adab85f3699db9c38db390274b3007ffde43c",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-02T06:15:12",
"content_id": "b268aac13677a8a4a1e19bd923d1a3ba8c70cb22",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "712e2c48c07f3343cd307b9ee06b1e5f4aab3f1b",
"extens... | stackv2 | /*============================================================================
gossimon - Gossip based resource usage monitoring for Linux clusters
Copyright 2003-2010 Amnon Barak
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software i... | 2.21875 | 2 |
2024-11-18T23:55:21.516528+00:00 | 2016-04-11T23:12:38 | be254fbe5d3e2f11a99393b216d1c147af609e43 | {
"blob_id": "be254fbe5d3e2f11a99393b216d1c147af609e43",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-11T23:12:38",
"content_id": "c2b4e607a122acc59267d8f96e44016366c88b28",
"detected_licenses": [
"MIT"
],
"directory_id": "a32206770d4a09916f717bd2ee7533a63341f55a",
"extension": "c"... | stackv2 | /*
Basado en https://github.com/todbot/arduino-serial/blob/master/arduino-serial-lib.c
*/
#include "comn_serial.h"
#include <sys/types.h> //pthread(aux)
#include <stdio.h> //printf, perror
#include <unistd.h> // UNIX standard function definitions
#include <fcntl.h> // File control definitions
#include <stdlib.h> //exit... | 2.53125 | 3 |
2024-11-18T23:55:21.604378+00:00 | 2016-04-05T14:24:30 | 103b4573872fcfbb652f8d67c9f535b6a5cccf4c | {
"blob_id": "103b4573872fcfbb652f8d67c9f535b6a5cccf4c",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-05T14:24:30",
"content_id": "3aaea67efd4275885bbefe6cab1f763e6ed042c6",
"detected_licenses": [
"MIT"
],
"directory_id": "ebcc1b847d3051853d7720101a92c4bbdc944147",
"extension": "c"... | stackv2 | //
// bluetooth_layer.c
// pebble-watchface-months
//
// Created by Programus on 15/7/1.
//
//
#include "bluetooth_layer.h"
#include "const.h"
#define MARGIN 1
#define SPACING_X 1
#define SPACING_Y 0
static Layer* s_layer = NULL;
static GBitmap* s_bitmap_bluetooth = NULL;
static GBitmap* s_b... | 2.25 | 2 |
2024-11-18T23:55:22.235125+00:00 | 2019-08-18T03:37:57 | 9b177b6563219f52ea713b8221bd6d8b4594cbd1 | {
"blob_id": "9b177b6563219f52ea713b8221bd6d8b4594cbd1",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-18T03:37:57",
"content_id": "d3c668fa8a4c8741d8a90516743569f2dd7c1d6f",
"detected_licenses": [
"MIT"
],
"directory_id": "bdf458c68147bd12a2dff20c4c649d98200f43a5",
"extension": "h"... | stackv2 | //
// Created by Chane William on 2019-08-16.
//
#ifndef RAILWAY_OTHER_METHOD_H
#define RAILWAY_OTHER_METHOD_H
#endif //RAILWAY_OTHER_METHOD_H
struct NowDate
{
char tmp0[16]; //年月日
};
//日期差-天数
int day_diff(char nowdate[20],char urdate[20])
{
char cmonth_start[20] , cday_start[20], cmonth_end[20], cday_end[2... | 2.828125 | 3 |
2024-11-18T23:55:22.283116+00:00 | 2019-03-27T15:17:00 | 69849960faf22efa21014281367f1baf3376ca79 | {
"blob_id": "69849960faf22efa21014281367f1baf3376ca79",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-27T15:17:00",
"content_id": "6aacf80947d8fc653bb138b8e976ed0fd334d26e",
"detected_licenses": [
"NCSA"
],
"directory_id": "5dbeb30ee02bf7ecaea9365cede69df3a1fcab8f",
"extension": "c... | stackv2 | // RUN: %llvmgcc %s -emit-llvm -g -c -o %t1.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out --exit-on-error %t1.bc | FileCheck %s
#include <klee/klee.h>
#include <stdio.h>
int main() {
int x = 3;
klee_possibly_havoc(&x, sizeof(x), "x");
while(klee_induce_invariants() & --x) {
printf("in... | 2.203125 | 2 |
2024-11-18T23:55:22.575217+00:00 | 2023-05-26T02:59:52 | 3591856d14dd9089dff057a8b551a85baf82e56d | {
"blob_id": "3591856d14dd9089dff057a8b551a85baf82e56d",
"branch_name": "refs/heads/dev",
"committer_date": "2023-05-26T02:59:52",
"content_id": "73281b5dfc74ab27d82b425441136487b829840d",
"detected_licenses": [],
"directory_id": "ca414d0345d2d1486da1126960a164a655965968",
"extension": "h",
"filename": ... | stackv2 | #ifndef IDT_H
#define IDT_H
#include <stdint.h>
/* Segment selectors */
#define KERNEL_CS 0x08
#define KERNEL_DS 0x10
#define USER_CS 27
#define USER_DS 0x20
/* How every interrupt gate (handler) is defined */
typedef struct {
uint16_t low_offset;
uint16_t selector;
uint8_t ist;
uint8_t type;
uint... | 2.15625 | 2 |
2024-11-18T23:55:22.654074+00:00 | 2020-09-11T00:16:48 | d1e59b41bd69671250f7918f726d6337cf56f074 | {
"blob_id": "d1e59b41bd69671250f7918f726d6337cf56f074",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-11T00:24:52",
"content_id": "ea097d1e0df0407db93dbf53b9c75a9bb56675b1",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause-Patent"
],
"directory_id": "b8f4b32171bba9e60a101f5a6... | stackv2 | /** @file
Header file for GPIO Helpers Lib implementation.
Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _GPIO_HELPERS_LIB_H_
#define _GPIO_HELPERS_LIB_H_
#include <GpioConfig.h>
/**
This procedure stores GPIO pad unlock infor... | 2.296875 | 2 |
2024-11-18T23:55:23.023307+00:00 | 2012-05-08T20:38:53 | f4ee7a07df4e488b50355f58dce38dd3a453bce6 | {
"blob_id": "f4ee7a07df4e488b50355f58dce38dd3a453bce6",
"branch_name": "refs/heads/master",
"committer_date": "2012-05-08T20:38:53",
"content_id": "39f4abaee045b30fae2fab930f83b3b7f3947fc4",
"detected_licenses": [
"MIT"
],
"directory_id": "6c1102ee0a12e60fd273d2f53f6da0b2a7fb43f5",
"extension": "c"... | stackv2 | #include "aco.h"
// Elf hash implementation for round robin (pseudo-randomish)
int hash_round_robin(int a, int b) {
int key[] = {a, b};
unsigned char *p = (unsigned char*)key;
unsigned h = 0, g;
int i;
for (i = 0; i < sizeof(int)*2; i++) {
h = (h << 4) + p[i];
g = h & 0xf0000000L;
if (g != 0)
... | 2.625 | 3 |
2024-11-18T23:55:23.102532+00:00 | 2023-06-11T12:21:01 | c74f3741394a090ae73d4acf729044c5b919c99f | {
"blob_id": "c74f3741394a090ae73d4acf729044c5b919c99f",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-11T12:21:01",
"content_id": "47d9dead0ad02e7bee1e29f362ff2596b1aee346",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "faaf0bc6c829a453e8b0dc2a01c5e225e872d6c1",
"extensio... | stackv2 | /**********************************************************************
*
* PostGIS - Spatial Types for PostgreSQL
* http://postgis.net
*
* Copyright (C) 2001-2006 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU General Public Licence. See ... | 2.390625 | 2 |
2024-11-18T23:55:23.618749+00:00 | 2017-02-26T15:27:53 | a79254fc89721b7833d2c4d4a6817dfa69060202 | {
"blob_id": "a79254fc89721b7833d2c4d4a6817dfa69060202",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-26T15:27:53",
"content_id": "9134f4750df5294fddcd760151f9c1f8c2842e3c",
"detected_licenses": [
"MIT"
],
"directory_id": "e9fb3905a6baa65cd3765d0d6d18ebe3d2b07934",
"extension": "h"... | stackv2 | /*
* Summary: the core parser module
* Description: Interfaces, constants and types related to the XML parser
*
* Copy: See Copyright for the status of this software.
*
* Author: Daniel Veillard
*/
#ifndef __XML_PARSER_H__
#define __XML_PARSER_H__
#include <stdarg.h>
//#include <libxml/xmlversion.h>
#include ... | 2.125 | 2 |
2024-11-18T23:55:23.720374+00:00 | 2018-01-28T14:52:53 | 67396431b3215e2687c514abc65b821c270e4223 | {
"blob_id": "67396431b3215e2687c514abc65b821c270e4223",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-28T14:52:53",
"content_id": "55000cad35518703a6b1bc8479147fee311b63b5",
"detected_licenses": [
"MIT"
],
"directory_id": "5569ce63ba10d30d5c880be1abc1c9815c0cdc83",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include "catena.h"
#include "hash.h"
#include "catena-helpers.h"
// Default values for Catena-Butterfly
#ifdef FAST
const uint8_t VERSION_ID[] = "Butterfly";
#else
const uint8_t VERSION_ID[] = "Butterfly-Full";
#endif
const uint8_t LAMBDA = 4;
const uint8_t GARLIC = 16;
con... | 2.53125 | 3 |
2024-11-18T23:55:23.864725+00:00 | 2021-03-23T01:28:40 | fa525a1f81e732fcf8b1e9b5209d5bbd664185e0 | {
"blob_id": "fa525a1f81e732fcf8b1e9b5209d5bbd664185e0",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-23T01:28:40",
"content_id": "b6f1d05134dcbee12b74a8903aa7778ea4b3095c",
"detected_licenses": [
"MIT"
],
"directory_id": "359d390c73abdf22ef9c9dd3f4f9db997d91480f",
"extension": "c",
... | stackv2 | #include <stdio.h>
/* Only change any of these 4 values */
#define V0 1
#define V1 3
#define V2 0
#define V3 3
int main(void) {
int a;
char *s;
/* This is a print statement. Notice the little 'f' at the end!
* It might be worthwhile to look up how printf works for your future
* debugging needs.... | 3.34375 | 3 |
2024-11-18T23:55:24.066769+00:00 | 2023-08-07T20:22:46 | a3dda3f66cc10bdc88f28e0443f20c799b3a7f1a | {
"blob_id": "a3dda3f66cc10bdc88f28e0443f20c799b3a7f1a",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-07T20:22:46",
"content_id": "dcc51c88e1017ff18f8ce9e622ca7f3268fb8cd0",
"detected_licenses": [
"Zlib"
],
"directory_id": "d9ea45dbc964799991b9191ae620d2f150652a3d",
"extension": "h",... | stackv2 | #include <kinc/graphics4/constantlocation.h>
#include <kinc/graphics5/constantlocation.h>
#include <kinc/graphics5/pipeline.h>
#include <kinc/log.h>
#include <kinc/system.h>
#include <string.h>
void kinc_g4_pipeline_get_constant_locations(kinc_g4_pipeline_t *state, kinc_g4_constant_location_t *vertex_locations,
... | 2.203125 | 2 |
2024-11-18T23:55:24.343374+00:00 | 2021-08-29T16:40:53 | 60d4fbad0e6ba19cf69fe82ec5b5854486e0b0a9 | {
"blob_id": "60d4fbad0e6ba19cf69fe82ec5b5854486e0b0a9",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-29T16:40:53",
"content_id": "4bd2c73373b06c08b785a77969e325917914928b",
"detected_licenses": [
"MIT"
],
"directory_id": "6452ef50e087f8ddd7bf8af6e8e98fe679d4e650",
"extension": "h"... | stackv2 | /**
* @file vect.h
* @author Valerio Bellizia
*
* This file contains the interface to be used with ds_vect. It implements
* a vector using an underlying array that will be resized at needs.
*/
#ifndef vect_h
#define vect_h
#include "result.h"
#include "defs.h"
#include <stddef.h>
/**
* This is an opaque str... | 3.15625 | 3 |
2024-11-18T23:55:25.209726+00:00 | 2012-02-13T20:23:06 | 70fb50fd48aaa3cccc3ffabf14cc876d4a3c0306 | {
"blob_id": "70fb50fd48aaa3cccc3ffabf14cc876d4a3c0306",
"branch_name": "refs/heads/master",
"committer_date": "2012-02-13T20:23:06",
"content_id": "677d375e6d6fec53ee8ff0064870dcc50abc0f72",
"detected_licenses": [
"ISC"
],
"directory_id": "5bf64d597ce9eba65a664bb3c3b8860e5c7c189a",
"extension": "c"... | stackv2 | #include "krad_opus.h"
void kradopus_decoder_destroy(krad_opus_t *kradopus) {
int c;
for (c = 0; c < kradopus->channels; c++) {
krad_ringbuffer_free ( kradopus->ringbuf[c] );
printf("Ringbuffer unlocked and freed (opus)\n");
krad_ringbuffer_free ( kradopus->resampled_ringbuf[c] );
printf("Ringbuffer unlo... | 2.40625 | 2 |
2024-11-18T23:55:25.331295+00:00 | 2018-10-13T18:45:56 | 74ee82e821f4cf360d763029250ade2722995647 | {
"blob_id": "74ee82e821f4cf360d763029250ade2722995647",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-13T18:45:56",
"content_id": "1b4ebe5135a210036a8bba84fc6ad31569dfec15",
"detected_licenses": [
"MIT"
],
"directory_id": "c87095bd13b9080224324b3a6dd4fd538912d97e",
"extension": "c"... | stackv2 | // Done by TheTutor
/*
The Bubble Sort is just one of many methods out there to "sort lists of data". It is
certainly NOT the fastest method, but it's pretty simple to implement and if you don't need
a blazing fast sort routine, it will get the job done.
The Bubble Sort works like this:
1) First you have to ... | 3.8125 | 4 |
2024-11-18T23:55:25.434641+00:00 | 2021-07-12T00:28:11 | 231b2b48bb4e2dddd6950648d8bee356d16acebd | {
"blob_id": "231b2b48bb4e2dddd6950648d8bee356d16acebd",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-12T00:28:11",
"content_id": "31e2d053c609d76a271d7be9cdc2cac387e3bfa6",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "040d01eeb32cd0839b4cc68aa0201b1f40d99ff6"... | stackv2 | /* COPYRIGHT (c) 2008 by Lattice Semiconductor Corporation
*
* All rights reserved. All use of this software and documentation is
* subject to the License Agreement located in the file LICENSE.
*/
/** @file Ioctl.h
* Definition of the interface between the kernel driver and user space.
* All legal IOCTL calls a... | 2.0625 | 2 |
2024-11-18T23:55:26.673498+00:00 | 2018-05-23T00:20:40 | 37d3d8bdae0cbc2320b305bf42bd1c68b474bfec | {
"blob_id": "37d3d8bdae0cbc2320b305bf42bd1c68b474bfec",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T00:20:40",
"content_id": "624c98099f35cbfb559b3abd1f2e7604d90a2c2b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7828597258bd3e16cf3243762100b465ef61704c",
"extens... | stackv2 | #include "fdevent.h"
#include "buffer.h"
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <limits.h>
#include <fcntl.h>
#ifdef USE_LINUX_SIGIO
static void fdevent_linux_rtsig_free(fdevents *ev) {
free(ev->pollfds);... | 2.546875 | 3 |
2024-11-18T23:55:26.817736+00:00 | 2017-10-04T04:43:28 | 242db2c0d29cb3b074d3a7d031f26a05103cf418 | {
"blob_id": "242db2c0d29cb3b074d3a7d031f26a05103cf418",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-04T04:43:28",
"content_id": "de9b05fbce7ae96f5cc1254f67e77e5843f06935",
"detected_licenses": [
"MIT"
],
"directory_id": "e8a69c0576332ca5bf64a971f8e622d0a718fa94",
"extension": "c"... | stackv2 | #define ZLXOPT_ENABLE_ASSERT
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
#include "../include/zlx/assert.h"
#include "../include/zlx/obstream/buffer.h"
#include "../include/zlx/obstream/nop.h"
#include "soft_abort.h"
int x = 40;
int y = 2;
int assert_pass_test (void)
{
ZLX_ASSE... | 2.234375 | 2 |
2024-11-18T23:55:27.171144+00:00 | 2017-08-07T20:50:07 | 4fc922320c91ae244cd00d34ef28e3d9b7882082 | {
"blob_id": "4fc922320c91ae244cd00d34ef28e3d9b7882082",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-07T20:50:07",
"content_id": "fc5b161de1e9ff11a5cbbf90aa61684425a8562b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "828873f66cd167083693892f3fb919e7af4b1af8",
"extens... | stackv2 | /*
* Copyright 2012, Google Inc.
* 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 cond... | 2.03125 | 2 |
2024-11-18T23:55:27.485547+00:00 | 2023-07-27T11:16:02 | 8a4424e2e8f5f8e85859b32903648cb799cd60c6 | {
"blob_id": "8a4424e2e8f5f8e85859b32903648cb799cd60c6",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-27T11:16:02",
"content_id": "9f9a63ac7ca66e0dcd75d3e45b48e109fc435001",
"detected_licenses": [
"MIT"
],
"directory_id": "35a29869b2ab70d9c2323bd102246be0c604fa87",
"extension": "c"... | stackv2 | /*
* ataes132a_impl.c
*
* Created: 8/13/2018 6:48:48 AM
* Author: pvallone
*/
#include "ataes132a_impl.h"
/** \brief Reads the ATAES132a's serial number. Can be read if device is locked or unlocked
*
* \param[out] serial_number
*
* \returns 0 on success
*/
int aes_read_serial_number(uint8_t *serial_num... | 2.375 | 2 |
2024-11-18T23:55:27.691464+00:00 | 2017-06-24T21:33:00 | bd1e126f375c6b3863eddadfbb390f984fa4c8b5 | {
"blob_id": "bd1e126f375c6b3863eddadfbb390f984fa4c8b5",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-24T21:35:10",
"content_id": "783bd52b7091663f06da3d65b304c197d6d66217",
"detected_licenses": [
"MIT"
],
"directory_id": "d9fbc092fbbea895887c08cf2be18df14cc17496",
"extension": "h"... | stackv2 | /*
* Description:
* Provide support data structures to sub-projects, specifically a
* linked-list implementation.
*
* List* new_list()
* create a new list object and return a reference to it. The stored values
* are of any type/size.
*
* void push_list_item(List* list, void *value, size_t value_size)
* ... | 2.984375 | 3 |
2024-11-18T23:55:27.746285+00:00 | 2019-01-16T07:37:28 | 944fa94116e8be03802815c23545f4a9508dddd4 | {
"blob_id": "944fa94116e8be03802815c23545f4a9508dddd4",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-16T07:37:28",
"content_id": "9be8a11b7cafebe8a8fa675f862d019828666978",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "45efbf62c64ddaad0fe47606ca36af7b99007378",
"extensio... | stackv2 | #include "../include/alarm_example.h"
int main()
{
int i;
char* rst = quickreply("login-name : ");
if (rst == 0) {
perror("Login ERROR\n");
exit(EXIT_FAILURE);
}
printf("Login OK\n");
for (i=0; i < 10; ++i) {
printf("do something as a user... %i\n", i);
}
re... | 2.5 | 2 |
2024-11-18T23:55:27.925425+00:00 | 2016-12-04T20:13:57 | 5634458dbf8dceeb543f76c430f3cd0ba7e2f1fc | {
"blob_id": "5634458dbf8dceeb543f76c430f3cd0ba7e2f1fc",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-04T20:13:57",
"content_id": "454bc1bb11b868bb2507a82dbd9ba5d68fbb5a58",
"detected_licenses": [
"MIT"
],
"directory_id": "55582d034cfb65ceb9971fd58340737a0e1c2191",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <poll.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "ipfs/cid/cid.h"
#include "ipfs/path/path.h"
#include "ipfs/namesys/namesys.h"
/*type LookupTXTFunc func(name string) (txt []string, err error)
// D... | 2.171875 | 2 |
2024-11-18T23:55:28.184024+00:00 | 2021-03-26T15:59:16 | e3933da8dffa28f7cf2ff898222c945bcab8ad30 | {
"blob_id": "e3933da8dffa28f7cf2ff898222c945bcab8ad30",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-26T15:59:16",
"content_id": "434f5a2314427a926c96fd79cd4aeeb0f52d9569",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4c59f4da523df5b09b8bcd1a4b390c093a26b9b0",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
#include <dirent.h>
#include <time.h>
#include <string.h>
#include <stdnoreturn.h>
#include <stdarg.h>
#include <sys/types.h>
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#define MAXNAME 64
#define BL... | 2.59375 | 3 |
2024-11-18T23:55:30.229380+00:00 | 2020-12-09T17:53:32 | 7c0fd8937e3c138f0ed9d537bb386cf5d8a57653 | {
"blob_id": "7c0fd8937e3c138f0ed9d537bb386cf5d8a57653",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-09T17:53:32",
"content_id": "7b34933df40b673cd67bb083a023f6c135abed2d",
"detected_licenses": [
"MIT"
],
"directory_id": "cdebbf84bc9ad8b22b507aeeac7d37bacbe88302",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <time.h>
#include <tinylogger.h>
#include "demo-utils.h"
#define MSGS_PER_TEST 1000
#define OUTPUT_FILE "/dev/null"
/**
* @struct format_test
*/
struct format_test {
char *label; /**< the name of the log formatter */
log_formatter_t formatter; /**< the address of... | 2.5625 | 3 |
2024-11-18T23:55:30.329654+00:00 | 2017-08-27T01:08:06 | 9e9f7582547e736dcd9ee3f7f0f7b795b06aefa8 | {
"blob_id": "9e9f7582547e736dcd9ee3f7f0f7b795b06aefa8",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-27T01:08:06",
"content_id": "9e68db75b522b868e484410d9261120f7e38dbd7",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "fd895f2adc6e99c0e54f86d44e8eb5d9ac3be168",
"extens... | stackv2 | #include "clp_wrapper.h"
#include "megiddo.h"
#include "constraint.h"
#include "array.h"
#include "logger.h"
#include <stdlib.h>
const char* Clp_Version()
{
return "0";
}
int Clp_VersionMajor()
{
return 0;
}
int Clp_VersionMinor()
{
return 0;
}
int Clp_VersionRelease()
{
return 0;
}
typedef struct... | 2.234375 | 2 |
2024-11-18T23:55:30.465397+00:00 | 2019-08-19T17:44:51 | 7bdc8ba674ab07a1fad8f8220c517a2220c81b0b | {
"blob_id": "7bdc8ba674ab07a1fad8f8220c517a2220c81b0b",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-19T17:44:51",
"content_id": "ddf9813b1b529faf90b565dd995dc2fd48ef11f7",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "071648f5c59f3bf1cfe8c245deefb2af70a8b62d",
"extens... | stackv2 | /* SPDX-License-Identifier: BSD-3-Clause */
#include <string.h>
#include "log.h"
#include "tpm2_cc_util.h"
typedef struct cc_map cc_map;
struct cc_map {
TPM2_CC cc;
const char *str;
};
#define ADDCC(s, c) { .str = s, .cc = c }
bool tpm2_cc_util_from_str(const char *str, TPM2_CC *cc) {
/*
* build ... | 2.125 | 2 |
2024-11-18T23:55:35.089489+00:00 | 2020-09-04T21:49:40 | 0a717fc565dc397763b1e578c61b6d466c539469 | {
"blob_id": "0a717fc565dc397763b1e578c61b6d466c539469",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-04T21:49:40",
"content_id": "f492d6712e0313b48174149d32337d6631b4304c",
"detected_licenses": [
"MIT"
],
"directory_id": "78a81378cd77d8dc39237c10f026377255d8be89",
"extension": "c"... | stackv2 | #include <stdio.h>
int main()
{
// Rechteck: a, b vom User einlesen
// Berechne den Umfang und den Flaecheninhalt des Rechtecks
// Gebe diese Werte dann in der Konsole aus
float a;
float b;
printf("Please enter the value for a:");
scanf("%f", &a);
printf("Please enter the value for b:"... | 3.21875 | 3 |
2024-11-18T23:55:35.248709+00:00 | 2020-08-07T12:39:15 | 728bda18da71d36e68291dd75823d3025fbc7479 | {
"blob_id": "728bda18da71d36e68291dd75823d3025fbc7479",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-07T12:39:15",
"content_id": "e105758b89aab5e400a5feb5b2477c9d2fc4b7b0",
"detected_licenses": [
"BSD-3-Clause",
"MIT",
"ISC"
],
"directory_id": "69a6d96fc2b886bc23a3bb76701cfe... | stackv2 | /*
* Copyright 2016-2018 Leo McCormack
*
* 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 DISC... | 2.0625 | 2 |
2024-11-18T23:55:35.309828+00:00 | 2020-07-06T14:18:48 | f4708e7d9cef1075ecc0edbc83409e36763d0c7b | {
"blob_id": "f4708e7d9cef1075ecc0edbc83409e36763d0c7b",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-06T21:32:35",
"content_id": "3992a4b0db5ba5a70b45795d2dd06ed659f051ae",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8874cd5b82ff429ba78093e37dd3f66356ff27dc",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include "handle-elf.h"
#include "piegen.h"
#include "log.h"
/* Adjust also in arch/x86/scr... | 2.109375 | 2 |
2024-11-18T23:55:35.820331+00:00 | 2021-06-25T06:18:35 | b5cdde03b5bc215a4df4f68c7576a8bb960fa38f | {
"blob_id": "b5cdde03b5bc215a4df4f68c7576a8bb960fa38f",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-25T06:18:35",
"content_id": "071bbf7db0c25c93b35da17c88d18aacae275bd8",
"detected_licenses": [
"MIT"
],
"directory_id": "965d1a6ac9de6f331411b4b5c445774c1bfce196",
"extension": "h"... | stackv2 | /*
==============================================================================
Ross Hoyt
Uniforms.h
==============================================================================
*/
#pragma once
//==============================================================================
// Class that manages the unifor... | 2.0625 | 2 |
2024-11-18T23:55:35.913826+00:00 | 2023-08-29T07:30:36 | 4e5dab3152fa6caedbb038a6f279b60e221268bf | {
"blob_id": "4e5dab3152fa6caedbb038a6f279b60e221268bf",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T07:30:43",
"content_id": "50a6663c88318181fe53a9dc6427ac0d2d2352bf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2c1429a1bd2d0477fd88119d4d778fc68c82adcf",
"extensio... | stackv2 | /*
* Copyright 2017-2019 Aaron Barany
*
* 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 agre... | 2.328125 | 2 |
2024-11-18T23:55:36.150258+00:00 | 2021-11-21T09:53:47 | a1ae57f38c58365c3c4dfc0d2a75400aee0dab50 | {
"blob_id": "a1ae57f38c58365c3c4dfc0d2a75400aee0dab50",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-21T09:53:47",
"content_id": "e81cfd64f206577a53db081bb795a58b68b13005",
"detected_licenses": [
"MIT"
],
"directory_id": "7ee06bffd99847d11cf126f1e17d9e1ddf083f0c",
"extension": "h"... | stackv2 |
int fun1(int param);
int fun2(int param);
struct Street {
char title[30];
int housesCount;
float averagePayment;
bool danger;
};
double findMin(double *fMas, int size);
void sortMas(Street *streets, int size, bool isAscending);
int freadStreetsToArray(Street *streetsArray, int streetsArraySize, FILE *file);
in... | 2.28125 | 2 |
2024-11-18T23:55:36.654984+00:00 | 2017-09-26T09:55:01 | c6dfdea3b0d0311a13550231a70aa6874c738b0c | {
"blob_id": "c6dfdea3b0d0311a13550231a70aa6874c738b0c",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-26T10:22:06",
"content_id": "971f9093ecff54b0ef80f2c8768084845db4999f",
"detected_licenses": [
"MIT"
],
"directory_id": "6c70c1724f561fb4181e83ff46d36d4af2259508",
"extension": "c"... | stackv2 | /*******************************************************************************
* File Name: CyFlash.c
* Version 5.0
*
* Description:
* Provides an API for the FLASH/EEPROM.
*
* Note:
* This code is endian agnostic.
*
* Note:
* Documentation of the API's in this file is located in the
* System Reference Gui... | 2.109375 | 2 |
2024-11-18T23:55:36.813207+00:00 | 2017-07-13T10:08:14 | 5d03aba8c2eb87a6cad4d7b3f781dcae9c71b7d3 | {
"blob_id": "5d03aba8c2eb87a6cad4d7b3f781dcae9c71b7d3",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-13T10:08:14",
"content_id": "93ab672f5fb93e19c799edd75b347dcc65ccc77d",
"detected_licenses": [
"MIT"
],
"directory_id": "7f95a01ad00c218f4f81228f478464fa76fc0a7e",
"extension": "c"... | stackv2 | /*
This software module was originally developed by Apple Computer, Inc.
in the course of development of MPEG-4.
This software module is an implementation of a part of one or
more MPEG-4 tools as specified by MPEG-4.
ISO/IEC gives users of MPEG-4 free license to this
software module or modifications thereof for use ... | 2.09375 | 2 |
2024-11-18T23:55:37.315419+00:00 | 2018-06-13T13:22:44 | 895901550e1d6bda83dcac7cecf9c1e9bc71fa47 | {
"blob_id": "895901550e1d6bda83dcac7cecf9c1e9bc71fa47",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-13T13:22:44",
"content_id": "89174d3225ced3e0025707bf3796270e32ac3f73",
"detected_licenses": [
"MIT"
],
"directory_id": "e254d3601ba67cfdbaf45fddedb727f48da4fbf2",
"extension": "c"... | stackv2 |
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
MODULE_LICENSE("MIT");
static int __init foo_driver_init(void) {
printk(KERN_INFO "Hello world (from FooDriver)!\n");
return 0;
}
static void __exit foo_driver_exit(void) {
printk(KERN_INFO "Bye, cruel world (from FooDriver)\n");
}
m... | 2.109375 | 2 |
2024-11-18T23:55:37.515289+00:00 | 2019-09-23T10:00:39 | 69c066a04ed0f43062710d6104908b456dabab9b | {
"blob_id": "69c066a04ed0f43062710d6104908b456dabab9b",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-23T10:00:39",
"content_id": "6f6b0325c2182ba9564dd63ec182bd7a5b987aac",
"detected_licenses": [
"MIT"
],
"directory_id": "820022bad0a1c0434f1b95f5856c17e9b82654af",
"extension": "c"... | stackv2 | #include "linkedlist.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct LinkedList
{
void *data;
struct LinkedList *next;
};
typedef struct LinkedList sLinkedListNode;
sLinkedList *linkedlist_create(int option)
{
sLinkedList * lst = malloc(sizeof(sLinkedList));
if(lst)
{
... | 2.953125 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.