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-18T18:56:36.249700+00:00
2023-08-10T13:42:17
f65e1c2fd857bd82cb11d3ba6779e3a6d2ca595d
{ "blob_id": "f65e1c2fd857bd82cb11d3ba6779e3a6d2ca595d", "branch_name": "refs/heads/master", "committer_date": "2023-08-10T13:42:17", "content_id": "6d813d831e253cb81bee256889e9de55bce4c8be", "detected_licenses": [ "MIT" ], "directory_id": "6ff85b80c6fe1b3ad5416a304b93551a5e80de10", "extension": "c"...
stackv2
#include <stdio.h> int main() { struct pessoas { int codTC; //codigo do consumidor para falar se é 1-Residencial 2-Comercial 3-Industrial int num; //numero do consumidor (vou colocar o numero referente ao cod para nao confundir) float kwh; //Quilowatt-hora }; struct pessoas consumido...
3.03125
3
2024-11-18T18:56:40.257385+00:00
2017-06-24T13:26:05
367ac395b1ebf5d8a3d478c6cdb7e99c0cdc7c01
{ "blob_id": "367ac395b1ebf5d8a3d478c6cdb7e99c0cdc7c01", "branch_name": "refs/heads/master", "committer_date": "2017-06-24T13:26:05", "content_id": "099fad75e6a90ac7226e8775070db236bd225af9", "detected_licenses": [ "Apache-2.0" ], "directory_id": "80d20f56dcf8e7660360562e0668c1a61fde9841", "extensio...
stackv2
/* ******************************************************************************* * BOLOS TEE Samples * (c) 2016, 2017 Ledger * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
2.328125
2
2024-11-18T18:56:40.319547+00:00
2014-04-23T02:13:25
62407892cac709a6068b0c990a7f250816e630a0
{ "blob_id": "62407892cac709a6068b0c990a7f250816e630a0", "branch_name": "refs/heads/master", "committer_date": "2014-04-23T02:13:25", "content_id": "77ec511958759075de9c44c633fac98c851f522f", "detected_licenses": [ "MIT" ], "directory_id": "3093432c54b7b5c26fa7588bd3c337e3431ee726", "extension": "c"...
stackv2
#include <stdio.h> int main(){ /* The following short questions have all appeared on old midterms and finals: (a) Convert the hexadecimal number ABCD to a binary number. (b) Consider the following four non-decimal numbers, where the subscripts indicate the base of each number: A8_16 251_8 2222_4 1...
3.21875
3
2024-11-18T18:56:40.391551+00:00
2018-05-15T05:33:54
a03a289f5ececfd1cb92e7429c7395b8f62b5fd5
{ "blob_id": "a03a289f5ececfd1cb92e7429c7395b8f62b5fd5", "branch_name": "refs/heads/master", "committer_date": "2018-05-15T05:33:54", "content_id": "5da1b5ab8e72e4eb8fc9f5d8c24b4678fa94e28b", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "96a178dd7db1f6d677d28344c9fa580fcec5ef35", "extens...
stackv2
#include <stdio.h> /* Standard I/O definitions */ #include <string.h> /* String function definitions */ #include <unistd.h> /* UNIX standard function definitions */ #include <fcntl.h> /* File control definitions */ #include <errno.h> /* Error number definitions */ #include <termios.h> /* POSIX terminal control definit...
2.671875
3
2024-11-18T18:56:40.569893+00:00
2017-10-17T16:23:07
29b0744feabc40f8562645aac14c3a8bea125714
{ "blob_id": "29b0744feabc40f8562645aac14c3a8bea125714", "branch_name": "refs/heads/master", "committer_date": "2017-10-17T16:23:07", "content_id": "3b3abe6d4bb9561c26a31314ebab04a8f62f4579", "detected_licenses": [ "Apache-2.0" ], "directory_id": "eb913ec065018dda4aa49a64930aff35faa08f93", "extensio...
stackv2
#include <stdio.h> #include "selection_sort.h" void imprimeVetor(int vetor[], int max){ int i = 0; for (i = 0; i < max; i++) { printf ("%d ",vetor[i]); } printf ("\n"); } int main () { int max, i; printf("Digite o tamanho do vetor\n"); scanf ("%d",&max); int vetor[max]; for (i = 0; i <...
3.203125
3
2024-11-18T18:56:41.395059+00:00
2020-06-27T04:01:46
d8d73e2ecad6d23c6756741b84032f34023720d3
{ "blob_id": "d8d73e2ecad6d23c6756741b84032f34023720d3", "branch_name": "refs/heads/master", "committer_date": "2020-06-27T04:01:46", "content_id": "5e8d522a9633acd18e334725ae3724a987df3773", "detected_licenses": [ "Unlicense" ], "directory_id": "2615a03ef8330c5880b5c9ddefd2462f80ae8333", "extension...
stackv2
#include <stdio.h> #include <stdlib.h> void factorial(int *n, int *r) { for (*n = *n; *n > 1; *n = *n - 1) { *r = *r * *n; } } int main() { /* Implementar una función que calcule el factorial de un número */ int numero; int resultado = 1; do { printf("Ingrese un numero positivo para ca...
3.859375
4
2024-11-18T18:56:41.937575+00:00
2022-01-30T10:10:17
5430da2a76eee26332c5e05f2acce35ad6570855
{ "blob_id": "5430da2a76eee26332c5e05f2acce35ad6570855", "branch_name": "refs/heads/master", "committer_date": "2022-01-30T10:10:17", "content_id": "d8217ad1835850be262c6d8ee24fa8229f07e40d", "detected_licenses": [ "MIT" ], "directory_id": "2996465417a4b4c930844ee5fcde6d38379b2576", "extension": "h"...
stackv2
#ifndef __ISOTP_TYPES__ #define __ISOTP_TYPES__ /************************************************************** * compiler specific defines *************************************************************/ #ifdef __GNUC__ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #define ISOTP_BYTE_ORDER_LITTLE_ENDIAN #elif __BYTE_...
2.015625
2
2024-11-18T18:56:42.019422+00:00
2018-01-25T17:10:39
271519341479f1c73c3092c9e3b565b2d96d3c67
{ "blob_id": "271519341479f1c73c3092c9e3b565b2d96d3c67", "branch_name": "refs/heads/master", "committer_date": "2018-01-25T17:10:39", "content_id": "7b0a65108db612cf05460a41a2a5beb645f4c526", "detected_licenses": [ "MIT" ], "directory_id": "ed59c963efe92f5d82ff78dd9efc1993179a4787", "extension": "c"...
stackv2
#include "stdio.h" #include "math.h" /*Matriz Original é a dada pelo usuario(conjuntovetor) e a matriz comprimida é a que veio da TDC (matriz da transformada)*/ /*A distancia entre matrizes é calculada pelo valor máximo(em módulo) da diferença entre os valores de matrizOriginal e a matrizComprimida. Em outras palavra...
3.140625
3
2024-11-18T18:56:42.102418+00:00
2020-04-26T20:10:59
e93bf707931fe975d18d4ba3fd5613183721b836
{ "blob_id": "e93bf707931fe975d18d4ba3fd5613183721b836", "branch_name": "refs/heads/master", "committer_date": "2020-04-26T20:10:59", "content_id": "834137088f9540120aa3e487af9b74b4ef9a570b", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c20eab49ff6ee454db60d18d98c16191c67544b7", "extensio...
stackv2
#include <Arduino.h> volatile bool expected = true; const int preambleBitsLength = 8; volatile int preambleBitsToReceive = preambleBitsLength; bool detectPreamble(int pin) { if (preambleBitsToReceive == 0) { return true; } bool data = digitalRead(pin); if (data == expected) { preambleBitsToReceive--;...
2.796875
3
2024-11-18T18:56:42.250780+00:00
2022-10-02T23:20:09
21741b3b3504c58bd238fb0932feb2f05fd2d106
{ "blob_id": "21741b3b3504c58bd238fb0932feb2f05fd2d106", "branch_name": "refs/heads/main", "committer_date": "2022-10-02T23:20:09", "content_id": "51c171c48e842f1646203f0b32cf9cfffa43dbbc", "detected_licenses": [ "MIT" ], "directory_id": "5c1328a271a8607e59be87244068ab46fd24c893", "extension": "c", ...
stackv2
/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */ struct ListNode* removeNthFromEnd(struct ListNode* head, int n){ if (head->next == NULL) { return head->next; } struct ListNode* slow = head; struct ListNode* fast = head...
3.0625
3
2024-11-18T18:56:42.825525+00:00
2020-05-11T23:49:53
06a7ae7076618584623db2e573a915bf71c1c7f2
{ "blob_id": "06a7ae7076618584623db2e573a915bf71c1c7f2", "branch_name": "refs/heads/master", "committer_date": "2020-05-11T23:49:53", "content_id": "68ca1a14ece846ce2bb6968aaecea9626ca5f92a", "detected_licenses": [ "MIT" ], "directory_id": "95a44a0ed483cc608132321310dd6ba2387d7b9e", "extension": "c"...
stackv2
/* * Daphne invests $100 at 10% simple interest. (That is, every year, the * investment earns an interest equal to 10% of the original investment.) * Deirdre invests $100 at 5% interest compounded annually. (That is, interest * is 5% of the current balance, including previous addition of interest.) Write * a progr...
3.734375
4
2024-11-18T18:56:42.981554+00:00
2019-05-07T23:15:00
54215e67a5cc505c13f3c8852f7eeaa38495896f
{ "blob_id": "54215e67a5cc505c13f3c8852f7eeaa38495896f", "branch_name": "refs/heads/master", "committer_date": "2019-05-07T23:15:00", "content_id": "db869c1749565857b846705e21bc28b513891d60", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "af668c07e6877363d706aa002b48b3c8...
stackv2
/* * Automatically Tuned Linear Algebra Software v3.10.3 * (C) Copyright 2003 R. Clint Whaley * * 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...
2.078125
2
2024-11-18T18:56:43.601118+00:00
2018-11-12T01:54:10
6b3c1534c615476e05ee16039f3e77d05f75b461
{ "blob_id": "6b3c1534c615476e05ee16039f3e77d05f75b461", "branch_name": "refs/heads/master", "committer_date": "2018-11-12T01:54:10", "content_id": "ade660642ecb7d8cf10220111a546429a73feed8", "detected_licenses": [ "MIT" ], "directory_id": "35f0288c6311f56b37443edc2c8c76cbd8ecd53e", "extension": "c"...
stackv2
/*第六届决赛试题——互补输出*/ /*实现全部内容,无bug,*/ /*作者:龚子然*/ #include "stm32f10x.h" #include <stdio.h> #include "lcd.h" #include "LED.h" #include "i2c.h" #include "gong.h" u8 string[20]; u8 SignalPA9=0,PB14=0; u8 shezhi=0; u8 qiehuan=0; u8 i=0; u8 open=0; u8 status=1; u16 run = 0xffff; float temp1; float temp2; float pulse...
2.546875
3
2024-11-18T18:56:43.791011+00:00
2019-01-05T12:42:27
f477bbfa07c8defec4c60813a9f108ebea3bbc83
{ "blob_id": "f477bbfa07c8defec4c60813a9f108ebea3bbc83", "branch_name": "refs/heads/master", "committer_date": "2019-01-05T12:42:27", "content_id": "05aab09dc13a82231d46f78ee739a77e697e5844", "detected_licenses": [ "MIT" ], "directory_id": "6c698f413d5231a108c117c42d5b5e3fd4b72eb0", "extension": "c"...
stackv2
#include <stdio.h> #include <csv_dataproc.h> int main(int argc, char* argv[]) { int iResult; csv_t csv; csv_t clone; if(argc < 2) { printf("Assign a csv file to run a program\n"); return -1; } iResult = csv_read(&csv, argv[1]); if(iResult != CSV_NO_ERROR) { printf("csv_read() failed with error: %d\n"...
2.734375
3
2024-11-18T18:56:48.433397+00:00
2019-01-05T22:46:08
c4f8e5b4603567bcd45ff48593b4b06c4d5f549c
{ "blob_id": "c4f8e5b4603567bcd45ff48593b4b06c4d5f549c", "branch_name": "refs/heads/master", "committer_date": "2019-01-05T22:46:08", "content_id": "fd5f3da67514353c5529a52e3e5e25c3d1fedcc4", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ef55d0e2d4797533783573377b4ae75d48313928", "extens...
stackv2
/* Fo * fo-property-character.c: 'character' property * * Copyright (C) 2001 Sun Microsystems * Copyright (C) 2007 Menteith Consulting Ltd * * See COPYING for the status of this software. */ #include <string.h> #include "fo-utils.h" #include "fo-context.h" #include "datatype/fo-datatype.h" #include "property/fo...
2.046875
2
2024-11-18T18:56:48.919667+00:00
2019-07-18T02:47:19
48278c5b3cfce125908f6e7f66310e0af0e6efd0
{ "blob_id": "48278c5b3cfce125908f6e7f66310e0af0e6efd0", "branch_name": "refs/heads/master", "committer_date": "2019-07-18T02:47:39", "content_id": "ebf0901dd341686f0a6a85501761f28998e3eed9", "detected_licenses": [ "Unlicense" ], "directory_id": "ea2bfabfd7f97dc64c4ef6dd9d9d27f3c271bdab", "extension...
stackv2
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <flint/nmod_poly.h> #include "util.h" #include "sage_output.h" #include "nmod_poly_extra.h" /*------------------------------------------------------------*/ /* if opt = 1, runs a check */ /* else, runs timings ...
2.359375
2
2024-11-18T18:56:49.443897+00:00
2018-08-20T22:13:29
097ef690957107168d131f646e07877ccbd44415
{ "blob_id": "097ef690957107168d131f646e07877ccbd44415", "branch_name": "refs/heads/master", "committer_date": "2018-08-20T22:13:29", "content_id": "a3608063602ba89924de2f9f6d8812ba64df7464", "detected_licenses": [ "MIT" ], "directory_id": "516ab413666082045660623f1664dba9c9727fca", "extension": "h"...
stackv2
#include <stdio.h> #pragma once enum verboselevel { lvlNONE, lvlERROR, lvlINFO, lvlDEBUG, }; extern int loglevel; #define RAWLOG(fmt, args...)\ fprintf(stderr, fmt, ##args); #define INFO(fmt, args...)\ if (loglevel >= lvlINFO) { \ RAWLOG("[INF]" fmt "\n", ##args);\ } #define DEBUG(fmt, args...)\ ...
2.15625
2
2024-11-18T18:56:49.596206+00:00
2021-10-12T14:59:02
c13a2acb213cdd56a5bf5567c448f1e10cc6a88a
{ "blob_id": "c13a2acb213cdd56a5bf5567c448f1e10cc6a88a", "branch_name": "refs/heads/master", "committer_date": "2021-10-12T14:59:02", "content_id": "c368637724c0bb67b686e9736748d37ebbaeb6a6", "detected_licenses": [ "MIT" ], "directory_id": "af9ecd36a89c6236640fa7333f3aef20cda420f1", "extension": "c"...
stackv2
/* fibonacci sequence */ #include <stdio.h> #include <stdlib.h> static int *table; int fibonacci(int idx) { if (idx == 0) return 0; else if (idx == 1) return 1; else { if (table[idx - 2] == -1) { table[idx - 2] = fibonacci(idx - 2); } if (table[idx - 1] == -1) { table[idx - 1] = fibonacci(idx - 1); }...
3.703125
4
2024-11-18T18:56:49.833264+00:00
2021-03-17T02:56:52
34152213c61f1480fa6a28c110714710e7a3709a
{ "blob_id": "34152213c61f1480fa6a28c110714710e7a3709a", "branch_name": "refs/heads/main", "committer_date": "2021-03-17T02:56:52", "content_id": "0cbe2cf3b7cb542e9d1410c567ba30c9b1ff1979", "detected_licenses": [ "MIT" ], "directory_id": "91a471cb831df97d200574d5016ad24b0b84a8ca", "extension": "c", ...
stackv2
#define _POSIX_SOURCE 1 #include "ezport.h" #include <string.h> #include <errno.h> #include <unistd.h> #include <sys/stat.h> #include "jr/malloc.h" #include "jr/error.h" #include "jr/tar.h" #include "jr/syscalls.h" jr_int jr_TarEntryInitFromRfp (tar_entry_ptr, rfp, error_buf) jr_TarEntryType * tar_entry_ptr ; ...
2.125
2
2024-11-18T18:56:50.021386+00:00
2018-12-08T20:48:18
099a61fa99e84fee79c19754f75c310e452c0d40
{ "blob_id": "099a61fa99e84fee79c19754f75c310e452c0d40", "branch_name": "refs/heads/master", "committer_date": "2018-12-08T20:48:18", "content_id": "5be2992f760448eac9ccbf196415718adbafa00c", "detected_licenses": [ "MIT" ], "directory_id": "ed129d9dd401a002aa1337d02d3013a9ebc830fb", "extension": "c"...
stackv2
/* * SPI.c * * Created on: ??þ/??þ/???? * Author: DR . radwa hussein */ #include "Types.h" #include "Registers.h" #include "DIO.h" #include "SPI.h" #define get_bit(Register,Pin) ((Register >> Pin) & 1) #define Enable 1 #define Disable 0 #define Master Disable #define Slave Enable #define Mode_S 0 enum Mod...
2.515625
3
2024-11-18T18:56:50.738400+00:00
2020-07-19T13:55:57
c70993502d60678103fa09e13e94de606d2c9807
{ "blob_id": "c70993502d60678103fa09e13e94de606d2c9807", "branch_name": "refs/heads/master", "committer_date": "2020-07-19T13:55:57", "content_id": "e2d012ffab9575b7940a07a38c7985ac864cd792", "detected_licenses": [ "MIT" ], "directory_id": "ead3406a38a51ed0df9144178fe7416a3bb87985", "extension": "h"...
stackv2
#ifndef BOARD_H #define BOARD_H #include <stdio.h> #include "types.h" typedef struct Board Board; // Create new board // In case of error, returns NULL Board* Board_new(); // Obtain piece in a given square Piece* Board_at(Board* board, Square sq); Piece const* Board_at_const(Board const* board, Square sq); // Ser...
2.046875
2
2024-11-18T18:56:50.981328+00:00
2021-03-15T22:45:19
969afd890efa12d40d9688833ce6d66cb560e141
{ "blob_id": "969afd890efa12d40d9688833ce6d66cb560e141", "branch_name": "refs/heads/master", "committer_date": "2021-03-15T22:45:19", "content_id": "2e06c765084f9ca425e8a13ebc2ed39c3e007ecf", "detected_licenses": [ "Unlicense" ], "directory_id": "21344769ca2bd11dcdd8f4831d6da5e0cd705df6", "extension...
stackv2
#include "./traveling_salesman.h" #include <math.h> #include <stdlib.h> #include "common_math.h" static double squared_dist(const point* p1, const point* p2) { return ((p2->x - p1->x) * (p2->x - p1->x)) + ((p2->y - p1->y) * (p2->y - p1->y)); } static double _dist(const point* p1, const point* p2) { ret...
2.828125
3
2024-11-18T18:56:51.916737+00:00
2019-03-05T15:36:04
c0b6094687948f945449ac136dd781154d0ae82e
{ "blob_id": "c0b6094687948f945449ac136dd781154d0ae82e", "branch_name": "refs/heads/master", "committer_date": "2019-03-05T15:36:04", "content_id": "e975530419c94e25ca106e3cc48fd31f87095787", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "a55c5e52744a2ca3612245fd31081a168f5e4f74", "extens...
stackv2
/* ============================================================================ Name : lorasc.h Author : Simplice Donfack Version : 0.1 Description : Preconditioner based on Schur complement Date : Sept 20, 2017 ============================================================================ */ #ifnd...
2.359375
2
2024-11-18T18:56:52.071768+00:00
2021-02-20T20:47:54
3c953e15066ef872803e8cf8f91ebd856c956737
{ "blob_id": "3c953e15066ef872803e8cf8f91ebd856c956737", "branch_name": "refs/heads/main", "committer_date": "2021-02-21T19:38:34", "content_id": "731372029dc0aaa3c384ea1a5ec52be9b77612d1", "detected_licenses": [ "MIT" ], "directory_id": "9905d90b89995a7eb7a9d67e807da118a1e00fc5", "extension": "c", ...
stackv2
/* */ #include <string.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <driver/gpio.h> #include <driver/uart.h> #include "esp_ebyte.h" static const char EBYTE_PARAMS_CMD[3] = { 0xC1, 0xC1, 0xC1 }; static const char EBYTE_VERSION_CMD[3] = { 0xC3, 0xC3, 0xC3 }; static const char EBYTE_RESET_CMD...
2.1875
2
2024-11-18T18:56:52.140189+00:00
2021-07-23T20:02:23
626763a8d355fcf3109b5b7fc7e9611ad3616c22
{ "blob_id": "626763a8d355fcf3109b5b7fc7e9611ad3616c22", "branch_name": "refs/heads/master", "committer_date": "2021-07-23T20:02:23", "content_id": "4fda5718be99c371aa4d4fcc36ff76bf0470db61", "detected_licenses": [ "MIT" ], "directory_id": "88886d17f78d3d09675b5aa6b656d8617d411d55", "extension": "c"...
stackv2
/* * Author: Brendan Le Foll <brendan.le.foll@intel.com> * Sisinty Sasmita Patra <sisinty.s.patra@intel.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.o...
2.578125
3
2024-11-18T18:56:52.263502+00:00
2017-09-26T04:34:42
7eb4aefb021755ec75afbd81167bd0cfdd857d06
{ "blob_id": "7eb4aefb021755ec75afbd81167bd0cfdd857d06", "branch_name": "refs/heads/master", "committer_date": "2017-09-26T04:34:42", "content_id": "b1488e77739cc8a9b1e2718f9fa5483d45cb2eb1", "detected_licenses": [ "MIT" ], "directory_id": "4c1dd31e9eb1015bf9689e8ac1fcbae1bd2e0729", "extension": "c"...
stackv2
#include <stdio.h> #include "lower.c" main() { int c; while ((c = getchar()) != EOF) putchar(lower(c)); return 0; }
2.34375
2
2024-11-18T18:56:52.534820+00:00
2021-07-31T08:11:55
68f1ad524946c2c689e38f93a52583ffb4fe4cf4
{ "blob_id": "68f1ad524946c2c689e38f93a52583ffb4fe4cf4", "branch_name": "refs/heads/main", "committer_date": "2021-07-31T08:11:55", "content_id": "a17fb327f4c59f8ff591511f0f01bd07354b81ee", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ad1160c77440fc178eda12141256d4c1fa576e84", "extension"...
stackv2
// // Created by olive on 2021/7/31. // #include <stdio.h> unsigned int Factorial(unsigned int n) { if (n == 0) { return 1; // f(0) = 1 } else { return n * Factorial(n - 1); // f(n) = nf(n - 1) } } unsigned int FactorialByIteration(unsigned int n) { unsigned int result = 1; for (unsigned int i = n; ...
3.640625
4
2024-11-18T18:56:54.534567+00:00
2017-05-01T13:16:48
65f742bc289649ce3e1c1ce19b35b93b9c151bf5
{ "blob_id": "65f742bc289649ce3e1c1ce19b35b93b9c151bf5", "branch_name": "refs/heads/master", "committer_date": "2017-05-01T13:20:33", "content_id": "4d98a1aee7c797484cbab1367cccc20a55ed0975", "detected_licenses": [ "MIT" ], "directory_id": "008aded6026b1050b955b8744d3fa177a236e195", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <signal.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/ptrace.h> #include <getopt.h> #include <unistd.h> #include <stdint.h> static uint8_t running = 1; static void signal_handler(int signum) { if (signum == SIGI...
2.453125
2
2024-11-18T18:56:54.598747+00:00
2021-05-05T10:42:59
013a796ced5549a68d4e6ea093a5393357d0fe88
{ "blob_id": "013a796ced5549a68d4e6ea093a5393357d0fe88", "branch_name": "refs/heads/master", "committer_date": "2021-05-05T10:42:59", "content_id": "fcfaeec810535b3c10e5403879a688794afcf112", "detected_licenses": [ "Apache-2.0" ], "directory_id": "2cb61a00b283878be9aa0808e1961201f4b190fc", "extensio...
stackv2
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <stdlib.h> #include <string.h> #define WIN32_MEAN_AND_LEAN #define NOMINMAX #include <windows.h> #incl...
2.53125
3
2024-11-18T18:56:55.073261+00:00
2020-10-29T14:15:02
f0bf58372d5b470b6ddac2a7d703f07e65896493
{ "blob_id": "f0bf58372d5b470b6ddac2a7d703f07e65896493", "branch_name": "refs/heads/master", "committer_date": "2020-10-29T14:15:02", "content_id": "fffdf8ce9784a6c069f4a38613c5f73bca0e4acc", "detected_licenses": [ "MIT" ], "directory_id": "69e42e1dadfebdcca3e53bcbf44edd07c68ec609", "extension": "c"...
stackv2
#include "kupyna.h" #include "util.h" #include "stdlib.h" #include "string.h" #include "stdio.h" extern kupyna_config * kupyna; extern const size_t rows_count; extern size_t byte_size; extern const byte s_box[4][16][16]; extern size_t s_box_dimensions; extern byte mds_matrix[8][8]; /** * For inputed message return...
2.546875
3
2024-11-18T18:56:55.151121+00:00
2016-03-31T16:22:38
0574f4a564c27b293d115eaf3fd1fe804b5f569a
{ "blob_id": "0574f4a564c27b293d115eaf3fd1fe804b5f569a", "branch_name": "refs/heads/master", "committer_date": "2016-03-31T16:22:38", "content_id": "b9babba1fa40c6b97af6c9fe9b0a309f66fc2a19", "detected_licenses": [ "MIT" ], "directory_id": "bb8867628faa6f0963b0fe0211bc936bc2a8ad60", "extension": "c"...
stackv2
/* * primes.c: Example of prime numbers counting in OpenMP. * * (C) 2015 Mikhail Kurnosov <mkurnosov@gmail.com> */ #include <stdio.h> #include <math.h> #include <sys/time.h> #include <omp.h> const int a = 1; const int b = 20000000; double wtime() { struct timeval t; gettimeofday(&t, NULL); return (dou...
3.6875
4
2024-11-18T18:56:55.411239+00:00
2020-04-03T01:02:33
d5975ca6b193b5f2b7b6898167f10d48b820142f
{ "blob_id": "d5975ca6b193b5f2b7b6898167f10d48b820142f", "branch_name": "refs/heads/master", "committer_date": "2020-04-03T01:02:33", "content_id": "30200f738af85ea9095ec7b3a76c9fd4c851606c", "detected_licenses": [ "Unlicense" ], "directory_id": "957feaec593168a9e40491056459cf4451e6df8f", "extension...
stackv2
#include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <common.c> int main(int ArgCount, char *ArgVals[]) { if(ArgCount < 3) { char *ErrorMsg = "This program needs 2 arguments: FileToRead NewFile\n"; write(STDERR_FILENO, ErrorMsg, stringLength(ErrorMsg)); ...
2.84375
3
2024-11-18T18:56:55.578151+00:00
2018-04-03T06:23:21
6477055be13db8a89ac76dd25602a6a86e79fe0c
{ "blob_id": "6477055be13db8a89ac76dd25602a6a86e79fe0c", "branch_name": "refs/heads/master", "committer_date": "2018-04-03T06:23:21", "content_id": "1f5f1fbf431ba9f066bd22ffa4dce0a67d46f72a", "detected_licenses": [ "MIT" ], "directory_id": "3714a91ae98a13ac17613f117f7b791e0ca476d4", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* h_conversions.c :+: :+: :+: ...
2.28125
2
2024-11-18T18:56:55.653888+00:00
2019-10-03T12:01:21
7760c5575e3cab5c4a7ad5118426a2ae87e7e553
{ "blob_id": "7760c5575e3cab5c4a7ad5118426a2ae87e7e553", "branch_name": "refs/heads/master", "committer_date": "2019-10-03T12:01:21", "content_id": "7439b73407f629c34f8475441434edcf36b0bf20", "detected_licenses": [ "MIT" ], "directory_id": "f14205a2a5958cf96f445609645e7674fdee644f", "extension": "c"...
stackv2
/* * A collection of methods that makes working with Java objects easier. */ /** * Call a JNI method and return its jobject value. * * @param env The JNI environment. * @param j_object The jobject to call the method on. * @param j_class The class the method is defined in. * @param...
2.734375
3
2024-11-18T18:56:55.866768+00:00
2020-10-28T15:19:19
10c4ad0ee91db73b582044a9481176a7b886fe38
{ "blob_id": "10c4ad0ee91db73b582044a9481176a7b886fe38", "branch_name": "refs/heads/master", "committer_date": "2020-10-28T15:19:19", "content_id": "217aa0666ac86652d61a57bd7af1f057d7ec159b", "detected_licenses": [ "MIT" ], "directory_id": "fad58cf239c9aaa146710ab33e77473d750ff142", "extension": "c"...
stackv2
/** * Gasirea primelor n numere prime. * * Authors: PPT Team **/ #include<stdio.h> int main() { int n, i = 3, count, c; printf("Numarul de numere prime dorit: "); scanf("%d", &n); if (n >= 1) { printf("Primele %d numere prime sunt: ", n); printf("2 "); } for (count...
3.4375
3
2024-11-18T18:56:55.929099+00:00
2019-07-26T10:51:36
8ce42cd1214629b24494935f48c574ebeed84031
{ "blob_id": "8ce42cd1214629b24494935f48c574ebeed84031", "branch_name": "refs/heads/master", "committer_date": "2019-07-26T10:51:36", "content_id": "d8135a5c9df337d6499fa843b69d15d8a52b212d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b0c5308bfa8770d2b447f8bd859b7fdf84e2882d", "extensio...
stackv2
/*Copyright (c) 2019 , saberyjs@gmail.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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the foll...
2.15625
2
2024-11-18T18:56:56.541929+00:00
2021-06-28T18:29:27
578b0b93ff977cef4c962eee69e536a4f97e4025
{ "blob_id": "578b0b93ff977cef4c962eee69e536a4f97e4025", "branch_name": "refs/heads/master", "committer_date": "2021-06-28T18:29:27", "content_id": "a6e1b72c785da70d26ec6e771718b1a928c4c7e9", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "80c5cd87efd9a6069c81d4927edce35f752d4dd0", "extens...
stackv2
// Copyright (c) 2019, Raytheon BBN Technologies, Inc. All Rights Reserved. // // This document does not contain technology or Technical Data controlled under either // the U.S. International Traffic in Arms Regulations or the U.S. Export Administration // // Distribution A: Approved for Public Release, Distribution Un...
2.140625
2
2024-11-18T18:56:56.621575+00:00
2021-04-04T07:56:39
8e1cd9c9130ece0466035606f5baceb4ce3adb6f
{ "blob_id": "8e1cd9c9130ece0466035606f5baceb4ce3adb6f", "branch_name": "refs/heads/master", "committer_date": "2021-04-04T07:56:39", "content_id": "94c5c2a8b732e587a0ced6407867a7d1c363760c", "detected_licenses": [ "MIT" ], "directory_id": "feb08124b75d9115f87444fcc00d685e9a11d7a4", "extension": "c"...
stackv2
#include "block.h" static ivec2s get_texture_location(struct World *world, ivec3s pos, enum Direction d) { switch (d) { case UP: return (ivec2s) {{ 4, 2 }}; case DOWN: return (ivec2s) {{ 2, 0 }}; default: return (ivec2s) {{ 5, 2 }}; } } void podzol_i...
2.3125
2
2024-11-18T18:56:56.779092+00:00
2017-02-24T06:42:07
db90396728d43834d394ea4c8fd9a216ec018d81
{ "blob_id": "db90396728d43834d394ea4c8fd9a216ec018d81", "branch_name": "refs/heads/master", "committer_date": "2017-02-24T06:42:07", "content_id": "4e69485a8b6c297ea3aa612767357d582858723d", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "376a6fb2352781643d84f69027762eab3271e3ed", "extens...
stackv2
/* * Sample/test code for running a user program. You can use this for * reference when implementing the execv() system call. Remember though * that execv() needs to do more than this function does. */ #include <types.h> #include <kern/unistd.h> #include <kern/errno.h> #include <lib.h> #include <addrspace.h> #inc...
2.890625
3
2024-11-18T18:56:57.057253+00:00
2020-02-22T18:44:45
18936ca320f92b1bf1e0905dea8d8a372b8618cf
{ "blob_id": "18936ca320f92b1bf1e0905dea8d8a372b8618cf", "branch_name": "refs/heads/master", "committer_date": "2020-02-22T18:44:45", "content_id": "e7ae519f6d47cf16a566216d98dfecab60b35859", "detected_licenses": [ "MIT" ], "directory_id": "03864d4ab05c15e7bb87a25590ac752d3ccf0c5c", "extension": "c"...
stackv2
/* ************************************************************************** */ /* Implements in-memory file system. */ /* Uses lazy loading when reading from Disk */ /* All changes are immediately committed to to disk. ...
2.25
2
2024-11-18T18:56:57.159498+00:00
2020-11-23T15:35:39
d625157b9bd0901e220147335a6398d4473a0530
{ "blob_id": "d625157b9bd0901e220147335a6398d4473a0530", "branch_name": "refs/heads/main", "committer_date": "2020-11-23T15:35:39", "content_id": "5bc1fa6f3b216f238b414cdb027e1b6b8a0aa709", "detected_licenses": [ "Apache-2.0" ], "directory_id": "08e7524268c42aafc49a9642d4b18d86bf66f6ae", "extension"...
stackv2
#include <ctype.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <termios.h> #include <unistd.h> #define _DEFALUT_SOURCE #define _BSD_SOURCE #define _GNU_SOURCE #define YOUR_EDITOR_VERSION "0.0.1" // ctrl 组合键时,其编码会将对应按键第5,6位设置为0 #define CTRL_KEY(k) ((k)&...
2.703125
3
2024-11-18T18:56:57.237463+00:00
2018-09-07T01:00:13
d8106804ade5a35efd62fca156e02557e8ef3006
{ "blob_id": "d8106804ade5a35efd62fca156e02557e8ef3006", "branch_name": "refs/heads/master", "committer_date": "2018-09-07T01:00:13", "content_id": "13fc2b52b499175a7f95ddd596b333bd2c6dabca", "detected_licenses": [ "MIT" ], "directory_id": "bfe7ca76529dcfde26befdbd4140dc2f4789d926", "extension": "c"...
stackv2
#include "../../Include/rightClick.h" #include "../../Include/userInfo.h" #include "../../Include/chatWindow.h" /**************************************************/ /*名称:rightClick.c /*描述:定义右键菜单相关回调、显示、功能函数 /*作成日期: 2018-09-04 /*作者: 李文煜、万伯阳 /***************************************************/ extern int my_img_code; ...
2.21875
2
2024-11-18T18:56:57.337107+00:00
2022-04-03T15:47:09
ae31bf30aca3ff869bbd401ba76a84d106102511
{ "blob_id": "ae31bf30aca3ff869bbd401ba76a84d106102511", "branch_name": "refs/heads/master", "committer_date": "2022-04-03T21:52:54", "content_id": "ba39f592d16e6d1fe8c73f02bd15eb610a649727", "detected_licenses": [ "MIT" ], "directory_id": "e317ae18338e42fce6e6472222356bbc1620b4db", "extension": "c"...
stackv2
////////////////////////////////////////////////////////////////////////////// // INCLUDES ////////////////////////////////////////////////////////////////////////////// #include <stdlib.h> #include "CuTest.h" #include <stdio.h> #include "apx/port_connector_change_table.h" #include "apx/node_manager.h" #ifdef MEM_LEAK_...
2.125
2
2024-11-18T18:56:58.051073+00:00
2017-05-05T13:28:52
03ede7c0b918b2315e08caa6df038e7d722ebc6e
{ "blob_id": "03ede7c0b918b2315e08caa6df038e7d722ebc6e", "branch_name": "refs/heads/master", "committer_date": "2017-05-05T13:28:52", "content_id": "ff57549468325d5b12605bc1f90d43560a0b868d", "detected_licenses": [ "MIT" ], "directory_id": "ef1b263496b8cf73ba2986ba51ce7ac5225cd093", "extension": "h"...
stackv2
/* * The MIT License (MIT) * * Copyright (c) <2017> <Stephan Gatzka> * * 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 t...
2.09375
2
2024-11-18T18:56:58.172628+00:00
2019-12-14T17:30:32
db265b418d0597d413c2d0ab062c16971885e5a1
{ "blob_id": "db265b418d0597d413c2d0ab062c16971885e5a1", "branch_name": "refs/heads/master", "committer_date": "2019-12-14T17:30:32", "content_id": "6f3a7898f8138cbe3d1bc99e58cb6c8721648a1a", "detected_licenses": [ "MIT" ], "directory_id": "f70e7cd362bbf8ac43d3b9de4f9a67a60331694d", "extension": "c"...
stackv2
#include "commanddbmanager.h" #include "commands/test/test.h" #include "commands/reg/reg.h" #include "commands/io/io.h" #include "commands/inc_dec/inc_dec.h" #include "commands/end_chain/end.h" #include "commands/forloop/forloop.h" #include "commands/ifcondition/ifcondition.h" #include "commands/sdcard_cmds/sdcard_cmds...
2.046875
2
2024-11-18T19:20:24.537249+00:00
2021-05-27T16:18:33
f73778bff61203f280839b86a318716bb6555cb0
{ "blob_id": "f73778bff61203f280839b86a318716bb6555cb0", "branch_name": "refs/heads/kmp", "committer_date": "2021-05-27T16:18:33", "content_id": "8cfde415e0f5edad7e657ee449943edafc96594a", "detected_licenses": [ "MIT" ], "directory_id": "54d6fb37c9f64413797f67093b3f86f2f61dbe36", "extension": "c", ...
stackv2
#include <stdio.h> #include "nas_exp.h" main(){ double input1, input2; input1 = 22.18070977791824; input2 = 33; //scanf("%lf %lf", &input1, &input2); double a = exp(input1); printf("%20.20f",a); }
2.375
2
2024-11-18T19:50:40.936088+00:00
2018-03-06T11:19:49
d190069c3104baaf06f45b47ae8086a52b56f38d
{ "blob_id": "d190069c3104baaf06f45b47ae8086a52b56f38d", "branch_name": "refs/heads/master", "committer_date": "2018-03-06T11:19:49", "content_id": "15f5022fb67c2b39c74a4c095c77e607b41f220d", "detected_licenses": [ "MIT" ], "directory_id": "b29b03b4f456070ed818eaca7fc37d81a1331dea", "extension": "h"...
stackv2
// // LinearList.h // LinearList // // Created by Jacky on 18/1/9. // Copyright © 2018年 Song Guoxiang. All rights reserved. // #ifndef LinearList_h #define LinearList_h #include <stdio.h> typedef int LinearListNodeValue; // 线性表 typedef struct { int capacity;//容量 int length;//长度 LinearListNodeValue...
2.53125
3
2024-11-18T19:50:41.208063+00:00
2023-09-03T16:23:51
e0b491078a0c3b801715278c7f7bd323bb10f696
{ "blob_id": "e0b491078a0c3b801715278c7f7bd323bb10f696", "branch_name": "refs/heads/master", "committer_date": "2023-09-03T16:23:51", "content_id": "7bb7f759ccd1be355907e4b250517a08ec97592a", "detected_licenses": [ "MIT" ], "directory_id": "55cda2ebcfd995b9cf0c2eb4bb17b695bd24a6d1", "extension": "h"...
stackv2
#ifndef __CM3_REGS #define __CM3_REGS #include <stdint.h> #ifdef __cplusplus #define __I volatile /*!< Defines 'read only' permissions */ #else #define __I volatile const /*!< Defines 'read only' permissions */ #endif #define __O volatile ...
2.125
2
2024-11-18T19:50:41.270106+00:00
2021-05-29T21:54:27
13afe9476e3f439573d09f3b7895b9ee3666957b
{ "blob_id": "13afe9476e3f439573d09f3b7895b9ee3666957b", "branch_name": "refs/heads/main", "committer_date": "2021-05-29T21:54:27", "content_id": "dd965841a5816a36aa5598c457fde92785efabb2", "detected_licenses": [ "MIT" ], "directory_id": "bbef250b043b245e2cdcb3c7dbb713d4d2840b4d", "extension": "c", ...
stackv2
#include "tree.h" #include <stdlib.h> Tree* init_tree(void) { Tree* tree = (Tree*)malloc(sizeof(Tree)); tree->root = NULL; return tree; } void register_cmpFn(Tree* tree, int (*cmpFn)(void*, void*)) { tree->cmpFn = cmpFn; } void register_tree_key_matchFn(Tree* tree, int (*key_matchFn)(void*, void*)) { tree-...
3.234375
3
2024-11-18T17:55:01.039622+00:00
2016-06-09T10:31:48
f3447830d2c6fd581bc22a2c94944e2aff25992a
{ "blob_id": "f3447830d2c6fd581bc22a2c94944e2aff25992a", "branch_name": "refs/heads/master", "committer_date": "2016-06-09T10:31:48", "content_id": "2993f7ccf9ae78193b3e951b2ff53af5ccc14634", "detected_licenses": [ "MIT" ], "directory_id": "5b306e0e0d144a4fe30dc738bd08f475648b12b9", "extension": "c"...
stackv2
// Author: Jake Longo // Description: Code based on the Intel AES-NI reference doc // #include <stdint.h> #include <wmmintrin.h> #ifndef _WIN32 #include <x86intrin.h> #endif #include "intel_impl.h" inline __m128i AES_128_ASSIST (__m128i temp1, __m128i temp2) { __m128i temp3; temp2 = _mm_shuffle_epi32 (temp2 ,0...
2.25
2
2024-11-18T17:55:01.160244+00:00
2021-11-02T22:15:50
79f705d2606b85256dab4b4b7f8207b9eb363e60
{ "blob_id": "79f705d2606b85256dab4b4b7f8207b9eb363e60", "branch_name": "refs/heads/master", "committer_date": "2021-11-03T20:37:39", "content_id": "9ef55f6146282e86f2a00c94873b9ad9447895ba", "detected_licenses": [ "MIT" ], "directory_id": "6486481932cab2fe6ff03a394c5dcf524f75ba15", "extension": "c"...
stackv2
#include "zip.h" #include "../../util.h" #include <zip.h> #include <unzip.h> #include <ioapi_mem.h> typedef struct { union { unzFile u; zipFile z; } file; ourmemory_t* ourmem; enum IFileMode mode; } ctx_t; #define PRIVATE_TO_CTX ctx_t* ctx = (ctx_t*)_private #define IFILE_TO_CTX ctx_...
2.453125
2
2024-11-18T17:55:01.414043+00:00
2018-05-02T14:46:59
2775e37f4bc91d12f15c87cfde8f1af615d60389
{ "blob_id": "2775e37f4bc91d12f15c87cfde8f1af615d60389", "branch_name": "refs/heads/master", "committer_date": "2018-05-02T14:46:59", "content_id": "2d246187766888f1d2ec127b0cd2105536d8d57a", "detected_licenses": [ "MIT" ], "directory_id": "ab9726c5128c4e791409a5db3cbc3c6819cb7ee0", "extension": "h"...
stackv2
#include "OneWire.h" #include "GenericTypeDefs.h" #ifndef __DS2781_H #define __DS2781_H /* * DS2781 sensor handle * */ typedef struct { OW ow; //< One wire interface handle } __DS2781, *DS2781; /* * Initialize the battery voltage and current sensor * * @param port - Port of data line * @param pin - Pin nu...
2.28125
2
2024-11-18T17:55:02.441750+00:00
2023-02-16T11:27:40
e217e99fd5ef319f6b3104cf10c7b61b3ec5289b
{ "blob_id": "e217e99fd5ef319f6b3104cf10c7b61b3ec5289b", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "a5b408716ec404bca80f90646cf8731dd67c77f8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/** * @file * @brief ADC public API header file. */ /* * Copyright (c) 2018 Nordic Semiconductor ASA * Copyright (c) 2015 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_H_ #define ZEPHYR_INCLUDE_DRIVERS_ADC_H_ #include <zephyr/device.h> #include <zephyr/dt-bin...
2.421875
2
2024-11-18T17:55:03.221224+00:00
2020-04-14T15:31:43
af4fafdeba26d43e6e45c38d872b907c21622e74
{ "blob_id": "af4fafdeba26d43e6e45c38d872b907c21622e74", "branch_name": "refs/heads/master", "committer_date": "2020-04-14T15:31:43", "content_id": "4bbcf55c49cc330cd9e9ac14298c7ed69bee200a", "detected_licenses": [ "Unlicense" ], "directory_id": "70a22b3cf5256c99432539d1f490a8357e94bb7f", "extension...
stackv2
#include <stdlib.h> #include "base64.h" static char base64_alphabet[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v'...
2.640625
3
2024-11-18T17:55:03.356324+00:00
2015-04-21T05:23:04
b2dfde59df2d694ba02c0941098de685c097b959
{ "blob_id": "b2dfde59df2d694ba02c0941098de685c097b959", "branch_name": "refs/heads/master", "committer_date": "2015-04-21T05:23:04", "content_id": "05e5d18ae33b237dafa595b801848c9c39d33e9c", "detected_licenses": [ "MIT" ], "directory_id": "cf3e3ef75ba8b0e27ef64a50e4446a2957f49358", "extension": "c"...
stackv2
#include <errno.h> #include <signal.h> #include <sys/prctl.h> #include <unistd.h> #include <stdlib.h> #include <bluetooth/bluetooth.h> #include <bluetooth/hci.h> #include <bluetooth/hci_lib.h> #include "utility.h" #define ATT_CID 4 #define BDADDR_LE_PUBLIC 0x01 struct sockaddr_l2 { sa_family_t l2_family...
2.140625
2
2024-11-18T17:55:03.549155+00:00
2023-08-16T08:50:33
16b5729fefc94e0789635d77f8bb06fa9610afb9
{ "blob_id": "16b5729fefc94e0789635d77f8bb06fa9610afb9", "branch_name": "refs/heads/master", "committer_date": "2023-08-18T09:13:27", "content_id": "add1588791a3fafb3b39c211793b656646fddd69", "detected_licenses": [ "Apache-2.0" ], "directory_id": "55540f3e86f1d5d86ef6b5d295a63518e274efe3", "extensio...
stackv2
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #ifndef HAL_SPI_H #define HAL_SPI_H #define HAL_SPI_MODE_MASTER 1 /* spi communication is master mode */ #define HAL_SPI_MODE_SLAVE 2 /* spi communication is slave mode */ typedef struct { uint8_t mode; /* spi communication mode */ ...
2.34375
2
2024-11-18T17:55:03.610006+00:00
2023-01-30T10:03:23
5383416d2bda2cd135430cf7d24498ad9ce732eb
{ "blob_id": "5383416d2bda2cd135430cf7d24498ad9ce732eb", "branch_name": "refs/heads/main", "committer_date": "2023-01-30T10:03:23", "content_id": "626933b70d06fdd6160d4c6f6adcddbd70fd7802", "detected_licenses": [ "MIT" ], "directory_id": "d0dc556f8b1d18ecbadef182bafd97b632dd3104", "extension": "c", ...
stackv2
#include <stdio.h> #include <freertos/FreeRTOS.h> #include <freertos/task.h> #include <esp_system.h> #include <tsl2561.h> #include <string.h> #if defined(CONFIG_IDF_TARGET_ESP8266) #define SDA_GPIO 4 #define SCL_GPIO 5 #else #define SDA_GPIO 18 #define SCL_GPIO 19 #endif #if defined(CONFIG_IDF_TARGET_ESP32S2) #define...
2.34375
2
2024-11-18T17:55:04.069181+00:00
2017-01-05T07:29:27
81ba0e79dd90fb1e1c20b1e1821b3230f7205edd
{ "blob_id": "81ba0e79dd90fb1e1c20b1e1821b3230f7205edd", "branch_name": "refs/heads/master", "committer_date": "2017-01-05T07:29:27", "content_id": "bd9d10873734947392244cdd6e2291680539ad9b", "detected_licenses": [ "MIT" ], "directory_id": "e4b6d23207da164d740803ff1f6a4a36949adc3e", "extension": "c"...
stackv2
#include <stdlib.h> #include "poly_operation.c" //#include "extend_euc.c" poly *lagrangePolynomial(int *point, int numofpoint, int q) { int x,j; unsigned sum, jx; poly *px=setpoly(0,0); poly *form; poly *tmp; for(j=0;j<numofpoint;j++){ sum=1; form=setpoly(1,0); for(x=0;x<numofpoint;x++){ if(x==j) x++; ...
2.390625
2
2024-11-18T17:55:04.398769+00:00
2020-04-15T20:58:21
6c8a854f4db09441317f5729b4f4c62afe195cf8
{ "blob_id": "6c8a854f4db09441317f5729b4f4c62afe195cf8", "branch_name": "refs/heads/master", "committer_date": "2020-04-15T20:58:21", "content_id": "eb94ec6a7ddd8cab35a832aacb83c8d385749ebb", "detected_licenses": [ "MIT" ], "directory_id": "ebc700cb11b49d5319544d3f7bbc8882250a8e5a", "extension": "c"...
stackv2
#include "Interrupt0.h" // INT 0 ///////////////////////////////////////////////// __interrupt(0*8+3) void Interrupt0IntHandler( void ) { Interrupt0(); } void InitInterrupt0( void ) { IT0 = 1; EX0 = 1; /* Enable Int0 interrupt */ } void EnableInt0Interrupt( void ) { EX0 = 1; /* Enable time...
2.5
2
2024-11-18T17:55:04.626009+00:00
2021-05-29T13:56:08
1e97749c1ed94b734bb87a20a7449b9e2f26c150
{ "blob_id": "1e97749c1ed94b734bb87a20a7449b9e2f26c150", "branch_name": "refs/heads/main", "committer_date": "2021-05-29T13:56:08", "content_id": "9ecf31d729776cda06d1911b97e31b0a606125f4", "detected_licenses": [ "MIT" ], "directory_id": "14b3a0d91284d5c929b113f351799f0e3361a327", "extension": "c", ...
stackv2
/* Programa: limpa.c Autor: Liviu Gabriel Anghel Objetivo: limpar tela Aprender usar clrscr(); Data: 14/05/2002 */ /* Bibliotecas usadas pelo programa */ #include <stdio.h> #include <conio2.h> void main (void) { char s[80]; puts("Entre com uma frase"); gets(s); puts("Aperta qualquer tecla para limpa...
3.046875
3
2024-11-18T17:55:04.957558+00:00
2015-05-01T08:41:31
08cf7647647b868e4ff1fa118fce2e1af9b0816a
{ "blob_id": "08cf7647647b868e4ff1fa118fce2e1af9b0816a", "branch_name": "refs/heads/master", "committer_date": "2015-05-01T08:41:31", "content_id": "f0cf6f660a75e04349068b9055a3884efd5e663d", "detected_licenses": [ "MIT" ], "directory_id": "2c5ce2b5deb73aa8fef4b984f9534bbb2ef33c98", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <ctype.h> void printPrimeFactorsAsString(int input) { int first = 1; for(int i = 2; i <= input; ++i) { if(input % i == 0) { int notPrime = 0; for(int j = 2; j <= i; ++j) { if(i % j == 0 && i != j) { notPrime = 1; break; } } if(...
3.4375
3
2024-11-18T17:55:05.025214+00:00
2019-08-16T20:38:59
bda0f85b324737ebda16e99a00900145061e83cd
{ "blob_id": "bda0f85b324737ebda16e99a00900145061e83cd", "branch_name": "refs/heads/ms-iot", "committer_date": "2019-08-16T20:38:59", "content_id": "1cc9a6107301a475b7327e9124fae9e882a76e67", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "c695e8d1b85094e180b05c8782bd81f2a182fe72", "extens...
stackv2
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2014-2019, Linaro Limited */ #include <assert.h> #include <crypto/crypto.h> #include <crypto/crypto_impl.h> #include <stdlib.h> #include <tee_api_types.h> #include <tee/tee_cryp_utl.h> #include <util.h> /* From libtomcrypt doc: * Ciphertext stealing is a...
2.40625
2
2024-11-18T17:55:05.304893+00:00
2019-08-12T21:38:44
0045a7f34975d9e643ce97203aaca3771d86ad52
{ "blob_id": "0045a7f34975d9e643ce97203aaca3771d86ad52", "branch_name": "refs/heads/ms-iot", "committer_date": "2019-08-12T21:38:44", "content_id": "83fcdf4f1a7742fab38b38b9467864d6c8f319c2", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "b3f4553cea6babe8b25ed0bc0865130c69cd5c72", "extens...
stackv2
/** @file Provides the basic interfaces to abstract a PCI Host Bridge Resource Allocation Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distrib...
2.140625
2
2024-11-18T17:55:05.472124+00:00
2021-05-31T10:23:43
32af3874b2ff17796f7318808c9db2b5a57e635b
{ "blob_id": "32af3874b2ff17796f7318808c9db2b5a57e635b", "branch_name": "refs/heads/master", "committer_date": "2021-05-31T10:23:43", "content_id": "ae70a79f7e3d43eb99d748773e6d29902cb5ac47", "detected_licenses": [ "Apache-2.0" ], "directory_id": "40e2c30062b0fbac739feae547b5f8827692b114", "extensio...
stackv2
/* * Copyright (c) 2021 Sagar Khadgi <sagar.khadgi@gmail.com> * * SPDX-License-Identifier: Apache-2.0 */ #include <init.h> #include "icicle_sys.h" #include "encoding.h" #include "mss_sysreg.h" #include "mss_plic.h" #include "mss_gpio.h" inline void PLIC_init(void); /* Selects the 16MHz oscilator on the HiFive1 b...
2.234375
2
2024-11-18T17:55:05.540536+00:00
2020-10-07T02:35:18
3b851b282463b6cacb6e8f833ab419983964e6f5
{ "blob_id": "3b851b282463b6cacb6e8f833ab419983964e6f5", "branch_name": "refs/heads/master", "committer_date": "2020-10-07T02:35:18", "content_id": "8f24b94b6d3825c6fefc8811ee205966248eb051", "detected_licenses": [ "MIT" ], "directory_id": "49acd1bf41c9651967e492f8294c8280bcf303e0", "extension": "h"...
stackv2
/* KallistiOS ##version## include/kos/genwait.h Copyright (C) 2003 Dan Potter Copyright (C) 2012 Lawrence Sebald */ /** \file kos/genwait.h \brief Generic wait system. The generic wait system in KOS, like many other portions of KOS, is based on an idea from the BSD kernel. It allows you to s...
2.65625
3
2024-11-18T17:55:05.631144+00:00
2018-09-16T05:55:20
757fda9d6c0c572baedaf8a592936abbde0ee947
{ "blob_id": "757fda9d6c0c572baedaf8a592936abbde0ee947", "branch_name": "refs/heads/master", "committer_date": "2018-09-16T05:55:20", "content_id": "0ec14147fa61fa25d9ce4d908793c021d4eb9930", "detected_licenses": [ "MIT" ], "directory_id": "c24d59229b0d4a393cdc822a193a3f5880c186a0", "extension": "cp...
stackv2
/** * tbh.c - A implementation of the Take Back Half algorithm * Copyright (c) Brendan McGuire 2016. All Rights Reserved. * This code has been created for Vex 3796B "Some Assembly Required" * @TODO: Compile on an actual Windows Machine * @TODO: Implement a point system to allow mulitple TBH controlled systems */ ...
2.640625
3
2024-11-18T17:55:05.699751+00:00
2017-05-16T20:50:06
154bccf4ad2947c5b6efd0f0eea57767679b9258
{ "blob_id": "154bccf4ad2947c5b6efd0f0eea57767679b9258", "branch_name": "refs/heads/master", "committer_date": "2017-05-16T20:50:06", "content_id": "2a8e44fa6a92046a0d1e601518cab35f0630a2e2", "detected_licenses": [ "MIT" ], "directory_id": "9443642b0b07c4369eaabaf264b225d5423c0ee2", "extension": "h"...
stackv2
/* * ssl.h -- Header file for System Service Layer * * Copyright 2016 Microsemi Inc. */ #ifndef __SSL_H__ #define __SSL_H__ /** * \file include/ssl.h * \brief System Service Layer. * * System Service Layer is combination of 3 header files : * * ssl.h - Master file that prototypes functions and data structure...
2.15625
2
2024-11-18T17:55:05.857472+00:00
2023-07-19T17:59:18
0d431ec44da0d1f28b63bfb9c52db9f865912eff
{ "blob_id": "0d431ec44da0d1f28b63bfb9c52db9f865912eff", "branch_name": "refs/heads/main", "committer_date": "2023-07-19T17:59:18", "content_id": "f4c12cbecb5d2ced1edf00bc914bf0e0551cf362", "detected_licenses": [ "MIT" ], "directory_id": "b960df3e90501dfe59dbfb18a8255127a9197c93", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "tandem_chain.h" #include "edlib_align.h" #include "abpoa_cons.h" #include "ksw2_align.h" #include "utils.h" // pos: 0-base int *partition_seqs_core(char *seq, int seq_len, int8_t *hit_array, int est_period, int chain_start, int chain_end, int *par_n) {...
2.453125
2
2024-11-18T17:55:05.933126+00:00
2020-10-06T22:04:44
8271583c168d3e11f27b86fb49c4257d6cbccdf9
{ "blob_id": "8271583c168d3e11f27b86fb49c4257d6cbccdf9", "branch_name": "refs/heads/master", "committer_date": "2020-10-06T22:04:44", "content_id": "096cdb76fd222c6b6c24dc487680c368ec488ea9", "detected_licenses": [ "BSD-3-Clause-Clear" ], "directory_id": "233a8c65e2936cb9323802764c62f4c5a1742389", "...
stackv2
/* * This is a practice program to assign, write to, and read from a 2D array */ #include <stdio.h> #include "../headers/get_line.h" #include <stdlib.h> #define MAX 10 int main() { /* first we need to set up the array(s) */ int d[10][MAX]; /* hold up to 10 MAX length strings */ int x,y; /* length of the input ...
3.640625
4
2024-11-18T17:55:05.991943+00:00
2020-10-17T15:50:54
f53f0d42e7ec2c918517d3f7a0287a8efa7ad804
{ "blob_id": "f53f0d42e7ec2c918517d3f7a0287a8efa7ad804", "branch_name": "refs/heads/main", "committer_date": "2020-10-17T15:50:54", "content_id": "cbc9515c94a9f665f435c86c573182552cd5adce", "detected_licenses": [ "MIT" ], "directory_id": "760f4e5984425799743a14ceb4a4644fd10e9780", "extension": "c", ...
stackv2
/* * parabola.c * A parabola is drawn by approximating the curve with a line strip. */ #include <GL/glut.h> #include <math.h> #include <stdio.h> // The number of vertices taken from the parabola to be // joined line strip is 2M+1. Increase M for a finer approximation. #define M 3 void init (void) { glClearCo...
3.09375
3
2024-11-18T17:55:06.087894+00:00
2018-03-27T10:24:11
875b4edca0f905f17524538bc7d31001b9e8c059
{ "blob_id": "875b4edca0f905f17524538bc7d31001b9e8c059", "branch_name": "refs/heads/master", "committer_date": "2018-03-27T10:24:11", "content_id": "8cb3f850b9722f97afea3448e3446800f520ab9e", "detected_licenses": [ "MIT" ], "directory_id": "a45d143f79514a548f7ded776a733d7ccaa8ebda", "extension": "c"...
stackv2
// C program for linked list implementation of stack #include <stdio.h> #include <stdlib.h> #include <limits.h> struct StackNode{ int data; struct StackNode* next; }; typedef struct StackNode SNODE; //creation of new node in stack SNODE* newNode(int data){ SNODE* snode=(SNODE*)malloc(sizeof(SNODE)); snode->...
4
4
2024-11-18T17:55:06.354752+00:00
2016-12-11T21:47:24
76395830e3bb9a56f9613b938a3820d1fa1c43bd
{ "blob_id": "76395830e3bb9a56f9613b938a3820d1fa1c43bd", "branch_name": "refs/heads/master", "committer_date": "2016-12-11T21:47:24", "content_id": "f0dfee015f1ffff69690124ab025866d53fc3e31", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e88683c6a8f7ae1e76ecf051c8c700544635affa", "extensio...
stackv2
/* * BME 464 - EMG Decoder * * Decodes signals from two EMG leads and sends result to an external interface * */ #include "Lcd.h" #include <delays.h> //delay header #include <p18f46k22.h> //chip header #include <stdio.h> #pragma config FOSC = INTIO67 // Internal OSC block, Port Function on RA6/7 #pragma confi...
2.78125
3
2024-11-18T17:55:06.438479+00:00
2021-09-15T15:16:35
d2d42bde4cbfae4ed4a147e6573c402c9d2d3110
{ "blob_id": "d2d42bde4cbfae4ed4a147e6573c402c9d2d3110", "branch_name": "refs/heads/master", "committer_date": "2021-09-15T15:16:35", "content_id": "5533a851eddb62a3349b3820735d8f4504cefe6c", "detected_licenses": [ "MIT" ], "directory_id": "09f96edf66b25e25a3eace7482ebba10a8ba70f3", "extension": "h"...
stackv2
#ifndef _fastassign_h_INCLUDED #define _fastassign_h_INCLUDED #define FAST_ASSIGN #include "inline.h" #include "inlineassign.h" static inline void kissat_fast_binary_assign (kissat * solver, const bool probing, const unsigned level, value * values, assigned * assigned, bool redundant, unsigned lit,...
2.078125
2
2024-11-18T17:55:06.517381+00:00
2016-08-22T09:56:13
6bccf3802d79b00651db385d75dc9e3398e48758
{ "blob_id": "6bccf3802d79b00651db385d75dc9e3398e48758", "branch_name": "refs/heads/master", "committer_date": "2016-08-22T09:56:13", "content_id": "064e29d22191038c3760632a4d495aaa4734219a", "detected_licenses": [ "MIT" ], "directory_id": "94a99e0154a77a46a2f44e9ad2f8951aa4bc0a2b", "extension": "c"...
stackv2
/*Q2 - Lab 19/03/2013 - pg146 - Q8 Kieran Hogan - DT228/1*/ #include <stdio.h> #include <string.h> /*Declare structure template*/ struct date_rec { int day; int month; int year; }; struct date_rec current_date; int main(void) { flushall(); getchar(); return 0; }//end main
2.375
2
2024-11-18T17:55:07.161598+00:00
2023-03-13T19:34:34
65d0cfec7527c17abb1d3ced608d0eb71a986dcc
{ "blob_id": "65d0cfec7527c17abb1d3ced608d0eb71a986dcc", "branch_name": "refs/heads/v1.0.x", "committer_date": "2023-03-13T19:34:34", "content_id": "b407d19e73355531c14f10e7a99bd56871b6c05c", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "1a5ee9578a794aea1ff6e731a9b25ca8cb92af09", "extens...
stackv2
#include "sys/icc_tx.h" #include "sys/icc.h" #include "sys/scheduler.h" #include "xil_io.h" #include <stdint.h> #define TASK_ICC_TX_UPDATES_PER_SEC (10000) #define TASK_ICC_TX_INTERVAL_USEC (USEC_IN_SEC / TASK_ICC_TX_UPDATES_PER_SEC) // Scheduler TCB which holds task "context" static task_control_block_t tcb; #def...
2.40625
2
2024-11-18T17:55:08.767299+00:00
2015-07-02T05:33:14
19671597e3cd5ca60a20cd9305a7f4b952ea86c0
{ "blob_id": "19671597e3cd5ca60a20cd9305a7f4b952ea86c0", "branch_name": "refs/heads/master", "committer_date": "2015-07-02T05:33:14", "content_id": "3dcb1786c01eecb3e8efca22012e357375132e9f", "detected_licenses": [ "BSD-4-Clause-UC" ], "directory_id": "edf20ceb4b41f8b6bd0fcadba354bebf950e1fdf", "ext...
stackv2
/* Copyright (c) 2009, 2010 The Regents of the University of California * Barret Rhoden <brho@cs.berkeley.edu> * See LICENSE for details. * * Default implementations and global values for the VFS. */ #include <vfs.h> // keep this first #include <sys/queue.h> #include <assert.h> #include <stdio.h> #include <atomic....
2.21875
2
2024-11-18T17:55:09.345547+00:00
2016-01-27T17:19:21
2e3d48c73298d8c67d8b5dfb95f2262cbb04789d
{ "blob_id": "2e3d48c73298d8c67d8b5dfb95f2262cbb04789d", "branch_name": "refs/heads/master", "committer_date": "2016-01-27T17:19:21", "content_id": "7fa63e0bcad8ba6abe5abb492b54b09cec024dee", "detected_licenses": [ "MIT" ], "directory_id": "649edc1598dbe9f17462ece9992295cb0832f274", "extension": "c"...
stackv2
#include <stdio.h> #define CELLS 20 #define MAX_LOOP 1000 void next_generation (int *,int *, int); void print_gen(int *,int); int main () { int Current[CELLS],Next[CELLS]; int main_length,counter,n,main_counter; char check; do { scanf("%d",&main_length); }while (main_length>=20 || main_length <= 0); for ...
3.5625
4
2024-11-18T17:55:09.493392+00:00
2020-09-18T00:14:49
070d1900710ab2f46d734f168bb8a8c30971e92a
{ "blob_id": "070d1900710ab2f46d734f168bb8a8c30971e92a", "branch_name": "refs/heads/master", "committer_date": "2020-09-18T00:14:49", "content_id": "febf3e1d73191091ddb8775fcc60ca1eb5143d10", "detected_licenses": [ "MIT" ], "directory_id": "0f611eb6e43627ac32fb15f599b3cae4104a339d", "extension": "c"...
stackv2
#include "./includes/main.h" Deque *dqcreate(void) { Deque *deque = malloc(sizeof(Deque)); assert(deque); deque->head = deque->tail = NULL; deque->size = 0; return deque; } void dqpshHead(Deque *deque, int key) { Node *node = malloc(sizeof(Node)); assert(node); node->key = key; node->next = deque->head; n...
3.140625
3
2024-11-18T17:55:09.564518+00:00
2022-12-13T20:43:38
e4876056040e73f8d9b8fd09c716309db59004dc
{ "blob_id": "e4876056040e73f8d9b8fd09c716309db59004dc", "branch_name": "refs/heads/master", "committer_date": "2022-12-13T20:43:38", "content_id": "523d7779940e4d202d815ab99ac903ae8d6c5cc9", "detected_licenses": [ "MIT" ], "directory_id": "f66bd0290b806ecb34fe4e08a38be04417be4322", "extension": "c"...
stackv2
/* * File name: lib_flash.c * Date first: code clipped from lib_log * Date last: 10/18/2018 * * Description: Library for Flash memory functions * * Author: Richard Hodges * * Copyright (C) 2018 Richard Hodges. All rights reserved. * Permission is hereby granted for any use. * ******************...
2.59375
3
2024-11-18T17:55:09.628650+00:00
2019-11-08T01:23:42
c38ab3afc4a7a19dad712e7d87d40e1568028c3f
{ "blob_id": "c38ab3afc4a7a19dad712e7d87d40e1568028c3f", "branch_name": "refs/heads/master", "committer_date": "2019-11-08T01:23:42", "content_id": "1f69fbc0641be5f0ef72f65bc271c911101ffcdc", "detected_licenses": [ "BSL-1.0" ], "directory_id": "ef33c6f2e330d465ce0c88f62295e446adb8db31", "extension":...
stackv2
/** * @file machines.c * @brief Defines names the machines types in the COFF specification. * * `machines.c` defines names for the machines recognised by the COFF * specification, and string representations of their names. * * `machines.c` also provides a function to get the name of a machine from its' * mach...
2.578125
3
2024-11-18T17:55:09.701809+00:00
2019-03-01T05:16:46
5a98dfb498dc85e845345bdd89d28b7435055f98
{ "blob_id": "5a98dfb498dc85e845345bdd89d28b7435055f98", "branch_name": "refs/heads/master", "committer_date": "2019-03-01T05:16:46", "content_id": "560f3b7f4d425cbd99e09d6404c7c3b166fe98d1", "detected_licenses": [ "MIT" ], "directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f", "extension": "c"...
stackv2
// 玩家任務:deliver.c #include <ansi.h> #include <quest.h> inherit QUEST_OB; #define QOB my["qob"] #define NPC1 my["npc1"] #define NPC2 my["npc2"] #define QOB_NAME my["qob_name"] #define QOB_UNIT my["qob_unit"] #define NPC1_NAME my["npc1_name"] #define NPC2_NAME ...
2.265625
2
2024-11-18T17:55:09.847636+00:00
2023-08-29T08:33:01
0ef8e2353da39b037eeb520cebd769b6ea157d14
{ "blob_id": "0ef8e2353da39b037eeb520cebd769b6ea157d14", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T08:33:01", "content_id": "a761b5af884de27a66909ecbb838c2be1e308919", "detected_licenses": [ "MIT" ], "directory_id": "ed7189bcb31973648dca4cb9f0d67cb4653d0e70", "extension": "c"...
stackv2
/* $NetBSD: conj.c,v 1.2 2010/09/15 16:11:29 christos Exp $ */ /* * Written by Matthias Drochner <drochner@NetBSD.org>. * Public domain. * * imported and modified include for newlib 2010/10/03 * Marco Atzeri <marco_atzeri@yahoo.it> */ /* FUNCTION <<conj>>, <<conjf>>---complex conjugate INDEX c...
2.234375
2
2024-11-18T17:55:10.992028+00:00
2016-06-11T05:57:22
304cb4a8139d8221f132d72c64f93d14ae43a0dd
{ "blob_id": "304cb4a8139d8221f132d72c64f93d14ae43a0dd", "branch_name": "refs/heads/master", "committer_date": "2016-06-11T05:57:22", "content_id": "6c51760b49f17852a7594d07ce589de5ee188246", "detected_licenses": [ "MIT" ], "directory_id": "abdf361d4fdb85b9dac065fbbd70366ad6d52c0d", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <time.h> int solve(time_t actual, time_t expected) { struct tm a = *gmtime(&actual); struct tm e = *gmtime(&expected); if (difftime(actual, expected) <= 0.0) { return 0; } if (a.tm_year == e.tm_year) { if (a.tm_mon == e.tm...
2.59375
3
2024-11-18T17:55:12.377068+00:00
2020-12-09T14:18:28
ef3fc96931c425c72601f63494d11aa4eb344b7d
{ "blob_id": "ef3fc96931c425c72601f63494d11aa4eb344b7d", "branch_name": "refs/heads/master", "committer_date": "2020-12-09T14:18:28", "content_id": "a6c66ba129fc7038b83e1a9bac0ab0aebcd85ec6", "detected_licenses": [ "MIT" ], "directory_id": "9f128fe6885188d7c5c95b1cb6c627cdde568d96", "extension": "c"...
stackv2
#include <stdio.h> #include <sys/time.h> #include <time.h> #include <string.h> #include <stdlib.h> // #include "tools.h" // #include "testsuit.h" // typedef struct timeval time_ptr_t; // bool is_prime(int value, int* known, size_t size) // { // size_t i; // bool prime = true; // int divisor = 0; // i...
2.625
3
2024-11-18T17:55:12.878969+00:00
2017-05-09T11:38:16
70121bb25b027181cad63f6048080ba3f5f44586
{ "blob_id": "70121bb25b027181cad63f6048080ba3f5f44586", "branch_name": "refs/heads/master", "committer_date": "2017-05-09T11:38:16", "content_id": "494ac1e55ccbbc3aeb4f87fa0ccd60ebc593c60a", "detected_licenses": [ "MIT" ], "directory_id": "ea9b639c01882f52e1448c7fe8bd6a42c1d82073", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> typedef enum type { Number, Add, Subtract, Multiply, Divide, OpenParen, CloseParen } type_t; // O(1) char* type_name(type_t type) { switch (type) { case Number: return "Number"; case Add: return "Add"; ...
3.203125
3
2024-11-18T17:55:13.054525+00:00
2015-07-24T04:02:49
88b128519641d90ac2fda7d252cad4f35fe8758f
{ "blob_id": "88b128519641d90ac2fda7d252cad4f35fe8758f", "branch_name": "refs/heads/master", "committer_date": "2015-07-24T04:02:49", "content_id": "71bb46596b84de827ae69d4f209f7566661e2c90", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "b7bedb7c323d0ebd4c70d662cf85829cdcc21132", "extens...
stackv2
/** * \file talloc.c * \date 2015 */ #if defined(_WIN32) # define _CRT_SECURE_NO_WARNINGS # define CHDIR _chdir #include <direct.h> #else # define _XOPEN_SOURCE 600 # define CHDIR chdir #include <unistd.h> #endif/*defined(_WIN32)*/ #include "unittest.h" /* STDLIB includes */ #include <stdlib.h> #include <...
2.59375
3
2024-11-18T17:55:14.730304+00:00
2023-08-29T03:30:48
baff63cc33aa6dc66c2ca44fbbd8cf53f646855e
{ "blob_id": "baff63cc33aa6dc66c2ca44fbbd8cf53f646855e", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T03:30:48", "content_id": "7aeaa18198b4d5000032a705627870e3609665ce", "detected_licenses": [ "MIT" ], "directory_id": "ad3f34546afba57daf888798ad2d29db0361dcca", "extension": "h"...
stackv2
/* Defines the standard integer types that are used in code */ /* for the x86 processor and Borland Compiler */ #ifndef _STDINT_H #define _STDINT_H #include <stddef.h> //typedef unsigned char uint8_t; /* 1 byte 0 to 255 */ //typedef signed char int8_t; /* 1 byte -127 to 127 */ //typedef unsigned short uint16_t...
2.390625
2
2024-11-18T17:55:14.812318+00:00
2023-04-07T20:52:26
ba331e736841c784e01a1cf6030dfbf5d4823886
{ "blob_id": "ba331e736841c784e01a1cf6030dfbf5d4823886", "branch_name": "refs/heads/master", "committer_date": "2023-04-07T20:52:26", "content_id": "756eaa171ff126deada568b5399fecb964792eeb", "detected_licenses": [ "MIT", "BSD-3-Clause" ], "directory_id": "c55d33ff376cd6ff07333d6ee0be053f62de9a76"...
stackv2
#ifndef MYCLOSESOCKET_H #define MYCLOSESOCKET_H inline int myclosesocket(SOCKET& hSocket) { if (hSocket == INVALID_SOCKET) { return WSAENOTSOCK; } #ifdef WIN32 int ret = closesocket(hSocket); #else int ret = close(hSocket); #endif hSocket = INVALID_SOCKET; return ret; } #define closesocket(s) myclosesocke...
2
2
2024-11-18T17:55:14.901878+00:00
2021-03-01T13:50:49
83ab398cc231ec395768e6270674be08a811c0a1
{ "blob_id": "83ab398cc231ec395768e6270674be08a811c0a1", "branch_name": "refs/heads/master", "committer_date": "2021-03-01T13:50:49", "content_id": "417555562e9bbf8ba64fe26bf75c0db74087d7f9", "detected_licenses": [ "MIT" ], "directory_id": "dc9873ef446bb21ebce2168b480639991f68a87c", "extension": "c"...
stackv2
#include <ntifs.h> #include "preprocessor.h" #include "multistring.h" /************************************************************************/ /* PUBLIC FUNCTIONS */ /************************************************************************/ size_t _MultiString...
2.703125
3
2024-11-18T17:55:15.024408+00:00
2023-08-14T02:15:32
c7f63c3a9fa1518fdb5c85e875582f097b6eef86
{ "blob_id": "c7f63c3a9fa1518fdb5c85e875582f097b6eef86", "branch_name": "refs/heads/master", "committer_date": "2023-08-14T07:27:35", "content_id": "518d0cdbec56432bed1d9997098b81637accc4e5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0673edfa62c3ab801fd22d038ebfc000246543ec", "extensio...
stackv2
/* * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved * * 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 requi...
2.296875
2
2024-11-18T17:55:15.379836+00:00
2020-06-19T03:59:40
ada0e340fcf5251ff1da45f518a9a7cdaeedeff1
{ "blob_id": "ada0e340fcf5251ff1da45f518a9a7cdaeedeff1", "branch_name": "refs/heads/master", "committer_date": "2020-06-19T03:59:40", "content_id": "9b16f34761941cf7d22ef67550d7ac204067997f", "detected_licenses": [ "MIT" ], "directory_id": "d4fa997032edb41816a1773bdb4e3c92347b00cb", "extension": "c"...
stackv2
#include "w25qxx.h" /* page 256B sector 4K = 16page block 64K = 16sector */ #if (_W25QXX_DEBUG==1) #include <stdio.h> #endif #define W25QXX_DUMMY_BYTE 0xA5 w25qxx_t w25qxx; #if (_W25QXX_USE_FREERTOS==1) #define W25qxx_Delay(delay) osDelay(delay) #include "cmsis_os.h" #else #define W25qxx_Delay(delay) HA...
2.203125
2
2024-11-18T17:55:15.514927+00:00
2022-05-20T08:31:20
3879067c05eeef89267bc7a96c0820d5ed67638f
{ "blob_id": "3879067c05eeef89267bc7a96c0820d5ed67638f", "branch_name": "refs/heads/master", "committer_date": "2022-06-28T20:02:33", "content_id": "404a6d8844d4a60c051601508491504ace7c8545", "detected_licenses": [], "directory_id": "6b4c8cafe8b91c12b6d3e79bf90aea6f5948a00b", "extension": "c", "filename...
stackv2
/****************************************************************************** * Copyright (c) 2022 Parrot S.A. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the ...
2.078125
2
2024-11-18T17:55:15.930106+00:00
2020-10-10T15:45:15
1f17ace0199b9efa7e0aa197610dff99f67d5569
{ "blob_id": "1f17ace0199b9efa7e0aa197610dff99f67d5569", "branch_name": "refs/heads/master", "committer_date": "2020-10-10T15:45:15", "content_id": "6e015a443fd2119f8c8b3a94251ca50774f23ee0", "detected_licenses": [ "MIT" ], "directory_id": "303ead3a6f7d3eadee717b9688a8008b1f67cd93", "extension": "c"...
stackv2
/* Robin Isaksson 2017 */ #include <stm32f10x.h> #include <stdint.h> #include "./USB_def.h" #include "./USB_conf.h" #include "./USB.h" #include "./USB_functions.h" #include "./USART.h" /************************************************/ /********* PREPROCESSOR DEFINITIONS *********/ /******************************...
2.140625
2
2024-11-18T17:55:16.015566+00:00
2020-07-03T15:34:19
36271af8d5202f4d2530ac30d6e8a735cce7b656
{ "blob_id": "36271af8d5202f4d2530ac30d6e8a735cce7b656", "branch_name": "refs/heads/master", "committer_date": "2020-07-03T15:34:19", "content_id": "593bc1e6b2898785ec6c64bad01328fd8b4d9bdf", "detected_licenses": [ "MIT" ], "directory_id": "fd4ca068d0b831209bf3142c95ae23e573da0092", "extension": "c"...
stackv2
/* * performLocalTranspose.c * Transposes numberOfSlabs slabs of extent*extent sized * contiguous arrays of complexType data. * * Created by Ian Kirker on 15/04/2008. * */ #include "libDefs.h" #include "performLocalTranspose.h" /* Transposes multiple extent*extent 2D complex arrays stored contiguously in ...
2.875
3
2024-11-18T17:55:16.170701+00:00
2022-07-30T22:45:56
b6e4f01a8492df926f8e03036126b1d021288749
{ "blob_id": "b6e4f01a8492df926f8e03036126b1d021288749", "branch_name": "refs/heads/master", "committer_date": "2022-07-30T22:45:56", "content_id": "7cfafc17970c5118d1ff0a8f659a7017ddf2f647", "detected_licenses": [ "MIT" ], "directory_id": "49abb58c40577ce4470cca16034cf03ff0f94f7c", "extension": "c"...
stackv2
#include <stdio.h> int getValue(int paramA, float paramB) { int result = 0; if (paramA > 10) { result += 2; } else { result += 1; } if (paramB > 5.5) { result += 4; } else { result += 3; } return result; } int getOneOrTwo(int param) { if(param > 5) return 2; else return 1; } int main(void) {...
3.453125
3
2024-11-18T17:55:17.406659+00:00
2013-05-08T12:40:43
bd8ff25f55a08e69f8a46399097bd5fafe2ae018
{ "blob_id": "bd8ff25f55a08e69f8a46399097bd5fafe2ae018", "branch_name": "refs/heads/master", "committer_date": "2013-05-08T12:40:43", "content_id": "4fbeb239d4070a5ef7db69eceb827598021894ea", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "3f32aeab0966883c98198232e2ee83a9f3eb8277", "extens...
stackv2
/** * Copyright (c) 2013 Nicolas Hillegeer <nicolas at hillegeer 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: * 1. Redistributions of source code must retain the above copyrig...
2.09375
2
2024-11-18T17:55:17.619889+00:00
2023-08-17T09:01:57
3d8835b5190e9e0ef25a44e3dc1cf92d0abb44d3
{ "blob_id": "3d8835b5190e9e0ef25a44e3dc1cf92d0abb44d3", "branch_name": "refs/heads/master", "committer_date": "2023-08-17T09:01:57", "content_id": "34fe7a6b4ddcd4f94b79ff1f908801a6a0071b18", "detected_licenses": [ "MIT" ], "directory_id": "9ca19ee62e2c985be413bd12e5eb63b44833750d", "extension": "c"...
stackv2
// #define VCOM // Character I/O stubs #include "stm32l1xx_conf.h" USART_TypeDef *consoleUart; void raw_putchar(char c) { while(!USART_GetFlagStatus(consoleUart, USART_FLAG_TXE)) ; USART_SendData(consoleUart, (uint16_t)c); } int kbhit() { return USART_GetFlagStatus(consoleUart, USART_FLAG_RXNE); } int ge...
2.203125
2
2024-11-18T17:55:20.011216+00:00
2023-07-04T05:51:52
a20dc75a674f3d203edae918d34aba329966be11
{ "blob_id": "a20dc75a674f3d203edae918d34aba329966be11", "branch_name": "refs/heads/master", "committer_date": "2023-07-04T06:49:36", "content_id": "21bf9d8fafcd7858bae754a47833278b941fca15", "detected_licenses": [ "MIT", "Apache-2.0" ], "directory_id": "3d7dece5254e42059e8a2cb1e72b295460284983", ...
stackv2
/** * @file lv_gpu_sdl_draw_arc.c * * This implementation does not functioning properly so it's not enabled * */ /********************* * INCLUDES *********************/ #include "../../lv_conf_internal.h" #if LV_USE_GPU_SDL #include "../../hal/lv_hal_disp.h" #include "../../core/lv_refr.h" #include ".....
2.453125
2
2024-11-18T17:55:22.253120+00:00
2019-07-21T01:02:33
9193b62f1d6f9f6f02c16cf6a1abc3a4869c8791
{ "blob_id": "9193b62f1d6f9f6f02c16cf6a1abc3a4869c8791", "branch_name": "refs/heads/master", "committer_date": "2019-07-21T01:02:33", "content_id": "afbf61a25db60c980baf83612f106a5e74dc7027", "detected_licenses": [ "MIT" ], "directory_id": "d0f2a76f1c235e25f31b6fde48b70f38022712f2", "extension": "c"...
stackv2
#include <stdio.h> enum Month {JANUARY = 1, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER }; int main(void) { int month; printf("请输入月份:"); scanf("%d", &month); switch (month) { case MARCH: case APRIL: case MAY: printf("%d月是春季\n",...
3.359375
3
2024-11-18T17:55:22.792753+00:00
2014-10-22T12:37:58
a3635e000b42480a63ef18a533c391afda646931
{ "blob_id": "a3635e000b42480a63ef18a533c391afda646931", "branch_name": "refs/heads/master", "committer_date": "2014-10-22T12:37:58", "content_id": "53261367ee736df0782b34b06ef495751050579d", "detected_licenses": [ "Apache-2.0" ], "directory_id": "443b4e8652a8c2c404a56008298efc810214c682", "extensio...
stackv2
#include <stdarg.h> #include <stdio.h> #include <logger/gfal_logger.h> #include "gfal_common_err_helpers.h" #if (GLIB_CHECK_VERSION(2,16,0) != TRUE) #include "future/glib.h" #endif void gfal2_set_error(GError **err, GQuark domain, gint code, const gchar *function, const gchar *format, ...) { char buffer[...
2.15625
2