added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T21:23:29.163920+00:00 | 2018-01-12T19:39:49 | 51ccbcb2f7c00e63cace9a2945d7430216decd7f | {
"blob_id": "51ccbcb2f7c00e63cace9a2945d7430216decd7f",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-12T19:39:49",
"content_id": "09f6d285f3e8b4adc6d75fd53be8fc7c341c9197",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b7f1b4df5d350e0edf55521172091c81f02f639e",
"extens... | stackv2 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file contains types/constants and functions specific to shared buffers.
//
// Note: This header should be compilable as C.
#ifndef MOJO_PUBLIC_C_... | 2.046875 | 2 |
2024-11-18T21:23:29.430940+00:00 | 2023-08-07T19:18:32 | 68ee538f91f483b4061e2252f81af0318ffa53b9 | {
"blob_id": "68ee538f91f483b4061e2252f81af0318ffa53b9",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T19:18:32",
"content_id": "6cb4d497ca941c07fe188fae3489bf4ae8d9c3ef",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e1d9c54e9925e30e388a255b53a93cccad0b94cb",
"extensio... | stackv2 | #include "mt.h"
#include <watch_util.h>
#define WATCH_EVENT_KEY_TYPE "type"
#define WATCH_EVENT_KEY_OBJECT "object"
static void on_pod_event_comes(const char *event_string)
{
static char fname[] = "process_one_watch_event()";
if (!event_string) {
return;
}
char *type = NULL;
v1_pod_t *po... | 2.296875 | 2 |
2024-11-18T21:23:30.244012+00:00 | 2019-05-15T06:34:13 | 1bea694631012c803648671cbc2ce0bd6992d628 | {
"blob_id": "1bea694631012c803648671cbc2ce0bd6992d628",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-15T06:34:13",
"content_id": "8405d8612b62bc9f219b47ad099189c488186bf0",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "1ce43ec73adcde50c6f3b40778453366e389e884",
"extens... | stackv2 | #include "urg3d_sensor.h"
#include <stdio.h>
#include <stdlib.h>
urg3d_vssp_header_t header;
urg3d_sensor_version_t version;
int main(int argc, char *argv[])
{
int ret = 0; /* operation return */
const char* const device = "192.168.0.10"; /* device ip address */
const long port = 10940; /* device port num... | 2.359375 | 2 |
2024-11-18T21:23:30.470692+00:00 | 2019-08-25T15:39:29 | 06189b8b35b84dedb691cf9094b689d5af00e831 | {
"blob_id": "06189b8b35b84dedb691cf9094b689d5af00e831",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-25T15:39:29",
"content_id": "db1bc72b4b374485e0e28e67cf2fe20774f05e87",
"detected_licenses": [
"MIT"
],
"directory_id": "5ae998dd2e7442afe87ada209760699d3568a98e",
"extension": "c"... | stackv2 | /** signal.c */
/**
* 一个进程可以决定在该进程中需要对哪些信号进行什么样的处理。例如,一个进程可以选择忽略某些信号而只处理其他一些信号,
* 另外,一个进程还可以选择如何处理信号。总之,这些都是与特定的进程相联系的。因此,首先就要建立进程与其信号之间的对
* 应关系,这就是信号的处理。
*
* 如果进程要处理某一信号,那么就要在进程中安装该信号。安装信号主要用来确定信号值及进程针对该信号值的动作之间的映射关系,
* 即进程将要处理哪个信号;该信号被传递给进程时,将执行何种操作。
*
* linux主要有两个函数实现信号的安装:signal()、sigaction()。其中signal()在... | 2.5625 | 3 |
2024-11-18T21:23:30.566811+00:00 | 2014-07-03T04:47:32 | b1b5b44b9b23088b4f0201c8f46bf5ea4a8f9726 | {
"blob_id": "b1b5b44b9b23088b4f0201c8f46bf5ea4a8f9726",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-03T04:47:32",
"content_id": "1c122cdd1cb92f1e71867c781531b94ebc8552bb",
"detected_licenses": [
"MIT"
],
"directory_id": "fb96bf93c2da4e7196ec1dc581ba533162571073",
"extension": "c"... | stackv2 | /* Unit tests for reading and writing parameter files. */
#include <check.h>
#include <stdlib.h>
#include <stdio.h>
#include "../src_c/parameters.h"
START_TEST(test_read_sequence_par)
{
int cam;
char fname[SEQ_FNAME_MAX_LEN];
sequence_par *seqp;
seqp = read_sequence_par("testing_fodder/parameters/seq... | 2.390625 | 2 |
2024-11-18T21:23:30.698694+00:00 | 2018-10-27T12:48:59 | b371f476a674c04e74ee62a184e3275442d7fdad | {
"blob_id": "b371f476a674c04e74ee62a184e3275442d7fdad",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-27T12:48:59",
"content_id": "8853ffa005ab3350953b01e00612ee3f78d5c3c6",
"detected_licenses": [
"MIT"
],
"directory_id": "df04f692828a29c2a67e9775313fca1e2a82c2f3",
"extension": "c"... | stackv2 | #include "headers/headerlist.h"
#include "headers/sudoku.h"
struct sudokuTable sudoTbl; // Intializing sudokuTable structure object
size_t keyword; // keyword char for finding element
size_t rplChar; // replacment char
size_t temp;
time_t t;
int row, col;
int wrongIndex[9];
int last;
int getRand();
void helpMenu();
in... | 3.078125 | 3 |
2024-11-18T21:23:30.866420+00:00 | 2023-07-14T10:13:16 | a48546064e5e2b90dbe2be309242a7209b3e8c78 | {
"blob_id": "a48546064e5e2b90dbe2be309242a7209b3e8c78",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-14T10:13:16",
"content_id": "bc940f2ee3f6331de422f230b9ccf5dcf4b62300",
"detected_licenses": [
"Zlib",
"Apache-2.0"
],
"directory_id": "35ddd0f3036ac38423ded0435cd4b595f5dab31c",... | stackv2 | /*
* formatted memory dumper subroutines
* we are exclusively interested in 16 bit offsets
*/
#ifdef linux
#define INIT
#else
#define INIT = 0
#endif
static char pchars[16] INIT;
static int pcol INIT;
/*
* dump out the sanitized ascii
*/
dumpascii()
{
int i;
char c;
for (i = 0; i < pcol; i++) {
... | 2.96875 | 3 |
2024-11-18T21:23:34.118504+00:00 | 2021-02-20T02:55:39 | 9791556788ae3e4c509208d31adbb9c8b6d463a6 | {
"blob_id": "9791556788ae3e4c509208d31adbb9c8b6d463a6",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-20T02:55:39",
"content_id": "439e5ba9778c355654630ffe048d2e08871e0f3d",
"detected_licenses": [
"MIT"
],
"directory_id": "603401518577c08c93705096b76eac31f32621d4",
"extension": "c",
... | stackv2 | //-----------------------------------------------------------------------
// Copyright 2020 Dilshan R Jayakody [jayakody2000lk@gmail.com]
//
// 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 Softwa... | 2.109375 | 2 |
2024-11-18T21:23:35.074156+00:00 | 2019-07-10T07:08:13 | adc2730138a342a9a415e06a2604d004b33a75d9 | {
"blob_id": "adc2730138a342a9a415e06a2604d004b33a75d9",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-10T07:08:13",
"content_id": "4d2861f1d2540086e761e1f411e68538ea794cb6",
"detected_licenses": [
"MIT"
],
"directory_id": "015ed63be49eb3bbc6ef0c59868ddec88093e13e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <wiringPi.h>
#define LEDR 7
#define LEDV 28
#define SNZ 27
#define BUZZ 26
int detectare_miscare=0;
int valoare_senzor;
void setup()
{
pinMode(LEDR, OUTPUT);
pinMode(LEDV, OUTPUT);
pinMode(SNZ, INPUT);
pinMode(BUZZ, OUTPUT);
digitalWrite(BUZZ, HIGH... | 2.359375 | 2 |
2024-11-18T21:23:35.137683+00:00 | 2018-03-31T08:35:21 | 7d1efcb835c923e2d14e3986d1eba10e2a522a7c | {
"blob_id": "7d1efcb835c923e2d14e3986d1eba10e2a522a7c",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-31T08:35:21",
"content_id": "ae7b6e847f8925b19e2d83a9d400318f637f5080",
"detected_licenses": [
"MIT"
],
"directory_id": "04da8da6b93505d0d5e3c3bf591d36070f378400",
"extension": "h"... | stackv2 | #pragma once
#include "List.h"
/**
CompareFunc is a pointer to a function that takes two ElementType's
and returns less than zero if e1 is smaller than e2, 0 if they are equal and greater that 0 if
e1 is bigger that e2
*/
typedef int(*CompareFunc)(ElementType e1, ElementType e2);
/**
The function sorts in place... | 2.546875 | 3 |
2024-11-18T21:23:35.245817+00:00 | 2021-05-05T19:39:47 | 5c0b8ace26c117af697df01e54d56fce1fe06b78 | {
"blob_id": "5c0b8ace26c117af697df01e54d56fce1fe06b78",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-05T19:39:47",
"content_id": "c0ca4f34f5ce44ed50faf463e158f5b6f3989d4d",
"detected_licenses": [
"MIT"
],
"directory_id": "e38c357a31a1905370a03c8bf1ec791b6b171ea8",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdlib.h>
/* I don't get this task. Besides the fact that it can be done without any tables
it does not specify the input at all */
float* create1Darray(int length) {
float* arr = (float*) malloc(sizeof(float) * length);
return arr;
}
void read1Darray(float* array, int length) {
... | 3.46875 | 3 |
2024-11-18T21:23:35.395279+00:00 | 2019-01-28T09:51:23 | cfeeb83ec7d50ea85addb8b6c1740c67a8132be1 | {
"blob_id": "cfeeb83ec7d50ea85addb8b6c1740c67a8132be1",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-28T09:51:23",
"content_id": "801512fd50f69bf3fec0c405509daebc43eb86a0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "34b75b6ad71791b3bba7f539da045c22e41a25ef",
"extensio... | stackv2 | /** @file
@brief UDP data handler
This is not to be included by the application and is only used by
core IP stack.
*/
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __UDP_INTERNAL_H
#define __UDP_INTERNAL_H
#include <zephyr/types.h>
#include <net/net_core.h>
#i... | 2.3125 | 2 |
2024-11-18T21:23:35.581069+00:00 | 2021-04-14T01:40:00 | d72bbb983d795dbc838068066a02337c92c94fba | {
"blob_id": "d72bbb983d795dbc838068066a02337c92c94fba",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-14T01:40:00",
"content_id": "6ead7804275d07d73bccb7a1f35d7e662fae0694",
"detected_licenses": [
"MIT"
],
"directory_id": "af582fa4f2283deda4ad20fc20dd37dc54b23d96",
"extension": "c",
... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test_ft_isprint.c :+: :+: :+: ... | 2.671875 | 3 |
2024-11-18T21:23:36.335591+00:00 | 2020-09-13T18:43:02 | b17ab3afc4419556d149fe6a05c1833826a0bebb | {
"blob_id": "b17ab3afc4419556d149fe6a05c1833826a0bebb",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-13T18:43:02",
"content_id": "5c6b500c52a7d30c450c369be0958e8c8c5305e5",
"detected_licenses": [
"BSD-3-Clause",
"Apache-2.0"
],
"directory_id": "57d22026bda1b1cc5021dc75dd0aa8f5bd... | stackv2 | /***
* Boruvka
* --------
* Copyright (c)2019 Daniel Fiser <danfis@danfis.cz>
*
* This file is part of Boruvka.
*
* Distributed under the OSI-approved BSD License (the "License");
* see accompanying file BDS-LICENSE for details or see
* <http://www.opensource.org/licenses/bsd-license.php>.
*
* This soft... | 2.515625 | 3 |
2024-11-18T21:23:36.403318+00:00 | 2016-06-15T18:27:44 | 1c5237563c691dcf2692c089b0e04fe0f83f5e3c | {
"blob_id": "1c5237563c691dcf2692c089b0e04fe0f83f5e3c",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-15T18:27:44",
"content_id": "a357e82097029a20f4fa3cab175f1bdc578077e6",
"detected_licenses": [
"MIT"
],
"directory_id": "7f424063218bd0325a45ee21bf16add6c9bf2346",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "stats.h"
int compare_floats (const void *x, const void *y)
{
float xx = *(float*)x, yy = *(float*)y;
if (xx < yy) return -1;
if (xx > yy) return 1;
return 0;
}
McastStat* createMcastStat (int j... | 2.6875 | 3 |
2024-11-18T21:23:37.880248+00:00 | 2021-09-17T13:01:17 | d9ea726dd48c17717424385db4f7221eb5814058 | {
"blob_id": "d9ea726dd48c17717424385db4f7221eb5814058",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-17T13:01:17",
"content_id": "816277720fc81ff917b182382ae9c2661b76de35",
"detected_licenses": [
"MIT"
],
"directory_id": "45b3bbc0864947b3ff4add92eb354fb533a0cb5f",
"extension": "c",
... | stackv2 | #include <sys/socket.h>
#include <netinet/in.h>
#include <strings.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "lib/wrap.h"
#include <errno.h>
#define LISTENQ 1024 /* 2nd argument to listen() */
#define SERV_PORT 9877 /* TCP and UDP */
#define MAXLINE 4096 /* max text line length *... | 2.609375 | 3 |
2024-11-18T21:23:37.988625+00:00 | 2023-07-08T22:58:32 | ac55ef181ed0e21e975a3461af062005a07c9308 | {
"blob_id": "ac55ef181ed0e21e975a3461af062005a07c9308",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-08T22:58:32",
"content_id": "75b4c6c5e30c8921f0baa955c5321adba2d81c37",
"detected_licenses": [
"MIT"
],
"directory_id": "64a809e70c72c410d1c70621d21ce132235f3721",
"extension": "c",
... | stackv2 | // SPDX-License-Identifier: MIT
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <inttypes.h>
#include "rominfo.h"
static void getDiagRom(uint8_t *address, struct romInfo *info)
{
uint8_t *ptr = address + 0xC8;
uint8_t data = *ptr;
char *endptr = NULL;
if (data... | 2.71875 | 3 |
2024-11-18T21:23:38.173123+00:00 | 2020-10-25T10:56:40 | ed4ca136ac0b35acf4741c4072e265207dd8ac38 | {
"blob_id": "ed4ca136ac0b35acf4741c4072e265207dd8ac38",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-25T10:56:40",
"content_id": "d5c74b13cc48f88692afc96e931df3656deb807d",
"detected_licenses": [
"MIT"
],
"directory_id": "6849d711eeb1c9ec2a9463d9dbccf2ab668bb6b6",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
srand(time(0));
//取余得到100以内的数
int n = rand() % 100;
//记录猜的次数
int count = 0;
//输入的数
int x;
printf("请开始猜测");
do
{
printf("请输入一个数");
count++;
scanf("%d", &x);
if (x > n)
{
... | 3.296875 | 3 |
2024-11-18T21:23:38.508509+00:00 | 2020-08-04T21:01:44 | 8708650df10422e547d53f0d7e41a649a7736f42 | {
"blob_id": "8708650df10422e547d53f0d7e41a649a7736f42",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-04T21:01:44",
"content_id": "e4e4c3f86ddc5a0968b8e5d36f55e1cd459c56c3",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "e309946ff71c8244890f1c0adcc19c7d6846d430",
"extens... | stackv2 | /*!
* \file
* \ingroup process
* \author Stefan M. Trenkwalder <s.trenkwalder@openswarm.org>
* \version 1.0
*
* \date{07 July 2014}
*
* \brief It declares functions to specify a scheduling algorithm
* \copyright adapted FreeBSD License (see http://openswarm.org/license)
*/
#ifndef SYSTEM_SCHEDULER_H
#defi... | 2.359375 | 2 |
2024-11-18T21:23:38.569767+00:00 | 2017-05-02T12:29:35 | dc116733f5f351f9b8a55dd25e4697c3a5a115c2 | {
"blob_id": "dc116733f5f351f9b8a55dd25e4697c3a5a115c2",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-02T12:29:35",
"content_id": "3628d7f9a873dc606724c6a7f97a15440a4f7126",
"detected_licenses": [
"MIT"
],
"directory_id": "5e567ba31ba752e2d9cfe5b588fd9ee6b1fe2d08",
"extension": "c"... | stackv2 | /*
basically the hello world thing for gtk2.
setup:
$ sudo apt-get install gtk2.0
$ sudo apt-get install build-essential libgtk2.0-dev
compile:
$ gcc -Wall -g gtk_test.c -o g_test `pkg-config --cflags gtk+-2.0` \
$ `pkg-config --libs gtk+-2.0`
(those are ` forward ticks, not ' single quotes.)
relevant li... | 2.640625 | 3 |
2024-11-18T21:23:38.822116+00:00 | 2018-04-16T01:47:57 | 4c4911707d4776d2b660326a8f7b36101aa234a3 | {
"blob_id": "4c4911707d4776d2b660326a8f7b36101aa234a3",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-16T01:47:57",
"content_id": "76674b02c79e0b535a703ae1589fb693246e05f6",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "d9a14ac1351ce400a2dd120a89b037669cce986f",
"extens... | stackv2 | // =============================================================================
// <ultraviolet/utf/utf32/utf32.c>
//
// Copyright Kristian Garnét.
// -----------------------------------------------------------------------------
{
const u32* i = in;
#if T_EXPLICIT
const u32* e = in + len;
#endif
#if T_UTF32_COU... | 2.28125 | 2 |
2024-11-18T21:23:39.300242+00:00 | 2019-05-15T00:43:42 | de790838ce76dbf1cc1d9a1ba7618e244b6a8345 | {
"blob_id": "de790838ce76dbf1cc1d9a1ba7618e244b6a8345",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-15T00:43:42",
"content_id": "411a26924bf31dbdb6fb2a700c1794c6eaa85d0e",
"detected_licenses": [
"MIT"
],
"directory_id": "3daaabcf34a015fe2c795b122b9d9e17f12fb808",
"extension": "c"... | stackv2 | #define _GNU_SOURCE
#include "stringhelper.h"
#include "job_info.h"
#include <pcre2.h>
#include <stdio.h>
#include <string.h>
char *create_schd_str(unsigned long id, char *server_name, unsigned long server_id) {
char *schd;
asprintf(&schd, "%s %lu %s %lu", "SCHD", id, server_name, server_id);
return schd;
}
regex... | 2.484375 | 2 |
2024-11-18T21:23:40.882019+00:00 | 2020-07-03T09:10:27 | eea366a97704615d2e722e006e0aaa1d97887c74 | {
"blob_id": "eea366a97704615d2e722e006e0aaa1d97887c74",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-03T09:10:27",
"content_id": "b9fe7bcd37d24e9d5a4dd805e089ad2ea9f5094b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a4d463445e452533b37b647d6f26223b40b0d262",
"extensio... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <sys/errno.h>
#include <sys/socket.h> // socket
#include <netinet/in.h> // socketaddr_in
#include <arpa/inet.h> // inet_pton
#include <unistd.h> // read
#include "../include/easy_log.h"
int main(int argc, char *argv[])
{
char *ip="172.18.12.68";
int nSock... | 2.5 | 2 |
2024-11-18T21:23:41.070764+00:00 | 2023-08-13T10:00:00 | 2459397084a19a61fe96ca746b33fd503b680c69 | {
"blob_id": "2459397084a19a61fe96ca746b33fd503b680c69",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T10:00:00",
"content_id": "163a3fc9a77c16b681a9a29bb69ddb1b4bb9310b",
"detected_licenses": [
"MIT"
],
"directory_id": "0cc343d927d5db6693006018986715c43acab961",
"extension": "c"... | stackv2 | #include "stdlib.h"
/*@
inductive ilist = inil | icons(int, ilist);
fixpoint ilist iappend(ilist xs, ilist ys) {
switch (xs) {
case inil: return ys;
case icons(h, t): return icons(h, iappend(t, ys));
}
}
@*/
struct node {
struct node *next;
int value;
};
/*@
predicate lseg(struct nod... | 2.65625 | 3 |
2024-11-18T21:23:41.337812+00:00 | 2022-11-11T07:12:05 | 2b27f3f1029272bba48b057c53b7d65e9390a197 | {
"blob_id": "2b27f3f1029272bba48b057c53b7d65e9390a197",
"branch_name": "refs/heads/v3.0.1",
"committer_date": "2022-11-11T09:01:43",
"content_id": "a87da3e517d03f0e90b4a7c0040e5102fdc5de3e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2af283f8a587bcc3d2a744f7d86007ab2428f9bc",
"extensio... | stackv2 | /*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#include "iotx_dm_internal.h"
#if defined(OTA_ENABLED) && !defined(BUILD_AOS)
#ifdef INFRA_MEM_STATS
#include "infra_mem_stats.h"
#define DM_COTA_MALLOC(size) LITE_malloc(size, MEM_MAGIC, "dm.cota")
#define DM_COTA_FREE(ptr) ... | 2.15625 | 2 |
2024-11-18T21:23:41.848146+00:00 | 2016-05-02T07:55:14 | 9f25d624de4e5ca4d295c8a32010b8511b07c62a | {
"blob_id": "9f25d624de4e5ca4d295c8a32010b8511b07c62a",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-02T07:55:14",
"content_id": "75b71a6cae01329d427cf51214fff351f801f91b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "0ce9052cd8b29b742e651fe9ee87378dcf70c7de",
"extens... | stackv2 | /*
* arrayProduct.c - example in MATLAB External Interfaces
*
* Multiplies an input scalar (multiplier)
* times a 1xN matrix (inMatrix)
* and outputs a 1xN matrix (outMatrix)
*
* The calling syntax is:
*
* outMatrix = arrayProduct(multiplier, inMatrix)
*
* This is a MEX-file for MATLAB.
*/
#include <stdi... | 2.953125 | 3 |
2024-11-18T21:23:43.653982+00:00 | 2020-10-05T05:45:41 | 8f7d654053be48ab28ee1f97a4c01bc4e2723aef | {
"blob_id": "8f7d654053be48ab28ee1f97a4c01bc4e2723aef",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-05T05:45:41",
"content_id": "3e3fedfe626892aaa56ec1fee7ab28143efe8dd6",
"detected_licenses": [
"MIT"
],
"directory_id": "f53fcf7ec89c8c5ca06fc243757318561c19eb1c",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h> /* Zbog funkcije exit() */
struct Student {
char prezime[20];
char ime[15];
int broj_bodova1;
int broj_bodova2;
};
/* unos */
void unesi(char niz[], int velicina) {
char znak = getchar();
int i;
if (znak == '\n') znak=getchar();
i = 0;
while (i < velicina-1... | 3.328125 | 3 |
2024-11-18T21:23:43.771322+00:00 | 2017-06-14T12:54:04 | af8da256ded6b4c5d8cea8b34d3ad65c17c0c481 | {
"blob_id": "af8da256ded6b4c5d8cea8b34d3ad65c17c0c481",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-14T12:54:04",
"content_id": "71422d87b576e03779e05c2e0947b93549c536ae",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "1f944a6f3f9ec744191df6f984ac92e9d9a5c0d4",
"extens... | stackv2 | /**
* @file lcddevice.h
* @brief LCD display device specific code
* @author August Valera (avalera)
* @version
* @date 2017-04-20
*/
#ifndef _HA_LCDDEVICE_H_
#define _HA_LCDDEVICE_H_
#include "utils/hahaUtils.h"
#include <string.h>
// Required info for lcd module
#define LCD_COLS 16
#define LCD_ROWS 4
// Dev... | 2.328125 | 2 |
2024-11-18T21:23:43.902202+00:00 | 2015-01-07T14:48:43 | 62f007533aea39463b75d8cb5747fd063a9a5a46 | {
"blob_id": "62f007533aea39463b75d8cb5747fd063a9a5a46",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-07T14:48:43",
"content_id": "d21d9912334b3c7feafc461e2d7b91051a5f3f92",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "406864bfd639358346b0029db64b15ab0a6f19c2",
"extension":... | stackv2 | #include <stdio.h>
#include <stdlib.h>
struct time {
unsigned int millisecond : 10;
unsigned int second : 6;
unsigned int minute : 6;
unsigned int hour : 5;
};
struct time* set_time(int h, int min, int sec, int msec);
void print_time(const struct time* t);
int main(char argc, char** argv)
{
struct time* daytime... | 3.234375 | 3 |
2024-11-18T21:23:44.119902+00:00 | 2020-02-27T18:52:55 | 9f05fe10b4c7b7672877cd6a18a3fc9f8f6da717 | {
"blob_id": "9f05fe10b4c7b7672877cd6a18a3fc9f8f6da717",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-27T18:52:55",
"content_id": "d18dfe1941be2addbcaf92e0609a9ec8b6715fe2",
"detected_licenses": [
"MIT"
],
"directory_id": "669385abfa0acbeb0666b236e830cab0514b91b5",
"extension": "c"... | stackv2 | #include <assert.h>
#include <stdbool.h>
#include "jdump.h"
#include "jdattr.h"
#include "nl_inc.h"
#include "nlcctx.h"
#include "wifi_survey.h"
static int cb_dump(struct nl_msg* msg, void* arg)
{
struct genlmsghdr* gnlh = nlmsg_data(nlmsg_hdr(msg));
struct nlattr* tb[NL80211_ATTR_MAX + 1];
struct nlattr* survey... | 2.203125 | 2 |
2024-11-18T21:23:44.195175+00:00 | 2019-02-28T08:43:33 | d0260734874c9376aa27c737becd723f01ca2091 | {
"blob_id": "d0260734874c9376aa27c737becd723f01ca2091",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-28T08:43:33",
"content_id": "611a6fbc7c19a6bfd96b6c9f8400ada466113560",
"detected_licenses": [
"MIT"
],
"directory_id": "3e0da60102186e7f3a6b8e5401ec221ce83d18a3",
"extension": "c"... | stackv2 | #include "test.h"
#include "testErrors.h"
//
// Tests
//
bool test_errtype_c() {
char * unknown = errtype_c(ERROR_UNKNOWN);
for (CLibErrorType errorType = ERROR_FIRST; errorType <= ERROR_LAST; ++errorType) {
char * string = errtype_c(errorType);
if (errorType == ERROR_UNKNOWN) {
... | 2.515625 | 3 |
2024-11-18T21:23:44.507597+00:00 | 2021-10-24T18:10:14 | 5b037bed76162f55cbd3372b3ce61719a6c76afb | {
"blob_id": "5b037bed76162f55cbd3372b3ce61719a6c76afb",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-24T18:10:14",
"content_id": "3d4e5957fbde4a5848afa751017a2be36fca53ca",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "fe669501ab1d281fad4092face461a6c4a72ce29",
"extens... | stackv2 | #include <stdio.h>
int main()
{
unsigned int size = 5; // 計算したい要素数
unsigned long long x[] = {
0x1111111111111111,
0x2222222222222222,
0x3333333333333333,
0x4444444444444444,
0x5555555555555555};
unsigned long long *xp = x;
unsigned int vl;
while (size > 0)
{
// 実際に計算される要素数vlを格納
asm volatile... | 2.484375 | 2 |
2024-11-18T21:23:44.595638+00:00 | 2014-04-11T10:08:09 | 5764e4e09fe2afcbbf79b07fcb62f009137de251 | {
"blob_id": "5764e4e09fe2afcbbf79b07fcb62f009137de251",
"branch_name": "refs/heads/master",
"committer_date": "2014-05-07T09:33:54",
"content_id": "03b11fe2e4e206344e85ddf879cba98630195672",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "46e68bf6c4de918659952f5669204885bc319f8a",
"extensio... | stackv2 | /**
* FreeRDP: A Remote Desktop Protocol client.
* Ovdapp : OVD applications RDP channel
*
* Copyright 2012 Ulteo SAS
* http://www.ulteo.com
* Author Alexandre CONFIANT-LATOUR <a.confiant@ulteo.com> 2012
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU G... | 2.625 | 3 |
2024-11-18T21:23:44.745725+00:00 | 2021-02-13T22:40:34 | 0cd7e19f7b69325e08bf81e2b3d76f15dfe86530 | {
"blob_id": "0cd7e19f7b69325e08bf81e2b3d76f15dfe86530",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-13T22:40:34",
"content_id": "d846c5bbdd187c5b7d3133109356abc6e30ab2f2",
"detected_licenses": [],
"directory_id": "54467fbc3753fc00e3f522e8c10c6fde31c92939",
"extension": "c",
"filename":... | stackv2 | #include "../printf.h"
static void inite_str(t_data *data, char *str, int len)
{
int i;
i = 0;
while (i < len)
{
str[i] = data->flag_zero && !data->apply_acc ? '0' : ' ';
i++;
}
str[i - 1] = '\0';
}
static void handle_acc(t_data *data, char *str, char *src, int len)
{
if (!data->acc)
return ;
if (data-... | 2.765625 | 3 |
2024-11-18T21:23:45.052362+00:00 | 2018-07-03T05:12:29 | 61a1fd416aed4b212a407c66669b2b7618743203 | {
"blob_id": "61a1fd416aed4b212a407c66669b2b7618743203",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-03T05:12:29",
"content_id": "4634ead86f42fa05529fbecc336f37e3dca62bc8",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "285bd7718692e5122e69bbd46962f28652ab1066",
"extens... | stackv2 | #include<stdio.h>
#include<stdlib.h>
typedef struct employee_s{
char name[20];
float basicSalary;
int hra;
struct employee_s *pNext;
}employee_t;
employee_t* addEmpdata(void);
vioid printEmpList(void);
employee_t *pHead = NULL;
main()
{
employee_t *emp1, *emp2,*emp3;
emp1 = addEmpdata();
em... | 3.4375 | 3 |
2024-11-18T21:23:45.307168+00:00 | 2022-12-27T05:36:58 | 6c7fdd0258e34603bf79b2431cef41ad1c20d3c4 | {
"blob_id": "6c7fdd0258e34603bf79b2431cef41ad1c20d3c4",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-27T05:36:58",
"content_id": "f079ed22941e614dabd53c540ef6718a65341426",
"detected_licenses": [
"MIT"
],
"directory_id": "c8d83c556df56a2d9a6f9214889e5216fd32b5fc",
"extension": "c"... | stackv2 | #include "atecc-asymm.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "helpers.h"
#include "util.h"
#include "basic/atca_basic.h"
int do_atecc_gen_private(int argc, char **argv)
{
if (argc < 2) {
atecc_gen_private_help(argv[0]);
return 1;
}
ATC... | 2.25 | 2 |
2024-11-18T21:23:45.466009+00:00 | 2014-05-14T08:12:40 | 883b17d5ccf310c2872f103b694f7dd1e3eff73c | {
"blob_id": "883b17d5ccf310c2872f103b694f7dd1e3eff73c",
"branch_name": "refs/heads/master",
"committer_date": "2014-05-14T08:12:40",
"content_id": "13b9b750e57ed6f75a561af4e9c73d358492903d",
"detected_licenses": [
"MIT"
],
"directory_id": "36cb8fe413ba120d0a1eba52cce5532d6479c5b7",
"extension": "c"... | stackv2 | /* The MIT License
Copyright (c) 2014 Genome Research Ltd (GRL).
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... | 2.25 | 2 |
2024-11-18T21:23:45.545576+00:00 | 2023-08-29T07:30:36 | cf1755d7e01b5fc01549d30249e286cc532dd78a | {
"blob_id": "cf1755d7e01b5fc01549d30249e286cc532dd78a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T07:30:43",
"content_id": "50e295cb9a2308a7d7981ba5830fcac5610fe101",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2c1429a1bd2d0477fd88119d4d778fc68c82adcf",
"extensio... | stackv2 | /*
* Copyright 2016 Aaron Barany
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 2.421875 | 2 |
2024-11-18T21:23:45.692301+00:00 | 2021-11-01T21:58:22 | 7f07024fa43f70c5e97d14a7833f4a92e0f53eac | {
"blob_id": "7f07024fa43f70c5e97d14a7833f4a92e0f53eac",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-01T21:58:22",
"content_id": "b8569835a3a9aab3c58588de1ecb17f14275e601",
"detected_licenses": [
"MIT"
],
"directory_id": "e7c0d97c413b59adc9cad9d2f131baeedcaee816",
"extension": "c"... | stackv2 | #define _GNU_SOURCE // asprintf
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "generator.h"
#include "kfmon.h"
#include "nickelmenu.h"
#include "util.h"
NM_GENERATOR_(_test) {
if (time_in_o... | 2.34375 | 2 |
2024-11-18T21:23:46.059684+00:00 | 2019-11-19T08:47:50 | f1766202f42468f4a488d77eb2ff80b67f3455c3 | {
"blob_id": "f1766202f42468f4a488d77eb2ff80b67f3455c3",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-19T08:47:50",
"content_id": "4256ce608b21ddb238fbcf5ba0ef1e13b5fd0873",
"detected_licenses": [
"MIT"
],
"directory_id": "acb8c28bad36cfb539c92470550c14b49dd6ad16",
"extension": "",... | stackv2 | // c6-4.h 树的二叉链表(孩子-兄弟)存储结构。在教科书第136页
typedef struct CSNode // 结点类型
{ TElemType data; // 结点的值
CSNode *firstchild,*nextsibling;
}CSNode,*CSTree;
| 2.375 | 2 |
2024-11-18T21:23:46.249580+00:00 | 2020-08-01T14:35:20 | 2d1c1c06697e6afa99f4071dd8092414c6bb9078 | {
"blob_id": "2d1c1c06697e6afa99f4071dd8092414c6bb9078",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-01T14:35:20",
"content_id": "8feac931d173471649ea14f24a9b17cc5b04c30a",
"detected_licenses": [
"MIT"
],
"directory_id": "5e661247508d1e29db0f95cd54c1620f1fbb8d55",
"extension": "h"... | stackv2 | /*
* ADC_int.h
*
* Created on: 21 September, 2018
* Author: Amr Elzawawy
*/
#ifndef ADC_INT
#define ADC_INT
/* This enum is for function validation, holds the possible states of the ADC */
typedef enum ADC_enuState {
ADC_enuNormalState= 0,
ADC_enuNullPointerException,
}ADC_enuState;
/* Initalizatio... | 2.359375 | 2 |
2024-11-18T21:23:46.312211+00:00 | 2018-06-25T10:01:41 | bf6cedfc77cb21a01872d1cf8ed62bc6f53b5f74 | {
"blob_id": "bf6cedfc77cb21a01872d1cf8ed62bc6f53b5f74",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-25T10:01:41",
"content_id": "9ac22b78482a75b7cb0c0d9372b2b2ffb752ad80",
"detected_licenses": [
"MIT"
],
"directory_id": "b2434c0f8f748342725be593e734c60d9f5b5054",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <sys/syslimits.h>
#define SCREEN_WIDTH 1680
#define SCREEN_HEIGHT 1050
bool kfcTextToTex(const char *, SDL_Texture **, SDL_Color, int);
void kfcRenderSyllabe(const char *);
void kfcRenderTex(SDL_Textur... | 2.625 | 3 |
2024-11-18T21:23:46.377048+00:00 | 2021-06-01T20:18:31 | f694eab5323199485ebcdede95cea22ccb2c2b86 | {
"blob_id": "f694eab5323199485ebcdede95cea22ccb2c2b86",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-01T20:18:31",
"content_id": "ca239a7135ab078ad8e90a5f72eb16148cfb3686",
"detected_licenses": [
"MIT"
],
"directory_id": "9407237a35588b63a19a4f4d8a060e1c03697a1c",
"extension": "c",
... | stackv2 | /*Faça um programa que peça dois número inteiros ao usuário e mostre se o segundo número é maior, menor ou igual ao primeiro número.
Programa que apresenta se o segundo numero informado é maior, menor ou igual
ao primeiro número informado.
Autor: Felipe Augusto Bortolini Data: 22/09/2020
Teste de Mesa:
... | 3.40625 | 3 |
2024-11-18T21:23:46.568069+00:00 | 2018-09-12T08:59:35 | 96c4e262f3520bedff8dd5fd75d80ea416ca61bd | {
"blob_id": "96c4e262f3520bedff8dd5fd75d80ea416ca61bd",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-12T08:59:35",
"content_id": "d5c234e4cb44209ffb49b8364fa807b44eabc455",
"detected_licenses": [
"MIT"
],
"directory_id": "f700d566f439367354e3a7336824b7f511db7fb0",
"extension": "c"... | stackv2 | #include <assert.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "list.h"
#include "context_string.h"
#include "context_descriptor.h"
#include "register_context.h"
// All static functions are 'private'. So, there is no need to check input for NULL in them.
static void register_array_name_contex... | 2.46875 | 2 |
2024-11-18T21:23:47.189494+00:00 | 2023-07-07T18:41:40 | b52f5cd3933d8845503d2a35bc0d3178b6f6a6a7 | {
"blob_id": "b52f5cd3933d8845503d2a35bc0d3178b6f6a6a7",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-07T18:41:40",
"content_id": "dc19564a530fbd11baf477bbf32b1b8b1492250f",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c26d7b0ed875357278e61627da2da0650da77986",
"extens... | stackv2 | /*
* double strtodx (char *string, char **endPtr, int radix)
* This procedure converts a floating-point number from an ASCII
* decimal representation to internal double-precision format.
*
* Original sources taken from 386bsd and modified for variable radix
* by Serge Vakulenko, <vak@kiae.su>.
*
* Arguments:
*... | 2.953125 | 3 |
2024-11-18T21:23:47.280636+00:00 | 2020-08-15T02:10:51 | 87d41a71ed6b7f78c32f7ce768ea8ee2f5097147 | {
"blob_id": "87d41a71ed6b7f78c32f7ce768ea8ee2f5097147",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-15T02:10:51",
"content_id": "15458fc733e9d9ab240042383531428b5cd683e7",
"detected_licenses": [
"MIT"
],
"directory_id": "2b98811c8cdb11675098f8ba506b270a6e9fc3cc",
"extension": "c"... | stackv2 | //INFIX TO POSTFIX
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define BLANK ' '
#define TAB '\t'
#define MAX 50
void push(long int symbol);
long int pop();
void postfix_to_infix();
long int eval_post();
int priority(char symbol);
int isempty();
int white_space(char symb... | 3.65625 | 4 |
2024-11-18T21:23:47.540679+00:00 | 2023-08-07T00:34:06 | c2f08be55b2fad9ea9c5e60f705f8f780c8aa34c | {
"blob_id": "c2f08be55b2fad9ea9c5e60f705f8f780c8aa34c",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T00:34:06",
"content_id": "d273bda13a9af646e7da121946a8c62a72a392d7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7875d9c191db4bbe4d3bafc340035435833a2166",
"extensio... | stackv2 | /*+-------------------------------------------------------------------+
| <DOC> |
| <NAME> obj_pos() |
| <AUTHOR> John L. Foster |
| <DATE> January 11, 1990 ... | 2.34375 | 2 |
2024-11-18T21:23:47.598570+00:00 | 2013-07-24T08:38:25 | 48035ef381299b963571cef0c5eef4280bd3683e | {
"blob_id": "48035ef381299b963571cef0c5eef4280bd3683e",
"branch_name": "refs/heads/master",
"committer_date": "2013-07-24T08:38:25",
"content_id": "1701067a1aec1e2b915b007a57924ada883809a3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8e250031e11a52bffa60c302d33691ef54647760",
"extensio... | stackv2 | /*
* textualizator.c
*/
#include "textualizator.h"
void refsys_tag( POSTTIME * ptime , char * str_out ){
char str_tmp[4];
strncpy( str_out , refsys_types[ptime->refsys.type - 1] , 3 );
sprintf( str_tmp, "%03d" , ptime->refsys.instance );
strncpy( str_out + 3 , str_tmp , 3 );
}
void julianday_cat_instantstring(... | 2.34375 | 2 |
2024-11-18T21:23:47.684304+00:00 | 2021-04-02T06:32:08 | d7ed51cc546e690780bd524c8999c5c41159263b | {
"blob_id": "d7ed51cc546e690780bd524c8999c5c41159263b",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-02T06:32:08",
"content_id": "1bec65b3f82465d0b8f505429ef6b6b4290e1432",
"detected_licenses": [
"Unlicense"
],
"directory_id": "3c6ee68267b849621953da52084eedadb34cd340",
"extension... | stackv2 | /* <<<<< COMPLAINT >>>>>
*
* By: Kevin Colour
*
* Not sure how to make a general way to handle
* overflows. In this case it is done by specific test
* but the programmer needs to run test to find out
* what is the 'magic' number that causes the overf... | 2.921875 | 3 |
2024-11-18T21:23:48.285454+00:00 | 2023-08-16T12:50:05 | 13a349963bab5934b9b9ca60e8287080e0cd7efa | {
"blob_id": "13a349963bab5934b9b9ca60e8287080e0cd7efa",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T12:50:05",
"content_id": "e810e6c3271b40e8473bc9a802d2b480cf41a33a",
"detected_licenses": [
"MIT"
],
"directory_id": "984383140e7ad43ea42d6a79c3797438ebcfe71e",
"extension": "c"... | stackv2 | /*
Copy
Remarks:
Refer at fn. alloc_g and rl_g
*/
# define CAW_H
# define CAR_H
# define STDIO_H
# include "./../../../config.h"
signed(__cdecl cpy_g(void(*di),signed short(*si))) {
auto signed short *w;
auto void *g;
auto signed r;
if(!di) return(0x00);
if(!si) return(0x00);
g = (di);
w = (signed short(*)) lock_g... | 2.09375 | 2 |
2024-11-18T21:23:48.398925+00:00 | 2020-02-25T01:36:17 | 3efe4dc93ba880fad95fa573c0700988fe9d9371 | {
"blob_id": "3efe4dc93ba880fad95fa573c0700988fe9d9371",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-25T01:36:17",
"content_id": "604b0b24a6428b13f68ae3fe459e44cc40e6ef88",
"detected_licenses": [
"MIT"
],
"directory_id": "52b3bbe8c1b59ea3ca1297c50a89b487b20df885",
"extension": "h"... | stackv2 | /*
* log.h
*
* Created on: Dec 18, 2018
* Author: Dan Walkes
*/
#ifndef SRC_LOG_H_
#define SRC_LOG_H_
#include "stdio.h"
#include <inttypes.h>
/**
* Instructions for using this module:
* 1) #include "log.h" in the C file where you'd like to add logging
* 2) Reference macros LOG_XXX to log at specific th... | 2.40625 | 2 |
2024-11-18T21:23:48.566866+00:00 | 2020-12-15T13:35:13 | 6fb3d02bd346ebd55de37d0eac2456a135fc4e00 | {
"blob_id": "6fb3d02bd346ebd55de37d0eac2456a135fc4e00",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-15T13:35:13",
"content_id": "1d155cf7115a1d186bb65546b9fbc5d7e4b0aed7",
"detected_licenses": [
"MIT"
],
"directory_id": "4d8ecf6a48d814057f0b4d37712e407a3dfa9a4b",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* tfm_apply.c :+: :+: :+: ... | 2.078125 | 2 |
2024-11-18T21:23:48.735658+00:00 | 2018-01-24T00:39:01 | d251e7a6d2b470d1bb80b4fb10e23e4206c9df88 | {
"blob_id": "d251e7a6d2b470d1bb80b4fb10e23e4206c9df88",
"branch_name": "refs/heads/dev",
"committer_date": "2018-01-24T00:39:01",
"content_id": "aa46e882648551524a9f4b0aa40e79f8397e3c63",
"detected_licenses": [
"Unlicense"
],
"directory_id": "89cc6ece96ca3264055ea7ccb252da648449eb77",
"extension": ... | stackv2 | /*
ftdi.c
aleph-avr32
FTDI usb functions.
*/
// asf
#include "delay.h"
#include "print_funcs.h"
// aleph
//#include "conf_usb_host.h"
#include "events.h"
#include "event_types.h"
#include "ftdi.h"
#include "global.h"
#include "monome.h"
//#include "uhi_ftdi.h"
//---- defines
//---- extern vars
u8 ftdiConnec... | 2.1875 | 2 |
2024-11-18T21:23:49.409056+00:00 | 2023-08-27T19:14:02 | 1f2aa9ea4121529598f94e7df4c1be0806959fae | {
"blob_id": "1f2aa9ea4121529598f94e7df4c1be0806959fae",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-27T19:14:02",
"content_id": "4d2e0e820bf83835f93f3b6c159acfbb37bcbc6c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7c857119fe1505b1d80d6e62969661c06dc1a2f4",
"extens... | stackv2 | /** @file
Module Name:
FSInject.h
Definitions for private EFI_SIMPLE_FILE_SYSTEM_PROTOCOL and EFI_FILE_PROTOCOL implementations.
initial version - dmazar
**/
#ifndef __FSInject_H__
#define __FSInject_H__
/**
* FSInjection EFI_SIMPLE_FILE_SYSTEM_PROTOCOL private structure
*/
typedef struct {
UINT64 ... | 2.375 | 2 |
2024-11-18T21:23:50.260864+00:00 | 2018-07-06T16:17:39 | 2dbde25c65cd5ef5a4544c8ede45e7ae6cdfaccc | {
"blob_id": "2dbde25c65cd5ef5a4544c8ede45e7ae6cdfaccc",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-06T16:22:27",
"content_id": "eb5f115a55c453830d82482f6d8fa5545a419df7",
"detected_licenses": [
"MIT"
],
"directory_id": "fa5ab84da09a0c3b87cd5f4d8d84c47c41628d4a",
"extension": "h"... | stackv2 | #ifndef __BT_SETUP__
#define __BT_SETUP__
/*
This is an Arduino HC-06 bluetooth setup library.
Requirements:
- Developed using 4 pin HC-06 modules. Not tested with 6 pin modules.
- Arduino UNO with SoftwareSerial btSerial device created.
Featuers:
- Baud rate scanning to ensure connection is made. Verified using ... | 2.3125 | 2 |
2024-11-18T21:23:50.620242+00:00 | 2021-03-23T11:13:53 | d9c79bd8dc3d3380f3d3682b1875b65c3eb26bc3 | {
"blob_id": "d9c79bd8dc3d3380f3d3682b1875b65c3eb26bc3",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-23T11:13:53",
"content_id": "600d057f3ea79364b14dcd2bb12c405058dc1634",
"detected_licenses": [
"MIT"
],
"directory_id": "90a1f59c45e661c8850eb412b138fb159e60d032",
"extension": "c",
... | stackv2 |
#include "instr_evaluator.h"
int true = 1;
int false = 0;
int error = -1;
void *pNull = NULL;
int *pTrue = &true;
int *pFalse = &false;
int *pError = &error;
void *returnVal = NULL;
int returned = 0; // necessario per uscire dalla funzione dopo un break
int consecutive = 0;
int breakpoint = 0;
int breakpointPassed ... | 2.53125 | 3 |
2024-11-18T21:53:58.207700+00:00 | 2023-08-15T02:37:14 | be8d2c10249674e1653b41cc15803aa4144f7da6 | {
"blob_id": "be8d2c10249674e1653b41cc15803aa4144f7da6",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-15T02:37:14",
"content_id": "f7daebce42c7483d8ed2c2f30a431ac6a7ef70ac",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "73db0789f8f4b6cbc111def56880bd79d03171e5",
"extensio... | stackv2 | #include <sys/personality.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
int main(int argc, char **argv) {
pid_t child_pid = fork();
if (child_pid == -1) {
printf("Fork failed!\n");
return 1;
}
if (!child_pid) {
int pers = personality(ADDR_NO_RANDOMIZE | PER_LIN... | 2.203125 | 2 |
2024-11-18T21:53:58.365219+00:00 | 2018-05-04T15:48:13 | cd046f22f77777f87b8b44fa4f4e5c105efd0cc7 | {
"blob_id": "cd046f22f77777f87b8b44fa4f4e5c105efd0cc7",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-04T15:48:13",
"content_id": "c96b14a57754d4792af89901a09011e4c9b3ecb2",
"detected_licenses": [
"MIT"
],
"directory_id": "80909547917ec0364572f059a89cabb6775460ea",
"extension": "c"... | stackv2 | #include "Dfa_init.h"
#include "Dfa.h"
///////////////
// Constants //
///////////////
int states[] = {
STATE_N_START,
STATE_F_COMMA,
STATE_F_SEMICOLON,
STATE_F_OP,
STATE_F_CL,
STATE_F_SQO,
STATE_F_SQC,
STATE_F_PLUS,
STATE_F_MINUS,
STATE_F_MUL,
STATE_F_DIV,
STATE_F_SIZE,
STATE_F_WHITESPACE,
// STATE_N... | 2.015625 | 2 |
2024-11-18T21:53:58.538403+00:00 | 2021-06-06T19:16:29 | 77bc73f7686077885e9a9a694deff50d309595a7 | {
"blob_id": "77bc73f7686077885e9a9a694deff50d309595a7",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-06T19:16:29",
"content_id": "d6bfae52080a3ffa943f2ee1b96f35918bdcbbe2",
"detected_licenses": [
"MIT"
],
"directory_id": "22315e5a136669b01aac65ade2dbe97f33eaff36",
"extension": "c"... | stackv2 | #include <stdio.h>
int main ()
{
float a, b;
printf ("digite dois numeros");
scanf ("%f %f", &a, &b);
printf ("%f %f", floor(a), floor(b));
system ("pause");
return 0;
} | 2.546875 | 3 |
2024-11-18T21:53:58.648811+00:00 | 2019-07-10T13:07:06 | 1723678675ba5e349370c40e1f7b45f6be9627d7 | {
"blob_id": "1723678675ba5e349370c40e1f7b45f6be9627d7",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-10T13:07:06",
"content_id": "522b731522b56db2a04dee44e820ad92af58d203",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "f83ef53177180ebfeb5a3e230aa29794f5... | stackv2 | static void
arch_sigreturn(struct tcb *tcp)
{
/* 64-bit ABIs do not have old sigreturn. */
#ifdef LINUX_MIPSO32
/*
* offsetof(struct sigframe, sf_mask) ==
* sizeof(sf_ass) + sizeof(sf_pad) + sizeof(struct sigcontext)
*/
const kernel_ulong_t addr = mips_REG_SP + 6 * 4 +
sizeof(struct sigcontext);
tprin... | 2.3125 | 2 |
2024-11-18T21:53:58.714365+00:00 | 2023-07-26T17:31:52 | 69e27b55c2d1de6aeb5a852cddb230f849701b3a | {
"blob_id": "69e27b55c2d1de6aeb5a852cddb230f849701b3a",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-26T17:31:52",
"content_id": "f09ee58025eff0ad0851a97331eedc08e50a688c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "43604922b0d259ab093ac75cbad6e7dbe4bb2876",
"extensio... | stackv2 | #ifndef __PLATFORM_INTROSPECTION_H__
#define __PLATFORM_INTROSPECTION_H__
#include <mach/mach_types.h>
#include <mach/thread_info.h>
#include <mach/thread_status.h>
#include <sys/types.h>
#include <stdbool.h>
typedef struct platform_task_s *platform_task_t;
typedef struct platform_thread_s *platform_thread_t;
/*!
... | 2.34375 | 2 |
2024-11-18T21:53:59.028298+00:00 | 2020-05-23T18:27:27 | 30b582e4cc1c77b56ad05891c24358d2d9217935 | {
"blob_id": "30b582e4cc1c77b56ad05891c24358d2d9217935",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-23T18:27:27",
"content_id": "91d30c670b983f756b194fd3ce08c441f13cf3a2",
"detected_licenses": [
"Artistic-2.0"
],
"directory_id": "c70c52d7c2c1ed0865a6b804f7ae751e7a90832c",
"extens... | stackv2 | #include "startup.h"
#include "2d.h"
#include "blitter.h"
#include "coplist.h"
#include "fx.h"
#include "memory.h"
#include "ilbm.h"
#include "tasks.h"
STRPTR __cwdpath = "data";
#define WIDTH 320
#define HEIGHT 256
#define DEPTH 4
static ShapeT *shape;
static PaletteT *palette;
static BitmapT *screen;
static CopI... | 2.015625 | 2 |
2024-11-18T22:06:20.490026+00:00 | 2021-10-11T20:42:17 | 839d1e9d70dcbf52022e0bff054d04b3d3f4e0a4 | {
"blob_id": "839d1e9d70dcbf52022e0bff054d04b3d3f4e0a4",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-11T20:42:17",
"content_id": "06bee534e3a9b2da5e787dba9500c6ad4fdec4e2",
"detected_licenses": [],
"directory_id": "e695418ad9af72885a20ef89c4d31e2ad85e64b1",
"extension": "c",
"filename... | stackv2 | ///////////////////////////////////////////////
// test_refrigerant_saturatedLiquidDensity.c //
///////////////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include "refrigerant_saturatedLiquidDensity.h"
int main() {
///////////////////////////////////////////////////////////////
// Check... | 2.6875 | 3 |
2024-11-18T22:06:20.563560+00:00 | 2021-02-02T04:29:46 | cf62f2e3a84861a3a1fb174b1298fbe33799d49c | {
"blob_id": "cf62f2e3a84861a3a1fb174b1298fbe33799d49c",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-02T04:29:46",
"content_id": "073f896324cb1da89381c7af6da28f6f1e360efd",
"detected_licenses": [
"MIT"
],
"directory_id": "9cbfded70ffc84c95bd6bdb03a5914449ebc9e70",
"extension": "c"... | stackv2 | /**
* Copyright (C) 2013-2015
*
* @author jxfengzi@gmail.com
* @date 2017-8-5
*
* @file WdcInfo.c
*
* @remark
*
*/
#include "wdc/WdcInfo.h"
#include "esp_common.h"
// 1024k + 1024k, irom0text.bin = 512k, start sector = (1024k + 512k) / 4k
#define PRIV_PARAM_START_SEC 0x180
#define PRIV_PARAM_SAVE ... | 2.5 | 2 |
2024-11-18T22:06:20.632591+00:00 | 2021-08-16T15:37:39 | 108bb95d5759c9a8fa30fdbe0cee2290ecf0de6c | {
"blob_id": "108bb95d5759c9a8fa30fdbe0cee2290ecf0de6c",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-16T15:37:39",
"content_id": "20ce4f9fd06d0af794d3e9e50f45c6d7bd0ab6c8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "34203f613b77d8c80c4d7a370c55c12a63a10764",
"extensio... | stackv2 | // SPDX-FileCopyrightText: 2020 Mohamed Shalan
//
// 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 la... | 2.421875 | 2 |
2024-11-18T22:06:20.912200+00:00 | 2019-06-28T09:32:46 | 58cc4584ebfcf36bd189ccc4f29c7bc7761cd381 | {
"blob_id": "58cc4584ebfcf36bd189ccc4f29c7bc7761cd381",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-28T09:32:46",
"content_id": "9ecadaffeaa08d750b4a3f3a3cec5e304198b8ec",
"detected_licenses": [
"MIT"
],
"directory_id": "627ca1b5366e626e636cad149ad24d77fae23da2",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<sys/types.h>
#include<unistd.h>
int main( int argc, char** argv ){
char* message = argv[1];
int pds_AB[2];
pipe(pds_AB);
pid_t pidB = fork();
if( pidB < 0 ){
fprintf(stderr,"Error with fork B\n");
exit(1);
}el... | 2.875 | 3 |
2024-11-18T22:06:21.748706+00:00 | 2017-04-07T01:53:04 | 212bfd3616e55309c1808384f731fc6322366e12 | {
"blob_id": "212bfd3616e55309c1808384f731fc6322366e12",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-07T01:53:04",
"content_id": "610753cd36a232e9974e2357ea1a89cfa5c86c73",
"detected_licenses": [
"MIT"
],
"directory_id": "93a0693e997f1cc27c14d50782c74af73a464b05",
"extension": "c"... | stackv2 | /* _api.c
*
* API convenience functions for C-language.
* This file contains generated code. Do not modify!
*/
#include <corto/lang/c/c.h>
corto_alias _corto_aliasCreate(corto_member member) {
corto_alias _this;
_this = corto_alias(corto_declare(corto_alias_o));
if (!_this) {
return NULL;
}... | 2.265625 | 2 |
2024-11-18T22:06:21.885549+00:00 | 2023-08-28T12:41:12 | 4efd5655732d1756260dfb23419370e71394ec61 | {
"blob_id": "4efd5655732d1756260dfb23419370e71394ec61",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-28T12:41:12",
"content_id": "7c3c14d5498db092f67d15d8db046dd519c1ed90",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "12374ee7908f26364e9263289993fb2af1a91766",
"extension"... | stackv2 | /** @file
* Copyright (c) 2019-2020, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
*
* 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
*
* ht... | 2.015625 | 2 |
2024-11-18T22:06:21.963237+00:00 | 2018-01-18T01:16:38 | ed0fdae36d95264d1e658c7c212c78f97b53c9e2 | {
"blob_id": "ed0fdae36d95264d1e658c7c212c78f97b53c9e2",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-18T01:16:38",
"content_id": "d3e208e5fc0636a9d89ef2a0503e5de012a5135d",
"detected_licenses": [
"ISC"
],
"directory_id": "98867a6625fc664d0dafa0668dc8f1d507a071e2",
"extension": "c"... | stackv2 | #include <dtype.h>
int main(void)
{
List l = new_List(1, NULL);
printf("%d\n", List_pop(&l));
return 0;
}
| 2 | 2 |
2024-11-18T22:06:22.248671+00:00 | 2020-10-02T15:38:34 | c2082f31b26e18d05003749b1638c03608eb1619 | {
"blob_id": "c2082f31b26e18d05003749b1638c03608eb1619",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-02T15:38:34",
"content_id": "5941eaeb13b398bc0cc5eae15a47892eaea75b1f",
"detected_licenses": [
"MIT"
],
"directory_id": "b431b939f60dad8091582c5b145e82ff4d2964f9",
"extension": "c"... | stackv2 | #include <pthread.h>
#include <assert.h>
#define NUM_THREADS 100
static void * simple_thread(void *) ;
int x = 5 ;
int y = 0 ;
int main()
{
pthread_t tid[ NUM_THREADS ] ;
int count = 0 ;
srand (time(NULL)) ;
int i;
for( i = 0; i < NUM_THREADS ; i++ )
{
pthread_create(&tid[i], 0, &simple_thread,... | 2.9375 | 3 |
2024-11-18T22:06:22.310065+00:00 | 2009-07-09T12:14:08 | b5965b9ac20bf2235a2f47f6badf10d9c1ad2260 | {
"blob_id": "b5965b9ac20bf2235a2f47f6badf10d9c1ad2260",
"branch_name": "refs/heads/master",
"committer_date": "2009-07-09T12:14:08",
"content_id": "f1f16a3276b7090205433e705b0c1d14a36783b5",
"detected_licenses": [
"MIT"
],
"directory_id": "d7487d675ba01607b091cc3935700c5f13ee20a5",
"extension": "c"... | stackv2 | /*
* mnxcontrol -- Remote control utilities for UNIX, specifically Minix
* Copyright (c) 2009 Marten Klencke
*
* Distributed under an MIT license, See COPYING for details.
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include... | 2.5 | 2 |
2024-11-18T22:06:22.376541+00:00 | 2019-02-13T06:22:52 | 8337f72a8543e9e10564c062490c6d1d7874b922 | {
"blob_id": "8337f72a8543e9e10564c062490c6d1d7874b922",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-13T06:22:52",
"content_id": "4ec751e5eaeb44a67d95b2156c505889961bc35e",
"detected_licenses": [
"MIT"
],
"directory_id": "2ad29364b7c9c88a952bbd2952a69b314228a2a8",
"extension": "h"... | stackv2 | /*
* netlink/route/link/vlan.h VLAN interface
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 2.1
* of the License.
*
* Copyright (c) 2003-2013 Thomas Graf <tgraf@suug.c... | 2.078125 | 2 |
2024-11-18T22:06:22.562668+00:00 | 2017-12-14T03:13:06 | 52b0844eac39324585ca6ad3ff1813f9e13899c2 | {
"blob_id": "52b0844eac39324585ca6ad3ff1813f9e13899c2",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-14T03:13:06",
"content_id": "3be4d6a62f8569ebf81c01bef1c84909d21a1592",
"detected_licenses": [
"MIT"
],
"directory_id": "1924644bc1c87e947544b6a930b15d1ddc00be57",
"extension": "c"... | stackv2 | /*
* C program to find the areas of different geometrical shapes such as
* circle, square, rectangle etc using switch statements.
*/
#include <stdio.h>
void main()
{
int fig_code;
float side, base, length, breadth, height, area, radius;
printf("-------------------------\n");
printf(" 1 --> Circle\n... | 4 | 4 |
2024-11-18T22:06:22.771606+00:00 | 2020-10-20T22:51:39 | b045e0d9cddd3944456359329dabe0f165057f3e | {
"blob_id": "b045e0d9cddd3944456359329dabe0f165057f3e",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-20T22:51:39",
"content_id": "505e8b99a955e9309532d195e35a1e16f76d6ccc",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8dcf6cc02acddb2ba6b14f068511b4a59fbf902b",
"extension"... | stackv2 | #include <stdalign.h>
#include <spl/loop.h>
#include <spl/spl.h>
#include <spl/utils.h>
#include <spl/device_state.h>
#include <spl/timings.h>
static uint8_t _alignmentFix;
static uint16_t tm16Value1;
static uint16_t tm16Value2;
uint8_t gRxCommandIsNotBroadcast;
void on_idle(void) {
if (!(PA & (1 << SPL_PIN_BUTTO... | 2.125 | 2 |
2024-11-18T22:06:23.170022+00:00 | 2023-06-01T07:27:12 | fa79ea39c23a2b7a656aaa461c9a83c39ceb66b0 | {
"blob_id": "fa79ea39c23a2b7a656aaa461c9a83c39ceb66b0",
"branch_name": "refs/heads/main",
"committer_date": "2023-06-03T16:30:09",
"content_id": "8e23971ee88137160230c3444c3faf7f63dc0bfa",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7aeaa1edebceae34cf66713981229b1441e03635",
"extensio... | stackv2 | /*
* Copyright 2014-2017 Katherine Flavel
*
* See LICENCE for the full copyright terms.
*/
#include <assert.h>
#include <stddef.h>
#include "../txt.h"
#include "../xalloc.h"
#include "pretty.h"
#include "node.h"
#include "list.h"
/*
* This transformation combines two equivalent nodes:
*
* ||-- A B C -->----... | 2.890625 | 3 |
2024-11-18T22:06:23.253772+00:00 | 2020-05-03T22:30:23 | eded16f0077cb2c51e8ea4fd8d3d4629635271d4 | {
"blob_id": "eded16f0077cb2c51e8ea4fd8d3d4629635271d4",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-03T22:30:23",
"content_id": "40530e346ad995148d1df22c3248ba1e8dfaa445",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "977e86d7be8af42f9c45e917dbed174cca12d450",
"extens... | stackv2 |
/*
* LIB/MSGID.C
*
* (c)Copyright 1997, Matthew Dillon, All Rights Reserved. Refer to
* the COPYRIGHT file in the base directory of this distribution
* for specific rights granted.
*/
#include "defs.h"
Prototype const char *MsgId(const char *s, const char **badmsgid);
/*
* MsgId() - The message id mu... | 2.625 | 3 |
2024-11-18T22:06:23.591962+00:00 | 2023-08-18T12:54:06 | 448d4ca6fcebf487283506214d8c6a4d7aa3025a | {
"blob_id": "448d4ca6fcebf487283506214d8c6a4d7aa3025a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T12:54:06",
"content_id": "5e5e561ac99dfee0e3307e91223286f5bd0557c3",
"detected_licenses": [
"MIT"
],
"directory_id": "22446075c2e71ef96b4a4777fe966714ac96b405",
"extension": "c"... | stackv2 | /*!
* @file main.c
* @brief RS485 8 Click Example.
*
* # Description
* This example reads and processes data from RS485 8 clicks.
* The library also includes a function for enabling/disabling
* the receiver or driver and data writing or reading.
*
* The demo application is composed of two sections :
*
* ## ... | 2.90625 | 3 |
2024-11-18T22:06:24.080155+00:00 | 2020-09-06T11:00:18 | c8a56c8d100e9439d7c01272d438cc49b5d728e1 | {
"blob_id": "c8a56c8d100e9439d7c01272d438cc49b5d728e1",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-06T11:00:18",
"content_id": "b7c6f95799772f7806f94793f063b6c919c568b9",
"detected_licenses": [
"MIT"
],
"directory_id": "e66b7dc0e8eea86dc246989ccacfc0070decef58",
"extension": "c"... | stackv2 | #include <stdio.h>
#define SIZE 20
long result[SIZE][SIZE];
long paths(int row, int col)
{
if (row == 0 && col == 0) {
result[row][col] = 0;
return 0;
} else if (row == 0) {
result[row][col] = 1;
return 1;
} else if (col == 0) {
result[row][col] = 1;
return ... | 2.96875 | 3 |
2024-11-18T22:06:24.137272+00:00 | 2016-08-01T09:44:21 | 0fbdc7a38319073165a1d9dd34063241b65f5756 | {
"blob_id": "0fbdc7a38319073165a1d9dd34063241b65f5756",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-01T09:44:21",
"content_id": "1b5cc2d2e80a4b066af78495d40dc60c6da54d59",
"detected_licenses": [
"MIT"
],
"directory_id": "be3167504c0e32d7708e7d13725c2dbc9232f2cb",
"extension": "c"... | stackv2 | #include "portmidi.h"
#include "pmutil.h"
#include "stdlib.h"
#include "stdio.h"
/* make_msg -- make a psuedo-random message of length n whose content
* is purely a function of i
*/
void make_msg(long msg[], int n, int i)
{
int j;
for (j = 0; j < n; j++) {
msg[j] = i % (j + 5);
}
}
/* pri... | 3.078125 | 3 |
2024-11-18T22:06:24.261506+00:00 | 2016-02-07T12:30:21 | 0ae2cb3418b8824017d4db3589f771a07c5cb3fe | {
"blob_id": "0ae2cb3418b8824017d4db3589f771a07c5cb3fe",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-07T12:30:21",
"content_id": "2db99ad38c8a3f582cc82aaaec02a785475ee929",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "566bcab655413826d6b7c529a761bd0d086ec287",
"extens... | stackv2 |
#include "stddef.h"
#include "stdlib.h"
#include "stdio.h"
#include "math.h"
#include "float.h"
#include "string.h"
#include "time.h"
#include "multinest.h"
typedef double realn;
#define TALLOC(TYPE, NUM) ((TYPE *) malloc(sizeof(TYPE) * (NUM)))
#define FOREACH(IDX, NUM) for(IDX = 0; IDX < (NUM); ++ IDX)
#define Sq(... | 2.296875 | 2 |
2024-11-18T22:06:24.366047+00:00 | 2019-11-21T13:16:01 | f28df18e8fd3a79612ce9fbd4191743c6fb9879a | {
"blob_id": "f28df18e8fd3a79612ce9fbd4191743c6fb9879a",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-21T13:16:01",
"content_id": "28726a27f4eaee52a141bebf5313e90e09eb3c5c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "5323c43e14affaa292f68f63215293b759f51c8b",
"extens... | stackv2 | static void
arch_sigreturn(struct tcb *tcp)
{
#define SIZEOF_STRUCT_SIGINFO 128
#define SIZEOF_STRUCT_SIGCONTEXT (21 * 4)
#define OFFSETOF_STRUCT_UCONTEXT_UC_SIGMASK (5 * 4 + SIZEOF_STRUCT_SIGCONTEXT)
const long addr =
#ifdef AARCH64
tcp->currpers == 0 ?
(*aarch64_sp_ptr + SIZEOF_STRUCT_SIGINFO +
offsetof(st... | 2.109375 | 2 |
2024-11-18T22:06:24.824490+00:00 | 2022-12-12T23:32:11 | 38aded06632601b77dc51d2517f08d9d4bb30a4e | {
"blob_id": "38aded06632601b77dc51d2517f08d9d4bb30a4e",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-12T23:32:11",
"content_id": "c31af8a079d30883a43bdbf31bccc348ad3c7e6c",
"detected_licenses": [
"MIT"
],
"directory_id": "802d4ff6dcf3214fd01d637fd29f2d05e2f81b40",
"extension": "cp... | stackv2 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*=============================================================================
**
** Source: test2.c
**
** Purpose:... | 2.59375 | 3 |
2024-11-18T22:06:25.033743+00:00 | 2018-06-03T06:40:50 | 4190adcdc8af7f3a61e4b1d01671ec9be8e24da0 | {
"blob_id": "4190adcdc8af7f3a61e4b1d01671ec9be8e24da0",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-03T06:40:50",
"content_id": "daa55488794549184bfe107b596ce5bfe07c3441",
"detected_licenses": [
"MIT"
],
"directory_id": "e99c529497f53e64e6d3abfeea4f53a41489ee15",
"extension": "c"... | stackv2 | /*
* The MIT License
*
* Copyright 2018 Arda 'Arc' Akgur.
*
* 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... | 2.625 | 3 |
2024-11-18T22:06:25.393475+00:00 | 2011-09-30T06:20:20 | 3c6d9876b18222855deafe61e9bdcf12f1482df7 | {
"blob_id": "3c6d9876b18222855deafe61e9bdcf12f1482df7",
"branch_name": "refs/heads/master",
"committer_date": "2011-09-30T06:20:20",
"content_id": "08465a0fe89e63d201215b00470b7a84ff5d4212",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8e34b0c6c7e19e760eb79154d580b740821ce997",
"extens... | stackv2 | /*
* rogue.c - Global game variables
*
* Advanced Rogue
* Copyright (C) 1984, 1985, 1986 Michael Morgan, Ken Dalka and AT&T
* All rights reserved.
*
* Based on "Rogue: Exploring the Dungeons of Doom"
* Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman
* All rights reserved.
*
* See the fil... | 2.09375 | 2 |
2024-11-18T22:06:25.617895+00:00 | 2019-06-16T13:36:00 | a64f1a8d1c1104733dc355cb36709a68111e0cbf | {
"blob_id": "a64f1a8d1c1104733dc355cb36709a68111e0cbf",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-16T13:36:25",
"content_id": "34afd5b44feb5de6943fb9523219102b3a22187e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9f8e211faff4f4849eb452ea142128621aa73831",
"extens... | stackv2 | /*
* THE NEMESIS PROJECT
* Copyright (C) 1999, 2000, 2001 Mark Grimes <mark@stateful.net>
* Copyright (C) 2001 - 2003 Jeff Nathan <jeff@snort.org>
*
* nemesis-arp.c (ARP/RARP Packet Injector)
*/
#include "nemesis-arp.h"
#include "nemesis.h"
#if defined(WIN32)
#include <pcap.h>
#endif
static ETHERhdr etherhdr;
s... | 2.03125 | 2 |
2024-11-18T22:06:26.487778+00:00 | 2020-01-07T16:20:53 | bc7d6e274f592be177b9cf9a1c02b8c0d562c925 | {
"blob_id": "bc7d6e274f592be177b9cf9a1c02b8c0d562c925",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-07T16:20:53",
"content_id": "0394000debf49de0f7dc23f191c97dd2ed48ec56",
"detected_licenses": [
"MIT"
],
"directory_id": "6e29a6af0887f0eca5143eeef73b44b8cd172444",
"extension": "c"... | stackv2 | #include "main.h"
extern TIM_HandleTypeDef hTimLed;
extern I2S_HandleTypeDef hAudioOutI2s;
extern I2S_HandleTypeDef hAudioInI2s;
extern ADC_HandleTypeDef hAdc;
//*****************************************************************************
// Cortex-M4 Processor Exceptions Handlers ... | 2.03125 | 2 |
2024-11-18T22:06:26.913264+00:00 | 2020-11-08T04:47:26 | ccac1d50c9a601d257c37c4e5d9f4fca921711a8 | {
"blob_id": "ccac1d50c9a601d257c37c4e5d9f4fca921711a8",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-08T04:47:26",
"content_id": "821b699bf0b613e53af14a8e36e2c1150586182e",
"detected_licenses": [
"MIT"
],
"directory_id": "2b8bee1ccdf7df95feb07919f527048b6614af09",
"extension": "c",
... | stackv2 | #include <stdio.h>
int main(void)
{
int i, k, a, b, result = 0;
printf("Chose lowerbound of the interval: ");
scanf("%d", &a);
printf("Chose upperbound of the interval: ");
scanf("%d", &b);
printf("Chose divisor: ");
scanf("%d", &k);
/* m vil hermed være det mindste tal*/
int m = ... | 3.71875 | 4 |
2024-11-18T22:06:27.202871+00:00 | 2019-08-06T14:24:54 | 5790161e41864da4e1022a32562c228dddddf077 | {
"blob_id": "5790161e41864da4e1022a32562c228dddddf077",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T14:24:54",
"content_id": "83ae2f38dd8ea5eb139f21e41f1e048e13d46df6",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "021a3ccdcb91d84629f1de7343981b572840b169",
"extens... | stackv2 |
static char help[] = "Solves a variable Poisson problem with KSP.\n\n";
/*T
Concepts: KSP^basic sequential example
Concepts: KSP^Laplacian, 2d
Concepts: Laplacian, 2d
Processors: 1
T*/
/*
Include "petscksp.h" so that we can use KSP solvers. Note that this file
automatically includes:
petscsys.h... | 2.6875 | 3 |
2024-11-18T22:06:27.605079+00:00 | 2020-12-03T10:59:55 | 8e74edcb9c2835e879423cb6c8c1f776961fe8c2 | {
"blob_id": "8e74edcb9c2835e879423cb6c8c1f776961fe8c2",
"branch_name": "refs/heads/rayfork-0.9",
"committer_date": "2020-12-03T10:59:55",
"content_id": "08c8ee3378de31f4cf017a0f68e9361b836b2087",
"detected_licenses": [
"Unlicense"
],
"directory_id": "52db6253baa4bf3d32cc7ce0e9e5694b48391e65",
"exte... | stackv2 | //In this file we only initialise the window using sokol_app
#define SOKOL_IMPL
#define SOKOL_GLCORE33
#define SOKOL_WIN32_NO_GL_LOADER
#include "sokol_app.h"
#include "game.h"
input_data global_input_data;
void platform_on_frame()
{
on_frame(global_input_data);
// single frame input
// keyboard
if... | 2.265625 | 2 |
2024-11-18T22:06:28.347422+00:00 | 2016-12-22T20:18:45 | 447a6307a9a2af8168f4a59b98ec4f6571d41e1a | {
"blob_id": "447a6307a9a2af8168f4a59b98ec4f6571d41e1a",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-22T20:18:45",
"content_id": "7e13075bd86b3963d47152419f1137cf67a3d7d5",
"detected_licenses": [
"MIT"
],
"directory_id": "8488c263109503be29d276cce4d6862433b34bd0",
"extension": "h"... | stackv2 | #ifndef NS_BOUNDARY_H_
#define NS_BOUNDARY_H_
/**
* Given the boundary conditions defined by the flag matrix, update
* the u and v velocities. Also enforce the boundary conditions at the
* matrix edges.
*
* @param u Matrix keeping track of the u velocity.
* @param v Matrix keeping track of the v velocity.
* @pa... | 2.1875 | 2 |
2024-11-18T22:06:28.497316+00:00 | 2023-02-18T19:20:16 | 744c5407b6019f674241c22c7b4702391fcb9c8c | {
"blob_id": "744c5407b6019f674241c22c7b4702391fcb9c8c",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-18T19:20:16",
"content_id": "b702196d203705532c881f4b3e7d136a5ee92016",
"detected_licenses": [
"MIT"
],
"directory_id": "2785c3a1657d7c85a4ac249b0691567c66b2f273",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "insertion_sort.h"
void insertion_sort(array *_array, cmp_f cmp)
{
if (!_array) {
fputs("[insertion_sort] Must provide an array.", stderr);
return;
}
unsigned int i = 1;
while (i < _array->len) {
unsigned int j = i;
while (j > 0 && cmp(array_... | 2.828125 | 3 |
2024-11-18T22:06:28.862259+00:00 | 2019-06-04T10:38:40 | 96c99b90dbbc6ec786afc6cc50028b57a0e79500 | {
"blob_id": "96c99b90dbbc6ec786afc6cc50028b57a0e79500",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-04T10:38:40",
"content_id": "42f9c41ab07a4c03879363bd7cfebc610b265f1e",
"detected_licenses": [
"MIT"
],
"directory_id": "80ee7200ac9e5897a15760191fc4c22cbed1a085",
"extension": "c"... | stackv2 | #include "error.h"
#include "tempr.h"
#include "../libs/onewire/onewire.h"
#include "../libs/ds18x20/ds18x20.h"
#include <util/delay.h>
#define MAX_INIT_RETRIES (20)
// Because the output waveform is computed synchronously with the mains zero-crossing,
// but temperature measurement and pid calculation happen syn... | 2.5625 | 3 |
2024-11-18T22:06:28.937935+00:00 | 2023-05-28T10:14:58 | 5b79069fd1aeb2ad6aa2db650608fa3af7ff3b2c | {
"blob_id": "5b79069fd1aeb2ad6aa2db650608fa3af7ff3b2c",
"branch_name": "refs/heads/main",
"committer_date": "2023-05-28T10:24:28",
"content_id": "a2de2530dabfae225396741d1e1b31a8b30137ac",
"detected_licenses": [
"MIT"
],
"directory_id": "577360dd60b07dfa9d14a9ab9be88cf5f58fcb26",
"extension": "c",
... | stackv2 | /*******************************************************************/
/* slibtool: a skinny libtool implementation, written in C */
/* Copyright (C) 2016--2021 SysDeer Technologies, LLC */
/* Released under the Standard MIT License; see COPYING.SLIBTOOL. */
/***************************************... | 2.3125 | 2 |
2024-11-18T22:06:29.130160+00:00 | 2023-01-01T15:03:05 | ad9175d22d4530c7ef19550362f892435e924f20 | {
"blob_id": "ad9175d22d4530c7ef19550362f892435e924f20",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-01T15:03:05",
"content_id": "40addee6beab371aa9b479031f600fdf924d0494",
"detected_licenses": [
"0BSD"
],
"directory_id": "54c780592f37a01ba00264d8d0b9229aa4d673c0",
"extension": "c... | stackv2 | /*
* Copyright (C) 2013 by Gregor Pintar <grpintar@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMP... | 2.265625 | 2 |
2024-11-18T22:06:29.320073+00:00 | 2021-01-15T15:27:50 | b329969d9e43654b92e11ee426a223ece9cd1977 | {
"blob_id": "b329969d9e43654b92e11ee426a223ece9cd1977",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-15T15:27:50",
"content_id": "7680f81b1af904ec118be497320b3634aec93daf",
"detected_licenses": [
"MIT"
],
"directory_id": "f23704938d09fc21ea03db337953c4437f22d29d",
"extension": "c"... | stackv2 | /// @file parallel_matrix_op.c
/// @brief the standard implementations for functions in parallel_matrix_op.h
///
/// the standard implementations for functions in parallel_matrix_op.h
///
#include "blas_comm.h"
#include "blas.h"
#include "parallel_matrix_op.h"
#include "rainbow_keypair.h"
#include "string.h"
#i... | 2.203125 | 2 |
2024-11-18T22:06:29.508348+00:00 | 2023-07-22T17:06:46 | baa8b0584657b9c583e20e8e8a57a0587ad2c6a6 | {
"blob_id": "baa8b0584657b9c583e20e8e8a57a0587ad2c6a6",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-22T17:06:46",
"content_id": "010192be3c2773ccddc51dbbfd3a706b5eadbf05",
"detected_licenses": [
"MIT"
],
"directory_id": "8b9bbf602a137e48fc75af03b3780390afcd8878",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdio.h>
int foo(long unsigned int* used) {
if (*used >= 2ULL * 1024 * 1024 * 1024)
return 0;
*used += sizeof(int) * 1024;
int tmp[1024];
return tmp[foo(used) % 1024] + tmp[1023];
}
int main() {
long unsigned int used = 0;
int res = foo(&used);
print... | 2.78125 | 3 |
2024-11-18T22:06:29.627447+00:00 | 2020-10-15T14:05:20 | 2069b3f8c44fb72ef6eef6d10d137d0b1f350b12 | {
"blob_id": "2069b3f8c44fb72ef6eef6d10d137d0b1f350b12",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-15T14:05:20",
"content_id": "d8889b87d40e88ac57d10cda5651b825ca0ea6be",
"detected_licenses": [
"MIT"
],
"directory_id": "7f6f288b80e330afaa6d6753644060b4be2576d0",
"extension": "h"... | stackv2 | #ifndef _camera_h_
#define _camera_h_
#include <stdio.h>
#include <cglm/cglm.h>
#include <math.h>
enum Camera_Movement {
FORWARD,
BACKWARD,
LEFT,
RIGHT
} Camera_Movement;
typedef struct camera {
// camera Attributes
vec3 Position;
vec3 Front;
vec3 Up;
vec3 Right;
vec3 WorldUp;... | 2.1875 | 2 |
2024-11-18T22:06:29.695095+00:00 | 2021-09-15T16:28:18 | 57f4488fa8fc545c70bb7e922890378dd22fb6e9 | {
"blob_id": "57f4488fa8fc545c70bb7e922890378dd22fb6e9",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-15T16:28:18",
"content_id": "5510886588b6224c6d91cd74d7662993ee4d7ad8",
"detected_licenses": [
"MIT"
],
"directory_id": "8c5672a073fb71e8038ad88991c2473347de378d",
"extension": "c",
... | stackv2 | #include <stdio.h>
int n;
int fun_recur(int x);
int fun_var(void);
int main(void)
{
int a,recurse;
printf("ENTER THE NUMBER OF DISKS: ");
scanf("%d",&a);
if(a%2!=0)
{
n=a;
recurse=fun_recur(a);
fun_var();
printf("\nTHE NUMBER OF MOVES (using recursive function) ARE: %... | 3.375 | 3 |
2024-11-18T22:06:29.756520+00:00 | 2018-03-28T01:10:06 | ac427e707bde9e6cc3a1c55377c54d3e3876f42d | {
"blob_id": "ac427e707bde9e6cc3a1c55377c54d3e3876f42d",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-28T01:10:06",
"content_id": "a6e47ec06f2a6ce2dd0ad6219ebdd8225ba4eb37",
"detected_licenses": [
"MIT"
],
"directory_id": "b5c0544114817ba3159a0e89520c56b007f8778a",
"extension": "c"... | stackv2 | #include "header.h"
#include <unistd.h>
#include <regex.h>
/* Function prototypes */
int getMapDims(FILE *, int *, int *);
int processRuleStr(char *);
int randBin(float);
int **make2DArr(unsigned int, unsigned int);
/* ruleset defines number of neighbors for a cell to give birth or survive */
/* # Neighbors:... | 2.75 | 3 |
2024-11-18T22:06:30.061088+00:00 | 2020-04-06T16:18:32 | 03026a96188dda666689f63c05ee80c347fd8006 | {
"blob_id": "03026a96188dda666689f63c05ee80c347fd8006",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-06T16:18:32",
"content_id": "323b694401554c847269316822a6e7b7b5f329a7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "43b04a3a76cd240aefd896e8419a471ab9a2e8f9",
"extensio... | stackv2 | #include <stdio.h>
int binarySearch(int size, int array[], int searchKey){
int left = 1, mid, right = size;
while(left <= right){
mid = (left + right) / 2;
if(array[mid] == searchKey){
return mid;
}
else if(array[mid] > searchKey){
left = mid + 1;
... | 3.484375 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.