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-18T22:25:39.499584+00:00 | 2021-02-07T10:46:14 | 31d8d48b2a24e7693f9fda76cfe0c859a5cfcf0f | {
"blob_id": "31d8d48b2a24e7693f9fda76cfe0c859a5cfcf0f",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-07T10:46:14",
"content_id": "0445a9e8eff56bceff3d161be7b008d06195f0fa",
"detected_licenses": [
"MIT"
],
"directory_id": "abfe921df256060c6a3de961cb71b81dc9fe73a7",
"extension": "h"... | stackv2 | #ifndef MARCOLECH_UART_CONTROLLER_H_
#define MARCOLECH_UART_CONTROLLER_H_
#include <stdio.h>
#include <rom.h>
#include <rom_map.h>
#include <interrupt.h>
#include <uart.h>
#include <gpio.h>
#define UART_BUFFER_SIZE 2048
typedef struct UART {
uint32_t uart;
eUSCI_UART_Config uartConfig;
volatile uint8_t b... | 2.078125 | 2 |
2024-11-18T22:25:39.615121+00:00 | 2019-11-09T04:15:05 | ff21965b3cfc9a2e914b31b58a9a6c5cb57b5238 | {
"blob_id": "ff21965b3cfc9a2e914b31b58a9a6c5cb57b5238",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-09T04:15:05",
"content_id": "2f8d3826675bc24e929e8f76a18902f4e0854f01",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "49ad6149a5f5ba5dbea472cb13874a6ceaf5bb69",
"extens... | stackv2 |
#include "kdbmerge.h"
#include "kdb.h"
#include "kdbassert.h"
#include "kdblogger.h"
#include "kdbprivate.h"
#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define INT_BUF_SIZE 11 // Avoid math.h. int has at most 10 digits, +1 for \0
/**
* @brief Get a statistical... | 2.734375 | 3 |
2024-11-18T22:25:39.791440+00:00 | 2023-07-21T14:01:28 | d3f9e87efaf2c46fd6edd7a0296414c5808d1ed0 | {
"blob_id": "d3f9e87efaf2c46fd6edd7a0296414c5808d1ed0",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-21T14:01:28",
"content_id": "b5651b6617c4c6bde2d4d3d38f46c8d3541aa600",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "020ef13aa76bde79e045e170db391f056ea204df",
"extens... | stackv2 | /*
* Copyright (c) 2022 Arm Limited. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 2.171875 | 2 |
2024-11-18T22:25:40.139054+00:00 | 2018-03-01T07:18:24 | 063f2ce95a35528d0d63881fdbeaf00a805abe1f | {
"blob_id": "063f2ce95a35528d0d63881fdbeaf00a805abe1f",
"branch_name": "refs/heads/linguist_test",
"committer_date": "2018-03-01T07:18:24",
"content_id": "a1a0b9117d41b2d0a7f2345adad3e115ea0d3767",
"detected_licenses": [
"MIT",
"Unlicense"
],
"directory_id": "bfc0d7d785be37d7cadfb8d0b479c937dc81d... | stackv2 | //=============================================================================
// RogueList.c
//
// 2015.09.02 by Abe Pralle
//=============================================================================
#include "Rogue.h"
//-----------------------------------------------------------------------------
// List Typ... | 2.5 | 2 |
2024-11-18T22:25:40.273409+00:00 | 2023-08-31T14:23:02 | aad1af4c7786f0054673ead52e4e9edb7bcda337 | {
"blob_id": "aad1af4c7786f0054673ead52e4e9edb7bcda337",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-31T16:35:50",
"content_id": "5e1918bd749e2530e965ffdecd1ea53a22e90caf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "48eb36e1509f2b212ae0fcf3de7f753613d3f613",
"extension"... | stackv2 | #include <mpdecimal.h>
#include <stdio.h>
#include "mpd.h"
#include "set.h"
#include "std.h"
#include "str.h"
#include "value.h"
OPA_BUILTIN
opa_value *opa_arith_abs(opa_value *v)
{
mpd_t *n = opa_number_to_bf(v);
if (n == NULL)
{
return NULL;
}
mpd_t *r = mpd_qnew();
uint32_t status ... | 2.6875 | 3 |
2024-11-18T22:25:40.346536+00:00 | 2022-10-08T07:13:04 | 84734070502d99a074e30f62183c7fce98ffb912 | {
"blob_id": "84734070502d99a074e30f62183c7fce98ffb912",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-08T07:13:04",
"content_id": "9c29f230778ee4d2eb8fa6ee9e876ff6b92e58c3",
"detected_licenses": [
"MIT"
],
"directory_id": "d697e2f8b7c755c37b636ae3c31d4e51f89dab30",
"extension": "c"... | stackv2 | /*****
base.c: Base program source file
*****/
#include <stdlib.h> //only for allocation
#include "base.h"
/*lines of grid. Init. 4*/
int lines=4;
/*Amound of successive pieces needed for the winning condition. No overline. Init. 4*/
int win_cond=4;
/*Global grid; allowed values are only those of enum values. [z][y]... | 3.015625 | 3 |
2024-11-18T22:25:40.419139+00:00 | 2019-08-02T00:32:06 | e129f8f2b893c31a7a1a86044205814c15e1d378 | {
"blob_id": "e129f8f2b893c31a7a1a86044205814c15e1d378",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-02T00:32:06",
"content_id": "50ecdc1cb80c0aec850f423a5ceb0bf4045885bf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c9725b034dfae293d36f7b4dd39179df9bbe6d5c",
"extensio... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include "LinkedList.h"
#include "generico.h"
int parserFromText(FILE* pFile , LinkedList* pLista)
{
int retorno = -1;
int flag=0;
char idEnvio[4096];
char nombrePro[4096];
char km[4096];
char tipoEnt[4096];
Envio* pGen;
while(!feof(pFile))
... | 2.296875 | 2 |
2024-11-18T22:25:40.465944+00:00 | 2022-11-25T14:31:40 | 5dd870bafef2ca9595a9763f40777d81d965ed6e | {
"blob_id": "5dd870bafef2ca9595a9763f40777d81d965ed6e",
"branch_name": "refs/heads/main",
"committer_date": "2022-11-25T14:31:40",
"content_id": "78332aa89750f91b198c3d1373d07a01f639fe83",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c6bbd226758134f7057e381234b14ab0e5f19410",
"extensio... | stackv2 | /*****************************************************************************
* CUSTOM.C - This shows you how to implement a "custom" raster to
* support your own type of display or memory organization.
* What's implemented here is a particularly slow driver for
* the MCGA/VGA in 320x200 256 color mode... | 2.375 | 2 |
2024-11-18T22:25:40.738267+00:00 | 2020-12-31T00:19:26 | 100acb8ffdba782171dbb087d0aeb9fc45b9490b | {
"blob_id": "100acb8ffdba782171dbb087d0aeb9fc45b9490b",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-31T00:19:26",
"content_id": "d61dbd8a4f73292003b8864fdc1dbd0d5ded7efb",
"detected_licenses": [
"MIT"
],
"directory_id": "dc5c92c5d4cc497fc66d24a73114e99f48ee2c6a",
"extension": "h"... | stackv2 | #ifndef SETTINGS_H
#define SETTINGS_H
#include <EEPROM.h>
#include "sound.h"
// Version 2 adds the number of LEDs
// change this whenever the saved settings are not compatible with a change
// It forces a reset from defaults.
#define SETTINGS_VERSION 2
#define EEPROM_SIZE 256
// LEDS
#define NUM_LEDS ... | 2.21875 | 2 |
2024-11-18T22:25:40.793001+00:00 | 2019-08-07T20:21:13 | aee97e7c0587abe4673ac0c831827558bd58b549 | {
"blob_id": "aee97e7c0587abe4673ac0c831827558bd58b549",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-07T20:21:13",
"content_id": "96b3f5e45a40be2c1c8b047b6b2f8c2f951191bc",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4e0466951b74d1a92ebf705d925ddff548e5cbaf",
"extens... | stackv2 | #include "private.h"
#include <Elementary.h>
#include "termio.h"
#include "termpty.h"
#include "termptyops.h"
#include "termiointernals.h"
#include "tytest.h"
#include <assert.h>
#undef CRITICAL
#undef ERR
#undef WRN
#undef INF
#undef DBG
#define CRITICAL(...) EINA_LOG_DOM_CRIT(_termpty_log_dom, __VA_ARGS__)
#define ... | 2.203125 | 2 |
2024-11-18T22:25:40.987824+00:00 | 2019-06-13T20:04:52 | dd904abd58366df0d1e342fcfc0e0a7658385f26 | {
"blob_id": "dd904abd58366df0d1e342fcfc0e0a7658385f26",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-13T20:04:52",
"content_id": "900572d0950c95899867b7f4a2c90c6de438507a",
"detected_licenses": [
"MIT"
],
"directory_id": "7ab43c4f5b8fe4669b14914f3015e07b950ff275",
"extension": "c"... | stackv2 |
// This code is for 2nd solution of Project Euler Problem 4.
// redjo99 updated in 11.June.
#include<stdio.h>
int findPalindromicNum(int n, int arr[]) {
int digit = 0;
int is_palindromic, palindromic_num = 0;
int is_duplicated;
int max = n * n;
int number, cnt;
while (max > 0) {
max /= 10;
digit++;
}
int... | 3.59375 | 4 |
2024-11-18T22:25:41.051708+00:00 | 2020-02-11T03:32:46 | 55fd40ea6346a5d363c1b8fe5758a987778fdcec | {
"blob_id": "55fd40ea6346a5d363c1b8fe5758a987778fdcec",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-11T04:57:00",
"content_id": "151bdcf7b42a91fcec19ccddef2ba46d62c0649e",
"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>
*/
#ifndef _MIKU_CMD_H__
#define _MIKU_CMD_H__
struct smc_message {
union {
u32 value;
struct {
u32 arg : 24;
u8 cmd : 7; /* Also act as return */
u8 complete : 1;
};
};
};
typede... | 2.03125 | 2 |
2024-11-18T22:25:41.428766+00:00 | 2016-02-08T01:01:27 | bbc9f7b1f46f6194e9ecc4ae2237a67bce80c411 | {
"blob_id": "bbc9f7b1f46f6194e9ecc4ae2237a67bce80c411",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-08T01:01:27",
"content_id": "c392d50f0d61258f12d5dd339b953c68b3f819d7",
"detected_licenses": [
"MIT"
],
"directory_id": "f0a2f33cf2031726b9c65a6ddbd77516fc266395",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "stuff.h"
#define ListPointOutFile "points.list"
int show_edges(strong_list,outimage)
SEGMENTS_LIST *strong_list;
byte *outimage;
{
extern IMAGE im_struct;
extern byte *image;
extern int Overlay,
CheckContourDir,
EndPointNum,
OutputSingleContour,
Debug,
OutputLis... | 2.15625 | 2 |
2024-11-18T22:25:41.511769+00:00 | 2019-05-01T01:55:11 | d05ad96b8cedf952c90865d5965636c1bdafedf5 | {
"blob_id": "d05ad96b8cedf952c90865d5965636c1bdafedf5",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-01T01:55:11",
"content_id": "0de9fd1c0ab8afde54638ed5c8dcd1d9ebc49556",
"detected_licenses": [
"MIT"
],
"directory_id": "aef1a332e03dbf50100b0dce6435bb4deb70951e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <ctype.h>
#define OUT 0
#define IN 1
#define COLUMNS 18
int main()
{
int c, is_space, lengths[COLUMNS];
int cur_len = 0, state = OUT;
for (int i = 0; i < COLUMNS; ++i) lengths[i] = 0;
while ((c = getchar()) != EOF) {
is_space = isspace(c);
if (is_space) {
state = OUT;
if... | 3.203125 | 3 |
2024-11-18T22:25:41.636676+00:00 | 2018-05-23T06:55:18 | 3a40ffd29ce2693d79296cc47bff4e5867e8f477 | {
"blob_id": "3a40ffd29ce2693d79296cc47bff4e5867e8f477",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T06:55:18",
"content_id": "024f20c220adbc148c46da805b3182a706723d34",
"detected_licenses": [
"MIT"
],
"directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd",
"extension": "c"... | stackv2 | // nanhai.c
#include <ansi.h>
inherit NPC;
void create()
{
set_name(HIW "白虎" NOR, ({ "white tiger", "white", "tiger" }) );
set("title", HIC "神兽" NOR);
set("gender", "男性");
set("age", 5);
set("long", @LONG
这是一只巨大的白虎,雄壮无比。乃为太白金星的坐骑。
LONG );
set("combat_exp", 10000000);
... | 2.046875 | 2 |
2024-11-18T22:25:41.713699+00:00 | 2018-03-28T13:04:20 | 7e7a734e812261e9300cadaab484da32a34cf93e | {
"blob_id": "7e7a734e812261e9300cadaab484da32a34cf93e",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-28T13:04:20",
"content_id": "2d64ddffae96f396716f7bcac639f6e82146fdc0",
"detected_licenses": [
"Unlicense"
],
"directory_id": "d92bbee3dc175823068b9fee52662df005d85365",
"extension... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft/ds/sds.h :+: :+: :+: ... | 2.359375 | 2 |
2024-11-18T22:25:42.951324+00:00 | 2017-10-10T13:58:49 | 8bf9f115c58f26fdc1d43a694906e62f684bd24b | {
"blob_id": "8bf9f115c58f26fdc1d43a694906e62f684bd24b",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-10T13:58:49",
"content_id": "3c9071ce99ae3fe2e341a0de86d51f15b963f3d8",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "b710f557142a231574ba14927ece355f159f8332",
"extens... | stackv2 | /*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... | 2.25 | 2 |
2024-11-18T22:25:43.491607+00:00 | 2021-10-03T09:32:18 | 390193064f9afddf823e08346674dd71bbb8b31a | {
"blob_id": "390193064f9afddf823e08346674dd71bbb8b31a",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-03T09:32:18",
"content_id": "ef62517753ac7960dfe001db4db349c5fc3aea81",
"detected_licenses": [
"MIT"
],
"directory_id": "a5375243d1c56a94088c1feaf69ee127cea0d2f2",
"extension": "h"... | stackv2 | #define STRLEN 100
// enum to switch between types
typedef enum {
INT,
FLOAT,
STR
}
Type;
// union to store only one element per hash table
typedef union {
int _int;
float _float;
char _str[STRLEN];
}
Values;
// each linked list slot
struct list_slot {
Values value;
struct list_slot * next;
};
typed... | 2.65625 | 3 |
2024-11-18T22:25:44.205792+00:00 | 2023-08-12T15:50:31 | 39c60cb6aff7d66e845bec22e7767b10513420ae | {
"blob_id": "39c60cb6aff7d66e845bec22e7767b10513420ae",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-12T15:50:31",
"content_id": "c0e11dabcaa72b4fb570afd9c55b5c68e6f0a034",
"detected_licenses": [
"MIT"
],
"directory_id": "37583ad8f2a31ea5f1cbb38ddaa54a2b4c04ce37",
"extension": "c"... | stackv2 | char *BGBCC_BSRA_EatWhite(char *cs)
{
return(BGBCP_EatWhite(cs));
}
char *BGBCC_BSRA_EatWhiteNoLinebreak(char *cs)
{
return(BGBCP_EatWhiteNLb(cs));
}
char *BGBCC_BSRA_EatWhiteOnlyNoLinebreak(char *cs)
{
return(BGBCP_EatWhiteOnly2(cs));
}
char *BGBCC_BSRA_ParseTokenBasic(char *cs, char *tb)
{
char *cs1;
int ty;
... | 2.28125 | 2 |
2024-11-18T22:25:44.457340+00:00 | 2021-09-03T13:41:18 | 1895fdf120da8ecbea0fd79758874bfb64ebed02 | {
"blob_id": "1895fdf120da8ecbea0fd79758874bfb64ebed02",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-03T13:41:18",
"content_id": "ebe9054f235f59027121307215cbf18e25bc45fe",
"detected_licenses": [
"MIT"
],
"directory_id": "fb7125af966551df742592b455ca923b5a25dfc2",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "fun.h"
int Input(const char *filename, int **array, int *size)
{
int i;
FILE *file;
file = fopen(filename, "r");
if (file == NULL)
{
return -1;
}
if (fscanf(file, "%d", size) != 1)
{
fclose(file);
return -2;
}
*array =... | 2.765625 | 3 |
2024-11-18T22:25:44.607791+00:00 | 2016-11-21T05:29:52 | 165b083d418b0aeea47042064d4c1a3d9716968b | {
"blob_id": "165b083d418b0aeea47042064d4c1a3d9716968b",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-21T05:29:52",
"content_id": "7fe7aaf69805e1b4767d0b1cb548da12e854534c",
"detected_licenses": [
"TCL"
],
"directory_id": "6809e501b6d10ac80ddef40aedf637142cf05c39",
"extension": "c"... | stackv2 | /*
* proWrapTkMain.c --
*
* Replacement for Tk_Main for applications that use TclPro Wrapper.
* This API now exists for backwards compatibility. Through some
* nice code cleanup you can see that it boils down to a hook
* call to initialize the wrapper and then it just uses the
# regular Tk_Main.
*
* Copyrigh... | 2.046875 | 2 |
2024-11-18T22:25:45.079881+00:00 | 2021-09-20T16:07:58 | d88c3ddf1d0c860c577833405ea77b0db31fdaf2 | {
"blob_id": "d88c3ddf1d0c860c577833405ea77b0db31fdaf2",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-20T16:07:58",
"content_id": "a8c5f56418f0b9824c05bd4c19338c299a550541",
"detected_licenses": [
"MIT"
],
"directory_id": "1d4d9e7a0f40d9fef52b3cb47e6a383b4cc293c8",
"extension": "h",
... | stackv2 | /*
*
*/
#ifndef SUPPLY_TIMER_H
#define SUPPLY_TIMER_H
#include <avr/io.h>
#include <stdint.h>
enum { /* prescaler values for 0 & 1 */
TIMER_01_PRESCALER_0 = (0), /* default value, disables the counter */
TIMER_01_PRESCALER_1 = (1 << CS00), /* no prescaling */
TIMER_01_PRESCALER_8 = (1 <... | 2.5625 | 3 |
2024-11-18T22:25:45.500626+00:00 | 2021-08-21T11:29:30 | 89843acc815c33d27a7e409da2e6ea607ee78343 | {
"blob_id": "89843acc815c33d27a7e409da2e6ea607ee78343",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-21T11:29:30",
"content_id": "a4e9b1deaf06f589d2813d082856fc6ff555accf",
"detected_licenses": [
"MIT"
],
"directory_id": "8fcf6e477f70eccecf00ad3c0947d88d2c76c8e9",
"extension": "h"... | stackv2 | //kspace.h
//Kernel space allocator
//Bryan E. Topp <betopp@betopp.com> 2021
#ifndef KSPACE_H
#define KSPACE_H
#include <sys/types.h>
#include <unistd.h>
#include "hal_frame.h"
#define alignof(x) __alignof__(x)
//Allocates pages in kernel-space to satisfy the given size and alignment.
//Backs them with unique fram... | 2.28125 | 2 |
2024-11-18T22:25:45.984801+00:00 | 2019-02-23T16:43:30 | 0dedb95464581a716ad2fd54cf19201a970f13dc | {
"blob_id": "0dedb95464581a716ad2fd54cf19201a970f13dc",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-23T16:43:30",
"content_id": "083db6212e5c714c453b44c9f339eec4549bd9e9",
"detected_licenses": [
"MIT"
],
"directory_id": "fdd442a63fa2c608793458fd11f10186444fafc6",
"extension": "c"... | stackv2 | #include "enkf.h"
int debug_mode;
int verbose_mode;
int main(int argc, char *argv[])
{
char paramtbl_fn[MAXSTRING];
char calib_fn[MAXSTRING];
char pihm_dir[MAXSTRING];
char output_dir[MAXSTRING];
char project[MA... | 2.328125 | 2 |
2024-11-18T22:25:46.087639+00:00 | 2012-04-12T20:06:27 | 0806718d5c1db9972a74aed7a5664c0cfb226f62 | {
"blob_id": "0806718d5c1db9972a74aed7a5664c0cfb226f62",
"branch_name": "refs/heads/master",
"committer_date": "2012-04-12T20:06:27",
"content_id": "37c5201241c2ab28bfc8060e2f0a2775d2234ed8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c0bb4383bb1dd8b3a3f27ccf10207cbb6ab184b0",
"extensio... | stackv2 |
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <pthread.h>
#include <sys/time.h>
#include "queue.h"
typedef struct queue {
void **data;
int max_size;
int current_size;
int in;
int out;
pthread_mutex_t mutex;
pthread_cond_t can_push;
pthread_cond_t can_pop;
}que... | 3.03125 | 3 |
2024-11-18T22:25:46.206763+00:00 | 2017-03-19T03:14:10 | e8a554c24aa95e44c2e7d7ac21c817d271022a36 | {
"blob_id": "e8a554c24aa95e44c2e7d7ac21c817d271022a36",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-19T03:14:10",
"content_id": "1018826e6ca148c40ca6a789c125b4f0a0aa1095",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "80ea830eeea7d4ad4084e6f24a75815e174f2bc8",
"extensio... | stackv2 | "rotateFont Help\n",
"============\n",
"rotateFont {[mode][mode options][rotation options][shared options][files]}*\n",
"rotateFont [other options]\n",
"\n",
"This program is based on the 'tx' program. Without the rotation options, this\n",
"program behaves exactly like the tx program. See 'rotateFont -u' for a list of... | 2.453125 | 2 |
2024-11-18T22:25:46.437278+00:00 | 2017-11-15T01:05:24 | d3f4a150f5c226613fdc595a7bf610743bb06fd7 | {
"blob_id": "d3f4a150f5c226613fdc595a7bf610743bb06fd7",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-15T01:05:24",
"content_id": "f6ebb4f5daf26630a43212c8a3519275beecaef1",
"detected_licenses": [
"MIT"
],
"directory_id": "d832626749c9b641d74b4bc4b2e0cde744043bb6",
"extension": "h"... | stackv2 | /**
* @file image.h
*
* Copyright(c) 2015 大前良介(OHMAE Ryosuke)
*
* This software is released under the MIT License.
* http://opensource.org/licenses/MIT
*
* @brief 画像を扱うための共通ヘッダ
* @author <a href="mailto:ryo@mm2d.net">大前良介(OHMAE Ryosuke)</a>
* @date 2015/02/07
*/
#ifndef IMAGE_H_
#define IMAGE_H_
#include <s... | 2.828125 | 3 |
2024-11-18T22:25:46.847617+00:00 | 2019-08-14T12:46:20 | 4cfc7f40188571aea29c687ac4135c191fd32951 | {
"blob_id": "4cfc7f40188571aea29c687ac4135c191fd32951",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-14T12:46:20",
"content_id": "717a94c004a5ea398e43fe213020a015a2fae9c8",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ed7df3a61005d485a2aa5db2cc5731f3e2233d04",
"extens... | stackv2 | #include "Python.h"
#include "structmember.h"
/*
this functionality is built-in in Python 3.2+
*/
#if PY_MAJOR_VERSION < 3
#include "_typespec.h"
#define _LOCAL_ __attribute__((visibility("hidden")))
/*
from typeobject.c
*/
static void
clear_slots(PyTypeObject *type, PyObject *self)
{
Py_ssize_t i, n;
... | 2.1875 | 2 |
2024-11-18T22:25:47.157515+00:00 | 2019-07-26T14:54:56 | bdee583e3bffdf30fdd2d42b5280a222034552f2 | {
"blob_id": "bdee583e3bffdf30fdd2d42b5280a222034552f2",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-26T14:54:56",
"content_id": "0a686ab9b28a333bb0ee619c70fa8ae9d7b618b3",
"detected_licenses": [
"MIT"
],
"directory_id": "9e927c7b981350ca747342ef5d0ac05ce306bd36",
"extension": "c"... | stackv2 | #include <string.h>
#include "vm.h"
#include "vm_thread.h"
#include "vm_util.h"
#include "vm_string.h"
#include "vm_hashmap.h"
#include "vm_array.h"
#include "vm_op.h"
#include "vm_conf.h"
#include "vm_mainloop.h"
vm_memory_t vm_mem_const;
vm_memory_t vm_mem_hashmap;
vm_memory_t vm_mem_array;
vm_memory_t vm_mem_strin... | 2.25 | 2 |
2024-11-18T22:25:48.859459+00:00 | 2018-03-26T09:36:56 | 0729acd2772c73440e34e081288dd83ed824173d | {
"blob_id": "0729acd2772c73440e34e081288dd83ed824173d",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-26T09:36:56",
"content_id": "6d96618a17747ee17cd01e6ed8fcdaab79598608",
"detected_licenses": [
"MIT"
],
"directory_id": "d9efae904eec9219abaaac95edd8d80a52a288ac",
"extension": "c"... | stackv2 | #include "usb_app.h"
/*******************************************************************************
* Function Name : USB_HP_CAN1_TX_IRQHandler
* Description : This function handles USB High Priority or CAN TX interrupts
* requests.
* Input : None
* Output : None
* Return ... | 2.109375 | 2 |
2024-11-18T22:25:48.957259+00:00 | 2014-06-14T05:56:06 | 039b6fead699beb809dc276bb2a842697fc2d658 | {
"blob_id": "039b6fead699beb809dc276bb2a842697fc2d658",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-14T05:56:06",
"content_id": "dd08c295aab32becadbec53ae5756ad67a2b7b7b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "b354c2dfe30a6d3242bdaa7a0b9776c6759770de",
"extens... | stackv2 | /*
* CIOlib - Cartesian Input / Output library
*
* Copyright (c) 2013-2014 Advanced Institute for Computational Science, RIKEN.
* All rights reserved.
*
*/
/**
* @file cio_Unit.C
* @brief cio_Unit Class
* @author aics
*/
#include "cio_DFI.h"
#include <unistd.h> // for gethostname() of FX10/K
/** ... | 2.21875 | 2 |
2024-11-18T22:25:49.196777+00:00 | 2014-06-21T02:16:39 | 2b20a83e6a8d0808913aadaab1c6271375a18c71 | {
"blob_id": "2b20a83e6a8d0808913aadaab1c6271375a18c71",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-21T02:16:39",
"content_id": "d06b2aeb1ebf94418be335123232aabaac8898f2",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "b71a4f8760e8bb81fcd3dd60e94ce39cc0e8aa50",
"extens... | stackv2 | /* The code is referenced to 吉帥虎 ( Original
* link is lost ), Ver 1.2, 2010-2-20
*/
#include <stdint.h>
#include "fft_4096.h"
#include "arm_math.h"
static struct cmplx fft_input[ DATA_LENGTH ];
/* Store the signal to real part of fft_input
* and set the image part of fft_input to 0.
*/
void fft_input_init( int16... | 2.90625 | 3 |
2024-11-18T22:25:49.249540+00:00 | 2020-12-26T14:10:35 | 5cae7389d1fc03ecbc63a6342f18a48f05037308 | {
"blob_id": "5cae7389d1fc03ecbc63a6342f18a48f05037308",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-26T14:10:35",
"content_id": "c9734bed09aaf83aab6baa31db7152e818b9192e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f50c17294df7075d6171c7a666ec3767709b88f0",
"extensio... | stackv2 | #include <stdio.h>
//用到函数和names
#include "names_st.h"
int main(void)
{
names candiate;
get_names(&candiate);
printf("Let's welcome ");
show_names(&candiate);
printf(" to this programe!\n");
return 0;
}
| 2.1875 | 2 |
2024-11-18T22:25:49.415698+00:00 | 2019-06-28T09:32:46 | e5172889cf3b8000ac989bf1181dc4e28295eb58 | {
"blob_id": "e5172889cf3b8000ac989bf1181dc4e28295eb58",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-28T09:32:46",
"content_id": "4a7b08e6f2327144e7b223c69f2146bb7a47b952",
"detected_licenses": [
"MIT"
],
"directory_id": "627ca1b5366e626e636cad149ad24d77fae23da2",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<string.h>
int Split(char** result, char* input, const char* delim){
char *pNext;
int count = 0;
if (input == NULL || strlen(input) == 0)
return 0;
if (delim == NULL || strlen(delim) == 0)
return 0;
pNext = strtok(input, delim);
while (pNext != NULL) {
strcpy(result[count],pNext);... | 2.78125 | 3 |
2024-11-18T22:25:49.896808+00:00 | 2017-12-13T20:35:49 | 5cdc0fd0a45945fe123447e0479df6fde842ad7b | {
"blob_id": "5cdc0fd0a45945fe123447e0479df6fde842ad7b",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-13T20:35:49",
"content_id": "c05620b44f1cc49511393cdb3127102b498bf6fc",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "8b410043cacbcc4af34410ae0aa9cd86d0d32173",
"... | stackv2 | #include <sys/scheduler.h>
void initializePCBList(){
pcbList = (struct task_struct*) kmalloc(4096*10);
pcbHead = NULL;
}
void yield2(){
struct task_struct* prev = currentTask;
currentTask = currentTask->next;
setProcessSpecificMSRs(currentTask);
//TODO Changing the Page tables
switchCr3(currentTask->pml4P);
/... | 2.1875 | 2 |
2024-11-18T22:25:50.254166+00:00 | 2020-10-19T17:38:00 | 4bc50e2bd749c84995b65e89f1c4517f414653ce | {
"blob_id": "4bc50e2bd749c84995b65e89f1c4517f414653ce",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-19T17:38:00",
"content_id": "ec8b9604ef34aab5da94bad5e0829977221d1e16",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "45468be5e620a0c5a8f94268f6e4d8efa086f11d",
"extens... | stackv2 | #ifndef _STR_FUNCTIONS_H
#define _STR_FUNCTIONS_H
#include <stdint.h>
#define BULLET_POINT 254
#define TRUE 1
#define FALSE 0
int strlen(const uint8_t *s);
uint8_t *strcpy(uint8_t dest[], const uint8_t source[]);
int strcmp(const uint8_t *s1, const uint8_t *s2);
int strncmp(const uint8_t *s1, const uint8_t *s2, int n... | 2.15625 | 2 |
2024-11-18T22:25:50.318896+00:00 | 2019-03-24T22:25:19 | 61a3246d7efb40565183a92bd740523c8289ba6a | {
"blob_id": "61a3246d7efb40565183a92bd740523c8289ba6a",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-24T22:25:19",
"content_id": "e5d357223db701a1a705b11f2539ddd79322dcb8",
"detected_licenses": [
"MIT"
],
"directory_id": "6ffceaf18b0f776ce2f8b606c9701eac5fe631d8",
"extension": "h"... | stackv2 | #include <tickit-mockterm.h>
struct TermLogExpectation {
enum {
EXPECT_GOTO = LOG_GOTO,
EXPECT_PRINT = LOG_PRINT,
EXPECT_ERASECH = LOG_ERASECH,
EXPECT_CLEAR = LOG_CLEAR,
EXPECT_SCROLLRECT = LOG_SCROLLRECT,
EXPECT_SETPEN = LOG_SETPEN,
} type... | 2.15625 | 2 |
2024-11-18T22:25:50.649394+00:00 | 2018-06-26T09:05:13 | e18a49dbdc60b64e80a24353af36d5c06c3563f3 | {
"blob_id": "e18a49dbdc60b64e80a24353af36d5c06c3563f3",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-26T09:05:13",
"content_id": "6a5c4b5149e5ac37b5689de06cca0b19d245079e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f858af58618251c7d4a35c181b5ffd2ea4685e51",
"extensio... | stackv2 | /*
* Routines to access hardware
*
* Copyright (c) 2013 Realtek Semiconductor Corp.
*
* This module is a confidential and proprietary property of RealTek and
* possession or use of this module requires written permission of RealTek.
*/
#include "rtl8195a.h"
#ifdef CONFIG_TIMER_MODULE
VOID
En32KCalibratio... | 2.078125 | 2 |
2024-11-18T22:25:50.709476+00:00 | 2018-07-08T05:09:25 | 3f1f326facfc2b899ab8e79313198cd53a2f9315 | {
"blob_id": "3f1f326facfc2b899ab8e79313198cd53a2f9315",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-08T05:09:25",
"content_id": "9f8845583ab74dd1a81e9ec5910671f400226d6f",
"detected_licenses": [
"MIT"
],
"directory_id": "e6519d25fe2261d62ba6dc19c3108d563f10cdf3",
"extension": "c"... | stackv2 | //*********************** buttons.c ***********************
// Program written by: Chimezie Iwuanyanwu & Cole Thompson
//
#include <stdint.h>
#include "../inc/tm4c123gh6pm.h"
#include "buttons.h"
#include "Music.h"
#include "Timer3.h"
#include "lcd.h"
/***************** GPIO_Arm ****************
Turns on port E fo... | 2.734375 | 3 |
2024-11-18T22:25:50.981510+00:00 | 2021-07-21T21:11:00 | 12474e9b0af8a63b0ee7ecb5f705116821457f08 | {
"blob_id": "12474e9b0af8a63b0ee7ecb5f705116821457f08",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-21T21:11:00",
"content_id": "192a55d7b2794e1cbd3b6aa5c8d89157a3fb9ae8",
"detected_licenses": [
"MIT"
],
"directory_id": "8a0bfa218e4015a5525e07204aafc6ef46cb4fd5",
"extension": "c"... | stackv2 | // Liam Wynn, 7/20/2019, Spaceman Engine Level Loading
#include "./utilities.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
char* remove_quotations_from_string(char* str) {
if(!str)
return NULL;
char* result = NULL;
int str_len = strlen(str);
char* str_without_first_quote;
int result_len;
... | 2.578125 | 3 |
2024-11-18T22:25:51.920317+00:00 | 2020-07-10T15:58:26 | e7c4f3b891f52bdfda5992746e03a825ad391b33 | {
"blob_id": "e7c4f3b891f52bdfda5992746e03a825ad391b33",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-10T15:58:26",
"content_id": "4216a59b29a2f76a711160897e6c72f9905ac5e5",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ec2ab6c55ec67472439793b3ab0ef0de1477dc9e",
"extens... | stackv2 | #include "cc2541.h"
#include "board.h"
cc2541_def* cc2541_init(uint32_t uartId, uint32_t uartBaudRate, uint32_t txBuffSize, uint32_t rxBuffSize){
io_mux_init();
io_arduino_config(ARDUINO_PIN_0, ARDUINO_UART, IO_PINMUX_ENABLE);
cc2541_def* cc2541;
cc2541 = malloc(sizeof(cc2541_def));
cc2541->uart = ez_sio_ope... | 2.421875 | 2 |
2024-11-18T22:25:52.095794+00:00 | 2023-02-16T11:27:40 | 92f7a7c0b49cbf2b643e9300bf30d7e12d0b2703 | {
"blob_id": "92f7a7c0b49cbf2b643e9300bf30d7e12d0b2703",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "a44c7552f5cec0935d621b85a5ab841e5801de48",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright (c) 2018 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <zephyr/timing/timing.h>
#include <ksched.h>
#include <zephyr/spinlock.h>
#include <zephyr/sys/check.h>
/* Need one of these for this to work */
#if !defined(CONFIG_USE_SWITCH) && !defined(CON... | 2.5625 | 3 |
2024-11-18T22:25:52.222315+00:00 | 2016-02-11T08:44:31 | ece1618cee862d211bef182f83aca678809ec5c8 | {
"blob_id": "ece1618cee862d211bef182f83aca678809ec5c8",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-11T08:44:31",
"content_id": "67ac56267e864a89feaed79e523ff463a6ac1137",
"detected_licenses": [
"MIT"
],
"directory_id": "9eafc45d0653ecfd4584ccb11e2412dee7645866",
"extension": "c"... | stackv2 | /*************************************************************************
* File Name: dma_cfg.c
* Author: Michael Dobinson
* Date Created: 2015-10-23
*
* Brief:
* Contains configuration functions for DMA
*
* [Compiled and tested with Atmel Studio 7]
*
********************************... | 2.234375 | 2 |
2024-11-18T22:25:52.306252+00:00 | 2020-03-19T00:17:57 | 21f220c73057aa83caa35c18fe44751e0e5d69c2 | {
"blob_id": "21f220c73057aa83caa35c18fe44751e0e5d69c2",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-19T00:17:57",
"content_id": "c0ace9f9c566507fbfe2834a424e2ccf51fb7f5c",
"detected_licenses": [
"MIT"
],
"directory_id": "f392b7a51b436495a30401b7a2f8afbb2a78dbd5",
"extension": "h"... | stackv2 | #define DEFER_MAX_DEFERRED_STATEMENTS 32
#define _defer_tokpaste(a, b) a ## b
#define _Defer(block, n) do { \
_deferrals[_num_deferrals++] = && _defer_tokpaste(_defer_ini, n); \
if (0) { \
_defer_tokpaste(_defer_ini, n): \
block; \
if (_num_deferrals) { \
goto *_deferrals[--_num_deferrals]; \
} else { \
... | 2.140625 | 2 |
2024-11-18T22:25:52.449076+00:00 | 2021-08-04T08:00:49 | cc28c4afacde4c0f6127329828d4a250b63db362 | {
"blob_id": "cc28c4afacde4c0f6127329828d4a250b63db362",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-04T08:00:49",
"content_id": "816c5637fef4728bf9a51936536c90a44c7ffceb",
"detected_licenses": [
"MIT"
],
"directory_id": "3efb1c3437b691118e1b84176c10889109616bb8",
"extension": "h",
... | stackv2 | /**
* @file functional.h
* @author RenoirTan
* @brief A header defining common functions for functional programming.
* This includes comparison functions for the most common types.
*
* To avoid having to write too much boilerplate code, the functions for
* each data type are generated using macros.
*
* "TS" ... | 2.375 | 2 |
2024-11-18T22:25:52.518599+00:00 | 2018-03-31T17:25:53 | 76bd4de64d87c55b2b6f40f8bae5f2a65664861b | {
"blob_id": "76bd4de64d87c55b2b6f40f8bae5f2a65664861b",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-31T17:25:53",
"content_id": "3c4b2da10a126b9eb96ca761a01e2f659140a9f8",
"detected_licenses": [
"MIT"
],
"directory_id": "36a7534671434d62c9f34e54526448fa7db0fa6a",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdlib.h>
#define MAX 10
/*
Name: Questão 08 - segunda lista de vetores
Author: Mayara Rysia
Description: 8) Escreva um algoritmo que leia dois vetores de 10 posições
e faça a multiplicação dos elementos de mesmo índice, colocando o resultado em um terceiro vetor. Mostre o vetor resultan... | 3.8125 | 4 |
2024-11-18T22:25:52.746541+00:00 | 2014-11-30T17:28:58 | 8a8fa8a5352e3d5075496565f9d5d77de5b4e9cb | {
"blob_id": "8a8fa8a5352e3d5075496565f9d5d77de5b4e9cb",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-30T17:28:58",
"content_id": "d66743201a4b69bcd87f2b639998844fbf71a780",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d9662bbb2a2688944c265fa3e152844e2daa4aad",
"extensio... | stackv2 | /**
*
* Williams Encryption scheme
*
* See "A modification of the RSA Public-Key Encryption Procedure" by H. C. Williams
*
*/
#include "vncrypt_gmp.h"
#include "vnrw_gmp.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
typedef struct tagVNRW_GMP_Ctx {
VNAsym... | 2.25 | 2 |
2024-11-18T22:25:55.796481+00:00 | 2020-12-20T16:39:52 | ded00401f63fce956c9cd2178f54b60ca9713b60 | {
"blob_id": "ded00401f63fce956c9cd2178f54b60ca9713b60",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-20T16:58:34",
"content_id": "ad035dee2f80955a6445c8a9bcc39e890f47cd10",
"detected_licenses": [
"MIT"
],
"directory_id": "55b7182fcdb93d48491dd565bf544ca442a56332",
"extension": "c"... | stackv2 | /* Commandline helper to include delay between chars
when sending hex file to the serial interface */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
double time;
int c;
if (argc == 2) {
time = atof(argv[1]); // argv[1] is in seconds
} else {
... | 2.796875 | 3 |
2024-11-18T22:25:55.863058+00:00 | 2014-12-25T18:27:08 | 67b79cd1dc74ad08dddfb62d9096ed04f7112e64 | {
"blob_id": "67b79cd1dc74ad08dddfb62d9096ed04f7112e64",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-25T18:27:08",
"content_id": "ea13bd6b48069e3f3ca5b5ca183e0820d4fee3a7",
"detected_licenses": [
"MIT"
],
"directory_id": "ebc648049d56273c4790b5aaddfc35e245a65335",
"extension": "c"... | stackv2 | #include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include "utils.h"
#include "uthash.h"
#include "evil.h"
#include "rect.h"
struct _ev_dir {
DIR *dir;
};
ev_dir* ev_dir_open(const char *name)
{
ev_dir *d = ev_malloc(sizeof(ev_dir));
d->dir = opendir(name);
if(!d->dir) {... | 2.546875 | 3 |
2024-11-18T22:25:56.490873+00:00 | 2020-06-02T19:20:47 | b1440cac3779fcfe5f9c738874cb3219d75916e9 | {
"blob_id": "b1440cac3779fcfe5f9c738874cb3219d75916e9",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-02T19:20:47",
"content_id": "83d632542999076336ba462a602eb4dfc81ab30d",
"detected_licenses": [
"MIT"
],
"directory_id": "d67e7b6655eeb69b4982a5fa25cde3a7ee0e36a9",
"extension": "c"... | stackv2 | /*******************************************************************************************
*
* Smurf Invaders. Technical Demo as an explorative project of Raylib.
* Random game based on Space Invaders and alike.
*
* Copyright (c) 2020 Oscar Lostes Cazorla, under MIT license.
*
* raylib is licensed under an unmodi... | 2.125 | 2 |
2024-11-18T22:25:57.019582+00:00 | 2019-08-01T07:46:22 | a41659dd66284a48aa2de884fdf2358a455dfe47 | {
"blob_id": "a41659dd66284a48aa2de884fdf2358a455dfe47",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T08:19:50",
"content_id": "34d6913d6f85c6813d3a87eb7203ca7f26f51075",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "3afc0b9d15f59dede2f9c23f98a6b63902... | stackv2 | /*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "fsl_adc12.h"
/*******************************************************************************
* Definitions
********************************************... | 2.265625 | 2 |
2024-11-18T22:25:57.093675+00:00 | 2023-06-14T03:54:20 | b141078846773852eb7f4e591b2a548e91404244 | {
"blob_id": "b141078846773852eb7f4e591b2a548e91404244",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-14T03:54:20",
"content_id": "a43ca2a0cfb97638f87f6f8bea37f1dc3d540de6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "376643cfdb79429a6bae2382181a78b9615148b4",
"extens... | stackv2 | /**
* Copyright (c) 2023, Virus.V <virusv@live.com>
* 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
* li... | 2.5 | 2 |
2024-11-18T22:25:57.325760+00:00 | 2023-08-15T07:21:44 | f362906657b15633aaf79dcabdf24ef741445e41 | {
"blob_id": "f362906657b15633aaf79dcabdf24ef741445e41",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-15T07:21:44",
"content_id": "4cad093ed37f866ea0d78e5f3fd665f0aa70c481",
"detected_licenses": [
"MIT"
],
"directory_id": "35fabd27d598dcdd393aaee0b7ba99f314349438",
"extension": "c"... | stackv2 | // This file is used to test the functionality of number reading and writing.
// It contains various test data to detect how numbers are handled in different
// boundary cases. The results are compared with google/double-conversion to
// ensure accuracy.
#include "yyjson.h"
#include "yy_test_utils.h"
#include "goo_dou... | 2.359375 | 2 |
2024-11-18T22:25:57.747015+00:00 | 2020-11-23T01:59:55 | 387ec077b71038571940a64b80988afed2e465dc | {
"blob_id": "387ec077b71038571940a64b80988afed2e465dc",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-23T01:59:55",
"content_id": "e44c3c3f23bd1e71317e3bf9e403144a33ea3151",
"detected_licenses": [
"ISC"
],
"directory_id": "9b294a5668efb1af56f29010c6193af88b13d6b4",
"extension": "c"... | stackv2 |
void
oput_dimacs_CnfFmla (OFile* of, const CnfFmla* fmla)
{
CnfDisj clause[] = default;
printf_OFile (of, "p cnf %u %u\n",
(uint) fmla->nvbls,
(uint) fmla->idcs.sz);
{:for (i ; fmla->idcs.sz)
clause_of_CnfFmla (clause, fmla, i);
{:for (j ; clause->lits.sz)
if (!... | 2.046875 | 2 |
2024-11-18T22:25:57.900327+00:00 | 2018-12-26T21:50:53 | 004e54d0ee95a0416801ee59061f4ea5098eabb5 | {
"blob_id": "004e54d0ee95a0416801ee59061f4ea5098eabb5",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-26T21:50:53",
"content_id": "6ed88c3036ed2e8ab7b75591571bca54d5bacea4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e5ad7592e0637996b5881777e07947a63504a68f",
"extensio... | stackv2 |
#include <hobbes/eval/cc.H>
#include <hobbes/eval/cmodule.H>
#include <hobbes/lang/module.H>
#include <hobbes/lang/type.H>
#include <hobbes/lang/typeinf.H>
#include <hobbes/lang/preds/class.H>
#include <hobbes/util/str.H>
#include <hobbes/util/array.H>
#include <stdexcept>
#include <dlfcn.h>
#include <glob.h>
namespa... | 2.0625 | 2 |
2024-11-18T22:25:58.091517+00:00 | 2020-05-18T05:57:36 | 08ec8848b5e8770c4adbf21ece7e6e85cb380662 | {
"blob_id": "08ec8848b5e8770c4adbf21ece7e6e85cb380662",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-18T05:57:36",
"content_id": "2fbd4e1e235c2ffd001bb5491f3d0b003824cb81",
"detected_licenses": [
"MIT"
],
"directory_id": "b95522bb3f93b26f0b5f370fa8db43413c1e7849",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <time.h>
#include <stdbool.h>
#include "funcDec.h"
int main() {
snake* snake;
bool isGameOver = false, gameOverPrinted = true;
double delaySecs = 1;
char ch;
init();
printBoard();
snake = initSnake();
while (!isGameOver)
{
for (int i = 0; i ... | 2.34375 | 2 |
2024-11-18T22:26:03.955778+00:00 | 2022-02-01T17:50:31 | 8fc1353e26c4f0f5097328ffb4923c62ff3095d5 | {
"blob_id": "8fc1353e26c4f0f5097328ffb4923c62ff3095d5",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-01T17:50:31",
"content_id": "45974c22c2e6e8e1480e3cec22898fe791267934",
"detected_licenses": [
"NCSA"
],
"directory_id": "2898fa4f2ad766afa0495a837f59fe95daa081a7",
"extension": "c... | stackv2 | #include <stddef.h>
int main(void) {
struct s { int m; };
return offsetof(struct s, m);
}
| 2.109375 | 2 |
2024-11-18T22:26:05.477392+00:00 | 2017-08-08T13:15:01 | d2991cd98622c03547f4b73b09388576bbeeea01 | {
"blob_id": "d2991cd98622c03547f4b73b09388576bbeeea01",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-08T13:15:01",
"content_id": "087267156f5620e5d7b016d7bab4b13047acb963",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f53b59f381ebfad26d00a9f4a74ab98b19f60f36",
"extensio... | stackv2 | //需要头文件:intrins.h,stdio.h
#define LCD_DA P2
#define LCD_RS P07
#define LCD_RW P06
#define LCD_EN P05
//写命令或数据
//type: 0,写命令; 1,写数据
//RS=0,RW=0,写命令
//RS=1,RW=0,写数据
void LCD_WCD(bit type,uchar com){
us10();us10();us10();
LCD_RW = 0;
LCD_RS = type ;
LCD_EN = 0;
LCD_DA = com;
us10();
LCD_EN = 1;
us10();
LCD_EN =... | 2.796875 | 3 |
2024-11-18T22:26:05.654402+00:00 | 2023-08-12T20:53:56 | e2fef212d113925e770ddc0bd1978465548cc7c4 | {
"blob_id": "e2fef212d113925e770ddc0bd1978465548cc7c4",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-12T20:53:56",
"content_id": "0928e3ce1c722d8636efd24942ae02eb4420a1d1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6799592f780197259b8217c70c7f905da233a2ed",
"extens... | stackv2 | #include "ustring.h"
#include "luafar.h"
extern int IsLuaJIT(void);
/* Taken from Lua 5.1; modified to work with Unicode filenames. */
/* ------------------------------------------------------------ */
/*
** {======================================================
** Load functions
** ================================... | 2.265625 | 2 |
2024-11-18T22:26:09.483036+00:00 | 2020-05-02T20:53:15 | 3291614d78f1eabbfa4bc36d989f4ada5fc0fd90 | {
"blob_id": "3291614d78f1eabbfa4bc36d989f4ada5fc0fd90",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-02T20:53:15",
"content_id": "086013f45024c01a504190649510c3a9596b9c9b",
"detected_licenses": [
"MIT"
],
"directory_id": "b03da9219d0b9045610e9a975ee139fdc953d268",
"extension": "h"... | stackv2 | #ifndef RXC_PIPELINE_H
#define RXC_PIPELINE_H
#include <rxc/scheduler.h>
/**
* A closed, runnable pipeline through which elements can flow.
*/
struct rxc_pipeline {
/**
* The source of the pipeline.
*/
struct rxc_source *source;
/**
* The sink of the pipeline.
*/
struct rxc_sink... | 2.640625 | 3 |
2024-11-18T22:26:09.853450+00:00 | 2020-07-29T03:31:25 | dcb19b9abb2453f509744f51146d13a5e0fb757d | {
"blob_id": "dcb19b9abb2453f509744f51146d13a5e0fb757d",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-29T03:31:25",
"content_id": "a2bd5658f4558dfd9f72a0dbd0c2e58827949f7f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a26e96d6ff0f69ce4f66914f8fe60be1262707e4",
"extensio... | stackv2 | /*
* Copyright (c) 2018 IOTA Stiftung
* https://github.com/iotaledger/iota_common
*
* Refer to the LICENSE file for licensing information
*/
#include <stdio.h>
#include <unity/unity.h>
#include "common/trinary/flex_trit.h"
#if defined(FLEX_TRIT_ENCODING_1_TRIT_PER_BYTE)
#define TRITS_IN -1, 0, 1, 1, 0, 1, 1, 0,... | 2.046875 | 2 |
2024-11-18T22:26:10.396301+00:00 | 2020-11-18T18:56:34 | 3f3b6cd8d36ee1b28ee576f91957ea56a4d9e004 | {
"blob_id": "3f3b6cd8d36ee1b28ee576f91957ea56a4d9e004",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-18T18:56:34",
"content_id": "07389978249e329e796d35afd1f54ee7696d07f6",
"detected_licenses": [
"MIT"
],
"directory_id": "e22e016bd923f11fbce3f2938860e5f3166edccb",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <locale.h>
//atividade 10 completa
int main(){
setlocale(LC_ALL , "Portuguese");
int numero;
printf("Digite um número qualquer: \n");
scanf("%i", &numero);
if (numero >= 0)
printf("O número digitado é Positivo!");
else
printf("O número digitado é Negativo!");
}
| 2.921875 | 3 |
2024-11-18T22:26:10.547899+00:00 | 2017-10-20T08:19:07 | 4519b23739634a7bf027fc817c4ded593ebd7cc4 | {
"blob_id": "4519b23739634a7bf027fc817c4ded593ebd7cc4",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-20T08:19:07",
"content_id": "ea3f0bfc56bb0de676fe0d05a8b60ef1ffc024f1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9d83ee7c32ee7926e2a3564795869d240fe181db",
"extensio... | stackv2 | /*
* utils.c
*
* Created on: Aug 12, 2016
* Author: compila
*/
#include "utils.h"
#include "boot_time_callbacks.h"
#include "runtime_callbacks.h"
static status_t create_and_init_child_object(obj_template_t *curr_obj, val_value_t *parent_val, const xmlChar *valuestr, const xmlChar* moduleName, bool isRuntim... | 2.640625 | 3 |
2024-11-18T22:26:10.919598+00:00 | 2022-03-10T21:08:40 | 90faa45da5f7dd09b6a4ddca5c09360898f2c43a | {
"blob_id": "90faa45da5f7dd09b6a4ddca5c09360898f2c43a",
"branch_name": "refs/heads/main",
"committer_date": "2022-03-10T21:08:40",
"content_id": "f49eec2c0c2879713627d206cb3f937fcba9f916",
"detected_licenses": [
"MIT"
],
"directory_id": "d3e4ff2671841b86dd7744efc770e723a233b1da",
"extension": "c",
... | stackv2 | #include "common.h"
#include "x86.h"
/* some ports */
#define VGA_DAC_READ_INDEX 0x3C7
#define VGA_DAC_WRITE_INDEX 0x3C8
#define VGA_DAC_DATA 0x3C9
/* The number of entries in the palette. */
#define NR_PALETTE_ENTRY 256
/* Load the palette into VGA. */
void write_palette(void *colors, int nr_color) {
int i;
uint8... | 2.953125 | 3 |
2024-11-18T22:26:11.023010+00:00 | 2015-03-18T15:30:26 | 834adab13a04c6bc055c0956682d896380208d72 | {
"blob_id": "834adab13a04c6bc055c0956682d896380208d72",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-18T15:30:26",
"content_id": "280ae1e4d691cca94c3e856d9232f598701757a1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "3196a9589132e03b99502bc995f86c2bf98393b5",
"extens... | stackv2 | #include "ecalc.h"
/* 簡単電卓Cファイル ecalc */
/* IF文は、左辺が真の場合は右辺の式を評価し、式自体の値は左辺となる */
/* 角度モードはCのライブラリに依存 ( 多分ラジアン ) */
/* 計算は全てdoubleで、円周率の値はM_PI */
// (y)atan2(x)の順番
/* 演算子優先度風
1 | () | カッコ | ->
2 | 関数 | 関数 | ->
3 | +,- | 単項-.+ | ->
4 | *,/,% | 乗除算 | ->
5 | +,- | 加減算 | ->
6 | <,> | 比較 | -... | 2.40625 | 2 |
2024-11-18T22:26:15.794584+00:00 | 2019-09-08T14:39:49 | 70daac5f300bcdc642e8bc62108f4403e5797922 | {
"blob_id": "70daac5f300bcdc642e8bc62108f4403e5797922",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-08T14:39:49",
"content_id": "880ff0f8b638f5bad01b3e98e16d8c6e2aa5c16c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "52cd01005c0d38a80a0305482950d69ad74279e9",
"extensio... | stackv2 | //
// Created by Sam on 2018/1/22.
//
#ifndef DONGMENDB_OPSTACK_H
#define DONGMENDB_OPSTACK_H
/*定义解析表达式时用到的公共结构和函数*/
#include "parser/tokenizer.h"
#ifdef __cplusplus
extern "C" {
#endif
/*操作符堆栈*/
typedef struct op_stack_ op_stack;
typedef struct op_stack_ {
TokenType operatorType;
op_stack *next;
} op_stack... | 2.046875 | 2 |
2024-11-18T22:26:16.000615+00:00 | 2019-03-16T15:24:44 | 4eef9ff591c896258f3fb2cf86212483fcbeb8cd | {
"blob_id": "4eef9ff591c896258f3fb2cf86212483fcbeb8cd",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-16T15:24:44",
"content_id": "79ad0cf77502e0c12a714dae4698ec58ac78865a",
"detected_licenses": [
"MIT"
],
"directory_id": "b329b74a734175a4efc66b5cec540347193a2d33",
"extension": "c"... | stackv2 | #include <stdio.h>
int string_length(char *str) {
int length = 0;
while (*str != '\0') {
length++;
str++;
}
return length;
}
int main() {
char string[100] = "TEST STRING";
int length;
length = string_length(string);
printf("Length of the string is %d\n", length);
return 0;
}
| 3.421875 | 3 |
2024-11-18T22:26:16.804215+00:00 | 2017-12-04T21:49:22 | 638d1bbfed6c49a84e23cc98894223b781257137 | {
"blob_id": "638d1bbfed6c49a84e23cc98894223b781257137",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-04T21:49:22",
"content_id": "2783a685f5bb51fb8a403330de35629543a563bb",
"detected_licenses": [
"MIT"
],
"directory_id": "438849e8cccfcaf432d6219bcf2561b8492fba76",
"extension": "h"... | stackv2 | #pragma once
#include "../api/api.h"
void input_parser(char *input, int input_size);
void str_cpy(char *destination, char *string, int size_of_string);
int str_len(char *input, int max_index = -1);
// teoreticky parsuje řádek a dává to do pole - zatim omezena delka
void parse_args(char args[][1025], int *argc, char ... | 2.234375 | 2 |
2024-11-18T21:30:28.870516+00:00 | 2013-10-31T00:12:20 | 955409113338c6e0d8cb17aabc430f8ed5141dae | {
"blob_id": "955409113338c6e0d8cb17aabc430f8ed5141dae",
"branch_name": "refs/heads/master",
"committer_date": "2013-10-31T00:12:20",
"content_id": "2ed91a113596e06ac3c15a093b199526ba310d5c",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "7c8d1c486dfb1a56925391bb4bc63774... | stackv2 | #include <stdio.h>
#include <string.h>
#ifdef __APPLE__
# include <stdlib.h>
#else
# include <malloc.h>
#endif
#include <clib/list.h>
#define PASSFAIL(x) ((x) ? "PASS" : "FAIL")
bool listCounter(list *lst, listItem *item, void *data);
int main(int argc, char **argv)
{
list *lstA = listCreate();
char *itemTwo = "... | 2.921875 | 3 |
2024-11-18T21:30:29.531881+00:00 | 2015-11-18T08:26:35 | dcb80c7f9439e404173f642a54707218c22f15d8 | {
"blob_id": "dcb80c7f9439e404173f642a54707218c22f15d8",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-04T01:30:22",
"content_id": "15ea47287662e50eb675396815bc26977b9f5b79",
"detected_licenses": [
"MIT"
],
"directory_id": "143b6864e748d94291d3523137d7c1c055806d04",
"extension": "c"... | stackv2 | #include "runtime.h"
#include "log.h"
#include "io.h"
#include "debug.h"
typedef uint64_t logaddr_t;
#define addr2log(x) ((x) >> 6)
#define log2addr(x) ((x) << 6)
// addr >>= 3; /* 3=bits */
// addr >>= 3; /* 3 => 8 byte units */
static void fsl_rlog(struct fsl_rt_io* io, uint64_t addr);
bool fsl_rlog_contains(stru... | 2.4375 | 2 |
2024-11-18T21:30:29.610438+00:00 | 2015-12-19T21:30:21 | 49dd2e83bb0634d443ff04905b9d5591c04f97b6 | {
"blob_id": "49dd2e83bb0634d443ff04905b9d5591c04f97b6",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-19T21:30:21",
"content_id": "2eeff93e59f8642c196b3335a4b38d0fbe35cd7a",
"detected_licenses": [
"MIT"
],
"directory_id": "2fdec85de22f48509940e42694096be2ea7d75ee",
"extension": "c"... | stackv2 | // Grant of license under MIT License (MIT) stated in license.h.
#include "license.h"
// Template for starting a new Pebble C Project
#include <pebble.h>
static const char* pVersion = "v1.1.009 09/19/2015";
static Window *s_main_window;
static TextLayer *s_status_layer; // Text msgs on watch face.
static TextLayer *s... | 2.171875 | 2 |
2024-11-18T21:30:31.871971+00:00 | 2019-02-25T06:44:49 | b6785b8d9c04d78ffc7f42a8f33064233fe18c38 | {
"blob_id": "b6785b8d9c04d78ffc7f42a8f33064233fe18c38",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-25T06:44:49",
"content_id": "3a050bb1c4e69e388a346d56ae125fe184b7161f",
"detected_licenses": [
"MIT"
],
"directory_id": "ff6a1c9fa558e08d829c06d99795bc8cd226ecfe",
"extension": "c"... | stackv2 | /* menu.c
*
* @Author Reece Clydesdale
* @StudentID 18924059
* @Date 27/10/2016
* @Purpose Handles the menu functions.
*/
#include "menu.h"
/********************************************************************************
* PROMPTING FUNCTIONS *
********... | 3.0625 | 3 |
2024-11-18T21:30:32.927099+00:00 | 2017-02-18T17:48:49 | 55b7b067ce3bd3a9fa0aca51ef39f86b83d8f20d | {
"blob_id": "55b7b067ce3bd3a9fa0aca51ef39f86b83d8f20d",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-18T17:48:49",
"content_id": "cc077a9d2635f2c2d35363a8b78d7e6ec824215b",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "dd80a584130ef1a0333429ba76c1cee0eb40df73"... | stackv2 | #include "defs.h"
#ifdef LINUX
#include <sys/ioctl.h>
#include <scsi/sg.h>
static const struct xlat sg_io_dxfer_direction[] = {
{SG_DXFER_NONE, "SG_DXFER_NONE"},
{SG_DXFER_TO_DEV, "SG_DXFER_TO_DEV"},
{SG_DXFER_FROM_DEV, "SG_DXFER_FROM_DEV"},
{SG_DXFER_TO_FROM_DEV, "SG_DXFER_TO_FROM_DEV"},
{0, NULL... | 2.25 | 2 |
2024-11-18T21:30:34.059556+00:00 | 2019-12-01T23:39:43 | 15072ccabb08360a31285c9600552d0edfddec11 | {
"blob_id": "15072ccabb08360a31285c9600552d0edfddec11",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-01T23:39:43",
"content_id": "e639502fd3b1c6f6537a02699b24440efefe154b",
"detected_licenses": [
"MIT"
],
"directory_id": "7784f59b7371abfbd02b015ab0d5bd0ef3b1cb0e",
"extension": "c"... | stackv2 | #include "protected/set.h"
#include <stdlib.h>
#include <string.h>
#include "../test/stubs.h"
#include "public/assert.h"
#include "public/iterator.h"
#include "public/vector.h"
// TODO:
// - Version
bool Set_init(Set *set, KeyInfo *key_info);
void Set_cleanup(Set *set);
void _Set_swap(Set *a, Set *b) {
Set tmp;... | 2.59375 | 3 |
2024-11-18T21:30:34.134539+00:00 | 2019-01-24T09:28:46 | 64b7d084246a031d58ce55b69ba74bad11289e4c | {
"blob_id": "64b7d084246a031d58ce55b69ba74bad11289e4c",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-24T09:28:46",
"content_id": "853266fe65c72f98eb87e52a85811af5676147e3",
"detected_licenses": [
"MIT"
],
"directory_id": "fdd956ae8f0fe7e73e0d7f3ec3b26631572a22f7",
"extension": "c"... | stackv2 | // etiopski sposób mnożenia dwóch liczb
// zad9 z podstrony pętle ze strony
// zadań z języków programowania
#include<stdio.h>
void take_input(int *a, int *b);
void go_forth_and_multiply(int a, int b);
int main()
{
int multi_a, multi_b;
take_input(&multi_a, &multi_b);
go_forth_and_multiply(multi_a, multi_b);
}... | 3.640625 | 4 |
2024-11-18T21:30:34.428259+00:00 | 2020-05-14T20:15:52 | f61699f2468c2dfbf144047b20ad196c55c116b5 | {
"blob_id": "f61699f2468c2dfbf144047b20ad196c55c116b5",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-14T20:22:30",
"content_id": "797e16ff653cd4e98207d2360f5bf897d6448c08",
"detected_licenses": [
"MIT"
],
"directory_id": "258af18325757ff13462397a5b5b8efa4e2df334",
"extension": "c"... | stackv2 | // %%cpp sem_and_signal.c
// %run gcc -Wall -fsanitize=thread -lrt sem_and_signal.c -o sem_and_signal.exe
// %run ./sem_and_signal.exe
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <pthre... | 2.6875 | 3 |
2024-11-18T21:30:34.652343+00:00 | 2018-05-22T18:46:02 | c73fb48df4bd1f526776c5132771a3c49f1d4106 | {
"blob_id": "c73fb48df4bd1f526776c5132771a3c49f1d4106",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-22T18:46:02",
"content_id": "fdb507676e68d576d0653e5ef90bfaff9ff6c4ed",
"detected_licenses": [
"MIT"
],
"directory_id": "eed13b22fb92d6d1a1faaa05de105bc07f0f104c",
"extension": "h"... | stackv2 | /* Filename: CP143_19842422.h
* Date: 28/09/2016
* Name: Senior J.J.
* Student number: 19842422
* ----------------------------------------------------------
* By submitting this file electronically, I declare that it
* is my own original work, and that I have not copied
* any part of it from another... | 2.203125 | 2 |
2024-11-18T21:30:34.814270+00:00 | 2021-03-16T09:57:43 | 0d5ddfcab1837f5bf41c782606d9d81b78cbc8da | {
"blob_id": "0d5ddfcab1837f5bf41c782606d9d81b78cbc8da",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-16T09:57:43",
"content_id": "3cdd363dba90a208569d64ec8a4798e6ab049502",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "d57ac760af08e5b8e2a78747f290f0792558e247",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <bgpq4.h>
void
sx_radix_node_freeall(struct sx_radix_node *n) {
if (n->l != NULL)
sx_radix_node_freeall(n->l);
if (n->r != NULL)
sx_radix_node_freeall(n->r);
if (n->son != NULL)
sx_radix_node_freeall(n->son);
if (n->payload)
free(n->payload);
sx_prefix... | 2.34375 | 2 |
2024-11-18T21:30:34.988317+00:00 | 2021-04-27T12:41:30 | fd97f279129f70d1e585f7e9384bdfd9dd909550 | {
"blob_id": "fd97f279129f70d1e585f7e9384bdfd9dd909550",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-27T12:41:30",
"content_id": "29c8ac07a55697634cb154b5ce1af76bb2341f16",
"detected_licenses": [
"MIT"
],
"directory_id": "f96f9212d03694d085891282fd74246e47a5f566",
"extension": "c",
... | stackv2 | //#include "main.h"
//#include "co_sched.h"
//#include "co_sched_API.h"
//UART_HandleTypeDef huart2;
//void SystemClock_Config(void);
//static void MX_GPIO_Init(void);
//static void MX_USART2_UART_Init(void);
//void Task1(){
//
// for (int i=0; i<8; i++)
// {
// HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_3);
// HAL_Delay... | 2.0625 | 2 |
2024-11-18T21:30:35.115188+00:00 | 2016-02-03T18:02:39 | 672736a678af876c93b1917ce51a81c29a0fa95f | {
"blob_id": "672736a678af876c93b1917ce51a81c29a0fa95f",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-03T18:02:39",
"content_id": "79e1bb92f87a5ec53f7bedfb1752c5c229a96b72",
"detected_licenses": [
"MIT"
],
"directory_id": "e09bfa7743206a60747d8ffc2ee6d87801e19f62",
"extension": "c"... | stackv2 | #include "util.h"
/* Create C arrays from numpy objects: */
int c_array_from_pyarray2d(PyObject** arr, double*** out, npy_intp* out_dims) {
PyArray_Descr *descr;
descr = PyArray_DescrFromType(NPY_DOUBLE);
if (PyArray_AsCArray(arr, (void**) out, out_dims, 2, descr) < 0) {
PyErr_SetString(PyExc_TypeE... | 2.265625 | 2 |
2024-11-18T21:30:35.540156+00:00 | 2018-05-09T16:56:18 | 88ac342b13e825aa6adc1019c690057cc9bae08a | {
"blob_id": "88ac342b13e825aa6adc1019c690057cc9bae08a",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-09T16:57:52",
"content_id": "a166207d471d4e89c6301f952823adc38d18d3d1",
"detected_licenses": [
"MIT"
],
"directory_id": "ea0df21abb8b38fa9a5d7b9e376433da27f7c522",
"extension": "c"... | stackv2 |
/* ###--------------------------------------------------------------### */
/* file : utl_hash2.c */
/* date : Arp 19 2004 */
/* version : v200 */
/* author : Pirouz Bazagan Sabet */
/* description : Utility function */
/* ###--------------------------------------------------------------### */... | 2.390625 | 2 |
2024-11-18T21:30:36.143185+00:00 | 2014-01-08T23:59:21 | 2bb2e9aa890305d3b757b0482821546c39dbbb34 | {
"blob_id": "2bb2e9aa890305d3b757b0482821546c39dbbb34",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-08T23:59:21",
"content_id": "61f7c1e2d032c22ed0814dcd719ffc43e65ca70d",
"detected_licenses": [
"MIT"
],
"directory_id": "a5660f7273bb87fa415f4f3fa51ccb3428a31fca",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include "../map.h"
#include "../utils.h"
#define MIN_DIV 8
#define MARGIN 8
#define CARVE_MARK -1
#define ADJ(v, d) ((v)->paths[(d)])
static int vertCount = 0;
struct path
{
struct vert* a;
struct vert* b;
};
static int getDir(struct vert* a, struct vert* b)
{
if ((a->x != b->x) ... | 2.6875 | 3 |
2024-11-18T21:30:37.195747+00:00 | 2021-05-11T07:22:27 | 3ce687928d114206947c47e9accbf6f4ac6a6f42 | {
"blob_id": "3ce687928d114206947c47e9accbf6f4ac6a6f42",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-11T07:22:27",
"content_id": "d69f76d3e455a975620b6108922ac39ad4f8c428",
"detected_licenses": [
"MIT"
],
"directory_id": "63e6553cea3e1f3c42c768aba068edca3dd91171",
"extension": "c"... | stackv2 | /*!\file ADS1115_proc.c
** \author SMFSW
** \copyright MIT (c) 2017-2021, SMFSW
** \brief ADS1115 Driver procedures
** \details ADS1115: Ultra-Small, Low-Power, 16-Bit Analog-to-Digital Converter with Internal Reference
** \note Compatibility with:
** - ADS1113 (restrictions given in datasheet)
** - ADS1114 (rest... | 2.328125 | 2 |
2024-11-18T21:30:37.594536+00:00 | 2018-01-03T09:56:50 | 238c3875f9aa64456ed66f9710752e46fd8e1677 | {
"blob_id": "238c3875f9aa64456ed66f9710752e46fd8e1677",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-03T09:56:50",
"content_id": "e07cac8caa739fa91a4e8581d28a633a642d361a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b8e9ed082e09eb304c0d5e98c9eb72b604492d6a",
"extens... | stackv2 | #ifndef __RARCHDB_MSGPACK_H__
#define __RARCHDB_MSGPACK_H__
#include <stdint.h>
#include <stdio.h>
struct rmsgpack_read_callbacks {
int (* read_nil)(void *);
int (* read_bool)(
int,
void *
);
int (* read_int)(
int64_t,
void *
);
int (* read_uint)(
uint64_t,
... | 2.296875 | 2 |
2024-11-18T21:30:37.648793+00:00 | 2021-09-23T05:06:53 | 96739320dee2ecb0276278f3aa2e0219567fafbd | {
"blob_id": "96739320dee2ecb0276278f3aa2e0219567fafbd",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-05T01:59:15",
"content_id": "fd7399a9fd6c79470931f3c6dee31d8498fdfdb1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "cae3bf616492d9d1557d429c85ff30f9622f52c9",
"extensio... | stackv2 | #define KBUILD_MODNAME "bytecode"
#include <linux/kconfig.h>
#include <linux/bpf.h>
#include <linux/tcp.h>
#include <linux/version.h>
#include "bpf_helpers.h"
#ifndef LINUX_VERSION_CODE
#pragma message("LINUX_VERSION_CODE not defined")
#endif
#define bpf_printk(fmt, ...) \
({ ... | 2.171875 | 2 |
2024-11-18T21:30:37.790051+00:00 | 2018-10-12T14:50:42 | 3291953d95c92f2fb1c025ee19df9d0b0b036c77 | {
"blob_id": "3291953d95c92f2fb1c025ee19df9d0b0b036c77",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-12T14:50:42",
"content_id": "d04bf6997afbeee7bc8a60ce8e138b89ce340f8a",
"detected_licenses": [
"MIT"
],
"directory_id": "9b3bdc1945849d6df700f696421b2764152fa311",
"extension": "c"... | stackv2 | #include<lpc214x.h>
void delay_ms(unsigned int count)
{
unsigned int i=0,j=0;
for(j=0;j<count;j++)
{
for(i=0;i<3000;i++);
}
}
// LED BLINK OF P0.0 TO P0.7 //
int main()
{
PINSEL0=0x0000; // CONFIGURE GPIO //
IODIR0=0xFF; // TO MAKE PINS AS OUTPUT PINS //
while(1)
{
IOSET0=0xFF; // LOGIC HIGH OR L... | 2.5 | 2 |
2024-11-18T21:30:37.871572+00:00 | 2018-11-30T12:42:51 | b7a602d85d424df01e2cc75eb54e73129c41842b | {
"blob_id": "b7a602d85d424df01e2cc75eb54e73129c41842b",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-30T12:42:51",
"content_id": "2be87d68714f19154c599af83348c5d2a03f50a4",
"detected_licenses": [
"MIT"
],
"directory_id": "c75699fafa3158e802eb0734728924d16b33c538",
"extension": "c"... | stackv2 | #include <stdio.h>
int main(void) {
double number;
while (printf("Please enter a number: ") && scanf("%lf", &number) &&
number != -1) {
printf("The number is ");
printf((int)number & 1 ? "odd" : "even");
printf(".\n");
}
return 0;
} | 3.09375 | 3 |
2024-11-18T21:30:37.956529+00:00 | 2021-07-14T01:52:36 | 6da1b14801aac3bd61e1de7bcfdf3ad53e10e7d9 | {
"blob_id": "6da1b14801aac3bd61e1de7bcfdf3ad53e10e7d9",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-14T01:52:36",
"content_id": "68bb89577e596fee537820d35b3694100a0fd81a",
"detected_licenses": [
"MIT"
],
"directory_id": "f21310abd16353739a54259964a162424e1a8805",
"extension": "c",
... | stackv2 | /* INCLUDES ***********************************************************/
#include "ses_pwm.h"
/* DEFINES ************************************************************/
#define MOTOR_PORT PORTG
#define MOTOR_PIN 5
/* FUNCTION DEFINITION ************************************************/
void pwm_init(void) {
//set pin... | 2.578125 | 3 |
2024-11-18T21:30:38.035493+00:00 | 2016-09-08T13:04:53 | 7991c84d63d83fa713242a0e3e4af2c0fc7cb24d | {
"blob_id": "7991c84d63d83fa713242a0e3e4af2c0fc7cb24d",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-08T13:04:53",
"content_id": "b5e0e128ae0ebef16a23280c7426e57541052d97",
"detected_licenses": [
"MIT"
],
"directory_id": "e83ee24a063aa02e1d289c79dbe7812267c9268f",
"extension": "h"... | stackv2 | /*
* Author: Manuel Ángel Suárez Álvarez
* E-mail Manuel_Angel99@outlook.com
* Created: 2016-08-11 11:01:05
*
* File: vga.h
* Description: Defines some vga utilities so we can use them to output code more easily
*/
#ifndef _K_VGA_H
#define _K_VGA_H
#ifdef _cplusplus
extern "C" {
#endif
#include <stdint.h>
stat... | 2.375 | 2 |
2024-11-18T21:30:38.336108+00:00 | 2021-01-05T09:17:17 | adf37fb85ac487b2363b10ca77c326210a2dd4df | {
"blob_id": "adf37fb85ac487b2363b10ca77c326210a2dd4df",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-05T09:17:17",
"content_id": "2a7d74e344f55bf1982a705ef850d8e32c1fd7f0",
"detected_licenses": [
"MIT"
],
"directory_id": "f273b78dfdc27360b079145163d7d8e88b19351b",
"extension": "c"... | stackv2 | #include "holberton.h"
/**
*free_grid - allocate matrix in the form of memory
*@grid: 2d matrix
*@height: matrix row
*Return: None
*/
void free_grid(char **grid, int height)
{
int i;
for (i = 0; i < height; i++)
free(grid[i]);
free(grid);
grid = NULL;
}
/**
*extract_string - extract string data
*@string:... | 3.1875 | 3 |
2024-11-18T21:30:38.406588+00:00 | 2015-06-06T02:18:05 | b35bda0a0ed98590baead7f9560d9f2c7a4d6739 | {
"blob_id": "b35bda0a0ed98590baead7f9560d9f2c7a4d6739",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-06T02:19:03",
"content_id": "ef44453ef7c2d2e81f8f1dcdb67460184bef710d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "80ee017b6a291485dfc199bbcb3574890f8b3d78",
"extens... | stackv2 | /*
* Copyright 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <ctype.h>
#include <getopt.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "futility.h"
static const char usag... | 2.703125 | 3 |
2024-11-18T21:30:40.691139+00:00 | 2015-08-05T16:22:53 | 470f5f26af20524f7e3398dd364b51d41abc1ca9 | {
"blob_id": "470f5f26af20524f7e3398dd364b51d41abc1ca9",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-05T16:23:06",
"content_id": "f293efa51f7493732a74bcfabdbe39a327dffc61",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "d8bd27b1f8aeaf9905ea5fb58f8662cf45d14a91",
"extens... | stackv2 | #include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
if (argc < 2) {
fprintf(stderr, "Usage: %s <program> [args...]\n", argv[0]);
return EXIT_FAILURE;
}
if (getpid() == getpgrp()) {
pid_t pid = fork();
switch (pid) {
case 0:
break;
case -1:
perror("fork")... | 2.5625 | 3 |
2024-11-18T21:30:41.057511+00:00 | 2021-11-25T22:27:12 | f519401e5cd55f851b27516faa9983ba23c92510 | {
"blob_id": "f519401e5cd55f851b27516faa9983ba23c92510",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-25T22:27:12",
"content_id": "8ba1578e6b795fe8bdec93b24dcda8b2ace7abf6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bade93cbfc1f25160dfbe9493bfa83f853326475",
"extens... | stackv2 | /*
* n0/fold.c
* Constant expression folder for the C compiler parser.
* More of this is done in the code generator.
* This one exists only to allow constant expressions in case labels,
* in array bounds, and in initializers.
*/
#ifdef vax
#include "INC$LIB:cc0.h"
#else
#include "cc0.h"
#endif
extern lval_t g... | 2.421875 | 2 |
2024-11-18T21:30:41.145909+00:00 | 2016-03-04T02:33:07 | 58ef219a498f3b699201d26856a8c95e22b89dc8 | {
"blob_id": "58ef219a498f3b699201d26856a8c95e22b89dc8",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-04T02:36:43",
"content_id": "7199f4724c68deb6177a21d3f8b8c2a4d6d40824",
"detected_licenses": [
"MIT"
],
"directory_id": "2021f04435fbe0dc07f2c38b5741fb47e880bd4b",
"extension": "c"... | stackv2 | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CHUNK_SIZE 4096
typedef struct _SECURITY_HEADER
{
uint32_t cbSize;
unsigned char signature[12];
uint32_t dwChunkSizeInKb;
uint32_t dwAlgId;
uint32_t dwCatalogSize;
uint32_t dwHashTableSize;
} SECURITY_HEADER;
typedef struct... | 2.484375 | 2 |
2024-11-18T21:30:41.307088+00:00 | 2021-08-30T06:55:56 | 54932fef1a760a0b311305610f3f03a81ff7dfaf | {
"blob_id": "54932fef1a760a0b311305610f3f03a81ff7dfaf",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-01T07:17:59",
"content_id": "925a69c8e240cd8fd50801f641fc2c47f683395e",
"detected_licenses": [
"MIT"
],
"directory_id": "345a0d2feac1c49cced9d7353046ede5535179fb",
"extension": "c",
... | stackv2 | /*
* lat_usleep.c - usleep duration/latency
*
* The APIs for usleep(3), nanosleep(2), select(2), pselect(2),
* getitimer(2) and setitimer(2) support resolutions down to
* a micro-second. However, many implementations do not support
* such resolution. Most current implementations (as of Fall
* 2002) simply p... | 2.4375 | 2 |
2024-11-18T21:30:41.375520+00:00 | 2018-06-22T23:14:47 | 6c2a31a33727e5aa304c5fcf85a18553398a151c | {
"blob_id": "6c2a31a33727e5aa304c5fcf85a18553398a151c",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-22T23:14:47",
"content_id": "a6f5f6bc862fadd35a9ee530e240607be7fa556e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0924e369b814251488884e996a0f21a1ff4105ff",
"extensio... | stackv2 | #include "Operaciones.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
//==============================================================================
//METODOS LECTURA DE LAS ESTRUCTURAS STRING Y CHAR.
//METODOS DE LECTURA.
int leeCad(char *cadena, int tam){
int j, ret;
char c;
... | 3.15625 | 3 |
2024-11-18T21:30:43.803221+00:00 | 2019-09-08T23:55:09 | 6d25094b578d8cb5c0062f3a837a9233f3d3863a | {
"blob_id": "6d25094b578d8cb5c0062f3a837a9233f3d3863a",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-08T23:55:09",
"content_id": "ba331750b47af38c641b09cc2f35ca20f4c62489",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "e05ecf04e9f6c28d63c1e8a25630f1562c13577f",
"extens... | stackv2 | int state = 0, start = 0;
int lexical_value;
/* to "return" second component of token */
int fail()
{
forward = token_beginning;
switch (start) {
case 0: start = 9; break;
case 9: start = 12; break;
case 12: start = 20; break;
case 20: start = 25; break;
case 25: recover(); break;
default: /* compiler e... | 2.0625 | 2 |
2024-11-18T21:30:43.870471+00:00 | 2020-07-22T21:33:02 | bdd6f9a511d9514cf2f0537e9bbb9be0950840b7 | {
"blob_id": "bdd6f9a511d9514cf2f0537e9bbb9be0950840b7",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-22T21:33:02",
"content_id": "85baf3f5586d9cdd5b6bf1ab3bea39a9c45343f2",
"detected_licenses": [
"MIT"
],
"directory_id": "2f80643dcf25f1427f18282a99617ea2f7362086",
"extension": "c"... | stackv2 | #include "monty.h"
/**
* main - main function for monty program
* @argc: arguments count
* @argv: arguments inventory (file path expected)
*
* Return: 0 always - success!
*/
int main(int argc, char **argv)
{
size_t n;
void (*execute)(stack_t **stack, unsigned int line_number);
inventory = NULL;
if (argc != ... | 2.4375 | 2 |
2024-11-18T21:30:43.988293+00:00 | 2022-06-12T18:13:23 | d37bd5ac06012f0d3ddb3ca5bdd39f0b5805d42a | {
"blob_id": "d37bd5ac06012f0d3ddb3ca5bdd39f0b5805d42a",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-12T18:13:23",
"content_id": "daa2ff06cc8971ad6294b474bd3d091ab4013f4d",
"detected_licenses": [
"ISC"
],
"directory_id": "722cf9ab069d75af63664eeae0c35c63aa73c51c",
"extension": "c"... | stackv2 | /* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST
char *
libsimple_timevaltostr(char *restrict buf, const struct timeval *restrict tv)
{
time_t s = tv->tv_sec;
long int us = tv->tv_usec;
char sign[2] = "+";
if (!buf) {
buf = malloc(INTSTRLEN(time_t) + sizeof("-.999999")... | 2.703125 | 3 |
2024-11-18T21:30:44.152057+00:00 | 2022-09-06T20:43:52 | f6a824d3fb39edc6931b715c1df8a6e33e7d17a6 | {
"blob_id": "f6a824d3fb39edc6931b715c1df8a6e33e7d17a6",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-06T20:43:52",
"content_id": "2f39d76766c28aa58a49c73c249be9702ae4f7f2",
"detected_licenses": [
"Unlicense"
],
"directory_id": "3d5f6d704b151a2886a9e128eee2f4467bf98d2d",
"extension... | stackv2 | #include<stdio.h>
#include <stdbool.h>
bool isPrime(int n)
{
if(n<=1) return false;
if(n<=3) return true;
// This is checked so that we can skip
// middle five numbers in below loop
if (n%2 == 0 || n%3 == 0) return false;
for (int i=5; i*i<=n; i=i+6)
if (n%i == 0 || n%(i+2) == 0)
... | 3.234375 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.