added
stringdate
2024-11-18 17:54:19
2024-11-19 03:39:31
created
timestamp[s]date
1970-01-01 00:04:39
2023-09-06 04:41:57
id
stringlengths
40
40
metadata
dict
source
stringclasses
1 value
text
stringlengths
13
8.04M
score
float64
2
4.78
int_score
int64
2
5
2024-11-18T23:51:48.670544+00:00
2022-11-25T17:24:05
40896654063ad20497e1819423ab54f7d38e77b4
{ "blob_id": "40896654063ad20497e1819423ab54f7d38e77b4", "branch_name": "refs/heads/master", "committer_date": "2022-11-25T17:24:05", "content_id": "a89ec31dc742689509800a7a5062df527a1a9455", "detected_licenses": [ "MIT" ], "directory_id": "2984dc2685dd2be391220bb96655198f74b9a16a", "extension": "c"...
stackv2
#include "ruby.h" #include "snappy-c.h" static VALUE rb_eSnappy; static VALUE snappy_raise(snappy_status result) { if (result == SNAPPY_INVALID_INPUT) { rb_raise(rb_eSnappy, "INVALID INPUT"); } else if (result == SNAPPY_BUFFER_TOO_SMALL) { rb_raise(rb_eSnappy, "BUFFER TOO SMALL"); } else {...
2.0625
2
2024-11-18T23:51:48.842615+00:00
2020-03-30T02:43:37
49b80e7bbe863b123e627f19b119c934283dc190
{ "blob_id": "49b80e7bbe863b123e627f19b119c934283dc190", "branch_name": "refs/heads/master", "committer_date": "2020-03-30T02:43:37", "content_id": "bbb7312012391353125d56880d4c4f16525f2237", "detected_licenses": [ "MIT" ], "directory_id": "766d5d988cd97bd3375a02ea13a8009fc612af65", "extension": "h"...
stackv2
#ifndef MINI_PROJECT_H #define MINI_PROJECT_H #include <stdio.h> #include <string.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h> #include <stdbool.h> #define HORZ "\e[0;36m\u2501\u2501\u2501\u2501\e[0m" #define T_HORZ "\e[0;36m\u2500\u2500\u2500\u2500\e[0m" #define VERT "\e[0;36m\u2503\e[0m" #define...
2.09375
2
2024-11-18T23:51:49.167898+00:00
2018-06-12T01:50:19
08b0efcd7fc5fc083c1935f385d90e665b9519db
{ "blob_id": "08b0efcd7fc5fc083c1935f385d90e665b9519db", "branch_name": "refs/heads/master", "committer_date": "2018-06-12T01:50:19", "content_id": "9a9e132c0206af22ce30f1480cb137cf9888fedd", "detected_licenses": [ "MIT" ], "directory_id": "dfb263bf26d3d2da7f870f4650779a54b5ba613d", "extension": "c"...
stackv2
#include <stdlib.h> #include "string.h" struct string *allocate_string() { const int INIT_SIZE = 4; struct string *str = (struct string *) malloc(sizeof(struct string)); str->head = (unsigned char *) malloc(sizeof(unsigned char) * (INIT_SIZE + 1)); str->size = 0; str->alloc_size = INIT_SIZE; str->head[0] ...
3.234375
3
2024-11-18T23:51:49.395648+00:00
2019-01-05T03:02:23
f7debe00485fa9cbffd1f87f2b898d45dc6f72fa
{ "blob_id": "f7debe00485fa9cbffd1f87f2b898d45dc6f72fa", "branch_name": "refs/heads/master", "committer_date": "2019-01-05T03:02:23", "content_id": "7db3daba4ca81e835cc4531423df6107f3b685a7", "detected_licenses": [ "MIT" ], "directory_id": "c6ea1b7e3e58b856b4f2762ac348ff22f9b18074", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "kcc.h" void expect(int line, int expected, int actual) { if (expected == actual) return; error("%d: %d expected, but got %d\n", line, expected, actual); } void expect_string(int line, char *expected, char *actual) { if (strcmp(ex...
3
3
2024-11-18T23:51:49.690111+00:00
2020-10-02T10:13:17
013fc1ab64e5ba53432e4df72e76dca73f5b1b69
{ "blob_id": "013fc1ab64e5ba53432e4df72e76dca73f5b1b69", "branch_name": "refs/heads/master", "committer_date": "2020-10-02T10:13:17", "content_id": "21a255804ab38c38b9a650e33e21b93016dc0669", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c2becdbe8b1b7e9c0e696623a6ed8e8b3ccf1db5", "extens...
stackv2
#pragma once #include "framebuffer.h" #include <stdlib.h> typedef uint8_t rgba_t[4]; #define LMX_PIXEL_WIDTH 419 #define LMX_PIXEL_HEIGHT 138 #define LMX_W LMX_PIXEL_WIDTH #define LMX_H LMX_PIXEL_HEIGHT typedef struct { int handle; int x; int y; unsigned int width; un...
2.828125
3
2024-11-18T23:51:49.792103+00:00
2021-07-24T06:39:22
37c01c28db681c7e98fb939e7012ef6d28e0648f
{ "blob_id": "37c01c28db681c7e98fb939e7012ef6d28e0648f", "branch_name": "refs/heads/main", "committer_date": "2021-07-24T06:39:22", "content_id": "d42639a200f7273917a10d2300cb5f33b38a0ddc", "detected_licenses": [ "MIT" ], "directory_id": "276d1c0add0b13d3f9dafde20dddba7b81889cb4", "extension": "c", ...
stackv2
// Define a structure type struct personal that would contain person name, date of joining // and salary #include<stdio.h> #include<conio.h> #define size 10 struct personal { char name[10]; int DOJ; float salary; }; int main() { int n; struct personal emp[size]; printf("\nhow many person ? "...
3.75
4
2024-11-18T23:51:52.370005+00:00
2023-08-01T16:15:46
10e121850b62109e76585e1f1cb2c52c9c4be27d
{ "blob_id": "10e121850b62109e76585e1f1cb2c52c9c4be27d", "branch_name": "refs/heads/master", "committer_date": "2023-08-01T16:15:46", "content_id": "4cff3af80ba45c760822b32c4599a2ab069e6785", "detected_licenses": [ "Apache-2.0" ], "directory_id": "2b35d7484156f34390e6690d0c0dea27225f5514", "extensio...
stackv2
/* Example of loading the program into RAM This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ ...
2.5
2
2024-11-18T23:51:52.513681+00:00
2015-03-25T21:17:06
c58fe51cf410d2d3872c379d23bfa60221813093
{ "blob_id": "c58fe51cf410d2d3872c379d23bfa60221813093", "branch_name": "refs/heads/master", "committer_date": "2015-03-25T21:17:06", "content_id": "f8d1d69408e59847415c41140179df045bcf75b3", "detected_licenses": [ "MIT" ], "directory_id": "cb74ff1cdf5f5b42a2484f36f78fe13823fce3af", "extension": "c"...
stackv2
#include <wiringPi.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> int main() { if (wiringPiSetupSys () == -1) exit (1) ; pinMode(4, OUTPUT); while(1) { digitalWrite(4, 0); digitalWrite(4, 1); } return 0 ; }
2.046875
2
2024-11-18T23:51:52.756978+00:00
2021-10-07T03:50:20
1429fcd4d72049ade2e070953138a6f68a6668b8
{ "blob_id": "1429fcd4d72049ade2e070953138a6f68a6668b8", "branch_name": "refs/heads/main", "committer_date": "2021-10-07T03:50:20", "content_id": "fcc204c7f685dc6c95c2f5ba5f1d61777b381a4e", "detected_licenses": [ "MIT" ], "directory_id": "623a64c16ff7e39eb5dc3cdd63d33581c665c029", "extension": "c", ...
stackv2
#include "b_tree.h" tree* generate_tree() { tree* new_tree = (tree*) malloc(sizeof(tree)); if (new_tree!=NULL) new_tree->root = NULL; return new_tree; } void destroy_tree(tree* tree) { //traverse the tree and destroy all nodes somehow free(tree->root); free(tree); tree->root = NULL; tr...
2.609375
3
2024-11-18T23:51:53.640041+00:00
2021-11-26T10:38:20
0679aadf292373300ca16f453ba65442ca1e414f
{ "blob_id": "0679aadf292373300ca16f453ba65442ca1e414f", "branch_name": "refs/heads/v2.7-branch", "committer_date": "2021-11-26T10:38:20", "content_id": "18de217be186a6c694654b88749e53c973d43171", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d15735ca76f411754c59404cbd36f7510c20ee97", "ext...
stackv2
/* * Copyright 2020 Broadcom * * SPDX-License-Identifier: Apache-2.0 */ #include <sys/__assert.h> #include <sw_isr_table.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <drivers/interrupt_controller/gic.h> #include "intc_gic_common_priv.h" #include "intc_gicv3_priv.h" /* Redistributor base addre...
2.375
2
2024-11-18T23:51:54.284022+00:00
2020-04-15T22:31:04
4aebf933f920a3c7f28069df02246a01aeb1535e
{ "blob_id": "4aebf933f920a3c7f28069df02246a01aeb1535e", "branch_name": "refs/heads/master", "committer_date": "2020-04-15T22:31:04", "content_id": "a07838a361a32cf793ad3bec71c522f71d4ed540", "detected_licenses": [ "MIT" ], "directory_id": "41cb09de0e54d2d9db7b8c08c8d3a3fa913253c7", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include "texpackr/texpackr.h" #define ARGSTR(i) kArgStrings[i] #define LARGSTR(i) strlen(kArgStrings[i]) /// width & height that will be used in producing output sheet if not specify via command line #define DEFAULT_TARGET_WIDTH 1024 #de...
2.6875
3
2024-11-18T23:51:56.109070+00:00
2017-09-17T01:23:41
ea263ab0fa1aa81321e6efb853b2913aec5a206b
{ "blob_id": "ea263ab0fa1aa81321e6efb853b2913aec5a206b", "branch_name": "refs/heads/develop", "committer_date": "2017-09-17T01:23:41", "content_id": "d0dab19de7afacb14d124e725c0785049ed1de37", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "2f42828a59270da482668c0b695741fe0e5076df", "exten...
stackv2
#include "gimglib.h" double get_degrees(uint32_t value) { return (double)value * 0.00000008381903171539306640625; } void dump_dem_block1 (uint8_t *ptrBlock1, uint8_t *ptrBlock2, uint8_t offset_size, uint8_t basehight_size, uint8_t diffhight_size, uint8_t extra_size, uint32_t max_x, uint32_t max_y) { const uint32...
2.40625
2
2024-11-18T23:51:56.200289+00:00
2013-10-08T05:20:58
ead2dbeb5c513bc623de1594c20d978cb21c90fd
{ "blob_id": "ead2dbeb5c513bc623de1594c20d978cb21c90fd", "branch_name": "refs/heads/master", "committer_date": "2013-10-08T05:20:58", "content_id": "be1bd296f3e0648034151708285fbbd76d292995", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "ec50712a20024c9cfd40c06c6dd8372d97258e2e", "extens...
stackv2
#include "libi3ipc.h" #include <stdlib.h> #include <stdio.h> #include <sys/socket.h> #include <sys/un.h> #include <errno.h> #include <unistd.h> #include <limits.h> #include <stdbool.h> typedef struct __attribute__((packed)) { char magic[6]; uint32_t len; uint32_t type; } i3ipc_header; struct __attribute__((packed...
2.640625
3
2024-11-18T23:51:57.098384+00:00
2021-11-14T06:35:25
5e8275525e0331463df5d1826f28dcc9a325c4b4
{ "blob_id": "5e8275525e0331463df5d1826f28dcc9a325c4b4", "branch_name": "refs/heads/master", "committer_date": "2021-11-14T06:35:25", "content_id": "f4cfe3b917c3979e2c478b66020fbfc24fc91766", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b471a802e67171f99b861ebd44bbc7404d44e57a", "extensio...
stackv2
/** * \file httpd.h * \brief Web Server */ #ifndef _HTTPD_H_ #define _HTTPD_H_ #include <stdio.h> #include <string.h> /* Logging management */ #define HTTPD_DEBUG #ifdef HTTPD_DEBUG #define httpd_d(fmt, ...) printf("[httpd] " fmt, ##__VA_ARGS__); #else #define httpd_d(fmt, ...) #endif /* ************** G...
2.875
3
2024-11-18T23:52:00.931438+00:00
2021-09-08T18:58:56
a8b08b442da752992c8f512b0a1e9d5255e22b03
{ "blob_id": "a8b08b442da752992c8f512b0a1e9d5255e22b03", "branch_name": "refs/heads/main", "committer_date": "2021-09-08T18:58:56", "content_id": "aeb3d46cc7c54cb9f1cb2d191a0419dea77bd8b7", "detected_licenses": [ "MIT" ], "directory_id": "657d910722bc54ee997e4f63b95a7907c8cc611f", "extension": "h", ...
stackv2
#ifndef OINSTANCE_H #define OINSTANCE_H #include "OClass.h" #include "Tree.h" typedef struct osphere{ int rad; }osphere; typedef struct olineseg{ point disp; }olineseg; typedef struct oobj{ oclass* type; orientation rot; //These form a stack. This allows for faster access to tree elements, since subsequent ac...
2.28125
2
2024-11-18T23:52:01.535240+00:00
2022-03-10T21:08:40
76b5803ef45d750c69a5d2a13dd945fb1ecb2025
{ "blob_id": "76b5803ef45d750c69a5d2a13dd945fb1ecb2025", "branch_name": "refs/heads/main", "committer_date": "2022-03-10T21:08:40", "content_id": "3fbd3cb21b4a52a371558777918e7e4f6cfa1119", "detected_licenses": [ "MIT" ], "directory_id": "d3e4ff2671841b86dd7744efc770e723a233b1da", "extension": "c", ...
stackv2
/* bkerndev - Bran's Kernel Development Tutorial * By: Brandon F. (friesenb@gmail.com) * Desc: Screen output functions for Console I/O * * Notes: No warranty expressed or implied. Use at own risk. */ #include <system.h> /* These define our textpointer, our background and foreground * colors (attributes), and x a...
3.1875
3
2024-11-18T23:52:01.744656+00:00
2021-04-16T23:33:51
bc3c9d37b22a937a7b34bfc7b8cb630a751e4103
{ "blob_id": "bc3c9d37b22a937a7b34bfc7b8cb630a751e4103", "branch_name": "refs/heads/main", "committer_date": "2021-04-16T23:33:51", "content_id": "12b6f6934171ba92360921e9b3ec82f521935b19", "detected_licenses": [ "MIT" ], "directory_id": "7a6b96c606072cc4c4081fe4ffe21f31fddf46de", "extension": "c", ...
stackv2
#include <stdlib.h> #include <stdio.h> #include <dirent.h> #include <errno.h> #include <string.h> #include <sys/stat.h> int main(int argc, char* argv[]) { if (argc != 4) { printf("Usage: split <file_path> <number_of_chunks> <save_dir>\n"); return 0; } // Check if save directory exists ...
3
3
2024-11-18T23:52:02.055714+00:00
2015-04-14T20:24:43
54bae0ef47b607fc8deae51dbf18d43876bf7d69
{ "blob_id": "54bae0ef47b607fc8deae51dbf18d43876bf7d69", "branch_name": "refs/heads/master", "committer_date": "2015-04-14T20:24:43", "content_id": "665a6aeb890b094a8398cfa49812e530777a8942", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "45a175e1a470bf15f4a2aa5b066250d6f8ec5327", "extens...
stackv2
/** * @file * * @date 14.10.10 * @author Darya Dzendzik */ #include <embox/example.h> #include <drivers/nxt/lcd.h> /* wont to see some picture, for example black sq*/ EMBOX_EXAMPLE(run_picture); static int run_picture(void) { char pict_buff[8] = {0x00, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x00}; display_draw(...
2.3125
2
2024-11-18T23:52:02.291145+00:00
2019-03-26T12:20:31
6b710e7e80ba6dfcfc8e244a9e5084d9f7c3cb3e
{ "blob_id": "6b710e7e80ba6dfcfc8e244a9e5084d9f7c3cb3e", "branch_name": "refs/heads/master", "committer_date": "2019-03-26T12:20:31", "content_id": "f7df7049b7856c14cce97fd88398ce22de30c6ff", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c907dd191234b0aab4f9e1c132b9898124890784", "extens...
stackv2
/*- * Copyright (c) 2014-2017 Dag-Erling Smørgrav * 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 li...
2.25
2
2024-11-18T23:52:02.555710+00:00
2022-02-08T18:21:30
1d8de418e0e3f3cdaff94e1cc909cae56081a071
{ "blob_id": "1d8de418e0e3f3cdaff94e1cc909cae56081a071", "branch_name": "refs/heads/master", "committer_date": "2022-02-08T18:21:30", "content_id": "722291714661609078493a4ee5dde5665d3a81df", "detected_licenses": [ "MIT" ], "directory_id": "d55fea61eff36e5145c8b060cc08c0c5eb8c20d7", "extension": "h"...
stackv2
/* SPDX-License-Identifier: MIT */ /* * Author: Andreas Werner <kernel@andy89.org> * Date: 2016 */ #ifndef CAPTURE_H_ #define CAPTURE_H_ #include <stdint.h> #include <stdbool.h> #include <system.h> #include <hal.h> /** * \defgroup CAPTURE Capture Subsystem * \ingroup HAL * \code * #include <capture.h> * \endcod...
2.734375
3
2024-11-18T23:52:03.546194+00:00
2015-12-05T05:34:14
7151c3b80aee85ab0eda55fa56026d9c302790d2
{ "blob_id": "7151c3b80aee85ab0eda55fa56026d9c302790d2", "branch_name": "refs/heads/master", "committer_date": "2015-12-05T05:34:14", "content_id": "4240378c6873862992ef033719599c44a011a776", "detected_licenses": [ "BSD-3-Clause", "MIT" ], "directory_id": "5536a54351e80e341e8cf028418147eecae6f603"...
stackv2
#include <mmu.h> #include <stdio.h> #include <pmm.h> #include <sched.h> #define PAGES_PER_THREAD 2 #define TOTAL_PAGES ((SCHED_MAX_PROC) * PAGES_PER_THREAD) void* pages[TOTAL_PAGES]; int bytes_used[TOTAL_PAGES]; void free_thread_pages(int pid) { int cur, first, last; cur = first = pid * PAGES_PER_THREAD; last = f...
2.734375
3
2024-11-18T23:52:04.151192+00:00
2019-05-07T21:01:24
b9ca485d8e0e9468d4fff5d5ac5ab5a0c39e9912
{ "blob_id": "b9ca485d8e0e9468d4fff5d5ac5ab5a0c39e9912", "branch_name": "refs/heads/master", "committer_date": "2019-05-07T21:01:24", "content_id": "ddd63b36444cee9e9a935c9569bab4e8770ab54b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8b0231925099f101f21b12df18d1b3c42097343f", "extens...
stackv2
#include <jni.h> #include <stdlib.h> #include <string.h> #include <vulkan/vulkan.h> jlong jniPointerToLong(const void* p); void* jniLongToPointer(jlong l); jlong jniFunctionPointerToLong(PFN_vkVoidFunction p); PFN_vkVoidFunction jniLongToFunctionPointer(jlong l); void jniThrowException(JNIEnv* env, const char* message...
2.171875
2
2024-11-18T23:52:04.816812+00:00
2016-12-13T02:14:17
dcb4266d76031e4737d093a8b26f414561b10ac7
{ "blob_id": "dcb4266d76031e4737d093a8b26f414561b10ac7", "branch_name": "refs/heads/master", "committer_date": "2016-12-13T02:14:17", "content_id": "b8ed1b9e5680eb5a14ea90024faae3395d13a93f", "detected_licenses": [ "MIT" ], "directory_id": "64ba1fb68e1bdab4f31ab3c03a1dfe238431da56", "extension": "c"...
stackv2
/************************************************************************* *conn redo log初始化、相关线程控制等 *************************************************************************/ #include "wt_internal.h" /*从配置字符串中解析transaction_sync对应的配置项目*/ static int __logmgr_sync_cfg(WT_SESSION_IMPL* session, const char** cfg) { WT_C...
2.25
2
2024-11-18T23:52:05.191492+00:00
2020-11-27T00:31:12
360a852bd3c30cd462a9af5a39ac2ccb295df81f
{ "blob_id": "360a852bd3c30cd462a9af5a39ac2ccb295df81f", "branch_name": "refs/heads/master", "committer_date": "2020-11-27T00:31:12", "content_id": "7648e92575f3d12ead69b856d77945ad720ce3cc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fd00eea26d973e5c7be255a53a1762050f859c3d", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> typedef struct aluno { char nome[20]; int idade; } Aluno; void grava(){ int i; char texto[100]; FILE *arquivo; arquivo = fopen("teste.txt", "w"); if (arquivo == NULL){ printf("nao consegui abrir o arquivo\n"); system("pause"); ...
3.4375
3
2024-11-18T23:52:05.342116+00:00
2017-07-20T06:18:02
1ad3cd06d633c50311c1b24d088f719033b1e147
{ "blob_id": "1ad3cd06d633c50311c1b24d088f719033b1e147", "branch_name": "refs/heads/master", "committer_date": "2017-07-20T06:18:02", "content_id": "fd7d2bb699ccf0c031e1d86853192062074f7243", "detected_licenses": [ "MIT" ], "directory_id": "3e65343ce25d47a0f31b4c231904be42e448b075", "extension": "c"...
stackv2
/* This file contains information dump procedures. During the initialization * of the Information Service 'known' function keys are registered at the TTY * server in order to receive a notification if one is pressed. Here, the * corresponding dump procedure is called. * * The entry points into this file are *...
2.75
3
2024-11-18T23:52:05.643735+00:00
2020-11-24T18:26:26
847c6577f5ba9492877a5baa38422bd3e672f994
{ "blob_id": "847c6577f5ba9492877a5baa38422bd3e672f994", "branch_name": "refs/heads/main", "committer_date": "2020-11-24T18:26:26", "content_id": "73ecfce57eb1cd0d0448c03e254bbe23d00b7751", "detected_licenses": [ "MIT" ], "directory_id": "a2585678a9d7a22526a66a895c1be5d844010a5a", "extension": "c", ...
stackv2
//Author : TechZx //Device : PIC18F452 //Clock : 8 //About : If 1 is pressed print Date and time in LCD //More info about macros in micro c website char *mem_data[10]; char *mem2_data[10]; char *mem3_data [10] ; char minutes[2]; char hours[2]; char temph; //temp hours char tempm; //temp minutes char d...
2.828125
3
2024-11-18T23:52:06.430312+00:00
2020-12-14T08:01:03
639da4375294a0f234a9249444b650175c00f7cb
{ "blob_id": "639da4375294a0f234a9249444b650175c00f7cb", "branch_name": "refs/heads/master", "committer_date": "2020-12-14T08:01:03", "content_id": "24bd163d725246f404c577d197476cd5237135c4", "detected_licenses": [ "MIT" ], "directory_id": "de524b17a93bfeaea6239b163ade45a8665a69c4", "extension": "c"...
stackv2
//program to count the no of vowels in a given .txt file #include<stdio.h> #include<stdlib.h> int main(void) { FILE *f1; char ch,filename[20]; char vowel[]={'A','E','I','O','U','a','e','i','o','u'}; int i, count = 0; printf("Enter the file name(with file extension) : "); scanf("%s", filename); ...
3.78125
4
2024-11-18T23:52:06.489770+00:00
2017-01-26T17:45:50
71dbd816c4d6337ae3ea9bccbf17856146bcfa3e
{ "blob_id": "71dbd816c4d6337ae3ea9bccbf17856146bcfa3e", "branch_name": "refs/heads/master", "committer_date": "2017-01-26T17:45:50", "content_id": "2967873abd6fc70c3ab30c1106da23f83605caa4", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "28705bf661e7ff7ac8d3305916b69d7d3ff38b40", "extens...
stackv2
/* C extension for ruby_strings. This file in generated by Rubex. Do not change! */ #include <ruby.h> #include <stdint.h> VALUE __rubex_f_blank_qmark (int argc, VALUE* argv, VALUE __rubex_arg_self); VALUE __rubex_f_blank_qmark (int argc, VALUE* argv, VALUE __rubex_arg_self) { VALUE __rubex_arg_string; int32_t __ru...
2.125
2
2024-11-18T23:52:07.605422+00:00
2018-09-13T17:46:38
fc3e5e1113d221f1eb844c9867dc7905f875ebaf
{ "blob_id": "fc3e5e1113d221f1eb844c9867dc7905f875ebaf", "branch_name": "refs/heads/master", "committer_date": "2018-09-13T17:46:38", "content_id": "fd39af25388d0c80a9c8f1481b98cbfae3ad7bc2", "detected_licenses": [ "MIT" ], "directory_id": "f6293f338ad4273d0328a10ff4621171e5aefbfb", "extension": "h"...
stackv2
#ifndef MEMORY_MANAGEMENT_H #define MEMORY_MANAGEMENT_H #include <stdlib.h> #include <stdint.h> #define ALIGN(addr) ((addr&0x07)==0 ? addr : (addr&(-1<<3)) + 0x08) #define INITIAL_HEAP_SIZE 0x200000 struct Object { struct Object* next; struct Object* prev; size_t size; }; typedef struct Object Object; st...
2.15625
2
2024-11-18T23:52:08.676685+00:00
2023-08-29T15:42:17
3324c9d12b747274f4cf60c2f3cde41d6477ebf8
{ "blob_id": "3324c9d12b747274f4cf60c2f3cde41d6477ebf8", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T06:29:25", "content_id": "f91dba49c0fabfeac6331aedcc218245e1616285", "detected_licenses": [ "ISC" ], "directory_id": "55b8e6e97b9667340c9ee22305b87c6a8d035af6", "extension": "c"...
stackv2
#include <cgreen/cgreen.h> #include <cgreen/message_formatting.h> #include "constraint_internal.h" #include "cgreen_value_internal.h" #include "utils.h" Describe(CustomConstraint); BeforeEach(CustomConstraint) {} AfterEach(CustomConstraint) {} /* Example 1 from documentation : is_bigger_than_5() No argument to t...
2.5625
3
2024-11-18T23:52:09.064669+00:00
2018-11-10T18:37:06
56ef218e7e36143a012ea64a23c0cfd741cba257
{ "blob_id": "56ef218e7e36143a012ea64a23c0cfd741cba257", "branch_name": "refs/heads/master", "committer_date": "2018-11-10T18:37:06", "content_id": "f81ee3282c2f40cf80b465ff27b4ab795ebe1f83", "detected_licenses": [ "MIT" ], "directory_id": "ce3a6fbbe6f03e02ed2e2da373f30a79d13c0b19", "extension": "c"...
stackv2
# include <stdio.h> # include <stdlib.h> # include <locale.h> main(){ setlocale(LC_ALL,""); float preco, total, parcela, desconto, juros; int pagamento; printf("Informe o valor do produto: R$ "); scanf("%f", &preco); puts(""); printf("------------- Formas de Pagamento --------------\n"); printf(" 1 - À vi...
3.265625
3
2024-11-18T23:52:09.110061+00:00
2021-08-08T15:07:39
3e40a1319d625b02c3b6960130f745d69259b4a0
{ "blob_id": "3e40a1319d625b02c3b6960130f745d69259b4a0", "branch_name": "refs/heads/main", "committer_date": "2021-08-08T15:07:39", "content_id": "711d3d7d72ce735382f75f329c7c83f0c3001032", "detected_licenses": [ "MIT" ], "directory_id": "3568d307a0f1e9a6e050631668501d9d0ec5c292", "extension": "c", ...
stackv2
#include "wifi.h" // Device header Button user_button; static uint8_t light_state = 0; static uint8_t light_color = 0; static uint8_t light_rgb[][3] = { {255,255,255}, {255,0,0}, {0,255,0}, {0,0,255}, {255,255,0}, {255,0,255}, {0,255,255}, }; uint8_t user_button_val...
2.09375
2
2024-11-18T23:52:09.318687+00:00
2017-08-01T06:44:05
226dbafa382dea69162ec5a45f66e243ee055591
{ "blob_id": "226dbafa382dea69162ec5a45f66e243ee055591", "branch_name": "refs/heads/master", "committer_date": "2017-08-01T06:44:05", "content_id": "73044977d2ea68594f699b33c9a9d6ea093a5428", "detected_licenses": [ "Apache-2.0" ], "directory_id": "7ddf64d4afb7bfcb3625b1f704dcd30c3788a351", "extensio...
stackv2
/* * command processing layer. */ #include "process.h" #include "signal.h" #include "controlflow.h" #include "memory.h" #include "builtin.h" #include "vartable.h" #include "utils.h" extern char **environ; void smsh_pre_handle_args(char **args) { if (strcmp(args[0], "echo") == 0) { // echo "hello world" // ...
2.546875
3
2024-11-18T23:52:09.389937+00:00
2020-08-27T14:42:59
51ddd170f7f5885f119d1c40bed6c5b03f0b9b70
{ "blob_id": "51ddd170f7f5885f119d1c40bed6c5b03f0b9b70", "branch_name": "refs/heads/master", "committer_date": "2020-08-27T14:42:59", "content_id": "dcfa438456d0d60ec4a27c281a35d641332f0da2", "detected_licenses": [ "MIT" ], "directory_id": "cb0246e9bf60f4d27d7c545bf4d5494fb31500c0", "extension": "c"...
stackv2
#include "AudioFingerprinter.h" #define DR_WAV_IMPLEMENTATION #include "dr_wav.h" #define STB_FFT_IMPLEMENTAION #include "stb_fft.h" #include <float.h> #include <math.h> #include "timing.h" Peak peakCreate(int16_t timeBin, int16_t frequencyBin) { Peak ret = {timeBin, frequencyBin}; return ret; } typedef ...
2.328125
2
2024-11-18T23:52:09.585097+00:00
2023-08-08T09:39:15
adaa4dffc88d7db6dbb3e5aba20fc66411b2843f
{ "blob_id": "adaa4dffc88d7db6dbb3e5aba20fc66411b2843f", "branch_name": "refs/heads/master", "committer_date": "2023-08-08T09:39:15", "content_id": "8831373087491c5bb056479aa44df781a5eca5b8", "detected_licenses": [ "ISC" ], "directory_id": "f8cc1dd4b1378490386def2e0571561fab10b275", "extension": "c"...
stackv2
/* ISC license. */ #include <sys/uio.h> #include <skalibs/skaclient.h> #include <skalibs/unixmessage.h> int skaclient_putv (skaclient *a, struct iovec const *v, unsigned int vlen, unixmessage_handler_func *cb, void *result) { unixmessagev m = { .v = (struct iovec *)v, .vlen = vlen, .fds = 0, .nfds = 0 } ; return ...
2.015625
2
2024-11-18T23:52:09.646500+00:00
2015-03-04T10:41:08
2077c6ab1a671b412d05331188f626ad4d78e4b6
{ "blob_id": "2077c6ab1a671b412d05331188f626ad4d78e4b6", "branch_name": "refs/heads/master", "committer_date": "2015-03-04T10:41:08", "content_id": "196e063dfdf7e89c9395203a0e37a9b9dc5637d2", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "21dfd5124c2f05ef5f98355996dc2313f1a29f5a", "extens...
stackv2
/** * @file Platform/Win32/StreamableHelper.h * This file declares macros used by auto streaming that work * with Microsoft's compiler. */ #pragma once /** * Determine the number of entries in a tuple. * The second part is declared somewhere else, because it is * platform independent. */ #define _STREAM_TUPLE...
2.125
2
2024-11-18T23:52:09.726140+00:00
2018-07-27T12:46:58
78537d188eba7c7d6266387d010b6a36e71eb8f6
{ "blob_id": "78537d188eba7c7d6266387d010b6a36e71eb8f6", "branch_name": "refs/heads/master", "committer_date": "2018-07-27T12:46:58", "content_id": "e9e697b4f301bb3a0c7a434e2c58f323221e5602", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "fb5d048562a851f3debe44899e7ad41af7e54a6d", "extens...
stackv2
#include <ctype.h> #include <autogen/spicy-hlt.h> #include "exceptions.h" #include "filter.h" #include "sink.h" // XXX Needed? // void spicy_dbg_print_data(spicy_sink* sink, hlt_bytes* data, spicy_filter* filter, // hlt_exception** excpt, hlt_execution_context* ctx); typedef struct __parser_state { spicy_parse...
2.078125
2
2024-11-18T23:52:10.040189+00:00
2015-02-16T22:34:35
893cbe95d06e7e35744b885e8a565031858b1895
{ "blob_id": "893cbe95d06e7e35744b885e8a565031858b1895", "branch_name": "refs/heads/master", "committer_date": "2015-02-16T22:34:35", "content_id": "154ac0983dfba6f8cec7cf7369ef9505916e494b", "detected_licenses": [ "MIT" ], "directory_id": "5f0b4d44f929ff9690cacaa53280c81e158b7ccf", "extension": "c"...
stackv2
/* * cmos.c * * Created on: 30.06.2013 * Author: pascal */ #include "cmos.h" #include "util.h" #define CMOS_ADDRESS 0x70 #define CMOS_DATA 0x71 #define SECOND 0x00 //Sekunde (BCD) #define ALARM_SEC 0x01 //Alarmsekunde (BCD) #define MINUTE 0x02 //Minute (BCD) #define ALARM_MIN 0x03 //Alarmminute (BCD) #...
2.515625
3
2024-11-18T23:52:10.190808+00:00
2020-10-10T11:02:50
3228b66ec01e26ff7938444ea59a491ff24f2d71
{ "blob_id": "3228b66ec01e26ff7938444ea59a491ff24f2d71", "branch_name": "refs/heads/master", "committer_date": "2020-10-10T11:02:50", "content_id": "28a0252f7773d3b16ca92144f14150365da012de", "detected_licenses": [ "MIT" ], "directory_id": "cff4e613a2435b607bd49e4192dc84985efe4f54", "extension": "c"...
stackv2
/* ** my_put_nbr.c for libmy in /home/pereni_j/libmy/src ** ** Made by joseph pereniguez ** Login <pereni_j@epitech.net> ** ** Started on Tue Jun 16 10:37:49 2015 joseph pereniguez ** Last update Tue Jun 16 16:27:48 2015 joseph pereniguez */ #include "../include/my.h" int to_continue_my_putnbr(int nb) ...
3.046875
3
2024-11-18T23:52:10.240743+00:00
2023-07-23T09:03:58
2920224fb2648b9605ad4ca7d6025d3433a4259a
{ "blob_id": "2920224fb2648b9605ad4ca7d6025d3433a4259a", "branch_name": "refs/heads/master", "committer_date": "2023-07-23T09:03:58", "content_id": "1a4392c6a1b0aaeed57e6fc09922459da6f1c2dd", "detected_licenses": [ "MIT" ], "directory_id": "525fca67305d099f979eb0842e5c8f303d58e273", "extension": "h"...
stackv2
#ifndef ANTAGONISTS_H_INCLUDED #define ANTAGONISTS_H_INCLUDED #include "variables.h" #include "bullets.h" struct antagonist { int x; int y; bool show = true; }anta[5]; struct antagonistbullet { int x; int y; }antabullet[3]; void changeantagn() { if (flag == 1) { if (anta[level - 1].x <= 580) anta[level -...
2.390625
2
2024-11-18T23:52:10.781284+00:00
2017-12-31T03:11:44
aef1dad0dd350ff3905ebd3efd18d932862b0580
{ "blob_id": "aef1dad0dd350ff3905ebd3efd18d932862b0580", "branch_name": "refs/heads/master", "committer_date": "2017-12-31T03:11:44", "content_id": "c8732d1707b142dd48d6d27d20af3ef7546450eb", "detected_licenses": [ "MIT" ], "directory_id": "f6edc8fb3dd534e8d4501bcfdc921cb84d58d01a", "extension": "c"...
stackv2
#include "types.h" #include "stat.h" #include "user.h" #include "fcntl.h" int main(int argc,char *argv[]) { int exectime,pid; if(argc<3){ printf(2,"Usage: nice pid priority\n"); exit(); } pid = atoi( argv[1]); exectime = atoi( argv[2]) ; if(exectime <0 || exectime>20){ printf(2,"Invalid exectime (0-20)!\n...
2.1875
2
2024-11-18T23:52:10.933414+00:00
2020-12-22T08:16:33
fb199ec3dd5ecd68b2181d51fc0713c1be30cdf1
{ "blob_id": "fb199ec3dd5ecd68b2181d51fc0713c1be30cdf1", "branch_name": "refs/heads/master", "committer_date": "2020-12-22T08:16:33", "content_id": "528cf1b2ea801fbd649fcd14fe84710d08e26470", "detected_licenses": [ "MIT" ], "directory_id": "af5850be0fb15371974a5f763bbb04ffb146fa49", "extension": "c"...
stackv2
#include <stdio.h> struct users { char name[10]; int orderid; }; int main(void) { struct users user1; user1.orderid=101; snprintf(user1.name, sizeof(user1.name), "%s","bintuharwani"); printf("Information of the user - Name %s, Order number %d\n", user1.name, user1.orderid); }
2.671875
3
2024-11-18T23:52:11.917830+00:00
2020-12-12T10:48:49
8df4fd5f95b9fdeba2674f1bcc28c3de36606cd7
{ "blob_id": "8df4fd5f95b9fdeba2674f1bcc28c3de36606cd7", "branch_name": "refs/heads/master", "committer_date": "2020-12-12T10:59:40", "content_id": "16fbafc49019f7da2d1fa0033ee98daae725c01b", "detected_licenses": [ "ISC" ], "directory_id": "e1f507fdf81f7559eb9536ca602fdb58d68675d3", "extension": "c"...
stackv2
/* * Copyright (c) 2020 Marek Benc <dusxmt@gmx.com> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE A...
2.671875
3
2024-11-18T23:52:12.040747+00:00
2015-02-19T11:38:52
30ab9e1acb8f492dbafdd419f776fb62fe2ed2fb
{ "blob_id": "30ab9e1acb8f492dbafdd419f776fb62fe2ed2fb", "branch_name": "refs/heads/master", "committer_date": "2015-02-25T04:49:44", "content_id": "0726b92ad12e8804b05042cb91d4f18097c98804", "detected_licenses": [ "BSD-2-Clause", "MIT" ], "directory_id": "b89a6a122a7b82e4fd0872f1ec935bc45633c9eb"...
stackv2
/* -*- Mode: C; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ #include "rrutil.h" static void breakpoint(void) { int break_here = 1; (void)break_here; } static int interrupted_sleep(void) { struct timespec ts = { .tv_sec = 2 }; alarm(1); errno = 0; /* The implementation of sleep() is te...
2.9375
3
2024-11-18T23:52:12.181174+00:00
2020-04-22T06:08:58
f7621736d7d861a4bdaff5fe805675b599365712
{ "blob_id": "f7621736d7d861a4bdaff5fe805675b599365712", "branch_name": "refs/heads/master", "committer_date": "2020-04-22T06:08:58", "content_id": "d0f16483884fa206d0a469103aa82305232957c5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "96f80f93bbf083b11b548c5f153f6e853003f1a7", "extensio...
stackv2
/////Reflection Acknowledgement Flooder by 小金 (2002年9月) /////更改此代码请给我一份拷贝 /////E-MAIL:LK007@163.com Anpolise@s8s8.net ////============================================ #include <winsock2.h> #include <ws2tcpip.h> #define false 0 #define true 1 #define SEQ 0x28376839 int x=-1,k,j; int rndX=0; struct IP { char ip[2...
2.1875
2
2024-11-18T23:52:12.542716+00:00
2020-02-28T15:47:50
73477de0c087514ada9d8cf0977abd831b089ba4
{ "blob_id": "73477de0c087514ada9d8cf0977abd831b089ba4", "branch_name": "refs/heads/master", "committer_date": "2020-02-28T15:47:50", "content_id": "c0a9afea14d442c841b5e5c0c8cc62e64246c587", "detected_licenses": [ "MIT" ], "directory_id": "46723ab62e996a9591d3e4c6991ae69262da8722", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> void incAspect(int arg) { if (arg >= 10) { printf("Maximum limit reached. Exiting...\n"); exit(1); } }
2.234375
2
2024-11-18T23:52:12.614320+00:00
2017-12-28T20:56:47
056a2a7b7d4077980935ddef2b748d648203ab4c
{ "blob_id": "056a2a7b7d4077980935ddef2b748d648203ab4c", "branch_name": "refs/heads/master", "committer_date": "2017-12-28T20:56:47", "content_id": "59a0a9a7373aa535dd73f6c5a932ef0ee58ce7f1", "detected_licenses": [ "ISC" ], "directory_id": "584158026b16e48fcbda0a20c8b398241a3d9e9b", "extension": "c"...
stackv2
// Timers. // Very basic, but enough for this. #include <types.h> #include <sys/time.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <pthread.h> #include <string.h> typedef struct timer { int moduleno; ulong time; // time in microseconds. int argc; char* *argv; } timer; static struct time...
3.015625
3
2024-11-18T23:52:12.763479+00:00
2017-12-17T12:23:55
c94f62c8359c6afe3e894de675cbcbcec8acdecd
{ "blob_id": "c94f62c8359c6afe3e894de675cbcbcec8acdecd", "branch_name": "refs/heads/master", "committer_date": "2017-12-17T12:23:55", "content_id": "c6324f21a05605e357bd4a2d59da5d4e52b6d545", "detected_licenses": [ "Apache-2.0" ], "directory_id": "0d857f9a05fdd62321907fdb706afcc221dba674", "extensio...
stackv2
#include <reg51.h> /* LCD color */ #define White 0xFFFF #define Black 0x0000 #define Blue 0x001F #define Blue2 0x051F #define Red 0xF800 #define Magenta 0xF81F #define Green 0x07E0 #define Cyan 0x7FFF #define Yellow 0xFFE0 #define LC...
2.578125
3
2024-11-18T23:52:12.828407+00:00
2019-10-17T15:55:08
3587cbf99cb94eafc65a7ad39c61903724b9ac9d
{ "blob_id": "3587cbf99cb94eafc65a7ad39c61903724b9ac9d", "branch_name": "refs/heads/master", "committer_date": "2019-10-17T15:55:08", "content_id": "68c04f0827cc97f883a6721d0f8f48195a02303c", "detected_licenses": [ "MIT" ], "directory_id": "9cf8571a4d546e550b942b022a8728e1cacba2b6", "extension": "c"...
stackv2
#include <func.h> int main(int argc,char* argv[]) { int semArrId=semget(1000,2,IPC_CREAT|0600); ERROR_CHECK(semArrId,-1,"semget"); unsigned short arr[2]={5,10}; int ret=semctl(semArrId,0,SETALL,arr); ERROR_CHECK(ret,-1,"semctl"); memset(arr,0,sizeof(arr)); ret=semctl(semArrId,0,GETALL,arr);...
2.0625
2
2024-11-18T23:52:17.648336+00:00
2023-02-16T11:27:40
ce1cbbcee77fc905d61a0e09b0bcd99c4f1a8149
{ "blob_id": "ce1cbbcee77fc905d61a0e09b0bcd99c4f1a8149", "branch_name": "refs/heads/main", "committer_date": "2023-02-16T14:59:16", "content_id": "603cc56e3cdad25eb087290b1f9da231c10896c1", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493", "extension"...
stackv2
/* * Copyright (c) 2020 Stephanos Ioannidis <root@stephanos.io> * Copyright (C) 2010-2020 ARM Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/ztest.h> #include <zephyr/kernel.h> #include <stdlib.h> #include <arm_math.h> #include "../../common/test_common...
2.4375
2
2024-11-18T23:52:17.717622+00:00
2019-04-22T18:02:25
ed7cda69037cadffee4d2ca36196867bb138724c
{ "blob_id": "ed7cda69037cadffee4d2ca36196867bb138724c", "branch_name": "refs/heads/master", "committer_date": "2019-04-22T18:02:25", "content_id": "a091ecb2c6a0c76cc59388d9663e8391073d5229", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "68fb520f4123d871c1edb6b88b5868c535f30730", "extens...
stackv2
/** * @file * Implementation of the A-PDP module for S3 storage. * * @author Copyright (c) 2012, Mark Gondree * @author Copyright (c) 2012, Alric Althoff * @author Copyright (c) 2008, Zachary N J Peterson * @date 2008-2013 * @copyright BSD 2-Clause License, * See http://opensource.org/licenses/BSD-2...
2.3125
2
2024-11-18T23:52:17.938653+00:00
2019-12-13T14:59:41
1d896c84469a731d1014f65312efe01a18fc4b16
{ "blob_id": "1d896c84469a731d1014f65312efe01a18fc4b16", "branch_name": "refs/heads/master", "committer_date": "2019-12-13T14:59:41", "content_id": "fed808ccd573c6ebab46541aadcc00372829183f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f962f842013899340a0147662a410f55c6d26e07", "extensio...
stackv2
#include<stdio.h> #include<stdlib.h> # define max 20 void enqueue(); void dequeue(); //void peek(); void display(); int rear=-1,front=-1; int que_arr[max]; int main() { int ch; char cont; do { printf("**CIRCULAR QUEUE**\n"); printf("Press 1 for ENQUEUE\n"); printf("Press 2 for DEQUEUE\n"); // printf("Press 3...
3.78125
4
2024-11-18T23:52:18.030403+00:00
2022-08-18T02:00:32
6ff0895b2994baca785fa9af0abdede861ab28fe
{ "blob_id": "6ff0895b2994baca785fa9af0abdede861ab28fe", "branch_name": "refs/heads/master", "committer_date": "2022-08-18T02:00:32", "content_id": "f4ca28ed817d03c18b0c682b93814a0a455303bc", "detected_licenses": [ "MIT" ], "directory_id": "2b378530d6ac6e1346f582077cd538d7924f8ef5", "extension": "h"...
stackv2
#pragma once //编码数据包括2部分: //1 编码串:形码中是纯编码,拼音中是预测结果+当前在编辑的字拼音=MAX_SENTLEN+7 //2 结果串: 与编码串共用内存 #define MAX_COMP 120 #define MAX_SYLLABLES (MAX_SENTLEN/2) #define MAX_INPUT 255 // >(MAX_SENTLEN+7) && >6*MAX_SYLLABLES && UD_MAXCAND enum COMPMODE { IM_SPELL=0, //拼音输入模式 IM_SHAPECODE, //形码输入模式 }; enum...
2.203125
2
2024-11-18T23:52:18.757309+00:00
2020-12-30T21:20:01
b3bf3a48875f6e39244d698420d30f1c28ead41e
{ "blob_id": "b3bf3a48875f6e39244d698420d30f1c28ead41e", "branch_name": "refs/heads/master", "committer_date": "2021-01-04T17:15:20", "content_id": "95e337917ed071ea15f886efcaa6b90cde890f73", "detected_licenses": [ "Apache-2.0" ], "directory_id": "27ffcdc40d9689a0b2b92ba44d47d0aead58cfaa", "extensio...
stackv2
/* * Copyright (c) 2020 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #include <ztest.h> #include "test_kheap.h" K_HEAP_DEFINE(k_heap_test, HEAP_SIZE); #define ALLOC_SIZE_1 1024 #define ALLOC_SIZE_2 1536 #define ALLOC_SIZE_3 2049 /*test cases*/ /** * @brief Test to demonstrate k_heap_alloc() a...
2.625
3
2024-11-19T00:27:43.161637+00:00
2020-01-16T13:34:53
069e1022bc403beceacb8ee165a91c5673b7355e
{ "blob_id": "069e1022bc403beceacb8ee165a91c5673b7355e", "branch_name": "refs/heads/master", "committer_date": "2020-01-16T13:34:53", "content_id": "326daea8474224e36c7109a9d2a40ca28c199c1f", "detected_licenses": [ "MIT" ], "directory_id": "43f0d24ae6ce56acb98aeacd6d72c63eed62bb56", "extension": "c"...
stackv2
//어느 마을에는 깊어서 빠지면 위험한 강이 있다. //이 마을에는 시장에 가려면 만들어진 다리를 건너야하는데 //자연재해로 인해 무너지고 말았다. //따라서 당분간 이 강에 있는 흔들다리를 이용해야한다. //다만 이 흔들다리는 오랜시간 이용하지 않아 중간중간 발판이 부셔질 수 있다. //발판은 총 10개이며 각각 내구도가 다를 때, 몇명이 건널수 있을것인가 ? //설명 //- 10개의 발판에 값을 내구도를 입력한다(1 - 5) //- 사람들은 첫번째 발판부터 차례대로 움직이며 이때 각발판의 내구도는 1씩 줄어든다 //- 만약 다음 발판이 부셔졌다면 서있는 발판을 ...
3.625
4
2024-11-19T00:27:43.292042+00:00
2023-08-18T12:54:06
36462819f2ee8ba24c1865e120f8843057a8009f
{ "blob_id": "36462819f2ee8ba24c1865e120f8843057a8009f", "branch_name": "refs/heads/master", "committer_date": "2023-08-18T12:54:06", "content_id": "acac82d40d7cb0e1d6b9a9be5c7d10175cf91f90", "detected_licenses": [ "MIT" ], "directory_id": "22446075c2e71ef96b4a4777fe966714ac96b405", "extension": "c"...
stackv2
/*! * @file main.c * @brief XBEE 2 Click Example. * * # Description * This example demonstrates the use of an XBEE 2 click board by showing * the communication between the two click boards configured in transparent mode. * * The demo application is composed of two sections : * * ## Application Init * Initial...
2.546875
3
2024-11-19T00:27:44.014629+00:00
2015-12-07T14:29:12
99e8f57fe58145ccf56073c5e2588c0e768c2c81
{ "blob_id": "99e8f57fe58145ccf56073c5e2588c0e768c2c81", "branch_name": "refs/heads/master", "committer_date": "2015-12-07T14:29:12", "content_id": "817c64138c9b20db2c2efc35b8bd0314591ce5c6", "detected_licenses": [ "MIT" ], "directory_id": "73530b566fc83783037c3ce2fe3bcb351bf3d465", "extension": "h"...
stackv2
#ifndef BEZIER_H_ #define BEZIER_H_ #define HDIM 4 #define BDIM 3 // パラメータベクトル(t0, t1, t2, t3)を返す // pv : パラメータベクトルを格納する配列, t : パラメータ.0<= t <= 1の実数 void set_param_vector(double pv[BDIM + 1], double t); // 行列とベクトルの積を求める.係数行列とパラメータベクトルの積に用いる // u : 積演算の結果得られるベクトル., mb : 3次のベジェ曲線用係数行列., v : パラメータベクトル void mulMVb(double...
2.046875
2
2024-11-19T00:27:44.912090+00:00
2019-10-08T16:15:27
6d8821410c70fb56ee0a48cff8ba856b26c8960e
{ "blob_id": "6d8821410c70fb56ee0a48cff8ba856b26c8960e", "branch_name": "refs/heads/master", "committer_date": "2019-10-08T16:15:27", "content_id": "2b498ac34cccac61fc4ba1ea05e3a758b0da087a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "6f163068f9cb3b1484dc4dcc49e3cce57ff869e9", "extens...
stackv2
#include "tos.h" #if TOS_CFG_TICKLESS_EN > 0u __API__ void tos_tickless_wkup_alarm_install(k_cpu_lpwr_mode_t mode, k_tickless_wkup_alarm_t *wkup_alarm) { k_tickless_wkup_alarm[mode] = wkup_alarm; } __API__ k_err_t tos_tickless_wkup_alarm_init(k_cpu_lpwr_mode_t mode) { if (!k_tickless_wkup_alarm[mode]) { ...
2.3125
2
2024-11-19T00:27:45.061161+00:00
2019-05-14T11:47:39
c97839c3133025bdf2517e8be33335b5f3a087f7
{ "blob_id": "c97839c3133025bdf2517e8be33335b5f3a087f7", "branch_name": "refs/heads/HW3", "committer_date": "2019-05-14T11:47:39", "content_id": "99f34711663b3803fbb41e0d217320dcb47c99f8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d845ce860e6b51742fe72288d901d01ce84089a4", "extension":...
stackv2
#include <stdio.h> #include <stdio_ext.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <fcntl.h> #include "Util.h" #include "Command.h" #include "Table.h" #include "SelectState.h" #include "SetWhere.h" /// /// Allocate State_t and initialize some attributes /// Return: pt...
2.390625
2
2024-11-19T00:27:45.154324+00:00
2016-12-23T09:17:11
41e236fadbe9b2259b11c13f4e5e708fc4dd3622
{ "blob_id": "41e236fadbe9b2259b11c13f4e5e708fc4dd3622", "branch_name": "refs/heads/master", "committer_date": "2016-12-23T09:18:51", "content_id": "085613af8f15d594716afcf21e99f049540e47b1", "detected_licenses": [ "MIT" ], "directory_id": "d9193cd789759d5b1f76111c0bfdf5fc264183c4", "extension": "h"...
stackv2
/* Wavelet Image Transform (HAAR) * File: wlets.h * "A guide to Data Compression Methods", D. Salomon ( H4 p170 ) */ #ifndef _HAAR_H_ #define _HAAR_H_ struct rgb_t { unsigned char b,g,r; //waarde RGB worden in RGB opgeslaan als BGR (??) rgb_t(int r_,int g_,int b_) : r(r_),g(g_),b(b_) {} rgb_t() : r(...
2.1875
2
2024-11-19T00:27:45.937194+00:00
2020-08-28T09:46:35
4ccacd1a962929d15ab1f93f8f661a6caa2e9853
{ "blob_id": "4ccacd1a962929d15ab1f93f8f661a6caa2e9853", "branch_name": "refs/heads/master", "committer_date": "2020-08-28T09:46:35", "content_id": "d6f07f9ebda8684e74973e02bc50d9f812b2280f", "detected_licenses": [ "Apache-2.0" ], "directory_id": "921944644e613ad80661f9b9746cdd9623e46925", "extensio...
stackv2
/************************************************************************** * Copyright (C) 2018-2019 Junlon2006 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
2.515625
3
2024-11-19T00:27:46.229061+00:00
2017-08-10T09:07:08
34f4c4e426edccf5499b3e32bb592fbf161bf1ae
{ "blob_id": "34f4c4e426edccf5499b3e32bb592fbf161bf1ae", "branch_name": "refs/heads/xtensa-esp8266", "committer_date": "2017-08-10T09:07:08", "content_id": "67b2cc7651ad32b76e6771c34233a69b1eadadfd", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "6d5abae06c611ce8ecb0900ac621213d06a11239", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <drivers/adc.h> int main(int argc, char **argv) { struct ad_converter adc = {.id = 1}; for (int i = 0; i < 1000; i++) { adc_start(&adc, 8); uint32_t *data = adc_get_raw(&adc); printf("%d %d %d\n", adc_get_corrected(&adc), data[0], ...
2.34375
2
2024-11-19T00:27:46.466864+00:00
2013-04-17T18:42:40
c56105f3eacf55ac9941f24e962d11ef3fb000cc
{ "blob_id": "c56105f3eacf55ac9941f24e962d11ef3fb000cc", "branch_name": "refs/heads/master", "committer_date": "2013-04-17T18:42:40", "content_id": "1608bb0757d892a6e45be9b861a29d3452378ba3", "detected_licenses": [ "MIT" ], "directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef", "extension": "c"...
stackv2
/*************************************************************************** Atari Canyon Bomber hardware driver by Mike Balfour Games supported: * Canyon Bomber Known issues: * none at this time **************************************************************************** Memor...
2.0625
2
2024-11-19T00:27:47.397689+00:00
2019-07-07T18:59:18
033d8affaab9910cf526bbe83b721e13fe262bf3
{ "blob_id": "033d8affaab9910cf526bbe83b721e13fe262bf3", "branch_name": "refs/heads/master", "committer_date": "2019-07-07T18:59:18", "content_id": "35848f7c9c75e14f6802d70646cfd9e1eae10a10", "detected_licenses": [ "Unlicense" ], "directory_id": "804d65e80a6f616c0e3a7e1396b842c6a57fa490", "extension...
stackv2
// // Created by cecilio on 22/02/19. // #include "../include/main.h" user_t *menuLogin(users_t *list, user_t *agenda) { userdata_t userdata; bool selected = false; int IDuser; char choice; while (!selected) { system("clear"); menuTitle(list,agenda,0); printf(DECO00); ...
2.703125
3
2024-11-19T00:27:47.525367+00:00
2021-03-01T13:13:01
b9fd2b7607d8e63ddedfd5e6180060075543259b
{ "blob_id": "b9fd2b7607d8e63ddedfd5e6180060075543259b", "branch_name": "refs/heads/master", "committer_date": "2021-03-01T13:13:01", "content_id": "c8d7a0e05f7a934abbd7edc9e379981a38bf0651", "detected_licenses": [ "MIT" ], "directory_id": "4da25448bef0515e54a8c99e4f03efb4018e9e52", "extension": "c"...
stackv2
#include "realselection.h" #include "stdmath.h" realChromosome* minTournament(tournamentModel *model, realChromosome *srcPopulation) { int i, ind; ind = 0; for(i = 1; i < model->tourSize; i++) { if(srcPopulation[model->tourGroup[i]].fit < srcPopulation[model->tourGroup[ind]].fit) { ...
2.53125
3
2024-11-19T00:27:48.830197+00:00
2021-09-29T19:39:29
b95d31ddf844c9a15767af329bee7ef26c1f47bf
{ "blob_id": "b95d31ddf844c9a15767af329bee7ef26c1f47bf", "branch_name": "refs/heads/main", "committer_date": "2021-09-29T19:39:29", "content_id": "d0bb778a9ae5fe1373bc6e18e62ad421415f6067", "detected_licenses": [ "MIT" ], "directory_id": "16c44f2ae892064b0fc27ba824cb4eeec2c6a286", "extension": "c", ...
stackv2
#include <stdio.h> #define MAX_WORD_LEN 11 #define STYLE '*' int main(void) { /* PROGRAM: Histogram lengths of words in input */ // Variables declaration int array[MAX_WORD_LEN] = {}; // initialised with zero int c; int counter=0; // User input section while ((c=getchar()) != EOF){ if ((c!=' ') &...
3.3125
3
2024-11-19T00:27:49.665386+00:00
2018-02-15T19:30:52
3b1d1af45f21cbbd873d15c19b1cbf98db1b5fef
{ "blob_id": "3b1d1af45f21cbbd873d15c19b1cbf98db1b5fef", "branch_name": "refs/heads/master", "committer_date": "2018-02-15T19:30:52", "content_id": "7e79016f4b4f4b761aa1d988786bf857592c8c89", "detected_licenses": [ "MIT" ], "directory_id": "d3b6989ba7efed6e77e1ecbc6fe9d7b1b393cd1f", "extension": "h"...
stackv2
#pragma once //Simple Log -------------- //============================================================================= // Summary : // // simple_log is a simple to use logging utility written in C++. // // It is a single file header that implements logging utility functions (to a file or a console) // that should...
2.3125
2
2024-11-19T00:27:49.737905+00:00
2012-08-27T22:40:51
6a6d37bb1922ca4c3b25f542f593b01692ff1a6d
{ "blob_id": "6a6d37bb1922ca4c3b25f542f593b01692ff1a6d", "branch_name": "refs/heads/master", "committer_date": "2012-08-27T22:40:51", "content_id": "9244e543bf66b621cdb9498c969f608dde46b552", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "7dad182b3dc3015f5fa8c48a2604570e460015bf", "extens...
stackv2
/****************************/ /* THIS IS OPEN SOURCE CODE */ /****************************/ /** * @file appio.h * CVS: $Id: appio.h,v 1.1.2.4 2012/02/01 05:01:00 tmohan Exp $ * * @author Philip Mucci * phil.mucci@samaratechnologygroup.com * * @author Tushar Mohan * tushar.mohan@sama...
2.09375
2
2024-11-19T00:27:50.673010+00:00
2020-09-10T08:04:24
9d3ac7d4a07cb0043a72e752a2cd9b933aabd973
{ "blob_id": "9d3ac7d4a07cb0043a72e752a2cd9b933aabd973", "branch_name": "refs/heads/master", "committer_date": "2020-09-10T08:04:24", "content_id": "33b9220d375a55342ab9ab520701c7c516d4a527", "detected_licenses": [ "MIT" ], "directory_id": "d686f62bf1c04cff24d8fd5f3a61ebfc01eeb41f", "extension": "h"...
stackv2
#ifndef _RWLOCK_H___ #define _RWLOCK_H___ /* read write lock */ #ifdef _MSC_VER #include <Windows.h> struct rwlock { SRWLOCK srw; }; static inline void rwlock_init(struct rwlock *lock) { InitializeSRWLock(&lock->srw); } static inline void rwlock_rlock(struct rwlock *lock) { AcquireSRWLockShared(&lock->...
2.640625
3
2024-11-19T00:27:50.779093+00:00
2021-05-30T23:14:52
deb1eaa2ff3e1fa5cf597dd33fbe5dc975497fb3
{ "blob_id": "deb1eaa2ff3e1fa5cf597dd33fbe5dc975497fb3", "branch_name": "refs/heads/master", "committer_date": "2021-05-30T23:14:52", "content_id": "07bd8a8cb735ae2ba7466c456c5f27a1ea1e0541", "detected_licenses": [ "MIT" ], "directory_id": "df044bec116662a1de543d75ab6eda336a7a1461", "extension": "c"...
stackv2
// // main.c // PR-Lab02 // // Created by Eric Golovin on 07.10.2019. // Copyright © 2019 EricGolovin. All rights reserved. // #include <stdio.h> int calculateTheSum(int numberOfRows, int numberOfColumns, int array[numberOfRows][numberOfColumns]) { void printArray(int arrayToPrint[], int numberOfElements); ...
3.640625
4
2024-11-19T00:27:50.916461+00:00
2020-11-18T08:39:22
e38d0bb094c4ba748f3972af4213ee0b9d6d2f41
{ "blob_id": "e38d0bb094c4ba748f3972af4213ee0b9d6d2f41", "branch_name": "refs/heads/main", "committer_date": "2020-11-18T08:39:22", "content_id": "410c45c90c9a506bde8b2820542c9e5db42d3b3c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fdb433d89996fec8cf8c7b7789b4739882c25276", "extension"...
stackv2
/* Jhovanny Dnaiel Beltran Lugo 303 */ #include <stdio.h> int main(){ int opcion; float area, l1, l2, h, base; printf("\n //MENU// "); printf("\n1 - cuadrado"); printf("\n2 - rectangulo"); printf("\n3 - triangulo "); printf("\nElige una: "); scanf("%i",&opcion); switch(opcion){ case 1: printf("Intro...
3.578125
4
2024-11-19T00:27:51.039300+00:00
2020-11-19T05:39:49
1e666e966d6a65e8d274c42428f10fb81638a245
{ "blob_id": "1e666e966d6a65e8d274c42428f10fb81638a245", "branch_name": "refs/heads/master", "committer_date": "2020-11-19T05:39:49", "content_id": "cac53d3944ca375c70c97b9d4a37800cef0b85d1", "detected_licenses": [ "Ruby", "BSD-2-Clause" ], "directory_id": "2242d5c3a5883ae2c8335c88b09b4d5ce322111f...
stackv2
#include "cruby.h" static inline VALUE opt_eq_func(VALUE recv, VALUE obj) { if (FIXNUM_2_P(recv, obj) && BASIC_OP_UNREDEFINED_P(BOP_EQ, INTEGER_REDEFINED_OP_FLAG)) { return (recv == obj) ? Qtrue : Qfalse; } else if (FLONUM_2_P(recv, obj) && BASIC_OP_UNREDEFINED_P(BOP_EQ, FLOAT_REDEFINED_OP_FLAG)) {...
2
2
2024-11-19T00:27:51.815588+00:00
2019-03-01T05:49:05
4d91d48f91b2b1d130f72cdc5085bc73d4cc7bde
{ "blob_id": "4d91d48f91b2b1d130f72cdc5085bc73d4cc7bde", "branch_name": "refs/heads/master", "committer_date": "2019-03-01T05:49:05", "content_id": "ae6c181a9de8423f70f3d67fea47cef79f939a1c", "detected_licenses": [ "curl" ], "directory_id": "9923e30eb99716bfc179ba2bb789dcddc28f45e6", "extension": "c...
stackv2
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "aux_input.h" aux_input_t *aux_input_create( object_t *timeMs, bool value ) { aux_input_t *aux_input = malloc(sizeof(aux_input_t)); aux_input->timeMs = timeMs; aux_input->value = value; return aux_input; } void aux_input_free(aux_...
2.734375
3
2024-11-19T00:27:52.157574+00:00
2020-07-31T14:56:58
736ec300f59109c7c6f6479bc039de2270afc220
{ "blob_id": "736ec300f59109c7c6f6479bc039de2270afc220", "branch_name": "refs/heads/master", "committer_date": "2020-07-31T14:56:58", "content_id": "3d39be0486245010dae4753f702524ef0ea410b7", "detected_licenses": [ "MIT" ], "directory_id": "e03b35b8a20a1d7e7aa295c8d761746d78828960", "extension": "c"...
stackv2
#include "iocache.h" #include <unistd.h> #include <stdlib.h> #include <string.h> #include <errno.h> struct iocache { char *ioc_buf; /* the data */ unsigned long ioc_offset; /* where we're reading in the buffer */ unsigned long ioc_buflen; /* the amount of data read into the buffer */ unsigned long ioc_bufsize; /* ...
2.953125
3
2024-11-19T00:27:53.023626+00:00
2020-04-30T03:42:38
ea9fa6dc3754d3340b0be9a9786933eec216621f
{ "blob_id": "ea9fa6dc3754d3340b0be9a9786933eec216621f", "branch_name": "refs/heads/master", "committer_date": "2020-04-30T03:42:38", "content_id": "3f2775d8e35d16df89771436e3591fbc8bdf2201", "detected_licenses": [ "MIT" ], "directory_id": "be07fb7db4ac6721f0d4c615d7f4a0732263ecd6", "extension": "c"...
stackv2
/** * Display Application Program * Written By : Septian D. Chandra * E-mail : septian.d.chandra@gmail.com * Blog URL : http://solderingcodes.blogspot.com */ #include "prg_def.h" #include "library/usart.h" #include "library/delay.h" #include "prayermath.h" /* GLOBAL VARIABLES */ stRealTimeVar stRTim...
2.421875
2
2024-11-19T00:27:53.178185+00:00
2023-08-29T15:42:17
1ac7d5f48eb4c0b7a9752bb540f4fb9456d73b4f
{ "blob_id": "1ac7d5f48eb4c0b7a9752bb540f4fb9456d73b4f", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T06:29:25", "content_id": "729e61df636248d49f548807dc2ce09cb28add19", "detected_licenses": [ "ISC" ], "directory_id": "55b8e6e97b9667340c9ee22305b87c6a8d035af6", "extension": "h"...
stackv2
#ifndef TEST_ITEM_H #define TEST_ITEM_H /* The name of a test is either a named mangled from the name of the context, if any, and the actual test name. Names (or patterns) on the command line is formatted as a symbolic name composed of the context name, a colon and the test name. The variable naming below ...
2.140625
2
2024-11-19T00:27:53.459317+00:00
2015-12-20T04:31:12
428ab50b1724ad01fbe31d97492911da79100dd3
{ "blob_id": "428ab50b1724ad01fbe31d97492911da79100dd3", "branch_name": "refs/heads/master", "committer_date": "2015-12-20T04:31:12", "content_id": "948d67a40b37345e8151d5f0ee21b0fcb966d17d", "detected_licenses": [ "MIT" ], "directory_id": "a1570dfb00f9e33c1856e3e80be8480b71b7faca", "extension": "c"...
stackv2
/* Configure UART to transmit and receive charcters over the serial port at 9600 baud This uses pins P1.1 and P1.2. On the Launchpad these are connected to a USB bridge chip to allow for communcation between the board and a Computer using a USB connection. The code transmitts "Hello world" and then waits to receive str...
2.78125
3
2024-11-19T00:27:53.604812+00:00
2018-09-11T11:01:30
c200ea8157abc9806f9757f2b6cce851aa5fdbd8
{ "blob_id": "c200ea8157abc9806f9757f2b6cce851aa5fdbd8", "branch_name": "refs/heads/master", "committer_date": "2018-09-11T11:01:30", "content_id": "b789db2d1f742ce1451c92c3452cbb4160432749", "detected_licenses": [ "MS-PL" ], "directory_id": "a1be779f8efdb876334bb1e9940598461fde3982", "extension": "...
stackv2
/* Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk> * This file is part of the Linux-8086 C library and is distributed * under the GNU Library General Public License. */ #include <string.h> #ifdef L_abs int abs(arg1) int arg1; { return arg1>0?arg1:-arg1; } #endif #ifdef L_labs long labs(arg1...
2.28125
2
2024-11-19T00:27:53.777282+00:00
2021-08-24T15:11:46
413034099eb71d92901f4cdae6e1f761db4f35a8
{ "blob_id": "413034099eb71d92901f4cdae6e1f761db4f35a8", "branch_name": "refs/heads/master", "committer_date": "2021-08-24T15:11:46", "content_id": "b0bc77adcb45ed2edce66a44cc48e3564056e0da", "detected_licenses": [ "MIT" ], "directory_id": "72d68e85da72c85ebb89ced77583628088dedd1c", "extension": "h"...
stackv2
#ifndef FT_INCLUDED_LIBFT_H #define FT_INCLUDED_LIBFT_H 1 /* FT API */ #include <ft/ft.h> /* Compiler macros */ #if defined(_MSC_VER) # define THREAD_LOCAL __declspec(thread) #elif defined(__GNUC__) || defined(__clang__) # define THREAD_LOCAL __thread #else # error "Unsupported compiler" #endif /* Determine the corr...
2.109375
2
2024-11-19T00:27:54.592157+00:00
2021-10-19T18:53:18
d3c09eeb25e45257574528dbe33f7c977ab60d63
{ "blob_id": "d3c09eeb25e45257574528dbe33f7c977ab60d63", "branch_name": "refs/heads/master", "committer_date": "2021-10-19T18:53:18", "content_id": "22c924194d820f82af232506da150423d961cd71", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "14358d954897abad95e20721a8759487a186aaf2", "extens...
stackv2
/* SPDX-License-Identifier: GPL-2.0 */ /* Based on Linux kernel 4.16.10 * arch/arm64/include/asm/cmpxchg.h * arch/x86/include/asm/cmpxchg.h * https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=v4.16.10&id=b3fdf8284efbc5020dfbd0a28150637189076115 */ #ifndef __ASM_CMPXCHG_H #define __...
2.34375
2
2024-11-19T00:27:54.879491+00:00
2011-05-21T07:54:45
ff339d2f96140472078cd0d305c824f3c58e6d0f
{ "blob_id": "ff339d2f96140472078cd0d305c824f3c58e6d0f", "branch_name": "refs/heads/master", "committer_date": "2011-05-21T07:54:45", "content_id": "95715c499364571f4bdc17d912d7a112888f28f5", "detected_licenses": [ "MIT" ], "directory_id": "d9dffc02b2c00d5cc64c867fbad45b746881872f", "extension": "c"...
stackv2
#include <locale.h> #include <stdio.h> #include <string.h> #include <limits.h> #include <math.h> #include "link-grammar.h" int number_of_linkages(char *str) { Dictionary dict; Parse_Options opts; Sentence sentence; int num_linkages; setlocale(LC_ALL, ""); opts = parse_options_create(); dict = dictionary_crea...
2.890625
3
2024-11-19T00:28:19.697616+00:00
2016-06-03T19:30:52
f7fe6df1110e968f8be6f6e99468fe2b23707db3
{ "blob_id": "f7fe6df1110e968f8be6f6e99468fe2b23707db3", "branch_name": "refs/heads/master", "committer_date": "2016-06-03T19:30:52", "content_id": "f5e5bc72eae9714ca4613b87c618bb540d1f759c", "detected_licenses": [ "MIT" ], "directory_id": "501bf4e2486fe8d6c87c76a74f3df9e0136a41ad", "extension": "c"...
stackv2
#include <avr/pgmspace.h> #include <util/delay.h> #include "lcd_config.h" #include "splc780d1.h" #include "lcd.h" // custom LCD characters const unsigned char lcd_custom_char[] PROGMEM = { 0, 0x3, 0x7, 0xf, 0x1f, 0x1f, 0x1e, 0x1c, // stage 1 char 0 0x10, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, // stage 1...
2.03125
2
2024-11-19T00:28:19.784355+00:00
2017-09-14T15:53:57
f7ce95fd47a02cdd1b8d71f45ee09e53aba0ea1d
{ "blob_id": "f7ce95fd47a02cdd1b8d71f45ee09e53aba0ea1d", "branch_name": "refs/heads/master", "committer_date": "2017-09-14T15:53:57", "content_id": "7cd1d180ff9a759f861b903c434e90f48d3b549c", "detected_licenses": [ "MIT" ], "directory_id": "18fef98a6a5d7d773a0591bba6f27d2752c5e825", "extension": "c"...
stackv2
/* * modbusDaemon.c * * Created on: 03-Nov-2016 * Author: piyush */ #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <syslog.h> #include <string.h> #include <signal.h> #include <time.h> #include <modbus/mod...
2.25
2
2024-11-19T00:28:19.859942+00:00
2021-09-01T22:37:46
9ce2209a8ff6e0a9b3aad2f1c872ccc577d9a4cb
{ "blob_id": "9ce2209a8ff6e0a9b3aad2f1c872ccc577d9a4cb", "branch_name": "refs/heads/master", "committer_date": "2021-09-01T22:37:46", "content_id": "c2614dafee76a93fda3e846941d99e12ac701560", "detected_licenses": [ "MIT" ], "directory_id": "980909a1bc2196b7a55fe7bf22c077381277c53c", "extension": "c"...
stackv2
/* * base58.c * * Copyright 2020 Che Hongwei <htc.chehw@gmail.com> * * The MIT License (MIT) * * 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 wit...
2.0625
2
2024-11-19T00:28:20.499153+00:00
2021-08-11T19:16:42
fb4ed48818b518ab96a2199495ddaf5c28d91041
{ "blob_id": "fb4ed48818b518ab96a2199495ddaf5c28d91041", "branch_name": "refs/heads/main", "committer_date": "2021-08-11T19:16:42", "content_id": "a18153dc87c6784308c8b4eb54e1516501ec1486", "detected_licenses": [ "curl" ], "directory_id": "1061216c2c33c1ed4ffb33e6211565575957e48f", "extension": "c",...
stackv2
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "bad_event_queue_id_error_all_of.h" bad_event_queue_id_error_all_of_t *bad_event_queue_id_error_all_of_create( char *queue_id ) { bad_event_queue_id_error_all_of_t *bad_event_queue_id_error_all_of_local_var = malloc(sizeof(bad_event_queu...
2.171875
2
2024-11-19T00:28:20.571771+00:00
2010-03-03T19:57:04
be88459166c618a43194568877709d18980270ff
{ "blob_id": "be88459166c618a43194568877709d18980270ff", "branch_name": "refs/heads/master", "committer_date": "2010-03-03T19:57:04", "content_id": "6bdc8b5b65f386975c78320101912c7009291fd0", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "0c3f9654c42273f45f46347ce62ad0330b338820", "extens...
stackv2
#define TH_TENSOR_APPLY(self, code) \ { \ real *self##_data = THTensor_(data)(self); \ long self##_size = THTensor_(nElement)(self); \ int i; \ \ for(...
2.046875
2
2024-11-19T00:28:20.721328+00:00
2021-04-25T23:40:36
551752b9d1bc6b721115b67580f55bc2cd9ffed8
{ "blob_id": "551752b9d1bc6b721115b67580f55bc2cd9ffed8", "branch_name": "refs/heads/main", "committer_date": "2021-04-25T23:40:36", "content_id": "88780d84d04da3fe8e9774576ffc8d299e5089fb", "detected_licenses": [ "MIT" ], "directory_id": "67df02d0f3967380147ac2d18c9c01b63d41803e", "extension": "c", ...
stackv2
#include "headers.h" void initSem(); void clearResources(int); void getAlgo(int *, int *, int, char **); void initProcesses(int *, int *, int, int); int getNumOfProcesses(FILE *); void readProcesses(FILE *, process *); int shmid, msqid; int sem_id_scheduler, sem_id_generator; int main(int argc, char *argv[]) { ...
2.453125
2
2024-11-19T00:28:20.884603+00:00
2017-06-25T17:43:07
2d7cc7858381ee4988c7a2667f7e160bb2f21c58
{ "blob_id": "2d7cc7858381ee4988c7a2667f7e160bb2f21c58", "branch_name": "refs/heads/master", "committer_date": "2017-06-25T17:43:07", "content_id": "52ee2fb1a5bb5ca3bcaedcb3d06107b28faddd64", "detected_licenses": [ "MIT" ], "directory_id": "818d8413f809cb6c64a1514a5ef2c0f94a48db8e", "extension": "c"...
stackv2
/** ****************************************************************************** * @file main.c * @author Mateusz Staszkow * @version V1.0 * @date 01-December-2013 * @brief Default main function. ****************************************************************************** */ //rzadszy odczyt...
2.59375
3
2024-11-19T00:28:37.791676+00:00
2022-03-10T17:59:49
907efd5f74f2f1b515a93ce29e7d70933f02d666
{ "blob_id": "907efd5f74f2f1b515a93ce29e7d70933f02d666", "branch_name": "refs/heads/master", "committer_date": "2022-03-10T17:59:49", "content_id": "df001151b9a0c7d88007b1fee749f016ce38a42c", "detected_licenses": [ "MIT" ], "directory_id": "37a494ad71a75df0c5113bbc3c06f94eccaf8e57", "extension": "h"...
stackv2
#include <util.h> /** * 链表节点数据结构 */ struct ListNode { int val; struct ListNode *next; }; /** * 打印链表 */ void print_list(struct ListNode *head) { while (head != NULL) { printf("%d -> ", head->val); head = head->next; } printf("NULL\n"); } struct ListNode *create_list_node(in...
3.875
4
2024-11-19T00:28:39.287179+00:00
2017-11-27T06:26:09
1ae421c0b792e7a5908aa236510f0c104f816baa
{ "blob_id": "1ae421c0b792e7a5908aa236510f0c104f816baa", "branch_name": "refs/heads/master", "committer_date": "2017-11-27T06:26:09", "content_id": "3d5df587de1cca1b6044e4f4eef540f1ef2e8702", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e32e43247f95ed955137a8316cc60b9533c48b79", "extensio...
stackv2
 #include <stdio.h> #include <OMX_Core.h> #include "common/test_omxil.h" #include "common/omxil_utils.h" int main(int argc, char *argv[]) { OMX_ERRORTYPE result; result = OMX_ErrorNone; result = OMX_Init(); if (result != OMX_ErrorNone) { fprintf(stderr, "OMX_Init failed.\n"); goto err_out1; } result = ...
2.078125
2
2024-11-19T00:28:39.375591+00:00
2017-07-16T13:06:52
9fcb7e9ff1e7635bd960fc1820ac81cc2f18a84d
{ "blob_id": "9fcb7e9ff1e7635bd960fc1820ac81cc2f18a84d", "branch_name": "refs/heads/master", "committer_date": "2017-07-16T13:06:52", "content_id": "e7cd0d254561f1081d55e386f2e82a11dd929821", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "0232a4ba76d0a5619e990ab3b955218e6bd68ed0", "extens...
stackv2
#include <siege/siege.h> #include <stdlib.h> #include <math.h> SGFont* font; int main(void) { sgInit(0); sgWindowOpen(640, 480, 32, 0); sgWindowSetTitle("SIEGE Collision Detection Example"); SGSprite* pacman = sgSpriteCreateFile("data/sprites/Pacman.png"); SGMask* pacmanm = sgMaskCreateSprite(pac...
2.34375
2
2024-11-19T00:28:43.007240+00:00
2020-03-15T15:59:03
c5bc8032c19475581d9cbc1fc9a6f749f3a598d6
{ "blob_id": "c5bc8032c19475581d9cbc1fc9a6f749f3a598d6", "branch_name": "refs/heads/master", "committer_date": "2020-03-15T15:59:03", "content_id": "22ca964b348abd6c23540926d4732467b3efe221", "detected_licenses": [ "MIT" ], "directory_id": "77df647e08b6c0ca2872f7a27993b0bcb5fe62b8", "extension": "c"...
stackv2
#include <stdio.h> #include <time.h> #include <stdlib.h> #define FALSE 0 #define TRUE 1 char _isSorted(int *inputArray, int numberOfInputs); void _changeElements(int inputArray[], int numberOfInputs); int main(void) { int numberOfInputs, actualNumber; printf("How many numbers do you want to receive?: "); ...
3.1875
3
2024-11-19T00:28:43.229341+00:00
2019-10-12T16:45:07
69a0ee2779a23caeb29943926fd5333cf0c2ead2
{ "blob_id": "69a0ee2779a23caeb29943926fd5333cf0c2ead2", "branch_name": "refs/heads/master", "committer_date": "2019-10-12T16:45:07", "content_id": "bda7dba83093ad2e520db5da3eae20831362328e", "detected_licenses": [ "MIT" ], "directory_id": "344ca713313661c260e11ffe8948e19cc4cb5877", "extension": "h"...
stackv2
#pragma once #include "stdafx.h" // Asegurarse de que tenemos disponibles los macros min y max #ifndef min #define min(a, b) (a > b ? b : a) #endif #ifndef max #define max(a, b) (a > b ? a : b) #endif // Registro con los parámetros globales del efecto typedef struct { uint8_t usarSSE; // Verdadero si ...
2.140625
2
2024-11-19T00:28:43.365756+00:00
2021-04-20T03:39:57
e43cc03706b81ff7a2c85fb5e7620a1749ac14d0
{ "blob_id": "e43cc03706b81ff7a2c85fb5e7620a1749ac14d0", "branch_name": "refs/heads/master", "committer_date": "2021-04-20T03:39:57", "content_id": "a847af854abad0d079fec6aca86f18c8925808be", "detected_licenses": [ "MIT" ], "directory_id": "6ed4073a453fa04ea9670ba2162f294f5208acf7", "extension": "c"...
stackv2
/* this question is alo known as nearest greater to right */ #include <stdio.h> #include <stdlib.h> struct Stack { int top; unsigned int capacity; int *arr; }; struct Stack *createStack(int); // only for stack void push(struct Stack *, int); // only for stack int pop(struct Stack *); // only for...
3.90625
4
2024-11-19T00:28:44.224812+00:00
2018-07-08T13:47:47
a4d3a27f2f0801f4725585ddc3f97fe4d13d1b22
{ "blob_id": "a4d3a27f2f0801f4725585ddc3f97fe4d13d1b22", "branch_name": "refs/heads/master", "committer_date": "2018-07-08T13:47:47", "content_id": "9ee7f566773151804a94144d7c6b0480b4c36968", "detected_licenses": [ "Apache-2.0" ], "directory_id": "458ab9fc4ab07f05dcf7757ff8b615344f263ecf", "extensio...
stackv2
// // Created by rainorangelemon on 6/11/18. // #include <stdlib.h> #include <stdio.h> #include <string.h> #include "intercode.h" typedef struct Changes_* Changes; typedef struct Valid_Block_* Valid_Block; struct Changes_{ char* name; int earliest_change_time; int latest_change_time; Changes next; Changes p...
2.6875
3
2024-11-19T00:28:44.349657+00:00
2021-07-12T15:12:07
de27ccbc103506eaa9fcf39cf410550e331d23d0
{ "blob_id": "de27ccbc103506eaa9fcf39cf410550e331d23d0", "branch_name": "refs/heads/master", "committer_date": "2021-07-12T15:12:07", "content_id": "a90c8868987f885524fecfe9d757c8fc46356d2d", "detected_licenses": [ "MIT" ], "directory_id": "322ab05336950ab9b9636d71a4a357aafad85650", "extension": "c"...
stackv2
#define F_CPU 16000000UL #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <string.h> #define GET_UBRR_VAL(baudrate) ( F_CPU/(16UL*(baudrate)) - 1 ) #define UBRR_VAL GET_UBRR_VAL(9600) #define UBRRL_VAL (uint8_t)( (UBRR_VAL) & 0xff ) #define UBRRH_VAL (uint8_t)((UBRR_VAL) >> 8) #define ...
2.078125
2
2024-11-19T00:28:45.799114+00:00
2017-02-12T14:03:18
6faabccfa87b3280b1f9fae53182806eff418589
{ "blob_id": "6faabccfa87b3280b1f9fae53182806eff418589", "branch_name": "refs/heads/master", "committer_date": "2017-02-12T14:03:18", "content_id": "015b189da59dff805ebef2911699a2274242df54", "detected_licenses": [ "Apache-2.0" ], "directory_id": "776c43085ebae86b5d42d4d5b39f2a9409bb9f09", "extensio...
stackv2
/* * Módulo INITIALIZER * Contém as configurações de Inicialização gerais do PIC * como periféricos, bibliotecas registradores e pinos */ #include "Initializer.h" sbit rs485_rxtx_pin at RC0_bit; sbit rs485_rxtx_pin_direction at TRISC0_bit; char keypadPort at PORTD; void Init_MCU(){ unsigned char HidReadBu...
2.453125
2
2024-11-19T00:28:45.884616+00:00
2020-10-13T01:08:58
c8752287791e04b438b5c9e17d9d7454f23c2dcd
{ "blob_id": "c8752287791e04b438b5c9e17d9d7454f23c2dcd", "branch_name": "refs/heads/main", "committer_date": "2020-10-13T01:08:58", "content_id": "bdb55a6e71845494dde4e75b31ee23a53d880501", "detected_licenses": [ "Apache-2.0" ], "directory_id": "f13a1717bb67df1b1013154fec56dae5540a7fcb", "extension"...
stackv2
#pragma once #include <drivers/sensor.h> #include <math.h> static float sensor_val_to_float(struct sensor_value *val) { return (float)(val->val1 + val->val2 / 1.00E6); } static void float_to_sensor_value(float f, struct sensor_value *val) { float intpart, fracpart; fracpart = modff(f, &intpart); val->val1 = (int32...
2.40625
2
2024-11-19T00:28:45.954539+00:00
2018-02-16T15:40:23
0dba5717d5fdbc4168feb6dee506117f43086088
{ "blob_id": "0dba5717d5fdbc4168feb6dee506117f43086088", "branch_name": "refs/heads/master", "committer_date": "2018-02-16T15:40:23", "content_id": "eeda808f42ef54cd0f6dc72c911096f509b474f8", "detected_licenses": [ "MIT" ], "directory_id": "97e825e79dc377b017f2bda20471d1f3f483bbfa", "extension": "c"...
stackv2
#define VERSION "mm v1.1 MS-DOS (c) Jeroen Hellingman 16-NOV-1995\n" /* mm -- convert malayalam text in transcription into input for TeX USAGE: mm {-q|-v|-V|-h} [-t transfile][-s scriptfile] infile [outfile] -q quiet mode (default) -v verbose mode -V very verbose mode -h print ...
2.046875
2
2024-11-19T00:28:46.278293+00:00
2012-02-25T22:59:51
91837b424c2fdca573a7a787da773e57a1e21433
{ "blob_id": "91837b424c2fdca573a7a787da773e57a1e21433", "branch_name": "refs/heads/master", "committer_date": "2012-02-25T22:59:51", "content_id": "e07b92ba9800ca99633e56df85804e5523a0cfcf", "detected_licenses": [ "MIT" ], "directory_id": "488ed510f275b2f4787d0b8eedc69c98ed998bec", "extension": "c"...
stackv2
#include <stdlib.h> #include <string.h> #include <assert.h> #include "options.h" options_t options_parse(int argc, char *argv[]) { assert(argc > 1); options_t opts; opts.outfile = NULL; opts.errfile = NULL; opts.target = NULL; opts.json = 0; opts.child_args = NULL; int i; for (i = 1; i < argc; i++...
2.328125
2