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-18T18:39:48.637651+00:00 | 2021-03-13T11:59:19 | 093eb716e4bebcd1b9c3ff8dc309de69828bd80c | {
"blob_id": "093eb716e4bebcd1b9c3ff8dc309de69828bd80c",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-13T11:59:19",
"content_id": "ef6f2eea6016293c364f2bdab57cd7e01da9c6ba",
"detected_licenses": [
"MIT"
],
"directory_id": "9d94d5e6131b914d043730b34668e0a3aae5427a",
"extension": "h",
... | stackv2 | #ifndef GAME_CONTAINER_H
#define GAME_CONTAINER_H
typedef enum ContainerType {
CONTAINER_TYPE_CARCASS,
CONTAINER_TYPE_CHEST,
CONTAINER_TYPE_LOOT
} ContainerType;
#include "Game/Handle.h"
#include "Raylib/raylib.h"
#include "Raylib/terminal.h"
void InitContainers(int capacity);
int MaxContainers(void);
bool IsCon... | 2.296875 | 2 |
2024-11-18T18:39:48.730649+00:00 | 2019-11-06T15:21:19 | 16d2388c7afcd88419979c360b88f1773b9f0616 | {
"blob_id": "16d2388c7afcd88419979c360b88f1773b9f0616",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-06T15:21:19",
"content_id": "86f825179cf36c2b5e7e81551fa905fb7387b35a",
"detected_licenses": [
"MIT"
],
"directory_id": "d21cd7a935a6835ee9c3627df6a94e6d4fee1d40",
"extension": "h"... | stackv2 | // License Summary: MIT see LICENSE file
#pragma once
#include "al2o3_platform/platform.h"
#include "al2o3_thread/atomic.h"
typedef struct CADT_FreeListFT {
uint64_t elementSize;
uint64_t maxBlocks;
uint32_t elementsPerBlockMask;
uint32_t elementsPerBlockShift;
Thread_Atomic64_t freeListHead;
Thread_AtomicPtr_t... | 2.140625 | 2 |
2024-11-18T18:39:48.816699+00:00 | 2017-08-05T03:03:11 | 459974b07d01f680c7aece405a0954200c5a52b9 | {
"blob_id": "459974b07d01f680c7aece405a0954200c5a52b9",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-05T03:03:11",
"content_id": "dbe04757ef7151cbacc4a4929fb8330aade2392d",
"detected_licenses": [
"MIT"
],
"directory_id": "2349f4e5ad4adf2566f487e30caae046cacb88ba",
"extension": "c"... | stackv2 | /*
* Button.c
*
* Created on: Mar 9, 2017
* Author: dat
*/
#include <avr/io.h>
#include <avr/interrupt.h>
#include "Button.h"
ButtonPressCallback mOkFunction = 0;
ButtonPressCallback mCancelFunction = 0;
ButtonPressCallback mUpFunction = 0;
ButtonPressCallback mDownFunction = 0;
void ButtonsInit()
{
//en... | 2.6875 | 3 |
2024-11-18T18:39:48.932846+00:00 | 2015-01-19T12:52:08 | d21ebbcf7338ee09906dd9b40070429aa7d6d247 | {
"blob_id": "d21ebbcf7338ee09906dd9b40070429aa7d6d247",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-19T12:52:08",
"content_id": "f1224bb6fd6932f478be6ef9ca6c3affb62414b1",
"detected_licenses": [
"Unlicense"
],
"directory_id": "33da7068ffac1b584d0c5cd5795d04966d5fe127",
"extension... | stackv2 | /*
* Test driver for BIGRAM character guessing stuff.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "window.h"
#include "specs.h"
#include "cipher.h"
#define NDOBLOCKS 2 /* Number of blocks to do. */
#define DEBUG FALSE
ecinfo myecinfo;
char plainbuf[BLOCKSIZE+1];
float accept_level;
flo... | 2.671875 | 3 |
2024-11-18T18:39:48.995960+00:00 | 2023-08-17T16:08:06 | 0075b91ac4a74452ea92a8eda4f8cb03e67520a6 | {
"blob_id": "0075b91ac4a74452ea92a8eda4f8cb03e67520a6",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T16:08:06",
"content_id": "22c56d1395f5551e0e788ab010aa2baa792e13a1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066",
"extensio... | stackv2 | /*
This file implements the FCG (Flexible Conjugate Gradient) method
*/
#include <../src/ksp/ksp/impls/fcg/fcgimpl.h> /*I "petscksp.h" I*/
extern PetscErrorCode KSPComputeExtremeSingularValues_CG(KSP, PetscReal *, PetscReal *);
extern PetscErrorCode KSPComputeEigenvalues_CG(KSP, PetscInt, PetscReal *, PetscReal ... | 2.46875 | 2 |
2024-11-18T18:39:49.256861+00:00 | 2015-02-03T09:26:07 | 9730be71c9a6a6d963b2b5a02e86b0d20b95ecce | {
"blob_id": "9730be71c9a6a6d963b2b5a02e86b0d20b95ecce",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-03T09:26:07",
"content_id": "16bcb6edcd71a6bc53ca5f17125c38d67b40508c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "40e85a95db8c30f3bd8999308efdf734fd887e85",
"extensio... | stackv2 |
#ifndef STRING_H
#define STRING_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
char * strdup(const char *_s);
char *strcpy(char *to, const char *from);
char *strchr(const char *s, int c);
char *strrchr(const char *s, int c);
int strcmp(const char *s1, const char *s2);
size_t strcspn(const char *s1... | 2.03125 | 2 |
2024-11-18T18:39:49.333727+00:00 | 2016-11-25T17:45:21 | 6abed1cbd8668dc9b0916e4939294c9a477c6a01 | {
"blob_id": "6abed1cbd8668dc9b0916e4939294c9a477c6a01",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-25T17:45:21",
"content_id": "58ed3e903f17504578019e0b36edb952d0c6c9a0",
"detected_licenses": [
"MIT"
],
"directory_id": "239731234307c101d57f6f52922816a8a04659a0",
"extension": "c"... | stackv2 | #include "../inc/3DTransforms.h"
#include "math.h"
#include "stdio.h"
#include "stdlib.h"
void matrix4x4SetIdentity(Matrix4x4 matIdent4x4)
{
int row, col;
for (row = 0; row < 4; ++row)
for (col = 0; col < 4; ++col)
matIdent4x4 [row][col] = (row == col);
}
void matrix4x4pPrint(Matrix4x4 mtx)... | 2.765625 | 3 |
2024-11-18T18:39:49.579139+00:00 | 2019-10-26T15:16:00 | 4950fea6aed32a824deaa9830c33f7ee2ea7e33c | {
"blob_id": "4950fea6aed32a824deaa9830c33f7ee2ea7e33c",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-26T15:16:00",
"content_id": "def7ff120e4d01435fe29b94982002dc560af7de",
"detected_licenses": [
"MIT"
],
"directory_id": "04ce14d564d4ff804cfb0fca163a84804c107a2a",
"extension": "c"... | stackv2 | #include<init.h>
static void exit(int);
static int main(void);
void init_start()
{
int retval = main();
exit(0);
}
/*Invoke system call with no additional arguments*/
static long _syscall0(int syscall_num)
{
asm volatile ( "int $0x80;"
"leaveq;"
"retq;"
:::"mem... | 2.828125 | 3 |
2024-11-18T18:39:49.864574+00:00 | 2020-11-14T03:18:45 | 70e0da748471862ea8bbd1e6356edc3c24ac10bf | {
"blob_id": "70e0da748471862ea8bbd1e6356edc3c24ac10bf",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-14T03:18:45",
"content_id": "d0f5d02bdd2c71ff9018ec42c87071a1c2b163b1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8bc631d6e5985db11c59490aaa25d4c633fcd2a5",
"extension"... | stackv2 | #include<stdio.h>
void main()
{
int numbers[10];
int count=10;
long sum=0L;
float average=0.0f;
printf("\nEnter the 10 numbers : \n");
int i;
for(i=0;i<count;i++)
{
printf("%d>",i+1);
scanf("%d",&numbers[i]);
sum+=numbers[i];
... | 3.234375 | 3 |
2024-11-18T18:39:50.456770+00:00 | 2022-10-09T01:08:00 | db59257fe750b76f9bfb3ce96c80d4f37ecdb7cc | {
"blob_id": "db59257fe750b76f9bfb3ce96c80d4f37ecdb7cc",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-09T01:08:00",
"content_id": "4f05ff72e6aa0a45faa7cea3077268e213fd6f8e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7d761dcd9263ac6e5b9daede963f5e56c4fb3a36",
"extensio... | stackv2 | /* $NetBSD: iconv.c,v 1.13.4.1 2014/12/01 09:31:40 martin Exp $ */
/* Public domain */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: iconv.c,v 1.13.4.1 2014/12/01 09:31:40 martin Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/errno.h>
#include <netsmb/iconv.h>
/* ... | 2.375 | 2 |
2024-11-18T18:39:51.257672+00:00 | 2022-10-03T11:42:14 | 8dab4cac016334b955177ab073e563a470fbcb9b | {
"blob_id": "8dab4cac016334b955177ab073e563a470fbcb9b",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-03T11:42:14",
"content_id": "d385f2c6cb2804000e9a5f129cbc259e3c435c6c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "ce88b141111ab438b07014912c5acc7d0893d568",
"extens... | stackv2 | /* Lzlib - Compression library for the lzip format
Copyright (C) 2009-2019 Antonio Diaz Diaz.
This library is free software. 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 ... | 2.28125 | 2 |
2024-11-18T18:39:51.616347+00:00 | 2020-03-01T04:18:24 | d0a38db4b69ad166c62db001b9b61c6c806c8f8b | {
"blob_id": "d0a38db4b69ad166c62db001b9b61c6c806c8f8b",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-01T04:18:24",
"content_id": "cfafea3eb2e5a2151bfae09cc8b0e9be42bf6c9a",
"detected_licenses": [
"MIT"
],
"directory_id": "d668647cb76b7d24e1f617f0b1a5b223f733c0c0",
"extension": "c"... | stackv2 | #include "mana/graphics/entities/sprite.h"
void calc_normal(vec3 p1, vec3 p2, vec3 p3, float* dest) {
vec3 v1;
glm_vec3_sub(p2, p1, v1);
vec3 v2;
glm_vec3_sub(p3, p1, v2);
glm_vec3_crossn(v1, v2, dest);
}
int sprite_init(struct Sprite* sprite, struct VulkanRenderer* vulkan_renderer, struct Shader* shader)... | 2.15625 | 2 |
2024-11-18T18:39:51.826831+00:00 | 2022-11-04T20:30:08 | 2305be8d5f0211fb61e46c140c941f34df254fba | {
"blob_id": "2305be8d5f0211fb61e46c140c941f34df254fba",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-04T20:30:08",
"content_id": "c2ba5dfd250dce6476d7cc68d9a462302fe8e990",
"detected_licenses": [
"MIT"
],
"directory_id": "4762c0b2b09414f357837cda4cc7cca7f58d7630",
"extension": "h"... | stackv2 | /*
* st-node.h
*
* Copyright (c) 2008 Vincent Geddes
*
* 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, mod... | 2.046875 | 2 |
2024-11-18T18:39:52.006230+00:00 | 2022-10-19T02:39:49 | e9e123ce972a4f529bf45d6e72017fe39038609c | {
"blob_id": "e9e123ce972a4f529bf45d6e72017fe39038609c",
"branch_name": "refs/heads/main",
"committer_date": "2022-10-19T02:39:49",
"content_id": "fdcaa4f099db6e5dae096b16f4efeade523e11d5",
"detected_licenses": [
"Unlicense"
],
"directory_id": "577382a8fac5056e6180890955f1439e21721d5d",
"extension":... | stackv2 | //
// Exercise6.1.c
#include <stdio.h>
#include <opencv2/highgui/highgui_c.h>
#include <opencv2/imgproc/imgproc_c.h>
#include <opencv2/core/core_c.h>
static void PrintMat(const char* name, const CvMat* mat)
{
printf("%s: {\n", name);
for(int r = 0; r < mat->rows; ++r)
{
float* rowFloats = (float*)(mat->data.... | 2.859375 | 3 |
2024-11-18T18:39:52.116984+00:00 | 2014-06-26T18:29:02 | 097b5870725a294f4cbbd345a2fa0be511ebcc95 | {
"blob_id": "097b5870725a294f4cbbd345a2fa0be511ebcc95",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-26T18:30:17",
"content_id": "afbe96ab9e6cf7400d4c446bceebe99afe74e9df",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "45174048966842f751b22e9ee1355be9cb90e224",
"extens... | stackv2 | /* Copyright (c) 2013, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <odp_buffer.h>
#include <odp_buffer_internal.h>
#include <odp_buffer_pool_internal.h>
#include <string.h>
#include <stdio.h>
void *odp_buffer_addr(odp_buffer_t buf)
{
odp_buffer_hdr_t *hdr = o... | 2.703125 | 3 |
2024-11-18T18:39:52.238450+00:00 | 2021-02-25T10:38:39 | 0e516f57ced47324651df6e7336e0cc05ad0c095 | {
"blob_id": "0e516f57ced47324651df6e7336e0cc05ad0c095",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-25T10:38:39",
"content_id": "2d21f6a32b52cba98c6b1cd7a6eaabc90ee85fb5",
"detected_licenses": [
"MIT"
],
"directory_id": "ce6413ccb1c562e721376515d636c4284879fcd8",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <math.h>
double func3(double x){
return pow(3,x) + x*tan(x);
}
int main(){
double upper_limit, lower_limit;
int sub_intervals;
printf("For function 3^x + x*tan(x):\n");
printf("Enter the (upper_limit, lower_limit) for integration :");
scanf("%lf %lf", &upper_limit, &lower_limi... | 3.515625 | 4 |
2024-11-18T18:39:52.341974+00:00 | 2018-05-28T22:34:42 | d5d4a42898b7f7c19a89ef8c26c3aba483d39a2c | {
"blob_id": "d5d4a42898b7f7c19a89ef8c26c3aba483d39a2c",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-28T22:34:42",
"content_id": "4c2aaff2523183df0ffc5f55efda6d1047c2e9d2",
"detected_licenses": [
"MIT"
],
"directory_id": "aea9456d090d539a46ea4f4bfa44da99f6235399",
"extension": "c"... | stackv2 | #include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "cixl/cx.h"
#include "cixl/error.h"
#include "cixl/util.h"
char *cx_vfmt(const char *spec, va_list args) {
va_list size_args;
... | 2.515625 | 3 |
2024-11-18T18:39:52.625393+00:00 | 2018-04-22T14:47:29 | bae2d55652b492c5aec46dffba8af018db126b55 | {
"blob_id": "bae2d55652b492c5aec46dffba8af018db126b55",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-22T14:47:29",
"content_id": "8e5c1c307e67c265d05222f3dae323c32767d57e",
"detected_licenses": [
"MIT"
],
"directory_id": "0c7a22f6bf736b0a116f4fdcae597b97580f5dda",
"extension": "c"... | stackv2 | // This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "Everywhere.h"
/**
@file
@brief a bit overengineered for what probably no one will use, maybe
*/
#include <Windows.h>
#include <stdio.h>
#i... | 2.28125 | 2 |
2024-11-18T18:39:52.720093+00:00 | 2015-11-11T21:54:02 | 71265346d3d9747402bcd4cc0d2dc812e8a06994 | {
"blob_id": "71265346d3d9747402bcd4cc0d2dc812e8a06994",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-11T21:54:02",
"content_id": "bdb1efc68bb34247a28a14e33ee5b335df505e5a",
"detected_licenses": [
"MIT"
],
"directory_id": "3ee43a3ff9e550ec8985d2f1073bd6a316296cc0",
"extension": "h"... | stackv2 | #ifndef __KERNEL_TASK_H__
#define __KERNEL_TASK_H__
#include <kernel/list.h>
#include <arch/memory.h>
typedef int tid_t;
struct task {
struct list_head link;
tid_t tid;
};
static inline struct task *current_task(void)
{
unsigned long sp = ((unsigned long)&sp) & ~(KERNEL_STACK_ALIGN - 1);
return (struct task *)... | 2.015625 | 2 |
2024-11-18T18:39:52.828640+00:00 | 2012-02-23T16:34:00 | 7d8980e8c652de617ad0cf359ee31c5abd75fa8b | {
"blob_id": "7d8980e8c652de617ad0cf359ee31c5abd75fa8b",
"branch_name": "refs/heads/master",
"committer_date": "2012-02-23T16:34:00",
"content_id": "d737ac52b8541167dba37b6765809ad7bcfad40d",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "0a4dde19079a5028b1b0869b79b6c94d28749fad",
"extension":... | stackv2 | // Copyright Vladimir Marko 2005 - 2010.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef VMARKO_BINTREE_ROOT_H_INCLUDED
#define VMARKO_BINTREE_ROOT_H_INCLUDED
#include "bintree_impl_b... | 2 | 2 |
2024-11-18T18:39:52.888124+00:00 | 2023-08-28T23:30:43 | b8114b2e816ef7e977d3c7b83479047a4f26070d | {
"blob_id": "b8114b2e816ef7e977d3c7b83479047a4f26070d",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T23:30:43",
"content_id": "7c25e28c12c0113561dc42d373a3834f0fa04b11",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "badb70a0b235c98ac034cfe5b4bfafda36647831",
"extens... | stackv2 | /** @file
OcSerializeLib
Copyright (c) 2018, vit9696
All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bs... | 2.15625 | 2 |
2024-11-18T18:39:54.028628+00:00 | 2019-02-21T12:57:12 | 2ec3092294c50702852d8e2f686e05076a212c5d | {
"blob_id": "2ec3092294c50702852d8e2f686e05076a212c5d",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-23T10:17:03",
"content_id": "c485249ff6221243464a30883d5c58505bd8b5c7",
"detected_licenses": [
"MIT"
],
"directory_id": "861067c2e312d3f617a3f8fb655f83d5cb15c7cf",
"extension": "h"... | stackv2 | #ifndef PM25_NODEMCU_UTILS_H
#define PM25_NODEMCU_UTILS_H
// It is reported that deepsleep takes ~250ms and wakeup ~75ms
const unsigned long bootTime = 250 + 75;
// Will rely on ntpConfig->ntpTZOffset to compute proper UTC time
// e.g. 2017-01-26 at 15:00:00 Paris Time, it is 2017-01-26T15:00:00.000Z == 2017-01-26T15... | 2.375 | 2 |
2024-11-18T18:39:54.901052+00:00 | 2014-03-03T04:23:29 | 79a9be416defda770ac9b656df28746468c4b2c2 | {
"blob_id": "79a9be416defda770ac9b656df28746468c4b2c2",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-03T04:23:29",
"content_id": "16f423ca85bd2ffc33cfa5fb006e82893d0a6ba3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a92a91a02b97334487fd89deb29064dd109b965d",
"extensio... | stackv2 | /*
* Copyright (C) ST-Ericsson SA 2010. All rights reserved.
* This code is ST-Ericsson proprietary and confidential.
* Any use of the code for whatever purpose is subject to
* specific written permission of ST-Ericsson SA.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Maximum values for 16-bit... | 2.875 | 3 |
2024-11-18T18:39:55.224594+00:00 | 2020-05-15T10:57:17 | 40a404db60a51b9a1ed590d50e396f7c01b4e430 | {
"blob_id": "40a404db60a51b9a1ed590d50e396f7c01b4e430",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-15T10:57:17",
"content_id": "91f9a7a70c59762e1ab3a27b4532cd1ddeb6d5a5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "17df945db1899d1c5108f5280063fb9739b94922",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <nvme-host.h>
#define NVMEH_NUM_QUEUES 4 * (OXF_FULL_IFACES + 1)
#define NVMEH_BUF_SIZE 1024 * 1024 * 8 /* 8 MB */
#define NVMEH_BLKSZ 4096
static volatile uint8_t done;
/* This is an example context that identifies the ... | 2.40625 | 2 |
2024-11-18T18:39:55.392753+00:00 | 2021-03-20T14:31:58 | 1886724d0a8b43802832cb0c276ca7f16ba1af51 | {
"blob_id": "1886724d0a8b43802832cb0c276ca7f16ba1af51",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-20T14:38:24",
"content_id": "f25bc6653d8b80ac66a8a3af993d10153b43b7f7",
"detected_licenses": [
"MIT"
],
"directory_id": "edf58351f7856e4d86739bd884ef92a7d3a2a404",
"extension": "c",
... | stackv2 | #include <unistd.h>
#include <math.h>
#include <sys/cdefs.h>
#include "esp_heap_caps.h"
#include "espFoC/rotor_sensor_analog.h"
#include "esp_attr.h"
typedef struct {
float current_count;
float previous_read;
float counts_per_revolution;
int adc_channel;
float limit_high;
float limit_low;
... | 2.375 | 2 |
2024-11-18T18:39:56.016418+00:00 | 2019-01-09T22:01:35 | 9bbc7e86484223d1e73639ae4ca3700ddc5eb1f0 | {
"blob_id": "9bbc7e86484223d1e73639ae4ca3700ddc5eb1f0",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-09T22:01:35",
"content_id": "d6ff2fe05f25a0da655e6e6707fa1242db01ed75",
"detected_licenses": [
"MIT"
],
"directory_id": "aa5fc85159f2d4373933259229cd374e99d9e6f5",
"extension": "c"... | stackv2 | #include <lcom/lcf.h>
#include "video.h"
int(vg_start)(uint16_t mode) {
lm_init(false);
vbe_mode_info_t vbe_mode;
vbe_get_mode_info(mode, &vbe_mode);
v_res = vbe_mode.YResolution;
h_res = vbe_mode.XResolution;
bits_per_pixel = vbe_mode.BitsPerPixel;
memory_model = vbe_mode.MemoryModel;
BlueScreeMa... | 2.421875 | 2 |
2024-11-18T18:39:56.086049+00:00 | 2020-03-25T16:51:01 | 086cc299fdebb757d3e3ba918a20835a8ae83679 | {
"blob_id": "086cc299fdebb757d3e3ba918a20835a8ae83679",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-25T16:51:01",
"content_id": "f97842ed00bdf710bf6b91c2a9f375046599c204",
"detected_licenses": [
"MIT"
],
"directory_id": "1c129f4f6c908e3b6647485f40b76441b6d4a5cb",
"extension": "c"... | stackv2 | /*
** EPITECH PROJECT, 2019
** kawai
** File description:
** main
*/
#include <stdio.h>
#include <stdlib.h>
#include "tetris.h"
int show_help(void)
{
my_putstr("Usage: ./tetris [options]\n");
my_putstr("Options:\n");
my_putstr("\t--help\tDisplay this help\n");
my_putstr("\t-L --level={num}\tStart Tetr... | 2.796875 | 3 |
2024-11-18T18:39:56.436419+00:00 | 2023-08-11T18:10:35 | 2d171c52597c1cceec82143e59acff7e9f9cb2b3 | {
"blob_id": "2d171c52597c1cceec82143e59acff7e9f9cb2b3",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T18:10:35",
"content_id": "e36283c55fa51b9efec59200fd7255bdaa571f52",
"detected_licenses": [
"MIT"
],
"directory_id": "31f5cddb9885fc03b5c05fba5f9727b2f775cf47",
"extension": "c"... | stackv2 | #include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <arm/linux/api.h>
#ifdef __ANDROID__
#include <arm/android/api.h>
#endif
#include <cpuinfo/log.h>
#include <cpuinfo/common.h>
static inline bool is_ascii_whitespace(char c) {
switch (c) {
case ' ':
case '\t':
case '\r':
... | 2.265625 | 2 |
2024-11-18T18:39:56.712410+00:00 | 2016-02-09T02:21:16 | 8c0cdeff5f8a86fefead0bf7e2f3763a7842b4cc | {
"blob_id": "8c0cdeff5f8a86fefead0bf7e2f3763a7842b4cc",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-09T02:21:16",
"content_id": "fef25b0ae2cce8a9f3cdaafd66d721856f8f1184",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "800a1a35ef6bf3108377cb16c15a290ddff68796",
"extensio... | stackv2 | /*
* Copyright 2015 Wink Saville
*
* 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.03125 | 2 |
2024-11-18T18:39:57.864572+00:00 | 2019-06-10T14:32:00 | 52bcb4b7c0f4b9d2856b996265ed2ba615d59ca6 | {
"blob_id": "52bcb4b7c0f4b9d2856b996265ed2ba615d59ca6",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-10T14:32:00",
"content_id": "2d772837cb53fb27b1839bd942bf3b955705649d",
"detected_licenses": [
"MIT"
],
"directory_id": "b54a93d0d8fa05e0481792e113e94b6a099c50bb",
"extension": "c"... | stackv2 | #include "MAG-CAS-plugin.h"
#include "stdio.h"
#define DEBUG(x...) {}//printf(x)
#define DEBUG_CALL() DEBUG("Called function %s\n",__FUNCTION__)
STB_MAG_Cas_t PluginInterface;
STB_MAG_Cad_t DescramblerInterface = {NULL,NULL};
/**
* Callback to be called by Player on PMT change
*/
void CAS_OnPmtChange(byte* buffer, ... | 2.21875 | 2 |
2024-11-18T18:39:59.348972+00:00 | 2020-06-15T11:23:08 | ef08fd90984d5988df787945d408348bb25bbb26 | {
"blob_id": "ef08fd90984d5988df787945d408348bb25bbb26",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-15T11:23:08",
"content_id": "bd86e5926f88de5be8e28b0a88aa74436d5d789f",
"detected_licenses": [
"MIT"
],
"directory_id": "7b6057b1a13e528fd09c3a3b9d8b76a709e2eed4",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
struct Lista
{
int *itens;
int quantidade, tamanho;
};
void criaLista(struct Lista *, int);
int busca(struct Lista, int);
void insere(struct Lista *, int);
void exclui(struct Lista *, int);
void mostra(struct Lista);
int listaEstaContidaEmLista(struct Lista *, struct Lis... | 3.5625 | 4 |
2024-11-18T18:39:59.741825+00:00 | 2020-01-17T08:53:50 | fd3d23d3f3e0fd03a3bbdb02988921d4b7baad63 | {
"blob_id": "fd3d23d3f3e0fd03a3bbdb02988921d4b7baad63",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-17T08:53:50",
"content_id": "5f8835038693fb9a43cd469c47a098b80594c859",
"detected_licenses": [
"MIT"
],
"directory_id": "7c441af6a3f71dd766edfc34919182227cbd8815",
"extension": "c"... | stackv2 | // to.c
// inherit F_CLEAN_UP;
// Don't want this command be cleaned up while typing long string.
int main(object me, string arg)
{
// me->edit( (: this_object(), ({ "do_to", me, arg }) :) );
return 1;
}
void do_to(object me, string arg, string str)
{
seteuid(getuid());
if(arg) me->force_me(arg + " " + str);
el... | 2.4375 | 2 |
2024-11-18T18:39:59.815502+00:00 | 2023-08-04T14:47:27 | 3ad3e0b3dd2b05d94f58b1b297a2411c66dd12dd | {
"blob_id": "3ad3e0b3dd2b05d94f58b1b297a2411c66dd12dd",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-04T14:47:27",
"content_id": "4983b9048d407a5e6e081b38b72f3303904cbad9",
"detected_licenses": [
"MIT"
],
"directory_id": "51e4ae3bc7e715c52be1021e734f9dd8ce62eace",
"extension": "h",
... | stackv2 | /* SPDX-License-Identifier: Apache-2.0
* Copyright 2011-2022 Blender Foundation */
#pragma once
#include "util/color.h"
CCL_NAMESPACE_BEGIN
ccl_device float3 xyz_to_rgb(KernelGlobals kg, float3 xyz)
{
return make_float3(dot(float4_to_float3(kernel_data.film.xyz_to_r), xyz),
dot(float4_to_flo... | 2.15625 | 2 |
2024-11-18T18:40:00.127485+00:00 | 2018-05-07T13:47:33 | 1445ac7154aab15541bca4947353c3c7e98f5aa1 | {
"blob_id": "1445ac7154aab15541bca4947353c3c7e98f5aa1",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-07T13:47:33",
"content_id": "b2e9b598db23c9a0287ec89be3a8865c0d2b42f5",
"detected_licenses": [
"MIT"
],
"directory_id": "15f2d5148f302f2ba716b49cc14ea6dec0fed98c",
"extension": "c"... | stackv2 | //////////////////////////////////////////////////////////////////////////////
/// \defgroup Communication Buffer for AISC167Board
//@{
/// \file ais_combuff.c
///
/// \brief Communication Buffer and Fetch&Validate Functions for AISC167
/// Communication
///
/// \author Adam Cwientzek
///
/// \version 0.8
///
/// \d... | 2.3125 | 2 |
2024-11-18T18:40:00.340383+00:00 | 2022-05-25T23:10:04 | c88c9e01a98e88ed0e426f93c31c3c45e69cd56f | {
"blob_id": "c88c9e01a98e88ed0e426f93c31c3c45e69cd56f",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-25T23:10:04",
"content_id": "de9c8f753c034ccc9d37af93fdf360b37c0bcb1e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3e39e2fa31158d6d86a23773946084db17cd3317",
"extensio... | stackv2 | /*
* SPDX-FileCopyrightText: 2018-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ESP_SYSVIEW_TRACE_H_
#define ESP_SYSVIEW_TRACE_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdarg.h>
#include "esp_err.h"
#include "SEGGER_RTT.h" // SEGGER_RTT_ESP_Flush
#include "... | 2.046875 | 2 |
2024-11-18T18:40:00.534158+00:00 | 2021-10-05T15:03:54 | db1b7384fa7861c94ebbdf2a0ea44cb375b32b6e | {
"blob_id": "db1b7384fa7861c94ebbdf2a0ea44cb375b32b6e",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-05T15:03:54",
"content_id": "a73c5b915bf3139ff78268344fcf7fec7c74163c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1d0e2b29fc7f3197ac2e83de56fc695d2635f664",
"extensio... | stackv2 | #include <assert.h>
#include <stdlib.h>
#include <time.h>
void swap(int *arr, int i, int j) {
int temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
int partition(int *arr, int low, int high) {
int pivot = arr[low];
while (low < high) {
while (low < high && arr[high] >= pivot) {
... | 3.28125 | 3 |
2024-11-18T18:40:00.611132+00:00 | 2020-11-11T00:03:03 | acd0d5c8d5b2a3965ecde9ec193c6b31b8b6d82d | {
"blob_id": "acd0d5c8d5b2a3965ecde9ec193c6b31b8b6d82d",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-11T00:03:03",
"content_id": "7e4f206eb3f368894cef92e059c9aa5ff4575d6a",
"detected_licenses": [
"MIT"
],
"directory_id": "878e856d2164cb65216fb3566d1b7b5c11bef0ae",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "config.h"
#include "values.h"
#include "gc.h"
/* A "space" describes one generation of the generational collector. */
struct space {
value *start, *next, *limit;
};
/* Either start==NULL (meaning that this generation has not yet been created),
o... | 2.5625 | 3 |
2024-11-18T18:40:00.980258+00:00 | 2019-05-30T03:19:42 | e4af18f0a86ed6bba524ca5a261ee0cbec39dd25 | {
"blob_id": "e4af18f0a86ed6bba524ca5a261ee0cbec39dd25",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-30T03:19:42",
"content_id": "aa9fd8d71e4a3a7034c854ce14e495114816438f",
"detected_licenses": [
"Unlicense"
],
"directory_id": "b058c201472df07839de7ea90cf52ed18d938f44",
"extension... | stackv2 | /*
* File: Main.c
* Author: Hieu Do
* Description: Contains the main() function.
*/
#include <ncurses.h>
#include "GamePlay.h"
#include "Menu.h"
void initGame (void);
void finnishAndQuit (void);
int main (void)
{
initGame ();
finnishAndQuit ();
return 0;
}
void initGame (void)
{
initscr ();
... | 2.71875 | 3 |
2024-11-18T18:40:03.327647+00:00 | 2016-02-09T22:50:58 | 0dbe35fc3bd11b88500ef02e7ecb15e30745683a | {
"blob_id": "0dbe35fc3bd11b88500ef02e7ecb15e30745683a",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-09T22:50:58",
"content_id": "02365142c5c02ef8d6aa76eb3c290c00dada4368",
"detected_licenses": [
"MIT"
],
"directory_id": "f6059152eb62cfecaef8d1b6b4a71e85c97bb81d",
"extension": "h"... | stackv2 | /*
** shell.h for 42SH in /afs/epitech.net/users/epitech_2017/lefran_g/public/42SH
**
** Made by guillaume lefrant
** Login <lefran_g@epitech.net>
**
** Started on Thu Apr 4 11:20:02 2013 guillaume lefrant
** Last update Wed May 22 15:17:01 2013 guillaume lefrant
*/
#ifndef SHELL_H_
# define SHELL_H_
# include <s... | 2.125 | 2 |
2024-11-18T18:40:03.523067+00:00 | 2017-07-02T21:42:07 | 7a15568639e20a20793144198420b3e821542209 | {
"blob_id": "7a15568639e20a20793144198420b3e821542209",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-02T21:42:07",
"content_id": "eef0e994cc331e92159a21fbd1a3c01f0af19a06",
"detected_licenses": [
"MIT"
],
"directory_id": "99fe247d07120864f14f8a984196418db98d3404",
"extension": "h"... | stackv2 | #ifndef __GLOBALS_H__
#define __GLOBALS_H__
#include <WinSock2.h>
#include <Windows.h>
/*
you shouldn't have to touch
the members of this structure
the proxy server should handle
everything for you, just pass
the ptr to the provided functions
*/
typedef struct TAG_CLIENT {
HWND hMain;
SOCKET clientsock;
SOCKE... | 2.25 | 2 |
2024-11-18T18:40:03.753245+00:00 | 2023-04-12T15:42:13 | 30ce2c22bec06616ea4d8ceb453c06c90caf4cfe | {
"blob_id": "30ce2c22bec06616ea4d8ceb453c06c90caf4cfe",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-12T15:42:13",
"content_id": "f50ca71ac02d96285ebcdcbe953f52be0f30a7ad",
"detected_licenses": [
"MIT"
],
"directory_id": "7271ede736cda055f3cee2da3b8c1395a404f9dc",
"extension": "h"... | stackv2 | #ifndef __ROS_H__
#define __ROS_H__
#include "ros_port.h"
#include "ros_timer.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
TASK_READY = 0,
// TASK_RUNNING,
TASK_BLOCKED,
TASK_TERMINATED
} Task_Status;
/**
* Task implementation function:
* void task1(void *param) {
* for(;;) {
* // ta... | 2.375 | 2 |
2024-11-18T18:41:30.753622+00:00 | 2015-12-28T05:00:55 | 6bd1d17c41f9dcbee2a52f8384aabb68139c1efa | {
"blob_id": "6bd1d17c41f9dcbee2a52f8384aabb68139c1efa",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-28T05:00:55",
"content_id": "acb14fd88e5bfe4798e4f515b11227e5681b77ff",
"detected_licenses": [
"MIT"
],
"directory_id": "906e60284002aadcd44d85e1b08c061f4debc4fd",
"extension": "c"... | stackv2 | /*
* trainGMM.c
*
* MEX wrapper for libgmm
*
* Usage:
* [gmm] = trainGMM(X, k, varargin)
*/
#include "mex.h"
#include "../gmm.h"
#include <stdlib.h>
#include <string.h>
/* The gateway function */
void mexFunction(int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[])
{
/* --------------... | 2.40625 | 2 |
2024-11-18T18:41:30.830250+00:00 | 2017-01-07T10:18:33 | 47aa6a328ff0431e6843ba6ab4699e83e9d72805 | {
"blob_id": "47aa6a328ff0431e6843ba6ab4699e83e9d72805",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-07T10:18:33",
"content_id": "45a2861ea40a6fbe606af5fb0562e691e45661a0",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "9cbe932ed9330c509456066171c7c502b8aaa3f8",
"extens... | stackv2 | /**
* This file is part of the bladeRF project:
* http://www.github.com/nuand/bladeRF
*
* Copyright (C) 2014 Nuand LLC
*
* 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; either
... | 2.3125 | 2 |
2024-11-18T18:41:30.880099+00:00 | 2020-07-09T06:06:50 | 2a56fcfb170a1e33e1241b63661b8c0734a92440 | {
"blob_id": "2a56fcfb170a1e33e1241b63661b8c0734a92440",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-09T06:06:50",
"content_id": "f50d58dc1653d9a4700a6783f00a4d8b50aad3ae",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "8938c049736335ff7364494e70c2e8558d5afe51"... | stackv2 | /**
* @file src/LoadMatrix/poski_LoadMatrix_HB_to_CSR.c
* @brief Read the pattern of a file stored in Harwell-Boeing format.
*
* This module implements the routines to read the pattern of a file stored in Harwell-Boeing format.
* Modified from the HB format loader routines written by Sam Williams \<swwilliams@lb... | 2.5 | 2 |
2024-11-18T18:42:07.148875+00:00 | 2012-06-30T22:38:33 | acffe2fb05063d0aa963ad26ffcb56da1d22e53b | {
"blob_id": "acffe2fb05063d0aa963ad26ffcb56da1d22e53b",
"branch_name": "refs/heads/master",
"committer_date": "2012-06-30T22:38:33",
"content_id": "a453bfecb5e8c78b13a66ff7de9f891effff4517",
"detected_licenses": [
"MIT"
],
"directory_id": "1587be5bbcd099beaa6136e5459e392610460d8f",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include "enigma.h"
int enigma_gen(struct enigma *eng)
{
int i;
int retval;
for(i=0;i<ROTOR_NUM;i++)
if(retval=rotor_gen(eng->e_rotors));
return retval;
return reflector_gen(eng->e_refl);
}
int rotor_gen(struct rotor *rtr)
{
char tmp[ROTOR_SZ];
int i;
int retval;
rt... | 2.640625 | 3 |
2024-11-18T18:42:07.229848+00:00 | 2022-09-19T14:14:22 | 5e81f36ed733ef47348157769616621116bf138b | {
"blob_id": "5e81f36ed733ef47348157769616621116bf138b",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-19T14:14:22",
"content_id": "633de13f4f9dc200050391664e05d566dcd6b687",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "6610ed12b0d1e2a8b7efd4d2ad07fc1dab108950",
"extension":... | stackv2 | /*
* Tcode9 disassembler
* Nils M Holm, 2017, 0BSD license
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#define MEMSIZE 131072
#define byte unsigned char
#define sbyte signed char
#define cell int
byte *M;
sbyte *S;
cell Red;
cell Data;
void writes(char *s... | 2.53125 | 3 |
2024-11-18T18:42:08.905329+00:00 | 2021-06-15T15:39:11 | 1599b6d36840317b331bce255371e927383406d7 | {
"blob_id": "1599b6d36840317b331bce255371e927383406d7",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-15T15:39:11",
"content_id": "2b0cc6b58cbed424db92c3c2e7c71e4f587a68bd",
"detected_licenses": [
"Apache-2.0",
"MIT"
],
"directory_id": "f0f6c89067f89aea40fe939ba7ab50adf9524be9",
... | stackv2 | #include "model/database_common.h"
#include "common/sqlite_manager.h"
#include "utils/io_utils.h"
#define TABLE_COUNT 1
static char *tables[TABLE_COUNT] = {
"create table if not exists task_info("
" id integer primary key autoincrement,"
" url varchar(1024),"
" filename varchar(1024),"
" di... | 2.125 | 2 |
2024-11-18T18:42:09.169030+00:00 | 2018-02-01T15:31:54 | 1ee4e2a1bf7ba635c45660f1bffaa7575b4fdb35 | {
"blob_id": "1ee4e2a1bf7ba635c45660f1bffaa7575b4fdb35",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-01T15:31:54",
"content_id": "41ed2712b6f26f743e9bd57d66135705a631c9ca",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7d447efaa28342cecf43fc5e432ac828443639fc",
"extensio... | stackv2 | /*
ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ap... | 2.3125 | 2 |
2024-11-18T18:42:09.252669+00:00 | 2021-01-01T12:36:51 | b7af217e66577c862cf813af727d91b523070c09 | {
"blob_id": "b7af217e66577c862cf813af727d91b523070c09",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-01T12:36:51",
"content_id": "ed5c4ca6531432a14d9a75f52584815896582dd8",
"detected_licenses": [
"MIT"
],
"directory_id": "1c95245073d8f46d65108ea3eed0eeb410c4da4c",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "coordinate.h"
int main(void) {
struct coordinate coord;
coord.x = 5;
coord.y = 3;
print_coordinate(&coord);
return 0;
}
| 2.125 | 2 |
2024-11-18T18:42:09.334948+00:00 | 2023-07-07T22:09:48 | ae0044ebc2ac652ff20f24c400fbf76c41abc92d | {
"blob_id": "ae0044ebc2ac652ff20f24c400fbf76c41abc92d",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-07T22:09:48",
"content_id": "ce37b0ffb7d33e96d25acaa77ee5b400e600e56e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "8200602192c30c01760407dbea45b106c42bf155",
"extens... | stackv2 | #include "dht.h"
#include "dht_utils.h"
#include "raft_client.h"
#include "woofc-host.h"
#include "woofc.h"
#include <openssl/sha.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int main(int argc, char** argv) {
WooFInit();
DHT_NODE_INFO node = {0};
if (get_latest_node_i... | 2.28125 | 2 |
2024-11-18T18:42:09.402067+00:00 | 2023-08-30T19:55:29 | 054254636665f1f760df5cb719eec4ec3cc31cf2 | {
"blob_id": "054254636665f1f760df5cb719eec4ec3cc31cf2",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T19:55:29",
"content_id": "0e4159b47d8ee97cd715a6838c023bf92563b510",
"detected_licenses": [
"MIT"
],
"directory_id": "83e7dc1281874779c46dfadcc15b2bb66d8e599c",
"extension": "c"... | stackv2 | #include "../../lv_examples.h"
#if LV_USE_METER && LV_BUILD_EXAMPLES
static lv_obj_t * meter;
static void set_value(void * indic, int32_t v)
{
lv_meter_set_indicator_end_value(meter, indic, v);
}
/**
* A meter with multiple arcs
*/
void lv_example_meter_2(void)
{
meter = lv_meter_create(lv_scr_act());
... | 2.734375 | 3 |
2024-11-18T18:42:09.697323+00:00 | 2021-08-08T16:15:44 | 40cab50c4a3d536d7f0e420689a90e60bb585cb3 | {
"blob_id": "40cab50c4a3d536d7f0e420689a90e60bb585cb3",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-08T16:15:44",
"content_id": "56b8760d5a252bf51ff12377e53402e328030260",
"detected_licenses": [
"MIT"
],
"directory_id": "0ef785344e4acd71d946f279c80a90ab029a6f7b",
"extension": "h",
... | stackv2 | #pragma once
#include <stdlib.h>
#include <atomics.h>
#include <utils.h>
#include <worker.h>
struct alignas(CACHELINE_SIZE) malloc_info_t {
volatile char* head;
volatile char* tail;
uint64_t max_alloc_size;
};
// Should only be called on one worker
// INLINE void init_malloc(team_t* team, void* malloc_storage... | 2.453125 | 2 |
2024-11-18T18:42:09.785017+00:00 | 2023-05-09T20:08:24 | 2d643108b0c2ff81cbea633ff2df50ac45128b6d | {
"blob_id": "2d643108b0c2ff81cbea633ff2df50ac45128b6d",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-09T20:08:24",
"content_id": "20cb8d8b398f59f25b62a20cab397ed016e4857d",
"detected_licenses": [
"MIT"
],
"directory_id": "b5d28de0f81d800758bc8234f265e5290bc303df",
"extension": "c"... | stackv2 | #include "ioExpanderList.h"
#include <stdlib.h>
#include <stdbool.h>
#include "ioExpander.h"
#include "../../common/error/error.h"
#include "../../common/io/outputStream.h"
#include "../../common/io/printWriter.h"
#include "../../common/log/logHandler.h"
#include "../../common/log/logger.h"
#include "../../common/... | 2.296875 | 2 |
2024-11-18T18:42:10.080697+00:00 | 2019-04-18T08:39:33 | 60e054f15f2b273f12494cf95781be12564fd891 | {
"blob_id": "60e054f15f2b273f12494cf95781be12564fd891",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-18T08:39:33",
"content_id": "1abe95f4037d0e5409131021d0e7404400757390",
"detected_licenses": [
"MIT"
],
"directory_id": "5f64a1ff4f8a76b5d9da44954737689f0d055041",
"extension": "c"... | stackv2 | #include "BaseSeven.h"
#include <string.h>
// 编码数据转换结构
union BSVar
{
uint16_t bit16;
struct TwoChar
{
uint8_t right, left;
}bit08;
};
// 同步修改索引进行块编码。(由宏改)
static void BsEncode(uint8_t *Buf[], uint8_t *Src[])
{
union BSVar var = { 0 };
for (uint8_t shift = 1; 8 != shift; (*Buf)++, (*Src)++, shift++)
{
var.b... | 2.71875 | 3 |
2024-11-18T18:42:11.289500+00:00 | 2020-09-05T23:29:36 | 64eca1c38b0d871c6b050fa44b7dd5892fe79ec6 | {
"blob_id": "64eca1c38b0d871c6b050fa44b7dd5892fe79ec6",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-05T23:29:36",
"content_id": "03b70c663e6a3a78d6c91701a9f8851e1b82b6a2",
"detected_licenses": [
"MIT"
],
"directory_id": "b423a710f4d4717807dd831892090f420ece99a4",
"extension": "c"... | stackv2 | #include "smack.h"
// @expect verified
// @flag --llvm-assumes=use
int main(void) {
unsigned int y = (2 * (unsigned int)__VERIFIER_nondet_unsigned_short()) + 1;
// This assumption is used for verification, even though the assumption
// is false, the assertion will pass.
__builtin_assume((y & 1) == 0);
asser... | 2.015625 | 2 |
2024-11-18T18:42:12.165507+00:00 | 2021-03-05T20:21:39 | e5465fb84dfd56354b976633be15a19a79531298 | {
"blob_id": "e5465fb84dfd56354b976633be15a19a79531298",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-05T20:21:39",
"content_id": "77a6b8008afd61a7b2c7a1f24c1e7130101707c2",
"detected_licenses": [
"MIT"
],
"directory_id": "3a0f9f87d807e9aa33b87568b0829edd92da4ef3",
"extension": "c"... | stackv2 | /*
e_mesh_bandwidth_near.c
Copyright (C) 2012 Adapteva, Inc.
Contributed by Wenlin Song <wsong@wpi.edu>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your o... | 2.390625 | 2 |
2024-11-18T18:42:12.233265+00:00 | 2023-07-12T07:38:29 | 95deb3a6b65bf3fc4adcfd455e1c5ecf285a28d1 | {
"blob_id": "95deb3a6b65bf3fc4adcfd455e1c5ecf285a28d1",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-12T07:38:29",
"content_id": "7c9abae084d33109908c096cd9b7bb658af5d882",
"detected_licenses": [
"MIT"
],
"directory_id": "52c8ed39b32ccc7c0673278c1adea3638797c9ff",
"extension": "c"... | stackv2 | /*
* driver/block/blk-ramdisk.c
*
* Copyright(c) 2007-2023 Jianjun Jiang <8192542@qq.com>
* Official site: http://xboot.org
* Mobile phone: +86-18665388956
* QQ: 8192542
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "... | 2.09375 | 2 |
2024-11-18T18:42:12.773785+00:00 | 2019-10-02T21:57:46 | 6f5790f263f04be66ecb2b7a9203b57d2f5607a2 | {
"blob_id": "6f5790f263f04be66ecb2b7a9203b57d2f5607a2",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-02T21:57:46",
"content_id": "585ac68186cccc48bbed194799d4b4a085718084",
"detected_licenses": [
"Unlicense"
],
"directory_id": "cf66ae359417732c172597177769261b63cb17cc",
"extension... | stackv2 | #include <stdio.h>
int sum_of_four (int a, int b, int c, int d);
int max_of_four (int a, int b, int c, int d);
/*
* HackerRank C Introduction 4
* https://www.hackerrank.com/challenges/functions-in-c/problem
* Author: Hasol
*/
int main() {
int a, b, c, d;
scanf ("%d %d %d %d", &a, &b, &c, &d);
int ans ... | 3.453125 | 3 |
2024-11-18T18:42:12.924379+00:00 | 2020-07-04T20:54:10 | 0323566e5c0de7b3332278271600b8f3aec29197 | {
"blob_id": "0323566e5c0de7b3332278271600b8f3aec29197",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-04T20:54:10",
"content_id": "a2f932315ea707df91ff66f9c76c00ee97986f6c",
"detected_licenses": [
"MIT"
],
"directory_id": "fbd75a3173ef6b40a86ddf2cf2d8e0f079010315",
"extension": "c"... | stackv2 | #include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "threeAddressCode.h"
#define GET_T (tCount++)
#define GET_LABEL (labelCount++)
#define REGISTER_COUNT 32
#define ARG_REGISTER_START 4
#define STACK_POINTER 29
#define FRAME_POINTER 30
#define RETURN_ADDRESS 31
#define RETURN_REGISTER 2
#define GENERIC_... | 2.265625 | 2 |
2024-11-18T18:42:13.008738+00:00 | 2023-02-16T11:27:40 | 411355b9f198aee1628d4777d16cdd11971fd3c1 | {
"blob_id": "411355b9f198aee1628d4777d16cdd11971fd3c1",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "fdb4d05bbe7032e65bfe79744c223e203677838a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /* Copyright (c) 2022 Intel Corporation
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_INTEL_ADSP_IPC_H
#define ZEPHYR_INCLUDE_INTEL_ADSP_IPC_H
#include <intel_adsp_ipc_devtree.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
struct intel_adsp_ipc_config {
volatile struct intel_adsp_ipc *r... | 2.28125 | 2 |
2024-11-18T18:42:13.234079+00:00 | 2023-07-28T09:51:36 | 1d86a92c9e1cd2214e037ea7d027d5bc5364dd03 | {
"blob_id": "1d86a92c9e1cd2214e037ea7d027d5bc5364dd03",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-28T09:51:36",
"content_id": "a3a6470897de1a5c7fc93dfa4a4d4e9acac6f6f5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "de6cbe04a0e00fbe83ea20a7cab8f85ad36831fe",
"extensio... | stackv2 | /*
* Maxim Tishkov 2016
* This file is distributed under the same license as OpenSSL
*/
#ifndef GOST_GRASSHOPPER_CIPHER_H
#define GOST_GRASSHOPPER_CIPHER_H
#define SN_kuznyechik_mgm "kuznyechik-mgm"
#if defined(__cplusplus)
extern "C" {
#endif
#include "gost_grasshopper_defines.h"
#include "gost_lcl.h"
#in... | 2 | 2 |
2024-11-18T18:42:14.168070+00:00 | 2018-05-07T12:46:49 | 7fa2eff973ce9380194a0005a1ce6046fd6f1ac3 | {
"blob_id": "7fa2eff973ce9380194a0005a1ce6046fd6f1ac3",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-07T12:46:49",
"content_id": "1c14c4c892ca9a371bdcf7a1e48c256a98c60b0b",
"detected_licenses": [
"MIT"
],
"directory_id": "5282e06b246dcc6e9dbf67a777592bb16beb8bf4",
"extension": "c"... | stackv2 | #include <stdio.h>
int main(void)
{
const float CROP = 1E15;
const unsigned short SQUARES = 64;
double current;
double total;
short count = 1;
printf("square grains total ");
printf("fraction of ");
printf(" added grain ");
printf("US total\n");
total = current = 1.0;
print... | 3 | 3 |
2024-11-18T18:42:14.357906+00:00 | 2022-06-21T17:03:13 | 7eae16609948bc78ea502acca1ef3401432d940f | {
"blob_id": "7eae16609948bc78ea502acca1ef3401432d940f",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-28T19:49:43",
"content_id": "eaa14d96fa9eb730865fa41ad56a270f67007a43",
"detected_licenses": [],
"directory_id": "00b3f5c7b5763c7b7dfec3d6beb35d534cb1f4f0",
"extension": "c",
"filename... | stackv2 | /**
* @file pomp_msg.c
*
* @brief Handle formating/decoding of messages
*
* @author yves-marie.morgan@parrot.com
*
* Copyright (c) 2014 Parrot S.A.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 2.21875 | 2 |
2024-11-18T18:42:14.440145+00:00 | 2018-05-11T02:59:46 | df43a6ee623db44ac403ec16c6d7a9563542f1f4 | {
"blob_id": "df43a6ee623db44ac403ec16c6d7a9563542f1f4",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-11T02:59:46",
"content_id": "e1e893e0348a1665446407ec294d87401a91a61d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e2312fcfbc2bdd1cb3895e0773d226e8c78aa585",
"extensio... | stackv2 | // 全世界的ip库,都是分段的,比如有如下存储于文件的ip数据:
// 10.111.1.3 10.111.5.8 北京市海淀区 表示从10.111.1.3开始到10.111.5.8结束的ip,其对应的地域信息都是北京市海淀区。
// 这样的数据大约有几百万条。
// 设计相应的数据结构,以及数据存储方式。
// 编写根据ip查找对应地域信息的函数。
// 即:String findIpLocation(String ip)
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <memory.h>
#define... | 2.6875 | 3 |
2024-11-18T18:42:14.581245+00:00 | 2021-06-10T14:06:32 | d847ff80bc9143f6e128cf9b5da54fc79e155e98 | {
"blob_id": "d847ff80bc9143f6e128cf9b5da54fc79e155e98",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-10T14:06:32",
"content_id": "2106e5ccaf2e7421e68b228604dbd49ef4299b6c",
"detected_licenses": [
"MIT"
],
"directory_id": "6fef84757834f436f13c81895e6a7ae8edadfca1",
"extension": "c",
... | stackv2 | /* sleeping.c */
#include "garfield.h"
#include <stdio.h>
mood sleep (int hours) {
printf ("Garfield is sleeping for %d hours.\n", hours);
return HUNGRY;
}
| 2.109375 | 2 |
2024-11-18T18:42:14.969540+00:00 | 2015-10-16T15:58:44 | 5f8642038f65a7b5dcda129c7eea7e6547021dd6 | {
"blob_id": "5f8642038f65a7b5dcda129c7eea7e6547021dd6",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-16T15:58:44",
"content_id": "d25b132892e7f62d63fcc3930be5115c8fc8d418",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "f6525bae25696ec97f3653f1abbb6e35ee76ece2",
"extens... | stackv2 | /*-
* Copyright (c) 2013 Jan Breuer
* Richard.hmm
* Copyright (c) 2012 Jan Breuer
*
* 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 cod... | 2.1875 | 2 |
2024-11-18T18:42:15.162101+00:00 | 2019-10-04T03:56:27 | b28148767587ba9f031ef6a0721228d52e7e569f | {
"blob_id": "b28148767587ba9f031ef6a0721228d52e7e569f",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-04T03:56:27",
"content_id": "466835f745a4e2439bf42a6dea05201f5551a57b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7958ba70a603c0af7ae933f50416cb002c9de51b",
"extensio... | stackv2 | /*
* File : panel.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date ... | 2.375 | 2 |
2024-11-18T18:42:15.561999+00:00 | 2011-05-29T06:31:29 | 3e088fa6f8bf9f6271199548ec7117ecc7955259 | {
"blob_id": "3e088fa6f8bf9f6271199548ec7117ecc7955259",
"branch_name": "refs/heads/master",
"committer_date": "2011-05-29T06:31:29",
"content_id": "36290ff402fa7525233cef91273b27e99b94ffb8",
"detected_licenses": [
"ISC"
],
"directory_id": "8e2f9d145432977dc351db9b4fd90f0ce5fb3609",
"extension": "h"... | stackv2 | #ifndef __LOCKING_H__
#define __LOCKING_H__
#include <Kernel.h>
#include <Init.h>
#include <Threading.h>
typedef enum
{
Locking_Lock_terminal,
Locking_Lock_memory,
Locking_Lock__size /* For getting the number of locks; not a real lock */
} Locking_Lock;
static Bool Locking_locks[Locking_Lock__size] = {fa... | 2.578125 | 3 |
2024-11-18T18:42:16.055084+00:00 | 2016-03-02T22:22:09 | 6c4a9ed2091f659eca2e0bc009ce24e2b9029728 | {
"blob_id": "6c4a9ed2091f659eca2e0bc009ce24e2b9029728",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-02T22:22:09",
"content_id": "fe13313d69ba63b8ea08b15e3639b73a29a234ea",
"detected_licenses": [
"MIT"
],
"directory_id": "d9d8f81fef62964dd45b909e40bee9c3e9d2bf79",
"extension": "c"... | stackv2 | #include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "console.h"
#include "serial.h"
S32 _baudRate(const U32 baud);
S32 _raspbootInitTerminal(Raspboot_Serial* serial, Raspboot_Args* args);
S32 raspbootSerialInit(Raspboot_Serial* serial, Raspboo... | 2.578125 | 3 |
2024-11-18T18:42:16.317420+00:00 | 2021-04-17T03:00:35 | aa5285292a90a30189fbcdf76c578291b83862b7 | {
"blob_id": "aa5285292a90a30189fbcdf76c578291b83862b7",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-17T03:00:35",
"content_id": "95ccc35d5072ef1928950c6a8056bb3a3abee424",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "7e05636b884237d257b5cddcb8eeb457... | stackv2 | /*
* A simple command-line exerciser for the library.
* Not really useful for anything but debugging.
* SPDX-License-Identifier: BSD-2-clause
*/
#include "../include/gpsd_config.h" /* must be before all includes */
#include <ctype.h>
#include <errno.h>
#include <getopt.h>
#include <signal.h>
#include <stdarg.h>
#... | 2.3125 | 2 |
2024-11-18T18:42:16.879202+00:00 | 2020-05-11T07:57:26 | 38df2298b8fdc725f233c98a8d1f22c4cd09d12b | {
"blob_id": "38df2298b8fdc725f233c98a8d1f22c4cd09d12b",
"branch_name": "refs/heads/main",
"committer_date": "2020-05-11T07:57:26",
"content_id": "d174cb549b8ae7ac1b64c0a27afc6d466c01befb",
"detected_licenses": [
"MIT"
],
"directory_id": "5e843ab8adf9038aeadaed1b2bc127a1e4021173",
"extension": "c",
... | stackv2 | #include "queue.h"
#include <k/syscalls.h>
#include <stdlib.h>
// To avoid to free empty items
static void tryFree(void *data)
{
if (data == NULL)
return;
free(data);
}
Queue *Queue_new(size_t capacity)
{
Queue *q = malloc(sizeof(Queue));
q->capacity = capacity;
q->data = malloc(capa... | 3.171875 | 3 |
2024-11-18T18:42:17.757703+00:00 | 2018-07-18T08:24:38 | a22309d65b4a016dd2602ed57488a830d372e571 | {
"blob_id": "a22309d65b4a016dd2602ed57488a830d372e571",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-18T08:24:38",
"content_id": "802aeb84c04ee92c9e999703d3e695ba86ac962f",
"detected_licenses": [
"MIT"
],
"directory_id": "7bc58acec9e1d92a8f207b9d81390345a967f2a0",
"extension": "c"... | stackv2 | /*
support for threaded main loop
my barrier vision - use threads only if needed and blocking like
*/
#include "VX_lib.h"
static void field_destroy( VX_field * self ){
for( int i = 0 ; i < self->peasants_count ; i++ ){
self->workers[i].destroy_p = 1;
if( i > 0 ){
self->workers[i].p... | 2.890625 | 3 |
2024-11-18T18:42:17.839271+00:00 | 2017-11-14T11:44:03 | 4e87a4b9b033577191ffd9b360dea2e409db464a | {
"blob_id": "4e87a4b9b033577191ffd9b360dea2e409db464a",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-14T11:44:03",
"content_id": "9a020805f9ea0455501fbe1ebaae4ed8a9db5a1b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5459323235ad66754085b5c286b4d9614f706d1e",
"extensio... | stackv2 | /*
* Compute pi by approximating the area under the curve f(x) = 4 / (1 + x*x)
* between 0 and 1.
*
* Parallel version using OpenMP
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <omp.h> /* OpenMP */
double getusec_() {
struct timeval time;
gettimeofday(&time, NULL... | 3.375 | 3 |
2024-11-18T18:42:18.009541+00:00 | 2020-08-02T02:59:26 | 1cb40cbed7fcb0da547d4d82744e83c7036f14e4 | {
"blob_id": "1cb40cbed7fcb0da547d4d82744e83c7036f14e4",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-02T02:59:26",
"content_id": "cd516d645ceaf1113ca39045f5dc816247a6830f",
"detected_licenses": [
"Unlicense"
],
"directory_id": "5160e2cbfa510d76113af771a541decc5807adf9",
"extension... | stackv2 | #include "TypeMeter.h"
#include "TypeE2p.h"
#include "TypeRAM.h"
#include "ht6xxx_lib.h"
#include "TypeFRAM.h"
#include "Data.h"
#include "General.h"
#include "Mem.h"
#include "Port.h"
#include "Display.h"
#include "Initial.h"
#include "Time.h"
#include "Power.h"
#include "ECProcess.h"
#include "Measure.h"
#include "CO... | 2.0625 | 2 |
2024-11-18T18:42:18.345791+00:00 | 2023-08-30T21:39:44 | b889d22c6e08dc6b3180d489cf53f372d9aa0b96 | {
"blob_id": "b889d22c6e08dc6b3180d489cf53f372d9aa0b96",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-30T21:39:44",
"content_id": "80d366f917af9ed6f2ad24999cd586042ca5efef",
"detected_licenses": [
"MIT"
],
"directory_id": "78dc9f153549b281be709227bc9897931b06260d",
"extension": "h",
... | stackv2 | /*++
Copyright (C) Microsoft Corporation, 1999
Module Name:
mschapp - MS-CHAP Password Change API
Abstract:
These APIs correspond to the MS-CHAP RFC -2433 sections 9 and 10. In order
to develop an MS-CHAP RAS server that works with an NT domain, these APIs
are required.
Only wide (Unicode) ver... | 2.09375 | 2 |
2024-11-18T18:42:18.454168+00:00 | 2016-01-31T08:57:11 | 99a8bf2a3d24401765b5e11e647623e67ff08d85 | {
"blob_id": "99a8bf2a3d24401765b5e11e647623e67ff08d85",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-31T08:57:11",
"content_id": "956e8cfab01d3f4996b58416601bc2f9b2c715cd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d97466662adf6d658d01b0e362ed3b8640acca53",
"extensio... | stackv2 | #include "SPCString.h"
char *SPC_LTrim(char *line) {
char *ptr = line;
while(*ptr == ' ' || *ptr == '\t') {
ptr++;
}
strcpy(line, ptr);
return line;
}
char *SPC_RTrim(char *line) {
char CRLF[CRLF_LEN] = {0};
int len = strlen(line);
char *end;
if(len <= 1) {
retu... | 2.953125 | 3 |
2024-11-18T18:42:18.859484+00:00 | 2021-03-19T16:05:28 | 3da2016ee964ddae2e631670d800be85432fd970 | {
"blob_id": "3da2016ee964ddae2e631670d800be85432fd970",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-19T16:05:28",
"content_id": "30b77fae2cd339ed47faedc7627960a3385932a0",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "b16cb9345a7c9450c38b0d4fdf22237c... | stackv2 | /*
* test_TASession.c
* TA
*
* Created by Takashi Hashizume on 03/04/12.
* Copyright 2012 Takashi Hashizume. All rights reserved.
*/
#include <TA/TASession.h>
#include "../munit.h"
#include <stdio.h> /* snprintf */
#include <stdlib.h> /* malloc exit free */
#include <string.h> /* strcpy */
#include <time.h> /... | 2.21875 | 2 |
2024-11-18T18:42:19.293531+00:00 | 2018-05-25T14:46:20 | 551f5aff92259e31ce6845af20dc5bcaff631dba | {
"blob_id": "551f5aff92259e31ce6845af20dc5bcaff631dba",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-25T14:46:20",
"content_id": "6cc0b672793d4d0a30b10fbafe206c36acb852f7",
"detected_licenses": [
"MIT"
],
"directory_id": "35e328eecc78aad18baa17611fa08d61cc66633d",
"extension": "h"... | stackv2 | #ifndef AGENTS_COROUTINE_H_
#define AGENTS_COROUTINE_H_
#define PULL_BEGIN(state) \
static agent_t agent = { \
.current_state = state, \
.current_error = PULL_SUCCESS, \
.required_action = CONTINUE, \
}; \
switch(agent.current_state) { case 0: \
#define PULL_CONTINUE(state) \
... | 2.078125 | 2 |
2024-11-18T18:42:19.462401+00:00 | 2023-08-27T19:14:02 | ead80de3a262217355a584a555730bdf7869b1c7 | {
"blob_id": "ead80de3a262217355a584a555730bdf7869b1c7",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-27T19:14:02",
"content_id": "10f62f6ec31ab840b3d3a66f0dd6a6fa2eff7755",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7c857119fe1505b1d80d6e62969661c06dc1a2f4",
"extens... | stackv2 | /** @file
Support functions declaration for UEFI HTTP boot driver.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __EFI_HTTP_BOOT_SUPPORT_H__
#define __EFI_HTTP_BOOT_SUPPORT_H__
/**
Get the Nic handle using any child handle in the ... | 2.265625 | 2 |
2024-11-18T18:42:19.710777+00:00 | 2016-04-13T21:28:35 | 184ce7c5e1f0af07035b1eadabe0ea13c750349c | {
"blob_id": "184ce7c5e1f0af07035b1eadabe0ea13c750349c",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-13T21:28:35",
"content_id": "9bf4abc7659071101cd42b1bfba9869a40da1b67",
"detected_licenses": [
"MIT"
],
"directory_id": "2914886ad2b07120587842ca5fd0d1c0acee0192",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2016 Richard Burnison
*
* 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, pu... | 2.125 | 2 |
2024-11-18T18:42:19.862897+00:00 | 2021-01-14T12:19:25 | a9e7c8c06f664ed4b7f9cf959029b16c233bcd57 | {
"blob_id": "a9e7c8c06f664ed4b7f9cf959029b16c233bcd57",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-14T12:19:25",
"content_id": "5c68a92a505109c456e1ab592ddbb74a103c5527",
"detected_licenses": [
"MIT"
],
"directory_id": "f631ee899d2f1ec6efceee62bd4218807ab6da16",
"extension": "c"... | stackv2 | #include <unistd.h>
#include <stdlib.h>
#include <string.h>
ssize_t read_data(int fd, char **recv_data, int stdoutw)
{
const size_t block_size = 1024;
size_t current_size = block_size;
*recv_data = (char *)malloc((current_size + 1) * sizeof(char));
memset(*recv_data, 0, current_size + 1);
char *r... | 2.609375 | 3 |
2024-11-18T18:42:19.972387+00:00 | 2017-01-01T22:39:28 | bea1d9958092b1d7846661d608d6f961d605177a | {
"blob_id": "bea1d9958092b1d7846661d608d6f961d605177a",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-01T22:39:28",
"content_id": "75a297a63c6aaa887049e3975d649ba3c3ed235c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "1b2e24713b63620709e5a181eb93edeed526291e",
"extens... | stackv2 | #define _XOPEN_SOURCE 600
#include <atf-c.h>
#include <errno.h>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include "config.h"
#include "subr_atf.h"
#include "subr_errhandling.h"
#include "subr_fpcmp.h"
#include "subr_random.h"
static const struct
tentry {
double x; /* Input *... | 2.4375 | 2 |
2024-11-18T18:42:20.136978+00:00 | 2021-04-30T17:16:50 | ead282686b14849584f1b5aa5a63074dff3a44d1 | {
"blob_id": "ead282686b14849584f1b5aa5a63074dff3a44d1",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-30T17:16:50",
"content_id": "e2989a20a0a6afc422ce8678c3c67dff63196381",
"detected_licenses": [
"MIT"
],
"directory_id": "2a22ac1d2354e9e33020470c21d82b9f0705cdf9",
"extension": "c"... | stackv2 | // %%cpp example2.c
// %run gcc -m64 -masm=intel -nostdlib -O3 example2.c -o example2.exe
// %run strace ./example2.exe ; echo "Exited with code=$?"
int my_exit(int code);
__asm__(R"(
my_exit:
mov rax, 231 /* номер системного вызова exit_group */
syscall
/* не нужно возвращаться из функции, на этом пр... | 2.03125 | 2 |
2024-11-18T18:42:20.195765+00:00 | 2023-05-31T23:22:47 | cbb8f39a37c09070f17dac61d389e71d2de2f920 | {
"blob_id": "cbb8f39a37c09070f17dac61d389e71d2de2f920",
"branch_name": "refs/heads/main",
"committer_date": "2023-05-31T23:22:47",
"content_id": "3dd2d2b61279b7bc6b62d26db3e1fd99adb3eb6c",
"detected_licenses": [
"MIT"
],
"directory_id": "4a727ce379e9d21826895699d09164cdac4836d5",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include "CuTest.h"
#include "forking_forth.h"
#include "forth/forth_embed.h"
void test0_oneforth(CuTest *tc) {
initialize_forths();
int pid = create_forth(".\" hello\" ");
struct run_output result = run_forth_until_event(pid);
CuAssertIntEquals(tc, FCONTINUE_INPUT_DONE, result.resul... | 2.578125 | 3 |
2024-11-18T18:42:20.249517+00:00 | 2017-08-29T04:26:17 | 03555415b56f0731390214e2270d3599fc7e2dd0 | {
"blob_id": "03555415b56f0731390214e2270d3599fc7e2dd0",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-29T04:26:17",
"content_id": "107a5c3a1cf1e87c76d92a85be9d0468265091b3",
"detected_licenses": [
"MIT"
],
"directory_id": "ce6bb170a4b503ed6dc0d2a5121210c39fe31245",
"extension": "id... | stackv2 | #include <idc.idc>
static print_all_method(filename) {
auto file = fopen(filename, "w");
if (file != 0) {
auto addr = 0;
for (addr = NextFunction(addr); addr != BADADDR; addr = NextFunction(addr)) {
auto name = GetFunctionName(addr);
auto end = GetFunctionAttr(addr, FUNCATTR_END);
M... | 2.09375 | 2 |
2024-11-18T18:42:20.442760+00:00 | 2016-09-30T14:47:50 | 71f11db077e82999f78cb6777e0b48d8e39b1074 | {
"blob_id": "71f11db077e82999f78cb6777e0b48d8e39b1074",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-30T14:47:50",
"content_id": "3bfdf0750c8a4a0eb7b440768ae03405e333aabd",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9dede2e742404cf39eb1a51e4a268b18b3c9c795",
"extens... | stackv2 | /*
Copyright (c) 2016, Al Poole <netstar@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:
* Redistributions of source code must retain the above copyright
notice, this li... | 2.03125 | 2 |
2024-11-18T18:42:20.558524+00:00 | 2019-04-14T07:17:15 | 36beb6ed88ae589da3b257ca521bb66960d15be2 | {
"blob_id": "36beb6ed88ae589da3b257ca521bb66960d15be2",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-14T07:17:15",
"content_id": "4615fe4e75920b9a7244433c02a61d53a6e2a09a",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "ff0396e1b93d2d32d036398dddce6120... | stackv2 | #ifndef lint
static char rcsid[] = "$Header: wintext.c,v 1.1 84/08/25 17:11:36 jcoker Exp $";
#endif
#include <stdio.h>
#include "../h/sunscreen.h"
/*
* Print the character at the given position on the pixrect.
*/
mvaddch(pr, x, y, c)
struct pixrect *pr;
{
char buf[2];
buf[0] = c;
buf[1] = '\0';
return mv... | 2.375 | 2 |
2024-11-18T18:42:21.039516+00:00 | 2017-12-29T02:38:48 | d0de576f257307ff2edcccda0d166aa0b532e3cd | {
"blob_id": "d0de576f257307ff2edcccda0d166aa0b532e3cd",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-29T02:38:48",
"content_id": "e3a710f4cb4b2a728244a71cf9b76b4977546002",
"detected_licenses": [
"MIT"
],
"directory_id": "b019a1dc9d93bbd551279e2d07c1aecf1e5cc7c8",
"extension": "h"... | stackv2 | #ifndef _XSOCKET_H_LOADED
#define _XSOCKET_H_LOADED
#ifdef _WIN32
/* See http://stackoverflow.com/questions/12765743/getaddrinfo-on-win32 */
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501 /* Windows XP. */
#endif
#include <Ws2tcpip.h>
#include <winsock2.h>
#else
/* Assume that any non-Windows platform uses POSIX-st... | 2.015625 | 2 |
2024-11-18T18:42:21.205776+00:00 | 2017-12-23T14:30:50 | 1515039da04cef6c91a1bf6e63d423cdd7fc4de1 | {
"blob_id": "1515039da04cef6c91a1bf6e63d423cdd7fc4de1",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-23T14:30:50",
"content_id": "232793c0fd38d738d980b5afd06e10ee9dbab9ee",
"detected_licenses": [
"MIT"
],
"directory_id": "32c1cb02fef24306e486f26327ab0c48c71477cd",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
void waiting();
void stop();
int wait_mark;
void waiting() {
while(wait_mark != 0);
}
void stop(int sig_no) {
if(sig_no == SIGINT) wait_mark = 0;
if(sig_no == SI... | 3.109375 | 3 |
2024-11-18T18:42:21.469721+00:00 | 2015-09-28T17:23:16 | 69688183392e6d53bcae9b5c559db6f7493acae4 | {
"blob_id": "69688183392e6d53bcae9b5c559db6f7493acae4",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-28T17:23:16",
"content_id": "1c3223c20fccfad3ee2a15ec7d7976a06cc00820",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "99ec5c4436d6c20129807c416bbc9e234c2be937",
"extensio... | stackv2 | #include "def.h"
#include "STM8S103F3P.h"
#include "timer.h"
void delayus(uint8 dus)
{
uint8 i;
uint8 m;
for(i=0;i<dus;i++)
{
;
}
}
void TIM4_Init(void)
{
CLK_PCKENR1 |= 0x10;//timer4 clock enable
TIM4_CR1=0x84; // 1 000 0 1 00
TIM4_IER=0x41; //触发中断使能
TIM4_SR=0x0... | 2.28125 | 2 |
2024-11-18T18:42:21.708670+00:00 | 2022-04-17T18:47:46 | 29a6561d3d85081d27ce6fc56d49120186cc6541 | {
"blob_id": "29a6561d3d85081d27ce6fc56d49120186cc6541",
"branch_name": "refs/heads/master",
"committer_date": "2022-04-17T18:47:46",
"content_id": "120f8844bda2908d9693bdf6a0e4b768000147e3",
"detected_licenses": [
"MIT"
],
"directory_id": "130a666c9e3e3a75a133a875d2e4a61c9ac51117",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "../include/test_peer.h"
int main(void)
{
example_peer_t * peer = example_peer_new ();
if (!peer)
return -1; // Interrupted
zpoller_t *poller = zpoller_new (stdin, example_peer_actor(peer), NULL);
while (!zsys_interrupted) {
void *which ... | 2.25 | 2 |
2024-11-18T18:42:21.994848+00:00 | 2013-05-16T19:49:17 | 0d34abedbe505fff513ff2278612d25f4c804b27 | {
"blob_id": "0d34abedbe505fff513ff2278612d25f4c804b27",
"branch_name": "refs/heads/master",
"committer_date": "2013-05-16T19:49:17",
"content_id": "e66f0dc761ca671cf8338d39c74395444eac8d1d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8f1b94dabca3b45ddf3b214db24dd4aa3481239a",
"extensio... | stackv2 | /**
* klib/priv/tbuffer.h
* Copyright (C) 2006-2012 Opersys inc., All rights reserved.
*
* Dynamic typed buffer.
*
* @author François-Denis Gonthier
* Reviewed by Laurent Birtz on 22 january 2007.
*/
#ifndef _KLIB_TBUFFER_H
#define _KLIB_TBUFFER_H
typedef struct __tbuffer tbuffer;
struct __tbuffer {
int ... | 2.359375 | 2 |
2024-11-18T18:42:22.522511+00:00 | 2023-07-10T16:06:35 | 12c75789d8597b76514a14a4ad24ea1ddfec73e2 | {
"blob_id": "12c75789d8597b76514a14a4ad24ea1ddfec73e2",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-10T16:06:35",
"content_id": "6b7d531d2a8cbc26337442a55a4ebb01131e6856",
"detected_licenses": [
"ISC",
"MIT"
],
"directory_id": "d2e0fb3fdad7fc2cb70894591d358f40d8db13d2",
"exte... | stackv2 | /* Copyright (c) 2020, 2021 Dennis Wölfing
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... | 2.34375 | 2 |
2024-11-18T18:42:22.770538+00:00 | 2023-03-29T20:16:12 | 008f5b9b169520a58be231ba51b8952da5e77d5f | {
"blob_id": "008f5b9b169520a58be231ba51b8952da5e77d5f",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-29T20:16:12",
"content_id": "0586ff91be33e76a3b208f53993e27202e8b1562",
"detected_licenses": [
"Unlicense"
],
"directory_id": "4927960c9f30ef7681b301518e51f47209c48714",
"extension... | stackv2 | #include <stdio.h>
#include <stdlib.h>
// node struct
typedef struct node_ptr
{
int number;
struct node_ptr *next;
}
node;
// prototypes
void PrintLinkedList(node *head);
/* Manual linking lists using pointers (no HEAP) */
int main()
{
node n1, n2, n3;
node *head;
n1.number = 99;
n2.numbe... | 3.484375 | 3 |
2024-11-18T19:39:16.230997+00:00 | 2020-04-15T20:58:21 | 74db6a679f507760bae5c491fef7a3f4c8637093 | {
"blob_id": "74db6a679f507760bae5c491fef7a3f4c8637093",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-15T20:58:21",
"content_id": "6411f0d0f1684c11fc72120727e453f74d7a372f",
"detected_licenses": [
"MIT"
],
"directory_id": "ebc700cb11b49d5319544d3f7bbc8882250a8e5a",
"extension": "c"... | stackv2 | /**************************************************************************
** *
** FILE : main.c *
** *
** DESCRIPTION ... | 2.9375 | 3 |
2024-11-18T20:02:55.405436+00:00 | 2021-05-25T08:29:01 | 1c1a87df44a622ded5052723c38d7d2d11fabc9f | {
"blob_id": "1c1a87df44a622ded5052723c38d7d2d11fabc9f",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-25T08:29:01",
"content_id": "b619665cc16b5229da55ddcb368c924a6049bbb7",
"detected_licenses": [
"MIT"
],
"directory_id": "82873b85f33c88a9a717394296a4a658f6903493",
"extension": "c"... | stackv2 | /*
* Running a function with timeout, from wget code, Windows version
* Copyright (c) 2004 Pertimm bu Patrick Constant
* Dev : June 2004
* Version 1.0
*/
#define DPcInDll
#include <logxpt.h>
#include <assert.h>
/* mswindows.c -- Windows-specific support
Copyright (C) 1995, 1996, 1997, 1998 Free Software Fo... | 2.125 | 2 |
2024-11-18T20:15:11.424247+00:00 | 2020-10-31T08:48:14 | a08eac0af4e1c72cfa185777619857da2567443f | {
"blob_id": "a08eac0af4e1c72cfa185777619857da2567443f",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-31T08:48:14",
"content_id": "a5e06c6a9543739a4b8bb530c21ac6baf94957bb",
"detected_licenses": [
"MIT"
],
"directory_id": "e30b1da5d500d6126928757ab71102ef1d1822d7",
"extension": "c"... | stackv2 | /* Configuration header */
#include "../config.h"
/* C standard library headers */
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
/* POSIX library headers */
#include <arpa/inet.h>
#include <netinet/in.h>
#include <unistd.h>
/* PSP Common headers */
#include "options.h"
#include "output.h"
/* globals */... | 2.53125 | 3 |
2024-11-18T20:15:11.487711+00:00 | 2019-09-22T12:27:32 | 672102bda53632e0546f6e23db5db8d5d4191861 | {
"blob_id": "672102bda53632e0546f6e23db5db8d5d4191861",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-22T12:27:32",
"content_id": "9e1e0c9a789c1415d78c85000ba825d2a98b6cab",
"detected_licenses": [
"MIT"
],
"directory_id": "c53069a9b35f1bb7459d9e23eacc4dd646206c62",
"extension": "c"... | stackv2 | /****************************************************************************/
/* */
/* Module: jamjtag.c */
/* */
/* Copyright (C) Altera Corporation 1997 */
/* */
/* Description: Contains array management functions, including */
/* funct... | 2.109375 | 2 |
2024-11-18T20:15:11.900539+00:00 | 2018-06-13T16:20:23 | c0106f2367264ae493495b5e705d892a856ee417 | {
"blob_id": "c0106f2367264ae493495b5e705d892a856ee417",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-13T16:20:23",
"content_id": "4106b60e842731ac39c0b28a10ea70e3c410ddf1",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "6b84d7ef75086a7106e2a9e61ed9b5c26987fcea"... | stackv2 |
#include "internal_includes/tokens.h"
#include "internal_includes/structs.h"
#include "internal_includes/decode.h"
#include "stdlib.h"
#include "stdio.h"
#include "internal_includes/reflect.h"
#include "internal_includes/debug.h"
#include "internal_includes/hlslcc_malloc.h"
#define FOURCC(a, b, c, d) ((uint32_t)(uint... | 2.015625 | 2 |
2024-11-18T20:15:12.241723+00:00 | 2019-01-24T13:54:07 | f3d771f5027a33c64bdff2d9e6223c0bf5aadde3 | {
"blob_id": "f3d771f5027a33c64bdff2d9e6223c0bf5aadde3",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-24T13:54:07",
"content_id": "aed44076f7caecd5eba6185681ba4403813409d3",
"detected_licenses": [
"MIT"
],
"directory_id": "8d41c4ebef2c10c420715f4fbfc9712f9729397b",
"extension": "c"... | stackv2 | /*
* file: 9-Test.c
* --------------
* this program define a enum type named outcomT.
*/
#include <stdio.h>
#include <ctype.h>
#include "strlib.h"
#include "random.h"
/* main program */
main()
{
Randomize();
typedef enum {
Lose = -1,
Draw = 0,
Win = 1
} outcomeT;
char t1 = 37;
int t2 = 37;
char t3 ... | 3.1875 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.