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:08:23.296828+00:00
2019-11-29T08:57:49
6440fc15d508a3a984903e0e53f4dce21e721874
{ "blob_id": "6440fc15d508a3a984903e0e53f4dce21e721874", "branch_name": "refs/heads/master", "committer_date": "2019-11-29T08:57:49", "content_id": "3f5a06df648357fec4c98893a47e1b68c92a3a4f", "detected_licenses": [ "MIT" ], "directory_id": "3be73c3d9d1008a2470659bed323464768996307", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <limits.h> struct HuffmanNode { int value; struct HuffmanNode *lst, *rst; }; struct HuffmanForest { struct HuffmanNode *tree; struct HuffmanForest *next; }; void insert(struct HuffmanForest *forest, struct HuffmanForest *node) { for (struct HuffmanF...
3.40625
3
2024-11-18T21:08:23.380645+00:00
2016-04-23T21:05:38
3e2508094fbc3acb5178e75364fc626f244e48c7
{ "blob_id": "3e2508094fbc3acb5178e75364fc626f244e48c7", "branch_name": "refs/heads/master", "committer_date": "2016-04-23T21:05:38", "content_id": "3c646b718d91fe7aa2486832e9221924171622a5", "detected_licenses": [ "CC0-1.0" ], "directory_id": "073133f771d7738fbab8d805b52145bcedfdc679", "extension":...
stackv2
#include "Serial.h" int open_s(char *name){ struct termios toptions ; int fd; #ifdef DEBUG printf("Open serial : %s\n", name) ; #endif if((fd = open(name, O_RDWR))== -1){ printf("Error opening %s\n", name); return -1; } #ifdef DEBUG printf("wait\n") ; #endif usleep(300000) ; if(tcgetattr(fd, &...
2.890625
3
2024-11-18T21:08:23.643068+00:00
2021-08-13T03:13:47
491e0445a0dd07b50112f410da3cd472b8abeba4
{ "blob_id": "491e0445a0dd07b50112f410da3cd472b8abeba4", "branch_name": "refs/heads/master", "committer_date": "2021-08-13T03:13:47", "content_id": "d239952b58de4df4aa08f6cf792534487821c9a2", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "7a8ba610ac92c458e77ac533020e59547c8c06da"...
stackv2
// 14 april 2016 #include "uipriv_unix.h" #include "attrstr.h" struct uiFontButton { uiUnixControl c; GtkWidget *widget; GtkButton *button; GtkFontButton *fb; GtkFontChooser *fc; void (*onChanged)(uiFontButton *, void *); void *onChangedData; }; uiUnixControlAllDefaults(uiFontButton) // TODO NOTE no need to i...
2.3125
2
2024-11-18T21:08:23.712887+00:00
2020-05-16T08:00:30
7badce8cfb364cfd24574b3c4768f38864b932b7
{ "blob_id": "7badce8cfb364cfd24574b3c4768f38864b932b7", "branch_name": "refs/heads/master", "committer_date": "2020-05-16T08:00:30", "content_id": "9f6fe73c191ed71d5f20caf42991d817025b580f", "detected_licenses": [ "MIT" ], "directory_id": "506d7910827b44677f181be3eb0054955bc7b391", "extension": "c"...
stackv2
#include "login.h" char * CURRENT_PASSWORD; bool initPassword() { // 创建密码读入缓冲区 char buf[MAX_LENGTH_PASSWORD]; FILE *fp = fopen(PASSWORD_BIN_PATH,"r"); // 文件为空,密码未初始化 if(fp == NULL) { return true; } // 读取数据 if (fgets(buf, MAX_LENGTH_PASSWORD, fp) != NULL) { size_t leng...
3.125
3
2024-11-18T21:08:23.813015+00:00
2020-08-07T05:35:49
1d3d59a3bd02423954926c261d03735f3ef97bc7
{ "blob_id": "1d3d59a3bd02423954926c261d03735f3ef97bc7", "branch_name": "refs/heads/master", "committer_date": "2020-08-07T05:35:49", "content_id": "69582597e6722699ffcd49b0fa42a4674002c978", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8204ed9f9aee678b0601063ff1df0f3005db5009", "extensio...
stackv2
#include <ngx_http.h> #include <nginx.h> static void *ngx_http_ndg_subrequest_create_loc_conf(ngx_conf_t* cf); static char *ngx_http_ndg_subrequest_merge_loc_conf(ngx_conf_t*cf, void* parent, void* child); static ngx_int_t ngx_http_ndg_subrequest_post_handler(ngx_http_request_t *r, void *data, ngx_int_t rc); static ng...
2.5
2
2024-11-18T21:08:24.108337+00:00
2023-08-08T09:39:15
fcefd2aaf291cad6a51130c00a1507a81636ecc7
{ "blob_id": "fcefd2aaf291cad6a51130c00a1507a81636ecc7", "branch_name": "refs/heads/master", "committer_date": "2023-08-08T09:39:15", "content_id": "78fb8a140d1d4532cb78a1b30112ee436f020c29", "detected_licenses": [ "ISC" ], "directory_id": "f8cc1dd4b1378490386def2e0571561fab10b275", "extension": "h"...
stackv2
/* ISC license. */ #ifndef SKALIBS_BYTESTR_H #define SKALIBS_BYTESTR_H /* for Alphas and other archs where char != 8bit */ #define T8(x) ((x) & 0xffU) #include <string.h> #include <strings.h> #include <skalibs/gccattributes.h> #define byte_copy(to, n, from) memmove(to, (from), n) #define byte_copyr(to, n, from)...
2.34375
2
2024-11-18T21:08:24.815440+00:00
2021-11-10T18:07:30
6ff72d68b42090233e2bd18d16f772379c5515c1
{ "blob_id": "6ff72d68b42090233e2bd18d16f772379c5515c1", "branch_name": "refs/heads/main", "committer_date": "2021-11-10T18:07:30", "content_id": "3b0bb2f8c28c7e7a223f59b65bfb455d85744b03", "detected_licenses": [ "MIT" ], "directory_id": "a60852e1a3e2cbd51244e676874fa30ec937cdea", "extension": "c", ...
stackv2
#include "TSL.h" #include "TreeRep.h" int main(int argc, char *argv[]) { //deal with argc and argv in case the 'ana' parameter is present/absent strcpy(search_mode, argv[1]); if(strcmp(search_mode,"ana")==0) strcpy(search_mode, argv[2]); long long noofele; //no. of elements scanf("%lld", &noofele); if(!(noof...
2.765625
3
2024-11-18T21:08:25.559597+00:00
2019-06-28T16:18:44
c606861b41f84f840feb0e8426446477bc006148
{ "blob_id": "c606861b41f84f840feb0e8426446477bc006148", "branch_name": "refs/heads/master", "committer_date": "2019-06-28T16:18:44", "content_id": "26eb609c16a95b7aeeaf1e9a5748af1114daf883", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cb44ec9f9fcac054d2bb7687f390d5a82b23563a", "extensio...
stackv2
// // 6_3_cross_referencer.c // c_exercises // // Created by 王显朋 on 2019/4/16. // Copyright © 2019年 wongxp. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "calculator.h" #define MAXWORD 100 struct tnode *talloc(void); char *strdup_6_2(char *); st...
3.03125
3
2024-11-18T21:08:26.257095+00:00
2021-02-26T09:45:34
14b2c38cd484d34b640d0fb76a927e47c3ccd968
{ "blob_id": "14b2c38cd484d34b640d0fb76a927e47c3ccd968", "branch_name": "refs/heads/master", "committer_date": "2021-02-26T09:45:34", "content_id": "9e9c2f5062f43fd9c1ec7b11e82a3feb5916e3de", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c428b5b80d6207fc5a5d7aa729591624d702a188", "extens...
stackv2
#ifndef STACK_H #define STACK_H /** header for a simple stack walker * * requires -fno-omit-frame-pointer */ #include "lib.h" typedef struct { uint64_t next; uint64_t ret; } stack_frame_t; typedef struct { int no_frames; stack_frame_t frames[]; } stack_t; void walk_stack_from(uint64_t* fp, stack_t* buf)...
2
2
2024-11-18T21:08:26.749203+00:00
2020-08-18T02:47:53
062daea10c3a5c69035a8de0b57478491a896d55
{ "blob_id": "062daea10c3a5c69035a8de0b57478491a896d55", "branch_name": "refs/heads/master", "committer_date": "2020-08-18T02:47:53", "content_id": "ce3215dfbf00836c2e50c22aca60740d6779f75f", "detected_licenses": [ "MIT" ], "directory_id": "4be8b688fbb36c52c7c55ce9eead912812db2549", "extension": "c"...
stackv2
#include "common.h" #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <sys/types.h> #define BUFSZ 1024 void usage(int argc, char **argv) { printf("usage: %s <v4|v6> <server port>\n", argv[0]); printf("example: %s v4 51511\n",...
2.671875
3
2024-11-18T21:08:26.887368+00:00
2021-12-30T07:46:20
a1dde7871f8ae196992ba70b1dde9cedb6da3fbe
{ "blob_id": "a1dde7871f8ae196992ba70b1dde9cedb6da3fbe", "branch_name": "refs/heads/release", "committer_date": "2021-12-30T07:46:20", "content_id": "911447cd196bda4b11b7dc2f40a85014a27b894e", "detected_licenses": [ "MIT" ], "directory_id": "3c6e1e35f38421273f92dd25055dccc6f632fd93", "extension": "c...
stackv2
#include "spiffs.h" #include "spiffs_nucleus.h" static s32_t spiffs_page_data_check(spiffs *fs, spiffs_fd *fd, spiffs_page_ix pix, spiffs_span_ix spix) { s32_t res = SPIFFS_OK; if (pix == (spiffs_page_ix)-1) { // referring to page 0xffff...., bad object index return SPIFFS_ERR_INDEX_REF_FREE; } if (pix...
2.21875
2
2024-11-18T22:10:58.342441+00:00
2023-07-10T16:06:35
b33e247c0b08cd847309f40b10faf5b3a48291b7
{ "blob_id": "b33e247c0b08cd847309f40b10faf5b3a48291b7", "branch_name": "refs/heads/master", "committer_date": "2023-07-10T16:06:35", "content_id": "600756fdf7c00f26adb38ebd9e143b1d9a56ba02", "detected_licenses": [ "ISC", "MIT" ], "directory_id": "d2e0fb3fdad7fc2cb70894591d358f40d8db13d2", "exte...
stackv2
/* Copyright (c) 2022 Dennis Wölfing * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI...
2.171875
2
2024-11-18T22:10:58.425816+00:00
2018-12-22T12:39:44
de968b5b1370dcc143d1f648a7642aa9852aae1b
{ "blob_id": "de968b5b1370dcc143d1f648a7642aa9852aae1b", "branch_name": "refs/heads/master", "committer_date": "2018-12-22T12:39:44", "content_id": "cb4a6c1258f217d556cb2f32fefb72b2c8429044", "detected_licenses": [ "MIT" ], "directory_id": "7388979e0c7f7a4d29dd23114c847c1fb2e9e56c", "extension": "c"...
stackv2
#include<stdio.h> #include<stdlib.h> #include<time.h> #include<math.h> #include<unistd.h> #include<omp.h> #define NODE_SAYISI 5 #define HEDEF_DUGUM 4 #define BASLANGIC_DURUMU 0 #define FEROMON_ESIGI 1 #define FEROMON_SALGI_MIKTARI 0.2 #define KARINCA_SAYISI 100 #define MAX_YOL_UZUNLUGU 30 #define TRUE 1 #define FALSE ...
2.03125
2
2024-11-18T22:10:58.560361+00:00
2020-05-24T13:55:07
68f407c8c038817f337ceccad8dfcc654c6611d6
{ "blob_id": "68f407c8c038817f337ceccad8dfcc654c6611d6", "branch_name": "refs/heads/master", "committer_date": "2020-05-24T14:05:08", "content_id": "0266978d871e0dd66df2a987b00ef2360833f52e", "detected_licenses": [ "ISC" ], "directory_id": "c236aebc30a3a9128da2a18a441e4c8d33e4d2ae", "extension": "c"...
stackv2
/*! * prepare/finalize VODE solver, * get status information. */ #include "vode.h" #include "module_functions.h" extern int mpt_vode_report(const MPT_SOLVER_STRUCT(vode) *vd, int show, MPT_TYPE(property_handler) out, void *usr) { MPT_STRUCT(property) pr; size_t li = vd->iwork.iov_len / sizeof(int); size_t lr =...
2.078125
2
2024-11-18T22:10:59.003439+00:00
2019-10-07T20:03:15
6540f0f9719351c046cea0977aa7b317f3da54fb
{ "blob_id": "6540f0f9719351c046cea0977aa7b317f3da54fb", "branch_name": "refs/heads/master", "committer_date": "2019-10-07T20:03:15", "content_id": "f23e41b32d58d12dd41cbe1a3a730982eed5b35b", "detected_licenses": [ "MIT" ], "directory_id": "7c85ea90335facb910a084ad1826b34cdc45361b", "extension": "c"...
stackv2
/*int fscanf(FILE *fichero, const char *formato, argumento, ...);*/ #include <stdio.h> int main ( int argc, char **argv ) { FILE *fp; char buffer1[100]; char buffer2[100]; fp = fopen ( "../gente.txt", "r" ); fscanf(fp, "%s\n%s" ,buffer1, buffer2); printf("%s\n%s",buffer1, buffer2); fclose ...
2.6875
3
2024-11-18T22:10:59.161962+00:00
2013-11-18T23:30:07
013efd713be9f26bc5a2a60495de3d370e28b916
{ "blob_id": "013efd713be9f26bc5a2a60495de3d370e28b916", "branch_name": "refs/heads/master", "committer_date": "2013-11-18T23:30:07", "content_id": "d1c2bd7a62bffa4902a234bb12d1a666d4556472", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "953aa193a15ee0e783ac68c9bf90d7db...
stackv2
/* * */ #ifndef _REENTRANT #define _REENTRANT #endif #include <stdio.h> #include <stdlib.h> #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <module.h> void printer(config_t *config, joblist_t *job, char *target, char *fred); int module2_run(char *target, config_t *config, j...
2.140625
2
2024-11-18T22:10:59.589748+00:00
2012-06-06T08:51:57
7d95624006fee639c2f9f53c42b0f72e4e890fd0
{ "blob_id": "7d95624006fee639c2f9f53c42b0f72e4e890fd0", "branch_name": "refs/heads/master", "committer_date": "2012-06-06T08:51:57", "content_id": "a416ee46dcbf3bbc20056f4c9944877e19fd69ef", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "190d7ec83b1c59f3663bf735059968fa8158ab3f", "extens...
stackv2
#include "luacontext.h" #include "util.h" #include <string.h> #include <stdlib.h> static void luaCtx_destroy(LuaContext_t *aCtx); Class_t Class_LuaContext = { "LuaContext", sizeof(LuaContext_t), (Obj_destructor_t)&luaCtx_destroy }; LuaContext_t *luaCtx_createContext() { LuaContext_t *out = obj_create...
2.09375
2
2024-11-18T22:10:59.712189+00:00
2019-03-18T02:14:55
38c4966841d037687562313d297d155a9bf53c8f
{ "blob_id": "38c4966841d037687562313d297d155a9bf53c8f", "branch_name": "refs/heads/master", "committer_date": "2019-03-18T02:14:55", "content_id": "8606f8dbf036ffbfa556120b5f6e2a8561e900b7", "detected_licenses": [ "CC0-1.0" ], "directory_id": "81ee58d95bc3e14c0b9f10e4ec13bc1d2fd9972f", "extension":...
stackv2
#ifndef _MAT_3X3_H_ #define _MAT_3X3_H_ #include "CoreHelpers.h" #include "Vec3.h" struct Mat33 { Mat33(); Mat33(const float srcData[9]); Mat33(const float srcData[3][3]); void InitZero(); void InitIdentity(); float Determinant() const; static Mat33 Inverse(const Mat33 & src); static Mat33 RotationAroundAx...
2
2
2024-11-18T22:10:59.939598+00:00
2020-11-23T09:09:37
748189ef3f4e90b22915392f53a72e2cfc6ce970
{ "blob_id": "748189ef3f4e90b22915392f53a72e2cfc6ce970", "branch_name": "refs/heads/main", "committer_date": "2020-11-23T09:13:33", "content_id": "4f7510fdf77f7fb5703b0432931a74145ae2f252", "detected_licenses": [ "MIT" ], "directory_id": "713f07b9417703ea4eb8d20cfb6472f526fdcf43", "extension": "c", ...
stackv2
/************************************************************************* > File Name: overflow2.c > Author: > Mail: > Created Time: Wed 02 Sep 2020 11:28:28 PM CST ************************************************************************/ /* Stack overflow the internel flag variable */ #include <...
3.21875
3
2024-11-18T22:11:00.601261+00:00
2022-04-07T14:51:28
417e78bff458e58bcf88726c235176dcba5b33dd
{ "blob_id": "417e78bff458e58bcf88726c235176dcba5b33dd", "branch_name": "refs/heads/master", "committer_date": "2022-04-07T14:51:28", "content_id": "3e65fbdb2104f452f60672c5a5fdb2c6bcc33172", "detected_licenses": [ "Unlicense" ], "directory_id": "dd623ebf382e25dd6148d2dd7c5b3e576da88e49", "extension...
stackv2
#include <stdio.h> /* * Read from stdin, replacing space with newline * previous char was also a space (i.e. \n\n = end of paragraph). */ int main(int argc, char **argv) { char prev, current; prev = current = '\0'; while ((current = getc(stdin)) != EOF) { if (current == ' ') fprintf(stdout, ...
3.171875
3
2024-11-18T22:11:00.757311+00:00
2021-03-25T18:50:43
dcab2f0cf1935616dc49dc30f50a53e94718f8b4
{ "blob_id": "dcab2f0cf1935616dc49dc30f50a53e94718f8b4", "branch_name": "refs/heads/main", "committer_date": "2021-03-25T18:50:43", "content_id": "06102ac97b52792e435a6db2951a81ab8123edc3", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b0164a49ee08c8620277db928be398c6e55b8b9e", "extension"...
stackv2
/** * Copyright (c) 2021 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ // ============================================================================= // Register block : PADS_BANK0 // Version : 1 // Bus type : apb // Description : None // ================================...
2.15625
2
2024-11-18T22:11:00.886339+00:00
2018-09-09T08:58:43
265ce65d726f6a1d392086543ab41221f904cdb1
{ "blob_id": "265ce65d726f6a1d392086543ab41221f904cdb1", "branch_name": "refs/heads/master", "committer_date": "2018-09-09T08:58:43", "content_id": "9a8711de16640b505e449ae634d297a4bc83c7c0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "8137bbe71db5bbf153731c76d65b960a8ba5a902", "extensio...
stackv2
#include "libsecurity/acl/acl_int.h" #define ACL_ENTRY_NAME "try-entry" #define BOTH_ENTRY_NAME "both" #define ALL_PERMISSION "All can user it" #define ENTRY_PERMISSION "p1" #define BOTH_PERMISSION "both" #define DEFAULT_SALT ((unsigned char *)"salt-a1b2c3d") #define SECRET ((unsigned char *)"a!@#%^&*(()__+_)(}{|PPO?>...
2.171875
2
2024-11-18T22:11:03.397662+00:00
2015-04-15T17:19:54
8b79a0a8b990bf69a9a5a16ddf00eac608d461ab
{ "blob_id": "8b79a0a8b990bf69a9a5a16ddf00eac608d461ab", "branch_name": "refs/heads/master", "committer_date": "2015-04-15T17:24:07", "content_id": "45d1f53295efecba1a78ff1dd94316eaa74f7910", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "93de7999d11432b7ecaa8383df63310afa9f62b3", "extens...
stackv2
/************************************************************************* gbmj2k.c - JPEG2000 Format support (JP2, J2K, J2C, JPC, JPT) Credit for writing this module must go to Heiko Nitzsche. This file is just as public domain as the rest of GBM. This code is a mainly a wrapper around the OpenJPEG library and sup...
2.03125
2
2024-11-18T22:11:03.959717+00:00
2022-11-29T09:15:52
35190f341e0ea9ae3f681d825cd874e4906984f7
{ "blob_id": "35190f341e0ea9ae3f681d825cd874e4906984f7", "branch_name": "refs/heads/master", "committer_date": "2022-11-29T09:15:52", "content_id": "bdb40d4ab9e990e3b778602ad80238978f8bd3b1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7d88fbcee18031d4e472977ecce32e0b463e20fe", "extensio...
stackv2
/* Hive Viriatum Commons Copyright (c) 2008-2020 Hive Solutions Lda. This file is part of Hive Viriatum Commons. Hive Viriatum Commons is free software: you can redistribute it and/or modify it under the terms of the Apache License as published by the Apache Foundation, either version 2.0 of the License, or (at...
2.515625
3
2024-11-18T22:11:04.088125+00:00
2020-05-25T00:19:13
e3a5f30e08436f89a16087af832d426376e6b83d
{ "blob_id": "e3a5f30e08436f89a16087af832d426376e6b83d", "branch_name": "refs/heads/master", "committer_date": "2020-05-25T00:19:13", "content_id": "6ef33fec7a31e230f860916e25d9d46f107c67fe", "detected_licenses": [ "MIT" ], "directory_id": "d9c7993a02bbd35895652aa0bb24b3f70a73c215", "extension": "c"...
stackv2
#include<mpi.h> #include<stdio.h> #include<stdlib.h> int main(){ MPI_Init(NULL,NULL); int world_rank, world_size; MPI_Comm_size(MPI_COMM_WORLD, &world_size); MPI_Comm_rank(MPI_COMM_WORLD, &world_rank); int *send_data, *recv_data; int total_number = 10000; int recv_num = total_number / worl...
2.96875
3
2024-11-18T22:11:04.422991+00:00
2023-04-28T11:57:35
d9216b11af8d451e841882dea5b8bb6eb9e93e3b
{ "blob_id": "d9216b11af8d451e841882dea5b8bb6eb9e93e3b", "branch_name": "refs/heads/main", "committer_date": "2023-04-28T11:57:35", "content_id": "c08ca06bab1d1aa9ce5d6c50efe424c3ad9fe260", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e659e7e3d19b602e47b6414abcdb48b99a67a7bf", "extension"...
stackv2
#include <assert.h> #include <stdint.h> #include <stddef.h> #include <unistd.h> #include "measure/measure.h" #include "amplification/tree_amplification.h" #include "retention/retention.h" #include "util.h" #include "consts.h" void parse_retention_cmdline(int argc, char *argv[], int *pages, int *per_ev, int *shrink_fac...
2.109375
2
2024-11-18T22:11:04.828650+00:00
2015-07-19T19:32:30
fda6c7a88d7f55c49e5840a2f0f6cb39b469cd95
{ "blob_id": "fda6c7a88d7f55c49e5840a2f0f6cb39b469cd95", "branch_name": "refs/heads/master", "committer_date": "2015-07-19T19:32:30", "content_id": "1c8ca812482f51aea3b3a8a2919d0c57ae97f050", "detected_licenses": [ "MIT" ], "directory_id": "41c89d197d19130d115cd3c0a1934e7eb9ad794e", "extension": "h"...
stackv2
#include <Wire.h> #include <Servo.h> #include <PID_v1.h> #include <EEPROM.h> //Pins for the Quad encoder #define PINA 2 #define PINB 3 //Pin to specify the i2c address //High is address 1, low is address 0 #define ADDRESS_PIN 13 volatile double speed = 0; volatile double pterm = 0.0; volatile double iterm = 0.0; volati...
2.15625
2
2024-11-18T22:11:04.998750+00:00
2016-01-06T06:54:21
5ab7e5960a7a0f54bcb260ae29a756cd43b6bb05
{ "blob_id": "5ab7e5960a7a0f54bcb260ae29a756cd43b6bb05", "branch_name": "refs/heads/master", "committer_date": "2016-01-06T06:54:21", "content_id": "1d73cb8ccbf94b5b6cb7f216d05fb19cd4004db4", "detected_licenses": [ "MIT" ], "directory_id": "19c1612ec9be41e8b0e339194883783114d33be3", "extension": "c"...
stackv2
#include <Python.h> static PyObject* read_header(PyObject* self, PyObject* args) { const char *filename; unsigned char header[32]; int i; if (!PyArg_ParseTuple(args, "s", &filename)) return NULL; printf("Open %s\n", filename); FILE *fp; fp=fopen(filename, "rb"); fread(he...
2.1875
2
2024-11-18T22:11:05.468914+00:00
2020-11-06T01:25:21
c14ff3ddbac4988d4dec2587e3535b400cc2d0e4
{ "blob_id": "c14ff3ddbac4988d4dec2587e3535b400cc2d0e4", "branch_name": "refs/heads/main", "committer_date": "2020-11-06T01:25:21", "content_id": "2ec02843fabe39942c7fdcf3d391b614f47a2905", "detected_licenses": [ "MIT" ], "directory_id": "50fb6964978ec432939d75b8d989e01360bfa063", "extension": "c", ...
stackv2
/* * main.c * Kia Pezesh V00845475 * CSC360 Summer 2020, Assignment 1 * A simple program to illustrate the use of the GNU Readline library * Readline library is applied to a simple shell program * * */ #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <unistd.h> #include <readline/readli...
3.4375
3
2024-11-18T22:11:06.304116+00:00
2021-07-22T03:39:42
8c9e25490bba8e9899abeb2edbe1d5e738d5f814
{ "blob_id": "8c9e25490bba8e9899abeb2edbe1d5e738d5f814", "branch_name": "refs/heads/main", "committer_date": "2021-07-22T03:39:42", "content_id": "528e339a63a0a4523305361681781e38e12bf735", "detected_licenses": [ "MIT" ], "directory_id": "8d1274250366a9e9a854b70c3d3f149c299a0f58", "extension": "c", ...
stackv2
/****************************************** *Programa diz qual é o número do dia do ano *******************************************/ #include <stdio.h> int dia_do_ano(int dia, int mes, int ano){ int cont = 0; int bissexto(int ano){ //Função para checar se o ano é bissexto. if (ano % 400 == 0){ ...
3.8125
4
2024-11-18T22:11:06.574309+00:00
2014-02-04T02:01:44
a81eea1f85bc00e7b58d2fd333863eda4ad6a3d1
{ "blob_id": "a81eea1f85bc00e7b58d2fd333863eda4ad6a3d1", "branch_name": "refs/heads/master", "committer_date": "2014-02-04T02:01:44", "content_id": "b71c91695cb949039ce789198fdc70792b09d6b9", "detected_licenses": [ "MIT" ], "directory_id": "409f45e8f2bc07e7ff3af87b0fdffaf7961d7e1a", "extension": "c"...
stackv2
/* * Serial.c: wraps the UART driver; provides basic io along the serial line. * This is mostly temporary/for use in debugging, but I think the UART should * be wrapped up. * Includes stuff for sending numbers as well as characters. */ #include <devices/uart.h> #include <serial.h> const uint8_t interactive=1; u...
3.140625
3
2024-11-18T22:11:06.669336+00:00
2021-05-23T06:30:51
ae93c876a0c9fc57bb3319e7e00f397d9bcc3889
{ "blob_id": "ae93c876a0c9fc57bb3319e7e00f397d9bcc3889", "branch_name": "refs/heads/main", "committer_date": "2021-05-23T06:30:51", "content_id": "e9e31a69b478557538aef295e5cc0f0dd72355be", "detected_licenses": [ "MIT" ], "directory_id": "4b5a60ec4b462271f26eff1231d7aed67a65b64f", "extension": "c", ...
stackv2
#include "check.h" #include "dynmem/dynmem.h" START_TEST(null_dynmem) { int *pointer; ck_assert_int_eq(DynMemGetBegin(NULL, NULL), DYNMEM_FAILED); ck_assert_int_eq(DynMemGetBegin(NULL, &pointer), DYNMEM_FAILED); ck_assert_ptr_null(pointer); } END_TEST START_TEST(nonnull_dynmem) { dynmem_t dynmem; i...
2.5625
3
2024-11-18T22:11:07.091382+00:00
2019-08-23T00:53:35
89982dbf020164c12bbcb9ee0f0a241dcb79c63d
{ "blob_id": "89982dbf020164c12bbcb9ee0f0a241dcb79c63d", "branch_name": "refs/heads/master", "committer_date": "2019-08-23T00:53:35", "content_id": "c71a616e3ab0b4a22c324f713332376b233027b0", "detected_licenses": [ "MIT" ], "directory_id": "09884947c578015a250e41dd8b7c694685490b66", "extension": "h"...
stackv2
#ifndef SCANNED_SEQUENCE_H #define SCANNED_SEQUENCE_H typedef struct scanned_site SCANNED_SITE_T; struct scanned_site { int m_num; char strand; long position; double pvalue; }; typedef struct scanned_seq SCANNED_SEQ_T; struct scanned_seq { char *seq_id; long length; double pvalue; long site_count; ...
2.46875
2
2024-11-18T22:11:08.548122+00:00
2020-04-13T16:32:35
1e3c6e3593c908239f01d582f037307fdeabf452
{ "blob_id": "1e3c6e3593c908239f01d582f037307fdeabf452", "branch_name": "refs/heads/master", "committer_date": "2020-04-13T16:32:35", "content_id": "82bb88d183a81379df8e577af0d4b2bd62932f66", "detected_licenses": [ "MIT" ], "directory_id": "44972cfc17c63c6fba9e78427b80cb6e45e13685", "extension": "c"...
stackv2
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "base64.h" int parseArguments(int argc, char **argv, char **mode, char **filename); uint8_t *readFileBinary(char *filename, unsigned long *size); int main(int argc, char ** argv) { char *mode; char *filename; if (pars...
2.890625
3
2024-11-18T22:11:12.765553+00:00
2021-11-15T16:12:02
5ffa6bda5e4ad5d28e85aa669ee76ee0ecf39282
{ "blob_id": "5ffa6bda5e4ad5d28e85aa669ee76ee0ecf39282", "branch_name": "refs/heads/main", "committer_date": "2021-11-15T16:12:02", "content_id": "77f60dcb5b1b148f6f4f7cdc2e2874aad79b59c6", "detected_licenses": [ "Apache-2.0" ], "directory_id": "3b44eed9f892c0d72444d8532a3b873af8eb2450", "extension"...
stackv2
#define _GNU_SOURCE 1 #include "util.h" #include <stdio.h> #include <string.h> #include <sys/mman.h> #include <unistd.h> #include <wayland-server.h> int create_shared_file(off_t size, void* content) { const char* name = "zazen-shared"; int fd; void* data; fd = memfd_create(name, MFD_CLOEXEC | MFD_ALLOW_SEAL...
2.40625
2
2024-11-18T22:11:12.836359+00:00
2023-08-31T14:51:12
d83c315a3c69ff8e457298a1453c00525a32ff43
{ "blob_id": "d83c315a3c69ff8e457298a1453c00525a32ff43", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T14:51:12", "content_id": "b46ae896668a9af9fe610659e10d12beec9b630e", "detected_licenses": [], "directory_id": "9de0cec678bc4a3bec2b4adabef9f39ff5b4afac", "extension": "c", "filename...
stackv2
/** * @file MakeFlowTrain.C * @author Alexander Hansen * * @brief * * @ingroup pwglf_forward_trains * */ #include "TrainSetup.C" //==================================================================== /** * Analysis train to make flow * * * @ingroup pwglf_forwar...
2
2
2024-11-18T22:11:12.952750+00:00
2021-04-09T09:37:16
3bdc4f274cb942633a6d6799a3c8d81e265a2ebd
{ "blob_id": "3bdc4f274cb942633a6d6799a3c8d81e265a2ebd", "branch_name": "refs/heads/master", "committer_date": "2021-04-09T09:37:16", "content_id": "ffcf88497daeb464e0956e8aef0b452619940a66", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d2dd8e3497e1852b15ac449af47d44fe3c0abda9", "extensio...
stackv2
/* ** Copyright 2020 Telenor Digital AS ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applicable law...
2.109375
2
2024-11-18T22:11:16.021547+00:00
2023-06-08T15:43:05
f3d5bf6cbf098593c2bebfafb112687899232fac
{ "blob_id": "f3d5bf6cbf098593c2bebfafb112687899232fac", "branch_name": "refs/heads/master", "committer_date": "2023-06-08T15:43:05", "content_id": "868dc5deb7b041ee6b8c85902edc000f287fe432", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "1deb5a41ceff80755587fea8b4eae455dcd54ecd", "extens...
stackv2
/* * Copyright (C) Maxim Dounin */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_crypt.h> #include <ngx_md5.h> #include <ngx_sha1.h> #if (NGX_CRYPT) static ngx_int_t ngx_crypt_apr1(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted); static ngx_int_t ngx_crypt_plain(ngx_pool_t *po...
2.375
2
2024-11-18T22:11:16.287381+00:00
2020-05-07T17:58:12
c3dfb761ddd57963c7f259d7a0706783d0daf2fd
{ "blob_id": "c3dfb761ddd57963c7f259d7a0706783d0daf2fd", "branch_name": "refs/heads/master", "committer_date": "2020-05-07T17:58:12", "content_id": "6facb490440f2c77b067c49ff71eda9a2dda582c", "detected_licenses": [ "CC0-1.0" ], "directory_id": "29bc4d9f953cdf7aec9ebfdafc94607dbc014e3d", "extension":...
stackv2
#include <stdio.h> #include <stdlib.h> int main() { char str[99]; printf("Enter Full Name\n"); scanf("%[^\n]s",str); printf("Hello %s",str); return 0; }
2.765625
3
2024-11-18T22:11:16.674932+00:00
2022-11-04T15:40:34
c2de6f2ef1b0ab24debc57035a44a2744d7d0adb
{ "blob_id": "c2de6f2ef1b0ab24debc57035a44a2744d7d0adb", "branch_name": "refs/heads/master", "committer_date": "2022-11-04T15:40:34", "content_id": "42bb48caf0e1fc61dae427a133e1b81959ac2659", "detected_licenses": [ "Unlicense" ], "directory_id": "ad72a007df18d5daba067ebff17b096808cb29b7", "extension...
stackv2
#include <stdio.h> int main() { printf("hello, world\n"); printf("alert '\a'\n"); printf("octal 101 hex 41 - dec 65, ascii A -: '\101' '\x41'\n"); return 0; }
2.609375
3
2024-11-18T22:11:16.786672+00:00
2020-12-08T06:18:58
38c643e74b1f56a3119e892f9d58a6b52ce26577
{ "blob_id": "38c643e74b1f56a3119e892f9d58a6b52ce26577", "branch_name": "refs/heads/main", "committer_date": "2020-12-08T06:18:58", "content_id": "f0923e047a951610fe7daec0289f91596d45e13c", "detected_licenses": [ "Unlicense" ], "directory_id": "911044fc525ca6e2ca7e5ac2205e62b830c00a76", "extension":...
stackv2
#ifndef CVHCVH #define CVHCVH #include <stdlib.h> #include <string.h> #include <stdio.h> // for CV_check() internal array printing #define nullptr ((void *)0) typedef unsigned char bool; #define true 1 #define false 0 typedef long long unsigned llu; #define LLU_MAX ~0llu struct CVector; typedef struct CVector CV; ...
2.40625
2
2024-11-18T22:11:17.057561+00:00
2018-05-06T05:15:37
b267fff67e6e7354a0d3fdacfa05ed57d1fc7136
{ "blob_id": "b267fff67e6e7354a0d3fdacfa05ed57d1fc7136", "branch_name": "refs/heads/master", "committer_date": "2018-05-06T05:15:37", "content_id": "f0d0dd786f8a4e85e626f86d70ddff9df8c5e22c", "detected_licenses": [ "MIT" ], "directory_id": "3b29fe203a16fcca5e1f68c717a22c515f68a731", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "../common.h" int main(void) { const char *mesg = "YELLOW SUBMARINE"; unsigned char *padded = pkcs7_pad((const unsigned char *) mesg, strlen(mesg), 20); printf("Set 2 Challenge 9 Padded Message: "); for (size_t i = 0; i < strlen(mesg);...
2.6875
3
2024-11-18T22:11:17.120471+00:00
2017-10-02T23:12:40
ce9d67ed0937c87c3c4b4772948bf897f5e7afef
{ "blob_id": "ce9d67ed0937c87c3c4b4772948bf897f5e7afef", "branch_name": "refs/heads/master", "committer_date": "2017-10-02T23:12:40", "content_id": "c465f1a4a33f1a8568a1da3bf6411602c6ef5cd4", "detected_licenses": [ "Zlib" ], "directory_id": "aebf2fa2eea05024d8d843d7029107e51d5d9383", "extension": "c...
stackv2
#include <stdlib.h> #include <stdio.h> #include "linkedlist.h" void InitList(LinkedList* list) { list->head = list->tail = NULL; list->length = 0; } int AddNode(LinkedList* list, void* data) { LinkedListNode* newNode = malloc(sizeof(LinkedListNode)); if(!newNode) { fprintf(stderr, "Out of memory\n"); exit(1...
3.234375
3
2024-11-18T22:11:17.180034+00:00
2023-08-27T20:08:08
bf8a8444755a6a5d5688ac989746b47866750f15
{ "blob_id": "bf8a8444755a6a5d5688ac989746b47866750f15", "branch_name": "refs/heads/master", "committer_date": "2023-08-27T20:08:08", "content_id": "b96e62677c7425402d74ff4821f1159690ab4805", "detected_licenses": [ "MIT" ], "directory_id": "1af43c4ba32d78c60f007a4d068136ce575d917f", "extension": "c"...
stackv2
#include "hid_app.h" #include "hid_desc.h" #include "hid_conf.h" volatile uint8_t kb_tx_complete = 1; volatile uint8_t mouse_tx_complete = 1; volatile uint8_t joy1_tx_complete = 1; volatile uint8_t joy2_tx_complete = 1; usb_joy_report_ready_cb_f joy_report_ready_cb = NULL; usb_kb_report_ready_cb_f kb_report_ready_cb =...
2.296875
2
2024-11-18T22:11:17.254830+00:00
2018-10-03T09:38:27
1bdb589058399da2046382b160e93f933eb8238f
{ "blob_id": "1bdb589058399da2046382b160e93f933eb8238f", "branch_name": "refs/heads/master", "committer_date": "2018-10-03T09:38:27", "content_id": "8ddc7e557908aa9b0905448d77701e4ff4f8d916", "detected_licenses": [ "MIT" ], "directory_id": "fd7c8ac90af5ea2cacd9decac67ddb4eba64976f", "extension": "c"...
stackv2
#include "../test.h" #include <strextra/strextra.h> int main() { test_start("strx"); /* strx_to_double */ { _assert (strx_to_double("0.5", 3) == 0.5); _assert (strx_to_double("0.55", 3) == 0.5); _assert (strx_to_double("123.456", 7) == 123.456); _assert (strx_to_double("12...
2.171875
2
2024-11-18T22:11:18.066216+00:00
2020-05-29T23:17:25
042dc1477157a818132c179ab04ef89a5fdc2620
{ "blob_id": "042dc1477157a818132c179ab04ef89a5fdc2620", "branch_name": "refs/heads/master", "committer_date": "2020-05-29T23:17:25", "content_id": "650a90908b29afec0e5a0adc95c17118a9a46a4c", "detected_licenses": [ "MIT" ], "directory_id": "b23a1df284e683a571de19ee19e11eb5a5bb5e46", "extension": "h"...
stackv2
// On the Subject of Discharge /* KNOWN ISSUES: MODULE FULLY FUNCTIONS FROM A BUTTON, LED, AND INCREASING TIME STANDPOINT, HOWEVER THE LEVER IS JUST A BUTTON, NO LEVER INSTALLED. WILL STILL BE A SWITCH OF SOME KIND BUT NEEDS DESIGNED. */ #define PIN_DISCHARGE_LED_1 2,0,7 // turns on when button pressed #define ...
2.40625
2
2024-11-18T22:11:18.576553+00:00
2023-04-29T08:15:24
8e46222678a8b56831c950ec8e74bffbd6c39c41
{ "blob_id": "8e46222678a8b56831c950ec8e74bffbd6c39c41", "branch_name": "refs/heads/master", "committer_date": "2023-04-29T08:15:24", "content_id": "b3a4acd92ec0c2b3481e38aa60ad0fb1d3a51199", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "e3c0499cc58c9fbec887a2e85672d5e29588f9e0", "extens...
stackv2
/*Copyright 2011 Alibaba Group*/ /* * cutf.c * madagascar * * Created by Misa.Z on 2/28/09. * Copyright 2009 Virtualnology. All rights reserved. * */ #include "utf/cutf.h" #include "std/cstd.h" #include "mem/cmemport.h" static const BYTE _utf8_bytes_map[] = { 1,1,1,1,1,1,1,1, 1,1,1,1,2,2,3,4 };//er...
2.328125
2
2024-11-18T22:11:18.735453+00:00
2023-04-02T05:01:06
910afd7d47fe85db1938a783e1e7c4cd5dd942fd
{ "blob_id": "910afd7d47fe85db1938a783e1e7c4cd5dd942fd", "branch_name": "refs/heads/master", "committer_date": "2023-04-12T11:10:39", "content_id": "520d81c6dca10784d9523a75d49520a75840ee97", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9f275713fcb7930ddd22aa14123d1e3bb8da793d", "extensio...
stackv2
/* * Copyright (c) 2022 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /* Read from PCI configuration space */ uint32_t emul_pci_read(unsigned int reg); /* Write to PCI configuration space */ void emul_pci_write(pcie_bdf_t bdf, unsigned int reg, uint32_t value); void emul_out8(uint8_t data, io_port...
2.09375
2
2024-11-18T22:11:19.699964+00:00
2019-03-12T07:55:03
b862d606d8bcaf02151c671f4a3e1bd948e573f1
{ "blob_id": "b862d606d8bcaf02151c671f4a3e1bd948e573f1", "branch_name": "refs/heads/master", "committer_date": "2019-03-12T07:55:03", "content_id": "74fa15fddbcfe926e9c891ba84ef34491cea80db", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "f76584d0d3faab1825d4f475a7e0502a5f8083c9", "extens...
stackv2
/* ** Copyright (c) 2007 D. Richard Hipp ** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the Simplified BSD License (also ** known as the "2-Clause License" or "FreeBSD License".) ** This program is distributed in the hope that it will be useful, ** but without any w...
2.40625
2
2024-11-18T22:11:19.857733+00:00
2019-02-13T12:01:39
1fabf4b4e013bf50240985ad31ecc6705953012f
{ "blob_id": "1fabf4b4e013bf50240985ad31ecc6705953012f", "branch_name": "refs/heads/master", "committer_date": "2019-02-13T12:01:39", "content_id": "28b26f941fa9eb7a28f2f8e0f0d043f7f7a36772", "detected_licenses": [ "MIT" ], "directory_id": "9b449a0dcd9cedc35971105a57a2e176f9c8bb5c", "extension": "c"...
stackv2
/* ** EPITECH PROJECT, 2017 ** bootstrap my _ls ** File description: ** create list */ #include "my.h" #include "header_LS.h" #include <stdio.h> int comparaison(linked_list_t *buffer, linked_list_t *list); linked_list_t *search_greater(linked_list_t *list) { linked_list_t *buffer; buffer = list; list = list->nex...
2.90625
3
2024-11-18T22:11:20.131113+00:00
2021-08-15T12:04:02
84ad46ee0321c501f867dff767900a54c1269d6d
{ "blob_id": "84ad46ee0321c501f867dff767900a54c1269d6d", "branch_name": "refs/heads/main", "committer_date": "2021-08-15T12:04:02", "content_id": "3a4f6b391fea186db997bfb8b41339d2b00aaf97", "detected_licenses": [ "MIT" ], "directory_id": "eae74156f3172a176b5a667db44a02057a5d5f04", "extension": "c", ...
stackv2
#include "TM4C123.h" // Device header #include <stdint.h> //DATE:: 06-02-2020 //Driver development for DS3231 Real-Time Clock Module //I2C communication between the DS3231 module and the Tiva C microcontroller //STEPS //1.) I2C configuration //2.) Register and Command Definitions //INTERNAL REGIST...
2.671875
3
2024-11-18T22:11:24.064481+00:00
2015-10-23T16:51:59
6aba6b7831a713c88ae1f09dfc64bc86f3c3db7f
{ "blob_id": "6aba6b7831a713c88ae1f09dfc64bc86f3c3db7f", "branch_name": "refs/heads/master", "committer_date": "2015-10-23T16:51:59", "content_id": "cf4d14be8033253ac2a01f7df8e9e143f0a12d9a", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "711e468a2b511790820253283a989cc6884b9a35"...
stackv2
/* * notify_self.c - example of how you can use overflow notifications * * Copyright (C) 2002 Hewlett-Packard Co * Contributed by Stephane Eranian <eranian@hpl.hp.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Sof...
2.3125
2
2024-11-18T22:11:24.158651+00:00
2016-08-17T08:19:31
f38e8611940b758d240af09a90388412e7ca0db0
{ "blob_id": "f38e8611940b758d240af09a90388412e7ca0db0", "branch_name": "refs/heads/master", "committer_date": "2016-08-17T08:19:31", "content_id": "97294ebd04a51df88288bc1854781a00d258ee17", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7ee8e0ee4443e5d1f15eed1d0c15f544ac47b75a", "extensio...
stackv2
/* * Copyright (C) 2013 Google, Inc. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * ...
2.125
2
2024-11-18T22:11:26.076485+00:00
2020-03-17T21:23:53
65765eddefe789fcf10fcd12b4386b1f6947a14f
{ "blob_id": "65765eddefe789fcf10fcd12b4386b1f6947a14f", "branch_name": "refs/heads/master", "committer_date": "2020-03-17T21:23:53", "content_id": "b84458e3a944f6789395b9f48484f62e393b5171", "detected_licenses": [ "MIT" ], "directory_id": "5be7389c2621d1fcba8de29339caf607a8f46113", "extension": "c"...
stackv2
#include "OrionComm.h" BOOL OrionCommOpen(int *pArgc, char ***pArgv) { // If there are at least two arguments, and the first looks like a serial port or IP if (*pArgc >= 2) { // IP address...? if (OrionCommIpStringValid((*pArgv)[1])) { // Try connecting to a gimbal at t...
2.046875
2
2024-11-18T22:11:27.668007+00:00
2021-07-24T01:57:02
765ddee5bc358a61ae7e616611543343a27229bb
{ "blob_id": "765ddee5bc358a61ae7e616611543343a27229bb", "branch_name": "refs/heads/main", "committer_date": "2021-07-24T01:57:02", "content_id": "fd1b03bfa69b28d0a7d21a6072a0335f140c32a5", "detected_licenses": [ "MIT" ], "directory_id": "2d5af4db494305a7a8a588eed771e370678ef1e3", "extension": "c", ...
stackv2
#include <stdio.h> void main () { float sal, prestacao, sal20; printf("Sal. | Prestação ?\b"); scanf("%f %f", &sal, &prestacao); sal20 = sal*0.20; if (prestacao > sal20) { printf("Empréstimo não concedido.\n"); } else { printf("Empréstimo concedido.\n"); } }
3.078125
3
2024-11-18T22:11:27.864204+00:00
2023-03-21T23:49:44
68126cc4af1f1a84267e8d28184719acf55e119e
{ "blob_id": "68126cc4af1f1a84267e8d28184719acf55e119e", "branch_name": "refs/heads/master", "committer_date": "2023-03-21T23:49:44", "content_id": "467c57b0a71d5bc7397e59dc17fd44b21a099593", "detected_licenses": [ "MIT" ], "directory_id": "b452bbb87214f174122f425f6f98f4c3890c3cca", "extension": "c"...
stackv2
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1....
2.609375
3
2024-11-18T22:11:30.342666+00:00
2018-11-23T03:19:29
5e9033635a1b0d9882ce7d23e244e26dff619237
{ "blob_id": "5e9033635a1b0d9882ce7d23e244e26dff619237", "branch_name": "refs/heads/master", "committer_date": "2018-11-23T03:19:29", "content_id": "8e1beb3d7854065b4afe3b39ddc42869f72813f6", "detected_licenses": [ "MIT" ], "directory_id": "8149c2bcbe581564d15eda15ec6c57ad06742923", "extension": "c"...
stackv2
/** * Return an array of arrays of size *returnSize. * Note: The returned array must be malloced, assume caller calls free(). */ #include <stdlib.h> typedef int* data_t; struct vector_t { size_t size; size_t used; int max_depth; data_t* data; }; static void init_vector(struct vector_t* v, size_t size) { if (0...
3.671875
4
2024-11-18T22:11:31.052671+00:00
2018-05-10T09:28:08
e12d25bbefee737e3cddc4da5c6baa9aad87e624
{ "blob_id": "e12d25bbefee737e3cddc4da5c6baa9aad87e624", "branch_name": "refs/heads/master", "committer_date": "2018-05-10T09:28:08", "content_id": "6837cece91697a6ea7a7a547ccd86f2b61836748", "detected_licenses": [ "MIT" ], "directory_id": "3d10ffd0575084acf4cc12f4be6610b86f2ef8e6", "extension": "c"...
stackv2
/* ## (c) 2017, Arkadiusz Drabczyk, arkadiusz@drabczyk.org */ #include <stdio.h> #include <stdlib.h> struct node { int data; struct node *next; }; int init(struct node **head, int data) { *head = malloc(sizeof(struct node)); if (!*head) { fprintf(stderr, "Failed to init a linked list\n"); return 1; } (*he...
3.984375
4
2024-11-18T22:11:31.993122+00:00
2020-08-14T19:31:36
0976c51b2b5a81af59496a472c02cd1afa4eaf28
{ "blob_id": "0976c51b2b5a81af59496a472c02cd1afa4eaf28", "branch_name": "refs/heads/master", "committer_date": "2020-08-14T19:31:36", "content_id": "3273355902920550861c33fac58d900449c92ea0", "detected_licenses": [ "MIT" ], "directory_id": "f328c545b57ddeca9b936d43c71656dd54aebb82", "extension": "c"...
stackv2
#include<stdio.h> #include<sys/types.h> #include<unistd.h> #include<stdlib.h> int main(int argc, char** argv) { pid_t pid; if ((pid = fork()) == 0) { printf("hello from the child\n"); } else if (pid > 0) { printf("hello from the parent\n"); } else { printf("fork error\n"); ...
2.46875
2
2024-11-18T22:11:32.554781+00:00
2015-10-23T06:42:21
a93c247e18e8c59ac26ae22f82bfc35914b64588
{ "blob_id": "a93c247e18e8c59ac26ae22f82bfc35914b64588", "branch_name": "refs/heads/master", "committer_date": "2015-10-23T06:42:21", "content_id": "7d8e97f7692441e0f3b33a08b5683af576efe0b4", "detected_licenses": [ "MIT" ], "directory_id": "8dd2c2c7a16c4630577ed78806e0c3e9c06b25d9", "extension": "c"...
stackv2
#include "mruby.h" #include "mruby/string.h" #include <stdio.h> #include <string.h> #include <kernel.h> mrb_value mrb_ssp_delay_delay(mrb_state *mrb, mrb_value self) { ER retval; mrb_int tout; mrb_value argv; SYSTIM startTime; SYSTIM targetTime; SYSTIM currentTime; mrb_get_args(mrb, "o", ...
2.15625
2
2024-11-18T22:11:32.672356+00:00
2019-07-05T02:13:28
004b7de13b067e9c5c32de84ecb4149190cf5955
{ "blob_id": "004b7de13b067e9c5c32de84ecb4149190cf5955", "branch_name": "refs/heads/master", "committer_date": "2019-07-05T02:13:28", "content_id": "91ec32fde07471d5835b70e464e8bf69626f0596", "detected_licenses": [ "Apache-2.0" ], "directory_id": "983e3137e09ea9ad51331faa084369b119597f98", "extensio...
stackv2
/* * SPDX-License-Identifier: Apache-2.0 * * Name: * MOXA LED Library * * Description: * Library for controling LED to off, on, or blink. * * Authors: * 2014 SZ Lin <sz.lin@moxa.com> * 2017 Harry YJ Jhou <HarryYJ.Jhou@moxa.com> * 2018 Ken CJ Chou <KenCJ.Chou@moxa.com> */ #include <stdio.h> #include <unis...
2.359375
2
2024-11-18T22:11:33.047879+00:00
2015-12-23T13:08:41
18f3b0837c480ae587f8b59b898ff326acd8880c
{ "blob_id": "18f3b0837c480ae587f8b59b898ff326acd8880c", "branch_name": "refs/heads/master", "committer_date": "2015-12-23T13:08:41", "content_id": "5b1a0491053ab6541eeb764bf91680ccc37894f8", "detected_licenses": [ "MIT" ], "directory_id": "ee06b643e3263a2a91b5c9d5b6be8f3e30e32f77", "extension": "c"...
stackv2
// Compile me with: gcc -std=c99 example.c liblistmisc.a -o example -D_GNU_SOURCE // (_GNU_SOURCE is only needed for strdup) #include <stdio.h> #include <string.h> #include "listmisc.h" int main() { // Create a new, empty list. list_t *list = list_create(); // Fill the list with some strings list_add(list, strd...
3.234375
3
2024-11-18T22:11:33.111286+00:00
2021-04-19T08:59:42
7a50c7a964b23b1fbf9f5b69d99a4360818fc6f5
{ "blob_id": "7a50c7a964b23b1fbf9f5b69d99a4360818fc6f5", "branch_name": "refs/heads/main", "committer_date": "2021-04-19T08:59:42", "content_id": "9297ec514b580588b96f32b128dc74ece6e8b9dc", "detected_licenses": [ "MIT" ], "directory_id": "90e5d28f5d4cbd874bc5be69344d3d765be13573", "extension": "c", ...
stackv2
/******** DO NOT EDIT THIS FILE ********/ #include <unistd.h> #include <sys/wait.h> #include <stdio.h> #include <errno.h> #include "test_jobqueue_common.h" #include "test_sem_ipc_jobqueue.h" #include "../sem_ipc_jobqueue.h" #include "procs4tests.h" int main(int argc, char** argv) { return munit_suite_main(&suite, ...
2.21875
2
2024-11-18T22:11:33.224025+00:00
2017-09-29T18:11:47
69d747871185556e6d3a401b2b3ad873e9de4c40
{ "blob_id": "69d747871185556e6d3a401b2b3ad873e9de4c40", "branch_name": "refs/heads/master", "committer_date": "2017-09-29T18:11:47", "content_id": "0ff77b192e725f206ed8ed9c286f617524d6432e", "detected_licenses": [ "MIT" ], "directory_id": "c8680091ab8376b149ab2d86bf3eb8641726bd36", "extension": "c"...
stackv2
//random access //input and output are normally sequential; each read or write takes place at a position in the file right after the previous one ; //when necessary, a file can be read or written in any arbitrary order; the system call lseek provides a way to move around in a file without reading or writing any data ...
2.90625
3
2024-11-18T22:11:33.309761+00:00
2022-10-22T17:08:10
ff6c87acb55a9124372c5dbdcfc35ebcc18a976e
{ "blob_id": "ff6c87acb55a9124372c5dbdcfc35ebcc18a976e", "branch_name": "refs/heads/master", "committer_date": "2022-10-22T17:08:10", "content_id": "5d75d772a8a011285d65c9d7c9d9493ee592cdaf", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "417b35db3cead540fe13a417b01d32c9d3d7fb48", "extens...
stackv2
#include <stdio.h> #include <string.h> #include "z.h" #include "oly.h" static struct admit * rp_admit(int pl, int targ) { int i; struct entity_player *p; assert(kind(pl) == T_player); p = p_player(pl); for (i = 0; i < ilist_len(p->admits); i++) { if (p->admits[i]->targ == ta...
2.5625
3
2024-11-18T22:11:34.002898+00:00
2023-04-04T03:02:47
6761349c146fcd21d5ca74f6e204393a18c1f32d
{ "blob_id": "6761349c146fcd21d5ca74f6e204393a18c1f32d", "branch_name": "refs/heads/master", "committer_date": "2023-04-04T03:02:47", "content_id": "e20ab442b5694e16d10c20ddb932d0de19fde2cc", "detected_licenses": [ "MIT" ], "directory_id": "fe8942af9cb004c7d91c12845fc7c08c9087aee6", "extension": "h"...
stackv2
#ifndef YASL_IO_H_ #define YASL_IO_H_ #include <stdio.h> #define NEW_IO(f) ((struct IO) {\ .print = io_print_file,\ .file = (f),\ .string = NULL,\ .len = 0\ }) struct IO { void (*print)(struct IO *const, const char *const, va_list); FILE *file; char *string; size_t len; }; void io_cleanup(struct IO *const i...
2
2
2024-11-18T22:11:40.903215+00:00
2020-01-27T14:15:31
3b280d70f58614eac52ec9ae54ee919bc64bfc4d
{ "blob_id": "3b280d70f58614eac52ec9ae54ee919bc64bfc4d", "branch_name": "refs/heads/master", "committer_date": "2020-01-27T14:15:31", "content_id": "e81b86c680a71cf39cf44095eb2ee74ef9201a94", "detected_licenses": [ "MIT" ], "directory_id": "5f5bda04cb8997a04f2d5ed6d17f5b0bbb78a9bd", "extension": "h"...
stackv2
/* * MIT License * * Copyright (c) 2017 Gang Zhuo <gang.zhuo@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 use...
2.234375
2
2024-11-18T22:11:41.496758+00:00
2023-07-24T15:23:29
6ca9c241d0edcd2568f5c16d791f1dd31b5e0d87
{ "blob_id": "6ca9c241d0edcd2568f5c16d791f1dd31b5e0d87", "branch_name": "refs/heads/devel", "committer_date": "2023-07-24T15:23:29", "content_id": "5ab6e94aedc6cc8638ae4fcea29842a69204f735", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4a1b388fc7254e7f8fa2b72df9d61999bf7df341", "extension...
stackv2
// generated from rosidl_generator_c/resource/idl__functions.c.em // with input from pcl_msgs:msg/ModelCoefficients.idl // generated code does not contain a copyright notice #include "pcl_msgs/msg/detail/model_coefficients__functions.h" #include <assert.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> ...
2.0625
2
2024-11-18T22:11:41.912665+00:00
2023-06-17T17:46:23
ff0ca80bd1d58d236b6ad48bb5f2d25ac88901d8
{ "blob_id": "ff0ca80bd1d58d236b6ad48bb5f2d25ac88901d8", "branch_name": "refs/heads/master", "committer_date": "2023-07-11T12:25:31", "content_id": "3c758a42ed038a8247eb0e670c7a08699a6ce112", "detected_licenses": [ "Unlicense" ], "directory_id": "01ace0f357a25a895df67b2fe60020a9e9713766", "extension...
stackv2
#include "libdstr/libdstr.h" #include "libduv/libduv.h" #include "libhttp/libhttp.h" #include "test/test_utils.h" static derr_t E = {0}; static bool finished = false; static void write_cb(stream_i *stream, stream_write_t *write){ (void)stream; (void)write; } static void await_cb(rstream_i *rstream, derr_t e...
2.1875
2
2024-11-18T20:14:01.782638+00:00
2017-10-08T21:26:01
426c8b60741a2fc8240ca6f178cbf7a6be84b114
{ "blob_id": "426c8b60741a2fc8240ca6f178cbf7a6be84b114", "branch_name": "refs/heads/master", "committer_date": "2017-10-08T21:26:01", "content_id": "0dd1be841a1057521ec862cb7b14c81de6a42b29", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "6818bd4c663a5aa7941bdbbfd51940c64d5d8e6d", "extens...
stackv2
// // Created by Javier Peralta on 9/16/17. // #include "matrix.h" //#include <omp.h> void vectorScalar (double *v, double d, int size){ for(int i = 0; i < size; ++i ){ v[i] *= d; } } void restaVector(double *v1, double *v2, double* out, int size){ //#pragma omp parallel for for(int i = 0; i < size; ++i ){ ...
2.953125
3
2024-11-18T20:14:02.047759+00:00
2018-08-14T12:52:18
716971c09804d1cf97cabecc1cae0c0dca873b1a
{ "blob_id": "716971c09804d1cf97cabecc1cae0c0dca873b1a", "branch_name": "refs/heads/master", "committer_date": "2018-08-14T12:52:18", "content_id": "f571ace70d63a90e255588eb8446cf23d49f9846", "detected_licenses": [ "MIT" ], "directory_id": "8fcf62cb9f1b7191083a5f9322b4a7eb81e2647f", "extension": "c"...
stackv2
#include "LSQueue.h" /* void QueueInitiate(SeqQueue *);//初始化队列; int QueueNoEmpty(SeqQueue);//判断队列是否为空; int QueueAppend(SeqQueue *, DataType x);//入队; int QueueDelete(SeqQueue *, DataType *x);//出队; int QueueGet(SeqQueue, DataType *x);//取队头; */ void QueueInitiate(SeqQueue * Q)//初始化队列; { Q->front = 0; Q->rear = 0; Q->...
3.1875
3
2024-11-18T20:14:02.271754+00:00
2020-12-22T15:50:14
e82eb1d655aa309baa01c13bd2915c390eb7a01d
{ "blob_id": "e82eb1d655aa309baa01c13bd2915c390eb7a01d", "branch_name": "refs/heads/master", "committer_date": "2020-12-22T15:50:14", "content_id": "b6f45348362f2e3d4038e1d11f4bee10a35c5cd3", "detected_licenses": [ "Apache-2.0" ], "directory_id": "eb38fbdbc62b332a549b28fe346d5dbd07f03645", "extensio...
stackv2
/* * Copyright (c) 2019 * IoTech Ltd * * SPDX-License-Identifier: Apache-2.0 * */ #include <errno.h> #include "edgex/edgex-base.h" #include "iot/typecode.h" static edgex_propertytype typeForArray[] = { Edgex_Int8Array, Edgex_Uint8Array, Edgex_Int16Array, Edgex_Uint16Array, Edgex_Int32Array, Edgex_Uint32Array,...
2.09375
2
2024-11-18T20:14:02.442810+00:00
2021-10-29T19:33:34
c3bc1b16035336d9ba17afa0dce9656dfff9e792
{ "blob_id": "c3bc1b16035336d9ba17afa0dce9656dfff9e792", "branch_name": "refs/heads/main", "committer_date": "2021-10-29T19:33:34", "content_id": "df8fe72f85c3b750ae5b3dcefd22d680942fa614", "detected_licenses": [ "MIT" ], "directory_id": "d6f4245de8d48703508b9b1430b042867625de68", "extension": "c", ...
stackv2
#include "pthread.h" #include "smack.h" #include <assert.h> #include <stdlib.h> #include <string.h> // @expect error // @flag --unroll=6 const int SIGMA = 5; int *array; int array_index = 0; void *thread(void *arg) { array[array_index] = 1; return 0; } int main() { int tid, sum; pthread_t *t; t = (pthre...
2.8125
3
2024-11-18T20:41:22.218495+00:00
2016-11-23T20:47:39
15f2b4a5460c2d6f7ec627a9939f4b6adcfa8a30
{ "blob_id": "15f2b4a5460c2d6f7ec627a9939f4b6adcfa8a30", "branch_name": "refs/heads/master", "committer_date": "2016-11-23T20:47:39", "content_id": "7f6efdd35babdc949b5441f421a1869a3f927efa", "detected_licenses": [ "MIT" ], "directory_id": "9bd94e148e4ddaece3f96847c63fbcbc16db9db6", "extension": "c"...
stackv2
#include <LPC407x_8x_177x_8x.h> #include "timer.h" static void (*timer0UserDefinedHandler)(); void timer0Init(uint32_t tickHz, void (*handler)()) { LPC_SC->PCONP |= (1UL << 1); /* ensure power to TIMER0 */ LPC_TIM0->TCR = 0; /* disable the timer during configuration */ LPC_TIM0->PR = 0; /* don't scale peripheral c...
2.359375
2
2024-11-18T20:41:23.190754+00:00
2020-01-27T07:08:38
0d5e7b6c84b98bc304ee14524479e478a5fc371b
{ "blob_id": "0d5e7b6c84b98bc304ee14524479e478a5fc371b", "branch_name": "refs/heads/master", "committer_date": "2020-01-27T07:08:38", "content_id": "180b41f35103617aaefdb498127dc1a8a1211384", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "ce982295d56cfd6f42de94eb8149f7adec7707c5", "extens...
stackv2
/* * Copyright 2019, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the BSD 2-Clause license. Note that NO WARRANTY is provided. * See "LICENSE_BSD2.txt" for details. * * @TAG(DATA...
2.609375
3
2024-11-18T21:31:52.766220+00:00
2017-07-19T02:35:32
6ed5db8bb1c9a7826060379211bb7503e2030507
{ "blob_id": "6ed5db8bb1c9a7826060379211bb7503e2030507", "branch_name": "refs/heads/simple-encoding", "committer_date": "2017-07-19T02:35:32", "content_id": "599d835b434819765ca204995db16aa31bd67922", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "55f286eae977b11c2341f3e0c8fad8bbe98a4da3", ...
stackv2
#include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #if USE_LZF #include "lzf.h" #else #include "lzfx.h" #endif typedef unsigned char u8; #define BLOCKSIZE (1024*1024) #define NITER 100 int main(int argc, char* argv[]){ int ifd, rc, i; u8* data = NULL; u8* obuf = NULL; uns...
2.53125
3
2024-11-18T21:31:52.850435+00:00
2023-03-29T01:11:21
8a7daa42a73b412ef1027a2c2432a99717d527a8
{ "blob_id": "8a7daa42a73b412ef1027a2c2432a99717d527a8", "branch_name": "refs/heads/master", "committer_date": "2023-03-29T01:11:21", "content_id": "cb4a236d753d10e071f0ea56e8efa260e407c81b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "02147e3367d4a8aa3a40df188dc815ef3c734952", "extens...
stackv2
#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef FORTIFY #include "fortify/fortify.h" #endif #include "base/result.h" #include "datastruct/bitfifo.h" #include "test/all-tests.h" #define MAXSIZE 32 static const struct { int length; /* in bits */ unsigned int after_...
2.875
3
2024-11-18T21:31:53.563756+00:00
2018-09-16T08:56:40
e67a6cb3fdb392a606736df7737df803b4805b5b
{ "blob_id": "e67a6cb3fdb392a606736df7737df803b4805b5b", "branch_name": "refs/heads/master", "committer_date": "2018-09-16T08:56:40", "content_id": "025dc899e0da8488db7e23fed0ba07c691ab6069", "detected_licenses": [ "MIT" ], "directory_id": "aa39a3c5e34e2f6af8e97913e10d44ba50f1bd13", "extension": "c"...
stackv2
/** CA Assignment Programming Semester II */ /** * Programming Semester II Assignment 2 * * In this assignment need to create a program in C language that will perform some security authorisation based on user access code input, encrypt user input access code make some assignment operation. Check...
3.359375
3
2024-11-18T22:07:57.074332+00:00
2019-04-22T18:02:25
ef819e9f196cc0d241ead33fdfa4d56aa6df1528
{ "blob_id": "ef819e9f196cc0d241ead33fdfa4d56aa6df1528", "branch_name": "refs/heads/master", "committer_date": "2019-04-22T18:02:25", "content_id": "8063d81fe8690437c8ccdde57840c97a6ea86710", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "68fb520f4123d871c1edb6b88b5868c535f30730", "extens...
stackv2
/** * @file * Implementation of the MR-PDP module for libpdp. * * @author Copyright (c) 2012, Mark Gondree * @author Copyright (c) 2012, Alric Althoff * @author Copyright (c) 2008, Zachary N J Peterson * @date 2008-2013 * @copyright BSD 2-Clause License, * See http://opensource.org/licenses/BSD-2-Cl...
2.359375
2
2024-11-18T22:07:57.125844+00:00
2021-01-18T04:11:43
d0a87248872e6e8fb0e4b847fce6a85bd5fa8543
{ "blob_id": "d0a87248872e6e8fb0e4b847fce6a85bd5fa8543", "branch_name": "refs/heads/main", "committer_date": "2021-01-18T04:11:43", "content_id": "3ed6341b99fc8843c4b5e81cda81c5f2ddad5247", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8fe07cf177969a9d1b43f1c462ba5e3007259de6", "extensio...
stackv2
// The distance to the moon converted to kilometers. // // Title: moon #include <iostream.h> int main() { const int moon = 238857; cout << "The moon's distance from Earth is " << moon; cout << " miles." << endl; int moon_kilo = moon * 1.609; cout << "In kilometers this is " << moon_kilo; cout << ...
2.859375
3
2024-11-18T22:07:57.198422+00:00
2009-12-19T14:24:42
584cce35b158adaac44fc40d8a4cb9286d668b0b
{ "blob_id": "584cce35b158adaac44fc40d8a4cb9286d668b0b", "branch_name": "refs/heads/master", "committer_date": "2009-12-19T14:36:56", "content_id": "aa14e5995bec191684364fdd858bb748e2305499", "detected_licenses": [ "MIT" ], "directory_id": "e77961473fca3c0cc2c4bcdf0d8fff43eeb720dd", "extension": "c"...
stackv2
/* * Copyright (c) 2008 Rainer Clasen * * This program is free software; you can redistribute it and/or modify * it under the terms described in the file LICENSE included in this * distribution. * */ #include <string.h> #include <syslog.h> #include "sleep.h" #include "proto_helper.h" #include "proto_cmd.h" #in...
2.40625
2
2024-11-18T22:07:57.287370+00:00
2016-12-22T13:46:17
795d881f67ad690be3c3ee93f8f92b13260136d1
{ "blob_id": "795d881f67ad690be3c3ee93f8f92b13260136d1", "branch_name": "refs/heads/master", "committer_date": "2016-12-22T13:46:17", "content_id": "ef359c431a2ba61db7bd61b28d32e1d2d2b930f1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c1270100282cf9409f9f41f1d1e6b7a838bbfbff", "extensio...
stackv2
float cc[10][11]; struct Position { float x, y; }; // Redefine field "x" struct Pos { float x, y; // int x; }; // Duplicated name "Position1" struct Position1 { float x; }; // struct Position1 { // int x; // }; // Undefine variable "j" int func1(int i) { // int i = 0; // j = i + 1; } //...
2.640625
3
2024-11-18T22:07:57.389673+00:00
2020-11-14T12:44:59
cc8fb636599c6ac7f1e2dbb5b8352c818af22325
{ "blob_id": "cc8fb636599c6ac7f1e2dbb5b8352c818af22325", "branch_name": "refs/heads/master", "committer_date": "2020-11-14T12:44:59", "content_id": "19386163ab4beb39d39cec8bc3e3e1fd61f5a64e", "detected_licenses": [ "MIT" ], "directory_id": "f118e2efca8c5d98b2d40a5e3f2ab04dc402da73", "extension": "c"...
stackv2
#include <stdio.h> void swapMinMax1D(int ar[], int size); int main() { int ar[50], i, size; printf("Enter array size: \n"); scanf("%d", &size); printf("Enter %d data: \n", size); for (i = 0; i < size; i++) scanf("%d", ar + i); swapMinMax1D(ar, size); printf("swapMinMax1D(): "); ...
3.703125
4
2024-11-18T22:07:57.811608+00:00
2020-05-04T04:32:25
4183f7d30afb2f5c248cdeb60faee9ec408dfd57
{ "blob_id": "4183f7d30afb2f5c248cdeb60faee9ec408dfd57", "branch_name": "refs/heads/master", "committer_date": "2020-05-04T04:32:25", "content_id": "11de227759fb92db929f22ec50e82b8a4adb5ff7", "detected_licenses": [ "MIT" ], "directory_id": "1929c33f96719af6ce62da7d76e5cba6d361eea8", "extension": "c"...
stackv2
/* d.Determinar o maior de três números dados. */ #include<stdio.h> #include<conio.h> main(){ int num1, num2, num3, maior; printf("\n 3 Numero: "); scanf("%d%d%d", &num1, &num2, &num3); maior = num1; if(num2 > maior) maior = num2; ...
3.53125
4
2024-11-18T22:07:57.903615+00:00
2021-01-15T16:17:22
5826d07f24e862382fe1b94d20b4399e403200e3
{ "blob_id": "5826d07f24e862382fe1b94d20b4399e403200e3", "branch_name": "refs/heads/main", "committer_date": "2021-01-15T16:17:22", "content_id": "81f036ff20d496fe9ebfccb332db503b0ebc3085", "detected_licenses": [ "MIT" ], "directory_id": "47d836bebfe480cba4a7f43e9eea9f014c17345b", "extension": "c", ...
stackv2
/* ============================================================= EE101 Embedded Firmware Debugger Firmware Library Provided by EE101.com This file is to be included in your embedded firmware project to send debug information to the EE101 Embedded Firmware Debugger. It can operate in a 1-wire (UART) mode, or a 2-wire...
2.203125
2
2024-11-18T22:07:57.982007+00:00
2021-09-27T14:40:59
837b6210708c94162c89c443bf1d1140b229bd24
{ "blob_id": "837b6210708c94162c89c443bf1d1140b229bd24", "branch_name": "refs/heads/master", "committer_date": "2021-09-27T14:40:59", "content_id": "2baeb31326d2757b1a6fc8f4dcde2975fca75b13", "detected_licenses": [ "MIT" ], "directory_id": "61f9fb96401e7bca1093e47eda64f998006001d2", "extension": "c"...
stackv2
/* * StepperA.c * * Created: 05.07.2021 11:06:45 * Author: Waxrek */ #include "headers.h" void stepper_a_init(){ eeprom_read_block(&stepper_a_settings, (void*)STEPPER_A_SETTINGS_START_ADDR, sizeof(stepper_a_settings)); stepper_a_moving = 0; stepper_a_direction = 0; stepper_a_hasPreviouslyMoved = 0; steppe...
2.421875
2
2024-11-18T22:07:58.286942+00:00
2018-10-24T10:07:15
d3187cbff19771676b4d670cc09c2076802e383e
{ "blob_id": "d3187cbff19771676b4d670cc09c2076802e383e", "branch_name": "refs/heads/master", "committer_date": "2018-10-24T10:07:15", "content_id": "d6dc760926bb750c737aec83a76a7818e07f3bf5", "detected_licenses": [ "MIT" ], "directory_id": "039fa0aa4d2e18ca32b5a7de21d7e792740e11c9", "extension": "h"...
stackv2
#ifndef __SERVER #define __SERVER #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/epoll.h> #include <fcntl.h> #include <malloc.h> #include <assert.h> #include <unistd.h> #include <arpa/inet.h> #define ...
2.0625
2
2024-11-18T22:07:58.784462+00:00
2022-03-10T17:59:49
6031adde9bde6a75b9db8655718ca51c9e02f485
{ "blob_id": "6031adde9bde6a75b9db8655718ca51c9e02f485", "branch_name": "refs/heads/master", "committer_date": "2022-03-10T17:59:49", "content_id": "39c369e8028c3f1c3e5961bacbaa416e9e462a8f", "detected_licenses": [ "MIT" ], "directory_id": "37a494ad71a75df0c5113bbc3c06f94eccaf8e57", "extension": "c"...
stackv2
#include "tree.h" int rangeSumBST(struct TreeNode *root, int L, int R) { if (root == 0) { return 0; } if (root->val <= R && root->val >= L) { return root->val + rangeSumBST(root->left, L, R) + rangeSumBST(root->right, L, R); } else if (root->val < L) { return rang...
2.75
3
2024-11-18T20:41:30.900219+00:00
2021-07-23T20:02:23
13c77d6010cdfbf8f5c293e39da46a171ac39487
{ "blob_id": "13c77d6010cdfbf8f5c293e39da46a171ac39487", "branch_name": "refs/heads/master", "committer_date": "2021-07-23T20:02:23", "content_id": "0a9e53289081dc963be4ecaf0f0360dff2a1de42", "detected_licenses": [ "MIT" ], "directory_id": "88886d17f78d3d09675b5aa6b656d8617d411d55", "extension": "h"...
stackv2
/* * Author: Jon Trulson <jtrulson@ics.com> * Copyright (c) 2016 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ #pragma once #includ...
2.03125
2
2024-11-18T20:41:31.002219+00:00
2021-01-15T16:51:19
88ebea7d85309f4664f6be19badea230352f02b9
{ "blob_id": "88ebea7d85309f4664f6be19badea230352f02b9", "branch_name": "refs/heads/master", "committer_date": "2021-01-15T16:51:19", "content_id": "8db5c77c07efc87f80538f7a51f0fc0f263186df", "detected_licenses": [ "MIT" ], "directory_id": "9d271d667bb9058babb61370c4cdb0569bb23cc7", "extension": "c"...
stackv2
/* ------------------------------------------------------------ ** ** Copyright (c) 2013-2015 Altium Limited ** ** This software is the proprietary, copyrighted property of ** Altium Ltd. All Right Reserved. ** ** SVN revision information: ** $Rev: 14907 $: ** $Date: 2015-01-19 13:30:51 +0100 (Mon, 19 Jan 2015) $...
2.609375
3
2024-11-18T20:56:19.265674+00:00
2018-11-19T22:01:36
e0af8fe417b37885cc78c312a2db4a2b32e15799
{ "blob_id": "e0af8fe417b37885cc78c312a2db4a2b32e15799", "branch_name": "refs/heads/master", "committer_date": "2018-11-19T22:01:36", "content_id": "43504a63da6ae35d22b858929c9edcaf3cd5bb6e", "detected_licenses": [ "CC0-1.0" ], "directory_id": "31781f54eb4eb8e3554b6133d1d32a9ae6ecbd71", "extension":...
stackv2
#include <assert.h> #include <string.h> #include <stdio.h> #include "bignum.h" #include "bignum-math.h" #include "handy.h" error bignum_mul(bignum *r, const bignum *a, const bignum *b) { assert(!bignum_check_mutable(r)); assert(!bignum_check(a)); assert(!bignum_check(b)); size_t sza = bignum_len_bits(a); ...
2.890625
3
2024-11-18T20:56:19.526508+00:00
2020-12-12T10:00:30
1665fb3a1ab23bd16f7aaca1766da4e0f06abc31
{ "blob_id": "1665fb3a1ab23bd16f7aaca1766da4e0f06abc31", "branch_name": "refs/heads/master", "committer_date": "2020-12-14T15:18:01", "content_id": "5f3499b63d8725c520c669758bd1cc37a264f848", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "b0e1dc5376b0b0d4812ac77ceec82c69c7bfb9d0", "extens...
stackv2
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright 2018-2020 NXP * * Brief Memory management utilities. * Primitive to allocate, free memory. */ #ifndef __CAAM_UTILS_MEM_H__ #define __CAAM_UTILS_MEM_H__ #include <caam_common.h> /* * Allocate normal memory and initialize it to 0's. * * @size...
2.65625
3
2024-11-18T21:05:50.867140+00:00
2019-04-17T10:18:20
452798b07c671c52c821363be9d345733177a0f1
{ "blob_id": "452798b07c671c52c821363be9d345733177a0f1", "branch_name": "refs/heads/master", "committer_date": "2019-04-17T10:18:20", "content_id": "cbabf3a041c13e4800883069112e789c760c7997", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "6e0e3fc995f11b0aecd2d06fc542f13a4cfe4edf", "extens...
stackv2
#include "adx_rbtree.h" void adx_rbtree_set_parent(adx_rbtree_node *rb, adx_rbtree_node *p) { rb->rb_parent_color = (rb->rb_parent_color & 3) | (unsigned long)p; } void adx_rbtree_set_color(adx_rbtree_node *rb, int color) { rb->rb_parent_color = (rb->rb_parent_color & ~1) | color; } void adx_rbtree_link_nod...
2.90625
3
2024-11-18T21:05:51.232618+00:00
2010-03-10T17:29:38
4a8ef6af1d5ab66494c076fe94b42bbef67c7794
{ "blob_id": "4a8ef6af1d5ab66494c076fe94b42bbef67c7794", "branch_name": "refs/heads/eclair", "committer_date": "2010-03-10T17:29:38", "content_id": "a642d0bb281e9dbb87293f40ba4f7985a45694b3", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6b115e4281f3c9113f7a5e65d607767e6cfffe82", "extensio...
stackv2
/* * Copyright (C) 2007 The Android Open Source Project * * 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 app...
2.484375
2
2024-11-18T21:05:51.306868+00:00
2018-06-01T13:17:56
8608250ac0da6edcb638e9ac7b4755e883e2f282
{ "blob_id": "8608250ac0da6edcb638e9ac7b4755e883e2f282", "branch_name": "refs/heads/master", "committer_date": "2018-06-01T13:17:56", "content_id": "082db9456aba486aa832241f9780dcae859d0f74", "detected_licenses": [ "MIT" ], "directory_id": "1c8b11974f9c2b9bedc33485cb8d40b92c3f4cc0", "extension": "c"...
stackv2
//Tim uoc chung lon nhat cua hai so #include <stdio.h> int main(){ int a,b; printf("Moi ban nhap vao so nguyen dau tien: "); scanf("%i",&a); printf("Moi ban nhap vao so nguyen thu hai: "); scanf("%i",&b); int aa=a,bb=b; while(a!=b){ if (a>b){ a-=b; } else{ b-=a; } } pr...
3.171875
3
2024-11-18T21:05:51.449885+00:00
2012-01-04T10:36:57
35ec78da658849c4571951922eb3c99e311b6bbe
{ "blob_id": "35ec78da658849c4571951922eb3c99e311b6bbe", "branch_name": "refs/heads/master", "committer_date": "2012-01-04T10:36:57", "content_id": "ffd1277ba40c7f15263fe6d526ac09fd08764411", "detected_licenses": [ "MIT" ], "directory_id": "b451de712a41a00983fc9e253a0a5b57211c4e53", "extension": "h"...
stackv2
/* See LICENSE file for copyright and license details. */ /* Double-linked list, stack, queue. */ typedef struct Node Node; struct Node { Node *n; /* pointer to [n]ext node or NULL */ Node *p; /* pointer to [p]revious node or NULL */ void *d; /* pointer to [d]ata */ }; typedef struct List List; struct List { ...
3.046875
3
2024-11-18T21:05:52.642373+00:00
2018-07-28T13:09:19
d879c31add454c67e6c3d245410c4af5bc00aef0
{ "blob_id": "d879c31add454c67e6c3d245410c4af5bc00aef0", "branch_name": "refs/heads/master", "committer_date": "2018-07-28T13:09:19", "content_id": "8ad1e81b746886d4b9616a61063078e45dfd5ed3", "detected_licenses": [ "Apache-2.0", "BSL-1.0" ], "directory_id": "7b8a8081df5b11fa7f04a3b94b925a69c531777...
stackv2
// Copyright 2018 Ulf Adams // // The contents of this file may be used under the terms of the Apache License, // Version 2.0. // // (See accompanying file LICENSE-Apache or copy at // http://www.apache.org/licenses/LICENSE-2.0) // // Alternatively, the contents of this file may be used under the terms of // the...
2.34375
2
2024-11-18T21:05:52.720148+00:00
2022-11-14T13:13:45
42b5645ba29e168121b82cf2dd6f2672b08a98cc
{ "blob_id": "42b5645ba29e168121b82cf2dd6f2672b08a98cc", "branch_name": "refs/heads/master", "committer_date": "2022-11-14T13:13:45", "content_id": "3d66d81140c277594f2d8a824c579d1810a0fc9d", "detected_licenses": [ "MIT" ], "directory_id": "2cfe9b278948a29c58a153dc8446405bfdd37419", "extension": "h"...
stackv2
#ifndef ALIB_C_STR_PARSER_PRIVATE_IS_DEFINED #define ALIB_C_STR_PARSER_PRIVATE_IS_DEFINED #include "StrParser.h" #include "StrRef_private.h" /* Structs */ /* String parser is designed to be a base interface for parsers each string may need to be * parsed differently. */ struct StrParser { /* Pointer to the entire s...
2.15625
2
2024-11-18T21:05:52.815611+00:00
2020-08-12T08:03:00
520b7e25b8dc337b33c214ef0794650674fe27e4
{ "blob_id": "520b7e25b8dc337b33c214ef0794650674fe27e4", "branch_name": "refs/heads/master", "committer_date": "2020-08-12T08:03:00", "content_id": "23e1aa329543c8fd98c978a53c3dace2f840952c", "detected_licenses": [ "MIT" ], "directory_id": "f08c6e2a4bae01c10cb9ac4b882a6807d5ec3c51", "extension": "c"...
stackv2
/****************************************************************** ** NUAA_CM3_107实验开发板(V2.0) ** 读取18b20温度值,并在3.2吋屏上显示 ** 作 者:NUAA ** 完成日期: 2016.8.25 ********************************************************************/ #include "DS18B20.h" #include "delay.h" /**********************************************...
2.90625
3
2024-11-18T21:05:53.033018+00:00
2021-05-25T08:29:01
af49f993e4aea3d10ef4f271ffcc56de05850029
{ "blob_id": "af49f993e4aea3d10ef4f271ffcc56de05850029", "branch_name": "refs/heads/master", "committer_date": "2021-05-25T08:29:01", "content_id": "b736a8f4ca799e8b0d071ce31ef001beea6eb223", "detected_licenses": [ "MIT" ], "directory_id": "82873b85f33c88a9a717394296a4a658f6903493", "extension": "c"...
stackv2
/* * Handling UTF8-Percent transformations. * Copyright (c) 2005-2007 Pertimm by Patrick Constant * Dev : September 2005, November 2007 * Version 1.1 */ #include <loguni.h> #include <loggen.h> /* * Encoding an UTF8 string into %xx string * example: été -> %C3%A9t%C3%A9 * According to RFC 2279 rules are: *...
2.359375
2