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-18T23:25:20.204191+00:00 | 2020-09-16T21:57:24 | 8ddf9bb3ba87fa1d4ac945c2b0954743e2513d3c | {
"blob_id": "8ddf9bb3ba87fa1d4ac945c2b0954743e2513d3c",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-16T21:57:24",
"content_id": "0cd96b59da6d580c0c3485dbd893684a2264b135",
"detected_licenses": [
"MIT"
],
"directory_id": "d50ce2f104a0307652a593116ec4eed60110c3f7",
"extension": "c"... | stackv2 | #include "ngx_http_influxdb_metric.h"
#include <netinet/in.h>
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
typedef struct {
ngx_str_t host;
ngx_uint_t port;
ngx_str_t server_name;
ngx_str_t enabled;
ngx_str_t measurement;
... | 2.09375 | 2 |
2024-11-18T23:25:20.770205+00:00 | 2019-12-27T11:34:55 | 03d2e48257d0a8ff986e55016099e69141c96c52 | {
"blob_id": "03d2e48257d0a8ff986e55016099e69141c96c52",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-27T11:34:55",
"content_id": "6d448854e861c6d9ba8e86a97ecd94de742242ae",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "25c54dc576e7082d5a50b7d51d3a717278b987fc",
"extens... | stackv2 | /* idr_sdl.c */
#include <assert.h>
#include <SDL/SDL.h>
#include "jimk.h"
#include "aaconfig.h"
#include "errcodes.h"
#include "idr_sdl.h"
#include "idriver.h"
static Errcode sdl_idr_detect(Idriver *idr);
static Errcode sdl_idr_inquire(Idriver *idr);
static Errcode sdl_idr_input(Idriver *idr);
static Errcode sdl_idr... | 2.421875 | 2 |
2024-11-18T23:25:21.026464+00:00 | 2016-06-21T18:45:50 | 429c034d53978f8f38006377b8bdd306334f3529 | {
"blob_id": "429c034d53978f8f38006377b8bdd306334f3529",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-21T18:45:50",
"content_id": "b9fa9c0f6c5670be86cbee043baff628b1b01117",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a7c485e66433d4c52b0b00579b1b145683fcdc4a",
"extensio... | stackv2 | #include "sbol.h"
// This only creates a Document in memory;
// you would then want to write it out with writeDocument(doc, filename)
// and free it with deleteDocument(doc).
// You can see the output with sbol_run_tests, which writes
// xml files for all the CreateValid* examples.
Document* CreateValid08() {
Docume... | 2.09375 | 2 |
2024-11-18T23:25:21.225606+00:00 | 2021-10-24T02:58:25 | 0302589890c83fdfe6bc36fd0fc36a4e451126bf | {
"blob_id": "0302589890c83fdfe6bc36fd0fc36a4e451126bf",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-24T02:58:25",
"content_id": "5072e1ea9a8d779d524f04b39339bbb4c87ca43a",
"detected_licenses": [
"MIT"
],
"directory_id": "066ebde2d86696d3d88aedd84fb285f3ffe4b94b",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "loopever.h"
int main(int argc, char **argv)
{
if (argc == 1)
{
loop();
}
else
{
struct timespec sleeptime;
parseArg(argc, argv, &sleeptime);
loopWithSleep(&sleeptime);
}
return 0;
}
void loop()
{
while (1)
{
}
}
void loopWithSleep... | 2.9375 | 3 |
2024-11-18T23:25:21.952782+00:00 | 2020-03-19T18:42:54 | 65e6b439309b1e7eb4ea098b60dfd8b94f3409a0 | {
"blob_id": "65e6b439309b1e7eb4ea098b60dfd8b94f3409a0",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-19T18:42:54",
"content_id": "e6328068b685acd0ebabb852c8de25f204dce48a",
"detected_licenses": [
"MIT"
],
"directory_id": "4d785a329e4f62076c2a072706ec36a59e548c5e",
"extension": "c"... | stackv2 | //---------------------------------------------------------
// Copyright 2019 Ontario Institute for Cancer Research
// Written by Jared Simpson (jared.simpson@oicr.on.ca)
//---------------------------------------------------------
//
// bri - simple utility to provide random access to
// bam records by read name
... | 2.53125 | 3 |
2024-11-18T23:25:22.014451+00:00 | 2020-02-22T18:50:00 | 57863a37ee41ecbdf5530b044a0044fc46041291 | {
"blob_id": "57863a37ee41ecbdf5530b044a0044fc46041291",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-23T17:55:40",
"content_id": "fcf38bed853b47339b3304a66ac75e01108848a2",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9cdee5e676552517a8bbc313c056e73b21aeb3b1",
"extens... | stackv2 | /* SPDX-License-Identifier: BSD-3-Clause */
#include <stdlib.h>
#include "log.h"
#include "tpm2_alg_util.h"
#include "tpm2_options.h"
typedef struct tpm_pcr_extend_ctx tpm_pcr_extend_ctx;
struct tpm_pcr_extend_ctx {
size_t digest_spec_len;
tpm2_pcr_digest_spec *digest_spec;
};
static tpm_pcr_extend_ctx ctx;... | 2.28125 | 2 |
2024-11-18T23:25:22.147798+00:00 | 2021-08-15T23:27:49 | 25de70944db8341bba871e8725f3fe83d1c9e74b | {
"blob_id": "25de70944db8341bba871e8725f3fe83d1c9e74b",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-15T23:27:49",
"content_id": "3d8534037093ded24d22af65f252ac8585eac263",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "16c3d340e2112ee82d8f6ee97fa8ec105dbdab44",
"extensio... | stackv2 | #include "stdio.h"
main () {
int tempo=0, tempoh, tempom, tempos;
float massa, mf;
printf ("Digite a massa, em gramas, do material radioativo: ");
scanf ("%f", &massa);
mf = massa;
while (mf>=0.5) {
mf = mf/2.0;
tempo = tempo + 50;
}
tem... | 3.0625 | 3 |
2024-11-18T23:25:22.401817+00:00 | 2020-08-01T10:46:53 | 2e7694e573741177ca1675d7596c459fe8a926c4 | {
"blob_id": "2e7694e573741177ca1675d7596c459fe8a926c4",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-01T10:46:53",
"content_id": "fe1b54ebd70f3a921bb4291078827bb1a15c8fb8",
"detected_licenses": [
"MIT"
],
"directory_id": "49e8f01d0f6a1d8deafb9bdb6997a4dd30a77246",
"extension": "c"... | stackv2 |
#include "libgeos.h"
#include "geos-common.h"
#include "Rinternals.h"
#define GEOS_BINARY(_func) \
R_xlen_t size = Rf_xlength(geom1); \
SEXP result = PROTECT(Rf_allocVector(VECSXP, size)); \
... | 2.03125 | 2 |
2024-11-18T23:25:22.490576+00:00 | 2016-04-13T00:51:14 | 7ee2d1d6fa3c2957e665658db7952b661e666da6 | {
"blob_id": "7ee2d1d6fa3c2957e665658db7952b661e666da6",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-13T00:51:14",
"content_id": "736c10f26322308c56c75ec5e08719f20946e1c4",
"detected_licenses": [
"MIT"
],
"directory_id": "184801032075bba5da25fe947b2e8b9ec4fa43c1",
"extension": "c"... | stackv2 | /*!\file lcd.c
* \brief Module to handle LCD connection
* \author Justin Langis
* \author Nick Dubus
*
* This module provides an easy interface to the LCD hardware
* From a higher level, users can simply call wrappers to display
* information on the LCD
*/
#include "Lcd.h"
#include <stdlib.h>
#include <str... | 2.953125 | 3 |
2024-11-18T23:25:22.568872+00:00 | 2021-02-25T07:12:42 | 531ca8cef91a11f52985ec7b70bab87be278019e | {
"blob_id": "531ca8cef91a11f52985ec7b70bab87be278019e",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-25T07:12:42",
"content_id": "3c451dbf49542292f7ad9feaf61a2c8585e37799",
"detected_licenses": [
"MIT"
],
"directory_id": "392f4cb462868ae6982c7eaa53e37e5900cf9405",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "it8951.h"
int main() {
uint8_t *buf;
IT8951DevInfo dev;
it8951_init();
dev = it8951_get_device_info();
if(!(buf = malloc(dev.panelW * dev.panelH))) {
perror("malloc failed.");
return -1;
}
for (int i = 0; i < dev.panelW * dev.panelH; i++) {
... | 2.59375 | 3 |
2024-11-18T23:25:23.951247+00:00 | 2016-06-03T20:01:43 | 6aec09075135e771259a67e66ea53ccc96736b5d | {
"blob_id": "6aec09075135e771259a67e66ea53ccc96736b5d",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-03T20:01:43",
"content_id": "0d799280b43267e4bde7fd2a36e10ab81295451e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9068a87ca77e6df079321025056ac5aacb62c4cf",
"extens... | stackv2 | /* Detects the language of a file read from the standard input. */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "sabir.h"
int main(int argc, char **argv)
{
/* Load our model. */
struct sabir *sb;
int ret = sb_load(&sb, "model.sb");
if (ret) {
fprintf(stderr, "%s: cannot load m... | 2.5625 | 3 |
2024-11-18T23:25:24.756610+00:00 | 2023-07-05T11:44:42 | d7b9fe680374c863db235b3ab352f8af9cef62e8 | {
"blob_id": "d7b9fe680374c863db235b3ab352f8af9cef62e8",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-05T11:44:42",
"content_id": "dfda8e5b5ccfb288fc55481e479cc7b0f1e213a5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "276b41398db43c33314e822667592dc37cd11795",
"extensio... | stackv2 | /*
* Copyright 2016-2023 Henry Lee
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 2.078125 | 2 |
2024-11-18T23:25:24.829686+00:00 | 2019-05-28T12:23:00 | dfff30ac1ecd23637f1a8b9df689ae3137c5401a | {
"blob_id": "dfff30ac1ecd23637f1a8b9df689ae3137c5401a",
"branch_name": "refs/heads/comparison",
"committer_date": "2019-05-28T12:23:00",
"content_id": "88525adb7dca937e7de3b8d1ab0bb80cb4ca9c75",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "5eb8eb172d1f86faae0645bc8fe764b9c5aefd69",
"ex... | stackv2 | /**
* @file
* @brief
*
* @date 27.05.19
* @author Egor Anikin
*/
#include <stdio.h>
#include <pthread.h>
#include "environment.h"
#define ITER 100
pthread_t th[ITER];
static void *task(void *arg) {
return NULL;
}
int main(int argc, char **argv) {
int cur_time, prev_time;
double average;
pthread_attr_t ... | 2.75 | 3 |
2024-11-18T23:25:24.932868+00:00 | 2023-07-07T18:41:40 | 18b1781242da1f05508ace0d59c32851edb9e69c | {
"blob_id": "18b1781242da1f05508ace0d59c32851edb9e69c",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-07T18:41:40",
"content_id": "f22853ebe8e13dc1249a0ed2cf2f8647c5bdbb4c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c26d7b0ed875357278e61627da2da0650da77986",
"extens... | stackv2 | /*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
# include <stdlib.h>
# include <signal.h>
# include "deck.h"
# include "cribbage.h"
# include "cribcur.h"
# define LOGFILE "/... | 2.1875 | 2 |
2024-11-18T23:25:25.172995+00:00 | 2023-08-16T13:58:07 | a1fc40050613dc0b7f6be37815ef8b7d2aa392a0 | {
"blob_id": "a1fc40050613dc0b7f6be37815ef8b7d2aa392a0",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T13:58:07",
"content_id": "625ab5960408e0644e0550c1987b59458905974f",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b9f7c7a87292c1a9c231ce89933ae9d4bc51f487",
"extens... | stackv2 | /*
// Copyright 2009-2023 NTESS. Under the terms
// of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2023, NTESS
// All rights reserved.
//
// Portions are copyright of other developers:
// See the file CONTRIBUTORS.TXT in the top level direct... | 2.140625 | 2 |
2024-11-18T23:25:25.422466+00:00 | 2021-05-10T17:33:09 | 160eed93cf3330be292cf2597fa17f7409db24b9 | {
"blob_id": "160eed93cf3330be292cf2597fa17f7409db24b9",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-10T17:33:09",
"content_id": "4f57356a20e851f16731cc3975f9c0e53cafc19e",
"detected_licenses": [
"MIT"
],
"directory_id": "1ecff41d8b51a17628ac14d5d966221e25ec9163",
"extension": "c",
... | stackv2 | #include<stdio.h>
#include<conio.h>
#include<time.h>
#include<stdlib.h>
void delay(int number_of_seconds){
int milli_seconds = number_of_seconds;
clock_t start_time = clock();
while (clock() < start_time + milli_seconds)
;
}
void loading_animation(){
system("cls");
printf("\n\n\n\n\n\n\n ... | 2.5 | 2 |
2024-11-18T23:25:27.419287+00:00 | 2017-12-05T09:50:33 | e33b60d7d5f73a655ef23f3f46232a72077db8ba | {
"blob_id": "e33b60d7d5f73a655ef23f3f46232a72077db8ba",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-05T09:50:33",
"content_id": "13424708d8a82a610c6bc85737c6ad97127a327b",
"detected_licenses": [
"MIT"
],
"directory_id": "bb276ca094110a2a54aa2f2a33db3ac179ba8e84",
"extension": "c"... | stackv2 | #include <rbtree.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int comparer(const void *first, const void *second);
void destroyer(void *value);
size_t sizer(const void *value);
bool test(rbtree_t t);
int main(int argc, char *argv[])
{
struct rbtree_init init... | 2.9375 | 3 |
2024-11-18T23:25:27.743930+00:00 | 2021-07-24T06:39:22 | 7a989846fbc8b631aa5193f302d1f6e98545b985 | {
"blob_id": "7a989846fbc8b631aa5193f302d1f6e98545b985",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-24T06:39:22",
"content_id": "deba53a2ff6693edfba60d18d583a4e5aa75ad73",
"detected_licenses": [
"MIT"
],
"directory_id": "276d1c0add0b13d3f9dafde20dddba7b81889cb4",
"extension": "c",
... | stackv2 | //Write a program to reverse a number.
#include <stdio.h>
#include <conio.h>
int main()
{
int num, n, r, sum = 0;
printf("enter the number to reverse: ");
scanf("%d", &num);
n = num;
while (n != 0)
{
r = n % 10;
sum = sum * 10 + r;
n = n / 10;
}
printf("reverse ... | 3.671875 | 4 |
2024-11-18T23:25:28.080166+00:00 | 2014-03-24T11:05:00 | 112eb732292d891d063d6e64886e91529972c011 | {
"blob_id": "112eb732292d891d063d6e64886e91529972c011",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-24T11:05:00",
"content_id": "a94077e1068c7065f4014500ad68619d7a7d0add",
"detected_licenses": [
"MIT"
],
"directory_id": "e13c95e6626ff12c4a03e8dcd46e817cd0bbb990",
"extension": "c"... | stackv2 | /*
* test_diag.c
*
* Created on: Mar 12, 2014
* Author: JB ELECTRONICS
*/
extern int adcch[6],sd24ch[6];
extern volatile unsigned int ans16u[2];
void Test_Menu()
{
int get_key;
while(1)
{
Print_Main_Menu();
get_key = getche(UARTA1,BLOCKING);
//printf(UARTA1,"%c",get_key);
switch(get_key)
{
... | 2.34375 | 2 |
2024-11-18T23:25:28.363203+00:00 | 2014-12-14T17:00:49 | 2e73bb4eb5286848595a20cc8d17a7b628feffd9 | {
"blob_id": "2e73bb4eb5286848595a20cc8d17a7b628feffd9",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-14T17:00:49",
"content_id": "3da9bd2e2329a46a5369f4828ebcc93f3188bcc0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7599aceac99330f4036f6c03074b5a56f4dd4d6d",
"extens... | stackv2 | /* ----------------------------------------------------------------------------
Copyright (c) 2001-2002, Lev Povalahev
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code m... | 2.015625 | 2 |
2024-11-18T23:25:29.444422+00:00 | 2016-09-13T08:22:30 | ece94ef204232e6ec72f7d12a8f541a73a745529 | {
"blob_id": "ece94ef204232e6ec72f7d12a8f541a73a745529",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-13T08:22:30",
"content_id": "c05a38402eeb2812b76e6d90c6455926c46b41ab",
"detected_licenses": [
"MIT"
],
"directory_id": "52eeb002051d0ebd1bd38cd02c925b7b760d0feb",
"extension": "h"... | stackv2 | #ifndef IOPORT_H
#define IOPORT_H
#include <avr/io.h>
struct IOPin {
uint8_t num;
volatile uint8_t *port;
volatile uint8_t *pin;
volatile uint8_t *ddr;
IOPin(uint8_t *num, volatile uint8_t *PIN, volatile uint8_t *PORT, volatile uint8_t *DDR)
: pin(PIN), port(PORT), ddr(DDR) { }
// Set the pin to b... | 2.53125 | 3 |
2024-11-18T23:25:32.190192+00:00 | 2013-04-17T18:42:40 | 7d618e39b5051962816a2f38fcf3035c768cc510 | {
"blob_id": "7d618e39b5051962816a2f38fcf3035c768cc510",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-17T18:42:40",
"content_id": "36643159df51b94eec5c48cc3a0ddd92a8f3f0c3",
"detected_licenses": [
"MIT"
],
"directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef",
"extension": "h"... | stackv2 | /*********************************************************************
formats/basicdsk.h
Floppy format code for basic disks
*********************************************************************/
#ifndef BASICDSK_H
#define BASICDSK_H
#include "flopimg.h"
struct basicdsk_geometry
{
int heads;
int tracks;... | 2 | 2 |
2024-11-18T23:25:33.757102+00:00 | 2017-04-29T06:17:24 | 819987af62de11532c6de5abae95fd494844b346 | {
"blob_id": "819987af62de11532c6de5abae95fd494844b346",
"branch_name": "refs/heads/lab-general",
"committer_date": "2017-04-29T06:17:24",
"content_id": "0607c2887c6764e84e3f0134b5c9700cf97100dc",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b725ba18b99398ce8459b8877691135e0cdf4d51",
"e... | stackv2 | #ifdef ROCKBOX
#include "plugin.h"
#include "../../pdbox.h"
#endif
#include "../src/m_pd.h"
#include "../src/m_fixed.h"
typedef struct ftom_tilde
{
t_object x_obj;
float x_f;
} t_ftom_tilde;
t_class *ftom_tilde_class;
static void *ftom_tilde_new(void)
{
t_ftom_tilde *x = (t_ftom_tilde *)pd_new(ftom_tild... | 2.046875 | 2 |
2024-11-18T23:25:33.827966+00:00 | 2016-06-18T03:37:26 | d7fc5f9cfae2bebedb3c5a12578cf6c09d89f3e8 | {
"blob_id": "d7fc5f9cfae2bebedb3c5a12578cf6c09d89f3e8",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-18T03:37:26",
"content_id": "6b83a96d37ed509626fea81a366abe6e8d230669",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "46fbd4e74ab7b94177cb7fc1ffda696a118ff290",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
/*
Function declarations
*/
int pairmax(int *arr, int startIndex, int endIndex);
int maximum(int a, int b);
long upper_power_of_two(long v);
int main()
{
int size = 400000;
int arr[size];
FILE *myFile;
myFile = fopen("random400000.txt", "r");
int i ... | 3.796875 | 4 |
2024-11-18T23:25:33.947125+00:00 | 2021-05-04T12:11:55 | b7cd976c0cf10ada82a0e7fb246787657c7c36b1 | {
"blob_id": "b7cd976c0cf10ada82a0e7fb246787657c7c36b1",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-04T12:11:55",
"content_id": "6dcb4cdd5edec95cfb4751c14ad2d17ec2c9063e",
"detected_licenses": [
"MIT"
],
"directory_id": "51060487b0d531eaa5a61f92d44c81fdf295a1b5",
"extension": "c",
... | stackv2 | //
// Created by lumin on 2020/11/2.
//
#include <spi.h>
#include <sysctl.h>
#include <assert.h>
#include <util.h>
volatile spi_t *const spi[4] =
{
(volatile spi_t *)SPI0_BASE_ADDR,
(volatile spi_t *)SPI1_BASE_ADDR,
(volatile spi_t *)SPI_SLAVE_BASE_ADDR,
(volatil... | 2.453125 | 2 |
2024-11-18T23:25:34.040295+00:00 | 2019-11-21T13:31:53 | c0408c2dc4f6de8dd50d0c36adf3d8962b593c64 | {
"blob_id": "c0408c2dc4f6de8dd50d0c36adf3d8962b593c64",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-21T13:31:53",
"content_id": "aa77fced3725f9c1dc9a57a3009a54909bd5f830",
"detected_licenses": [
"MIT"
],
"directory_id": "48cf2efcd35cb21583be809031adc2e20f0be9e6",
"extension": "h"... | stackv2 | /**
* @brief Modulo Types
*
* archivo de cabecera de todo el programa en general
*
* @file space.h
* @author Jaime Elso de Blas y Sergio García Bordonado
* @version 1.0 (version inicial)
* @date 02-02-2016
*/
#ifndef TYPES_H
#define TYPES_H
#define WORD_SIZE 1000 /*Tamaño de una palabra*/
#define DESCRIPTION_SIZE 1... | 2.265625 | 2 |
2024-11-18T23:25:34.120714+00:00 | 2015-04-07T18:19:58 | 9aa9e82b7631936084da78ea1dca5ee1ab14a97c | {
"blob_id": "9aa9e82b7631936084da78ea1dca5ee1ab14a97c",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-07T18:19:58",
"content_id": "0ec6b851b1c7cc947e7ca60301a1c8538a3a0bbb",
"detected_licenses": [
"MIT"
],
"directory_id": "c0ec768371dd51ff8dc40d8acd81c8d09fb95b26",
"extension": "c"... | stackv2 | #include <stdint.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <errno.h>
#include "xstream.h"
static int
xstream_do_open(xstream_t *xs, const char *mode, void *userdata)
{
if (xs->xs_ops.open == NULL)
return -XERR_NOSYS;
return (*xs->xs_ops.open)(xs, mode, userdata);
}
stat... | 2.5625 | 3 |
2024-11-18T23:25:34.242922+00:00 | 2016-04-18T19:31:42 | ee288f5fd947ab41f6001ce48a05666721e6136c | {
"blob_id": "ee288f5fd947ab41f6001ce48a05666721e6136c",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-18T19:31:42",
"content_id": "a702171cf3151bcc83bf7d9c4c67c3354b3f83c5",
"detected_licenses": [
"MIT"
],
"directory_id": "e5ec38afbf645b6aa6648e04f67e44ad8248349f",
"extension": "c"... | stackv2 | #include <yaul.h>
#include <stdlib.h>
#include "kingkong.h"
/*
* VDP2 VRAM Organization
* Bank A0
* - NBG3 plane data, from 0x0 to 0x01000 (4096 bytes, 1 word per cell, 512x256px)
* - NBG3 cell pattern data, from 0x01000 to 0x06860 (22624 bytes, 707 8x8 cells in 4bits color)
* => total : 26720 bytes instead of 6... | 2.453125 | 2 |
2024-11-18T23:25:34.318611+00:00 | 2022-03-08T00:52:08 | e9c22eb877fb2dc6a2472a13f8fcb5a32272682a | {
"blob_id": "e9c22eb877fb2dc6a2472a13f8fcb5a32272682a",
"branch_name": "refs/heads/develop",
"committer_date": "2022-03-08T00:52:08",
"content_id": "deeb3994de68668d20226c62b9cc256d9668781e",
"detected_licenses": [
"MIT"
],
"directory_id": "d4f6928178d296d095c0caf240349a8de235e95e",
"extension": "c... | stackv2 | //
// BRTezosTransaction.c
// WalletKitCore
//
// Created by Ehsan Rezaie on 2020-06-17.
// Copyright © 2020 Breadwinner AG. All rights reserved.
//
// See the LICENSE file at the project root for license information.
// See the CONTRIBUTORS file at the project root for a list of contributors.
//
#include "BRTez... | 2.234375 | 2 |
2024-11-18T23:25:35.259143+00:00 | 2019-01-02T19:33:53 | 939056c59150b29a2bfae9e4952fdc2e06b7766b | {
"blob_id": "939056c59150b29a2bfae9e4952fdc2e06b7766b",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-02T19:33:53",
"content_id": "5012ee0fa00b3cf08ff1d66674ea832f378de5cd",
"detected_licenses": [
"MIT"
],
"directory_id": "771d49a81203761221e044b5a4e14a75a3b5786a",
"extension": "h"... | stackv2 | #include "ipfs/merkledag/merkledag.h"
#include "ipfs/merkledag/node.h"
#include "../test_helper.h"
struct FSRepo* createAndOpenRepo(const char* dir) {
int retVal = 1;
// create a fresh repo
retVal = drop_and_build_repository(dir, 4001, NULL, NULL);
if (retVal == 0)
return NULL;
// open the fs repo
struct Repo... | 2.453125 | 2 |
2024-11-18T23:25:41.168505+00:00 | 2022-07-04T08:13:14 | 1894899919f827c6d6e87602f15046743faeb783 | {
"blob_id": "1894899919f827c6d6e87602f15046743faeb783",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-04T08:13:14",
"content_id": "62ecaff580db149067539cd8f749c55e4556fae1",
"detected_licenses": [
"MIT"
],
"directory_id": "6212e657eb4c3274890954cb9973aa0ec5470aac",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <assert.h>
#include <stdbool.h>
#include "memana.h"
#define dp(p) printf(#p " = %p\n", (p))
#define dd(d) printf(#d " = %I64d\n", (d))
#define ABS(size) ((size) >= 0 ? (size) : -(size))
#define PREV(pBlock) ((pBlock)->node.prev)
#define NEXT(pBlock) ((pBlock)->node.next)
#define BLOCK_MIN_S... | 3.03125 | 3 |
2024-11-18T23:25:41.554617+00:00 | 2016-12-01T00:08:45 | 7c5478de3ea93f8674e7f0401aaec6d52ca5dbeb | {
"blob_id": "7c5478de3ea93f8674e7f0401aaec6d52ca5dbeb",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-01T00:08:45",
"content_id": "57b199dd273de99e71caea330bbd7120870aedea",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2da5a6c62ceea581bf986cc6c8a2e6d268bcb586",
"extens... | stackv2 | #include <stdio.h>
#include <string.h>
#include <errno.h>
#include "lily_alloc.h"
#include "lily_vm.h"
#include "lily_value.h"
#include "lily_seed.h"
lily_file_val *lily_new_file_val(FILE *inner_file, char mode_ch)
{
lily_file_val *filev = lily_malloc(sizeof(lily_file_val));
filev->refcount = 1;
filev->i... | 2.546875 | 3 |
2024-11-18T23:25:41.631883+00:00 | 2022-03-25T01:36:05 | e6cdb34c7b17895168bdca13570253b5391fbacd | {
"blob_id": "e6cdb34c7b17895168bdca13570253b5391fbacd",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-25T01:36:05",
"content_id": "3b7762e21d589ee2836b75989f16250c182f8f49",
"detected_licenses": [
"MIT"
],
"directory_id": "f75e086407b1c64e112ad77a58cce562fd74f202",
"extension": "c"... | stackv2 | /*
* states_init.c
*
* Created on: 31 Dec. 2021
* Author: Calvin
*/
#include "states.h"
#include "can_dict.h"
#include "heartbeat.h"
#include "profet.h"
#include "bms.h"
#include "sendyne.h"
state_t state_start = { &state_start_enter, &state_start_body, AMS_STATE_START };
state_t state_initPeripherals = { ... | 2.21875 | 2 |
2024-11-18T23:25:41.728029+00:00 | 2016-08-31T10:15:13 | 04c5b58efb73a26760f968acb127f046b365ee50 | {
"blob_id": "04c5b58efb73a26760f968acb127f046b365ee50",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-31T10:15:13",
"content_id": "e97d8c575d1e025d0f90834bb1f3337010147cf6",
"detected_licenses": [
"MIT"
],
"directory_id": "4f7c7d0d857a2e5bb831f905a8cb060dc57ddf88",
"extension": "h"... | stackv2 |
//##################################################################
//############ "COMPLEX" ANALOG READ FUNCTION: #####################
int readAnalogSensor_COMPLEX(ssv sensor, int sensorVal, int *vectorArray){
int sensorLastVal = sensorVal;
vectorArray[1] = sensorVal;
int i;
for(i = 0; i < sensor.arrayS... | 2.3125 | 2 |
2024-11-18T23:25:42.308426+00:00 | 2019-03-23T12:28:25 | 5837e0527d937028e69fac8b6284d521e107d0ae | {
"blob_id": "5837e0527d937028e69fac8b6284d521e107d0ae",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-23T12:28:25",
"content_id": "d4c10404255d09933e55c29a1c08191e5f60e27d",
"detected_licenses": [
"MIT"
],
"directory_id": "e2285dab16a7ab00889299663d098e1344767792",
"extension": "c"... | stackv2 | #include "config.h"
#include "broadcasters.h"
#include "ble.h"
#include "ble_utils.h"
#include "log.h"
#include "mqtt.h"
#include "ota.h"
#include "wifi.h"
#include <esp_err.h>
#include <esp_log.h>
#include <esp_system.h>
#include <nvs.h>
#include <nvs_flash.h>
#include <string.h>
#define MAX_TOPIC_LEN 256
static cons... | 2.0625 | 2 |
2024-11-18T23:25:42.550882+00:00 | 2021-08-13T07:46:30 | 0035cae4be8e760e9c6c842813f0afd975cfaaaa | {
"blob_id": "0035cae4be8e760e9c6c842813f0afd975cfaaaa",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-13T07:46:30",
"content_id": "59d48751b0e363a62e8268c248886901489dfe3b",
"detected_licenses": [
"MIT"
],
"directory_id": "96c949af7c416156df50cf38e7c3eb5680a66672",
"extension": "c",
... | stackv2 | //home automation by arduino UNO board bluetooth control
float x,y;
#define trigPin 12
#define echoPin 10
int ledPin= 13;
int duration, distance;
#include<Servo.h>
Servo my;
char val; //bluetooth
void setup() {
Serial.begin(9600);
pinMode(2,INPUT);
pin... | 2.453125 | 2 |
2024-11-18T23:25:42.975903+00:00 | 2013-04-17T18:42:40 | ed957aa49e05d6c59f85a65a6e22b809cd01c2ff | {
"blob_id": "ed957aa49e05d6c59f85a65a6e22b809cd01c2ff",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-17T18:42:40",
"content_id": "1d74bab51e024e9c9f7ab1ff853bbf0ea6376b3d",
"detected_licenses": [
"MIT"
],
"directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef",
"extension": "c"... | stackv2 |
// AM1 Functions (for ReadAM)
// **************************
static UINT32 am1Register(v60_state *cpustate)
{
switch (cpustate->moddim)
{
case 0:
cpustate->amout = (UINT8)cpustate->reg[cpustate->modval & 0x1F];
break;
case 1:
cpustate->amout = (UINT16)cpustate->reg[cpustate->modval & 0x1F];
break;
case 2:... | 2.015625 | 2 |
2024-11-18T23:25:43.058835+00:00 | 2020-05-08T16:06:30 | 7568f70dabfc8846f6cce2df551a42504bf52304 | {
"blob_id": "7568f70dabfc8846f6cce2df551a42504bf52304",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-08T16:06:30",
"content_id": "5ce916c1922e36a89cd26304cc2429179d3253b3",
"detected_licenses": [
"MIT"
],
"directory_id": "eb1eb26b0e172a1e5142cedd6ac437bd2a8efa03",
"extension": "c"... | stackv2 | #include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include "bignum.h"
#define FIB_DEV "/dev/fibonacci"
/* Max. digits of BigN in decimal is 39. */
#define LEN_BN_STR 40
/* Output file name for plot */
#define KERNEL_OUTPUT_FILE ... | 2.84375 | 3 |
2024-11-18T23:25:43.462441+00:00 | 2018-05-02T03:03:53 | a465ba1f55d67c1d0d153585c67daf530ba1c575 | {
"blob_id": "a465ba1f55d67c1d0d153585c67daf530ba1c575",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-02T03:03:53",
"content_id": "440bd8e6aed0db89fcbd5e5477da33efbc81afdd",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b31946d627d90a756ebf03929cea18a189deaaec",
"extens... | stackv2 | /* Authors: */
/* Tao Hui <taohui3@gmail.com> */
#include "url.h"
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
/* rfc1738:
...The characters ";",
"/", "?", ":", "@", "=" and "&" are the characters which may be
reserved for special meaning within a scheme...
...Thus, only alphanumeric... | 2.734375 | 3 |
2024-11-18T23:25:44.005846+00:00 | 2013-05-23T08:34:37 | bf002506b66d7b0c7a236dddd037abc85a470b5a | {
"blob_id": "bf002506b66d7b0c7a236dddd037abc85a470b5a",
"branch_name": "refs/heads/master",
"committer_date": "2013-05-23T08:34:37",
"content_id": "db00a5bdc2123d1d8537db76417a13a388d9702c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "6f695bd24092ce41f51aabd96535e4f682bf6c91",
"extens... | stackv2 | /*
* CC_BINARY_TREE.C
*
* This file is part of the CCollections library.
*
* CCollections is licensed under the BSD-2-Clause License (FreeBSD).
* Copyright (c) 2012, Ulrik Damm and Kristian Andersen.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification... | 2.0625 | 2 |
2024-11-18T23:25:45.606502+00:00 | 2021-09-05T13:52:36 | 613a847501f225a56af3d7d11b0a09cbe37a2a77 | {
"blob_id": "613a847501f225a56af3d7d11b0a09cbe37a2a77",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-05T13:52:36",
"content_id": "78201233ab5198edd37ecfeaf5593c4e8c11caea",
"detected_licenses": [
"MIT"
],
"directory_id": "dd378caf02782ee4a9c4ddf56599015898c0aece",
"extension": "c",
... | stackv2 | #include <common.h>
// variables
static bool term_pgm;
static int pulse_count = -1;
// prototypes
static void sig_hndlr(int sig);
// ----------------------------------------------------
int main(int argc, char **argv)
{
//
// Initialization
//
// open logfile in append mode
fp_log = fopen("sim... | 2.578125 | 3 |
2024-11-18T23:25:45.924800+00:00 | 2015-01-14T18:44:51 | 16e34bb8cc4ac3a60552a91aef61f54a55904623 | {
"blob_id": "16e34bb8cc4ac3a60552a91aef61f54a55904623",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-14T18:44:51",
"content_id": "be455a8ca98a6ef35a8dbd3ba1b57961d08a9f2d",
"detected_licenses": [
"MIT"
],
"directory_id": "7338a84728c8b75f4c2b8fce6c2e6ed9efc64176",
"extension": "h"... | stackv2 | #ifndef PURE_H_
#define PURE_H_
#include <stddef.h>
#include <assert.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* Pure is a small script designed for configuration. It is a _LINE_ based configuration
* and also it contains some simple operation ability to do some logic . Pure implements
* a _ONE_ ... | 2.59375 | 3 |
2024-11-18T23:25:46.251772+00:00 | 2018-05-16T17:07:31 | e01b35f06f3d0bd9b9776bf834e4a307afa9f6ec | {
"blob_id": "e01b35f06f3d0bd9b9776bf834e4a307afa9f6ec",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-16T17:07:31",
"content_id": "b9d5d3074f156714745b8f06e9ea6b87be9ce980",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0c563b21858deda06c7cb8bf6a803a72ac633b38",
"extensio... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* mainnewlist.c :+: :+: :+: ... | 2.65625 | 3 |
2024-11-18T23:25:46.313688+00:00 | 2020-03-23T10:51:23 | c3ca9abcb63a0a61d8815edc5ed1335f03ba2f10 | {
"blob_id": "c3ca9abcb63a0a61d8815edc5ed1335f03ba2f10",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-23T10:51:23",
"content_id": "da1a7805e250153bab1392f324ee1519b4de0937",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "cd4ec3b6871715a38d2f54bff533df5a35a1cf98",
"extens... | stackv2 | /* This is part of the netCDF package. Copyright 2005-2018 University
Corporation for Atmospheric Research/Unidata See COPYRIGHT file for
conditions of use.
This is a benchmarking program that depends on some KNMI files from
the Unidata ftp site. The files are opened and read, and
performance is timed.
... | 2.203125 | 2 |
2024-11-18T23:25:46.506438+00:00 | 2020-03-19T17:42:19 | 90aacac220312e5dd630b2998faf7e69d2b58d9b | {
"blob_id": "90aacac220312e5dd630b2998faf7e69d2b58d9b",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-19T17:42:19",
"content_id": "74ffd4c80378d5520a283ad4d04b9538ce768a17",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "932fbb37a4fdb74cfbd12174ddf806ad3dde53b7",
"extensio... | stackv2 | #include <omp.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, const char *argv[])
{
long steps = 1000000000;
if (argc > 1)
{
steps = atoi(argv[1]);
}
else
{
printf("Use: %s [puntos]\n", argv[0]);
}
double step = 1.0 / (double)steps;
double sum = 0.0;
... | 3.125 | 3 |
2024-11-18T23:25:46.621538+00:00 | 2023-08-30T10:25:28 | cabfd7b7bc693a55b06f6fc54621f1df2dc9bfc6 | {
"blob_id": "cabfd7b7bc693a55b06f6fc54621f1df2dc9bfc6",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T10:25:28",
"content_id": "41a5dcdcae8c7be202a1e8c0dcaf8390b81f6e1f",
"detected_licenses": [
"MIT"
],
"directory_id": "b96c7576b33a1dd1b128756c6de8cabdeb053303",
"extension": "c"... | stackv2 | #include <jni.h>
#include "Test.h"
#include <stdio.h>
JNIEXPORT void JNICALL Java_Test_test(JNIEnv *env, jobject obj)
{
jclass cls;
jfieldID fid;
jint i;
printf("Starting the native method.\n");
cls = (*env)->GetObjectClass(env, obj);
fid = (*env)->GetFieldID(env, cls, "i", "I");
if(fid =... | 2.21875 | 2 |
2024-11-18T23:25:46.802425+00:00 | 2017-10-26T03:15:10 | f4e403cdb67070cf3aca30d141bb3c4996579bb2 | {
"blob_id": "f4e403cdb67070cf3aca30d141bb3c4996579bb2",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-26T03:15:10",
"content_id": "c922945c52caf5e4124b8fd2dd0915b3375ab1c3",
"detected_licenses": [
"MIT"
],
"directory_id": "f34fb454037271bef9243313d1b0d476c63dfcd4",
"extension": "h"... | stackv2 | #ifndef K_BUFFER_H
#define K_BUFFER_H
#include <stdint.h>
typedef struct {
size_t pos;
size_t len;
size_t max;
uint8_t *data;
} kbuf_t;
void kbuf_init(kbuf_t *buf);
int kbuf_read(kbuf_t *buf, void *output, size_t size);
int kbuf_write(kbuf_t *buf, const uint8_t *data, const size_t size);
#endif // K... | 2.03125 | 2 |
2024-11-18T23:25:46.959070+00:00 | 2018-12-31T19:12:03 | 08c2ab15f962e5370c0f36768c6b74be635af001 | {
"blob_id": "08c2ab15f962e5370c0f36768c6b74be635af001",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-31T19:12:03",
"content_id": "ff481ea08a3141618b5d1cf07c11d8551dd56a95",
"detected_licenses": [
"MIT"
],
"directory_id": "3e42e957dbadbbf6b2af9c21cdaf93254d5a29f5",
"extension": "c"... | stackv2 | /*
* File: convert_nums_1.c
* Auth: Brennan D Baraban
* Michael Klein
*/
#include "holberton.h"
unsigned int convert_di(va_list args, buffer_t *output,
unsigned char flags, char wid, char prec, unsigned char len);
unsigned int convert_b(va_list args, buffer_t *output,
unsigned char flags, char wid, char... | 2.671875 | 3 |
2024-11-18T23:25:47.535866+00:00 | 2022-12-13T10:00:46 | 97338b03151dcc87816e2d551dcf9262ddaa30bf | {
"blob_id": "97338b03151dcc87816e2d551dcf9262ddaa30bf",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-14T09:42:32",
"content_id": "c4e52ef82e95e41214531a1807a3db69a3788806",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "89b5db5ec10df28254b68f4c2352396f... | stackv2 | // SPDX-License-Identifier: BSD-3-Clause
/******************************************************************************
*
* Copyright (C) 2018 Xilinx, Inc.
*
******************************************************************************/
/**
* @file client.c
* @addtogroup comms_lib
* @{
*
* A sample communicat... | 2.8125 | 3 |
2024-11-18T23:25:47.644087+00:00 | 2016-12-10T14:41:29 | 17978b48580b74b1ff9842a574492cf8f21404c2 | {
"blob_id": "17978b48580b74b1ff9842a574492cf8f21404c2",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-10T14:41:29",
"content_id": "0fce26c99ac84a7da406f863d213cb0bd9a2a2cc",
"detected_licenses": [
"MIT"
],
"directory_id": "4be5d59020c89ce3350694287561a1962f6e64c0",
"extension": "c"... | stackv2 | /*
MIT License
This file is part of cupkee project.
Copyright (c) 2016 Lixing Ding <ding.lixing@gmail.com>
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 ... | 2.296875 | 2 |
2024-11-18T23:25:48.164344+00:00 | 2019-05-26T21:13:46 | e711908008a5e09afa8aaa13b53390dbb4df08cb | {
"blob_id": "e711908008a5e09afa8aaa13b53390dbb4df08cb",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-26T21:13:46",
"content_id": "d6701d84c48482759ec4efe9569b0efe7744a50e",
"detected_licenses": [
"MIT"
],
"directory_id": "f58007650caa54042ad31ab65c553f91f32a6e7d",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_stat2.c :+: :+: :+: ... | 2.609375 | 3 |
2024-11-18T23:25:48.366272+00:00 | 2018-03-28T01:23:12 | 1303c2934e66227e8afcabc0b3d1c88706db75a9 | {
"blob_id": "1303c2934e66227e8afcabc0b3d1c88706db75a9",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-28T01:23:12",
"content_id": "d9b04d7efc7f2d7e1b5119acc2a3eff846d34f4b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "675fad945f3b122166f2c232e3cbee895e68c3ad",
"extensio... | stackv2 | // ***
// Write code for a function threefourths that, for integer argument x, computes
// the value of 3/4*x, rounded towards zero. It should not overflow. Your
// function should follow the bit-level integer coding rules (page 128).
int threefourths(int x) {
int w = sizeof(int) << 3;
int bias = x >> w - 1 & ... | 3.1875 | 3 |
2024-11-18T23:25:48.958401+00:00 | 2012-02-21T20:32:22 | 9aa647c6e6879a2b19ca5d48554193a6d1196e16 | {
"blob_id": "9aa647c6e6879a2b19ca5d48554193a6d1196e16",
"branch_name": "refs/heads/master",
"committer_date": "2012-02-21T20:32:22",
"content_id": "2718667de38f61a065e2d9dd3e237dbf7f038f17",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9ee35f13ab68798b3c9fcecc0ad621aa84e42534",
"extensio... | stackv2 | /**
* Copyright (C) 2012 - 2012, Vrai Stacey.
*
* 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... | 2.046875 | 2 |
2024-11-18T23:25:49.136721+00:00 | 2023-01-28T08:41:33 | 8e529a060f00072cb927fb7379e8dccbafd4f9ff | {
"blob_id": "8e529a060f00072cb927fb7379e8dccbafd4f9ff",
"branch_name": "refs/heads/main",
"committer_date": "2023-01-28T08:41:57",
"content_id": "a1e0142939883f2fde19fa2dc2067390b26de837",
"detected_licenses": [
"MIT"
],
"directory_id": "9dbed52d350c6f4acfbeb86d86cada4775d23297",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <assert.h>
#include <stdint.h>
#include <inttypes.h>
#include "logger.h"
int main(int argc, char *argv[])
{
logger_id_t id = logger_id_unknown;
assert(LOGGER_OK == logger_init());
assert(logger_false == logger_output_is_registered(stdout));
assert(LOGGER_OK == logger_output_regis... | 2.203125 | 2 |
2024-11-18T23:25:49.848640+00:00 | 2016-08-07T15:27:23 | bd091acbbefaa077fd9dc9f3d5757783804e9ce2 | {
"blob_id": "bd091acbbefaa077fd9dc9f3d5757783804e9ce2",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-07T15:27:23",
"content_id": "ffa06af129f7bea1d14720d82be957a1f0806135",
"detected_licenses": [
"BSD-2-Clause",
"MIT"
],
"directory_id": "757042dc7d4e10771f2a3c924bc8fb91e58e1aeb"... | stackv2 | // Update control lines based on global state
#pragma once
#ifndef GUARD_CONTROL_H
#define GUARD_CONTROL_H
#include <Arduino.h> // for byte
// Set up pin modes and global state for control loop
void controlSetup();
// Update status_bits, address_bus and data_bus by reading the values present
// on the buses from th... | 2.328125 | 2 |
2024-11-18T23:25:51.303912+00:00 | 2021-07-31T08:11:55 | 8f48bcdf150ed6a09bbf10520f104f151b6845f4 | {
"blob_id": "8f48bcdf150ed6a09bbf10520f104f151b6845f4",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-31T08:11:55",
"content_id": "fcf893b04e4258a2fece7f6d49b6c07150ed7c6a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ad1160c77440fc178eda12141256d4c1fa576e84",
"extension"... | stackv2 | //
// Created by olive on 2021/7/19.
//
#include <stdio.h>
int main() {
int value;
int value_init = 3;
value = 4;
value_init = 5;
printf("value: %d\n", value);
value_init = value;
printf("size of value: %d\n", sizeof(value));
printf("address of value: %#x\n", &value);
// key words 标识符 identifier
... | 2.703125 | 3 |
2024-11-18T23:25:51.459812+00:00 | 2023-08-31T16:20:55 | 3844fd4506a38eed3a3e283747ca78be55a8c865 | {
"blob_id": "3844fd4506a38eed3a3e283747ca78be55a8c865",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T16:20:55",
"content_id": "ddef3817df8bc513500bb181075c138a94de7b35",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "99bdb3251fecee538e0630f15f6574054dfc1468",
"extensio... | stackv2 | /*
* Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#ifndef PIPE_H__
#define PIPE_H__
#include <rtdef.h>
#include <rtconfig.h>
/**
* Pipe Device
*/
struct rt_pipe_device
{
struct rt_device parent;
r... | 2.0625 | 2 |
2024-11-18T23:25:51.587613+00:00 | 2023-07-14T10:13:16 | 0e6ba3285932a705ac991aecfb832a4cc9080e2e | {
"blob_id": "0e6ba3285932a705ac991aecfb832a4cc9080e2e",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-14T10:13:16",
"content_id": "52b4ff0f970afcfb5d6771172f63b2889f95824f",
"detected_licenses": [
"Zlib",
"Apache-2.0"
],
"directory_id": "35ddd0f3036ac38423ded0435cd4b595f5dab31c",... | stackv2 | #ifndef lint
static char sccsid[] = "@(#)blok.c 4.2 8/11/83";
#endif
#
/*
* UNIX shell
*
* S. R. Bourne
* Bell Telephone Laboratories
*
*/
#include "defs.h"
/*
* storage allocator
* (circular first fit strategy)
*/
#define BUSY 01
#define busy(x) (Rcheat((x)->word)&BUSY)
POS brkincr=BRKINCR;
BLKPTR blo... | 2.3125 | 2 |
2024-11-18T23:25:52.490957+00:00 | 2023-08-03T22:35:37 | 0fd12d4e8d84ebdaa1253408c1491bc3fa9cf5b9 | {
"blob_id": "0fd12d4e8d84ebdaa1253408c1491bc3fa9cf5b9",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-03T22:35:37",
"content_id": "160dbf713acdf5fb49683a3de442c90263795e7b",
"detected_licenses": [
"Linux-OpenIB"
],
"directory_id": "9bfd61f3ceaf77129b8c7b8441f1c129b2ecc3ea",
"extens... | stackv2 | /******************************************************************************\
* cti_fe_common.c - A test routine that exercises all of the FE API calls.
*
* Copyright 2015-2020 Hewlett Packard Enterprise Development LP.
* SPDX-License-Identifier: Linux-OpenIB
****************************************************... | 2.046875 | 2 |
2024-11-18T23:25:52.949066+00:00 | 2021-08-09T07:26:25 | 72b3c068b9f947b8bc0c60a41bea4e08c101df75 | {
"blob_id": "72b3c068b9f947b8bc0c60a41bea4e08c101df75",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-09T07:26:25",
"content_id": "e6b4b1c280d84e29da2d2cfa83d5d592ed8830dc",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8691943b69641b5dd031f0cd32d14603feecfde3",
"extension"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <drv_uart.h>
#include <printf.h>
#include <encoding.h>
#include <drv_test.h>
void _putchar(char character)
{
uart_putc(character);
}
void test_csr()
{
int vector_base = 0x00200;
asm volatile("csrw 0x301,%0"::"r"(vector_base));
}
int main(void)
{
uart_init()... | 2 | 2 |
2024-11-18T23:25:53.109801+00:00 | 2019-10-28T08:34:00 | d1bf0f0b1c0f6e36f4dee473c890db633813fa08 | {
"blob_id": "d1bf0f0b1c0f6e36f4dee473c890db633813fa08",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-28T08:34:00",
"content_id": "9f09e28084356c52ae1625de97fdd8b38e7b94ba",
"detected_licenses": [
"MIT"
],
"directory_id": "0f0f094609ae489277c5cfd3859b52dfa3381fe9",
"extension": "c"... | stackv2 | /**
* Name: Marc Julian Jamerlan
* Lab: Lab 4
* Date: 9/22/18
**/
#include "matrixMult.h"
void free_matrices(int **a, int **b, int **c, int m, int k)
{
for(int i = 0; i < m; i++)
{
free(a[i]);
free(c[i]);
}
for(int i = 0; i < k; i++)
{
free(b[i]);
}
free(a);
free(b);
free(c);
}
int main(int argc, ch... | 3.296875 | 3 |
2024-11-18T23:25:53.197547+00:00 | 2022-01-31T04:36:44 | 99ad1581c8bbfc5352da65036ab6a3a776dd8f5b | {
"blob_id": "99ad1581c8bbfc5352da65036ab6a3a776dd8f5b",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-31T04:36:44",
"content_id": "bd833ae90478f76714cf2f357c0e4b39d59009a1",
"detected_licenses": [
"MIT"
],
"directory_id": "e1c02087e71617b1bdfb6ed8f139a35f0e8ce9c7",
"extension": "c"... | stackv2 | #include <stdio.h>
int main() {
// Addition
printf("%d\n", 2+3);
// Subtraction
printf("%d\n", 5-2);
// Multiplication
printf("%d\n", 2*3);
// Integer Division (not recommended, as integers are intended for counting; they're not'real numbers'.
printf("%d\n", 6/3); // does integer division(or truncated... | 3.34375 | 3 |
2024-11-18T23:25:53.248535+00:00 | 2017-06-21T19:43:45 | a4c07e9a08e417a1bdceaf2fe533b2a9d27805c6 | {
"blob_id": "a4c07e9a08e417a1bdceaf2fe533b2a9d27805c6",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-21T19:43:45",
"content_id": "c5f89b3dd62094889de0006f60244a02136eea5e",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "4135539a96ff1e23d711b1e8778b8ff1... | stackv2 | #include <pthread.h>
void *dostuff(void *x) {
int *z = (int *) x;
*z = 3;
}
int main(int argc, char **argv) {
int a;
pthread_t t1;
pthread_create(&t1, NULL, dostuff, &a);
pthread_create(&t1, NULL, dostuff, &a);
}
| 2.21875 | 2 |
2024-11-18T23:25:53.640015+00:00 | 2020-01-10T09:38:38 | 8fd67ffdcacd649f7f7113b120807cfb75cf84e4 | {
"blob_id": "8fd67ffdcacd649f7f7113b120807cfb75cf84e4",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-10T09:38:38",
"content_id": "07640dddd4e5763e4c29173a7f16f729c3983d23",
"detected_licenses": [
"MIT"
],
"directory_id": "869b3a7bd447324882fb12f3f7c271f02457d14c",
"extension": "c"... | stackv2 | /**
* @file dsp.c
* @brief DSP driver
* @author matyunin.d
* @date 23.07.2019
*/
#include "dsp.h"
#include "dsp_ioctl.h"
#include "../hal/hal.h"
#include "../lib/calc.h"
#include "syncmaster.h"
#include <string.h>
static dsp_ioctl_dev_t dsp_ioctl_dev;
#define MAGIC 0xA57E00AC
#define DELAY_RESET_MS 100
#de... | 2.390625 | 2 |
2024-11-18T23:25:53.946989+00:00 | 2009-05-02T04:43:29 | 27eb3bd0eec6897902e434ca88ccbf3d03e01a3b | {
"blob_id": "27eb3bd0eec6897902e434ca88ccbf3d03e01a3b",
"branch_name": "refs/heads/master",
"committer_date": "2009-05-02T04:43:29",
"content_id": "5b37bdef42a67069ea27cccb4d61ac48849c600a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "61421701da915b62d32402292af6c26289ad8221",
"extens... | stackv2 |
#include "fnv.h"
#define FNV_PRIME 16777619
#define MAX 4294967296
unsigned int fnv_hash(const void* key, int length, unsigned int seed) {
const unsigned char * data = (const unsigned char*) key;
int n;
unsigned int xord;
unsigned int hash = seed;
for(n=0; n < length; n++) {
xord = hash ^ data[n];
... | 2.578125 | 3 |
2024-11-18T23:25:54.433651+00:00 | 2022-08-24T11:13:35 | 8bfdc5f1e1deeaacf5a816cbc35ec6c77a370585 | {
"blob_id": "8bfdc5f1e1deeaacf5a816cbc35ec6c77a370585",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-24T11:13:35",
"content_id": "614551ee1d1ce6c0dbee2a8791790c0f7f9a0ea2",
"detected_licenses": [
"MIT"
],
"directory_id": "4fba6fbb3560b634d4e47fe9ac753cc1676df4d1",
"extension": "h"... | stackv2 | /*! \file agios_request.h
\brief Definitions of the data structures used to make queues of requests and to hold information about files (and access statistics).
*/
#pragma once
#include <pthread.h>
#include <stdbool.h>
#include <stdint.h>
#include "mylist.h"
struct request_t;
/*! \struct queue_statistics_t
... | 2.453125 | 2 |
2024-11-18T23:25:54.530632+00:00 | 2016-10-28T02:56:47 | 28acc6683ed9b5461963c7574347b3c04984c0be | {
"blob_id": "28acc6683ed9b5461963c7574347b3c04984c0be",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-28T02:56:47",
"content_id": "2f524e3c014cfdec6fb34ce17ae8e0b8ef9d1051",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4945fb8cf0527649d29124ea74bdbab0ae1fb910",
"extens... | stackv2 | // ianbeer
// clang -O3 -o task_nicely_t task_nicely_t.c
/*
task_t considered harmful
TL;DR
you cannot hold or use a task struct pointer and expect the euid of that task to stay the same.
Many many places in the kernel do this and there are a great many very exploitable bugs as a result.
********
task_t is just a ... | 2.546875 | 3 |
2024-11-18T23:25:54.688019+00:00 | 2018-06-08T14:45:28 | 80a087fe0e037a02d0387bc1d18ec6cb70d9af20 | {
"blob_id": "80a087fe0e037a02d0387bc1d18ec6cb70d9af20",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-08T14:45:28",
"content_id": "c9199717e444b0360d423a2db69b38277345e221",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5ed46418204d4b83dfc67f5a540d111119f729ed",
"extensio... | stackv2 | /* Copyright (c) 2018 Arrow Electronics, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License 2.0
* which accompanies this distribution, and is available at
* http://apache.org/licenses/LICENSE-2.0
* Contributors: Arrow Electronics, Inc.... | 2.078125 | 2 |
2024-11-18T23:25:54.763433+00:00 | 2016-12-07T11:02:14 | 3d4cb235de3f8c9c8de5902de6663a8981905929 | {
"blob_id": "3d4cb235de3f8c9c8de5902de6663a8981905929",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-07T11:02:14",
"content_id": "b0fd01638c35708db85f2ec02712f87c26c54d90",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9b8b16e7713721fd9b18cb081846e2270a958b9d",
"extens... | stackv2 | /*
module : print.c
version : 1.12
date : 10/17/16
*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <time.h>
#include "memory.h"
#include "globals1.h"
#include "compile.h"
#define P(x) utstring_printf(str, x)
#define Q(x, y) utstring_printf(str, x, y)
#define ... | 2.703125 | 3 |
2024-11-18T23:25:55.097945+00:00 | 2021-09-02T05:02:37 | 81b9ec7e2b308ee0e16d6d06b792302bc61476c8 | {
"blob_id": "81b9ec7e2b308ee0e16d6d06b792302bc61476c8",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-08T22:14:26",
"content_id": "59d558b9f81152b3ef0a2abaa0c7664b84993f77",
"detected_licenses": [
"MIT"
],
"directory_id": "d3dbde5badcffc34f3c5ba9185acfe745cf0f95e",
"extension": "c",
... | stackv2 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include <myst/getopt.h>
#include <myst/eraise.h>
#include <string.h>
int myst_getopt(
int* argc,
const char* argv[],
const char* opt,
const char** optarg,
char* err,
size_t err_size)
{
int ret = 0;
size_t olen... | 2.578125 | 3 |
2024-11-18T23:25:55.228189+00:00 | 2020-11-12T01:40:48 | 3204e45e80b911743a6405ce4eea7194f04de930 | {
"blob_id": "3204e45e80b911743a6405ce4eea7194f04de930",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-12T01:40:48",
"content_id": "4a9a96df205cb095fcd9d121a07cc38569c01e27",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "57eba9063c7e90877207c3ccff9316ccd4ef2527",
"extens... | stackv2 | /* $Id: tty.c,v 1.21 2013/09/24 00:18:39 phil Exp $ */
/*
* tty mode, echo
* POSIX.1 version
*/
/*
* Tries to detect multiple fd's on same device (e.g. stdin, stderr)
* using fstat() and comparing rdev, but /dev/tty (which could
* indirectly refer to the same device open on stdin) slips by, and
* gets entered ... | 2.375 | 2 |
2024-11-18T23:25:55.403112+00:00 | 2023-07-11T06:27:37 | d851e3bb1ea25e978810cc003f20b186b65b6a9f | {
"blob_id": "d851e3bb1ea25e978810cc003f20b186b65b6a9f",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-11T06:27:37",
"content_id": "04386c633332bb7f04c86b598fa892dd7a040193",
"detected_licenses": [
"MIT"
],
"directory_id": "84763d0d4286a25aa35b0dfe024818ea3d2771b6",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define MAX_WORD_LEN 100
#define NR_OF_LINKING_WORDS sizeof(linking_words) / sizeof(linking_words[0])
enum boolean
{
FALSE,
TRUE
};
struct list_node
{
size_t line_number;
struct list_node *next;
};
struct tree_node
{
char *word;... | 3.171875 | 3 |
2024-11-18T23:25:55.611507+00:00 | 2017-04-07T01:53:04 | 406f753802545a0d07ec7940dbe2192a3f215e63 | {
"blob_id": "406f753802545a0d07ec7940dbe2192a3f215e63",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-07T01:53:04",
"content_id": "b0af64e20d3ca4ed5f54b18a4ae4830d7cf37250",
"detected_licenses": [
"MIT"
],
"directory_id": "93a0693e997f1cc27c14d50782c74af73a464b05",
"extension": "c"... | stackv2 | /* $CORTO_GENERATED
*
* ValueCast.c
*
* Only code written between the begin and end tags will be preserved
* when the file is regenerated.
*/
#include <include/test.h>
corto_void _test_ValueCast_tc_castBinaryBool(
test_ValueCast this)
{
/* $begin(test/ValueCast/tc_castBinaryBool) */
corto_word w = 10;
... | 2.40625 | 2 |
2024-11-18T23:25:55.772102+00:00 | 2021-09-16T02:39:59 | aa679d2e1b3d4387e04b06b9e4568ba8da02be16 | {
"blob_id": "aa679d2e1b3d4387e04b06b9e4568ba8da02be16",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-16T02:39:59",
"content_id": "db7c4287d3e958bd4f742fa5497ded12ac5c2f42",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f3a1a932bf417e62d426023d0c71441d27d5b120",
"extensio... | stackv2 | #include "seq_num_internal.h"
#include <stdint.h>
#define SEQ_NUM_SIZE (1 << 16)
#define SEQ_NUM_MIDSIZE (SEQ_NUM_SIZE >> 1)
//==================================================================
// PUBLIC
//==================================================================
uxrSeqNum ux... | 2.78125 | 3 |
2024-11-18T23:25:55.897469+00:00 | 2023-07-23T13:15:03 | 9d781007c6553f3e12144269f73d8325c4c6557d | {
"blob_id": "9d781007c6553f3e12144269f73d8325c4c6557d",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-23T13:15:03",
"content_id": "e11715ba110f3351ee38cdb73a9735a0141fc040",
"detected_licenses": [
"ISC"
],
"directory_id": "b5f22d6878718f740800c3d31a326c63b2cb3708",
"extension": "c"... | stackv2 | /* ISC license. */
#include <string.h>
#include <errno.h>
#include <s6-dns/s6dns-domain.h>
unsigned int s6dns_domain_tostring (char *s, size_t max, s6dns_domain_t const *d)
{
if ((size_t)d->len + 1 > max) return (errno = ENAMETOOLONG, 0) ;
if (!d->len || (d->s[0] != '.')) return (errno = EINVAL, 0) ;
if (d->len... | 2.4375 | 2 |
2024-11-18T23:25:56.642373+00:00 | 2017-09-05T20:15:09 | af94016091d3be59531ad68bdf8560495429cd33 | {
"blob_id": "af94016091d3be59531ad68bdf8560495429cd33",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-05T20:15:09",
"content_id": "eda54d160c2a33ecbdb4669e3a93baed41662af3",
"detected_licenses": [
"MIT"
],
"directory_id": "87333ea7e1f053e16a8b7f2286ae1ae05ed7e8d5",
"extension": "c"... | stackv2 | /**
* \file
* ProductA price Resource
* \author
* Paolo Sassi
* \author
* Matteo Rotundo
*/
#include "contiki.h"
#include <stdlib.h>
#include <string.h>
#include "rest-engine.h"
#include "vending_machine.h"
#include "float-handling.h"
extern struct product productA;
static void productAprice_ge... | 2.53125 | 3 |
2024-11-18T23:25:56.769821+00:00 | 2019-09-30T01:27:42 | 37f67d30ec2df41d0d59a6850366b6a07d709e83 | {
"blob_id": "37f67d30ec2df41d0d59a6850366b6a07d709e83",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-30T01:27:42",
"content_id": "3cfa895b341ea08bc396bcffbbebf1caefc77394",
"detected_licenses": [
"BSD-2-Clause-Views",
"BSD-2-Clause"
],
"directory_id": "0952cf146613d4ebf08213587d... | stackv2 | /*******************************************************************
* Copyright (C) 2011 Rensselaer Polytechnic Institute *
* This work is licensed under the FreeBSD License. *
* Please see the included LICENSE file in the top level directory. *
********************************************... | 2.375 | 2 |
2024-11-18T23:25:57.207717+00:00 | 2023-08-31T06:02:16 | 25f9ade547efb02bada60f0f53f83f4f75ce397d | {
"blob_id": "25f9ade547efb02bada60f0f53f83f4f75ce397d",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-31T06:02:16",
"content_id": "461b01391ab0855bb4339074e5b5aa25bdfece7e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "db80135575b1a11a851d78b164a266b9a5523ff6",
"extension"... | stackv2 | /**
* This code is part of Qiskit.
*
* (C) Copyright IBM 2022.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications or ... | 2.34375 | 2 |
2024-11-18T23:25:57.363419+00:00 | 2022-06-07T18:31:24 | 422e8c06eef663c2f72f44af91de8405cce234c1 | {
"blob_id": "422e8c06eef663c2f72f44af91de8405cce234c1",
"branch_name": "refs/heads/main",
"committer_date": "2022-06-07T18:31:24",
"content_id": "de9937e3aa77691fca865ffce3333f3bc384e9ee",
"detected_licenses": [
"Apache-2.0",
"MIT-0",
"MIT"
],
"directory_id": "4b61201d0582bf0eaea812484e11d2d1... | stackv2 | /**
* please connect GPIO18 to GPIO19
*/
#include "stdio.h"
#include <string.h>
#include "driver/rmt.h"
#include "unity.h"
#include "test_utils.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "freertos/semphr.h"
#include "esp_err.h"
#include "esp_log.h"
#include "driv... | 2.390625 | 2 |
2024-11-18T23:25:57.547232+00:00 | 2019-03-01T05:16:46 | b27269035411459572b14ac48e4d74fe21442acc | {
"blob_id": "b27269035411459572b14ac48e4d74fe21442acc",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-01T05:16:46",
"content_id": "eecdf509f8c597104e2a6c656a06790016b20560",
"detected_licenses": [
"MIT"
],
"directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f",
"extension": "c"... | stackv2 | // canglong.c
inherit ROOM;
void create()
{
set("short", "蒼龍嶺");
set("long", @LONG
華山五峯中最驚險的是北峯,北峯之上最陡峭的則是蒼龍嶺。此
嶺高約百米,寬僅一米,而登山之路則在其山脊之上,兩側脊坡光滑
挺拔,其下懸崖深邃,雲濤隱伏,嶺體蜿蜒逶迤,體青背黑,如蒼龍
騰空,故有是名。嶺側有一石碑(shibei)。 從這裏往東是下山的
路,再往南是上其它四峯的路,西面是華山極險處之一,叫做『捨身
崖』。
LONG );
set("exits", ([ /* sizeof() == 3 */
... | 2.09375 | 2 |
2024-11-18T23:25:57.701940+00:00 | 2018-10-18T21:00:24 | 8b373673cd333f5c7cbf7c73d5272073b865d464 | {
"blob_id": "8b373673cd333f5c7cbf7c73d5272073b865d464",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-18T21:00:24",
"content_id": "27f59e39a9ebffc07b79438c208d4c6795a916ec",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "294b63693675ddcf527a2d78aa40cebfd9869cd4",
"extens... | stackv2 | #include <math.h>
#include <purescript.h>
PURS_FFI_FUNC_1(Data_Show_showIntImpl, x, {
if (purs_any_is_NaN(x)) {
return purs_any_string_new(afmt("%f", NAN));
} else {
return purs_any_string_new(afmt("%i", purs_any_get_int(x)));
}
});
PURS_FFI_FUNC_1(Data_Show_showNumberImpl, x, {
return purs_any_string_new(afm... | 2.46875 | 2 |
2024-11-18T23:25:57.841424+00:00 | 2021-05-19T19:08:42 | 776a46fbeb047248b04fc3d30b0e2bbdd554ffc2 | {
"blob_id": "776a46fbeb047248b04fc3d30b0e2bbdd554ffc2",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-19T19:08:42",
"content_id": "5d73c72e25f2ade4ea639031f0e10b2e8877495d",
"detected_licenses": [
"MIT"
],
"directory_id": "b1edd780d6827e947cdb6d052fe55ff3d289e25a",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "formats/internal/reader.h"
#include "formats/internal/memreader.h"
sd_mreader* sd_mreader_open(char *buf, long len) {
sd_mreader *reader = malloc(sizeof(sd_mreader));
reader->buf = buf;
reader->pos = 0;
reader->len = len;
reader... | 2.453125 | 2 |
2024-11-18T23:25:58.134777+00:00 | 2017-09-06T00:51:24 | 5efaccfc352e2479a50126e767db7227ff9de48e | {
"blob_id": "5efaccfc352e2479a50126e767db7227ff9de48e",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-06T00:51:24",
"content_id": "c740b2968457664d6ac410dc29a28016eea248f8",
"detected_licenses": [
"MIT"
],
"directory_id": "cc317cdd2a8ea57bd9959eb95a697c9a623d1c88",
"extension": "c"... | stackv2 | #include "hal_lcd.h"
#include "spi.h"
#include "gpio.h"
#include "util.h"
lcd_function_set_h_t H = LCD_FUNCTION_SET_H_BASIC_INSTR_SET;
lcd_function_set_v_t V = LCD_FUNCTION_SET_V_HORIZONTAL;
lcd_function_set_pd_t PD = LCD_FUNCTION_SET_PD_POWER_DOWN;
#ifndef LCD_BIT_BANGING
static volatile uint8_t hal_lcd_spi_transac... | 2.078125 | 2 |
2024-11-18T23:25:58.379558+00:00 | 2015-12-10T01:25:51 | cf9f97ded1ab2a0d806a739b78b8d55d5ac51658 | {
"blob_id": "cf9f97ded1ab2a0d806a739b78b8d55d5ac51658",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-10T01:25:51",
"content_id": "0d17dcb094f3528d6161ba15ad78a3dcc2fd6c6e",
"detected_licenses": [
"MIT"
],
"directory_id": "2faeb0d1c4907470605b9afdd53d1e6a547bb8bd",
"extension": "c"... | stackv2 | /*
Team: 6546
Competition: Vex Nothing but Net [2015]
Authors: Aaron Cruz, Vivek Nair
*/
/*
Motor Reference
---------------
Port 2: Back Left Drive Motor
Port 3: Back Right Drive Motor
Port 4: Front Left Drive Motor
Port 5: Front Right Drive Motor
Port 6: Left Shooter Motor
Port 7: Right Sh... | 2.46875 | 2 |
2024-11-18T23:25:58.637593+00:00 | 2018-01-26T18:44:08 | 79265fbe47c55602aea8fd9f4171bf5a8ecd8515 | {
"blob_id": "79265fbe47c55602aea8fd9f4171bf5a8ecd8515",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-26T18:44:58",
"content_id": "5460fc34bcc1f7994b12c0a1e80635255fc21779",
"detected_licenses": [
"MIT"
],
"directory_id": "4a18370b7270d8b4dd5b79622ed6a183518f4414",
"extension": "c"... | stackv2 | #include "c-functions.h"
void values_molecules_without_missing_values(const double* values, const long number_of_molecules, const long number_of_samples, const long* sample_indices, const long sample_indices_length, long* molecule_indices, long* molecule_indices_length)
{
long counter = 0;
for (long i ... | 2.53125 | 3 |
2024-11-18T23:25:58.708033+00:00 | 2021-10-18T16:13:26 | b1b5fe3fb4c68d072e19b559d90cefacfb5978d6 | {
"blob_id": "b1b5fe3fb4c68d072e19b559d90cefacfb5978d6",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-18T16:13:26",
"content_id": "6de5321b20ed0a39d3ab7137d86d3c09e4bba5eb",
"detected_licenses": [
"MIT"
],
"directory_id": "22f0fe65f528df4d2f4f50792c7992ce248f9d83",
"extension": "c"... | stackv2 | void foo(void) {
int x, y;
__builtin_choose_expr(1, x, 0/0) = 10;
__builtin_choose_expr(0, x/0, y) = 32;
__builtin_choose_expr(x, 1, 2);
int z = __builtin_choose_expr(1>0, 1, (char *)5);
float f = __builtin_choose_expr(0!=0, (char *)10, 1.0f);
}
#define EXPECTED_ERRORS "builtin choose expr.c:5:... | 2.171875 | 2 |
2024-11-18T23:25:58.804794+00:00 | 2018-06-24T21:36:44 | 252c93a12c058e2cbabcb8cdf162baa3757e04fa | {
"blob_id": "252c93a12c058e2cbabcb8cdf162baa3757e04fa",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-24T21:36:44",
"content_id": "0b2059e5ba6e921661b502392a76639618f189c5",
"detected_licenses": [
"MIT"
],
"directory_id": "c765d6ea08427c34198dfe3ce6062deab40329e8",
"extension": "c"... | stackv2 | /*
* MIT License
*
* Copyright (c) 2017 hockeyhurd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | 2.546875 | 3 |
2024-11-18T23:25:58.910687+00:00 | 2012-09-29T20:34:45 | a3cd0e0c381cd4a461b69d91d2c19c0e8bb949de | {
"blob_id": "a3cd0e0c381cd4a461b69d91d2c19c0e8bb949de",
"branch_name": "refs/heads/master",
"committer_date": "2012-09-29T20:34:45",
"content_id": "a6535ea527c966aab9a47a395f2d89ea444751f6",
"detected_licenses": [
"MIT"
],
"directory_id": "d78dea336f24673b7a88fe39f210d59233385399",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdbool.h>
#include "dbg.h"
#include "node.h"
#include <llvm-c/Core.h>
#include <llvm-c/Analysis.h>
//==============================================================================
//
// Functions
//
//==============================================================================
//---... | 2.703125 | 3 |
2024-11-18T21:23:16.502027+00:00 | 2019-05-09T13:42:41 | 97ba51800b1a6dada6ceafb4148ab4eb7a6a51b1 | {
"blob_id": "97ba51800b1a6dada6ceafb4148ab4eb7a6a51b1",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-09T13:42:41",
"content_id": "cca52ca0e73b0841b45f48a797865c524bc9a592",
"detected_licenses": [
"MIT"
],
"directory_id": "dbe0f4a287cb8ea5f3c218ecd6d35583db7170e9",
"extension": "c"... | stackv2 | /*
* Baseado na Figura 2.10 do livro texto, evitando warnings do código original.
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
// Numero de threads
#define N 10
void* f_thread(void* v) {
// Recebe o identificador da thread
int t_id = *(int*)v;
// Imprime o identificador da thread
printf("... | 3.53125 | 4 |
2024-11-18T21:23:17.099386+00:00 | 2020-04-18T15:49:03 | 20a4a0681b9e0c3497733eea0d7e466a2b543485 | {
"blob_id": "20a4a0681b9e0c3497733eea0d7e466a2b543485",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-18T15:49:03",
"content_id": "65268bac7beccb3000420188d695bf68a525bd9b",
"detected_licenses": [
"MIT"
],
"directory_id": "3874a909e3152fda6a87dbb0ef05b18d6908807c",
"extension": "h"... | stackv2 | #include <stdint.h>
#include <stdbool.h>
#include "memory.h"
#ifndef CPU_H
#define CPU_H
#define CLEAR_FLAG(cpu,shift) cpu->registers.flags &= ~(1 << shift)
#define SET_FLAG(cpu,shift) cpu->registers.flags |= (1 << shift)
#define GET_FLAG(cpu,shift) (cpu->registers.flags >> shift) & 1
struct registers
{
uint32... | 2.15625 | 2 |
2024-11-18T21:34:03.192577+00:00 | 2023-08-10T04:39:39 | f8a1e748e9f420587665bfff0cde50a43c2ad32c | {
"blob_id": "f8a1e748e9f420587665bfff0cde50a43c2ad32c",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-10T17:49:20",
"content_id": "f6e20caae50a22badd47d8e83a85d614a4a71242",
"detected_licenses": [
"MIT"
],
"directory_id": "cee92c2ef49a141806d48304c463a9e010b5fa21",
"extension": "c"... | stackv2 | /* Glue between the socket/daemon code and the VFD direct access library. */
/* Copyright 2013 Boris Gjenero. Released under the MIT license. */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#ifdef WIN32
#include <winsock.h>
#else
#include <unistd.h>
#include <sys/io... | 2.09375 | 2 |
2024-11-18T21:34:03.499128+00:00 | 2021-01-05T10:44:21 | ead53634fc081165f3002ab33d423b34e586dcb9 | {
"blob_id": "ead53634fc081165f3002ab33d423b34e586dcb9",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-05T10:44:21",
"content_id": "3841b880780b31a75302ba1cc32af26e0267cdfb",
"detected_licenses": [
"MIT"
],
"directory_id": "53ddfcffed525082f7287efc77d75b76be339f83",
"extension": "c"... | stackv2 |
#include "daemon_pub.h"
#include "devm_main.h"
#if T_DESC("cmd", 1)
int cli_sys_cfg_list(int argc, char **argv)
{
DYN_CFG_S *dyn_cfg;
vos_print("top_conf : %s\r\n", sys_conf.top_conf);
vos_print("drv_conf : %s\r\n", sys_conf.drv_conf);
vos_print("hwmon_conf ... | 2.03125 | 2 |
2024-11-18T21:34:03.600995+00:00 | 2020-03-13T12:47:19 | 057b9c20c335b32cc3dae649071922eb5415e1f9 | {
"blob_id": "057b9c20c335b32cc3dae649071922eb5415e1f9",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-13T12:47:19",
"content_id": "a147759c9ec8d1612c469cadf8c5f0c5da1fa76d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6efa6ab11a8d3bb5813e664e2c15ed0b29b1d37b",
"extensio... | stackv2 | /*************************************************
* PCRE string replacement *
*************************************************/
/*
PCRE is a library of functions to support regular expressions whose syntax
and semantics are as close as possible to those of the Perl 5 language.
pcre_subst is a ... | 2.15625 | 2 |
2024-11-18T21:34:03.982923+00:00 | 2020-03-01T04:18:24 | b61e9fc749f9432951997bb916c033ae0f7a5c62 | {
"blob_id": "b61e9fc749f9432951997bb916c033ae0f7a5c62",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-01T04:18:24",
"content_id": "40e983d888b95be24015f8ebc1b7f7ac1d52fec0",
"detected_licenses": [
"MIT"
],
"directory_id": "d668647cb76b7d24e1f617f0b1a5b223f733c0c0",
"extension": "c"... | stackv2 | #include "mana/graphics/dualcontouring/dualcontouring.h"
#define MAX_THRESHOLDS 5
int HelloThread(void* aArg) {
printf("Hello world!\n");
return 0;
}
int dual_contouring_init(struct DualContouring* dual_contouring, struct VulkanRenderer* vulkan_renderer, int octree_size, struct Shader* shader, struct Vector* noi... | 2.140625 | 2 |
2024-11-18T21:34:04.148097+00:00 | 2015-11-11T18:04:21 | c90e9f595dfa771ebbf85e5d6d68dc40efde8691 | {
"blob_id": "c90e9f595dfa771ebbf85e5d6d68dc40efde8691",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-11T18:04:21",
"content_id": "9e7f4d1c6c4138ddc0b8583cbd527b9f2322d07d",
"detected_licenses": [
"MIT"
],
"directory_id": "e38b1ab16eb500e4275c32a73e9125a575c55168",
"extension": "c"... | stackv2 | #include "pila.h"
#include <stdlib.h>
/* Defino el tamaño inicial con el que se creará la pila */
#define TAM_INICIAL 20
/* Defino el factor por el cual el tamaño de la pila aumentará en cada redimención */
#define FACTOR_INCREMENTO 2
/* Definición del struct pila proporcionado por la cátedra. */
struct pila {
voi... | 2.984375 | 3 |
2024-11-18T21:34:04.492229+00:00 | 2020-08-31T22:02:52 | b6ac9834a6549bd8d1ebbdebdc5b7431928b3dbe | {
"blob_id": "b6ac9834a6549bd8d1ebbdebdc5b7431928b3dbe",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-31T22:02:52",
"content_id": "c347c564d61afca0d3efd5623fbaec063141579d",
"detected_licenses": [
"MIT"
],
"directory_id": "5e5aabe453901e878dcbc0281a929429259740fd",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include "parse_opts.h"
#define OPTS_START '-'
#define OPTS_LONG_ASSING '='
#define SHORT_NAME_BUFF_LEN 3
#define LONG_NAME_BUFF_LEN 128
enum {SHORT, LONG, ARG, DOUBLE_DASH};
//-----------------------------------------------------------------------------
static in... | 2.421875 | 2 |
2024-11-18T21:34:06.431414+00:00 | 2021-11-27T19:44:26 | acda291c5a5c7b8d353b299ad5689d109e6ad07a | {
"blob_id": "acda291c5a5c7b8d353b299ad5689d109e6ad07a",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-27T19:44:26",
"content_id": "c2c5b42429f50087b8dba99d3ca9354cfefb1fe2",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b6acd6eed2b8946c1c1e19fa30081cbab0a2954f",
"extens... | stackv2 | /*
* File : fir.c
*
* Change Logs:
* Date Author Notes
* 2018-06-13 zoujiachi first version.
*/
#include "fir.h"
#include "console.h"
#include "global.h"
#include <math.h>
void fir_init(FIR* fir, int order, float* coeff, float* buffer_addr)
{
fir->fir_length = order+1;
fir->fir_coe... | 2.75 | 3 |
2024-11-18T21:34:06.519626+00:00 | 2018-02-13T04:38:05 | 7e964698095699f87528d5b455c1066f0bb47c5d | {
"blob_id": "7e964698095699f87528d5b455c1066f0bb47c5d",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-13T04:38:05",
"content_id": "b49019bbc5434f986586406e3894917b08ce9ceb",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "2d2271a6aab9cfedaf1bac0941630942fb86f1b9",
"extens... | stackv2 | /** Sets all members of the MotionRequest representation for executing a PercentageSpeedMode-WalkRequest
* (i.e. Walk at a \c speed)
* @param speed Walking speeds, in percentage.
* e.g. Pose2f(0.f, 1.f, 0.f) lets move the robot forward at full speed
* Pose2f(0.f, 0.5f, 0.5f) l... | 2.515625 | 3 |
2024-11-18T21:34:06.663737+00:00 | 2016-05-30T10:20:15 | fcb22d54da1a4716fcca5006a071d4bd6faa5cbe | {
"blob_id": "fcb22d54da1a4716fcca5006a071d4bd6faa5cbe",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-30T10:20:15",
"content_id": "b96850d82e2daa38ab4249fc7d9708846a007360",
"detected_licenses": [
"MIT"
],
"directory_id": "853c95632e559e2d8b771b1ba503b15433463270",
"extension": "c"... | stackv2 | /* $Id: hls.c,v 1.2 2011/03/31 22:31:19 alex Exp $ */
/*******************************************************************************
Program:
hls
Hierarchical Directory Listing.
Author: Alex Measday
Purpose:
Program HLS generates a recursive directory listing.
Invocation:
% hls [... | 2.1875 | 2 |
2024-11-18T21:34:07.123375+00:00 | 2016-01-27T17:08:17 | 11a6c8d559c3baeb929f5582109f9eaa0d7baf90 | {
"blob_id": "11a6c8d559c3baeb929f5582109f9eaa0d7baf90",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-27T17:08:17",
"content_id": "27908354dc5555eadd24ba72e39933a73624f8d5",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "6b2b36d847e45ae2e4d5643c1132e774ac7a7597",
"... | stackv2 | #include "syscall.h"
int main(){
PutString("Création premier processus : ");
PutInt(ForkExec("userpages0"));
PutChar('\n');
PutString("Création deuxième processus : ");
PutInt(ForkExec("userpages1"));
PutChar('\n');
PutString("Création troisième processus : ");
PutInt(ForkExec("glacier"));
PutChar('\n');
... | 2.453125 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.