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-19T03:03:04.780202+00:00 | 2023-08-31T22:06:37 | 688306b48d3217b61b9e1285b195a41f4df24a04 | {
"blob_id": "688306b48d3217b61b9e1285b195a41f4df24a04",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T22:06:53",
"content_id": "95a9e49f123bf8b96dcc10e3cb2fc6f9ae5dd5d3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "d9c592b309e5f7fc2089a40a4e88de6576b2197e",
"extens... | stackv2 | /* Copyright (c) 2023 Markus Uhlin <markus.uhlin@bredband.net>
All rights reserved.
Permission to use, copy, modify, and 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... | 2.3125 | 2 |
2024-11-19T03:03:05.022262+00:00 | 2020-07-12T13:31:27 | 65105a8278b5eaa450d378314b7c7575710aa489 | {
"blob_id": "65105a8278b5eaa450d378314b7c7575710aa489",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-12T13:31:27",
"content_id": "e44d3455c848becf75353d4abffd78484b3434b5",
"detected_licenses": [
"Apache-2.0",
"MIT"
],
"directory_id": "4798aa30408e1821af71837a5b7d3c3821e9c503",
... | stackv2 | #include <rtthread.h>
#include <board.h>
extern struct rt_memheap _heap;
static struct rt_memheap *sdram_heap = &_heap;
void rt_sdram_heap_init(void)
{
rt_kprintf("rt_sdram_heap_init complete.\n");
}
void *sdram_malloc(unsigned long size)
{
return rt_memheap_alloc(sdram_heap, size);
}
void sdram_free(void ... | 2.34375 | 2 |
2024-11-19T03:03:05.108892+00:00 | 2014-11-04T23:15:22 | f11d8ef20daae24529ca6eba3e3f30d1ab3168fe | {
"blob_id": "f11d8ef20daae24529ca6eba3e3f30d1ab3168fe",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-04T23:15:22",
"content_id": "5930fe2378d4be51b42da32d0d6b00bc1e9fdccf",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "70214efa2467f6c567b805dc923c0d288bf92733",
"extens... | stackv2 | #include <../src/tao/matrix/lmvmmat.h> /*I "lmvmmat.h" */
#include <petsctao.h> /*I "petsctao.h" */
#include <petscksp.h>
/* This is a vile hack */
#if defined(PETSC_USE_COMPLEX)
#define VecDot VecDotRealPart
#endif
#define TaoMid(a,b,c) (((a) < (b)) ? \
(((b) < (c)... | 2 | 2 |
2024-11-19T03:03:05.643225+00:00 | 2020-01-23T23:58:11 | e2a136a6fd84fd4c1bc32410acb3ba0b71d1d54f | {
"blob_id": "e2a136a6fd84fd4c1bc32410acb3ba0b71d1d54f",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-23T23:58:11",
"content_id": "acdeb38e27975f76d31ed0b7c746af3eba60d29e",
"detected_licenses": [
"MIT"
],
"directory_id": "85a42cbed2b3f863f7b027b16195924728f4d01c",
"extension": "h"... | stackv2 | #ifndef CFOO_ARG_H
#define CFOO_ARG_H
#include "cfoo/value.h"
enum cf_arg_type {CF_AINDEX, CF_ATYPE, CF_AVALUE};
struct cf_arg {
enum cf_arg_type type;
const struct cf_id *id;
union {
uint8_t as_index;
struct cf_type *as_type;
struct cf_value as_value;
};
};
struct cf_arg cf_arg_index(const s... | 2.03125 | 2 |
2024-11-19T03:03:05.847183+00:00 | 2018-05-23T06:55:18 | 274290401a4471032cee44df5c44c16b6fdce6e9 | {
"blob_id": "274290401a4471032cee44df5c44c16b6fdce6e9",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T06:55:18",
"content_id": "8876da538f77ddb64620c9110a6dfb03a922ba52",
"detected_licenses": [
"MIT"
],
"directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd",
"extension": "c"... | stackv2 | // zhenwu.c 太极剑法「真武除邪」
#include <ansi.h>
#include <combat.h>
inherit F_SSERVER;
string final(object me, object target, int damage);
int perform(object me, object target)
{
object weapon;
string msg;
int ap, dp;
int damage;
if (! target) target = offensive_target(me);... | 2.21875 | 2 |
2024-11-19T03:03:05.908374+00:00 | 2017-04-23T04:54:37 | dd801d4f26ec18135fd0b28468ec60ac7af3e7b6 | {
"blob_id": "dd801d4f26ec18135fd0b28468ec60ac7af3e7b6",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-23T04:54:37",
"content_id": "e6e5dcb3bd39bd617f034b7e39a33fd10e273e2d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "028e5d9ee8cc476459372843e759730faf4d7b73",
"extensio... | stackv2 | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdint.h>
#include "common.h"
#include "iopccmd_mntbaseadd.h"
#include "iopccmd_mntbasecount.h"
#include "iopccmd_mntbaseget.h"
#include "iopccmd_mntbaseset.h"
#include "iopcops_client_mntbase.h"
static uint32_... | 2.203125 | 2 |
2024-11-19T03:03:06.123248+00:00 | 2023-02-24T18:32:15 | 6588345d7fb30af400c9e082fc11fa18993a0e40 | {
"blob_id": "6588345d7fb30af400c9e082fc11fa18993a0e40",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-24T18:32:15",
"content_id": "62d13f7004052fefc7a19ccfd2c9388ce4504cb3",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "784ee664cd72d712e091698b95e964527859e1b3"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include "../lib/matrix.h"
#include "../lib/gc.h"
/*
cl test\ex_matrix_1.c lib\matrix.c lib\gc.c lib\fs.c /EHsc /Fex.exe
gcc test\ex_matrix_1.c lib\matrix.c lib\gc.c lib\fs.c -o x.exe
gcc test/ex_matrix_1.c lib/matrix.c lib/gc.c lib/fs.c -lm -o... | 2.90625 | 3 |
2024-11-19T03:03:06.531714+00:00 | 2021-01-13T16:06:16 | 090dd68992775762c04682a87ae241c58ddbfe7f | {
"blob_id": "090dd68992775762c04682a87ae241c58ddbfe7f",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-13T16:06:16",
"content_id": "57a46eaa41fc6e1c1dbd44d215fd8728c4880b9b",
"detected_licenses": [
"MIT"
],
"directory_id": "dfcd4af58bd11a448ebfc5b30c7c6b5b3773a185",
"extension": "c",
... | stackv2 | #include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <pthread.h>
#include <openssl/crypto.h>
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#inc... | 2.015625 | 2 |
2024-11-19T03:03:06.678815+00:00 | 2018-12-18T02:56:31 | 852a40329bed2b5f47fe4114c94ee771ff006dbf | {
"blob_id": "852a40329bed2b5f47fe4114c94ee771ff006dbf",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-18T02:56:31",
"content_id": "d17ef4a50c1c9f80cb2cb42f6ed8da74bf0c8ead",
"detected_licenses": [
"MIT"
],
"directory_id": "d32ca87fea60fbe5eb38b03c2e14643566877a02",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <crate.h>
#include <list.h>
struct Item {
int id;
};
int main()
{
dsCrate *crate = dsOpen("mycrate", 1, 1);
// Create a new dsList.
dsList *items = dsListAlloc();
// Set the list as the crate's index.
dsSetIndex(items, sizeof(*items));
// Add items to the list.
int i;
for (i =... | 3.234375 | 3 |
2024-11-19T03:03:07.084793+00:00 | 2018-08-12T23:53:12 | d6a74ca1b222a9bd7bbba0b61a6712208a6ae945 | {
"blob_id": "d6a74ca1b222a9bd7bbba0b61a6712208a6ae945",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-12T23:53:12",
"content_id": "db5b95a4984ba46f303e89ea62ce4a7b912998bd",
"detected_licenses": [
"MIT"
],
"directory_id": "249ba17c662961f1bdd076432917903a112f00c4",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
/* JCRL */
#include <constants.h>
#include <stack.h>
#include "error.h"
#include "isa.h"
#include "state.h"
unsigned int state_init(State* state)
{
if(state == NULL)
{
return CPU2_ERR_NULL;
}
state->reg = calloc(I... | 2.5625 | 3 |
2024-11-19T03:03:07.588050+00:00 | 2019-03-16T21:38:46 | 9b82c2308ef000f7c658e5a5b6d5a809aa3ebd68 | {
"blob_id": "9b82c2308ef000f7c658e5a5b6d5a809aa3ebd68",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-16T21:38:46",
"content_id": "aadf6d14bbd130a1468b7bafb72dd979ce7ee72a",
"detected_licenses": [
"MIT"
],
"directory_id": "7ab53b04895368351a33f97181da1673986aeb70",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <time.h>
#include <pthread.h>
#include <sched.h>
#include "task.h"
#include "task_deque.h"
#include "thread_pool.h"
static const size_t stack_size_shift = 10u; // 500KB -> 500MB (Mac OS X)
typedef struct worker worker_t;
typedef struct worker_arg worker_arg_t;
struct worker
{
pthrea... | 3.171875 | 3 |
2024-11-19T03:03:07.809355+00:00 | 2023-02-17T01:45:02 | 4f6f5c49a5c92af2a4e1003df0755e0e9c304cad | {
"blob_id": "4f6f5c49a5c92af2a4e1003df0755e0e9c304cad",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-17T01:45:02",
"content_id": "3481d3f6da3a9ce8a189e309232ac525aabf04d9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "014999ff6313002f16f4880e15e3b8324b2111f5",
"extensio... | stackv2 | /***************************************************************************
*
* Code file for gettimeofday() function.
* gettimeofday.h
*
* Copyright 2001 by Columbia University; all rights reserved
* by Akira Tsukamoto
*
***************************************************************************/
#include... | 2.5625 | 3 |
2024-11-19T03:03:07.910412+00:00 | 2018-05-16T05:20:52 | 23ada673a605f9821e5f9f03b72ef96a7310eaf8 | {
"blob_id": "23ada673a605f9821e5f9f03b72ef96a7310eaf8",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-16T05:20:52",
"content_id": "d89b70c52485b345339d75581d09c377c84bb35a",
"detected_licenses": [
"MIT"
],
"directory_id": "cbc5bd74d2f92a4b6eee4fc1474d02ac635f56b0",
"extension": "c"... | stackv2 | #include "postfix2.h"
/* The algorithm used is called "Shunting-yard" algorithm
* see more: https://en.wikipedia.org/wiki/Shunting-yard_algorithm
* Operator precedence assumed (from highest to lowest):
* ()
* ^
* *, /
* +, -
*/
void
infixTopostfix(char* filename)
{
int maxElements = 20;
Stack s = creat... | 3.46875 | 3 |
2024-11-19T03:03:08.250918+00:00 | 2021-05-13T22:38:42 | c2a0b78a6decac2ed44b5e6ff3d498e05fabca49 | {
"blob_id": "c2a0b78a6decac2ed44b5e6ff3d498e05fabca49",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-13T22:38:42",
"content_id": "a9ec6fe3ad53dd24ce43664a4d7631a95a9df301",
"detected_licenses": [
"BSD-3-Clause",
"SunPro"
],
"directory_id": "74d8fd3c835507d6095a141f2bc7c3f5e59b14... | stackv2 | /*
* $Id: math_modf.c,v 1.7 2006-01-08 12:04:23 obarthel Exp $
*
* :ts=4
*
* Portable ISO 'C' (1994) runtime library for the Amiga computer
* Copyright (c) 2002-2015 by Olaf Barthel <obarthel (at) gmx.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modifica... | 2.140625 | 2 |
2024-11-19T03:03:08.321864+00:00 | 2023-06-21T09:22:57 | 8a62ca65e86154076036149f7af22d098b4ab107 | {
"blob_id": "8a62ca65e86154076036149f7af22d098b4ab107",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-15T03:50:17",
"content_id": "bda7e157188e1b0239a2849fe9a1a4fd5c01b03a",
"detected_licenses": [
"MIT"
],
"directory_id": "5fdaec353b93b273d117c5ef1ca7d2352f4bad4b",
"extension": "h"... | stackv2 | /*
* Pluto: An automatic parallelier and locality optimizer
*
* Copyright (C) 2007-2012 Uday Bondhugula
*
* This software is available under the MIT license. Please see LICENSE
* in the top-level directory for details.
*
* This file is part of libpluto.
*
*/
#ifndef _DDG_H_
#define _DDG_H_
#include <stdbool.... | 2.3125 | 2 |
2024-11-19T03:03:08.412938+00:00 | 2020-07-17T08:22:34 | adbfc94810949bdb3beb3f6a16b7564f2734122b | {
"blob_id": "adbfc94810949bdb3beb3f6a16b7564f2734122b",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-17T08:22:34",
"content_id": "7e8950eab6e4b33730066344095d1959b47cfbe3",
"detected_licenses": [
"MIT"
],
"directory_id": "57f86dbab812e11768a74a6d6ecd08cf70335e73",
"extension": "h"... | stackv2 | #pragma once
#include "commons.h"
#ifdef RENDERER_HAS_RENDERER
BEGIN_RENDERER_NAMESPACE
/**
* \brief Given a function f, piecewise linear defined by 'heights',
* evaluate it at the new sample positions 'newX'.
*
* The sampling points 'heights' are of shape (Batch, N)
* where they define the value of the functio... | 2.34375 | 2 |
2024-11-19T03:03:08.488419+00:00 | 2019-10-05T23:11:00 | 950e708510b827fac8934979d63a7e393d7c2e7c | {
"blob_id": "950e708510b827fac8934979d63a7e393d7c2e7c",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-05T23:11:00",
"content_id": "0c191d417e45c2909b48f444228e2d5d6e482999",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2b5ee55c7cd41cd61edd341870b8b1c3f36c0859",
"extensio... | stackv2 | #include <stdbool.h>
#include <stdio.h>
#include <omp.h>
#include "test.h"
#include "gtmp.h"
int main(int argc, char **argv)
{
/* Get the number of barriers to test. */
if (argc < 2) {
printf("usage: %s <threads> <num_barriers>\n", argv[0]);
return -1;
}
/* First argument is number of... | 2.515625 | 3 |
2024-11-19T03:14:40.543993+00:00 | 2019-01-04T17:11:45 | ebbdf1c6c02e0cd5ba2707b61dca8269fa76cfbe | {
"blob_id": "ebbdf1c6c02e0cd5ba2707b61dca8269fa76cfbe",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-04T17:11:45",
"content_id": "f84b125795bbab38cb9395ebb55e6bef6657fe46",
"detected_licenses": [
"MIT"
],
"directory_id": "f1dd8e05258f01e9221020336ff59637c5180a69",
"extension": "c"... | stackv2 | /***********************************************************************
*
* TUTORATO 5: Funzioni
* ====================
*
*
* Primo esercizio: calcolo della probabilita` di k teste su n monete
* ------------------------------------------------------------------
*
* 1) Completa il file inserendo il corpo del... | 3.21875 | 3 |
2024-11-19T03:14:40.927640+00:00 | 2015-05-12T08:12:05 | 2b3e57088600d2565624c001f30c56b06f6eeef4 | {
"blob_id": "2b3e57088600d2565624c001f30c56b06f6eeef4",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-12T08:12:05",
"content_id": "7a2d5224509e57818aacb3b33be86faa247ac187",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "ca0dcec60cf1c330e3ae2d64fa59cc78054d4018",
"extens... | stackv2 | /*** a sample set of SCTP server ***/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/times.h>
#include <string.h>
#include <stdlib.h>
#include <netinet/sctp_constants.h>
#include <netinet/sctp.h>
int
main()
{
int fd,ret,newfd,count;
struc... | 2.671875 | 3 |
2024-11-19T03:14:41.393883+00:00 | 2022-11-25T14:31:40 | c450aded6593a27e409ac49ff2198ab584a639d4 | {
"blob_id": "c450aded6593a27e409ac49ff2198ab584a639d4",
"branch_name": "refs/heads/main",
"committer_date": "2022-11-25T14:31:40",
"content_id": "f1754d4f895ff468343ac160bfcf90aae1ba3f78",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c6bbd226758134f7057e381234b14ab0e5f19410",
"extensio... | stackv2 | /*****************************************************************************
* PLAYNTIL.C - Open flic, play it until event-detect, close the flic.
*
* Special version of PLAYNTIL for poe modules; doesn't reference video stuff.
****************************************************************************/
#define ... | 2.03125 | 2 |
2024-11-19T03:14:41.548917+00:00 | 2018-05-07T10:11:37 | 401306485820476ebbec1b7471377d33b4822fd8 | {
"blob_id": "401306485820476ebbec1b7471377d33b4822fd8",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-07T10:11:37",
"content_id": "a34090910eae74d21e78c01861fb72c55a616976",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e7ec4f5fbfc925d663bfff3f5c48725890b876e6",
"extensio... | stackv2 | /*
Copyright 2018 AGC.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 2.359375 | 2 |
2024-11-19T03:14:41.789385+00:00 | 2018-01-30T14:49:55 | 3678c2c990ca9beca70f45b5d91d29a96e16f95e | {
"blob_id": "3678c2c990ca9beca70f45b5d91d29a96e16f95e",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-30T14:49:55",
"content_id": "ae8792d63438404d0a65c8002989b23c2e473181",
"detected_licenses": [
"MIT"
],
"directory_id": "aa6f3d917a48c34a17dc1d077cae4b54707d7306",
"extension": "c"... | stackv2 | #include "main.h"
void TIM6_Configuration(void)
{
TIM_TimeBaseInitTypeDef tim;
NVIC_InitTypeDef nvic;
RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM6,ENABLE);
nvic.NVIC_IRQChannel = TIM6_DAC_IRQn;
nvic.NVIC_IRQChannelPreemptionPriority = 0;
nvic.NVIC_IRQChannelSubPriority = 0;
nvic.NV... | 2.125 | 2 |
2024-11-19T03:14:42.056393+00:00 | 2020-03-01T22:53:34 | 1ca7afe1105e263572d224ece179d633f876277c | {
"blob_id": "1ca7afe1105e263572d224ece179d633f876277c",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-02T00:55:37",
"content_id": "065d7c893d531828f31f23e5c3944957c97c1452",
"detected_licenses": [
"MIT"
],
"directory_id": "4207bbd97a4debbf29b0cf1652c4b4d247d71647",
"extension": "h"... | stackv2 | // Copyright (c) 2020 Matthew J. Smith and Overkit contributors
// License: MIT (http://opensource.org/licenses/MIT)
#ifndef OVK_CORE_C_CONTEXT_H_INCLUDED
#define OVK_CORE_C_CONTEXT_H_INCLUDED
#include <ovk/core-c/Error.h>
#include <ovk/core-c/Global.h>
#include <mpi.h>
#include <stdio.h>
#ifdef __cplusplus
extern... | 2.046875 | 2 |
2024-11-19T03:14:42.649234+00:00 | 2016-04-16T20:27:40 | d47645eb1f4dbeb62739b9f05d771f5f8cbe9b0c | {
"blob_id": "d47645eb1f4dbeb62739b9f05d771f5f8cbe9b0c",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-16T20:27:40",
"content_id": "c979b7e48b9b070f7b1029c0faa4dcf83b17a1a5",
"detected_licenses": [
"MIT"
],
"directory_id": "efa6eab97997059c74034d6480997dcb53210345",
"extension": "h"... | stackv2 | /**
* @file hardwareConfig.h
* @details Holds details about pin configurations and hardware connections
*/
#ifndef HARDWARE_CONFIG_H
#define HARDWARE_CONFIG_H
/**
* @ brief The pin onto which the RX status LED is connected
*/
#define RX_STATUS_LED_PIN (D7)
/**
* @ brief The pin onto which the 1st motor is co... | 2.15625 | 2 |
2024-11-19T03:14:42.870417+00:00 | 2014-05-11T01:18:01 | 7741d313220d2c729d916322581674991bf627b0 | {
"blob_id": "7741d313220d2c729d916322581674991bf627b0",
"branch_name": "HEAD",
"committer_date": "2014-05-11T01:18:01",
"content_id": "0bbfd391c005d2726864914287c10cdd741a9edb",
"detected_licenses": [
"MIT"
],
"directory_id": "d4774d554254b1b62d5b2a9c983aadbe13c23460",
"extension": "h",
"filename... | stackv2 | #ifndef _FREQUENCY_SYTHESIZER_CONFIGURATION_H_
#define _FREQUENCY_SYTHESIZER_CONFIGURATION_H_
#include <stdint.h>
#include "error.h"
/*
Frequency band in MHz
*/
typedef enum freq_band_e {
FREQ_BAND_820_960 = 0x2,
FREQ_BAND_420_480 = 0x4, // Used in our application
FREQ_BAND_273_320 = 0x6,
FREQ_BAND_205_240 = 0x8... | 2.125 | 2 |
2024-11-19T03:14:42.977123+00:00 | 2017-01-19T02:02:50 | c06cdfa8fa0b28819cbf0040e226dbee0e2a2492 | {
"blob_id": "c06cdfa8fa0b28819cbf0040e226dbee0e2a2492",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-19T02:02:50",
"content_id": "27cf5754cfb88148521e8f69e02d5e765427f7e7",
"detected_licenses": [
"PostgreSQL",
"BSD-2-Clause"
],
"directory_id": "4d5f2cdc0b7120f74ba6f357b21dac063e... | stackv2 | /*
* psql - the PostgreSQL interactive terminal
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /home/hjcvs/OB-CCM-1.0/postgresql/src/bin/psql/tab-complete.c,v 1.2 2004/07/05 08:55:54 SuLiang Exp $
*/
/*----------------------------------------------------------------------
* This file imp... | 2.125 | 2 |
2024-11-19T03:14:43.293933+00:00 | 2022-11-11T10:50:55 | b9b5b9067de8940c3f038e4f83e51c5c3e0b8bf1 | {
"blob_id": "b9b5b9067de8940c3f038e4f83e51c5c3e0b8bf1",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-11T10:50:55",
"content_id": "9a52052dd420dbc2e7d1b8f42de826d172ee8b34",
"detected_licenses": [
"MIT"
],
"directory_id": "187b3b9385f262d75b2f0f111a35665d5761c08c",
"extension": "c"... | stackv2 | /*
* Fairchild FAN5702 LED driver
*
* Authors: Antti Partanen <aehparta@iki.fi>
*/
#ifdef USE_I2C
#include "fan5702.h"
int fan5702_open(struct i2c_device *dev, struct i2c_master *master)
{
/* try to detect fan5702 */
return i2c_open(dev, master, FAN5702_ADDR);
}
int fan5702_cfg(struct i2c_device *dev)
{
/* ... | 2.875 | 3 |
2024-11-19T03:14:43.468813+00:00 | 2018-06-01T02:54:34 | 9887a1febd8433bfa41168e77cc37e45be02a5e6 | {
"blob_id": "9887a1febd8433bfa41168e77cc37e45be02a5e6",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-01T02:54:34",
"content_id": "3d8e90ae4ffc83d8ce3210ddc0bb3f88603466f3",
"detected_licenses": [
"MIT"
],
"directory_id": "ff801d0d8a8a7d6a341296745319772c4122ebf8",
"extension": "h"... | stackv2 | /*******************************************************************************
* File Name: Current_B.h
* Version 2.20
*
* Description:
* This file contains Pin function prototypes and register defines
*
********************************************************************************
* Copyright 2008-2015, Cypress... | 2.03125 | 2 |
2024-11-19T03:14:43.570251+00:00 | 2023-08-17T09:33:32 | 18aeb16d869db205bde246af2ff5b9eecd621a5f | {
"blob_id": "18aeb16d869db205bde246af2ff5b9eecd621a5f",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T09:33:32",
"content_id": "e119af44585566db2b66d749135cd286426540de",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "face8f1138c7c35dfb928452be3896392c4511a8",
"extension"... | stackv2 | #include "test_utils.h"
static uint64_t handPickedLargeLen[] = {
0xFFFFF - 4,
0xFFFFF - 3,
0xFFFFF - 2,
0xFFFFF - 1,
0xFFFFF,
0xFFFFF + 1,
0xFFFFF + 2,
0xFFFFF + 3,
0xFFFFF + 4};
// handPickedCount should be devisable by 3 for the associative test to work
static int handPickedCount... | 2.515625 | 3 |
2024-11-19T03:14:44.281562+00:00 | 2017-08-03T08:39:43 | 8bc10670551fd81aa426843af8b149c071f3b7f6 | {
"blob_id": "8bc10670551fd81aa426843af8b149c071f3b7f6",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-03T08:39:43",
"content_id": "38df0acf760c977552d71bd0d4d2e64b310526fc",
"detected_licenses": [
"MIT"
],
"directory_id": "8700fa500c760a8049c65df590632783cd64940a",
"extension": "c"... | stackv2 | /*myirq.c*/
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
static int irq;
static char *interface;
module_param(interface,charp,0644);
module_param(irq,int,0644);
static irqreturn_t myinterrupt(int irq, void *dev_id)
{
static int mycount = 0;
static long mytime = 0;
/*struct net_de... | 2.671875 | 3 |
2024-11-19T03:14:44.402028+00:00 | 2015-08-14T11:15:02 | 5bfd698a2986ea34e6a21746ab6bd9866c98b7a1 | {
"blob_id": "5bfd698a2986ea34e6a21746ab6bd9866c98b7a1",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-14T11:15:02",
"content_id": "c058ce912d40e5b5846e93117b097fa29e67260c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4b6cf4514a397ad6c0af538995c4b8c018b393f9",
"extens... | stackv2 | #include "keyboard.h"
#include "uart.h"
unsigned int keyboard_get(void)
{
unsigned int keycode;
volatile unsigned int dummy;
unsigned int result = 0;
while(1) {
dummy = *(volatile unsigned int *)OFFSET(DEVICE_KEYBOARD_START, KEYBOARD_FLAGR);
keycode = *(volatile unsigned int *)OFFSET(DEVICE_KEYBOARD_S... | 2.4375 | 2 |
2024-11-19T03:14:44.590370+00:00 | 2014-07-28T19:35:29 | a85148c77664c54dc01d480977f51f32fae3dd23 | {
"blob_id": "a85148c77664c54dc01d480977f51f32fae3dd23",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-28T19:38:45",
"content_id": "fd9fbae40af708770325c415903245b3c5552174",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c9f26c4e89ab32983416eb770d03d118eec776d2",
"extens... | stackv2 | /***************************************************************************
ni.c - Skeleton of a plugin
-------------------
begin : Fri May 21 2010
copyright : (C) 2010 by Markus Raab
email : elektra@markus-raab.or... | 2.09375 | 2 |
2024-11-19T03:14:50.673831+00:00 | 2022-12-08T10:35:06 | 1c10c2a980241d60e7a38e68db849bd892fd6088 | {
"blob_id": "1c10c2a980241d60e7a38e68db849bd892fd6088",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-08T10:35:06",
"content_id": "906ca3e5131bf767882794d7f42d5e2bfaefb683",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7193d662b80dcf1cab7a37a47fd9444315540b70",
"extens... | stackv2 | #include "bg_node.h"
#include "bg_impl.h"
#include "bg_graph.h"
#include "node_types/bg_node_subgraph.h"
#include "node_list.h"
#include <stdlib.h>
#include <string.h>
bg_error bg_node_init(bg_node_t *node, const char *name, bg_node_id_t id,
bg_node_type type) {
char *name_copy = malloc(strlen... | 2.34375 | 2 |
2024-11-19T03:14:50.985191+00:00 | 2017-03-22T16:27:48 | ddd7d07b63a27aa55e1297dd441de1720715481f | {
"blob_id": "ddd7d07b63a27aa55e1297dd441de1720715481f",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-22T16:27:48",
"content_id": "3ad4043e45ecc34e8c9fd2b9bac223b7d7b910dc",
"detected_licenses": [
"MIT"
],
"directory_id": "7bed2823953b06edfa7cb34a38ea90f965811e9e",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* bytecode1.c :+: :+: :+: ... | 2.53125 | 3 |
2024-11-19T03:14:51.408566+00:00 | 2021-09-21T13:58:25 | 2b369a45b9112c38d895588cca54d27ade533fb2 | {
"blob_id": "2b369a45b9112c38d895588cca54d27ade533fb2",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-21T13:58:25",
"content_id": "5ad7e3ba3a2eb5fa8e61f3bba6a5c6e70f2700b4",
"detected_licenses": [
"MIT"
],
"directory_id": "47e751d7ddfabffee37c4651d3ef9b9ac8a22c57",
"extension": "c"... | stackv2 | /*!
* @file main.c
* @brief OLEDB Click example
*
# Description
* This example demonstrates the use (control) of the OLED B display.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Configures the microcontroller for communication and initializes the click
* board to default s... | 2.546875 | 3 |
2024-11-19T03:14:51.720450+00:00 | 2020-09-17T01:21:46 | 41872c75653beba23124a8d4b8b89f31e434f685 | {
"blob_id": "41872c75653beba23124a8d4b8b89f31e434f685",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-17T01:21:46",
"content_id": "9e4ff2c6baf017c9015c102410f2040c603da7bc",
"detected_licenses": [
"MIT"
],
"directory_id": "8dad9f9c233a03793536279b397e98849def7dbe",
"extension": "c"... | stackv2 | /*
* MIT License
*
* Copyright (c) 2020 Newracom, Inc.
*
* 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, m... | 2.140625 | 2 |
2024-11-19T03:14:51.838427+00:00 | 2015-06-20T08:15:12 | 88caa2d8b0e84af8982a38e6355167e4d92d4c49 | {
"blob_id": "88caa2d8b0e84af8982a38e6355167e4d92d4c49",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-20T08:15:12",
"content_id": "451811f4307d8e7dffd522082ada179f660199e6",
"detected_licenses": [
"MIT"
],
"directory_id": "1f242f3d821560615b0c994fedc327f284bd7e8e",
"extension": "c"... | stackv2 | #include "List.h"
typedef struct drListNode {
void *data;
struct drListNode *np; ///< pointer to (begin XOR end) node
} drListNode;
typedef struct drList {
drListNode *head,
*tail;
size_t size;
void (*destructor)(void* data); // optional destructor, may be free
} drList;
typedef struct d... | 2.984375 | 3 |
2024-11-19T03:14:52.016507+00:00 | 2023-08-19T10:45:52 | 4d2a116bdd86a9f13c3758da885f16eab1f93edf | {
"blob_id": "4d2a116bdd86a9f13c3758da885f16eab1f93edf",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-19T10:45:52",
"content_id": "a7cd65356322d89a7594eef8c2040c6ef0254148",
"detected_licenses": [
"MIT"
],
"directory_id": "9c7ac2d65d82e1f31e383893952181a0b35277c1",
"extension": "h"... | stackv2 | #define SHADERS_NUM 5
GLuint T_program[SHADERS_NUM];
GLint attribute_coord, uniform_refls2, uniform_refls4, uniform_smap4, uniform_mat4, uniform_shine4, uniform_displ4;
GLint uniform_tex0, uniform_tex1, uniform_tex2, uniform_night2, uniform_night4, uniform_tex4, uniform_sha4;
GLint uniform_color0, uniform_cam2, unifo... | 2.328125 | 2 |
2024-11-19T03:14:52.083570+00:00 | 2021-10-24T13:30:10 | 07d21b1fdee26dd7cc7e750850e99b4b6e892ed2 | {
"blob_id": "07d21b1fdee26dd7cc7e750850e99b4b6e892ed2",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-24T13:30:10",
"content_id": "17810f256e6df1f11a9fe6a4bff38127a9dcf426",
"detected_licenses": [
"MIT"
],
"directory_id": "5ae12f60144af5750aa5ce9c18013ef334b3b919",
"extension": "c",
... | stackv2 | #include <brutal/base/std.h>
#include <brutal/debug.h>
#include <brutal/text.h>
struct ubsan_source_location
{
char const *file;
uint32_t line;
uint32_t column;
};
struct ubsan_type_descriptor
{
uint16_t kind;
uint16_t info;
char name[];
};
static void ubsan_print_location(char *message, stru... | 2.328125 | 2 |
2024-11-19T03:14:52.191018+00:00 | 2021-03-03T08:51:36 | d7adb33831f0166746b7a50e7412718d7fbd2a4b | {
"blob_id": "d7adb33831f0166746b7a50e7412718d7fbd2a4b",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-03T08:51:36",
"content_id": "8382dc29d85e483f9b802dd17c9f91e1ad320bad",
"detected_licenses": [
"MIT"
],
"directory_id": "ca164c00757aef96cc0fd8b095294aa167798c53",
"extension": "c"... | stackv2 | /*
* Copyright (C) 2013 Neil McGill
*
* See the LICENSE file for license.
*/
#include "config.h"
#ifndef WIN32
#include <execinfo.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main.h"
#define MAX_TRACEBACK 16
typedef struct traceback_ {
void *array[MAX_TRACEBACK];
uint3... | 2.46875 | 2 |
2024-11-19T03:14:52.256822+00:00 | 2023-02-16T11:27:40 | 9ab3c4be5b04219ebb5fd663bf0ef8653c0e664a | {
"blob_id": "9ab3c4be5b04219ebb5fd663bf0ef8653c0e664a",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "03cfab48e600bad3e08f53891620d902005e00f3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright (c) 2017 Google LLC.
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT atmel_sam0_gpio
#include <errno.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/dt-bindings/gpio/atmel-sam0-gpio.h>
#include <soc.h>
#... | 2.4375 | 2 |
2024-11-19T03:14:52.975916+00:00 | 2020-08-07T11:18:43 | 6af4e461dea0c9fc3b9809eebfa7a1834a036174 | {
"blob_id": "6af4e461dea0c9fc3b9809eebfa7a1834a036174",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-07T11:20:02",
"content_id": "905b997dbd8e8ac24a9c74c50dcc2fb39442dd2b",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "1858770f02a20d302c7a23c03ec44a29f5c51b60",
"extension":... | stackv2 | /*
Copyright (c) 2020 Pavlos Georgiou
Distributed under the Boost Software License, Version 1.0.
See accompanying file LICENSE_1_0.txt or copy at
https://www.boost.org/LICENSE_1_0.txt
*/
#include <vial/crypto/sha256.h>
#include <string.h>
/* This is based on SHA256 implementation in LibTomCrypt that was released in... | 2.671875 | 3 |
2024-11-19T03:14:53.504234+00:00 | 2020-07-31T09:33:51 | 7772c453537135578504eb1fc35082bbec3dce01 | {
"blob_id": "7772c453537135578504eb1fc35082bbec3dce01",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-31T09:35:21",
"content_id": "e31ff6b093a4b0bd8f9ceff244281fcba73b227b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "721865028a98963e8ed2708a5e80436a5c1a0e1a",
"extensio... | stackv2 | /*
* Copyright (c) 2020 Bitdefender
* SPDX-License-Identifier: Apache-2.0
*/
/// @ingroup pagepool
#ifndef _PAGEPOOL_H_
#define _PAGEPOOL_H_
#include "core.h"
#include "memory/mdl.h"
/// @brief Options controlling the behaviour of page-pool allocator
typedef struct
{
BYTE Continuos : 1; ///< ... | 2.078125 | 2 |
2024-11-19T03:14:53.934450+00:00 | 2021-10-26T18:45:04 | 4078237bad0271c33880e32f92bac359cfc71f40 | {
"blob_id": "4078237bad0271c33880e32f92bac359cfc71f40",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-26T18:45:04",
"content_id": "bf01b181dc751a87a7bd3dfb0327c141cb3df324",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "082fac8f65f4f7d489848dd487b19b34... | stackv2 | #ifndef __DAEMON_GLUE_H_
#define __DAEMON_GLUE_H_
// statuses a daemon can be in
#define S_NULL 0x00
#define S_AVAILABLE 0x01
#define S_BUSY 0x02
#define S_SPAWNING 0x04
#define S_STARTING 0x08
#ifdef DAEMON_LEVEL
#define DAEMON_EXPORT
#else
#define DAEMON_... | 2 | 2 |
2024-11-19T03:14:54.093595+00:00 | 2015-10-07T06:52:20 | f4c255ff3783ffa628111d49c8bd2fa7338b2e67 | {
"blob_id": "f4c255ff3783ffa628111d49c8bd2fa7338b2e67",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-07T06:52:20",
"content_id": "4c89053838a2cdc02617e8f42be8567135268230",
"detected_licenses": [
"MIT"
],
"directory_id": "94e665ab218267839dbd67ba957325e2af12b198",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <assert.h>
#include "bin_reader.h"
static int
next_param( char *buf, unsigned int start )
{
#ifdef DEBUG
printf( "> %d %d %c\n", start, buf[start], buf[start] );
#endif
while ( b... | 2.40625 | 2 |
2024-11-19T03:14:54.307042+00:00 | 2023-08-19T09:59:45 | bdcc621c1fcc64aa05b4e0322371fafa668609da | {
"blob_id": "bdcc621c1fcc64aa05b4e0322371fafa668609da",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-19T10:54:51",
"content_id": "b58116c70a74ea6d0445328bab46a622cb5bf613",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3e4fcc5e2d14f759f8e9e061857cd5be0abcfb78",
"extens... | stackv2 | /* SCCS Id: @(#)pcmain.c 3.4 2002/08/22 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
/* main.c - MSDOS, OS/2, ST, Amiga, and NT NetHack */
#include "hack.h"
#include "dlb.h"
#ifndef NO_SIGNAL
#include <signal.h>
#endif
#... | 2.125 | 2 |
2024-11-19T03:14:54.380540+00:00 | 2019-06-03T21:09:41 | 938be7ae401dfcddfbb8a168ec2cd6656f0d3350 | {
"blob_id": "938be7ae401dfcddfbb8a168ec2cd6656f0d3350",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-03T21:09:41",
"content_id": "1020d8e1fc64b5c2d32f1cb0450e83f38af01ddc",
"detected_licenses": [
"MIT"
],
"directory_id": "8a9a25625843baf4b747431efb75654e7eadf2de",
"extension": "h"... | stackv2 | #ifndef CLIENT_H
#define CLIENT_H
#include "../cyclic_buffer/cyclic_buffer.h"
#include "../list/list.h"
#include "../utils/utils.h"
// parameters
#define MAX_CONNECTIONS 100 // maximum open connections that are allowed for the client's server
#define FILE_CHUNK_SIZE 100 // size of file chunk to send
// usefull defin... | 2.390625 | 2 |
2024-11-19T03:14:54.642320+00:00 | 2019-06-23T14:16:05 | 96dd6dd2f31bf5baba79bc2c767886bf873d9b22 | {
"blob_id": "96dd6dd2f31bf5baba79bc2c767886bf873d9b22",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-23T14:16:05",
"content_id": "6c06793612dcd062740866a55e8c7831c85ee79a",
"detected_licenses": [
"MIT"
],
"directory_id": "55add7c3eeb16c13c156c2f0351194907093b96c",
"extension": "c"... | stackv2 | #include "types.h"
#include "x86.h"
#include "defs.h"
#include "date.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "proc.h"
// Simple system call
#define TOTAL_TICKET 6400
extern struct heap h;
extern struct MLFQ mlfq;
int
getlev(void){
return myproc()->level;
}
int
run_MLFQ(void)
{
if(!... | 2.15625 | 2 |
2024-11-19T03:14:54.875340+00:00 | 2023-05-26T07:03:59 | 7e0206036b8ba5a6bbcaca1a8755541d420060cc | {
"blob_id": "7e0206036b8ba5a6bbcaca1a8755541d420060cc",
"branch_name": "refs/heads/hx20-hx30",
"committer_date": "2023-05-26T07:03:59",
"content_id": "a2c4aaa74c4b21091e9332863bd2567c49cb9a49",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f9e7d65cb784c01a0200145ba8d289afe41d4a56",
"ext... | stackv2 | /* Copyright 2018 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* TI LM3630A LED driver.
*/
#include "hooks.h"
#include "i2c.h"
#include "lm3630a.h"
#include "timer.h"
/* I2C address */
#define LM3630A_I2C_AD... | 2.359375 | 2 |
2024-11-19T03:14:54.954873+00:00 | 2023-07-07T18:41:40 | 2323a7857f161b37fe1cec51aca84004069462be | {
"blob_id": "2323a7857f161b37fe1cec51aca84004069462be",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-07T18:41:40",
"content_id": "b5f94890cfae2df8cae18ef99568e9a1c530763d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c26d7b0ed875357278e61627da2da0650da77986",
"extens... | stackv2 | /*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#include <stdio.h>
#include <strings.h>
#include <sys/param.h>
#include <sys/inode.h>
#include <sys/fs.h>
#include "fsck.h"
vo... | 2.0625 | 2 |
2024-11-19T03:14:55.121868+00:00 | 2023-05-17T01:35:16 | 08b27c50a30ff07851c7c4b35f63aedb9eea3a0a | {
"blob_id": "08b27c50a30ff07851c7c4b35f63aedb9eea3a0a",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-17T01:35:16",
"content_id": "bbe089564f089da93925e5cdd98062c11df6f9e6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "50ec0cc5c64914919c17c1b04ced1d96e84c672f",
"extens... | stackv2 | /*
============================================================================
Name : color.c
Author : OpenEL-WG
Version : 3.2
Copyright : Japan Embedded Systems Technology Association(JASA)
Description : Sample program for LEGO EV3 Color sensor
================================================... | 2.515625 | 3 |
2024-11-19T03:14:55.191384+00:00 | 2023-08-12T15:50:31 | e156f265b7edac9c9418aa3b22c1d6b16c7a2b81 | {
"blob_id": "e156f265b7edac9c9418aa3b22c1d6b16c7a2b81",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-12T15:50:31",
"content_id": "06abd7c3e044bf41bc4733556d6097e1ff389233",
"detected_licenses": [
"MIT"
],
"directory_id": "37583ad8f2a31ea5f1cbb38ddaa54a2b4c04ce37",
"extension": "h"... | stackv2 | /*********************************************************************/
/* */
/* This Program Written by Paul Edwards. */
/* Released to the Public Domain */
/* ... | 2 | 2 |
2024-11-19T03:14:55.941556+00:00 | 2023-01-01T20:22:07 | 3599954a0f8021d4e0cde6a45d89935d52144fc2 | {
"blob_id": "3599954a0f8021d4e0cde6a45d89935d52144fc2",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-01T20:22:07",
"content_id": "206592fdd5a40ce29bd0eb08e3070637e0ea5043",
"detected_licenses": [
"MIT"
],
"directory_id": "3e443d89d7507b0fd20a13deec80e11901a05b28",
"extension": "c"... | stackv2 | /*programmer - chase
functions in class 11/22/16
use of functions*/
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
void myFuntion(int a)//passing value to function (int a). of type int."how to pass"
{
//printf("this is my function\n a = %i\n\n", a);
printf("this is my function\n");
}//end myfunction
main()//... | 3.1875 | 3 |
2024-11-19T03:14:56.179160+00:00 | 2019-11-20T14:43:25 | 81d188e73b13a535cd654341740fa0311ba8934a | {
"blob_id": "81d188e73b13a535cd654341740fa0311ba8934a",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-20T14:43:25",
"content_id": "00fdf412fae9d15ed29582785ecd019e2b1d7cde",
"detected_licenses": [
"MIT"
],
"directory_id": "5fa83765dcd8dc59585b5b451a8c484155910c93",
"extension": "h"... | stackv2 | /*
File: dbutils.h
Synopsis: header with sql queries & function prototypes
Author: hackmac89
E-mail: hackmac89@filmdatenbank-manager.de
date: 09/27/2016
https://www.filmdatenbank-manager.de/
https://github.com/hackmac89/cMovies
*/
#ifndef DBUTILS_H
#define DBUTILS_H
typedef int bool;
#define true 1
#define false 0
//... | 2.171875 | 2 |
2024-11-19T03:14:56.503246+00:00 | 2021-06-26T13:57:32 | a33fec7206fb8bc685e5d0f3828e23b7be937611 | {
"blob_id": "a33fec7206fb8bc685e5d0f3828e23b7be937611",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-26T13:57:32",
"content_id": "f1f250aced5f55d671c9d5722388f5b8fd5ae708",
"detected_licenses": [
"MIT"
],
"directory_id": "75436b6abf4c5606015bdddbdb9e08cf8edc7502",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include "GLEStrace.h"
static char s_strbuf[512]; // [FIXME] thread safe
static char *
get_pname_str (GLenum pname)
{
switch (pname)
{
case GL_ACTIVE_ATOMIC_COUNTER_BUFFERS : return "GL_ACTIVE_ATOMIC_COUNTER_BUFFERS";
case GL_ACTIVE_ATTRIBUTES : return "GL_ACTIVE_A... | 2.03125 | 2 |
2024-11-19T03:14:56.717407+00:00 | 2022-11-25T14:31:40 | 2502b29c424ab596fdcf3219b0e76839d5cdec95 | {
"blob_id": "2502b29c424ab596fdcf3219b0e76839d5cdec95",
"branch_name": "refs/heads/main",
"committer_date": "2022-11-25T14:31:40",
"content_id": "0a4295e8770c7088f8aedbe90b7b16fa54a23c72",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c6bbd226758134f7057e381234b14ab0e5f19410",
"extensio... | stackv2 | /*****************************************************************************
* OTDEMO.C - A POE module to demonstrate the use of OverTime.
*
* Major POE items/features demonstrated herein:
*
* - Using OverTime from a POE module.
* - Workaround for SetColorMap() bug.
* - Simple floating point math in a POE.
... | 2.46875 | 2 |
2024-11-19T03:14:58.108862+00:00 | 2020-02-11T03:32:46 | 694fd7c207bedddb9d25df37523cdbbcad7a5efb | {
"blob_id": "694fd7c207bedddb9d25df37523cdbbcad7a5efb",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-11T04:57:00",
"content_id": "648a24bdb716f547c8591dd448e00f8c77d30dd3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b471ea029bf3f33d17f1b78bce59a1425e728b54",
"extensio... | stackv2 | /* SPDX-License-Identifier: MIT OR Apache-2.0 */
/*
* Copyright (C) 2019, 2020 Jiaxun Yang <jiaxun.yang@flygoat.com>
*/
#include "miku.h"
static struct miku_fan miku_fans[MIKU_FAN_ID_END];
static struct miku_fan_policy cpufan_policy =
{
.num_tables = 5,
.table[0] = {
/* Keep Fan in low speed */
.low_bond = -... | 2.421875 | 2 |
2024-11-19T03:14:58.438266+00:00 | 2018-10-11T19:02:39 | f3046c309b939682dfb3924fa7b1dd161d1c6478 | {
"blob_id": "f3046c309b939682dfb3924fa7b1dd161d1c6478",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-11T19:02:39",
"content_id": "b95ec87c838e84daeac6cc8fc0e05bfc7f6af9d0",
"detected_licenses": [
"MIT"
],
"directory_id": "896cb9336c8934ba936eeb7fcb16fb53528e132d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "list.h"
void forall(list_t* l,void (*fn)(void*));
void divide_even_by_3(void* data){
int* aux = data;
if((*aux)%2==0){
(*aux) = (*aux)/3;
}
}
void zerar_pares(void* data){
int* aux = data;
if((*aux)%2==0){
*aux... | 3.21875 | 3 |
2024-11-19T03:14:58.897381+00:00 | 2020-11-12T21:05:53 | 736e9247028994e9cc9c4a851d555cbb9b929269 | {
"blob_id": "736e9247028994e9cc9c4a851d555cbb9b929269",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-12T21:05:53",
"content_id": "6cdac6f338a6f0f64126d3136c9a50e3a85763f8",
"detected_licenses": [
"MIT"
],
"directory_id": "bf41d6629faaf34192a159f1e12d50656fbd8d10",
"extension": "c"... | stackv2 | /*AULA 9A - EXS 2 - Cálculo volume da esfera usando protótipo e definição*/
#include <stdio.h>
#include <math.h>
float volume_esfera(float A); //Protótipo da função
int main () {
float V;
float R;
printf ("Digite valor do RAIO da esfera:\n");
scanf ("%f", &R);
printf ("\n");
V = volume_esfera(R);
print... | 3.421875 | 3 |
2024-11-19T03:14:59.114280+00:00 | 2017-11-23T16:58:00 | 33ca09b71ed4bd25d9ea87d53003d29d8ab2d7f1 | {
"blob_id": "33ca09b71ed4bd25d9ea87d53003d29d8ab2d7f1",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-23T16:58:00",
"content_id": "6750631ca7177b600c161cee0dd0628b0275b6f6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e0166b09db4700a0c2d46afb25bacc2dd6711371",
"extens... | stackv2 | #include <stdio.h>
void imprime_vetor_cadeias(char *v[], int n) {
int i;
for (i = 0; i < n; i++)
printf("%s\n", v[i]);
}
int main(void) {
char *cores[] = {"amarelo",
"verde",
"vermelho",
"laranja",
"preto"};
imprime_vetor_cadeias(cores, 5);
return 0;
}
| 2.6875 | 3 |
2024-11-19T03:14:59.447658+00:00 | 2016-05-28T15:11:41 | 7e3accd2a32ffd22b1916cb040985f0bab404ba7 | {
"blob_id": "7e3accd2a32ffd22b1916cb040985f0bab404ba7",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-28T15:11:41",
"content_id": "627374f5bb6300a0c477f4a33ccbfc0f22d5a1fc",
"detected_licenses": [
"MIT"
],
"directory_id": "8cef59884c787adbb1ac3b6e4ed7ab785a4067c9",
"extension": "c"... | stackv2 | /*
This file is licensed under the MIT-License
Copyright (c) 2015 Marius Messerschmidt
For more details view file 'LICENSE'
*/
#include "appchooser.h"
#include "../side-app/apps.h"
#define SIDE_APP_CHOOSER_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), SIDE_APP_CHOOSER_TYPE, SiDEAppChooserPrivate))
typedef struct _... | 2.265625 | 2 |
2024-11-19T03:14:59.624376+00:00 | 2017-02-24T09:19:26 | 52902d00412470d07954596be3ca59e91aad7dc4 | {
"blob_id": "52902d00412470d07954596be3ca59e91aad7dc4",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-24T09:19:26",
"content_id": "e9e608129cb5367b75cc8a2fbfa584519db58eb2",
"detected_licenses": [
"MIT"
],
"directory_id": "63829a4064dfb6c74f6d0c6be7e2d613a4f4f5af",
"extension": "h"... | stackv2 | /********************************************************
* math3d.h - 3D math library by Bastiaan Olij 2015
*
* Public domain, use as you say fit, disect, change,
* or otherwise, all at your own risk
*
* This library is given as a single file implementation.
* Include this in any file that requires it but in o... | 2.234375 | 2 |
2024-11-19T03:14:59.719337+00:00 | 2023-07-30T02:28:31 | 711c2d08fc34b2f254df511bcf68f72bb5c1a3cb | {
"blob_id": "711c2d08fc34b2f254df511bcf68f72bb5c1a3cb",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-31T22:41:57",
"content_id": "945187150c5fb0b042738fa9bd8bb4972bdfd1d3",
"detected_licenses": [
"MIT"
],
"directory_id": "fe413e488395369f22061dca2bc77bd93fdff2fd",
"extension": "h"... | stackv2 | /*************************************************************************************************/
/* ECLCDEF.H ECLC用のコンバート情報の定義など */
/* */
/*********************************... | 2.3125 | 2 |
2024-11-19T03:14:59.797285+00:00 | 2023-07-27T14:12:00 | 3e2ed60b26b307173e0c3c03e76ff4811c57fde5 | {
"blob_id": "3e2ed60b26b307173e0c3c03e76ff4811c57fde5",
"branch_name": "refs/heads/dev",
"committer_date": "2023-07-27T14:12:00",
"content_id": "d0b3deefe252bb33a6d457c60b474f7dad2d1e62",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9f6d0c9e9f0877e0cc954f61e2245c88839918f9",
"extension":... | stackv2 | /*
* Copyright Supranational LLC
* Licensed under the Apache License, Version 2.0, see LICENSE for details.
* SPDX-License-Identifier: Apache-2.0
*/
#include "fields.h"
#include "point.h"
/*
* Infinite point among inputs would be devastating. Shall we change it?
*/
#define POINTS_TO_AFFINE_IMPL(prefix, ptype, b... | 2.4375 | 2 |
2024-11-19T03:14:59.901395+00:00 | 2022-05-25T23:10:04 | 547c5d7c18bc97e4aaf05a1d23ce97d1bb5c21b1 | {
"blob_id": "547c5d7c18bc97e4aaf05a1d23ce97d1bb5c21b1",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-25T23:10:04",
"content_id": "0b821aeda22800c0b2db835bbc946d09c5c3addf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3e39e2fa31158d6d86a23773946084db17cd3317",
"extensio... | stackv2 | /*
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "sdkconfig.h"
#include "esp_log.h"
#include "esp_check.h"
#include "esp_err.h"
#include "esp_private/periph_ctrl.h"
#include "esp_private/usb_phy.h"
#include "soc/usb_pins.h"
#include "tin... | 2.0625 | 2 |
2024-11-19T03:27:30.352798+00:00 | 2022-05-13T03:37:33 | 8ac5f4379ea4a91665ce1a8749e1eda8f4f3e955 | {
"blob_id": "8ac5f4379ea4a91665ce1a8749e1eda8f4f3e955",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-13T03:37:33",
"content_id": "10793b7d50eeeeaee181b1c57e18b7269084b1ea",
"detected_licenses": [
"curl",
"Apache-2.0"
],
"directory_id": "8b06ec428600e7f4b36b1544b5b75cd2527b2e8e",... | stackv2 | /*
* v1_security_context.h
*
* SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.
*/
#ifndef _v1_security_context_H_
#define _v1_security_context... | 2.015625 | 2 |
2024-11-19T03:27:30.889899+00:00 | 2019-08-23T00:53:35 | 3e5feb02b5bdf102ad023bb907438528b54fd9fa | {
"blob_id": "3e5feb02b5bdf102ad023bb907438528b54fd9fa",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-23T00:53:35",
"content_id": "046cfa28d923b254ad9bd352ea2d4091733c5052",
"detected_licenses": [
"MIT"
],
"directory_id": "09884947c578015a250e41dd8b7c694685490b66",
"extension": "c"... | stackv2 | /****************************************************************************
* FILE: alignment.c
* AUTHOR: William Stafford Noble, Charles E. Grant
* CREATE DATE: 10/28/2004
* PROJECT: EVOMCAST
* DESCRIPTION: Multiple alignment of biological sequences.
* COPYRIGHT: 1998-2008, UCSD, UCSC, UW
********************... | 2.65625 | 3 |
2024-11-19T03:27:30.979380+00:00 | 2019-08-22T15:10:54 | a2be9eed98d4e0729b74f0b0c9046b7879aee579 | {
"blob_id": "a2be9eed98d4e0729b74f0b0c9046b7879aee579",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-22T15:10:54",
"content_id": "be0fb3665502e7ca97be22bbc2017033ce9f3369",
"detected_licenses": [
"MIT"
],
"directory_id": "04e4d2a459b0d794ae8473bd5349b8983e9b82b1",
"extension": "c"... | stackv2 | #include <stdio.h>
#define LOGGER_COLOR_RED "\x1b[31m"
#define LOGGER_COLOR_GREEN "\x1b[32m"
#define LOGGER_COLOR_YELLOW "\x1b[33m"
#define LOGGER_COLOR_BLUE "\x1b[34m"
#define LOGGER_COLOR_PURPLE "\x1b[35m"
#define LOGGER_COLOR_CYAN "\x1b[36m"
#define LOGGER_COL... | 2.359375 | 2 |
2024-11-19T03:27:31.116488+00:00 | 2018-04-27T20:58:23 | 446a7b1ce19f03c381c988bfa86562864e1cdd93 | {
"blob_id": "446a7b1ce19f03c381c988bfa86562864e1cdd93",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-27T20:58:23",
"content_id": "317e6db8d8d95f776793fc6d4660ead70fd04609",
"detected_licenses": [
"MIT"
],
"directory_id": "25c32221edba7bd49987ee1b26d14e07f7debd2e",
"extension": "h"... | stackv2 | #ifndef INC_PINMAP_H_
#define INC_PINMAP_H_
/*
* Format:
* High: port number
* 0 - A
* 1 - B
* 2 - C
* 3 - D
* 4 - E
* Low: pin number
* 0 - 0
* 1 - 1
* 2 - 2
* 3 - 3
* 4 - 4
* 5 - 5
* 6 - 6
* 7 - 7
* 8 - 8
* 9 - 9
* 10 - A
* 11 - B
* 12 - C
* 13 - D
* 14 - E
* 15 - F
*/
#define PIN_... | 2.203125 | 2 |
2024-11-19T03:27:31.338698+00:00 | 2020-07-06T16:11:59 | a82a05491be90b211cbf98d4faa31f212f17d91d | {
"blob_id": "a82a05491be90b211cbf98d4faa31f212f17d91d",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-06T16:11:59",
"content_id": "895fcdd7fd07acd256b45a93a3857990396f788b",
"detected_licenses": [
"MIT"
],
"directory_id": "e16b04c283e0d5ed568aa5152597440f740a4bbb",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include "export.h"
#include "nr.h"
/******************************************************************************/
IDL_LONG ccorrelate
(int argc,
void * argv[])
{
IDL_LONG nx;
float * xvec;
float * xweight;
IDL_LONG ny;
... | 2.265625 | 2 |
2024-11-19T03:27:31.405685+00:00 | 2020-10-23T22:06:50 | 7b0a26f5d3523f731cbf98663dc33cfa8e5855eb | {
"blob_id": "7b0a26f5d3523f731cbf98663dc33cfa8e5855eb",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-23T22:06:50",
"content_id": "4f4ad52c8f3e7c78284aa2ebd86b8c041de3de6e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6068b4c5cb1708f556e32ea04e02a05caf63aa60",
"extensio... | stackv2 | #ifndef __HELPER_H__
#define __HELPER_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static bool string_match(const char *string, const char *stringMaster) {
int i;
bool val = true;
for (i = 0; i < strlen(stringMaster); i++) {
#ifdef CONFIG_BOT_CASE_SENSITIVE
if (*(string + i) != *... | 2.671875 | 3 |
2024-11-19T03:27:31.948910+00:00 | 2023-07-30T18:23:24 | 36830169d4ca8b683f732a9ae53d34afac2ece0a | {
"blob_id": "36830169d4ca8b683f732a9ae53d34afac2ece0a",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-30T18:23:24",
"content_id": "90580bfc9474d7f8a1dd564ebb878173b41f772d",
"detected_licenses": [
"MIT"
],
"directory_id": "1e94cb735c55ac9191cd2cf6cb0d187a2e6704f2",
"extension": "c"... | stackv2 |
@proc int m_vprintf( int str, char *format, va_list ap )
{
int len;
if( str ) m_clear(str); else str = m_create(10,1);
len = vsnprintf( m_buf(str), m_bufsize(str), format, ap );
if( len >= m_bufsize(str) ) {
m_setlen(str, len+1 );
len=vsnprintf( m_buf(str), m_bufsize(str), format, ap );
}
m_setlen(st... | 2.296875 | 2 |
2024-11-19T03:27:34.530117+00:00 | 2015-12-09T14:55:43 | e707add5a53006af5d5f8a6e5af60b6e7a15decc | {
"blob_id": "e707add5a53006af5d5f8a6e5af60b6e7a15decc",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-09T14:55:43",
"content_id": "6d6b36eb1f8651046f98e02bb993b6335473efd6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "27a7e890a1004dabaf08d0693f848301e077dc6b",
"extensio... | stackv2 | /*! XEString.h
********************************************************************************
# # #### ##### #####
# # # # # # # #
## # # # # #
## # ##### #####
... | 2.625 | 3 |
2024-11-19T03:27:34.825612+00:00 | 2021-06-27T03:05:36 | 65fb4c5ee9e12c6f7632786d190046d44abb87fa | {
"blob_id": "65fb4c5ee9e12c6f7632786d190046d44abb87fa",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-27T03:05:36",
"content_id": "23c30a277e6356488257d169fae94d51411407ea",
"detected_licenses": [],
"directory_id": "3cb90ee391826c069cb8dceded23edc847affe4d",
"extension": "h",
"filename":... | stackv2 | #include <stdio.h>
#include <stdlib.h>
typedef struct nodo
{
int valor;
struct nodo *esq, *dir;
} * ABin;
ABin newABin(int r, ABin e, ABin d);
ABin RandArvFromArray(int v[], int N);
ABin cloneABin(ABin a);
void dumpABin(ABin a, int N);
void freeABin(ABin a);
// Questão 1
ABin removeMenor(ABin *a);
void remov... | 2.296875 | 2 |
2024-11-19T03:27:36.663737+00:00 | 2014-03-12T17:39:40 | 58798ceb9e07abe48ef7c80f9f29d8e36a9cdf5a | {
"blob_id": "58798ceb9e07abe48ef7c80f9f29d8e36a9cdf5a",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-12T17:39:40",
"content_id": "bbf6e42d5bd462c39d5ed7d640af92814a2e231d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6629e94cbf5f102855c8900175ebd43db3c389d4",
"extensio... | stackv2 | /* Copyright 2011; All Rights Reserved
* Please see http://www.coactionos.com/license.html for
* licensing information.
*/
/*! \addtogroup UNI_FS
* @{
*/
/*! \file */
#include "unistd_fs.h"
#include "unistd_flags.h"
/*! \details This function removes the directory specified by \a path.
*
* \return Zero on su... | 2.40625 | 2 |
2024-11-19T03:27:36.769567+00:00 | 2016-02-10T14:25:01 | 16482901c2260e432f820bdefe88bec1db828e68 | {
"blob_id": "16482901c2260e432f820bdefe88bec1db828e68",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-10T14:25:01",
"content_id": "f2ffa439637dc38586959b5e8d988a3fc60d1f9c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "eac082cdefbcdcece7834375362ddb88a877a191",
"extensio... | stackv2 | /**
* Copyright 2007-2010 University Of Southern California
*
* 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 b... | 2.46875 | 2 |
2024-11-19T03:27:37.031776+00:00 | 2020-07-08T18:19:43 | 4c955db3e1b331348366967eadae542b6bba24a0 | {
"blob_id": "4c955db3e1b331348366967eadae542b6bba24a0",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-08T18:19:43",
"content_id": "6483bd1ce6a51a2f770fee4f2e8fd2db1518629a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c7421e5b83767e0242f99b78311b2cac8fe80747",
"extensio... | stackv2 | #include <os.h>
#define THREAD_PRIORITY 5
#define THREAD_STACK_SIZE 512
#define THREAD_TIMESLICE 5
ALIGN(RT_ALIGN_SIZE)
static char thread2_stack[1024];
static struct rt_thread thread2;
ALIGN(RT_ALIGN_SIZE)
static char thread3_stack[1024];
static struct rt_thread thread3;
static OS_Q DATA_Msg;... | 2.5625 | 3 |
2024-11-19T03:27:42.567667+00:00 | 2017-09-09T13:48:09 | 98f3ed8e4baf9b399c90feacf0b90352382cea93 | {
"blob_id": "98f3ed8e4baf9b399c90feacf0b90352382cea93",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-09T13:48:09",
"content_id": "30411e521317753d45710b6dfdfbe51e877542ba",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e300b6c991a4c2861d93d334a0c2c0355994514a",
"extensio... | stackv2 |
#include "../atrshmlog_internal.h"
#include <string.h>
#include <stdlib.h>
/*******************************************************************/
/**
* \file atrshmlogimpl_get_env.c
*/
/**
* \n Main code:
*
* \brief Get the environment value for the env var with the suffix.
*
* The prefix is set from attach... | 2.171875 | 2 |
2024-11-19T03:27:42.761461+00:00 | 2017-06-16T02:10:59 | 1cec91f1850b80e67fbaff3ba9920f394b8a3f78 | {
"blob_id": "1cec91f1850b80e67fbaff3ba9920f394b8a3f78",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-16T02:10:59",
"content_id": "64da4d9fdcb6e61035468de9a1d28db6e493968f",
"detected_licenses": [
"MIT"
],
"directory_id": "5f786fa876e49f3036f3e62c1c83acfcdb44b537",
"extension": "c"... | stackv2 | #include <SFML/Graphics/Image.h>
sfImage* sfImage_createFromColor_helper (unsigned int width, unsigned int height, sfColor* color)
{
return sfImage_createFromColor (width, height, *color);
}
void sfImage_getSize_helper (const sfImage* image, sfVector2u* size)
{
*size = sfImage_getSize (image);
}
void sfIm... | 2.46875 | 2 |
2024-11-19T03:27:42.851938+00:00 | 2018-03-16T05:48:41 | 860e5971f5095814bf558809dc424942a5b53401 | {
"blob_id": "860e5971f5095814bf558809dc424942a5b53401",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-16T05:48:41",
"content_id": "edb302efe857f90b1a1d1a8d88ad1a6562f3001e",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "3c7d839c81df143e8b0fe380f77ef045b8f76b2d",
"... | stackv2 | #include <sys/pic.h>
#include <sys/defs.h>
void init_pic()
{
unsigned char a1, a2;
a1 = inb(PIC1_DATA); // save masks
a2 = inb(PIC2_DATA);
outb(PIC1_COMMAND, ICW1_INIT+ICW1_ICW4); // starts the initialization sequence (in cascade mode)
outb(PIC2_COMMAND, ICW1_INIT+ICW1_ICW4);
outb(PIC... | 2.5625 | 3 |
2024-11-19T03:27:43.011920+00:00 | 2020-08-19T15:21:53 | a351b900837a2df00f3a1b270d34828cd3d66a34 | {
"blob_id": "a351b900837a2df00f3a1b270d34828cd3d66a34",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-19T15:21:53",
"content_id": "0316aad06bb0fb8872b19a599419bc221d0ff050",
"detected_licenses": [
"MIT"
],
"directory_id": "4fa1e0711c3023a94035b58f6a66c9acd4a7f424",
"extension": "c"... | stackv2 | /***************************************************************************/
/********************* Sample Dialog Procedures **************************/
/***************************************************************************/
#include "cui.h"
#include "dialogs.h"
#include <stdlib.h>
#include <ctype.h>
#defin... | 2.203125 | 2 |
2024-11-19T03:27:43.172722+00:00 | 2021-05-13T01:04:19 | 5ddcc8cce0c2b73e84de51468616cc4aca48b955 | {
"blob_id": "5ddcc8cce0c2b73e84de51468616cc4aca48b955",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-13T01:04:19",
"content_id": "b2e140dbf6d8927bc4a49d6d316274b01873e294",
"detected_licenses": [
"MIT"
],
"directory_id": "f3bb43421dd82cb1d62f48f7e78a80ea08bbe9a0",
"extension": "c",
... | stackv2 | /*
TRABALHO DE IMPLEMENTACAO DO CÓDIGO DE HUFFMAN (COMPRESSÃO E DESCOMPRESSÃO DE ARQUIVOS)
AUTOR: LUIZ GUSTAVO FALQUETO e ERIC RABELO
DATA CRIACAO: 12/05/2021
ARQUIVO: huffman.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "huffman.h"
/*Função responsável por criar um nó
Re... | 3.6875 | 4 |
2024-11-19T03:27:43.236039+00:00 | 2020-01-30T01:42:24 | 543c2a508538a5b495bd4caa21875bf8d399011d | {
"blob_id": "543c2a508538a5b495bd4caa21875bf8d399011d",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-30T01:42:24",
"content_id": "a7dad93d29994673acbd0e7081699f69488d56a3",
"detected_licenses": [
"MIT"
],
"directory_id": "cd8d14ba54dd8bb41e2a45daaeb3a7b79759112a",
"extension": "c"... | stackv2 | #include "sub_suite.h"
#include <CUnit/CUnit.h>
#include "../core/cpu.h"
#include "../core/execute.h"
int init_sub_suite(void) {
cpu_init();
return 0;
}
int clean_sub_suite(void) {
cpu_clean();
return 0;
}
void sub_A_r_test(void) {
cpu_reset();
A = 0x29;
D = 0x11;
cpu->mem[0] = 0x92; // SUB D
cpu_fe... | 2.328125 | 2 |
2024-11-19T03:27:43.381847+00:00 | 2013-04-05T18:25:42 | 586320d776f67b749e2b44c2362314b30717f50c | {
"blob_id": "586320d776f67b749e2b44c2362314b30717f50c",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-05T18:25:42",
"content_id": "0d1de5e50e734960a88b49e317248f948cc7ef51",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "0bc9b146567d5edc4a97929b17d1f2c4cb3a6f56",
... | stackv2 | /*
* Copyright (c) 2004-2006 High Performance Computing Center Stuttgart,
* University of Stuttgart. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*
*/
#ifndef OPAL_MEMCHECKER_BASE_H
#define OPAL_MEMCHECKER_BASE_H
#include "opal_config.h"
#i... | 2 | 2 |
2024-11-19T03:27:44.416251+00:00 | 2019-06-18T16:26:06 | 65a02323025b2b1b999504b5a0568ca7484f82a1 | {
"blob_id": "65a02323025b2b1b999504b5a0568ca7484f82a1",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-18T16:26:06",
"content_id": "3b12f39644c053d83eaf6bffafba5c562f92592d",
"detected_licenses": [
"MIT"
],
"directory_id": "4c21b3c7fdb5056c8b10907492eb90fdfa9c46bf",
"extension": "c"... | stackv2 | #include <kernel/drivers/cmos.h>
#include <kernel/drivers/idt.h>
#include <kernel/x86.h>
static int creg = 0x00; //century register
int check_updating() {
outb(0x70, 0x0A);
return (inb(0x71) & 0x80);
}
uint8_t get_reg(int reg) {
outb(0x70, reg);
return inb(0x71);
}
cmos_td_t cmos_rtc_gettime() {
... | 2.53125 | 3 |
2024-11-19T03:27:44.579964+00:00 | 2023-07-17T16:32:04 | 694b5c3b721d83313b842641cc4f334a0439d99f | {
"blob_id": "694b5c3b721d83313b842641cc4f334a0439d99f",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-17T16:32:04",
"content_id": "968d6fb514dba8efc8f9bc1f4e996e3a31bf684b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1db673907c7946c2ea857cc9aa8b6f7f4060e36a",
"extens... | stackv2 | /*
* File C_HJLIST.C
* Get Hanja List
* '95.9.9-10,22
* Written by Inkeon Lim
*/
#include "hanin.h"
#include "hancode.h"
void* malloc(size_t size);
void free(void *p);
byte *code_gethanjalist(byte *hangul, int *curcharp)
{
byte *hanjalist;
int index;
if (!ishangul1st(hangul, 0))... | 2.46875 | 2 |
2024-11-19T03:27:45.172049+00:00 | 2021-04-01T04:57:12 | b127c70c41746152d7b444fb98cc9801583cf7a3 | {
"blob_id": "b127c70c41746152d7b444fb98cc9801583cf7a3",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-01T04:57:12",
"content_id": "59db7b91cd0d0aabf97dafb9a74c14ab73e537b2",
"detected_licenses": [
"MIT"
],
"directory_id": "17d448abb3ede525398c737e8fd0000e9d6a2fc6",
"extension": "c",
... | stackv2 | #include "hz-face.h"
typedef struct hz_face_table_node_t hz_face_table_node_t;
struct hz_face_table_node_t {
hz_tag_t tag;
hz_blob_t *blob;
hz_face_table_node_t *prev, *next;
};
struct hz_face_tables_t {
struct hz_face_table_node_t *root;
};
struct hz_face_t {
hz_face_tables_t tables;
hz_fac... | 2.453125 | 2 |
2024-11-19T03:27:45.416919+00:00 | 2017-04-06T12:23:39 | 4a1e87df6d225fd4f325491757f8d0ebc8d139b2 | {
"blob_id": "4a1e87df6d225fd4f325491757f8d0ebc8d139b2",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-06T12:23:39",
"content_id": "ca59e7ef5e40f99cc8b0d9ec7e41f6f33b451938",
"detected_licenses": [
"MIT"
],
"directory_id": "ea826b825706c8857e8c48c55783270a565a206b",
"extension": "c"... | stackv2 | #include "hmi_lcd.h"
#include <stdio.h>
#include <string.h>
#define LCD_BUF_SIZE 256
UART_HandleTypeDef *lcd_uart;
char lcd_buf[LCD_BUF_SIZE];
void hmi_lcd_init(UART_HandleTypeDef *huart)
{
lcd_uart = huart;
}
void lcd_say(char* buf)
{
HAL_UART_Transmit(lcd_uart, buf, strlen(buf), 250);
// all hmi lcd commands ... | 2.4375 | 2 |
2024-11-19T03:27:45.495246+00:00 | 2020-09-09T09:34:03 | 37f497e839ef289070a5958e68ea0f5141590066 | {
"blob_id": "37f497e839ef289070a5958e68ea0f5141590066",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-09T09:34:03",
"content_id": "d54a2a4b7c860b98b8ed115fdac163de59d63524",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e33390d12bacf498d0bc3563aa83758e6e22b003",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
struct Object {
int *nums;
int len;
int target;
};
struct object {
int val;
int index;
};
void print_nums(int *nums, int size)
{
int i;
char *s = "";
printf("[");
for (i = 0; i < size; i++) {
printf("%s%d", s, nums[i]);
s = "... | 3.625 | 4 |
2024-11-19T03:27:45.619164+00:00 | 2020-06-16T20:27:54 | aede006acde3450ea5739cf442efbe532613b062 | {
"blob_id": "aede006acde3450ea5739cf442efbe532613b062",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-16T20:27:54",
"content_id": "acc90e2d44804c789fd3e4478138738b39597188",
"detected_licenses": [
"MIT"
],
"directory_id": "0263eff6bc3140def741aa2c615d486f0b57c9bf",
"extension": "c"... | stackv2 | #include "ush.h"
void mx_push_back_queue(t_queue **queue, char *data, char operation) {
t_queue *back_list = mx_create_queue(data, operation);
t_queue *temp = NULL;
if (*queue == NULL)
*queue = back_list;
else {
temp = *queue;
while (temp->next != NULL)
temp = temp-... | 2.203125 | 2 |
2024-11-19T03:27:45.784585+00:00 | 2020-07-14T16:05:54 | 9d7df1a8f265b23f9da8972423b1d73b4c81e864 | {
"blob_id": "9d7df1a8f265b23f9da8972423b1d73b4c81e864",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-14T16:05:54",
"content_id": "84a8acbb538463efab5c0cc57e37e4a9e3e5eb6d",
"detected_licenses": [
"MIT"
],
"directory_id": "1afc52aab354abf772fc6ecd973a1a517aeccc10",
"extension": "c"... | stackv2 | #pragma once
#include "Stack.h"
/*
---------- Stack -----------
Dynamic array implementation
----------------------------
*/
struct Stack {
Array* arr;
};
Stack* new_stack() {
Stack* this = malloc(sizeof(Stack));
this->arr = new_array();
return this;
}
bool stack_push(Stack* this, void* obj) {
if (this) {
... | 2.984375 | 3 |
2024-11-19T03:27:45.852456+00:00 | 2016-05-15T23:36:54 | 50dc7c1b8e9d87a618e991e76fb25e0ffaf1638f | {
"blob_id": "50dc7c1b8e9d87a618e991e76fb25e0ffaf1638f",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-15T23:36:54",
"content_id": "4dd60c375b6c8ee0b446b643074dcbc44386e45a",
"detected_licenses": [
"MIT"
],
"directory_id": "1081e4c6efbf2d618d69230fcfe11d6c1ba82f63",
"extension": "c"... | stackv2 | /* ************************************************************************** **
* Includes
* ************************************************************************** */
#include "params.h"
#include <stdint.h> // std types
#include <stdbool.h> // bool definition
#include <stddef.h> // size_t
#include <string.... | 2.328125 | 2 |
2024-11-19T03:27:45.951790+00:00 | 2023-08-25T19:54:08 | 1b04c49f93c95387a583e6455779cfa80b03e5fc | {
"blob_id": "1b04c49f93c95387a583e6455779cfa80b03e5fc",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-25T19:54:08",
"content_id": "35f4e0b77b915fc2621230402889541a4dea201f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7353f3e863e2bf80aac9b0e608b80aff16071675",
"extensio... | stackv2 | /**
* Kinesis Video Producer file Auth Callbacks
*/
#define LOG_CLASS "FileAuthCallbacks"
#include "Include_i.h"
/**
* Creates File Auth callbacks
*/
STATUS createFileAuthCallbacks(PClientCallbacks pCallbacksProvider, PCHAR pCredentialsFilepath, PAuthCallbacks* ppFileAuthCallbacks)
{
ENTERS();
STATUS retSt... | 2.0625 | 2 |
2024-11-19T03:27:46.656795+00:00 | 2023-02-24T05:04:09 | 7edd88ebc9d512381e512a80ffa547fa8e005713 | {
"blob_id": "7edd88ebc9d512381e512a80ffa547fa8e005713",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-24T05:04:09",
"content_id": "a735781b2e42966d4bc4ac81968a68260d152cb0",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "cb2bfdcbecde58182bc3ad29468ecf11c198f8c7",
"extens... | stackv2 | #ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
/*#define HAVE_MMAP*/
#ifdef HAVE_MMAP
#undef USE_HASH
#include <sys/mman.h>
#ifdef HAVE_SYS_STAT... | 2.265625 | 2 |
2024-11-19T03:27:46.722373+00:00 | 2021-10-05T06:55:06 | bd86a517f81408986cd7ea7f3452860e7c350402 | {
"blob_id": "bd86a517f81408986cd7ea7f3452860e7c350402",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-05T06:55:06",
"content_id": "a7b5e1577b79b9e6b3931f00f215c49d47bf1f3b",
"detected_licenses": [
"ISC"
],
"directory_id": "bf5d27120cc55eb3b22a69e54c3d5190578956bb",
"extension": "c",
... | stackv2 | /*
* Copyright (c) 2000,2002 Todd C. Miller <Todd.Miller@courtesan.com>
*
* Permission to use, copy, modify, and 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 PROVID... | 2.25 | 2 |
2024-11-19T03:27:46.877869+00:00 | 2016-12-07T11:02:14 | 6364aba0d6e8ae731027501dfc7be3528b9804ac | {
"blob_id": "6364aba0d6e8ae731027501dfc7be3528b9804ac",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-07T11:02:14",
"content_id": "8c4a717102acada2a0c94163ba130d0f8362fd47",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9b8b16e7713721fd9b18cb081846e2270a958b9d",
"extens... | stackv2 | /*
module : size.c
version : 1.3
date : 09/09/16
*/
#include "interp.h"
/*
size : A -> I
Integer I is the number of elements of aggregate A.
*/
/* size.c */
PRIVATE void size_(void)
{
size_t size = 0;
ONEPARAM("size");
switch (stk->op) {
case SET_:
{
int i;
for (i = 0; i... | 2.34375 | 2 |
2024-11-19T03:27:46.995192+00:00 | 2021-05-18T21:35:39 | 9ea0cdeb3eddf532c80aa79d687fed15e8cd1783 | {
"blob_id": "9ea0cdeb3eddf532c80aa79d687fed15e8cd1783",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-18T21:35:39",
"content_id": "090b209edd520cff8362c0dbe5f26675a506539b",
"detected_licenses": [
"MIT"
],
"directory_id": "77ed0474c2861c4b00d77a68eec68b63fd8cd496",
"extension": "c",
... | stackv2 | #include "../../headers/commands/cdCommand.h"
void icd(char **args) {
char des[MAX_PATH_SIZE];
char newPath[MAX_PATH_SIZE];
strcpy(newPath, getcwd_(MAX_PATH_SIZE));
if (args[2] != NULL) { /* More than one arg passed */
fprintf(stderr, "There are too many args\n");
return;
} else i... | 2.6875 | 3 |
2024-11-19T03:27:47.804163+00:00 | 2020-03-25T00:25:14 | 88322ae4da8df0fd379a012c99cbb304a5a3b783 | {
"blob_id": "88322ae4da8df0fd379a012c99cbb304a5a3b783",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-25T00:25:14",
"content_id": "85ba9d6e9bb7f83c77ab0b276344aaeb74a38be2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fc06e91bc10cb6d1e4ffe5bf1040194d708f6d25",
"extensio... | stackv2 | #include "hash_map.h"
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
struct hash_map* hash_map_init(struct hash_map* h, struct hash_trait* trait, int buckets_size)
{
if (buckets_size <= 0) {
return NULL;
}
if (NULL == trait) {
return NULL;
}
// ... | 2.9375 | 3 |
2024-11-19T03:27:47.915093+00:00 | 2017-03-14T10:04:27 | cdaf9c3ba22ec66920d0ffd6eca949fc33d752d5 | {
"blob_id": "cdaf9c3ba22ec66920d0ffd6eca949fc33d752d5",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-14T10:04:27",
"content_id": "ca81b2978f7e42c2a9c5c4a93cfe864171e5ccaf",
"detected_licenses": [
"ISC"
],
"directory_id": "f2aee66440f9ae24df89f45a79f531e773f1ecbc",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2015-2017 Contributors as noted in the AUTHORS file
*
* This file is part of Solo5, a unikernel base layer.
*
* 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 permiss... | 2.109375 | 2 |
2024-11-19T03:27:48.252770+00:00 | 2020-07-25T23:54:47 | 7f4f9a931c259e88febc34eb41c967ea53043331 | {
"blob_id": "7f4f9a931c259e88febc34eb41c967ea53043331",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-25T23:54:47",
"content_id": "0e2a2abef57d8455bbf3095b913103ff63ee7906",
"detected_licenses": [
"MIT"
],
"directory_id": "cf0fb613049eaf4bce6a9ab14661ed9c6bc9439b",
"extension": "h"... | stackv2 | /*
Copyright (c) 2020 MrDave1999 (David Román)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... | 2.046875 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.