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-18T22:21:46.224403+00:00
2015-12-11T11:51:11
fb65d7fdfa866d5d8606ff798a621bb1b775d7a6
{ "blob_id": "fb65d7fdfa866d5d8606ff798a621bb1b775d7a6", "branch_name": "refs/heads/master", "committer_date": "2015-12-11T11:51:11", "content_id": "53576686b1210c4b51fe980b43cfd0841f9b91dc", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "edbd4f8f29417765cb472601a6274e393814d21f", "extens...
stackv2
/* * Copyright (c) 2014, Daan Pape * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list ...
2.203125
2
2024-11-18T22:21:46.363387+00:00
2017-11-04T18:28:41
cdb8c877fb728664346698990a32ab06e6f0935c
{ "blob_id": "cdb8c877fb728664346698990a32ab06e6f0935c", "branch_name": "refs/heads/master", "committer_date": "2017-11-04T18:28:41", "content_id": "bd6f1ce9ad5476b381c38c8024c0f2c930ff19a3", "detected_licenses": [ "MIT" ], "directory_id": "1b0c72b4bef14c8c561e25d3a0a959352765bebb", "extension": "h"...
stackv2
/* * JNP-ZAD-2 * * University of Warsaw 2017 * * Contributors: * @wikzan * @styczynski */ #ifndef __DICT__ #define __DICT__ /* * Creates new empty dictionary and returns its id. * * @returns id of newly created dictionary */ unsigned long dict_new(); /* * Removes dictionary with given id. * If no...
2.59375
3
2024-11-18T22:21:46.435987+00:00
2023-07-19T09:38:43
8c9439a1a1580925a400827ac218a6e9915bebbf
{ "blob_id": "8c9439a1a1580925a400827ac218a6e9915bebbf", "branch_name": "refs/heads/master", "committer_date": "2023-07-19T09:38:43", "content_id": "42184765a1014254a4dbfa599563071cb765edb5", "detected_licenses": [ "MIT" ], "directory_id": "b2fdb318dfc757e54f90220eca79ac2e02dbf0d3", "extension": "h"...
stackv2
/* This is the implementation of the ptr.py logic in C. It is wrapped by ptr.pxd and in turn by ptr.pyx. If you modify anything, make sure" 1. to update ptr.pxd and ptr.pyx accordingly 2. to keep ptr.py (the pure-python version) in sync 3. to add a test to test_ptr.py, so that we test the behavior ...
2.671875
3
2024-11-18T22:21:46.791457+00:00
2019-06-15T05:09:09
4def90bbbb661435511ab38ac3a5ab0ab717d328
{ "blob_id": "4def90bbbb661435511ab38ac3a5ab0ab717d328", "branch_name": "refs/heads/master", "committer_date": "2019-06-15T05:09:09", "content_id": "2ab6e2bd151f6e483606796e2bfe44e5346b17ab", "detected_licenses": [ "MIT" ], "directory_id": "4d27e0a338740f3f7992356cfcac243adbb443e8", "extension": "c"...
stackv2
/** * A C source file that includes several type agnostic array * partitioning schemas. * * @copyright (C) 2017 Henry Malinowski <malinowski.henry@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), t...
2.84375
3
2024-11-18T22:21:46.870797+00:00
2021-04-30T04:53:13
e346df17ed965703ae715c41cb9fe9fe6def039c
{ "blob_id": "e346df17ed965703ae715c41cb9fe9fe6def039c", "branch_name": "refs/heads/main", "committer_date": "2021-04-30T04:53:13", "content_id": "278cbf6d00b0465e483344caa0e349a6ababf138", "detected_licenses": [ "MIT" ], "directory_id": "226db4cd37e59d742dcbeb128f272cb8a22ad81a", "extension": "c", ...
stackv2
#include "main.h" #include "shader.v" #include "shader.f" static void show_log(GLint shader); static void show_program_log(GLint program); static void init_ogl(PTRI_STATE_T state); static void init_shaders(PTRI_STATE_T state); static void draw_triangle(PTRI_STATE_T state); static int get_mouse(PTRI_STATE_T state, int...
2.15625
2
2024-11-18T22:21:47.886317+00:00
2012-04-20T20:22:34
0c729f57b9797b55912c4b388af80b35abd85681
{ "blob_id": "0c729f57b9797b55912c4b388af80b35abd85681", "branch_name": "refs/heads/master", "committer_date": "2012-04-20T20:22:34", "content_id": "407d2aab9dadd136d3d3c383e89092dfeb73bc88", "detected_licenses": [ "Apache-2.0" ], "directory_id": "35ae9cc47056b42a51391db3a8ce14fea9a29beb", "extensio...
stackv2
/* * Copyright 2012 Wolfgang Keller * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
2.046875
2
2024-11-18T22:21:48.239024+00:00
2019-11-28T09:54:28
1c18939a0e306eb595446e4de8c3479886cc8b16
{ "blob_id": "1c18939a0e306eb595446e4de8c3479886cc8b16", "branch_name": "refs/heads/master", "committer_date": "2019-11-28T09:54:28", "content_id": "ea733596ad437a79683da0d4132ce8430899c5ca", "detected_licenses": [ "MIT" ], "directory_id": "1f9c6400485e1e284e0c9dbad9cea2ff897cb899", "extension": "c"...
stackv2
/* COW : Character Oriented Windows color : default colors SWAP TUNE NOTE : belongs in INIT module !!!! */ #define COW #include <cow.h> #include <uscreen.h> #include <uisa.h> #include <ucolor.h> #include "screen.h" #include "color.h" extern SA PASCAL rgsa[]; /* isa -> sa */ #ifdef SCREEN_FFONT extern WORD P...
2.25
2
2024-11-18T22:21:48.577719+00:00
2021-08-13T09:33:08
b3589fbbdbefdabe7e1b1ffad8e36c3f250475c7
{ "blob_id": "b3589fbbdbefdabe7e1b1ffad8e36c3f250475c7", "branch_name": "refs/heads/master", "committer_date": "2021-08-13T09:33:08", "content_id": "7a1338589d4d7bcc6369ee08e9da6f7abac6d23a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "30fdedd9cf478e7a75697e98f75cd009b46c0b1d", "extens...
stackv2
// // scope.c // Heck // // Created by Mashpoe on 7/6/19. // #include "vec.h" #include <class.h> #include <code_impl.h> #include <error.h> #include <function.h> #include <print.h> #include <scope.h> #include <stdio.h> heck_name* name_create(heck_code* c, heck_scope* parent, heck_idf_type type, str_entry n...
2.59375
3
2024-11-18T22:21:48.793150+00:00
2021-02-06T06:14:02
59b17bef786cd23123c153f60a1d003b7ab6821e
{ "blob_id": "59b17bef786cd23123c153f60a1d003b7ab6821e", "branch_name": "refs/heads/main", "committer_date": "2021-02-06T06:14:02", "content_id": "839752d3a8a0a872685770597c2a514f837b2e7c", "detected_licenses": [ "MIT" ], "directory_id": "82b67ec73b76cc69e95d0143cdebf5e5fd63b4cc", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main() { int t,a,b,c,x; scanf("%d", &t); for(c=1;c<=t;c++){ scanf("%d %d",&a, &b); x=a+b; printf("%d\n",x);} return 0; }
2.96875
3
2024-11-18T22:21:49.048167+00:00
2021-03-15T08:50:26
1079fddd4a14a782df7a8ae0b563d570ee947838
{ "blob_id": "1079fddd4a14a782df7a8ae0b563d570ee947838", "branch_name": "refs/heads/master", "committer_date": "2021-03-22T12:09:52", "content_id": "0f1d8ff332437650409459f05285f69fb5265b2a", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c01fe30c83296efe90153a7a20e118900c8363a0", "extens...
stackv2
/*********************************************************************/ /* */ /* jfr2wlib.h Version 2.01 Copyright (c) 1999-2000 Jan E. Mortensen */ /* */ /* JFS Inverse Compile...
2.078125
2
2024-11-18T22:21:49.113792+00:00
2013-11-20T17:07:00
16bb4bcbadbc6b8842055d8b36b562cd2e6e50e3
{ "blob_id": "16bb4bcbadbc6b8842055d8b36b562cd2e6e50e3", "branch_name": "refs/heads/master", "committer_date": "2013-11-20T17:07:00", "content_id": "0af5337ba1d02eff4c5f18ead48d5e8ea2b8a7a0", "detected_licenses": [ "MIT" ], "directory_id": "f4b569900aa005eae6ee5c2b5bb1281f5aae2495", "extension": "c"...
stackv2
/* Binary logger by Matthias Kraaz. Creative commons. */ /** @file Adaption of binary logger to running inside a POSIX process for testing purposed. */ #include "bl_environment.h" #include <unistd.h> #include <assert.h> #include <pthread.h> static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; void bl_lock_produ...
2.109375
2
2024-11-18T22:21:49.196011+00:00
2017-12-14T00:39:49
2448d2a90febc7aa4cd8bbe1d603002fede758f9
{ "blob_id": "2448d2a90febc7aa4cd8bbe1d603002fede758f9", "branch_name": "refs/heads/master", "committer_date": "2017-12-14T00:39:49", "content_id": "a32ec95e298114005213f46d25d9fa843d402445", "detected_licenses": [ "BSD-2-Clause-Views" ], "directory_id": "1a51a81288b600f1686578f62326f1627d806c03", "...
stackv2
#define MAXLEN 100 //static char* iterator; #include <sys/defs.h> int atoi(char *str) { int res = 0; // Initialize result // Iterate through all characters of input string and // update result for (int i = 0; str[i] != '\0'; ++i) res = res*10 + str[i] - '0'; // return result. retur...
2.9375
3
2024-11-18T22:21:49.423345+00:00
2023-01-11T23:43:12
3ac9a89027137b7ce1c743dfb3340fcb8dd310c4
{ "blob_id": "3ac9a89027137b7ce1c743dfb3340fcb8dd310c4", "branch_name": "refs/heads/master", "committer_date": "2023-01-11T23:43:12", "content_id": "ec1017b5dab3cf69f6ab688f3332ee2272112329", "detected_licenses": [ "ISC" ], "directory_id": "f806c29d2ee80cc730300b36a7e7fbdfe42ed14e", "extension": "c"...
stackv2
/* * Copyright (c) 2005-2006 Jose F. Nieves <nieves@ltp.upr.clu.edu> * * See LICENSE * * $Id$ */ #include <assert.h> #include <string.h> #include <stdlib.h> #include "strsplit.h" static struct strsplit_st *strsplit_init(int n, char *s); static void strsplit(struct strsplit_st *strp, char *delim, int flags); str...
2.953125
3
2024-11-18T22:21:50.873576+00:00
2020-08-14T14:03:11
1f5940847dd8fecc6384fe8c35da6572425abe7a
{ "blob_id": "1f5940847dd8fecc6384fe8c35da6572425abe7a", "branch_name": "refs/heads/master", "committer_date": "2020-08-14T14:03:11", "content_id": "54999de22858ab9e251b1ff9dcf166233e7a0490", "detected_licenses": [ "MIT" ], "directory_id": "00845730e8c3f66af4687a44f93c46295ad91db3", "extension": "c"...
stackv2
#include<stdio.h> #define MAX 4096 #define RIDX(i, j, dim) ((i)*(dim) + (j)) #define COPY(d, s) *(d) = *(s) typedef struct{ int red; int green; int blue; }pixel; void rotate(int dim, pixel *src, pixel *dst) { int i, j; for (i=0; i < dim; i+=32) for (j=dim-1; j >= 0; j-=1) { pixel *dptr ...
3.171875
3
2024-11-18T22:21:51.114967+00:00
2017-07-15T20:15:36
fb1a576ac9b47ebaef8b2eb1bb54ece29cda63c3
{ "blob_id": "fb1a576ac9b47ebaef8b2eb1bb54ece29cda63c3", "branch_name": "refs/heads/master", "committer_date": "2017-07-15T20:15:36", "content_id": "67d6db123302b035afc9a60f3c436fc59ebf80e0", "detected_licenses": [ "MIT" ], "directory_id": "0f4b65bdd99e642402d489fdd662a7dc1d1441f5", "extension": "c"...
stackv2
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" volatile int16_t x341 = 228; void f0(void) { uint64_t x342 = 1630847354110979LLU; static volatile int6...
2.09375
2
2024-11-18T22:21:51.234172+00:00
2020-08-23T09:46:12
0f22b46765d22c117ab3938f5c06f6501bda77a0
{ "blob_id": "0f22b46765d22c117ab3938f5c06f6501bda77a0", "branch_name": "refs/heads/master", "committer_date": "2020-08-23T09:46:12", "content_id": "62f3dbeb00630eff4d27e9063333a1638a13b919", "detected_licenses": [ "Apache-2.0" ], "directory_id": "5a7d1f88e3fbf48588cf823c7901294244b30565", "extensio...
stackv2
/** (c) 2019-2020 HomeACcessoryKid@gmail.com * This is a driver for the NX8 bus based on a 4512 bus driver with a fixed address selected and that pin gets 0 V input * The inhibit pin 15 is connected to a NPN driver with 10k collector to 12V bus power and by a base 180kohm to the tx pin * The Zoutput pin 14 is conne...
2.265625
2
2024-11-18T22:21:52.018829+00:00
2020-01-11T13:26:44
d24ec959278f5fe6429420dc85adecd0b676bd06
{ "blob_id": "d24ec959278f5fe6429420dc85adecd0b676bd06", "branch_name": "refs/heads/master", "committer_date": "2020-01-11T13:26:44", "content_id": "a9669da1c077745a70a092945370a42971630082", "detected_licenses": [ "MIT" ], "directory_id": "e37abb2614594686404090f909ed5979b2e9436b", "extension": "c"...
stackv2
/**************************************************************************** * Copyright (C) 2019 RoboMaster. * * 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 3 of the ...
2.15625
2
2024-11-18T22:21:52.145980+00:00
2021-12-10T01:58:39
93dfb1357852de3cba59626496086d37e0840ea3
{ "blob_id": "93dfb1357852de3cba59626496086d37e0840ea3", "branch_name": "refs/heads/master", "committer_date": "2021-12-10T01:58:39", "content_id": "0e73abde99cadd2cfd4f79605e40180b7df2464d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "293fc161d5a0442544f5c3a912b26f24a115b28c", "extensio...
stackv2
#include "sql.h" #include <iomanip> SQL::SQL(void) { conn = mysql_init(NULL); if(NULL == conn) { printf("errno:%d error:%s\n",mysql_errno(conn),mysql_error(conn)); } } SQL::SQL(const char* ip,const char* user,const char* passwd,const char* database,uint16_t port) { conn = mysql_init(NULL); ...
2.421875
2
2024-11-18T22:21:52.225312+00:00
2022-11-27T05:56:58
d5a589849527db4c13ef0a44aef616176461a037
{ "blob_id": "d5a589849527db4c13ef0a44aef616176461a037", "branch_name": "refs/heads/master", "committer_date": "2022-11-27T05:56:58", "content_id": "dcf6074e9d33bcf2ad8fe11b9e1871bf966d685f", "detected_licenses": [ "MIT" ], "directory_id": "99153e5653a3e46548abc2763a6ffcfec2f3d65c", "extension": "c"...
stackv2
#include "../utility.h" /** * 函数名:randu01s * 功能描述:生成(0,1)区间的均匀分布的随机序列 * 输入参数:L(生成随机序列的长度) u_ran(指向生成随机数序列的指针) * 返回值:1:成功生成。0:生成失败。 */ int randu01s(int L,double *u_ran) { int i; srand((unsigned)time(0)); /* 用系统时钟做种子*/ for(i=0; i<L; i++) { u_ran[i]=rand()/(double)RAND_MAX; /...
2.84375
3
2024-11-18T22:21:52.286349+00:00
2018-11-07T22:19:39
4a0dd2a11bf7dc41cee6b26465832e46b1c28784
{ "blob_id": "4a0dd2a11bf7dc41cee6b26465832e46b1c28784", "branch_name": "refs/heads/master", "committer_date": "2018-11-07T22:19:39", "content_id": "47a16abdecd8ca2c5594f61e125077345d11fec7", "detected_licenses": [ "MIT" ], "directory_id": "6e1f27a2a16d926451fdab3b3b786c1962b2fd5a", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #define PIX_OFF_BIT_OFF 10L int main(int argc, char ** argv) { FILE *img = fopen("img.bmp", "r+"); fseek(img, 0L, SEEK_END); // Get the length of the int fileLen = ftell(img); // file in bytes. unsigned int pixelDataOffset = 0; fseek(img, PIX_OFF_BI...
3.125
3
2024-11-18T22:21:52.745244+00:00
2019-06-11T19:40:39
e3fa546567607ca359161d7602936a9987a61ef1
{ "blob_id": "e3fa546567607ca359161d7602936a9987a61ef1", "branch_name": "refs/heads/master", "committer_date": "2019-06-11T19:40:39", "content_id": "592d6540f88929c7b1f6235a048fab1ddaa77df4", "detected_licenses": [ "MIT" ], "directory_id": "356327b6fbade3b02bb859a595db7c134b1e8d5c", "extension": "c"...
stackv2
/* * ===================================================================================== * * Filename: mp.c * * Description: A program which uses 4 processes to decompose 4 individual numbers into prime multiples. Works in parallel. * * Version: 1.0 * Created: 01/22/2018 01:03:15 ...
2.828125
3
2024-11-18T22:21:56.135074+00:00
2023-08-31T21:49:30
7a15ce23e42dd36b33d25273d7f6d2e972037c7b
{ "blob_id": "7a15ce23e42dd36b33d25273d7f6d2e972037c7b", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T21:49:30", "content_id": "5ad8a4e0847019da0d738d6ccf3d862c1ef79979", "detected_licenses": [ "Apache-2.0" ], "directory_id": "38fff7bdefd8d62a740d51329b50d0e1e49258bb", "extensio...
stackv2
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
2.046875
2
2024-11-18T22:21:56.404358+00:00
2019-11-29T13:27:11
c74528f45259580ad933708923a52687ab124108
{ "blob_id": "c74528f45259580ad933708923a52687ab124108", "branch_name": "refs/heads/master", "committer_date": "2019-11-29T13:27:11", "content_id": "71698931279c3333bbe9463ae787268c8aa9b483", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0b156327cb5db82797c551d4ea8501041107cb3d", "extensio...
stackv2
/* * ict2104_camera.c * * Source file used to implement the methods * required for initializing the camera, * starting the image capture and sending image * data to ESP32-CAM * * * */ #include <esp_log.h> #include <esp_wifi.h> #include <esp_http_server.h> #include "esp_http_client.h" #include "esp_tls.h" #inc...
2.375
2
2024-11-18T22:21:56.485563+00:00
2015-04-18T00:50:59
5eea7b51d230d14b279ef434a7f2251397b2aed0
{ "blob_id": "5eea7b51d230d14b279ef434a7f2251397b2aed0", "branch_name": "refs/heads/master", "committer_date": "2015-04-18T00:50:59", "content_id": "371136b49a0fc48db06224b91c706cc62618c9b7", "detected_licenses": [ "MIT" ], "directory_id": "826d8ccc945757d497e055352769fc0845c97c77", "extension": "c"...
stackv2
#include <str.h> #include <value.h> #include <basic.h> #include <buffer.h> #include <ctype.h> #include <die.h> #include <input.h> #include <output.h> #include <parse.h> #include <source.h> #include <type_str.h> #include <type_sym.h> /* Grammar: [ exp => empty exp => term exp exp => ; exp exp => \ sym exp e...
2.765625
3
2024-11-18T22:22:04.142057+00:00
2021-09-03T22:06:28
2c082a0b4fb2e79a83dac34cd7e318d241501032
{ "blob_id": "2c082a0b4fb2e79a83dac34cd7e318d241501032", "branch_name": "refs/heads/main", "committer_date": "2021-09-03T22:06:28", "content_id": "c66f61d36caa6510b07b49b832a1a8feb5a728f4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7113e36c5606a4de5c07a7d0671350bf7349361b", "extension"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> #define N 25 #define M 250 void printArray(int arr[], int n); int recursiveLinearSearch(int arr[], int n, int k, int x){ if(k >= n){ return -1; } return arr[k] == x ? k : recursiveLinearSearch(arr, n, k+1, x); } int main(){ srand(time(NUL...
3.28125
3
2024-11-18T22:22:04.230982+00:00
2021-03-07T17:58:26
b443d593952b6c8392254489c1d115800073c82d
{ "blob_id": "b443d593952b6c8392254489c1d115800073c82d", "branch_name": "refs/heads/master", "committer_date": "2021-03-07T17:58:26", "content_id": "cfab1cf0f20aad1e6acb985121e41c6761dcfe24", "detected_licenses": [ "MIT" ], "directory_id": "2fb49bcfdfe25566b19458ac642c1371471da2cf", "extension": "h"...
stackv2
/* * intro.h * Author: pperezm */ #ifndef FUNCTIONS_H_ #define FUNCTIONS_H_ unsigned long fact(int n) { return 0; } bool isPrime(int n) { return false; } unsigned long sum(int arr[], int size) { return 0; } void reverse(int arr[], int size) { } #endif /* FUNCTIONS_H_ */
2.09375
2
2024-11-18T22:22:04.460644+00:00
2017-08-02T00:15:14
fd805b465b988cee6ae24878e631a9342654211c
{ "blob_id": "fd805b465b988cee6ae24878e631a9342654211c", "branch_name": "refs/heads/master", "committer_date": "2017-08-02T00:15:14", "content_id": "02018ff0a3fe1e1f659ce85381298e99ef86479a", "detected_licenses": [ "MIT" ], "directory_id": "b4b6a3e4de55c60ddc187909364e8f1f0467ae40", "extension": "c"...
stackv2
// Feature tests of static checking of bounds declarations for variables with // initializers. // // The following lines are for the LLVM test harness: // // RUN: %clang_cc1 -verify -fcheckedc-extension %s #include <stdchecked.h> // Check that declarations of automatic variables with Checked C bounds // declaratio...
2.4375
2
2024-11-18T22:22:04.745739+00:00
2020-03-26T12:54:14
aef4c467cbe6e940ce9fbe205daa49b50c2da713
{ "blob_id": "aef4c467cbe6e940ce9fbe205daa49b50c2da713", "branch_name": "refs/heads/master", "committer_date": "2020-03-26T12:55:08", "content_id": "b66b4c4cd015e6313235d015c42e4a084d98c52c", "detected_licenses": [ "MIT" ], "directory_id": "0398f736aa89939fa085c3760f3742974469027a", "extension": "h"...
stackv2
/* * File: Color.h * ------------- * Author: Hendrik Böck * */ #ifndef COLOR_H_ #define COLOR_H_ struct ColorCDT { int red; int green; int blue; }; typedef struct ColorCDT *Color; Color newColor(int red, int green, int blue); Color newColorFromPixel(int pixel); void deleteColor(Color color); Color...
2.1875
2
2024-11-18T22:22:04.806376+00:00
2022-04-30T21:15:56
fa3b0d136beeccf6cb9c8c8d1a6e6b35d6bb5ed5
{ "blob_id": "fa3b0d136beeccf6cb9c8c8d1a6e6b35d6bb5ed5", "branch_name": "refs/heads/master", "committer_date": "2022-04-30T21:15:56", "content_id": "c1004e4906eb8abf40ba6bdb348ea35278216eca", "detected_licenses": [ "MIT" ], "directory_id": "6f247f5400c6a840b6dfcb12388116dc3bb7bd49", "extension": "c"...
stackv2
/* * Copyright (C) 2012 Marcelina Kościelnicka <mwk@0x04.net> * All Rights Reserved. * * 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 ...
2.328125
2
2024-11-18T22:22:04.897041+00:00
2018-11-12T04:54:27
65c4832fb740e86b4fd3d714769946817e837a33
{ "blob_id": "65c4832fb740e86b4fd3d714769946817e837a33", "branch_name": "refs/heads/master", "committer_date": "2018-11-12T04:54:27", "content_id": "51c235e0ba0e0150c1c009362f9206c5b7913576", "detected_licenses": [ "MIT" ], "directory_id": "509f8782ef6e9d5fd0e5f03349af8dc11ebc2c24", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <time.h> #include <stdlib.h> #define MB 1 << 20 #define SIZE 80 #define BLOCK (SIZE * (MB)) unsigned int ramSize = 0; void estimate(); /* * The main method is to continuously call malloc() and memset() * to ask memory from operating system. When the physical memory i...
3.28125
3
2024-11-18T22:22:05.067279+00:00
2023-09-03T08:13:23
51db30028c05223a7b6febf1ebfc0d50375b1268
{ "blob_id": "51db30028c05223a7b6febf1ebfc0d50375b1268", "branch_name": "refs/heads/main", "committer_date": "2023-09-03T08:13:23", "content_id": "4ffbc2f094d9ba4b303f2a02319f33cdec21be6a", "detected_licenses": [ "MIT" ], "directory_id": "fb0f9abad373cd635c2635bbdf491ea0f32da5ff", "extension": "c", ...
stackv2
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "pal_hmac.h" struct hmac_ctx_st { CCHmacAlgorithm appleAlgId; CCHmacContext hmac; }; void AppleCryptoNative_HmacFree(HmacCtx* pHmac) { if (pHmac != NULL) {...
2.390625
2
2024-11-18T22:22:05.248991+00:00
2020-08-02T20:23:15
ca7b3d8f3f29aeeafff4488df5e85b371913fe30
{ "blob_id": "ca7b3d8f3f29aeeafff4488df5e85b371913fe30", "branch_name": "refs/heads/master", "committer_date": "2020-08-02T20:23:15", "content_id": "0bd7b311fff08400808640e1b92f3ca45ee379ab", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "971e9cb164ca5ca8bcc1b1da4d758b5e958d3c0f", "extens...
stackv2
extern void *memrchr(const void *s, int c, size_t n); extern value_t instrsym; extern value_t outstrsym; struct printer_options { int display; // Use `display` repr instead of `write` repr int newline; // Write a newline at the end. int shared; // 0=no cycle detection, 1=minimal cycles, 2=m...
2.5
2
2024-11-18T22:22:05.372867+00:00
2020-12-30T09:15:17
97de0599a8a394f269d2cb33977ea8eaad8c1ab6
{ "blob_id": "97de0599a8a394f269d2cb33977ea8eaad8c1ab6", "branch_name": "refs/heads/master", "committer_date": "2020-12-30T09:15:17", "content_id": "5a35a351cdc0f65c22a0d943952978dc009f366d", "detected_licenses": [ "MIT" ], "directory_id": "9135087be1626955056f1775e308247088467171", "extension": "c"...
stackv2
//====================================================================== //文件名称:main.c(应用工程主函数) //框架提供:苏大arm技术中心(sumcu.suda.edu.cn) //版本更新:2017.08:1.0, 2019.1:A.10 //功能描述:见本工程的<01_Doc>文件夹下Readme.txt文件 //====================================================================== #define GLOBLE_VAR #include "includes.h" ...
2.34375
2
2024-11-18T22:22:05.451268+00:00
2017-12-11T14:17:37
53bfe0278fb4d3e92667f5368d20f6cd548e653b
{ "blob_id": "53bfe0278fb4d3e92667f5368d20f6cd548e653b", "branch_name": "refs/heads/master", "committer_date": "2017-12-11T14:17:37", "content_id": "c91dd09ce1b07d5939e5dd1188db4b7627574aef", "detected_licenses": [ "MIT" ], "directory_id": "659912363a09fa2487cdee77e80bfae12d78caa6", "extension": "c"...
stackv2
/* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * SPDX-License-Identifier: GPL-2.0+ */ #include <stdio.h> #include <stdlib.h> unsigned char localBufferOverflow (void) { unsigned char val [16]; int i; for (i=0; i< 40; i++) { val[i] = 'a'; } return val[0]; } int main (i...
2.84375
3
2024-11-18T22:22:05.888259+00:00
2019-09-30T15:06:16
816414e977cc5f62573f98bd23118546e4986cc2
{ "blob_id": "816414e977cc5f62573f98bd23118546e4986cc2", "branch_name": "refs/heads/master", "committer_date": "2019-09-30T15:06:16", "content_id": "6d5a8dba5974a1f6f5325206fd2300c8e0a01377", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "dda8e991f487f5849ca3c64a312bb20bccd8cac4", "extens...
stackv2
/* crawl_folders.c -- crawl folder hierarchy * * This code is Copyright (c) 2008, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ #include "h/mh.h" #include "concat.h" #include "error.h" #include "crawl_folders.h" #include "h/...
2.734375
3
2024-11-18T22:22:06.044382+00:00
2018-08-03T12:52:59
92e0cab5815bf227191a7378163947ea58166f16
{ "blob_id": "92e0cab5815bf227191a7378163947ea58166f16", "branch_name": "refs/heads/master", "committer_date": "2018-08-03T16:38:50", "content_id": "2c49a3344bcc017d917b8d80b046881d0558d99b", "detected_licenses": [ "MIT" ], "directory_id": "5d0234c3b7edeeaaa2aae3d5d32d468ab04fb0bb", "extension": "c"...
stackv2
#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "history.h" static HistSlice history; bool inhistory(const char *s) { for (size_t i = 0; i < history.len; i++) { if (strcmp(s, history.arr[i].s) == 0) { return true; } } return false; } in...
2.453125
2
2024-11-18T22:22:06.118881+00:00
2020-09-07T02:35:49
7466cd7fafb493511883cc5b628b68ae74ce0aa3
{ "blob_id": "7466cd7fafb493511883cc5b628b68ae74ce0aa3", "branch_name": "refs/heads/master", "committer_date": "2020-09-07T02:35:50", "content_id": "51ab2377731a9780a1c3a5b8e34ae905ae43d439", "detected_licenses": [ "MIT" ], "directory_id": "00e49c2ed2f768f6836e1f048774cab5f0330f2d", "extension": "c"...
stackv2
/* ** EPITECH PROJECT, 2017 ** symmetrie.c ** File description: ** symmetrie functions for the 102architect project */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../include/proto.h" #define PI 3.14159265 float **do_symmetry(int rot) { double ar = rot; unsigned int j = 0; ...
3.0625
3
2024-11-18T22:22:07.329126+00:00
2020-05-31T11:04:00
7a5a76cd8b30f8216f50c3c736309eb29c9978db
{ "blob_id": "7a5a76cd8b30f8216f50c3c736309eb29c9978db", "branch_name": "refs/heads/master", "committer_date": "2020-05-31T11:04:00", "content_id": "2f024f28378c062e08c5edfaa4fcb8576951be98", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "a0aec8445d45660b0a1ff951596b0be80825b711", "extens...
stackv2
#include <graphics/gpu_mem_util.h> struct __attribute__((__packed__, aligned(1))) EMITDATA { uint8_t byte1; uint8_t byte2; uint8_t byte3; uint8_t byte4; }; void emit_uint8_t(uint8_t **list, uint8_t d) { *((*list)++) = d; } void emit_uint16_t(uint8_t **list, uint16_t d) { struct EMITDATA *data = (struct EMITDAT...
2.453125
2
2024-11-18T22:22:08.879104+00:00
2023-06-04T09:19:36
3a715ee6a2f028af82c2ffa2e5908a74a4afa678
{ "blob_id": "3a715ee6a2f028af82c2ffa2e5908a74a4afa678", "branch_name": "refs/heads/master", "committer_date": "2023-06-04T09:19:36", "content_id": "7639b60efe245bf7716aee711816eab92d4aa110", "detected_licenses": [ "MIT" ], "directory_id": "873b3289e7e2c5945687454d01214db3290a4240", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> int main() { char a[100],b[100];int n,i; puts("Enter a first and last name: "); scanf("%s",a);scanf("%s",b); n=strlen(b); printf("You entered the name: "); for (i=0;i<n;i++) putchar(b[i]); putchar(',');putchar(' ');putchar(a[0]);putchar('.'); return 0; }
2.796875
3
2024-11-18T22:22:08.950168+00:00
2017-02-16T04:18:07
baf1c8aa4ffdd3c7a7fb3ef2c09908a0c4709f75
{ "blob_id": "baf1c8aa4ffdd3c7a7fb3ef2c09908a0c4709f75", "branch_name": "refs/heads/master", "committer_date": "2017-02-16T04:18:07", "content_id": "dff433a8d912781da284072dd16d3a4f6029d218", "detected_licenses": [ "MIT" ], "directory_id": "9caa91d05fe9754fc67392f86ded6c0072a29f80", "extension": "c"...
stackv2
#include "secure_types.h" #include <string.h> int Secure_GenKeys(Secure_PubKey pub, Secure_PrivKey priv) { if(crypto_box_keypair(pub, priv)) { Error_Print("Unable to generate keypair.\n"); return -1; } return 0; } int Secure_GenSharedKey(Secure_SharedKey sharedkey, Secure_PubKey peer,...
2.453125
2
2024-11-18T22:22:09.037657+00:00
2021-01-31T11:33:49
4a332a86d38b99f6b4ed54ea60bfb4c2eb61dcc6
{ "blob_id": "4a332a86d38b99f6b4ed54ea60bfb4c2eb61dcc6", "branch_name": "refs/heads/master", "committer_date": "2021-01-31T11:33:49", "content_id": "7c95db0c3e531cb6a7a81ce3d63e53de3fa0a172", "detected_licenses": [ "MIT" ], "directory_id": "2288eaf386e772b4e127453445b501b017634da4", "extension": "c"...
stackv2
/************************************************************************************************* * * type_interface.c * * Implementations of generic operations on objects specified by the given type interface that * make use of the functions stored in the given type interface. * * A couple of pre-defined type ...
2.75
3
2024-11-18T22:22:09.447299+00:00
2021-11-08T23:38:01
e137441bba89acde086b569cabd6599ff209c590
{ "blob_id": "e137441bba89acde086b569cabd6599ff209c590", "branch_name": "refs/heads/main", "committer_date": "2021-11-08T23:38:01", "content_id": "8a918991efb43a115fda23e6ee170b7d72c87469", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "403f9b277d5a80f283eb8da2ab73e1bf6cfb09e8", "extensio...
stackv2
#include <stdint.h> #include <idtLoader.h> #include <defs.h> #include <interrupts.h> #pragma pack(push) // Current lineup push #pragma pack (1) // Align the following structures to 1 byte // Interrupt descriptor typedef struct { uint16_t offset_l, selector; uint8_t cero, access; uint16_t offset_m; uint3...
2.65625
3
2024-11-18T22:22:09.774021+00:00
2023-08-24T07:58:02
2b042d9ba5066677235b20088a2e6d2beed0e63a
{ "blob_id": "2b042d9ba5066677235b20088a2e6d2beed0e63a", "branch_name": "refs/heads/master", "committer_date": "2023-08-24T07:58:02", "content_id": "8b6159114a0545b25d1031addb59b8a9757e1a2f", "detected_licenses": [ "MIT" ], "directory_id": "cb9ffece95cef31e363b55d9e07e21cc22a446eb", "extension": "h"...
stackv2
/* -*- coding: utf-8; tab-width: 8; indent-tabs-mode: t; -*- */ /* * Suika 2 * Copyright (C) 2016, TABATA Keiichi. All rights reserved. */ /* * [Changes] * - 2016/05/27 作成 * - 2016/06/22 分割 */ #ifndef SUIKA_EVENT_H #define SUIKA_EVENT_H #include "types.h" /* * キーコード */ enum key_code { KEY_CONTROL, KEY...
2.015625
2
2024-11-18T22:22:09.867133+00:00
2021-08-23T21:54:46
84c5301099295b249eb8b8d84aa6d7fe3dbf05f6
{ "blob_id": "84c5301099295b249eb8b8d84aa6d7fe3dbf05f6", "branch_name": "refs/heads/main", "committer_date": "2021-08-23T21:54:46", "content_id": "a24edc88bb3daaa5ed3a66479d45365e37ff61b5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c90fbf19e5eb9957392d838840e3945da0fb8f30", "extension"...
stackv2
/* This file was automatically generated by CasADi. The CasADi copyright holders make no ownership claim of its contents. */ #ifdef __cplusplus extern "C" { #endif /* How to prefix internal symbols */ #ifdef CASADI_CODEGEN_PREFIX #define CASADI_NAMESPACE_CONCAT(NS, ID) _CASADI_NAMESPACE_CONCAT(NS, ID) #define _...
2.09375
2
2024-11-18T22:22:10.017193+00:00
2023-05-05T02:26:49
6b36e402fb280c48626c430b19e02c0ac484e613
{ "blob_id": "6b36e402fb280c48626c430b19e02c0ac484e613", "branch_name": "refs/heads/master", "committer_date": "2023-05-05T02:26:49", "content_id": "acceaf74ad623fcd54e744f9cd793dd5bee77864", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "5efe877bf5ebc9da1e7edb8efabb66b88a78cee4", "extens...
stackv2
/* * Copyright (c) 2018, Intel Corporation. * SPDX-License-Identifier: BSD-3-Clause */ #ifndef _COMPONENT_NAME_H_ #define _COMPONENT_NAME_H_ /** Retrieves a Unicode string that is the user-readable name of the EFI Driver. @param pThis A pointer to the EFI_COMPONENT_NAME_PROTOCOL2 instance. @param pL...
2.203125
2
2024-11-18T22:22:10.473116+00:00
2016-05-06T22:40:29
8d791b4e22965f32902537e2fb6dcf838c4d302c
{ "blob_id": "8d791b4e22965f32902537e2fb6dcf838c4d302c", "branch_name": "refs/heads/master", "committer_date": "2016-05-06T22:40:29", "content_id": "b970048d1eb1cd08a17e6a6a13c10d8cd88587c7", "detected_licenses": [ "MIT" ], "directory_id": "035406ea20ff25b4b4c457fa0e0c7d6d3d74e15a", "extension": "c"...
stackv2
#include "healthbar.h" #include "main.h" #include "ailib.h" static void _calculate_one(MOVABLE_ENTRY *entry, DARNIT_TILE *tile, int x_pos, int id) { float arne; int w; arne = ((float) entry->hp) / entry->hp_max; w = arne * 128; d_render_tile_set(tile, 0, id * 2); d_render_tile_set(tile, 1, id * 2 + 1); d_rend...
2.171875
2
2024-11-18T22:22:10.558677+00:00
2015-05-24T17:34:49
7d4f5f3987c03ce376ce92d0318b96a49accf7fc
{ "blob_id": "7d4f5f3987c03ce376ce92d0318b96a49accf7fc", "branch_name": "refs/heads/master", "committer_date": "2015-05-24T17:34:49", "content_id": "29f2ae2839bc4609dcf364b51f77dd4ff794d5a5", "detected_licenses": [ "MIT" ], "directory_id": "d0861150d87208c39236daec5f8c3edb4406147a", "extension": "c"...
stackv2
#include "lua_collisionpair.h" #include <stdlib.h> #include <string.h> #include <lualib.h> #include <lauxlib.h> #include <chipmunk/chipmunk.h> #include "lua_vector.h" #include "lua_object.h" #include "lua_colliders.h" #define TYPE_NAME "collpair" collision_pair* luaG_checkcollpair(lua_State* L, int index) { collis...
2.09375
2
2024-11-18T22:22:11.391332+00:00
2016-06-12T05:55:11
67fa30873ce937dcef1fc4203233a43a4489d2d9
{ "blob_id": "67fa30873ce937dcef1fc4203233a43a4489d2d9", "branch_name": "refs/heads/master", "committer_date": "2016-06-12T05:55:11", "content_id": "7a4bbcff6b613d74f9aff8c71b248db48e2f81dd", "detected_licenses": [ "MIT" ], "directory_id": "dac9b584823464c14734a771dc5a99576532e6e4", "extension": "c"...
stackv2
/** * Simplest Video Play SDL2 (SDL2 play RGB/YUV) * This software plays RGB/YUV raw video data using SDL2. * SDL is a wrapper of low-level API (Direct3D, OpenGL). * Use SDL is much easier than directly call these low-level API. * * The process is shown as follows: * * [Init] * SDL_Init(): Init SDL. * SDL_Cre...
3.078125
3
2024-11-18T22:22:11.541737+00:00
2020-05-21T21:47:27
b7079dca49b66baee3241c04819d85a0a4bc8164
{ "blob_id": "b7079dca49b66baee3241c04819d85a0a4bc8164", "branch_name": "refs/heads/master", "committer_date": "2020-05-21T21:47:27", "content_id": "efe4de9f14eb6598559b9849b5f4282ae3c5091d", "detected_licenses": [ "MIT" ], "directory_id": "33879b907a0053b6de05eec4cda14fb93047ea8b", "extension": "h"...
stackv2
/* Author: Steve Gunn * Licence: This work is licensed under the Creative Commons Attribution License. * View this license at http://creativecommons.org/about/licenses/ */ #include <avr/io.h> #include <stdint.h> #define LCDWIDTH 240 #define LCDHEIGHT 320 /* Colour definitions RGB565 */ #define WHITE ...
2.609375
3
2024-11-18T22:22:11.655939+00:00
2014-11-04T23:15:22
3f3ffa967239603e994f3bce3e76bf856c4df2dd
{ "blob_id": "3f3ffa967239603e994f3bce3e76bf856c4df2dd", "branch_name": "refs/heads/master", "committer_date": "2014-11-04T23:15:22", "content_id": "c4bb0809b551c2646fce7c944cae078e6bbad925", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "70214efa2467f6c567b805dc923c0d288bf92733", "extens...
stackv2
static char help[] = "Cahn-Hilliard-2d problem for constant mobility and triangular elements.\n\ Runtime options include:\n\ -xmin <xmin>\n\ -xmax <xmax>\n\ -ymin <ymin>\n\ -gamma <gamma>\n\ -theta_c <theta_c>\n\ -implicit <0,1> treat theta_c*M_0*u explicitly/implicitly\n\n"; /* Run with for example: -pc_type mg -...
2.046875
2
2024-11-18T22:22:11.725755+00:00
2014-12-26T13:57:11
b40615db90b5d9ad81746abd3649a9468700aa9a
{ "blob_id": "b40615db90b5d9ad81746abd3649a9468700aa9a", "branch_name": "refs/heads/master", "committer_date": "2014-12-26T13:57:11", "content_id": "bb8469c3bf1ad040f0da6644ff7c3b333d67ab9e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e4ca0256683006a6dad5b64c13d80c56aa88a4f5", "extensio...
stackv2
#include <stdio.h> #include <ctype.h> #include <string.h> #include "latin.h" #include "nominal.h" #include "verb.h" #define DATA_FILE "latin.dat" #define INDEX_FILE_PREFIX "lat" #define INDEX_FILE_POSTFIX ".ind" #define STR_NOUN "n" #define STR_ADJ "a" #define STR_VERB "v" #define STR_POADV "adv" #define STR_PRAE...
2.0625
2
2024-11-18T22:22:12.555997+00:00
2021-07-08T13:33:49
dfdb87be1e8aebab11dc47845fa1d9371c04890e
{ "blob_id": "dfdb87be1e8aebab11dc47845fa1d9371c04890e", "branch_name": "refs/heads/master", "committer_date": "2021-07-08T13:33:49", "content_id": "cac7b3cf8e7ea6b6879d9fead8ecbb32d3916446", "detected_licenses": [ "Apache-2.0", "MIT" ], "directory_id": "c9b1d9481663f35a745533e215e512c31f00f945", ...
stackv2
/** ***************************************************************************************** * Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved. ***************************************************************************************** * @file generic_on_off_client.c * @brief Source ...
2.203125
2
2024-11-18T22:22:12.937110+00:00
2018-12-02T15:10:27
e410d160198bbbfb08394a81a0b999f94e14a8d8
{ "blob_id": "e410d160198bbbfb08394a81a0b999f94e14a8d8", "branch_name": "refs/heads/master", "committer_date": "2018-12-02T15:10:27", "content_id": "f03fda5846766fc263f58bc60256db1d0e04a070", "detected_licenses": [ "MIT" ], "directory_id": "4e4adcb13d05fa72386625d38f8964aa2049ffd3", "extension": "h"...
stackv2
#pragma once // // Utilities for UART communication. // // First, init uart with usart_init(). // Then enable interrupts you want with usart_XXX_isr_enable(). // #include <avr/io.h> #include <avr/pgmspace.h> #include <util/delay.h> #include <stdbool.h> #include <stdint.h> #include "calc.h" /* USART BAUD RATE REGI...
2.421875
2
2024-11-18T22:22:13.001526+00:00
2015-09-24T22:44:36
6b012db77dddd6c6ee85ee2b3812dba9b489d0bd
{ "blob_id": "6b012db77dddd6c6ee85ee2b3812dba9b489d0bd", "branch_name": "refs/heads/master", "committer_date": "2015-09-24T22:44:36", "content_id": "f9cc072812b7f62d463e756613826a994dc8f8b6", "detected_licenses": [ "MIT" ], "directory_id": "9a418cd69afa238f6788c39d3bde09bf81c4f505", "extension": "c"...
stackv2
/* * Copyright (C) 2014 Ed Trettevik <eat@nodebrain.org> * * NodeBrain is free software; you can modify and/or redistribute it under the * terms of either the MIT License (Expat) or the following NodeBrain License. * * Permission to use and redistribute with or without fee, in source and binary * forms, with or without...
2.03125
2
2024-11-18T22:22:13.611509+00:00
2021-09-15T08:36:28
1180fe048cc71dcc42641f40ff5ceb1a1b3eaf23
{ "blob_id": "1180fe048cc71dcc42641f40ff5ceb1a1b3eaf23", "branch_name": "refs/heads/master", "committer_date": "2021-09-15T08:36:28", "content_id": "0219794ab018b9d1bcd3a9ed4518a814e239e8a5", "detected_licenses": [ "MIT" ], "directory_id": "2396d2ac9a1b3681f40a0dea416a16894d257495", "extension": "c"...
stackv2
// necessary header files declared #include <cs50.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> // main function starts int main(int argc, string argv[]) { //variable declaration int count = 0; int key = 0, txt_len = 0; string text; // check if no additional comman...
3.265625
3
2024-11-18T22:22:14.182431+00:00
2022-01-15T19:31:07
af2b61d1a829bae4445567db80d6dc1ac769a26d
{ "blob_id": "af2b61d1a829bae4445567db80d6dc1ac769a26d", "branch_name": "refs/heads/master", "committer_date": "2022-01-15T19:31:07", "content_id": "2c82536c1d706aa7ea08bad1990ca90783427c12", "detected_licenses": [ "MIT" ], "directory_id": "31099bdde406cf896b553c4568cbcfc27fc13a08", "extension": "c"...
stackv2
#include "stm32f0xx.h" #define BOTTOM_OF_RAM 0x20000000 #define DFU_ENABLE_CODE 0xB00710AD #define DFU_STACK_POINTER 0x20002250 #define DFU_START_ADDR 0x1FFFC800 // Does not return, sets magic code and restarts device void EnterDfu() { uint32_t *dfu_enable_flag = (uint32_t *)(BOTTOM_OF_RAM); // Disable interrup...
2.21875
2
2024-11-18T22:22:14.646510+00:00
2021-07-20T05:03:22
3b427f9a8622a3275309d2029557ac9978a3d0f5
{ "blob_id": "3b427f9a8622a3275309d2029557ac9978a3d0f5", "branch_name": "refs/heads/main", "committer_date": "2021-07-20T05:03:22", "content_id": "9e236a63b105351da17fe61c7353c9802b4715b4", "detected_licenses": [ "MIT" ], "directory_id": "eae6195a9f5242859bb4236eeb7225b42b9636e2", "extension": "c", ...
stackv2
/* * main.c * @description: This program connects to wifi, then sends sensor data in * a predefined interval * @author: @Retrocamara42 * */ #include "main.h" static const char *MAIN_TAG = "main"; static SemaphoreHandle_t sleep_semaphore; static uint32_t sleep_semaphore_count=0; // Sleep time in minutes static...
2.53125
3
2024-11-18T22:22:14.703906+00:00
2018-05-04T22:36:48
4fdbd6deebd805cca0b33513284441d31f5c3308
{ "blob_id": "4fdbd6deebd805cca0b33513284441d31f5c3308", "branch_name": "refs/heads/master", "committer_date": "2018-05-04T22:36:48", "content_id": "1c710a9019c84a9981eb836ea1b9fd6d0e41322a", "detected_licenses": [ "MIT" ], "directory_id": "a3c094c3baa3d9352f8fca458af2d525984dc308", "extension": "c"...
stackv2
#include "plumber.h" int sporth_pareq(sporth_stack *stack, void *ud) { plumber_data *pd = ud; SPFLOAT input; SPFLOAT out; SPFLOAT fc; SPFLOAT v; SPFLOAT q; SPFLOAT mode; sp_pareq *pareq; switch(pd->mode) { case PLUMBER_CREATE: #ifdef DEBUG_MODE fprintf(stderr, ...
2.234375
2
2024-11-18T22:22:14.905697+00:00
2021-11-04T02:51:10
2319ecb6d0bc2731d4d5ddaf57128cc3ad252201
{ "blob_id": "2319ecb6d0bc2731d4d5ddaf57128cc3ad252201", "branch_name": "refs/heads/master", "committer_date": "2021-11-04T02:51:10", "content_id": "6c2dd184333a5a9296c550687340285f68857c27", "detected_licenses": [ "MIT" ], "directory_id": "0a3e6743d5b527dd2ca0b84d8bc4b3acb345b558", "extension": "h"...
stackv2
/* * Copyright (c) 2000-2001 Silicon Graphics, Inc. * All Rights Reserved. * * 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. * * This program is distributed in the hope that it would be ...
2.0625
2
2024-11-18T22:22:14.980692+00:00
2021-01-03T14:58:25
be0c15f49c417233d29237236e08968694791146
{ "blob_id": "be0c15f49c417233d29237236e08968694791146", "branch_name": "refs/heads/master", "committer_date": "2021-01-03T14:58:25", "content_id": "6f07f714c4a9f700f6bae3af7670ed9079d559de", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c6170909c65e5614f64de796f9d5d55be4ff52df", "extens...
stackv2
#include "atom.h" #include "windows.h" #include "win32port.h" #include "_threadmanager.h" static int _enable_int_cpu = 1; static CRITICAL_SECTION _critical_section; int get_cc(void) { if (_enable_int_cpu == 1) { EnterCriticalSection(&_critical_section); _enable_int_cpu = 0; return 0; }else { return 1; }...
2.390625
2
2024-11-18T22:22:15.158653+00:00
2018-06-16T17:22:19
72c01430eab8703061e869f628a4aaf3df21d0f2
{ "blob_id": "72c01430eab8703061e869f628a4aaf3df21d0f2", "branch_name": "refs/heads/master", "committer_date": "2018-06-16T17:22:19", "content_id": "f0a7388be3221c4b0d188d8943c93fd9565f37f6", "detected_licenses": [ "MIT" ], "directory_id": "0d423538336b5067781fb76c0fb6ac1daa3d0ccb", "extension": "h"...
stackv2
#ifndef CIRCULAR_H #define CIRCULAR_H // Circular linked list // tail->next=head typedef struct CNode *pCNode; struct CNode { int key; pCNode pNext; }; struct CList { pCNode pHead; pCNode pTail; }; void initCList(CList &l); bool isEmpty(CList l); pCNode getCNode(int k); void addHead(CList &l, int k); void del...
2.234375
2
2024-11-18T22:22:15.820883+00:00
2019-09-10T13:24:19
a9de06411986f06d5e622110abe320345deed8b1
{ "blob_id": "a9de06411986f06d5e622110abe320345deed8b1", "branch_name": "refs/heads/master", "committer_date": "2019-09-10T13:24:19", "content_id": "c75a6f31b757751a0e3198e8237bcdfd3d70997f", "detected_licenses": [ "MIT" ], "directory_id": "2cdaa3b65083aeedf87c199864fdccfcdd96256e", "extension": "c"...
stackv2
/******************************************************************************* * RTCC module * author :hiroshi murakami * created :20161225 * modified:- ******************************************************************************/ #define _vRTCC_C #include "mcc_generated_files/mcc.h" #include <string...
2.09375
2
2024-11-18T22:22:16.412288+00:00
2021-03-24T16:43:30
66adeeb43e9de2f5494465a55912243a034da1f3
{ "blob_id": "66adeeb43e9de2f5494465a55912243a034da1f3", "branch_name": "refs/heads/master", "committer_date": "2021-03-24T16:43:30", "content_id": "4c2aa12ce5917d8342f97967cdc50a2111e7d1e5", "detected_licenses": [ "MIT" ], "directory_id": "c304eba343baa45f373fece59eeeb963a295aa61", "extension": "c"...
stackv2
#include "lib9.h" #include "image.h" #include "tk.h" #define O(t, e) ((long)(&((t*)0)->e)) static char* tksetlabvar(TkTop*, TkLabel*, char*); /* Widget Commands (+ means implemented) +cget +configure +invoke +select +deselect +toggle */ static TkEbind bb[] = { {TkEnter, "%W configure -state active"}, {Tk...
2.015625
2
2024-11-18T22:22:16.527390+00:00
2021-09-13T05:52:17
c781e5bdc911e1446e337b0fcc49bc32153a872e
{ "blob_id": "c781e5bdc911e1446e337b0fcc49bc32153a872e", "branch_name": "refs/heads/main", "committer_date": "2021-09-13T05:52:17", "content_id": "0bd6f25324aef76cf8a1f66b767d8f466135392d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fe459acc22143896d0875dac309c1fe3f0704a71", "extension"...
stackv2
//6. Write a program to calculate Net Salary of an employee. // HRA is 20% of BS, DA is 40% of BS, PF is 10% of GS #include <stdio.h> float netSalary(float basic_salary){ float da, hra, pf, net_salary ; // Dearness Allowance (DA) & House Rent Allowance (HRA) da = (basic_salary * 40) / 100 ; // DA is 40% ...
4.03125
4
2024-11-18T22:22:16.795717+00:00
2018-06-15T07:25:26
3f9f3e42804d8663d072e0b815aac9c5d86ffee8
{ "blob_id": "3f9f3e42804d8663d072e0b815aac9c5d86ffee8", "branch_name": "refs/heads/master", "committer_date": "2018-06-15T07:25:26", "content_id": "1eab58be2768841f8c246c11e7d76dc807eec9b3", "detected_licenses": [ "Apache-2.0" ], "directory_id": "393040adb3b82328bf85c48dddf2c3756337e4a6", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <time.h> #include "SA.h" void main() { DT arr[LENGTH]; clock_t start, end; srand((unsigned int)time(NULL)); /* Initialize elements of the array for (int i = 0; i < LENGTH; i++) arr[i] = (DT)rand(); for (int i = 0; i < LENGTH; i++) { arr[i].x = (float)rand();...
2.875
3
2024-11-18T22:22:18.025327+00:00
2023-09-02T03:38:19
61016a580ea4245a138df00b75fa6ab9395aa2f2
{ "blob_id": "61016a580ea4245a138df00b75fa6ab9395aa2f2", "branch_name": "refs/heads/master", "committer_date": "2023-09-02T03:38:19", "content_id": "4be6a28d65988564e207b4acfe3758164ab6c899", "detected_licenses": [ "MIT" ], "directory_id": "736e760612f2b431c4b2524fe1a4a8e4083c72a1", "extension": "c"...
stackv2
#include "hls-parser.h" #include "hls-string.h" #include <stdlib.h> #include <string.h> #include <assert.h> #include <errno.h> // Typically, closed-caption [CEA608] media is carried in the video stream. // Therefore, an EXT-X-MEDIA tag with TYPE of CLOSED-CAPTIONS does not specify // a Rendition; the closed-caption...
2.46875
2
2024-11-18T22:22:18.814146+00:00
2019-01-24T17:08:07
423087324b59097b5859e3e9ce2febaa463eff7f
{ "blob_id": "423087324b59097b5859e3e9ce2febaa463eff7f", "branch_name": "refs/heads/master", "committer_date": "2019-01-24T17:08:07", "content_id": "7c515243abedb849e607ee460592bfa6dc5bb5e8", "detected_licenses": [ "MIT" ], "directory_id": "44f4961ff5a627277644a5e3e25459da0e581f22", "extension": "c"...
stackv2
/* This is a managed file. Do not delete this comment. */ #include <include/test.h> void test_string_op_add( test_string this) { const char *input = "'foo' + 'bar'"; int16_t ret; corto_value value = corto_value_init(); ret = cortoscript_parse_expr(NULL, input, &value); test_assert(ret == 0); ...
2.578125
3
2024-11-18T22:22:19.050122+00:00
2023-05-23T07:47:09
169ae4a23f8308f0bc9b8e4e0b3d1a520eae6cd0
{ "blob_id": "169ae4a23f8308f0bc9b8e4e0b3d1a520eae6cd0", "branch_name": "refs/heads/master", "committer_date": "2023-05-23T07:47:09", "content_id": "e40e06b5b1d20ebecabeb326cd4bd7f68008b290", "detected_licenses": [ "MIT" ], "directory_id": "1782b2a608d4336b018f30f4d2c619a84afe99db", "extension": "c"...
stackv2
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctr/types.h> #include <ctr/GSP.h> #include <ctr/svc.h> #include <ctr/srv.h> Handle gspGpuHandle=0; Result gspInit() { return srv_getServiceHandle(NULL, &gspGpuHandle, "gsp::Gpu"); } void gspExit() { if(gspGpuHandle)svc_closeHandle(gspGpuHandle); ...
2.125
2
2024-11-18T22:22:19.421085+00:00
2021-04-11T17:20:12
3c2b7da2cfe4086b25041c9e286c1b7491adebe3
{ "blob_id": "3c2b7da2cfe4086b25041c9e286c1b7491adebe3", "branch_name": "refs/heads/main", "committer_date": "2021-04-11T17:20:12", "content_id": "b77a0973b8959fc7c7fec56a92716067519e28b6", "detected_licenses": [ "MIT" ], "directory_id": "9494e4827ea59c43f09610ecfe679facbabca320", "extension": "c", ...
stackv2
#include <time.h> #include <stdio.h> #include <stdlib.h> struct element { char* key; char* value; struct element* next; }; typedef struct element record; void listAll(record *head) { record *tempnode = head->next; printf("+-----------------------------------+\n"); printf("| %-15.3s | %-15.5...
3.53125
4
2024-11-18T23:13:36.264787+00:00
2020-08-06T16:53:36
5ee5e9f55ce1fb1d50eea5a47ab2ff5939f61f06
{ "blob_id": "5ee5e9f55ce1fb1d50eea5a47ab2ff5939f61f06", "branch_name": "refs/heads/master", "committer_date": "2020-08-06T16:53:36", "content_id": "95117385b082aab884c80a95c6493374d6868483", "detected_licenses": [ "MIT" ], "directory_id": "8b7a272ae43c04ac490056635219be066aa6f2a1", "extension": "h"...
stackv2
#include "../fec.h" #include "../../helpers.h" #include "../fec_protoops.h" #define INITIAL_FEC_BLOCK_NUMBER 0 #define MAX_QUEUED_REPAIR_SYMBOLS 6 typedef uint32_t fec_block_number; typedef struct { repair_symbol_t *repair_symbol; uint8_t nss; uint8_t nrs; } queue_item; typedef struct { fec_scheme_t...
2.359375
2
2024-11-18T23:13:36.464536+00:00
2021-01-25T12:00:21
0ad1665a76238e3051cd929577aa69ca3182d413
{ "blob_id": "0ad1665a76238e3051cd929577aa69ca3182d413", "branch_name": "refs/heads/main", "committer_date": "2021-01-25T12:00:21", "content_id": "fa70d96476b245cffac2c738d6c4665de940ff55", "detected_licenses": [ "MIT" ], "directory_id": "2ccf005d6999c4985eacb59b1429bfa67d01a08f", "extension": "h", ...
stackv2
void movimento(int direction_rotation)//incrementale { static int fase = 0; static unsigned long tmpmem = millis(); switch (fase) { case (0): if (direction_rotation == 0) { digitalWrite(PIN_MOTOR_DIR, HIGH);//pin rotazione digitalWrite(PIN_MOTOR_STEP, HIGH);//pin step st...
2.765625
3
2024-11-18T23:13:36.633347+00:00
2021-04-09T17:28:21
af4af830f29205fb8034ef7dac966397e3c7a3bf
{ "blob_id": "af4af830f29205fb8034ef7dac966397e3c7a3bf", "branch_name": "refs/heads/master", "committer_date": "2021-04-09T17:28:21", "content_id": "eeee11b5cf1f205fef48824ee977c858a71f5ec4", "detected_licenses": [ "MIT" ], "directory_id": "77117fc39111e53f44c6f64ff3f3ec1114131f8a", "extension": "c"...
stackv2
#include <stdio.h> int main() { int number, hours; float hourValue; scanf("%d", &number); scanf("%d", &hours); scanf("%f", &hourValue); printf("NUMBER = %d\nSALARY = U$ %.2f\n", number, (hourValue*hours)); return 0; }
2.796875
3
2024-11-18T23:13:36.708434+00:00
2018-01-12T15:10:25
e4c476c55c3cc66a710ff68300283ad52a315eb3
{ "blob_id": "e4c476c55c3cc66a710ff68300283ad52a315eb3", "branch_name": "refs/heads/master", "committer_date": "2018-01-12T15:10:25", "content_id": "2d49b7a8fd424e0bfebbd036af351b65b0681afe", "detected_licenses": [ "MIT" ], "directory_id": "cd0143cb9ce296f10e13ec00e063b64be0235d78", "extension": "c"...
stackv2
#include <stdio.h> void print_triangle(int n); int main(void) { int n; printf("Eine Zahl eingeben: "); while (1) { if (scanf("%i", &n) != 1 || getchar() != '\n') { break; } print_triangle(n); printf("Neue Eingabe: "); } return 0; } void print_triangle(int...
3.328125
3
2024-11-18T23:13:38.690721+00:00
2019-06-11T05:27:23
49565be78728e0ed16be5599d46c7b9d2570c19c
{ "blob_id": "49565be78728e0ed16be5599d46c7b9d2570c19c", "branch_name": "refs/heads/master", "committer_date": "2019-06-11T05:27:23", "content_id": "d106c943c21f0541393f7c3d45af01339f7f5ee3", "detected_licenses": [ "MIT" ], "directory_id": "36e334b11611b28bef605df9446c0e7496492aae", "extension": "c"...
stackv2
/* Code from Pacheco book (see below). Comments added by N. Matloff: We are solving the system of n linear equations Ax = b for x, in an iterative manner. Let x_old denote our last guess (i.e. our last iterate) for x. How do we get x_new, our new guess? The answer lies in the observation tha...
2.734375
3
2024-11-18T23:13:39.122431+00:00
2023-05-18T14:00:42
6aabb286412023dafa49df406f4cb4d0629b4b8c
{ "blob_id": "6aabb286412023dafa49df406f4cb4d0629b4b8c", "branch_name": "refs/heads/master", "committer_date": "2023-05-18T14:00:42", "content_id": "2a8bb5c11e17eaf3c0ee791d7a63b2422ffd5820", "detected_licenses": [ "Apache-2.0", "BSD-3-Clause" ], "directory_id": "984bc4181baec6e5a4b05a657e666b0e9f...
stackv2
#include "mongoc-ts-pool-private.h" #include "common-thread-private.h" #include "bson/bson.h" #if defined(_MSC_VER) typedef double _max_align_type; #elif defined(__APPLE__) typedef long double _max_align_type; #else /* Based on the GCC max_align_t definition */ typedef struct _max_align_type { long long maxalign_1...
2.484375
2
2024-11-18T23:13:39.878685+00:00
2019-07-14T09:57:18
84985abec5146630657450e2abbb1feb9f962558
{ "blob_id": "84985abec5146630657450e2abbb1feb9f962558", "branch_name": "refs/heads/master", "committer_date": "2019-07-14T09:57:18", "content_id": "aac0aa3981bca511b39ef89e2457af3509c0db32", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b9d67c91873b55835dee9d4c6e6674181e19fbcf", "extensio...
stackv2
/* * @Description: * @Author: * @Date: 2019-06-14 16:37:30 * @LastEditTime: 2019-07-09 00:14:14 */ #include <netdb.h> #include <sys/socket.h> #include "esp_system.h" #include "mbedtls/platform.h" #include "mbedtls/net_sockets.h" #include "mbedtls/esp_debug.h" #include "mbedtls/ssl.h" #include "mbedtls/entropy....
2.109375
2
2024-11-18T23:13:39.962931+00:00
2019-03-17T14:20:41
8baab356b8433feb45341d2b68360f201f459b12
{ "blob_id": "8baab356b8433feb45341d2b68360f201f459b12", "branch_name": "refs/heads/master", "committer_date": "2019-03-17T14:20:41", "content_id": "dc07c74efa9cb36db1e4373fdb5519cfb815c30c", "detected_licenses": [ "MIT" ], "directory_id": "671014fdd95e823959bd8f5314f50412c0421f48", "extension": "c"...
stackv2
# include <stdio.h> # include <stdlib.h> //使用系统的 atof() # include <ctype.h> # define MAXOP 100 //操作数或者运算符的最大长度 # define NUMBER '0' //标识找到一个数 # define BUFSIZE 100 //缓冲区的最大长度 # define MAXVAL 100 //栈的最大深度 int sp = 0; //下一个空闲栈位置 double val[MAXVAL]; //栈值 char buf[BUFSIZE]; //用于 ungetch() 的缓冲区 int bufp = 0; ...
3.75
4
2024-11-18T20:53:26.226945+00:00
2023-09-01T05:11:15
4954001e3a2e03aca4a424cfe9ab8b47ed79654c
{ "blob_id": "4954001e3a2e03aca4a424cfe9ab8b47ed79654c", "branch_name": "refs/heads/master", "committer_date": "2023-09-01T05:11:15", "content_id": "e1fb08bfa1aa324b5fb0247ce22f6b0ebff2e499", "detected_licenses": [ "Apache-2.0" ], "directory_id": "27686262789b3a49f515d84f7c3a438fe494aba4", "extensio...
stackv2
#include <stdio.h> #include <string.h> #include "vpi_user.h" static void spaces(int num) { while (num > 0) { vpi_printf(" "); num--; } } static void RecurseScope(vpiHandle handle, int depth) { vpiHandle iter, hand; iter = !handle ? vpi_iterate(vpiModule, NULL) : vpi_iterate(vpiInternalScope,...
2.265625
2
2024-11-18T20:53:26.384519+00:00
2020-07-01T19:53:20
f09cf792030e5763284243b72420f093ab966353
{ "blob_id": "f09cf792030e5763284243b72420f093ab966353", "branch_name": "refs/heads/master", "committer_date": "2020-07-01T19:53:20", "content_id": "5294a886accadf49390882fe56eebf73270e2768", "detected_licenses": [ "MIT" ], "directory_id": "7cb2deee641016a7105cbb42d788860fa2d4b96b", "extension": "c"...
stackv2
#include <stdio.h> int main(void) { int i, num; i = 1; printf("Digite um numero N para limitar um intervalo de 1 a N: "); scanf("%d" , &num); do { //i++; if (num % 3 == 0 && num % 7 == 0) printf("O numero %d e divisivel por 3 e por 7\n" , i); else printf("O numero %d nao e div...
3.390625
3
2024-11-18T20:53:26.449816+00:00
2020-02-04T17:50:20
c93a465bb073e5fb6d788be43a03f2f5d9d39f93
{ "blob_id": "c93a465bb073e5fb6d788be43a03f2f5d9d39f93", "branch_name": "refs/heads/master", "committer_date": "2020-02-04T17:50:20", "content_id": "54159f5e9ee0d83c9357ca2c8e854d8690407815", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d00e106f88b46e2f74ca8ce7eba623061d4b8779", "extensio...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* otool_manager_x64.c :+: :+: :+: ...
2.21875
2
2024-11-18T20:53:26.574050+00:00
2023-07-29T21:54:06
434db5e6232b574163059fd5395f89a7c3e896a4
{ "blob_id": "434db5e6232b574163059fd5395f89a7c3e896a4", "branch_name": "refs/heads/master", "committer_date": "2023-07-29T21:54:06", "content_id": "01d385a73ed61371a116c7adfab7307993ebafcc", "detected_licenses": [ "MIT" ], "directory_id": "84e97d818876d20fab9591ff9d88129acfcc4295", "extension": "c"...
stackv2
/* * eeprom.c * Copyright (C) 2016 xent * Project is distributed under the terms of the MIT License */ #include <halm/irq.h> #include <halm/platform/lpc/clocking.h> #include <halm/platform/lpc/eeprom.h> #include <halm/platform/lpc/lpc43xx/eeprom_defs.h> #include <assert.h> #include <string.h> /*-------------------...
2.609375
3
2024-11-18T20:53:26.681795+00:00
2023-09-02T09:41:02
ca37c25571f1553a73a5b2eeb3a139cbf7d4ff07
{ "blob_id": "ca37c25571f1553a73a5b2eeb3a139cbf7d4ff07", "branch_name": "refs/heads/master", "committer_date": "2023-09-02T09:41:02", "content_id": "260725f3b3b9cc62964e033f8ba589e40b70e95e", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "71c10a5a8073ee4bbff63a6611a82a58b92af5aa", "extens...
stackv2
#ifndef PRINT_H #define PRINT_H #include "vpi_user.h" /* Prints a NUL terminated sequence of bytes to the shared pipe * according to the Haskell representation of: * * 'Show [Int]' */ void print_bytes(PLI_BYTE8*); /* Prints the diagnostic level to the shared pipe according to the * Haskell representation of: ...
2.046875
2
2024-11-18T20:53:26.741733+00:00
2015-04-17T17:56:20
89e6f1993c7f28a7544d17f7affcb4ac4b2afa19
{ "blob_id": "89e6f1993c7f28a7544d17f7affcb4ac4b2afa19", "branch_name": "refs/heads/master", "committer_date": "2015-04-17T17:56:20", "content_id": "42602e7268859b943a5cdd74d09854e6ccee5301", "detected_licenses": [ "ISC" ], "directory_id": "66bdc05e3e7e0a2069cbf59a8dad1fdf7a52caef", "extension": "c"...
stackv2
/*=================================================================== * * bool vfopen(char const *pathname); * * open the named file as stdout; rename it by appending a numeric * file extension that serves as a file version number; * *. Motley Tools by Charles Maier *: Published 1982-2005 by Charles Ma...
2.34375
2
2024-11-18T20:53:26.908264+00:00
2021-01-31T08:03:05
1011e692772f4ab7870f70bdc19c1abe8a4068f8
{ "blob_id": "1011e692772f4ab7870f70bdc19c1abe8a4068f8", "branch_name": "refs/heads/main", "committer_date": "2021-01-31T08:35:58", "content_id": "c7775b54e4d96b01455efbc06123558e6db9663a", "detected_licenses": [ "Apache-2.0", "BSD-2-Clause" ], "directory_id": "a6f5d608a22fb2e904c8e438d23694599d4c...
stackv2
/* * Copyright (C) 2016 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
2
2024-11-18T20:53:26.994018+00:00
2015-09-06T06:51:27
671e0850fbbf4bb378a91b751ee21ca6baba1288
{ "blob_id": "671e0850fbbf4bb378a91b751ee21ca6baba1288", "branch_name": "refs/heads/master", "committer_date": "2015-09-06T06:51:27", "content_id": "ddce74d11b93aca9fbe209164833a5257879883e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "4f6af3d4f511645f0c6f4d07454db2420c86a579", "extensio...
stackv2
/****************************************************************************** Copyright (C), 2005-2014, CVTE. ****************************************************************************** File Name : app_serial.c Version : Initial Draft Author : qiuweibo Created : 2015/4/8 Last ...
2.109375
2
2024-11-18T20:53:27.045379+00:00
2014-10-14T07:36:06
bdb79e786425c67afe61691a0a877de124555b6c
{ "blob_id": "bdb79e786425c67afe61691a0a877de124555b6c", "branch_name": "refs/heads/master", "committer_date": "2014-10-14T07:36:06", "content_id": "457869cee1253f3fcdc9829002b5f9af854dafed", "detected_licenses": [ "MIT" ], "directory_id": "55900b39823f0aa980154cd35471aaaafe610c41", "extension": "c"...
stackv2
#include "lock_ellision.h" #include "GenericTaskDeclarations.h" #include "GenericSharedDeclarations.h" #include "GenericSyncDeclarations.h" #include <pthread.h> #include <stdlib.h> typedef struct lock_ellision_Args_a6a1 lock_ellision_Args_a6a1_t; struct lock_ellision_Args_a6a1 { GenericSharedDeclarations_SharedOf_...
2.421875
2
2024-11-18T20:53:27.110037+00:00
2009-05-12T20:11:07
2dc5a00f8d50083224aeab5e87c28f0b73ec34a7
{ "blob_id": "2dc5a00f8d50083224aeab5e87c28f0b73ec34a7", "branch_name": "refs/heads/master", "committer_date": "2009-05-12T20:11:07", "content_id": "f2cb7c2f5aa1ebbcbe09fb09b726935fd8c6b9cc", "detected_licenses": [ "MIT" ], "directory_id": "876daada5152e855cdb24f3ea1c345a80064db35", "extension": "h"...
stackv2
#ifndef _FCGIEV_BUFFER_H_ #define _FCGIEV_BUFFER_H_ #include <stdint.h> #include <string.h> #include <sys/types.h> typedef struct { u_char *buffer; u_char *orig_buffer; size_t misalign; size_t totallen; size_t off; } buf_t; #define BUF_LENGTH(x) (x)->off #define BUF_DATA(x) (x)->buffer #define BUF_INPUT(x...
2.90625
3
2024-11-18T20:53:27.433975+00:00
2018-02-22T18:50:15
a206011249a33bce70d6342d0dba1b3784498cb5
{ "blob_id": "a206011249a33bce70d6342d0dba1b3784498cb5", "branch_name": "refs/heads/master", "committer_date": "2018-02-22T18:50:15", "content_id": "eb87eef3f12c1accbb36c470ea216d896e9f84fa", "detected_licenses": [ "MIT" ], "directory_id": "0fba08cba1cfa9b493f5618e7ece0d02e89df725", "extension": "c"...
stackv2
// // eval_register.c // TotemScript // // Created by Timothy Smale on 05/06/2016 // Copyright (c) 2016 Timothy Smale. All rights reserved. // #include <TotemScript/eval.h> #include <TotemScript/base.h> #include <TotemScript/exec.h> #include <string.h> totemEvalStatus totemRegisterListPrototype_AddRegister(totemR...
2.515625
3
2024-11-18T20:53:27.587594+00:00
2023-07-21T03:41:00
6c44193a276179e643d63ab42637e0ea257c6594
{ "blob_id": "6c44193a276179e643d63ab42637e0ea257c6594", "branch_name": "refs/heads/master", "committer_date": "2023-07-21T03:41:00", "content_id": "01a1f5445b9d6652988da942479b48f01e6ce3a3", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "20965ad00f94bab92a9d18c6e0990eb2...
stackv2
/* Copyright (c) 2015, Plume Design Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the...
2.21875
2
2024-11-18T20:53:27.654255+00:00
2019-04-15T18:37:25
206e4267975476bae0ae82c6377157bc0e2e973d
{ "blob_id": "206e4267975476bae0ae82c6377157bc0e2e973d", "branch_name": "refs/heads/master", "committer_date": "2019-04-15T18:37:25", "content_id": "a134f7e92cad60012922be0775798a256764f85f", "detected_licenses": [ "BSD-3-Clause-Open-MPI" ], "directory_id": "c71b7e39dc0f96fe4298fce098a28077f5a20f65", ...
stackv2
/* * Copyright (c) 2009-2018 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. */ #ifndef _PARSEC_scheduling_h #define _PARSEC_scheduling_h /** * @addtogroup parsec_internal_scheduling * @{ */ #include...
2.046875
2
2024-11-18T20:53:28.504852+00:00
2021-06-21T03:33:48
4581b410e84b325f196e4bd9f63361692a1da3b3
{ "blob_id": "4581b410e84b325f196e4bd9f63361692a1da3b3", "branch_name": "refs/heads/obliv-c", "committer_date": "2021-06-21T03:33:48", "content_id": "fdd6fbd8b4f407cb443f565cc4d68d62f0f97efc", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "91b0590e4fe507612d6e4dc17b940b5...
stackv2
#include<string.h> #include<gcrypt.h> #include<bcrandom.h> #include<commitReveal.h> #include<obliv.h> OcCommitter* ocSendCommit(ProtocolDesc* pd,BCipherRandomGen* gen, const void* data,int size,int destParty) { OcCommitter* rv = malloc(sizeof(OcCommitter)); gcry_md_hd_t h; randomizeBu...
2.40625
2
2024-11-18T20:53:28.616407+00:00
2018-02-04T18:59:28
53e4d238952fbb801acc4e6274f50b1353830d07
{ "blob_id": "53e4d238952fbb801acc4e6274f50b1353830d07", "branch_name": "refs/heads/master", "committer_date": "2018-02-04T18:59:28", "content_id": "586780bc64eb94aa1c84fc7134d23db249209889", "detected_licenses": [ "Unlicense" ], "directory_id": "e312ce2591f8779d34e1db9f55445f3ae9f72f00", "extension...
stackv2
#include <stdio.h> #include <signal.h> #include <string.h> #include <errno.h> #include "cons.h" #include "object.h" #include "symtab.h" #include "eval.h" #include "number.h" #include "str.h" #include "reader.h" #include "common.h" #include "lisp.h" #include "vector.h" object_t *lambda, *macro, *quote; object_t *err_sy...
2.1875
2
2024-11-18T20:53:28.694068+00:00
2015-10-23T11:46:04
62d2a700351a1f89098b91a8ae39874bc2e98687
{ "blob_id": "62d2a700351a1f89098b91a8ae39874bc2e98687", "branch_name": "refs/heads/master", "committer_date": "2015-10-23T11:46:04", "content_id": "66fe81f3ee30fb727a074eab907da681888ecf3a", "detected_licenses": [ "MIT" ], "directory_id": "4130fdf732add371bf2572e7852ea8cae4f4f377", "extension": "c"...
stackv2
/* * Alvin IFTTT Control Application * * Copyright (c) 2015 James Fowler * * 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 right...
2.09375
2
2024-11-18T20:53:29.499519+00:00
2021-02-14T00:38:15
4b4efdbd61db2386ab40f812dd0d0ffb3def49fb
{ "blob_id": "4b4efdbd61db2386ab40f812dd0d0ffb3def49fb", "branch_name": "refs/heads/master", "committer_date": "2021-02-14T00:38:15", "content_id": "688f90ef68627feb736f3d47b3af15f849339d62", "detected_licenses": [ "MIT" ], "directory_id": "29d64a7f18b940d9eb19ed95a5fcb6bf0bbb1f6e", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <ftw.h> #include <unistd.h> #include <sys/mman.h> #include "memlayout.h" /** * Loading a large data file onto memory via mmap() * @param path */ void mem_loading(const char* path); /** * In this example, mmap() a large data file and observe the me...
2.96875
3
2024-11-18T20:53:29.802623+00:00
2012-05-18T18:01:32
af2f7dc9e369c19742117ccb8af762fa0f997c5c
{ "blob_id": "af2f7dc9e369c19742117ccb8af762fa0f997c5c", "branch_name": "refs/heads/master", "committer_date": "2012-05-18T18:01:32", "content_id": "8d3c13f8584059f7cbad4c7b126072651f9f6077", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "70bb6f17419472d6d4c664be2a204139ff93a858", "extens...
stackv2
#include "servidor.h" int realocar(char **ptr, int atual, int novo) { int incremento = novo - atual; debug("Realocando memória para %i bytes", novo); debug(" (+ %i bytes)... ", incremento); fflush(stdout); char *novoptr = realloc(*ptr, novo); if (novoptr == NULL) { debug("ERRO: Sem memória para alocar.\r\n"...
3.15625
3
2024-11-18T20:53:29.954575+00:00
2014-09-29T03:30:08
9f8542fa432c32e255783dbd79a0b23a9187b046
{ "blob_id": "9f8542fa432c32e255783dbd79a0b23a9187b046", "branch_name": "refs/heads/master", "committer_date": "2014-09-29T03:30:08", "content_id": "333e188d6603a7a59a0b0abcaff4c9143b473bce", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ae22f3370f4937d591b033da6548c86d7ee1b573", "extens...
stackv2
/* adlist.c - A generic doubly linked list implementation * * Copyright (c) 2006-2010, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * ...
2.609375
3
2024-11-18T20:53:30.111881+00:00
2020-05-02T20:53:15
b84a6a3e837d03d771d799833a27b6167a6b30a7
{ "blob_id": "b84a6a3e837d03d771d799833a27b6167a6b30a7", "branch_name": "refs/heads/master", "committer_date": "2020-05-02T20:53:15", "content_id": "cf6dc5e9c48eb9ffb960ed80136bc02f2f96581f", "detected_licenses": [ "MIT" ], "directory_id": "b03da9219d0b9045610e9a975ee139fdc953d268", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <rxc/rxc.h> #include <rxc/logic.h> #include <sas/chunk.h> static void dealloc(struct rxc_sink *self, int shallow) { free(self); } static void on_connect(struct rxc_sink_logic *self) { rxc_inlet_pull(self->in, 1); } stat...
2.265625
2
2024-11-18T20:53:30.282309+00:00
2020-03-20T01:20:02
e98cf8a487f704dd9d6e4a3c5257da8481f71f48
{ "blob_id": "e98cf8a487f704dd9d6e4a3c5257da8481f71f48", "branch_name": "refs/heads/master", "committer_date": "2020-03-20T01:20:02", "content_id": "eafbf2f2733d629f76c788539ec84f778a60e015", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "8f416d9e73092164f5be46716516b1ac...
stackv2
// SD CARD bitbanging code for loading files from a FAT16 forrmatted partition into memory // // Code is known to work on a de10nano with MiSTer SDRAM and IO Boards - IO Board has a secondary SD CARD interface connected to GPIO pins // SPI signals CLK, CS and MOSI are configured as GPIO output pins, and MISO is configu...
2.328125
2
2024-11-18T20:53:30.936224+00:00
2019-01-09T06:13:38
2224d3f87c41dc8762df0bfcdf146dc180b46b50
{ "blob_id": "2224d3f87c41dc8762df0bfcdf146dc180b46b50", "branch_name": "refs/heads/master", "committer_date": "2019-01-09T06:13:38", "content_id": "8001d08b303cfc8e55c34231c49a1296646de476", "detected_licenses": [ "PHP-3.01" ], "directory_id": "95aeaa82f7598bc342e71467a34b76f378aea7c2", "extension"...
stackv2
/* +----------------------------------------------------------------------+ | APC | +----------------------------------------------------------------------+ | Copyright (c) 2006-2010 The PHP Group | +--------------...
2.03125
2
2024-11-18T20:53:32.141365+00:00
2018-10-03T16:23:15
4fc9a7c857e43eff417024e68f3b21f83014ea6e
{ "blob_id": "4fc9a7c857e43eff417024e68f3b21f83014ea6e", "branch_name": "refs/heads/master", "committer_date": "2018-10-03T16:23:15", "content_id": "1438946648ad5ce3bacd6a9f39754cb2f31a1f8e", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "8f9353dcf7d5cd115b12d1c23d78fab8...
stackv2
#include <stdint.h> #include <stddef.h> #include <scalar/fft/real.h> #include <scalar/fft/soa.h> #include <scalar/fft/dualreal.h> #include <nnpack/utils.h> #include <nnpack/activations.h> #define BLOCK_SIZE 8 void nnp_fft8x8_with_offset__scalar( const float data[restrict static 1], float transform[restrict stat...
2.203125
2