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:24:37.498088+00:00 | 2017-03-22T23:26:59 | bc368d2826d11d8589baf2bb296e399139a9404b | {
"blob_id": "bc368d2826d11d8589baf2bb296e399139a9404b",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-22T23:26:59",
"content_id": "3c6989239425fbb08421c5414287c1496443abd0",
"detected_licenses": [
"MIT"
],
"directory_id": "5feeb3762a8abb88f91c5e87cc25766824f723a6",
"extension": "c"... | stackv2 | /*
** parse_cmd.c for 42sh in /goinfre/grosli_o-42sh/src
**
** Made by gilles durget
** Login <durget_g@epita.fr>
**
** Started on Fri Jan 14 00:45:55 2005 gilles durget
** Last update Tue Jan 18 19:00:40 2005 gilles durget
*/
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "parser.h"
#include ... | 2.3125 | 2 |
2024-11-18T22:24:37.575192+00:00 | 2021-03-22T23:11:48 | 42e2a93a2687f91c840b2ffed1dc625287e97af7 | {
"blob_id": "42e2a93a2687f91c840b2ffed1dc625287e97af7",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-22T23:11:48",
"content_id": "15e080279292ddbe0786b8a88127ae7faa6f23ad",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "4fc6f82c98e9e97b5c467a01cb2721fb51850d37",
"extension": "... | stackv2 | #include <stdio.h>
int main() {
int input;
printf("Please enter a number using C prefixes for octal (0) and hex (0x): ");
scanf("%i", &input);
printf("Dec: %d, Oct: %o, Hex: %x\n", input, input, input);
} | 3.625 | 4 |
2024-11-18T22:24:37.713382+00:00 | 2019-01-29T20:22:18 | b0fd6d17a9d62c965d652dd93def4dbb1270634d | {
"blob_id": "b0fd6d17a9d62c965d652dd93def4dbb1270634d",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-29T20:22:18",
"content_id": "1d82a4468d9c5556223695d3d5c850576e34dde8",
"detected_licenses": [
"MIT"
],
"directory_id": "3401b841bb1ca562c678bde21917ee1123ebda72",
"extension": "h"... | stackv2 | #include <EEPROM.h>
#define CONFIG_VERSION "AA2"
#define CONFIG_START 0
struct StoreStruct {
// StoreStruct version
char version[4];
// Device settings:
IPAddress ccu_ip;
char ccu_variable[64];
uint8_t resetCounter, wdtCounter;
}
deviceSettings = {
CONFIG_VERSION,
IPAddress(0,0,0,0),
"ESP_Thermome... | 2.21875 | 2 |
2024-11-18T22:24:38.047429+00:00 | 2019-05-01T21:32:40 | 76af4fe072d7ab2cd828360271facf8b5a39ec15 | {
"blob_id": "76af4fe072d7ab2cd828360271facf8b5a39ec15",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-13T22:14:22",
"content_id": "6381cb30eb7421cac982ca773df49355fd46c1a8",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "1928e9104ed201f9cf9acaf0a2334cde40cf366f",
"extens... | stackv2 | /** @file
Copyright (c) 2018, 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 that accompanies this distribution.
The full text of the license may be found at
http://opensource.org/licenses/bsd-lic... | 2.078125 | 2 |
2024-11-18T22:24:39.084870+00:00 | 2019-07-26T11:01:18 | 097808dce7d6f79ea924de3012ed46d7f5ccfb54 | {
"blob_id": "097808dce7d6f79ea924de3012ed46d7f5ccfb54",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-26T11:01:18",
"content_id": "6e7537945887157040201c9413898a73f423111d",
"detected_licenses": [
"MIT"
],
"directory_id": "1ffd964a72e83bab40121cad5de517b9142e35e3",
"extension": "h"... | stackv2 |
/**
* 使用说明:直接引入此.h文件即可
* 在单例的声明中直接使用 SingletonH(methodName), 其中methodName是自定义的方法名
* 在单例的实现中直接使用 SingletonM(methodName), 其中methodName是自定义的方法名
*/
// 抽宏(包括.h\.m文件),帮助实现单例模式(ARC 和 MRC 两种情况下的单例实现)
// .h 文件的实现(##代表拼接)
#define SingletonH(methodName) + (instancetype)shared##methodName;
// .m 文件的实现(\是让下面每行变为宏的一部分)
#i... | 2.375 | 2 |
2024-11-18T22:24:39.212989+00:00 | 2021-06-06T11:27:55 | 2be07e4987dfd904e07f89bb88c90f7c0a049876 | {
"blob_id": "2be07e4987dfd904e07f89bb88c90f7c0a049876",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-06T11:39:30",
"content_id": "55071b5cc0b28e87be56c5f700e4b3d526a6b5c2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4a0770876bbc68b077f9e6623540144d62f2561b",
"extension"... | stackv2 | // Copyright 2021 The IconVG Authors.
//
// 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 applicable law or agree... | 2.265625 | 2 |
2024-11-18T22:24:39.398211+00:00 | 2021-03-26T15:30:16 | 2506eb483fe5e09fb9fa64d04617f9d65a7c72bb | {
"blob_id": "2506eb483fe5e09fb9fa64d04617f9d65a7c72bb",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-26T15:30:16",
"content_id": "5dd0fabc3a5ca7c80d2461dbe44b18ba011bf2c7",
"detected_licenses": [
"MIT"
],
"directory_id": "89d7c92db50da9d4ff0fb992b7216229b2c31ea4",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <conio.h>
int main ()
{
float a,b,resultado;
char sinal;
printf ("insira dois numeros: ");
scanf ("%f",&a);
scanf ("%f",&b);
printf ("insira a operacao: ");
scanf (" %c",&sinal);
switch (sinal){
case '+' :
(resultado = a+b);
break
case '-' :
resultado= a-b;
break
ca... | 2.84375 | 3 |
2024-11-18T22:24:41.090726+00:00 | 2015-06-18T09:08:56 | db631d5c95bd268016da602060cf8fce55fcc459 | {
"blob_id": "db631d5c95bd268016da602060cf8fce55fcc459",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-18T09:08:56",
"content_id": "b5898fac8d622cc708f7f960434da0007762ce32",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7b4fac39e7029a4821d7ebe4ea7571458215b9b3",
"extens... | stackv2 | #include "types.h"
#include "arch_irq.h"
#include "list.h"
#include "irq.h"
#include "sysbase.h"
#include "exec_funcs.h"
#include "raspi_platform.h"
#include "raspi_irq.h"
void lib_hexstrings ( unsigned int d );
void lib_Print_uart0(const char *s);
extern SysBase *g_SysBase;
void lib_AddExcServer(SysBase *SysBase,... | 2.140625 | 2 |
2024-11-18T22:24:41.272556+00:00 | 2016-12-08T14:19:46 | 07dab7d79de4f3ac4e831e1dc5850bd0326e87e9 | {
"blob_id": "07dab7d79de4f3ac4e831e1dc5850bd0326e87e9",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-08T14:19:46",
"content_id": "869e9fd3dc8f4a1c56a8af23267ea29eddeb8b78",
"detected_licenses": [
"MIT"
],
"directory_id": "b670bd8e1d79fc430cde6785662c1cf185e9e107",
"extension": "c"... | stackv2 | #include "c_util.h"
#include "vector_headers.h"
#include <pmmintrin.h>
#include <stdio.h>
#include <xmmintrin.h>
#include <immintrin.h>
void naive_blur_one_stage(FLOAT_IMG *input_img, FLOAT_IMG *output_img)
{
int r, c;
float kernel_norm;
float kernel_accum;
#pragma omp parallel for private(c, kernel_n... | 2.5625 | 3 |
2024-11-18T22:24:41.614822+00:00 | 2017-08-08T19:10:28 | 71ea23a6e75fe7010ebbe60cb18e6647c59f11bc | {
"blob_id": "71ea23a6e75fe7010ebbe60cb18e6647c59f11bc",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-08T19:10:28",
"content_id": "627cf5fd064b1b11d007e08e569758dabc109b0c",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "61fa27eacf7046473994dc861aaa957d85b1b680"... | stackv2 | /*
Copyright <2017> <Scaleable and Concurrent Systems Lab;
Thayer School of Engineering at Dartmouth College>
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 restr... | 2.453125 | 2 |
2024-11-18T22:24:43.130354+00:00 | 2021-07-21T07:38:24 | b58b6f609f17252c89cccfb551c03a1717db147c | {
"blob_id": "b58b6f609f17252c89cccfb551c03a1717db147c",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-21T07:38:24",
"content_id": "0e3498ad442d8f0c82b622264a642685ad6216f2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d8614983c6f645f9ba5c4b362fd4c605db317158",
"extension"... | stackv2 | #include "stm32f10x.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_rcc.h"
#include "stm32f10x_adc.h"
#include "stm32f10x_dma.h"
volatile u16 ADCConvertedValue[10][3];
void DMA_Init123(){
DMA_InitTypeDef DMA_InitStructure;
RCC_AHBPeriphClockCmd(RCC_AHBPeriph_DMA1, ENABLE);//使能時鐘
DMA_DeInit(DMA1_Channel1); //... | 2.5 | 2 |
2024-11-18T22:24:43.293086+00:00 | 2019-03-28T14:14:38 | 419431c2a48193a3963182a63343738712e61c7b | {
"blob_id": "419431c2a48193a3963182a63343738712e61c7b",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-28T14:14:38",
"content_id": "3e88cf0e48559c6c4fdca67330c6f6efecfea0c5",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e5f49872ef3d477bad35cf1b69a5dde089ce3fc5",
"extens... | stackv2 | #include "../include/raft.h"
#include "assert.h"
#include "configuration.h"
#include "election.h"
#include "logging.h"
#include "replication.h"
#include "rpc.h"
#include "state.h"
static void raft_rpc__recv_request_vote_send_cb(struct raft_io_send *req,
int status)
{
... | 2.421875 | 2 |
2024-11-18T22:24:43.771671+00:00 | 2013-12-23T19:28:13 | 671048efc48f4c4db6c28b457552f91ebdee1d83 | {
"blob_id": "671048efc48f4c4db6c28b457552f91ebdee1d83",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-23T19:28:13",
"content_id": "52c65f9dc0b7a757535f1f62cc65d73002ac6785",
"detected_licenses": [
"MIT"
],
"directory_id": "ab1377d71aaffe2c99b9abdc282eed1ad9f7ada4",
"extension": "c"... | stackv2 | #include "final.h"
NodoListaDoble* MPmoverALista(NodoListaDoble ** firstV, NodoListaDoble ** lastV, NodoListaDoble ** firstN, NodoListaDoble ** lastN, NodoListaDoble ** cursor)
{
NodoListaDoble * prox=(*cursor)->sig;
if ((*cursor)->sig != NULL) ((*cursor)->sig)->ant = (*cursor)->ant;
if ((*cursor)->ant != NULL) ((... | 2.109375 | 2 |
2024-11-18T22:24:44.519949+00:00 | 2020-11-28T21:01:53 | 6b4b0a8ef8c41770ecf96c75a0f3f81a2c0c5793 | {
"blob_id": "6b4b0a8ef8c41770ecf96c75a0f3f81a2c0c5793",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-28T21:01:53",
"content_id": "47443a5589a260763c5aa134976366b27961f9c2",
"detected_licenses": [
"MIT"
],
"directory_id": "7eeb3f8923cecf62df2673de67f78a1e371fc71e",
"extension": "c"... | stackv2 | #include "kshell.h"
#include <core/debug.h>
#include <core/elf.h>
#include <drivers/cmos.h>
#include <fs/debug.h>
#include <fs/vfs.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
static char readline[READLINE_SIZE] = { 0 };
static char last_readline[READLINE_... | 2.171875 | 2 |
2024-11-18T22:24:44.716637+00:00 | 2023-08-29T20:45:03 | 9de2fcdf26093f06ecf5dadf4a5a37f18ce23730 | {
"blob_id": "9de2fcdf26093f06ecf5dadf4a5a37f18ce23730",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T20:45:03",
"content_id": "929c2f1b5b32f3433c4dc7d975cb07c29b9a7670",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bdc27c22522a99b5bff2ec4cfa95fadcba65747d",
"extensio... | stackv2 | #ifndef __CM_TRANSPORT_H__
#define __CM_TRANSPORT_H__
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
#ifdef HAVE_SYS_TIME_H
#include "sys/time.h"
#endif
#ifndef _CM_SCHEDULE_H
#include "cm_schedule.h"
#endif
#include <stddef.h>
#include "sys/types.h"
#ifdef _MSC_VER
#include <BaseTsd.h>
typed... | 2.046875 | 2 |
2024-11-18T22:24:44.961203+00:00 | 2023-09-01T17:35:52 | 2fead9f760a0fb8b9f21b28df8a470d453af3d80 | {
"blob_id": "2fead9f760a0fb8b9f21b28df8a470d453af3d80",
"branch_name": "refs/heads/main",
"committer_date": "2023-09-01T17:35:52",
"content_id": "ecf9f52b1e36c8f1737705cc97dac8f55e3acd00",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2950d1852a03ab912de2c75c3a15c2276555cb5a",
"extension"... | stackv2 | // Portions Copyright (c) 2023 VMware, Inc. or its affiliates.
#include "pxfdelimited_formatter.h"
#include "stdio.h"
PG_FUNCTION_INFO_V1(pxfdelimited_import);
Datum pxfdelimited_import(PG_FUNCTION_ARGS);
#define is_even(cnt) (cnt % 2 == 0)
#if PG_VERSION_NUM < 90400
// Copied from tupdesc.h (6.x), since this is no... | 2.515625 | 3 |
2024-11-18T22:24:45.232031+00:00 | 2022-06-12T18:13:23 | e53dce4d061e837803dd8b8736ea1fe66ed3c799 | {
"blob_id": "e53dce4d061e837803dd8b8736ea1fe66ed3c799",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-12T18:13:23",
"content_id": "bd900d698852269d1bdd1c7a90b66e4dff5573f2",
"detected_licenses": [
"ISC"
],
"directory_id": "722cf9ab069d75af63664eeae0c35c63aa73c51c",
"extension": "c"... | stackv2 | /* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST
extern inline int libsimple_strcaseeqnul(const char *, const char *);
#else
#include "test.h"
int
main(void)
{
assert(libsimple_strcaseeqnul("abc", "abc") == 1);
assert(libsimple_strcaseeqnul("abc", "ab") == 0);
assert(li... | 2.5 | 2 |
2024-11-18T22:24:45.609833+00:00 | 2019-11-30T08:40:29 | 77ff8108b2773c24c9cfd35a159583d6a1b495e4 | {
"blob_id": "77ff8108b2773c24c9cfd35a159583d6a1b495e4",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-30T08:40:29",
"content_id": "8e591036e3138dd25b269545428a109fa110f32d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8f7b4c0093cded3e33abc7c1afe9a7f9187b6277",
"extensio... | stackv2 | //
// util.c
//
// Created by Mikhail Terekhov on 03/09/18.
// Copyright (c) 2018 Andrey Terekhov. All rights reserved.
//
#include "util.h"
void printf_char(int wchar)
{
if (wchar<128)
printf("%c", wchar);
else
{
unsigned char first = (wchar >> 6) | /*0b11000000*/ 0xC0;
unsigne... | 2.953125 | 3 |
2024-11-18T22:24:47.560572+00:00 | 2023-08-28T13:30:31 | 39c065b8031ac5bd261f88354c84b6d560b18aa7 | {
"blob_id": "39c065b8031ac5bd261f88354c84b6d560b18aa7",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T13:30:31",
"content_id": "91c716709206c0451ccb45d9a59fe105e0b19e27",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "2a804d5c812299858bb57a01cc5442276eac1021",
"extens... | stackv2 | #ifndef UMKA_LEXER_H_INCLUDED
#define UMKA_LEXER_H_INCLUDED
#include "umka_common.h"
typedef enum
{
TOK_NONE,
// Keywords
TOK_BREAK,
TOK_CASE,
TOK_CONST,
TOK_CONTINUE,
TOK_DEFAULT,
TOK_ELSE,
TOK_FN,
TOK_FOR,
TOK_IMPORT,
TOK_INTERFACE,
TOK_IF,
TOK_IN,
TOK_M... | 2.015625 | 2 |
2024-11-18T22:24:47.831563+00:00 | 2017-08-11T17:43:29 | b86ed81a0ce5d688bca4cdbcd3a6a8459fc4c408 | {
"blob_id": "b86ed81a0ce5d688bca4cdbcd3a6a8459fc4c408",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-11T17:43:29",
"content_id": "17029fa6a4489d3dc18b7884048de220a898e332",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "31090b82fcf15fc8a52a12be3dd592e72300fe1b",
"extens... | stackv2 | /* $FreeBSD: projects/vps/sys/sys/sem.h 252287 2013-06-27 00:56:09Z will $ */
/* $NetBSD: sem.h,v 1.5 1994/06/29 06:45:15 cgd Exp $ */
/*
* SVID compatible sem.h file
*
* Author: Daniel Boulet
*/
#ifndef _SYS_SEM_H_
#define _SYS_SEM_H_
#include <sys/ipc.h>
#if defined(_KERNEL) && defined(VPS)
#include <vps/vps... | 2.328125 | 2 |
2024-11-18T22:24:47.941680+00:00 | 2020-08-07T02:43:35 | 4d57aeb4241cbcf0fa3a778a585fe1759bbd9c05 | {
"blob_id": "4d57aeb4241cbcf0fa3a778a585fe1759bbd9c05",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-07T02:43:35",
"content_id": "ad16310bfe1254950f2f77f12fde288919fc519a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d82ab1a5d98673ea7b7cbcd5276f24476b276009",
"extensio... | stackv2 | /**
* Copyright 2015-2016 Nest Labs Inc. All Rights Reserved.
*
* 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
*
* ... | 2.03125 | 2 |
2024-11-18T22:24:48.018961+00:00 | 2019-11-08T14:04:22 | f1680ed0bb9089616b29fb1610708efe0d4cbe09 | {
"blob_id": "f1680ed0bb9089616b29fb1610708efe0d4cbe09",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-08T14:04:22",
"content_id": "96149bbe0a2bf0dba51e59a52c98ccb3fd78f01e",
"detected_licenses": [],
"directory_id": "2af3ec7fdceb99af16c6697e51aa27a088d1919e",
"extension": "c",
"filename... | stackv2 | #include <sys/libkern.h>
#include <sys/context.h>
#include <sys/exception.h>
#include <sys/thread.h>
#include <sys/errno.h>
#include <sys/ucontext.h>
#include <mips/ctx.h>
#include <mips/exc.h>
void ctx_init(ctx_t *ctx, void *pc, void *sp) {
bzero(ctx, sizeof(ctx_t));
ctx->pc = (register_t)pc;
ctx->sp = (regist... | 2.3125 | 2 |
2024-11-18T22:24:48.071756+00:00 | 2021-09-28T13:11:00 | e2f1b4bbbf91c570017522d8cacdb25d4a128988 | {
"blob_id": "e2f1b4bbbf91c570017522d8cacdb25d4a128988",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-28T13:11:00",
"content_id": "256de345ca969d71259c41fccd0c7b8c74176aa3",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "a45ae9e22b316fc3d792a1b124d1cb42d279b18a",
"extension": "... | stackv2 | void parcoursProfondeurPrefixe(arbre *a) {
pileArbre *pile = newPileArbre();
pile = empiler(pile,a);
while (!estPileVide(pile)) {
arbre * n = obtenirElementPile(pile);
// realiser ici ce qui doit etre fait lors
// de la visite du noeud n
listeArbre *fils = obtenirFils(n);
pile = depiler(pile);... | 2.265625 | 2 |
2024-11-18T22:24:50.618582+00:00 | 2018-08-30T16:57:33 | 9c6970248a4798057579fe69d90c79f813c67ef8 | {
"blob_id": "9c6970248a4798057579fe69d90c79f813c67ef8",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-30T16:57:33",
"content_id": "0276375be2923da4664158ff58b91f0169cdbe61",
"detected_licenses": [
"MIT"
],
"directory_id": "eebe96c0ad323c6b470c1b06d95e03007c1cc506",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <conio.h>
#define LENGHT 37
struct Trie
{
struct Trie *next[LENGHT];
int eok, childs,count;
int *person;
};
int top;
struct Trie *names,*phones;
FILE *fp, *dir;
int nextPos(char s)
{
int pos=10;
if(s=='_') return... | 2.625 | 3 |
2024-11-18T22:24:50.879858+00:00 | 2018-06-22T09:02:03 | f7655bd75b29083898787f6b4d02b6ac9287df93 | {
"blob_id": "f7655bd75b29083898787f6b4d02b6ac9287df93",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-22T09:02:03",
"content_id": "80c7529e0bb1a9d4df50a7b21c7059414fc8e940",
"detected_licenses": [
"MIT"
],
"directory_id": "336e89347b95f9fdad75339a5f7fef6b5de5cada",
"extension": "c"... | stackv2 | /*
** EPITECH PROJECT, 2018
** send_pid.c
** File description:
** Main for Navy project.
*/
#include <sys/types.h>
#include <signal.h>
#include "navy.h"
int send_pid(int ennemy_pid)
{
if (kill(ennemy_pid, SIGUSR1) == -1) {
my_putstr("Error: Invalid pid.\n");
return (-1);
}
return (0);
}
| 2.421875 | 2 |
2024-11-18T22:24:50.997712+00:00 | 2014-03-12T17:39:40 | 61986bf5223c1ff9122b1f6878bd30119c3eb137 | {
"blob_id": "61986bf5223c1ff9122b1f6878bd30119c3eb137",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-12T17:39:40",
"content_id": "a7aa3e036d4318d67943be58529a56564c72d1cc",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6629e94cbf5f102855c8900175ebd43db3c389d4",
"extensio... | stackv2 | /* Copyright 2011; All Rights Reserved
* Please see http://www.coactionos.com/license.html for
* licensing information.
*/
/*! \addtogroup SYS_DEV System Devices
* @{
*
*
* \ingroup SYS
*
* \details This is a system driver that provides the following devices:
* - null
* - zero
* - full
* - random
* - ura... | 2.015625 | 2 |
2024-11-18T22:24:51.725224+00:00 | 2021-09-21T14:58:40 | 385936b739425392eb1a73bf8d80c172ae3aaea1 | {
"blob_id": "385936b739425392eb1a73bf8d80c172ae3aaea1",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-21T14:58:40",
"content_id": "706ee258599aa3c4d2bf6097a510c37676dfbd0c",
"detected_licenses": [
"MIT"
],
"directory_id": "84b026b3bfb51c7968291d1860eeffc98b052621",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <strings.h>
int main(){
setlocale(LC_ALL, "");
char arq1[256];
char arq2[256];
FILE *arq_origem;
FILE *arq_copia;
printf("Qual o nome do arquivo que você deseja copiar?: ");
fgets(arq1, 256, stdin);
arq1[strlen(arq1)... | 2.953125 | 3 |
2024-11-18T22:24:51.938131+00:00 | 2023-05-23T17:23:03 | 4f8e7e324fea617ec5fb9e6631858c383a37edbd | {
"blob_id": "4f8e7e324fea617ec5fb9e6631858c383a37edbd",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-23T17:56:00",
"content_id": "069c3b2b0696923ca0bc9500bc8c791efbca504c",
"detected_licenses": [
"MIT"
],
"directory_id": "2308899071a849a199e3b70806b4dd1c396efc8a",
"extension": "c"... | stackv2 | #include <assert.h>
#include <limits.h>
#include <stdio.h>
#include "defs.h"
#include "misc.h"
#include "puttymem.h"
#include "mpint.h"
#include "mpint_i.h"
#define SIZE_T_BITS (CHAR_BIT * sizeof(size_t))
/*
* Inline helpers to take min and max of size_t values, used
* throughout this code.
*/
static inline size... | 2.8125 | 3 |
2024-11-18T22:24:52.355810+00:00 | 2021-06-10T13:50:11 | 62a4363b4c7f888dc99cc956085465ca07b90864 | {
"blob_id": "62a4363b4c7f888dc99cc956085465ca07b90864",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-10T13:50:11",
"content_id": "a58596ee5a74378f1c78a2b632e03d2b451c5371",
"detected_licenses": [
"MIT"
],
"directory_id": "aee87c9115a5efc5d7c85f9bb8bae8e6fd8e0e44",
"extension": "c"... | stackv2 | #include <header.h>
char array[]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F};
void func4(char direction, char concurrent, char which){
int i;
DDRC = 0xFF;
if(concurrent == True)
DDRD = 0x0F;
else if(concurrent == False){
switch(which){
case 1:
DDRD... | 2.4375 | 2 |
2024-11-18T22:24:53.278382+00:00 | 2016-07-26T16:04:13 | 9e99437448e9c170eed9a69744326c093b32da00 | {
"blob_id": "9e99437448e9c170eed9a69744326c093b32da00",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-26T16:04:13",
"content_id": "67d013ffb34104a6d68ea4b828dcf9aaa0409a75",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "c331c71b53d79b5ff80ca5fcdc3eb5f10c5d5d94",
"extens... | stackv2 | /**
* Copyright (c) 2016, Codrin-Victor Poienaru <cvpoienaru@gmail.com>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyrigh... | 2.28125 | 2 |
2024-11-18T22:24:53.338412+00:00 | 2019-12-02T00:41:56 | 262c1b5c68a6efad25fc76235f6d25d945388e9c | {
"blob_id": "262c1b5c68a6efad25fc76235f6d25d945388e9c",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-02T00:43:44",
"content_id": "fbad341883308fff69b029b077bf842bffa380dc",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "11cf27180d8ba00591b18138662a27a3ed015efd",
"extens... | stackv2 | /*
* libfuzzer.c --
*
* Libfuzzer driver for Hax.
*
* Copyright 2019 Kamil Rytarowski
* Permission to use, copy, modify, and distribute this
* software and its documentation for any purpose and without
* fee is hereby granted, provided that the above copyright
* notice appears in all copies. The copyrigh... | 2.15625 | 2 |
2024-11-18T22:24:53.376381+00:00 | 2014-03-03T04:23:29 | 7ddb9a3c5ebbda3eae38c4ed783361964995e1ab | {
"blob_id": "7ddb9a3c5ebbda3eae38c4ed783361964995e1ab",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-03T04:23:29",
"content_id": "bdcbb46a02200c3241c6ccc550685c9d398d563f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a92a91a02b97334487fd89deb29064dd109b965d",
"extensio... | stackv2 | /*
* Copyright (C) ST-Ericsson SA 2010. All rights reserved.
* This code is ST-Ericsson proprietary and confidential.
* Any use of the code for whatever purpose is subject to
* specific written permission of ST-Ericsson SA.
*/
/*******************************************************************************
* Ret... | 2 | 2 |
2024-11-18T22:24:53.698070+00:00 | 2014-05-04T22:32:14 | 09a3fcca5d35c8a0899039f4f8c9e642e813e84b | {
"blob_id": "09a3fcca5d35c8a0899039f4f8c9e642e813e84b",
"branch_name": "refs/heads/master",
"committer_date": "2014-05-04T22:32:14",
"content_id": "dc0e77d75b4e493e71e35de52de91fc88665c43c",
"detected_licenses": [
"MIT"
],
"directory_id": "ef5d970174093a31802a82ba91a4a63001bf609a",
"extension": "h"... | stackv2 | /**
* rgbstrip.cpp
* Created by James Mikkelson on 2014-05-04.
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice
*
* @copyright James Mikkelson on 2014-05-04.
* @link http://www.madcapsule.com/blog/author/James
* @license MIT License (http:/... | 2.78125 | 3 |
2024-11-18T22:24:53.786389+00:00 | 2021-08-15T23:27:49 | e7c1cdbfa78fbf17592c1bebde53d9311ab02ce3 | {
"blob_id": "e7c1cdbfa78fbf17592c1bebde53d9311ab02ce3",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-15T23:27:49",
"content_id": "e9a30352e15f387be96d9df243f463e25c217d84",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "16c3d340e2112ee82d8f6ee97fa8ec105dbdab44",
"extensio... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
main( argc, argv)
int argc;
char **argv;
{
int sockint, s;
unsigned short port ; /* numero porta servidor */
struct sockaddr_in server; /* end servidor */
char b... | 3.109375 | 3 |
2024-11-18T22:24:53.864034+00:00 | 2023-08-27T01:05:38 | f8342134bb2a2b622f97654681d3f7de2916ed40 | {
"blob_id": "f8342134bb2a2b622f97654681d3f7de2916ed40",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-27T01:31:22",
"content_id": "c2e3f42a98629784661df28a3d8ee85d2f585e21",
"detected_licenses": [
"MIT"
],
"directory_id": "a35d06258bf291a5cf9002a7ba555fc4aba01e6d",
"extension": "c"... | stackv2 | #include "garbage-collector.h"
#include "backup-dummy-hashes.h"
#include "metadata-util.h"
#include "safe-wrappers.h"
#include "test-common.h"
#include "test.h"
static void populateRepoWithDummyFiles(void)
{
sMkdir(str("tmp/repo"));
sMkdir(str("tmp/repo/a"));
sMkdir(str("tmp/repo/a/b"));
sMkdir(str("tmp/repo/... | 2.015625 | 2 |
2024-11-18T22:24:54.991177+00:00 | 2020-05-14T20:15:52 | 14c1fabbe8e8a661fd1e7e98da866e5a82a56a2c | {
"blob_id": "14c1fabbe8e8a661fd1e7e98da866e5a82a56a2c",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-14T20:22:30",
"content_id": "aced2f18ca498747ab50f1ba541704756fa36cdf",
"detected_licenses": [
"MIT"
],
"directory_id": "258af18325757ff13462397a5b5b8efa4e2df334",
"extension": "c"... | stackv2 | // %%cpp structs_in_memory.c
// %run arm-linux-gnueabi-gcc -marm structs_in_memory.c -o structs_in_memory.exe
// %run qemu-arm -L ~/Downloads/sysroot-glibc-linaro-2.25-2018.05-arm-linux-gnueabi ./structs_in_memory.exe
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#define print_int(x) printf(#x " = %d\n",... | 2.734375 | 3 |
2024-11-18T22:24:55.062133+00:00 | 2020-11-10T10:30:47 | 5131520323e8a7430b4a649546e6bccb010bc2fb | {
"blob_id": "5131520323e8a7430b4a649546e6bccb010bc2fb",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-10T10:30:47",
"content_id": "c12c10a6b0b0948f8fbe9ca3df6383602cb11344",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "02e962f994c72f16f6b5669b43c0ddaac96ed15c",
"extensio... | stackv2 | #include "my_md5.h"
#include "fota.h"
#include "ff.h"
#include "my_flash.h"
#include "flash.h"
#include "my_misc.h"
K_MUTEX_DEFINE(g_fota_bin_mutex);
void deleteFotaFile(void)
{
FIL fp;
uint32_t size;
if(FR_OK != f_open(&fp, FOTA_FILE_PATH, FA_CREATE_ALWAYS | FA_WRITE))
{
err_log("FAIL T... | 2.546875 | 3 |
2024-11-18T22:24:55.169901+00:00 | 2023-07-08T14:00:54 | 3c436b500c16669dc48aa7de004bdd7979684b09 | {
"blob_id": "3c436b500c16669dc48aa7de004bdd7979684b09",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-08T22:17:15",
"content_id": "9d137a20e6fdf5b84e9e568b5e06a294069d1606",
"detected_licenses": [
"ISC"
],
"directory_id": "7b92efd7dfb60d9b0a498871d5ffa699d0cf7d9e",
"extension": "h"... | stackv2 | #ifndef STREAM_H
#define STREAM_H
#include <stdint.h>
#ifndef __SPHINX_DOC
/* stddef.h is not recognized by hawkmoth for some odd reason */
#include <stddef.h>
#else
typedef unsigned int size_t;
#endif /* __SPHINX_DOC */
#include "FreeRTOS.h"
#include "queue.h"
/* Time to wait for the descriptor table lock to becom... | 2.40625 | 2 |
2024-11-18T22:24:55.518237+00:00 | 2023-07-05T20:55:51 | 06f400fe0f89653cf3e4930146da00b430e23e3f | {
"blob_id": "06f400fe0f89653cf3e4930146da00b430e23e3f",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-05T20:55:51",
"content_id": "d094f4f8df9791efcc034a59f2e7c7443c8d7051",
"detected_licenses": [
"MIT"
],
"directory_id": "11d231d29b7939c4345a3eff6279990a826ce270",
"extension": "h",
... | stackv2 | /*
The MIT License (MIT)
Simple routines providing PWM ranges for N76E003 PWM configuration.
*/
#ifndef N76E003_PWM_RANGE_H
#define N76E003_PWM_RANGE_H
#include <pwm.h>
#ifdef __cplusplus
extern "C" {
#endif
/** will initialize TIM1 as PWM clock source */
void pwm_init_timer(void);
/**
* Supported PWM ranges
... | 2.421875 | 2 |
2024-11-18T22:24:55.746141+00:00 | 2020-06-06T13:46:59 | 09cf8a4183f982ee80dfb490aa1c40ccc1c51405 | {
"blob_id": "09cf8a4183f982ee80dfb490aa1c40ccc1c51405",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-06T13:46:59",
"content_id": "790d0d707fce470d5aa7552c0fcb4f6fca9c532b",
"detected_licenses": [
"Apache-2.0",
"MIT"
],
"directory_id": "661f1a492d679c0533f2245fa94a4798cb83356d",
... | stackv2 | typedef int32_t z_size;
#if Z_BITS == 64
typedef uint64_t z_digit;
typedef __uint128_t _z_ddigit;
#elif Z_BITS == 32
typedef uint32_t z_digit;
typedef uint64_t _z_ddigit;
#elif Z_BITS == 16
typedef uint16_t z_digit;
typedef uint32_t _z_ddigit;
#elif Z_BITS == 8
typedef uint8_t z_digit;
typedef uint16_t _z_ddigit;
#els... | 2.59375 | 3 |
2024-11-18T22:24:55.847902+00:00 | 2012-01-27T08:43:21 | 195e887bd22076d498b1c66049e7dc27757d387a | {
"blob_id": "195e887bd22076d498b1c66049e7dc27757d387a",
"branch_name": "refs/heads/master",
"committer_date": "2012-01-27T08:43:21",
"content_id": "236fdd530ca6e83eedc8810736d911b6ea4bb24b",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "7400ccd91c6d2ce3f8a30e9485f4d65a44b317f6",
"... | stackv2 | #include "syscall.h"
//test du GetChar
//L'appel à PutChar sert à vérifier celui du GetChar.
int main(){
char c = GetChar();
PutChar(c);
PutChar('\n');
return 0;
}
| 2.375 | 2 |
2024-11-18T22:24:56.684226+00:00 | 2021-10-23T17:17:39 | 0b4014587d85617c7980abe00413bcd80783e74a | {
"blob_id": "0b4014587d85617c7980abe00413bcd80783e74a",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-23T17:17:39",
"content_id": "64e4b669c1bdb57c001e60f93a6102a0b469e13e",
"detected_licenses": [
"MIT"
],
"directory_id": "71b404b964b13bb177b906fee25baf550b99e0f4",
"extension": "c"... | stackv2 | #include "appendBufferTest.h"
#include <ringbuffer/c/ringbuffer.h>
#define BUFFER_SIZE 128
void Append_Element_No_Round(void** state)
{
RingBuffer buffer;
uint8_t data[BUFFER_SIZE] = {0xFF};
uint8_t elements[BUFFER_SIZE] = {0};
assert_int_equal(ringBufferInit(&buffer, data, BUFFER_SIZE), 1);
fo... | 2.828125 | 3 |
2024-11-18T22:24:57.095637+00:00 | 2019-09-19T21:31:59 | 4b8543efc6642a641bc77ac6a8045c19f4de95df | {
"blob_id": "4b8543efc6642a641bc77ac6a8045c19f4de95df",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-20T19:47:25",
"content_id": "720de470fee3c3f9663e277998c13eda29c4a21e",
"detected_licenses": [
"MIT"
],
"directory_id": "2f6b20655ab2e6a512e459c1db136362fe347c9e",
"extension": "h"... | stackv2 | /*
Copyright (C) 2013 Timo Linna. All Rights Reserved.
C API wrapper for NuoDB C++ API
The interface has been designed for Go's CGO in mind, but it should be
usable from plain C too.
To reduce CGO function call and memory allocation overhead, the API
enforces the client to batch operations in... | 2.375 | 2 |
2024-11-18T22:24:57.198224+00:00 | 2023-08-08T20:04:25 | e18c9fdd8a1ec348bc89b323f5542fd09a808a04 | {
"blob_id": "e18c9fdd8a1ec348bc89b323f5542fd09a808a04",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-21T12:16:10",
"content_id": "b450b2e1dfa3ac14160d0bdb470505b52e78edae",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "8403fe1593ebaf78dec56af7706637b3ceee4da2",
"extens... | stackv2 | #include <stdint.h>
// Similar to switching.c, but switching.c has only a single instance
// in a single function and this has multiple instances in multiple
// functions.
int64_t __ucmpdi2() {};
int64_t reflect(int64_t a, int64_t b, int64_t c)
{
switch (b) {
case 0: return b+5;
case 1: return a+b;
ca... | 2.34375 | 2 |
2024-11-18T22:24:57.493244+00:00 | 2020-11-26T16:33:14 | 816b418d73d0df6611b87dd101c74d755e979539 | {
"blob_id": "816b418d73d0df6611b87dd101c74d755e979539",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-26T16:33:14",
"content_id": "9c9a3a1027241cb617ec175e42d7a4c8fd1073fd",
"detected_licenses": [
"MIT"
],
"directory_id": "8eaae846e804a4b3332fe39bad5fe51d89275a12",
"extension": "h",
... | stackv2 | #pragma once
#include <stdbool.h>
#include "ArvoreInt.h"
// Lista encadeada simples
// Tipos exportados
typedef struct Lista Lista;
typedef struct Elemento Elemento;
// Representa uma lista
struct Lista
{
Elemento *primeiro;
int tamanho;
};
// Representa um elemento da lista
struct Elemento
{
Node *valo... | 2.71875 | 3 |
2024-11-18T22:24:57.567669+00:00 | 2018-05-22T22:05:19 | a7d71e69a8e08b41fe228e026aaf6202042bd137 | {
"blob_id": "a7d71e69a8e08b41fe228e026aaf6202042bd137",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-22T22:05:19",
"content_id": "3781cf9c02ee4451cb6ed9305a039e0240a915d0",
"detected_licenses": [
"MIT"
],
"directory_id": "45ea953988bee1dd63b710be135a11afac3b4ff1",
"extension": "c"... | stackv2 | #include "owns.h"
void ownCopy_8s(const signed char *pSrc, signed char *pDst, int len) {
#pragma GCC ivdep
for (int i = 0; i < len; i++) {
pDst[i] = pSrc[i];
}
}
| 2 | 2 |
2024-11-18T22:24:58.099848+00:00 | 2018-04-23T21:23:41 | 1c401ea9127c4b7c3e3e9ba72d0af91b6979b16c | {
"blob_id": "1c401ea9127c4b7c3e3e9ba72d0af91b6979b16c",
"branch_name": "refs/heads/develop",
"committer_date": "2018-04-23T21:23:41",
"content_id": "b80e48927bb2893e0fb6b80e2aa36c0008980861",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d",
"extension"... | stackv2 | /* *********************************************************************** */
/* *********************************************************************** */
/* DBC Generic Sybase Support Functions Library Module */
/* *********************************************************************** */
/*
File Name : %M%
... | 2.078125 | 2 |
2024-11-18T22:24:58.743341+00:00 | 2021-01-28T10:40:59 | c7fcd439134d99278daf3474abce6cd3818e3f77 | {
"blob_id": "c7fcd439134d99278daf3474abce6cd3818e3f77",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-28T10:40:59",
"content_id": "928fafb1406dfee1e1556ddfd9d4ae53084307c8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0ee1c1939b1849bd8f10167ca2da31bd17e24189",
"extensio... | stackv2 | #include <osl/osl.h>
#include <osl/str.h>
#include <assert.h>
#include "header.h"
static void test_parse_header_firstline1(void)
{
chttpserver_header_firstline_t * firstline = chttpserver_header_firstline_from_str("GET / HTTP/1.1\r\n");
assert(strcmp(firstline->part1, "GET") == 0);
assert(strcmp(firstline-... | 2.203125 | 2 |
2024-11-18T22:24:58.893294+00:00 | 2021-06-17T20:12:39 | ffd2566f89c48984fac1aa56b10c40b58f894827 | {
"blob_id": "ffd2566f89c48984fac1aa56b10c40b58f894827",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-17T20:12:39",
"content_id": "37c0201f00fbfcf73e120fd83d762dd5f255236f",
"detected_licenses": [
"MIT"
],
"directory_id": "04808ef5c1458594831dea3ac8e8a708c1032e98",
"extension": "h"... | stackv2 | /*
* File: RC_servo.h
* Author: Aaron Hunter
* Brief: Library driver for up to four servos for the Max32 dev board
* Created on 12/18/2020 3;30 pm
* Modified
*/
#ifndef RCSERVO_H
#define RCSERVO_H
/*******************************************************************************
* PUBLIC #INCLUDES ... | 2.34375 | 2 |
2024-11-18T22:24:59.539807+00:00 | 2023-06-15T15:02:11 | c656bbb2c34cb5758c4873721bce5d29884990af | {
"blob_id": "c656bbb2c34cb5758c4873721bce5d29884990af",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-15T15:02:11",
"content_id": "1d35d3b5f6f8e5e1a04ee778e89c4be7123bb20d",
"detected_licenses": [
"MIT"
],
"directory_id": "0334c0b6d07c45c273f894771b73317b3f80e4cb",
"extension": "h"... | stackv2 | /*
test.h f"ur Test-Anweisungen.
Z.B. zur Ausgabe von Zwischen-Ergebnissen:
test(printf("x=%lf\n", x));
Mit der Compiler-Option -DNTEST (cc -c -DNTEST foo.c)
verschwindet die Anweisung aus dem Programm. D.h. Es wird dann auch keine
zus"atzliche Rechenzeit verbraucht
(viel zu simpel, um seine... | 2.046875 | 2 |
2024-11-18T22:25:00.897142+00:00 | 2021-04-08T12:59:14 | 8474d71abd1f9575826e1f8bff0d14ac9cf1d1cf | {
"blob_id": "8474d71abd1f9575826e1f8bff0d14ac9cf1d1cf",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-08T12:59:14",
"content_id": "17d7ab0f307984631151d31d129c5bff73905318",
"detected_licenses": [
"MIT"
],
"directory_id": "c1102a8973f54aac3eb23eb61f793a20fc9987ba",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <rtems.h>
long factorial(int number)
{
int i;
long result;
result = 1;
for(int i = 1; i <= number; i++)
result = result * i;
return result;
}
double combination(int n, int k)
{
double result = 0;
result ... | 2.28125 | 2 |
2024-11-18T22:25:01.064228+00:00 | 2019-01-03T13:57:10 | 59da933f45710e694e2e1aff314fa5dedebe118c | {
"blob_id": "59da933f45710e694e2e1aff314fa5dedebe118c",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-03T13:57:10",
"content_id": "ac95d3f37fc6d87dad6f14638741f0d287e53867",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "5cba55366071481721bbb96bb6c9872646cba668",
"extens... | stackv2 |
#include "sensi_boards.h"
#include "sensi_driver_error.h"
#include "sensi_interface_log.h"
#include "sensi_interface_spi.h"
#include "task_spi.h"
sensi_driver_status_t task_spi_init(void)
{
sensi_interface_spi_init_config_t config;
uint8_t ss_pins[] = SENSI_BOARD_SPI_SS_LIST;
config.mosi = SENSI_BOARD_SPI_MOSI_... | 2.421875 | 2 |
2024-11-18T22:25:01.194358+00:00 | 2022-07-02T11:17:44 | e405a4833d025a409b15e7dab7c77f708a5df851 | {
"blob_id": "e405a4833d025a409b15e7dab7c77f708a5df851",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-02T11:17:44",
"content_id": "eda401ea9b1bc12bc27b34d1dcd8b8f84eb8259b",
"detected_licenses": [
"Unlicense"
],
"directory_id": "03b2c80dbc41e904b167d504666e27d798da5447",
"extension... | stackv2 | #include "compile_load.h"
#include "compile_read.h"
#include "compile_stream.h"
#include "compile_typedef.h"
#include "condition.h"
#include "control_execute.h"
#include "control_object.h"
#include "execute.h"
#include "hashtable.h"
#include "hold.h"
#include "load_code.h"
#include "stream.h"
#include "stream_function.... | 2.046875 | 2 |
2024-11-18T22:50:22.266120+00:00 | 2014-07-24T19:56:14 | 91342e6cbb4fc8d7a22509af8d5981346f9050f2 | {
"blob_id": "91342e6cbb4fc8d7a22509af8d5981346f9050f2",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-24T19:56:14",
"content_id": "cb0808a53e9ad0ec1dd6e1d605a3ad741fa7fd79",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "0f71b7f9984b86551ccb830559453a9dcae65767",
"... | stackv2 |
#include "syscall.h"
int main(){
int index;
int i;
index = CreateLock("t1_l1",sizeof("t1_l1"));
Acquire(index);
Write("t1_t1: Acquired Lock 1, waiting for t3\n", sizeof("t1_t1: Acquired Lock 1, waiting for t3\n"), ConsoleOutput);
Write("t1_t1: working in CS\n",sizeof("t1_t1: working in CS\n"), ConsoleOutput);... | 2.515625 | 3 |
2024-11-18T22:50:25.138857+00:00 | 2013-10-05T04:05:42 | 72ac10ce1e24f3d4eacb8742a99cd98b4bb54d77 | {
"blob_id": "72ac10ce1e24f3d4eacb8742a99cd98b4bb54d77",
"branch_name": "refs/heads/master",
"committer_date": "2013-10-05T04:05:42",
"content_id": "067eafa8bd140d4b4c932a7f3f666543df18b836",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "064ebd5cccabf7ba13c9b18aac013aaa28d5f739",
"extens... | stackv2 | /*
* Copyright (C) 2006-2009 Vincent Hanquez <tab@snarc.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; version 2.1 or version 3.0 only.
*
* This program is distributed in t... | 2.3125 | 2 |
2024-11-18T22:50:25.590458+00:00 | 2023-08-16T12:50:05 | cedfd034b9918b318b7ddb45d595ca9c3d0c59f3 | {
"blob_id": "cedfd034b9918b318b7ddb45d595ca9c3d0c59f3",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T12:50:05",
"content_id": "36302acc9124489b9403e20916fa49050294e66d",
"detected_licenses": [
"MIT"
],
"directory_id": "984383140e7ad43ea42d6a79c3797438ebcfe71e",
"extension": "c"... | stackv2 | /*
Get a byte or bytes for one character based on UTF-8 out of the keyboard
Remarks:
Call fn. rl() later
Refer at fn. cli_i
Add an ESC (033) character if a meta key starting from (0xE0) is detected
*/
# define CAR_H
# include "./../../../config.h"
signed char *(__cdecl cin_b(void)) {
auto signed char *b;
auto sign... | 2.3125 | 2 |
2024-11-18T22:50:25.796560+00:00 | 2023-03-31T17:13:50 | cb79d75705312fef7a646554339e2227a94265ac | {
"blob_id": "cb79d75705312fef7a646554339e2227a94265ac",
"branch_name": "refs/heads/main",
"committer_date": "2023-03-31T17:13:50",
"content_id": "8d5a801705cc3a503525852c117909c755811df7",
"detected_licenses": [
"MIT"
],
"directory_id": "c011253e93d8126631926802fe0a3f21cbd5ea05",
"extension": "c",
... | stackv2 | /**
* File : example.c
* License: MIT
* Author : Andrei Leonard Nicusan <a.l.nicusan@bham.ac.uk>
* Date : 21.05.2021
*/
#include "konigcell2d.h"
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
// Initialise pixel grid
kc2d_int dims[2] = {2048, 1080};
kc2d_real xlim[2] =... | 3.015625 | 3 |
2024-11-18T22:50:25.936209+00:00 | 2023-07-28T12:39:57 | 1847a07b11d6cc69d3b5f99068098da28ad9fc74 | {
"blob_id": "1847a07b11d6cc69d3b5f99068098da28ad9fc74",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-28T12:39:57",
"content_id": "7e13d83c5abc25ad1eeb7f2d55f15dcd41704915",
"detected_licenses": [],
"directory_id": "65e3391b6afbef10ec9429ca4b43a26b5cf480af",
"extension": "c",
"filename... | stackv2 | // This is an example macro which loops on all ESD events in a file set
// and stores the selected information in form of mini ESD tree.
// It also extracts the corresponding MC information in a parallel MC tree.
//
// Input: galice.root,Kinematics.root,AliESDs.root (read only)
// Output: miniesd.root (recreate)
//
// ... | 2.078125 | 2 |
2024-11-18T22:50:26.009257+00:00 | 2015-11-12T06:00:38 | df2181fde384c0ed8f512df178a5f5b7d7e0e1a6 | {
"blob_id": "df2181fde384c0ed8f512df178a5f5b7d7e0e1a6",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-12T06:00:38",
"content_id": "82c02c0ab017471ed6229dd0cc9acf11a40aa88c",
"detected_licenses": [
"MIT"
],
"directory_id": "242cf1e0600f08935ec097d87ce4d6de936e81f9",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <sys/time.h>
#include "experimentos.h"
#include "alfabetos.h"
#include "resultados.h"
#include "algoritmos.h"
void alfabeto_binario_exp(char *nombre, FILE* fbf, FILE* fkmp, FILE* fbmh){
struct timeval inicio, fin;
struct resultado *r;
FILE *thefi... | 2.46875 | 2 |
2024-11-18T22:50:26.356507+00:00 | 2020-07-18T03:33:48 | e2382a6dc7c9ced438dc8733413977730103c215 | {
"blob_id": "e2382a6dc7c9ced438dc8733413977730103c215",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-18T03:33:48",
"content_id": "0d77dc974812e948d79616ea22277a6e7041d2ed",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d52d5fdbcd848334c6b7799cad7b3dfd2f1f33e4",
"extensio... | stackv2 | /*
* Copyright 2014-present Facebook, 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 a... | 2.203125 | 2 |
2024-11-18T22:50:26.557625+00:00 | 2020-12-10T14:27:00 | cbafd29e85cbe64f2e0ad4cdd39e5ed05f5ccecb | {
"blob_id": "cbafd29e85cbe64f2e0ad4cdd39e5ed05f5ccecb",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-10T14:27:00",
"content_id": "a5c51b78e814f214b2defe9bb8be0e8f92f3c6ee",
"detected_licenses": [
"MIT"
],
"directory_id": "3e01241a619f18c1c97f4cd01e85620608ec9c47",
"extension": "c"... | stackv2 | #include <strings.h>
#include <ctype.h>
int my_tolower(int c);
int my_strcasecmp(const char *_l, const char *_r)
{
const unsigned char *l=(void *)_l, *r=(void *)_r;
for (; *l && *r && (*l == *r || my_tolower(*l) == my_tolower(*r)); l++, r++);
return my_tolower(*l) - my_tolower(*r);
}
| 2.4375 | 2 |
2024-11-18T22:50:28.124200+00:00 | 2021-06-26T04:45:19 | adbe36561ea71898fb658bb23516af41019064c7 | {
"blob_id": "adbe36561ea71898fb658bb23516af41019064c7",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-26T04:45:19",
"content_id": "c6e332a4c899a85c0080674b83baf17eb64b2a1a",
"detected_licenses": [
"MIT"
],
"directory_id": "a3a496b1c3f7d04b587999b58c3f238b9d78bcd8",
"extension": "c"... | stackv2 | /*
** realloc.c for realloc in /home/mesure_a/workspace/c/malloc
**
** Made by arnaud mesureur
** Login <mesure_a@epitech.net>
**
** Started on Thu Feb 10 22:26:55 2011 arnaud mesureur
** Last update Sat Feb 12 20:09:48 2011 jose rodrigues
*/
#include <string.h>
#include "malloc.h"
void *realloc(void *ptr, size_... | 2.8125 | 3 |
2024-11-18T22:50:28.182628+00:00 | 2021-11-24T19:30:10 | fcf8518e0bc35041cd2fb761ef1d2ab678ca5325 | {
"blob_id": "fcf8518e0bc35041cd2fb761ef1d2ab678ca5325",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-24T19:30:10",
"content_id": "71fda8ad75c08a7ba2f7c088c5aec7d3a8b62d4f",
"detected_licenses": [
"MIT"
],
"directory_id": "e07d1cedbef6b90d1a816cf82612d481e08a0faa",
"extension": "c",
... | stackv2 | #include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "logger-config.h"
#include "logger.h"
FILE* file = NULL;
int loggerLevel = LOGGER_LEVEL_ALL;
/* used to know if we can write in file, set to 1 if the file can't be opened */
int loggerFileError = 0;
static voi... | 2.78125 | 3 |
2024-11-18T22:50:29.036102+00:00 | 2016-10-20T14:33:37 | bb67a9c6a996218278a6b838687ebcf3a79cc18c | {
"blob_id": "bb67a9c6a996218278a6b838687ebcf3a79cc18c",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-20T14:33:37",
"content_id": "d3cca331fb9f7214acb9f83a4934c9bc018d6847",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0cf2682b6201d76e1ce4ae5436f8787247ed9aca",
"extensio... | stackv2 | #ifndef __MF_DEVICEMGR_H__
#define __MF_DEVICEMGR_H__
#include "Openflow/types.h"
#include <pthread.h>
#include "mf_lf_list.h"
struct mf_switch;
#define MAX_MF_SWITCH_NUM 4096
#define MAX_HOST_NUM 4096
#define HOST_MUTEX_SLOT_SIZE 8
#define HOST_HASH_MAP_SIZE 2048
struct mf_devicemgr
{
uint32_t total_switch_nu... | 2.421875 | 2 |
2024-11-18T22:50:29.310538+00:00 | 2020-08-04T03:38:52 | 67f8f01bcecb723dedf885ed23bd9edae42d3f12 | {
"blob_id": "67f8f01bcecb723dedf885ed23bd9edae42d3f12",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-04T03:38:52",
"content_id": "87489eb37e015fd59a38e7af948d36270d527a66",
"detected_licenses": [
"MIT"
],
"directory_id": "d9178640630a3f1623600ad4e7691a00126ebbd0",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int ft_free(void *num, void *str)
{
free(num);
free(str);
printf("free complete\n");
return (0);
}
int main()
{
char *str;
int *num;
if (!(str = malloc(sizeof(char) * 10)))
return (0);
if (!(num = malloc(sizeof(char) * 15)))
return (0);
return(ft_free(num, str));
... | 2.71875 | 3 |
2024-11-18T22:50:30.303489+00:00 | 2018-04-28T09:39:05 | c93b2636d5700fbc5961ffbada8840ceff825013 | {
"blob_id": "c93b2636d5700fbc5961ffbada8840ceff825013",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-28T09:39:05",
"content_id": "265d875b626960cebcdbc0b8075cca21ca345451",
"detected_licenses": [
"MIT"
],
"directory_id": "6a5ecdcc3167ae599671147f37bfd7a9645c6457",
"extension": "c"... | stackv2 | #include <Kernel.h>
#include <Shell.h>
import IClock *Clock;
import IThread *Thread;
import IMemory *Memory;
import IProcess *Process;
extern IGraphics *Graphics;
extern IBitmap *Bitmap;
extern IWindow *Window;
extern IEvent *Event;
extern ICanvas *Canvas;
CBitmap *IWindow_GetIcon(char *path);
bool D... | 2.015625 | 2 |
2024-11-18T22:50:30.860777+00:00 | 2023-03-24T02:46:49 | 0e315994c59c19e76d0007eca67a191890b5aea8 | {
"blob_id": "0e315994c59c19e76d0007eca67a191890b5aea8",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-24T02:46:49",
"content_id": "1462d959fe59a146f486d7dda77fe1d421e6edb4",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "adb5c2d62639a4fb919a2ec29c9062ee2f14381a",
"extens... | stackv2 | /* SPDX-License-Identifier: BSD-2-Clause */
/* Copyright (c) 2020 KBEmbedded */
#include <stdint.h>
#include <string.h>
#include "lcd.h"
#include "ms_ports.h"
#include "msfont_3x5.h"
static uint8_t x_pos, y_pos;
static uint8_t y_min, y_max, x_min, x_max;
static uint8_t invert;
void g_textmode_set_invert(uint8_t in... | 2.609375 | 3 |
2024-11-18T22:50:32.027605+00:00 | 2019-06-02T10:02:05 | a48d34fd10b565b3515492ef8520ae49c0a829bd | {
"blob_id": "a48d34fd10b565b3515492ef8520ae49c0a829bd",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-02T10:02:05",
"content_id": "8fcc8b71d5c15f49c2c341c92726b0eb70237340",
"detected_licenses": [
"MIT"
],
"directory_id": "5bfcf68670094d02cfe694025cc22af9a3847ab9",
"extension": "c"... | stackv2 | extern char *getenv(const char *name);
extern int foo();
extern int bar();
char *str[1024];
int
foo(char *s[]) {
char *t1 = s[2];
char *ut1 = s[1];
return 0;
}
int
main()
{
str[2] = getenv("gude");
int rc = foo(str);
return rc;
}
| 2.125 | 2 |
2024-11-18T22:50:32.350894+00:00 | 2021-06-10T06:40:22 | 90f84964803d29f0f05c838cd7436512248f8372 | {
"blob_id": "90f84964803d29f0f05c838cd7436512248f8372",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-10T06:40:22",
"content_id": "6f070201b6a9dbae365a84c2d3f50b5ed1f6dd13",
"detected_licenses": [
"MIT"
],
"directory_id": "54cfe7298cbd72ee8dcb3eb27af022c7ce0dba7f",
"extension": "c"... | stackv2 | #include "led.h"
void LED_start_stop(int a){
if(a){
PORTB |= (1<<PB5);
return;
}
PORTB &= ~(1<<PB5);
}
| 2 | 2 |
2024-11-18T22:50:32.834206+00:00 | 2015-09-10T12:21:47 | 62d002616373d529b2258969209039f2660a2f0e | {
"blob_id": "62d002616373d529b2258969209039f2660a2f0e",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-10T12:21:47",
"content_id": "d32a788147ab8ea077d312bd37b1a75778354153",
"detected_licenses": [
"MIT"
],
"directory_id": "520bf7676a04d8a2d379bb11292c864a631dd59d",
"extension": "c"... | stackv2 | #include <ic_stdc.h>
static int __cdecl
l_getlocaleinfo (ic_slocal_t *p, LCID lcid, LCTYPE lc, char *d, int dn, int cp)
{
int r = 0, wn, w_mem = 0;
wchar_t *w;
if (!cp)
cp = p->locinfo->lc_codepage;
if (!(wn = GetLocaleInfoW (lcid, lc, NULL, 0))
|| (_IC_HEAP_MAX_REQUESTED_SIZE / sizeof (wchar_t)) <... | 2.078125 | 2 |
2024-11-18T22:50:32.982475+00:00 | 2018-05-28T18:40:10 | 835c477ff21e322b56d61e0cb65916b068bdd63f | {
"blob_id": "835c477ff21e322b56d61e0cb65916b068bdd63f",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-28T18:40:10",
"content_id": "b923ab046332c35133f386833524a42e1f21fae6",
"detected_licenses": [
"MIT"
],
"directory_id": "b4a3355ec84d211c8f4f2f831e61e943e9ac8bba",
"extension": "h"... | stackv2 | // Consists all SSE function's implementations for the game engine
#ifndef __ZE_SSE_HELPER_H__
#define __ZE_SSE_HELPER_H__
#ifndef USING_SSE
#define USING_SSE 1
#endif
#if USING_SSE
#include "Utils/Macros.h"
#include <xmmintrin.h>
#include <pmmintrin.h>
#define _mm_madd_ps(x, y, z) \
_mm_add_ps(_mm_mul_ps((x),(y)... | 2.390625 | 2 |
2024-11-18T22:50:34.026684+00:00 | 2021-01-13T04:42:03 | c11e22f126d2dd398628fb469991c1f0ad15957f | {
"blob_id": "c11e22f126d2dd398628fb469991c1f0ad15957f",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-13T04:42:03",
"content_id": "37913732da0bccd5dd72dd25225f13f77fe01f1b",
"detected_licenses": [
"MIT"
],
"directory_id": "a9f6a3dfc2fb54547c5451d5c1380842aff45311",
"extension": "c"... | stackv2 | /*
* Slave API Project - Tank Bot Bare ver 2 board
*
* org: 08/08/2015 0.01 ndp
* author: Nels "Chip" Pearson
* revision: 11/06/2015 0.02 ndp
*
* Dependent on:
* module function files
*/
#include <avr/io.h>
#include <avr/pgmspace.h>
#include "sysdefs.h"
// Device prototypes
#include "core_functions.h"
#in... | 2.078125 | 2 |
2024-11-18T22:50:34.262618+00:00 | 2020-05-29T17:40:37 | 0394583823d4f0aea313c77a84954ec37da9aed8 | {
"blob_id": "0394583823d4f0aea313c77a84954ec37da9aed8",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-29T17:40:37",
"content_id": "40a30190471b544105315594e320caa1e02d053e",
"detected_licenses": [
"MIT"
],
"directory_id": "7594a55a335043b67dc49cdc59cca10d76409bb6",
"extension": "c"... | stackv2 | #include "groupe_employe.h"
#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
////////////////////////////////////////////////////////// EMPLOYE ////////////////////////////////////////////////
// Nombre total de tests exécutés.
int tests_executes = 0;
// Pour c... | 2.78125 | 3 |
2024-11-18T22:50:34.491182+00:00 | 2020-06-03T12:01:07 | 581cfdacaddc9e6540beffe63cffead0f95c9731 | {
"blob_id": "581cfdacaddc9e6540beffe63cffead0f95c9731",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-03T12:01:07",
"content_id": "3b8cc1179fd1adb57f6d8c50879ae650ce6587c7",
"detected_licenses": [
"MIT"
],
"directory_id": "9c4a5764ae44460f7fff14912c50f45c428449b0",
"extension": "c"... | stackv2 | #include "camera.h"
void camera_init(camera *c, const vec3 *lookfrom, const vec3 *lookat, const vec3 *vup, double vfov, double aspect, double aperture, double focus_dist) {
vec3_copy(&c->origin, lookfrom);
c->lens_radius = aperture / 2;
double theta = degrees_to_radian(vfov);
double half_height = tan... | 2.296875 | 2 |
2024-11-18T22:50:35.266758+00:00 | 2019-05-06T18:37:05 | e70f83f0d51a2276c904c5e97f5fdeb48bf52ae0 | {
"blob_id": "e70f83f0d51a2276c904c5e97f5fdeb48bf52ae0",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-06T18:37:05",
"content_id": "585f65561dcd83c39385c45583710329bc564ba4",
"detected_licenses": [
"MIT"
],
"directory_id": "2ef708ccd1294d8f2d30b8b3d20e426a18ecaab3",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <X11/extensions/XInput2.h>
#include <X11/XKBlib.h>
#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/extensions/XTest.h>
#include <X11/keysym.h>
#include <time.h>
#include "CycleWindows.h"
#include <assert.h>
static in... | 2.046875 | 2 |
2024-11-18T22:50:36.053675+00:00 | 2019-08-06T14:24:54 | eee012171c506c100d4ef94dccc9f9280029a08e | {
"blob_id": "eee012171c506c100d4ef94dccc9f9280029a08e",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T14:24:54",
"content_id": "1d6d762d6ab7d16221926450e23dd7a6cfc5dc99",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "021a3ccdcb91d84629f1de7343981b572840b169",
"extens... | stackv2 | static char help[] = "Tests ISLocate().\n\n";
#include <petscis.h>
static PetscErrorCode TestGeneral(void)
{
MPI_Comm comm = PETSC_COMM_SELF;
const PetscInt idx[] = { 8, 6, 7, -5, 3, 0, 9 };
PetscInt n = 7, key = 3, nonkey = 1, keylocation = 4, sortedlocation = 2, location;
IS is;
Pe... | 2.125 | 2 |
2024-11-18T22:50:36.139156+00:00 | 2020-01-01T19:25:22 | 75731ab798a35c03cf676530cbc7232393504643 | {
"blob_id": "75731ab798a35c03cf676530cbc7232393504643",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-01T19:25:22",
"content_id": "af1eae2ae929293771449929769516b802a6c411",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9af8c086f7638ad41a2da682526cd2ded2ab2b76",
"extens... | stackv2 | /* test suite for datastore */
#include "../datastore.h"
#include "test_util.h"
#include "../../common/util.h"
#include "../../3rdparty/vec.h"
int main() {
nocviz_ds* ds;
/* should be able to initialize and free without memory leaks */
ds = nocviz_ds_init();
nocviz_ds_free(ds);
/* test adding a heap-allocated ... | 2.734375 | 3 |
2024-11-18T22:50:36.369687+00:00 | 2020-12-26T22:07:00 | e393898c306dd9293eaccebd8d089980af8fb2b2 | {
"blob_id": "e393898c306dd9293eaccebd8d089980af8fb2b2",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-26T22:07:00",
"content_id": "b2b504cec9306144a299f0279c8f16ea7260a75a",
"detected_licenses": [
"MIT"
],
"directory_id": "09d83ff7c6da1895a65156cc99a1d7ca3489da40",
"extension": "c",
... | stackv2 | #include "liste.h"
int veci_od(Cvor * glava, int broj,int suma) {
if(glava == NULL)
return suma;
if(glava->vrednost > broj)
suma++;
veci_od(glava->sledeci,broj,suma);
}
int main(int argc, char ** argv)
{
if(argc != 2)
greska();
int x;
scanf("%d", &x)... | 2.359375 | 2 |
2024-11-18T22:50:37.317348+00:00 | 2019-01-27T10:00:52 | 2b179b8660f85f964b84a7976f096ccaa6021c62 | {
"blob_id": "2b179b8660f85f964b84a7976f096ccaa6021c62",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-27T10:00:52",
"content_id": "0c3c053fcd6f462c9cf537668f961925f26ee43e",
"detected_licenses": [
"MIT"
],
"directory_id": "cb0e8a3fdf2f6bfde063451c3b3af76c3e1c2969",
"extension": "c"... | stackv2 | //Include zone
#include "Object.h"
//Macros zone
//Type Charapter
struct ObjectRep {
//Object properties
int x; // X axis
int y; // Y axis
int w; // Width
int h; // Height
bool isInteractive; // is interactive?
bool isScoreable; // is scoreable?
... | 2.5 | 2 |
2024-11-18T22:50:38.457835+00:00 | 2019-07-25T15:15:44 | 93c2b8130a3edd219082272f757b5482fe877a74 | {
"blob_id": "93c2b8130a3edd219082272f757b5482fe877a74",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-25T15:15:44",
"content_id": "080c787191641255f9f660bbcf2dc16e86df03c3",
"detected_licenses": [
"MIT"
],
"directory_id": "6f3875661ec91cb52e08b3b49f195378ef800f85",
"extension": "c"... | stackv2 | //
// main.c
// A02_4_SingleLinkedList
//
// Created by qingmei2 on 2019/7/24.
// Copyright © 2019 qingmei2. All rights reserved.
//
#include <stdio.h>
#include "SingleLinkedList.h"
/* 函数原型 */
Status CmpGreater(LElemType_L e, LElemType_L data); //判断data是否大于e //若data大于e,返回TRUE
void PrintElem(LElemType_L e); ... | 3.234375 | 3 |
2024-11-18T22:50:38.567118+00:00 | 2021-02-13T02:44:28 | b28f602538649eaa6d3b66821a17e1548dae3da5 | {
"blob_id": "b28f602538649eaa6d3b66821a17e1548dae3da5",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-13T02:44:28",
"content_id": "a6cea1d92fc8c68f3b2c6f984c672ebca2ccbe89",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b95f6912c74cf059107887d470d249582b9f1eb8",
"extensio... | stackv2 | /* mfMenuSetTableEntry.c */
#include "mfmenu_types.h"
void mfMenuSetTableEntry( MfMenuTable *menu, unsigned int tableid, unsigned int row, unsigned int col, char *label, MfControl ctrl, void *var, void *arg )
{
menu[--tableid].entry[--row][--col].active = ctrl ? true : false;
menu[tableid].entry[row][col].label ... | 2.234375 | 2 |
2024-11-18T22:50:39.452809+00:00 | 2017-11-13T08:58:26 | 3e4b9bf8787cd98ad4c20691f4c53f8e1f174b1e | {
"blob_id": "3e4b9bf8787cd98ad4c20691f4c53f8e1f174b1e",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-13T08:58:26",
"content_id": "b84cfc0f376d4f8f0af4a39eee7b8b2da4a99e0b",
"detected_licenses": [
"MIT"
],
"directory_id": "b061fc9b16cabb9efd945ad533eb3dacfb9bd7a4",
"extension": "h"... | stackv2 | // Graph.h ... interface to Graph ADT
// Written by John Shepherd, March 2013
#ifndef GRAPH_H
#define GRAPH_H
#include <stdio.h>
// graph representation is hidden
typedef struct GraphRep *Graph;
// vertices denoted by integers 0..N-1
typedef int Vertex;
int validV(Graph,Vertex); //validity check
// edges are pa... | 2.3125 | 2 |
2024-11-18T22:50:39.831350+00:00 | 2020-12-17T17:35:52 | 410fc1a6f5e25a718746a2eed2b5cb0cae335484 | {
"blob_id": "410fc1a6f5e25a718746a2eed2b5cb0cae335484",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-17T17:35:52",
"content_id": "183eed7fc98878aa0f0e9f59b6495a7d74648928",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "724a7e0622547784d7e9c21d2120f93074a110a8",
"extensio... | stackv2 | #include "builtins.h"
#include "lexer.h"
#include "parser.h"
#include "interpreter.h"
#include "error.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int is_try = 0;
void trystatuschange(int try_) {
is_try = try_;
}
void* print(var toprint) {
if(toprint.type == 'i') {
printf(... | 2.71875 | 3 |
2024-11-18T22:50:39.895065+00:00 | 2021-07-12T14:03:16 | 02e1cac93cd52833a9704a9b28f51728b8df0b1e | {
"blob_id": "02e1cac93cd52833a9704a9b28f51728b8df0b1e",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-12T14:03:16",
"content_id": "b0aa37fc4ca93a9110a3af78924aa31d1b3ec1c5",
"detected_licenses": [
"MIT"
],
"directory_id": "777bb211f34ee8b4b81ddb90d738afd4c2d59f3f",
"extension": "c"... | stackv2 | #include <stdio.h>
int main(void)
{
static char stdoutBuffer[256] = "";
// Turn on full output buffering for stdout.
setvbuf(stdout, stdoutBuffer, _IOFBF, sizeof stdoutBuffer);
for(unsigned i = 1; i < 100; i += 2) printf("%u\n", i);
}
| 2.484375 | 2 |
2024-11-18T22:50:40.321054+00:00 | 2021-07-04T12:44:40 | b1ddb508c2db322f55ac4394d77f9885a5da8020 | {
"blob_id": "b1ddb508c2db322f55ac4394d77f9885a5da8020",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-04T12:44:40",
"content_id": "dcb888a608698a27c9e8e9d706729e54af8b7c9e",
"detected_licenses": [
"MIT"
],
"directory_id": "3d13ffe64f084a7a31841b0c6f5c513818177267",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_floor.c :+: :+: :+: ... | 3.109375 | 3 |
2024-11-18T22:50:41.887233+00:00 | 2021-10-11T20:42:17 | 11911cb10a8433a8bfaa7cd8e87a5bb17c305c96 | {
"blob_id": "11911cb10a8433a8bfaa7cd8e87a5bb17c305c96",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-11T20:42:17",
"content_id": "22daa50471fbdc3c7feb279cc275ebe108108520",
"detected_licenses": [],
"directory_id": "e695418ad9af72885a20ef89c4d31e2ad85e64b1",
"extension": "c",
"filename... | stackv2 | /////////////////////////////////////////////
// test_absorption_activity_floryhuggins.c //
/////////////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include "absorption_activity_floryhuggins.h"
#include "refrigerant_vaporPressure.h"
int main() {
// Define parameter record for executing U... | 2.53125 | 3 |
2024-11-18T22:50:41.991969+00:00 | 2017-02-10T08:32:02 | f6bfb386fb08f246a9ee2f02060f54d0efd54a8b | {
"blob_id": "f6bfb386fb08f246a9ee2f02060f54d0efd54a8b",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-10T08:32:02",
"content_id": "d76b56d131624d9a19f90cf02be01bdd56f66ca3",
"detected_licenses": [
"MIT"
],
"directory_id": "5a486a9a72877be7056dd463bac12808e94917cc",
"extension": "h"... | stackv2 | /*
INTERPRETER.H
-------------
Copyright (c) 2017 Timothy Kral, Vaughan Kitchen
Released under the MIT license (https://opensource.org/licenses/MIT)
*/
/*!
@file
@brief Chip-8 interpreter
@author Timothy Kral, Vaughan Kitchen
@copyright 2017 Timothy Kral, Vaughan Kitchen
*/
#ifndef INTERPRETER_H_
#define I... | 2.703125 | 3 |
2024-11-18T22:50:42.538244+00:00 | 2022-01-04T07:11:24 | caaa266ef4dbbfe27496a32ed3c74c108b7bf48a | {
"blob_id": "caaa266ef4dbbfe27496a32ed3c74c108b7bf48a",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-04T11:14:54",
"content_id": "4df315fbab7678d3d92230d2985916febe713838",
"detected_licenses": [
"MIT"
],
"directory_id": "b4f468a82057333ab21ffa95daae1d78ae981796",
"extension": "c"... | stackv2 | /* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... | 2.0625 | 2 |
2024-11-18T22:50:42.701084+00:00 | 2021-06-28T08:12:41 | a60c7609410317172da99f0bed9a36a5862c75e8 | {
"blob_id": "a60c7609410317172da99f0bed9a36a5862c75e8",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-28T08:12:41",
"content_id": "15e7ba0a5a16f6a0be23df90d3a72bdab35a5ec7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ddda55fcfc84ac5cd78cfc5c336a3df0b9096157",
"extensio... | stackv2 | /**
***********************************************************************************************************************
* Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the... | 2.046875 | 2 |
2024-11-18T22:50:42.863340+00:00 | 2021-01-20T07:35:01 | b8e4584fffd843f29b5a8930b72e5b70ae5cb005 | {
"blob_id": "b8e4584fffd843f29b5a8930b72e5b70ae5cb005",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-20T07:35:01",
"content_id": "d7f995a5458ed51135112231bd86175586909e1b",
"detected_licenses": [
"MIT"
],
"directory_id": "158b07cf07dbfef7050839e67f0d39f7b3a61583",
"extension": "c"... | stackv2 | #include <global_component.h>
typedef struct Position {
float x;
float y;
} Position;
/* Declare component handle globally so other functions can access it. The
* header file contains an extern declaration for, so other source files
* can use the component id as well. */
ECS_COMPONENT_DECLARE(Position);
ec... | 3.03125 | 3 |
2024-11-18T22:50:43.546572+00:00 | 2020-04-30T16:53:28 | 32e025b14a5d37265900e323361e03a66b8bd4f8 | {
"blob_id": "32e025b14a5d37265900e323361e03a66b8bd4f8",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-30T16:53:28",
"content_id": "6b0a572ca7f85a1e75e610ad533adc0e62eee525",
"detected_licenses": [
"MIT"
],
"directory_id": "5083013a3347424868ebffa471001a16f550aefd",
"extension": "h"... | stackv2 | #ifndef _MAIN_H
#define _MAIN_H
#define LINE_LEN 80 /* length of line in CSV phone book file */
#define NAME_LEN 64 /* name string length */
#define NUM_LEN 11 /* 10 digit US phone number string, plus NULL*/
#define PB_LEN 1024 /* max phone book length */
struct PhoneBook {
cha... | 2.03125 | 2 |
2024-11-18T22:50:43.602988+00:00 | 2023-08-23T12:11:44 | d2d1bd397bf70f809b35b5df5b9a0f9c5b1a6f30 | {
"blob_id": "d2d1bd397bf70f809b35b5df5b9a0f9c5b1a6f30",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-23T12:33:17",
"content_id": "726003ad02264d5aaca78393305db59f90f13ffd",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "ac065a67fdc68fc817e429ee91101fc8... | stackv2 | /*
* Phoenix-RTOS
*
* Operating system loader
*
* MPCore exception and interrupt handling
*
* Copyright 2021 Phoenix Systems
* Author: Hubert Buczynski
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <hal/hal.h>
#define MPCORE_BASE_ADDRESS 0xf8f00000
#define SIZE_INTERRUPTS 95
#defi... | 2.25 | 2 |
2024-11-18T22:50:44.066532+00:00 | 2021-08-21T06:42:23 | 822f48623383d0dd8b0691d4296c30d1bc5edb1d | {
"blob_id": "822f48623383d0dd8b0691d4296c30d1bc5edb1d",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-21T06:42:23",
"content_id": "0c18c831eb15f4942a6b49d9df383160ecb5e289",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "031c5b739c20418a21bb64bf7712892e00b7ec8d",
"extension"... | stackv2 | /*
* 全局段描述符gdt的实现
* 内存模型: flat memory model
*
* email:ichdream@foxmail.com
*/
#include "gdt.h"
#include "string.h"
// 全局描述符表长度
#define GDT_LENGTH 5
// 全局描述符表定义
gdt_entry_t gdt_entries[GDT_LENGTH];
// GDTR
gdt_ptr_t gdt_ptr;
// 全局描述符表构造函数,根据下标构造
static void gdt_set_gate(int32_t num, uint32_t base, uint32_t limit, u... | 3.171875 | 3 |
2024-11-18T22:50:44.737942+00:00 | 2016-01-29T01:50:54 | 35a80563d2e1d33647cba9d64f12241cdf59912c | {
"blob_id": "35a80563d2e1d33647cba9d64f12241cdf59912c",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-29T01:50:54",
"content_id": "ddb61107e02d4cfafcc48639f9377472c36a16cc",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c83ae89b4299ad5b0f493a165be627d5322a88d1",
"extensio... | stackv2 | /**
Atomix project, ORILIB_DescramblerInit_i.c, TODO: insert summary here
Copyright (c) 2015 Stanford University
Released under the Apache License v2.0. See the LICENSE file for details.
Author(s): Manu Bansal
*/
#include "ORILIB_Descrambler_t.h"
#include "ORILIB_Descrambler_algorithms.h"
//init_byte_ptr:
//ptr to ... | 2.109375 | 2 |
2024-11-18T22:50:46.375773+00:00 | 2014-07-13T08:32:38 | b62cdf46151f4facfffcc554102cb31d1d06cf82 | {
"blob_id": "b62cdf46151f4facfffcc554102cb31d1d06cf82",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-13T08:32:38",
"content_id": "7b7b1c09340bb2f73690f5e5e3ea6e268a5dd69c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "308a573defef90644963372cec081353cc46d4e9",
"extens... | stackv2 | /** \file common.h
Prototypes for various functions, mostly string utilities, that are used by most parts of anna.
*/
#ifndef ANNA_COMMON_H
/**
Header guard
*/
#define ANNA_COMMON_H
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
#include "anna/util.h"
/**
Maximum number of bytes used by a single u... | 2.65625 | 3 |
2024-11-18T22:50:46.879213+00:00 | 2016-12-09T13:04:10 | c77fb743d7696b102827da334fcb6b5d1f9df118 | {
"blob_id": "c77fb743d7696b102827da334fcb6b5d1f9df118",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-09T13:04:10",
"content_id": "b8b73a3b1ffd0456832c19b81406dad397387660",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c313c519c3cd80158936a0431a521c2264dee656",
"extensio... | stackv2 | /* Wake from deep sleep stub
See esp_deepsleep.h esp_wake_deep_sleep() comments for details.
*/
#include <stddef.h>
#include <sys/lock.h>
#include "rom/cache.h"
#include "rom/rtc.h"
#include "soc/rtc_cntl_reg.h"
#include "soc/dport_reg.h"
#include "esp_attr.h"
#include "esp_deepsleep.h"
#include "rtc.h"
/* Updatin... | 2.25 | 2 |
2024-11-18T22:50:47.017573+00:00 | 2021-03-03T10:20:30 | daf70760af10bf77b864822bc28d20f26294f912 | {
"blob_id": "daf70760af10bf77b864822bc28d20f26294f912",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-03T10:20:30",
"content_id": "91f54f99b04cbe8545bda722946ef694331fe039",
"detected_licenses": [
"MIT"
],
"directory_id": "fef1ed69769ce88a819b7edd0518e5fd8260e371",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
int main(void){
/*Escreva um programa que leia um número inteiro e mostre o seu complemento bit a bit*/
int numero;
printf("\nLeia um número: ");
scanf("%d", &numero);
printf("%d", ~numero);
return(0);
} | 3.234375 | 3 |
2024-11-18T22:50:48.717935+00:00 | 2021-01-15T16:37:05 | 15b3fd08c09214be5f166abb77e9a630732704e7 | {
"blob_id": "15b3fd08c09214be5f166abb77e9a630732704e7",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-15T16:37:05",
"content_id": "7d93cf54d91bc86b113e93fd3a189cd895f0e499",
"detected_licenses": [
"MIT"
],
"directory_id": "4a16580fa19d61b039445900f56fe7aa1fcc074d",
"extension": "c"... | stackv2 | /**
* @file disp_spi.c
*
*/
/*********************
* INCLUDES
*********************/
#include "esp_system.h"
#include "driver/gpio.h"
#include "driver/spi_master.h"
#include <string.h>
#include <freertos/FreeRTOS.h>
#include <freertos/semphr.h>
#include <freertos/task.h>
#include "lvgl/lvgl.h"
#include "... | 2.484375 | 2 |
2024-11-18T22:50:48.791536+00:00 | 2023-08-17T13:00:20 | 05ac497f3338fef6dfca7af25b14f886c225c61a | {
"blob_id": "05ac497f3338fef6dfca7af25b14f886c225c61a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T07:43:37",
"content_id": "67dfb6cd3fd97119d5ff7914b5dee23da814fe10",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c9bc99866cfab223c777cfb741083be3e9439d81",
"extens... | stackv2 | /*
* Arm SCP/MCP Software
* Copyright (c) 2015-2022, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Description:
* Events.
*/
#ifndef FWK_EVENT_H
#define FWK_EVENT_H
#include <internal/fwk_event.h>
#include <fwk_align.h>
#include <fwk_id.h>
#include <fwk_... | 2.1875 | 2 |
2024-11-18T22:50:49.835490+00:00 | 2022-11-18T20:51:21 | d51525e77d935fc4722c64cce2c0b2f6487c7f65 | {
"blob_id": "d51525e77d935fc4722c64cce2c0b2f6487c7f65",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-18T20:51:21",
"content_id": "90ed92df88ff246fd98aa4bb4bd6758fd653a44b",
"detected_licenses": [
"Unlicense"
],
"directory_id": "68b42e175e2dffb239fb784c3b8cb89777d8422c",
"extension... | stackv2 | #pragma once
#include <stdlib.h>
#ifndef _WIN32
#include <mm_malloc.h>
#endif
inline void* aligned_allocate(size_t size, size_t alignment)
{
#ifdef _WIN32
return _aligned_malloc(size, alignment);
#else
return _mm_malloc(size, alignment);
#endif
}
inline void aligned_free(void* p)
{
#ifdef _... | 2.140625 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.