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-18T19:35:31.224193+00:00 | 2013-12-31T17:52:27 | aae40ab81efbeae4574a348378d953c79c587132 | {
"blob_id": "aae40ab81efbeae4574a348378d953c79c587132",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-31T17:52:27",
"content_id": "e3fcc78c82149e7da9303d0851938c17c30cffb2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "89cade5f2b532f8a8facd0f90d06b87c01ce6291",
"extensio... | stackv2 | /*
* Copyright 2013 Jarek Jarcec Cecho <jarcec@apache.org>
*
* 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 appli... | 2.390625 | 2 |
2024-11-18T19:35:33.847037+00:00 | 2019-04-10T11:15:13 | f82e6a33f84e5edfc9f2bc0790b5de637d94ce78 | {
"blob_id": "f82e6a33f84e5edfc9f2bc0790b5de637d94ce78",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-10T11:15:13",
"content_id": "de8c7ef9c0e4fdccb9552e77bb6865cf1ad34de1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f66e2ad3fc0f8c88278c0997b156f5c6c8f77f28",
"extensio... | stackv2 | #ifndef DATASTRUCTURE_C_CIRCLELINKEDLIST_H
#define DATASTRUCTURE_C_CIRCLELINKEDLIST_H
#include<stdio.h>
#include<stdlib.h>
//链表的小结点
typedef struct CircleLinkNodeTag {
struct CircleLinkNodeTag *next;
} CircleLinkNode;
//链表结构体
typedef struct {
CircleLinkNode head;
int size;
} CircleLinkList;
//编写针对链表结构体操... | 2.53125 | 3 |
2024-11-18T19:35:34.245396+00:00 | 2022-03-16T00:36:15 | f0362089ae5b4ed37ec848f000194c7df7e4efc3 | {
"blob_id": "f0362089ae5b4ed37ec848f000194c7df7e4efc3",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-16T00:36:15",
"content_id": "0528eeb3c17475ae04232347723257ac31fab3e7",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "511a86ed875b66366e3541e1268750db01b9d843",
"extens... | stackv2 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2019-2021 Darby Johnston
// All rights reserved.
#include "fseq.h"
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#if defined(WIN32) || defined(_WIN32)
#include... | 2.15625 | 2 |
2024-11-18T19:46:55.034534+00:00 | 2021-10-07T00:23:54 | 0e44bd82e004652d684f46abec3dc979def15e9b | {
"blob_id": "0e44bd82e004652d684f46abec3dc979def15e9b",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-07T00:23:54",
"content_id": "9fd826fb4ce33e425fc88955f6abf5a53c92a285",
"detected_licenses": [
"MIT"
],
"directory_id": "d0ffcdb7cae5052dc06cb5cbc614de53e0dc1cd9",
"extension": "c"... | stackv2 | /**
* @author Cristóvão Zuppardo Rufino <cristovaozr@gmail.com>
* @version 0.1
*
* @copyright Copyright Cristóvão Zuppardo Rufino (c) 2020-2021
* Please see LICENCE file to information regarding licensing
*/
#include "include/device/usart.h"
#include <stdint.h>
#include "include/errors.h"
#include "include/dev... | 2.421875 | 2 |
2024-11-18T19:46:55.101657+00:00 | 2018-03-02T05:36:21 | 47a0845f18a9bb2cfced6bdde61f310ca97da0df | {
"blob_id": "47a0845f18a9bb2cfced6bdde61f310ca97da0df",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-02T05:36:21",
"content_id": "5111f192b237abe5df7ba1a66365d5404a62e769",
"detected_licenses": [
"MIT"
],
"directory_id": "b727e7ce9f48829673712581327f0ac909468e74",
"extension": "c"... | stackv2 | #include "types.h"
#include "stat.h"
#include "user.h"
#include "syscall.h"
#define PGSIZE 4096
void dump_mem()
{
/* Fork a new process to play with */
/* We don't have a good way to list all pids in the system
so forking a new process works for testing */
uint procMemSize = (uint) sbrk(0);
uint pid = fork... | 3.09375 | 3 |
2024-11-18T20:00:26.447556+00:00 | 2022-03-01T22:33:16 | 2853cf7ee245eaaffcd0ed509b307f3c5d690d15 | {
"blob_id": "2853cf7ee245eaaffcd0ed509b307f3c5d690d15",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-12T17:03:27",
"content_id": "aad1514660728e85382d5f4ede045e83129a1f60",
"detected_licenses": [
"MIT"
],
"directory_id": "c7308b6f7534ec1d08d02ff7882020636f42a2cb",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include "../../util/util.h"
#include "../../util/platform.h"
#include "../decl.h"
#include "../op.h"
#include "../type_nav.h"
#include "../macros.h"
#include "val.h"
#include "asm.h"
#include "impl.h"
#include "write.h"
#include "out.h"
#include "virt.h"
v... | 2.0625 | 2 |
2024-11-18T20:00:26.636264+00:00 | 2018-11-17T05:52:58 | 77e33bba07877c094a60c234b34ccc7206fd7a92 | {
"blob_id": "77e33bba07877c094a60c234b34ccc7206fd7a92",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-17T05:52:58",
"content_id": "6a50c720180346e7bab57d9c2491dc86d89352d1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "51051a7bb37da0ab7382a4fc1d13135d9657120d",
"extens... | stackv2 | #include "inipara.h"
#include "winapis.h"
#include "share_lock.h"
#include <stdio.h>
#include <tlhelp32.h>
#include <shlobj.h>
#ifdef DISABLE_SAFE
static _NtCreateUserProcess sNtCreateUserProcess,
pNtCreateUserProcess;
static _CreateProcessInternalW sCreateProcessInternalW,
... | 2.078125 | 2 |
2024-11-18T20:26:00.981009+00:00 | 2019-03-21T06:52:03 | 33dc7c8528d46daaa1502f5124046ecc9054a610 | {
"blob_id": "33dc7c8528d46daaa1502f5124046ecc9054a610",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-21T06:52:03",
"content_id": "bb6beec20a8e77831b481fcb658be357b8752a37",
"detected_licenses": [
"MIT"
],
"directory_id": "217b893ece6ce7e7d13a9a718c03a49842943ed0",
"extension": "c"... | stackv2 | //
// Created by YangYongbao on 2017/3/16.
//
#include "stm32f10x.h"
#include "stm32f10x_conf.h"
#include "FreeRTOS.h"
#include "task.h"
#include "uart_log.h"
#include "hal.h"
#include "usb_lib.h"
#include "usb_desc.h"
#include "usb_pwr.h"
extern __IO uint8_t Receive_Buffer[64];
extern __IO uint32_t Receive_length;
e... | 2.578125 | 3 |
2024-11-18T20:26:01.227823+00:00 | 2021-10-18T09:54:58 | 6851d3e537272de065417b8fd137fd245764b245 | {
"blob_id": "6851d3e537272de065417b8fd137fd245764b245",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-18T09:54:58",
"content_id": "ae875d2db4200bec5f2f89360b39741b656bdb1c",
"detected_licenses": [
"MIT"
],
"directory_id": "b1f7b54161dbeebea764d11fcaaf8cacaa30f4e1",
"extension": "c",
... | stackv2 | #include "libmx.h"
int mx_strlen(const char *str) {
int length = 0;
if(str[0] == '\0') return length;
while (*str != '\0') {
length++;
str++;
}
return length;
}
| 2.28125 | 2 |
2024-11-18T20:26:01.404585+00:00 | 2021-10-03T00:46:42 | d45b7937f2fce4211912c24dec109e13cf6416d7 | {
"blob_id": "d45b7937f2fce4211912c24dec109e13cf6416d7",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-03T00:46:42",
"content_id": "a1faf3f8af5ac2bc468e1e845bd92e9318d396ae",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "976dee047265578af17e8a53c4011e799cb24c34",
"extension"... | stackv2 | #pragma once
#include "defines.h"
#define LOG_WARN_ENABLED 1
#define LOG_INFO_ENABLED 1
#define LOG_DEBUG_ENABLED 1
#define LOG_TRACE_ENABLED 1
// Disable debug and trace logging for release builds.
#if KRELEASE == 1
#define LOG_DEBUG_ENABLED 0
#define LOG_TRACE_ENABLED 0
#endif
typedef enum log_level {
LOG_LEV... | 2.328125 | 2 |
2024-11-18T20:26:01.474963+00:00 | 2015-10-21T02:24:55 | b66bd6532556a6cd2a1d898ea39151a293539926 | {
"blob_id": "b66bd6532556a6cd2a1d898ea39151a293539926",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-21T02:24:55",
"content_id": "f44c192c2eb3562b9306c12224cd79be63c86086",
"detected_licenses": [
"MIT"
],
"directory_id": "4ec889227c79e28253dfbff5a6de7a2dd1047658",
"extension": "h"... | stackv2 | /**
* @file comm_internal.h
* @brief
* @author Travis Lane
* @version 0.0.1
* @date 2015-10-02
*/
#ifndef LONGBOARD_COMM_INTERNAL
#define LONGBOARD_COMM_INTERNAL
#include "comm.h"
typedef int (*lb_comm_generic_func)(struct lb_comm_t *);
typedef int (*lb_comm_get_float_func)(struct lb_comm_t*, float *out);
str... | 2.328125 | 2 |
2024-11-18T20:59:38.491984+00:00 | 2015-10-08T11:00:20 | 5779ebc5e58f6a00c8e605d0575f8f89c0fdefd2 | {
"blob_id": "5779ebc5e58f6a00c8e605d0575f8f89c0fdefd2",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-08T11:00:20",
"content_id": "4ce3a98e7d6ef3e851b73dfb9f9d0b065f4692fc",
"detected_licenses": [
"MIT"
],
"directory_id": "f10addf7be0d0921f669ea4df323fe860df4fb15",
"extension": "c"... | stackv2 | #include "minunit.h"
#include "io.h"
static char input[] = "hello world\nfarewell world\nthe end";
static int getChar(void) {
static char* p = input;
if (*p == '\0') { return '\0'; }
return *(p++);
}
static char* Test_GTGetLineExplicit()
{
char buf[256];
mu_assert(GTGetLineExplicit(&getChar, buf, 256) == 0... | 2.453125 | 2 |
2024-11-18T20:59:38.783301+00:00 | 2018-09-11T11:01:30 | 1645008fd475941abd92f6004abd801d9697adb5 | {
"blob_id": "1645008fd475941abd92f6004abd801d9697adb5",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-11T11:01:30",
"content_id": "231412821879c9bfc5249d2edf011781c8814a61",
"detected_licenses": [
"MS-PL"
],
"directory_id": "a1be779f8efdb876334bb1e9940598461fde3982",
"extension": "... | stackv2 | #define _MTOX_FILESYS
#include "disk.h"
UINT32 Disk_MaxOSID = 0;
#define STORDEV_VERIFYID(diskid) (diskid > 0 && diskid <= Disk_MaxOSID )
#include "disk.hxx"
BOOL StorageDevice_Inserted(STOR_DEV_DESC *sd) {
UINT32 c;
for (c=0;c<MAX_DRIVES;c++) {
if (Storage_Devices[c].OS_Id == 0) {
STOR_DEV *xsd = &Storage_De... | 2.390625 | 2 |
2024-11-18T20:59:38.871032+00:00 | 2023-08-07T19:18:32 | 19bc3fd3396ffe40c8d42ed203dd196fff597e4b | {
"blob_id": "19bc3fd3396ffe40c8d42ed203dd196fff597e4b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T19:18:32",
"content_id": "949c115acd5893a9a6cf83b5d3404de476ae226a",
"detected_licenses": [
"Apache-2.0",
"curl"
],
"directory_id": "e1d9c54e9925e30e388a255b53a93cccad0b94cb",... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "v1_ingress_backend.h"
v1_ingress_backend_t *v1_ingress_backend_create(
v1_typed_local_object_reference_t *resource,
v1_ingress_service_backend_t *service
) {
v1_ingress_backend_t *v1_ingress_backend_local_var = malloc(sizeof(v1_ingr... | 2.546875 | 3 |
2024-11-18T19:02:21.181749+00:00 | 2020-01-18T12:51:40 | 1638dcb625d9e65936e99dc87d5b3ef060941ad3 | {
"blob_id": "1638dcb625d9e65936e99dc87d5b3ef060941ad3",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-18T12:51:40",
"content_id": "2c321789f0228f1e0f0aa9c793fcfefbe1f6abdb",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "34a95bc138e80d9cbf64389b04bbb5ec78374885",
"extens... | stackv2 |
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
typedef struct {
ngx_str_t before_body;
ngx_str_t after_body;
ngx_hash_t types;
ngx_array_t *types_keys;
} ngx_http_addition_conf_t;
typedef struct {
... | 2.296875 | 2 |
2024-11-18T19:02:21.291999+00:00 | 2021-02-25T03:26:58 | 07e4faa5c645fad17b06af5085b96277fe76ccef | {
"blob_id": "07e4faa5c645fad17b06af5085b96277fe76ccef",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-25T03:26:58",
"content_id": "cb6cbb92076e242402539eae6620fa8ab76447e6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "cc55b7076d852e98c374599b450836f9244fd7de",
"extensio... | stackv2 | /*******************************************************************************
* LICENSE : Apache 2.0
*
* History:
* <author> <time> <version> <desc>
* FuxFox 2020/06/23 15:52 V1.0 build this file
*
**********************************... | 2.15625 | 2 |
2024-11-18T19:02:21.346306+00:00 | 2018-12-28T22:00:39 | 5bdd684703504b79b066083d3d91b50e22d431fc | {
"blob_id": "5bdd684703504b79b066083d3d91b50e22d431fc",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-28T22:00:39",
"content_id": "a76abd521f7b7281f7a51470116386f6d16607d3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "79585044d17b4abca1e40c925b624ee029efecb4",
"extensio... | stackv2 | #include "expert.h"
void ft_main_output(t_g *all)
{
int i, j, t;
char A, B;
A = 't';
B = 't';
i = j = 0;
while (all->stmts->next)
{
ft_putendl(all->stmts->stmt);
all->stmts = all->stmts->next;
}
ft_putendl("FINAL RESULTS REQUESTED: ");
if (all->results)
{
while (all->results[i])
{
j = 0;
whi... | 2.375 | 2 |
2024-11-18T19:02:21.461753+00:00 | 2022-05-05T23:11:35 | b6ad2a75f314fdc89265fbc4204215974d0bbf91 | {
"blob_id": "b6ad2a75f314fdc89265fbc4204215974d0bbf91",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-06T04:59:41",
"content_id": "f044842cd9f0f7f6ded6c815f0cc9f6cc769cda1",
"detected_licenses": [
"MIT"
],
"directory_id": "ef7bebb49d6fa05978bdbfa7a75c89154ba24e5d",
"extension": "c"... | stackv2 | /*
* Helper functions used by other modules
*/
//#ifndef _GNU_SOURCE
//#define _GNU_SOURCE
//#endif
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#ifndef CONFIG
#define CONFIG "config.h"
#endif // CONFIG
#include CONFIG
#ifndef _WIN32
#include <errno.h>
#include <libgen.h>
#endif // _W... | 2.140625 | 2 |
2024-11-18T19:02:21.789055+00:00 | 2018-02-11T19:05:34 | 2e894bd623afce071d529465ea9f1cf93e0237ac | {
"blob_id": "2e894bd623afce071d529465ea9f1cf93e0237ac",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-11T19:05:34",
"content_id": "f7fbf426454d813bde3403a9c9ce6196aa1abc4c",
"detected_licenses": [
"MIT"
],
"directory_id": "92b43b32a98f9bd24ce34b703d14512d06061353",
"extension": "h"... | stackv2 | #ifndef SHADER_HEADER
#define SHADER_HEADER
#include "glfw.h"
typedef struct {
GLuint id;
GLint type;
} Shader;
typedef struct {
char * name;
GLenum type;
GLint size;
} ProgramAttribute;
typedef struct {
char * name;
GLenum type;
GLint size;
} ProgramUniform;
typedef struct {
GL... | 2.1875 | 2 |
2024-11-18T19:02:28.597955+00:00 | 2017-01-30T07:28:29 | fbaad502ca068a544c42a52553489199dec7ba13 | {
"blob_id": "fbaad502ca068a544c42a52553489199dec7ba13",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-30T07:28:29",
"content_id": "1836d3036e854cf3e6f21aeeb521fa5857ffc782",
"detected_licenses": [
"Unlicense"
],
"directory_id": "b5aba2557946913e56aa39754f7a9d07cd61025a",
"extension... | stackv2 | #include "rtc.h"
#include "clock.h"
#include "app_error.h"
#define RTC_OVERFLOW (RTC_COUNTER_COUNTER_Msk+1)
#define RTC_OFFSET(v) (v & ~RTC_COUNTER_COUNTER_Msk)
// The instance of nrf_drv_rtc for RTC0.
const nrf_drv_rtc_t g_rtc = NRF_DRV_RTC_INSTANCE(0);
static unsigned volatile g_rtc_last;
void rtc_initialize(nrf_... | 2.4375 | 2 |
2024-11-18T19:02:28.668503+00:00 | 2022-04-03T22:24:48 | 251a7d797b5b097a34d50a1b9c38df158301035f | {
"blob_id": "251a7d797b5b097a34d50a1b9c38df158301035f",
"branch_name": "refs/heads/stable",
"committer_date": "2022-04-03T22:24:48",
"content_id": "932cc5b970d43960981bec3d86fe57ed93ed3b31",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "02dc9a326dccc89cb726b379a085d415edd15213",
"extensio... | stackv2 | #ifndef __TREE_H__
#define __TREE_H__
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <stdbool.h>
#include "helpers.h"
#include "list.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct tree_node node_t;
struct tree_node {
uint32_t id; // node ... | 2.96875 | 3 |
2024-11-18T19:02:28.731405+00:00 | 2019-07-13T05:09:05 | 071b0a1516aa452ccedc755bd159f4035a6bb698 | {
"blob_id": "071b0a1516aa452ccedc755bd159f4035a6bb698",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-13T05:09:05",
"content_id": "71bcb761e1d839828608cd7cdbc9f0321468106b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c77e4bb8b39c765fccfc0726b63d94589bfbdf0d",
"extensio... | stackv2 | #ifndef YODA_COMMON_H_
#define YODA_COMMON_H_
#include <node_api.h>
// Empty value so that macros here are able to return NULL or void
#define NAPI_RETVAL_NOTHING // Intentionally blank #define
#define GET_AND_THROW_LAST_ERROR(env) \
do { ... | 2.4375 | 2 |
2024-11-18T19:02:28.898255+00:00 | 2016-11-20T08:36:38 | 5be8a864dd17f4d9b8003723bd2161f1ed44e9bb | {
"blob_id": "5be8a864dd17f4d9b8003723bd2161f1ed44e9bb",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-20T08:36:38",
"content_id": "1c32e7740d844ce38938e8fed8253a067a60cca6",
"detected_licenses": [
"MIT"
],
"directory_id": "4bf1641d6d48ec6ab76ebb662427181a9b170c79",
"extension": "c"... | stackv2 | // getenv example
#include <stdlib.h>
#include <stdio.h>
//GETENV_ADD=abc GETENV_NUM=2 ./getenv_test
int main (int argc, char **argv)
{
char *add, *num;
if((add = getenv("GETENV_ADD")))
printf("GETENV_ADD = %s\n", add);
else
printf("GETENV_ADD not found\n");
if((num = getenv("GETENV_... | 2.796875 | 3 |
2024-11-18T19:02:29.129335+00:00 | 2019-09-09T16:41:48 | 71a6a7e607a8fa5eb9f87d067cfa2d114372c9db | {
"blob_id": "71a6a7e607a8fa5eb9f87d067cfa2d114372c9db",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-09T16:41:48",
"content_id": "75edea08141b86737f136b883bc4c3badce93890",
"detected_licenses": [
"MIT"
],
"directory_id": "1889abd8b9cdb457a425cbbac0b1616a1c4d3d95",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "include/mem.h"
uint8_t mem_array[0x1000];
void init_mem() {
memset(&mem_array, 0x00, sizeof(mem_array));
}
void mem_store(uint16_t addr, uint16_t data, uint8_t len) {
if (len == 0 || len > 2) {
printf("Error: l... | 2.9375 | 3 |
2024-11-18T19:02:29.255675+00:00 | 2020-01-27T17:41:05 | 1032ff34f2e91eeabd074a2c34744b6765dd5bf6 | {
"blob_id": "1032ff34f2e91eeabd074a2c34744b6765dd5bf6",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-27T17:41:05",
"content_id": "f36104faf036d47823f08b019e7ac19cbb5edc47",
"detected_licenses": [
"MIT"
],
"directory_id": "41b7f7ffd7b490a7fe1f81dca7d24e30535bf439",
"extension": "c"... | stackv2 | #include<unistd.h>
#include<stdlib.h>
#include<stdio.h>
#include<fcntl.h>
#include<wait.h>
void tr_without_args(const char* set1, const char* set2){
int e1 = fork();
if(e1==0){
execlp("tr", "tr", set1, set2, NULL);
}
else{
int status;
waitpid(e1, &status, 0);
}
}
void tr_with_args(const char* set1, const ... | 2.984375 | 3 |
2024-11-18T19:02:29.316106+00:00 | 2018-04-27T05:12:07 | a383c00ce1e8853c9c27c69a314f41a1ee82cf36 | {
"blob_id": "a383c00ce1e8853c9c27c69a314f41a1ee82cf36",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-27T05:12:07",
"content_id": "d3281a92fd56240909d102e449f5e076bb06f911",
"detected_licenses": [
"MIT"
],
"directory_id": "36998b36bfac26eff7dfeb83eaeb7b817cdc2588",
"extension": "c"... | stackv2 | #include <avr/io.h>
//---------------------- Pin Mapping ------------------------------------- Pin Mapping -----------
#define SETBIT(ADDRESS,BIT) (ADDRESS |= (1<<BIT))
#define CLEARBIT(ADDRESS,BIT) (ADDRESS &= ~(1<<BIT))
#define FLIPBIT(ADDRESS,BIT) (ADDRESS ^= (1<<BIT))
#define CHECKBIT(ADDRESS,BIT) (ADDRESS & (1<<B... | 2.25 | 2 |
2024-11-18T19:02:29.404054+00:00 | 2023-09-04T20:58:04 | 15f5d5f38c3e992e070aba50bca938d28e251795 | {
"blob_id": "15f5d5f38c3e992e070aba50bca938d28e251795",
"branch_name": "refs/heads/main",
"committer_date": "2023-09-04T20:58:04",
"content_id": "0a6eb3615d31822dcf3d27b4478c6762e31fdf30",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "15567948b5c7495ca875f8ac77bfccb7cab91d8b",
"extension"... | stackv2 | /* Autogenerated: 'src/ExtractionOCaml/solinas_reduction' --inline --static
* --use-value-barrier curve25519_solinas 64 '2^255 - 19' mulmod */
/* curve description: curve25519_solinas */
/* machine_wordsize = 64 (from "64") */
/* requested operations: mulmod */
/* s-c = 2^255 - [(1, 19)] (from "2^255 - 19") */
/* */
... | 2.5 | 2 |
2024-11-18T19:02:29.880116+00:00 | 2019-03-11T02:26:24 | b37af0a317d96c8e6fbbe44b9379c7aef148c55d | {
"blob_id": "b37af0a317d96c8e6fbbe44b9379c7aef148c55d",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-11T02:26:24",
"content_id": "4d0c94fe95ee126d4fcb0997a28d01cefe1fb53c",
"detected_licenses": [
"MIT"
],
"directory_id": "1675b4f54cd89850530c783ad2f28d39c94d913f",
"extension": "c"... | stackv2 | #include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "list.h"
#include "common.h"
/**
* split_front_back() - Split list into half
* @head: pointer to the head of list to be split
* @front: pointer to the head of list which receives first half
* @back: pointer to the head of list which receives seco... | 3.125 | 3 |
2024-11-18T19:02:30.577923+00:00 | 2023-07-12T02:05:34 | a3057024102dfa89680545c50c0b0f6547ab9c2f | {
"blob_id": "a3057024102dfa89680545c50c0b0f6547ab9c2f",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-12T02:05:34",
"content_id": "bc1a09e185eb9898569de728df8eac2f7b9c7958",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e88e6c9249a335b4fcdf76dd4d5859a7264989da",
"extensio... | stackv2 | #include "hash.h"
// http://stackoverflow.com/a/7666577
unsigned long osl_hash(const char * str) {
unsigned long hash = 0;
int c;
while ((c = *str++)) {
hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
}
return hash;
}
| 2.296875 | 2 |
2024-11-18T19:02:30.723573+00:00 | 2020-09-07T05:22:09 | 1636c7bafe2913e8a53db465b6de2cbdd95e2920 | {
"blob_id": "1636c7bafe2913e8a53db465b6de2cbdd95e2920",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-07T05:22:09",
"content_id": "0cae27a25402c63e9ac6615ec9c69441c2a90273",
"detected_licenses": [
"MIT"
],
"directory_id": "7d2f08fc30d9bc2838252d2637e917618c9b69d9",
"extension": "c"... | stackv2 | /* # Group 01
Aviral Sethi : 2016B3A70532P
SANJEET MALHOTRA : 2016B4A70601P
PRIYANKA VERMA : 2016B3A70492P
ANIRUDH VIJAY : 2016B3A70525P
*/
#include "lexer.h"
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int lno=1;
char buff[buff_size];
FILE *source = NULL;
int traceback=0;
int buf... | 2.296875 | 2 |
2024-11-18T19:02:31.381520+00:00 | 2023-03-29T17:49:13 | b33fa8d954e98ce86860a9a10121254b651f7886 | {
"blob_id": "b33fa8d954e98ce86860a9a10121254b651f7886",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-29T17:49:13",
"content_id": "9c15a27e6b26aec574f51b7e84287dc14ce0b819",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "30150f1bee89d731d68afffbfc19616b... | stackv2 | /*
* Copyright (c) 2013, Peter Rutenbar <pruten@gmail.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:
*
* 1. Redistributions of source code must retain the above copyright notice, this... | 2.46875 | 2 |
2024-11-18T19:02:31.453920+00:00 | 2022-03-14T09:49:15 | 780c9f1e743ce7dd66b259d659541bb1709571cf | {
"blob_id": "780c9f1e743ce7dd66b259d659541bb1709571cf",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T09:50:00",
"content_id": "72908f4e61370a0f882548132fa757c574915f43",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e1cddfd754d952134e72dfd03522c5ea4fb6008e",
"extensio... | stackv2 | /*
* ip_neighboor_watch.c; IP neighbor watching
*
* Copyright (c) 2019 Cisco and/or its affiliates.
* 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/licens... | 2.109375 | 2 |
2024-11-18T19:02:32.321222+00:00 | 2022-06-10T21:27:41 | c0ec281094f1365efa7a521ab97c0dfabf8ad8eb | {
"blob_id": "c0ec281094f1365efa7a521ab97c0dfabf8ad8eb",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-10T21:27:41",
"content_id": "ba1d260e79f79b6581f906b8c6f0fd6d202f2203",
"detected_licenses": [
"MIT"
],
"directory_id": "973314e78f73fbc3c9f85c7d5906965434fe0b1d",
"extension": "h"... | stackv2 | /*
* Copyright (C) 2020 Southern Storm Software, Pty Ltd.
*
* 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.109375 | 2 |
2024-11-18T19:02:33.265047+00:00 | 2020-05-16T23:51:41 | 6cd374e7bff2730a806da6fc3af680c3fb8655b3 | {
"blob_id": "6cd374e7bff2730a806da6fc3af680c3fb8655b3",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-16T23:51:41",
"content_id": "5ef32ef1774180915c80153b104e4108ccf4141a",
"detected_licenses": [
"MIT"
],
"directory_id": "883d9f82d718c0abda20ccad868285abed62e883",
"extension": "c"... | stackv2 | #include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sodium.h"
/*
* print_hex() is a wrapper around sodium_bin2hex() which allocates
* temporary memory then immediately prints the result followed by \n
*/
static void
print_hex(const void *bin, const size_t bin_len)
{
char ... | 3.203125 | 3 |
2024-11-18T19:02:33.465799+00:00 | 2015-12-01T22:00:31 | 17d7ea56ed4147163d74dbec2e7c336b9a3b6dbe | {
"blob_id": "17d7ea56ed4147163d74dbec2e7c336b9a3b6dbe",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-01T22:00:31",
"content_id": "6eec185a7902fcb6607440ae801f758885f60e6b",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "b12514cb7c3924d389ba3589b13f5c39... | stackv2 | #include "usart.h"
#include <stdint.h>
#include "reg.h"
#include "string.h"
/* USART TXE Flag
* This flag is cleared when data is written to USARTx_DR and
* set when that data is transferred to the TDR
*/
void usart_init(void)
{
*(RCC_APB2ENR) |= (uint32_t) (0x00000001 | 0x00000004);
*(RCC_APB1ENR) |= (uint32_t)... | 2.921875 | 3 |
2024-11-18T19:02:36.272299+00:00 | 2020-12-31T19:22:05 | b4e0c46dc3eb68fa5a3cb3e33498044512c1c6ba | {
"blob_id": "b4e0c46dc3eb68fa5a3cb3e33498044512c1c6ba",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-31T19:33:08",
"content_id": "6155bb812f8433fb5d2493c165d914bf159cc3f6",
"detected_licenses": [
"MIT"
],
"directory_id": "72a36ff85a550582400977bb795e271a9ecf1c59",
"extension": "c"... | stackv2 | /********************************
*Filename: input_int_variable.c
*Description: This program illustrates the declaration of several integer variables and elementary arithmetic operations.
*********************************/
#include<stdio.h>
int main()
{
int num1;
printf("\n *** Program to illustrate inpu... | 3.875 | 4 |
2024-11-18T19:02:36.373894+00:00 | 2021-08-06T18:11:25 | 587681df4a768d15e47d287f73779a3ed80918ad | {
"blob_id": "587681df4a768d15e47d287f73779a3ed80918ad",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-06T18:11:25",
"content_id": "e60242fdcf41181fca5c331c41dc266c545fc51c",
"detected_licenses": [
"MIT"
],
"directory_id": "7bc2ba0d10be0d1b2e2119d65c4bdf93527d906d",
"extension": "c",
... | stackv2 | #include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
const int MSH_LENGTH=80;
int main(int argc, char** argv)
{
pid_t child_pid, my_pid, parent_pid;
child_pid = fork();
parent_pid = getppid();
my_pid = getpid();
if(child_pid!=0 && child_pid>0){//parent process is killed
... | 2.453125 | 2 |
2024-11-18T19:02:36.602309+00:00 | 2021-03-28T11:45:14 | 0713f44121fe23fb367a256048942390544afe69 | {
"blob_id": "0713f44121fe23fb367a256048942390544afe69",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-28T11:45:14",
"content_id": "4629f2a7c928b11b0b3fa248725486f933214478",
"detected_licenses": [
"MIT"
],
"directory_id": "7dafcd60ad72c54b7e434ecfd8dccb344becf97d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <allegro5/allegro.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_audio.h>
#include <allegro5/allegro_acodec.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
void level_1();
void level_2();
void level_3();
voi... | 2.078125 | 2 |
2024-11-18T19:02:37.150081+00:00 | 2018-09-07T07:23:43 | 84e199647aaea45b389085ce56cb4fa17a702c7b | {
"blob_id": "84e199647aaea45b389085ce56cb4fa17a702c7b",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-07T07:23:43",
"content_id": "1a7cd83c49392fd0f18710086c1b887be93476e1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7848fdc2a4991a6762d74dcb3f4532ca9dc3f80d",
"extens... | stackv2 | //
// BEAssetsManager.c
// Sapindus
//
// Created by Sun YuLi on 16/4/30.
// Copyright © 2016年 oreisoft. All rights reserved.
//
#ifdef __APPLE__
#include "TargetConditionals.h"
#include <CoreFoundation/CoreFoundation.h>
#include <pthread.h>
static CFStringRef BundlePath = NULL;
#endif
#include "BEAssetsManager.h... | 2.046875 | 2 |
2024-11-18T19:02:37.232175+00:00 | 2020-07-11T00:47:18 | 205dc97725702deeea46d0824bb6ce365c3a743b | {
"blob_id": "205dc97725702deeea46d0824bb6ce365c3a743b",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-11T00:47:18",
"content_id": "61af0d6095d85fc6a4c66b4ce089c6da902e80ad",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6a237621c06c52d3f93df0cd8306d5e5600df017",
"extensio... | stackv2 | // Please modify this file as required
#include "shuffle.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
// You can add more functions, structures, and vairables to this file.
// Helper functions must start with '_'.
//This is an example of a helper function.
//clean function whenever malloc fails... | 2.84375 | 3 |
2024-11-18T19:02:37.445719+00:00 | 2017-05-07T10:59:57 | 1a326c72b5eb09ac1588509a2bc1599a954941f0 | {
"blob_id": "1a326c72b5eb09ac1588509a2bc1599a954941f0",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-07T10:59:57",
"content_id": "3628aabda8a980ae643b1092b48424a775e92171",
"detected_licenses": [
"Unlicense"
],
"directory_id": "2ba0ca0f8ad65c256eabb89e29bbf763ef7ee262",
"extension... | stackv2 | /**
* greedy.c
* this is part of CS50X pset1
*
* Otto Brut
* fazzolini@gmail.com
*
* version: 1.01
*
* Calculates how many coins of change you will get.
*/
#include <cs50.h>
#include <stdio.h>
int main(void)
{
// first deal with input
printf("O hai! ");
float raw_input;
do
{
printf("How much change ... | 3.515625 | 4 |
2024-11-18T19:02:37.528736+00:00 | 2023-08-23T16:50:55 | 93126fc48b64fa361d64defbce34bebee191580a | {
"blob_id": "93126fc48b64fa361d64defbce34bebee191580a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-23T16:50:55",
"content_id": "1a4722c61adb0811b766ba46bb58cca0a41c22b2",
"detected_licenses": [
"MIT"
],
"directory_id": "fbdc48c28e54fb33ae4842ef95ff63893902c99a",
"extension": "c"... | stackv2 | /*
* This file is part of the OpenMV project.
*
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
*
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Debayering Functions
*/
#include "imlib.... | 2.4375 | 2 |
2024-11-18T19:02:37.880524+00:00 | 2018-11-19T18:45:55 | 75af4e0ec57b02018067f35d40edc1ac8fef644b | {
"blob_id": "75af4e0ec57b02018067f35d40edc1ac8fef644b",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-19T18:45:55",
"content_id": "e305fd6455703f66a1e56dd0eda3f2bcfc5247eb",
"detected_licenses": [
"MIT"
],
"directory_id": "6d67122963c0f89d5c0bc9beede5980ca25bc18d",
"extension": "h"... | stackv2 | #ifndef ENGINE_SPAWN_BAG_H
#define ENGINE_SPAWN_BAG_H
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "tetromino_type.h"
#include "common.h"
/**
* \brief A struct which holds 7 different tetromino types in a random order.
* http://tetris.wikia.com/wiki/Random_Generator
* \sa SpawnBag_Create()
* \... | 2.578125 | 3 |
2024-11-18T19:02:37.949379+00:00 | 2020-12-30T02:50:13 | 343e0322e5454a68985e1f69195e636a687c70b7 | {
"blob_id": "343e0322e5454a68985e1f69195e636a687c70b7",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-30T02:50:13",
"content_id": "6d1b40d859c1f526c8ae77f4672d05db1d6766ee",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a76e7a06cc1ad0e17f63fce5a7a1125f970b1edd",
"extensio... | stackv2 | /*
* atmega16_demo4_int.c
*
* Created: 12/15/2020 3:44:12 p. m.
* Author : pangoro24
*/
#define F_CPU 1000000UL
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
volatile unsigned int analogResult = 0;
/*Interrupt Service Routine for INT0*/
ISR(INT0_vect)
{
PORTC|=(1<<PC3); /* Toggle PO... | 2.828125 | 3 |
2024-11-18T19:02:40.746345+00:00 | 2022-01-17T05:42:17 | 9a4ee975deb165edbf846e143e87eb9966d16a8f | {
"blob_id": "9a4ee975deb165edbf846e143e87eb9966d16a8f",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-17T05:42:17",
"content_id": "f2f5022858e48adad0be0b0e0aef00a88509a9b1",
"detected_licenses": [
"MIT"
],
"directory_id": "07b391085556be7c9ef6b2177cddfd06441ace64",
"extension": "c"... | stackv2 | int a;
int b;
int program(int a,int b,int c)
{
int i;
int j;
i=0;
if(a>(b+c))
{
j=a+(b*c+1);
}
else
{
j=a;
}
while(i<=100)
{
i=j*2;
}
return i;
}
int demo(int a)
{
a=a+2;
return a*2;
}
void main(void)
{
int a;
int b;
int c;
a=3;
b=4;
c=2;
a=program(a,b,demo(c))
return;
}
/*** Lexicon
=... | 2.5625 | 3 |
2024-11-18T19:02:40.869533+00:00 | 2013-09-14T03:46:25 | c58de236bf19709e795192f7e6d5e8fa4d28054a | {
"blob_id": "c58de236bf19709e795192f7e6d5e8fa4d28054a",
"branch_name": "refs/heads/master",
"committer_date": "2013-09-14T03:46:25",
"content_id": "190eea1e40110bf6b94df8bf24db8e6457c3f5f2",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "440a0565b9dfa6231f06e426167f0c11901fc890",
"extens... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/socket.h>
#include "dm.h"
/* Utils for handling messages */
int
send_dmmsg(int socket, struct dmmsg msg)
{
printf("IN DMMSG\n");
int bufsize = sizeof(bufsize); // Buffer size
bufsize += 1; // Op
bu... | 2.84375 | 3 |
2024-11-18T19:02:41.140886+00:00 | 2019-04-07T16:13:16 | 3fc28b198008112dfef8dcf97098c568e14a3552 | {
"blob_id": "3fc28b198008112dfef8dcf97098c568e14a3552",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-07T16:13:16",
"content_id": "ff7bbe95b32550caea9903bfe758082dec2c7ea9",
"detected_licenses": [
"MIT"
],
"directory_id": "d01c30f36460c04638d6c796664ef6b4bbb03b5c",
"extension": "c"... | stackv2 | /*
Author » Yogesh K. Chhetri «
*/
// gcc -pthread -std=c99 "15 - assignJob.c"
// remove the [line a] and [line b] to see the difference
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>
pthread_mutex_t lock;
int count = 0;
void *assignJob(){
pthread_mutex_lock(&lock); // [line a]
++... | 3.078125 | 3 |
2024-11-18T19:02:41.230861+00:00 | 2019-05-09T19:59:02 | 59da7c69426a5d4d8f9f58cc2ce8fd2daf251850 | {
"blob_id": "59da7c69426a5d4d8f9f58cc2ce8fd2daf251850",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-09T19:59:02",
"content_id": "617b8775f0facbfe59c25c4446850b6192d06a2b",
"detected_licenses": [
"MIT"
],
"directory_id": "824637600eea42cd5f09e3c21ad8f720a63f7746",
"extension": "c"... | stackv2 | /*
* main.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "funcoes.h"
short menu() {
printf("1 - Ler de Ficheiro\n");
printf("2 - Calcular Blobs\n");
printf("3 - Mostrar Blobs ordenados pelo numero de pixeis\n");
printf("4 - Calcular imagem com mais blobs\n");
printf("5 - Determinar d... | 3.265625 | 3 |
2024-11-18T19:02:41.672867+00:00 | 2018-09-01T21:04:42 | 7e45ac8bb1ca6906e78f4d580fd77c209a5c3aad | {
"blob_id": "7e45ac8bb1ca6906e78f4d580fd77c209a5c3aad",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-01T21:04:42",
"content_id": "a63d4a45164070955c0c445beebb2b52844ce09b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f8fdf1ba7875cb13d829cbe71d5e7836351fcd3c",
"extens... | stackv2 | /*
* app.c
*
* Created on: 5/7/2018
* Author: rodrigo
*/
/*============================================================================
* Autor: Rodrigo Tirapegui
* Licencia:
* Fecha: 22/3/2018
*===========================================================================*/
/*==================[inlcu... | 2.46875 | 2 |
2024-11-18T19:02:42.058214+00:00 | 2023-08-17T16:08:06 | 0dc1c3600c35d8ac30bee4a315125f1d5aced653 | {
"blob_id": "0dc1c3600c35d8ac30bee4a315125f1d5aced653",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T16:08:06",
"content_id": "fe07f5b465bb5c0f988579d2efb87f3d2c4e20a1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066",
"extensio... | stackv2 | /*
Code for timestepping with discrete gradient integrators
*/
#include <petsc/private/tsimpl.h> /*I "petscts.h" I*/
#include <petscdm.h>
PetscBool DGCite = PETSC_FALSE;
const char DGCitation[] = "@article{Gonzalez1996,\n"
" title = {Time integration and discrete Hamiltonian s... | 2.265625 | 2 |
2024-11-18T19:02:42.725461+00:00 | 2018-06-25T04:20:35 | 731bce9d5777b25ea3a714761d638eebf2d45157 | {
"blob_id": "731bce9d5777b25ea3a714761d638eebf2d45157",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-25T04:20:35",
"content_id": "d720144beadef35c406bf831f4dccfd21fc5581d",
"detected_licenses": [
"MIT"
],
"directory_id": "8fafdeff167003be830a7ead6daaa6d58ebd6316",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "quizrunner_changedir.h"
#include "quizrunner_closefile.h"
#include "quizrunner_createbuffer.h"
#include "quizrunner_openfile.h"
#include "quizrunner_writetobuffer.h"
#include "quizrunner_printlist.h"
#include "quizrunner_addlistelement.h"
#include "q... | 2.484375 | 2 |
2024-11-18T19:02:43.179047+00:00 | 2016-05-15T17:40:42 | 041e38bb14ec21e076e59e253d034ebf18682dfb | {
"blob_id": "041e38bb14ec21e076e59e253d034ebf18682dfb",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-15T17:40:42",
"content_id": "3b00e7b1e537103e45626a846042551f84e31aab",
"detected_licenses": [
"MIT"
],
"directory_id": "10e88f94ed3fc455905121bc91cf4c2eb34f5d47",
"extension": "c"... | stackv2 |
/* @(#)w_hypot.c 1.3 95/01/18 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunSoft, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided... | 2.0625 | 2 |
2024-11-18T19:02:44.757940+00:00 | 2022-07-25T13:15:02 | 5cdf3558a48dd6bab475f4dcbc76cc60c39b2d43 | {
"blob_id": "5cdf3558a48dd6bab475f4dcbc76cc60c39b2d43",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-25T13:15:02",
"content_id": "dfa65af3bad750833d4f617a90399c4273836118",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "5b3407d5dd7e9159c246461b43338a628d51d6d1",
"extension":... | stackv2 | /*
* SPDX-License-Identifier: CC0-1.0
*/
/**
* @ingroup nanocbor
* @{
* @file
* @brief Minimalistic CBOR encoder implementation
*
* @author Koen Zandberg <koen@bergzand.net>
* @}
*/
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "nanocbor/config.h"
#include "nan... | 2.734375 | 3 |
2024-11-18T19:02:44.934277+00:00 | 2020-08-18T10:43:36 | 2029f8407fd1cf47681a3d23210a590cca716983 | {
"blob_id": "2029f8407fd1cf47681a3d23210a590cca716983",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-18T10:43:36",
"content_id": "788b30641e1bb2f0b1051487de4b2aa90c9e7993",
"detected_licenses": [
"MIT"
],
"directory_id": "9d52aced613fcafd22bdb93e8c2d65dc237531e0",
"extension": "c"... | stackv2 | /*
The passwd scan is used to parse /etc/passwd, once parsed we can
run a few basic checks (seen below). And we use this parsed information
in other scans.
1. Report all users with UID 0
2. Report all users with GID 0
3. Report all users with out /nologin
3. Report all users with invalid ... | 2.421875 | 2 |
2024-11-18T19:02:45.479382+00:00 | 2020-09-20T22:54:28 | 174d7e99821f86e4b1014330e645bf9edc9a1f65 | {
"blob_id": "174d7e99821f86e4b1014330e645bf9edc9a1f65",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-20T22:54:28",
"content_id": "68b1ad931e5e875c78e0b6de7fa634a854108d25",
"detected_licenses": [
"MIT"
],
"directory_id": "66525f9680d72df0bcd380361067fed7aca38c21",
"extension": "c"... | stackv2 | /* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#include <stdio.h>
#include <stdlib.h>
... | 2.125 | 2 |
2024-11-18T19:02:45.608279+00:00 | 2023-08-16T12:50:05 | 23853c29f43200a08b5f14c57bd1f4fbc07a4d72 | {
"blob_id": "23853c29f43200a08b5f14c57bd1f4fbc07a4d72",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T12:50:05",
"content_id": "918b09324f7f7f70fc5ee389aae08e91201fc055",
"detected_licenses": [
"MIT"
],
"directory_id": "984383140e7ad43ea42d6a79c3797438ebcfe71e",
"extension": "c"... | stackv2 | /* **** Notes
Count the number of Unicode characters based on UTF-8 to the terminating null character.
Remarks:
Refer at fn. ct_letters.
*/
# define CAR
# include "./../../../incl/config.h"
signed(__cdecl ct_characters(signed char(*argp))) {
/* **** DATA, BSS and STACK */
static signed const AL_80 = (0x80); // i.... | 2.46875 | 2 |
2024-11-18T19:02:45.738389+00:00 | 2022-06-04T13:57:28 | 723149fa8e33a433bf738235c9b71aa50e3a4c04 | {
"blob_id": "723149fa8e33a433bf738235c9b71aa50e3a4c04",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-04T13:57:28",
"content_id": "6aca555588f6c98c97d2ff9b93491c7c5b66c775",
"detected_licenses": [
"MIT"
],
"directory_id": "4a3dce1d02b691138e816710d6929a41066776c5",
"extension": "h"... | stackv2 | #ifndef ROYPAIR_H
#define ROYPAIR_H
#include "rpre.h"
struct RoyPair_ {
void * key;
void * value;
};
typedef struct RoyPair_ RoyPair;
RoyPair * roy_pair_new(void * key, void * value);
void * roy_pair_key(RoyPair * pair);
void * roy_pair_value(RoyPair * pair);
struct RoyCPair_ {
const void * key;
const voi... | 2.015625 | 2 |
2024-11-18T19:02:45.946986+00:00 | 2021-03-07T19:15:02 | d8de9cc7b448b4dfe0d0b585d51549190f1e2eb5 | {
"blob_id": "d8de9cc7b448b4dfe0d0b585d51549190f1e2eb5",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-07T01:51:31",
"content_id": "b4b0254a0d17ab25ee8a53e59572aa6110217fda",
"detected_licenses": [
"MIT"
],
"directory_id": "45f7a073e1caadbacb5132ffb43b6b3bf3d18462",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include "vk_descriptors.h"
#include "vk_render.h"
#include "vk_image.h"
#include "utils.h"
VkRenderPass
create_render_pass(VkDevice logical_device, VkFormat depth_format, struct swapchain_info state)
{
VkRenderPass render_pass;
VkResult result;
VkAttachmentDescription color_attachment = {
.... | 2.3125 | 2 |
2024-11-18T19:02:47.503792+00:00 | 2019-02-24T04:08:56 | 16fa61d0c9e2bf52238891bebc60bc1ad272978b | {
"blob_id": "16fa61d0c9e2bf52238891bebc60bc1ad272978b",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-25T00:44:52",
"content_id": "7aafdc05ec92e82b0d5b35b118a3fa6d7cfac72c",
"detected_licenses": [
"MIT"
],
"directory_id": "4d35254a5940840facc46f193ddf910f1e2e33b5",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <math.h>
#include <movchain.h>
#include <hpchain.h>
#include <fitness/fitness.h>
#include <random.h>
#include "abc_alg.h"
#include "hive.h"
/******************************************/
/****** OTHER PROCEDURES ********/
/************************************... | 2.328125 | 2 |
2024-11-18T19:02:48.390421+00:00 | 2020-12-09T19:59:36 | b57b6f18ff5e08091a6b28e74260b868bc3074fc | {
"blob_id": "b57b6f18ff5e08091a6b28e74260b868bc3074fc",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-09T19:59:36",
"content_id": "0570df6eaf68b7868ee12027d80ad5427a079d65",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "96a3484c6a07c0e2d80cd00a0458b6c41c48d334",
"extensio... | stackv2 | /*
* Project: Compiler for imperative programing language IFJ20
*
* File: ll.h
* Brief: Header file for ll.h
*
* Authors: Hladký Tomáš xhladk15@stud.fit.vutbr.cz
* Kostolányi Adam xkosto04@stud.fit.vutbr.cz
* Makiš Jozef xmakis00@stud.fit.vutbr.cz
* Bartko Jakub xbartk07@st... | 2.125 | 2 |
2024-11-18T19:02:49.268106+00:00 | 2020-12-08T15:02:23 | 9b6f28716778225ab2124ade5a977e10350c33ae | {
"blob_id": "9b6f28716778225ab2124ade5a977e10350c33ae",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-08T15:02:23",
"content_id": "a0d3f29cead7110f149a5f55d5bc508998ef71db",
"detected_licenses": [
"MIT"
],
"directory_id": "0001dc06f4007330ce5de1c7105bc2873ad383cc",
"extension": "c",
... | stackv2 | #include<stdio.h>
typedef struct data{int Dia, Mes, Ano;} DATA; /*typedef faz com que "DATA" seja a mesma coisa que "strut data"*/
typedef struct pessoa{
char Nome[100]; /*"struct pessoa" é o mesmo que "PESSOA", por causa do typdef*/
int Idade;
float Salario;
struct data Nasc; /*poderiamos colocar a var... | 3.296875 | 3 |
2024-11-18T19:02:49.721346+00:00 | 2022-05-05T05:12:39 | 498b9bcbe1e9962e96c7ad7b81df8676c9a843bf | {
"blob_id": "498b9bcbe1e9962e96c7ad7b81df8676c9a843bf",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-05T05:12:39",
"content_id": "a12cb0e3e77e5e5dbe1206dcbc7565e924deb186",
"detected_licenses": [
"MIT"
],
"directory_id": "65f2741294f3328a0a1c17269b7737e12ce325ee",
"extension": "c"... | stackv2 |
#include "../CLI/cli.h"
#include "../outputs.h"
#include "../constants.h"
#include "outputCommand.h"
#include <stdint.h>
#define ANAO_OFFSET 7
#define ANAO_CHANNELS 2
const OutputCommand_t anaoCommandSettings = DEFINE_OUTPUT_COMMAND_T(ANAO_CHANNELS, ANAO_OFFSET, ANAO_ERROR_GROUP);
void ANAOChannelModeCommand(CliHa... | 2.03125 | 2 |
2024-11-18T19:02:49.839804+00:00 | 2020-12-17T19:59:56 | 8d716438d917039817dde88041c462457c4a4d26 | {
"blob_id": "8d716438d917039817dde88041c462457c4a4d26",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-17T19:59:56",
"content_id": "1c821fc57f580a1b70a248dd5d6e3084e5895471",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e36b6ab48b5c31e6715f2ebbc98ee15a02beb2c5",
"extens... | stackv2 | // -*- coding: utf-8 -*-
//
// schemes.c
//
// @copyright Deepansh J. Srivastava, 2019-2020.
// Created by Deepansh J. Srivastava.
// Contact email = srivastava.89@osu.edu
//
#include "schemes.h"
static inline void averaging_scheme_setup(MRS_averaging_scheme *scheme,
comp... | 2.390625 | 2 |
2024-11-18T19:02:50.314082+00:00 | 2016-11-07T22:25:54 | ea73aea4b71df42f90145c4433a094e76fd2a0e1 | {
"blob_id": "ea73aea4b71df42f90145c4433a094e76fd2a0e1",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-07T22:25:54",
"content_id": "7ec74a887ccce25437e00fda559a8740fa0482bc",
"detected_licenses": [
"MIT"
],
"directory_id": "0941f211692b917a4bd7fc793c001f1b4780ade8",
"extension": "c"... | stackv2 | /* $Id: extended.c,v 1.8 2006/12/23 11:17:49 toad32767 Exp $ */
/*-
* Copyright (c) 2005, 2006 by Marco Trillo <marcotrillo@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
* Softwar... | 2.484375 | 2 |
2024-11-18T19:02:50.752373+00:00 | 2019-07-25T12:10:57 | 78984e693729c2901b266cf151d9b4d7a32a7d28 | {
"blob_id": "78984e693729c2901b266cf151d9b4d7a32a7d28",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-25T12:10:57",
"content_id": "c77347c556f58e515dbd8b7961b923912b7b78bd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "41955b793d22a845090e570b3e7375a0acb61186",
"extensio... | stackv2 | #include <stdio.h>
#include <assert.h>
//compile it with gcc -O3 -o restrictAssert restrictAssert.c
int increase_with_no_restrict(int* a, int* b, int* c) {
*a = *a + *c;
*b = *b + *c;
}
int increase_with_restrict(int* restrict a, int* restrict b, int* restrict c) {
*a = *a + *c;
*b = *b + *c;
}
int ... | 3.625 | 4 |
2024-11-18T19:02:50.854444+00:00 | 2018-09-04T06:32:56 | 4869b11c60d1ac04f97519ac63ada03ed5c0b25b | {
"blob_id": "4869b11c60d1ac04f97519ac63ada03ed5c0b25b",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-04T06:33:16",
"content_id": "0c85f979622931fd527d222d791dc4e061d33c75",
"detected_licenses": [
"MIT"
],
"directory_id": "8434e1ee7d349fad96a6a5d340448415905e8911",
"extension": "c"... | stackv2 | #include "exception_ctrl.h"
#include "file_io_ctrl.h"
#include "net_io_ctrl.h"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <sys/mman.h>
static inline void print_result(){
printf("\n[*] Replay Result\n");
printf("Total : %10lupkts\n", thread_file_get_cnt() + thread_file_get_dropped(... | 2.09375 | 2 |
2024-11-18T19:02:51.240757+00:00 | 2018-02-27T09:47:44 | fdcec02933fe7e0be5f62970e2f45b770faba9a4 | {
"blob_id": "fdcec02933fe7e0be5f62970e2f45b770faba9a4",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-27T09:47:44",
"content_id": "719c82b883cc643bf13dd0d0439fc237836504eb",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "39db0003b21257265286c0de7f4eeac2cb4dcf60",
"extens... | stackv2 | #ifndef MRF_PHY_LAYER_H
#define MRF_PHY_LAYER_H
#include <stdint.h>
#include <stdbool.h>
#include "common/phy_layer/constants.h"
// the crystal oscillator frequency (reference value is in data sheet)
#define FXTAL 12800
// maximum packet size on physical layer
// it is dependent on radio modul, for MRF89 it is 63
#... | 2.1875 | 2 |
2024-11-18T19:02:51.626956+00:00 | 2023-08-04T13:11:02 | d1f219190bd2a28658ea70406751e314c7c0376e | {
"blob_id": "d1f219190bd2a28658ea70406751e314c7c0376e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-04T13:11:02",
"content_id": "3a59ea2a0a05817984ec214e3da0100347703a6d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "642ba1746fed0b722a127b8426eca987df6efc61",
"extens... | stackv2 | #include <../../nrnconf.h>
/**************************************************************************
**
** Copyright (C) 1993 David E. Steward & Zbigniew Leyk, all rights reserved.
**
** Meschach Library
**
** This Meschach Library is provided "as is" without any express
** or implied warranty of any kind w... | 2.109375 | 2 |
2024-11-18T19:02:51.708867+00:00 | 2023-05-26T07:03:59 | fe56e7bed640bc44dfa6a46916bf12004b72c1be | {
"blob_id": "fe56e7bed640bc44dfa6a46916bf12004b72c1be",
"branch_name": "refs/heads/hx20-hx30",
"committer_date": "2023-05-26T07:03:59",
"content_id": "79ee9406e9a7c0d2e005095d92b62f363ccf9af3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f9e7d65cb784c01a0200145ba8d289afe41d4a56",
"ext... | 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.
*
* USB API definitions.
*
* This file includes definitions needed by common code that wants to control
* the state of the USB peripheral, but does... | 2.109375 | 2 |
2024-11-18T19:02:51.830900+00:00 | 2018-02-20T20:51:24 | c107fd1a00c1408fbc16f058712bfa8cc4bd9e36 | {
"blob_id": "c107fd1a00c1408fbc16f058712bfa8cc4bd9e36",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-20T20:51:24",
"content_id": "324da70c3035296a71660098cfccc18e02d857c2",
"detected_licenses": [
"MIT"
],
"directory_id": "12c69f475d582ab01c8060f236c555ce8a4197cb",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
void main() {
int N;
printf("Enter an upper bound:");
scanf("%d",&N);
// make storage for flags
int *isPrime = (int*) malloc(N*sizeof(int));
// initialize, i.e. set everything 'true'
for (int n=0;n<N;n++){
isPrime[n]=1;
... | 3.515625 | 4 |
2024-11-18T19:02:55.458416+00:00 | 2013-02-18T01:19:24 | 077b7f7d3c370b77bcb2c3aaf15429444b16540a | {
"blob_id": "077b7f7d3c370b77bcb2c3aaf15429444b16540a",
"branch_name": "refs/heads/master",
"committer_date": "2013-02-18T01:19:24",
"content_id": "c5c10e27d8a0e8b23adb3ac98664bae987851099",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0ff4f88bed6c524eddc45cdef217a9ece457376d",
"extensio... | stackv2 | /*****************************************************************************
* *
* Copyright 2012 Thomas Lee *
* *
* L... | 2.015625 | 2 |
2024-11-18T19:02:55.781697+00:00 | 2023-07-28T12:35:29 | 362c61e7a50113a4cb7f00b2b1f6adf3b63117b4 | {
"blob_id": "362c61e7a50113a4cb7f00b2b1f6adf3b63117b4",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-28T12:35:29",
"content_id": "bb45e221ce7881e35a9af788d27b3de9be12fbf2",
"detected_licenses": [
"MIT"
],
"directory_id": "fd7c8d5d2ebb14e43346d8f0fc007509af9d14ca",
"extension": "c"... | stackv2 | // https://github.com/BillyWoods/ESP8266-I2C-example/blob/master/main.c
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include "i2c.h"
#include "ets_sys.h"
#include "osapi.h"
#include "gpio.h"
#include "os_type.h"
#include "../driver/custom_i2c_master.h"
void i2c_init() {
custom_i2c_master_gpi... | 2.625 | 3 |
2024-11-18T19:02:55.939191+00:00 | 2016-03-02T22:04:07 | e502396fa435813ff52aa08b6a3b872bc42cca61 | {
"blob_id": "e502396fa435813ff52aa08b6a3b872bc42cca61",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-02T22:04:07",
"content_id": "addd28a0555221786b1b51e02dd26706bc08928e",
"detected_licenses": [
"MIT"
],
"directory_id": "315162a0af0716c218d6bca5f10abf5b09a6c4e0",
"extension": "c"... | stackv2 | /* Collatz-BN.c - Created by iohzrd - 2016 */
#include<stdio.h>
#include<stdbool.h>
#include<gmp.h>
mpz_t n;
static mpz_t *collatz_length()
{
if (mpz_odd_p(n) == 0) //even
{
mpz_tdiv_q_ui(n, n, 2);
}
else if (mpz_even_p(n) == 0) //odd
{
mpz_mul_ui(n, n, 3);
mpz_add_ui(n, n, 1);
}
return (void *)... | 3.4375 | 3 |
2024-11-18T19:02:56.044345+00:00 | 2017-06-30T21:33:35 | d518d7b6277c91cc62c2c3d28acf3cf13f609cb5 | {
"blob_id": "d518d7b6277c91cc62c2c3d28acf3cf13f609cb5",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-30T21:33:35",
"content_id": "c461b123c89a163b69ed5c2b8e0ec7efd4ad055a",
"detected_licenses": [
"MIT"
],
"directory_id": "78159ed2a9aae778b2ff6cec02176005b05967fe",
"extension": "c"... | stackv2 | #include "tokenize.h"
#include "object.h"
#include "stdlib.h"
#include "string.h"
#include "stdio.h"
int current = 0;
int unterminated_parens = 0;
nObj parse(list tokens) {
if(current == length(tokens)) {
current = 0;
if(unterminated_parens) {
puts("Parse error: unterminated parens");
exit(1);
... | 2.5625 | 3 |
2024-11-18T19:02:56.382453+00:00 | 2013-11-22T17:28:14 | 4a9f6169f62fc5201b8d84b7532753d00ec22438 | {
"blob_id": "4a9f6169f62fc5201b8d84b7532753d00ec22438",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-25T16:21:41",
"content_id": "79d6e4124432bc98147d942b3024290b39f1f912",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c8a9028545de3dd050c01e74479219875324f618",
"extens... | stackv2 | #ifndef _BSD_MALLOC_H
#define _BSD_MALLOC_H
#include <bsd/porting/mmu.h>
#include <bsd/porting/netport.h>
// just our malloc impl.
#include <malloc.h>
#include "param.h" // BSD malloc includes this, so some files do not.
// Also differentiate from include/api/sys/param.h
#include "priority.h"
#ifdef... | 2.03125 | 2 |
2024-11-18T19:02:56.505370+00:00 | 2020-08-03T17:56:28 | e11ed86172150ed7b34c32a29b5eb95b50859dd1 | {
"blob_id": "e11ed86172150ed7b34c32a29b5eb95b50859dd1",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-03T17:56:28",
"content_id": "76f552527e37724acd4c52092da1432be6cae077",
"detected_licenses": [
"MIT"
],
"directory_id": "3c39e92b7d2a81b9b94356ade7ae981be7d9f0bf",
"extension": "c"... | stackv2 | // SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2018 Google LLC
*/
#include <common.h>
#include <dm.h>
#include <pch.h>
struct sandbox_pch_priv {
bool protect;
};
int sandbox_get_pch_spi_protect(struct udevice *dev)
{
struct sandbox_pch_priv *priv = dev_get_priv(dev);
return priv->protect;
}
static int sa... | 2.3125 | 2 |
2024-11-18T19:02:57.094161+00:00 | 2019-05-28T10:33:33 | 9f728f098963b74003e112fafa369035bdfd1403 | {
"blob_id": "9f728f098963b74003e112fafa369035bdfd1403",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-28T10:33:33",
"content_id": "fe0e5b500142a56769daf35c0fe03739074a6abc",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3f46e3237caf39d5a12e3ae2794928ea8f50e954",
"extens... | stackv2 | #include <stdlib.h>
#include <cblas.h>
#include "tasks.h"
void syrk_task_par_reconfigure(int nth)
{
// empty
}
void syrk_task_par_finalize(void)
{
// empty
}
void syrk_task_par(void *ptr, int nth, int me)
{
struct syrk_task_arg *arg = (struct syrk_task_arg*) ptr;
int n = arg->n;
int k ... | 2.21875 | 2 |
2024-11-18T19:02:57.375319+00:00 | 2021-10-21T10:32:40 | 8ca24f1e00f1b897f3aa1c3f060807a93a28b5f1 | {
"blob_id": "8ca24f1e00f1b897f3aa1c3f060807a93a28b5f1",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-21T10:32:40",
"content_id": "8da3be07660186023aae87a25dee3446666152b0",
"detected_licenses": [
"Zlib"
],
"directory_id": "46b6ffc9cbfd59ee196d3cfbd09d3397784c496d",
"extension": "c... | stackv2 | /* lfswrap.c -- Wrappers for LittleFS and other glue for the Pico.
Written 2021 by Eric Olson
This is free software released under the exact same terms as
stated in license.txt for the Basic interpreter. */
#define SDMOUNT "sdcard" // SD Card mount point
#define SDMLEN ( strlen (SDMOUNT) + 1 )
#include... | 2.09375 | 2 |
2024-11-18T19:02:57.471454+00:00 | 2019-11-04T16:50:16 | c809e59541b3ff8adf186e290f831e347261a2e2 | {
"blob_id": "c809e59541b3ff8adf186e290f831e347261a2e2",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-04T16:50:16",
"content_id": "920d5bbc8a9b32ba0c7f2f0409f9dd9b84f78f80",
"detected_licenses": [
"MIT"
],
"directory_id": "f3277b1c41eb85f4cf04ea0a3c1518700874dd50",
"extension": "c"... | stackv2 | // 3번 문제
// 입력받은 3자리 10진수 n을 16진수로 표현하는 재귀함수 tohex(int n)
// 재귀함수를 이용해 16진수 표현을 출력하는 프로그램
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void tohex(int);
int main() {
int n;
while (1) {
//printf("16진수로 출력할 3자리의 숫자 N을 입력하세요: ");
printf("Input 3 digit number N to print as hexadecimal: ");
int result = sc... | 3.90625 | 4 |
2024-11-18T19:02:57.577774+00:00 | 2016-06-12T18:43:24 | 63ca382ce4d06e566b6904cdc3a2a3e7eb534f1b | {
"blob_id": "63ca382ce4d06e566b6904cdc3a2a3e7eb534f1b",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-12T18:43:24",
"content_id": "b0252d994b0d0e0598a8a3a40fd5bce5f209c9c9",
"detected_licenses": [
"MIT"
],
"directory_id": "13a0a7b2e7781b83d0e4a740d044f518cfce25ff",
"extension": "c"... | stackv2 | #include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
#include <string.h>
#include <stdio.h>
// Implemented extra credit! (+1)
// Excellent implementation! stdin is not supported, though.
int main(int argc, char *argv[]) {
char c;
int read_count;
char option = '\0';
int startIndex = 1;
if (argc > 2)... | 2.828125 | 3 |
2024-11-18T19:02:57.649058+00:00 | 2020-04-13T16:21:57 | 83e85589b8fcad9d194299a6dcc7460befd9d58c | {
"blob_id": "83e85589b8fcad9d194299a6dcc7460befd9d58c",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-13T16:21:57",
"content_id": "720edb340908dd950eaf208a2cc8d3ac2c44b52d",
"detected_licenses": [
"MIT"
],
"directory_id": "6ee5312f77d693192d94c7bddff5ad9922003d7b",
"extension": "c"... | stackv2 | #include <gtt_protocol.h>
#include <gtt_ext_types.h>
gtt_bytearray_l8 gtt_make_bytearray_l8(uint8_t length, uint8_t *data)
{
gtt_bytearray_l8 res;
res.length = length;
res.Data = data;
return res;
}
gtt_bytearray_l16 gtt_make_bytearray_l16(uint16_t length, uint8_t *data)
{
gtt_bytearray_l16 res;
res.length = le... | 2.03125 | 2 |
2024-11-18T19:02:57.866948+00:00 | 2022-01-10T13:00:40 | f1c3067388eadd353ecdac51230dc44e6b1abc9b | {
"blob_id": "f1c3067388eadd353ecdac51230dc44e6b1abc9b",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-10T13:00:40",
"content_id": "d154c9357f897cb3b858f1325e4d72bb7ddae6d1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "0526f33b40ce0ac8972b80c986fb3f7e8c0d1d6f",
"extens... | stackv2 | /* -*- c-file-style: "GNU" -*- */
/*
* Copyright © Télécom SudParis.
* See COPYING in top-level directory.
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include "litl_merge.h"
static litl_trace_merge_t* __arch;
static litl_trace_triple... | 2.421875 | 2 |
2024-11-18T19:02:58.052210+00:00 | 2020-07-29T08:42:21 | b3ee06a815b0f5822c1b59112e8217cbfc6ea4cf | {
"blob_id": "b3ee06a815b0f5822c1b59112e8217cbfc6ea4cf",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-29T08:42:21",
"content_id": "d53c5cdccae10106bd819fb367504a02cacd462f",
"detected_licenses": [
"MIT"
],
"directory_id": "c90c739fa3fb27f2afa456fe9cf8dea8bed34892",
"extension": "c"... | stackv2 | #include "server.h"
static gchar *password_send_response(void) {
cJSON *json = cJSON_CreateObject();
gchar *message = "Password has successfully sent.";
gchar *response = NULL;
cJSON_AddItemToObject(json,
"response_type",
cJSON_CreateNumber(RS_PASSWO... | 2.09375 | 2 |
2024-11-18T19:02:58.363566+00:00 | 2017-08-21T09:04:18 | b72137ff8205d1126834d977ee2ee6b59e8f47de | {
"blob_id": "b72137ff8205d1126834d977ee2ee6b59e8f47de",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-21T09:04:18",
"content_id": "82631f9c017b0f4a1e47b5f07b7618aa5449bd27",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7bdd6a568a04320d258bd47d2cc312019964ea2a",
"extensio... | stackv2 | #include "xfconf.h"
#include "xfstate.h"
int XF_SMachCreate(XF_StateMachine *mach, XF_State *states[], uint8_t size) {
mach->states= states;
mach->sizeStates = size;
return 0;
}
int XF_SMachAddState(XF_StateMachine *mach, XF_State *state) {
uint8_t i = 0;
for(i = 0; i < mach->sizeStates; i++) {
... | 2.5 | 2 |
2024-11-18T19:02:58.839328+00:00 | 2019-11-29T16:27:26 | 7453c8cd1dde78fd5f4905bb599fb53738eb342e | {
"blob_id": "7453c8cd1dde78fd5f4905bb599fb53738eb342e",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-29T16:27:26",
"content_id": "7f2b6f8d1c1015024d8b013d1375483a8aedc0de",
"detected_licenses": [
"MIT"
],
"directory_id": "5666d433591872572c549a3968022c91d1c888df",
"extension": "h"... | stackv2 | // header file for Huffman coder
#ifndef HUFF_H
#define HUFF_H
#define NUM_CHARS 256
// node in a Huffman tree is either a compound char (internal node)
// or a simple char (leaf)
struct huffchar {
int freq;
int is_compound;
int seqno;
union {
struct {
struct huffchar * left;
struct huffchar ... | 2.3125 | 2 |
2024-11-18T19:02:58.924445+00:00 | 2022-05-17T13:30:59 | 4e29a5764802053e0819ea3f7ae0806385375ae6 | {
"blob_id": "4e29a5764802053e0819ea3f7ae0806385375ae6",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-17T13:31:08",
"content_id": "6af3c252fcb2272eb90cceffafcd00b32112f219",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "667d3b23c42d542c468993c789dde4e4745c5695",
"extension":... | stackv2 | /// @file
/// @brief A string (in UTF-8) object.
#include "string.h"
#include "malloc.h"
#include "eval.h"
#include "gc.h"
#include "utils.h"
/// Searches haystack for needle.
/// @arg start The needle is searched from haystack{start].
/// @arg haystack The UTF-8 string.
/// @arg haystack_size The size in bytes of hay... | 3.109375 | 3 |
2024-11-18T19:02:59.025035+00:00 | 2019-09-03T09:00:26 | e39b5df967bb8c7d1587e95fbc635317d05dd9e9 | {
"blob_id": "e39b5df967bb8c7d1587e95fbc635317d05dd9e9",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-03T09:00:26",
"content_id": "e0b23d1d7ae5553529295b3b88d6be52a4be4db9",
"detected_licenses": [
"MIT"
],
"directory_id": "5b44719471e4cfc29c875bfd0a33e3055cffa5d6",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "conv.h"
#include "../mellow_internal.h"
void* cStringToString(struct CString* cstring)
{
const char* str = cstring->str;
uint32_t strLength = strlen(str);
// The length of the array of characters plus the bytes alloca... | 2.734375 | 3 |
2024-11-18T19:02:59.664489+00:00 | 2021-03-21T17:28:02 | db975ca00e63164e8b4058d08b0d59a07d0451c6 | {
"blob_id": "db975ca00e63164e8b4058d08b0d59a07d0451c6",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-21T17:28:02",
"content_id": "72ce025469fcbbb24bed624de6125c9f56a2e6b6",
"detected_licenses": [
"MIT"
],
"directory_id": "d2f239171309d303a098371432b2cd508650efce",
"extension": "h"... | stackv2 | /*
* Symbol Table element
* The Symbol Table is a list of entries
* that represent variables or functions
*/
typedef struct SymbTbl {
char *column; /* symbol name */
char *table;
int type; /* symbol type VAR|FNCT */
struct SymbTbl *next; /* list forward pointer */
} symbtbl;
/* global variables */
extern ... | 2.515625 | 3 |
2024-11-18T19:03:01.717612+00:00 | 2016-04-07T17:28:06 | 47a044e4db83fab81e6e20bc7b8e8de1c7159b00 | {
"blob_id": "47a044e4db83fab81e6e20bc7b8e8de1c7159b00",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-07T17:28:06",
"content_id": "6d41e6551857ca5a6455969d98d2c564353c7aaf",
"detected_licenses": [
"MIT"
],
"directory_id": "87ac39d87ab1cb552dfcb6ebf6a8e3ef5a70906b",
"extension": "c"... | stackv2 | #include <stdio.h>
/*
* fflush
*/
int main(int argc, char* argv[])
{
FILE* fp;
char buf[] = "hello\n";
fp = fopen(argv[1], "w+");
if (fp == NULL) {
printf("open file %s failure\n", argv[1]);
return -1;
}
printf("open file a.c success\n");
fputs(buf, fp);
fflush(fp);
while(1); // 如果buf没有换行符, 运行到这里, a... | 2.84375 | 3 |
2024-11-18T19:53:03.015953+00:00 | 2020-08-17T15:29:55 | 2c438e5f1783cd024c0efffc4b1bb479017b6138 | {
"blob_id": "2c438e5f1783cd024c0efffc4b1bb479017b6138",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-17T15:29:55",
"content_id": "6bc733b6307042bf2a1406c64343da7de67104aa",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "622563fcf876552261f554b44530c507758fb88b",
"extens... | stackv2 | /*
Copyright (c) by Emil Valkov,
All rights reserved.
License: http://www.opensource.org/licenses/bsd-license.php
*/
#include <cv.h>
#include <highgui.h>
#include <stdio.h>
#include <unistd.h>
#include "RaspiCamCV.h"
int main(int argc, char *argv[ ]){
RASPIVID_CONFIG * config = (RASPIVID_CONFIG*)malloc(sizeof... | 2.515625 | 3 |
2024-11-18T19:53:03.084339+00:00 | 2021-10-24T07:26:07 | a8232adccae0c316aab20d3a2c3dbbb61e4263b7 | {
"blob_id": "a8232adccae0c316aab20d3a2c3dbbb61e4263b7",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-24T07:26:07",
"content_id": "c2d22083eb991e0d07afe6bc8301ec7828996476",
"detected_licenses": [
"Zlib"
],
"directory_id": "b9ffc4003f9993e349463e9de0292566a3e3f042",
"extension": "h... | stackv2 | /*
* hzr - A Huffman + RLE compression library.
*
* Copyright (C) 2016 Marcus Geelnard
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the
* use of this software.
*
* Permission is granted to anyone to u... | 2.21875 | 2 |
2024-11-18T19:53:03.138080+00:00 | 2023-07-17T14:30:17 | a2e1d1687c7260bb66f33971d68917b9cc0ead76 | {
"blob_id": "a2e1d1687c7260bb66f33971d68917b9cc0ead76",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-29T18:24:54",
"content_id": "9883f08ce8d86b9b454e4af3f5dafee611f539a8",
"detected_licenses": [
"MIT"
],
"directory_id": "87c8713ddf2a2dfc59725d8b05956156858c50f9",
"extension": "h"... | stackv2 | #ifndef ARGVALITR_H
#define ARGVALITR_H
#include <rtosc/rtosc.h>
/*
* arg val iterators
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* Iterator over arg values
*
* Always use this iterator for iterating because it automatically skips
* to the next offset, even in case of arrays etc.
* Also, it walks through... | 2.375 | 2 |
2024-11-18T19:53:03.425581+00:00 | 2017-05-15T10:13:09 | 8e03aab119df58497eadad92a7cb8a5ebbfa56df | {
"blob_id": "8e03aab119df58497eadad92a7cb8a5ebbfa56df",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-15T10:13:09",
"content_id": "56972dccb7f6f5cb2c6956e60e2a445c744c1be5",
"detected_licenses": [
"MIT"
],
"directory_id": "d348be0b3b41bb9d642252efca36b442571491ad",
"extension": "c"... | stackv2 | /*
MIT License
Copyright (c) 2017 MH Lim
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... | 2.546875 | 3 |
2024-11-18T19:53:05.031522+00:00 | 2017-06-04T16:36:15 | 57adc2299db6f52d79332f0160502b7bfe29227d | {
"blob_id": "57adc2299db6f52d79332f0160502b7bfe29227d",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-04T16:36:15",
"content_id": "1ce1efac444c69e48caacf89fefe81d104ef1ec4",
"detected_licenses": [
"MIT"
],
"directory_id": "1944e8afd3f2fec67a981e27996147eed7c59318",
"extension": "h"... | stackv2 | #ifndef STRPOOL_H
#define STRPOOL_H
/*
* simple string pool.
* 1. can add string, query string by id
* 2. cannot remove string, so no need to manage the storage
*
*/
#define NOT_SP_ID -1
typedef struct {
int charcount; // current used count in the pool
int charsize; // size of the pool
char *pool; ... | 2.375 | 2 |
2024-11-18T19:53:05.451199+00:00 | 2020-08-12T19:11:25 | 89d829c656fc3b83f779642f50aae75513d7f54a | {
"blob_id": "89d829c656fc3b83f779642f50aae75513d7f54a",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-12T19:11:25",
"content_id": "5a86c9be0c3ac95d298ed9299c9f33045d2a1030",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "d1a211f8e3cf9daa4638e5611bc5d085d28e4eb7",
"extens... | stackv2 | #ifndef ALGORITHM_0_H
#define ALGORITHM_0_H
#include "bankopladeformat/bankopladeformat.h"
void a0_compress(FILE *out, FILE *in) {
struct board board;
struct banko_reader reader;
banko_reader_open(&reader, in);
while (banko_reader_board(&reader, &board) == 0) {
for (int row = 0; row < BOARD_ROWS; row++) ... | 2.265625 | 2 |
2024-11-18T19:53:06.185720+00:00 | 2023-06-07T17:01:51 | 5ff95dfb80d13a860084fab67a650543af60be40 | {
"blob_id": "5ff95dfb80d13a860084fab67a650543af60be40",
"branch_name": "refs/heads/main",
"committer_date": "2023-06-07T17:01:51",
"content_id": "54be6cb1e077eacc29a09b27f50ebd5a61fd7019",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "af901bc01d668ecd411549625208b07024df3ffd",
... | stackv2 | #include <rlang.h>
#include <ctype.h>
#include "internal.h"
#include "decl/names-decl.h"
// 3 leading '.' + 1 trailing '\0' + 24 characters
#define MAX_IOTA_SIZE 28
r_obj* ffi_names_as_unique(r_obj* names, r_obj* quiet) {
return names_as_unique(names, r_lgl_get(quiet, 0));
}
// [[ export() ]]
r_obj* names_as_uni... | 2.4375 | 2 |
2024-11-18T19:53:06.249756+00:00 | 2021-02-20T18:33:34 | a65b3e83df1f7ca7c973108bf9c69128e45c4ba1 | {
"blob_id": "a65b3e83df1f7ca7c973108bf9c69128e45c4ba1",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-20T18:33:34",
"content_id": "c9697da544bd0472985adc80043308d51b7a1927",
"detected_licenses": [
"MIT"
],
"directory_id": "4f9746e75ee8c1f29a1e89161096182ed7506795",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <locale.h>
void main (){
setlocale(LC_ALL, "");
float ladoA, ladoB, ladoC;
printf("Digite as medidas dos três lados do triângulo:\n");
scanf("%f %f %f", &ladoA, &ladoB, &ladoC);
if (ladoA==0 && ladoB==0 && ladoC==0){
printf ("Esta medida não forma um triângulo... | 3.25 | 3 |
2024-11-18T19:53:06.563463+00:00 | 2023-06-21T22:55:38 | 36731bde1207c049208f3554df8ec1b709e8da39 | {
"blob_id": "36731bde1207c049208f3554df8ec1b709e8da39",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-22T07:07:58",
"content_id": "c531edbb1d623e2391c16d001b5105a53dc40f72",
"detected_licenses": [
"Unlicense"
],
"directory_id": "cf111b440f33ba9741ff45c60ac33dfade24e2ac",
"extension... | stackv2 | /*
* gcc -Wall -Wextra -pedantic -std=c11 c11_generic.c -o c11_generic
*/
#include <stdio.h>
void print_int(int x) { printf("%d", x); }
void print_double(double x) { printf("%f", x); }
void print_str(const char x[static 1]) { printf("%s", x); }
void print_char(char x) { printf("%c", x); }
#define print(x) _Generic... | 2.921875 | 3 |
2024-11-18T19:53:07.103972+00:00 | 2021-10-08T17:52:04 | 0627a28ca1a579bf86871d3c004b9f885c908b0d | {
"blob_id": "0627a28ca1a579bf86871d3c004b9f885c908b0d",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-08T17:52:04",
"content_id": "eae441bd9f14005a63ac8aaed12426f1a923e458",
"detected_licenses": [
"MIT"
],
"directory_id": "9987fa7f5ab9ca076f07ec540bc0f46a921893d5",
"extension": "c",
... | stackv2 | #include<stdio.h>
int main()
{
int queue[20],n,head,i,j,k,seek=0,max,diff;
float avg;
printf("Enter the max range of disk\n");
scanf("%d",&max);
printf("Enter the size of queue request\n");
scanf("%d",&n);
printf("Enter the queue of dis... | 2.90625 | 3 |
2024-11-18T19:53:07.432698+00:00 | 2023-08-09T18:19:32 | f6aa22b9cbba60d9bda3882f51224ed7fa1b75a2 | {
"blob_id": "f6aa22b9cbba60d9bda3882f51224ed7fa1b75a2",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-09T18:19:32",
"content_id": "48d72046f2172b27f6acc29ea22d7009f551a665",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a4a96286d9860e2661cd7c7f571d42bfa04c86cf",
"extensio... | stackv2 | /**
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Group: User-defined control registers */
/** Type of cmd register
* Command control register
*/
typedef union {
stru... | 2.171875 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.