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:46:09.338618+00:00
2018-06-21T09:58:40
847ede197081e92de4a653e9e8d3ce17c48a8f33
{ "blob_id": "847ede197081e92de4a653e9e8d3ce17c48a8f33", "branch_name": "refs/heads/master", "committer_date": "2018-06-21T09:58:40", "content_id": "c781c8c6bb65bcf6b23c6ac982ddf3c993d66ad4", "detected_licenses": [ "MIT" ], "directory_id": "49c80323a10f906d1846c6589e43e437fa154707", "extension": "c"...
stackv2
#include "accel.h" /* Developer : HÝrdur Andreasen * Description : Read the ROLL (X? Register) from the 3-Axis Accelerometer MMA7660. * Argument : Average = How often to average (Keep low), Sensitivity = Reduce controller sensitivity) * Return value : uint32_t Average Roll. */ #define MMA7660Adress 0x4C <...
2.703125
3
2024-11-18T21:46:09.717493+00:00
2021-04-18T08:16:03
23514f3e14650cf37fc095465ccdb609ae9a25a3
{ "blob_id": "23514f3e14650cf37fc095465ccdb609ae9a25a3", "branch_name": "refs/heads/main", "committer_date": "2021-04-18T08:16:03", "content_id": "76a1bf48461686ee36253c7e1a03adeef354637d", "detected_licenses": [ "MIT" ], "directory_id": "1304c08032accf997a972e6b1aeb2d4912a6d884", "extension": "c", ...
stackv2
#include "heap.h" /** * TODO: Returnati un vector ce contine cele mai mari k elemente din vector. * HINT: Nu trebuie sa sortati tot vectorul, se poate utiliza un heap de * dimensiune mai mica. Pentru sortarea intregului vector se pot aplica penalizari * @param *buffer: vectorul initial * @param dimensiune: dime...
2.4375
2
2024-11-18T21:46:10.202065+00:00
2019-01-08T06:56:32
43f3e48e032289ab98601dee83564e91d1eb7c4a
{ "blob_id": "43f3e48e032289ab98601dee83564e91d1eb7c4a", "branch_name": "refs/heads/master", "committer_date": "2019-01-08T06:56:32", "content_id": "ad7987b81d20a1baa65d8dc82e96750a2ba8fdbd", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "9435432ac0c8c5a75925419e0a2d816d5450b5cb", "extens...
stackv2
/* * Copyright (C) Igor Sysoev */ #include <ngx_config.h> #include <ngx_core.h> static ngx_uint_t nthreads; static ngx_uint_t max_threads; static pthread_attr_t thr_attr; int ngx_create_thread(ngx_tid_t *tid, void* (*func)(void *arg), void *arg, ngx_log_t *log) { int err; ...
2.671875
3
2024-11-18T21:46:10.522136+00:00
2015-05-24T12:48:59
9b681779ab016e1a868719f916f046ecb39469a9
{ "blob_id": "9b681779ab016e1a868719f916f046ecb39469a9", "branch_name": "refs/heads/master", "committer_date": "2015-05-24T12:48:59", "content_id": "3c1217dd8f19a7f418860cd719e9309478434652", "detected_licenses": [ "Apache-2.0" ], "directory_id": "5b1f1b3ef7c635c25af2d818fba2124ed656c51d", "extensio...
stackv2
/* * * LOGGER v0.0.3 * A simple logger for c/c++ under linux, multiprocess-safe * * ---- CopyLeft by Felix021 @ http://www.felix021.com ---- * * LOG Format: * --LEVEL_NOTE--\x7 [Y-m-d H:m:s]\x7 [FILE:LINE]\x7 [EXTRA_INFO]\x7 log_info * // LEVEL_NOTE stands for one of DEBUG/TRACE/NOTICE... * // \x7 is a sp...
2.703125
3
2024-11-18T21:46:10.618106+00:00
2015-10-13T00:36:00
bdfe1598865547166dc5c4ea7d4f1499ea579ec2
{ "blob_id": "bdfe1598865547166dc5c4ea7d4f1499ea579ec2", "branch_name": "refs/heads/master", "committer_date": "2015-10-13T00:36:00", "content_id": "741b7ee94093fc8edb0d9fe57060eea7ebe578d9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7f381680a445a1854592554e094cea4a37f1b252", "extensio...
stackv2
/* Copyright 2012-present Facebook, Inc. * Licensed under the Apache License, Version 2.0 */ #include "watchman.h" #ifdef __APPLE__ # include <sys/attr.h> # include <sys/vnode.h> #endif #ifdef HAVE_GETATTRLISTBULK typedef struct { uint32_t len; attribute_set_t returned; uint32_t err; /* The attribute data l...
2.171875
2
2024-11-18T21:46:10.680990+00:00
2020-01-01T13:02:41
bbd3e5b4b68d387d1e8d72dcdde94e082fb39e24
{ "blob_id": "bbd3e5b4b68d387d1e8d72dcdde94e082fb39e24", "branch_name": "refs/heads/master", "committer_date": "2020-01-01T13:02:41", "content_id": "db6dbec1cba084e0c7d83f8f716f7c44107b26a8", "detected_licenses": [ "MIT" ], "directory_id": "40aa72b4ac6807eb8b69ab1ebaa61f3d9a19a9f5", "extension": "c"...
stackv2
/* * author: Mahmud Ahsan * https://github.com/mahmudahsan * blog: http://thinkdiff.net * http://banglaprogramming.com * License: MIT License */ /* * Challenge 2 */ #include <stdio.h> int main(){ int integer = 45; float floating = 3030.33; double doubleNum = 4.335; char character = 'C...
3.046875
3
2024-11-18T21:46:11.553271+00:00
2023-07-27T14:49:11
c8e17ae12ea2026d4d85c5f50ab8f1d402cb22f0
{ "blob_id": "c8e17ae12ea2026d4d85c5f50ab8f1d402cb22f0", "branch_name": "refs/heads/master", "committer_date": "2023-07-27T14:49:11", "content_id": "65ed737e13c949a3aa409db14f4eb76d1a082efc", "detected_licenses": [ "MIT" ], "directory_id": "13e2a9bf3ebb4d2c6cdcc5b3cadaa9d87d94933e", "extension": "c"...
stackv2
#ifdef USE_OGGVORBIS #include <stdlib.h> #define OV_EXCLUDE_STATIC_CALLBACKS #include "audio/sources/vorbis_source.h" #include "utils/allocator.h" #include "utils/log.h" #include <vorbis/codec.h> #include <vorbis/vorbisfile.h> typedef struct { OggVorbis_File src_file; int current_section; } vorbis_source; co...
2.296875
2
2024-11-18T21:46:11.791832+00:00
2019-09-06T17:19:39
3194d066c41ddd12a57bfe4cb7d7d1b11138eaff
{ "blob_id": "3194d066c41ddd12a57bfe4cb7d7d1b11138eaff", "branch_name": "refs/heads/master", "committer_date": "2019-09-06T17:19:39", "content_id": "c3cd5ea413453c299debcdef76a8f2a695352bb1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "16e3809fbfb0e12d393ba7ae2979c7fc01047802", "extensio...
stackv2
#include<stdio.h> #include<stdlib.h> struct stack { int data; struct stack *link; }; struct stack *top,*temp; int count=0; void create(); void push(); void view(); void pop(); void top1(); void count1(); void main() { int ans; create(); do { printf("\nSelect option\n"); printf("\...
3.625
4
2024-11-18T21:46:12.347432+00:00
2022-03-14T09:49:15
8f3a8683a10f209e7bf3ab77c6c3d529eb5c3eff
{ "blob_id": "8f3a8683a10f209e7bf3ab77c6c3d529eb5c3eff", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T09:50:00", "content_id": "8175e22097ad07e948f0d83436e67da2c0d8ae1f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e1cddfd754d952134e72dfd03522c5ea4fb6008e", "extensio...
stackv2
/* * Copyright (c) 2018-2019 Cisco and/or its affiliates. * 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 appl...
2.15625
2
2024-11-18T21:46:12.748867+00:00
2021-05-17T20:02:00
06a29fde397a46f9e733b6816dc1355a40bd1acb
{ "blob_id": "06a29fde397a46f9e733b6816dc1355a40bd1acb", "branch_name": "refs/heads/master", "committer_date": "2021-05-17T20:02:00", "content_id": "768788030486062dfb3dd41e34f6abaa35eb00d8", "detected_licenses": [ "MIT" ], "directory_id": "f2ebdcabb5fa9eba66ec0b7984826f5cafbe124a", "extension": "h"...
stackv2
/** * Configuration file */ //Cores loop time #define LOOP_TIME 4000 // microseconds (10^-6 seconds) #define SERVICE_LOOP_TIME 100000 #define SERVICE_FAST_LOOP_TIME 5000 //Fail safe #define FS_WS_THR 400 // cycles, 1 second = FS_WS_THR*LOOP_TIME, e.g. 1 000 * 1 000 = 1 000 000 = 1 second // Serial #define SERIA...
2
2
2024-11-18T21:46:12.807669+00:00
2021-01-26T06:43:01
914b6bf1e0460ee75530a126484eff48dbc9ebcf
{ "blob_id": "914b6bf1e0460ee75530a126484eff48dbc9ebcf", "branch_name": "refs/heads/master", "committer_date": "2021-01-26T06:43:01", "content_id": "be9054bee5f5b5abf7669a2d6f2976c916d91d0c", "detected_licenses": [ "MIT" ], "directory_id": "8c3defe869c6bca347d58ee4118c60280ea8c4d0", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "calc.h" static int MAXVAL = 100; // s[]缓存区的最大长度 static double op1,op2; // 从stack弹出的两个操作数 static void calcfunc(char s[]); int main(void) { calc46(); } void calc46(void) { int c; // 从getop46()返回的操作符类型 char s[MAX...
3.421875
3
2024-11-18T21:46:13.386844+00:00
2023-08-17T06:56:31
781d2c5df8812d0be373b4d705b258d1aef36f6c
{ "blob_id": "781d2c5df8812d0be373b4d705b258d1aef36f6c", "branch_name": "refs/heads/main", "committer_date": "2023-08-17T06:56:31", "content_id": "a6e2e52a0ac4ecdcf3821679c16645d3671d2f81", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8149d6751e142ecbc200b43c2da2d5a94c0735df", "extensio...
stackv2
/** * @file account/account.c Load SIP accounts from file * * Copyright (C) 2010 - 2015 Alfred E. Heggestad */ #include <re.h> #include <baresip.h> /** * @defgroup account account * * Load SIP accounts from a file * * This module is loading SIP accounts from file ~/.baresip/accounts. * If the file exist an...
2.046875
2
2024-11-18T21:46:14.262575+00:00
2016-05-02T17:50:16
d8ac549183161301cedebeffd2127def6705685d
{ "blob_id": "d8ac549183161301cedebeffd2127def6705685d", "branch_name": "refs/heads/master", "committer_date": "2016-05-02T17:50:16", "content_id": "bb4aa6a3d1fc7aa9b7761bcf607d955fa237f078", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d78d0b66880db1250338d04bab66fb35286a32c3", "extens...
stackv2
/** * @file ack.c SIP Session ACK * * Copyright (C) 2010 Creytiv.com */ #include <re_types.h> #include <re_mem.h> #include <re_mbuf.h> #include <re_sa.h> #include <re_list.h> #include <re_hash.h> #include <re_fmt.h> #include <re_uri.h> #include <re_tmr.h> #include <re_msg.h> #include <re_sip.h> #include <re_sipses...
2.046875
2
2024-11-18T21:46:14.810959+00:00
2021-07-16T19:19:05
a546f8d496643d718a38a2a097f6e3f247c413b4
{ "blob_id": "a546f8d496643d718a38a2a097f6e3f247c413b4", "branch_name": "refs/heads/main", "committer_date": "2021-07-16T19:19:05", "content_id": "af13887c56c38c535e6766c54772926cf9d0857e", "detected_licenses": [ "MIT" ], "directory_id": "52f7c64195cd7d5e5b20569a967ecd32141658bb", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "CADlib.h" Point2D *take_point(int p_count, int *return_size){ Point2D *p; int i; char end='n'; if(p_count!=0) { p=(Point2D*)calloc(p_count, sizeof(Point2D)); for(i=0; i<p_count; i++){ printf("Write x and y: "); scanf("%lf %lf", &(p[i...
2.703125
3
2024-11-18T21:46:14.931728+00:00
2016-12-26T08:05:02
998013760fe6b9a15f6a4f62ff6d8a85549beaed
{ "blob_id": "998013760fe6b9a15f6a4f62ff6d8a85549beaed", "branch_name": "refs/heads/master", "committer_date": "2016-12-26T08:05:02", "content_id": "982ef7771b3a870d6e640fa300f99662afe99993", "detected_licenses": [ "MIT" ], "directory_id": "717d1bca67dbe3f59fbd1f958f8ccdf7cf564d18", "extension": "c"...
stackv2
#include<stdio.h> #include<stdlib.h> #define left(i) i*2 + 1 #define right(i) i*2 + 2 #define parent(i) (i-1)/2 void heapify_up(int arr[],int c) { if(c > 0) { if(arr[parent(c)] < arr[c]) { int tmp; tmp = arr[parent(c)]; arr[parent(c)] = arr[c]; arr[c] = tmp; } heapify_up(arr,parent(c)); } } vo...
3.234375
3
2024-11-18T21:46:16.149428+00:00
2020-08-17T07:35:40
952eea2fd8067f611ca2b26a60d0b5ee920c9866
{ "blob_id": "952eea2fd8067f611ca2b26a60d0b5ee920c9866", "branch_name": "refs/heads/master", "committer_date": "2020-08-17T07:35:40", "content_id": "75d96c20822a7dc68869a6fd8af2d79b10af8cda", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "643198932edce224ceacb0ed6b937d181fc1aca3", "extens...
stackv2
/* * Copyright (c) 2008-2020 Stefan Krah. 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 co...
2.3125
2
2024-11-18T21:46:18.254648+00:00
2023-07-30T18:23:24
82f9eebc4baa98da5eab7167beb03982273594d7
{ "blob_id": "82f9eebc4baa98da5eab7167beb03982273594d7", "branch_name": "refs/heads/master", "committer_date": "2023-07-30T18:23:24", "content_id": "8dd730285660c49ef77f8dae07cf9160adac90cf", "detected_licenses": [ "MIT" ], "directory_id": "1e94cb735c55ac9191cd2cf6cb0d187a2e6704f2", "extension": "c"...
stackv2
#include "xutil.h" #include <math.h> #include "mls.h" #include <assert.h> #if 0 #include <cairo/cairo.h> #include <cairo/cairo-xlib-xrender.h> #include <cairo/cairo-xlib.h> #endif /* utilities */ static int xft_font_angle( const char *name,int *n ); void xft_calc_string_size( Widget X, XftFont *fn, char *s, int *w, ...
2.46875
2
2024-11-18T21:46:18.723518+00:00
2017-07-24T22:09:01
32978de96aea356227f57406340a83ff8a222179
{ "blob_id": "32978de96aea356227f57406340a83ff8a222179", "branch_name": "refs/heads/master", "committer_date": "2017-07-24T22:09:01", "content_id": "a3759f443afff08579dfa4a1dc3c72d77f0a69ff", "detected_licenses": [ "MIT" ], "directory_id": "2e71498fad43e6118544fb23d81979ee1579d07f", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* basics.c :+: :+: :+: ...
2.859375
3
2024-11-18T21:46:20.071796+00:00
2020-09-20T04:59:16
b9c6e3cc4291f85f8d46294f5b4af553f2dabc4c
{ "blob_id": "b9c6e3cc4291f85f8d46294f5b4af553f2dabc4c", "branch_name": "refs/heads/master", "committer_date": "2020-09-20T04:59:16", "content_id": "6ee4b8de8afa97d4edc06de37974fb0674741f4b", "detected_licenses": [ "ISC" ], "directory_id": "0423e0bae1b184efb036a875a5661e89811a3bb6", "extension": "c"...
stackv2
/** * librouteros - src/system_health.c * Copyright (C) 2009 Florian octo Forster * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; only version 2 of the License is applicable. * * This...
2.015625
2
2024-11-18T21:46:20.140205+00:00
2011-08-26T04:14:47
819b55caa1ca7ef33a5d71c604add8e527a638c4
{ "blob_id": "819b55caa1ca7ef33a5d71c604add8e527a638c4", "branch_name": "refs/heads/master", "committer_date": "2011-08-26T04:14:47", "content_id": "5cf97ce744d1f1c03338ebec5ba7a49d6745e255", "detected_licenses": [ "MIT" ], "directory_id": "23b07e28fbb20db755bf9ee1a885a28933bdfe23", "extension": "c"...
stackv2
// This is an example program for communicating with an Allen Bradley PLC-5 over // Ethernet. This is only to demonstrate the methodology needed. This program is not // necessarily useful for any other purpose. // Copyright (1999) by Ron Gage #include "../lib/libabplc5.h" #include <sys/types.h> #include <sys/soc...
2.203125
2
2024-11-18T21:46:20.240098+00:00
2014-02-26T05:45:37
f3bb5180d1647740ef0f25bf50f8201533e9b941
{ "blob_id": "f3bb5180d1647740ef0f25bf50f8201533e9b941", "branch_name": "refs/heads/master", "committer_date": "2014-02-26T05:45:37", "content_id": "834eaa9f11371da58e7fc928336a59176aef73a9", "detected_licenses": [ "MIT" ], "directory_id": "53a73804a1815121fe8466b2344072372b8582d9", "extension": "c"...
stackv2
/* Copyright (c) 2013 Kane Mathers * * 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, publish, distr...
2.546875
3
2024-11-18T21:46:20.368388+00:00
2019-08-30T12:32:45
f2f3a460b02380fa5ea8e702a1c9920fdd9a2723
{ "blob_id": "f2f3a460b02380fa5ea8e702a1c9920fdd9a2723", "branch_name": "refs/heads/master", "committer_date": "2019-08-30T12:32:45", "content_id": "41a9f1904739a4c4a680bd34ed8f9fd72df0c8b0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "be5946ff81b9f32b3565e0d1679ae63094419c70", "extensio...
stackv2
/* * Copyright 2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
2.140625
2
2024-11-18T21:46:20.584381+00:00
2013-01-01T21:33:57
184ce7071297defb1b64f8ce1cf98e1cc5fb99d3
{ "blob_id": "184ce7071297defb1b64f8ce1cf98e1cc5fb99d3", "branch_name": "refs/heads/master", "committer_date": "2013-01-01T21:33:57", "content_id": "7ebc10ad1bded11d4456afbceaebaf849f7bf821", "detected_licenses": [ "NCSA" ], "directory_id": "1ecef5939c99cda2a92bcc17770fcbd883ae15b6", "extension": "c...
stackv2
/* * Test basic conversions between short signed and unsigned values * with no function calls and no arithmetic. */ #include <stdio.h> unsigned char getUC() { return 0x80; } char getC() { return 0x80; } int main() { char C80 = getC(); unsigned char UC80 = getUC(); /* source is smaller...
3.578125
4
2024-11-18T21:46:22.093411+00:00
2017-12-06T20:25:35
4a45af7aaabeeaeaa87a73e997fe0d5c7851d5e3
{ "blob_id": "4a45af7aaabeeaeaa87a73e997fe0d5c7851d5e3", "branch_name": "refs/heads/master", "committer_date": "2017-12-06T20:25:35", "content_id": "c65fed670fe14bb49edee378b649c9e2f079aa67", "detected_licenses": [ "MIT" ], "directory_id": "468941d7c9c8813980ac5a887eb75ae7637ab8b5", "extension": "c"...
stackv2
/** * @file utils.c * @author Berki Tamás - PDRE31 * @date 2017.12.02. */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "utils.h" uint64_t strlen_long(char str[]) { uint64_t i; for (i = 0; str[i] != '\0'; ++i); return i; } void error(const char *code, const char *detail) { fprintf(...
2.515625
3
2024-11-18T21:46:30.595282+00:00
2023-08-29T11:36:58
c3ec5c71fb1c5215cb1d4cccb759a5aabe38a074
{ "blob_id": "c3ec5c71fb1c5215cb1d4cccb759a5aabe38a074", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T11:36:58", "content_id": "17682d82341d09e5bf783c967a1bbae74a71474f", "detected_licenses": [ "MIT" ], "directory_id": "8551168c7b71c31eebad0f9b0c71eebbcc743000", "extension": "h"...
stackv2
#include "util.h" /** * Makes the script jump to the next label with the given ID, relative to the * current command. Note that the beginloop macro expands to a label command, so * this will match beginloops too. */ #define goto_next(label) \ mkshort(0x0000), \ label, /** * Makes the script jump to the first l...
2.71875
3
2024-11-18T21:46:30.704539+00:00
2023-07-30T00:47:03
02153c2a9a5e83a1f26866c05d2dbc5829d1c31b
{ "blob_id": "02153c2a9a5e83a1f26866c05d2dbc5829d1c31b", "branch_name": "refs/heads/master", "committer_date": "2023-07-30T00:47:03", "content_id": "605fed591c93da7f65730e206fa35da5a36fd525", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "1b3c247895775f8f20e1a8e47a4f84d07289de4b", "extens...
stackv2
#include <stdio.h> int main() { __wasi_fdstat_t buf; int r = __wasi_fd_fdstat_get(0, &buf); printf("__wasi_fd_fdstat_get returned %d\n", r); printf("fs_filetype %jx\n", (uintmax_t)buf.fs_filetype); printf("fs_rights_base %jx\n", (uintmax_t)buf.fs_rights_base); }
2.0625
2
2024-11-18T21:46:31.281636+00:00
2018-03-20T08:44:49
8779146629620a96055883f06c89f3b1689f7ccb
{ "blob_id": "8779146629620a96055883f06c89f3b1689f7ccb", "branch_name": "refs/heads/master", "committer_date": "2018-03-20T08:44:49", "content_id": "96e94410d324d460b799846fa4d143d205c19102", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a49b362a71f6a74737d4ea6814cc59f821127ff9", "extensio...
stackv2
/* Copyright (C) 2017 haniu (niuhao.cn@gmail.com) * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache...
2.0625
2
2024-11-18T21:46:31.357021+00:00
2020-03-07T02:35:22
6e364d4d3570237f6666e828e446407c1e39a5b6
{ "blob_id": "6e364d4d3570237f6666e828e446407c1e39a5b6", "branch_name": "refs/heads/master", "committer_date": "2020-03-07T02:35:22", "content_id": "4cb6c39b3b1c677856024aa28ee2ca3637f19ee6", "detected_licenses": [ "MIT" ], "directory_id": "9b12573486fb5beb893b96e89d3f322fbbeaf01b", "extension": "c"...
stackv2
/* Find the base variable definition of the C expression. Copyright (C) 2018, Guillaume Gonnet This project is under the MIT License */ #include "private/expressions.h" #include "private/ctycat.h" #include "private/errors.h" #include <stdlib.h> // Get the CU die associated with a filename static int get_cudie(c...
2.40625
2
2024-11-18T21:46:31.987598+00:00
2023-02-16T11:27:40
86038f87b42ba1704c2c3e82d867b2a44a474aee
{ "blob_id": "86038f87b42ba1704c2c3e82d867b2a44a474aee", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "177d07b988a3fd2ea8733b0aada9e2e541a43714", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2022 Codecoup * * SPDX-License-Identifier: Apache-2.0 */ #ifdef CONFIG_BT_HAS #include <zephyr/bluetooth/gatt.h> #include <zephyr/bluetooth/audio/has.h> #include "common.h" extern enum bst_result_t bst_result; const uint8_t test_preset_index_1 = 0x01; const uint8_t test_preset_index_5 = 0x05;...
2.1875
2
2024-11-18T21:46:32.074555+00:00
2018-10-20T13:39:46
24f8334d2f617ec5ed771dcbd6e5c416d69d8a12
{ "blob_id": "24f8334d2f617ec5ed771dcbd6e5c416d69d8a12", "branch_name": "refs/heads/master", "committer_date": "2018-10-20T13:39:46", "content_id": "809c03b683b704b73a1dfd34dbc0e2f26e8ca572", "detected_licenses": [ "Unlicense" ], "directory_id": "394ff61413035e7b099a62ab8daedd119568a2c9", "extension...
stackv2
#include<stdio.h> #include<stdlib.h> typedef struct node { int tag; struct node *next; union shared { int data; struct node *down; }d; }node; node *create(node *head1); node *createnode() { node *new1,*head,*head1,*temp; int j,m,tag; printf("\nenter type of node\n1.atomic\n2.linked list\nenter choice\n"); scanf("%d",&t...
3.421875
3
2024-11-18T21:46:33.570034+00:00
2021-09-10T17:44:42
8001b5f063c56845dd552ade7f06e666b0256519
{ "blob_id": "8001b5f063c56845dd552ade7f06e666b0256519", "branch_name": "refs/heads/master", "committer_date": "2021-09-10T18:00:59", "content_id": "686fce4fde7e6d0800e401f34c991ca6cdaa44ad", "detected_licenses": [ "MIT" ], "directory_id": "05daaefacb0c66f94342fc29552adb3d90db175f", "extension": "c"...
stackv2
// Analog accelerometer app // // Reads data from the ADXL327 analog accelerometer #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include "app_error.h" #include "nrf.h" #include "nrf_delay.h" #include "nrf_gpio.h" #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_log_default_backends.h" #incl...
2.96875
3
2024-11-18T21:46:33.618370+00:00
2018-02-05T14:34:10
bb7068d15b6073ef8ba4531d330ddb727a466f82
{ "blob_id": "bb7068d15b6073ef8ba4531d330ddb727a466f82", "branch_name": "refs/heads/master", "committer_date": "2018-02-05T14:34:10", "content_id": "375024674d547198ea5f60ad4b22f8fef7db6b55", "detected_licenses": [ "MIT" ], "directory_id": "751a186627fa12b9b42fa3b3ba810292d2404727", "extension": "c"...
stackv2
/* * Circus - simple, lightweight browser for xOS * Copyright (C) 2017 by Omar Mohammad */ #include <xos.h> #include <string.h> #include "parse.h" #include "render.h" extern xos_window window; extern char status_text[64]; extern char current_uri[512]; extern char idle_status_text[]; extern char loading_status_tex...
2.296875
2
2024-11-18T21:46:34.533675+00:00
2021-01-02T14:13:01
934f35429098cfb44bc854430d290ba12e689e6d
{ "blob_id": "934f35429098cfb44bc854430d290ba12e689e6d", "branch_name": "refs/heads/master", "committer_date": "2021-01-02T14:13:01", "content_id": "682530fd18a3334235b4b5c8ae50d8e0777df610", "detected_licenses": [ "MIT" ], "directory_id": "8b81d0f9cd1eafc0193cd31fb21cf805d84e4359", "extension": "c"...
stackv2
// ---------------------------------------------------------------------------------------------- // SigmaGraph // Data Plotting and Analysis Software // Copyright(C) 1997-2020 Pr. Sidi HAMADY // http://www.hamady.org // sidi@hamady.org // Released under the MIT License: // Permission is hereby granted, free of charge...
2.28125
2
2024-11-18T21:46:36.765984+00:00
2021-04-12T05:04:08
bc314cb71e66d6982ff7aa50854ca7e8c7276a98
{ "blob_id": "bc314cb71e66d6982ff7aa50854ca7e8c7276a98", "branch_name": "refs/heads/master", "committer_date": "2021-04-12T05:04:08", "content_id": "ff6536cee44afda69fa72de24fbba14edec3adb3", "detected_licenses": [ "MIT" ], "directory_id": "9fa6465512c29d8d02461b3335f7aa1bb70d8443", "extension": "c"...
stackv2
/* The KCD Task Template File */ #include "rtx.h" #include "Serial.h" #include "printf.h" #include "k_inc.h" #define SIZE 62 // all possible command characters extern TCB *gp_current_task; char str[64]; int counter = 0; char hash_table[MAX_TASKS]; void kcd_task(void) { // create mailbox for kcd task mbx_create...
2.734375
3
2024-11-18T21:46:36.991402+00:00
2020-05-04T21:10:03
893599d84bc91579d37c935a4313fda78c786f04
{ "blob_id": "893599d84bc91579d37c935a4313fda78c786f04", "branch_name": "refs/heads/master", "committer_date": "2020-05-04T21:10:03", "content_id": "89d9a031d9e18373c3bdd9007915b8ae8fa7143f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "1345f5094610b5a7c555326a18babf246cc72707", "extens...
stackv2
/* GaussFit - A System for Least Squares and Robust Estimation Source Code Copyright (C) 1987 by William H. Jefferys, Michael J. Fitzpatrick and Barbara E. McArthur All Rights Reserved. */ /* Relational operators */ #define import_spp #define import_libc #define import_stdio #define import_math #include <ira...
2.53125
3
2024-11-18T21:46:37.353522+00:00
2018-04-05T20:39:31
3bef86a9c057edba945f286f7503ad2c57e26f4b
{ "blob_id": "3bef86a9c057edba945f286f7503ad2c57e26f4b", "branch_name": "refs/heads/master", "committer_date": "2018-04-09T04:02:49", "content_id": "16d147521a101f78edcc6b45728bb83ed9f08bac", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3d8df5654a1c7204177cd831cc64e572e561861e", "extensio...
stackv2
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2016 RDK Management * * 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 ...
2.1875
2
2024-11-18T21:46:42.765602+00:00
2017-03-06T17:45:34
8b55dc7ecf671bf89d8aa2f91bbdb984ed646717
{ "blob_id": "8b55dc7ecf671bf89d8aa2f91bbdb984ed646717", "branch_name": "refs/heads/master", "committer_date": "2017-03-06T17:45:34", "content_id": "43d493af7e99b7c8f565fc77ddf2e66930b9cd58", "detected_licenses": [ "MIT" ], "directory_id": "04a1d1662537aeb624d4d08df965f8a3367fed36", "extension": "h"...
stackv2
/** * Copyright (C) 2016 Antonio Gutierrez * * @brief Client structure and functions * @file client.h * */ #ifndef GUARD_CLIENT_H #define GUARD_CLIENT_H #include "common.h" /** * @brief Client structure * * Structure that represents the client. It contains the af_family, the * connected socket and the buff...
2.609375
3
2024-11-18T21:46:43.513798+00:00
2019-01-09T21:54:35
1fb18f60b753f68e14597dc5d0bfc67d808f281d
{ "blob_id": "1fb18f60b753f68e14597dc5d0bfc67d808f281d", "branch_name": "refs/heads/master", "committer_date": "2019-01-09T21:54:35", "content_id": "3a04250add06ecf25b569fbca19815fcb6529661", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b107d7f73326f8725e08023c5da3e5082535ca85", "extensio...
stackv2
/* Copyright (C) 2009-2017 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the ...
2
2
2024-11-18T21:46:48.832715+00:00
2023-08-31T02:16:24
d2790192514489245df002d870b9e4da34cc1ab3
{ "blob_id": "d2790192514489245df002d870b9e4da34cc1ab3", "branch_name": "refs/heads/vlm_master", "committer_date": "2023-08-31T02:16:24", "content_id": "2581cdc682b7c90ee89e3b16bcf91ef2c1f0ec6c", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "853f3da12f4c0c5b4c5584e71537e4a81458bcce", "ex...
stackv2
#include <stdio.h> #include <assert.h> #include <time.h> #include <sys/time.h> #include <OCTET_STRING.h> #include <BIT_STRING.h> enum encoding_type { HEX, BINARY, UTF8 }; #define check(t, tag, buf, verify) check_impl(__LINE__, t, tag, buf, verify) static void check_impl(int lineno, enum encoding_type type, char *t...
2.703125
3
2024-11-18T21:46:48.938598+00:00
2020-01-21T03:44:58
dd51c535d6ee5a935208b52f362ca4d02c6c3936
{ "blob_id": "dd51c535d6ee5a935208b52f362ca4d02c6c3936", "branch_name": "refs/heads/master", "committer_date": "2020-01-21T03:44:58", "content_id": "37b093064468dad50ff2c4f37e5116078f7faceb", "detected_licenses": [ "MIT" ], "directory_id": "51390f368bcf6ccabf051a1b73d3391bcaa5cbf3", "extension": "c"...
stackv2
#include <gtk/gtk.h> #include "gui.h" void myCSS(void){ GtkCssProvider *provider; GdkDisplay *display; GdkScreen *screen; provider = gtk_css_provider_new (); display = gdk_display_get_default (); screen = gdk_display_get_default_screen (display); gtk_style_context_add_provider_for_screen (screen, GTK_STY...
2.34375
2
2024-11-18T21:46:49.006564+00:00
2022-10-12T13:51:52
941cbd7792268f18315bfed786490502ac71c5ba
{ "blob_id": "941cbd7792268f18315bfed786490502ac71c5ba", "branch_name": "refs/heads/master", "committer_date": "2022-10-12T13:51:52", "content_id": "bb21a139d4b7c12a34601adbf0df7e51478611c0", "detected_licenses": [ "MIT" ], "directory_id": "a2d58cd61fc808edd92c42e84853c0b0c61f3e87", "extension": "c"...
stackv2
/* define _GNU_SOURCE to get SCM_CREDENTIALS * * or include AC_GNU_SOURCE in configure.ac */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <sys/socket.h> #include <sys/types.h> #include <sys/ioctl.h> #include <sys/epoll.h> #include <sys/un.h> #include <assert.h> #include <string.h> #include <stdlib.h> #in...
2.5625
3
2024-11-18T21:46:51.272554+00:00
2012-08-22T21:05:27
505bbfdb7cd3135ac6dbf1ca195ca288b2c5dd8f
{ "blob_id": "505bbfdb7cd3135ac6dbf1ca195ca288b2c5dd8f", "branch_name": "refs/heads/master", "committer_date": "2012-08-22T21:05:27", "content_id": "b00f3a5db16fd1ec98c5782888c328df785905e6", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "924d91cd298ba831a24daba6a852fa6f2270c69e", "extens...
stackv2
/*! \file csmaMac.c \brief Carrier-Sensing Random Access MAC. @version 16.1 @author Chris Hunter and Patrick Murphy The csmaMac is a modified ALOHA MAC that serves as an example for novel MAC development. Nodes transmit whenever they have information to transmit, and only move on to the next packet once the o...
2.15625
2
2024-11-18T21:46:51.633318+00:00
2023-05-02T18:17:08
cbb38d21497eb244a38f0f0ce3bf16bcb7e76c4c
{ "blob_id": "cbb38d21497eb244a38f0f0ce3bf16bcb7e76c4c", "branch_name": "refs/heads/master", "committer_date": "2023-05-02T18:17:08", "content_id": "a266c3a2688375fe9a89c0240a073ac2416b7e55", "detected_licenses": [ "MIT" ], "directory_id": "79ecc422876f745206e769663bc8f69fdd57f641", "extension": "h"...
stackv2
/********************************************************* * * myinc.h * - header file for myinc.cpp * usefur procedures for handling vectors * * Hai Yu (fishhai@cs.duke.edu), Jun 2003 * \*********************************************************/ #ifndef __MYINC__H #define __MYINC__H #define EQUAL(x,y) ...
2.203125
2
2024-11-18T21:46:52.266172+00:00
2023-08-31T16:38:00
9212897b5d878a55c25bb6ee5b22ae3f96b4abab
{ "blob_id": "9212897b5d878a55c25bb6ee5b22ae3f96b4abab", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T16:38:00", "content_id": "a27eabe02d6a1d8de5327f5718c92aa8ced7fd1c", "detected_licenses": [ "BSD-2-Clause", "BSD-2-Clause-Patent" ], "directory_id": "1efd2de8bf77ec00eb2fcaf57...
stackv2
/** * (C) Copyright 2015-2022 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <sys/stat.h> #include <sys/mman.h> #include "dav_internal.h" #include "memops.h" #include "tx.h" static void clogs_extend_...
2.265625
2
2024-11-18T21:46:52.437375+00:00
2018-04-17T08:22:14
0b049b1338e1cab427dc5014b2674f53df06d520
{ "blob_id": "0b049b1338e1cab427dc5014b2674f53df06d520", "branch_name": "refs/heads/master", "committer_date": "2018-04-17T08:22:14", "content_id": "f28ed9618c0d31e44d4d79b7ec067cd59e816d03", "detected_licenses": [ "Unlicense" ], "directory_id": "fd989c32b4aeec2c6bd27424096959a80ebc2f71", "extension...
stackv2
// // Starting code for the MPI coursework. // // Compile with: // // mpicc -Wall -o cwk1 cwk1.c // // or use the provided makefile. // // // Includes // #include <stdio.h> #include <stdlib.h> #include <mpi.h> // Some extra routines for this coursework. DO NOT MODIFY OR REPLACE THESE ROUTINES, // as this file will be...
2.578125
3
2024-11-18T21:46:52.510333+00:00
2021-05-17T14:45:49
d892521b217ccca2187c5f52fbf6333b25240e01
{ "blob_id": "d892521b217ccca2187c5f52fbf6333b25240e01", "branch_name": "refs/heads/master", "committer_date": "2021-05-17T14:45:49", "content_id": "8f89417f720ddfddb29db17f0bb38383536e205c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d6989e6b59dd181330a27447b0751e4a40218e1c", "extensio...
stackv2
/******************************************************************************* * Ledger App - Bitcoin Wallet * (c) 2016-2019 Ledger * * 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 * ...
2.34375
2
2024-11-18T21:46:52.653110+00:00
2017-01-13T12:14:30
00f75c075e9e4c325b7e4f92de1b8785beacc627
{ "blob_id": "00f75c075e9e4c325b7e4f92de1b8785beacc627", "branch_name": "refs/heads/master", "committer_date": "2017-01-13T12:14:30", "content_id": "14a11ad1d52d0ac633826ccc33d445ef58c6bcee", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f3b368be905460f4261255f8297eb204727f57c0", "extensio...
stackv2
/* * Copyright (c) 2016 Dell Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WAR...
2.078125
2
2024-11-18T21:46:52.798577+00:00
2019-07-09T19:52:18
e3bcaaffeae765851c7f2be394da5a978eded997
{ "blob_id": "e3bcaaffeae765851c7f2be394da5a978eded997", "branch_name": "refs/heads/master", "committer_date": "2019-07-09T19:52:18", "content_id": "3bd40e09a637ba8d516e7ba478130b3c3b0338cf", "detected_licenses": [ "MIT" ], "directory_id": "b2f5e1c0c49ae448a795404a8a8299eb41bce177", "extension": "c"...
stackv2
#include "misc.h" #include "gpio.h" #include "lights_events.h" #include "lights_gpio_config_front.h" // Output definitions. static const LightsGpioOutput s_front_outputs[] = { // clang-format and lint are inconsistent here. clang-format puts a line break before the { in // every entry, while lint does not allow t...
2.234375
2
2024-11-18T21:46:52.943545+00:00
2018-08-21T12:34:44
a4c796948a67e72b9889f1fb25a3867348b5642a
{ "blob_id": "a4c796948a67e72b9889f1fb25a3867348b5642a", "branch_name": "refs/heads/master", "committer_date": "2018-08-21T12:34:44", "content_id": "4bf0b9bf6bfd4c2e59a30ef1dd089bd3e1d5f92f", "detected_licenses": [ "MIT" ], "directory_id": "a93aa9fa20b6ec96c943aeff506d6a3d9bc68402", "extension": "c"...
stackv2
/* Copyright (c) 2018 Nicolas Van Bossuyt. */ /* This code is licensed under the MIT License. */ /* See: LICENSE.md */ #include "kernel/logging.h" #include "kernel/physical.h" #include "sync/atom...
2.75
3
2024-11-18T21:46:53.194595+00:00
2020-01-01T13:02:41
fe4cf8a9f4bf7689ebc09903d1acb6e90904998e
{ "blob_id": "fe4cf8a9f4bf7689ebc09903d1acb6e90904998e", "branch_name": "refs/heads/master", "committer_date": "2020-01-01T13:02:41", "content_id": "2c92aa12e10f96d0447f144c75e699fcebb73011", "detected_licenses": [ "MIT" ], "directory_id": "40aa72b4ac6807eb8b69ab1ebaa61f3d9a19a9f5", "extension": "c"...
stackv2
/* * author: Mahmud Ahsan * https://github.com/mahmudahsan * blog: http://thinkdiff.net * http://banglaprogramming.com * License: MIT License */ /* * String * Variable length character string * NULL '\0' character */ #include <stdio.h> int stringLength(const char str[]); int main(){ char vowel[] = {...
3.5625
4
2024-11-18T21:46:53.510506+00:00
2021-01-07T16:28:22
96ba06c74e4077ababfd07110c41fc089f748b9e
{ "blob_id": "96ba06c74e4077ababfd07110c41fc089f748b9e", "branch_name": "refs/heads/main", "committer_date": "2021-01-07T16:28:22", "content_id": "8aa0f426f1a378daff90a8ee907811b6ad55017b", "detected_licenses": [ "MIT" ], "directory_id": "fb8ae6f8025cc32b65f1f666b547ee3f057d6614", "extension": "c", ...
stackv2
#include <pthread.h> #include <stdio.h> #include <stdlib.h> static int glob = 0; pthread_mutex_t mtx; static void *threadFunc(void *arg) { int loops = *((int*)arg); int loc, s; s = pthread_mutex_init(&mtx, NULL); for(int j=0; j < loops; ++j) { s = pthread_mutex_lock(&mtx); ...
2.953125
3
2024-11-18T21:46:54.166070+00:00
2023-07-25T18:33:43
0ce0959465468ee23d23c75b7f011980d2c39cad
{ "blob_id": "0ce0959465468ee23d23c75b7f011980d2c39cad", "branch_name": "refs/heads/master", "committer_date": "2023-07-25T18:33:43", "content_id": "5f6c40d33d318e34447ea9e6c5c3d8a27f71e01b", "detected_licenses": [ "MIT" ], "directory_id": "920f03618238d88be09e7ba1da3c2e35b978c6a6", "extension": "c"...
stackv2
/* * Copyright (c) 1988,1991 by Sozobon, Limited. Author: Joseph M Treat * * Permission is granted to anyone to use this software for any purpose * on any computer system, and to redistribute it freely, with the * following restrictions: * 1) No charge may be made other than reasonable charges for reproduction....
2.28125
2
2024-11-18T21:46:54.802164+00:00
2021-02-11T13:16:53
80c1a0dc9cfff3d86f78efbf1a9d6331c1ad87ec
{ "blob_id": "80c1a0dc9cfff3d86f78efbf1a9d6331c1ad87ec", "branch_name": "refs/heads/master", "committer_date": "2021-02-11T13:16:53", "content_id": "f59535c5ed9a7d4f8265912cd9b510fd9a83118a", "detected_licenses": [ "MIT", "Zlib" ], "directory_id": "8d5ca7e9f9b1f8c1878298a9e6876a346a5db72f", "ext...
stackv2
/* * Keyboard.h * * Created on: Mar 13, 2015 * Author: admin */ #ifndef KEYBOARD_H_ #define KEYBOARD_H_ #include <SFML/Window/Keyboard.hpp> //scan codes const u32 uzeKbScancodes[][2] = { {0x0d,sf::Keyboard::Tab}, {0x0e,sf::Keyboard::Tilde},// should be ` {0x12,sf::Keyboard::LShift}, {0x15,sf::Keyboard...
2.046875
2
2024-11-18T21:46:55.141332+00:00
2022-10-21T16:56:37
adace3bf571a8ba2f37c1d0153692db57a8d470a
{ "blob_id": "adace3bf571a8ba2f37c1d0153692db57a8d470a", "branch_name": "refs/heads/master", "committer_date": "2022-10-21T16:56:37", "content_id": "bd5425680a17742c2f6f61f200a3f83e64c89b8d", "detected_licenses": [ "MIT" ], "directory_id": "c1e4b60768bec3d18a02f2fa04e8153363c0da03", "extension": "tx...
stackv2
#include <stdio.h> #include <stdlib.h> typedef struct { int studentNum; // student number char fName[15]; // first name, max 15 char char lName[15]; // last name, max 15 char int p1_grade; // project 1 grade int p2_grade; // project 2 grade float fGrade; // final grade } student ; struct stud...
3.390625
3
2024-11-18T21:46:55.666640+00:00
2019-07-19T01:05:56
3920bc9a9a0051d96e4936a05692360cd24fcd8e
{ "blob_id": "3920bc9a9a0051d96e4936a05692360cd24fcd8e", "branch_name": "refs/heads/master", "committer_date": "2019-07-19T01:05:56", "content_id": "1b4ac52b076f4654f10048cb792ad0796177f526", "detected_licenses": [ "MIT" ], "directory_id": "63a5cc4ca42b94c89154f6cb82baad15e6ba9b58", "extension": "c"...
stackv2
bool is_pruned; void recur(struct TreeNode **tn_pptr) { if(!((*tn_pptr)->left) && !((*tn_pptr)->right)) { if( (*tn_pptr)->val == 0) { (*tn_pptr) = NULL; is_pruned = true; } return; } if( (*tn_pptr)->left ) { recur( &((*tn_pptr)->left) ); } ...
2.75
3
2024-11-18T21:46:55.846998+00:00
2021-01-06T21:33:51
4a8714524f9ceadb226626cebfc2ad6da19b51c5
{ "blob_id": "4a8714524f9ceadb226626cebfc2ad6da19b51c5", "branch_name": "refs/heads/main", "committer_date": "2021-01-06T21:33:51", "content_id": "79e765291ee6cad547177722190e6c8adf78374a", "detected_licenses": [ "MIT" ], "directory_id": "c413e1ec17228726feb65eba3dc31219628716cf", "extension": "c", ...
stackv2
#include <stdio.h> void retangulo() { int altura, base, k, i; do { printf("Informe a altura:"); scanf("%d", &altura); } while(altura <= 0 || altura >= 50); do { printf("\nInforme o tamanho da base:"); scanf("%d", &base); } while(base <= 0 || base >=...
3.46875
3
2024-11-18T21:46:56.028740+00:00
2018-02-06T04:42:36
9b43e97e93364ac299398830d5f63184569f5cb0
{ "blob_id": "9b43e97e93364ac299398830d5f63184569f5cb0", "branch_name": "refs/heads/master", "committer_date": "2018-02-06T04:42:36", "content_id": "20c98fc0b9eae372a13cb3faae28e5d062dc0fee", "detected_licenses": [ "MIT" ], "directory_id": "5cd318b0a5bf86eeb1fa586dab4042e5f27245bc", "extension": "c"...
stackv2
#include "rdis.h" r_file* r_openfile(char * filename) { r_file * file = r_file_init(); FILE * f = fopen(filename, "r+"); if (!f) { printf("Error opening file %s\n", filename); exit(1); } if (check_elf(f)) { elf_read_file(f, file); } file->file = f; //fclose(f); return file; } r_disasm * r_disasm_in...
2.4375
2
2024-11-18T21:46:56.131744+00:00
2018-06-22T18:57:26
879c9e6f2b64b01c2e8535130efa4ce7b5700466
{ "blob_id": "879c9e6f2b64b01c2e8535130efa4ce7b5700466", "branch_name": "refs/heads/master", "committer_date": "2018-06-22T18:57:41", "content_id": "55a7dbc2791be431a977f5256036ef22420f896d", "detected_licenses": [ "MIT" ], "directory_id": "91324e47d3711ef9a2bc8fa93f864973e8939a49", "extension": "c"...
stackv2
#include "common.h" TConfig config = {"127.0.0.1", "8.8.8.8", 6*3600}; char rr_buf[0xFFF] = {0}; char* config_param(char* s, void* res, uint type) { THeader *rr = (THeader*)rr_buf; rr->QRCOUNT = htons(1); char *rr_ptr, *rr_dot; int state = 1, x, rr_size, rr_uid = 1; if (type == CONFIG_TYPE_RR) state = 6; whil...
2.1875
2
2024-11-18T21:46:56.706138+00:00
2019-02-28T21:47:38
5cca75b10313f38b373f4ef93c9206c0baae4398
{ "blob_id": "5cca75b10313f38b373f4ef93c9206c0baae4398", "branch_name": "refs/heads/master", "committer_date": "2019-02-28T21:47:38", "content_id": "9a6b5bceaf0819524d1eec9ef6ec1a36a4585b2a", "detected_licenses": [ "MIT" ], "directory_id": "1b2b0bb453921ab454953fd526acb53dfb49e35a", "extension": "c"...
stackv2
#include <assert.h> #include "strset.h" #include "strsetconst.h" int main() { { unsigned long d1, d2; d1 = strset_new(); d2 = strset_new(); strset_insert(d1, "a"); strset_insert(d2, "b"); strset_delete(d1); strset_delete(d2); assert(strset_comp(d1...
2.53125
3
2024-11-18T21:46:56.921581+00:00
2021-01-09T07:05:12
580075d142d12e50848bc4cda04e403983c7bb27
{ "blob_id": "580075d142d12e50848bc4cda04e403983c7bb27", "branch_name": "refs/heads/main", "committer_date": "2021-01-09T19:41:35", "content_id": "580d9cfdf66526e94cbd4314f069f9ab9480c434", "detected_licenses": [ "Apache-2.0" ], "directory_id": "2c9b655e36bb532f1baae4aee5e02cdc704a1b90", "extension"...
stackv2
#pragma once #include <inttypes.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include "varint.h" __BEGIN_DECLS /* Format: N * N is number of bytes for [X][Y] packed storage. * N is: max(ceil(l(x)/l(2)), ceil(l(y)/l(2))) */ typedef enum varintDimensionPacked { VARINT_DIMENSION_PACKED_1 = ...
2.296875
2
2024-11-18T21:46:57.000076+00:00
2019-02-13T07:00:23
801ca2f170d4f2879877041a08ac868077d01fef
{ "blob_id": "801ca2f170d4f2879877041a08ac868077d01fef", "branch_name": "refs/heads/master", "committer_date": "2019-02-13T07:00:23", "content_id": "0c51f376dc52c540be956da152beff7b53ea1769", "detected_licenses": [ "MIT" ], "directory_id": "b221fbc17f485a99b8d677b4fe69368f56db88c8", "extension": "c"...
stackv2
// // Ransom_Note.c // MyLeetCode // // Created by poco on 2019/2/11. // Copyright © 2019 zyy. All rights reserved. // bool canConstruct(char* ransomNote, char* magazine) { int len1 = strlen(ransomNote); int len2 = strlen(magazine); int A[26]={0} , B[26]={0} ,i; for(i=0 ; i<len1 ; i++){ ...
2.328125
2
2024-11-18T21:46:57.064521+00:00
2018-04-07T12:17:23
2c9ff66178eddc69ccd7683eb30426d98deaba50
{ "blob_id": "2c9ff66178eddc69ccd7683eb30426d98deaba50", "branch_name": "refs/heads/master", "committer_date": "2018-04-07T12:17:23", "content_id": "3e085a5489164f3db133124349731d01939b43bf", "detected_licenses": [ "MIT" ], "directory_id": "99272a20fd7183e981867807880f22fa3d0b6756", "extension": "c"...
stackv2
#include<stdio.h> #include<stdlib.h> typedef struct node{ //define the details of the structure int data; struct node* next; }NODE; void printList(NODE *);//function to print the solution NODE* input();//Function to take input int solve(NODE*, NODE*);//function to solve the problem NODE* createNode(int n); ...
3.578125
4
2024-11-18T21:46:57.152860+00:00
2023-05-24T03:31:36
148021dac0ab44048aec44096242b58ce181b4d7
{ "blob_id": "148021dac0ab44048aec44096242b58ce181b4d7", "branch_name": "refs/heads/master", "committer_date": "2023-05-24T03:31:36", "content_id": "8c932628c3818b634b3ac3e6de8d1949329eea54", "detected_licenses": [ "MIT" ], "directory_id": "97ad6103520d853e67a8adebdee63b835035754b", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "core_allvars.h" #include "core_mymalloc.h" #define MAXBLOCKS 2048 static long Nblocks = 0; static void *Table[MAXBLOCKS]; static size_t SizeTable[MAXBLOCKS]; static size_t TotMem = 0, HighMarkMem = 0, OldPrintedHighMark = 0; /* f...
3.375
3
2024-11-18T21:46:57.415062+00:00
2019-01-31T01:10:47
3eedce5c7380c2cc1d100ef62c68c97ee9fcf5ed
{ "blob_id": "3eedce5c7380c2cc1d100ef62c68c97ee9fcf5ed", "branch_name": "refs/heads/master", "committer_date": "2019-01-31T01:10:47", "content_id": "117144acf45d4c83e11d8b95b67968f5aa6f57c9", "detected_licenses": [ "MIT" ], "directory_id": "0472f569846ee9090c3ceb7a1cb638f1320a2c20", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> int Fat(int x) { int y = 0; if (x == 1) { y = 1; } else { y = Fat(x-1) * x; } return(y); } int main() { int number = 0; int result = 0; printf("Enter a number to calculate the factorial: "); scanf_s("%d", &number); result = Fat(number); printf("\n\n The factor...
3.625
4
2024-11-18T21:46:57.554798+00:00
2015-10-29T18:38:46
1dfb253bf1a395e23e30416f22e794a1c3b27a33
{ "blob_id": "1dfb253bf1a395e23e30416f22e794a1c3b27a33", "branch_name": "refs/heads/master", "committer_date": "2015-10-29T18:38:46", "content_id": "74041621ab9a7b9664333532e349755b282aa048", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "35c2094f7b425d713780e66ee7656d5ce4c035f9", "extens...
stackv2
/* Main code for remote server for GDB. Copyright (C) 1989-2015 Free Software Foundation, Inc. This file is part of GDB. (modified) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eit...
2.390625
2
2024-11-18T21:46:57.636400+00:00
2020-10-18T16:33:47
a3539c1010520dceea800745a46731883de70de6
{ "blob_id": "a3539c1010520dceea800745a46731883de70de6", "branch_name": "refs/heads/master", "committer_date": "2020-10-18T16:33:47", "content_id": "780e044e4a495e633e6136e812648077259c9391", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "11a64eb4c73a0fceb38372b09b6aa8a3d367d9b3", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <locale.h> #include <string.h> /* Crie um programa que receba como entrada o numero de alunos de uma disciplina. Aloque dinamicamente em uma estrutura para armazenar as informac¸oes a respeito desses alunos: nome do aluno e sua nota final. Use nomes com no maximo 40 cara...
3.3125
3
2024-11-18T21:46:58.563743+00:00
2020-11-09T03:50:07
8335c518d4d627977372b5f335f30f24a7366eaf
{ "blob_id": "8335c518d4d627977372b5f335f30f24a7366eaf", "branch_name": "refs/heads/master", "committer_date": "2020-11-09T03:50:07", "content_id": "0b71a9c8fb04642e9a319fdcece6ce37e3a41364", "detected_licenses": [ "MIT" ], "directory_id": "ce8752198a73f37f18ca2292483479971fb354fa", "extension": "c"...
stackv2
#include <idt.h> #include <syscall.h> #include <io.h> #include <console.h> #include <apic.h> #pragma pack (1) struct idt_entry idt[IDT_ENTRIES]; struct table_ptr idtr = {.limit = sizeof(struct idt_entry)*255, .base = (uint64_t)idt}; #pragma pack () uint64_t int_handlers[256]; extern void load_idt(struct table_ptr*); ...
2.328125
2
2024-11-18T21:46:58.723935+00:00
2017-12-01T10:14:22
d3a9f17988281cdb5b0c3154dcdd1c1c5444ef38
{ "blob_id": "d3a9f17988281cdb5b0c3154dcdd1c1c5444ef38", "branch_name": "refs/heads/master", "committer_date": "2017-12-01T10:15:36", "content_id": "b1590a516152402070149f4f4ea8183b09c7d83c", "detected_licenses": [ "MIT" ], "directory_id": "154c695846d99439455c580911a4cab002abb1b3", "extension": "c"...
stackv2
#include "unicode_internal.h" void *u_calloc(size_t nitems, size_t size) { void *p = calloc(nitems, size); assert(p); return p; } void *u_malloc(size_t size) { void *p = malloc(size); assert(p); return p; } void *u_realloc(void *p, size_t size) { p = realloc(p, size); assert(p); return p; } void ...
2.9375
3
2024-11-18T21:47:00.642703+00:00
2017-02-17T11:28:06
a8cf0590c4021a4afdd677de20e6ec7122e443bb
{ "blob_id": "a8cf0590c4021a4afdd677de20e6ec7122e443bb", "branch_name": "refs/heads/master", "committer_date": "2017-02-17T11:28:06", "content_id": "5127e10b42eb090f4f65f20fd219adfce0913dc5", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "a01f0752f630196c84b9594b29bfeab379031547", "extens...
stackv2
/* =========================================================================== Tiny BASIC interpreter. <program> ::= { <line> } <eof> <line> ::= [ Number ] [ <statement> ] <eol> <statement> ::= PRINT <expr-list> | INPUT <varlist> | LET var = <express...
2.78125
3
2024-11-18T21:47:00.720149+00:00
2021-02-01T13:49:13
3f063e8f1f3452a02235db70d26101fe6a4b86f3
{ "blob_id": "3f063e8f1f3452a02235db70d26101fe6a4b86f3", "branch_name": "refs/heads/main", "committer_date": "2021-02-01T13:49:13", "content_id": "3c39e0ee6474716c1776a67442b106a1f0f805a5", "detected_licenses": [ "MIT" ], "directory_id": "110f49e49020bf4881aaeb8b7f65f30bceac4ea3", "extension": "h", ...
stackv2
#ifndef _REGDEFS_H_ #define _REGDEFS_H_ #include <stdint.h> typedef volatile uint32_t reg_t; typedef volatile struct{ reg_t DR; /* 0x0 Data Register */ reg_t RSRECR; /* 0x4 */ volatile uint8_t reserved1[16]; /* 16 Bytes Reserved Space */ reg_t FR; /* 0x18 Flag Register */ reg_t ILPR; /* 0x20 Not in use */ reg_t...
2.265625
2
2024-11-18T21:47:01.221337+00:00
2023-08-11T19:10:27
b4024fe0f445deff2cd8e82669df8502085a4e54
{ "blob_id": "b4024fe0f445deff2cd8e82669df8502085a4e54", "branch_name": "refs/heads/main", "committer_date": "2023-08-11T19:10:27", "content_id": "3cc9becc8d35606f9d9fd9d5414ef6e8322b2f48", "detected_licenses": [ "MIT" ], "directory_id": "8b53058cf320143675de65bf0545fa8caa4bf0e2", "extension": "c", ...
stackv2
#include "pihm.h" void RiverFlow(elem_struct elem[], river_struct river[]) { int i; #if defined(_OPENMP) # pragma omp parallel for #endif for (i = 0; i < nriver; i++) { river_struct *down; elem_struct *left; elem_struct *right; InitRiverWFlux(&river[i]....
2.140625
2
2024-11-18T21:47:01.590679+00:00
2016-05-30T09:42:06
e99440b9cfd0fadd92283c5622e42b6fbc896647
{ "blob_id": "e99440b9cfd0fadd92283c5622e42b6fbc896647", "branch_name": "refs/heads/master", "committer_date": "2016-05-30T09:42:06", "content_id": "eeca9368381f910ebaf5d693b8f53ba66f786ff3", "detected_licenses": [ "MIT" ], "directory_id": "91ef7d092e917a25ebdc50b11c1001bddced5858", "extension": "c"...
stackv2
/* Name: Shah Aakash SJSU ID: 010767354 Class Id: 64 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #define PORT 777 #define BUFSIZE 1024 void send_recv(int newSock...
3.015625
3
2024-11-18T21:47:01.694559+00:00
2014-03-14T20:10:38
3f5fe679759a609e426b75ba559f953af9196513
{ "blob_id": "3f5fe679759a609e426b75ba559f953af9196513", "branch_name": "refs/heads/master", "committer_date": "2014-03-14T20:10:38", "content_id": "a56c077b78f82af4e7661eabbe807fda600a1737", "detected_licenses": [ "Zlib" ], "directory_id": "c9d4c78e19488743f392e062fd92f7e959174367", "extension": "h...
stackv2
/** @file serializable.h * @brief Typeclass for serialization */ #ifndef IL_SERIALIZABLE_H #define IL_SERIALIZABLE_H #include <stdlib.h> #include <sys/time.h> #include "common/base.h" typedef struct il_serializable { il_typeclass_header; unsigned char *(*serialize)(void *obj, size_t *size); void (*des...
2.4375
2
2024-11-18T21:47:02.313476+00:00
2023-05-30T07:36:13
c9d474972610acf2f4295bf35041df40b785e281
{ "blob_id": "c9d474972610acf2f4295bf35041df40b785e281", "branch_name": "refs/heads/master", "committer_date": "2023-05-30T07:36:13", "content_id": "d38da2601b1bcf29f0de5c5ebcdd57bec27eb78a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d134ae730638c9f26155017cf83b27399f69e4a5", "extens...
stackv2
#include "metrics.h" #include "parrsb-impl.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> extern int rsb(struct array *elements, int nv, int check, parrsb_options *options, struct comm *gc, buffer *bfr); extern int rcb(struct array *elements, size_t un...
2.25
2
2024-11-18T21:47:03.926839+00:00
2016-05-18T19:42:46
cac7633a2b03e1750e3dae2d3bcd7f3cac83737b
{ "blob_id": "cac7633a2b03e1750e3dae2d3bcd7f3cac83737b", "branch_name": "refs/heads/master", "committer_date": "2016-05-18T19:42:46", "content_id": "d4fa94364f03824e63b4828ecd1f40ad63dfe2a0", "detected_licenses": [ "MIT" ], "directory_id": "de6604045fb627b86b6bb03c9f99fc69ed01a954", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ksu_common.h> #include <ksu_dates.h> #include <ksu_pg.h> extern void pg_date_part(sqlite3_context *context, int argc, sqlite3_value **argv) { int ret; int part_code; int ...
2.140625
2
2024-11-18T21:47:04.057773+00:00
2017-08-08T19:10:28
7a8b86cc85d4b78aa891eaa692ab941ae86e0104
{ "blob_id": "7a8b86cc85d4b78aa891eaa692ab941ae86e0104", "branch_name": "refs/heads/master", "committer_date": "2017-08-08T19:10:28", "content_id": "c3ce4fd8ec2fedeb1c512c85e2b3c8e6b38b8ab8", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "61fa27eacf7046473994dc861aaa957d85b1b680"...
stackv2
#pragma once /******************************************************************************* * * File: msg.h * ******************************************************************************/ #include <sbin/syspid.h> /* STATUS FLAGS */ #define MNONE 0 #define MSEND 0x1 #define MRECV 0x2 /* RETURN VALUES */ #...
2.265625
2
2024-11-18T21:47:04.255544+00:00
2020-12-28T12:11:55
d730fbd6ebdfce4090e5ae0aa13926db619ca186
{ "blob_id": "d730fbd6ebdfce4090e5ae0aa13926db619ca186", "branch_name": "refs/heads/develop", "committer_date": "2020-12-28T17:38:56", "content_id": "3eb28ad3d107cf052d4c80f5404b6cb4cf5f540f", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d579699e6728aa74084f8cc4dc435007b9f523a8", "exten...
stackv2
int main(int argc, char *argv[]); __size32 cparam(int param1, __size32 param2); /** address: 0x08048394 */ int main(int argc, char *argv[]) { int eax; // r24 eax = cparam(argc - 3, 2); printf("Result is %d\n", eax); return 0; } /** address: 0x0804837c */ __size32 cparam(int param1, __size32 param2...
2.21875
2
2024-11-18T21:47:04.547915+00:00
2023-04-20T22:22:18
c3b3cd1b0163ecd9f5c02a6f0a0847e856d411a6
{ "blob_id": "c3b3cd1b0163ecd9f5c02a6f0a0847e856d411a6", "branch_name": "refs/heads/master", "committer_date": "2023-04-20T22:22:18", "content_id": "efbdc68f99fb9fb46f4ce4b50a10bc540c556902", "detected_licenses": [ "Apache-2.0" ], "directory_id": "df60e1fd3489ee903b42744cafa7105aedd81e9f", "extensio...
stackv2
#include <stdlib.h> #include <string.h> #include "propert.h" static int cmpWeight(const void *ap, const void *bp) { const Property *a = *(Property **) ap; const Property *b = *(Property **) bp; if (a->weight > b->weight) return +1; return (a->weight < b->weight ? -1 : 0); } static int cmpMelt(const voi...
2.640625
3
2024-11-18T21:47:04.803224+00:00
2023-08-30T05:55:51
94d52ae7ae6abf53b252373a1e9c44e93190aca7
{ "blob_id": "94d52ae7ae6abf53b252373a1e9c44e93190aca7", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T05:55:51", "content_id": "b34c473a6e7508e4d1332f66a4d1044658c6dfa2", "detected_licenses": [ "MIT" ], "directory_id": "8bc347a8b6ab320fa8a67936cbe0f77081c1fd51", "extension": "c"...
stackv2
// https://leetcode.com/problems/binary-tree-inorder-traversal/description/ /** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ /** * Return an array of size *returnSize. * Note: The returned array must be malloced, ass...
3.625
4
2024-11-18T21:47:06.300683+00:00
2016-04-14T15:36:18
77cfcfab457344d3e00b9389ad127d71f48f7202
{ "blob_id": "77cfcfab457344d3e00b9389ad127d71f48f7202", "branch_name": "refs/heads/master", "committer_date": "2016-04-14T15:36:18", "content_id": "f8d855afe884735b5c8baaec042133acff70eff8", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "6bfe7345f4f2d01492ae4b724d0e442c5ac9065e", "extens...
stackv2
#ifndef _MC3DShapeBase #define _MC3DShapeBase #include "MC3DBase.h" extern inline void DrawGround() { double R = 100.0; double D = 10.0; glBegin(GL_QUADS); glColor3f(0.5, 0.5, 0.5); glVertex3f(R, -D, R); glVertex3f(-R, -D, R); glVertex3f(-R, -D, -R); glVertex3f(R, -D, -R); glEn...
2.28125
2
2024-11-18T21:47:06.840896+00:00
2020-05-27T09:59:57
23ecdab12f85db3b65a4b710b852161a28ac31cf
{ "blob_id": "23ecdab12f85db3b65a4b710b852161a28ac31cf", "branch_name": "refs/heads/master", "committer_date": "2020-05-27T09:59:57", "content_id": "6f75521c87c7cee57a7d36ba05d1e30c8f80d166", "detected_licenses": [ "CC0-1.0" ], "directory_id": "7d83000314d2a47ea64f32757c9c3ced371dd4f2", "extension":...
stackv2
/* * fxpt_atan2.c * * Copyright (C) 2012, Xo Wang * * Hacked up to be a bit more ARM-friendly by: * Copyright (C) 2013 Jared Boone, ShareBrained Technology, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software...
2.765625
3
2024-11-18T21:47:07.576180+00:00
2012-03-31T02:56:25
05868d319cd6ccb7cb8fbe9f7dc0a953586f4692
{ "blob_id": "05868d319cd6ccb7cb8fbe9f7dc0a953586f4692", "branch_name": "refs/heads/master", "committer_date": "2012-03-31T02:56:25", "content_id": "322fd91979389607b96c4e2365c0e54c9f90b443", "detected_licenses": [ "ISC" ], "directory_id": "615fb14e2d0641cbf814d6604c01c40a172e8f1d", "extension": "c"...
stackv2
#include "newton_method.h" float newton_method(float x0, polynomial f, polynomial fprime); float newton_method(float x0, polynomial f, polynomial fprime) { int i=0; float nextx,lastx; lastx=x0; do { nextx = lastx - (*f)(lastx)/(*fprime)(lastx); lastx = nextx; i++; }while(fabs((*f)(lastx)) > FLT_EPSILON);...
2.5625
3
2024-11-18T21:47:07.667254+00:00
2017-05-06T00:05:01
c7340e220c94dfc870dee5deb2d65e73148f0007
{ "blob_id": "c7340e220c94dfc870dee5deb2d65e73148f0007", "branch_name": "refs/heads/master", "committer_date": "2017-05-06T00:05:01", "content_id": "d3224d24ac6f03f1156e7a0705b8376bdd79deb8", "detected_licenses": [ "MIT" ], "directory_id": "41e689fd300411f877d26969c985ad3a17e16786", "extension": "c"...
stackv2
// PotatoDoom.c // Runs on LM4F120/TM4C123 // Main program of Potato Doom // Contains main loop which calls different modules // Steven Zhu #include <stdint.h> #include <math.h> #include "contrib/tm4c123gh6pm.h" #include "contrib/PLL.h" #include "contrib/FPU.h" #include "types.h" #include "graphic.h" void EnableInte...
2.5625
3
2024-11-18T21:47:07.867096+00:00
2018-03-18T18:46:33
3b0ab1d4fc02b566df064d37d55a84fcf5be4d1e
{ "blob_id": "3b0ab1d4fc02b566df064d37d55a84fcf5be4d1e", "branch_name": "refs/heads/master", "committer_date": "2018-03-18T18:46:33", "content_id": "dab7fbe50b4c6df3fa49fe814ddbe847e03da6ab", "detected_licenses": [ "MIT" ], "directory_id": "468c050bcf09f6f7ed45ea3dfab9c2c79f33f1eb", "extension": "c"...
stackv2
#include "image.h" #include <gba_video.h> #include <pcx.h> #include <stdlib.h> typedef struct { unsigned char r, g, b; } pcx_rgb24; void image_load_pcx(Image* image, const u8* pcx) { pcx_rgb24* pal; pcx_header* hdr = (pcx_header*)pcx; pcx += sizeof(pcx_header); //move past the header if (hdr->bpp ...
2.5625
3
2024-11-18T21:58:16.715482+00:00
2023-08-01T08:58:39
03d67f78ab2b8b5645d7d7b36e1aca2e35d9620a
{ "blob_id": "03d67f78ab2b8b5645d7d7b36e1aca2e35d9620a", "branch_name": "refs/heads/master", "committer_date": "2023-08-01T08:58:39", "content_id": "336a61c10b928aaf4f3ffcc70733bb1e22657763", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8cdd62807f116fb92851f99bfcdd7de3c3330ed6", "extensio...
stackv2
// MESSAGE READ_BOARD_NAME PACKING #define MAVLINK_MSG_ID_READ_BOARD_NAME 152 typedef struct MAVLINK_PACKED __mavlink_read_board_name_t { uint8_t resp; /*< 0:No Resp, 1:Resp*/ uint8_t param[8]; /*< */ } mavlink_read_board_name_t; #define MAVLINK_MSG_ID_READ_BOARD_NAME_LEN 9 #define MAVLINK_MSG_ID_READ_BOARD_NAME_M...
2.359375
2
2024-11-18T21:58:18.210302+00:00
2014-12-15T09:28:13
f282788f6a68e2635f49f2920bcaa6d9039c8e88
{ "blob_id": "f282788f6a68e2635f49f2920bcaa6d9039c8e88", "branch_name": "refs/heads/master", "committer_date": "2014-12-15T09:28:13", "content_id": "3e5c4b0eca0c3d83a55de86a3d97014b15883e51", "detected_licenses": [ "MIT" ], "directory_id": "df26d8b2299fde149582bb77418149175fdbf705", "extension": "c"...
stackv2
#include "config.h" #include "shamir.h" #include "g256_tables.h" #include <errno.h> #include <sys/types.h> #include <fcntl.h> #include <string.h> #define GF256_MASK ((1 << 8) - 1) #define MAX_KEYS 255 static int fail(int _errno){ errno = _errno; return -1; } int params_invalid(shamir_params_t params){ return (...
2.4375
2
2024-11-18T21:58:18.289075+00:00
2014-05-20T21:14:39
5c77fee4f264e3a5f8945aeb987cfde8809dcda0
{ "blob_id": "5c77fee4f264e3a5f8945aeb987cfde8809dcda0", "branch_name": "refs/heads/master", "committer_date": "2014-05-20T21:14:39", "content_id": "198f1db46c4a274be169850d2b95ec5680dc4267", "detected_licenses": [ "MIT" ], "directory_id": "dacf1d3297a47d15bdff4fad7becfcf62f31e51d", "extension": "c"...
stackv2
// written by nick welch <nick@incise.org>. author disclaims copyright. #include <stdio.h> #include <time.h> #include <sys/time.h> #include <unistd.h> #include <limits.h> #include <getopt.h> #include <signal.h> #include <string.h> #include <cairo.h> #include "mona.h" #include "diff.h" #define MAX_POINTS 16 int WID...
2.265625
2
2024-11-18T21:58:18.527438+00:00
2014-06-19T08:11:23
2774b2ace2c4dc58ba53b67bc372fc5b94de0a02
{ "blob_id": "2774b2ace2c4dc58ba53b67bc372fc5b94de0a02", "branch_name": "refs/heads/master", "committer_date": "2014-06-19T08:11:23", "content_id": "3b2038e14626e1b149dced4a8cf0798c01880fbb", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "6be9bef0386d7e884731941275f70b3420bc644f", "extens...
stackv2
#include "pthread.h" #include "winint.h" #include <winsock2.h> typedef struct _helperStruct { void *param; ptRoutine fcn; }helperStruct; uint32_t WINAPI helper_thread(void* p) { helperStruct* hs = (helperStruct*)p; hs->fcn(hs->param); free(hs); return 0; } int pthread_create(void** h, void* attr,...
2.546875
3
2024-11-18T21:58:20.174994+00:00
2017-05-15T04:46:23
00035a8ed8d27cd6c593e9f6a1e78ab5fab4de76
{ "blob_id": "00035a8ed8d27cd6c593e9f6a1e78ab5fab4de76", "branch_name": "refs/heads/master", "committer_date": "2017-05-15T04:46:23", "content_id": "43eca1d8ecbc73ec1ce784c10f3de38e5d140e78", "detected_licenses": [ "MIT" ], "directory_id": "6b3ab347e3c24427fcab6b13741193ea6be072f5", "extension": "c"...
stackv2
/* Copyright (c) 2013 Michael P. Thompson <mpthompson@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 limitation the rights to...
2.546875
3
2024-11-18T21:58:20.600788+00:00
2014-04-28T21:15:00
b1575595e1730fab6adcfe0c6ed835d2bd34a574
{ "blob_id": "b1575595e1730fab6adcfe0c6ed835d2bd34a574", "branch_name": "refs/heads/master", "committer_date": "2014-04-28T21:15:00", "content_id": "0880e2709ea6aece0f3e33cd6b51d44330c347ba", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "9408d899af92e6b255ab06ff7ef0212bb372e2db", "extens...
stackv2
/* connectX.c koda za komunikacijo s streznikom X */ #include <stdlib.h> #include <stdio.h> #include <X11/Xlib.h> /* /usr/include/X11, /usr/local/include/X11 */ #include <X11/Xutil.h> /* program - wide globals */ Display *theDisplay; /* kazalec na strukturo prikazovalnika */ int theScreen; ...
2.59375
3
2024-11-18T21:58:20.685861+00:00
2021-03-02T14:03:12
b2817d33d2f22b79f18961f5d6a6ad3ed0e125e1
{ "blob_id": "b2817d33d2f22b79f18961f5d6a6ad3ed0e125e1", "branch_name": "refs/heads/main", "committer_date": "2021-03-02T14:03:12", "content_id": "bd22ef687ba83a84c1bb1a845823364e2152167e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ba805bdd8a230fc8f0f9d5aa6b0e08f1b3062b83", "extension"...
stackv2
#ifndef ENTROPY_H_INCLUDED #ifndef STRUCTURE_H_INCLUDED #include "structure.h" #endif #define ENTROPY_H_INCLUDED /** * Cette fonction prend calcule l'entropy sur une portion du jeu de donnees * Cette portion peut etre total ou bien elle partiel * @param *y:int qui represente l'ensemble des labels categoriel * @...
2.15625
2
2024-11-18T21:58:21.631107+00:00
2018-03-11T10:01:43
a9a4495568ebc06f80f36908f1c257391c7c05c7
{ "blob_id": "a9a4495568ebc06f80f36908f1c257391c7c05c7", "branch_name": "refs/heads/master", "committer_date": "2018-03-11T10:01:43", "content_id": "bfb0dd0638013a04fbea1e2867db78a712d80e4e", "detected_licenses": [ "MIT" ], "directory_id": "c901adf263b3cdcc64ff50b9221f01a43e376199", "extension": "c"...
stackv2
/******************************************************************************** Half duplex software UART implementation using Timer0 and external interrupt 0. Note that the RX_PIN must be the external interrupt 0 pin on your AVR of choice. The TX_PIN can be chosen to be any suitable pin. If you don't want to use...
2.15625
2
2024-11-18T21:58:22.293512+00:00
2017-08-08T19:10:28
0597e811e168701e5c9228f8a40b1dc446b34513
{ "blob_id": "0597e811e168701e5c9228f8a40b1dc446b34513", "branch_name": "refs/heads/master", "committer_date": "2017-08-08T19:10:28", "content_id": "da14a23f48715c4aed6129daf6ff831d5f35850f", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "61fa27eacf7046473994dc861aaa957d85b1b680"...
stackv2
/* Copyright <2017> <Scaleable and Concurrent Systems Lab; Thayer School of Engineering at Dartmouth College> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restr...
2.03125
2
2024-11-18T21:58:22.552858+00:00
2021-01-19T17:19:25
e095e8fd2fcc7fd2ecb631be187aadceb65e014b
{ "blob_id": "e095e8fd2fcc7fd2ecb631be187aadceb65e014b", "branch_name": "refs/heads/main", "committer_date": "2021-01-19T17:19:25", "content_id": "728f5379fcad4790a308d8f099796840dc7e2691", "detected_licenses": [ "MIT" ], "directory_id": "158d20d229f598787787d6f20f73aafd61946595", "extension": "c", ...
stackv2
#include <sys/types.h> #include <dirent.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> int main(int argc, char **argv) { if(argc < 2){ printf("ERROR: Debes introducir la ruta del directorio como parametro\n"); } D...
3.234375
3
2024-11-18T21:58:22.676588+00:00
2018-03-09T22:00:57
0270b1d5a75bd055e759a0438e09b2b40682e954
{ "blob_id": "0270b1d5a75bd055e759a0438e09b2b40682e954", "branch_name": "refs/heads/master", "committer_date": "2018-03-09T22:00:57", "content_id": "624974695b87ed4fe1b2f8a5d8f56667d93eb3bb", "detected_licenses": [ "Unlicense" ], "directory_id": "9427473e67968dd048e287e0946ee81ceef468fd", "extension...
stackv2
/* *Done by Indranil Thakur and Abhay Nagaraj *The program is used to benchmard the memory read write accesses of the system it runs on. *Being used to benchmark the chameleon cloud instances for the Cloud computing CS55 assignment */ //headers to be imported// #include <stdio.h> #include <math.h> #include <sys/time....
3.5
4
2024-11-18T21:58:22.758014+00:00
2016-12-19T11:33:20
03bc955cbc4a73fa12ea7ecd0e941f2defe6e0bd
{ "blob_id": "03bc955cbc4a73fa12ea7ecd0e941f2defe6e0bd", "branch_name": "refs/heads/master", "committer_date": "2016-12-19T11:33:20", "content_id": "c65560b4c0db4589c928d18ea6d18643e1e20cef", "detected_licenses": [ "MIT" ], "directory_id": "fb59ca74443e23f05242b5553779eb4753d18427", "extension": "c"...
stackv2
#include <stdio.h> typedef union { double d; long l; } Doub; #define makeOpFun(funName, OP) \ double funName(double a, double b ){ return ((long) a) OP ((long) b); } #define makeShFun(funName, OP) \ double funName(double a, int b) { return ...
2.75
3
2024-11-18T21:58:23.024141+00:00
2021-03-04T15:44:58
cc60e08b78065328708f002344ec062d5a14a507
{ "blob_id": "cc60e08b78065328708f002344ec062d5a14a507", "branch_name": "refs/heads/main", "committer_date": "2021-03-04T15:44:58", "content_id": "efb2a84c70734ba9dff46e512d480d63f7dc2bb9", "detected_licenses": [ "MIT" ], "directory_id": "3abc77ed4866f835786488a9a6a599ae36031118", "extension": "c", ...
stackv2
#include <fcntl.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #define MAXLON 1000 pthread_t thread, thmain; pthread_attr_t attr; void *cuenta(void *arg) { int pos, cont = 0, leidos; char cadena[MAXLON]; int fd; char *nombre = (char *)arg; fd = open(nombre, O_...
3.15625
3
2024-11-18T21:58:23.100385+00:00
2019-08-25T15:55:35
d986e718d32941696d828fca34931d64f6656a90
{ "blob_id": "d986e718d32941696d828fca34931d64f6656a90", "branch_name": "refs/heads/master", "committer_date": "2019-08-25T18:31:42", "content_id": "f2b380a1d18f5b6039946be06ee9d16b7ac1d59d", "detected_licenses": [ "MIT" ], "directory_id": "0fc26549d51872661be9534039d908825afae72a", "extension": "c"...
stackv2
/* * word_count.c * Copyright (C) 2018 Damian Ciecinski <damianciecinski@gmail.com> * * Distributed under terms of the MIT license. */ #include <stdint.h> #include <string.h> #include <stdbool.h> #include <stdio.h> #include <ctype.h> #include "word_count.h" void add_word_to_list(char * word, word_count_word_t *...
3.625
4
2024-11-18T21:58:23.167926+00:00
2019-07-17T17:26:52
db04c2055916c57504dd36aaf16eea073dcb9a2d
{ "blob_id": "db04c2055916c57504dd36aaf16eea073dcb9a2d", "branch_name": "refs/heads/master", "committer_date": "2019-07-17T17:26:52", "content_id": "ee37031f8a20872cd836d024bc8bf66d339d5456", "detected_licenses": [ "MIT" ], "directory_id": "aaf622b277e57da9963c430b9df01d4ce199baaa", "extension": "c"...
stackv2
#include "config.h" #include "delay.h" #include "led.h" /** * Blink diagnostic LED. Optional feature (edit config.h to define hardware configuration). */ void led_blink (int nblink) { int i; for (i = 0; i < nblink; i++) { led_on(); delay_milliseconds(200); led_off(); delay_milliseconds(200); } } //__...
2.140625
2
2024-11-18T21:58:23.426887+00:00
2018-03-23T03:41:34
6c9cb9aa30c092eab5b39b199478a1db35d9ca6d
{ "blob_id": "6c9cb9aa30c092eab5b39b199478a1db35d9ca6d", "branch_name": "refs/heads/master", "committer_date": "2018-03-23T03:41:34", "content_id": "83ce4efa811123080216229cfeaa942bbe725741", "detected_licenses": [ "MIT" ], "directory_id": "cbe5c739b38182eb49dac643b253f340f939acf1", "extension": "h"...
stackv2
/* Data structure for I/O of polygonal models Eugene Zhang 2005 */ #ifndef __LEARNPLY_IO_H__ #define __LEARNPLY_IO_H__ typedef struct Vertex_io { float x,y,z; void *other_props; /* other properties */ } Vertex_io; typedef struct Face_io { unsigned char nverts; /* number of vertex indices in list */...
2.328125
2