added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T22:25:41.843946+00:00 | 2017-12-09T09:02:08 | c512dba3726d48bc204df88d8c32189678b66867 | {
"blob_id": "c512dba3726d48bc204df88d8c32189678b66867",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-09T09:02:08",
"content_id": "0d3f0951894192dc06db1d50d7bee2325067a737",
"detected_licenses": [
"MIT"
],
"directory_id": "703320aa14a4d7c4f8638df5a65e388bde8330bc",
"extension": "c"... | stackv2 | #include "mex.h"
#ifdef _OPENMP
#include <omp.h>
#endif
#define INFITY 10e10
#define max(a,b) ( (a>b)?a:b )
#define min(a,b) ( (a<b)?a:b )
#define DEBUG 0
/*
* Find max and min vertex values.
*
* Usages:
* [fmax, fmin] = vertex_extreme(Kv, VToE, fmean)
*/
void mexFunction(int nlhs, mxArray *plhs[],
int nrh... | 2.484375 | 2 |
2024-11-18T22:25:42.184039+00:00 | 2017-10-11T15:07:19 | a4a822c835c8b305e836d234a6de1fdceeba9206 | {
"blob_id": "a4a822c835c8b305e836d234a6de1fdceeba9206",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-11T15:07:19",
"content_id": "b670139e0c970e9601da428dbac2cf8fda81bd92",
"detected_licenses": [
"MIT"
],
"directory_id": "a8518e223b82b8b5df6168e0bd6598d178e52300",
"extension": "c"... | stackv2 | //#define CONF_USEIPV6
#include <bgbnet.h>
// #ifdef linux
#if defined(linux) || defined(__EMSCRIPTEN__)
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <errno.h>
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 64
#endif
... | 2.390625 | 2 |
2024-11-18T22:25:42.589959+00:00 | 2022-08-24T08:26:13 | a5b414495e3f994fdbd14b6b188991a5468c8666 | {
"blob_id": "a5b414495e3f994fdbd14b6b188991a5468c8666",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-24T08:45:13",
"content_id": "dc37dada6b0d707f16d427ff9e5be89c92e77d8e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8aa62ead9aa06e286f88b71ab93f9b960458a0ed",
"extensio... | stackv2 | /*
* Copyright (C) 2016-2019 Alibaba Group Holding Limited
*/
#include "ls_hal.h"
#include "md5.h"
#include "sha1.h"
#include "sha256.h"
#include "sm3.h"
int ls_hal_md5_get_size(void)
{
int size = sizeof(impl_md5_ctx_t);
return size;
}
int ls_hal_md5_init(void *ctx)
{
impl_md5_ctx_t *impl_ctx;
if ... | 2.4375 | 2 |
2024-11-18T22:25:42.988145+00:00 | 2020-07-19T05:28:53 | 1b469210c70d7bce46ceada4c5e2d6fb0542f70e | {
"blob_id": "1b469210c70d7bce46ceada4c5e2d6fb0542f70e",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-19T05:28:53",
"content_id": "22aa910450f923fac2b5c6aa39bf06161654406b",
"detected_licenses": [
"Unlicense"
],
"directory_id": "e259867303b525e579bcd96605b19b9c6261de50",
"extension... | stackv2 | #include "libfchucker.h"
#include "memcard.h"
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "util.h"
u8 Slot1CharacterNames[32 * 3];
u8 Slot2CharacterNames[32 * 3];
u32 Slot1CharacterFlags = 7;
u32 Slot2CharacterFlags = 7;
u8 * SourceInv... | 2.359375 | 2 |
2024-11-18T22:25:43.100587+00:00 | 2023-08-22T17:23:00 | fab98d5a7e9916bc3e001d49493c4c2dd39cad87 | {
"blob_id": "fab98d5a7e9916bc3e001d49493c4c2dd39cad87",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-22T17:23:46",
"content_id": "9817e265e44921adb304e78b45f3c6713b98c14e",
"detected_licenses": [
"MIT"
],
"directory_id": "3a4f120f3211a1482b8ba826f4922fa741c5586e",
"extension": "c"... | stackv2 | /******************************************************************************/
/* */
/* main.c -- PmodAD1 Example Project */
/* ... | 2.171875 | 2 |
2024-11-18T22:25:43.242587+00:00 | 2017-04-03T14:04:11 | dbe76d8de4fdd9ae24e60dd77ad744391e739de0 | {
"blob_id": "dbe76d8de4fdd9ae24e60dd77ad744391e739de0",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-03T14:04:11",
"content_id": "fb6d977f580d9a3101aff5fde17898aaa5d8ed93",
"detected_licenses": [
"MIT"
],
"directory_id": "9d121733df655028f133c08e0d8f040ffd5cb08d",
"extension": "c"... | stackv2 | #include <stdio.h>
int faktorial(int n){
if(n==0){
return 1;
} else {
return n*(faktorial(n-1));
}
}
int main(){
int N, M;
scanf("%d %d", &N, &M);
printf("%d\n", faktorial(N)/(faktorial(M)*faktorial(N-M)));
}
| 2.90625 | 3 |
2024-11-18T22:25:43.359610+00:00 | 2016-11-03T15:27:18 | 6e552f8651fbc9718312d721e484ab39548f74e4 | {
"blob_id": "6e552f8651fbc9718312d721e484ab39548f74e4",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-03T15:27:18",
"content_id": "00a434842e57abaa20b205641d4b4fd1c5162b04",
"detected_licenses": [
"MIT"
],
"directory_id": "4bad17ae6d01fccbbb20c1f6eb327070138f8cf4",
"extension": "c"... | stackv2 | /*
Note:
grep -R "printk" | wc -l
printk -> vprintk_emit(产生消息头) -> log_store 将消息先输出到环形缓冲区(128k)再输出到 -> {文件、虚拟设备、控制台}
*/
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
static int __init llaolao_init(void) { // static 表示文件内部函数;__init 编译器属性,为初始化函数;
int n = 0x1937;
// printk 在内... | 2.703125 | 3 |
2024-11-18T22:25:44.338862+00:00 | 2019-07-26T10:40:27 | 352718ffc26d281f234d3c910c93114d238be423 | {
"blob_id": "352718ffc26d281f234d3c910c93114d238be423",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-26T10:40:27",
"content_id": "a7509cadf6d4da92b8fcb1828d4c1560bb58fa4f",
"detected_licenses": [
"MIT"
],
"directory_id": "2725bed874de7d01173ecd2e2fd1f54d702c07dd",
"extension": "c"... | stackv2 | //
// graph.c
// Algorithms - Graph
//
// Created by YourtionGuo on 08/05/2017.
// Copyright © 2017 Yourtion. All rights reserved.
//
#include <stdlib.h>
#include <string.h>
#include "graph.h"
#include "list.h"
#include "set.h"
#pragma mark - Public
void graph_init(Graph *graph,
int (*match)(con... | 2.9375 | 3 |
2024-11-18T22:25:44.409983+00:00 | 2019-11-15T20:26:20 | 799254a219d664ee5553bf1ccbbef8c38674825b | {
"blob_id": "799254a219d664ee5553bf1ccbbef8c38674825b",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-15T20:26:20",
"content_id": "27dd12d2b12e584f797b165fc790232fdfa44396",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7c2ea365f20ff3eaec12b7a5289c21f345373d40",
"extens... | stackv2 | #ifndef CYGWIN
#include <../../nrnconf.h>
#endif
#if defined(MINGW)
#define CYGWIN
#endif
#include <windows.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "hoc.h"
#include "../mswin/extra/d2upath.c"
extern char* neuron_home;
extern char* neuron_home_dos;... | 2.15625 | 2 |
2024-11-18T22:25:44.689861+00:00 | 2019-01-07T02:55:23 | 4ee5439854526fc69ebcbebda658bb374823c4fa | {
"blob_id": "4ee5439854526fc69ebcbebda658bb374823c4fa",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-07T02:55:23",
"content_id": "a87456cac4fff349305bb60ddee36ffd923488f8",
"detected_licenses": [
"MIT"
],
"directory_id": "4501b4e1742fe915a3ed3aa722618d5b9755c50c",
"extension": "h"... | stackv2 | /*
* Timer0.h
*
* Created: 2016/2/17 10:26:03
* Author: WuhanStudio
*/
#include <avr/interrupt.h>
#ifndef TIMER0_H_
#define TIMER0_H_
void TC0_init()
{
SREG = 0x80; // 开总中断
TIMSK = 0x01; // 开T/C0溢出中断
TCNT0 = 99; // 初值
TCCR0 = 0x05; // T/C0预分频比1/1024
}
ISR(TIMER0_OVF_vect)
{
TCNT0 = 99;
// 终端程序
}
... | 2.109375 | 2 |
2024-11-18T22:25:45.186908+00:00 | 2022-10-01T06:42:20 | ccca0c269a9fb52bae1b936ac666c335ce868dcd | {
"blob_id": "ccca0c269a9fb52bae1b936ac666c335ce868dcd",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-01T06:42:20",
"content_id": "3ea45269eb76b25d8034e7d7b59560e40d799f1f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f25b3291fd7461124e38c399a27bad16d295021d",
"extensio... | stackv2 | #include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "../disk_wrapper_ioctl.h"
#define TEXT "hello great big world out there"
// Assumes that the hwm module is already inserted... | 2.578125 | 3 |
2024-11-18T22:25:45.256134+00:00 | 2021-10-01T10:46:14 | 8e2005c4fd9231ce001fd3e23635b8f967127dca | {
"blob_id": "8e2005c4fd9231ce001fd3e23635b8f967127dca",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-01T10:46:14",
"content_id": "8f39b897237407a24fe95fb029d53980a3b5730a",
"detected_licenses": [
"OpenSSL",
"BSD-2-Clause"
],
"directory_id": "e22e03d9761f5c6d581b5af2e77343e8ee4b201... | stackv2 | /*++
Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
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 ... | 2 | 2 |
2024-11-18T22:25:45.608128+00:00 | 2021-10-12T04:48:03 | c3d2bfce77a2d9d2325d73fe7f90f1e75a2859f6 | {
"blob_id": "c3d2bfce77a2d9d2325d73fe7f90f1e75a2859f6",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-12T04:48:03",
"content_id": "7fd46a86d6ba70047347d4c3f681c426e5e9af8f",
"detected_licenses": [
"MIT"
],
"directory_id": "fe661496350c49a400b739135bb0670913153628",
"extension": "c",
... | stackv2 | #include "nokia5110_LCD.h"
struct LCD_att lcd;
struct LCD_GPIO lcd_gpio;
/*----- GPIO Functions -----*/
/*
* @brief Set functions for GPIO pins used
* @param PORT: port of the pin used
* @param PIN: pin of the pin used
*/
void LCD_setRST(GPIO_TypeDef* PORT, uint16_t PIN){
lcd_gpio.RSTPORT = PORT;
lcd_gpio.RSTP... | 2.6875 | 3 |
2024-11-18T22:25:46.005613+00:00 | 2019-09-10T08:47:24 | 76497fbc84b8801726dfccfca86f1d63a3802ccf | {
"blob_id": "76497fbc84b8801726dfccfca86f1d63a3802ccf",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-10T08:47:24",
"content_id": "88205ae9b8f69e3299800e0841266d2bda4da59f",
"detected_licenses": [
"MIT"
],
"directory_id": "d2c54233a96b0de3137d320a86de726f87f6d3b4",
"extension": "c"... | stackv2 | #include "./sigmoid_layer_module.h"
#include "./../../../computing/sigmoid_layer_module.h"
#include "./standard_layer_define.h"
/*
코딩 실수 줄이기 위해 복사해서 사용하자!
struct Tensor* x = layer->inLayer[0]->out;
struct Tensor* dout = layer->outLayer[0]->dx;
*/
void cnn_sigmoid_layer_forward(struct cnn_Layer *layer, int index, int... | 2.03125 | 2 |
2024-11-18T22:25:46.141490+00:00 | 2017-04-01T19:08:30 | fe67f873577a7c686d0a1539c4b440d5cd80eeb4 | {
"blob_id": "fe67f873577a7c686d0a1539c4b440d5cd80eeb4",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-01T19:08:30",
"content_id": "a2b10406e4417b3c9fa33c54248cb04fffb0e2d2",
"detected_licenses": [
"MIT"
],
"directory_id": "68b8f66d3752f29ec8c39ef73faf02d907c80cb2",
"extension": "c"... | stackv2 |
#include <math.h>
double exp(double x)
{
asm("fldl2e ; fmulp ; f2xm1" : "+t"(x));
return x + 1;
}
float expf(float x)
{
asm("fldl2e ; fmulp ; f2xm1" : "+t"(x));
return x + 1;
}
long double expl(long double x)
{
asm("fldl2e ; fmulp ; f2xm1" : "+t"(x));
return x + 1;... | 2.515625 | 3 |
2024-11-18T22:25:46.298123+00:00 | 2016-10-30T04:48:22 | 537831a0bcb559df563962b6f66a81b54b6c71d3 | {
"blob_id": "537831a0bcb559df563962b6f66a81b54b6c71d3",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-30T04:48:22",
"content_id": "14e6ee4095e7a508f9ed379f20a239eb68301fda",
"detected_licenses": [
"MIT"
],
"directory_id": "1b2f1e2f6ff221beb9a792faa1ae0d859282bf24",
"extension": "c"... | stackv2 | #include <stdio.h>
void list_integers( void ) {
// (a) Print the introductory message
printf("The integer subrange from 63 to 333...\n");
// (b) Declare a counter variable of type int, and initialise it to 41
int counter = 63;
// (c) While the value of the counter is less than or equal to 342
whil... | 3.515625 | 4 |
2024-11-18T22:25:46.400968+00:00 | 2018-07-31T19:11:24 | ed5772ed2e487ea22e6ca80ea247fddfd9da2516 | {
"blob_id": "ed5772ed2e487ea22e6ca80ea247fddfd9da2516",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-31T19:11:24",
"content_id": "0298220fa154e1abccdb8a2e397ca42fd44928a9",
"detected_licenses": [
"MIT"
],
"directory_id": "81aebf0869aed8efec938e1119f6bdfe94ca0c52",
"extension": "c"... | stackv2 | /*
The MIT License (MIT)
Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus
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 limitatio... | 2.28125 | 2 |
2024-11-18T22:25:46.503091+00:00 | 2020-11-17T06:24:25 | f62829b14714369a143b61de716e248abe08768e | {
"blob_id": "f62829b14714369a143b61de716e248abe08768e",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-17T06:24:25",
"content_id": "3938da3c687979713acdfc32d5918ab895a5714e",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "7bb21a2f99110e528190463c4e62ba586da57d65",
"extensio... | stackv2 | // Inhibit gcc warnings on mixed declarations
#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
#include <string.h>
#include "directory.h"
// Initialize a directory for the given key size.
directory_t directory_init(size_t key_size, unsigned int initial_capacity) {
directory_tt* result = malloc(size... | 3.328125 | 3 |
2024-11-18T22:25:46.940354+00:00 | 2012-03-23T03:07:26 | 6d108f597b5eb64bd77e3faa399a7392e5c4c8fb | {
"blob_id": "6d108f597b5eb64bd77e3faa399a7392e5c4c8fb",
"branch_name": "refs/heads/master",
"committer_date": "2012-03-23T03:07:26",
"content_id": "03fb498dd2bd7c8ef0d167f8e8496096f1a8d647",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "c72cfd5592a51876459e9cf5047a07ac89502ba4",
"extens... | stackv2 |
/* This header file defines the external interface to the custom Scripting
** Language (TH) interpreter. TH is very similar to TCL but is not an
** exact clone.
*/
/*
** Before creating an interpreter, the application must allocate and
** populate an instance of the following structure. It must remain valid
** for t... | 2.3125 | 2 |
2024-11-18T22:25:47.143980+00:00 | 2013-01-22T02:21:38 | 5a818fc25caf79e4ac5693abe143e009c7520252 | {
"blob_id": "5a818fc25caf79e4ac5693abe143e009c7520252",
"branch_name": "refs/heads/master",
"committer_date": "2013-01-22T04:31:43",
"content_id": "3927163b6fe540029deb100522e524d2d487ff1a",
"detected_licenses": [
"MIT"
],
"directory_id": "42ecc6065d128db37645e119ab2b0d83fe08ecfc",
"extension": "c"... | stackv2 | /*
* Copyright 2007-2013 National ICT Australia (NICTA), Australia
*
* 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 us... | 2.109375 | 2 |
2024-11-18T22:25:47.232067+00:00 | 2023-02-16T11:27:40 | 094f99de31b14c4c2b5cc77cc2736e987ee6f5a2 | {
"blob_id": "094f99de31b14c4c2b5cc77cc2736e987ee6f5a2",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "5f8be73cf742f8d65d4c246d0599e4ab0ba54a91",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright (c) 2018 Nordic Semiconductor ASA
* Copyright (c) 2015 Runtime Inc
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <string.h>
#include <stdbool.h>
#include <zephyr/kernel.h>
#include <zephyr/fs/fs.h>
#include <zephyr/settings/settings.h>
#include "settings/settings_file.h"
#include "settings_... | 2.296875 | 2 |
2024-11-18T22:25:47.306904+00:00 | 2020-05-08T20:32:48 | 7a93b3323645d9d1dc12ccc7fe0c39b9d0b946a1 | {
"blob_id": "7a93b3323645d9d1dc12ccc7fe0c39b9d0b946a1",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-08T20:32:48",
"content_id": "eb8a3dee559f5b30eb41d6b4047da03e41bea251",
"detected_licenses": [
"MIT"
],
"directory_id": "b573d120637692f75b5e6787d49ddd282b1ce150",
"extension": "c"... | stackv2 | #include "urp.h"
#include <avr/pgmspace.h>
uint32_t urp_read_dword(URPTR ptr)
{
if(URP_IS_RAM(ptr))
return *(uint32_t *)URP_RAM_ADDR(ptr);
else /* if (URP_IS_PGM(ptr)) */
return pgm_read_dword(URP_PGM_ADDR(ptr));
}
| 2.28125 | 2 |
2024-11-18T22:25:47.546992+00:00 | 2016-04-29T22:05:57 | e68ee0e2c3f10fc95431f485346d962901b0f9fa | {
"blob_id": "e68ee0e2c3f10fc95431f485346d962901b0f9fa",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-29T22:05:57",
"content_id": "ba5ec93e09ac08052d931a27d60b124a817d7522",
"detected_licenses": [
"MIT"
],
"directory_id": "2d94fc12c3b4fdedbff8ca935350a5e67b697d6c",
"extension": "c"... | stackv2 | #ifndef FILTER_C_INCLUDED
#define FILTER_C_INCLUDED
#include "filter.h"
void filter_Init_EMA(EMAFilter *filter)
{
filter->alpha = 1.0;
filter->readIn = 0.0;
filter->output = 0.0;
filter->output_old = 0.0;
}
void filter_Init_DEMA(DEMAFilter *filter)
{
filter->alpha = 1.0;
filter->beta = 1.0;
filter->readIn = 0... | 2.90625 | 3 |
2024-11-18T22:25:47.620444+00:00 | 2015-09-01T17:20:51 | 7f15c56a9021c5b064d79adf237db31174f73055 | {
"blob_id": "7f15c56a9021c5b064d79adf237db31174f73055",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-01T17:20:51",
"content_id": "1563c1497ad79097f7d96763ce46b820ddecf503",
"detected_licenses": [
"MIT"
],
"directory_id": "d9c81ddbb827d45e72587ec81c0853e309dc263a",
"extension": "c"... | stackv2 | #ifdef DBG
#include "catena-DBG.c"
#else
#include "catena-BRG.c"
#endif
#include "hash.h"
void wrapper(const uint8_t lambda, const uint8_t garlic){
uint8_t x[H_LEN];
uint8_t hv[H_LEN];
uint8_t t[4];
uint8_t c;
//set values. compare to test-catena.c
uint8_t min_garlic = garlic;
uint8_t tweak_id = 0;
uint8_t ha... | 2.40625 | 2 |
2024-11-18T22:25:48.502224+00:00 | 2016-03-24T15:44:54 | cca3d56214750a6c738c795a7fca772c4938f0a7 | {
"blob_id": "cca3d56214750a6c738c795a7fca772c4938f0a7",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-24T15:44:54",
"content_id": "2d331a0304a65e178ed205a4730ca8b8a3adacce",
"detected_licenses": [
"MIT"
],
"directory_id": "742d5e783f56a59f5ac3c8f1098f005fd7acb4f9",
"extension": "c"... | stackv2 | #include <stdio.h>
void bubble_sort(int* collection, int length) {
int temp;
for (int _ = 0; _ < length; _++) {
for (int index=0; index < length - 1; index ++) {
if (*(collection + index) > *(collection + index + 1)) {
temp = *(collection + index);
*(collecti... | 3.421875 | 3 |
2024-11-18T22:25:48.956559+00:00 | 2023-04-08T01:37:00 | 4440946aa3a25a918cd3900ab2394327e0520a8c | {
"blob_id": "4440946aa3a25a918cd3900ab2394327e0520a8c",
"branch_name": "refs/heads/main",
"committer_date": "2023-04-08T01:37:10",
"content_id": "19947ac58da861e464e095351696816a4a7d91fa",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "6135301f6e393e7197b80307b1d0676505... | stackv2 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (C) 2003-2015 Brian Harring <ferringb@gmail.com>
#include <stdlib.h>
#include <diffball/defs.h>
#include <errno.h>
#include <string.h>
#include <diffball/adler32.h>
#include <diffball/defs.h>
#include <diffball/hash.h>
#include <diffball/bit-functions.h>
static off... | 2.171875 | 2 |
2024-11-18T22:25:49.233844+00:00 | 2015-09-27T07:20:09 | f304ad5c77e418980851b74c656cf0f745dabaa5 | {
"blob_id": "f304ad5c77e418980851b74c656cf0f745dabaa5",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-27T07:20:09",
"content_id": "24403b8d8bef55159a2adbabbed066ebc70f5310",
"detected_licenses": [
"MIT"
],
"directory_id": "862095e2a2af978eee66f5adf41c887370a9c1a6",
"extension": "c"... | stackv2 | #define _POSIX_C_SOURCE 200809L
#define _XOPEN_SOURCE 700
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <err.h>
#include <signal.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/reso... | 2.15625 | 2 |
2024-11-18T22:25:49.433573+00:00 | 2016-10-24T22:58:16 | 1266d0291fab079bfe073e66dafd05f639ad23a4 | {
"blob_id": "1266d0291fab079bfe073e66dafd05f639ad23a4",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-24T22:58:16",
"content_id": "537e84d625bf7dbad3c981690f6c7d54c4878190",
"detected_licenses": [
"MIT"
],
"directory_id": "fb79f501c7587e56c851a4a00af78c1ce3e61d2c",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2016 by Adrian Luna
* All Rights Reserved
*
* Author: - Adrian Luna
*
* Porpuse: Implementation of User interface
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "UI.h"
#include "hash_table.h"
#include "trace.h"
#include "memutils.h"
#include "console_utils.h"
#include ... | 2.5 | 2 |
2024-11-18T22:25:51.009829+00:00 | 2014-11-20T23:31:26 | f96ac7adb13b0043e0d8196996f3dedbcf1dba4e | {
"blob_id": "f96ac7adb13b0043e0d8196996f3dedbcf1dba4e",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-20T23:31:26",
"content_id": "4895444af8f4dea22966c925f30fa428d36559f2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dd8c4eb28509b81d19ef134807f2a03c15d55619",
"extensio... | stackv2 | /**
* Copyright 2013 Yahoo! Inc.
* 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 in writing, sof... | 2.59375 | 3 |
2024-11-18T22:25:51.255566+00:00 | 2023-08-10T09:04:44 | 56ebc16b6a144e0f5b8ee13d3a442fa16ecc22d9 | {
"blob_id": "56ebc16b6a144e0f5b8ee13d3a442fa16ecc22d9",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-10T09:04:44",
"content_id": "cb2241bb6011ee9fc9ceccd8f9646b496a1de66d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c6759b857e55991fea3ef0b465dbcee53fa38714",
"extensio... | stackv2 | /*
* Copyright (C) 2020 GreenWaves Technologies
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
*/
#include <stdint.h>
#include <stdio.h>
#include "AutoTilerLib.h"
#include "CNN_Generators.h"
void Cifar10Model(... | 2.140625 | 2 |
2024-11-18T22:25:51.677394+00:00 | 2022-08-31T06:40:22 | 8cb2e84d5e12559cd2bf5447a587773cbf883ccc | {
"blob_id": "8cb2e84d5e12559cd2bf5447a587773cbf883ccc",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-31T06:40:22",
"content_id": "7c9c1179b7561e39b94bbc7af6e23acec82e6d6c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "47ab431ac0664505946f10b2519e151efcd90d8e",
"extensio... | stackv2 | /* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
#include <sys/system_properties.h>
#include <android/log.h>
#include <string.h>
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO,"lishang",__VA_ARGS__)
JNIEXPORT jstring JNICALL
proGetSS
(JNIEnv *env, jclass clazz, jstring keyJ, js... | 2.109375 | 2 |
2024-11-18T22:25:52.005764+00:00 | 2020-06-23T12:00:06 | 905eae7d53f76328cdd823642873f19b6fc467a7 | {
"blob_id": "905eae7d53f76328cdd823642873f19b6fc467a7",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-23T12:00:06",
"content_id": "0227eda9344cf11f73cff11c08d45b62ba9c2ce6",
"detected_licenses": [
"MIT"
],
"directory_id": "773c3997c32e2ea9ac0991d233e385f03848cf22",
"extension": "h"... | stackv2 | #ifndef PILHA_H_INCLUDED
#define PILHA_H_INCLUDED
typedef struct pilhalivro PilhaLivro;
typedef struct nolivro NoLivro;
PilhaLivro* cria(void);
/* A função cria tem por objetivo criar uma pilha que irá representar uma pilha de livros,
* e em seguida retorna o endereço dessa pilha.
*/
void pushlivro(PilhaLivro *p, ch... | 2.46875 | 2 |
2024-11-18T22:25:52.223343+00:00 | 2019-11-18T04:59:20 | aad4fdbe602b82fd7b76f5c2129ba6104cffa1cb | {
"blob_id": "aad4fdbe602b82fd7b76f5c2129ba6104cffa1cb",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-18T04:59:20",
"content_id": "46aa2963d17d3318ceccd485439a34d90bc47a83",
"detected_licenses": [
"MIT"
],
"directory_id": "485f0f748a66d6b14c630823beb8dcfceabb45fd",
"extension": "c"... | stackv2 | #include "debugger.h"
#include "bus_internal.h"
typedef struct debugger_entry {
struct {
uint8_t breakpoint : 1;
uint8_t breakpoint_hit : 1;
};
} debugger_entry_t;
typedef struct debugger {
debugger_entry_t *entries;
bus_ref shared_bus;
struct {
bool enabled;
int d... | 2.40625 | 2 |
2024-11-18T22:25:52.298717+00:00 | 2020-12-04T12:32:10 | 3ebb4ffffbf42ef15e8e661862a6e9ffcf3b406c | {
"blob_id": "3ebb4ffffbf42ef15e8e661862a6e9ffcf3b406c",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-04T12:32:10",
"content_id": "f982c3adb513bc1e85382b713381bc3225f48dc2",
"detected_licenses": [
"Unlicense"
],
"directory_id": "c98cd0c51894606d0ef498fea4f121b071eb4662",
"extension... | stackv2 | #include "server.h"
char *message_pack_send(t_message *Message, int status) {
json_t *users_array, *msg_array, *users, *msg, *json;
char *result;
users = json_object();
msg = json_object();
users_array = json_array();
msg_array = json_array();
json = json_object();
json_object_set_new(... | 2.203125 | 2 |
2024-11-18T22:25:52.426597+00:00 | 2021-10-05T07:30:18 | d8d0b5ad02f421739a5847bb1b215bc1aee5099c | {
"blob_id": "d8d0b5ad02f421739a5847bb1b215bc1aee5099c",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-05T07:30:18",
"content_id": "d992663fc4e9aa87b991007247008832a670db10",
"detected_licenses": [
"MIT"
],
"directory_id": "dc15f49cea2f8fa75d0ac487d2510b60cdbae45d",
"extension": "h"... | stackv2 | #include <stdio.h>
int task3() {
const int charDiff = 97 - 65;
char letter;
printf("\nEnter an uppercase character: ");
// space before %c needed to ignore whitespace from enter key
scanf(" %c", &letter);
printf("\nHere's it in lower case: %c", letter + charDiff);
return 0;
}
| 3.515625 | 4 |
2024-11-18T22:25:52.606216+00:00 | 2018-08-16T21:15:27 | 2b91dee6f5d5e5bffbfb40fc138e00e0abd61f11 | {
"blob_id": "2b91dee6f5d5e5bffbfb40fc138e00e0abd61f11",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-16T21:15:27",
"content_id": "45d38cf3d00b09a648de5020d4b7a924c854e553",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1c75350e4f992c3bfe14d60dcd6daa217f28a54c",
"extensio... | stackv2 | //** Standard Gracenote SDK header
#include "gnsdk.h"
//** Standard C headers - used by the sample app, but not required for GNSDK
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//** Local declarations
gnsdk_error_t init_musicid();
gnsdk_error_t init_musicid_file();
gnsdk_error_t shutdown_all();
//*****... | 2.46875 | 2 |
2024-11-18T22:25:56.934784+00:00 | 2018-10-27T13:33:24 | 727b42cb7385c052ff9315e2d9b2cd3193940563 | {
"blob_id": "727b42cb7385c052ff9315e2d9b2cd3193940563",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-27T13:33:24",
"content_id": "b11805e9dd68473a8854519fd331454a5149d152",
"detected_licenses": [
"MIT"
],
"directory_id": "179a6dfa0e7ef173e21821e537febeb43eecf14e",
"extension": "c"... | stackv2 | #include "safe_udp.h"
#include "safe_socket.h"
#include <sys/socket.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int
create_udp_socket(void)
{
return create_socket(SOCK_DGRAM);
}
void
udp_send(int socket_des, const char *message, const char *ip_address,
uint16_t port_n... | 2.53125 | 3 |
2024-11-18T22:25:57.004738+00:00 | 2019-08-02T00:32:06 | edbeac0777af6bcfb8eb20be47c05a507fafc1fa | {
"blob_id": "edbeac0777af6bcfb8eb20be47c05a507fafc1fa",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-02T00:32:06",
"content_id": "77e28e3ae7da16bd7e47d72ebd1f825974e59362",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c9725b034dfae293d36f7b4dd39179df9bbe6d5c",
"extensio... | stackv2 | #include <stdio.h>
//#include <stdio_ext.h>
#include <stdlib.h>
#include <string.h>
#include "menu.h"
#include "orquesta.h"
#include "validaciones.h"
#include "musico.h"
#include "instrumento.h"
#include "informes.h"
#define LLENO 1
#define VACIO -1
void informes(Orquesta *arrayOrq,Instrumento *arrayIns,Musico *arrayMu... | 2.375 | 2 |
2024-11-18T22:25:57.337411+00:00 | 2017-03-31T16:40:34 | d94a2fc8e8ff1b81f3acfaf64c771734111d5b29 | {
"blob_id": "d94a2fc8e8ff1b81f3acfaf64c771734111d5b29",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-31T16:40:34",
"content_id": "6bb1b5d51f461e8c052e31a3c7b85a21752454c3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "28fd09aacd43dd7c854cee588fd13407ee3b5a05",
"extensio... | stackv2 | #include "../../../test_common.h"
#include <dirent.h>
#include <errno.h>
void runSuccess() {
DIR* dir = fdopendir(0);
if (dir != NULL) {
readdir(dir);
}
}
void runFailure() {
readdir(NULL);
}
int f;
void testValues() {
f = 2;
struct dirent * result;
DIR* dir = fdopendir(0);
... | 2.25 | 2 |
2024-11-18T22:25:57.780936+00:00 | 2020-02-11T17:23:54 | c565dfadf644ed39fc04f6d758f00adaadcf7ed0 | {
"blob_id": "c565dfadf644ed39fc04f6d758f00adaadcf7ed0",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-11T17:23:54",
"content_id": "34ccab4d2882441e94235060f092c15f56eed66a",
"detected_licenses": [
"MIT"
],
"directory_id": "021f6dc1a39d4d2aedcd9b6a48b76c90a9586509",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstsort.c :+: :+: :+: ... | 2.984375 | 3 |
2024-11-18T22:25:58.495679+00:00 | 2020-05-21T08:55:23 | 63877e9389b292eff6959e373b3dbf63882153dc | {
"blob_id": "63877e9389b292eff6959e373b3dbf63882153dc",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-21T08:55:23",
"content_id": "eeeea8633faae309e835da750884b153ec353dfb",
"detected_licenses": [
"MIT"
],
"directory_id": "bf152b3e2fe977ee26b3b3807e998aa9ba7d5b6f",
"extension": "c"... | stackv2 | #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <semaphore.h>
#include <pthread.h>
#include <errno.h>
void child_process();
#define N 10
int * countdown;
int * shutdown;... | 3.234375 | 3 |
2024-11-18T22:25:58.591797+00:00 | 2013-08-17T08:36:23 | 95b1430e88dce64feeae1081acf9860b301d568d | {
"blob_id": "95b1430e88dce64feeae1081acf9860b301d568d",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-17T08:36:23",
"content_id": "d5d9f0aa419cbffb4bc777ae6dcf5b6c10daed01",
"detected_licenses": [
"Unlicense"
],
"directory_id": "d44db52f29fee68f0706fdd4120f1e8a7833d2ca",
"extension... | stackv2 | /** \file clp-app-mgr.h
* \brief Application Manager System Object for Celunite Linux Platform
*
* The APIs to be used by the applications to access application manager are declared here.
*/
#ifndef __CLP_APP_MGR_H__
#define __CLP_APP_MGR_H__
#include <glib.h>
#define CLP_APP_MGR_ENTRY_POINT "main" /**< En... | 2.234375 | 2 |
2024-11-18T22:25:58.932395+00:00 | 2023-05-16T09:14:24 | f275d645b29aa4344d3b7db5d755416f46415a12 | {
"blob_id": "f275d645b29aa4344d3b7db5d755416f46415a12",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-16T09:14:24",
"content_id": "d3b37818a5664dcb434ccdca61a4a99335c33c47",
"detected_licenses": [
"MIT"
],
"directory_id": "53ada3c2059b315f19073ac9df58d785c7b3678b",
"extension": "c"... | stackv2 | //
// endian.c
//
// www.catch22.net
//
// Copyright (C) 2012 James Brown
// Please refer to the file LICENCE.TXT for copying permission
//
#include "endian.h"
size_t reverse(BYTE *buf, size_t len)
{
size_t i;
if(buf == 0 || len == 0)
return 0;
for(i = 0; i < len/2; i++)
{
BYTE b = buf[len-i-1];
buf[l... | 2.5625 | 3 |
2024-11-18T22:25:59.380948+00:00 | 2018-04-12T21:24:44 | 082df4f5e7de54516c53c9e12787daddc142598d | {
"blob_id": "082df4f5e7de54516c53c9e12787daddc142598d",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-12T21:24:44",
"content_id": "b9fd32a77a067a509efc117e03779365e46af6fc",
"detected_licenses": [
"MIT"
],
"directory_id": "7e060283f4409ee673608a2746fb9dc9cac9d1a2",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <signal.h>
#include <sys/wait.h>
#include <errno.h>
#include "background.h"
volatile int foreground_childs;
volatile arr_status background_childs;
volatile pid_t arr_foreground[FOREGROUND_SIZE];
void handler_sigchld(int sig)
{
/*
blocking sigchld so we won't get one durign exec... | 2.96875 | 3 |
2024-11-18T22:25:59.550702+00:00 | 2023-08-18T12:54:06 | 328ec48ef2f6b0bcc78655e6bf2efd906e625eb2 | {
"blob_id": "328ec48ef2f6b0bcc78655e6bf2efd906e625eb2",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T12:54:06",
"content_id": "fe2953f049be106ae4ab6e3fa54ba009422f8f9a",
"detected_licenses": [
"MIT"
],
"directory_id": "22446075c2e71ef96b4a4777fe966714ac96b405",
"extension": "c"... | stackv2 | /*!
* @file main.c
* @brief ClickID Example.
*
* # Description
* This example reads the information from ClickID permanent memory.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initializes the driver and checks the communication with the click board.
*
* ## Application Tas... | 2.8125 | 3 |
2024-11-18T22:25:59.677137+00:00 | 2022-08-22T22:55:15 | 92c2a2e8b6c051ba20a79c36c53034e716306522 | {
"blob_id": "92c2a2e8b6c051ba20a79c36c53034e716306522",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-22T22:55:15",
"content_id": "85421ea86e181b20f11ce1f0b1289bddf3168e02",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4e03abc5b44e6da6438da2934a46c098eaacd782",
"extens... | stackv2 | ///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#ifndef __GSPLATFORMTHREAD_H__
#define __GSPLATFORMTHREAD_H__
#include "gsPlatform.h"
#ifdef __cplusplus
extern "C" {
#endif
/////////////////////////////... | 2.28125 | 2 |
2024-11-18T22:26:00.474093+00:00 | 2018-09-08T21:11:03 | 156cc5bf1003cff03c52ce5369e9aed7a9861ca3 | {
"blob_id": "156cc5bf1003cff03c52ce5369e9aed7a9861ca3",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-08T21:11:03",
"content_id": "99a57ee007547083ec9db864324e31bb279c5d9f",
"detected_licenses": [
"MIT"
],
"directory_id": "eecbf6324c35ea3f5beb1518813f9587a249edc2",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <string.h>
unsigned long DJB2 (unsigned char *str) {
unsigned long hash = 5381;
int c;
while (c = *str++)
hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
return hash;
}
int main (void) {
unsigned long hash = DJB2("hello, world!");
printf("%lu\n", hash);
return 0;
}
| 2.953125 | 3 |
2024-11-18T22:26:00.561793+00:00 | 2017-10-29T13:21:04 | 85006ebc2b1d9027dd275cf15e86c7ee5b819263 | {
"blob_id": "85006ebc2b1d9027dd275cf15e86c7ee5b819263",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-29T13:21:04",
"content_id": "f0e25fa1f7cdadc66b7aa990a59edbeaf7a82abe",
"detected_licenses": [
"MIT"
],
"directory_id": "cbedf7235a4a971cde7959ee74cfb41c46ec0b7b",
"extension": "c"... | stackv2 | #include "box.h"
//function: create_box
//use: creates a box with a wooden texture surface
void create_box(GLfloat start_x, GLfloat start_y, GLfloat start_z, GLfloat size, GLuint texture_id) {
GLfloat no_mat[] = { 0.0f, 0.0f, 0.0f, 1.0f };
GLfloat mat_diffuse[] = { 0.1f, 0.5f, 0.8f, 1.0f };
const GLfloat high_shin... | 2.75 | 3 |
2024-11-18T22:26:01.407067+00:00 | 2023-07-07T18:41:40 | c4f5b640558ee5f30d338ef85ecc96ca807c4400 | {
"blob_id": "c4f5b640558ee5f30d338ef85ecc96ca807c4400",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-07T18:41:40",
"content_id": "8eace5d9d0f8b1e707a403836529475d6198c78d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c26d7b0ed875357278e61627da2da0650da77986",
"extens... | stackv2 | /*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
# include "trek.h"
/*
** CHECK IF A DEVICE IS OUT
**
** The indicated device is checked to see if it is disabled. If
** it i... | 2.5 | 2 |
2024-11-18T22:26:01.488157+00:00 | 2009-05-28T04:29:43 | 59bf2aaf2299713932c198b145636491e0574de5 | {
"blob_id": "59bf2aaf2299713932c198b145636491e0574de5",
"branch_name": "refs/heads/master",
"committer_date": "2009-05-28T04:29:43",
"content_id": "80901f5753c022826da7d58e1b0183fb23da204e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dc933e6c4af6db8e5938612935bb51ead04da9b3",
"extensio... | stackv2 | /*
* Copyright (C) 2007 The Android Open Source Project
*
* 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 app... | 2.0625 | 2 |
2024-11-18T22:26:02.703434+00:00 | 2023-08-25T04:46:28 | ea2052abbb8766a77aa3e15bd2ec2cd2dec54bfe | {
"blob_id": "ea2052abbb8766a77aa3e15bd2ec2cd2dec54bfe",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-25T07:17:19",
"content_id": "f739155ee650dd81428f7cd282e7e520abb73e4e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "dc7631ad46c850ad3b491c261c2da42edffabc4e",
"extensio... | stackv2 | /* Copyright 2023 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Support code for STT temperature reporting */
#include "chipset.h"
#include "driver/temp_sensor/f75303.h"
#include "temp_sensor/pct2075.h"
#include "temp_sensor/temp_... | 2 | 2 |
2024-11-18T22:26:02.819362+00:00 | 2023-08-02T18:12:00 | 462c62929c5346c9449500f3b65b96d1dae56af8 | {
"blob_id": "462c62929c5346c9449500f3b65b96d1dae56af8",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-02T18:12:00",
"content_id": "15688b46d77ea1568eaff37286a42f91298c2080",
"detected_licenses": [
"0BSD"
],
"directory_id": "9e86aff281c0df8b0b7033dbd5c90c71a51d3600",
"extension": "c... | stackv2 | /*
qio.c
880924 ACH conversion to Atari ST & Acylon C
880925 ACH + add bonus for captured Quixes
891216 ACH Tidied up code for Sozobon C and general release of source
*/
#include "defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef __WIN32__
# include <conio.h>
static int wait_key;
#els... | 2.234375 | 2 |
2024-11-18T22:26:03.588289+00:00 | 2020-06-28T14:27:02 | 19b8df550b34ec07d60a036205b51dee1f4f982d | {
"blob_id": "19b8df550b34ec07d60a036205b51dee1f4f982d",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-28T14:27:02",
"content_id": "ba77dc9ba75ef529c7d7b68b0d62af4bea92da7c",
"detected_licenses": [
"MIT"
],
"directory_id": "dfe44688c50737bb4292f268027fd1d8301e75f4",
"extension": "h"... | stackv2 | /*
** Created by doom on 17/04/19.
*/
#ifndef CEEDS_MEMORY_ALLOCATOR_H
#define CEEDS_MEMORY_ALLOCATOR_H
#include <ceeds/core.h>
/**
* Memory allocator abstraction, used to build allocator-aware containers
*/
/**
* A handle to an allocator
*
* Allocator-aware objects should use such a handle in order to manage ... | 2.765625 | 3 |
2024-11-18T22:26:03.710685+00:00 | 2022-10-15T23:51:42 | 1951b336e964423e4977ff7f7e212846312622eb | {
"blob_id": "1951b336e964423e4977ff7f7e212846312622eb",
"branch_name": "refs/heads/devel",
"committer_date": "2022-10-15T23:51:42",
"content_id": "b3f0cdc71d39c64ea42d7c3164c209e5b1efa75e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c7450e719c6fd9ea0513ea3e505562b21e53bcc2",
"extension... | stackv2 | /**
* FreeRDP: A Remote Desktop Protocol client.
* Events
*
* Copyright 2011 Vic Lee
*
* 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... | 2.09375 | 2 |
2024-11-18T22:26:04.163446+00:00 | 2023-05-23T01:50:34 | 67ef12ef268813c5af79634850cbe1f3d478559a | {
"blob_id": "67ef12ef268813c5af79634850cbe1f3d478559a",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-23T01:50:34",
"content_id": "cdef60d5c62c16553a4bd3d44c79cbcde5567c86",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8fceb4702c2e1f9521793e95e87a9621debd625d",
"extensio... | stackv2 | /* ----------------------------------------------------------------------
* Project: NMSIS DSP Library
* Title: riscv_max_no_idx_q31.c
* Description: Maximum value of a q31 vector without returning the index
*
* $Date: 16 November 2021
* $Revision: V1.10.0
*
* Target Processor: RISC-V Cor... | 2.234375 | 2 |
2024-11-18T22:26:04.605175+00:00 | 2021-03-27T06:08:55 | f1609cf52bbed15d6910f59da23e48ac055f444e | {
"blob_id": "f1609cf52bbed15d6910f59da23e48ac055f444e",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-27T06:08:55",
"content_id": "88833009b055981ca092d52979df7afc5133f0ff",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "834cd422a7ee36c31118941ded8e0fbdbdb6a492",
"extension"... | stackv2 | /**
******************************************************************************
* @file serial_ctrl.c
* @author BLE Mesh Team
* @brief Serial Control file
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2020 STMicroelectronics.
*... | 2 | 2 |
2024-11-18T22:26:04.757489+00:00 | 2019-11-12T07:04:24 | 85468a79a81f6c5e55642e65a2c1934204fef069 | {
"blob_id": "85468a79a81f6c5e55642e65a2c1934204fef069",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-12T07:04:24",
"content_id": "5d5d37a3c62d818796ee826e4c9d62c7dc264ede",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6b090dfe77e8d8bf937100e70341cb190213d710",
"extens... | stackv2 | /* Easel's foundation.
*
* Contents:
* 1. Exception and fatal error handling.
* 2. Memory allocation/deallocation conventions.
* 3. Standard banner for Easel miniapplications.
* 4. Improved replacements for some C library functions.
* 5. Portable drop-in replacements for nonstandard C functions.
... | 2.34375 | 2 |
2024-11-18T22:26:05.039667+00:00 | 2018-10-08T16:42:24 | 9ee7cbb981bb34f841c708bbb6bccf8b0d92b424 | {
"blob_id": "9ee7cbb981bb34f841c708bbb6bccf8b0d92b424",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-08T16:42:24",
"content_id": "60fbeaabb0b5b0c8c55aa77487fb9c4f177523d3",
"detected_licenses": [
"MIT"
],
"directory_id": "cdb569eae89e93d7861aef47cd70959fcd794f6e",
"extension": "h"... | stackv2 | #pragma once
#include "MiniSQL.h"
#include "Buffer.h"
#include "Interpreter.h"
#include "Record.h"
#include "Catalog.h"
#include "IndexManager.h"
Record record;
IndexManager index;
CatalogManager catalog;
Interpreter parsetree;
BufferManager buf;
bool IsComEnd(string input) { // 判断是否遇到了‘;’
int pos = input.rfind(';',... | 2.140625 | 2 |
2024-11-18T22:26:05.117606+00:00 | 2015-06-28T01:09:50 | 2b494aa6dd12665e49ba527cedbe4dffa1ce210c | {
"blob_id": "2b494aa6dd12665e49ba527cedbe4dffa1ce210c",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-28T01:09:50",
"content_id": "e9d07794a1e69006f8f16b722d85751d4f814a82",
"detected_licenses": [
"MIT"
],
"directory_id": "a30844c3b955489bb8ce2f0f23937d8bea4d8c0a",
"extension": "c"... | stackv2 | #include "MKE02Z2.h"
#include "rti.h"
#define RTI_SETPRESCALER(presc) (RTICTL = presc)
#define RTI_ENABLE_INTERRUPTS() (CRGINT_RTIE = 1)
#define RTI_CLEAR_FLAG() (CRGFLG_RTIF = 1)
#define RTI_SET_CLOCK_SOURCE(src) (CLKSEL_PLLSEL = src)
#define RTI_MAX_FCNS 20
#define RTI_IS_VALID_ID(id) (((id >= 0) && (id < RTI_MAX_F... | 2.34375 | 2 |
2024-11-18T22:26:05.217986+00:00 | 2022-11-23T14:16:15 | c6f3dfc1fccdabea521421a31c07a024ba77d96a | {
"blob_id": "c6f3dfc1fccdabea521421a31c07a024ba77d96a",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-23T14:16:15",
"content_id": "32a31f7dbbdf9d2cd5d6153e498d5d75ae21f1ee",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "e16ebe774e710b19e78006bc45276161a26b40d9",
... | stackv2 | /* ---------------------------------------------------------------------
*
* -- PBLAS auxiliary routine (version 2.0) --
* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
* and University of California, Berkeley.
* April 1, 1998
*
* ------------------------------------------------------... | 2.515625 | 3 |
2024-11-18T20:50:19.260508+00:00 | 2021-08-22T15:43:31 | 77592f56876667a43d17d453d03ca73bc6485198 | {
"blob_id": "77592f56876667a43d17d453d03ca73bc6485198",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-22T15:43:31",
"content_id": "f9f676c86d80eca4c56e0c02bfc973dbfe321218",
"detected_licenses": [
"ISC"
],
"directory_id": "dbdbe2a9a124948545a076ab0dd37029eec5b564",
"extension": "c"... | stackv2 | #include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
typedef short int16_t;
#define ARRAY_CREATE(array, init_capacity, init_size) {\
array = malloc(sizeof(*array)); \
array->data = malloc((init_capacity) * sizeof(*array->data)); \
assert(array->data != NULL); \
array->capacity ... | 3.25 | 3 |
2024-11-18T20:50:19.357566+00:00 | 2019-02-10T02:46:17 | 2a3c734cb2bde7b3fd33ebda0113198193b394ff | {
"blob_id": "2a3c734cb2bde7b3fd33ebda0113198193b394ff",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-10T02:46:17",
"content_id": "565e73c1cd91c2d925d466111f49a7a83b1585e5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6e747ddc6658b3e8cada4cc14269ba18d6f12322",
"extensio... | stackv2 | #ifndef SDLEX_MATH_UTILS_H
#define SDLEX_MATH_UTILS_H
#include "../SDLWithPlugins.h"
#define SDLEx_clamp(x, lower, upper) SDL_max(SDL_min(x, upper), lower)
inline SDL_Point new_sdl_point(int x, int y) {
SDL_Point ret;
ret.x = x; ret.y = y;
return ret;
}
inline float sdlex_pong(float x, float lower, float upper) {... | 2.25 | 2 |
2024-11-18T20:50:23.618627+00:00 | 2021-07-28T23:34:22 | 5c5ae8cee4b375908ecbda0800725c079710c39a | {
"blob_id": "5c5ae8cee4b375908ecbda0800725c079710c39a",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-28T23:34:22",
"content_id": "1561704a7fa08228b1f1b2d0590c3657b37c3623",
"detected_licenses": [
"MIT"
],
"directory_id": "b965cc528e8caa3ba64052792e1dfb4f599cbe4b",
"extension": "c"... | stackv2 | /* -*- C -*-
*
* $Id$
*
* Utility program to encrypt a single password in standard Unix "crypt" form.
*
* Copyright 1992-2021 Deven T. Corzine <deven@ties.org>
*
* SPDX-License-Identifier: MIT
*
*/
#include "config.h"
#include <stdio.h>
#include <time.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifd... | 2.625 | 3 |
2024-11-18T20:50:23.687349+00:00 | 2019-12-08T14:12:03 | b6fd3e2b218e27ab24119ba17fc8a1df5284b692 | {
"blob_id": "b6fd3e2b218e27ab24119ba17fc8a1df5284b692",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-08T14:12:03",
"content_id": "157aa513db30bc74ca97f2c1580a091a5c0f442a",
"detected_licenses": [
"ISC"
],
"directory_id": "ed43224856a57345f0d9ec7f0d6e8334e0ff2962",
"extension": "c"... | stackv2 | #include "rdfl.h"
#include "buffer.h"
// Utils
//
inline int rdfl_eofreached(t_rdfl *obj)
{ return (RDFL_OPT_ISSET(obj->settings, LOCAL_REACHED_EOF)); }
void
rdfl_consume_size(t_rdfl *obj, size_t s) {
b_consume_size(&obj->data, s);
if (RDFL_OPT_ISSET(obj->settings, RDFL_FULLEMPTY))
b_fullclean_if_empty(&obj-... | 2 | 2 |
2024-11-18T20:50:23.752453+00:00 | 2018-03-24T16:37:00 | d6442c9dd4b77a01be18b795e57c80acaf58f85c | {
"blob_id": "d6442c9dd4b77a01be18b795e57c80acaf58f85c",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-24T16:37:00",
"content_id": "22e521260a13bd9967df2a69bad15d954cfc52a4",
"detected_licenses": [
"MIT"
],
"directory_id": "d756bd304018e01d7aabac7e5b55a73313754cd8",
"extension": "h"... | stackv2 | #ifndef _NUMBER_THEORY_H_
#define _NUMBER_THEORY_H_
int gcd(int a, int b){
while( a * b ){
if(a > b)
a = a % b;
else
b = b % a;
}
return a + b;
}
int lcm(int a, int b) {
return (a * b / gcd(a,b));
}
#endif | 2.15625 | 2 |
2024-11-18T20:50:23.843399+00:00 | 2016-09-20T06:13:17 | 1a8cb738da2e416c0e2089aed6cab0c81aad7ed3 | {
"blob_id": "1a8cb738da2e416c0e2089aed6cab0c81aad7ed3",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-20T06:13:17",
"content_id": "bf1555fcaaf956a7eb0735d14ea9b80e6f31e8ec",
"detected_licenses": [
"MIT"
],
"directory_id": "c7f9d81caf98d9be2be8e26aa6b6fa6757d0bccc",
"extension": "c"... | stackv2 | #include "php_embed.h"
VALUE zval_to_array(zval *zv) {
HashTable *ht;
HashPosition pos;
zval **data;
VALUE ret;
convert_to_array(zv);
ht = Z_ARRVAL_P(zv);
ret = rb_ary_new2(zend_hash_num_elements(ht));
zend_hash_internal_pointer_reset_ex(ht, &pos);
while (SUCCESS == zend_hash... | 2.5 | 2 |
2024-11-18T20:50:24.259143+00:00 | 2023-03-25T17:57:33 | 45b48b0b42f61e6879a2329200618c13ed951d64 | {
"blob_id": "45b48b0b42f61e6879a2329200618c13ed951d64",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-25T17:57:33",
"content_id": "e0c04c0d04d8b8b1fb40a350a619909b0730b8bc",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "6601ed1b6c24e8b7e78312aeaadf816262c4bee3",
"extens... | stackv2 | /*
2-producers/join/consumer benchmark for the S4NOC paper.
Trim the DELAY of the producer until no tokens are lost.
Author: Martin Schoeberl and Luca Pezzarossa
*/
#include <stdio.h>
#include <machine/spm.h>
#include "../../libcorethread/corethread.h"
#include "s4noc.h"
#define PRODUCER1_CORE 1
#define PRODU... | 2.546875 | 3 |
2024-11-18T20:50:24.671825+00:00 | 2020-08-15T05:41:38 | e6fda0f7c6d8571feb0b8df2b5bcd06dc4669df5 | {
"blob_id": "e6fda0f7c6d8571feb0b8df2b5bcd06dc4669df5",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-15T05:41:38",
"content_id": "65f5c05a4b8db2f1d24675d7f0625c07aa001a91",
"detected_licenses": [
"MIT"
],
"directory_id": "29fc54660ba40c8157e73d42f8bc1a78d708419e",
"extension": "c"... | stackv2 | #include<stdio.h>
main()
{
int n;
printf("select number between 1 to 5: ");
scanf("%d",&n);
switch(n)
{
case 1:
printf("food item 1-DOSA\n price -rs.150 ");
break;
case 2:
printf("Food item 2- roti\n price -rs.129");
break;
case 3:
printf("food item 3- PIZZA\n price -rs.239");
break;
case... | 2.765625 | 3 |
2024-11-18T20:50:24.724893+00:00 | 2021-07-04T00:55:22 | 5909d4c5133259bcd3e4a0af3b0d353ab2a56db4 | {
"blob_id": "5909d4c5133259bcd3e4a0af3b0d353ab2a56db4",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-04T00:55:22",
"content_id": "4caaccbabb4dacabe9b233184f27cd7a11cfe3db",
"detected_licenses": [
"MIT"
],
"directory_id": "3481c787981fac896f30e1928e257ccf1ccd76b0",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <locale.h>
int main() {
setlocale(LC_ALL, "Portuguese");
// Exercicio
// Primeiro declare todas as valiaveis variavel
int x;
int y;
int res;
printf("Digite um o primeiro valor:\n"); // Sintace de input
scanf_s("%i", &x);
printf("Digite um o segundo valor:\n");
scanf_s("%i", &y)... | 3.53125 | 4 |
2024-11-18T20:50:24.868963+00:00 | 2016-01-29T00:13:11 | 653b847ceb163d84e09f73cf4277af49f3c2d946 | {
"blob_id": "653b847ceb163d84e09f73cf4277af49f3c2d946",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-29T00:13:11",
"content_id": "b90cadfea90c5d136f0d922863360b933df4017b",
"detected_licenses": [
"MIT"
],
"directory_id": "acf69038e2c00c5fcd5125ff27917b6249c1d7a3",
"extension": "c"... | stackv2 | #include "manager.h"
#include <gtk/gtk.h>
void manager_user_add(GtkButton*, gpointer);
void manager_user_set(GtkButton*, gpointer);
void manager_user_del(GtkButton*, gpointer);
void manager_group_add(GtkButton *, gpointer );
void manager_group_set(GtkButton *, gpointer );
void manager_group_del(GtkButton *, gpointer )... | 2.484375 | 2 |
2024-11-18T20:50:25.091161+00:00 | 2021-08-13T17:00:39 | 761cf667a4b68a53a4c702bf582c7789a70a7d11 | {
"blob_id": "761cf667a4b68a53a4c702bf582c7789a70a7d11",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-13T17:05:13",
"content_id": "7d53ee6672343f4a55b689c537250bd2132e5b03",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "324c8d2188a0a3c5447c61ae0f010b5e4e2c8a0b",
"extensio... | stackv2 | /*
* Copyright (c) 2020 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <drivers/pwm.h>
#include <drivers/sensor.h>
#include <logging/log.h>
#include "gpio_ec.h"
#include "board_config.h"
#include "fan.h"
LOG_MODULE_REGISTER(fan, CONFIG_FAN_LOG_LEVEL);
/*
* PWM channel ... | 2.21875 | 2 |
2024-11-18T20:50:25.212024+00:00 | 2023-08-09T01:30:11 | 914025976dfd934b902c94a207e76fcc72afbdc5 | {
"blob_id": "914025976dfd934b902c94a207e76fcc72afbdc5",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-09T01:30:11",
"content_id": "3e6b708d299489057aa4581a41cb7cbfa3dda1cf",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "57e03c3f73f572bdc9fda27f3718e29c81c5fbb2",
"extens... | stackv2 | #include "string_private.h"
void strUpper(string *io)
{
uint32 i, len;
uint8 *buf;
if (!io || !STR_CHECK_VALID(*io))
return;
len = strLen(*io);
buf = strBuffer(io, 0);
for (i = 0; i < len; ++i)
buf[i] = (char)toupper(buf[i]);
}
void strLower(string *io)
{
uint32 i, len;
... | 2.515625 | 3 |
2024-11-18T20:50:25.282724+00:00 | 2022-06-10T14:28:33 | 9ca44047a93d3d844502811d87bdc457888a9da2 | {
"blob_id": "9ca44047a93d3d844502811d87bdc457888a9da2",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-10T14:28:33",
"content_id": "b546293c1b98b993e1a2983da0ac452769be4478",
"detected_licenses": [
"MIT"
],
"directory_id": "c42a251cfe4873d350e2836a51d625ec1d17826e",
"extension": "h"... | stackv2 | #ifndef BUZZPARSER_H
#define BUZZPARSER_H
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <buzz/buzzlex.h>
#include <buzz/buzzdarray.h>
#include <buzz/buzzdict.h>
#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declaration to contain a code chunk */
struct chunk_s;
/* The pars... | 2.296875 | 2 |
2024-11-18T20:50:25.399745+00:00 | 2021-06-15T03:14:10 | 476d9fb0d40293052ed73d4cf7d3dc54abfcf2a6 | {
"blob_id": "476d9fb0d40293052ed73d4cf7d3dc54abfcf2a6",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-15T03:14:10",
"content_id": "cae245a2a29d632bb0bf585efb3432a8a74943d8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f3181ff5c637e7bfff89266d038273bfd23e5b79",
"extensio... | stackv2 | #include "freertos/FreeRTOS.h"
#include "driver/i2s.h"
#include "driver/rtc_io.h"
#include "audio.h"
#define AUDIO_IO_NEGATIVE GPIO_NUM_25
#define AUDIO_IO_POSITIVE GPIO_NUM_26
#define I2S_NUM I2S_NUM_0
float audio_volume = 1.0f;
void audio_init(int audio_sample_rate)
{
i2s_config_t i2s_config = {
.mod... | 2.25 | 2 |
2024-11-18T20:50:25.599415+00:00 | 2021-06-28T19:49:02 | d82cda6e5002244eae177099f7a0b0595bc55645 | {
"blob_id": "d82cda6e5002244eae177099f7a0b0595bc55645",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-28T19:49:02",
"content_id": "ec6a350d24c11d4389805414b05cfebd251c766a",
"detected_licenses": [
"MIT"
],
"directory_id": "4e86224a73b13d2a1b85aa2e1aed7ede2d92397f",
"extension": "c"... | stackv2 | /*
* tx.c
*
* Author: Abdullah Almarzouq (an36@pdx.edu)
*
* Description: The program below creates two process (parent and child) by using fork().
* The child process will execute the twist program and redirect the output (using pipes) to
* the parent process ... | 3.140625 | 3 |
2024-11-18T20:50:26.242079+00:00 | 2017-04-03T23:52:51 | a8da615eff0010fc504839416e955dfabe2cf8a4 | {
"blob_id": "a8da615eff0010fc504839416e955dfabe2cf8a4",
"branch_name": "refs/heads/qcom/LA.BF64",
"committer_date": "2017-04-04T18:57:02",
"content_id": "6073d959e0c071709e3e958e385cfda2e020ce3d",
"detected_licenses": [
"MIT"
],
"directory_id": "0e7268b0392fb0dddbc2e93bcb8083a45284b063",
"extension... | stackv2 | /*
* Copyright (c) 2008-2009 Travis Geiselbrecht
*
* 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, m... | 2.03125 | 2 |
2024-11-18T20:50:26.364589+00:00 | 2021-05-22T21:49:22 | f6b1f4686e9fc0696a06f06f8514906defeb3ba4 | {
"blob_id": "f6b1f4686e9fc0696a06f06f8514906defeb3ba4",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-22T21:49:22",
"content_id": "2df3c664ad9bb5d8fb8a045188a1f2b1274a98b9",
"detected_licenses": [
"MIT"
],
"directory_id": "0df080130d024ea941de7aa04e01aa981caace0f",
"extension": "c",
... | stackv2 | /*Leia um numero positivo e imprima seus divisores.*/
#include <stdio.h>
int main(){
int numeroPositivo;
int i;
printf("Digite um numero positivo: ");
scanf("%d",&numeroPositivo);
for(i=1;i<=numeroPositivo;i++){
if(numeroPositivo%i == 0)
printf("%d ",i);
}
return 0;
} | 3.609375 | 4 |
2024-11-18T20:50:26.447348+00:00 | 2020-05-10T05:36:24 | d3872fc3aeb885e0e2b167f25b6e3075c96544ee | {
"blob_id": "d3872fc3aeb885e0e2b167f25b6e3075c96544ee",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-10T05:36:24",
"content_id": "3c1bf8126d75beeb046bf8de536ff84b71a9bf23",
"detected_licenses": [
"MIT"
],
"directory_id": "d30d3b3b924ad69491a529066c7edf3e98c51f94",
"extension": "c"... | stackv2 | /**
*
* @file lcd.c
* @author crystalice
* @version v1.0
* @date 2014-08-09
* @brief LCD 驱动,支持LCD_ILI9320
*
*/
#include "lcd.h"
/// LCD control line defines
// PA08 ----------> RS
// PA09 ----------> RW
// PA10 ----------> RD
// PA11 ----------> CS
// PA12 ----------> REST
#def... | 2.296875 | 2 |
2024-11-18T20:50:26.635788+00:00 | 2019-06-14T06:38:11 | e3429e64cbead4fb2549ce702cfd4d2dc9b9d991 | {
"blob_id": "e3429e64cbead4fb2549ce702cfd4d2dc9b9d991",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-14T06:38:11",
"content_id": "bc65929a42a67529f6cb0b85a310d7fcb60eb2e5",
"detected_licenses": [
"MIT"
],
"directory_id": "f5c1d57b79cfe3857cb47171cfa5e6824d806161",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
//void main() {
// int a = 4;
//
// if (a < 5) {
// printf("number was smaller than 5");
// }
// else {
// printf("number was greater than 5");
// }
//}
//void main() {
// srand(time(NULL));
// int a = rand() % 101; // Returns a pseudo-random integer between 0 and 100.
... | 3.0625 | 3 |
2024-11-18T20:50:29.595985+00:00 | 2021-04-24T09:49:23 | e73dded48bcd881be0e8d84e06d7749b3dac7d0a | {
"blob_id": "e73dded48bcd881be0e8d84e06d7749b3dac7d0a",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-24T09:49:23",
"content_id": "728204957e4a4718df58cde2e57115bfe309644b",
"detected_licenses": [
"MIT"
],
"directory_id": "ae8af18da1284154189905fc941072d25a183234",
"extension": "c"... | stackv2 | #include "config.h"
#include "xyzsh.h"
#include <string.h>
#include <stdio.h>
sObject* nfun_new_on_gc(fXyzshNativeFun fun, sObject* parent, BOOL user_object)
{
sObject* self = gc_get_free_object(T_NFUN, user_object);
SNFUN(self).mNativeFun = fun;
SNFUN(self).mParent = parent;
SNFUN(self).mOptions = MA... | 2.53125 | 3 |
2024-11-18T20:50:29.752957+00:00 | 2018-05-16T21:44:18 | eeca31be056020e67c7bb4947988efef668200b4 | {
"blob_id": "eeca31be056020e67c7bb4947988efef668200b4",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-16T21:44:18",
"content_id": "5f263e6470f81bda446ac72e17b74049b0c23f48",
"detected_licenses": [
"ISC"
],
"directory_id": "6c00ab8c0b21f487a9bbaadd57e8f390a7a0ba0e",
"extension": "h"... | stackv2 | #ifndef _PAROP_PTHREAD_H
#define _PAROP_PTHREAD_H
// -----------------------------------------------------------------------------
// pthread implementation
// -----------------------------------------------------------------------------
#ifndef PAROP_MAX_THREADS
#define PAROP_MAX_THREADS 32
#endif
#include <pthre... | 2.59375 | 3 |
2024-11-18T20:50:30.185053+00:00 | 2021-07-07T23:20:30 | fd99f9b063acd003f70974b874c58e3d48dc0616 | {
"blob_id": "fd99f9b063acd003f70974b874c58e3d48dc0616",
"branch_name": "refs/heads/game_revamp",
"committer_date": "2021-07-07T23:20:30",
"content_id": "1360dc96544c36d2bdd93740d8bc2f6fdfaf0b08",
"detected_licenses": [
"MIT"
],
"directory_id": "080006d2e09a235f6f29ed2fe2c916d38d782e29",
"extension"... | stackv2 | //
// MIT License
//
// Copyright (c) 2020 MotoLegacy
//
// 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, modif... | 2.03125 | 2 |
2024-11-18T20:50:32.764918+00:00 | 2021-09-17T09:39:05 | a84254b06581aa50fbf3b8b8fd501de3282e9cd2 | {
"blob_id": "a84254b06581aa50fbf3b8b8fd501de3282e9cd2",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-17T09:39:05",
"content_id": "896f4098c302b45177a8f6675bf7ababd51ab796",
"detected_licenses": [
"MIT"
],
"directory_id": "071db391cb222f38524f420443e3a5cc2b39778a",
"extension": "c"... | stackv2 | // Copyright (c) 2014 Johannes Huning <mail@johanneshuning.com>
// Copyright (c) 2015 Christian Lundgren, Chris de Vries, and Jon Elverkilde
//
// 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 Softw... | 2.265625 | 2 |
2024-11-18T20:50:33.109584+00:00 | 2014-12-14T04:24:18 | 56413476f2581e1e49bc6e47c7cf9bfee8a7ee32 | {
"blob_id": "56413476f2581e1e49bc6e47c7cf9bfee8a7ee32",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-14T04:24:18",
"content_id": "d803101f02aeffe45f7908d128c38794df15ee57",
"detected_licenses": [
"MIT"
],
"directory_id": "62124aa2d0881d38a76e8e8baed854b177a6911d",
"extension": "h"... | stackv2 | #ifndef STATUSBAR_H
#define STATUSBAR_H
#include "common.h"
void statusbar_initialize(void);
//================================
// FLAGS
//================================
#define STATUSBAR_NUM_FLAGS 2
/* Our flags are:
* R/B/H - Running, blocking, or halted [running flag]
* /U/H - <nothing>, unhandled/handl... | 2.21875 | 2 |
2024-11-18T20:50:33.183453+00:00 | 2021-02-24T23:07:49 | 021d8faf0fb1ef6f9ee8f595cbcd7a5052719635 | {
"blob_id": "021d8faf0fb1ef6f9ee8f595cbcd7a5052719635",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-24T23:07:49",
"content_id": "c9d4a3c2fbfb928f33c6e968a75d8d2eb46f634c",
"detected_licenses": [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
],
"directory_id": "487... | stackv2 | /*
* eeprom.c
*
* Copyright 2021 SG-O (Joerg Bayer)
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 2.421875 | 2 |
2024-11-18T20:50:33.746161+00:00 | 2019-12-21T08:34:46 | af99d8e2874415e8c63753f2b5d6ae6322631744 | {
"blob_id": "af99d8e2874415e8c63753f2b5d6ae6322631744",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-21T08:34:46",
"content_id": "bb732559748e0e3e988ea59380914541ccdedc60",
"detected_licenses": [
"MIT"
],
"directory_id": "524d13bf9f1166ba944e9597cc0f741e4a9bb3fc",
"extension": "c"... | stackv2 | #include "../../sys/head.h"
#include "../kern/fns.h"
#include <stdarg.h>
#include <arm/pl01x.h>
static volatile struct pl01x_regs *regs;
static void
putc(char c)
{
if (c == '\n')
putc('\r');
while ((regs->fr & UART_PL01x_FR_TXFF))
;
regs->dr = c;
}
static void
puts(const char *c)
{
while (*c)
pu... | 2.296875 | 2 |
2024-11-18T20:50:33.837730+00:00 | 2021-05-25T20:02:44 | 8f0a4de5c943907fc723bd0ba354f4dcc0afd297 | {
"blob_id": "8f0a4de5c943907fc723bd0ba354f4dcc0afd297",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-25T20:02:44",
"content_id": "5e414026c86558bc4aa3cbec195ae307bc476f3c",
"detected_licenses": [
"MIT"
],
"directory_id": "c216d89c418e998513d0bccbe308f46be9222dd4",
"extension": "c",
... | stackv2 | #include <stdio.h>
int main(void)
{
int i;
int sum = 0;
int size = 0;
printf("Enter the size of the array: ");
scanf("%d", &size);
int array[size];
printf("Enter %d element in the array: ", size);
for (i=0; i<size; i++)
scanf("%d", &array[i]);
for (i=0; i<size; i++)
... | 3.640625 | 4 |
2024-11-18T20:50:34.125858+00:00 | 2021-01-12T10:23:40 | 096d05441cd0e7587fea787e1c662031f74bb3fe | {
"blob_id": "096d05441cd0e7587fea787e1c662031f74bb3fe",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-12T10:23:40",
"content_id": "66664923eddebc8fd8fd57647b21d0a3b473e187",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "fade406d43c95e7cb25c129d126b1ae7a56f4f13",
"extension": "... | stackv2 | #include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <netdb.h>
#include <time.h>
#define BUF_SIZE 80
int main(int argc, char *argv[]) {
struct addrinfo hints, *result;
int sfd,clisd,rc;
struct sockaddr_storage peer_addr;
socklen_t p... | 2.578125 | 3 |
2024-11-18T20:50:34.415726+00:00 | 2020-06-05T05:48:27 | 4380459402b79285f77ef673b4f1058983546074 | {
"blob_id": "4380459402b79285f77ef673b4f1058983546074",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-05T05:48:27",
"content_id": "c866761f7cd093c87bccd46a4feb8da46c2cf57e",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "ee8d74387ffb644d35137b95cae9fcf6af3b0e02"... | stackv2 | /*
* $Id: handler.c,v 1.1 2005-09-18 22:05:37 dhmunro Exp $
* MS Windows exception handling
* - w_interrupt raises a signal in worker thread from boss thread,
* idea from MSDN "Win32 Q&A" KillThrd library
* by Jeffrey Richter in Microsoft Systems Journal
*/
/* Copyright (c) 2005, The Regents of the University... | 2.109375 | 2 |
2024-11-18T20:50:38.425504+00:00 | 2020-04-03T16:24:14 | f4379cf867cd1e0db18439ddcab0f50453ce296e | {
"blob_id": "f4379cf867cd1e0db18439ddcab0f50453ce296e",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-03T16:24:14",
"content_id": "2bfb91c4b9d65edd103f0124256bb6642cb4802a",
"detected_licenses": [
"MIT"
],
"directory_id": "250799a773772192dbc4dfbb6ec029e67db84f4a",
"extension": "h"... | stackv2 | #ifndef EVENT_INTERNAL_H
#define EVENT_INTERNAL_H
#include <appos.h>
#ifndef MAX_EVENT_QUEUES
#define MAX_EVENT_QUEUES 128 // Since EVENT is 1 Byte wide, MAX_EVENT_QUEUES could be 256 at most
#endif
#ifndef MAX_EVENT_NUMBER
#define MAX_EVENT_NUMBER 512
#endif
struct EventStruct
{
void ... | 2.15625 | 2 |
2024-11-18T20:50:38.995369+00:00 | 2022-07-01T14:36:28 | 2f4afbecdfe0ed48c0700cd12ac8f22cffc290bc | {
"blob_id": "2f4afbecdfe0ed48c0700cd12ac8f22cffc290bc",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-01T14:36:28",
"content_id": "25c642916619b4c8f1020e6e7fb5cbb484e66758",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f4faa0c46c9d335e71458ad989d080eaa1d7eeb9",
"extensio... | stackv2 | /*!=============================================================================
==============================================================================
\file SL_xeno_common.c
\author Stefan Schaal
\date Nov 2009
==============================================================================
... | 2.328125 | 2 |
2024-11-18T20:50:39.590952+00:00 | 2020-01-15T07:32:12 | 9909f08f51664e009bf3a15d0da00c6eb54f0325 | {
"blob_id": "9909f08f51664e009bf3a15d0da00c6eb54f0325",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-15T07:32:12",
"content_id": "cc3239a081dcb43312df77aae853955e95af83f7",
"detected_licenses": [
"MIT",
"Ruby"
],
"directory_id": "a7a66b45f029aa2b6ad034df620f07d8574c8291",
"ext... | stackv2 | #include "monster_engine.h"
#include <ruby/thread.h>
#include <sys/types.h>
#include <unistd.h>
extern const rb_data_type_t rb_plamo_app_type;
extern VALUE plamo_rb_event_thread(void*);
VALUE rb_cMonsterEngineServer;
static void deallocate(void *monster_engine_server) {
monster_engine_server_destroy(monster_engine... | 2.078125 | 2 |
2024-11-18T20:50:39.758496+00:00 | 2015-02-28T12:57:38 | f2d071fa45cbef9ed007f0c2e1c47581299fd8b7 | {
"blob_id": "f2d071fa45cbef9ed007f0c2e1c47581299fd8b7",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-28T12:57:38",
"content_id": "e008b900063d3866738361d7837afd3edb1ae7f6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ed03b7fedefff41b7f9bafcf91c59106675e2713",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#define AVANCER {jeton=getchar();numcar++;}
#define TEST_AVANCE(prevu) {if (jeton==(prevu)) AVANCER else ERREUR_SYNTAXE}
#define ERREUR_SYNTAXE {printf("\nMot non reconnu : erreur de syntaxe au caractère numéro %d, de jeton %d \n",numcar,jeton... | 3.09375 | 3 |
2024-11-18T20:50:40.120303+00:00 | 2021-09-22T18:11:24 | f6407f61543ca81c8447b8229d19534fa565940d | {
"blob_id": "f6407f61543ca81c8447b8229d19534fa565940d",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-22T18:11:24",
"content_id": "059687553a105a2d1b87d756071458170057e457",
"detected_licenses": [
"MIT"
],
"directory_id": "0aaf408abce8bdcb4149ba43bac1762ab3d1e54a",
"extension": "c",
... | stackv2 | #include <stdio.h>
void organizador(char);
void main(){
char e;
printf("Digite o fim\n"); scanf("%c",&e);
puts("");
organizador(e);
}
void organizador(char f){
int i;
for (i='a';i<=f;i++){
printf("%c)\n",i);
}
} | 3.328125 | 3 |
2024-11-18T20:50:40.210414+00:00 | 2021-05-17T07:14:41 | 7727d9eb339369228d4238e8865d6c136af3e700 | {
"blob_id": "7727d9eb339369228d4238e8865d6c136af3e700",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-17T07:21:11",
"content_id": "7a4baa881aed3920aa1bf6f710ce8227d539df9d",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "c52d6dfee26289e228be3b2a2620a225f4caa2ab",
"extension":... | stackv2 | #include "api.h"
#include "ascon.h"
#include "permutations.h"
#include "printstate.h"
void ascon_update(state_t* s, uint8_t* out, const uint8_t* in, uint64_t len,
uint8_t mode) {
const int rate = 8;
const int nr = 6;
word_t tmp0;
int n = 0;
while (len) {
/* determine block size */
n... | 2.390625 | 2 |
2024-11-18T20:50:41.801508+00:00 | 2022-12-27T00:34:04 | d1350813f620dd465f9f49cf46965683629b10af | {
"blob_id": "d1350813f620dd465f9f49cf46965683629b10af",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-27T00:34:04",
"content_id": "6f5c66f66abb5700ac489f3a411024c82ac0c227",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8ccfbfaba0aedc3f9cac964b2c84a8ddd2ab61fc",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
typedef struct {
int x;
float y;
} pair_t;
#define data_t char*
#define prefix str
#include <array.h>
#undef prefix
#undef data_t
int main(void) {
srand(time(NULL));
array_str_t *a = array_str_init();
array_str_append(a, "hello"... | 2.84375 | 3 |
2024-11-18T22:21:41.527073+00:00 | 2014-12-20T18:42:32 | 2c6d0e83b7e20182556fb7f301c09a7449928aaf | {
"blob_id": "2c6d0e83b7e20182556fb7f301c09a7449928aaf",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-20T18:42:32",
"content_id": "b13707d56ef644a651d4d3d3378281614936e690",
"detected_licenses": [
"MIT"
],
"directory_id": "de02d73ec0d7c4e6fd620084862f3e48d092f6e4",
"extension": "c"... | stackv2 | #include <arpc.h>
#include <crypt.h>
#include <id_utils.h>
#include "sampler.h"
#include "sample_server.h"
#include <location.h>
#include <locationtable.h>
#include <modlogger.h>
#include <dhash_types.h>
#include <dhash_common.h>
#include <lsdctl_prot.h>
static char *logfname;
static vec<sampler *> samplers;
static ... | 2.078125 | 2 |
2024-11-18T22:21:41.956313+00:00 | 2021-10-25T10:09:15 | 11ce18042713d93eeb5b068fbc2d203fd34981d4 | {
"blob_id": "11ce18042713d93eeb5b068fbc2d203fd34981d4",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-25T10:09:15",
"content_id": "07bb00554b5734fac78b2f217cc6c16c49938a9b",
"detected_licenses": [
"MIT"
],
"directory_id": "56b809cc17ea6bef3f840158de653afef1080865",
"extension": "c",
... | stackv2 | /***********************************
@ @@@@ __/\__
@||@@/ @关注@ \ @@ /
@||@/ @@@@ /''\
科G栈
KGZ
***********************************/
/*
request_mem_region()
release_mem_region()
ioremap()
iounmap()
ioread32() ioread8()/ioread16()
iowrite32() iowrite8()/iowrite16()
*/
#inclu... | 2.421875 | 2 |
2024-11-18T22:21:45.508141+00:00 | 2023-08-27T19:14:02 | 37813558eb5a744c74445d5be3bb98afaa85791c | {
"blob_id": "37813558eb5a744c74445d5be3bb98afaa85791c",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-27T19:14:02",
"content_id": "9f2de291bae369f660f22e4fcb2f1be5e54c7760",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7c857119fe1505b1d80d6e62969661c06dc1a2f4",
"extens... | stackv2 | /** @file
PCI resources support functions declaration for PCI Bus module.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _EFI_PCI_RESOURCE_SUPPORT_H_
#define _EFI_PCI_RESOURCE_SUPPORT_H_
typedef enum {
PciResUsageTypical,
PciResU... | 2.375 | 2 |
2024-11-18T22:21:45.773171+00:00 | 2018-07-23T14:46:06 | f21ce58bcb1bb3f3e7dba7f04d92628501589981 | {
"blob_id": "f21ce58bcb1bb3f3e7dba7f04d92628501589981",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-23T14:46:06",
"content_id": "c2eb160e74ebf55979362d66b2349e4b41f31407",
"detected_licenses": [
"MIT"
],
"directory_id": "8bbeb7b5721a9dbf40caa47a96e6961ceabb0128",
"extension": "c"... | stackv2 | /*
<p>
N couples sit in 2N seats arranged in a row and want to hold hands. We want to know the minimum number of swaps so that every couple is sitting side by side. A <i>swap</i> consists of choosing <b>any</b> two people, then they stand up and switch seats.
</p><p>
The people and seats are represented by an intege... | 3.390625 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.