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:40:53.677959+00:00 | 2016-05-18T19:42:46 | 80d4f8f50f60e8c5429610552c2e117b12678e67 | {
"blob_id": "80d4f8f50f60e8c5429610552c2e117b12678e67",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-18T19:42:46",
"content_id": "07f08f2f5400e35f720ab37363f5abfe635207bc",
"detected_licenses": [
"MIT"
],
"directory_id": "de6604045fb627b86b6bb03c9f99fc69ed01a954",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <ksu_common.h>
static char code(char c) {
char x;
switch (tolower(c)) {
case 'b' :
case 'f' :
case 'p' :
case 'v' :
x = '1';
break;
case 'c' :
case 'g' :
case 'j' :
... | 2.8125 | 3 |
2024-11-18T23:40:53.759115+00:00 | 2017-02-11T06:28:27 | 64133d481e2040e6161228d38b1c5e662b82f15a | {
"blob_id": "64133d481e2040e6161228d38b1c5e662b82f15a",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-11T06:28:27",
"content_id": "d56bb0fec32a9e38df7f178c9927ef3705a36196",
"detected_licenses": [
"MIT"
],
"directory_id": "382ebab93a587fe9b761434be4eeb43b509f5c5a",
"extension": "c"... | stackv2 | /*
* File: SolutionReconstructor.c
* Author: Sourabh Bhat
*
* Created on 3 February, 2017, 1:27 PM
*/
#include "SolutionReconstructor.h"
#include "data.h"
#include "config.h"
void reconstructSolution(Cell cells[], int rkStep) {
// TODO: Exercise for students - Increase the order of the reconstruction
i... | 2.28125 | 2 |
2024-11-18T23:40:53.898383+00:00 | 2016-07-24T01:38:09 | 67f490983d0fffbcc2ed4a7f7c72b2151d571840 | {
"blob_id": "67f490983d0fffbcc2ed4a7f7c72b2151d571840",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-24T01:38:09",
"content_id": "f61c3161e32f27494d959c76246c9b13505513fd",
"detected_licenses": [
"MIT"
],
"directory_id": "93eb6647faed950796dd1ad65308cbdb06ab98aa",
"extension": "c"... | stackv2 | #include <stdio.h>
/* Press Ctrl-D (end of file) to obtain 0, or press any key and then <enter>
* for 1.
*/
main ()
{
int c;
c = getchar() != EOF;
printf("c = getchar() != EOF is %d\n", c);
}
| 3.015625 | 3 |
2024-11-18T23:40:54.376218+00:00 | 2019-10-18T21:57:39 | be98522b299176fed81f0908c26f19daeea3817b | {
"blob_id": "be98522b299176fed81f0908c26f19daeea3817b",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-18T21:57:39",
"content_id": "71bbea496ad992fc61277beb7acf2d10e7ea7d01",
"detected_licenses": [
"MIT"
],
"directory_id": "40c2090984838c150b873747767f0cde46d38471",
"extension": "c"... | stackv2 |
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
for (; argc > 0; argc--) {
int pid;
pid=fork();
if (pid == 0) {
//delay the child process
sleep(10);
exit(1);
}else{
//print the process id of childs
printf("The ... | 3.0625 | 3 |
2024-11-18T23:40:55.240254+00:00 | 2022-06-19T08:30:58 | 9c7192b50b10d533db8edda6aa22a47f22e53fdb | {
"blob_id": "9c7192b50b10d533db8edda6aa22a47f22e53fdb",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-19T08:30:58",
"content_id": "cd8a174856450b3a4939eba58911430dc3e57cd6",
"detected_licenses": [
"MIT"
],
"directory_id": "e2912a8142900a1d6d2e5f07de337da4d8b202a7",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "vector.h"
#define VECTOR_MIN_CAP 2
#define VECTOR_GROW_RATE 2
static bool growVector(struct Vector *vector) {
void** largerData;
size_t newCap = vector->cap * VECTOR_GROW_RATE;
if (vector->data == NULL || newCap == 0) {... | 3 | 3 |
2024-11-18T23:40:55.339401+00:00 | 2020-02-19T20:42:13 | 377c1c73415d068a8622379c4ebfba6980e0f3ce | {
"blob_id": "377c1c73415d068a8622379c4ebfba6980e0f3ce",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-19T20:42:13",
"content_id": "7b06f238c2dfe731ed30bb6a3dea6ea6f961be5d",
"detected_licenses": [
"MIT"
],
"directory_id": "ff08a16a7fac7a2306df3f829a5531294c76c1bd",
"extension": "c"... | stackv2 | /*
** EPITECH PROJECT, 2019
** vector_get
** File description:
** get the data with the index we given
*/
#include "my.h"
void *vector_get_at(vector **v, int index)
{
vector *tmp = vector_getnode_at(v, index);
return (tmp->data);
} | 2.140625 | 2 |
2024-11-18T23:40:55.844270+00:00 | 2011-11-28T08:58:23 | 4a384d78136d12ce23c9c4ade823c90db326745f | {
"blob_id": "4a384d78136d12ce23c9c4ade823c90db326745f",
"branch_name": "refs/heads/master",
"committer_date": "2011-11-28T08:58:23",
"content_id": "c769b0d826cfb35f337b1c89c1700e58af9a8a40",
"detected_licenses": [
"MIT"
],
"directory_id": "d8f69545e1660a7fd363fdbb734e349b966d5434",
"extension": "h"... | stackv2 | /*! \file
*
* \brief Basic functions to analyze sequences.
*/
#ifndef SEQ_H_
#define SEQ_H_
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <ctype.h>
#include "devries.h"
#include "well1024.h"
/* For C++ compilers: */
#ifdef __cplusplus
extern "C"
{
#endif
/**
* \brief R... | 2.8125 | 3 |
2024-11-18T23:40:56.207186+00:00 | 2021-06-07T10:41:52 | 1be0147d5b1a176121754ec998f167951c7e94ee | {
"blob_id": "1be0147d5b1a176121754ec998f167951c7e94ee",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-07T10:41:52",
"content_id": "7985122e6abc65a8e29544bb7fae52847af07a88",
"detected_licenses": [
"MIT"
],
"directory_id": "c997be4047f802f4056b1f2b6736dd6e3f980da7",
"extension": "c",
... | stackv2 | //Escreva um programa que leia dois números inteiros e informe se o maior é múltiplo do menor
/*
* Author: Igor Vinicius Freitas de Souza
* GitHub: https://github.com/igor1043
* E-mail: igorviniciusfreitasouza@gmail.com
*/
#include <stdio.h>
int main()
{
int n1, n2;
scanf("%d %d", &n1, &n2);
if (n1 >= n2)
{... | 3.953125 | 4 |
2024-11-18T23:40:56.327142+00:00 | 2017-07-03T13:35:12 | 5c5f7aaf9e8418f0bfaceca9869b7c1bdf8a2e80 | {
"blob_id": "5c5f7aaf9e8418f0bfaceca9869b7c1bdf8a2e80",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-03T13:35:12",
"content_id": "a9f89e7d7687480664fcd1389963dabda6f53ab9",
"detected_licenses": [
"MIT"
],
"directory_id": "f0cccc25bf93a8a4726592d3ea2f1a29a1daf4e9",
"extension": "c"... | stackv2 | //basic blink program
#include <avr/io.h>
#include <util/delay.h> //include libraries
int main (void) {
DDRA |= (1 << PA5); // motor pin is declared to be output pin
while(1) {
PORTA |= (1 << PA5); // set PA5 pin "high" (turned on)
_delay_ms(200); // delay function -defined in <util/delay.h> library-... | 2.890625 | 3 |
2024-11-18T23:40:56.683309+00:00 | 2021-11-12T19:31:24 | dbc50f822f29afdc2e792a369d1a644e05c71357 | {
"blob_id": "dbc50f822f29afdc2e792a369d1a644e05c71357",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-12T19:31:24",
"content_id": "f43eee092202364d0a6603b2ebf9562c1714acfb",
"detected_licenses": [
"ISC"
],
"directory_id": "5acb13513f9c68c16a88bf113715a0bbaf28bbc0",
"extension": "c"... | stackv2 | #include <lib_log/logging_plugin.h>
#include <ubus_utils/ubus_utils.h>
#include <stdbool.h>
#include <stdlib.h>
static int
do_log(char const * const prefix, char const * const fmt, va_list ap)
{
fprintf(stderr, "%s: ", prefix);
int const res = vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
fflush(s... | 2.265625 | 2 |
2024-11-18T23:40:56.772141+00:00 | 2022-05-18T22:48:58 | 708de0591df6a98fd87502cb88c9b707e29daf9f | {
"blob_id": "708de0591df6a98fd87502cb88c9b707e29daf9f",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-18T22:48:58",
"content_id": "300603d579f59ec6635238cb38f13df90e4b3fd2",
"detected_licenses": [
"NetCDF"
],
"directory_id": "f311072a5ac74e4d749c28491755e24840102951",
"extension": ... | stackv2 | /**
* API write the host file from memory.
*
* "$Id: nccf_put_host.c 767 2011-06-06 23:20:19Z pletzer $"
*/
#include <nccf_host.h>
#include <string.h>
#include <nccf_errors.h>
/**
* \ingroup gs_host_grp
* Write the host to file.
*
* \param hostid the ID for the host object
* \param ncid the ID for a created ... | 2.25 | 2 |
2024-11-18T23:40:56.872214+00:00 | 2023-08-04T19:40:57 | 89b7d3ebc02b568e6309fb28ada5f8153edbf072 | {
"blob_id": "89b7d3ebc02b568e6309fb28ada5f8153edbf072",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-04T19:40:57",
"content_id": "1e51800bc5d4fd097a163e033a45e9661c3c4cb0",
"detected_licenses": [
"MIT"
],
"directory_id": "1f957a92cbd9bfc03e2cc21b107f71f8e229783a",
"extension": "c"... | stackv2 | #include "remap.h"
#include "../../cpu/cpu.h"
#include "../../log.h"
#include "../frame/allocator.h"
#include "../multiboot2.h"
#include "helpers.h"
#include "paging.h"
#include "tempallocator.h"
static inline void initialize_new_table4(page_table_t* new_table4_addr, const page_t temp_page);
static inline void remap_... | 2.78125 | 3 |
2024-11-18T23:40:57.011709+00:00 | 2012-05-25T14:51:05 | c1a0cdda563f033d3e322b585fc93a41b3d1af6e | {
"blob_id": "c1a0cdda563f033d3e322b585fc93a41b3d1af6e",
"branch_name": "refs/heads/master",
"committer_date": "2012-05-25T14:51:05",
"content_id": "9a6d652865866a2f55bac594e9045758b0afaa93",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "d36d6804c54acbc7ea51c57da2c2e4353330311a",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#define SIZE (1<<24)
int cmp(const void *a,const void * b)
{
return(*(int *)a - *(int *)b );
}
int main(int argc, char* argv[])
{
int *values;
values = (int*)malloc(SIZE*sizeof(int));
for (int i = 0; i < SIZE; ++i) {
values[i] = rand ();
}
qsort(value... | 2.984375 | 3 |
2024-11-18T23:40:57.308386+00:00 | 2021-05-12T13:52:52 | 5d96e6674689f53dcae50c3fbd7cd067497ebb60 | {
"blob_id": "5d96e6674689f53dcae50c3fbd7cd067497ebb60",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-12T13:52:52",
"content_id": "224a6a7bb7554e774952bfaf5f2fa4cacef1d1b3",
"detected_licenses": [
"MIT"
],
"directory_id": "a1f48d07c4a9d1d1cca388c73bf0d096bce85b1a",
"extension": "c",
... | stackv2 |
#include "simple_logger.h"
#include "bu_entity.h"
#include "bu_door.h"
#include "bu_collision.h"
#include "bu_player.h"
#include "bu_level.h"
void door_touch(Entity *self, Entity *player)
{
if (!self) return;
//slog("Player touch: %s", player->name);
if (player == get_player()->ent)
{
level_load(self->data);
... | 2.34375 | 2 |
2024-11-18T23:40:58.032942+00:00 | 2021-11-11T10:57:17 | 925a98dbd214ea617729a77d502f89488a685e6f | {
"blob_id": "925a98dbd214ea617729a77d502f89488a685e6f",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-11T10:57:17",
"content_id": "5beeb644b71f5e0227d2c7291f50ed0d067afe96",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "5188c1dca2c90e42cdfe542c18497862c634709c",
"extensio... | stackv2 | /*
============================================================================
Name : trustedFW_EL2funcs.c
Author : CAP-TEE
Version :
Copyright : CAP-TEE 2021
Description : Functions to interface to the trusted firmware-A
========================================================================... | 2.234375 | 2 |
2024-11-18T23:40:58.096626+00:00 | 2023-08-18T12:54:06 | 963aa0d79317e6624546218cfde9886adc81a6e5 | {
"blob_id": "963aa0d79317e6624546218cfde9886adc81a6e5",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T12:54:06",
"content_id": "51b4254991ab1c4a4ace829f1367286ae6c88a86",
"detected_licenses": [
"MIT"
],
"directory_id": "22446075c2e71ef96b4a4777fe966714ac96b405",
"extension": "c"... | stackv2 | /*!
* @file main.c
* @brief ISMTX Click example
*
* # Description
* This application shows capability of ISM TX Click board.
* It sets default configuration, and transmits data in
* manchester encoding with FSK or ASK signal modulation.
*
* The demo application is composed of two sections :
*
* ## Applicat... | 2.796875 | 3 |
2024-11-18T23:40:58.306254+00:00 | 2014-06-21T02:56:06 | 83331960204b3c20aa1d55fc817b7c21a1f8cbc3 | {
"blob_id": "83331960204b3c20aa1d55fc817b7c21a1f8cbc3",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-21T02:56:06",
"content_id": "8309d25bee0d6f901c5090070b052e7ddb96860e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "50fb95efe3d7b488a1151c65d1a40fbf6ff183b0",
"extens... | stackv2 | #include "island.h"
/* select a random cell that contains a 1, zero it and increment its neighbors */
void diffone(int grid[N][N])
{
int r;
r = (int)(drand48()*count);
walk(list[0][r], list[1][r], grid);
}
long getrand() { return mrand48() &3 ; }
void choose_direction(int i, int j, int *x, int *y)
{
long p;
i... | 3.03125 | 3 |
2024-11-18T23:40:58.379877+00:00 | 2020-04-02T01:17:26 | 2ca9b69a7677c652b57191970bc2d8460985c04c | {
"blob_id": "2ca9b69a7677c652b57191970bc2d8460985c04c",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-02T01:17:26",
"content_id": "fd5f25e420b861595fbc22d0214cac3839a79dc2",
"detected_licenses": [
"MIT"
],
"directory_id": "910a7c2191d840c8c533473954c72e2ce87914fb",
"extension": "c"... | stackv2 | #include <stdio.h>
int main() {
char s[] = "Test string with spaces ";
char ss[256];
printf("enter string");
// Escape the unwanted breakline after entering spaces
scanf("%[^\n]s", ss);
// Concatenate and print the String variables on a new line
printf("%s%s\n", s, ss);
return 0... | 3.3125 | 3 |
2024-11-18T23:40:58.532269+00:00 | 2023-09-05T13:50:28 | 55c55c179d90700241a4385dcded58151f314943 | {
"blob_id": "55c55c179d90700241a4385dcded58151f314943",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-05T13:50:28",
"content_id": "2fda4a182cf3104685ea733800090d7a7a1b284a",
"detected_licenses": [
"MIT"
],
"directory_id": "fd58a6979f9b8ff025ef4b19f5846ec9ce9d3ff8",
"extension": "h"... | stackv2 | #pragma once
const auto skybox_vert = R"(
#version 450
#extension GL_ARB_separate_shader_objects : enable
layout(push_constant) uniform PushConstants {
mat4 projection;
mat4 modelView;
} pc;
layout(location = 0) in vec3 osg_Vertex;
layout(location = 0) out vec3 outUVW;
out gl_PerVertex{ vec4 gl_Position; };... | 2.171875 | 2 |
2024-11-18T23:40:58.868501+00:00 | 2021-09-17T10:53:20 | 64683ce129c1a1c818d7d24ef8f5fd4ddf77712c | {
"blob_id": "64683ce129c1a1c818d7d24ef8f5fd4ddf77712c",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-17T10:53:20",
"content_id": "6abd1da9872c580aef516590563654c35fb6fb65",
"detected_licenses": [
"MIT"
],
"directory_id": "795346ffb674b565fb1d48728bac555d3dc4dcb2",
"extension": "c",
... | stackv2 | /* HTTP File Server Example
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.
*/
#include <stdio... | 2.0625 | 2 |
2024-11-18T23:40:58.994246+00:00 | 2021-06-27T17:51:21 | cd6439e53fceb9ebe54e3c81c246a81ab949fa51 | {
"blob_id": "cd6439e53fceb9ebe54e3c81c246a81ab949fa51",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-27T17:51:21",
"content_id": "84cef4f2359097034f22b737c2f30f01ead68677",
"detected_licenses": [
"MIT"
],
"directory_id": "025d650960f02c14b02ccdc21bbc508e89ed4d22",
"extension": "h"... | stackv2 | //
// A font! That's all there is to it.
//
#ifndef _FONT_
#define _FONT_
//
// Loads in the font texture and calculates the uv's of the letters.
//
void FONT_init(void);
//
// Returns TRUE if the FONT module can draw the ASCII character.
//
SLONG FONT_char_is_valid(CBYTE ch);
//
// Draws some text. When you... | 2.53125 | 3 |
2024-11-18T23:40:59.635178+00:00 | 2017-09-08T05:28:06 | 58756cb5799c62644758eae98ab23347b61a32c3 | {
"blob_id": "58756cb5799c62644758eae98ab23347b61a32c3",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-08T05:29:24",
"content_id": "a22dba98e6d25e04192dc478f7bde476a1790167",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c5e7a7776241c3fd8add2076208f9f4181ecbe60",
"extensio... | stackv2 |
#ifndef __abprotocol_protoo_h__
#define __abprotocol_protoo_h__
#pragma pack(1)
typedef struct _avp_flag_
{
unsigned char vendor_specific_f:1;
unsigned char mandatory_f:1;
unsigned char protected_f:1;
unsigned char reserved1:1;
unsigned char reserved2:1;
unsigned char reserved3:1;
unsigned char rese... | 2.0625 | 2 |
2024-11-18T23:40:59.809917+00:00 | 2019-12-11T09:48:43 | b726e2c62266cecfa80f422d4a9af120fcd5b1d6 | {
"blob_id": "b726e2c62266cecfa80f422d4a9af120fcd5b1d6",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-11T09:48:43",
"content_id": "ad02cb96ecf76b0ed14c8d39d9648fffe50f9648",
"detected_licenses": [
"MIT"
],
"directory_id": "e25870e755ce2997ccaf0bbd3171a4c1e8834f58",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include<math.h>
#define EMPTY_TOS -1
#define MIN_STACK_SIZE 20
struct stack_record_char
{
unsigned int stack_size;
int top_of_stack;
char *stack_array;
};
struct stack_record_num
{
unsigned int stack_size;
int top_of_stack;
long *stack_array;
};
typedef... | 3.40625 | 3 |
2024-11-18T23:41:01.997867+00:00 | 2020-11-19T05:19:07 | 39f4145b2142c29b94b955dd3dab50578d2dd870 | {
"blob_id": "39f4145b2142c29b94b955dd3dab50578d2dd870",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-19T05:19:07",
"content_id": "adc3a8646c5ab2f880a34fe439ac5f20edbace64",
"detected_licenses": [
"MIT"
],
"directory_id": "0cc18155e8fdca93a5979ddbf8efeff65421407c",
"extension": "c",
... | stackv2 | #include "types.h"
#include "stat.h"
#include "user.h"
#include "fcntl.h"
#include "processInfo.h"
int main(int argc, char *argv[])
{
printf(1, "PID\tPPID\tSIZE\tNumber of Context Switch\n");
struct processInfo info;
int pid = atoi(argv[1]);
int c = getProcInfo(pid, &info);
if(c == 0)
printf(1, "%d\t%d\t... | 2.46875 | 2 |
2024-11-18T23:41:03.418596+00:00 | 2021-03-17T07:29:19 | 23739c186e5d8b12245d22d8586c4b0a9cd2acff | {
"blob_id": "23739c186e5d8b12245d22d8586c4b0a9cd2acff",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-17T07:29:19",
"content_id": "f8ab74283b078da85eba218a69879b15f1b88b9e",
"detected_licenses": [
"curl",
"Apache-2.0"
],
"directory_id": "546018757d22ae76154b87335db68e1cfabfedcb",... | stackv2 | #ifndef io_k8s_api_networking_v1_ingress_backend_TEST
#define io_k8s_api_networking_v1_ingress_backend_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define io_k8s_api_networking_v1_ingress_backend_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#include <str... | 2.6875 | 3 |
2024-11-18T23:41:03.679787+00:00 | 2021-08-29T16:29:17 | 3370e59bef3e9a5e2061670b4cc95df977bef4a6 | {
"blob_id": "3370e59bef3e9a5e2061670b4cc95df977bef4a6",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-29T16:29:17",
"content_id": "445f5132aad6548850d5f91dfebc8a0dd4cc727d",
"detected_licenses": [
"MIT"
],
"directory_id": "d24ebd1fd3f42da9274c4eb45a77742dc8d1982f",
"extension": "c"... | stackv2 | #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int check_alpha(char a);
int main() {
char c;
printf("입력 : ");
scanf("%c", &c);
if (check_alpha(c))
printf("%c는 알파벳입니다.", c);
else
printf("%c는 알파벳이 아닙니다.", c);
}
int check_alpha(char a) {
for (int i = 0; i < 28; i++) {
if (a == 'a' + i)
return 1;
}
... | 3.0625 | 3 |
2024-11-18T23:41:04.597525+00:00 | 2021-02-19T20:07:12 | b88190cf2da82423245e1d3950b37b7a44f7b596 | {
"blob_id": "b88190cf2da82423245e1d3950b37b7a44f7b596",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-19T20:07:12",
"content_id": "58b51bb58ba1689594574d43f57eb2206a4fd922",
"detected_licenses": [
"MIT"
],
"directory_id": "8260fd92bb4e23f529e2d7aa22cd30ca00ccb6cd",
"extension": "c"... | stackv2 | #include "arrays.h"
size_t sorted_array_median_ind(size_t n) {
return n / 2;
}
size_t split_sorted_array_on_median(void *arr1, size_t nmemb, size_t item_size, void *arr2, void *key) {
if (nmemb == 0) {
return 0;
}
size_t median = sorted_array_median_ind(nmemb);
memcpy(key, (char *) arr1 + ... | 3.109375 | 3 |
2024-11-18T23:41:04.711968+00:00 | 2017-05-24T10:33:50 | 069b02c78e19fbc17de4764a92bc2b784de4f4ba | {
"blob_id": "069b02c78e19fbc17de4764a92bc2b784de4f4ba",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-24T10:33:50",
"content_id": "e4416d58f7f0f39cf380fed9248b88d049340507",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "95e0aae5e33a1858894b52a245f6dad67ae6a225",
"extens... | stackv2 | /* Copyright (C) 2012-2016 Autotalks Ltd. */
#ifndef _ATLK_ATOMIC_H
#define _ATLK_ATOMIC_H
#include <atlk/sdk.h>
#if defined __GNUC__ && !defined __arc__
#define ATLK_ATOMIC_USE_GCC_BUILTIN
#elif defined __THREADX__
#include <tx_api.h>
#define ATLK_ATOMIC_USE_THREADX_API
#else
#error "Neither GCC atomic builtins no... | 2.46875 | 2 |
2024-11-18T23:41:05.309777+00:00 | 2021-07-28T18:15:31 | ce0dd6480812f70cd3807ca8d18011bbee3c054e | {
"blob_id": "ce0dd6480812f70cd3807ca8d18011bbee3c054e",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-28T18:15:31",
"content_id": "1273e7f8f07c627393026c884eb4433cdc3e20fb",
"detected_licenses": [
"MIT"
],
"directory_id": "f9ce4663d2d72c967636dd54d55da606c6a0a4bf",
"extension": "c",
... | stackv2 | /*******************************************************************************
File..........: linkwrap.c
Date..........: 6/12/2001
Author........: Jonas Minnberg
Project.......:
Language......: Visual C++
OS............: Win95/NT
Description...: Quick-hacked wrapper for the GNU linker to format its error-
... | 2.53125 | 3 |
2024-11-18T23:41:05.900249+00:00 | 2019-12-29T11:53:28 | 312129a1ae927be5104f8c93951cdbc223855b28 | {
"blob_id": "312129a1ae927be5104f8c93951cdbc223855b28",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-29T11:53:28",
"content_id": "fd055538f955df1a84e0f9634dd716054b091232",
"detected_licenses": [
"MIT"
],
"directory_id": "2f3aa72e3da55649d4e9a5781e508acfb4ccaf59",
"extension": "c"... | stackv2 | #include <unistd.h>
#include <stdio.h>
#include <pthread.h>
#include <string.h>
#include <stdlib.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/sem.h>
void display(unsigned short mode);
void printdir(char *dir,int depth);
int main(){
int depth=0;
char dir[500];
printf("P... | 3.015625 | 3 |
2024-11-18T23:41:07.402694+00:00 | 2020-11-09T02:38:47 | d2f3c12036269b8f17b1bbf3472035129054c6a9 | {
"blob_id": "d2f3c12036269b8f17b1bbf3472035129054c6a9",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-09T02:38:47",
"content_id": "34722a2edec1b7f18ba846dea6815214f59cda79",
"detected_licenses": [
"MIT"
],
"directory_id": "86ca0b628b050b4156343a26a34bea432058906e",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <signal.h>
#include <stdlib.h>
#include <bcm2835.h>
#include <unistd.h>
#include "../../main.h"
#include "gpio_module.h"
void settings_pins(){
// Setting objects
bcm2835_gpio_fsel(LAMP_1_GPIO_17_COZINHA, BCM2835_GPIO_FSEL_OUTP);
bcm2835_gpio_fsel(LAMP_2_GPIO_18_SALA, BCM2835_GP... | 2.390625 | 2 |
2024-11-18T23:41:07.514777+00:00 | 2023-01-30T21:17:01 | fd3f4cdbef72b90b1957679c58d9e7bb96cb764e | {
"blob_id": "fd3f4cdbef72b90b1957679c58d9e7bb96cb764e",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-30T21:17:01",
"content_id": "2cda2aadc2eb4bb6c8aa897a9e8aa90b0e2da2d3",
"detected_licenses": [
"MIT"
],
"directory_id": "34a043e6961639657e36e7ac9fd459ad5b1f6de1",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
/*
* engine.c
*
* Trivial 1D "engine" to be used for tests of an external engine.
*
* Allows us to control pace of creating new frames, as well as initial
* frame condition.
*/
int main(int argc, char ** argv)
{
if (argc < 2) {
printf("Requir... | 2.75 | 3 |
2024-11-18T23:41:07.850397+00:00 | 2019-07-27T07:08:45 | c256c0789a6c8b65f2066a402a5f3355f6732e3c | {
"blob_id": "c256c0789a6c8b65f2066a402a5f3355f6732e3c",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-27T07:08:45",
"content_id": "20ae820e12e5da4f6633902c7aeba85a233be6e1",
"detected_licenses": [
"MIT"
],
"directory_id": "5709584065c43577bded5e7abc775e890dd72384",
"extension": "c"... | stackv2 | ////////////////////////////////////////////////////////////////////////////////
#define _TIMERS_C_
////////////////////////////////////////////////////////////////////////////////
#include "EVBoard.h"
// arr: 自动重装载值
// psc:时钟预分频数
// 这里使用 TIM2
void init_TIM(u16 arr,u16 psc)
{
TIM_TimeBaseInitTypeDef TIM_TimeBaseSt... | 2.671875 | 3 |
2024-11-18T23:41:08.729020+00:00 | 2018-02-21T20:58:17 | 71eb93546b0c090470827b27a500a93af7a19821 | {
"blob_id": "71eb93546b0c090470827b27a500a93af7a19821",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-23T18:20:55",
"content_id": "1788d4d64d14902d13207b7ad3f2a98e3d02ee0a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "61cffd4bb110c0215eb8e8bb5fb10b1130a1d5b0",
"extens... | stackv2 | /* Copyright (c) 2017, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "config.h"
#include <odp_api.h>
#include <odp_cunit_common.h>
#include <test_packet_parser.h>
#include <odp/helper/odph_api.h>
#include <stdlib.h>
#include "parser.h"
#include "pktio.h"
#defin... | 2.15625 | 2 |
2024-11-18T23:41:08.801623+00:00 | 2020-07-04T17:19:06 | aadf6ec934cc090874c6ca97b08eb007208b058c | {
"blob_id": "aadf6ec934cc090874c6ca97b08eb007208b058c",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-04T17:19:06",
"content_id": "3e943a178c814b83fc8e1de150f4397064d87158",
"detected_licenses": [
"MIT"
],
"directory_id": "d1ce8ca8abb67da8b20077ec908754e3038d1602",
"extension": "c"... | stackv2 | #include "cMips.h"
int genCod(char* res,char * operacion,char * op1,char * op2,FILE *arch,FILE * arch2,int contador){
int aux1,aux2;
float auxf1,auxf2;
//aqui comienza el switch
if (strcmp(operacion,"label")==0){
fprintf(arch,"%s:\n",op1);
return 0;
}
if (strcmp(operacion,"goto")==0){
fprintf(arch,"\tgoto ... | 2.453125 | 2 |
2024-11-18T23:41:08.877905+00:00 | 2021-04-08T21:28:30 | 0c34732fb1df0fcb584096c1f277bdd129606cb8 | {
"blob_id": "0c34732fb1df0fcb584096c1f277bdd129606cb8",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-08T21:28:30",
"content_id": "0205f79161c0753fb1c1f2815daf4214c1bf8aab",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "70cdca8b340e931f154542e851fbb0088b673c69",
"extens... | stackv2 | /*
* Intigration test for fftautocorr, compared with FFTW and pocketfft
*
* Copyright (C) 2020 CareF
* \author CareF
* Licensed under a 3-clause BSD style license - see LICENSE.md
*/
#include "fftautocorr.h"
#include "pocketfft/pocketfft.h"
#include <stdio.h>
#include <fftw3.h>
#include <time.h>
#include <mat... | 2.8125 | 3 |
2024-11-18T23:41:09.326482+00:00 | 2021-07-18T16:53:13 | 173f17452fbd8b68148fbc1c1597eb12f6c1b73e | {
"blob_id": "173f17452fbd8b68148fbc1c1597eb12f6c1b73e",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-18T16:53:13",
"content_id": "71ad4cba2c7c7eed8156a87f64f2ebe98bf83b6a",
"detected_licenses": [
"Unlicense"
],
"directory_id": "cad3ffbebec9b570b8888881c08f37ebfde242bc",
"extension... | stackv2 | #include <stddef.h>
#include "ctest.h"
#include "object.h"
#include "value.h"
CTEST(value, tagged_uinon) {
{
Value val = NIL_VAL;
ASSERT_TRUE(IS_NIL(val));
}
{
Value val = BOOL_VAL(false);
ASSERT_TRUE(IS_BOOL(val));
ASSERT_FALSE(AS_BOOL(val));
val = BOOL_V... | 2.515625 | 3 |
2024-11-19T00:16:49.272536+00:00 | 2018-09-03T03:38:13 | 1c8734b44458cbaa27d9ba8dde9871ba60554b0c | {
"blob_id": "1c8734b44458cbaa27d9ba8dde9871ba60554b0c",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-03T03:38:13",
"content_id": "67ac74812a9dd9ea7cf15b2eb20d7fcc91c8129a",
"detected_licenses": [
"MIT"
],
"directory_id": "df7ec2cfe5a1e6c6b50e0e3b8bc838f1aef2591b",
"extension": "h"... | stackv2 | // Copyright (c) 2017-2018 Augustus Wang
// zobrist.h
// zobrist hash 实现及空间分配
#ifndef _ZOBRIST_H
#define _ZOBRIST_H
#include <stdlib.h>
#define SEED 233
#define HASHSIZE 0x02FFFFFF
#include "support.h"
#include "MersenneTwisterRand.h"
//使用梅森旋转法生成随机数, 而非C99自带的实现
//注记: hash分成两部分, 短的数组索引和长的校验用数.
// #define ENABLEHASH
i... | 2.359375 | 2 |
2024-11-19T00:16:49.643096+00:00 | 2020-03-05T02:31:19 | 864bed72b48dccb5e41fdc473317b38fb0f7997a | {
"blob_id": "864bed72b48dccb5e41fdc473317b38fb0f7997a",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-05T02:31:19",
"content_id": "ed51ee93fe55bb734ad0be119217809a6d226999",
"detected_licenses": [
"MIT"
],
"directory_id": "8721aeafd706c1ffbeeaf41a8f9b96cacefc071a",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int main () {
int c, l, n,i;
float contChars, contLines, contPages;
char palavra[70];
while (scanf("%d %d %d", &n, &l, &c) != EOF) {
contChars = 0;
contLines = 1;
while (n--) {
scanf("%s", palavra);
if (contChars > 0)
contChars++;
... | 2.734375 | 3 |
2024-11-19T00:16:49.846133+00:00 | 2013-04-17T18:42:40 | 2a160e88be2ad68d4e05ceeb3fdc0e43e36793f7 | {
"blob_id": "2a160e88be2ad68d4e05ceeb3fdc0e43e36793f7",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-17T18:42:40",
"content_id": "b0673a6506de05f3961ce25a4624855d62b6adcc",
"detected_licenses": [
"MIT"
],
"directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef",
"extension": "c"... | stackv2 | /*******************************************************************************
Dr. Micro (c) 1983 Sanritsu
Video hardware
driver by Uki
*******************************************************************************/
#include "emu.h"
#include "includes/drmicro.h"
/***************************************... | 2.234375 | 2 |
2024-11-19T00:16:50.002886+00:00 | 2016-09-08T05:51:06 | 42f16fa4dc17db42afbb1a34462cd194acb55171 | {
"blob_id": "42f16fa4dc17db42afbb1a34462cd194acb55171",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-08T05:51:06",
"content_id": "141d8429291677e587ee5d1737ce4d2a756e195b",
"detected_licenses": [
"MIT"
],
"directory_id": "a4a26f08f2252b1f39475369e955669d05c31ab3",
"extension": "c"... | stackv2 | // This code written by Chris Davis
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
struct node {
int payload;
struct node *next;
struct node *prev;
}*head, *tail, *current, *temp;
int i;
void Inorder (struct node *current); // Prototype
void Postorder (struct node *curren... | 3.5 | 4 |
2024-11-19T00:16:50.540219+00:00 | 2014-03-11T23:43:42 | a9c2109dfd534e9769e755d71995c2f73765b8a9 | {
"blob_id": "a9c2109dfd534e9769e755d71995c2f73765b8a9",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-11T23:43:42",
"content_id": "7841a24591c8211c2eb9eb6b6064617620abea91",
"detected_licenses": [
"MIT"
],
"directory_id": "741f00df9fed9d60a2f3bd509180396f44739cd5",
"extension": "c"... | stackv2 | /*
** put_wall.c for put_wall in /home/svirch_n//current_project/wolf3D/wolf3d-2017-svirch_n
**
** Made by nicolas svirchevsky
** Login <svirch_n@pc-svirch_n>
**
** Started on Tue Jan 8 21:34:31 2013 nicolas svirchevsky
** Last update Sat Jan 12 18:43:56 2013 nicolas svirchevsky
*/
#include <mlx.h>
#include "lib... | 2.78125 | 3 |
2024-11-19T00:16:50.597881+00:00 | 2021-05-19T15:10:49 | 20012f21a68e5098bad46c95f229f72cd323f571 | {
"blob_id": "20012f21a68e5098bad46c95f229f72cd323f571",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-19T15:10:49",
"content_id": "059b07fdbcb15b4b8a32738133da317a85751492",
"detected_licenses": [
"MIT"
],
"directory_id": "e1d808c2e3101ee51fe090b3d937f8351a975b72",
"extension": "h"... | stackv2 | struct S_InfoData {
int codigo;
char nome[50];
int preco;
};
typedef struct S_InfoData TypeInfoData;
struct S_LinkedData{
TypeInfoData info;
struct TypeLinkedData *next;
};
typedef struct S_LinkedData TypeLinkedData;
//Inicializar a lista
TypeLinkedData* InitList( void );
//Read data of TypeInfoData
void R... | 2.265625 | 2 |
2024-11-19T00:16:53.948710+00:00 | 2021-03-30T13:39:02 | c1f55cb73d0eb858c52a00537d1e72fa55459e88 | {
"blob_id": "c1f55cb73d0eb858c52a00537d1e72fa55459e88",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-30T13:39:02",
"content_id": "db0cb2ce46620626ad180362067df4dfc9d82fec",
"detected_licenses": [
"MIT"
],
"directory_id": "4520626bab2e761c937be79a96d2a047997476f1",
"extension": "c"... | stackv2 | #include "coro.h"
#include <stdlib.h>
#include <stdio.h>
struct creroutine *cre_main = 0;
volatile struct creroutine *cre_current = 0;
void switch_to_main(void) {
struct creroutine *backup = (struct creroutine *)cre_current;
cre_current = 0;
swapcontext((ucontext_t *)&backup->context, (ucontext_t *)&cre_main->cont... | 2.6875 | 3 |
2024-11-19T00:16:55.560014+00:00 | 2021-01-01T10:50:16 | 8d23ae428db01b6aca96d4c14232561e7f01dc82 | {
"blob_id": "8d23ae428db01b6aca96d4c14232561e7f01dc82",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-01T10:58:44",
"content_id": "2939c5e796db8a046425dc059a886ac7110d5fe4",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "9d25f72a81318ae4cf28fd0f48673bdffb37ba89",
"extens... | stackv2 | /* -*- mode: c; coding:utf-8 -*- */
/**********************************************************************/
/* OS kernel sample */
/* Copyright 2014 Takeharu KATO */
/* ... | 2.1875 | 2 |
2024-11-19T00:16:55.622108+00:00 | 2020-05-27T14:34:29 | b23ad1aab2e12a8ade718524baaed753f1d44788 | {
"blob_id": "b23ad1aab2e12a8ade718524baaed753f1d44788",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-27T14:39:26",
"content_id": "3c780272c0e87ddaf3569cc27b0fc666bec1dad1",
"detected_licenses": [
"MIT"
],
"directory_id": "5d6e6beb365e5e52db41394826ccfbc3e51bcfb7",
"extension": "c"... | stackv2 |
#include <time.h>
#include <stdio.h>
/**
* Просто заснуть на N секунд, аналог sleep
*/
int main(int argc, char **argv)
{
if ( argc < 2 )
{
fprintf(stderr, "wait <seconds>\n");
return 1;
}
struct timespec tm;
tm.tv_sec = atoi(argv[1]);
tm.tv_nsec = 0;
nanosleep(&tm, 0);
return 0;
}
| 2.796875 | 3 |
2024-11-19T00:16:55.704525+00:00 | 2022-05-16T04:19:29 | c2bf12dcf1f2e56a24bb72cc7fab10c0a52be51c | {
"blob_id": "c2bf12dcf1f2e56a24bb72cc7fab10c0a52be51c",
"branch_name": "refs/heads/main",
"committer_date": "2022-05-16T04:19:29",
"content_id": "65925796694147025715ce4b40be1919a14dee40",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "817f6d019dd8d4911c688510a9244b0071adb774",
"extensio... | stackv2 | /*
* Copyright 2012-2017 Katherine Flavel
*
* See LICENCE for the full copyright terms.
*/
/*
* Entropy calculation and analysis of putative random sequences.
*
* Adapted from ent(1), designed and implemented
* by John "Random" Walker in May 1985.
* See http://www.fourmilab.ch/random/
*/
#include <stdio.h>
... | 2.828125 | 3 |
2024-11-19T00:16:56.372534+00:00 | 2016-09-06T09:09:19 | 839b6afd27cc4a70b9c70e6f1f4d3cf3754d715d | {
"blob_id": "839b6afd27cc4a70b9c70e6f1f4d3cf3754d715d",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-06T09:09:19",
"content_id": "9523240819d97034b1cfb98732636ffbb6c36453",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "854a2ab8f607265759b7d9cb0211dc451be6e469",
"extensio... | stackv2 | /*
* tmpnam.c
*
* a program to demonstrate how to use tmpnam() function,
* and what it can do.
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
int main( int argc, char *argv[] ) {
char *tmp_pathname; /* temporary file full name */
FILE *in = NULL; /* opened temp file */
if ( (tmp_pathname = tm... | 3.15625 | 3 |
2024-11-19T00:16:56.509447+00:00 | 2018-02-17T00:28:25 | ef7587b39c1064e5105def31f6ae3ffc6054c7f4 | {
"blob_id": "ef7587b39c1064e5105def31f6ae3ffc6054c7f4",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-17T00:28:25",
"content_id": "9bb28f755ca19a91a33774d755caf8841bcdb9fd",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "f8b98beb9787e41600578a25db2405c96c7f4ecb"... | stackv2 | #include <arbprec/arbprec.h>
ARBT arb2hrdware(ARBT *a, size_t len, int base)
{
/* TODO: calculate in the negative range like modern atoi */
ARBT ret = 0;
size_t i = 0;
for (; i < len; ++i) {
ret = (base * ret) + (a[i]);
}
return ret;
}
| 2.0625 | 2 |
2024-11-19T00:16:56.602328+00:00 | 2017-07-18T19:56:44 | beee5d81cbda1ec94aada49e94e491d6ac66632c | {
"blob_id": "beee5d81cbda1ec94aada49e94e491d6ac66632c",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-18T19:56:44",
"content_id": "d6b97d84f1dfbb224598f45a1b6d7e1c14764cac",
"detected_licenses": [
"MIT"
],
"directory_id": "03067c164d2dc043dbf06fbbc4e6c2858be04232",
"extension": "c"... | stackv2 | //
// Created by Gustavo Viegas on 2017/05
//
#include <string.h>
#include "CT_definitions.h"
#include "CT_event_queue.h"
int ctQueueCreate(ctQueue_t* queue) {
if(!queue) return CT__FAILURE;
queue->head = 0;
queue->tail = -1;
queue->size = 0;
memset(queue->events, 0, sizeof queue->events);
return CT__SUCC... | 2.890625 | 3 |
2024-11-19T00:16:59.330741+00:00 | 2017-08-07T12:15:45 | b509a544ffe98a23db7cd71bb277f8367a4bd161 | {
"blob_id": "b509a544ffe98a23db7cd71bb277f8367a4bd161",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-07T12:15:45",
"content_id": "0b22da02c7ec2190a230f7c39b05eff6c1fcab24",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "46de983bfef87d224548e14878ca884a8195cee0",
"extensio... | stackv2 | #define _CRT_SECURE_NO_WARNINGS
#include "dlist.h"
#include <stdio.h>
#include <stdlib.h>
int main()
{
//创建一个双向链表
pHead ph = NULL;
ph = DlistCreate();
//向链表中插入元素
int num;
printf("请输入要插入的元素,输入0结束:\n");
while (1)
{
scanf("%d", &num);
if (num == 0)
break;
DlistInsert(ph, 0, num); //本测试程序从头部插入
}
printf... | 3.328125 | 3 |
2024-11-19T00:16:59.670482+00:00 | 2023-07-01T08:12:32 | 73243729866c2ef8217e56892fd329300af35053 | {
"blob_id": "73243729866c2ef8217e56892fd329300af35053",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-01T08:12:32",
"content_id": "fda98c7d99790dbb4921cf73ee5829db26541b8f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "30e9a2863deef9763a338a5ecc06404a14c7641e",
"extensio... | stackv2 | /**
* @file main.c
* @brief 処理時間計測のサンプル
*/
#include <measuring_proc_time.h>
#include <common.h>
#include <time.h>
/**
* @def CNT_MAX
* @brief 計測する処理のループカウンタ
*/
#define CNT_MAX (1600000000)
/**
* @brief メイン関数
* @param[in] argc 引数の数
* @param[in] argv 引数
* @return int 0固定
* @details clock()とclock_gettime()での... | 2.90625 | 3 |
2024-11-19T00:17:00.579609+00:00 | 2019-08-14T23:33:21 | 12e470327e4baaa47a8695bb5edb480746464081 | {
"blob_id": "12e470327e4baaa47a8695bb5edb480746464081",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-14T23:33:21",
"content_id": "e147fd40a9e39af6d8f1147438c075243f08ce6c",
"detected_licenses": [
"MIT"
],
"directory_id": "dd1b1c4bb086b123ceeaa4d32bfb1d26bbe38f3a",
"extension": "c"... | stackv2 | #include "test_parse_expression_success.h"
#include "handle_parse_error.h"
#include "lpg_allocate.h"
#include "lpg_parse_expression.h"
#include "lpg_save_expression.h"
#include "test.h"
static void test_loops(void);
static void test_comment(void);
static void test_function_calls(void);
static void test_match_cases(... | 2.203125 | 2 |
2024-11-19T00:17:00.670580+00:00 | 2018-10-23T09:09:18 | c7d83cae8f484b1b9ef853656cca9e384cd07f5e | {
"blob_id": "c7d83cae8f484b1b9ef853656cca9e384cd07f5e",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-23T09:09:18",
"content_id": "6e6ce00a6e14188bb204b35e74d1908e7a9d6ae6",
"detected_licenses": [
"MIT"
],
"directory_id": "c43b4646a2ec024f35a50522338c403cacab98c6",
"extension": "c"... | stackv2 | /*
* UART.cpp
*
* Created: 7/16/2017 10:47:13 PM
* Author: rafa
*/
#include "USART.h"
#include <avr/io.h>
#include <stdio.h>
#include <stdlib.h>
#include "defines.h"
void USART_Init(unsigned int ubrr)
{
/* Set baud rate */
UBRR0H = (unsigned char)(ubrr>>8);
UBRR0L = (unsigned char)ubrr;
UCSR0B = (1<<TXEN0)... | 3.109375 | 3 |
2024-11-19T00:17:00.737681+00:00 | 2020-01-02T21:18:15 | d08385cfdb8c725ea634f69ed204bc376da36895 | {
"blob_id": "d08385cfdb8c725ea634f69ed204bc376da36895",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-02T21:18:15",
"content_id": "2cbc6e75359a073d7dff3ff279f747554a979515",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "387f264acf677be702be1b76b1750a1dbffe07c4",
"extension":... | stackv2 | /**
* Description: Link-Cut Tree, solves USACO "The Applicant." Given a function
* $f(1\ldots N)\to 1\ldots N,$ evaluates $f^b(a)$ for any $a,b.$ Modifications
* return false in case of failure. Can use \texttt{vir} for subtree size queries.
* Time: O(\log N)
* Source: Dhruv Rohatgi, Eric Zhang,
* https://sites... | 2.75 | 3 |
2024-11-19T00:17:01.090600+00:00 | 2021-07-31T16:40:07 | dd572bcb5f3384ae8180f1bc278cb33b689c46d7 | {
"blob_id": "dd572bcb5f3384ae8180f1bc278cb33b689c46d7",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-31T16:40:07",
"content_id": "aee0925d8da62959bde2faed37520be3d74c4b6f",
"detected_licenses": [
"MIT"
],
"directory_id": "8a4f7a2118ea2fa79cc9bf30f11bf142f7a5f9ee",
"extension": "c"... | stackv2 | //
// T138-copy-list-with-random-pointer.c
// algorithm
//
// Created by Ankui on 4/24/20.
// Copyright © 2020 Ankui. All rights reserved.
//
// https://leetcode-cn.com/problems/copy-list-with-random-pointer/
#include "T138-copy-list-with-random-pointer.h"
/**
* Definition for a Node.
* struct Node {
* ... | 2.53125 | 3 |
2024-11-19T00:17:01.722584+00:00 | 2023-01-13T16:31:57 | 8f0a61270f504f8cae7ea06fc65a832e3c8e0657 | {
"blob_id": "8f0a61270f504f8cae7ea06fc65a832e3c8e0657",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-13T16:31:57",
"content_id": "b254008487d87a537e9efbcefeec3b57c0550af1",
"detected_licenses": [
"MIT"
],
"directory_id": "825069e75b30168c37e2018be06fa54e8d719848",
"extension": "c"... | stackv2 | // File created: 2011-08-07 18:20:32
#include "coords.all.h"
void mushcoords_max_into(mushcoords* a, mushcoords b) {
for (mushdim i = 0; i < MUSHSPACE_DIM; ++i)
a->v[i] = mushcell_max(a->v[i], b.v[i]);
}
void mushcoords_min_into(mushcoords* a, mushcoords b) {
for (mushdim i = 0; i < MUSHSPACE_DIM; ++i)
... | 2.734375 | 3 |
2024-11-19T00:17:02.139600+00:00 | 2022-06-10T21:27:41 | 10ef2610b487826bb896c406e8b2c5e359c75136 | {
"blob_id": "10ef2610b487826bb896c406e8b2c5e359c75136",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-10T21:27:41",
"content_id": "4cfad5501e709f15b11771cfe73b3d8bb21ddaca",
"detected_licenses": [
"MIT"
],
"directory_id": "973314e78f73fbc3c9f85c7d5906965434fe0b1d",
"extension": "c"... | stackv2 | /*
* Copyright (C) 2020 Southern Storm Software, Pty Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, ... | 2.03125 | 2 |
2024-11-19T00:17:02.420052+00:00 | 2020-01-24T08:27:20 | 6da04c6704071718d195ff1b3b0dc7b6b7e79de3 | {
"blob_id": "6da04c6704071718d195ff1b3b0dc7b6b7e79de3",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-24T08:27:20",
"content_id": "f6c0f03ad132bc59637cff7d60866ad6279e42d5",
"detected_licenses": [
"ISC"
],
"directory_id": "ff16d70849062161c2607e79651041b76b02ebe4",
"extension": "c"... | stackv2 | /*
PATTERN:
0019-kr_names.c:9: warning: parameter names (without types) in function declaration
0019-kr_names.c:13: warning: type of 'a' defaults to int
0019-kr_names.c:13: warning: type of 'c' defaults to int
.
*/
int f(a,b);
int
f(a,b,c) char b;
{
return a - c + b;
}
int
main(void)
{
return f(1,0,1);
}
| 2.4375 | 2 |
2024-11-19T00:17:02.818651+00:00 | 2018-05-27T19:32:03 | ef714a60bbb7876a94c9d1f1e3c62e2e7825a737 | {
"blob_id": "ef714a60bbb7876a94c9d1f1e3c62e2e7825a737",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-27T19:32:03",
"content_id": "ed41cee7de085f1b2690aacc66a47944e0bc29e2",
"detected_licenses": [
"MIT"
],
"directory_id": "0c5ca8742130687c6af29586325ea0c93b775978",
"extension": "h"... | stackv2 | #if 0
/// Copyright (c) Titan Robotics Club. All rights reserved.
///
/// <module name="trcdefs.h" />
///
/// <summary>
/// This module contains common definitions that can be used anywhere.
/// </summary>
///
/// <remarks>
/// Environment: Wind River C++ for National Instrument cRIO based Robot.
/// </remarks>
#en... | 2.046875 | 2 |
2024-11-19T00:17:02.984530+00:00 | 2019-01-02T20:13:16 | 8e6941922cc44cd3d461e5fa84f51d25becb9586 | {
"blob_id": "8e6941922cc44cd3d461e5fa84f51d25becb9586",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-02T20:13:16",
"content_id": "40bb6f3e521c62176683e84816c27de825faeb82",
"detected_licenses": [
"MIT"
],
"directory_id": "49d60421b65490cbfc487b178a0fd79b8e844da6",
"extension": "c"... | stackv2 |
#include "ch.h"
#include "temp_control.h"
#include "sensor.h"
#include "common.h"
#include "message.h"
#include "app_cfg.h"
#include "temp_profile.h"
#include "pid.h"
#include "board.h"
#include <stdlib.h>
typedef enum {
TC_IDLE,
TC_ACTIVE,
TC_SENSOR_TIMED_OUT
} temp_controller_state_t;
struct temp_controlle... | 2.046875 | 2 |
2024-11-19T00:17:03.382372+00:00 | 2019-12-17T19:00:42 | 07df27c3f4785173dea4a1ec08b9f6f904714e25 | {
"blob_id": "07df27c3f4785173dea4a1ec08b9f6f904714e25",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-17T19:00:42",
"content_id": "79c41b9b0128fdc8bb43f46820f9f790acadb31c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "42f99e6a391977c1fdad8e3f8643f94ee5dbd87b",
"extensio... | stackv2 | #include "MsgQueue.h"
#include <string.h>
#include <stdbool.h>
#include "asnwave.h"
#include "BasicSafetyMessage.h"
#include "TravelerInformation.h"
extern asn_TYPE_descriptor_t *asn_pdu_collection[];
MsgQueue* msgQueueCreate(unsigned int maxCount)
{
MsgQueue* pInstance = (MsgQueue*)malloc(sizeof(MsgQueue));
... | 2.328125 | 2 |
2024-11-19T00:17:04.029148+00:00 | 2020-05-01T10:28:25 | ed9cddd3b0194b88f8f325e7b0e52115213c305e | {
"blob_id": "ed9cddd3b0194b88f8f325e7b0e52115213c305e",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-01T10:28:25",
"content_id": "0f84f7c1ca0fc4d456beb2f6814a346c1d8a0c34",
"detected_licenses": [
"MIT"
],
"directory_id": "866fcf8089f6c44f2967ada6d460738a1ecafedc",
"extension": "c"... | stackv2 | #include <stdio.h>
int main(void)
{
int low, up, index;
printf("This program prints squares and cubes of integers.\n");
printf("Enter the lower limit: ");
scanf("%d", &low);
printf("Now enter the upper limit: ");
scanf("%d", &up);
printf(" n n^2 ... | 3.484375 | 3 |
2024-11-19T00:17:05.124848+00:00 | 2021-06-03T22:12:27 | 2bcdaa058c05525ea6f74bed03421daa7578a487 | {
"blob_id": "2bcdaa058c05525ea6f74bed03421daa7578a487",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-03T22:12:27",
"content_id": "ea17b4bfc17063f23a9c9815a491187bfdac28a7",
"detected_licenses": [
"MIT"
],
"directory_id": "be4685f216a43bf37637d7b7fc5d5cda5f24cd4e",
"extension": "c",
... | stackv2 | #include "types.h"
#include "stat.h"
#include "user.h"
#include "fcntl.h"
char buf[512];
int
main(int argc, char *argv[])
{
int read_file, write_file, i;
if(argc <= 2){
printf(1, "cp requires at least 2 arguments\n");
exit();
}
//Open the file to be copied
if((read_file = open(argv[1], 0)) < 0){
p... | 2.984375 | 3 |
2024-11-19T00:17:05.559980+00:00 | 2020-09-01T22:44:37 | 3293d78e120acb5514011e62f0e87ac918b1866e | {
"blob_id": "3293d78e120acb5514011e62f0e87ac918b1866e",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-01T22:44:37",
"content_id": "45020cb888b5aaff6773bef6aece1b393e6bb62c",
"detected_licenses": [
"MIT"
],
"directory_id": "80543c45feb99124375ef724ee022991f3165f4d",
"extension": "c"... | stackv2 | #include "pin.h"
/**
* Densification helper (private)
* Example:
* mask = 0b1010000011110010
* sparse = 0b1010101010101010
* result = 0b1 1 1010 1
*/
static uint16_t group_densify(uint16_t mask, uint16_t sparse)
{
uint16_t ret = 0;
int idx = 0;
for (int i = 0; i < 16; i++) {
if (mask & (1 << i)... | 2.59375 | 3 |
2024-11-19T00:17:05.656596+00:00 | 2018-09-08T05:35:44 | 4ac8ba397f9daa4c976081c44259c76d1c713ae9 | {
"blob_id": "4ac8ba397f9daa4c976081c44259c76d1c713ae9",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-08T05:35:44",
"content_id": "8f7018c4107665c75f620da7491afdcaa84ffe90",
"detected_licenses": [
"MIT"
],
"directory_id": "3ccf9120474c5654a97fd5028fde4a8d13b22d4a",
"extension": "c"... | stackv2 | /* James Moretti
* Apr 5, 2014
*
* McDropsMain.c - Main / driving file for Minecraft Drops
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#define NAME_LENGTH 16
#define MAX_LC_DIGITS 3
#define MINUTES_BETWEEN_DROPS 15
#define DEFAULT_ITEM 19 //Sponge
#define MAX_PLAYERS 20
typede... | 2.765625 | 3 |
2024-11-19T00:17:06.057652+00:00 | 2019-07-10T20:31:58 | 797d43b0eca0e96addd9dc1add91830ec4ab17d0 | {
"blob_id": "797d43b0eca0e96addd9dc1add91830ec4ab17d0",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-10T20:31:58",
"content_id": "f2da135ef23ab6ec49325d65bf51bca73efbd376",
"detected_licenses": [
"MIT"
],
"directory_id": "781642512e426a037c41f84e945ae399ef3cf7c7",
"extension": "h"... | stackv2 | #ifndef __ARRAY_LIST_H__
#define __ARRAY_LIST_H__
struct ArrayList
{
void** list;
unsigned long int length;
unsigned long int size;
};
/**
* newArrayList
* Creates a new ArrayList struct in memory
* initial list is NULL and length is 0
*
* @return pointer to the new list on success
* NULL on failu... | 2.875 | 3 |
2024-11-19T00:17:06.719541+00:00 | 2021-08-28T11:30:29 | 687ea498c54b05d89f0627510ecf8bdd75f68b5e | {
"blob_id": "687ea498c54b05d89f0627510ecf8bdd75f68b5e",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-28T11:30:29",
"content_id": "ac4654047aa0599d7ab85c5c86d222a81bc53328",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7cfd63648d2359003bdfd985bc7bfbf2801a396b",
"extensio... | stackv2 | /* c9-2.h 平衡二叉树的类型 */
typedef struct BSTNode
{
ElemType data;
int bf; /* 结点的平衡因子 */
struct BSTNode *lchild,*rchild; /* 左、右孩子指针 */
}BSTNode,*BSTree;
| 2.40625 | 2 |
2024-11-19T00:17:06.947550+00:00 | 2018-09-06T01:50:44 | 6c9c35572b8ba2fc043f5566ed446d972b3ed7a6 | {
"blob_id": "6c9c35572b8ba2fc043f5566ed446d972b3ed7a6",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-06T01:50:44",
"content_id": "9b7e986fbf041e6c125db76a6680caaed5300a31",
"detected_licenses": [
"MIT"
],
"directory_id": "78a954276f1ca4e9dcbe47856b86d529ca94bb58",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2018 Zhao Zhixu
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish,... | 2.5625 | 3 |
2024-11-19T00:17:07.318195+00:00 | 2019-09-01T19:11:42 | 8de9913e2c41c34ff3c20cb72eb76247fd6955fd | {
"blob_id": "8de9913e2c41c34ff3c20cb72eb76247fd6955fd",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-01T19:11:42",
"content_id": "a9663177ebfe2154b4b6312691e74f34b2dc696b",
"detected_licenses": [
"MIT"
],
"directory_id": "fb8f99338154cdd7d42ac6fdb4e9671d31b392d9",
"extension": "c"... | stackv2 | //-----------------------------------------------------------------------------
// init.c
// TENDONI V2
// rev1 - RV110319
// initialization code and timer IRQ routine
//-----------------------------------------------------------------------------
//---------------------------------------------------------------------... | 2.421875 | 2 |
2024-11-19T00:17:07.444342+00:00 | 2016-02-08T20:34:55 | 60f0e967dc0acc8f544430ee525f4bc4972afec5 | {
"blob_id": "60f0e967dc0acc8f544430ee525f4bc4972afec5",
"branch_name": "refs/heads/stable",
"committer_date": "2016-02-08T20:34:55",
"content_id": "804106ba235c74d9f768322da3d749958297bd66",
"detected_licenses": [
"MIT"
],
"directory_id": "10df5db29cff31abf109c0a57b7ec6231d16574d",
"extension": "h"... | stackv2 | #ifndef _LISZT_MESH_CRS_H
#define _LISZT_MESH_CRS_H
#include "stdint.h"
#include "stdlib.h"
typedef uint32_t RTYPE;
struct CRS {
RTYPE * row_idx;
RTYPE * values;
};
struct CRSConst {
//pointer to array of two values
uint32_t (*values)[2];
};
struct Mesh {
size_t nvertices;
size_t nedges;
size_t nfaces;
siz... | 2.34375 | 2 |
2024-11-19T00:17:07.544098+00:00 | 2019-06-24T15:53:14 | b1eef5c829956572268947e079fe15b0df8d0f1f | {
"blob_id": "b1eef5c829956572268947e079fe15b0df8d0f1f",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-24T15:53:14",
"content_id": "451c7bc05b72e3b77cc4f1628dd180ac67297949",
"detected_licenses": [
"MIT"
],
"directory_id": "975c8c285d3a94a57282ea49b8f777299f109b36",
"extension": "c"... | stackv2 | #include "viewer_wavefront.h"
#include "viewer_file.h"
#include "viewer_memory.h"
#include "viewer_log.h"
#include "tinyobj_loader_c.h"
#include <assert.h>
#include <string.h>
#if defined(__cplusplus)
extern "C" {
#endif
static void __wf_print_shapes(tinyobj_shape_t* shapes, size_t num_shapes) {
for (size_t i =... | 2.1875 | 2 |
2024-11-19T00:17:07.614777+00:00 | 2020-05-03T01:47:02 | 08ed82e5dcb5d2b6a88c23feb459af1152b966c9 | {
"blob_id": "08ed82e5dcb5d2b6a88c23feb459af1152b966c9",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-03T01:47:33",
"content_id": "a4bf273490da8af1215c0ad1668a79878208a934",
"detected_licenses": [
"MIT"
],
"directory_id": "b6fe4419782e7c5f5a033885295a84949e5a629f",
"extension": "c"... | stackv2 | /* Software Systems SP2020
* Head First C
* @Author: HK Rho
*/
#include <stdio.h>
#include <stdlib.h>
void get_input(char *card_name);
int update_count(int value, int count);
void count_cards(int count, char *card_name);
int main() {
char card_name[3];
int count = 0;
count_cards(count, card_name);
... | 3.609375 | 4 |
2024-11-19T00:17:08.658091+00:00 | 2019-10-21T03:19:35 | d15674cbc073bc25189a1faeb28a7bc49fa80159 | {
"blob_id": "d15674cbc073bc25189a1faeb28a7bc49fa80159",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-21T03:19:35",
"content_id": "41ee433205f881b947a3ed508b388a1342dffc84",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ee9b6405f053a757defb2781281a9f0444791d35",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#define __weak __attribute__((weak))
struct A {
int a;
char b;
int c;
int d;
};
struct B {
int a;
char b;
int c;
};
int var0 __weak;
int var1 = 80;
int var2 = 800;
int var0 __weak;
int main(void)
{
struct A Aa = { 0 };
struct B Ba = { 0 };
struct A *Ap = &Aa;
st... | 2.46875 | 2 |
2024-11-19T00:17:08.797641+00:00 | 2023-09-01T10:01:01 | 2a654ff9f167d79b9b9b2e97c8ed2312adec5f92 | {
"blob_id": "2a654ff9f167d79b9b9b2e97c8ed2312adec5f92",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-01T10:22:12",
"content_id": "8e293e9f2d9ef13678e4fe76daf62661800ca785",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "010279e2ba272d09e9d2c4e903722e5faba2cf7a",
"extensio... | stackv2 | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <locale.h>
#include <stdio.h>
#define _MULTIARRAYMODULE
#include "numpy/arrayobject.h"
#include "numpy/npy_math.h"
#include "npy_config.h"
#include "npy_pycompat.h"
#include "ctors.h"
/*
* Functions only needed on... | 2.21875 | 2 |
2024-11-19T00:17:08.967378+00:00 | 2023-01-16T05:22:56 | 33ce3734c9d9a40c651dfd6e13475c0982f6bcc2 | {
"blob_id": "33ce3734c9d9a40c651dfd6e13475c0982f6bcc2",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-16T05:22:56",
"content_id": "23ceb6db4e2efb07194eddf65093c449bbadc9f6",
"detected_licenses": [
"MIT"
],
"directory_id": "73e3e8df8bf6c60dbba658246aad1f1f69038a21",
"extension": "c"... | stackv2 | // ----------------------------------------------------------------------
//
// ▐ ▄ ▪ ▐ ▄ ▄ •▄ ▄▄▄· .▄▄ · ▪
// •█▌▐███ •█▌▐██▌▄▌▪▐█ ▀█ ▐█ ▀. ██
// ▐█▐▐▌▐█·▐█▐▐▌▐▀▀▄·▄█▀▀█ ▄▀▀▀█▄▐█·
// ██▐█▌▐█▌██▐█▌▐█.█▌▐█ ▪▐▌▐█▄▪▐█▐█▌
// ▀▀ █▪▀▀▀▀▀ █▪·▀ ▀ ▀ ▀ ▀▀▀▀ ▀▀▀
//
// -------------------------... | 2.140625 | 2 |
2024-11-19T00:17:09.450180+00:00 | 2014-09-05T19:25:33 | 6d0ef8d2a65f1ff0c005108280fe02db7eaed767 | {
"blob_id": "6d0ef8d2a65f1ff0c005108280fe02db7eaed767",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-05T19:25:33",
"content_id": "9557f8296becd8c301bda6a018aecc5b942ffffc",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e20d4c1ffa7b356575ce58174344768633398817",
"extens... | stackv2 | /**
* $Id: lcr.c 1246 $
*
* @brief PitayaDT LCR meter
*
* @Author1 Martin Cimerman <cim.martin@gmail.com>
* @Author2 Zumret Topcacic <zumret_topcagic@hotmail.com>
*
* VERSION : 2.2
* This part of code is written in C programming language.
* Please visit http://en.wikipedia.org/wiki/C_(programming_langua... | 2.21875 | 2 |
2024-11-19T00:17:09.846976+00:00 | 2020-02-04T13:07:56 | 2aaa526ff9f7452b12296760d863ef94678db0b6 | {
"blob_id": "2aaa526ff9f7452b12296760d863ef94678db0b6",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-04T13:07:56",
"content_id": "e1cbb15193ce707d4ff595737c99c62f7a806af8",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "cf6bcb0128dfd843d003419976efcfc6aadd46da",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#include "log.h"
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
void log_message(
int severity,
int thread_id,
const char* function,
const char* file,
const int line,
... | 2.640625 | 3 |
2024-11-19T00:17:10.033396+00:00 | 2023-09-03T08:13:23 | 378fdac9b8867170f8b844b4e4e759bc497957fe | {
"blob_id": "378fdac9b8867170f8b844b4e4e759bc497957fe",
"branch_name": "refs/heads/main",
"committer_date": "2023-09-03T08:13:23",
"content_id": "5d4b2dccb4babfe6dd443d417dbb340cf2bb9e56",
"detected_licenses": [
"MIT"
],
"directory_id": "fb0f9abad373cd635c2635bbdf491ea0f32da5ff",
"extension": "c",
... | stackv2 | /**
* \file
* Our own bzero/memmove.
*
* Copyright (C) 2013-2015 Xamarin Inc
*
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
/*
* SGen cannot deal with invalid pointers on the heap or in registered roots. Sometimes we
* need to copy or zero out memory... | 2.609375 | 3 |
2024-11-19T00:17:10.140216+00:00 | 2022-05-25T23:10:04 | 585194bc9b042a52d7d090a0321b588664dbf8e9 | {
"blob_id": "585194bc9b042a52d7d090a0321b588664dbf8e9",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-25T23:10:04",
"content_id": "fe93e95b244b95e2bb259c908c5d285f82f14357",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3e39e2fa31158d6d86a23773946084db17cd3317",
"extensio... | stackv2 | /*
* SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
#include <stdio.h>
# include <stdlib.h>
#include <string.h>
#include "esp_spp_api.h"
#include "esp_gap_bt_api.h"
#include "app_spp_msg_set.h"
extern esp_bd_addr_t peer_bd_addr;
void spp_msg_... | 2.3125 | 2 |
2024-11-19T00:17:10.628183+00:00 | 2020-07-14T07:01:50 | f5be6ac99564c3400a2cd0a507533565ca0042a0 | {
"blob_id": "f5be6ac99564c3400a2cd0a507533565ca0042a0",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-14T07:01:50",
"content_id": "3f4c6deaf84ad799c015dc81d368f38295ac05b1",
"detected_licenses": [
"MIT"
],
"directory_id": "1774a6b5370734eeee4321ebc9d6e699a125ce44",
"extension": "c"... | stackv2 | #include<stdio.h>
void main()
{
int a,b,temp;
printf("\n Enter the values of a and b:");
sacnf("%d %d",&a,&b);
printf("\n values of a and b before swapping is %d and %d rspectively",a,b);
temp=a;
a=b;
b=temp;
printf("\n values a and b after swapping is %d and %d respectively",a,b);
}
| 2.953125 | 3 |
2024-11-19T00:17:10.719375+00:00 | 2014-12-31T15:37:15 | 45b003b2898fa913a5e16bcf0221159dbaccb08b | {
"blob_id": "45b003b2898fa913a5e16bcf0221159dbaccb08b",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-31T15:37:15",
"content_id": "3f0035e05a595fa7a8358b57e0f3524917d0781d",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "12f627014b5cd434f2e945be0a2a37b54a844b1e",
"extens... | stackv2 | /*
* linked_list.c
* Created on: Mar 4, 2014
* Author: Guido Rota
*
* Copyright (c) 2014, Guido Rota
* 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 cod... | 2.75 | 3 |
2024-11-19T00:17:10.800691+00:00 | 2017-03-12T07:45:00 | 4c4d6e5f2794e873cc7b1baa30d01368100c5348 | {
"blob_id": "4c4d6e5f2794e873cc7b1baa30d01368100c5348",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-12T07:45:00",
"content_id": "f5a9ae39cf103bfeef55ac84ef6c755dbc9e5f95",
"detected_licenses": [
"MIT"
],
"directory_id": "4c008be691e8b91a317b96724b9d56af9af7eea1",
"extension": "c"... | stackv2 | /*************************************************************************************
* ファイル名 : sci0.c
* タイトル : INVADERシリアル通信(CH0)プログラム
* 製作者 : 03-110351 三好賢聖 03-110317 木村元紀
* 所属 : 東京大学工学部航空宇宙工学科
* 製作日 : 2012.1.29
* 言語 : C
*************************************************************************************... | 2.453125 | 2 |
2024-11-19T00:17:10.958159+00:00 | 2018-07-27T02:00:16 | 83bcdf39b085c0a40fd086e4ea2d944394fcb1e9 | {
"blob_id": "83bcdf39b085c0a40fd086e4ea2d944394fcb1e9",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-27T02:00:16",
"content_id": "c4673036f9a2265788e21e4cac230dd65dc7d5c6",
"detected_licenses": [
"MIT"
],
"directory_id": "f99f9d1884a47b55ec3eb65ce1cc170fdd33bd48",
"extension": "c"... | stackv2 | #include <curl/curl.h>
#include <json-c/json.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h> // memmove
#include <ctype.h> // isspace
#include <locale.h> // setlocale
char *streaming_json = NULL;
#define URI "api/v1/streaming/public"
void (*streaming_recieved_handler)(void);
void (*stream_event_handl... | 2.0625 | 2 |
2024-11-19T00:17:11.529418+00:00 | 2019-11-14T07:37:52 | cf0a22df60f9f3f7a072a440a09891cbc5179b47 | {
"blob_id": "cf0a22df60f9f3f7a072a440a09891cbc5179b47",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-14T07:37:52",
"content_id": "c5667a779a0e32883f42bedea14f73973bf8408c",
"detected_licenses": [
"MIT"
],
"directory_id": "840376f4bc9d0ddcf4bc06a54c64dab89387627a",
"extension": "h"... | stackv2 | //
// Created by gust on 2017/9/25.
//
#ifndef MINI_JVM_JVM_TYPE_H
#define MINI_JVM_JVM_TYPE_H
#include "sys/types.h"
#include "stdlib.h"
#include "stdint.h"
#include "ltalloc.h"
// x86 x64 ...
#define __JVM_LITTLE_ENDIAN__ 1
// arm
#define __JVM_BIG_ENDIAN__ 0
#define MEM_ALLOC_LTALLOC
#if defined(__MINGW_H) |... | 2.0625 | 2 |
2024-11-19T00:17:11.628693+00:00 | 2020-12-04T14:01:15 | 8e9275d37ac30aea0316e893036c809d83b41c10 | {
"blob_id": "8e9275d37ac30aea0316e893036c809d83b41c10",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-04T14:01:15",
"content_id": "3457eeae6b9e89fc949c61c25b1532954216921d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "73179a0f8b603df3ac7f93a03758ab9b92a863c1",
"extensio... | stackv2 | /******************************************************************************
* @brief 系统模块管理(包含系统初始化,时间片轮询系统)
*
* Copyright (c) 2017~2020, <morro_luo@163.com>
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2016-06-24 Morro 初版完成
* 2020-05-23 ... | 2.390625 | 2 |
2024-11-19T00:17:11.952111+00:00 | 2015-11-23T11:50:22 | ba9d6bf0b36abb0da2ac2dea1710fae5ceeaf350 | {
"blob_id": "ba9d6bf0b36abb0da2ac2dea1710fae5ceeaf350",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-23T11:50:22",
"content_id": "34ae81cf9e2dfbc4fe43837340c94541f092e998",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "d82f9b62ec5f3f8c14bc52bfc4c79e84... | stackv2 | #include <stddef.h>
#include <stdint.h>
#include "reg.h"
#include "threads.h"
#include "shell.h"
#include "str.h"
/* USART TXE Flag
* This flag is cleared when data is written to USARTx_DR and
* set when that data is transferred to the TDR
*/
#define USART_FLAG_TXE ((uint16_t) 0x0080)
void usart_init(void)
{
*... | 2.359375 | 2 |
2024-11-19T00:17:12.156661+00:00 | 2019-11-08T21:32:40 | 6ab922c640bb885cdf651e0f479e59ed51bb8ae0 | {
"blob_id": "6ab922c640bb885cdf651e0f479e59ed51bb8ae0",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-08T21:32:40",
"content_id": "b047956930fcd4d6ac003d52e794cdbc05bcb766",
"detected_licenses": [
"MIT"
],
"directory_id": "e00b0a31da188a2902966a3ac896483f60e4cb9d",
"extension": "c"... | stackv2 | /* longest_common_subsequence.c | Created on: May 3, 2018 | Author: Harsh */
#include "string_moderate.h"
// https://leetcode.com/problems/longest-common-subsequence/
/**
* Given two strings text1 and text2, return the length of their longest common subsequence.
A subsequence of a string is a new string generated... | 3.46875 | 3 |
2024-11-19T00:17:12.426362+00:00 | 2022-08-16T07:57:44 | 5fe0d85ec3dd930c194ac2b6ef7a0e246058f94b | {
"blob_id": "5fe0d85ec3dd930c194ac2b6ef7a0e246058f94b",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-16T07:57:44",
"content_id": "f8f3d0fc233453bf7240d2ce7b2393c237bd79cd",
"detected_licenses": [
"MIT"
],
"directory_id": "c72645b35d51c9ff23daa7d859bf80104c349efb",
"extension": "c"... | stackv2 | #define MAX_LEN 2000
char * convert(char * s, int numRows) {
if (numRows == 1) {
return s;
}
char zigzagMatrix[MAX_LEN][MAX_LEN] = {};
memset(zigzagMatrix, '\0', MAX_LEN * MAX_LEN);
bool isVertical = true;
bool shouldEnd = false;
int iterationCount = 0;
while (!shouldEnd) {
... | 2.8125 | 3 |
2024-11-19T00:17:12.500322+00:00 | 2021-01-13T04:42:03 | eca6af408d1daeb85a6c5397a1ad35324c7071d3 | {
"blob_id": "eca6af408d1daeb85a6c5397a1ad35324c7071d3",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-13T04:42:03",
"content_id": "f7fa4dda5c4fb221a006d70549315cf7a1f7402c",
"detected_licenses": [
"MIT"
],
"directory_id": "a9f6a3dfc2fb54547c5451d5c1380842aff45311",
"extension": "c"... | stackv2 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 Nels D. "Chip" Pearson (aka CmdrZin)
*
* 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 limitati... | 2.375 | 2 |
2024-11-19T00:17:12.829573+00:00 | 2021-09-21T15:30:24 | 36108531331c1ea7dd3453bbdcd7d1f14e02f8d5 | {
"blob_id": "36108531331c1ea7dd3453bbdcd7d1f14e02f8d5",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-21T21:56:06",
"content_id": "09a1d497146b96c8c261eeb2641c6058db58f6ad",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "5d8a07ec290fa467da1aae59b33b7a9481026338",
"extensio... | stackv2 | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef _RAMMUS_CBI_SSFC__H_
#define _RAMMUS_CBI_SSFC__H_
#include "stdint.h"
/******************************************************************... | 2.046875 | 2 |
2024-11-19T00:17:13.054584+00:00 | 2023-07-22T19:39:08 | 6e78be394e7dce80fdff48cf7fa316882fbacfd0 | {
"blob_id": "6e78be394e7dce80fdff48cf7fa316882fbacfd0",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-22T19:39:08",
"content_id": "237889799435ca2ce5a6542fa91278597eb5baee",
"detected_licenses": [
"MIT"
],
"directory_id": "b91a6cc4c7ee18d33d92d171c4473a5df66b6d9b",
"extension": "c",
... | stackv2 | // Include the standard definitions header from the standard library, so that we
// have access to 'NULL'. This can be removed if your changes remove the need
// for 'NULL'.
#include <stddef.h>
#include "hello_world.h"
// Define the function itself.
const char *hello(void)
{
// To fix this function, change the ret... | 2.625 | 3 |
2024-11-19T00:17:13.233231+00:00 | 2023-08-13T07:00:15 | 82748970706d4e8948419d29a6531ca738cbab89 | {
"blob_id": "82748970706d4e8948419d29a6531ca738cbab89",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T07:00:15",
"content_id": "664830ef9860d33f72bfdf79791f28ff558b9222",
"detected_licenses": [
"MIT"
],
"directory_id": "2266eb133fc3121daf0aa7f4560626b46b94afe0",
"extension": "c"... | stackv2 | inherit SKILL;
mapping *action = ({
([ "action": "$N使出一招「力拔山河」,左掌虚晃一下,右手带起阵阵掌风拍向$n的$l",
"force" : 100,
"attack": 18,
"dodge" : 30,
"parry" : 15,
"damage": 40,
"lvl" : 0,
"damage_type": "瘀伤"
]),
([ "action": "$N纵身跃起,一式「开碑断石」,双掌自上而下拍向$n的$l",
"fo... | 2.0625 | 2 |
2024-11-19T00:17:14.832658+00:00 | 2016-07-07T12:26:32 | 6b6f871cc427a78428f98b458c5b0e805b197079 | {
"blob_id": "6b6f871cc427a78428f98b458c5b0e805b197079",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-07T12:26:32",
"content_id": "6e75b649074c2c264911980d0d2e2dd17371602b",
"detected_licenses": [
"MIT"
],
"directory_id": "653ba55a44cd791979f717a2686a434706525fb4",
"extension": "c"... | stackv2 | /*
* Queue implementation.
*/
#include "queue.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
void queue_init(queue_t *queue)
{
queue->head.next = NULL;
queue->tail = &queue->head;
}
int queue_push(queue_t *queue, node_t *p)
{
node_t *tail;
do {
tail = queue->tail;
} while... | 3.40625 | 3 |
2024-11-19T00:17:14.908007+00:00 | 2020-09-21T10:15:29 | 117a0081799024e04c47e6b563506d0a4c97be3b | {
"blob_id": "117a0081799024e04c47e6b563506d0a4c97be3b",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-21T10:15:29",
"content_id": "6d67f86e19a632375580f5c508784c159bd81480",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "79ddb73198d780b792010ca7f24a6c6ccd5a0812",
"extens... | stackv2 | /********************************************************
* An example source module to accompany...
*
* "Using POSIX Threads: Programming with Pthreads"
* by Brad nichols, Dick Buttlar, Jackie Farrell
* O'Reilly & Associates, Inc.
*
********************************************************
* rdwr.c --
... | 2.375 | 2 |
2024-11-19T00:17:15.105965+00:00 | 2023-08-31T16:38:00 | 578cb16f69d1a8417a7d1202b0881283aedbb368 | {
"blob_id": "578cb16f69d1a8417a7d1202b0881283aedbb368",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T16:38:00",
"content_id": "8312c6719d89a3e344d9be32bf32c1c386093811",
"detected_licenses": [
"BSD-2-Clause",
"BSD-2-Clause-Patent"
],
"directory_id": "1efd2de8bf77ec00eb2fcaf57... | stackv2 | /**
* (C) Copyright 2018-2022 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
/**
* common helper functions for object
*/
#define DDSUBSYS DDFAC(object)
#include <daos_types.h>
#include "obj_internal.h"
static daos_size_t
daos_iod_len(daos_iod_t *iod)
{
daos_size_t len;
int i;
if (i... | 2.53125 | 3 |
2024-11-19T00:17:15.403451+00:00 | 2020-04-28T16:51:17 | e97bf1ed517966a2417478433e7d4741b27cbad1 | {
"blob_id": "e97bf1ed517966a2417478433e7d4741b27cbad1",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-28T16:51:17",
"content_id": "a59454ca3aaa8432161968dc2df5909382f52bb1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d463863154ee8b12935bb7df638e240f76dd5dd6",
"extensio... | stackv2 | #include <ctype.h>
#include <string.h>
#include<unistd.h>
#include<time.h>
#include <assert.h>
#include <stdio.h>
#include <sys/time.h>
#include <unistd.h>
#include<sys/resource.h>
#include<stdlib.h>
struct timer{
struct timeval start;
struct timeval end;
struct timeval diff;
};
struct timer timer;
struct time... | 3.046875 | 3 |
2024-11-19T00:17:15.810423+00:00 | 2020-06-05T14:17:09 | 527969d60168bbff9aa86a8cbf1e3c31cbaa6cce | {
"blob_id": "527969d60168bbff9aa86a8cbf1e3c31cbaa6cce",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-05T14:17:09",
"content_id": "1e9fb01f1c7908d86556346f98cf5f67552ea16b",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "1ca3c12872f50b35f2df58d0b94a43dc15143d61",
"... | stackv2 | // 5 kyu
// Can You OOP in C? - Polymorphism
////////////////////////////////////////////////////////
// shape.h
typedef struct _shape_vtable_t {
double (*get_area)();
double (*get_perimenter)();
void (*destroy)();
} shape_vtable_t;
typedef struct _shape_t {
shape_vtable_t *vtable;
} shape_t;
//////////////////... | 3.0625 | 3 |
2024-11-19T00:17:16.293193+00:00 | 2014-10-28T16:27:49 | f8cabb6a09f7db7612c9552dd7498427d43696e8 | {
"blob_id": "f8cabb6a09f7db7612c9552dd7498427d43696e8",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-28T16:27:49",
"content_id": "9cf49706268806c62387bd7fb705cfb75bad44a8",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "cd2f08c8b8a1786e15bbf58368466837774e56f9",
"extens... | stackv2 | /* weecrypt_memory.h
* Copyright (C) 2010-2012 Farooq Mela. All rights reserved. */
#ifndef _WEECRYPT_MEMORY_H_
#define _WEECRYPT_MEMORY_H_
#include <stddef.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void *(*weecrypt_malloc_func)(size_t);
typedef void *(*weecrypt_realloc_func)(void *, si... | 2.203125 | 2 |
2024-11-19T00:17:16.394616+00:00 | 2018-10-29T10:57:03 | b380e83ae26afdae16c7f79b46f6f45d8712cc6b | {
"blob_id": "b380e83ae26afdae16c7f79b46f6f45d8712cc6b",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-29T10:57:03",
"content_id": "b0c1e3e0db057b846d8336f8aba2cd02c4e2a853",
"detected_licenses": [
"ISC"
],
"directory_id": "f67034baf04a396830246492e79fd08e85774eed",
"extension": "c"... | stackv2 | #include <assert.h>
#include <err.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include "ai.h"
/**
* Special handling for EAI_AGAIN and EAI_SYSTEM.
*/
int xgetai(const char *const host,
const char *const port,
const int family,
const int sockty... | 2.5625 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.