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-18T21:05:53.168170+00:00
2023-06-24T06:46:07
9a9a05f42044d4519fd751dafd67e81607818b73
{ "blob_id": "9a9a05f42044d4519fd751dafd67e81607818b73", "branch_name": "refs/heads/master", "committer_date": "2023-06-24T06:46:07", "content_id": "a4b4ab16bb2c68890c90d18b0148ff1532ebfdd3", "detected_licenses": [ "Apache-2.0" ], "directory_id": "afab28c434b80486496d56c995bae5d77937c656", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <string.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <sys/ipc.h> #include <sys/msg.h> #include <sys/sem.h> #include <sys/shm.h> #include <sys/mman.h> #include <mqueue.h> #include <...
2.484375
2
2024-11-18T21:05:53.522087+00:00
2023-08-13T07:00:15
cf627fd3850c232a964fd76a0b26974077f042b3
{ "blob_id": "cf627fd3850c232a964fd76a0b26974077f042b3", "branch_name": "refs/heads/master", "committer_date": "2023-08-13T07:00:15", "content_id": "2d9447dcb75d2250e42f78fbb7775abd97544235", "detected_licenses": [ "MIT" ], "directory_id": "2266eb133fc3121daf0aa7f4560626b46b94afe0", "extension": "c"...
stackv2
// Room: /d/village/sroad4.c inherit ROOM; void create() { set("short", "碎石路"); set("long", @LONG 这是一个宁静的小村子,稀稀落落的分布着几十间土坯泥房,看来村 中人家不多,而且大都生活很艰辛。这是一条南北向的碎石路,往北就是 村子中心的打谷场了,东面是村里唯一的青砖瓦房。 LONG ); set("exits", ([ /* sizeof() == 3 */ "north" : __DIR__"square", "south" : __D...
2.046875
2
2024-11-18T21:05:53.593266+00:00
2017-08-14T21:05:50
365b4e3b3d7d64eae1c7894f76eddfad1c984a2e
{ "blob_id": "365b4e3b3d7d64eae1c7894f76eddfad1c984a2e", "branch_name": "refs/heads/master", "committer_date": "2017-08-14T21:05:50", "content_id": "1849a28b75505e30eb7d0873fcfd15fa6ac8bf26", "detected_licenses": [ "MIT" ], "directory_id": "5dbd2bdb8a47ead3d6bb5e6c0549fe19a958b4d0", "extension": "h"...
stackv2
//Define Variables we'll be connecting to double Setpoint = 0; double LInput, LOutput, RInput, ROutput; //Define the aggressive and conservative Tuning Parameters double aggKp=5, aggKi=0.2, aggKd=1; //double aggKp=4, aggKi=0.1, aggKd=1; double consKp=1, consKi=0.05, consKd=0.25; //Specify the links and initial tuning...
2.359375
2
2024-11-18T21:05:53.767770+00:00
2016-01-19T10:30:50
6f5163dd8737a528fb9d0d6565cf5c35334fab28
{ "blob_id": "6f5163dd8737a528fb9d0d6565cf5c35334fab28", "branch_name": "refs/heads/master", "committer_date": "2016-01-19T10:30:50", "content_id": "b9380211e77ff39397d0ef6af3785133dff26bd0", "detected_licenses": [ "MIT" ], "directory_id": "9112f07fce0fed12dfaa8149167e6e231650d4fe", "extension": "c"...
stackv2
#include "picviewer.h" struct Icon wndRes[] = { { "close.bmp", 3, 3 } }; Handler wndEvents[] = { h_closeWnd }; PICNODE pic; int isRun = 1; // 压缩图片 void compressPic(int width, int height) { int w0, h0, w1, h1; float fw, fh; int x0, y0, x1, x2, y1, y2; float fx1, fx2, fy1, fy2; int x, y, i...
2.40625
2
2024-11-18T21:05:54.002631+00:00
2019-04-16T16:21:07
e61d008fd2706b6f807f70d3f9c685575c8520df
{ "blob_id": "e61d008fd2706b6f807f70d3f9c685575c8520df", "branch_name": "refs/heads/master", "committer_date": "2019-04-16T16:21:07", "content_id": "b1ca6a27184c1203ba3d76efc58f246745466997", "detected_licenses": [ "MIT" ], "directory_id": "5e3c88e95f4266db079b44b96d198246151f4895", "extension": "h"...
stackv2
#ifndef RSPWN_BRKOUT_MAIN #define RSPWN_BRKOUT_MAIN #include "Menu.h" #include "ScoreBoard.h" #include "CApp.h" #include "Exit.h" #include "Definitions.h" #undef main // Instance Variables // /** * Points to the menu object */ Menu* menuObj = NULL; /** * Points to the menu object */ ScoreBoard* scoreObj = NULL...
2.171875
2
2024-11-18T21:05:54.104615+00:00
2017-10-23T20:21:43
45b23965694b68ea415aa6be45d01f91c5b6f221
{ "blob_id": "45b23965694b68ea415aa6be45d01f91c5b6f221", "branch_name": "refs/heads/master", "committer_date": "2017-10-23T20:21:43", "content_id": "05d976c5cccd24072bd31f3d9fd5a1ea04af9eef", "detected_licenses": [ "Unlicense" ], "directory_id": "7153aec2542434f29ea3df65a81dbef9788b839e", "extension...
stackv2
#include "list.h" #include <malloc.h> #include <assert.h> #include <time.h> #include <stdlib.h> #include <stdbool.h> typedef struct s_node* node; struct s_node { node next; node prev; void* el; }; struct s_list { node sentinel; unsigned size; void (*printElement)(const void*); }; list list_cr...
3.1875
3
2024-11-18T21:05:54.205428+00:00
2020-11-12T21:05:53
df095d1b744c450187ab172ae895b9920413cf0a
{ "blob_id": "df095d1b744c450187ab172ae895b9920413cf0a", "branch_name": "refs/heads/master", "committer_date": "2020-11-12T21:05:53", "content_id": "8c5e12dde696ce1fb234a7b2433ee8873434eefd", "detected_licenses": [ "MIT" ], "directory_id": "bf41d6629faaf34192a159f1e12d50656fbd8d10", "extension": "c"...
stackv2
/*AULA 5 (VETORES) - Exercício 3*/ #include <stdio.h> int main () { float notas[20]; float BUSCAnota; int i; // Variavel de controle int b; // Variavel binaria for (i=0; i<20; i++) { scanf ("%f", &notas[i]); } scanf ("%f", &BUSCAnota); while (BUSCAnota > 0) { b = 0; for (i=0; i<20; i++) { ...
2.796875
3
2024-11-18T21:05:54.306526+00:00
2012-05-23T10:34:30
2de9f14e333c61a93efc41620eb71c1a043bd0bc
{ "blob_id": "2de9f14e333c61a93efc41620eb71c1a043bd0bc", "branch_name": "refs/heads/master", "committer_date": "2012-05-23T10:34:30", "content_id": "b24a08ee82919b9c4131fbb794836c71b8a33520", "detected_licenses": [ "MIT" ], "directory_id": "111e8a7bc571d3702c6143ba47028b49a50031df", "extension": "c"...
stackv2
/* * This file is part of libdom. * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2009 Bo Yang <struggleyb.nku.com> */ #include <assert.h> #include <stdlib.h> #include "html/html_form_element.h" #include "html/html_collection.h" #include "html/ht...
2.328125
2
2024-11-18T21:05:54.450190+00:00
2021-02-08T13:04:39
243775da2687b14dd1baafb2e87b583312bec3bb
{ "blob_id": "243775da2687b14dd1baafb2e87b583312bec3bb", "branch_name": "refs/heads/main", "committer_date": "2021-02-08T13:04:39", "content_id": "7600861e85a7f716b98b706eb7bd026f35b0f6bd", "detected_licenses": [ "MIT" ], "directory_id": "ec3e9b6bf6c4cabec140dcf1be7c414f9f6c4314", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> int main(){ float n1,n2,n3; printf("Digite o 1 valor :"); scanf("%f",&n1); printf("Digite o 2 valor :"); scanf("%f",&n2); printf("Digite o 3 valor :"); scanf("%f",&n3); printf("\nSoma dos quadrados:%.2f\n\n", (n1*n1)+(n2*n2)+(n3*n3)); system("PAUSE"); ret...
2.71875
3
2024-11-18T21:05:54.536091+00:00
2015-06-07T23:30:17
d04ed12e238a5bef08d26bd26cf2d8ea11fdea33
{ "blob_id": "d04ed12e238a5bef08d26bd26cf2d8ea11fdea33", "branch_name": "refs/heads/master", "committer_date": "2015-06-07T23:30:17", "content_id": "92b592a02fd8c8e5d9bbc8d34eb5c9ae07dc40f0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7ba74e6f8ebe9aa22fccefa4f5b77e84a6ea3cf4", "extensio...
stackv2
#include <pebble.h> static Window *window; static Layer *layer; static InverterLayer *invertLayer; static GBitmap *image0; static GBitmap *image1; static GBitmap *image2; static GBitmap *image3; static GBitmap *image4; static GBitmap *image5; static GBitmap *image6; static GBitmap *image7; static GBitmap *image8; st...
2.203125
2
2024-11-18T21:05:54.755264+00:00
2023-08-17T16:08:06
2201517d813e3dc6ef7240a40e7f32646cffb3c6
{ "blob_id": "2201517d813e3dc6ef7240a40e7f32646cffb3c6", "branch_name": "refs/heads/main", "committer_date": "2023-08-17T16:08:06", "content_id": "8fb0998c09ceffb28f4d1b526e637bbcc445bbee", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066", "extensio...
stackv2
#include <petsc/private/dmpleximpl.h> /*I "petscdmplex.h" I*/ #include <petsc/private/dmlabelimpl.h> /*I "petscdmlabel.h" I*/ #include <petscsf.h> static PetscErrorCode DMPlexCellIsHybrid_Internal(DM dm, PetscInt p, PetscBool *isHybrid) { DMPolytopeType ct; PetscFunctionBegin; PetscCall(DMPlexGe...
2.09375
2
2024-11-18T21:05:54.997277+00:00
2017-03-21T23:37:15
a3059528d0e4df6aa228312286d14b74a042dda8
{ "blob_id": "a3059528d0e4df6aa228312286d14b74a042dda8", "branch_name": "refs/heads/master", "committer_date": "2017-03-21T23:37:15", "content_id": "66613720d6af7e48578acc5148a6d8a7f06cf8c7", "detected_licenses": [ "MIT" ], "directory_id": "3ef1c7beca46c31973b65db698e0f6d81fd96121", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "./c_matrix.h" #include "./c_funcs_ispc.h" #ifndef M_PI #define M_PI 3.14159265358979323846 #endif /* *double drand() [> uniform distribution, (0..1] <] *{ * return (rand()+1.0)/(RAND_MAX+1.0); *} * *double random_normal() [> normal distribu...
2.375
2
2024-11-18T21:05:55.211372+00:00
2017-06-14T18:51:14
9de59874ff834b681f780ddc502c3679f12a61d3
{ "blob_id": "9de59874ff834b681f780ddc502c3679f12a61d3", "branch_name": "refs/heads/master", "committer_date": "2017-06-14T18:51:14", "content_id": "e828b4334602ea87e3aa0a64f79734e7a27eae48", "detected_licenses": [ "MIT" ], "directory_id": "80ca2199abe2d464b445e686cce99184125d390e", "extension": "h"...
stackv2
// Defines the ffadata data type // Andrew Cameron, MPIFR, 30/01/2015 #include <stdio.h> #include <stdlib.h> #ifndef FFADATA_H #define FFADATA_H // ***** DATA TYPES ***** typedef double ffadata; // ***** FUNCTION PROTOTYPES ***** // Defines the addition function for the data values ffadata add(ffadata x, ffadata...
2.203125
2
2024-11-18T21:05:55.338373+00:00
2020-08-22T03:01:49
e3f2a20930a028e9790f74047bc57d1f16c942ab
{ "blob_id": "e3f2a20930a028e9790f74047bc57d1f16c942ab", "branch_name": "refs/heads/master", "committer_date": "2020-08-22T03:01:49", "content_id": "0398e7cfc1aaef689549a66cdb35b5759cb3839f", "detected_licenses": [ "MIT" ], "directory_id": "6ee090cf252fd091163da91f9c7c073b10dca8d8", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <iobb.h> void trigger(char tig) // function to trigger ultrasonic { pin_high (8,tig); iolib_delay_ms (1); pin_low (8,tig); } int echo (char ech){ // function to read echo pin of ultrasonic int value; if(is_high(8,ech)) value=1; else value=0; return value; } v...
3.15625
3
2024-11-18T21:05:55.432418+00:00
2019-06-07T14:17:21
d2551d597e6e4a8abc7496319659a71675f68596
{ "blob_id": "d2551d597e6e4a8abc7496319659a71675f68596", "branch_name": "refs/heads/master", "committer_date": "2019-06-07T14:17:21", "content_id": "e42f078c7cbb059bde3de8f1cc002aee41b0f1c5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c5c961d5c88f6b0ee4e8bfa143cca1049c4a6bf8", "extensio...
stackv2
/*! \file mqtt_buf_packet.c * \brief mqtt packet pack&unpack functions * \author Shylock Hg * \date 2018-04-10 * */ #include <assert.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "../inc/mqtt_packet.h" #include "../inc/mqtt_log.h" mqtt_attr_packet_t * mqtt_attr_packet_new(size_t len...
2.484375
2
2024-11-18T21:05:55.857251+00:00
2019-03-05T01:32:40
d4d2eb72bdeff3e2950dd57362b04bdf03b7c3f2
{ "blob_id": "d4d2eb72bdeff3e2950dd57362b04bdf03b7c3f2", "branch_name": "refs/heads/master", "committer_date": "2019-03-05T01:51:51", "content_id": "caf821950c0e5a983b77f98e5510ce16daf06578", "detected_licenses": [ "MIT" ], "directory_id": "3e9e641243e61998a6a0c19a9f28bb98af9fc912", "extension": "c"...
stackv2
/* * memtester version 4 * * Very simple but very effective user-space memory tester. * Originally by Simon Kirby <sim@stormix.com> <sim@neato.org> * Version 2 by Charles Cazabon <charlesc-memtester@pyropus.ca> * Version 3 not publicly released. * Version 4 rewrite: * Copyright (C) 2004-2012 Charles Cazabon <ch...
2.15625
2
2024-11-18T21:05:55.942284+00:00
2017-12-11T07:02:56
0f6c1e09ebcbe239b7fdc250f4cf92f4b08a036a
{ "blob_id": "0f6c1e09ebcbe239b7fdc250f4cf92f4b08a036a", "branch_name": "refs/heads/main", "committer_date": "2017-12-11T07:02:56", "content_id": "8d08ad15ad92a28d0f4d487c30220069ada54b2e", "detected_licenses": [ "MIT" ], "directory_id": "c3becd2e1582131aaa7d9bd2ca5ba05203500148", "extension": "c", ...
stackv2
#include <simple2d.h> #include <time.h> S2D_Window *window; int UNIVERSE_WIDTH = 800; int UNIVERSE_HEIGHT = 600; int GRAVITY_CONTANT = 1; #define BODY_COUNT 200 // max: 709 typedef struct { double mass; double size; double x; double y; double vx; double vy; double dx; double dy; } Body; Body bodies...
2.5
2
2024-11-18T21:05:56.187694+00:00
2018-03-31T08:35:21
eece65a0e5eeab45fd15e305367f6f0f6e2b56b8
{ "blob_id": "eece65a0e5eeab45fd15e305367f6f0f6e2b56b8", "branch_name": "refs/heads/master", "committer_date": "2018-03-31T08:35:21", "content_id": "6dbec3ad98318f45350e700e012c68353fe521aa", "detected_licenses": [ "MIT" ], "directory_id": "04da8da6b93505d0d5e3c3bf591d36070f378400", "extension": "h"...
stackv2
#pragma once typedef void(*DestructFunc)(void*); typedef void*(*DeepCopyElementFunc)(void*); typedef void* ElementType; typedef struct { int size; int capacity; ElementType* elements; DestructFunc destructFunc; int elementSize; } List; /** * Functia returneaza un pointer la un List pe heap, struct aloca...
2.59375
3
2024-11-18T21:05:56.791994+00:00
2021-10-26T16:58:35
49560659c29f0604a5a5e633979e7b40c5173198
{ "blob_id": "49560659c29f0604a5a5e633979e7b40c5173198", "branch_name": "refs/heads/master", "committer_date": "2021-10-26T16:58:35", "content_id": "70012f3aea2e9754adf514811e18b2735e31afba", "detected_licenses": [ "BSD-2-Clause", "Apache-2.0" ], "directory_id": "b7b93d229126414f54aa1c0d449626088d...
stackv2
// #include "nts_api.h" #include <sys/socket.h> #include <sys/types.h> #include <stdio.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <netdb.h> #include <unistd.h> // #include "socket.h" #define SERVER_IP "10.10.88.210" #defin...
2.59375
3
2024-11-18T21:05:57.166737+00:00
2020-01-18T18:22:30
391267a9b1e369b68c14819d107116cf6ca773e0
{ "blob_id": "391267a9b1e369b68c14819d107116cf6ca773e0", "branch_name": "refs/heads/master", "committer_date": "2020-01-18T18:22:30", "content_id": "b078eba5271cd4053a7e5feeb09b99fd572212be", "detected_licenses": [ "MIT" ], "directory_id": "ccd8854699e2f9f0a0da351a1015ee4967d50d31", "extension": "c"...
stackv2
#include "../include/PromptManager.h" #include "../include/CommandManager.h" #include <stdio.h> #include <stdlib.h> void startPrompting() { while (1) { char *input = NULL; size_t n; printf("> "); size_t inputLength = getline(&input, &n, stdin); // Remove the newline ...
2.546875
3
2024-11-18T21:05:57.255448+00:00
2015-03-26T05:34:40
d605839558b126aa6744f7f35711e80838917cdf
{ "blob_id": "d605839558b126aa6744f7f35711e80838917cdf", "branch_name": "refs/heads/master", "committer_date": "2015-03-26T05:34:40", "content_id": "df240a2cfaf99f4f41b7f2b9c67ca88e66b790c3", "detected_licenses": [ "MIT" ], "directory_id": "70d3fdca2b976e9295225e99d4709b244589fba7", "extension": "c"...
stackv2
/***************************************************** This program was produced by the CodeWizardAVR V2.03.8a Evaluation Automatic Program Generator © Copyright 1998-2008 Pavel Haiduc, HP InfoTech s.r.l. http://www.hpinfotech.com Project : Version : Date : 1/18/2009 Author : Freeware, for evaluation and non-com...
2.140625
2
2024-11-18T21:05:57.316860+00:00
2023-02-28T14:12:08
f26f720efce7c4294d656af89119db90b98872c2
{ "blob_id": "f26f720efce7c4294d656af89119db90b98872c2", "branch_name": "refs/heads/v3", "committer_date": "2023-02-28T15:16:34", "content_id": "b1700c1a62c0ea55dd9289808233e7d05bcb10b9", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "e5f85801ed984977df25aecb3a7d65d3d37c98f7", "e...
stackv2
#include <stdio.h> #include <stdarg.h> #include <math.h> double geometric_mean(size_t count, ...) { va_list nums; double product = 1.0; va_start(nums, count); for(size_t i = 0; i < count; i++) { product *= va_arg(nums, double); } va_end(nums); return pow(product, 1.0/count); } i...
3
3
2024-11-18T21:05:57.501719+00:00
2023-06-17T17:46:23
d66b585bf8d0fa0c2dd030df4bd0d6a04020fc7a
{ "blob_id": "d66b585bf8d0fa0c2dd030df4bd0d6a04020fc7a", "branch_name": "refs/heads/master", "committer_date": "2023-07-11T12:25:31", "content_id": "84c0e3a78122904fd23961ddb1bc16b08e96b8bd", "detected_licenses": [ "Unlicense" ], "directory_id": "01ace0f357a25a895df67b2fe60020a9e9713766", "extension...
stackv2
#include "libduv/fake_stream.h" #include "libcitm/libcitm.h" #include "libcitm/fake_citm.h" #include "test/test_utils.h" typedef struct { size_t *count; derr_t *e; dstr_t *user; link_t *servers; link_t *clients; keydir_i **kd; imap_client_t **xc; } ptrs_t; static void cb( void *data, ...
2.15625
2
2024-11-18T21:05:58.132743+00:00
2022-10-15T23:51:42
9cbd5f70474a4e6a1b0337a4702799b6ad1d06ae
{ "blob_id": "9cbd5f70474a4e6a1b0337a4702799b6ad1d06ae", "branch_name": "refs/heads/devel", "committer_date": "2022-10-15T23:51:42", "content_id": "d24b114892bff891265627a8f72e92484b173a0e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c7450e719c6fd9ea0513ea3e505562b21e53bcc2", "extension...
stackv2
/** * FreeRDP: A Remote Desktop Protocol client. * Dynamic Virtual Channel Manager * * Copyright 2010-2011 Vic Lee * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www...
2.0625
2
2024-11-18T21:05:58.198011+00:00
2023-07-23T07:12:24
3fbbe14066a11731abec7ec70a1660875fadf5ea
{ "blob_id": "3fbbe14066a11731abec7ec70a1660875fadf5ea", "branch_name": "refs/heads/master", "committer_date": "2023-07-23T07:12:24", "content_id": "3db076ef13ab01668a6f0ba4a42c02b04aa186bf", "detected_licenses": [ "MIT" ], "directory_id": "b970e053302588f44ee1c6b7187c4769934c857f", "extension": "js...
stackv2
/** * @module ol/geom/flat/segments */ /** * This function calls `callback` for each segment of the flat coordinates * array. If the callback returns a truthy value the function returns that * value immediately. Otherwise the function returns `false`. * @param {Array.<number>} flatCoordinates Flat coordinates. ...
2.765625
3
2024-11-18T21:05:58.278714+00:00
2018-02-13T20:18:19
9935a1f1b6ec3cb7fad433d0451fc0d54b429ffb
{ "blob_id": "9935a1f1b6ec3cb7fad433d0451fc0d54b429ffb", "branch_name": "refs/heads/master", "committer_date": "2018-02-13T20:18:19", "content_id": "9ef6f1232a8e7586d671f283b09b95aad1b2322b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c9225166490e448c0b18845c90de4c53fdba5725", "extens...
stackv2
/* Copyright (c) 2017, Piotr Durlej * 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 notice, * this list of conditions a...
2.09375
2
2024-11-18T21:05:58.381339+00:00
2019-07-24T11:22:17
b0f5913f24110fc42d99a03c041d2bdc966de9b6
{ "blob_id": "b0f5913f24110fc42d99a03c041d2bdc966de9b6", "branch_name": "refs/heads/master", "committer_date": "2019-07-24T11:22:17", "content_id": "75ed7327dd9e9f178ba1b6c04abb402da3b8514e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fc11300b2cc9b96a4e70c60629c080da95da25bc", "extensio...
stackv2
/* * AVR I2C implementation. * * @author Michel Megens * @email dev@bietje.net */ #include "avri2c.h" #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <lwiot.h> #include <avr/io.h> #include <avr/interrupt.h> #include <util/twi.h> #define F_SCL 100000UL // SCL frequency #define Prescaler 1...
2.625
3
2024-11-18T21:05:58.747474+00:00
2016-05-13T18:27:20
b814118a0af26a51b718084000320ecf91921602
{ "blob_id": "b814118a0af26a51b718084000320ecf91921602", "branch_name": "refs/heads/master", "committer_date": "2016-05-13T18:27:20", "content_id": "7206f446a190f1c1dcf5dcbdc5e451ed865e69cd", "detected_licenses": [ "MIT" ], "directory_id": "79d8fcfd1fdff1177ea94ee6984103c6998f6dbc", "extension": "c"...
stackv2
/** * Algorithm homework #3 * * "Dijkstra algorithm" * - on an undirected weighted graph with 200 vertices labeled 1 to 200 * - run Dijkstra's shortest-path algorithm on this graph, using 1 (the first * vertex) as the source vertex, and to compute the shortest-path distances * between 1 and every other verte...
3.296875
3
2024-11-18T21:05:59.020249+00:00
2015-12-08T23:30:35
e7139a3e4254e0d1b9ae37554e13373b99f8cfa9
{ "blob_id": "e7139a3e4254e0d1b9ae37554e13373b99f8cfa9", "branch_name": "refs/heads/master", "committer_date": "2015-12-08T23:30:35", "content_id": "0ac60c2100657b24033a6f7b2035b53b0a2df8ef", "detected_licenses": [ "MIT" ], "directory_id": "127e5f66829ed85daafed455b29945233733437d", "extension": "h"...
stackv2
#ifndef LISTA_H_INCLUDED #define LISTA_H_INCLUDED #include <stdlib.h> #define ERRO_ALOCACAO -1 #define ERRO_LISTA_VAZIA -2 #define ERRO_POSICAO_INVALIDA -3 #define ERRO_ELEMENTO_NAO_ENCONTRADO -4 typedef struct elemento { void *info; struct elemento *proximo; } Elemento; typedef struct { size_t tamInfo;...
2.3125
2
2024-11-18T21:05:59.460020+00:00
2022-04-14T06:16:29
721a5ddc5b05a6315b22b5d1d2a0317272626c18
{ "blob_id": "721a5ddc5b05a6315b22b5d1d2a0317272626c18", "branch_name": "refs/heads/master", "committer_date": "2022-04-14T06:54:02", "content_id": "e27861f8baeff1ec9890f9ea283478c38a9e51a8", "detected_licenses": [ "MIT" ], "directory_id": "b3ccb28a7bfc32da454e321058948fa78a40207e", "extension": "c"...
stackv2
//* testing TIMER1 interrupt with software generated PWM - main.c * #include "bios_timer_int.h" #include <stdint.h> #include <avr/interrupt.h> #include "soft_pwm.h" #include "bios_led8.h" #include "bios_key4.h" //------------------------------------------------------------------------------------ // Global constant(...
3.03125
3
2024-11-18T21:05:59.653060+00:00
2021-06-01T22:04:52
226a5b6918ea428bf519fb09fc57f0bd13180507
{ "blob_id": "226a5b6918ea428bf519fb09fc57f0bd13180507", "branch_name": "refs/heads/main", "committer_date": "2021-06-01T22:04:52", "content_id": "af70772933454ce734d15ca7442895b03def80d2", "detected_licenses": [ "MIT" ], "directory_id": "54e567b81ba3acb4b28767c94a49f96d22d1fd2c", "extension": "h", ...
stackv2
#ifndef SELECTION_SORT_H #define SELECTION_SORT_H #include "utils.h" void selectionSort(double *arr, int size) { int i, j, min_index; for (i = 0; i < size - 1; i++) { min_index = i; for (j = i + 1; j < size; j++) { if (arr[min_index] > arr[j]) { min_index = j; ...
2.5625
3
2024-11-18T21:06:00.188422+00:00
2014-11-04T23:15:22
9de5d0cf3143f542c583e8f02c17e73b5197304c
{ "blob_id": "9de5d0cf3143f542c583e8f02c17e73b5197304c", "branch_name": "refs/heads/master", "committer_date": "2014-11-04T23:15:22", "content_id": "ed3857108ac03a5a8f514e52e3012949b12b0c7f", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "70214efa2467f6c567b805dc923c0d288bf92733", "extens...
stackv2
/* Defines the internal data structures for the X-windows implementation of the graphics functionality in PETSc. */ #if !defined(_XIMPL_H) #define _XIMPL_H #include <petsc-private/drawimpl.h> #include <X11/Xlib.h> #include <X11/Xutil.h> typedef unsigned long PetscDrawXiPixVal; typedef struct { GC ...
2.15625
2
2024-11-18T21:06:00.485264+00:00
2021-06-11T15:43:08
f1d516c74158a3b4fd5b5303ab733a3620f4b859
{ "blob_id": "f1d516c74158a3b4fd5b5303ab733a3620f4b859", "branch_name": "refs/heads/master", "committer_date": "2021-06-11T15:43:08", "content_id": "7cd6b3672be5393062a992e6f4713a3f17b86199", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "14fd126ff68624b66daf64fc251a633244593ab1", "extens...
stackv2
#ifndef COSMOSIS_DATABLOCK_STATUS_H #define COSMOSIS_DATABLOCK_STATUS_H #ifdef __cplusplus extern "C" { #endif /* DATABLOCK_STATUS is type of the status codes returned by the C datablock interface functions that return status codes. In all cases the user can rely upon 0 indicating success, and nonzero indicatin...
2.03125
2
2024-11-18T21:06:00.692276+00:00
2019-05-20T22:34:54
665b0210eafcbadf1e91d8cbe0132dfc6740af36
{ "blob_id": "665b0210eafcbadf1e91d8cbe0132dfc6740af36", "branch_name": "refs/heads/master", "committer_date": "2019-05-20T22:34:54", "content_id": "13c41040a30ab230fa467201d5c809af489bd75f", "detected_licenses": [ "MIT", "BSD-3-Clause-Clear" ], "directory_id": "61d6b0216e61fb0fab6687dfaddd090f936...
stackv2
/** * Defines the most basic events */ #ifndef ROBOTIC_FRAMEWORK_EVENTS_H #define ROBOTIC_FRAMEWORK_EVENTS_H #include <stdint.h> #include <stddef.h> /** * This is a structure defining the most basic * event as part of Robotic Framework. Each event * is constructed dynamically during the program * and is dispatc...
2.578125
3
2024-11-18T21:06:00.761478+00:00
2019-11-22T08:27:45
1c087676d940528b2057f9bc0d96d2cecb600604
{ "blob_id": "1c087676d940528b2057f9bc0d96d2cecb600604", "branch_name": "refs/heads/master", "committer_date": "2019-11-22T08:27:45", "content_id": "aa88f2b7262a8741585a14c7c36854089fc5db82", "detected_licenses": [ "MIT" ], "directory_id": "f5fe4950db8d0a3b7ec7cc5a579456a61fd05b1d", "extension": "h"...
stackv2
/** * cmc_string.h * * Creation Date: 17/07/2019 * * Authors: * Leonardo Vencovsky (https://github.com/LeoVen) * */ /* A very simple fixed size string used by all collections' method to_string */ #ifndef CMC_STRING_H #define CMC_STRING_H #include <inttypes.h> #include <stddef.h> static const size_t cmc_stri...
2.109375
2
2024-11-18T21:06:01.522925+00:00
2016-03-29T01:48:34
9d1903f1c611a9984956ca618328615fbe243a03
{ "blob_id": "9d1903f1c611a9984956ca618328615fbe243a03", "branch_name": "refs/heads/master", "committer_date": "2016-03-29T01:48:34", "content_id": "3586927a80a88aa5811ed06db2a9cc9aa5a3a5c8", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c98c0a9ac874d1fe014e8541467db988ee67104d", "extens...
stackv2
#include <err.h> #include <fcntl.h> #include <limits.h> #include <string.h> #include <stdlib.h> #include <sys/nv.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> int setup_client_socket() { char statedir[PATH_MAX]; struct sockaddr_un sock; int len, fd; sock.sun_family = AF_LOCAL; len = snpri...
2.46875
2
2024-11-18T21:06:01.613959+00:00
2016-06-06T01:51:28
6bc332f5e64b203e603a21151eff087073be55a4
{ "blob_id": "6bc332f5e64b203e603a21151eff087073be55a4", "branch_name": "refs/heads/master", "committer_date": "2016-06-06T01:51:28", "content_id": "ad7ff18fa59e5eaaac1a40ad154fb99b1b390a92", "detected_licenses": [ "MIT" ], "directory_id": "73d7a0f5643e0a552b79ac6c2cadd377c6451111", "extension": "c"...
stackv2
#include "os_type.h" #include "gpio.h" #include "osapi.h" #include "user_interface.h" #include "espmissingincludes.h" #include "ip_addr.h" #include "espconn.h" #include "platform.h" #include "espfs.h" #include "httpd.h" #include "httpdespfs.h" #include "webpages-espfs.h" #include "ssdp.h" static struct espconn avrConn...
2.1875
2
2024-11-18T21:06:01.699730+00:00
2019-12-13T15:32:46
99e022b8a353ae9fc489d70924892f847930b410
{ "blob_id": "99e022b8a353ae9fc489d70924892f847930b410", "branch_name": "refs/heads/master", "committer_date": "2019-12-13T15:32:46", "content_id": "a6b0899a4b6087faf2ff63655af07b7e33845225", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1b24cddf7b92f5e7c2c066ea3aabd63d2868b3f6", "extensio...
stackv2
#include "mish_core.h" #include "parson.h" static output_cohort cohorts[MISHEGOS_COHORT_NSLOTS]; void cohorts_init() { // NOTE(ww): We don't need to call this with each cohort dump, // so just put it here. json_set_escape_slashes(0); uint32_t nworkers = GET_CONFIG()->nworkers; for (int i = 0; i < MISHEGOS_...
2.734375
3
2024-11-18T21:06:01.843559+00:00
2018-01-31T11:13:33
0c7527eeb532626c36baa4054a8923c17e5d9430
{ "blob_id": "0c7527eeb532626c36baa4054a8923c17e5d9430", "branch_name": "refs/heads/master", "committer_date": "2018-01-31T11:13:33", "content_id": "f3381a3ec26f18fe6ff28da6683be0dc864d7aec", "detected_licenses": [ "MIT" ], "directory_id": "07e41b8827d63efcd70e2eb4a5becac0c87bbde2", "extension": "h"...
stackv2
#include <stdio.h> typedef LONG (WINAPI *NtUnmapViewOfSection) (HANDLE ProcessHandle, PVOID BaseAddress); void newRunPE(LPSTR szFilePath, LPCTSTR desiredCurrentDirectory, PVOID pFile, LPTSTR commandLine) { PIMAGE_DOS_HEADER IDH; // DOS .EXE header PIMAGE_NT_HEADERS INH; // NT .EXE header PIMAGE_SECTION_HEAD...
2.375
2
2024-11-18T21:06:02.092015+00:00
2018-07-14T22:34:33
abf37699fb39459efe5af38fe643ac4ea68085f3
{ "blob_id": "abf37699fb39459efe5af38fe643ac4ea68085f3", "branch_name": "refs/heads/master", "committer_date": "2018-07-14T22:34:33", "content_id": "c5c9bb8edaee6d59d17982f51cd3fde6baa3aeae", "detected_licenses": [ "MIT" ], "directory_id": "bed63a3e626c43c4dab1630b0cc86f6f0b12b059", "extension": "c"...
stackv2
#include <math.h> #include "TRPO.h" // Utility function calculating the number of trainable parameters size_t NumParamsCalc (size_t * LayerSize, size_t NumLayers) { size_t NumParams = 0; for (size_t i=0; i<NumLayers-1; ++i) { // Weight and Bias NumParams += LayerSize[i] * LayerSize[i+1] ...
2.1875
2
2024-11-18T21:06:02.155133+00:00
2021-10-21T15:26:57
9565410d1c50c433d37bfaa207a581375fc92569
{ "blob_id": "9565410d1c50c433d37bfaa207a581375fc92569", "branch_name": "refs/heads/master", "committer_date": "2021-10-21T15:26:57", "content_id": "ded26349713d3ea8052a1bc49150db33460f637e", "detected_licenses": [ "0BSD" ], "directory_id": "bcc1e3cd07b83b2e950bd9a1de03ba11fd568c21", "extension": "h...
stackv2
// // move_cursor.inc: moves hardware cursor to new row/col // assuming VGA txt mode 03 - 80x25 characters, 16 colors // Parms: // input 1: col to move to // input 2: row to move to #pragma once #define FONT_ADDRESS 0xA000 #define FONT_WIDTH 0xA000 #define FONT_HEIGHT (FONT_WIDTH+1) void move_cursor(uint1...
2.9375
3
2024-11-18T21:06:02.259860+00:00
2018-06-24T16:27:48
83b0c44a15abb50a6ce0a8de933fbefa4a24c358
{ "blob_id": "83b0c44a15abb50a6ce0a8de933fbefa4a24c358", "branch_name": "refs/heads/master", "committer_date": "2018-06-24T16:27:48", "content_id": "9e9b3cdab00fa1021e7f3f3ef43accb936cf0a5c", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "052a92030632a87caf7d31f2697efa61a8503e4a", "extens...
stackv2
#include <process.h> #include <scheduler.h> #include <threads.h> static int nextPid = 1; process_t * createProcess(void * entryPoint, int argc, char * argv[], char * name) { size_t length = strlen(name); process_t * process = allocateMemory(sizeof(process_t)); process->pid = nextPid++; process->ppid = getpid...
2.8125
3
2024-11-18T21:06:02.467890+00:00
2019-12-24T03:29:14
a9776a038c97c337bb98d622d64c1d45567d0d83
{ "blob_id": "a9776a038c97c337bb98d622d64c1d45567d0d83", "branch_name": "refs/heads/master", "committer_date": "2019-12-24T03:29:14", "content_id": "703754caec3aef27e859cf0465d088fd9b7f8b08", "detected_licenses": [ "MIT" ], "directory_id": "23d891399a44b293ea232cd023fd4861c35050fc", "extension": "c"...
stackv2
/* * This file is part of the micropython-ulab project, * * https://github.com/v923z/micropython-ulab * * The MIT License (MIT) * * Copyright (c) 2019 Zoltán Vörös */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include "py/runtime.h" #include "py/binary.h" #include "py/obj.h" #include "py/obj...
2.46875
2
2024-11-18T21:06:02.943141+00:00
2023-06-14T13:20:32
33141614c698d513219a5769b383752eee6ee148
{ "blob_id": "33141614c698d513219a5769b383752eee6ee148", "branch_name": "refs/heads/master", "committer_date": "2023-06-14T13:20:32", "content_id": "977c2fa2d5e4890b0956b8654843c8e5c89aa375", "detected_licenses": [ "ISC" ], "directory_id": "6c8486a6610d80507a356103dbe359f51dd6312e", "extension": "c"...
stackv2
/* ISC license. */ #include <stdint.h> #include <stdlib.h> #include <errno.h> #include <skalibs/types.h> #include <skalibs/buffer.h> #include <skalibs/strerr.h> #include <skalibs/sgetopt.h> #include <skalibs/tai.h> #include <skalibs/stralloc.h> #include <skalibs/genalloc.h> #include <nsss/nsssd.h> #include <nsss/nss...
2.140625
2
2024-11-18T21:06:03.132265+00:00
2016-01-14T20:55:42
c231ebeadd653efbc1c2b2e58d36fac70161fc80
{ "blob_id": "c231ebeadd653efbc1c2b2e58d36fac70161fc80", "branch_name": "refs/heads/master", "committer_date": "2016-01-14T20:55:42", "content_id": "43a6d1f38416025cbe5801339f13f4fa06dd151c", "detected_licenses": [ "MIT" ], "directory_id": "a1f35e9771909ac47ee908081a06b41e5d8a7bdd", "extension": "h"...
stackv2
// Imp is a uni-typed/duck-typed language. Everything is // an object, and objects are nothing more than // collections of nested objects (and internal data, in // some cases). // // Objects are collections of slots, essentially, slots // being key-value pairs. // // There are three types of slots: // 1. regular ...
2.015625
2
2024-11-18T21:06:03.254140+00:00
2017-05-18T13:44:46
b570f9e5092f89579ebaffd09573b57d24cd7094
{ "blob_id": "b570f9e5092f89579ebaffd09573b57d24cd7094", "branch_name": "refs/heads/master", "committer_date": "2017-05-18T13:44:46", "content_id": "0947e3a58147c7b2d2675258dfde0efadbe4912f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "dab8ccd3911efa09c8e8ee3ad2ca305765e85c8c", "extensio...
stackv2
#include "LKH.h" /* * The SymmetrizeCandidateSet function complement the candidate set such * that every candidate edge is associated with both its two end nodes. */ void SymmetrizeCandidateSet() { Node *From, *To; Candidate *NFrom; From = FirstNode; do { for (NFrom = From->CandidateSet;...
2.390625
2
2024-11-18T21:06:03.321927+00:00
2021-11-23T20:45:44
88b96efc50769f4f52fa5cb1350b1172752e81d8
{ "blob_id": "88b96efc50769f4f52fa5cb1350b1172752e81d8", "branch_name": "refs/heads/master", "committer_date": "2021-11-23T20:45:44", "content_id": "508d880fe73681023d9caf45f20d2aa06549a3f1", "detected_licenses": [ "MIT" ], "directory_id": "d6bda5b212245acf83e55d08b48e673eafb92333", "extension": "c"...
stackv2
#include "tdc_control.h" #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> void write_raw_event(int fd, int channel, int timestamp, unsigned char sample) { unsigned char data[5] = { 0x80 | ((channel&0x7)<<4) | (sample>>4), 0x00 | (( sample&0xf)<<3) | ((timestamp>>2...
2.5
2
2024-11-18T21:06:07.140041+00:00
2023-07-19T02:42:12
03eefee3d89eb6b1ad9e025e3acb3820e803ee65
{ "blob_id": "03eefee3d89eb6b1ad9e025e3acb3820e803ee65", "branch_name": "refs/heads/master", "committer_date": "2023-07-19T02:42:12", "content_id": "513a30de90d96c15759a3503246fa6f10e6386df", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3ac08f55efef77a3b6fb8df086793462bc03cb56", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include "libfreenect.h" #include "libfreenect_sync.h" FILE *open_dump(const char *filename) { FILE* fp = fopen(filename, "w"); if (fp == NULL) { fprintf(stderr, "Error: Cannot open file [%s]\n", filename); exit(1); } printf("%s\n", filename); return fp; } void dump_de...
2.421875
2
2024-11-18T21:06:07.669056+00:00
2015-08-20T22:21:19
ffbf9e671496afe0ffd4704ade23a30462e7d982
{ "blob_id": "ffbf9e671496afe0ffd4704ade23a30462e7d982", "branch_name": "refs/heads/master", "committer_date": "2015-08-20T22:21:19", "content_id": "bba6d8fe1fb335fb3ac4c8f217f38c6af1e01379", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "76819d7ec89b0d59cc54c0e554ed176f6668ffa2", "extens...
stackv2
/* * sophia database * sphia.org * * Copyright (c) Dmitry Simonenko * BSD License */ #include <sophia.h> #include <libss.h> #include <libsf.h> #include <libsr.h> #include <libsv.h> #include <libso.h> #include <libst.h> static void ss_zstdfilter_compress_decompress(void) { char text[] = "The Early English Text...
2
2
2024-11-18T21:06:07.852590+00:00
2021-05-27T07:28:37
4d9ad0652899bce30d8accc80aa90ff128f2b728
{ "blob_id": "4d9ad0652899bce30d8accc80aa90ff128f2b728", "branch_name": "refs/heads/master", "committer_date": "2021-05-27T07:28:37", "content_id": "a56c8a9d3ef2481b9040ce6b2fa43af49ea1ba60", "detected_licenses": [ "MIT" ], "directory_id": "ad869d0e1353009d2fdc5b5541aee958da9f09a3", "extension": "c"...
stackv2
/** * Copyright (C) 2013-2015 * * @author jxfengzi@gmail.com * @date 2013-11-19 * * @file JsonBoolean.c * * @remark * */ #include <tiny_malloc.h> #include <tiny_log.h> #include "JsonBoolean.h" #define TAG "JsonBoolean" JsonBoolean * JsonBoolean_New(bool value) { JsonBoolean *thiz = NULL; do ...
2.3125
2
2024-11-18T21:06:08.279442+00:00
2019-02-13T14:21:46
fe550aa9cd20c7b7eeab71ae64969ad3a582bef7
{ "blob_id": "fe550aa9cd20c7b7eeab71ae64969ad3a582bef7", "branch_name": "refs/heads/master", "committer_date": "2019-02-13T14:21:46", "content_id": "4d3a76b79ed0d10f2633d1ce59f6c3d41704ad61", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "474acfcc41fc7ad6bdff11cc26116afac1cdffb6", "extens...
stackv2
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <limits.h> #include <string.h> #include <time.h> #include <stdint.h> #include "iqclass.h" #include "mpzutil.h" #include "torcosts.h" #include "tecurve.h" #include "findcurve.h" #include "pickprimes.h" #include "bitmap.h" #include "cstd.h" /* Copyrig...
2.015625
2
2024-11-18T21:06:08.579574+00:00
2018-06-26T12:41:12
860488ae1047ecd40a00f70edb7a4e3554e2289f
{ "blob_id": "860488ae1047ecd40a00f70edb7a4e3554e2289f", "branch_name": "refs/heads/master", "committer_date": "2018-06-26T12:50:04", "content_id": "edd75f7e925aa39f44bf2a4b290aca84387d1aba", "detected_licenses": [ "MIT" ], "directory_id": "87e41ce8114dffe64ce4bdfca72ae7fea4ce7d7d", "extension": "c"...
stackv2
/** * @file ParseCmdDefs.c */ #include <bolib.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #if isWindows # include <windows.h> # include <tchar.h> #endif #include <ctype.h> #include <assert.h> #include "common/Observer.h" #include "common/puts.h" #include "common/Funex.h" typedef struct _RomFile Ro...
2.34375
2
2024-11-18T21:06:08.638532+00:00
2017-03-09T09:14:17
3a808c0d6438a18cbc6b29ecf5356589ffe7d5d9
{ "blob_id": "3a808c0d6438a18cbc6b29ecf5356589ffe7d5d9", "branch_name": "refs/heads/master", "committer_date": "2017-03-09T09:14:17", "content_id": "65f721bda446bd2abbe78bf6a19a89f37fa366f9", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "84aa8c9b1dbb4139771f3383f85c2274bf57f6c3", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sys/types.h> #include <magick/api.h> #include <getopt.h> typedef struct { int verbose; int width; int height; int x; int y; int dx; int dy; int rows; int cols; char** argv; } config_t; typedef struct { Image *...
2.578125
3
2024-11-18T21:06:08.697332+00:00
2016-07-31T00:09:39
1f3c440f51718e49bdbd9bc7c9b9fddf22940856
{ "blob_id": "1f3c440f51718e49bdbd9bc7c9b9fddf22940856", "branch_name": "refs/heads/master", "committer_date": "2016-07-31T00:09:39", "content_id": "dcf202d3d0a33449d70562ba64e05daa4dedf841", "detected_licenses": [ "MIT" ], "directory_id": "e4ebe115cdc36af922f32fdeb0636ecf1b066100", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include "hashList.h" /* Author: Emmanuel Odeke <odeke@ualberta.ca> Theory for pseudo random generation obtained from: http://www.math.utah.edu/~pa/Random/Random.html Given p1, p2, N(limit), and x0 Recurrance formula: xN+1 = (x0*p1) + p2 (mod N) */ Element...
3.265625
3
2024-11-18T21:06:09.140881+00:00
2017-03-11T19:27:25
33e7c76036e669e464afb1021aea3e1bfc86ca89
{ "blob_id": "33e7c76036e669e464afb1021aea3e1bfc86ca89", "branch_name": "refs/heads/master", "committer_date": "2017-03-11T19:27:25", "content_id": "f26f41778fa6eff18ac78f4a5da83159911d92e2", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "96d4d69c50fa992e19ba6355bdee103db23324f8", "extens...
stackv2
/** * Utils for working with a text */ /* char str[] = "regcomp() is supplied with preg, a pointer to a pattern buffer storage area; regex, a pointer to the null-terminated string and cflags, flags used to determine the type of compilation."; putd(getCountWords(str)); */ // Idea: word cloud #ifndef __TE...
2.78125
3
2024-11-18T21:06:09.301709+00:00
2016-08-10T23:21:41
dc8c6b8bebaf86746f16a46254e38de9d36f7435
{ "blob_id": "dc8c6b8bebaf86746f16a46254e38de9d36f7435", "branch_name": "refs/heads/master", "committer_date": "2016-08-10T23:21:41", "content_id": "1d641d05f5b69a9f6f5bd305469a16738e7c05fa", "detected_licenses": [ "MIT" ], "directory_id": "979920f2cb57a308df187018771d025cab432d62", "extension": "c"...
stackv2
/** @file forth.c * @brief A version of the libforth interpreter that is does * no memory allocations, which can be used as a starting * point to porting to more esoteric platforms. * @author Richard James Howe. * @copyright Copyright 2016 Richard James Howe. * @licen...
2.265625
2
2024-11-18T21:06:09.605574+00:00
2023-06-25T14:52:43
b1d6fd175ae5c6d048aef1f605f91c560b3fb37d
{ "blob_id": "b1d6fd175ae5c6d048aef1f605f91c560b3fb37d", "branch_name": "refs/heads/master", "committer_date": "2023-06-25T14:52:43", "content_id": "04eddf79c243bacbee2b2935c0fd001edc9fddfe", "detected_licenses": [ "MIT" ], "directory_id": "e66eef8583f128f93f92c20420b842c9d113adde", "extension": "c"...
stackv2
// FreeTypeParser.cpp : définit le point d'entrée pour l'application console. // #ifdef WIN32 #endif #include <ft2build.h> #include <freetype/freetype.h> #include FT_FREETYPE_H #include "service.h" FT_Library library; FT_Face face; extern "C" { #ifdef WIN32 __declspec(dllexport) #endif int getSymbols(maps*& conf...
2.328125
2
2024-11-18T21:06:09.716638+00:00
2021-11-06T03:40:02
738eda259731b872e96ae097663e451df40825cc
{ "blob_id": "738eda259731b872e96ae097663e451df40825cc", "branch_name": "refs/heads/master", "committer_date": "2021-11-06T03:40:02", "content_id": "515662b8747786cf6047a561bda4d32aab0ea2c0", "detected_licenses": [ "MIT" ], "directory_id": "825800c74893c32bf39d7aab7e662963bd4cff98", "extension": "c"...
stackv2
#include <stdio.h> int main() { int n,fant=0,fatual=1,fprox,contador=1; printf("Digite o numero:"); scanf("%d", &n); if (n < 2) { printf("%d", n); } else while (contador < n) { fprox = fatual + fant; fant = fatual; fatual = fprox; contador = contador + 1; } printf("O numero fibonac...
3.15625
3
2024-11-18T21:06:10.547757+00:00
2023-07-29T21:54:06
67149ac87a5c5549fc11a1a1c77ef519f56568f5
{ "blob_id": "67149ac87a5c5549fc11a1a1c77ef519f56568f5", "branch_name": "refs/heads/master", "committer_date": "2023-07-29T21:54:06", "content_id": "4a31ed609370b59ed484c49772c1bd18b896b45b", "detected_licenses": [ "MIT" ], "directory_id": "84e97d818876d20fab9591ff9d88129acfcc4295", "extension": "c"...
stackv2
/* * system.c * Copyright (C) 2012 xent * Project is distributed under the terms of the MIT License */ #include <halm/platform/lpc/lpc43xx/system_defs.h> #include <halm/platform/lpc/system.h> /*----------------------------------------------------------------------------*/ static LPC_CCU_BRANCH_Type *calcBranchReg(...
2.4375
2
2024-11-18T21:06:12.129383+00:00
2021-09-30T13:06:23
2415cfe86bf6fc787a8f455a52febbacac3d58f7
{ "blob_id": "2415cfe86bf6fc787a8f455a52febbacac3d58f7", "branch_name": "refs/heads/master", "committer_date": "2021-09-30T13:06:23", "content_id": "6f5b67c7912fbab9af33d4a3ebd3f24944b5c04e", "detected_licenses": [ "MIT" ], "directory_id": "f673d8de788484896af9108937461e85ef09ce29", "extension": "c"...
stackv2
#include <stdio.h> #include "stack_1.h" int main(void){ stack_1 stack_test; // We have one stack named: stack_test. int status; // Overflow or underflow. type_s save; // So as to take a value from stack. start_stack(&stack_test); // Begin from empty stack. push(&stack_test,50,&status); ...
2.703125
3
2024-11-18T21:06:12.384770+00:00
2019-03-05T15:21:20
4f1c2d6418bb17f0c35ba64b86bc7e2a135691a8
{ "blob_id": "4f1c2d6418bb17f0c35ba64b86bc7e2a135691a8", "branch_name": "refs/heads/master", "committer_date": "2019-03-05T15:21:20", "content_id": "dbf4d1ee27eda98c1e4d6b0bb8431034a8d4ade8", "detected_licenses": [ "MIT" ], "directory_id": "808f6f1207652d9985934ed4cb9802e941569979", "extension": "h"...
stackv2
#if !defined( ZURAPCE_FILE_PACK_H ) #define ZURAPCE_FILE_PACK_H /** @file ファイルパック 関連. P/ECE 開発環境付属の FilePack.exe で生成したパックデータからファイルを抽出します。 @author zurachu */ #include <piece.h> // FILEACC /// パックファイル読み込みハンドル struct FilePackHandle { FILEACC file_acc; ///< ファイル構造体 int file_amount; ///< ファイル数 /** 16bit CRC. ファ...
2.03125
2
2024-11-18T21:06:12.576636+00:00
2019-02-17T22:30:07
7586c1d5c6836204a401c2d61499ebfc9e38ac68
{ "blob_id": "7586c1d5c6836204a401c2d61499ebfc9e38ac68", "branch_name": "refs/heads/master", "committer_date": "2019-02-17T22:30:07", "content_id": "ed71c5de143030adb868058c2933a6ebc5aba668", "detected_licenses": [ "MIT" ], "directory_id": "c6501dc2148f52aed380eaeb30a69fc3f2e1d611", "extension": "c"...
stackv2
/* Practica 1: FizzBuzz Autor: Espinosa Curiel Oscar */ #include <stdio.h> int main(){ int i; for(i = 30; i > 0; i--) //Utilizo operadores tenarios anidados para la impresion //correspondiente printf((i%15==0)?"FizzBuzz\n":(i%5==0)?"Buzz\n":(i%3==0)?"Fizz\n":"%d\n",i); return 0; }
3.109375
3
2024-11-18T21:06:12.980446+00:00
2014-08-04T21:06:38
101f49e80f30ad1fd4c283e19d0c843c82d7affd
{ "blob_id": "101f49e80f30ad1fd4c283e19d0c843c82d7affd", "branch_name": "refs/heads/master", "committer_date": "2014-08-04T21:06:38", "content_id": "d891b1d2592f9630e5ff7579f4fb49dc75ac8076", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "b595051064323b19ddd91597fd240ff9fcd5daed", "extens...
stackv2
/* joining of transimg layers into a HxWx3 uint8 image + HxW double alpha map FORMAT: [j, a] = joinlayers(tio, l [, o]) Input fields: tio 1x1 struct of transimg content l layer spec (numbers) o override flag (default: false) Output fields: j HxWx...
2.015625
2
2024-11-18T21:06:13.661725+00:00
2016-05-18T14:27:10
820b0b1715fc378ce6d6367f1e4c580c6b3ed640
{ "blob_id": "820b0b1715fc378ce6d6367f1e4c580c6b3ed640", "branch_name": "refs/heads/master", "committer_date": "2016-05-18T14:27:10", "content_id": "ece8b34ed4c360720997e40bb5ae39ef5a4413c0", "detected_licenses": [ "CC0-1.0" ], "directory_id": "f1535575b0f0d97120d9fdcb7b1466d80daf624e", "extension":...
stackv2
/* Autor: Paulo Vianna Mu <paulo.mu@acad.pucrs.br> & Fernando Ken <fernando.ken@acad.pucrs.br> Descrição: Exibe o(s) caractere(s) mais frequente(s) do arquivo. */ #include <stdio.h> int main(int argc, char* argv[]) { if (argc != 2){ printf("A forma correta de usar o comando é freq.o [nome do arquivo](burro).\n")...
3.359375
3
2024-11-18T21:06:13.938601+00:00
2019-05-07T21:01:24
da67573111b0d5401703bc473c65681169390f75
{ "blob_id": "da67573111b0d5401703bc473c65681169390f75", "branch_name": "refs/heads/master", "committer_date": "2019-05-07T21:01:24", "content_id": "ebd6956bc13c7c8a891acf46a92c8cb15a72fa2d", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8b0231925099f101f21b12df18d1b3c42097343f", "extens...
stackv2
#include <jni.h> #include <stdlib.h> #include <string.h> #include <vulkan/vulkan.h> jlong jniPointerToLong(const void* p); void* jniLongToPointer(jlong l); jlong jniFunctionPointerToLong(PFN_vkVoidFunction p); PFN_vkVoidFunction jniLongToFunctionPointer(jlong l); void jniThrowException(JNIEnv* env, const char* message...
2.15625
2
2024-11-18T21:06:14.590127+00:00
2021-01-02T15:15:37
e7aa063267adf932af51bab8f859b12774ac6e68
{ "blob_id": "e7aa063267adf932af51bab8f859b12774ac6e68", "branch_name": "refs/heads/master", "committer_date": "2021-01-02T15:15:37", "content_id": "24347165220f4226ad868d7b25a16d41fe356732", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "bc92c058b0c2dd2877648e30156245e36ee571a4", "extens...
stackv2
/** * Copyright 2019 Horizon Robotics * @brief time record * @date 2020-01-15 * @author zhuoran.rong(zhuoran.rong@horizon.ai) **/ #include "time_record.h" // NOLINT #include <pthread.h> #include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <sys/syscall.h> #include <sys/time.h> #...
2.859375
3
2024-11-18T21:06:14.838612+00:00
2021-08-15T15:05:14
bd2267ae4f394b7be214fb526f65a4a1d4821573
{ "blob_id": "bd2267ae4f394b7be214fb526f65a4a1d4821573", "branch_name": "refs/heads/master", "committer_date": "2021-08-15T15:05:14", "content_id": "69083584a17ff8517ad3a60914b69d1be02cd5af", "detected_licenses": [ "MIT" ], "directory_id": "7fbbd3c34064c291d0a90054a8f67982cb87ce83", "extension": "h"...
stackv2
/** @file squeaker.h @author M. P. Hayes, UCECE @date 14 April 2007 @brief Play simple tunes with PWM. */ #ifndef SQUEAKER_H #define SQUEAKER_H #ifdef __cplusplus extern "C" { #endif #include "config.h" #include "font.h" #include "ticker.h" typedef uint8_t squeaker_speed_t; typedef uint8_t sque...
2.484375
2
2024-11-18T21:06:14.930294+00:00
2016-12-14T04:44:48
6ea83dbbe3fcd1ea38d0bd2dfca8ae56d7d26c7a
{ "blob_id": "6ea83dbbe3fcd1ea38d0bd2dfca8ae56d7d26c7a", "branch_name": "refs/heads/master", "committer_date": "2016-12-14T04:44:48", "content_id": "450c77335a5639bf975dba701abc5ac0d8fc9f28", "detected_licenses": [ "MIT" ], "directory_id": "3a9b7870e610b34b7287ff1c1f5ca89f71cbbdc7", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <omp.h> #include "sorting_algorithms.h" #define BILLION 1000000000L /** Sorts an input array using bubble sort * Returns the time taken to sort the array */ uint64_t bubble_sort (int *a, int n) { struct timespec start, end; uint64_t diff; ...
3.3125
3
2024-11-18T22:11:29.110819+00:00
2022-01-31T16:42:45
c4c57d9645cf8df409f051af8d074179fbf4f15b
{ "blob_id": "c4c57d9645cf8df409f051af8d074179fbf4f15b", "branch_name": "refs/heads/master", "committer_date": "2022-01-31T16:42:45", "content_id": "36004866f4f9f8849c334fe3e44bac0c7ec60f7a", "detected_licenses": [ "MIT" ], "directory_id": "ff4045720009d7c5293ed7626b63b9b42a1b8a43", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> /* for strncpy */ /** * Intent * - Allow an object to alter its behavior when its internal state changes. The * object will appear to change its class. */ /** * Use the State pattern when * - An object's behavior depends on its state, and it must chan...
3.4375
3
2024-11-18T22:11:29.402650+00:00
2018-09-17T06:21:54
877e9b22fdb233c6ef9a9c12b1ea97afed303642
{ "blob_id": "877e9b22fdb233c6ef9a9c12b1ea97afed303642", "branch_name": "refs/heads/master", "committer_date": "2018-09-17T06:21:54", "content_id": "a34ae6c218a02058c5813390c34c06cd3a5bd7fa", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9d936b1d01459307d86f3ff0609da0609fb52905", "extensio...
stackv2
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tty.h ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ #ifndef _TINIX_TTY_H_ #define _TINIX_TTY_H_ #define TTY_IN_BYTES 256 /* tty input queue size */ struct s_tty; struct s_console; /* ...
2.234375
2
2024-11-18T22:11:31.545986+00:00
2020-09-22T06:40:20
283aa0177ecf87aa8581a940cd2abb042745c968
{ "blob_id": "283aa0177ecf87aa8581a940cd2abb042745c968", "branch_name": "refs/heads/master", "committer_date": "2020-09-22T06:40:20", "content_id": "565b1b04c31382d8d90eb3d90136575ac0362183", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d4d1fd4d11cd4860b9299c4fd1034b7c491e2cfb", "extensio...
stackv2
#include "stdio.h" #include "stdlib.h" struct Node { int data; struct Node *next; }; struct Node* head; void Insert(int data) { struct Node* temp=(struct Node*)malloc(sizeof(struct Node)); temp->data=data; temp->next=NULL; if(head==NULL) head=temp; else { struct Node* temp1=head; while(temp1->nex...
3.75
4
2024-11-18T22:11:32.361788+00:00
2016-12-13T13:52:45
b30b4a2dff75f0775b5338f6fbed110b77f85135
{ "blob_id": "b30b4a2dff75f0775b5338f6fbed110b77f85135", "branch_name": "refs/heads/master", "committer_date": "2016-12-13T13:52:45", "content_id": "0b2e4ffb02df38dbe128224acdb943ec4132d98e", "detected_licenses": [ "MIT" ], "directory_id": "4d390bf1cf234944b507f3f8e3236a3f728c6ed5", "extension": "h"...
stackv2
#ifndef PLAYER_H_INCLUDED #define PLAYER_H_INCLUDED #include <list.h> #include "color.h" #include "shape.h" /** * Represents a player of a Game. */ typedef struct Player { /** * Color of the player. */ Color color; /** * List of the player's unplaced Shape structures. */ list_t *placeable_shape...
2.40625
2
2024-11-18T22:11:32.613573+00:00
2023-04-08T01:37:00
47348523442ac24118e29fbb8e6594e9f644d425
{ "blob_id": "47348523442ac24118e29fbb8e6594e9f644d425", "branch_name": "refs/heads/main", "committer_date": "2023-04-08T01:37:10", "content_id": "2d5a66ae6dceb4fc48de277ecae470ad0f37f912", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "6135301f6e393e7197b80307b1d0676505...
stackv2
// SPDX-License-Identifier: BSD-3-Clause // Copyright (C) 2003-2013 Brian Harring <ferringb@gmail.com> #include <stdlib.h> #include <diffball/defs.h> #include <cfile.h> #include <diffball/dcbuffer.h> #include <diffball/apply-patch.h> #include <diffball/defs.h> #define ap_printf(fmt...) \ fprintf(stderr, ...
2.25
2
2024-11-18T22:11:32.785883+00:00
2020-11-17T19:40:13
d001d5861497c7d01dec6dec72eed44ec994866b
{ "blob_id": "d001d5861497c7d01dec6dec72eed44ec994866b", "branch_name": "refs/heads/master", "committer_date": "2020-11-17T19:40:13", "content_id": "c17363e3222dde6cb02735290aded3944a768ae5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0518e53526c214da6142d940c42a428ec7d58122", "extensio...
stackv2
/* packet-smb-common.c * Common routines for smb packet dissection * Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com> * * $Id: packet-smb-common.c 24525 2008-03-01 17:23:39Z stig $ * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * Copied...
2.09375
2
2024-11-18T22:11:33.763605+00:00
2019-06-19T01:56:15
ae9e2c53d6503410bd6ffbca99d3c27118bd068f
{ "blob_id": "ae9e2c53d6503410bd6ffbca99d3c27118bd068f", "branch_name": "refs/heads/master", "committer_date": "2019-06-19T01:56:15", "content_id": "387f1501e6b4aa87d3e4368c6388d71933ac03ea", "detected_licenses": [ "Unlicense" ], "directory_id": "b5e4f739b2be1d56aa27af37a0facd7876909fa8", "extension...
stackv2
#ifndef OVERDRIVE_H #define OVERDRIVE_H #define LPF1P 0 #define HPF1P 1 typedef struct iir_1p_t { // Coefficients float a1; float b0; float b1; // State variables float x1; float y1; } iir_1p; typedef struct overdrive_t { float fs; // Sampling frequency float clipper_fs; //...
2.390625
2
2024-11-18T22:11:34.189616+00:00
2013-11-30T18:52:22
a2394075bc53e17b01ca00461ffacc1622c6bceb
{ "blob_id": "a2394075bc53e17b01ca00461ffacc1622c6bceb", "branch_name": "refs/heads/master", "committer_date": "2013-11-30T18:52:22", "content_id": "0d5c97b6904b4cbf988f16c18b97ac4c60e71572", "detected_licenses": [ "MIT" ], "directory_id": "53b37c869fab9a28806cdabc156a92bb0c61b59c", "extension": "c"...
stackv2
/***************************************************** cpeer.c peer client implementation Authors: Mihir Joshi, Fenil Kavathia csc573 NCSU *****************************************************/ #include "sock/csock.h" #include "sock/ssock.h" #include<stri...
2.453125
2
2024-11-18T22:11:34.309988+00:00
2019-06-24T15:42:30
bbe1b09b443f5fd1e65186e30a75b54b24110b49
{ "blob_id": "bbe1b09b443f5fd1e65186e30a75b54b24110b49", "branch_name": "refs/heads/master", "committer_date": "2019-06-24T15:42:30", "content_id": "024c17faadd3c40a81589ce333147b46abd41c25", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "fdfede61a5e03c5370bcd46aaa65fc53adb5a880", "extens...
stackv2
#include <stdio.h> typedef unsigned long* ulp; ulp foo(void) { return NULL; } // GH #99: Previously bitcasts were ignored for int* to const int* // messing up type inference in read_volatile type conversion int simple(int const * *x, int * volatile *y) { return *x == *y; } void entry(const unsigned int buff...
2.578125
3
2024-11-18T22:11:34.666805+00:00
2018-10-19T15:30:46
6c927481ddf5890597951e0ac193930a0c0354de
{ "blob_id": "6c927481ddf5890597951e0ac193930a0c0354de", "branch_name": "refs/heads/master", "committer_date": "2018-10-19T15:30:46", "content_id": "91c364a83e86ff7c61d6e2200941e83ed8460efb", "detected_licenses": [ "Apache-2.0" ], "directory_id": "df48c4bebbaa4f57b36b0e17f51e182180b7626e", "extensio...
stackv2
/* * pid.c * * Created on: April 2, 2017 * Author: qjones * * Copyright (c) <2017> <Quincy Jones - qjones@c4solutions.net/> * 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 wit...
2.3125
2
2024-11-18T22:11:34.752680+00:00
2014-11-23T01:42:50
4b85ef432ea072db468b3564bb43d425d0eef203
{ "blob_id": "4b85ef432ea072db468b3564bb43d425d0eef203", "branch_name": "refs/heads/master", "committer_date": "2014-11-23T01:42:50", "content_id": "affa4b455b163ed81cb3b2b38d62da7394cdbf10", "detected_licenses": [ "MIT" ], "directory_id": "8667a8b43c65d16ab90cc5246cb31126411da114", "extension": "c"...
stackv2
#include <stdio.h> // printf, sprintf, perror #include <stdlib.h> // strtol, getenv #include <unistd.h> // getcwd #include <string.h> // strcmp #include <pthread.h> #include <readline/readline.h> // readline #include <readline/history.h> // add_history // #include "common.h" // printWelcome #include "parse.h" ...
2.875
3
2024-11-18T22:11:36.528853+00:00
2019-01-19T19:17:42
105733ab9eb31046547ff623d9a5ee220b2da6a5
{ "blob_id": "105733ab9eb31046547ff623d9a5ee220b2da6a5", "branch_name": "refs/heads/master", "committer_date": "2019-01-19T19:17:42", "content_id": "8bdc371b44a48d25d5f919ab2ee695905c66c489", "detected_licenses": [ "MIT" ], "directory_id": "415723f96bc30db1f3d545a39538da62d4309739", "extension": "c"...
stackv2
#include "gen.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "abstract.h" const int DEFAULT_BUFFER_SIZE = 256; /* Begins an output C program */ const char * HEAD = "#include <stdio.h>\n" "#include <stdlib.h>\n" "#include <string.h>\n"...
3.015625
3
2024-11-18T22:11:36.635979+00:00
2020-04-21T14:44:54
8074c8370bc1433b7bdf2b7ef1c4365a85d1b8f1
{ "blob_id": "8074c8370bc1433b7bdf2b7ef1c4365a85d1b8f1", "branch_name": "refs/heads/master", "committer_date": "2020-04-21T14:45:22", "content_id": "31bd291d7a711ecfdd0b66b5c7ed0dfc32e33934", "detected_licenses": [ "CC0-1.0" ], "directory_id": "7d26005ab4d4a8a451c8e247a9915c6d0c0dfb39", "extension":...
stackv2
#include <errno.h> #include <sys/types.h> #include <string.h> #include "assert.h" #include "check.h" #include "chunk.h" #include "config.h" #include "debug.h" #include "error.h" #include "heap.h" #include "init.h" #include "lock.h" #include "os.h" dl_force_inline void *dl_malloc_impl(struct malloc_state *state, size_...
2.453125
2
2024-11-18T22:11:37.596090+00:00
2021-04-01T05:19:30
259d1b87dd20ad09b75890a7ddc47aeab9118628
{ "blob_id": "259d1b87dd20ad09b75890a7ddc47aeab9118628", "branch_name": "refs/heads/main", "committer_date": "2021-04-01T05:19:30", "content_id": "b31e3a43aa4b9557c10380fb78a0fe7ccb031e4f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "12d5b77ed33be6c225fff94b7f1093759058e3ec", "extensio...
stackv2
/* * Copyright (c) 2021, Arm Limited or its affliates. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #ifndef __ARM_GIC_H__ #define __ARM_GIC_H__ #include <stdint.h> /*************************************************************************** * Defines and prototypes for ARM GIC driver. *...
2.15625
2
2024-11-18T22:11:38.123947+00:00
2016-07-05T19:28:10
17b55ed16197057858b5d6b1d8b59bf05f2ecc04
{ "blob_id": "17b55ed16197057858b5d6b1d8b59bf05f2ecc04", "branch_name": "refs/heads/master", "committer_date": "2016-07-05T19:28:10", "content_id": "09aadf4a141ac60204487f4b38eafc79eaf9f8b9", "detected_licenses": [ "MIT" ], "directory_id": "d5d5cd412f34c49d56211550d8b6e6ae19d899c7", "extension": "c"...
stackv2
#ifndef _LEM_EVENTHANDLER_C #define _LEM_EVENTHANDLER_C 1 /* * EventHandler.c * * Created: 11/27/2015 * Author: Patrick McCarthy * Part of Patrick's "lemtils" utility package * A task manager for the ATmega328p, for use with the EGR 326 Alarm Clock project. * */ #include "EventHandler.h" void event_Start(...
2.3125
2
2024-11-18T22:11:38.329436+00:00
2021-03-16T19:44:32
1ad3804f34af98020865173e573056336e3c0454
{ "blob_id": "1ad3804f34af98020865173e573056336e3c0454", "branch_name": "refs/heads/main", "committer_date": "2021-03-16T19:44:32", "content_id": "a836095ab77bffe6d88923c955c3ce2fd2157017", "detected_licenses": [ "MIT" ], "directory_id": "d0d4acfc2f7ce949448f9cbe3a34278cf9c1ce6e", "extension": "h", ...
stackv2
#ifndef LISTA_DE_ADJACENCIA_H_INCLUDED #define LISTA_DE_ADJACENCIA_H_INCLUDED typedef struct no *No; struct no{ int vertice; int peso; No next; }; typedef struct { int tipoGrafo; //0 para dígrafo e 1 para grafo não orientado int numVertices; //numero de vertices do grafo int numArcos; //se o gra...
2.609375
3
2024-11-18T22:11:38.410362+00:00
2021-04-09T07:28:14
db5d480a905ea5564b91e8f32f94352fb3e87454
{ "blob_id": "db5d480a905ea5564b91e8f32f94352fb3e87454", "branch_name": "refs/heads/master", "committer_date": "2021-04-09T07:28:14", "content_id": "d3678a0c541f38250291ac8df486769f078aa8d8", "detected_licenses": [ "MIT" ], "directory_id": "be35500a8c82755553acb020e8095e182000c90a", "extension": "h"...
stackv2
#include <stdlib.h> #include <stdbool.h> #include "DataSetDef.h" #ifndef __PRELIM__ #define __PRELIM__ #define TRUE 1 #define OK 1 #define FALSE 0 #define ERROR 0 #define INFEASIBLE -1 #define OVF -1 #define INIT_SIZE 10 #define SIZE_INCREAMENT 5 typedef int Status; #endif #ifndef __BOARD__CONVERT__ #define __BOARD__CO...
2.53125
3
2024-11-18T22:11:38.802240+00:00
2023-08-27T19:18:57
38abf5bb9b16712e8a2a38c430f5505af88fe975
{ "blob_id": "38abf5bb9b16712e8a2a38c430f5505af88fe975", "branch_name": "refs/heads/master", "committer_date": "2023-08-27T19:18:57", "content_id": "c9f13ebe35e51a957d1a86a676bfcdb89f5e1a43", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "76f7459a09acb9be2d52407132f5ff8955627da2", "extens...
stackv2
/* include/f2c.h. Generated from f2c.h.in by configure. */ /* f2c.h -- Standard Fortran to C header file */ /** barf [ba:rf] 2. "He suggested using FORTRAN, and everybody barfed." - From The Shogakukan DICTIONARY OF NEW ENGLISH (Second edition) */ #ifndef F2C_TYPES_WIN_H #define F2C_TYPES_WIN_H #ifdef __cp...
2.140625
2
2024-11-18T22:11:38.998751+00:00
2021-08-18T02:38:08
0ddd9625f4d1b496112a514878db73bfed423af3
{ "blob_id": "0ddd9625f4d1b496112a514878db73bfed423af3", "branch_name": "refs/heads/master", "committer_date": "2021-08-18T02:38:08", "content_id": "b9b908978e476b06928d9e2f8a6b4804eb05b585", "detected_licenses": [ "Apache-2.0", "curl" ], "directory_id": "11ddbb17eebddb29a4dbd2e89cf1e403a4e5942d",...
stackv2
#ifndef v1beta2_rolling_update_stateful_set_strategy_TEST #define v1beta2_rolling_update_stateful_set_strategy_TEST // the following is to include only the main from the first c file #ifndef TEST_MAIN #define TEST_MAIN #define v1beta2_rolling_update_stateful_set_strategy_MAIN #endif // TEST_MAIN #include <stdlib.h> #...
2.515625
3
2024-11-18T22:11:39.065928+00:00
2023-08-08T09:39:15
2fa884ffee01b970ee976be8fbf5ce616ff8a739
{ "blob_id": "2fa884ffee01b970ee976be8fbf5ce616ff8a739", "branch_name": "refs/heads/master", "committer_date": "2023-08-08T09:39:15", "content_id": "6061e65f1f44d162fbc0f8294621304d36e876f6", "detected_licenses": [ "ISC" ], "directory_id": "f8cc1dd4b1378490386def2e0571561fab10b275", "extension": "c"...
stackv2
/* ISC license. */ #include <skalibs/uint32.h> #include <skalibs/socket.h> int socket_connect4_u32 (int s, uint32_t ip, uint16_t port) { char pack[4] ; uint32_pack_big(pack, ip) ; return socket_connect4(s, pack, port) ; }
2.109375
2
2024-11-18T22:11:39.158076+00:00
2018-04-17T16:48:46
e741e202e1c49129e5f21b41297833bd9cf39fa7
{ "blob_id": "e741e202e1c49129e5f21b41297833bd9cf39fa7", "branch_name": "refs/heads/haiku", "committer_date": "2018-04-17T16:48:46", "content_id": "44aded450c615978f5b000d58ac2a32c4246739a", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "7ec5d6bdb52c2693af01686bc8678d951d06429e", "extensi...
stackv2
/* Copyright 1999, Be Incorporated. All Rights Reserved. This file may be used under the terms of the Be Sample Code License. */ /* The FAT file system has no good way of assigning unique persistent values to nodes. The only obvious choice, storing the starting cluster number of the file, is unusable because 0 byt...
2.421875
2
2024-11-18T22:11:39.339583+00:00
2019-03-28T17:28:56
e6159fb64fc8e32adbf59eacfad34ecf0eec0978
{ "blob_id": "e6159fb64fc8e32adbf59eacfad34ecf0eec0978", "branch_name": "refs/heads/jumpstart-php", "committer_date": "2019-03-28T17:28:56", "content_id": "4a8cff5b886118ea465048fbbd8b8c26a577ac2b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "24d856d98c85a319d53be2768ccc176a50873fa3", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #define __user #include "../linux-lts-quantal-3.5.0/include/linux/pthread_log.h" int main (int argc, char* argv[]) { int fd, rc; struct stat st; int bytes_read = 0; #ifndef USE_DEBUG_LOG u_long total_clo...
2.28125
2
2024-11-18T22:11:39.606806+00:00
2020-01-30T15:52:16
0e9ea8563e855fafe13b4c0e3b4ff6e1e70b6257
{ "blob_id": "0e9ea8563e855fafe13b4c0e3b4ff6e1e70b6257", "branch_name": "refs/heads/master", "committer_date": "2020-01-30T15:52:16", "content_id": "6a6e067e13c5d798356fcaa19958405092af6cf0", "detected_licenses": [ "MIT" ], "directory_id": "40de3da30239862f11a946166b50438174c2fd4e", "extension": "c"...
stackv2
inherit "obj/monster"; int helpers; int phase; object torso,gloves,legs,paper1,paper2,paper3; reset(arg) { ::reset(arg); if (arg) { return; phase = 0; helpers = 0; } set_level(76+random(4)); set_name("ghost"); set_alias("navigator_ghost"); set_short("A enourmous ghost of navigators"); set_...
2.09375
2
2024-11-18T22:11:39.834036+00:00
2018-09-15T02:37:48
c822af88940b8603b91b21a18c4bde053219842f
{ "blob_id": "c822af88940b8603b91b21a18c4bde053219842f", "branch_name": "refs/heads/master", "committer_date": "2018-09-15T02:37:48", "content_id": "de20e2760c09a8471b2680636b9697b139c6a42f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "e77a179ba52e178051854e8cb23095d05729095a", "extens...
stackv2
#include <stdio.h> #include <math.h> void main () { double x,y; scanf ("%lf%lf", &x, &y); double result=pow(x,y); printf ("%lf\n", result); }
2.21875
2
2024-11-18T22:11:39.895723+00:00
2020-03-27T20:11:33
2cfe32e4b8ad02dc1e0138d0e6aa8ce3ed05721d
{ "blob_id": "2cfe32e4b8ad02dc1e0138d0e6aa8ce3ed05721d", "branch_name": "refs/heads/master", "committer_date": "2020-03-27T20:11:33", "content_id": "ad80ef14025b65cf31a7d432125034860acd0b0f", "detected_licenses": [ "MIT" ], "directory_id": "83f46917f0f8647a9a201823f2ab769f8b8443c3", "extension": "c"...
stackv2
/*Program to display the name of mont for the corresponding number inputed*/ void main() { unsigned int month; //The number of month clrscr(); printf("Enter a number(1-12) to see the corresponding month:"); scanf("%u",&month); printf("The month %u is ",month); switch(month) { case 1 :printf("January");br...
2.84375
3
2024-11-18T22:11:40.041647+00:00
2018-04-24T14:47:27
77184ba130be1878ca7bbcfd87c761702099b4f2
{ "blob_id": "77184ba130be1878ca7bbcfd87c761702099b4f2", "branch_name": "refs/heads/master", "committer_date": "2018-04-24T14:48:48", "content_id": "17cbdb4ec5dec97349aa00d2a94878a240ad0d60", "detected_licenses": [ "MIT" ], "directory_id": "af67006372325a4c896edc2dc5eb8242462e10da", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdbool.h> // Return // 0: EOF // 1: Valid input // 2: Input too long int readUserInput(const char* prompt, char* into, int length) { printf("%s: ", prompt); // read the first 'length - 1' characters into 'into' char* result = fgets(into,...
3.796875
4
2024-11-18T22:11:40.130655+00:00
2018-01-11T06:09:59
b0426ac739f8e8541ae3ce91c2d8f9f5d8d21e00
{ "blob_id": "b0426ac739f8e8541ae3ce91c2d8f9f5d8d21e00", "branch_name": "refs/heads/master", "committer_date": "2018-01-11T06:09:59", "content_id": "786688e78a0a7efebb44f95278d2a964763769e1", "detected_licenses": [ "MIT" ], "directory_id": "9543fb168026bfb6ed3a61300d96a426b393165f", "extension": "h"...
stackv2
/** * @file debug_print.h * @brief Debugging utility funtions * In this header we define a set of macros that help with message logging * and can be easily removed from the code * @author Andrei G. Florea * @author Catalin Buiu * @date 2016-02-23 */ #ifndef DEBUG_PRINT_H #define DEBUG_PRINT_H #ifndef DEBUG_PRI...
2.203125
2
2024-11-18T22:11:40.392210+00:00
2023-05-06T02:04:24
7771ace9e15cc1e698b70568923af188e6a5b188
{ "blob_id": "7771ace9e15cc1e698b70568923af188e6a5b188", "branch_name": "refs/heads/master", "committer_date": "2023-05-06T02:04:24", "content_id": "7b2d53295eac4971165a1ddaef7c94d94459d40c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c0bfd93cd7f26a271268e504959256f1e02c6806", "extensio...
stackv2
/* spi_master 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> #i...
2.46875
2
2024-11-18T22:11:40.459544+00:00
2020-03-08T03:12:16
d887d5fa42d8a6ffbec6f7aa49967199831693fe
{ "blob_id": "d887d5fa42d8a6ffbec6f7aa49967199831693fe", "branch_name": "refs/heads/master", "committer_date": "2020-03-08T03:12:16", "content_id": "7c845d621ff579774c91ba4e501efa4b2558e802", "detected_licenses": [ "MIT" ], "directory_id": "4dd3eb9b51ee64ee887cc700d0f7a4ccc323809a", "extension": "h"...
stackv2
#ifndef RRAY_INTERNAL_TYPE_H #define RRAY_INTERNAL_TYPE_H #include "zzz-internal-r.h" #include "zzz-internal-util.h" enum r_type { r_type_null = 0, r_type_symbol = 1, r_type_pairlist = 2, r_type_closure = 3, r_type_environment = 4, r_type_promise = 5, r_type_call = 6, r_...
2.046875
2
2024-11-18T22:11:40.571413+00:00
2020-11-30T19:09:49
23035236f63551d556e62e6b1d10481312c51d64
{ "blob_id": "23035236f63551d556e62e6b1d10481312c51d64", "branch_name": "refs/heads/master", "committer_date": "2020-11-30T19:09:49", "content_id": "286353d434d1d7ca50b5f6f65ba5db07a2019016", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "9646047ca1f4b6f4a54e749d8670b11d940bf616", "extens...
stackv2
#include "spm.h" #include "framework.h" const char *testFmt = "case: '%s': returned '%s', expected '%s'\n"; struct TestCase testCase[] = { {.caseValue.sptr = "no extra whitespace in the string", .truthValue.sptr = "no extra whitespace in the string"}, {.caseValue.sptr = "two extra spaces in the st...
2.453125
2
2024-11-18T22:11:40.805216+00:00
2015-06-14T20:25:45
40c2f7584b707c2b87c0fc6c2445f8e8dee86d88
{ "blob_id": "40c2f7584b707c2b87c0fc6c2445f8e8dee86d88", "branch_name": "refs/heads/master", "committer_date": "2015-06-14T20:25:45", "content_id": "f6885b4153d3fe57b8ce622195635c7224064050", "detected_licenses": [ "MIT" ], "directory_id": "8efbed94f05ecb239e609f1bc7e13f886d83b8ca", "extension": "c"...
stackv2
// Font Viewer -- Cycle through some of the characters in a symbol font. #include <pebble.h> #define PADDING 5 #define REPEAT_INTERVAL_MS 100 static Window *s_main_window; static TextLayer *s_text_layer; static TextLayer *s_char_text_layer; static char s_text_buffer[] = "Aa"; static void down_single_click_handler(...
2.640625
3
2024-11-18T22:11:41.316997+00:00
2023-08-30T05:36:57
761f73c5b8103f81742d6f924fb767fdcfc21c08
{ "blob_id": "761f73c5b8103f81742d6f924fb767fdcfc21c08", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T05:36:57", "content_id": "cab9370c8e6ab883e43bb956cc1d503834a0ed35", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "bfb49b61aeca694f7c5d15de1df3e397ec3e8247", "extens...
stackv2
/* module : manl.c version : 1.1 date : 07/10/23 */ #include "globals.h" #define PLAIN (style == 0) #define HTML (style == 1) #define LATEX (style == 2) #define HEADER(N, NAME, HEAD) \ if (strcmp(N, NAME) == 0) { ...
2.3125
2