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:59:26.506439+00:00
2023-08-17T21:51:22
44e97866265c9e8a39789fa60eb2f44617b40c22
{ "blob_id": "44e97866265c9e8a39789fa60eb2f44617b40c22", "branch_name": "refs/heads/master", "committer_date": "2023-08-17T21:51:22", "content_id": "95ac4f1e7e347f3997446316cca24f2734c4f1c4", "detected_licenses": [ "MIT" ], "directory_id": "80f3b23dce2738ff296d938a16b9f5bc8a7773f2", "extension": "c"...
stackv2
#include <stdio.h> #define QL printf("\n") typedef struct { int dia, mes, ano; }Data; typedef struct { Data data_venda; int qtd_pecas; float preco; }Venda; void imprime_venda(Venda venda); int main() { Venda venda1 = {04,06,2020, 1, 12.53}; Venda *p_venda; //---> ponteiro para a um ...
3.28125
3
2024-11-18T23:59:27.080578+00:00
2019-08-23T00:53:35
643e3e310438e62a7b7bbb7ad433efb7febb00c1
{ "blob_id": "643e3e310438e62a7b7bbb7ad433efb7febb00c1", "branch_name": "refs/heads/master", "committer_date": "2019-08-23T00:53:35", "content_id": "4744f9c497900412f7afce43e452995e71b573ff", "detected_licenses": [ "MIT" ], "directory_id": "09884947c578015a250e41dd8b7c694685490b66", "extension": "c"...
stackv2
/************************************************************************** * FILE: array-list.c * AUTHOR: James Johnson * CREATE DATE: 26-August-2009 * PROJECT: shared * COPYRIGHT: 2009, UQ * VERSION: $Revision: 1.0 $ * DESCRIPTION: Data structure for manipulating a list ************************************...
2.984375
3
2024-11-18T23:59:27.602186+00:00
2015-07-31T19:33:31
4e2d1e48a422433bd39432e4e379d18211fd1a33
{ "blob_id": "4e2d1e48a422433bd39432e4e379d18211fd1a33", "branch_name": "refs/heads/master", "committer_date": "2015-07-31T19:33:31", "content_id": "015ce7d7cdb46a40e99b73e4fc33c74db403f1a3", "detected_licenses": [ "MIT" ], "directory_id": "2a5268a09ddc1bd8afe53032b3cfabf0f3b2b0a0", "extension": "c"...
stackv2
/* embedded system library for e-puck -------------------------------------------------------------------------------- code distribution: https://github.com/jianingchen/epucklib online documentation: http://jianingchen.github.io/epucklib/html/ -----------------------------------------------------------------------...
2.5625
3
2024-11-18T23:59:28.301555+00:00
2022-03-09T15:26:51
00618b0026ea83ddafe9608a23cc3344094d7841
{ "blob_id": "00618b0026ea83ddafe9608a23cc3344094d7841", "branch_name": "refs/heads/master", "committer_date": "2022-03-09T15:26:51", "content_id": "b06350153c162f8ca62b7e597aaa99257fdd7c8e", "detected_licenses": [ "MIT" ], "directory_id": "5e8798c74fa00d14d72acf252b8f60b2ff2a56e0", "extension": "h"...
stackv2
/* * Author: doe300 * * See the file "LICENSE" for the full license governing this code. */ #ifndef VC4CL_RELATIONAL_H #define VC4CL_RELATIONAL_H #include "_config.h" #include "_overloads.h" #include "_intrinsics.h" #ifndef COMPARISON_1 #define COMPARISON_1(func, content) \ INLINE FUNC_1(int##16, func, float##1...
2.484375
2
2024-11-18T23:59:28.446185+00:00
2019-05-15T19:43:10
5bf33206e0ab0234cf57bad28547e0628ac5f2a3
{ "blob_id": "5bf33206e0ab0234cf57bad28547e0628ac5f2a3", "branch_name": "refs/heads/master", "committer_date": "2019-05-15T19:43:10", "content_id": "8ce3e8aaf4406e61f072acfb7dda7e728cbe2fff", "detected_licenses": [ "MIT" ], "directory_id": "79af028bf8da51166b71194e2ac89890c5240efb", "extension": "c"...
stackv2
/* * sample_cb.c * * Created on: 02 Dec 2016 * Author: Fabian Meyer */ #include <smallargs.h> #include <stdio.h> #include <math.h> #include <assert.h> #define UNUSED(x) ((void)x) #define FILENAME_LEN 256 static sarg_root root; static char filename[FILENAME_LEN]; static int got_file = 0; static int help_c...
3
3
2024-11-18T23:59:28.695631+00:00
2021-07-07T13:37:00
ef4333dfa1a6166dea54f5aed9ab84a6d50ba8dd
{ "blob_id": "ef4333dfa1a6166dea54f5aed9ab84a6d50ba8dd", "branch_name": "refs/heads/main", "committer_date": "2021-07-07T13:37:00", "content_id": "cf96d0a941a1b3c63c7bc18503de70eecdf66969", "detected_licenses": [ "MIT" ], "directory_id": "960cf40a3911d58c2e3c85af32039edda90fec93", "extension": "c", ...
stackv2
#include "costream.h" #include "costream.h" int _istream_fill(istream_t *stm) { size_t sz; const char *b = stm->reader(stm->ud, &sz); if (b && sz > 0) { stm->bn += sz; stm->n = sz; stm->b = b; stm->p = b; return 1; } else { stm->n = 0; } return 0; } size_t istream_getb(istream_t *stm, void *b, size...
2.578125
3
2024-11-18T23:59:28.873624+00:00
2013-09-03T11:49:30
977cbbbed6e5ab95423579dc6ad0053951ed0676
{ "blob_id": "977cbbbed6e5ab95423579dc6ad0053951ed0676", "branch_name": "refs/heads/master", "committer_date": "2013-09-03T11:49:30", "content_id": "d8063ecf46f7628c04d30bd38ff89265dc145d56", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "04059aace7afad90b40d3315db8eb62fd1f682ba", "extens...
stackv2
/* * callback_log.c * * Callback hook to log users's commands */ #include <stdio.h> #include <stdlib.h> #include <syslog.h> #include <sys/types.h> #include <pwd.h> #include "clish/shell.h" #define SYSLOG_IDENT "klish" #define SYSLOG_FACILITY LOG_LOCAL0 /*--------------------------------------------------------- ...
2.34375
2
2024-11-18T23:59:29.108268+00:00
2020-11-05T15:49:17
0188cf6c1d43ce385453d9dcbfdb244186484915
{ "blob_id": "0188cf6c1d43ce385453d9dcbfdb244186484915", "branch_name": "refs/heads/master", "committer_date": "2020-11-05T15:49:17", "content_id": "ebaa7ce6b13de8eeacb479c348bf5b235d533e16", "detected_licenses": [ "MIT" ], "directory_id": "62a7f3b7e884f49d0285bfdf483ef53cec890019", "extension": "c"...
stackv2
/* * Copyright (c) Andras Zsoter 2015. * * 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, d...
2.234375
2
2024-11-18T23:59:31.996988+00:00
2017-12-07T03:27:10
3792f5769d2c588522dc32b3a6a7694a4cf7d3b0
{ "blob_id": "3792f5769d2c588522dc32b3a6a7694a4cf7d3b0", "branch_name": "refs/heads/master", "committer_date": "2017-12-07T03:27:10", "content_id": "ce215ae5f2922816e35fe409543cc72d2aa75193", "detected_licenses": [ "Apache-2.0" ], "directory_id": "424bfa9f6420b46d855fb62d0aeaacb2c3d2c974", "extensio...
stackv2
source: http://www.securityfocus.com/bid/8629/info Liquid War has been reported prone to a buffer overflow condition when handling HOME environment variables of excessive length. The issue presents itself, due to a lack of sufficient boundary checks performed on data contained in the HOME environment variable before ...
2.515625
3
2024-11-18T23:59:32.484847+00:00
2021-11-06T18:34:20
08027065d0d7379905e60e4ba9868beb2eead8c9
{ "blob_id": "08027065d0d7379905e60e4ba9868beb2eead8c9", "branch_name": "refs/heads/master", "committer_date": "2021-11-06T18:34:20", "content_id": "95d12531be9975a0ae2a1d5e306f4de533d880cf", "detected_licenses": [ "MIT" ], "directory_id": "d1c8b753006466b48673ec3c225adddd269e305b", "extension": "c"...
stackv2
/****************************************************************************** * * IMD -- The ITAP Molecular Dynamics Program * * Copyright 1996-2008 Institute for Theoretical and Applied Physics, * University of Stuttgart, D-70550 Stuttgart * ***************************************************************************...
2.3125
2
2024-11-18T23:59:32.572987+00:00
2019-05-31T10:10:42
5684f270157327ff37bb84069f9786056f1b782c
{ "blob_id": "5684f270157327ff37bb84069f9786056f1b782c", "branch_name": "refs/heads/master", "committer_date": "2019-05-31T10:10:42", "content_id": "a15bb86813b856946d6d9141924bcf63fd1b617c", "detected_licenses": [ "MIT" ], "directory_id": "66bb7775b45080710ad978c18cdb648e02820cc5", "extension": "c"...
stackv2
#include <stdio.h> #include <assert.h> #include <string.h> #include <elf.h> #include <stdlib.h> #include "elffile.h" void resolve_symbol(ELFFile* inputs, int inputs_num, Symbol* sym) { for (int j = 0; j < inputs_num; j++) { for (int i = 0; i < inputs[j].symbols_num; i++) { Symbol* o...
2.515625
3
2024-11-18T23:59:33.015365+00:00
2013-04-09T13:42:22
bc19becdf48713556828041be3d6c123cec0c089
{ "blob_id": "bc19becdf48713556828041be3d6c123cec0c089", "branch_name": "refs/heads/master", "committer_date": "2013-04-09T13:42:22", "content_id": "26edc475b3ee2ae5911af5a0fff79814a9446594", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "688de8f0f7c5262b9baefbfcb9f4e2d443884034", "extens...
stackv2
#ifndef CRYPTO_CONTEXT_H #define CRYPTO_CONTEXT_H #include "device_context.h" typedef struct gpu_stream_s { uint8_t *input_d; uint8_t *output_d; unsigned long out_len; } gpu_stream_t; typedef struct crypto_context_s { device_context_t *dev_ctx; gpu_stream_t *streams; } crypto_context_t; /** * Constructior. *...
2.28125
2
2024-11-18T23:59:33.072481+00:00
2021-04-13T13:47:56
78bbad26e7895b3c74b5f854c016d47d7d3f8f5e
{ "blob_id": "78bbad26e7895b3c74b5f854c016d47d7d3f8f5e", "branch_name": "refs/heads/master", "committer_date": "2021-04-13T13:47:56", "content_id": "3500ef29d6b2d1f67601985adebdddb62aa95bfa", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "81adc7406c0674d0063c05c72e1873cab24d1889", "extens...
stackv2
#include <u.h> #include <libc.h> #include <thread.h> #include <draw.h> #include <keyboard.h> #include <cursor.h> #include <mouse.h> #include "dat.h" #include "fncs.h" enum { RESIZEC, KEYC, REDRAW, NONE }; Mousectl *mctl; Keyboardctl *kctl; Channel *ctl, *lout, *loadc; Channel *vctl, *vlevel; Channel *clickin...
2.125
2
2024-11-18T23:59:33.131111+00:00
2023-08-18T10:48:30
202d37e041bb2d90e6064d1b37f5eccbb741416c
{ "blob_id": "202d37e041bb2d90e6064d1b37f5eccbb741416c", "branch_name": "refs/heads/master", "committer_date": "2023-08-18T10:48:30", "content_id": "083e979548a81fcf32636a63bf1da403b1fb7f17", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8b04bef9aa1ac8e2c109dd315f133c8f4d28ae6", "extensio...
stackv2
/* * Description: Test Supervisor device API * This file contains tests of reset simulation method */ #include <webots/camera.h> #include <webots/robot.h> #include <webots/supervisor.h> #include "../../../lib/ts_assertion.h" #include "../../../lib/ts_utils.h" #define TIME_STEP 32 #define SOLID_BOX_...
2.265625
2
2024-11-18T23:59:33.518762+00:00
2014-11-06T18:51:00
e030ed4a54fdb3b0d25efbb5f13fef36743dc594
{ "blob_id": "e030ed4a54fdb3b0d25efbb5f13fef36743dc594", "branch_name": "refs/heads/master", "committer_date": "2014-11-06T18:51:00", "content_id": "03faa7581f469871e3d72e08b8641342ede54ba4", "detected_licenses": [ "MIT" ], "directory_id": "4cad482d3e02343b3c5f944f4e0eab00ec30d351", "extension": "c"...
stackv2
/* * C implementation of the python library fastnumbers. * * Author: Seth M. Morton, July 30, 2014 */ #include <Python.h> #include "fast_conversions.h" #include "version.h" #include "docstrings.h" #include "convenience.h" /* Used to determine if a float is so large it lost precision. */ const double maxsize = 900...
2.90625
3
2024-11-18T23:59:33.580632+00:00
2020-05-16T08:00:30
e19e51ef6795a695eeb98769c89757b3548a33b7
{ "blob_id": "e19e51ef6795a695eeb98769c89757b3548a33b7", "branch_name": "refs/heads/master", "committer_date": "2020-05-16T08:00:30", "content_id": "469d1a9da4c156b2e8f0841e73f58c09456e5ee2", "detected_licenses": [ "MIT" ], "directory_id": "506d7910827b44677f181be3eb0054955bc7b391", "extension": "h"...
stackv2
// // 订单的定义、加载、存储、排序、输出以及购买商品、删除订单的逻辑 // Created by 黄承汇 on 2020/4/12. // #ifndef MARKETING4C_ORDER_H #define MARKETING4C_ORDER_H #include "../core.h" #include "goods.h" #define ORDER_BIN_PATH "order.txt" typedef struct MarketOrder { int id; // 订单编号 char goods_id[30]; // 商品编号 int count; // 销售量 float p...
2.109375
2
2024-11-18T23:59:33.648490+00:00
2015-03-30T06:41:57
3f2e11a4b06b79625f4634e231788411634afd54
{ "blob_id": "3f2e11a4b06b79625f4634e231788411634afd54", "branch_name": "refs/heads/master", "committer_date": "2015-03-30T06:41:57", "content_id": "fd764665c5455de2cef275b61b970d9448a00362", "detected_licenses": [ "BSD-2-Clause", "MIT" ], "directory_id": "2f17e32160c099e1bcb9805c2cbc307f71a02f1f"...
stackv2
#ifndef CN_ENCODER_C #define CN_ENCODER_C #ifdef __cplusplus extern "C" { #endif #ifdef EMACS_INDENTATION_HELPER } /* Duh. */ #endif #include <arpa/inet.h> #include <string.h> #include <strings.h> #include <stdint.h> #include <assert.h> #include "cn-cbor/cn-encoder.h" #include "cbor.h" #define hton8p(p) (*(uint8_t...
2.171875
2
2024-11-18T23:59:33.969306+00:00
2013-07-19T09:49:43
457027ebd8920d4e845f4018b23d0e8f271132e9
{ "blob_id": "457027ebd8920d4e845f4018b23d0e8f271132e9", "branch_name": "refs/heads/master", "committer_date": "2013-07-19T09:49:43", "content_id": "56986a48883d2c5140dd66a8972467b5cabf8474", "detected_licenses": [ "MIT" ], "directory_id": "995805e35fdd9cf6b1efb15e1f7f52c4b7660138", "extension": "c"...
stackv2
/* * hot_patch.c for hot_patch * by lenorm_f */ #include <time.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/stat.h> #include "hot_patch.h" #define BUF_SIZE 256 #define TYPE_BUF_SIZE 10 #define VALUE_BUF_SIZE 20 #define IS_SEP(x) ((x) == ' ' || (x) == '\t') #ifdef DEBUG_HP #define D...
2.90625
3
2024-11-18T23:59:34.056646+00:00
2023-02-24T19:25:02
c51dcec6aa3408be5657675f6529aa5c6213c15d
{ "blob_id": "c51dcec6aa3408be5657675f6529aa5c6213c15d", "branch_name": "refs/heads/master", "committer_date": "2023-02-24T19:25:02", "content_id": "1a16b178317ad47cb78a27d4702ecdc7fde29719", "detected_licenses": [ "MIT" ], "directory_id": "d511c853d941f55c421dc78e30c20977451b7106", "extension": "c"...
stackv2
/* mutest-format-mocha.c: Mocha format output * * µTest - Copyright 2019 Emmanuele Bassi * * SPDX-License-Identifier: MIT */ #include "mutest-private.h" #include <string.h> static void mocha_suite_preamble (mutest_suite_t *suite) { if (mutest_use_colors ()) mutest_print (stdout, "\n", ...
2.421875
2
2024-11-18T23:59:34.132651+00:00
2021-12-14T17:08:04
ff6a2e6af50ee1a33030b5fc2273f9d0c8498cff
{ "blob_id": "ff6a2e6af50ee1a33030b5fc2273f9d0c8498cff", "branch_name": "refs/heads/master", "committer_date": "2021-12-14T17:08:04", "content_id": "df93a82f6cd4ffb9505648c152313749f9dd3338", "detected_licenses": [ "MIT" ], "directory_id": "e4cc640e4082c8a8ab5b5752f86a07b237832a8c", "extension": "c"...
stackv2
#include <assert.h> #include <errno.h> #include <getopt.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "handler.h" static int parse_natural(const char *string, int *value) { long int tmp; char *chk = NULL; /* attempt conversion */ errno ...
2.140625
2
2024-11-18T23:59:34.676270+00:00
2021-05-24T02:27:27
ef526c7d6986f19e07cde3af6fbb959e9f9886df
{ "blob_id": "ef526c7d6986f19e07cde3af6fbb959e9f9886df", "branch_name": "refs/heads/main", "committer_date": "2021-05-24T02:27:27", "content_id": "200c55e591d284cf465a795ba4203d24bdc064bc", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "0fe2da14bfdbf46fd2ba7be03cf0191cfe157b38", "extensio...
stackv2
#include "zset.h" /* _serverAssert is needed by dict */ static void _serverAssert(const char *estr, const char *file, int line) { fprintf(stderr, "=== ASSERTION FAILED ==="); fprintf(stderr, "==> %s:%d '%s' is not true",file,line,estr); *((char*)-1) = 'x'; } /* Create a skiplist node with the specified nu...
2.796875
3
2024-11-18T23:59:35.102296+00:00
2017-02-15T21:20:38
dd9e9098439dcf55391d19eeea38ca316775b695
{ "blob_id": "dd9e9098439dcf55391d19eeea38ca316775b695", "branch_name": "refs/heads/master", "committer_date": "2017-02-15T21:20:38", "content_id": "34ddb81719a71b953f3b595b1bb4eb87a0ef0fdd", "detected_licenses": [ "MIT" ], "directory_id": "e04a5df908b503e91dbbb270a63495dc819476ee", "extension": "c"...
stackv2
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include <stdlib.h> #ifdef _CRTDBG_MAP_ALLOC #include <crtdbg.h> #endif #include "testrunnerswitcher.h" #include "azure_c_shared_utility/crt_abstractions.h" #include "...
2.296875
2
2024-11-18T23:59:35.256616+00:00
2021-04-30T19:19:41
75e760eaaaf5f7ae932e9e0125ef8d7fa101c00e
{ "blob_id": "75e760eaaaf5f7ae932e9e0125ef8d7fa101c00e", "branch_name": "refs/heads/master", "committer_date": "2021-04-30T19:19:41", "content_id": "8aa03978fec2b22202eac69814b0e15d1d96ceca", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cc2a86dbc4038e06b5f924c684b7b9768d6b6b39", "extensio...
stackv2
/* * Vulkan Renderer Program * * Copyright (C) 2020 Kyle Wang */ #pragma once #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> struct Camera { float pitch = 0.0f; float yaw = 0.0f; //float distance = 5.0; float fov = 45.0; float znear, zfar; enum CameraType { lookat, firstperson }; CameraTyp...
2.46875
2
2024-11-18T23:59:35.338634+00:00
2013-10-18T00:07:54
bfc734a972c0f037f32b8a77f550d4e138729d95
{ "blob_id": "bfc734a972c0f037f32b8a77f550d4e138729d95", "branch_name": "refs/heads/master", "committer_date": "2013-10-18T00:07:54", "content_id": "5d7d63dfe162d907e2afd6272e3a28a646cc6eed", "detected_licenses": [ "Unlicense" ], "directory_id": "d7b5957b9946d5bbfd32788c4db8e6b6c0d71aa1", "extension...
stackv2
//Sarah Bass //My shell...it's not great, but it does execute some basic commands. #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <ctype.h> #include "linkedList.h" #include "alias.h" #define MOST 1000 int historyCmds(char** prePipe, Node* historyhead, int HISTORYCOUNT, int h...
2.421875
2
2024-11-18T23:59:35.485255+00:00
2020-11-30T20:11:22
a3ea42db5007828e95d73c013df4e4a3f4177ad2
{ "blob_id": "a3ea42db5007828e95d73c013df4e4a3f4177ad2", "branch_name": "refs/heads/main", "committer_date": "2020-11-30T20:17:18", "content_id": "695616992ea91388ed38e8a43ac8e825fdfbb32a", "detected_licenses": [ "MIT" ], "directory_id": "eeae960f626e1bcd913b6fe359012c619ad407c1", "extension": "c", ...
stackv2
/** * Simple test main function */ #include <iostream> #include "generic_types.h" int main() { cgen::Shape s = cgen::Shape("A"); printf("(I): Shape category: %s\n", s.category); cgen::Circle c = cgen::Circle(15); printf("(I): Shape category: %s, radius: %d\n", c.category, c.radius); printf("(D): Circl...
2.96875
3
2024-11-18T23:59:36.027857+00:00
2020-05-08T10:25:48
f6a5606e0b16ae44781719d9a98a897c9da70119
{ "blob_id": "f6a5606e0b16ae44781719d9a98a897c9da70119", "branch_name": "refs/heads/master", "committer_date": "2020-05-08T10:25:48", "content_id": "bdba7b5917aa73ef3314271d6a46142dbeac4f15", "detected_licenses": [ "MIT" ], "directory_id": "73048235923d6e438f65761a7006b2c6902e6626", "extension": "c"...
stackv2
#include "types.h" #include "stat.h" #include "user.h" #include "fcntl.h" #define MAX_BUF 512 enum bool {false,true}; /* sort the passed lines using bubblesort algorithm. Accepts numeric or not numeric values. */ void bubbleSort(char **v,int dim,enum bool numeric){ int i=0; enum bool order=false; while(dim>1 && !...
2.984375
3
2024-11-18T23:59:36.257769+00:00
2020-02-27T18:27:43
7915e455cdbf2c46829b69604eded7275b2a304b
{ "blob_id": "7915e455cdbf2c46829b69604eded7275b2a304b", "branch_name": "refs/heads/master", "committer_date": "2020-02-27T18:27:43", "content_id": "221f99fa16f8ef2beeaba6c436b365f9a2f94585", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "da87c3c4568baf73eafba3bdd0398b72...
stackv2
/* * FILE ~/usr/sbr/str_0022.c * * isolate words out of a string. * * written: 1993-04-23 * latest update: 1998-02-18 17:03:41 * */ #ifdef MSDOS #pragma check_stack(off) #endif #include <string.h> #include <ctype.h> #include <gg/strings.h> /* --------------------------------------------------------...
2.234375
2
2024-11-18T23:59:36.976294+00:00
2017-08-22T23:26:51
e49e00f9704edf2cd0db6369d1806070945fb642
{ "blob_id": "e49e00f9704edf2cd0db6369d1806070945fb642", "branch_name": "refs/heads/master", "committer_date": "2017-08-22T23:26:51", "content_id": "83b40bfc0ce51e80564633a426c4f2aa76590843", "detected_licenses": [ "MIT" ], "directory_id": "c7ff9aacd6bcb92945102662cbbe8064a26e53f5", "extension": "c"...
stackv2
// Pi calculation on multiple nodes // Author: Dimitris Gravanis, 2017 #include <stdio.h> #include <math.h> #include "mpi.h" int main(int argc, char *argv[]) { double Pi = 3.141592653689793238482643; double mypi, pi, h, sum, x; double ta, tt; int i, n; int rank, size; MPI_Init(&argc, &argv); MPI_Comm_rank(MP...
3.296875
3
2024-11-18T23:59:37.169881+00:00
2020-01-30T15:52:16
9f2d8a5568274038c5fe177ae73160044401e952
{ "blob_id": "9f2d8a5568274038c5fe177ae73160044401e952", "branch_name": "refs/heads/master", "committer_date": "2020-01-30T15:52:16", "content_id": "d5e7f78d6d206a4c75df9bbfae36b49d101003c0", "detected_licenses": [ "MIT" ], "directory_id": "40de3da30239862f11a946166b50438174c2fd4e", "extension": "c"...
stackv2
string short_desc; string long_desc; int weight; int damage; int quality; int hit_chance; int crit_chance; int stun_chance; string maker; string type; string crafted; query_missile_type() { return type; } query_maker() { return maker; } query_quality() { return quality; } query_damage() { return damage; } query_weight...
2.046875
2
2024-11-18T23:59:38.149418+00:00
2023-04-01T06:51:55
f8cc96c8f30c669f92465d709df1d8bb0d73c0c0
{ "blob_id": "f8cc96c8f30c669f92465d709df1d8bb0d73c0c0", "branch_name": "refs/heads/master", "committer_date": "2023-04-01T06:51:55", "content_id": "ce7ad380cc2eeaacfe16d051b09393ca799d4e25", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d4e842556a45674591ae63935cb2eb207df416ac", "extensio...
stackv2
#include <jni.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <android/bitmap.h> #include <android/log.h> #ifdef __ARM_NEON__ #include <cpu-features.h> #endif // __ARM_NEON__ #include "NE10_types.h" #include "NE10_macros.h" #define LOG_TAG "ne10blurlib" #define LOGV(...) __an...
2.1875
2
2024-11-18T23:59:38.989843+00:00
2023-03-25T17:57:33
b46d96405f3f79e61de05ea51a5b84850e2fb2ec
{ "blob_id": "b46d96405f3f79e61de05ea51a5b84850e2fb2ec", "branch_name": "refs/heads/master", "committer_date": "2023-03-25T17:57:33", "content_id": "2e3ad4397227c3c8982ded620109a7e3839dd107", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "6601ed1b6c24e8b7e78312aeaadf816262c4bee3", "extens...
stackv2
#include <stdio.h> #include <machine/patmos.h> #include <machine/spm.h> // Pointers to the IO device registers volatile _SPM int *readdata_0_ptr = (volatile _SPM int *) 0xF00b0000; volatile _SPM int *readdata_1_ptr = (volatile _SPM int *) 0xF00b0004; volatile _SPM int *readdata_2_ptr = (volati...
2.609375
3
2024-11-18T23:59:39.211267+00:00
2020-04-17T15:54:49
c990c60113eed24feb4afac738f404c77ec32a64
{ "blob_id": "c990c60113eed24feb4afac738f404c77ec32a64", "branch_name": "refs/heads/master", "committer_date": "2020-04-17T15:54:49", "content_id": "b646c70688a8a3f3c4f73305d3a43291a4069fa4", "detected_licenses": [ "MIT" ], "directory_id": "35c0564934cabd25e11015c7e661dc42bb18e0be", "extension": "c"...
stackv2
#include "shell.h" /** * split_aux - get flags to command * @argv: direction pointer * @string: Pointer to string * Return: None */ void split_aux(char **argv, char *string) { char **arguments = argv; int i = 0; char delimit[] = " \t"; char *token = strtok(string, delimit); if (_strcmp(token, "/bin/echo") =...
2.796875
3
2024-11-18T23:59:39.489551+00:00
2021-07-04T12:44:40
934e23202bbf120aa1e9fbcc32d5882dad762f6d
{ "blob_id": "934e23202bbf120aa1e9fbcc32d5882dad762f6d", "branch_name": "refs/heads/master", "committer_date": "2021-07-04T12:44:40", "content_id": "1f3f51c37a060e895f01febc1f933b4b22bb61bb", "detected_licenses": [ "MIT" ], "directory_id": "3d13ffe64f084a7a31841b0c6f5c513818177267", "extension": "h"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_list.h :+: :+: :+: ...
2.328125
2
2024-11-18T23:59:39.819951+00:00
2013-04-17T18:42:40
b87d503ebe1776eac13aaa651d47817749c59ca5
{ "blob_id": "b87d503ebe1776eac13aaa651d47817749c59ca5", "branch_name": "refs/heads/master", "committer_date": "2013-04-17T18:42:40", "content_id": "e3d96302b115e424544e725500ef01656bd19248", "detected_licenses": [ "MIT" ], "directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef", "extension": "c"...
stackv2
/********************************************************* Konami 054539 PCM Sound Chip A lot of information comes from Amuse. Big thanks to them. CHANNEL_DEBUG enables the following keys: PAD. : toggle debug mode PAD0 : toggle chip (0 / 1) PAD4,6 : select channel (0 - 7) PAD8,2...
2.09375
2
2024-11-18T23:59:40.240255+00:00
2017-03-12T20:24:15
ea45256dd8b06800c7c92e7880cda97d5b08fd00
{ "blob_id": "ea45256dd8b06800c7c92e7880cda97d5b08fd00", "branch_name": "refs/heads/master", "committer_date": "2017-03-12T20:24:15", "content_id": "6876b588d7f55ce1b78353c0531fbc80deee434e", "detected_licenses": [ "MIT" ], "directory_id": "c60529950e902cfa18dc5056858d4c641218dab7", "extension": "h"...
stackv2
#pragma once #include <stdint.h> #include <stddef.h> #include "primes.h" typedef struct pt_CountMinSketch { size_t width; size_t height; uint32_t *mat; } pt_CountMinSketch; pt_CountMinSketch *pt_CountMinSketch_alloc(size_t width, size_t height, uint32_t *mat); void pt_CountMinSketch_free(pt_CountMinSke...
2.078125
2
2024-11-18T23:59:40.578204+00:00
2021-09-17T14:30:55
bbda2ad747a795b06f959d65ab5a21dfad38a278
{ "blob_id": "bbda2ad747a795b06f959d65ab5a21dfad38a278", "branch_name": "refs/heads/master", "committer_date": "2021-09-17T14:30:55", "content_id": "f5b4e796d8ad174dce025435ff6cb966d0af92dc", "detected_licenses": [ "MIT" ], "directory_id": "22271c2a65169c49707c24261d99166d75f5a871", "extension": "c"...
stackv2
// Copyright (c) Olaru Alexandru <xdxalexandru404@gmail.com> // Licensed under the MIT license found in the LICENSE file in the root of this repository. #include <memduinod/memduinod.h> #include <memduinod/exitcodes.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <argx/argx...
2.484375
2
2024-11-18T23:59:41.472259+00:00
2016-01-02T03:46:37
c7a70466ace0b288042b29756e34e8e43e4ec0e4
{ "blob_id": "c7a70466ace0b288042b29756e34e8e43e4ec0e4", "branch_name": "refs/heads/master", "committer_date": "2016-01-02T03:46:37", "content_id": "17d4b327070bd2ec3c37ccf581d080d13860c8fa", "detected_licenses": [ "MIT" ], "directory_id": "0410a5f1f0ed13a25aa42cf85886611635b9acb4", "extension": "h"...
stackv2
#ifndef __MM_H__ #define __MM_H__ #include <sys/types.h> #include <lib/asm.h> // The page size is platform dependent and determined at boot time extern uint32_t PAGESIZE; // The size and start address of memory is system dependent and determined at boot time extern uint32_t MEMSIZE; extern uint32_t MEMBASEADDR; //...
2.171875
2
2024-11-18T23:59:41.574731+00:00
2015-09-02T15:23:18
c1e7c24d1ce18d5b58f6f2ee1266fa729beb8010
{ "blob_id": "c1e7c24d1ce18d5b58f6f2ee1266fa729beb8010", "branch_name": "refs/heads/master", "committer_date": "2015-09-02T15:23:18", "content_id": "e12e76cddfb7227162adcb138cc45d8c2603b7c0", "detected_licenses": [ "MIT" ], "directory_id": "5d0ddbd6f42843ded4d5ba18966dc130725607d2", "extension": "cp...
stackv2
/* The MIT License (MIT) Copyright (c) 2015 OpenVec 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.40625
2
2024-11-18T23:59:42.307904+00:00
2018-05-23T06:55:18
7fa0719f70f8dd0b490c515187bc45c6697657b8
{ "blob_id": "7fa0719f70f8dd0b490c515187bc45c6697657b8", "branch_name": "refs/heads/master", "committer_date": "2018-05-23T06:55:18", "content_id": "20aee7001eb217df92c208d9257eb45fd80d1cf3", "detected_licenses": [ "MIT" ], "directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd", "extension": "c"...
stackv2
// story:qishangquan 七伤拳 #include <ansi.h> nosave string char_id; nosave string char_name; nosave string family_name; int give_gift(); object select_character(); nosave mixed *story = ({ "话说当日成昆让一武林高手救之后:", "杨逍:教主,本教刚刚经过了一场大战,我们应先回光明顶重整明教。", "张无忌:杨左使说得也没错,那么我就和杨左使先回光明顶,义父你和韦一笑去追击成昆吧。", ...
2.15625
2
2024-11-18T23:59:42.382785+00:00
2021-10-06T12:44:35
b217676516aeb7aa73177cfc3d986d5d0494aac8
{ "blob_id": "b217676516aeb7aa73177cfc3d986d5d0494aac8", "branch_name": "refs/heads/master", "committer_date": "2021-10-06T12:44:35", "content_id": "ab57e8b18535b65cc26d2d8c4fbcb2027ade3b28", "detected_licenses": [ "MIT" ], "directory_id": "fb76700eee354c681edf9a31977796b0edc8c39a", "extension": "c"...
stackv2
#include "lcd_init.h" #include "spi.h" #include "lcd.h" #include "cmsis_os.h" extern SPI_HandleTypeDef hspi2; #define LCD_DC_Set() HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_SET); #define LCD_DC_Clr() HAL_GPIO_WritePin(GPIOB, GPIO_PIN_14, GPIO_PIN_RESET); #define LCD_CS_Set() HAL_GPIO_WritePin(GPIOD, TFT_SPI_CS_...
2.09375
2
2024-11-18T23:59:42.611319+00:00
2021-12-26T05:35:24
610df1a279c902571296fbe4082b9c223b126ead
{ "blob_id": "610df1a279c902571296fbe4082b9c223b126ead", "branch_name": "refs/heads/main", "committer_date": "2021-12-26T05:35:24", "content_id": "7f9e6b6881d78c1400cbac111ce592f67e997491", "detected_licenses": [ "MIT" ], "directory_id": "b4dc6ae1796640da99929d642fccccc4c26e3c82", "extension": "c", ...
stackv2
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <buffer.h> unsigned long B_count(FILE *stream) { long n, p; n = ftell(stream); if(n < 0) { return -1; } p = n/PAGE_SIZE; if(n % PAGE_SIZE != 0) { p++; } return p; } unsigned long B_offset(FILE *stream) { long n; n = ftell(strea...
2.09375
2
2024-11-18T23:59:43.499792+00:00
2023-07-26T10:58:26
fc3abfb26ff26ebcfb64457b6ca027f4252b69a5
{ "blob_id": "fc3abfb26ff26ebcfb64457b6ca027f4252b69a5", "branch_name": "refs/heads/master", "committer_date": "2023-07-26T10:58:26", "content_id": "dfdf335a0b85a9f2bbb1f2facd7a63f6876ffe7c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d199a583f23982871f48bd91f3d1cd4f758022e9", "extensio...
stackv2
/* Support for persistence. */ /* The persistence loop periodically writes the entire saved state to a file. * The loop is controlled by three timeouts: * - poll_rate This determines how often we check for changes * - holdoff This is delay from change detection to performing write * - backoff Th...
2.03125
2
2024-11-18T23:59:43.884824+00:00
2023-01-19T03:16:23
091e1a9eaf8a93231eb03970184642aa7cf3afdb
{ "blob_id": "091e1a9eaf8a93231eb03970184642aa7cf3afdb", "branch_name": "refs/heads/master", "committer_date": "2023-01-19T03:16:23", "content_id": "6cade0469d33dad63b5ba3c898bb4974475943e1", "detected_licenses": [ "MIT" ], "directory_id": "583f392c44461e11e94dd0c2f856532174ab4f8b", "extension": "c"...
stackv2
/* */ #include "qDef.h" #include "Stream.h" extern Env *ev; extern char qtrace; #define TRACE(a,b) if (qtrace>=a) printf b PrintStream( st, it) Stream *st; qItem it; { Byte buf[MaxStringLen+2]; if (Nullp(it)) { (*st->writef)(st, "()", 2); } else if (Symbolp(it)) { (*st->writef)(st, ((qSymbol *)it)...
2.203125
2
2024-11-18T23:59:44.634303+00:00
2019-12-12T16:36:05
380c13133da73dc8a1b43e63041d55573dbcb7a5
{ "blob_id": "380c13133da73dc8a1b43e63041d55573dbcb7a5", "branch_name": "refs/heads/master", "committer_date": "2019-12-12T16:36:05", "content_id": "71f7d4a33e149bd3a51216ff16a71c24eaa4ca76", "detected_licenses": [ "MIT" ], "directory_id": "e0e78db829e265795a07f8dde1f4e8c75e870010", "extension": "c"...
stackv2
/*********************************************************** * Created: Sun 29 Sep 2019 19:10:42 PM -03 * * Author: Carla N. Lintzmayer, carla.negri@ufabc.edu.br * ***********************************************************/ #include <stdio.h> #include <stdlib.h> #include "grafo.h" int main(int argc, char *argv[...
3.078125
3
2024-11-18T23:59:45.196037+00:00
2019-02-02T01:42:52
50cf3b047f962aca0ec8eb9a8d45e6a8ee4c3840
{ "blob_id": "50cf3b047f962aca0ec8eb9a8d45e6a8ee4c3840", "branch_name": "refs/heads/master", "committer_date": "2019-02-02T01:42:52", "content_id": "dbcf543ef6a54203e9dc45c821ede626bfabd1dc", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "d2f86c31bf506f0bc05968b8e6205f53...
stackv2
#include <stdint.h> #include "uart.h" void main(void) { uint32_t i; puts("I am from another world\n"); puts("But we have connection\n"); while (1) { i = 0U; puts("Ha Ha.\n"); while (i++ < 0xf000000); } }
2.25
2
2024-11-18T23:59:45.419776+00:00
2021-06-01T20:18:31
109f28ada352a9d793226939797ab5e104b0cae2
{ "blob_id": "109f28ada352a9d793226939797ab5e104b0cae2", "branch_name": "refs/heads/main", "committer_date": "2021-06-01T20:18:31", "content_id": "72ad037ad0010e27b69a2eaba735c9208a5f2e98", "detected_licenses": [ "MIT" ], "directory_id": "9407237a35588b63a19a4f4d8a060e1c03697a1c", "extension": "c", ...
stackv2
/*Problema 3: mostrar a média de três números informados com uma casa após a vírgula e informar aprovado se a média for maior que 6. Envie o arquivo de programa em .C e o arquivo de imagem com o fluxograma. O algoritmo e o teste de mesa podem ir como comentários no próprio arquivo de programa .C, como realizado no LVP...
3.15625
3
2024-11-18T23:59:45.700360+00:00
2020-06-05T05:48:27
6f5514af29284860eaaaa0a293327286dc0a7db5
{ "blob_id": "6f5514af29284860eaaaa0a293327286dc0a7db5", "branch_name": "refs/heads/master", "committer_date": "2020-06-05T05:48:27", "content_id": "903712897721a6dba05a510669dfa518e81dc1cf", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "ee8d74387ffb644d35137b95cae9fcf6af3b0e02"...
stackv2
/* * $Id: yasync.h,v 1.1 2005-09-18 22:04:15 dhmunro Exp $ * Headers describing a simple memory management package for * Yorick-derived programs, which is "safe" against asynchronous * interrupts. That is, memory allocated with this package will * be tracked and freed, even if the subroutine which allocates * th...
2.078125
2
2024-11-18T23:59:45.930816+00:00
2015-02-23T16:58:42
c14f81b453028ceec756a23fa37721150aa1b90d
{ "blob_id": "c14f81b453028ceec756a23fa37721150aa1b90d", "branch_name": "refs/heads/master", "committer_date": "2015-02-23T16:58:42", "content_id": "8e375876b6b1d0bee2aa897aaf153ca7ec719e44", "detected_licenses": [ "Unlicense" ], "directory_id": "c9c522e2788aac18ca096694c8a353c738b10dd6", "extension...
stackv2
#include <stdio.h> #include <stdint.h> #include "fat.h" /* This function will be altered heavily */ FILE* write_image_header(struct fat12_bs *p_bs_fat12, uint8_t *bootcode, char* output_filename) { FILE* output; output = fopen(output_filename, "wb"); /* return an error */ printf("--%x\r\n",output); fwrite(p_bs_f...
2.53125
3
2024-11-18T23:59:46.037178+00:00
2008-11-05T08:16:56
87c436245334f4c9a0d4c0b67002dc2691bfa002
{ "blob_id": "87c436245334f4c9a0d4c0b67002dc2691bfa002", "branch_name": "refs/heads/master", "committer_date": "2008-11-05T08:16:56", "content_id": "58ee09486857d2fed0d6a58c4995519182df3c2f", "detected_licenses": [ "MIT" ], "directory_id": "f74b6e0443eb86d3cab96880b0191474a8188c2b", "extension": "h"...
stackv2
/** * Exception Handling Framework * * Exception Handling looks something like this; * * <pre> * TRY * RAISE(EXCEPTION, msg1); * break; * case EXCEPTION: * // This should be called * exception_handled = true; * HANDLED(); * break; * default: * // shouldn't ...
2.546875
3
2024-11-18T23:59:46.211579+00:00
2012-12-06T11:37:20
31df0900d9d47f1d84e95b3945f0f398442eba31
{ "blob_id": "31df0900d9d47f1d84e95b3945f0f398442eba31", "branch_name": "refs/heads/master", "committer_date": "2012-12-07T01:48:29", "content_id": "1c8c04c21ccf4b72e833d53bffbbfdd02d46e569", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "6695ea6e0c969312d96b2e2a87e39ea0177dfebe", "extens...
stackv2
/* * Copyright (C) 2006-2011 Julien Ridoux <julien@synclab.org> * * This file is part of the radclock program. * * 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; either version 2 * of the...
2.296875
2
2024-11-18T23:59:46.363450+00:00
2020-12-11T17:24:48
1cb7d766b6441b99e109942e60b8cac74d38ebd1
{ "blob_id": "1cb7d766b6441b99e109942e60b8cac74d38ebd1", "branch_name": "refs/heads/master", "committer_date": "2020-12-11T17:24:48", "content_id": "2e9ff1d25dbfe3bb9fdf52e36c9f4f26b8bd3ebe", "detected_licenses": [ "MIT" ], "directory_id": "9ec6d03c8f01e0874e492340e8560087b65187b9", "extension": "h"...
stackv2
// // Created by matth on 2/29/2020. // #ifdef __cplusplus extern "C" { #endif #ifndef IOTA_SIMPLEWALLET_IOTA_SIMPLEWALLET_H #define IOTA_SIMPLEWALLET_IOTA_SIMPLEWALLET_H #include <stdint.h> /* * * Initialization/Shutdown Functions * */ int init_iota_simplewallet(const char* data_dir); int shutdown_iota_simplew...
2.234375
2
2024-11-18T23:59:47.507090+00:00
2015-12-02T18:36:01
74b603f8e181da558a7bce61a2e7b222188ddfee
{ "blob_id": "74b603f8e181da558a7bce61a2e7b222188ddfee", "branch_name": "refs/heads/master", "committer_date": "2015-12-02T18:36:01", "content_id": "65b0fd0d28e088c4e42c62949de44197d62032df", "detected_licenses": [ "MIT" ], "directory_id": "b16c52e9470b3b62dbdf52d640b9603a6ac66f0d", "extension": "c"...
stackv2
#include <stdio.h> /* The basic idea is that a powerset of a set of n elements contains 2^n elements. This implies that there is a binary digit corresponding to the elements contained in the elements of the powerset. Flow: 1. Get input n 2. Loop while the binary representation is less than 2^n + 1 1. Print s...
3.875
4
2024-11-18T23:59:47.876600+00:00
2020-07-21T14:32:04
04f296106386356acb27dd435b7d1f722dc4207c
{ "blob_id": "04f296106386356acb27dd435b7d1f722dc4207c", "branch_name": "refs/heads/master", "committer_date": "2020-07-21T14:32:04", "content_id": "e6846ab0dac2197f8d4dd2c38dbce8c546593212", "detected_licenses": [ "MIT" ], "directory_id": "1048d09f46b7dbe9774d2d5a869eb59537968739", "extension": "h"...
stackv2
#pragma once /* Copyright (c) 2013, Phil Vachon <phil@cowpig.ca> 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 must retain the above copyright notice, th...
2.671875
3
2024-11-18T23:59:48.629551+00:00
2021-01-22T03:57:12
362939bbba413fa9427ea710c0a9e1903a5cf8d2
{ "blob_id": "362939bbba413fa9427ea710c0a9e1903a5cf8d2", "branch_name": "refs/heads/main", "committer_date": "2021-01-22T03:57:12", "content_id": "17203e11cbd8ed41cf989a70c485a501815dc381", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6695c89c3a316ed368958ba2cfaf6c80552447a1", "extension"...
stackv2
#ifndef LINKER_H #define LINKER_H #include <ctype.h> #ifdef __cplusplus extern "C" { #endif typedef struct shared_library shared_library_t; /** * Open the specified <code>pathname</code> as <code>shared_library_t</code> * * @param pathname the file path * @return a <code>shared_library_t</code> or <code>NULL</c...
2.328125
2
2024-11-18T23:59:49.304149+00:00
2021-07-30T10:07:50
5e6634961f960b125d5dce30cedeb706daa1801c
{ "blob_id": "5e6634961f960b125d5dce30cedeb706daa1801c", "branch_name": "refs/heads/master", "committer_date": "2021-07-30T10:07:50", "content_id": "b3f2535fa30d78093af7a4f906fe7ce2c47f5674", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "30bc4beea0df3011d18fafd0fc57fefc41864268", "extens...
stackv2
#include "first.h" #include "array.h" #include "buffer.h" #include <string.h> #include <stdlib.h> #include <limits.h> __attribute_cold__ static void array_extend(array * const a, uint32_t n) { a->size += n; a->data = realloc(a->data, sizeof(*a->data) * a->size); a->sorted = realloc(a->sorted, size...
2.78125
3
2024-11-18T23:59:49.863662+00:00
2021-02-09T11:43:21
d993ac97ed9e08f2d52f08962753c5e3d4133cc5
{ "blob_id": "d993ac97ed9e08f2d52f08962753c5e3d4133cc5", "branch_name": "refs/heads/master", "committer_date": "2021-02-09T11:43:21", "content_id": "8ed2697a0540597f395dc79b6d9618bb2988cca9", "detected_licenses": [ "MIT" ], "directory_id": "4d7c2013f7724cc5aee657b10bcb65c45adc93e6", "extension": "c"...
stackv2
/* ********************************************************* * IoT thermostat (ESP32 and DS18B20) * Compatible with Web Thing API (https://webthings.io/api/) * * Created on: Dec 20, 2019 * Last update: Dec 15, 2020 * Author: Krzysztof Zurek * E-mail: krzzurek@gmail.com * * 1-wire from: github.com/Da...
2.078125
2
2024-11-18T23:59:50.113328+00:00
2023-07-12T07:38:29
7237f86218582e603712836510fecf500c5cb59c
{ "blob_id": "7237f86218582e603712836510fecf500c5cb59c", "branch_name": "refs/heads/master", "committer_date": "2023-07-12T07:38:29", "content_id": "80464eb6312ff5bef18011b5d626f2d567a3f59e", "detected_licenses": [ "MIT" ], "directory_id": "52c8ed39b32ccc7c0673278c1adea3638797c9ff", "extension": "c"...
stackv2
/* * driver/rtc/rtc-soft.c * * Copyright(c) 2007-2023 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softw...
2.0625
2
2024-11-18T23:59:50.782855+00:00
2022-08-30T19:53:19
e2bcb4bcf29744c508cb47c532eb3245d5246fc6
{ "blob_id": "e2bcb4bcf29744c508cb47c532eb3245d5246fc6", "branch_name": "refs/heads/master", "committer_date": "2022-08-30T19:53:19", "content_id": "0d86ddb0a428c9bdf71f5c347016928fe65c463b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a9a591fc3964117db3b16583c3bfa5a24cfc0114", "extens...
stackv2
/***** includes *****/ #include "lfds720_list_nsu_internal.h" /****************************************************************************/ void lfds720_list_nsu_cleanup( struct lfds720_list_nsu_state *lasus, void (*element_cleanup_callback)(struct lfds720_list_nsu_state *lasus, str...
2.046875
2
2024-11-18T23:59:51.058459+00:00
2020-10-07T21:39:03
5a289b40e2a55b2b9b8b881e723bc9b34c34ebdb
{ "blob_id": "5a289b40e2a55b2b9b8b881e723bc9b34c34ebdb", "branch_name": "refs/heads/master", "committer_date": "2020-10-07T21:39:03", "content_id": "fa03854b10fe143316f4c407b7b9cb1b65722361", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "3460084fb2d3d2a0ff93519fa25ae18e0edef49d", "extens...
stackv2
/* Damon Gwinn Parse tree for the Pascal Grammar */ #ifndef TREE_H #define TREE_H #define LEAF NULL #include "../List/List.h" #include "tree_types.h" #include <stdio.h> /******* Trees and statement types ********/ /* Types */ typedef struct Tree Tree_t; /* Enum for readability */ enum TreeType{TREE_PROGRAM...
2.484375
2
2024-11-18T23:59:51.827126+00:00
2015-10-22T20:23:59
6faff1932215f682acca07a5332911157fd7d9dd
{ "blob_id": "6faff1932215f682acca07a5332911157fd7d9dd", "branch_name": "refs/heads/master", "committer_date": "2015-10-22T20:23:59", "content_id": "7404aa6c272cf28a5c7eb5ef746c31e8d723f11d", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "625ac4eb076aa773402684ca3c7d6fcad548b491", "extens...
stackv2
/* * Copyright (C) 2009 Christian Dywan <christian@twotoasts.de> * * This 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 License, or (at your option) any later...
2.0625
2
2024-11-18T23:59:51.918059+00:00
2022-09-12T14:58:27
4d31de53fdcec8f6d7eaa222d31525b94cb79a8b
{ "blob_id": "4d31de53fdcec8f6d7eaa222d31525b94cb79a8b", "branch_name": "refs/heads/master", "committer_date": "2022-09-12T14:58:27", "content_id": "4d66f84901147a2595f84cafe6fe34c22610d22e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6e8555bc693fec1de88000fd38de726aa8fd6714", "extensio...
stackv2
// Copyright (c) 2016-2020 Memgraph Ltd. [https://memgraph.com] // // 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 ...
2.046875
2
2024-11-18T23:59:52.011643+00:00
2017-04-17T02:48:58
713dd526ec0c6a1e606e0104ad8c20d672466c3f
{ "blob_id": "713dd526ec0c6a1e606e0104ad8c20d672466c3f", "branch_name": "refs/heads/master", "committer_date": "2017-04-17T02:48:58", "content_id": "17ac6fc1f7c681e89360749417a3dd9b5f39c72a", "detected_licenses": [ "MIT" ], "directory_id": "7fac7def28a89708b52133099ec07e01ef09e215", "extension": "c"...
stackv2
/** * @file * @author David Llewellyn-Jones <david@flypig.co.uk> * @version 1.0 * * @section LICENSE * * @brief Example use of ThreadlessWeb * @section DESCRIPTION * * Provides a simple example of ThreadlessWeb, creating a simple but functional * Webserver. It always returns the same droll response to any G...
3.09375
3
2024-11-18T23:59:52.105419+00:00
2023-08-30T04:20:48
ab7f6f9ca1072ca90c969763d85cbd825e4455f0
{ "blob_id": "ab7f6f9ca1072ca90c969763d85cbd825e4455f0", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T04:20:48", "content_id": "439f812af1b75bb2074728f6a35cc9a19c5a8959", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ec6a71b57ebe88538269197fd16bede6bc2062ae", "extensio...
stackv2
#include <stdio.h> #ifdef __WIN32__ #include <windows.h> int wmain(int argc, wchar_t **argv) { char* sep = ""; int len; /* * Echo all arguments separated with '::', so that we can check that * quotes are interpreted correctly. */ while (argc-- > 1) { char *utf8; len = WideCharToMulti...
3.125
3
2024-11-18T23:59:52.200073+00:00
2023-08-27T19:14:02
ce05f752af5e14d66fb8cbcf28ff14a9a2cbf384
{ "blob_id": "ce05f752af5e14d66fb8cbcf28ff14a9a2cbf384", "branch_name": "refs/heads/master", "committer_date": "2023-08-27T19:14:02", "content_id": "d64ed8c0fcea5bc23c1451fcc49c03dedb323663", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "7c857119fe1505b1d80d6e62969661c06dc1a2f4", "extens...
stackv2
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "efidevp.h" /* From utils.c */ extern void CatPrintf(char *target, const char *format, ...); extern void *MallocCopy(unsigned int size, void *buf); /* * Get parameter in a pair of parentheses follow the given node name. * For ex...
2.875
3
2024-11-18T23:59:52.344593+00:00
2019-04-17T06:26:42
ced3a25f710bf0be36b6419c88d7225744d9a7a0
{ "blob_id": "ced3a25f710bf0be36b6419c88d7225744d9a7a0", "branch_name": "refs/heads/master", "committer_date": "2019-04-17T06:26:42", "content_id": "ceb1bc611c624383eef59722787141d551a968e6", "detected_licenses": [ "BSD-4-Clause-UC", "BSD-3-Clause", "MIT", "BSD-2-Clause", "Apache-2.0" ],...
stackv2
#include <nc_core.h> /* Which thread we assigned a connection to most recently. */ static int last_thread = -1; static int num_threads; #define SU_PER_ALLOC 64 /* Free list of swapunit structs */ static struct swapunit *sui_freelist; static pthread_mutex_t sui_freelist_lock; /* * Returns a fresh connection swapun...
2.421875
2
2024-11-18T23:59:52.976809+00:00
2019-08-10T08:12:46
e3a23bc78d947f792509f0a6f63ba778fe638684
{ "blob_id": "e3a23bc78d947f792509f0a6f63ba778fe638684", "branch_name": "refs/heads/master", "committer_date": "2019-08-10T08:12:46", "content_id": "9193d41062c593898b811818719224b96e26c282", "detected_licenses": [ "MIT" ], "directory_id": "6d8710b0da4b6be1c7e48ef918d814bf59602590", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "base64.h" int main(void) { char * msg = "Hello world! åäö"; char * enc = b64_encode(msg, strlen(msg)); printf("Enc: %s\n", enc); char * dec = (char *) malloc(strlen(enc) + 1); b64_decode(enc, dec, strlen(enc)); printf("Dec:...
2.703125
3
2024-11-18T23:59:53.059298+00:00
2018-11-26T05:24:09
e4407926681099ec80d0441cfc84a0739b2d863b
{ "blob_id": "e4407926681099ec80d0441cfc84a0739b2d863b", "branch_name": "refs/heads/master", "committer_date": "2018-11-26T05:24:09", "content_id": "989c06a26b05ff00779a66aff3ef6dabefb6a0b5", "detected_licenses": [ "MIT" ], "directory_id": "8913627823b9a546018e3532cfa5439354bc807b", "extension": "c"...
stackv2
/* * Copyright (c) 2018 IOTA Stiftung * https://github.com/iotaledger/entangled * * Refer to the LICENSE file for licensing information */ #include <assert.h> #include <inttypes.h> #include <stdint.h> #include <stdlib.h> #include <sqlite3.h> #include "common/model/milestone.h" #include "common/model/transaction...
2.078125
2
2024-11-19T00:59:36.192962+00:00
2014-10-26T08:17:32
6e3e5e4f10ea31e6296dafc1e1d116599903dbf2
{ "blob_id": "6e3e5e4f10ea31e6296dafc1e1d116599903dbf2", "branch_name": "refs/heads/master", "committer_date": "2014-10-26T08:17:32", "content_id": "602c3b6c1eb42584f4314c881ce6a9025a7cf5db", "detected_licenses": [ "MIT" ], "directory_id": "b2ef0439021313b2b769b13cbacc6955dc65d260", "extension": "c"...
stackv2
#include "common.h" void writefile(node *list, FILE *target){ while(list->next!=NULL){ fprintf(target, "%d ", list->a); list=list->next; } }
2
2
2024-11-19T00:59:36.396049+00:00
2021-02-04T23:01:37
5f3d3959bd0bbd06ad847fb22513ff848cedf775
{ "blob_id": "5f3d3959bd0bbd06ad847fb22513ff848cedf775", "branch_name": "refs/heads/master", "committer_date": "2021-02-04T23:01:37", "content_id": "c05e40f7e3fbb4781a3b96a7ae84c364e9a8ee71", "detected_licenses": [ "MIT" ], "directory_id": "c25e2d93bddf7c3747fa4cb85a7bc5478adf91a7", "extension": "h"...
stackv2
/* MyMPI.h * * Header file for a library of matrix/vector * input/output/redistribution functions. * * Programmed by Michael J. Quinn * * Last modification: 4 September 2002 */ /************************* MACROS **************************/ #define DATA_MSG 0 #define PROMPT_MSG 1 #de...
2.21875
2
2024-11-19T00:59:36.501160+00:00
2022-09-13T20:45:32
e7c83861681ea099e466e99f5d97bbcd0d416989
{ "blob_id": "e7c83861681ea099e466e99f5d97bbcd0d416989", "branch_name": "refs/heads/master", "committer_date": "2022-09-13T20:45:32", "content_id": "19fc7c21a8afe96ddfe0cff889e4aba1c6d86a5c", "detected_licenses": [ "MIT" ], "directory_id": "d6634d3d8e9731b32c36feae2e0e0de790830ec7", "extension": "h"...
stackv2
#ifndef _USBCMDIO_INCLUDED #define _USBCMDIO_INCLUDED #include "stdint.h" #ifdef GLOBAL_USBCMDIO #define USBCMDIOGLOBAL #define USBCMDIOPRESET(A) = (A) #else #define USBCMDIOPRESET(A) #ifdef __cplusplus #define USBCMDIOGLOBAL extern "C" #else #define USBCMDIOGLOBAL extern #endif /*__cplusplus*/ #endif ...
2
2
2024-11-19T00:59:36.621176+00:00
2017-03-20T20:35:14
48166c69de490dc5e2e1fc10618cddaf838f28e2
{ "blob_id": "48166c69de490dc5e2e1fc10618cddaf838f28e2", "branch_name": "refs/heads/master", "committer_date": "2017-03-20T20:35:14", "content_id": "e65aa1de928aa0f002ad8326a965d4f02e51741d", "detected_licenses": [ "MIT" ], "directory_id": "95cce85d1cb4c68f3ee469f2549bfb77823fc44a", "extension": "c"...
stackv2
/* a simple addressbook with linked lists */ #include <stdio.h> #include <string.h> #include "test_list.h" #include "test_file.h" #include "test_str.h" #include "test_kernel.h" #include "test_net.h" int main(int argc, char **argv) { if(argc == 2) { if(strcmp("list",argv[1])==0) { t...
2.28125
2
2024-11-19T00:59:37.799336+00:00
2017-06-18T23:36:09
0fe721c99dab763b3708cd21ba30cb2a06996174
{ "blob_id": "0fe721c99dab763b3708cd21ba30cb2a06996174", "branch_name": "refs/heads/master", "committer_date": "2017-06-18T23:36:09", "content_id": "b2513143c0975def3bfdcd574860d0fce67ca406", "detected_licenses": [ "MIT" ], "directory_id": "86c7fdb7731740a04260495c37f655a85c1e0b0f", "extension": "c"...
stackv2
/* * pkg.h - SiriDB Package type. * * author : Jeroen van der Heijden * email : jeroen@transceptor.technology * copyright : 2016, Transceptor Technology * * changes * - initial version, 18-06-2016 * */ #include <assert.h> #include <logger/logger.h> #include <siri/err.h> #include <siri/net/pkg...
2.5625
3
2024-11-19T00:59:38.439201+00:00
2016-05-02T17:50:16
cc8d2479a94a9a8e6affe2df4a5c7d01e07a26fd
{ "blob_id": "cc8d2479a94a9a8e6affe2df4a5c7d01e07a26fd", "branch_name": "refs/heads/master", "committer_date": "2016-05-02T17:50:16", "content_id": "7da8b382965aaad2a7b564cacc8f605a75ab4ccf", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "d78d0b66880db1250338d04bab66fb35286a32c3", "extens...
stackv2
/* Timer heap methods - originally from https://github.com/willemt/heap Copyright (c) 2011, Willem-Hendrik Thiart 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 mu...
2.5625
3
2024-11-19T00:59:38.513711+00:00
2022-10-31T01:13:11
c5cc98ba12dfb1077ae9df9ca05b7bb4fd854fe5
{ "blob_id": "c5cc98ba12dfb1077ae9df9ca05b7bb4fd854fe5", "branch_name": "refs/heads/master", "committer_date": "2022-10-31T01:13:11", "content_id": "7ecfb19b7087c47b46087419a2c41a36acf356db", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "1788d33020998f2b90077b0cbc855e5143d43948", "extens...
stackv2
#include "pixz.h" #include <archive.h> #include <archive_entry.h> #pragma mark TYPES typedef struct io_block_t io_block_t; struct io_block_t { lzma_block block; uint8_t *input, *output; size_t insize, outsize; }; #pragma mark GLOBALS #define LZMA_CHUNK_MAX (1 << 16) double gBlockFraction = 2.0; sta...
2.046875
2
2024-11-19T00:59:39.088562+00:00
2017-01-17T03:19:24
9a7a8a80016d093e7ef9b28666ef8f75efb29d69
{ "blob_id": "9a7a8a80016d093e7ef9b28666ef8f75efb29d69", "branch_name": "refs/heads/master", "committer_date": "2017-01-17T03:19:24", "content_id": "8aa07d125fe47ebd9de60e7f4774015fa538ee29", "detected_licenses": [ "MIT" ], "directory_id": "9a18316c9b870012ebc6c06ab2f2fb12c1b7fa59", "extension": "c"...
stackv2
#include "../hashset.h" #include "../packet.h" #include <stdio.h> #include <string.h> #include <stddef.h> #include <assert.h> typedef struct test_struct { char name[128]; uint64_t id; int age; } test_struct; /* nodes need: */ hashset clients; /* index by client_info.id */ hashset nodes; /* index by node_info.id...
2.4375
2
2024-11-19T00:59:39.200166+00:00
2021-03-17T07:29:19
daa11d0db5da91e3e3293e30db3b0d38b7c87cec
{ "blob_id": "daa11d0db5da91e3e3293e30db3b0d38b7c87cec", "branch_name": "refs/heads/master", "committer_date": "2021-03-17T07:29:19", "content_id": "9bb9952ce225230d72929813032a84232781b385", "detected_licenses": [ "curl", "Apache-2.0" ], "directory_id": "546018757d22ae76154b87335db68e1cfabfedcb",...
stackv2
#ifndef io_k8s_api_rbac_v1_role_TEST #define io_k8s_api_rbac_v1_role_TEST // the following is to include only the main from the first c file #ifndef TEST_MAIN #define TEST_MAIN #define io_k8s_api_rbac_v1_role_MAIN #endif // TEST_MAIN #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdbool.h> #inc...
2.296875
2
2024-11-19T00:59:39.333853+00:00
2022-04-20T20:47:03
ae95c51e795944357c5b32e2b1345f482fa046a4
{ "blob_id": "ae95c51e795944357c5b32e2b1345f482fa046a4", "branch_name": "refs/heads/master", "committer_date": "2022-04-20T20:47:03", "content_id": "65ff5ff23b4ab5e6ff4ced6ab72efc5b0a861892", "detected_licenses": [ "MS-PL" ], "directory_id": "33a82980352cf366b9c288cf8a74d2740272d90b", "extension": "...
stackv2
/*++ Copyright (c) 1997 Microsoft Corporation Module Name: POWER.C Abstract: This module contains contains the power calls for the serenum bus driver. Environment: kernel mode only Notes: --*/ #include "pch.h" #ifdef ALLOC_PRAGMA //#pragma alloc_text (PAGE, Serenum_Power) //#pragma alloc_text (...
2
2
2024-11-19T00:59:39.395661+00:00
2018-04-24T00:44:37
b8a4101493296d05f419b8100cb513060e809c90
{ "blob_id": "b8a4101493296d05f419b8100cb513060e809c90", "branch_name": "refs/heads/master", "committer_date": "2018-04-24T00:44:37", "content_id": "2b2f373085ebed0aa559d586bcc8af0c212b445d", "detected_licenses": [ "MIT" ], "directory_id": "b30bb44473c2d003804cd83d5b3a8cc1a9d41e1c", "extension": "c"...
stackv2
/* ** EPITECH PROJECT, 2018 ** my_world_2018 ** File description: ** place_all_objet.c */ #include "menu.h" #include "text.h" #include "button.h" void place_all_objet(objet_t *objets, void *file_array, sfVideoMode video) { void (*place_objet[NB_TYPE])(void *, void *, sfVideoMode) = { place_button_l, place_button_o...
2.109375
2
2024-11-19T00:59:41.030022+00:00
2019-08-15T04:58:52
3840c2bf4675dff3df6e3c03379d2746e60b7642
{ "blob_id": "3840c2bf4675dff3df6e3c03379d2746e60b7642", "branch_name": "refs/heads/master", "committer_date": "2019-08-15T04:58:52", "content_id": "f6608c86006b7b3ed6ec562ee81ce3bf22505b20", "detected_licenses": [ "MIT" ], "directory_id": "c6ddc81b33085419ea4fc59d63cd7e7a72a54506", "extension": "h"...
stackv2
#ifndef CTEST_TEST_H #define CTEST_TEST_H #include "ctest/ctest.h" typedef struct { ctest_test_func func; } ctest_function_test; typedef struct { _ctest_fixture_test_runner runner; _ctest_generic_fixture_test func; } ctest_fixture_test; typedef struct { _ctest_suite_test_runner runner; ctest_test_func func; } ...
2.0625
2
2024-11-19T00:59:41.190864+00:00
2013-09-01T10:39:40
6a88cb687e6139c76b05b22ba52df29cc448da5b
{ "blob_id": "6a88cb687e6139c76b05b22ba52df29cc448da5b", "branch_name": "refs/heads/master", "committer_date": "2013-09-01T10:39:40", "content_id": "6f39962c3ebe0346485c75a73a23937d1bc37114", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "fa7190b9fb9b82fa43f0dc754386a6faa7ff574a", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <time.h> #include <sys/types.h> #include <sys/wait.h> void slepp(int secs) { struct timespec req; struct timespec rem; req.tv_sec = secs; req.tv_nsec = 0; while(nanosleep(&req, &rem)) { req.tv_sec = rem.tv_sec; ...
2.5
2
2024-11-19T00:59:41.276188+00:00
2019-07-29T13:17:53
21fc73adb5abb7e542d5932bb2971a21a8ccddc4
{ "blob_id": "21fc73adb5abb7e542d5932bb2971a21a8ccddc4", "branch_name": "refs/heads/master", "committer_date": "2019-07-29T13:17:53", "content_id": "0d46d31a963b6070355c87ea1134d1633dcda5ed", "detected_licenses": [ "MIT" ], "directory_id": "03f6fd1f193ff4b469a49d20615834a0921794c0", "extension": "c"...
stackv2
#include <unistd.h> #include <sys/resource.h> #include <sys/wait.h> #include <sys/time.h> #include <stdio.h> #include <stdlib.h> #include "run.h" #include "limit.h" #include "result.h" void init_config(struct config *conf) { conf->answer_file_name = NULL; conf->output_file_name = NULL; conf->input_file_na...
2.1875
2
2024-11-19T00:59:42.642426+00:00
2019-03-06T14:35:06
cfd8b3da28e62a460a9943285752d1ae5255b839
{ "blob_id": "cfd8b3da28e62a460a9943285752d1ae5255b839", "branch_name": "refs/heads/master", "committer_date": "2019-03-06T14:35:06", "content_id": "df4f95b763b40b6a2a06c50562b4940b70d864ff", "detected_licenses": [ "MIT" ], "directory_id": "97c2a634d660310cae25db65900ba9cab0748923", "extension": "h"...
stackv2
#ifndef combinaison_h #define combinaison_h #include "carte.h" #include "vecteur.h" //**************************** //* AFFICHAGE * //**************************** //Affiche la meilleur combinaison dans les cartes données en paramètre //Appelles toutes les fonctions de vérification dans leur ordre hiér...
2.234375
2
2024-11-19T00:59:42.792081+00:00
2017-12-28T13:10:12
6b6301e9958ded670bf4d650fc3206e10f1970f1
{ "blob_id": "6b6301e9958ded670bf4d650fc3206e10f1970f1", "branch_name": "refs/heads/master", "committer_date": "2017-12-28T13:10:12", "content_id": "d5db75807348f171570881e959875eea7bdfb942", "detected_licenses": [ "Unlicense" ], "directory_id": "b126c81feea49d9334ff5ea59be6c8e0021fe1ec", "extension...
stackv2
#ifndef GUARD_NETCLIENT_H #define GUARD_NETCLIENT_H #include "windows.h" #include "winsock2.h" /* * Handling connected clients for given */ // defines #define MAX_BUFF_SIZE 3000 // enums typedef enum _tIoOpType { RECV_IO, SEND_IO } tIoOpType; // structs typedef struct _tIOContext { OVERLAPPED sOverlapped; ...
2.21875
2
2024-11-19T00:59:43.120467+00:00
2021-03-17T07:29:19
1263d053fab7b6a1b259e4f567bc8c133dc421b8
{ "blob_id": "1263d053fab7b6a1b259e4f567bc8c133dc421b8", "branch_name": "refs/heads/master", "committer_date": "2021-03-17T07:29:19", "content_id": "ac1835e998bba2c833e517e56f5a91e83f88e1dd", "detected_licenses": [ "curl", "Apache-2.0" ], "directory_id": "546018757d22ae76154b87335db68e1cfabfedcb",...
stackv2
#ifndef io_k8s_api_node_v1_runtime_class_list_TEST #define io_k8s_api_node_v1_runtime_class_list_TEST // the following is to include only the main from the first c file #ifndef TEST_MAIN #define TEST_MAIN #define io_k8s_api_node_v1_runtime_class_list_MAIN #endif // TEST_MAIN #include <stdlib.h> #include <string.h> #i...
2.203125
2
2024-11-19T00:59:43.571299+00:00
2015-08-25T09:57:39
5d6df08a2147b001f7ed4e080ed165039f68de72
{ "blob_id": "5d6df08a2147b001f7ed4e080ed165039f68de72", "branch_name": "refs/heads/master", "committer_date": "2015-08-25T09:57:39", "content_id": "80f5d8a98e562d37e1130631943bf495d5799b59", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "17fb61a3a2fdda085941c2ba8d04daaf8397d2a5", "extens...
stackv2
#include "gentrace.h" #include "gencall.h" #include "gendesc.h" #include "genname.h" #include "../type/cap.h" #include <assert.h> static bool trace_as_tag(compile_t* c, LLVMValueRef value, ast_t* type) { switch(ast_id(type)) { case TK_UNIONTYPE: case TK_ISECTTYPE: { ast_t* child = ast_child(type)...
2.4375
2
2024-11-19T00:59:43.756636+00:00
2017-10-21T08:23:00
fe94dd9cc462194c74e28a66108f45f491275af2
{ "blob_id": "fe94dd9cc462194c74e28a66108f45f491275af2", "branch_name": "refs/heads/master", "committer_date": "2017-10-21T08:23:00", "content_id": "86a8c953593644edec62d5c2f2e6ee3f52c8bf10", "detected_licenses": [ "MIT" ], "directory_id": "c9401a1013f5cd88fec096e4cb6510762989d4a3", "extension": "h"...
stackv2
#include "funcs.c" typedef struct Order{ int tid; unsigned buyOrSell; int shares; int limit; int entryTime; int eventTime; struct Order *nextOrder; struct Order *prevOrder; struct Limit *parentLimit; } Order; void pushOrder(Limit *limit, Order *new_order); int popOrder(Limit *limi...
2.09375
2
2024-11-19T00:59:45.601669+00:00
2023-07-22T03:32:27
92e375209ff258e52f427f5713ddaf8891be73b1
{ "blob_id": "92e375209ff258e52f427f5713ddaf8891be73b1", "branch_name": "refs/heads/dev", "committer_date": "2023-07-22T03:32:27", "content_id": "97260f836c928699d88633775daa9626ecdd54ce", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ca0edb2652c20bb5bcc1320d2128832c488c5653", "extension":...
stackv2
#include <glug/math/vec2.h> #include <glug/math/float.h> #include <math.h> glug_bool_t glug_vec2_equal(const struct glug_vec2 *v1, const struct glug_vec2 *v2) { } void glug_vec2_add(struct glug_vec2 *dst, const struct glug_vec2 *v2) { struct glug_vec2 res = *dst; res.x += v2->x; res.y += v2->y; *ds...
2.953125
3
2024-11-19T00:59:47.253114+00:00
2022-11-25T09:13:07
877d1065dae4f576c14bbb66ed087696f4ce79de
{ "blob_id": "877d1065dae4f576c14bbb66ed087696f4ce79de", "branch_name": "refs/heads/master", "committer_date": "2022-11-25T09:13:07", "content_id": "f480c091070448a6f3671e1d05f3f63358f88194", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "a5a706e7f0d87200d85b1552f3d941525d6f6920", "extens...
stackv2
/** * Copyright (c) 2017 Leonardo A. Bautista-Gomez * All rights reserved * * @file hdf5Test.c * @author Tomasz Paluszkiewicz (tomaszp@man.poznan.pl) * @author Kai Keller (kellekai@gmx.de) * @date November, 2017 * @brief FTI testing program. * * Program creates HDF5 file hiearchy with groups, * ...
2.484375
2
2024-11-19T00:59:47.443232+00:00
2020-08-17T17:58:14
550d06a3eb9f7a62d07a67255602e71cc8368dfb
{ "blob_id": "550d06a3eb9f7a62d07a67255602e71cc8368dfb", "branch_name": "refs/heads/master", "committer_date": "2020-08-17T17:58:14", "content_id": "2ddf5b74879971b77aa65c89c79562046e37ce4f", "detected_licenses": [ "MIT" ], "directory_id": "9c5f624c0488483b5b4460bf05ee78b00e54254e", "extension": "c"...
stackv2
#include "UART.h" #include "pinDefines.h" //-------- UART Functions --------------------// void transmitByte(char ch) { while(!(USART6->SR & USART_SR_TC)){} // Wait for empty flag USART6->DR = ch; // Set data to Transmit Data Register } // "TC: Transmission complete // Bit is set by hardware if the transmis...
2.8125
3
2024-11-19T00:59:47.727405+00:00
2011-09-30T06:25:03
b0724436666c86bf5e78c8104a58cc35fb800445
{ "blob_id": "b0724436666c86bf5e78c8104a58cc35fb800445", "branch_name": "refs/heads/master", "committer_date": "2011-09-30T06:25:03", "content_id": "fd40f64ae099a0698493fee76ea786f327301415", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "ff3f73326ef45b8cfba5ccf84882ee391ad975c3", "extens...
stackv2
/* * Read a scroll and let it happen * * @(#)scrolls.c 3.5 (Berkeley) 6/15/81 * * Rogue: Exploring the Dungeons of Doom * Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman * All rights reserved. * * See the file LICENSE.TXT for full copyright and licensing information. */ #include "curses.h...
2.140625
2
2024-11-19T00:59:48.866214+00:00
2020-05-22T13:57:48
3ed9b57a056a4d2191f783c4111431de7f631730
{ "blob_id": "3ed9b57a056a4d2191f783c4111431de7f631730", "branch_name": "refs/heads/master", "committer_date": "2020-05-22T13:57:48", "content_id": "1c08241668f7042da9edec2e800fa18a4f633e44", "detected_licenses": [ "MIT" ], "directory_id": "13c30ba0fa170d6cec19fbd48f5886511ca1f122", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <pthread.h> #include <sys/socket.h> #include <sys/un.h> #include "server.h" #include "logging.h" #include "http_parser.h" #include "utils.h" http_parser_settings parserSettings; // Turns the httpParser's data ptr into a url int u...
2.5
2
2024-11-19T00:59:48.938060+00:00
2017-03-17T14:28:47
bf639828734f692a8227b6143427b2a69170d82f
{ "blob_id": "bf639828734f692a8227b6143427b2a69170d82f", "branch_name": "refs/heads/master", "committer_date": "2017-03-17T14:28:47", "content_id": "7d27adb9fbb64daad6ca69a34ff8750b4d6fb6a9", "detected_licenses": [ "MIT" ], "directory_id": "f2f34098b5463ba12427013120e2705a6be12779", "extension": "c"...
stackv2
#include<stdio.h> // Log 方法 void printSort(int data[], int n, int currentIndex) { printf("\n"); printf("排序后%d:", currentIndex); for (int i = 0; i < n; ++ i) { printf("%d ", data[i]); } printf("\n"); } // 引自 StraightInsertionSort.c 直接插入排序方式三: /** 针对特定子序列进行直接插入排序,比较每一趟排序的数字并排排序 @par...
3.5625
4
2024-11-19T00:59:49.249538+00:00
2021-05-27T09:11:11
cc0eb559353aa9b70c797e0c90c4711bdc0ad7ad
{ "blob_id": "cc0eb559353aa9b70c797e0c90c4711bdc0ad7ad", "branch_name": "refs/heads/master", "committer_date": "2021-05-27T09:11:11", "content_id": "e9dd393615e3d6b668532ecf9bbf0ac6b979e816", "detected_licenses": [ "Apache-2.0" ], "directory_id": "baceb07d01fd550623059ea05dadae390523faca", "extensio...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct _ip_pool_msg { int saddr; int daddr; } ip_pool_msg; static ip_pool_msg ip_pool[1024]; int compare_ip_pool(const void *p1, const void *p2) { ip_pool_msg *ip1 = (ip_pool_msg *)p1; ip_pool_msg *ip2 = (ip_pool_msg *)p2; printf("ip1: %d->%d ...
3.046875
3
2024-11-19T00:59:49.408561+00:00
2017-03-13T12:48:38
2c2f0b55b4b0b8d34f32b1b49f9135b8d4bcaecf
{ "blob_id": "2c2f0b55b4b0b8d34f32b1b49f9135b8d4bcaecf", "branch_name": "refs/heads/master", "committer_date": "2017-03-13T12:48:38", "content_id": "4e04bfae6d54e9869501a57e84b9962ffdcd77bc", "detected_licenses": [ "MIT" ], "directory_id": "25124d10041b83ba22d001a255e8881c80b2a296", "extension": "c"...
stackv2
#include <stdio.h> int main(char argc, char *argv){ int tab, space, newline, c; tab = space = newline = 0; while((c = getchar()) != EOF) { if (c == ' ') { space++; }else if ( c == '\n') { newline++; }else if ( c == '\t') { tab++; } } ...
3.046875
3
2024-11-19T00:59:49.869246+00:00
2017-03-15T18:58:20
a67cd9ca1b42e9d3b080728ed9baa241ed7e62fa
{ "blob_id": "a67cd9ca1b42e9d3b080728ed9baa241ed7e62fa", "branch_name": "refs/heads/master", "committer_date": "2017-03-15T18:58:20", "content_id": "76275c7d2ab2ece444339a44a476d8fd6b966bce", "detected_licenses": [ "MIT" ], "directory_id": "e37cee02f6894eb8679b5a979e4f5267cb863766", "extension": "h"...
stackv2
#ifndef __Graph__ #define __Graph__ #include <sstream> #include "Vertex.h" #include "FifoQueue.h" /** Typedef for Vertex containers **/ typedef list<Vertex*> AdjList; typedef AdjList::iterator AdjListIt; /******************************************************************************* * Structure expressing an ...
2.75
3
2024-11-19T00:59:50.048261+00:00
2016-05-30T10:20:15
51181acf2d0eb64a0744dee27415d06826a7ce0b
{ "blob_id": "51181acf2d0eb64a0744dee27415d06826a7ce0b", "branch_name": "refs/heads/master", "committer_date": "2016-05-30T10:20:15", "content_id": "e97b60249e5a72fd18bfce03715c42081a6568fc", "detected_licenses": [ "MIT" ], "directory_id": "853c95632e559e2d8b771b1ba503b15433463270", "extension": "c"...
stackv2
/* $Id: list_util.c,v 1.11 2004/02/16 20:52:07 alex Exp $ */ /******************************************************************************* File: list_util.c List Manipulation Utilities Author: Alex Measday Purpose: The list manipulation utilities are a set of general purpose functions used...
3.34375
3
2024-11-19T00:59:50.234507+00:00
2016-05-10T14:00:02
a2e1c64decb100199288f3171cf7204847c566f8
{ "blob_id": "a2e1c64decb100199288f3171cf7204847c566f8", "branch_name": "refs/heads/master", "committer_date": "2016-05-10T14:00:02", "content_id": "be3d50a97a3fa56bc5b7ce0b768edb1249736f71", "detected_licenses": [ "MIT" ], "directory_id": "44a63e164ba15105fd0a8c7f3f7f1c795582820d", "extension": "c"...
stackv2
/* ** gest_client.c for cmp-server in /home/gomel_f/Documents/LecteurBotMusique/Multiclient/ConnectedMusicPlayer ** ** Made by Frédéric GOMEL ** Login <gomel_f@epitech.net> ** ** Started on Sun May 8 14:48:47 2016 Frédéric GOMEL ** Last update Mon May 9 13:36:15 2016 Frédéric GOMEL */ #if defined (WIN32) #includ...
2.15625
2
2024-11-19T00:59:55.011895+00:00
2019-01-06T17:21:50
88ece5802abc0ae1c322d54f3d66af25edb5eea0
{ "blob_id": "88ece5802abc0ae1c322d54f3d66af25edb5eea0", "branch_name": "refs/heads/master", "committer_date": "2019-01-06T17:21:50", "content_id": "88612dc88d6a6f717940fcdee4e9af6916b2599f", "detected_licenses": [ "NCSA" ], "directory_id": "971c5ae1d87cdfbb97723485c3d76c17395b82b0", "extension": "c...
stackv2
#include "mini_string.h" #include "mini_stdlib.h" /* PR rtl-optimization/79388 */ /* { dg-additional-options "-fno-tree-coalesce-vars" } */ unsigned int a, c; __attribute__ ((noinline, noclone)) unsigned int foo (unsigned int p) { p |= 1; p &= 0xfffe; p %= 0xffff; c = p; return a + p; } int main (void) { ...
2.046875
2
2024-11-19T00:59:55.140375+00:00
2014-05-11T01:18:01
3b70c51b36f5a4b0fb0dd1f05e8a0c8d9a3fbbaf
{ "blob_id": "3b70c51b36f5a4b0fb0dd1f05e8a0c8d9a3fbbaf", "branch_name": "HEAD", "committer_date": "2014-05-11T01:18:01", "content_id": "aa7e44993206102870ce44e40eb6d869050b4a29", "detected_licenses": [ "MIT" ], "directory_id": "d4774d554254b1b62d5b2a9c983aadbe13c23460", "extension": "c", "filename...
stackv2
/* Software simulation of GPIO pins, non-threadsafe. */ #include <stdint.h> #include "gpio.h" static uint8_t MOSI = LOW; static uint8_t MISO = LOW; static uint8_t SCLK = LOW; static uint8_t SS = LOW; uint8_t GPIO_read_MOSI() { return MOSI; } void GPIO_write_MOSI(uint8_t hiOrLo) { MOSI = (hiOrLo) ? HIGH : LOW; ...
2.65625
3
2024-11-19T00:59:55.670846+00:00
2011-10-25T04:05:33
99207668c1f19a03193dd4e8eb9863da7ba43b84
{ "blob_id": "99207668c1f19a03193dd4e8eb9863da7ba43b84", "branch_name": "refs/heads/master", "committer_date": "2011-10-25T04:05:33", "content_id": "561729394ce740814a21e293b15c339a51c2fab9", "detected_licenses": [ "MIT" ], "directory_id": "2c5b719589e62509f372c0b65bcca56e5ba4d31f", "extension": "h"...
stackv2
/* * Interface for communicating with the timer server. */ #ifndef __TIMESERVER_H #define __TIMESERVER_H /* The name used by the time server to register itself. */ #define TIMESERVER_NAME ("ts") /* The timer priority. */ #define TIMESERVER_PRIORITY (15) /* The default frequency of ticking. */ #define TIMESERVER_H...
2.078125
2