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:22:50.386656+00:00 | 2013-11-15T20:56:35 | 1336b37451d5b3cbedb67f2c5cfb75ab11cb2637 | {
"blob_id": "1336b37451d5b3cbedb67f2c5cfb75ab11cb2637",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-15T20:56:35",
"content_id": "d7148bd9410166eaaaf0fed06e054f46dace0ead",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "77af981ad477ad4bd91832d5ef1beb103c8ca06d",
"extens... | stackv2 | #include <stdlib.h>
#include "gmshreader.h"
static inline Index get_offset(Index nr, Index nc, Index r, Index c);
Index gmshelm_free(gmshelm* elm,Index ne);
/**
*Loads array of gmshelms and generates contiguous array of desired element type from it.
*@param etype Integer flag for type of element. Possibilit... | 2.5 | 2 |
2024-11-18T18:22:52.291806+00:00 | 2020-12-09T14:01:31 | ff9e5f2bd5454b5fbaead7e6f368167757cce71d | {
"blob_id": "ff9e5f2bd5454b5fbaead7e6f368167757cce71d",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-09T14:01:31",
"content_id": "ecd57428a03454fe83c1fc2320c71b3e99daf902",
"detected_licenses": [
"MIT"
],
"directory_id": "ea461aa711d1a7b7f282d195a736f16cbff8d144",
"extension": "c",
... | stackv2 | #include "bh1750.h"
#include "sys.h"
/*
应用说明:
在访问I2C设备前,请先调用 i2c_CheckDevice() 检测I2C设备是否正常,该函数会配置GPIO
*/
static void I2C_BH1750_GPIOConfig(void);
/*
*********************************************************************************************************
* 函 数 名: i2c_Delay
* 功能说明: I2C总线位延迟,最快400KHz
* 形 参:无
* ... | 2.765625 | 3 |
2024-11-18T18:22:52.557041+00:00 | 2019-01-16T23:19:12 | 0abe71609b6602b8afdf44473057378690f929a2 | {
"blob_id": "0abe71609b6602b8afdf44473057378690f929a2",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-16T23:19:12",
"content_id": "48f30ffc76db66aa8c0dc6bd0549fbea84536d85",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "97f4e038e27feae7a47cbac549d86df023e485c8",
"extens... | stackv2 | /*
Copyright (c) 2018, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#include <stdint.h>
#include <string.h>
#include "../includ... | 2.359375 | 2 |
2024-11-18T18:22:52.742987+00:00 | 2021-09-23T08:06:45 | d865f4c0ef20908252231a708f4be3a0a393ea5a | {
"blob_id": "d865f4c0ef20908252231a708f4be3a0a393ea5a",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-23T08:06:45",
"content_id": "ef937a6eb4bd354d985851cf1deaf5d1c2696080",
"detected_licenses": [
"MIT"
],
"directory_id": "dbea9250c626838247fc92e5ed2b9b723ddc4da3",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <string.h>
int main()
{
int n, count=0, i;
scanf("%d", &n);
char str[n];
scanf("%s", str);
for(i=0; i<strlen(str); i++)
{
if(str[i]=='A') count++;
}
if(count>(strlen(str)-count)) printf("Anton\n");
else if(count==(strlen(str)-count)) printf("Frien... | 2.8125 | 3 |
2024-11-18T18:22:52.926731+00:00 | 2019-09-26T02:17:00 | 65b5ae82859100921b705b315a05f2123a572cb1 | {
"blob_id": "65b5ae82859100921b705b315a05f2123a572cb1",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-26T02:17:00",
"content_id": "4d60ca5e8511b9eb12b78cdab9503790205ea1dd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c27ca5ca84dccd94b7181cf72cbe0c78e122d11a",
"extensio... | stackv2 | #include "./include/shopping.h"
#pragma region RegionGetters
Date shoppingGetDate(Shopping shop) {
return shop.date;
}
int shoppingGetQttProducts(Shopping shop) {
return shop.qttProducts;
}
#pragma endregion RegionGetters
#pragma region RegionSetters
int shoppingSetQttProducts(Shopping *shop, int qttProducts) {
... | 2.4375 | 2 |
2024-11-18T18:22:53.289076+00:00 | 2020-04-27T07:46:05 | 81ca5c38c5b74cee17b7b4a3abd3a78c74c3148d | {
"blob_id": "81ca5c38c5b74cee17b7b4a3abd3a78c74c3148d",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-27T07:46:05",
"content_id": "6771dce24c059b39ff790c3d6b8ca51a83fdcf6a",
"detected_licenses": [
"MIT"
],
"directory_id": "52eed6ce93c51ec820c27ab8d86e5cb7e2116c37",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <assert.h>
#include "max_heap.h"
int main() {
int heap[100];
heap[0] = 0;
assert(is_empty(heap) == true);
insert(heap, 5);
insert(heap, 9);
insert(heap, 1);
insert(heap, 2);
insert(heap, 15);
print_heap(heap);
remove_node(heap, 2);
assert(get_s... | 3.359375 | 3 |
2024-11-18T18:22:53.362519+00:00 | 2012-05-07T01:17:38 | 5389acb97c38030338448305c76b378455b012fc | {
"blob_id": "5389acb97c38030338448305c76b378455b012fc",
"branch_name": "refs/heads/master",
"committer_date": "2012-05-07T01:17:38",
"content_id": "9690ba1b361067c112daebaeed62f78bcc5b78d0",
"detected_licenses": [
"MIT"
],
"directory_id": "4daa182d5ecbfb31b4fa26812b88741e1eb64e4d",
"extension": "c"... | stackv2 | /*
* A Cross platform serial port communication library
*
* Copyright (c) 2012, Tuomas Virtanen
* license: MIT License. Please read LICENSE for more information.
*/
#include "serial.h"
#ifdef LINUX
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
#endif
#include <stdio.h>
#include <... | 2.40625 | 2 |
2024-11-18T18:22:53.545696+00:00 | 2021-07-18T01:16:16 | 97904eef51cadb0d1e4592b681fd488c0ffd3d53 | {
"blob_id": "97904eef51cadb0d1e4592b681fd488c0ffd3d53",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-18T01:16:16",
"content_id": "15c5e19bc0d9e8af9262e8de7517fd1ae93f27ce",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8d8b8b50479abd1ff2eeab07526854118a55197b",
"extensio... | stackv2 | /*
* oled.c
*
* Created on: 2019年2月30日
* Author: zengwangfa
* Notes: OLED状态、参数指示
*/
#define LOG_TAG "oled"
#include "oled.h"
#include <rtthread.h>
#include <math.h>
#include <elog.h>
#include <stdio.h>
#include "sys.h"
#include "led.h"
#include "rc_data.h"
#include "drv_cpu_temp.h"
#include "drv_... | 2.1875 | 2 |
2024-11-18T18:23:00.376994+00:00 | 2015-09-28T16:35:31 | 44355a7638767d8218b839098a6ccedc65e29fef | {
"blob_id": "44355a7638767d8218b839098a6ccedc65e29fef",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-28T16:35:31",
"content_id": "f35f676e8df91d93d72d386501d46ebdc61d576c",
"detected_licenses": [
"MIT"
],
"directory_id": "964b9a28aa8bfc5ccf760506fa6ef741cb260a1a",
"extension": "c"... | stackv2 |
/**************************************************************************
*
* CS 6421 - Simple Conversation
* It sends out a welcome message when receive connection from client.
* Compilation: gcc -o conv_server conv_server.c to compile
* Execution:
* server: ./conv_server portnum
*
************... | 2.703125 | 3 |
2024-11-18T18:23:00.547239+00:00 | 2019-10-11T08:43:10 | 244014b6378ce9bd9ef0eb789e59c173bf312174 | {
"blob_id": "244014b6378ce9bd9ef0eb789e59c173bf312174",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-11T08:43:10",
"content_id": "be36f65615a7d35ecae1508a76d4d83d5716d301",
"detected_licenses": [
"MIT"
],
"directory_id": "180cee05ca05e7b71a2b4099886cefb97e580ffe",
"extension": "c"... | stackv2 | #include "co_routineex.h"
cortenv_t* cortenv_new(coloop_t *loop, int stsize) {
cortenv_t *env = CO_MALLOC(sizeof(cortenv_t));
env->loop = loop;
env->sch = cort_open(stsize);
return env;
}
void* cortenv_free(cortenv_t *env) {
cort_close(env->sch);
CO_FREE(env);
return NULL;
}
static void _... | 2.203125 | 2 |
2024-11-18T18:23:00.686649+00:00 | 2016-02-19T14:46:17 | 39a9c9363017a555b8da5e91f2cac2a15a5ebfd3 | {
"blob_id": "39a9c9363017a555b8da5e91f2cac2a15a5ebfd3",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-19T14:46:17",
"content_id": "76ae432fb469fb439db02307223f53cd20291ffc",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "05003480912b9e829bde4d5f2bd0e3692ba26bba",
"extensio... | stackv2 | /*
* Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )
*
* 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 requir... | 2 | 2 |
2024-11-18T18:23:00.888681+00:00 | 2020-06-12T07:27:54 | af4a826f027e2a40efcbb2bf53ed04a97e1f87e2 | {
"blob_id": "af4a826f027e2a40efcbb2bf53ed04a97e1f87e2",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-12T07:27:54",
"content_id": "56e1ef767a4607f6304dac3c370811a67844e592",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5bccf2d2118008c0af6a51a92a042e967e4f2abe",
"extensio... | stackv2 | #ifndef HOTSPOTTYPES_H
#define HOTSPOTTYPES_H
enum HSFlag_t {
NotGiven_e = 0,
LineBaseP_e,
LineMovingP_e,
LineRefP_e,
AngleBaseP_e,
LineOrAngle_e = AngleBaseP_e, // must be the first angle type
AngleMovingP_e,
AngleCenterP_e,
AngleRefP_e
};
const Int32 HSFlagMask = 0x007F; // 7 bits enough to cover HSFlag_... | 2.078125 | 2 |
2024-11-18T18:23:01.989883+00:00 | 2014-06-15T05:56:19 | 401fe926306eccc0c7929bf34ad22db1a89625ee | {
"blob_id": "401fe926306eccc0c7929bf34ad22db1a89625ee",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-15T05:56:19",
"content_id": "129949854fd5ee401660934ace18b93cf0f38141",
"detected_licenses": [
"Zlib"
],
"directory_id": "aa41c90a73d495314166590238743ef92ece73ed",
"extension": "h... | stackv2 | /*
* UDI2 Bytecode Compiler
* - By John Hodge (thePowersGang)
*/
#ifndef _AST_H_
#define _AST_H_
typedef struct sAST_Node tAST_Node;
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <symbol.h>
#include <types.h>
enum eAST_NodeTypes
{
NODETYPE_NULL,
NODETYPE_NOOP,
// 2 -- Leaves --
NODE... | 2.734375 | 3 |
2024-11-18T18:23:02.671184+00:00 | 2017-04-01T03:16:32 | 358be7879a27550cce210df51e6effd70b1b048b | {
"blob_id": "358be7879a27550cce210df51e6effd70b1b048b",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-01T03:16:32",
"content_id": "8cd8b4bb7e94345c9ef925c771e877f9dd8a3ac1",
"detected_licenses": [
"MIT"
],
"directory_id": "76f5da1b7ef3f88c1b82d9959bd19f4537196975",
"extension": "c"... | stackv2 | #include "param.h"
#include "types.h"
#include "stat.h"
#include "user.h"
#include "fs.h"
#include "fcntl.h"
#include "syscall.h"
#include "traps.h"
#include "memlayout.h"
void
getpid_test(void)
{
int ppid;
ppid = getpid(); // mytest1.c executes getpid() in the userspace
printf(1, "getp... | 3.40625 | 3 |
2024-11-18T18:23:02.740632+00:00 | 2019-02-23T00:54:36 | 11616fa7b9227394eac35df83ecd66115e4b41b2 | {
"blob_id": "11616fa7b9227394eac35df83ecd66115e4b41b2",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-23T00:54:36",
"content_id": "89a4b3943661fa49d1cd3883a1a5bcd1c35d7a4b",
"detected_licenses": [
"MIT"
],
"directory_id": "496e62b0116b904fa50b41a3ecd1c4f3cc23ab81",
"extension": "c"... | stackv2 | #include <lcom/lcf.h>
#include "background_chooser.h"
#include "../window/window.h"
#include "../font/font.h"
extern WindowList wnd_list;
extern uint8_t *backgrounds[];
/** @addtogroup background_chooser
* @{
*/
/**
* @brief Handle the input
* @param el the input element
* @param type type of message
* @param ... | 2.09375 | 2 |
2024-11-18T18:23:05.179103+00:00 | 2017-12-25T12:29:39 | 2dba38ef8debfda0c395559acaabad880633ed80 | {
"blob_id": "2dba38ef8debfda0c395559acaabad880633ed80",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-25T12:29:39",
"content_id": "445cc5e3266101d46de591f5af9e447844279483",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3d5f1136abaaaafc0af37ee45e045f7c912da779",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int main( int argc, char *argv[] )
{
FILE *fp;
char path[1035];
int i = 0;
int j = 0;
char temp[10];
char temp1[10];
/* Open the command for reading. */
fp = popen("cat /sys/bus/w1/devices/28-00000857cbaa/w1_slave", "r");
if (fp == NULL) {
printf("Failed to run co... | 2.703125 | 3 |
2024-11-18T18:23:05.485837+00:00 | 2015-02-14T09:31:24 | b48021ca70ceedd6ecce1ee17769994724e23dd0 | {
"blob_id": "b48021ca70ceedd6ecce1ee17769994724e23dd0",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-14T09:31:43",
"content_id": "42725ba7c8fe038d8340d3fa366184f4232b188d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "aac3611a347224e874b0b79689503b38bf886663",
"extensio... | stackv2 | #include <sys/socket.h>
#include <sys/un.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "common.h"
#define LISTEN_BACKLOG 3
int socket_local_server(const char *name) {
int fd;
int sock_reuse;
struct sockaddr_un serv_addr;
if (name =... | 2.59375 | 3 |
2024-11-18T18:23:05.630978+00:00 | 2023-08-11T13:02:43 | 209136356a1f3c6c840dc5db17eacea8948162d8 | {
"blob_id": "209136356a1f3c6c840dc5db17eacea8948162d8",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T13:02:43",
"content_id": "62ba2dd6e58631d46fed3afba1d760385d88f470",
"detected_licenses": [
"MIT"
],
"directory_id": "751d837b8a4445877bb2f0d1e97ce41cd39ce1bd",
"extension": "c"... | stackv2 | /*
Create a function which validates whether a bridge is safe to walk on (i.e. has no gaps in it to fall through).
Examples
isSafeBridge("####") ➞ true
isSafeBridge("## ####") ➞ false
isSafeBridge("#") ➞ true
Notes
You can expect the bridge's ends connecting it to its surrounding.
*/
#include <assert.h>
#includ... | 3.375 | 3 |
2024-11-18T18:23:05.712630+00:00 | 2019-08-30T10:13:28 | ca3727799e531395bf8941863d2295389c627e20 | {
"blob_id": "ca3727799e531395bf8941863d2295389c627e20",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-30T10:13:28",
"content_id": "640a8aa3e4b6cc7dfcc3fef81788209bd4905ca5",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause-Views"
],
"directory_id": "fe29fb113b7963bcc740dacc86... | stackv2 | /*
+----------------------------------------------------------------------+
| XlsWriter Extension |
+----------------------------------------------------------------------+
| Copyright (c) 2017-2018 The Viest |
+--------------... | 2.359375 | 2 |
2024-11-18T18:23:05.901938+00:00 | 2023-08-19T19:52:01 | 426f34b2ef57549725838ff482ce350b7224c01b | {
"blob_id": "426f34b2ef57549725838ff482ce350b7224c01b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-24T06:47:43",
"content_id": "e7514df30392519a9208cfedd9fa7dcec53f963e",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "80cc60b33eb179fe39bad3e0d7208b67... | stackv2 | /*
* Phoenix-RTOS
*
* libphoenix
*
* stdlib/div.c
*
* Copyright 2022 Phoenix Systems
* Author: Dawid Szpejna
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <stdlib.h>
div_t div(int num, int den)
{
div_t result = { .quot = num / den, .rem = num % den };
/* Correcting if the result is... | 2.734375 | 3 |
2024-11-18T18:23:06.096329+00:00 | 2018-09-25T15:22:23 | f3c63c63cd1d3d474bd4739475486413a5b6d1f4 | {
"blob_id": "f3c63c63cd1d3d474bd4739475486413a5b6d1f4",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-25T15:22:23",
"content_id": "6ee92219cdba9b3aace3d62f70d534e603d23a04",
"detected_licenses": [
"MIT"
],
"directory_id": "9eba4dfc70cc3c7d9fca639f0fed2be4863bd0e0",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <time.h>
#include <string.h>
#define NUM_PARTICLES (1 << 27) // 2^27
#define BLOCK_SIZE (1 << 12) // 2^12
#define NB_BLOCKS (1 << 15) //2^15
#define K1 1.33
#define K2 3.07
#define DENSITY 0.2
typedef struct {
// Position
float *x;
float *y;
float *z;
// Velocity
float *vx;
... | 2.828125 | 3 |
2024-11-18T18:23:06.176976+00:00 | 2023-08-19T04:53:58 | f7a0874e4485ca26453b6b319065d8321440dca8 | {
"blob_id": "f7a0874e4485ca26453b6b319065d8321440dca8",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-19T04:53:58",
"content_id": "f11b1604b01dd4fd02e41777d043eb67e3117473",
"detected_licenses": [
"MIT"
],
"directory_id": "f8fe6eec5dc1200a112a13dcd2102af4fccf2417",
"extension": "c"... | stackv2 | /*!
* \file AuxRatio.h
* \brief Auxillary kernel to calculate a value based on a ratio of other values
* \details This file is responsible for calculating the value of an auxvariable
* according to the ratio of a set of coupled variables for the denominator
* and numerator.
*
* ... | 2.3125 | 2 |
2024-11-18T18:23:06.388760+00:00 | 2019-03-03T03:19:48 | 2ec67b328479059c6ccc9292682baffe93cc2e27 | {
"blob_id": "2ec67b328479059c6ccc9292682baffe93cc2e27",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-03T03:19:48",
"content_id": "a2ee4cab4247bc8bb8527c9ba106bf7f1547dcad",
"detected_licenses": [
"MIT"
],
"directory_id": "5f9d3708f3441e0bf280fdd5ef6fd7a5065c733b",
"extension": "c"... | stackv2 | #include <assert.h> /* assert */
#include <stdio.h> /* puts */
#include <string.h> /* strncmp */
#include "../../../src/data/set.h"
void normal(void) {
struct ic_set *set = ic_set_new();
puts("ignore any text output, testing error cases");
assert(set);
/* test we cannot pull anything out yet */
... | 2.796875 | 3 |
2024-11-18T18:23:07.141708+00:00 | 2021-07-26T13:16:53 | 2424f2a02746e10835fb7caf47ad27bb1a83e904 | {
"blob_id": "2424f2a02746e10835fb7caf47ad27bb1a83e904",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-26T13:16:53",
"content_id": "5b42f5ce631d613da13a765440a4c4f635231a2b",
"detected_licenses": [
"MIT"
],
"directory_id": "9deb7465f8d784804adb41bdb3d8c16e5279582e",
"extension": "c"... | stackv2 | /*
*
* Call of Duty Black Ops PS3 Save Decrypter - (c) 2021 by Bucanero - www.bucanero.com.ar
*
* This tool is based (reversed) on the original black_ops_save_decrypter by Red-EyeX32
*
*/
#define MBEDTLS_DES_C
#define MBEDTLS_CIPHER_MODE_CBC
#define mbedtls_platform_zeroize(b, len) memset(b, 0, len)
#include "../com... | 2.65625 | 3 |
2024-11-18T18:23:07.226913+00:00 | 2018-03-18T20:51:16 | 944458db0ff7979f93447066f5cc80abc8c64884 | {
"blob_id": "944458db0ff7979f93447066f5cc80abc8c64884",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-18T20:51:16",
"content_id": "6c6df287c4ba53e292437e15ef169e3c981d316c",
"detected_licenses": [
"MIT"
],
"directory_id": "95a14471e1f1940cd1b45236b9024daeb82a1e88",
"extension": "c"... | stackv2 | /** @file
Implementacja parsera komend
@author Kacper Konecki <kkonecki@student.uw.edu.pl>
@copyright Uniwersytet Warszawski
@date 2017-05-25
*/
#include <stdio.h>
#include "command_parser.h"
#include "const_commandsarr.h"
int ParseCommand(void) {
int value = ERROR;
int actChar;
int minPossib... | 2.890625 | 3 |
2024-11-18T18:23:07.659301+00:00 | 2020-10-10T19:59:35 | 7e7f42a8539dcca4518723e28d69ad75fcc72e08 | {
"blob_id": "7e7f42a8539dcca4518723e28d69ad75fcc72e08",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-10T19:59:35",
"content_id": "0c3ff7465a0b2b9e6d38cfd4a3ab38bd5f670401",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fd319d5059a67a4285d86b32e12d029c7e1a8fd2",
"extension"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int cycleSort(int * list, size_t l_len);
void show_array(int * array, size_t a_len);
/*
* Sort an array in place and return the number of writes.
*/
int cycleSort(int * list, size_t l_len)
{
int cycleStart, writes = 0;
/* Loop through the array to find cycles to rota... | 3.671875 | 4 |
2024-11-18T18:23:07.852551+00:00 | 2021-08-27T20:34:26 | 68a6f4982e81332d4540075573e70f259342f666 | {
"blob_id": "68a6f4982e81332d4540075573e70f259342f666",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-27T20:34:26",
"content_id": "44811e15865ecdaaa33b099fa0755b97ce017da4",
"detected_licenses": [
"MIT"
],
"directory_id": "23da00832d1932a3b5103e8421575120dda05075",
"extension": "c"... | stackv2 | #include "rc_internal.h"
#include "../test_framework.h"
#include "mock_memory.h"
static void test_evaluate_value(const char* memaddr, int expected_value) {
rc_value_t* self;
unsigned char ram[] = {0x00, 0x12, 0x34, 0xAB, 0x56};
memory_t memory;
char buffer[2048];
unsigned* overflow;
int ret;
memory.ram... | 2.546875 | 3 |
2024-11-18T18:23:08.299519+00:00 | 2020-03-01T20:43:47 | 49abed9d4df1e3f37fdaa5953fa7edafae70cf49 | {
"blob_id": "49abed9d4df1e3f37fdaa5953fa7edafae70cf49",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-01T20:43:47",
"content_id": "e5390cb08c471b2f0b5c0709bd4393c59da7b121",
"detected_licenses": [
"Unlicense"
],
"directory_id": "7ad6ee7e27ac492e5d9d93d294ee62830c6d4865",
"extension... | stackv2 | #include <string.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
#include <libgen.h>
#include <stdlib.h>
#include "../libhutils.h"
void
usage(void) {
writestr(2,"usage: mv SRC DST\n");
writestr(2,"usage: mv FILE ... DIR\n");
}
int
mv(char *src, char *dst) {
if(rename(src,dst)) {
if(errno==EISDIR)... | 2.5625 | 3 |
2024-11-18T18:23:08.367232+00:00 | 2018-06-15T15:45:19 | 5f0cdd56c0bc2bc2a286c324e6fcc586ecf9e9d9 | {
"blob_id": "5f0cdd56c0bc2bc2a286c324e6fcc586ecf9e9d9",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-15T15:45:19",
"content_id": "b17f2e3352b60a177fec2eb405a2f8a28027b667",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0dfd436cd7dcbe836193cfca6d2587775cafdb67",
"extensio... | stackv2 | // Sample demo for QuickLZ 1.5.x
// Remember to define QLZ_COMPRESSION_LEVEL and QLZ_STREAMING_MODE to the same values for the compressor and decompressor
#include <stdio.h>
#include <stdlib.h>
#include <datejul.h>
#include "quicklz.h"
int main(int argc, char* argv[])
{
FILE *ifile, *ofile;
char *src, *dst;
INT64 n... | 2.4375 | 2 |
2024-11-18T18:23:08.751226+00:00 | 2020-08-05T05:26:37 | 07c4e3688346ea19762fee14a5a590151200072d | {
"blob_id": "07c4e3688346ea19762fee14a5a590151200072d",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-05T05:26:37",
"content_id": "f602c428b776efeb8a75b06448bddce959c5557a",
"detected_licenses": [
"MIT"
],
"directory_id": "b682a9d7f21fefa54d7d67d3991a6692cab48677",
"extension": "c"... | stackv2 | /*
Max Bugay
Lower Level Programming
Purpose: Add the first and last digit of an inputted integer.
*/
#include <stdio.h>
int main()
{
int num, sum = 0;
printf("Enter in a number: ");
scanf("%d", &num);
if(num > 10) //Gets first digit (Right-Most Digit)
{
sum += num % 10;
}
while (... | 4.375 | 4 |
2024-11-18T18:23:08.803927+00:00 | 2021-01-23T12:49:15 | 24e0bc002c4ae7aa1bf8ffb5e918db502109667d | {
"blob_id": "24e0bc002c4ae7aa1bf8ffb5e918db502109667d",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-23T12:49:15",
"content_id": "98c73f462b0176ac4831e91a337a2982cc5e789d",
"detected_licenses": [
"MIT"
],
"directory_id": "112df2a11ca1d09b9503ede2bf3bea884656df6a",
"extension": "c",
... | stackv2 | /* 系统输出 */
#include "../bootpack.h"
#include <stdio.h>
void cmd_echo(struct CONSOLE *cons, char *cmdline) {
/* 系统输出 */
char *s = (char *)0x2f000;
sprintf(s,"%s\n", cmdline + 5);
cons_putstr0(cons,s);
return;
}
| 2.21875 | 2 |
2024-11-18T18:23:09.074146+00:00 | 2015-12-24T02:01:38 | 2e42bb756edc6e4f65e1961cee5d3d719cbba19c | {
"blob_id": "2e42bb756edc6e4f65e1961cee5d3d719cbba19c",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-24T02:01:38",
"content_id": "2c2e3ab15643d4da3aa4f337e3ef3243f8762aae",
"detected_licenses": [
"MIT"
],
"directory_id": "c2a31e03928c492a5bddfcfbd74529fe3c01d679",
"extension": "c"... | stackv2 | #include "cmp.h"
#include "vm.h"
#include "vecapply.h"
struct partition_item {
vio_val *v;
struct partition_item *next;
};
struct partition {
uint32_t size;
struct partition_item *last;
};
#define SKIPLIST_KEY vio_val *
#define SKIPLIST_VALUE struct partition *
#define SKIPLIST_STATIC
#define SKIPLIS... | 2.5 | 2 |
2024-11-18T18:23:09.154570+00:00 | 2017-08-21T01:50:00 | a93ed8139ab026152f816101aca0c7837bbb0174 | {
"blob_id": "a93ed8139ab026152f816101aca0c7837bbb0174",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-21T01:50:00",
"content_id": "2304d9a6d94a087b7a76d8dbd6c4c01a918434f0",
"detected_licenses": [
"MIT"
],
"directory_id": "b015145feb9790f26a9d6a2a991cf71b2eac92d0",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "menu.h"
#include "avs.h"
static char data_filename[MENU_DATA_SIZE] = "default.raw";
static char data_devname[MENU_DATA_SIZE] = "default";
static int run_amic_init(menu_manager *mm, struct menu_data *menu,
void *user_data)
{
return amic_init(d... | 2.25 | 2 |
2024-11-18T18:23:09.456963+00:00 | 2023-08-09T19:05:42 | 7917b49f6cbdc8ce65ccaf94ba9b7bf9d3addfc0 | {
"blob_id": "7917b49f6cbdc8ce65ccaf94ba9b7bf9d3addfc0",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-09T19:05:42",
"content_id": "04dc06cb21ea4172cf3d0c763e7661b6e8de1020",
"detected_licenses": [
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "ff2180134ad76c... | stackv2 | /****************************************************************************
*
* Copyright (c) 2023 plgd.dev s.r.o.
*
* 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://ww... | 2 | 2 |
2024-11-18T18:23:11.770259+00:00 | 2018-03-07T01:00:26 | 2c3d8d889166cd343cda0e1965b1ee0951a8ad08 | {
"blob_id": "2c3d8d889166cd343cda0e1965b1ee0951a8ad08",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-07T01:00:26",
"content_id": "6136fbaa681456df0c893ef4e534d12b1795a7b4",
"detected_licenses": [
"MIT"
],
"directory_id": "d3ceafba7eccf9bccff8006ef0bb7e95c25aa528",
"extension": "c"... | stackv2 | // 3º Exercício da lista de variáveis e expressões
#include <stdio.h>
int main() {
int n1, n2, n3;
printf("digite tres inteiros: ");
scanf("%d %d %d" , &n1, &n2, &n3);
printf("%d" , (n1+n2+n3));
return 0;
} | 3.296875 | 3 |
2024-11-18T18:23:11.835414+00:00 | 2019-01-09T22:57:57 | 4e7ee8fa4eb652e436da9a685974c309e34b8142 | {
"blob_id": "4e7ee8fa4eb652e436da9a685974c309e34b8142",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-01T01:13:57",
"content_id": "c38ce4d5bb45792b4a59bdc5b86b24b86a600553",
"detected_licenses": [
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "c81198daa820ac... | stackv2 | /*
// Copyright (c) 2016 Intel Corporation
//
// 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... | 2.015625 | 2 |
2024-11-18T18:23:11.897217+00:00 | 2022-05-10T07:05:18 | a4708e416438eb3b5032c50056fc21e595ada060 | {
"blob_id": "a4708e416438eb3b5032c50056fc21e595ada060",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-10T07:05:18",
"content_id": "b3ee60c4aea10c6a1e5386dc3e61472538b975d6",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "5ab892bcef191df40d45296c54ec5733583e9b8e"... | stackv2 | /* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "util.h"
static void handler(int sig, __attribute__((unused)) siginfo_t* si, void* p) {
ucontext_t* ctx = p;
uintptr_t tv;
test_assert(sig == SIGSYS);
#ifdef __i386__
tv = ctx->uc_mcontext.gregs[REG_EBX];
ctx->uc_mcontex... | 2.5 | 2 |
2024-11-18T18:23:13.008461+00:00 | 2018-04-02T09:57:14 | 6cc948f8a751e85486b0bab1d93857e7d0721a74 | {
"blob_id": "6cc948f8a751e85486b0bab1d93857e7d0721a74",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-02T09:57:14",
"content_id": "d69e26a6075e814e8756c8b26058fb803e2decd4",
"detected_licenses": [
"MIT"
],
"directory_id": "2d93a1a4a5c98904b2e1669c0e88b4d3723f223b",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define LINE_CONST 80
#define INDENT_SIZE 4
char *getline(int);
int get_indent_scope(char *, int);
int line_leftovers(char *, int, int);
char **fold_line(char *, int, int, int);
int main()
{
char *line;
char **segments;
while (... | 3.0625 | 3 |
2024-11-18T18:23:13.340444+00:00 | 2021-09-16T14:20:50 | cc6e08dadb09ecf68b0cc330c9432da6195a0139 | {
"blob_id": "cc6e08dadb09ecf68b0cc330c9432da6195a0139",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-16T14:20:50",
"content_id": "df50ffc40ec1d02fbf041b4097f84e9df5d48b32",
"detected_licenses": [
"ISC"
],
"directory_id": "2a53d3507cab019494dd407ea18b2eefeb4a78c4",
"extension": "c"... | stackv2 | /* See LICENSE file for copyright and license details. */
#include "cg-base.h"
#include <libclut.h>
#if defined(_GNU_SOURCE)
# undef _GNU_SOURCE
#endif
#include <errno.h>
#include <sched.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
/**
* T... | 2.421875 | 2 |
2024-11-18T18:23:15.795459+00:00 | 2020-01-02T19:57:47 | cce33d9da0cd36ed301ee5fd3624ace2bd1beeee | {
"blob_id": "cce33d9da0cd36ed301ee5fd3624ace2bd1beeee",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-02T19:57:47",
"content_id": "1644c30787cb96171d025e2515cc035dfc077d44",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fd6b5c3312842df4cd4842dc0ca0e27feee01882",
"extensio... | stackv2 | #include "include/dht22.h"
DHT22ErrorCode dht22_check_pull_up(struct Config *config){
pinMode(config->dht22_pin, INPUT);
delayMicroseconds(50);
if(digitalRead(config->dht22_pin) == LOW) {
return DHT22_NO_PULLUP;
}
return DHT22_OK;
}
// ------------------------------------------------------------------... | 2.765625 | 3 |
2024-11-18T18:23:16.031160+00:00 | 2019-12-05T03:12:27 | 74d4f44c165e266ecb1947a9096d70b5dd0c43a1 | {
"blob_id": "74d4f44c165e266ecb1947a9096d70b5dd0c43a1",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-05T03:12:27",
"content_id": "e43c4f3a3bcf53bde164cfbb2abb06ed4c4fae6d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2f0c72b09379ac632f237597896ed318cc0f8513",
"extens... | stackv2 | /*
* This file was generated by the SOM Compiler.
* FileName: metacalc.c.
* Generated using:
* SOM Precompiler spc: 1.22
* SOM Emitter emitc: 1.24
*/
#define calculator_Class_Source
#include "metacalc.ih"
/*
* Method Name: Add
* This method returns the sum of the two input
* numbers.
*
*/
... | 2.359375 | 2 |
2024-11-18T18:23:16.427296+00:00 | 2020-05-16T16:09:48 | 32f11d1fe9af1c65af394105521d3b7a4dbfad4c | {
"blob_id": "32f11d1fe9af1c65af394105521d3b7a4dbfad4c",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-16T16:09:48",
"content_id": "19b24b3560445f1bd5ea7ce1e18c2a237260cefe",
"detected_licenses": [
"MIT"
],
"directory_id": "0f87ef58bedee87db401d2b6ab2d017c47999fa4",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* error.c :+: :+: :+: ... | 2.53125 | 3 |
2024-11-18T18:23:16.485376+00:00 | 2019-06-30T07:35:14 | 7f70931ef442d785b9fe6c37005c81e803850851 | {
"blob_id": "7f70931ef442d785b9fe6c37005c81e803850851",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-30T07:38:57",
"content_id": "44f3076681cb2c91d4c8073ac8ce6b9652f2e282",
"detected_licenses": [
"MIT"
],
"directory_id": "e9866d8af6031d9208d783b31c37864cf583e815",
"extension": "c"... | stackv2 | #include <multiboot.h>
#include <memory.h>
#include <debug.h>
#define MBOOT_REPLY 0x36D76289
struct taglist{
uint32_t total_size;
uint32_t reserved;
}__attribute__((packed));
struct tag {
uint32_t type;
uint32_t size;
uint8_t data[];
}__attribute__((packed));
struct mmap_entry{
uint64_t base;
uint64_t... | 2.59375 | 3 |
2024-11-18T18:23:16.575518+00:00 | 2020-06-12T10:43:38 | 8d55d7d2560fca632d7819fcd358ad0b6455eeca | {
"blob_id": "8d55d7d2560fca632d7819fcd358ad0b6455eeca",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-12T10:43:38",
"content_id": "201e982bb0f6695a1f1f60b294949ea421f28a7e",
"detected_licenses": [
"MIT"
],
"directory_id": "e47888a89a89c3ba5010efac9f52ceb44cc35b48",
"extension": "c"... | stackv2 | #include <assert.h> // assert
#include <stdlib.h> // malloc, free
#include <string.h> // memcpy, strcmp, strdup
#include "shoveler/log.h"
#include "shoveler/resources.h"
static void freeTypeLoader(void *typeLoaderPointer);
static void freeResource(void *resourcePointer);
static void freeResourceData(ShovelerResources... | 2.625 | 3 |
2024-11-18T18:23:17.537872+00:00 | 2020-09-08T02:52:56 | 171d85e1f645536ca2901a38c29a9835695258e5 | {
"blob_id": "171d85e1f645536ca2901a38c29a9835695258e5",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-08T02:52:56",
"content_id": "2d56d9b070338710480ce38f851e316a6476838d",
"detected_licenses": [
"MIT"
],
"directory_id": "efb25a20ecddb3a0a8795bc616069fc1a94e5375",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/*System includes.*/
#include <stdio.h>
/* Kernel includes. */
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "timers.h"
/* Freescale include... | 2.453125 | 2 |
2024-11-18T18:23:18.254476+00:00 | 2012-08-09T07:47:01 | 335473444a5bd06d85f4835ea50ee34f81811c55 | {
"blob_id": "335473444a5bd06d85f4835ea50ee34f81811c55",
"branch_name": "refs/heads/master",
"committer_date": "2012-08-09T07:47:01",
"content_id": "4ffda0ade4b56da7e97b7aa8ebd7b89ce83a9686",
"detected_licenses": [
"MIT"
],
"directory_id": "6b6e19cb8b0ae8ec47cdadd2d7ba53c52e06d769",
"extension": "c"... | stackv2 | /*
Lotto Player Process
*/
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/sem.h>
#include "Semaphore.h"
#define LoginEmpty 0
#define LoginFull 1
#define Winningbet 2
#define NextbetEmpty 3
#define NextbetFull 4
#define MAX_PLAYERS 20
#define MAX... | 3.046875 | 3 |
2024-11-18T18:23:18.484745+00:00 | 2015-02-15T17:39:44 | f1397f8216479b4a2db0301b9a14c4c6258ccad4 | {
"blob_id": "f1397f8216479b4a2db0301b9a14c4c6258ccad4",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-15T17:39:44",
"content_id": "8ef5a2bff7f7d8a9b0264a2101025a7079d4b864",
"detected_licenses": [
"MIT"
],
"directory_id": "761b17adb4960c1dbb84d455029d48089964db01",
"extension": "h"... | stackv2 | #ifndef FRAMEBUFFER_H_
#define FRAMEBUFFER_H_
#include "io.h"
#define FB_WIDTH 80
#define FB_HEIGHT 25
#define FB_COMMAND_PORT 0x3D4
#define FB_DATA_PORT 0x3D5
#define FB_HIGH_BYTE_COMMAND 14
#define FB_LOW_BYTE_COMMAND 15
char *fb = (char*)0x000B8000;
void fb_write_cell(unsigned int i, char c, uns... | 2.265625 | 2 |
2024-11-18T18:23:18.780854+00:00 | 2020-02-27T18:27:43 | eb64abdc1d0ce1484288061dc5cd0f99afbeea7f | {
"blob_id": "eb64abdc1d0ce1484288061dc5cd0f99afbeea7f",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-27T18:27:43",
"content_id": "fab1a2601acce4791d46c8cd359e1b8bc501a338",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "da87c3c4568baf73eafba3bdd0398b72... | stackv2 | /*
* FILE %lexicon/bbc11.c
*
* send a challenge to a bbc target
*
* written: 1995-08-14
* latest update: 1995-08-17
*
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <gg/filename.h>
#include <gg/strings.h>
#include <gg/ggcrypt.h>
#include <gg/dpp.h>
#include <gg/bbch.h>
static... | 2.015625 | 2 |
2024-11-18T18:23:18.892175+00:00 | 2015-08-28T14:25:18 | d9f4dfc82d0cb0a6b2c53cb84c2db88d618f24a9 | {
"blob_id": "d9f4dfc82d0cb0a6b2c53cb84c2db88d618f24a9",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-28T14:25:18",
"content_id": "c17fda19c3d5615cdd3d8360d0a0fe594e86ee4c",
"detected_licenses": [
"MIT"
],
"directory_id": "585cbf05d3133ee8753cc211adb30b151d08554c",
"extension": "c"... | stackv2 | /*
The MIT License (MIT)
Copyright (c) 2015 Douglas J. Bakkum
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.1875 | 2 |
2024-11-18T18:23:51.502032+00:00 | 2020-05-18T05:57:36 | f3b3402b50438083b678e75cdeb3a79d03802593 | {
"blob_id": "f3b3402b50438083b678e75cdeb3a79d03802593",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-18T05:57:36",
"content_id": "47987fc8dd9ce966d5773a07f6d0664d2c5349ba",
"detected_licenses": [
"MIT"
],
"directory_id": "b95522bb3f93b26f0b5f370fa8db43413c1e7849",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdbool.h>
#include "funcDec.h"
//This function checks if the game is over.
bool gameOver(snake* snake)
{
listNode* tail = snake->snakeHead;
listNode* temp = snake->snakeHead;
while (tail->next != NULL)
tail = tail->next;
if (tail->x == 0 || tail->x == 25) // Border exception
re... | 2.859375 | 3 |
2024-11-18T18:23:51.637111+00:00 | 2013-10-01T08:51:29 | 40e5521a93f9214067f07512c9174083656c0e3c | {
"blob_id": "40e5521a93f9214067f07512c9174083656c0e3c",
"branch_name": "refs/heads/master",
"committer_date": "2013-10-01T08:51:29",
"content_id": "8d9696460491a109d851099c789975ebf9d69ba4",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "596c31b047ca731e4908aaf9f056b6ec39623380",
"extens... | stackv2 | #ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdlib.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#ifdef HAVE_EVIL
# include <Evil.h>
#endif
#include "evas_common.h"
#include "evas_private.h"
//#define CACHEDUMP 1
#ifdef BUILD_ASYNC_PRELOAD
typedef struct _Eva... | 2.015625 | 2 |
2024-11-18T18:23:51.698892+00:00 | 2020-10-22T00:12:40 | 0c42b582b2c23a54f916d29e17da929f00a99c86 | {
"blob_id": "0c42b582b2c23a54f916d29e17da929f00a99c86",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-22T00:12:40",
"content_id": "380ab92cc2d90667002ae5b41db0b0ee25d7269e",
"detected_licenses": [
"MIT"
],
"directory_id": "d1ca7338307510a22b8c2671835e915ee33e3c4b",
"extension": "h"... | stackv2 | #pragma once
#include "./card.h"
typedef struct HandCard HandCard;
typedef struct Hand Hand;
struct HandCard
{
Card *carta;
HandCard *prox;
void (*libera)(HandCard *self);
};
struct Hand
{
HandCard *primeiro;
HandCard *ultimo;
int quantidade;
int total;
void (*libera)(Hand *self);
... | 2.1875 | 2 |
2024-11-18T18:23:51.884389+00:00 | 2022-01-02T13:23:35 | 6cad3007c1c820db505461febe665c0df15bc0c5 | {
"blob_id": "6cad3007c1c820db505461febe665c0df15bc0c5",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-02T13:25:25",
"content_id": "2d4d8fe5bbd274b99dc2bce43469fd9463da7d03",
"detected_licenses": [
"MIT"
],
"directory_id": "02bad19c91ef6cd1927701f04f8186d1cd5228d8",
"extension": "c"... | stackv2 | #include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include "renard_phy_s2lp_hal.h"
#include "renard_phy_s2lp_rc_profiles.h"
#include "renard_phy_s2lp.h"
#include "s2lp_registers.h"
#include "conf_hardware.h"
#include "fifo_symbols.h"
/*
* Modulation type, see register table in datashe... | 2.375 | 2 |
2024-11-18T18:23:51.953398+00:00 | 2019-08-07T21:42:04 | 4062a42325a0c7411f658ae8d628b705422ec1d9 | {
"blob_id": "4062a42325a0c7411f658ae8d628b705422ec1d9",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-07T21:42:04",
"content_id": "b861c379fc085ce1d0c608b56f321603ace3eabc",
"detected_licenses": [
"MIT"
],
"directory_id": "8d5fa203e3c875ed2948a76a0d8793b625740f18",
"extension": "c"... | stackv2 | /**
* @file client_thread.c
*
* @brief Fonctions permettant de gérer les clients par threads.
*
* Capture les données transmis dans le canal de communication et répond en
* adéquation avec le contexte de données.
*
* @author Marc NGUYEN
* @author Thomas LARDY
* @date 20 Mai 2019
*/
#include "client_thread.h... | 2.609375 | 3 |
2024-11-18T18:23:52.034321+00:00 | 2014-09-24T11:06:24 | 5c3591b2b77437d55e9a10de4efc1fd232b61f8b | {
"blob_id": "5c3591b2b77437d55e9a10de4efc1fd232b61f8b",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-24T11:06:24",
"content_id": "4abe92a1367d79168fe6e7234c1bf2ddbbc18510",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "5b35a5c239a21d9b1b4e13b7a3530066ce451118",
"extens... | stackv2 | /****************************************************************************
* Copyright (c) 2012-2013, the Konoha project authors. All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistr... | 2.15625 | 2 |
2024-11-18T18:23:52.225476+00:00 | 2018-04-06T20:30:51 | e5db8f62057b346b20694ce487ec75292041f472 | {
"blob_id": "e5db8f62057b346b20694ce487ec75292041f472",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-06T20:30:51",
"content_id": "9012d7aa6b5d446eaf6c1634b083e0ee9b52581c",
"detected_licenses": [
"MIT"
],
"directory_id": "040e84dd431b7f7969c4877ea8b2b50f45fa89ff",
"extension": "c"... | stackv2 | #include <unistd.h>
#include <setjmp.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
typedef struct {
struct timeval time;
uint64_t tick;
char place[256];
} time_keeper_t;
enum {
TK_START,
TK_post_sigaction,
TK_MAX
} tk_enum_types;
#define TK_STR(x... | 2.765625 | 3 |
2024-11-18T18:23:53.694881+00:00 | 2018-02-02T21:32:01 | 3252ff20a5a630008a4e3135a412a2f51ed03c11 | {
"blob_id": "3252ff20a5a630008a4e3135a412a2f51ed03c11",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-02T21:32:01",
"content_id": "b88fd39c4f3730682fb34c517f4afeb12eb7d8d5",
"detected_licenses": [
"MIT"
],
"directory_id": "9191ee1300af2ed93cd8d4aa0d67c755dad5c020",
"extension": "c"... | stackv2 | /* Copyright (c) 2010-2018 the corto developers
*
* 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, mer... | 2.25 | 2 |
2024-11-18T18:23:53.752793+00:00 | 2019-05-18T13:46:54 | aedc633b81fc152eee640ca423d803141be2d13b | {
"blob_id": "aedc633b81fc152eee640ca423d803141be2d13b",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-18T13:46:54",
"content_id": "2415b582e0d3fd1b4f8a2d4d90faeb119c5a803f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d17a6d263cb0739f40e524d9005958501b7d6014",
"extensio... | stackv2 | /*
* Write a routine ungets(s) that will push back an entire string onto the
* input. Should ungets know about buf and bufp, or should it just use
* ungetch?
*/
#include <string.h>
void ungets(char s[])
{
int len = strlen(s);
void ungetch(int);
while (len > 0)
ungetch(s[--len]);
s[0] = '\0';
}
| 2.984375 | 3 |
2024-11-18T18:23:53.839343+00:00 | 2015-04-26T16:26:57 | d00a665da781218a6236f54361dbbbac79b0f900 | {
"blob_id": "d00a665da781218a6236f54361dbbbac79b0f900",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-26T16:26:57",
"content_id": "cca20da2194f009a877d9535eb3ed0a4f4f11158",
"detected_licenses": [
"MIT"
],
"directory_id": "e2ad93fe44be4b7e09a122991cdb18a0707677e0",
"extension": "c"... | stackv2 | #define COMPILE_TESTS /*
cc -g -Wall -pedantic -std=c11 -DWITH_TESTS -o ${0%.*}_tests ${0}
echo Running tests for ${0}
valgrind --tool=memcheck --leak-check=full ./${0%.*}_tests
exit
*/
#include "queue.h"
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
/* /!\ Number of consecutive operations withous reall... | 2.515625 | 3 |
2024-11-18T18:23:54.311903+00:00 | 2023-08-09T18:19:32 | 36f8ec4ff1dcf4fd6b71e4f82bae4aaccc4db9f6 | {
"blob_id": "36f8ec4ff1dcf4fd6b71e4f82bae4aaccc4db9f6",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-09T18:19:32",
"content_id": "0bf2b412bdcd061ea4945adc858810dec5ad4967",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a4a96286d9860e2661cd7c7f571d42bfa04c86cf",
"extensio... | stackv2 | /*
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "soc/soc_caps.h"
#include "soc/clk_tree_defs.h"
#ifdef __cplusplus
extern "C" {
#endif
#if SOC_LCD_I80_SUPPORTED || SOC_LCD_RGB_SUPPORTED
/**
* @brief LCD clock source
*/... | 2.15625 | 2 |
2024-11-18T18:23:54.474177+00:00 | 2012-01-31T23:06:56 | 02f90c8f94b26ea5cb69be1c60b978d1858a08fa | {
"blob_id": "02f90c8f94b26ea5cb69be1c60b978d1858a08fa",
"branch_name": "refs/heads/master",
"committer_date": "2012-01-31T23:06:56",
"content_id": "9b5d3b749b2e8bf1e61da1ad411351ddeaf4dc81",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e7b7a8045acabfca09094eac4bdd9ebca96cb650",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Add enough characters to get us into a new page
* I've used 5000 below, assuming a 4 KB page.
*/
const char *str =
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
... | 2.625 | 3 |
2024-11-18T18:23:54.561061+00:00 | 2018-10-12T14:16:01 | 3b89778d51debf642d5df28719e36d25e906e80f | {
"blob_id": "3b89778d51debf642d5df28719e36d25e906e80f",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-12T14:16:01",
"content_id": "1c7ca9f5ec4119062aa7e84e648cd9155eee0bb2",
"detected_licenses": [
"MIT"
],
"directory_id": "ae737fa18039529518ce68957ba656639923912c",
"extension": "h"... | stackv2 | #include "CCEL_FUNCTOR.h"
//Monad 应该采用依赖注入来解决
/*
monad{
值类型 -> val
}
ret->this
fmap function 检查 function returntype == val type
if(__builtin_types_compatible_p(typeof(ret),typeof(val))){
this->functor->value = f.call(value)
*/
#define monad_sign(name,type) struct monad_##name{\
... | 2.453125 | 2 |
2024-11-18T18:23:54.895001+00:00 | 2018-04-09T16:48:42 | 92bcc93572cbe33707efbf31520e9fc8985d194e | {
"blob_id": "92bcc93572cbe33707efbf31520e9fc8985d194e",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-09T16:48:42",
"content_id": "d29578cd2c57869208772115b9b13573cdf34a03",
"detected_licenses": [
"MIT"
],
"directory_id": "188f6a20ff8ca149902f986640d9eed88b7b8879",
"extension": "h"... | stackv2 |
int random_value_filler (int min, int max); | 2.09375 | 2 |
2024-11-18T18:23:55.735710+00:00 | 2017-11-05T07:22:06 | d951b87de10e98c8750860abdbd70fa14a4e66a8 | {
"blob_id": "d951b87de10e98c8750860abdbd70fa14a4e66a8",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-05T07:22:06",
"content_id": "d2a0943d1e76dcd602e5d776b382e34df9b48ac9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "39dc08fb0a3439f4813be99acc953b867e4b9e83",
"extensio... | stackv2 | /*
* Copyright 2017 Sreejith Krishnan R
*
* 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... | 2.078125 | 2 |
2024-11-18T18:23:56.628965+00:00 | 2016-10-17T02:46:24 | d68b1ae54db1db869fc8b8ca247fdfe9fe716712 | {
"blob_id": "d68b1ae54db1db869fc8b8ca247fdfe9fe716712",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-17T02:46:24",
"content_id": "8cca7f78249883995accadaace62e9416a7f8e69",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c187413c1e8f845cf98f9e370fb79c636de2d6b6",
"extensio... | stackv2 | #include <stdio.h>
#include <assert.h>
#include "clist.h"
int clist_create_spec(){
clist_t *clist = clist_create();
int pass = 0;
pass = (clist == clist->prev);
pass = (clist == clist->next);
if (pass) {
printf("clist_create() specification pass!\n");
} else {
printf("clist_create() specification fail!\n");... | 3.0625 | 3 |
2024-11-18T18:23:56.732608+00:00 | 2020-07-21T05:00:06 | 0b56acaa56558251757bb38f0853db938a176001 | {
"blob_id": "0b56acaa56558251757bb38f0853db938a176001",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-21T05:00:06",
"content_id": "a7e98915c42b2f5ab0c6568a9934437d05e17bdf",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a3f8d698bdfdd6877c394c6881520c18b36a3e30",
"extens... | stackv2 | /**
* Apple Keyboard Bridge https://github.com/andantissimo/Apple-Keyboard-Bridge
*/
#pragma once
#include <shellapi.h>
#include <setupapi.h>
#include <mmsystem.h>
#include <wbemidl.h>
#ifdef UNICODE
#define WINAPI_SUFFIX "W"
#else
#define WINAPI_SUFFIX "A"
#endif
#ifdef NDEBUG
#ifdef RtlZeroMemory
#undef RtlZeroM... | 2.015625 | 2 |
2024-11-18T18:24:04.599805+00:00 | 2020-09-07T14:12:25 | 6b06364c84eed4ab002f43daeedce018dd160578 | {
"blob_id": "6b06364c84eed4ab002f43daeedce018dd160578",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-07T14:12:25",
"content_id": "0e44a84acd664bf975fa42b9a61bcca3939ff6f8",
"detected_licenses": [
"MIT"
],
"directory_id": "7a7d95bdbd3601b78dd4530a21d687f959f25499",
"extension": "c"... | stackv2 | #include <proto/exec.h>
#include <exec/resident.h>
#include <exec/errors.h>
#include <libraries/dos.h>
#if DEBUG
#include <clib/debug_protos.h>
#endif
#define STR(s) #s /* Turn s into a string literal without expanding macro definitions (however, \
if invoked from a macro, macro argumen... | 2.109375 | 2 |
2024-11-18T18:24:04.755295+00:00 | 2023-07-30T21:41:41 | dab91064bf994f0ec5396783306df05256af405b | {
"blob_id": "dab91064bf994f0ec5396783306df05256af405b",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-30T21:41:41",
"content_id": "43e5ebbd7363b1b36e1dee11cd4bfb7a2c7070ac",
"detected_licenses": [
"Zlib"
],
"directory_id": "b7bbcad13472c7987ab9f644911c7bd4ef4458f0",
"extension": "c... | stackv2 | /* See LICENSE file for copyright and license details. */
#include <libgen.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tisp.h"
#ifndef TIB_DYNAMIC
# include "tibs.tsp.h"
tsp_include_tib(math);
tsp_include_tib(io);
tsp_include_tib(os);
tsp_include... | 2.4375 | 2 |
2024-11-18T18:24:05.005675+00:00 | 2013-10-03T00:48:01 | 8419bbc7e72bf3b59479b0e6d88c00d584312fa9 | {
"blob_id": "8419bbc7e72bf3b59479b0e6d88c00d584312fa9",
"branch_name": "refs/heads/master",
"committer_date": "2013-10-03T00:48:01",
"content_id": "1fa5b1ddcf16d41158e46c4d12aa84b5587c852f",
"detected_licenses": [
"MIT"
],
"directory_id": "8ab7eb3167971f6f6a6a5fc42e1c07d7721c077f",
"extension": "c"... | stackv2 | #include <stdio.h>
/* This little application uses structures and pointers
* to implement a simple linked list of characters.
*/
// Linked list node
struct node {
char value;
struct node *next;
};
int main(void) {
// Defining and linking nodes
struct node n1, n2, n3;
n1.value = 'G';
n1.next = &n2;
n2.v... | 4.0625 | 4 |
2024-11-18T18:24:05.175223+00:00 | 2022-05-13T00:38:02 | c9fa0494784cad4809968518c9e06a95ad919f48 | {
"blob_id": "c9fa0494784cad4809968518c9e06a95ad919f48",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-13T00:38:02",
"content_id": "1d97236a5e2cc56c44577ed9c084f2468abd452b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9c53eabf6e8fc1223124e0da8e8d2c051609f451",
"extensio... | stackv2 | #ifndef BCS_H
#define BCS_H
/*
The main bluetooth interrupt handler
*/
void bluetoothCoreInt_C();
/*
phy_status is a hardware register that changes within each BT clock cycle
It describes the current state of the BCS kernel
*/
extern uint32_t phy_status;
extern uint32_t phy_status_shadow;
#define HW_PHY_STATUS_RX_DON... | 2.03125 | 2 |
2024-11-18T18:24:06.934698+00:00 | 2020-01-16T05:19:14 | 120c1673af16dd873959fdc313ae4aec426c0294 | {
"blob_id": "120c1673af16dd873959fdc313ae4aec426c0294",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-16T05:19:14",
"content_id": "fa675d0a79460b938f07c832893b32c19211e6b4",
"detected_licenses": [
"MIT"
],
"directory_id": "5744f3195310765a0226d6f1944e5c5f351de6f4",
"extension": "h"... | stackv2 | #ifndef CBMP_H
#define CBMP_H
#include <Windows.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
typedef long LONG;
typedef unsigned char BYTE;
typedef unsigned int UINT;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef void* LPVOID;
/*typedef struct tagBITMAPFILEHEADER
{
WORD bfType;... | 2.4375 | 2 |
2024-11-18T18:24:07.086375+00:00 | 2021-11-29T16:45:28 | c175ccd2f70053479eb083ccb264cf48c0043dbe | {
"blob_id": "c175ccd2f70053479eb083ccb264cf48c0043dbe",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-29T16:45:28",
"content_id": "72ab16ec46f12062ff7168de39eebcac76ab024f",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "13419f0af7b8f78c5f6f58eb766c86ef8b0acde2",
"... | stackv2 | /* spi.c -- SPI driver for MicroDAQ device
*
* Copyright (C) 2013 Embedded Solutions
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#if (!defined MATLAB_MEX_FILE) && (!defined MDL_REF_SIM_TGT)
#include <stdio... | 2.203125 | 2 |
2024-11-18T18:24:07.413749+00:00 | 2018-04-23T21:23:41 | b6c1ca35198c942493d3ce23b62101d50c5beb42 | {
"blob_id": "b6c1ca35198c942493d3ce23b62101d50c5beb42",
"branch_name": "refs/heads/develop",
"committer_date": "2018-04-23T21:23:41",
"content_id": "a98bfe38f403a401b9cb10133b1d8e36a06b0f6f",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d",
"extension"... | stackv2 | /* *********************************************************************** */
/* *********************************************************************** */
/* DATFUNCS Date Functions Library */
/* *********************************************************************** */
/*
File Name : %M%
File Versio... | 2.484375 | 2 |
2024-11-18T18:24:07.499671+00:00 | 2016-12-03T18:46:27 | 70ad48b39832cb47737591f621226f06b1a60a59 | {
"blob_id": "70ad48b39832cb47737591f621226f06b1a60a59",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-03T18:46:27",
"content_id": "8baf4dc70f7d549ec0b9aeff883ece8a259ebe8d",
"detected_licenses": [
"MIT"
],
"directory_id": "9cf84a26731ace8e6717025d658ba0fad10193dd",
"extension": "c"... | stackv2 | #include "simulator.h"
#include <stdio.h>
#include <string.h>
long MISS;
long HIT;
struct Cache cache[INDEX_SIZE];
int init() {
MISS = 0;
HIT = 0;
int i;
for (i = 0; i < INDEX_SIZE; i++) {
cache[i].valid = 0;
cache[i].tag = 0;
cache[i].dirty = 0;
}
}
int calAddr(unsigned long addr, unsigned long ... | 2.671875 | 3 |
2024-11-18T18:24:07.654908+00:00 | 2019-09-21T22:46:29 | 77f5ee2b67a60d929d80c6311af85d0e7a8a8242 | {
"blob_id": "77f5ee2b67a60d929d80c6311af85d0e7a8a8242",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-21T22:46:29",
"content_id": "d5848d08212888ce09d78216c5b67b46af3f26ad",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a671414f8f624acfeb1db81a43a13ba1b780fc37",
"extens... | stackv2 | #pragma once
#include <sched.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
typedef void* pthread_t;
typedef void* pthread_key_t;
typedef void* pthread_once_t;
typedef void* pthread_mutex_t;
typedef void* pthread_attr_t;
typedef void* pthread_mutexattr_t;
typedef void* pthread_cond_t;
typedef void* pthread_spinlock_t;
type... | 2.265625 | 2 |
2024-11-18T18:24:08.571890+00:00 | 2022-10-31T14:09:32 | f38aadc15871d495e48faa4d318c787b4df9b1f3 | {
"blob_id": "f38aadc15871d495e48faa4d318c787b4df9b1f3",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-31T14:09:32",
"content_id": "1fb923d917dd741537a50377d4c8c391e348d543",
"detected_licenses": [
"MIT"
],
"directory_id": "f44dc231b8209c16d37b53da743d175e45382093",
"extension": "c"... | stackv2 | #include "exception_frame.h"
#include "dl_helpers.h"
#include "string.h"
#include "dwarf_decode.h"
#include "debug.h"
#include "unwind_internal.h"
#include <stdlib.h>
typedef uint8_t DW_EH_PE;
typedef struct
{
uint8_t version;
DW_EH_PE ehFramePtrEnc;
DW_EH_PE fdeCountEnc;
uint8_t tableEnc;
char content[];
}... | 2.140625 | 2 |
2024-11-18T18:24:09.399630+00:00 | 2017-03-18T14:33:41 | d9dc99162b6e601ab8452ad0faae0d6199a19a37 | {
"blob_id": "d9dc99162b6e601ab8452ad0faae0d6199a19a37",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-18T14:33:41",
"content_id": "378239135c7cf7f3f28439d395a63d7126982cc6",
"detected_licenses": [
"MIT"
],
"directory_id": "cea495976b7da90c28103a1fe9334683b828610e",
"extension": "h"... | stackv2 | /* See LICENSE for license details. */
/*
Module: meat_time.h
Description:
Time utility functions.
*/
/* Header file dependency */
#if !defined(INC_MEAT_OS_H)
#error include meat_os.h first
#endif /* #if !defined(INC_MEAT_OS_H) */
/* Reverse include guard */
#if defined(INC_MEAT_TIME_H)
#error include meat_t... | 2.203125 | 2 |
2024-11-18T18:24:09.584189+00:00 | 2017-11-22T18:20:47 | c9a31db77a0d236273475667e65b4007c468df2f | {
"blob_id": "c9a31db77a0d236273475667e65b4007c468df2f",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-22T18:20:47",
"content_id": "bb3b672c5912af6505b86242738279a85941573a",
"detected_licenses": [
"MIT"
],
"directory_id": "56aaa39ec1494256a1a6a827a9f26764cbffd86d",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2017 Jackson Gable
*
* This file is released under the MIT License.
*/
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include "../stack.h"
stack *test_stack_alloc(unsigned int);
void test_push(stack*, unsigned int, int*);
void test_peek(stack*, unsigned int, const int*);
void test_... | 3.078125 | 3 |
2024-11-18T18:24:09.946749+00:00 | 2021-09-13T00:13:23 | 39c3e06819ecd9e31dabd99f90040edeb1748226 | {
"blob_id": "39c3e06819ecd9e31dabd99f90040edeb1748226",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-13T00:13:23",
"content_id": "ee4528093eadaee1f468180ad7241ea5baf6bc6c",
"detected_licenses": [
"MIT"
],
"directory_id": "6ca55af63e69f0ebc629cd83e1a4717c9e46e01f",
"extension": "c",
... | stackv2 | /*Implemente um programa que recebe dois conjuntos de inteiros e imprima Contido se o primeiro conjunto está contido no segundo (todos os elementos do primeiro estão no segundo) ou Nao contido, caso contrário.*/
#include <stdio.h>
int main(){
int rod1, rod2, check =1;
scanf("%d", &rod1);
int vet1... | 4.09375 | 4 |
2024-11-18T18:24:10.113242+00:00 | 2014-05-20T09:40:07 | 9d9903a711a13e23cea8483d37d892c4433d2826 | {
"blob_id": "9d9903a711a13e23cea8483d37d892c4433d2826",
"branch_name": "refs/heads/master",
"committer_date": "2014-05-20T09:40:07",
"content_id": "ab9332f185031f409583b883e8ca55864c87ba78",
"detected_licenses": [
"MIT"
],
"directory_id": "7abbcd93acad650cfaf6c7681de33e46ed7328c5",
"extension": "c"... | stackv2 | /* DISTRIB.C - Procedures for handling distributions over numbers. */
/* Copyright (c) 2006 by Radford M. Neal and Peter Junteng Liu
*
* Permission is granted for anyone to copy, use, modify, or distribute this
* program and accompanying programs and documents for any purpose, provided
* this copyright notice is ... | 2.71875 | 3 |
2024-11-18T18:24:10.289859+00:00 | 2016-10-19T13:39:56 | 497274e73a2fcd06ae680c19399f2ce4874a236d | {
"blob_id": "497274e73a2fcd06ae680c19399f2ce4874a236d",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-19T13:39:56",
"content_id": "94b94bb1670b3d86a27a443b4a3a379f47069ab2",
"detected_licenses": [
"MIT"
],
"directory_id": "dd5a5b94ccae09dad287c47aeee6e13ebbf39eb2",
"extension": "c"... | stackv2 | #include <inttypes.h>
#include <ctype.h>
#include <avr/io.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include "UComMaster.h"
//Initializes the I/O pins, the interrupts and the system parameters
void ioinit (void)
{
//1 = output, 0 = input
DDRC |= WR | RD;
DDRC &= ~(RXF |... | 2.921875 | 3 |
2024-11-18T18:24:10.385420+00:00 | 2019-05-08T13:56:35 | 2b9a98fc432f6adafdbe4a43cf1c9b78654f7cb8 | {
"blob_id": "2b9a98fc432f6adafdbe4a43cf1c9b78654f7cb8",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-08T13:56:35",
"content_id": "10bca18f00c52d0a64f787720d85ba9074aa90e3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "183bffb8eb17f17b99d72386d13959ca31e99728",
"extensio... | stackv2 | /*
* Copyright (C) 2018 Tempow
*
* 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 i... | 2.140625 | 2 |
2024-11-18T18:24:10.531559+00:00 | 2017-01-08T08:30:01 | d96bf4b9ca1bc077be023176faef8db17aabdef3 | {
"blob_id": "d96bf4b9ca1bc077be023176faef8db17aabdef3",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-08T08:30:01",
"content_id": "e588edb3d90bc1f468a4f801e4d92e40f493a20e",
"detected_licenses": [
"MIT"
],
"directory_id": "aea9a9204444cf9cc807795eb8cbe48631fc83ce",
"extension": "h"... | stackv2 | #pragma once
#pragma once
#include <inttypes.h>
#include "Result.h"
#include "StringEx.h"
typedef struct
{
String key;
void *data;
uint32_t hash;
} BucketItem;
#define BUCKET_ITEM_INIT { STRING_INIT, NULL, 0 }
typedef struct
{
BucketItem** data;
size_t size;
size_t capacity;
} Bucket;
#defi... | 2.25 | 2 |
2024-11-18T18:24:10.595478+00:00 | 2015-07-21T07:52:56 | 4f08c9579631ef8fee46203ef8da0489668e06c0 | {
"blob_id": "4f08c9579631ef8fee46203ef8da0489668e06c0",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-21T07:52:56",
"content_id": "de637834ff73585cc75ad2e0e11d5d459cb14e73",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "3b8b51267a245c28f9215fe5829770ef1141cced",
"extens... | stackv2 | #ifndef SR_BUF_H_
#define SR_BUF_H_
/*
* sham database
* sphia.org
*
* Copyright (c) Dmitry Simonenko
* BSD License
*/
typedef struct srbuf srbuf;
struct srbuf {
char *reserve;
char *s, *p, *e;
};
static inline void
sr_bufinit(srbuf *b)
{
b->reserve = NULL;
b->s = NULL;
b->p = NULL;
b->e = NULL;
}
stati... | 2.59375 | 3 |
2024-11-18T18:24:12.018242+00:00 | 2021-08-10T18:37:15 | 32637c26f307f9a68ca220bdd5d7e34673bcb7d1 | {
"blob_id": "32637c26f307f9a68ca220bdd5d7e34673bcb7d1",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-10T18:37:15",
"content_id": "78a00030da0fbbec180f9a6f70f99eae583595fa",
"detected_licenses": [
"MIT"
],
"directory_id": "9c45419c77192a2002582472abca377dd502a412",
"extension": "c",
... | stackv2 | /* u8g2emu.c
MIT License
Copyright (c) 2020 Fabian Herb
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, ... | 2.28125 | 2 |
2024-11-18T18:24:12.184427+00:00 | 2021-09-10T13:58:23 | 7962b44bc2e62b8f5e732ee88620fa729ddd8a51 | {
"blob_id": "7962b44bc2e62b8f5e732ee88620fa729ddd8a51",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-10T13:58:23",
"content_id": "f037660d1d2b5e2e435de8267fdb0bfcab390701",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ff654e744500f5621b06690675d67ac12a590156",
"extension"... | stackv2 | // 8. perform to subtract Two Float number
#include <stdio.h>
int main()
{
float var1 , var2 ;
scanf("%f%f", &var1, &var2);
printf("%f",var2 - var1);
return 0;
} | 3.15625 | 3 |
2024-11-18T18:24:12.430979+00:00 | 2022-03-20T17:53:25 | 07c16f8156619e61656c365f6743ac6da1196452 | {
"blob_id": "07c16f8156619e61656c365f6743ac6da1196452",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-20T17:53:25",
"content_id": "2b8e4e01a5037b40f8e27de7f28828c57aaebb1d",
"detected_licenses": [
"MIT"
],
"directory_id": "15fbb35cb68bd707f6a1eee9485e2ee37fc52876",
"extension": "h"... | stackv2 | #ifndef PWM_H
#define PWM_H
#ifdef __cplusplus
extern "C" {
#endif
#include <ch.h>
#include <hal.h>
/// Mask to select channel number, 1 indexed
#define PWM_CHANNEL(x) (1 << (x - 1))
/** Low level init of PWM channels for a timer.
*
* @param [in] tim Address of the timer to use, example STM32_TIM1.
* @param [in]... | 2.4375 | 2 |
2024-11-18T18:24:12.550782+00:00 | 2019-07-22T22:04:51 | 01b707b186e271dc2ca20978f8e7cbe6be608a0e | {
"blob_id": "01b707b186e271dc2ca20978f8e7cbe6be608a0e",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-22T22:04:51",
"content_id": "cec291d7a56b94e70379bd784f6e46c50832a051",
"detected_licenses": [
"MIT"
],
"directory_id": "5116738ab0245a977eb8682f49b9350c08cc50fc",
"extension": "c"... | stackv2 | /*
------------------
Julian Stoev 11B #29
------------------
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#define TABLE_SIZE 10
#define MAX_CAKES 100
pthread_mutex_t count_mutex;
pthread_cond_t count_threshold_cv;
int producedCake = 0;
int Table[TABLE_SIZE] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
void ... | 3.21875 | 3 |
2024-11-18T18:24:12.707075+00:00 | 2013-03-03T20:46:09 | 58e62549e16608b6bad0fa320ed9e34e4994f4dc | {
"blob_id": "58e62549e16608b6bad0fa320ed9e34e4994f4dc",
"branch_name": "refs/heads/master",
"committer_date": "2013-03-03T20:46:09",
"content_id": "434c551b22191608ebf3b5356ad3e9252221ab5b",
"detected_licenses": [
"BSD-2-Clause-Views",
"BSD-3-Clause"
],
"directory_id": "d92af1ec0ceb3fa7cd1007da58... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <xcb/xcb.h>
#include <xcb/xcb_event.h>
#include "settings.h"
#include "helpers.h"
#include "window.h"
#include "types.h"
#include "bspwm.h"
#include "ewmh.h"
#include "tree.h"
bool is_leaf(node_t *n)
{
return (... | 2.65625 | 3 |
2024-11-18T18:24:13.223335+00:00 | 2020-09-07T15:41:51 | e4fd0e0a3c2749ec891132e32c6a4256756f3c56 | {
"blob_id": "e4fd0e0a3c2749ec891132e32c6a4256756f3c56",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-07T15:41:51",
"content_id": "507adb3e812bcc5668d4b5a7772438a264508f4e",
"detected_licenses": [
"MIT"
],
"directory_id": "a5c40eacc7be198fd62b14353171e683c9d1559d",
"extension": "c"... | stackv2 | /**
******************************************************************************
* @file : oled.c
* @brief : 0.96寸 oled 控制函数
******************************************************************************
* OLED 使用 I2C
* 连接在 I2C1 上
*****************************************************... | 2.6875 | 3 |
2024-11-18T18:24:13.284952+00:00 | 2020-06-26T01:27:05 | 6cf87b68df7e88d00b0898ac03377110a72bb217 | {
"blob_id": "6cf87b68df7e88d00b0898ac03377110a72bb217",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-26T01:27:05",
"content_id": "a4a9960253b4276d866d2e82c1066e062a5c4cf5",
"detected_licenses": [
"MIT"
],
"directory_id": "e241d4f13c90bdf51502250fdfd9f031b2fa208d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdint.h>
#include "lalloc.h"
#include "util.h"
#define SIZE 20
#define ROUNDS 1000
int main() {
uint16_t** a = malloc(sizeof(uint16_t*) * ROUNDS);
uint16_t* b = malloc(sizeof(uint16_t*) * ROUNDS);
b = lalloc(2);
lfree(b);
uint64_t elapsedal = 0;
uint64_t elapsed... | 2.875 | 3 |
2024-11-18T18:24:13.410360+00:00 | 2022-10-04T19:45:06 | e8fecdfaad97ac31a562ca35b5f52412a3366cca | {
"blob_id": "e8fecdfaad97ac31a562ca35b5f52412a3366cca",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-04T19:45:14",
"content_id": "e7c1025321ad97f2b3a5c34448d0744f665c6af3",
"detected_licenses": [
"MIT"
],
"directory_id": "b853af2193c319713248609adecdec4cd9e3e7b8",
"extension": "c"... | stackv2 | volatile int breakpoint_count = 0;
volatile int breakpoint_on_me() {
breakpoint_count++;
}
int main() {
int x = 1337;
for (;;) {
x += 1;
if (x == 7331) {
breakpoint_on_me();
x = 1337;
}
}
return 0;
}
| 2.125 | 2 |
2024-11-18T18:24:13.500673+00:00 | 2021-05-25T19:00:38 | 3e211978a89f83d1580675e94847b64c1450afe3 | {
"blob_id": "3e211978a89f83d1580675e94847b64c1450afe3",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-25T19:00:38",
"content_id": "4edc07397087d2c80f27bcb28c0a392709e82479",
"detected_licenses": [
"Apache-2.0",
"MIT"
],
"directory_id": "1f47f20263d92cf3209de34ac229ccce22eb36f8",
... | stackv2 | /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0"
*
* Written by Nir Drucker, Shay Gueron and Dusan Kostic,
* AWS Cryptographic Algorithms Group.
*/
#include "decode.h"
#include "utilities.h"
#define R_QWORDS_HALF_LOG2 UPTOPOW2(R_QWORDS / 2)
_INLINE_ vo... | 2.34375 | 2 |
2024-11-18T18:24:13.623500+00:00 | 2020-12-12T14:32:07 | e8da3c682a8a58c5299e0a3ff708be6ed1109663 | {
"blob_id": "e8da3c682a8a58c5299e0a3ff708be6ed1109663",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-12T14:32:07",
"content_id": "1a1c1216dd939dc1d0184f8dc0a6977873f375bd",
"detected_licenses": [
"MIT"
],
"directory_id": "f29c6dda3c015de4db6ce1b94ac9570d6f17c271",
"extension": "c",
... | stackv2 | #include "bytecode.h"
#include <err.h>
#include <stdlib.h>
#include <string.h>
static void *xmalloc(size_t size)
{
void *ret = malloc(size);
if (ret == NULL)
err(1, NULL);
return ret;
}
static void *xrealloc(void *ptr, size_t size)
{
void *ret = realloc(ptr, size);
if (ret == NULL)
... | 3 | 3 |
2024-11-18T18:24:14.336008+00:00 | 2017-02-11T17:26:06 | 721336c8b782ee2c881e39b90243bdee201eba20 | {
"blob_id": "721336c8b782ee2c881e39b90243bdee201eba20",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-11T17:26:06",
"content_id": "2a5d8138f8c44e40efc109219146d9f7a1998fae",
"detected_licenses": [
"MIT"
],
"directory_id": "41c331e5e27749a14202c14eae12eacdadfddd7c",
"extension": "c"... | stackv2 | /*this files holds the functions to check the input-string for special characters*/
//includes
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "bold.h"
void checkForChars(char* string, FILE* document, File* style){
int i, i2;
char class[1000];
char helpline[10000];
if(string[0]=='b'&&s... | 2.625 | 3 |
2024-11-18T18:24:14.530064+00:00 | 2021-06-19T02:52:38 | cb78e37ab71be6594b548f645e778d6098b87a71 | {
"blob_id": "cb78e37ab71be6594b548f645e778d6098b87a71",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-19T02:52:38",
"content_id": "291dda27a25cde0b77bdc0e807e096bc377206dd",
"detected_licenses": [
"MIT"
],
"directory_id": "0b83c5073c5b5016492d37795a8d8131d5be78c6",
"extension": "c",
... | stackv2 | #include <stdio.h>
int ft_str_is_numeric(char *str);
int main(void)
{
char str[5] = "";
printf("%d", ft_str_is_numeric(str));
}
| 2.3125 | 2 |
2024-11-18T18:24:14.603052+00:00 | 2020-12-18T23:25:18 | 738a366a8d790d7fe483f602c63384ac3d48d4df | {
"blob_id": "738a366a8d790d7fe483f602c63384ac3d48d4df",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-18T23:25:18",
"content_id": "a774356a6c7d0cbef30b03d5b3e8f2bf77baf5db",
"detected_licenses": [
"ISC"
],
"directory_id": "b823a056ea7940be3870377bf36e828d4512b2ef",
"extension": "c"... | stackv2 | /* ISC license. */
#include <string.h>
#include <utmps/utmpx.h>
void utmps_utmpx_unpack (char const *s, struct utmpx *b)
{
memcpy(b, s, sizeof(struct utmpx)) ;
b->ut_user[UTMPS_UT_NAMESIZE - 1] = 0 ;
b->ut_id[UTMPS_UT_IDSIZE - 1] = 0 ;
b->ut_line[UTMPS_UT_LINESIZE - 1] = 0 ;
b->ut_host[UTMPS_UT_HOSTSIZE - 1... | 2.03125 | 2 |
2024-11-18T18:24:15.491422+00:00 | 2019-09-24T02:33:20 | 5abbc5d4a4c671bcf6ebb32baf2da6f1a026d90e | {
"blob_id": "5abbc5d4a4c671bcf6ebb32baf2da6f1a026d90e",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-24T02:33:20",
"content_id": "e09448363e8f548e3727a4759c3ac8707fc17d3f",
"detected_licenses": [
"MIT"
],
"directory_id": "8b90166a4a69d7a841f05518dfae60633d689176",
"extension": "c"... | stackv2 | #include <stdio.h>
#define MAXLINE 20
#define TAB_STOP_SIZE 4
/*
Since the tab stop size should never change once it's running, it should
be a symbolic constant.
[A][\t][C][D][\0][?]
0 1 2 3 4 5
becomes:
| | | (ticks denote tab stops)
[A][ ][ ][ ][C][D][\0][?]
0 1 2 3 4 5 6 7... | 3.390625 | 3 |
2024-11-18T18:24:15.623375+00:00 | 2014-11-11T17:07:19 | 0536fce930a4674d33102553a4a552d2c019587e | {
"blob_id": "0536fce930a4674d33102553a4a552d2c019587e",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-11T17:07:19",
"content_id": "648ea59319529b121967c02a4f33e988ea715514",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "bb7e6ea99826db1db6eab55e68ae5b2faca4fb15",
"extens... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <signal.h>
#include "drv_summa.h"
#include "summa_child.h"
int running = 1;
static void catch_exit(int signo) {
running = 0;
}
int main(int argc, char** argv) {
char *dev_path = 0;
char *resolution_code = 0;
int daemonize ... | 2.484375 | 2 |
2024-11-18T18:24:15.738640+00:00 | 2022-11-10T15:37:41 | 11496465d7a9da910cf4308eebc6be37301881a1 | {
"blob_id": "11496465d7a9da910cf4308eebc6be37301881a1",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-10T15:37:41",
"content_id": "17634f42e119dfdcf2ebe1b4c29fcab3b270989a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "694267d8efa0f6b961f4df339c99d5c36a6f093d",
"extensio... | stackv2 | /* ************************************************************************** */
/* */
/* :::::::: */
/* parse_redir.c :+: :+: ... | 2.4375 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.