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:39:38.382982+00:00 | 2018-09-11T06:44:21 | 322ef285d14731ac9264039ddafddba7d0424148 | {
"blob_id": "322ef285d14731ac9264039ddafddba7d0424148",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-11T06:44:21",
"content_id": "8f71251de714abcd1d04795f760ab37ac0181d2b",
"detected_licenses": [
"MIT"
],
"directory_id": "84eb0565c37bed69358cace3535adab226a9033a",
"extension": "h"... | stackv2 | /**
coo
tracer.h
Purpose : Provide prototype of the scene class and its methods
@author Kuntal Majumder ( zee at hellozee dot me )
**/
#ifndef COO_RENDERER_H
#define COO_RENDERER_H
#include <limits.h>
#include "../math/vector.h"
#include "../math/ray.h"
#include "../image/image.h"
#include "../image/color.h... | 2 | 2 |
2024-11-18T22:39:38.622040+00:00 | 2021-05-05T18:26:36 | 27f38a8bebb9e96bd92a3550d193c68db1da172a | {
"blob_id": "27f38a8bebb9e96bd92a3550d193c68db1da172a",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-05T18:26:36",
"content_id": "b5adada0ce518a92cdf46c990214cd6078874176",
"detected_licenses": [
"MIT"
],
"directory_id": "c7784be7a7cc5a5955aa289de12223b6b407b60c",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <string.h>
int main(void)
{
struct timespec begin,end;
static char keyfile[] = "/home/private.pem"; // generated using openssl openssl genrsa -out private.pem 2048
char * message = "hello!";
char * encrypt;
F... | 2.90625 | 3 |
2024-11-18T22:39:38.771484+00:00 | 2019-08-21T18:09:59 | 53649e3505895541d2358657fe1215ac477127a6 | {
"blob_id": "53649e3505895541d2358657fe1215ac477127a6",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-21T18:09:59",
"content_id": "a5b04963e84764290ad82b629098bdac4d996467",
"detected_licenses": [
"MIT"
],
"directory_id": "34de2b3ef4a2478fc6a03ea3b5990dd267d20d2d",
"extension": "c"... | stackv2 | // defining function sort_name
void sort_name(char mnumber[20][5],double warranty[20],double nwarranty[20],int n)
{
char temp[20];
int i,j; //local variables
printf("\n******************************Sorted by Name******************************\n");
printf("%-5s %-13s %-10s %-10s\n\n", "S... | 3.03125 | 3 |
2024-11-18T22:39:40.968220+00:00 | 2021-05-12T00:31:05 | 1cf507b4490a19dcce987492ff3e211086c2eddc | {
"blob_id": "1cf507b4490a19dcce987492ff3e211086c2eddc",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-12T00:31:05",
"content_id": "212992f97ce83ad20a56548726b000a11055d8cf",
"detected_licenses": [
"MIT"
],
"directory_id": "60c6141552093cc62833cced9dd71fddbd834d27",
"extension": "c"... | stackv2 | /*
* queue.c
*
* Created: 2021-02-02 오전 10:28:39
* Author: KKS
*/
#include <stdio.h>
#include <stdlib.h>
#include "queue.h"
typedef struct _circleQueue
{
uint8_t data[MAX_Q_SIZE];
uint8_t rear,front;
}Queue;
void init_queue(Queue *q)
{
//q->data = (uint8_t*)malloc(sizeof(uint8_t)*MAX_Q_SIZE);
q->rear = ... | 2.953125 | 3 |
2024-11-18T22:39:41.021636+00:00 | 2021-07-01T02:58:24 | 4cc946e3fdb9a2861307d7999b52b4569162e5e9 | {
"blob_id": "4cc946e3fdb9a2861307d7999b52b4569162e5e9",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-01T02:58:24",
"content_id": "8badc86c493f18291cae6bbb957f0d2731be119e",
"detected_licenses": [
"MIT"
],
"directory_id": "ec763dc1da69481c735daf0cd41f6665852b6c1e",
"extension": "c",
... | stackv2 | #include "signals.h"
/**
* signal_handler - receives signal
* @signum: the signal number received
*/
void signal_handler(int signum)
{
printf("Gotcha! [%d]\n", signum);
fflush(stdout);
}
/**
* handle_sigaction - applies sigaction syscall
* Return: 0 on success else -1
*/
int handle_sigaction(void)
{
struct si... | 2.6875 | 3 |
2024-11-18T22:39:41.075466+00:00 | 2021-04-01T17:39:45 | 51926669f48cf8511f6a94f5348a51650baebc00 | {
"blob_id": "51926669f48cf8511f6a94f5348a51650baebc00",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-01T17:39:45",
"content_id": "a8a2c6210cdf64c4adede31787d1b855454ad3fe",
"detected_licenses": [
"MIT"
],
"directory_id": "a5477a31329340feb50509b73a78aea7135aa5ad",
"extension": "c"... | stackv2 | #include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termbox.h>
#include "line.h"
#include "creed.h"
static bool dispatch_key_press(Creed* creed, struct tb_event *ev);
Creed* creed_create(void) {
if (tb_init() < 0) {
fprintf(stderr, "tb_init() failed\n");
retur... | 2.796875 | 3 |
2024-11-18T22:39:41.334314+00:00 | 2021-01-15T10:22:11 | 02fc4b1291313674cac9cd469b26587c661735a8 | {
"blob_id": "02fc4b1291313674cac9cd469b26587c661735a8",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-15T10:22:11",
"content_id": "6dc80cff7f2ee740a9a905d1c35b0b12c79c0265",
"detected_licenses": [
"MIT"
],
"directory_id": "53b8fe9bfd175443e3de9396d4ab8c3834bc4b56",
"extension": "h",
... | stackv2 | #include <stdint.h>
#include <stdbool.h>
void apic_init(uint32_t lapic_address, bool legacy_pic);
void apic_timer_calibrate(void);
enum apic_register {
apic_id = 0x02,
apic_version = 0x03,
apic_tpr = 0x08,
apic_apr = 0x09,
apic_ppr = 0x0a,
apic_eoi = 0x0b,
apic_rrr = 0x0c,
apic_ldr = 0x0d,
apic_dfr = 0x0e... | 2.03125 | 2 |
2024-11-18T22:39:41.388034+00:00 | 2023-05-05T19:29:30 | 896ec47cad964c9f430a1be1cbe70ee1475422fc | {
"blob_id": "896ec47cad964c9f430a1be1cbe70ee1475422fc",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-05T19:29:30",
"content_id": "f900e76f6c1326bbe9a68e0bf06f170613af8a6a",
"detected_licenses": [
"MIT"
],
"directory_id": "1b6a47c5741d6668ccfc197819a0b55fbbb2a82f",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <argp.h>
#include <stdlib.h>
#include <fcntl.h>
#include "squashfuse.h"
#include <sys/types.h>
#include <sys/stat.h>
#include "binreloc.h"
#ifndef NULL
#define NULL ((void *) 0)
#endif
#include <libgen.h>
#include <unistd.h>
#include <stdio.h>
extern char runtime[];
extern unsigne... | 2.296875 | 2 |
2024-11-18T22:39:41.675238+00:00 | 2020-12-11T13:21:56 | 081032226b6c6fe62da8c8a7644d7f017aba2ba6 | {
"blob_id": "081032226b6c6fe62da8c8a7644d7f017aba2ba6",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-11T13:21:56",
"content_id": "7378dfcc4b778b6d128959a6b0cb3d8f8f69b49e",
"detected_licenses": [
"MIT"
],
"directory_id": "af9732a4489966b8b971dc6aef2bc63b04fbef1d",
"extension": "c"... | stackv2 | #include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <smd.h>
static int count;
static void iter(const char *name) {
printf("%s\n", name);
count++;
}
int main() {
int ret;
smd_dtype_t *t_arr = smd_type_array(SMD_DTYPE_STRING, 4);
... | 2.8125 | 3 |
2024-11-18T22:39:43.372824+00:00 | 2021-07-05T08:14:38 | 5b17b3f0e77bd14ec1cf53e969563c7745bb1e3b | {
"blob_id": "5b17b3f0e77bd14ec1cf53e969563c7745bb1e3b",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-05T08:14:38",
"content_id": "a79bd299272b481fcbf37307bb88edab15c81638",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6db37e81223da94ab40f8f3c71d0f0f4791fd9f8",
"extensio... | stackv2 | /**
* Copyright 2014 Google 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
*
* Unless required by applic... | 2.15625 | 2 |
2024-11-18T22:39:43.507631+00:00 | 2021-01-26T19:22:01 | a68945895cf40462f270363dd8471e3390a2fcdf | {
"blob_id": "a68945895cf40462f270363dd8471e3390a2fcdf",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-26T19:22:01",
"content_id": "15956ecda2efdd32de2ae4a519f0c35bfa771401",
"detected_licenses": [
"MIT"
],
"directory_id": "838288657a6adf62a9462a31d3c24d2b8054ab71",
"extension": "c"... | stackv2 | #include "moduloF.h"
/*Esta função cria um array com 255 posições e inicializa-o com todas as posiçoes a 0*/
/*A funçao será usada mais à frente pela função freqs para guardar as frequências de cada um dos 255 códigos ASCII*/
int *arrayazeros(){
int *freqs = malloc (255* sizeof(int)); //Cria o array com 255 posiçõ... | 3.171875 | 3 |
2024-11-18T22:39:43.925303+00:00 | 2019-06-12T16:03:00 | 8f5803ea3efad84ac689181b8fbd4331c5b8b490 | {
"blob_id": "8f5803ea3efad84ac689181b8fbd4331c5b8b490",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-12T16:03:00",
"content_id": "3699db279a8acb06ef341cb081ff80c4da67c42e",
"detected_licenses": [
"MIT"
],
"directory_id": "df4e9f83351f6508d3ca63227bd967a2b02d8ac4",
"extension": "h"... | stackv2 | #ifndef CORE_H
#define CORE_H
#include <pthread.h>
#include "simul_os.h"
/**
* @brief Number of processes that will fit into the process table
*/
#define MAX_PROCESSES 64
/**
* @brief An enum over the possible process states
*/
enum so_state {
STATE_NEW,
STATE_READY,
STATE_RUNNING,
STAT... | 2.484375 | 2 |
2024-11-18T22:39:44.030334+00:00 | 2013-04-30T21:02:53 | 12775099fbb7a65ae0376fb5f6a7dc106ffbf6f4 | {
"blob_id": "12775099fbb7a65ae0376fb5f6a7dc106ffbf6f4",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-30T21:02:53",
"content_id": "7344ff06c19b4b4f40e79d95400620d507a9bfcc",
"detected_licenses": [
"MIT"
],
"directory_id": "deefb70f5b515c7410a12d5de412a617c3b2a3b9",
"extension": "c"... | stackv2 | /**
* \file fichier.c
* \brief Source de fichier
* \author David San
*/
#include "reader.h"
FILE *ouvrirFichierRead(char *filename) {
FILE *f = fopen(filename, "r");
if (!f) {
fprintf(stderr,
"ouvrirFichierRead : erreur d'ouverture du fichier %s\n",
filename);
return NULL ;
}
return f;
}
FILE *ouv... | 2.65625 | 3 |
2024-11-18T22:39:44.802656+00:00 | 2018-05-23T06:55:18 | d7eb9f05ed845865a04e817941a478e7b56bf7b0 | {
"blob_id": "d7eb9f05ed845865a04e817941a478e7b56bf7b0",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T06:55:18",
"content_id": "f76d7699f5e74f6f9f34bb685e3709e1b39e20f5",
"detected_licenses": [
"MIT"
],
"directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd",
"extension": "c"... | stackv2 | // edit.c
#include <ansi.h>
inherit F_CLEAN_UP;
string string_name()
{
return HIM "编辑器(Edit)";
}
int main(object me, string file)
{
string dir;
if (! SECURITY_D->valid_grant(me, "(apprentice)"))
return 0;
if (! file) return notify_fail("指令格式:edit <档名>\n");
... | 2.328125 | 2 |
2024-11-18T22:39:45.010116+00:00 | 2021-08-25T15:31:28 | be6a8e9e0de0e8b2fe317edc28b25108118f617d | {
"blob_id": "be6a8e9e0de0e8b2fe317edc28b25108118f617d",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-25T15:31:28",
"content_id": "d0cd5d2e57972c0755dc16f09b368851ae2522f2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "04f1be13bda55b40153ef1b22b04b3869c8b7a92",
"extensio... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
void SetNoBlock(int fd) {
int fl = fcntl(fd, F_GETFL);
if (fl < 0) {
perror("fcntl");
return;
}
fcntl(fd, F_SETFL, fl | O_NONBLOCK);
}
int main() {
SetNoBlock(0);
while (1) {
char buf[1024] = {0};
ssize_t read_size = read(0, buf, si... | 2.703125 | 3 |
2024-11-18T22:39:45.414639+00:00 | 2016-02-27T01:48:03 | e7573c8d4d8b04e0f56f2b2cc8b27878d51bf104 | {
"blob_id": "e7573c8d4d8b04e0f56f2b2cc8b27878d51bf104",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-27T01:48:03",
"content_id": "34b97be2232f600512d9d9fdd4c8bdd1fa6c91f3",
"detected_licenses": [
"MIT"
],
"directory_id": "58d40ea3be8ca020af5aeff4b0d4b38f56376745",
"extension": "c"... | stackv2 | /*******************************************************************************
* File : transformer_srp.c
* Content: Transformation function
*
* Coder : Ean Jee
* Time : 2011-05-05 17:21
******************************************************************************/
#include <stdio.h>
#include <math.h>
#i... | 2.140625 | 2 |
2024-11-18T22:39:45.540803+00:00 | 2017-09-17T03:51:54 | ed3662701428e8d62a25840d50fb02b88ec5499d | {
"blob_id": "ed3662701428e8d62a25840d50fb02b88ec5499d",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-17T03:51:54",
"content_id": "e7704d7e941f1aec4926fe8886053cae11b87243",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "42cda3dbbf9cc0c0ab9069b475c77093d672821d",
"extensio... | stackv2 | // Copyright [2017] [Sergey Markelov]
//
// 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 agree... | 2.203125 | 2 |
2024-11-18T22:39:47.131013+00:00 | 2022-12-31T19:14:36 | c212d146f4983d841a5b7696392ea93bff99640d | {
"blob_id": "c212d146f4983d841a5b7696392ea93bff99640d",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-31T19:16:44",
"content_id": "3b516eae0928c9b182f71e6a5adf0e52f4989b76",
"detected_licenses": [
"MIT"
],
"directory_id": "4b10e24e61b6d82f3a98ab8048dbd4c0de4c8d69",
"extension": "c"... | stackv2 | #include "stdafx.h"
#ifdef WITH_REVERSE
#include "core.h"
#include "control.h"
#include "device.h"
#include "alu.h"
//-----------------------------
// ED OPCODES
void ednop_reverse(CPU_t *cpu) {
tc_sub(cpu->timer_c, 8);
}
void ldd_reverse(CPU_t *cpu) {
int reg;
tc_sub(cpu->timer_c, 16);
cpu->de++;
cpu->hl++;... | 2.015625 | 2 |
2024-11-18T22:39:47.558690+00:00 | 2022-07-25T11:48:01 | 0dc064d8053b158bcbd85a4d49947440f02742f7 | {
"blob_id": "0dc064d8053b158bcbd85a4d49947440f02742f7",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-25T11:48:01",
"content_id": "8267319548bd90dd2bb533644a505dd02fc06530",
"detected_licenses": [
"MIT"
],
"directory_id": "76a81265e2d29de91fb65b03ce7dff00894802a0",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "hardware.h"
#include "diskstore.h"
#include "applegcr.h"
#include "pll.h"
// GCR for Apple II
//
// Apple DOS 3 (29 Jun '78) / 3.1 (20 Jul '78) / 3.2 (16 Feb '79) / 3.2.1 (31 Jul '79)
// Single side, soft sectored
// 35 tracks, numbered 0 to 34,... | 2 | 2 |
2024-11-18T22:39:48.579687+00:00 | 2019-06-01T12:16:44 | c4e567b47e36749114e1881c45b6643dc01cf09d | {
"blob_id": "c4e567b47e36749114e1881c45b6643dc01cf09d",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-01T12:16:44",
"content_id": "4f965159b5f7137787f8960ac058aa3fc0bf31dd",
"detected_licenses": [
"MIT"
],
"directory_id": "f8a66a5fa5a881cfc7ed596de9dc4925e945c153",
"extension": "c"... | stackv2 | #include "types.h"
#include "stat.h"
#include "user.h"
int
main(void)
{
int pid_parent = getpid();
int pid;
for(int i=0;i<2;i++){
pid = fork();
if(pid == 0){
create_container(i+1);
join_container(i+1);
printf(1,"container id %d\n", i+1);
ps();
sleep(100);
// exit();
break;
}
}
i... | 2.578125 | 3 |
2024-11-18T22:39:49.166560+00:00 | 2018-11-22T14:44:07 | 9ea95f589c6c6835a4048f3e2038a167883bd68a | {
"blob_id": "9ea95f589c6c6835a4048f3e2038a167883bd68a",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-22T14:44:07",
"content_id": "ece8bbf850a1013d45932e9286846e5415ad8688",
"detected_licenses": [
"MIT"
],
"directory_id": "b23c2095879a08175f77b7ae9480022cf24f1352",
"extension": "h"... | stackv2 | /*
** sprite.h for sprite in /home/arbona/tek1/MUL/wolf3d/bonus
**
** Made by Thomas ARBONA
** Login <thomas.arbona@epitech.eu>
**
** Started on Fri Jan 13 18:26:55 2017 Thomas ARBONA
** Last update Wed Jan 18 16:27:15 2017 Thomas ARBONA
*/
#ifndef GAME_SPRITE_H_
# define GAME_SPRITE_H_
# include <SFML/System/Vect... | 2 | 2 |
2024-11-18T22:39:49.304495+00:00 | 2023-08-25T00:41:16 | c9e1b4f12c14c65200fd6282c5afb0ebc7eaf910 | {
"blob_id": "c9e1b4f12c14c65200fd6282c5afb0ebc7eaf910",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-25T00:41:16",
"content_id": "346c67beb9b7e0a3253590629c1f9d45e3a3923c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f0b7bcc41298354b471a72a7eeafe349aa8655bf",
"extens... | stackv2 | /********************************************************/
/* definitions for accessing packet data and parameters */
/********************************************************/
#pragma once
#include <windows.h>
#include "dd_types.h"
#define MAGIC 0x12345678
typedef struct {float x,y;} complex;
#define K2 0.... | 2.046875 | 2 |
2024-11-18T22:39:49.675800+00:00 | 2019-03-28T11:39:57 | ac2ab580ab37aecc3b1750b9e1bbb6cd4b26b1a1 | {
"blob_id": "ac2ab580ab37aecc3b1750b9e1bbb6cd4b26b1a1",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-28T11:39:57",
"content_id": "6fd190a7b8daddf687f92e41b503a5cabd7fae09",
"detected_licenses": [
"MIT"
],
"directory_id": "1f7769ca2a7b45e3dcf031c7c09dbf8a7422c7b7",
"extension": "c"... | stackv2 | #include "master.h"
#include "slave.h"
int main(int argc, char **argv){
// 1. initialization
int rank, size, i, a = 0, b=0, *nmessage, total_nmessage = 0, *event;
/*
* nmessage: the total number of messages sended from one Node
* total_message: the total number of messages throughout the ne... | 2.78125 | 3 |
2024-11-18T22:39:49.756822+00:00 | 2019-05-04T18:28:52 | caf1e9f1f0cbb4fb31cb6bbdd4ebd46502ca4d3c | {
"blob_id": "caf1e9f1f0cbb4fb31cb6bbdd4ebd46502ca4d3c",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-04T18:28:52",
"content_id": "4da1efb1a1af6a659e0275603e8ababe549231dc",
"detected_licenses": [
"MIT"
],
"directory_id": "35ed26d457909738e77f459467eac6fb37058f17",
"extension": "c"... | stackv2 | /*
* This file is where our boot assembly will call to intialize our
* - kernel and setup our simple operating system.
*/
#include "kernel.h"
/*
* This function will clear the terminal screen, and setup our Interrupt
* - Descriptor Table, keyboard and timer. Once the basice components of
* - of the kernel has s... | 2.96875 | 3 |
2024-11-18T22:39:49.821831+00:00 | 2016-08-03T14:05:58 | 9b17c6a48b8dabc8a0717e86010c51c0a3a228ac | {
"blob_id": "9b17c6a48b8dabc8a0717e86010c51c0a3a228ac",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-03T14:05:58",
"content_id": "0fa3e9ebf860aa1505de1c9304fe01648efa9d16",
"detected_licenses": [
"MIT"
],
"directory_id": "f359749f9a3ccc6d733e39971e637fa60966fba0",
"extension": "c"... | stackv2 | /*!
@file veridoc-page-factory.c
@brief Defines functions and structures responsible for building the
documentation pages.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "veridoc-page-factory.h"
/*!
@brief R... | 2.46875 | 2 |
2024-11-18T22:39:50.117773+00:00 | 2023-06-29T15:40:53 | f2420bf4d9bb47749ae6197916e596c81631a03f | {
"blob_id": "f2420bf4d9bb47749ae6197916e596c81631a03f",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-29T15:40:53",
"content_id": "a10db1522bb0708e56797571d9fb0f91e932e61e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "fe42ad46cd97a473964b8e8c81d98f678b7aaa32",
"extens... | stackv2 | /*
**
** OO_Copyright_BEGIN
**
**
** Copyright 2010, 2020 IBM Corp. All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions
** are met:
** 1. Redistributions of source code must retain the above copyright
... | 2.015625 | 2 |
2024-11-18T22:39:50.602812+00:00 | 2023-07-22T03:32:27 | 1e83b0475d31f18dd26f3e859931e6cb3e26b119 | {
"blob_id": "1e83b0475d31f18dd26f3e859931e6cb3e26b119",
"branch_name": "refs/heads/dev",
"committer_date": "2023-07-22T03:32:27",
"content_id": "f06ed6dad2d88a483c84d80063f3867e85955cc4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ca0edb2652c20bb5bcc1320d2128832c488c5653",
"extension":... | stackv2 | #ifndef GLUG_ASSERTS_H
#define GLUG_ASSERTS_H
#include <glug/math/box_t.h>
#include <glug/math/line_t.h>
#include <glug/math/mat2_t.h>
#include <glug/math/plane_t.h>
#include <glug/math/sphere_t.h>
#include <glug/math/triangle_t.h>
#include <glug/math/vec2_t.h>
#include <glug/math/vec3_t.h>
#include <glug/math/vec4_t.... | 2.015625 | 2 |
2024-11-18T22:39:50.748601+00:00 | 2021-04-21T12:01:26 | c3fe43be5d0d3a5b11d06c406d00e8f6c88b84c9 | {
"blob_id": "c3fe43be5d0d3a5b11d06c406d00e8f6c88b84c9",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-21T12:01:26",
"content_id": "ec72df304568479668f3ed065ba5e255c1f62bfc",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "f8e67c224af6d137d25337315e2d2b00aa011229",
"extension":... | stackv2 | #include <string.h>
#include <stdio.h>
#include "allocator.h"
#include "arena.h"
#include "driver.h"
#include <stddef.h>
#include "Utils/align_utils.h"
static struct Tree tree_head = {.root = NULL};
void *mem_alloc(size_t size) {
if (size == 0) {
return NULL;
}
size_t aligned_size = align(size, ... | 2.875 | 3 |
2024-11-18T22:39:51.347812+00:00 | 2017-04-15T02:21:22 | 8bee8700f3374df131d301493d674ce30ce5c8d3 | {
"blob_id": "8bee8700f3374df131d301493d674ce30ce5c8d3",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-15T02:21:22",
"content_id": "0cb5406331ae71f476c73153a5badd2695824eea",
"detected_licenses": [
"MIT"
],
"directory_id": "3830d5cb0e97c92aa2c5e3168c981556de54b261",
"extension": "c"... | stackv2 | #include "skynet.h"
#include "skynet_module.h"
#include "spinlock.h"
#include <assert.h>
#include <string.h>
#include <dlfcn.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
//动态连接库 .so 的加载
//模块类型最大32,不代表模块所对应的服务最大数是32 一种模块可以对应多个服务
#define MAX_MODULE_TYPE 32
//该结构体用来管理加载的模块,就是struct skynet_module数组
... | 2.546875 | 3 |
2024-11-18T22:39:51.522540+00:00 | 2020-09-29T00:46:58 | cca7956a1182c6b0aca52dd9ff4db30641758e63 | {
"blob_id": "cca7956a1182c6b0aca52dd9ff4db30641758e63",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-29T00:46:58",
"content_id": "7d0e925d3439ed8dc2ff706c693d24fa37628004",
"detected_licenses": [
"MIT"
],
"directory_id": "7208de598c24839dbfdd2a9ebd85e1cb94c5a62a",
"extension": "c"... | stackv2 | /*
* Author: Duc Tran, Lebohang McCallum
* File: uniq.c
* Purpose: Count unique adjacent line. Similar to Linux uniq command.
* Usage:
* uniq filename: will print unique line if there are two adjacent identical line.
* Argument:
* -c: print count of line for both unique and none unique.
* -d: print only line t... | 3.25 | 3 |
2024-11-18T22:39:52.855776+00:00 | 2021-11-07T07:18:04 | 89961d0da0c243d7912d32fa043e6d409dd8909e | {
"blob_id": "89961d0da0c243d7912d32fa043e6d409dd8909e",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-07T07:18:04",
"content_id": "93526c892d6aae186942a7d7b6d42eb4591bc9b3",
"detected_licenses": [
"MIT"
],
"directory_id": "b9f1e6a90a2eb3ba899090073b3b7474aa64ef8a",
"extension": "c",
... | stackv2 | #include<stdio.h>
#include<math.h>
int main()
{
int subA,subB,subC;
float percent;
printf("Enter the marks obtain in subA, subB, subC");
scanf("%d%d%d",&subA,&subB,&subC);
percent=(subA+subB+subC)/3;
/* if(subA<40 || subB<40 || subC<40)
printf("Fail");
else
{
printf("Student is passed. Percent i... | 3.3125 | 3 |
2024-11-18T22:39:53.040797+00:00 | 2017-08-09T12:04:47 | fedcc33dd0ba022773ada422f99fcaf696b4f8e3 | {
"blob_id": "fedcc33dd0ba022773ada422f99fcaf696b4f8e3",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-09T12:04:47",
"content_id": "479d804c267813e654514ed0726ef5771f03b190",
"detected_licenses": [
"MIT"
],
"directory_id": "ed4fa5bfe0a250f3daa6f1a23f9e8e8f8c6275e7",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
/*This function expects a string to output before requesting a double from stdin
*and returns the double it gets.
*/
double readDoubleFromSTDIN(const char* input) {
double read;
printf("%s", input);
scanf("%lf", &read);
return read;
}
... | 3.25 | 3 |
2024-11-18T22:39:54.192506+00:00 | 2020-12-31T07:04:06 | e297e17a79c42a6bca340c3abd56e403cb818667 | {
"blob_id": "e297e17a79c42a6bca340c3abd56e403cb818667",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-31T07:04:06",
"content_id": "6fa2b8c362c408c97c8f4e8b520187acd6360e2b",
"detected_licenses": [
"Zlib"
],
"directory_id": "d96d76803382689468f407f2e5f7a859e4cabd1b",
"extension": "c... | stackv2 | #include <string.h>
#include <time.h>
#include <stdlib.h>
bool shiori_load(const char* dirpath){
return true;
}
bool shiori_unload(void){
return true;
}
struct cshiori_response_message* shiori_request(struct cshiori_request_message* req, struct cshiori_response_message* res){
static int aitalk_count = 0;
res->ve... | 2.09375 | 2 |
2024-11-18T22:39:55.101641+00:00 | 2021-07-12T08:35:49 | 32542238f3ef82fc4694e589dbc2fa122cf337e7 | {
"blob_id": "32542238f3ef82fc4694e589dbc2fa122cf337e7",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-12T08:35:49",
"content_id": "09ea9abc50600089cb3cb7421346666b17c5108e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "44370b8e5980b4590267bfd184d39317f92bb2c5",
"extension"... | stackv2 | /*
Program to demonstrate 'extern' storage class:
Highlight: Variable delcared with 'extern' keyword is defined at one location(globally/other file) and used in other location.
a. storage area: Data segment
b. default value: zero (0)
c. scope: global/across files
d. lifetime: till program ends
*/
#include <stdio.h>
ex... | 3.59375 | 4 |
2024-11-18T22:39:55.519876+00:00 | 2021-10-31T01:45:27 | 991a3a771c60fa5de917dae7855206bf550f1ec4 | {
"blob_id": "991a3a771c60fa5de917dae7855206bf550f1ec4",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-31T01:45:27",
"content_id": "aa31586bc1f2035899447342ac67bdd0b8315390",
"detected_licenses": [
"MIT"
],
"directory_id": "7c1e47fa1d2b41150474ae596da0a88e6931ff5d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "Selection.h"
// Worst case performance O(n**2) comparisons and O(n) swaps
// Best case performance O(n**2) comparisons and O(n) swaps
// Average performance O(n**2) comparisons and O(n) swaps
//(n**2 - n)/2 comparisons
void Selection_Sort(long int *array, int length){... | 3.296875 | 3 |
2024-11-18T22:39:57.074731+00:00 | 2022-12-23T19:26:40 | 85dae5285c0f78678e380d8331636e18413e2b54 | {
"blob_id": "85dae5285c0f78678e380d8331636e18413e2b54",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-23T19:26:40",
"content_id": "c1165a774be3976daa023894550258fb2f6b8ceb",
"detected_licenses": [
"MIT"
],
"directory_id": "a01451f05d35773d71a9c76c80edd7780143ca5a",
"extension": "c"... | stackv2 | /** @file patest_multi_sine.c
@ingroup test_src
@brief Play a different sine wave on each channel.
@author Phil Burk http://www.softsynth.com
*/
/*
* $Id: patest_multi_sine.c 1097 2006-08-26 08:27:53Z rossb $
*
* This program uses the PortAudio Portable Audio Library.
* For more information see: http://www.port... | 2.390625 | 2 |
2024-11-18T22:39:59.305836+00:00 | 2023-08-13T07:00:15 | 3983cfb0e97a611c029d3ad4dd5f4fc19a428657 | {
"blob_id": "3983cfb0e97a611c029d3ad4dd5f4fc19a428657",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T07:00:15",
"content_id": "cacb942bdecca280a5600c05ff0a216c753eb07b",
"detected_licenses": [
"MIT"
],
"directory_id": "2266eb133fc3121daf0aa7f4560626b46b94afe0",
"extension": "c"... | stackv2 | // apprentice.c
// From ES2
// Modified by Xiang for XKX (12/15/95)
#include <dbase.h>
/*
int is_apprentice_of(object ob)
{
mapping family;
if (! mapp(family = query("family"))) return 0;
if (family["master_id"] == (string)ob->query("id") &&
family["master_name"] == (string)ob->query("name"))
... | 2.28125 | 2 |
2024-11-18T22:39:59.535379+00:00 | 2019-01-21T21:20:44 | 39283fadd25b930a99154711ef9fa35cfa56c0ac | {
"blob_id": "39283fadd25b930a99154711ef9fa35cfa56c0ac",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-27T04:38:00",
"content_id": "941322f31ff6149a769e3ac85778b75590903776",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5073b7e3fc89f5e57a317ea3e32ea2331b0d2900",
"extensio... | stackv2 |
#include "defs.h"
#define PEEK_W(addr) (uint8_t*) *((uint16_t*) (addr))
#define POKE_W(addr, val) *((uint16_t*) addr) = (uint16_t) (val)
#define ORG 0xfa00
#define BAS_BEGIN 0x40a4
#define BAS_END 0x40f9
#define ARRAY_START 0x40fb
#define MEM_START 0x40fd
#define RS_PORT 31
#define RS_SEND_BASIC 10
#define COMMU... | 2.453125 | 2 |
2024-11-18T22:39:59.861798+00:00 | 2021-05-26T10:56:23 | 30523f7b032fd968494c45d8bf08f0681d36a873 | {
"blob_id": "30523f7b032fd968494c45d8bf08f0681d36a873",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-26T10:56:23",
"content_id": "aef5f0a665992bea71e75baad2b89f4d275afbcd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "143ce588dbb18c96fe6f344429bbef80dbad0452",
"extensio... | stackv2 | /*
* Copyright 2019-present Open Networking Foundation
* Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd.
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "json_data.h"
#include "s11_config.h"
#include "err_codes.h"
#include <sys/types.h>
#include <sys/socket.... | 2.265625 | 2 |
2024-11-18T22:40:00.179788+00:00 | 2023-09-01T20:29:34 | 13c5915eb57ce99ca817999d4313d959ea6716db | {
"blob_id": "13c5915eb57ce99ca817999d4313d959ea6716db",
"branch_name": "refs/heads/main",
"committer_date": "2023-09-01T20:29:34",
"content_id": "ececc1efcddd0941d528d70417289f3b3243ca07",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ecafcf4501aa0af63925fdae669ab09fa3949077",
"extension"... | stackv2 | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include "h2_test_helper.h"
#include <aws/http/private/h2_decoder.h>
struct fixture {
struct aws_allocator *allocator;
struct h2_decode_tester decode;
/* If true, run decoder over input o... | 2.046875 | 2 |
2024-11-18T22:40:00.251813+00:00 | 2014-05-07T13:53:06 | b45b7391fa76ea3dc2a291a4ddc8ecbf5d8f45a0 | {
"blob_id": "b45b7391fa76ea3dc2a291a4ddc8ecbf5d8f45a0",
"branch_name": "refs/heads/master",
"committer_date": "2014-05-07T13:53:06",
"content_id": "a7bd5a657b14d22669397740814732cf367073a8",
"detected_licenses": [
"BSD-3-Clause",
"ISC",
"BSD-2-Clause",
"MIT"
],
"directory_id": "46c1d2f659... | stackv2 | /* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
*
* 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
* righ... | 2.375 | 2 |
2024-11-18T22:40:00.312031+00:00 | 2019-11-26T08:11:16 | e559757f26528c1e747d285daf58462be7f1005e | {
"blob_id": "e559757f26528c1e747d285daf58462be7f1005e",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-26T08:11:16",
"content_id": "fdbf9ac84d9f4eb57fd49b2cfb0f2012d221c496",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "82b23e02502bbc52cc95a31d8e279cd1c16b3c1e",
"extensio... | stackv2 | /* ULP Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include ... | 2.59375 | 3 |
2024-11-18T22:40:00.626494+00:00 | 2021-05-19T22:39:38 | c0f20c4141e9500b0d1d419bc4eadf4e238a74ff | {
"blob_id": "c0f20c4141e9500b0d1d419bc4eadf4e238a74ff",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-19T22:39:38",
"content_id": "d8036b4680af9a7cabf1947155f25b69858b611e",
"detected_licenses": [
"MIT"
],
"directory_id": "94dc13c6ba7593c1d227981e73587e032595de7d",
"extension": "c"... | stackv2 | #include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/time.h>
#include <time.h>
#include <pthread.h>
#include "util.h"
#include "logging.h"
void strremove(char* string, int index, int number) {
int length = strlen(stri... | 2.5625 | 3 |
2024-11-18T22:40:01.014094+00:00 | 2020-11-19T12:38:57 | eab8ec6b5adfc0d730dd1e459a38df9318536640 | {
"blob_id": "eab8ec6b5adfc0d730dd1e459a38df9318536640",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-19T12:38:57",
"content_id": "ab9963f8f23a65df14450a2910deaf9411ab23a2",
"detected_licenses": [
"MIT"
],
"directory_id": "140014a48c38128f43dbfc60b274dd349a3044fe",
"extension": "h"... | stackv2 | #ifndef SERIALPACKETDEFINITION_H
#define SERIALPACKETDEFINITION_H
#include <QByteArray>
struct CRC
{
static inline uint8_t roll(uint8_t input_byte, uint8_t crc)
{
for (uint8_t i = 8; i; i--, input_byte >>= 1)
{
uint8_t result = (crc ^ input_byte) & 0x01;
crc >>= 1;
... | 2.328125 | 2 |
2024-11-18T22:40:02.886217+00:00 | 2020-05-17T23:04:38 | beb8db2114a103ce70b079576d11fba0c6b9d3dd | {
"blob_id": "beb8db2114a103ce70b079576d11fba0c6b9d3dd",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-17T23:04:38",
"content_id": "521a142919d5eb53afd1b2a9be685130edd4c4e7",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f7902a96710ad8cc2de5ae098dad4cbe69560f04",
"extens... | stackv2 | // This is a mash-up of the Due show() code + insights from Michael Miller's
// ESP8266 work for the NeoPixelBus library: github.com/Makuna/NeoPixelBus
// Needs to be a separate .c file to enforce ICACHE_RAM_ATTR execution.
#if defined(ESP8266) || defined(ESP32)
#include <Arduino.h>
#ifdef ESP8266
#include <eagle_soc... | 2.453125 | 2 |
2024-11-18T22:40:03.117133+00:00 | 2020-07-30T18:30:14 | e25e86465073c12c05022849a287867e78f5d5cf | {
"blob_id": "e25e86465073c12c05022849a287867e78f5d5cf",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-30T18:30:14",
"content_id": "3ce27f146c7b05dc16ad7bc8ce25ed1d3a218260",
"detected_licenses": [
"MIT"
],
"directory_id": "8ed882ef52cd9ff8cba68b0dbf1b06581c5965de",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2020 Sekhar Bhattacharya
*
* SPDX-License-Identifier: MIT
*/
#include <string.h>
#include <kernel/panic.h>
#include <kernel/arch/pmap.h>
#include <kernel/vm/vm_types.h>
#include <devices/serial/bcm2835-aux-uart/bcm2835_aux_uart.h>
#include <devices/serial/arm-pl011/arm_pl011.h>
#include <devices... | 2.0625 | 2 |
2024-11-18T22:40:03.258084+00:00 | 2018-01-18T16:11:48 | 09c35afc5bac9908ef4aac0c7b82cd8ad428bba7 | {
"blob_id": "09c35afc5bac9908ef4aac0c7b82cd8ad428bba7",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-18T16:11:48",
"content_id": "4639db7c2454e24f1902adf53e398e0252c6928d",
"detected_licenses": [
"MIT"
],
"directory_id": "c5138b004e95b2d733ac377c45968d1e1b97cee4",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* core.c :+: :+: :+: ... | 2.296875 | 2 |
2024-11-18T22:40:04.715155+00:00 | 2019-07-19T01:58:41 | 9c43bb368684e90fc09b35bd5c0c864dbb56aa31 | {
"blob_id": "9c43bb368684e90fc09b35bd5c0c864dbb56aa31",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-19T01:58:41",
"content_id": "fd8fa12184d8e819af94b742569cea198285acfa",
"detected_licenses": [
"MIT"
],
"directory_id": "7954da22faec7a530ba3729497becf50f08ae4f7",
"extension": "c"... | stackv2 | #include "ext/linkedqueue.h"
//LINKEDQUEUE_GENERATE(lq, linkedqueue, , size_t)
typedef struct linkedqueue_s
{
struct linkedqueue_node_s *head;
struct linkedqueue_node_s *tail;
size_t count;
struct linkedqueue_iter_s (*it_start)(struct linkedqueue_s *);
} linkedqueue, *linkedqueue_ptr;
typedef struct l... | 2.671875 | 3 |
2024-11-18T22:40:04.926999+00:00 | 2017-07-30T12:58:45 | ae2f06a0c8624d60a70cb4e8b3a9fdb16c4351be | {
"blob_id": "ae2f06a0c8624d60a70cb4e8b3a9fdb16c4351be",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-30T12:58:45",
"content_id": "75361daba3a9c5e673d7b2d64e8feef94b2b2cf5",
"detected_licenses": [
"MIT"
],
"directory_id": "8bec4a6588b6ed50692b5fd978e9e7b83a610cae",
"extension": "c"... | stackv2 | // C program to demonstrate insert operation in binary search tree
#include<stdio.h>
#include<stdlib.h>
#include <malloc.h>
struct node
{
int key;
struct node *left, *right;
};
// A utility function to create a new BST node
struct node *newNode(int item)
{
struct node *temp = (struct node *)malloc(sizeof(struct no... | 4.09375 | 4 |
2024-11-18T22:40:08.547985+00:00 | 2016-01-14T07:45:22 | e6812cddb0f30be9c5525cc66e7c971927d3aacc | {
"blob_id": "e6812cddb0f30be9c5525cc66e7c971927d3aacc",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-14T07:45:22",
"content_id": "e9bda80bac663a9b8f3b25ac2d70d91fb5043d0c",
"detected_licenses": [
"MIT"
],
"directory_id": "8cee1370c6174f6a60f94b2d8637b9853dd512f3",
"extension": "c"... | stackv2 | #include "dxl_hal.h"
#include "dynamixel.h"
#include <stdio.h>
#define ID (2)
#define LENGTH (3)
#define INSTRUCTION (4)
#define ERRBIT (4)
#define PARAMETER (5)
#define DEFAULT_BAUDNUMBER (1)
unsigned char gbInstructionPacket[MAXNUM_TXPARAM+10] = {0};
unsigned char gbStatusPacket[MAXNUM_RXPARAM+10] = {... | 2.109375 | 2 |
2024-11-18T22:40:08.615256+00:00 | 2015-11-30T23:49:24 | 7d9fdc67002a86c2faf935495c32bebad221f165 | {
"blob_id": "7d9fdc67002a86c2faf935495c32bebad221f165",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-30T23:49:24",
"content_id": "efb3a4c0d8024c0fdb3f876951021353bd4e64c3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "796d77c13b14c55c1839d2616edc33b793f180fd",
"extens... | stackv2 | #include <shell.h>
#include <lib.h>
#include <memory.h>
#include <apps.h>
extern char bss;
extern char endOfBinary;
void printWarning();
int main() {
//Clean BSS
memset(&bss, 0, &endOfBinary - &bss);
intro();
char * line;
while(1) {
print("$ ");
line = getLn(line);
if(!cmpstr(line, "")){
if... | 2.5 | 2 |
2024-11-18T22:40:09.041758+00:00 | 2020-12-08T19:00:16 | bb904f7703817aa8e31a3cfeea19ee5f6a122c69 | {
"blob_id": "bb904f7703817aa8e31a3cfeea19ee5f6a122c69",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-08T19:00:16",
"content_id": "7f55bdc4d936c94b3547310f0e59eeb9253d0c20",
"detected_licenses": [
"MIT"
],
"directory_id": "6cb68416e953f3e533050e633d240ad69360256d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <locale.h>
int primo(int);
int main (void)
{
setlocale(LC_ALL,"");
int contador = 0;
printf("<<<<<PROGAMA QUE MOSTRA A SEQUÊNCIA DE NÚMERO PRIMOS DE 1 ATÉ 10000>>>>>\n\n");
for (int indice = 1; indice <= 10000; indice++)
{
if(primo(contador) != 0)
... | 3.109375 | 3 |
2024-11-18T22:40:09.243091+00:00 | 2014-01-04T12:23:19 | 29b52a1081217dab053aef570d145c30a640bde5 | {
"blob_id": "29b52a1081217dab053aef570d145c30a640bde5",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-04T12:23:19",
"content_id": "cd73d3cf0338bb3a757221a2b0aec30f3b6d2d12",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "d31d7feca835e70e1337447a7a4724b3c6e21ef5",
"extens... | stackv2 | /*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD
license as described in the file LICENSE.
*/
#ifndef SPARSE_DENSE_VECTOR_H
#define SPARSE_DENSE_VECTOR_H
#include <math.h>
#include "parse_example.h"
#include "constant.h"
inline... | 2.296875 | 2 |
2024-11-18T22:40:10.132149+00:00 | 2022-09-28T11:41:48 | 16be2ba6d99699ea8ff1267bff0df0f8d9a67301 | {
"blob_id": "16be2ba6d99699ea8ff1267bff0df0f8d9a67301",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-28T11:41:48",
"content_id": "969a0c24142c142240b49a828bc70a13de935a84",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c63d2a79f55a3c4812ec4c95e070fa9c00c0bb6a",
"extens... | stackv2 | /*********** z2rand.c (in su3.a) ****************************************
* *
* int z2_ran_no( double_prn *prn_pt ) *
* Z(2)/sqrt(2) distributed random number *
* This requires a random number generator named "myrand()", returning *
* a Real uniformly distributed between zero and one. The argument... | 2.234375 | 2 |
2024-11-18T22:40:10.290840+00:00 | 2023-08-17T16:08:06 | 894700a72c18b69e3e628fcddd8c2c165e389b4b | {
"blob_id": "894700a72c18b69e3e628fcddd8c2c165e389b4b",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T16:08:06",
"content_id": "de5d781ea55fff0c736f6965479c4b65b446a3e4",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066",
"extensio... | stackv2 |
/*
Defines projective product routines where A is a SeqAIJ matrix
C = R * A * R^T
*/
#include <../src/mat/impls/aij/seq/aij.h>
#include <../src/mat/utils/freespace.h>
#include <../src/mat/impls/dense/seq/dense.h> /*I "petscmat.h" I*/
static PetscErrorCode MatDestroy_SeqAIJ_RARt(void *data)
{
Mat_RARt *... | 2.15625 | 2 |
2024-11-18T22:40:10.365631+00:00 | 2020-12-22T17:20:19 | a51e55f13528bbcf0b9121b2992ac9290a526d01 | {
"blob_id": "a51e55f13528bbcf0b9121b2992ac9290a526d01",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-22T17:20:19",
"content_id": "bcef9f32d2fe2abb36b21827b0ca70c3020a4129",
"detected_licenses": [
"MIT"
],
"directory_id": "f87db0557e512c04112196b8304f4131109e9d73",
"extension": "c",
... | stackv2 | /*********************************************************************************************************//**
* @file MPU6050.c
* @date $Date:: 2019-11-05 #$
*************************************************************************************************************
* @attention
*
* Firmware Disclaimer In... | 2.078125 | 2 |
2024-11-18T22:40:10.435834+00:00 | 2013-03-19T09:55:23 | 7a279804142059e6a36e7871bd34bf55a6f96dab | {
"blob_id": "7a279804142059e6a36e7871bd34bf55a6f96dab",
"branch_name": "refs/heads/master",
"committer_date": "2013-03-19T09:55:23",
"content_id": "68ce63bbb0d8f67b25248c3be17feab0df07d652",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e850c76ba4416e9dbfc08b50b51dba635ccada40",
"extensio... | stackv2 |
#include "sxx-ril.h"
#define PHONE_BOOK_BUF_LEN (420)
#define PHONE_BUF_LEN 128
typedef struct {
int index;
char alpha[PHONE_BUF_LEN];
int code;
int number_length;
char number[PHONE_BUF_LEN];
}phone_book_t;
unsigned char g_pb_buffer[PHONE_BOOK_BUF_LEN];
static char g_alpha_buf... | 2.734375 | 3 |
2024-11-18T22:40:10.790849+00:00 | 2023-09-02T14:55:31 | 42bb7e247ca582de6089c86ffd949915ad19c2da | {
"blob_id": "42bb7e247ca582de6089c86ffd949915ad19c2da",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T14:55:31",
"content_id": "3f74a0418a8953a934b5cdff1fe7f7c1de75cfd9",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca",
"extens... | stackv2 | /**
* @file
* @brief Readelf shows information about ELF binaries.
*
* @date 2.05.10
* @author Anatoly Trosinenko
* - Initial implementation.
* - Huge parts of code are written by Aleksandr Kirov
* @author Nikolay Korotky
* - Refactoring, fix bugs.
*/
#include <unistd.h>
#include <cty... | 2.453125 | 2 |
2024-11-18T22:40:13.259361+00:00 | 2020-05-09T01:00:47 | d55715b84bdec85ffbc6dcf82ec8cb760e949de4 | {
"blob_id": "d55715b84bdec85ffbc6dcf82ec8cb760e949de4",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-09T01:00:47",
"content_id": "68e866ab08cadf7b9597347927174dff28efa472",
"detected_licenses": [
"MIT"
],
"directory_id": "83da4028afa44337b94bff43726aeaff6160ed5f",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
void main(){
char string[] = "<I>e60200091002010007d0000bb80003e80027100102001770000000"
"0000000027100203000bb8000bb800000000271001040017700000000"
"0000000271002050007d0000bb80003e8002710010600177000000000"
"000000... | 2.3125 | 2 |
2024-11-18T22:40:13.376916+00:00 | 2023-08-10T13:42:17 | 0789dbb11b30bdc75c1aae58f828f16594cd3836 | {
"blob_id": "0789dbb11b30bdc75c1aae58f828f16594cd3836",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-10T13:42:17",
"content_id": "66eb528bf507a82ea65cd7e59ab595553051c963",
"detected_licenses": [
"MIT"
],
"directory_id": "6ff85b80c6fe1b3ad5416a304b93551a5e80de10",
"extension": "c"... | stackv2 | #include <stdio.h>
int main() {
float x;
float y;
printf ("Entre o numerador 'x' :\n");
scanf ("%f", &x);
printf ("Entre o denominador 'y' :\n");
scanf ("%f", &y);
printf("O resultado da divisao entre x e y, em formato ponto flutuante e : %f\n\n", x / y);
}
//https://pt.stackoverflow.com/q... | 2.828125 | 3 |
2024-11-18T22:40:13.441437+00:00 | 2011-11-28T08:58:23 | 28709d06612b56e6fcf2aa56d2f5ab2899ed9f21 | {
"blob_id": "28709d06612b56e6fcf2aa56d2f5ab2899ed9f21",
"branch_name": "refs/heads/master",
"committer_date": "2011-11-28T08:58:23",
"content_id": "213bde8ce5221b0b4e09a7213e22f45c60f99053",
"detected_licenses": [
"MIT"
],
"directory_id": "d8f69545e1660a7fd363fdbb734e349b966d5434",
"extension": "c"... | stackv2 | /**
* This file contains tests and examples for the seq file
*
* Compiling
* ---------
* gcc -Wall -O3 -I../devries example-seq.c -o example-seq
******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include "seq.h"
#include "well1024.h"
int main(... | 2.265625 | 2 |
2024-11-18T22:40:13.550784+00:00 | 2018-12-05T06:12:53 | 0b49aace50d8dd269ec183feeb26794a266d12c8 | {
"blob_id": "0b49aace50d8dd269ec183feeb26794a266d12c8",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-05T06:12:53",
"content_id": "30920f2afea7c39718c3c12a45adabac5ef06a95",
"detected_licenses": [
"MIT"
],
"directory_id": "d89e505bc848fd0ec549ffe374bd9772957dbcd3",
"extension": "h"... | stackv2 | /**
* \file optimizer.h
* \author Afnan Enayet
* \brief Methods to optimize LLVM IR code
*
* This module contains function definitions for functions that provide
* optimizations for LLVM code. These functions will modify the LLVM model
* that is passed in.
*
* In this file, we implement constant propagation an... | 2.125 | 2 |
2024-11-18T22:40:13.790886+00:00 | 2022-08-11T03:18:22 | c1f63e6c516560310e2b5cfdfa9cd235b8c4dfe7 | {
"blob_id": "c1f63e6c516560310e2b5cfdfa9cd235b8c4dfe7",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-11T03:18:22",
"content_id": "ad43d73775d068c84201c2dacc7de62faf337a3c",
"detected_licenses": [
"MIT"
],
"directory_id": "8afb5afd38548c631f6f9536846039ef6cb297b9",
"extension": "c"... | stackv2 | void print_array (AV *av) {
SV *sv; // SV pointer to hold return from array
char *string; // string pointer to hold SV string value
STRLEN len; // unused length value for SvPV()
I32 i = 0; // loop counter
// loop over all valid indexes
for (i = 0; i <= av_len(av); i++) {
sv = *(a... | 3.015625 | 3 |
2024-11-18T22:40:15.007370+00:00 | 2018-05-23T22:16:54 | 763e0ea7381d6a00f18e826c8c19e02e8856937f | {
"blob_id": "763e0ea7381d6a00f18e826c8c19e02e8856937f",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T22:16:54",
"content_id": "abebde9130b367541d962b7f6adfdd1e3ed3b0fd",
"detected_licenses": [
"MIT"
],
"directory_id": "551d26d520f3d4ddfc852add32eb647f3b02ebcf",
"extension": "c"... | stackv2 | // Heap Size 2048
// **** Include libraries here ****
// Standard libraries
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
// Microchip libraries
#include <xc.h>
#include <plib.h>
// User libraries
#include "Agent.h"
#include "Ascii.h"
#include "Buttons.h"
#include "Field.h"
#include "FieldOled.h"
#incl... | 2.078125 | 2 |
2024-11-18T22:40:15.240085+00:00 | 2021-06-16T14:07:59 | e553854635cddf555d3ae1181862fe5d971cfd2e | {
"blob_id": "e553854635cddf555d3ae1181862fe5d971cfd2e",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-16T14:07:59",
"content_id": "7e8a5c38a3e8c67d8aec77135609fca9dae54be6",
"detected_licenses": [
"MIT"
],
"directory_id": "be9e88e7d68f3275b0e234bc182ddd844a17586d",
"extension": "c",
... | stackv2 | /*
* File Created: 2nd April 2021
* Author: Guocheng Qian (guocheng.qian@kaust.edu.sa)
* Last Modified: 9th April 2021
* Copyright 2021@Guocheng Qian
*
* lecture 1: introduction to C.
1. scanf function (use with getchar())
2. output redirect : ./a.out > out (the output in the terminal will be saved to out)
3. ... | 3.203125 | 3 |
2024-11-18T22:40:16.192460+00:00 | 2022-05-10T07:05:18 | 3464a06cae9fb4c16a8d4e22f81e2b225b65b957 | {
"blob_id": "3464a06cae9fb4c16a8d4e22f81e2b225b65b957",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-10T07:05:18",
"content_id": "f1a264871807eddacb3323ec5f1fd35cdb470b0d",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "5ab892bcef191df40d45296c54ec5733583e9b8e"... | stackv2 | /* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "util.h"
struct rr_timespec64 {
int64_t tv_sec;
int64_t tv_nsec;
};
int main(void) {
struct rr_timespec64 ts;
struct rr_timespec64 duration = { 0, 1000000 };
if (sizeof(void*) != 4) {
atomic_puts("Ignoring non-32bi... | 2.484375 | 2 |
2024-11-18T22:40:16.412871+00:00 | 2019-07-04T05:52:53 | eac59826e83cf4a3dd299792d890931891424108 | {
"blob_id": "eac59826e83cf4a3dd299792d890931891424108",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-04T05:52:53",
"content_id": "d4a265f4b035ad4ee358d258219e9c046fba7ca1",
"detected_licenses": [
"MIT"
],
"directory_id": "ae7979443a7ca3f09c405604e568faec192bdc01",
"extension": "c"... | stackv2 | /*
* ctrl_msg.c
*/
#include <rte_eal.h>
#include <rte_kni.h>
#include <rte_ring.h>
#include <rte_lcore.h>
#include <rte_ethdev.h>
#include <rte_cycles.h>
#include <rte_launch.h>
#include <rte_malloc.h>
#include <rte_prefetch.h>
#include "kdns.h"
#include "netdev.h"
#include "ctrl_msg.h"
#include "dns-conf.h"
#inclu... | 2.125 | 2 |
2024-11-18T22:40:16.668827+00:00 | 2019-03-17T22:19:06 | eb3d8ec5fa0aef46b1a8ea8dda341635e07cad4d | {
"blob_id": "eb3d8ec5fa0aef46b1a8ea8dda341635e07cad4d",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-17T22:19:06",
"content_id": "ecaa7b6b023f8ec8e475056a88f7014dcd183a62",
"detected_licenses": [
"MIT"
],
"directory_id": "8f9b4487ac093114d9da8e5efd7c9760610fa1dd",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#define RCDIR ".genctemplate"
enum TemplateType
{
TEMPLATE_TYPE_C, // "c"
TEMPLATE_TYPE_MAKEFILE, // "makefile"
TEMPLATE_TYPE_GNUPLOT_SPLOT, // "gnuplot-splot"
TEMPLATE_TYPE_SIZE
};
const char* kTemplateStrings[] = {
"c",
"m... | 2.8125 | 3 |
2024-11-18T22:40:16.760250+00:00 | 2017-04-21T04:58:18 | 7560313bfba26b0eb11f1e138dc1c1e8829020cf | {
"blob_id": "7560313bfba26b0eb11f1e138dc1c1e8829020cf",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-21T04:58:18",
"content_id": "e8fc3d00f07f2f77052a3a6e33cb9a1470069430",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "56db6e740bd3bf3f8d5b45f736d6f30312a9a026",
"extensio... | stackv2 | /*
* pressure.c
*
* Created on: 30 Jan 2017
* Author: Siidheesh Theivasigamani
*/
#include "pressure.h"
I2C_HandleTypeDef *hi2c_p;
uint8_t bmp_data[16] = {0};
const uint8_t OSS = 0; // Oversampling Setting
// Calibration values
int16_t ac1;
int16_t ac2;
int16_t ac3;
uint16_t ac4;
uint16_t ac5;
uint16_t ... | 2.265625 | 2 |
2024-11-18T22:40:16.920910+00:00 | 2021-06-06T04:49:17 | c3ea02ddf5aa961e28836254635cb19d52a3e1ce | {
"blob_id": "c3ea02ddf5aa961e28836254635cb19d52a3e1ce",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-06T05:04:45",
"content_id": "cb3da5183c617c486be144a68deeb8d73d753c58",
"detected_licenses": [
"MIT"
],
"directory_id": "c425395a69563d4a0762cbe2c7c9eaa5b7f26ff1",
"extension": "c",
... | stackv2 | /*------------------------------------------------------------------------------
* 2048.c
*
* File: appState.c
* Author: Daniel Wojcickoski
* Date: 2021/04/28
*
* MIT License - Copyright (c) 2021 Daniel Wojcickoski
*----------------------------------------------------------------------------*/
#include "../incl... | 2.4375 | 2 |
2024-11-18T22:40:17.125135+00:00 | 2017-03-31T07:09:20 | 135e7c69831999d4db9ebd26d1a22d76dbfdaf35 | {
"blob_id": "135e7c69831999d4db9ebd26d1a22d76dbfdaf35",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-31T07:09:20",
"content_id": "f7ab857b68d0537efe5e0afac8d93e0f0f584643",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "aaaf29cea6ff9d8559ae14d5216800e70bf31038",
"extens... | stackv2 | #ifndef KERNEL_IO_H
#define KERNEL_IO_H
static inline unsigned char inb(unsigned short port)
{
unsigned char value;
asm("inb %w1, %0": "=a"(value): "Nd"(port));
return value;
}
static inline void outb(unsigned short port, unsigned char value)
{
asm("outb %b0, %w1": : "a"(value), "Nd"(port));
}
#endif /* KERNEL_... | 2.140625 | 2 |
2024-11-18T22:40:17.231339+00:00 | 2020-02-07T01:28:31 | 0a076bf2f5f118003235cb1781b65e1ec382f68b | {
"blob_id": "0a076bf2f5f118003235cb1781b65e1ec382f68b",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-07T01:28:31",
"content_id": "0d398763227bcc168cb9927a4c7ce6909b037558",
"detected_licenses": [
"MIT"
],
"directory_id": "bab0455a654ad4431b1b8fa95a6c46c4d88618a5",
"extension": "h"... | stackv2 | #ifndef GLOBALS_H
#define GLOBALS_H
#include <stdbool.h>
/*-------*/
/* Flags */
/*-------*/
//Whether debug mode should be on
#define DEBUG false
//Whether input should be printed
#define PRINT_INPUT_INITIAL true
//Whether derivations should be printed
#define PRINT_DERIVATIONS_INITIAL false
//Whether control inform... | 2.015625 | 2 |
2024-11-18T22:40:17.359251+00:00 | 2023-06-26T18:38:18 | 865bfaffcf5456e953024ad4e4713855b9cfe2bc | {
"blob_id": "865bfaffcf5456e953024ad4e4713855b9cfe2bc",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-26T18:38:18",
"content_id": "fbecccebc699fde7907d61e1547449389c9abab9",
"detected_licenses": [
"MIT"
],
"directory_id": "e568fcf70d23481da18734c2a9d30c1b5d95b265",
"extension": "c"... | stackv2 | //
// Created by sachetto on 30/10/18.
//
#include "ensight_grid.h"
#include "../3dparty/stb_ds.h"
#include "../domains_library/mesh_info_data.h"
#include "../logger/logger.h"
#include <math.h>
#include <stdint.h>
#include <sys/mman.h>
#include <float.h>
static inline void new_line(FILE *f, bool binary) {
if(!bin... | 2.515625 | 3 |
2024-11-18T22:40:17.678999+00:00 | 2023-08-12T00:22:55 | cd8b8248d5a96593e33a6f0ada1d65489988ce2a | {
"blob_id": "cd8b8248d5a96593e33a6f0ada1d65489988ce2a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-12T00:22:55",
"content_id": "db022f4a307b18eb86c9027b3f46adaa255db9fa",
"detected_licenses": [
"MIT"
],
"directory_id": "e4725987c1167bf31b3322853f817453a30e33fa",
"extension": "c"... | stackv2 |
#include <eml_array.h>
#include <unity.h>
// Global variable used as backing store for the various tests
#define TEST_ARRAY_BUFFER_SIZE 1000
uint8_t g_test_array_buffer_1[TEST_ARRAY_BUFFER_SIZE];
uint8_t g_test_array_buffer_2[TEST_ARRAY_BUFFER_SIZE];
EmlArray *
get_test_array_2d(int width, int height, int value_siz... | 2.796875 | 3 |
2024-11-18T22:40:17.870000+00:00 | 2018-12-06T08:54:28 | 87ac5ec28c756e634a2ff0a767ae50b359dd889c | {
"blob_id": "87ac5ec28c756e634a2ff0a767ae50b359dd889c",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-06T08:54:28",
"content_id": "f2e5349e8edd367a4a094f9d71bb5dfd405c0f72",
"detected_licenses": [
"Unlicense"
],
"directory_id": "e5635bd577614c1907af0e68685a22cc609e9354",
"extension... | stackv2 | #include "Common.h"
#include "Debug.h"
#include "Semaphore.h"
#include "Threading.h"
#include "ThreadingSupp.h"
#include "x86_64/Spinlock.h"
#include "x86_64/Tools.h"
#include <stdlib.h>
#include <string.h>
typedef struct
{
size_t capacity, begin, count;
task *tasks[]; // Array with copies of task pointers
} ... | 2.734375 | 3 |
2024-11-18T22:40:18.080059+00:00 | 2018-05-12T23:21:59 | 9c7fed306ead4ef6c93a330dd1c5761a2d08eb24 | {
"blob_id": "9c7fed306ead4ef6c93a330dd1c5761a2d08eb24",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-12T23:21:59",
"content_id": "b41516631110152a88dc0f93d2cdc7cc5098d6e7",
"detected_licenses": [
"MIT"
],
"directory_id": "9f97a11ef9f0b702e5e98c8c4356f5f89727e97d",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include "ai.h"
bool make_weighted_shot(player_t* target) {
// Generate probability grid for state
grid_t prob_grid = {.width = target->grid->width, .height = target->grid->height};
allocate_grid_data(&prob_grid, false);
gen_probability_grid(... | 2.484375 | 2 |
2024-11-18T22:40:18.264339+00:00 | 2019-12-24T17:08:38 | 8728d40e610754ebe1f555e486f0393014ab090c | {
"blob_id": "8728d40e610754ebe1f555e486f0393014ab090c",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-24T17:08:38",
"content_id": "fcdde61605cd653a192c134030efed7fee615885",
"detected_licenses": [
"Unlicense"
],
"directory_id": "8e9794fa6dc9cbf109c913348eecaff69584fa0c",
"extension... | stackv2 | /*
* user_main.c: Main entry-point for blinking an LED, with the rate controlled via messages from UART 0.
*
* Author: Ian Marshall
* Date: 14/05/2016
*/
#include "ets_sys.h"
#include "osapi.h"
#include "gpio.h"
#include "os_type.h"
#include "driver/uart.h"
#include "espmissingincludes.h"
// Timer used to det... | 3.046875 | 3 |
2024-11-18T22:40:18.529713+00:00 | 2019-03-26T18:26:31 | 2b44debe1c2318dca77e053586c6d7715acc2703 | {
"blob_id": "2b44debe1c2318dca77e053586c6d7715acc2703",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-26T18:26:31",
"content_id": "aab8cf26df9db85ebfd6c1c90bd5f4fa17af3fce",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "fb3989014534df5227ddb33b0815e75537b417a4",
"extens... | stackv2 | /*! \file */ //Copyright 2011-2017 Tyler Gilbert; All Rights Reserved
#ifndef SON_H_
#define SON_H_
/*! \mainpage
*
* Introduction
* -------------
*
* Stratify Object Notation (SON) is an object storage file format similar to JSON but
* optimized for use on systems with limited resources (e.g. microcontrollers)... | 2.625 | 3 |
2024-11-18T22:40:18.675762+00:00 | 2022-08-24T08:26:13 | 8e783860d6120ac85ead2d995f837cd949c64f86 | {
"blob_id": "8e783860d6120ac85ead2d995f837cd949c64f86",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-24T08:45:13",
"content_id": "c10c4f169611195c1dd68391fbbbc138842a6261",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8aa62ead9aa06e286f88b71ab93f9b960458a0ed",
"extensio... | stackv2 | /*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
#include "ls_hal_km.h"
#include "ls_osa.h"
#if defined(__DEMO__)
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#incl... | 2.265625 | 2 |
2024-11-18T22:40:18.793954+00:00 | 2022-03-31T08:22:16 | 0c01622c8ef4983875d603d2f269c8df0ff93b56 | {
"blob_id": "0c01622c8ef4983875d603d2f269c8df0ff93b56",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-31T08:22:16",
"content_id": "bd6f34e87054843762286037644bba37c007c59d",
"detected_licenses": [
"Unlicense"
],
"directory_id": "397de467115775da05ae98426bca4583711df0c6",
"extension... | stackv2 | /*--- stacks.h ---------------------------- Listing 2-6 ---------
* Header file for stack operations
*-------------------------------------------------------------*/
#ifndef STACKS_H
#define STACKS_H 1
#ifdef IN_STACK_LIB
#define StkExtern
#else
#define StkExtern extern
#endif
struct stack_struct {
struc... | 2.28125 | 2 |
2024-11-18T22:40:19.034902+00:00 | 2021-06-25T14:18:57 | 63aace9426ca86d07bdbde94ee1384e41183341f | {
"blob_id": "63aace9426ca86d07bdbde94ee1384e41183341f",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-25T14:18:57",
"content_id": "5e3f1722600d68f4217c6ee7f2bdb5c05546473a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "674296125df06de562ccce76448ad732b7b54c41",
"extension"... | stackv2 | #include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#define EOF_BF 0
#define SIZE 32768
char cells[SIZE];
FILE* fin;
int past(FILE* fin)
{
int cnt = 1;
while (cnt) {
switch (fgetc(fin)) {
case '[':
++cnt;
break;
case ']':
--cnt;
br... | 2.796875 | 3 |
2024-11-18T22:40:19.543638+00:00 | 2023-08-14T17:29:31 | 2b09c90cabbd092d3df695fbef17426974b95366 | {
"blob_id": "2b09c90cabbd092d3df695fbef17426974b95366",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-14T17:29:31",
"content_id": "b3db9524d945ea5825b7e94691227685f8857eb9",
"detected_licenses": [
"BSD-4-Clause-UC",
"Apache-2.0"
],
"directory_id": "10a8580aa44d33b7458429023c00de8c0... | stackv2 | /*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
/*
* This file contains functions for dealing with MySQLi link metadata.
*/
#ifndef NR_MYSQLI_METADATA_PRIVATE_HDR
#define NR_MYSQLI_METADATA_PRIVATE_HDR
#include "nr_mysqli_metadata.h"
#include "util_object.... | 2.28125 | 2 |
2024-11-18T22:40:19.819166+00:00 | 2018-05-22T21:49:38 | 70a78c996b073ec1bd57ea9f90fbc695dff9cc98 | {
"blob_id": "70a78c996b073ec1bd57ea9f90fbc695dff9cc98",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-22T21:49:38",
"content_id": "576942b95cef8465e13cbc8270cd749c593ff66f",
"detected_licenses": [
"MIT"
],
"directory_id": "813288342bcdf62bce6e329694ebcc2efa7bb228",
"extension": "c"... | stackv2 | /* Copyright (c) 2013 Microsoft Corporation. All Rights Reserved.
*
*/
#include <stdbool.h>
#include <stdint.h>
#include "twi_master.h"
// read n-bytes from i2c register at the given address where subsequent bytes
// are read from incrementally increasing register addresses.
bool readI2cData(uint8_t add... | 2.484375 | 2 |
2024-11-18T22:40:19.896083+00:00 | 2018-02-13T03:11:16 | a096c9017d30d7715107618e5d527fe5604877f0 | {
"blob_id": "a096c9017d30d7715107618e5d527fe5604877f0",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-13T03:11:16",
"content_id": "a6eb27662936aaa7a874cca16877ff28acbe6d1b",
"detected_licenses": [
"MIT"
],
"directory_id": "b1d6b4f92f1e175d36d2ef5715e3c49dc7b8f42f",
"extension": "c"... | stackv2 | // File: 9.5.c
// Author: TaoKY
#include <stdio.h>
#define NAMLEN 20
#define STUCNT 10
struct student_t{
int num;
char name[NAMLEN];
int score[3];
} students[STUCNT];
int main(){
int maxi = 0, maxsum = 0;
double aver_0 = 0, aver_1 = 0, aver_2 = 0;
for (int i = 0; i < STUCNT; i++){
scanf("%d%s%d%d%d", &stude... | 3.28125 | 3 |
2024-11-18T22:40:20.162061+00:00 | 2019-05-23T16:22:09 | a32474a748bf8e120b41a923fa231da37d2fc55b | {
"blob_id": "a32474a748bf8e120b41a923fa231da37d2fc55b",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-23T16:22:09",
"content_id": "3d97839581e2d62e476dc95553abb1a009652fce",
"detected_licenses": [
"MIT"
],
"directory_id": "8ba69a3da834db7127a80493f0f39c58d2ba0905",
"extension": "c"... | stackv2 | #define _POSIX_C_SOURCE 200112L
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <errno.h>
#include "common_socket.h"
static int _socket_create(socket_t *skt, int ai_family,
int ai_socktype, int ai_protocol){
skt->... | 2.3125 | 2 |
2024-11-18T22:40:20.272114+00:00 | 2017-12-21T22:41:14 | 845a3c01540b0d71a238f37e40fc7e261a894db5 | {
"blob_id": "845a3c01540b0d71a238f37e40fc7e261a894db5",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-21T22:41:14",
"content_id": "a96adbd5e51c3ade05e6c7bdcc502ec2a5c92379",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8fc47fb7cd44e3dda6e3112af9ed408f24e296ea",
"extens... | stackv2 | #include "eddy-private.h"
_Static_assert(offsetof(EdStat, vec) % 8 == 0,
"EdStat vec member must be 8-byte aligned");
#define ED_BIT_MASK(b) (1 << ((b) % 8))
#define ED_BIT_SLOT(b) ((b) / 8)
#define ED_BIT_SET(a, b) ((a)[ED_BIT_SLOT(b)] |= ED_BIT_MASK(b))
#define ED_BIT_CLEAR(a, b) ((a)[ED_BIT_SLOT(b)] &= ~ED_BIT_M... | 2.15625 | 2 |
2024-11-18T22:40:20.522379+00:00 | 2021-01-19T09:15:54 | 863a706aaed85dc558cff69eb7838f24c8729a29 | {
"blob_id": "863a706aaed85dc558cff69eb7838f24c8729a29",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-19T09:15:54",
"content_id": "00a4888d9f2e4280c90758d1d8177c90528ca072",
"detected_licenses": [
"MIT"
],
"directory_id": "1d8df112c2b842fd7c4115d006fa159031381b27",
"extension": "h",
... | stackv2 |
// State struct
typedef struct{
void(*Enter)(void*);
void(*Exit)();
void(*Update)(float);
char *name;
}State;
//StateMachine struct
typedef struct{
State *state;
State *stateList;
}StateMachine;
void change_state(StateMachine *sm, int stateIndex, void *data){
sm->state->Exit();
sm->state = &sm->stateList[st... | 2.421875 | 2 |
2024-11-18T22:40:20.625153+00:00 | 2017-08-29T19:48:39 | 50a26a93711d647455fcdfc9b090256767ea657f | {
"blob_id": "50a26a93711d647455fcdfc9b090256767ea657f",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-29T19:48:39",
"content_id": "7b85e4958d77be20a239b36b8fa02c70db3a4461",
"detected_licenses": [
"MIT"
],
"directory_id": "682ecec594daae0d58d22d7e2ab1d26c016096a9",
"extension": "c"... | stackv2 | /*
* Created: 1/15/2012 11:34:34 PM
* Author: Blake Livingston
*/
#include <avr/io.h>
#include <avr/portpins.h>
#include "tinytune/tinytune.h"
#define TEST_ZELDA
#ifdef TEST_ZELDA
#include "test_songs/zelda.h"
int main(void)
{
initTinyTune();
initVoiceTRI(0);
setBitCrunch(0,4);
playSong(&zelda);
while(... | 2.0625 | 2 |
2024-11-18T22:40:20.776261+00:00 | 2019-10-16T09:34:49 | 957510a2821429e6d819648804f7a6abdee8b2c0 | {
"blob_id": "957510a2821429e6d819648804f7a6abdee8b2c0",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-16T09:34:49",
"content_id": "d62ab121557b5ccb0978001f20d3efbdd359bf47",
"detected_licenses": [
"MIT-Modern-Variant",
"ISC"
],
"directory_id": "8eeb4dc93d55619b20eba6b4fede0729424... | stackv2 | /**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1988 Kanwar Jit Singh
**********/
#include "spice.h"
#include <stdio.h>
#include "cktdefs.h"
#include "asrcdefs.h"
#include "sperror.h"
#include "util.h"
int ASRCacLoad(GENmodel *inModel, CKTcircuit *ckt)
{
/*
* ... | 2.25 | 2 |
2024-11-18T22:40:21.356495+00:00 | 2019-04-18T06:38:08 | 5e9f28a2a5c4b254345b5406e7b631d78315d633 | {
"blob_id": "5e9f28a2a5c4b254345b5406e7b631d78315d633",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-18T06:38:08",
"content_id": "3734075b9e5e0d1bc1a180ffef0c7545bb00a31b",
"detected_licenses": [
"MIT"
],
"directory_id": "a20b20d9e050c89c8baa696e9bc13e8a0b89bff8",
"extension": "h"... | stackv2 | #include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define XPOS 0
#define YPOS 1
#define LOGO16_GLCD_HEIGHT 16
#define LOGO16_GLCD_WIDTH 16
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RE... | 2.328125 | 2 |
2024-11-18T22:40:21.754634+00:00 | 2015-11-20T03:16:18 | af697d8cb5e1131ca6559c481d2b37ca26d85d04 | {
"blob_id": "af697d8cb5e1131ca6559c481d2b37ca26d85d04",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-20T03:16:18",
"content_id": "f3f7b87af86c777a092a75ac94d8e363b96263e6",
"detected_licenses": [
"MIT"
],
"directory_id": "fcc15ba619337784a6a9a2adacaf2508167769eb",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include <mpi.h>
#include "mt19937p.h"
#include <assert.h>
#include <omp.h>
#include <math.h>//ldoc on
/**
* # The basic recurrence
*
* At the heart of the method is the following basic recurrence.
* If $l_{ij}^s$ repre... | 2.96875 | 3 |
2024-11-18T22:40:22.103564+00:00 | 2020-05-28T19:47:59 | 37b4148392444d948fe28ea815c24c51cc2d4826 | {
"blob_id": "37b4148392444d948fe28ea815c24c51cc2d4826",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-28T19:47:59",
"content_id": "2dd3fc512aa57fc44ee251f965d340c49e37a31d",
"detected_licenses": [
"MIT"
],
"directory_id": "6183b5d61d6a570e91e9df1c9df391d4d4c9ee2d",
"extension": "c"... | stackv2 | /*
* main.c - part of g431 nucleo lcd
*/
#include "main.h"
#include "led.h"
#include "usart.h"
#include "printf.h"
#include "gfx.h"
#include "systick.h"
#include "raycast_tex.h"
/**
* @brief This function is executed in case of error occurrence.
* @retval None
*/
void Error_Handler(void)
{
}
/**
* @brief ... | 2.65625 | 3 |
2024-11-18T22:40:26.193586+00:00 | 2017-01-17T18:36:13 | 8d84202bd8a38d83ca020ab21bee296fc7dd1a82 | {
"blob_id": "8d84202bd8a38d83ca020ab21bee296fc7dd1a82",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-28T07:56:58",
"content_id": "9f6c7fd267ff4dc41333fcd87d7d06a641c18db1",
"detected_licenses": [
"MIT"
],
"directory_id": "bce50c1a3a699d87032d813ef949a47677e5af91",
"extension": "h"... | stackv2 | /*
* Copyright (c) 2016 Mieszko Mazurek
*/
#ifndef __HD44780LCD_H
#define __HD44780LCD_H
#include <inttypes.h>
#include "object.h"
#include "hd44780.h"
#include "hd44780itf.h"
#include "ostream.h"
typedef enum lcd_type_t lcd_type_t;
enum lcd_type_t
{
LCD2X16,
LCD4X20
};
#define HD44780LCD(x) ((hd44780lcd_t*... | 2.125 | 2 |
2024-11-18T22:40:26.826803+00:00 | 2020-08-22T02:05:50 | edb60a8bead98cd566f546c6583c5cfd5282a863 | {
"blob_id": "edb60a8bead98cd566f546c6583c5cfd5282a863",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-22T02:05:50",
"content_id": "65b1b67a6cdf6a0b6414dc0976cd226945ca6836",
"detected_licenses": [
"MIT"
],
"directory_id": "311c1a771e006e1d175f252b45b1cd6692f9ff21",
"extension": "c"... | stackv2 | #include <stdio.h>
int main(){
// Declarando as variaveis
int horas, velocidade;
double litros, distancia;
// Lendo a Entrada
scanf("%d %d", &horas, &velocidade);
// Calculando a distancia
distancia = velocidade * horas;
// Usando o resultado da distancia para calcular os litros
... | 3.125 | 3 |
2024-11-18T22:40:27.403183+00:00 | 2021-02-16T22:21:32 | 4ce0467a004ca0d259214ecfe1a986d6fcc5bba6 | {
"blob_id": "4ce0467a004ca0d259214ecfe1a986d6fcc5bba6",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-16T22:21:32",
"content_id": "3ede696b790a3d755cd3a2b04e27d6780db2c349",
"detected_licenses": [
"MIT"
],
"directory_id": "89a61e53218f0c7f446ec335f7226f063edb4512",
"extension": "c"... | stackv2 | //
// Created by alpharius on 27.04.2020.
//
// gcc Number_test.c Number.c -o test && ./test
#include "Number.h"
#define PRECISION 50
bool TEST_ADD_UNIT(const char* first, const char* second, const char* result){
Number firstN = string_to_Number(first, PRECISION);
Number secondN = string_to_Number(second, PRE... | 3.046875 | 3 |
2024-11-18T22:40:27.472680+00:00 | 2016-07-04T19:50:08 | 46ec657c9ee3a12fa6f29448c58bb3177b46de97 | {
"blob_id": "46ec657c9ee3a12fa6f29448c58bb3177b46de97",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-04T19:50:08",
"content_id": "1d022c13cbd44acfdf1699c4ca1a3cd477114366",
"detected_licenses": [
"MIT"
],
"directory_id": "84497fc03b2cc3c40e3ef77a6154131d3e56ebec",
"extension": "c"... | stackv2 | // hello_c.c
// build: gcc -Wall hello_c.c -o hello_c
// RevEng Platform: https://www.onlinedisassembler.com
// View Binary in vim: :%!xxd
// dissasemble: TODO objdump -D -b binary -m i386 -M intel hello_asm
/* The following is the size of a buffer to contain any error messages
encountered when the regular exp... | 2.59375 | 3 |
2024-11-18T22:40:27.533056+00:00 | 2023-08-29T13:09:08 | 9f102b6ade15e1b9ae10ab164b127ff6e7381fa2 | {
"blob_id": "9f102b6ade15e1b9ae10ab164b127ff6e7381fa2",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T13:09:08",
"content_id": "98c2ed0d6318c20979846e71ba175e753a2b787e",
"detected_licenses": [
"MIT"
],
"directory_id": "87f8566799de8cce12befdff35aa1224b714e733",
"extension": "c"... | stackv2 |
//
// path-join.c
//
// Copyright (c) 2013 Stephen Mathieson
// MIT licensed
//
#include <string.h>
#include <stdlib.h>
#include "strdup/strdup.h"
#include "str-ends-with/str-ends-with.h"
#include "str-starts-with/str-starts-with.h"
#include "path-join.h"
#ifdef _WIN32
#define PATH_JOIN_SEPERATOR "\\"
#else
#defin... | 2.890625 | 3 |
2024-11-18T22:40:29.760009+00:00 | 2023-08-25T04:46:28 | abc02e83c934bbbf66641d4c5c10037611ce7336 | {
"blob_id": "abc02e83c934bbbf66641d4c5c10037611ce7336",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-25T07:17:19",
"content_id": "09d0a4ae81eb6a693fd1bdf4e14aeb989e8697ac",
"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.
*/
#include "cec.h"
#include "chipset.h"
#include "test/drivers/test_state.h"
#include "test/drivers/utils.h"
#include <zephyr/fff.h>
#include <zephyr/ztest.h>
#define TES... | 2.28125 | 2 |
2024-11-18T22:40:30.222343+00:00 | 2018-07-18T08:24:38 | e4e4ecb5ff0e1c1a89369c9636125be8d04f0e32 | {
"blob_id": "e4e4ecb5ff0e1c1a89369c9636125be8d04f0e32",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-18T08:24:38",
"content_id": "4b412ed38f404ab3308da6be73e1d56a335d7963",
"detected_licenses": [
"MIT"
],
"directory_id": "7bc58acec9e1d92a8f207b9d81390345a967f2a0",
"extension": "c"... | stackv2 | /* Semi command line test app for the VoXen library */
#include "VX_lib.h"
#include "SDL/SDL.h"
#include <math.h>
#include <stdio.h>
ssize_t getline(char **lineptr, size_t *n, FILE *stream);
#define VERSION "0.1"
typedef struct benchmark_t{
VX_uint32 frames_drawn;
VX_uint32 time; /* time in miliseconds */
... | 2.546875 | 3 |
2024-11-18T22:40:30.304838+00:00 | 2021-05-12T10:10:27 | 2b1ba8b126a3d7c1740dff7c185a70910c8e6619 | {
"blob_id": "2b1ba8b126a3d7c1740dff7c185a70910c8e6619",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-12T10:10:27",
"content_id": "4a82b0a2521c3a40c8e574a6e287fca0bd8b6232",
"detected_licenses": [
"MIT"
],
"directory_id": "65b30f3a45fa3ed3d18c900b68242efbda0b44ed",
"extension": "c",
... | stackv2 | /*
例程68. 八皇后问题
整理优化by:千百度QAIU
QQ:736226400
编译环境:gcc/tcc
2017/10/22
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#define MAX 8 /* 棋子数及棋盘大小MAXxMAX */
int board[MAX];
/* 印出結果 */
void show_result()
{
int i;
for(i=0;i<MAX;i++)
printf("(%d,%d)",i,board[i]);
printf("\n");
}
/* ... | 3.3125 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.