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:11:17.967241+00:00 | 2016-01-07T01:39:47 | 1c7057304caa368072b85b2c66dfba1ac49e2f6c | {
"blob_id": "1c7057304caa368072b85b2c66dfba1ac49e2f6c",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-07T01:39:47",
"content_id": "a073788dae44990047210ed39859886ee2a38d7c",
"detected_licenses": [
"MIT"
],
"directory_id": "b6ac81ef602c71a78a0bba9afa8ec67a683f3f20",
"extension": "c"... | stackv2 | // 22 december 2015
#include "test.h"
static uiEntry *textString;
static uiEntry *textFont;
static uiEntry *textSize;
static uiCombobox *textWeight;
static uiCombobox *textItalic;
static uiCheckbox *textSmallCaps;
static uiCombobox *textStretch;
static uiEntry *textR, *textG, *textB, *textA;
static uiCheckbox *textHas... | 2.21875 | 2 |
2024-11-18T23:11:18.352441+00:00 | 2021-11-02T23:00:22 | f6a80d2a90908c79973533d49fd2a66143630406 | {
"blob_id": "f6a80d2a90908c79973533d49fd2a66143630406",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-02T23:00:22",
"content_id": "2a360e2fdf682d4c33e9ec241afd45cd5dcd0e0b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "79ddf3b3aaeef1dd0364b4dbae8c53f52541f69c",
"extension"... | stackv2 | #include "holberton.h"
/**
* malloc_checked - allocates memory using malloc.
*@b : unsigned int value.
*
* Return: nothing.
*/
void *malloc_checked(unsigned int b)
{
int *s;
s = malloc(b);
if (s == NULL)
exit(98);
return (s);
}
| 2.46875 | 2 |
2024-11-18T23:11:18.498665+00:00 | 2023-08-10T13:42:17 | f10f87ecdd3495f71e53f1de5fed0dff49262e23 | {
"blob_id": "f10f87ecdd3495f71e53f1de5fed0dff49262e23",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-10T13:42:17",
"content_id": "175640f4068f2dc5d6b6a003a63e146dee88c4e9",
"detected_licenses": [
"MIT"
],
"directory_id": "6ff85b80c6fe1b3ad5416a304b93551a5e80de10",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
void parImpar (int num) {
int digitos = floor(log10(abs(num))) + 1;
for (int i = digitos - 1; i >= 0; i--) {
int div = num / (int)pow(10, i);
num = num % (int)pow(10, i);
printf(div % 2 == 0 ? "\n%d eh Par" : "\n%d eh Impar", div);
}
}
int ... | 3.375 | 3 |
2024-11-18T23:11:19.158542+00:00 | 2020-10-06T22:26:46 | a26569e3ebbdd2ad2a32a0e4566d93505c646793 | {
"blob_id": "a26569e3ebbdd2ad2a32a0e4566d93505c646793",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-06T22:26:46",
"content_id": "a059bbafd3696671275fc365231898169b378ec7",
"detected_licenses": [
"MIT"
],
"directory_id": "19f7325df6cf0d7a9bb8f90942e634dbf55a5878",
"extension": "c"... | stackv2 | #define ex1
#include "stdio.h"
/******************************************************************************
COMANDOS
*******************************************************************************
Toda linguaguem de programacao para computador precisa oferecer um minimo de
tres form... | 3.328125 | 3 |
2024-11-18T23:11:19.772867+00:00 | 2021-11-06T07:40:51 | 48132d512806c0e2303095d7424891b181bc0bb0 | {
"blob_id": "48132d512806c0e2303095d7424891b181bc0bb0",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-06T07:40:51",
"content_id": "905cdde57e3cf9a2fd493e4a9738d2668a186ff3",
"detected_licenses": [
"MIT"
],
"directory_id": "5cde3e6b6f28f027fbc138d06e540b4bbbceee34",
"extension": "c",
... | stackv2 | //
// Created by Godpu on 2021/6/19.
//
#include "stdio.h"
#define LEN 2021 // 整数常量
#define WIDTH 1920 //
#define HEIGHT 1080
int main() {
int area;
area = WIDTH * HEIGHT;
printf("=>%d", area);
printf("\n长度=>%d\n", LEN * 99);
} | 2.453125 | 2 |
2024-11-18T23:11:19.962390+00:00 | 2020-05-30T13:45:22 | 1e2d546997d0d56c7bae56c72d59e6508b135b30 | {
"blob_id": "1e2d546997d0d56c7bae56c72d59e6508b135b30",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-30T13:45:22",
"content_id": "a34fb4897dafdc4ad5e4aa7f60f9bb516b8b7e69",
"detected_licenses": [
"MIT"
],
"directory_id": "3b6587e8b8adde9b5c9e8b29810f21676caf9cee",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "matrix.h"
void sub_matrix_blocks(float **C, float const *const *const A,
float const *const *const B,
const size_t C_f_row, const size_t C_f_col,
const size_t A_f_row, const size_t A_f_col,
const si... | 2.71875 | 3 |
2024-11-18T23:11:20.556676+00:00 | 2023-06-25T18:55:43 | 2d806b01d40f675dfa4915e74752d88ef28da2e6 | {
"blob_id": "2d806b01d40f675dfa4915e74752d88ef28da2e6",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-27T10:38:46",
"content_id": "ee2df05b5dd6ede3d36ce55a989fd1619d3fc9ca",
"detected_licenses": [
"MIT"
],
"directory_id": "f899be32c4c93a1d4f3c79893748321fa2e30775",
"extension": "h"... | stackv2 | #ifndef VOLUMETRIC_DIFFUSE_H_
#define VOLUMETRIC_DIFFUSE_H_
#include "../inc/global_bindings.h"
#include "linear_clamp_sampler.h"
#include "pbr.h"
layout(set = VOLUMETRIC_DIFFUSE_ATLAS_SET, binding = 0) uniform mediump texture3D uVolumes[];
struct DiffuseVolumeParameters
{
vec4 world_to_texture[3];
vec4 world_lo;
... | 2.203125 | 2 |
2024-11-18T23:11:20.676606+00:00 | 2019-07-02T05:23:37 | 65153d2f341eb4cc6ef5f158ff1e7f06ec58b49e | {
"blob_id": "65153d2f341eb4cc6ef5f158ff1e7f06ec58b49e",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-02T05:23:37",
"content_id": "37c66b6a7bdfdc31a56395f94babb4ea2f035700",
"detected_licenses": [
"MIT"
],
"directory_id": "b92ff68bd8ed2ef59cc771d2fa93f4da7a1837da",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
struct node {
struct node *left;
int data;
struct node *right;
};
struct qnode {
struct node *tnode;
struct qnode *next;
};
struct node * create_node(int input) {
struct node *newnode = NULL;
newnode = (struct node *) malloc(sizeof(struct node));
newnode->left = NULL;
... | 3.375 | 3 |
2024-11-18T23:11:21.055022+00:00 | 2019-11-01T17:06:19 | bad81c8db3563270b2eebe9f631b4282e4b388ff | {
"blob_id": "bad81c8db3563270b2eebe9f631b4282e4b388ff",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-01T17:06:19",
"content_id": "d8ba515ffb5581eb68567c555b8ceb7a5614cf6c",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "5499e8b91353ef910d2514c8a57a80565ba6f05b"... | stackv2 | // Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <ddk/device.h>
#include <ddk/protocol/pciroot.h>
#include <ddk/protocol/platform/device.h>
#include <zircon/fidl.h>
#include <zircon... | 2.046875 | 2 |
2024-11-18T23:11:21.378574+00:00 | 2023-08-14T23:41:26 | 7872f1a8c6304b866a1d6f0856ac8f581a8ed007 | {
"blob_id": "7872f1a8c6304b866a1d6f0856ac8f581a8ed007",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-14T23:41:26",
"content_id": "c59ec16e65bc1e5e5ec156a9b6200caef8b4d4eb",
"detected_licenses": [
"MIT"
],
"directory_id": "13be420c86c9644e4433b62d62b88da8784de7df",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <wchar.h>
#include <util.h>
#include "toy.h"
#include "encoding.h"
#define BUFFSIZE (4096)
#define COMMAND "perfumesh"
int main(int argc, char **argv, char **envp) {
char buff[BUFFSIZE*sizeof(char)];
Toy_Type *any, *result;
Toy_Type *script;
Toy_Type *e... | 2.1875 | 2 |
2024-11-18T23:11:21.549511+00:00 | 2021-08-09T20:59:01 | 08dc3d352d9656332c35ba06cd999d69d379c61b | {
"blob_id": "08dc3d352d9656332c35ba06cd999d69d379c61b",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-09T20:59:01",
"content_id": "1bf9045aef4d932d74e949e5d0f6f5d551fff27a",
"detected_licenses": [
"MIT"
],
"directory_id": "bef5bd3b91af9f3a2340b697d8d752557f39d8d0",
"extension": "c",
... | stackv2 | //----------------------------------------------------------------------------------
// FILE: DAC_Cnf.c
//
// Description: DAC configuration to support DAC usage with or without internal slope compensation
//
// Version: 1.00
//
// Target: TMS320F2802x & TMS320F2803x
//------------------------------------------... | 2.265625 | 2 |
2024-11-18T23:11:21.661440+00:00 | 2023-08-23T02:45:41 | 05b6f03461508328d2342c0d1f2d0448b4b96a93 | {
"blob_id": "05b6f03461508328d2342c0d1f2d0448b4b96a93",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-23T02:45:41",
"content_id": "8f30d4ff3bea19bd1537876ee301a8063a126266",
"detected_licenses": [
"MIT"
],
"directory_id": "fb28a7c8d92b2c1e6d9ff275b640589feb1580d6",
"extension": "c"... | stackv2 | #include <jam.h>
cnode_t *cnode;
void testfunc(int x){
printf("------------ Value of x %d\n", x);
}
void call_testfunc(context_t ctx){
(void)ctx;
arg_t *t = (arg_t *)(task_get_args());
testfunc(t[0].val.ival);
}
void user_setup() {
tboard_register_func(cnode->tboard, TBOARD_FUNC("testfunc", call_... | 2 | 2 |
2024-11-18T23:11:22.049286+00:00 | 2022-08-30T09:20:06 | a7583e2c76b89ae81193f98a8eb001fd6705700d | {
"blob_id": "a7583e2c76b89ae81193f98a8eb001fd6705700d",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-30T09:20:06",
"content_id": "ee0fe47da7097883a2d073ff33dc1f5d2e91f923",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "578a154fcdbebf1bb54f03d56edf85791e48ab3b",
"extens... | stackv2 |
#include "cw/cw.h"
#include "cw/mod.h"
#include "cw/log.h"
#include "cw/dbg.h"
#include "cw/action.h"
#include "mod_fortinet.h"
#include "../modload.h"
#include "cw/vendors.h"
extern int fortinet_register_actions80211_ac(struct cw_actiondef *def);
extern int fortinet_register_actions_ac(struct cw_actiondef *def);... | 2.328125 | 2 |
2024-11-18T23:11:22.805446+00:00 | 2009-04-19T14:36:09 | 62e95b99dc983620b155933081dd2995e8d5a473 | {
"blob_id": "62e95b99dc983620b155933081dd2995e8d5a473",
"branch_name": "refs/heads/master",
"committer_date": "2009-04-19T14:36:09",
"content_id": "478d362ddf54907b79b64c94efd11507ecd99923",
"detected_licenses": [
"MIT"
],
"directory_id": "d4fef2eccef6774b3c35f7f199567b15be8fdc82",
"extension": "c"... | stackv2 | /**
This code is released in the Public Domain (no restrictions, no support
100% free) by Notion.
*/
#include "../src/atomic_queue.h"
#include <stddef.h>
#include <string.h>
//#include <stdio.h>
int main(int argc, char * const *argv) {
typedef struct elem {
long data1;
volatile struct elem *link;
int ... | 2.75 | 3 |
2024-11-18T23:11:23.087522+00:00 | 2021-07-20T16:12:03 | d961a77398531f14a9598bf7f8061ac8d97b5e61 | {
"blob_id": "d961a77398531f14a9598bf7f8061ac8d97b5e61",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-20T16:12:03",
"content_id": "5991100ad6ab2782621167d221f138f6fac9be3b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9061c8303cc72e2d52a51aae84f50a9461321ce0",
"extension"... | stackv2 | //43.Find the output of the following program
#include<stdio.h>
int main()
{
printf("%d",printf("Akash"));
return 0;
}
//O/P
// Akash5 | 2.5625 | 3 |
2024-11-18T23:11:23.221797+00:00 | 2013-11-24T20:20:26 | 171ecc7365aa4e4b3f1b01eb6a7b4a7d16d9afb2 | {
"blob_id": "171ecc7365aa4e4b3f1b01eb6a7b4a7d16d9afb2",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-24T20:20:26",
"content_id": "604e0bd52bc98fa655ca848adf62aa51827d0fb3",
"detected_licenses": [
"MIT"
],
"directory_id": "8558aa638c86fa36b57503bcb29a90db0996ebd9",
"extension": "h"... | stackv2 | #ifndef NETWORKING_UTIL_H
#define NETWORKING_UTIL_H
#include <sys/socket.h> /* for socket(), connect(), send(), and recv() */
#include <arpa/inet.h> /* for sockaddr_in and inet_addr() */
#include <string.h>
#include "data_structs.h"
#define LAST_PACKET 1
#define NOT_LAST_PACKET 0
#define NO_CAP = -1
#define... | 2.421875 | 2 |
2024-11-18T23:11:23.293191+00:00 | 2018-04-23T21:23:41 | df12aeeb644ef6d7077c8c898a54d44f412f54cf | {
"blob_id": "df12aeeb644ef6d7077c8c898a54d44f412f54cf",
"branch_name": "refs/heads/develop",
"committer_date": "2018-04-23T21:23:41",
"content_id": "dea62e2e5b30afd3903d7d4d916b295f64027fc6",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d",
"extension"... | stackv2 | /* *********************************************************************** */
/* *********************************************************************** */
/* MLB Executable Module Source File */
/* *********************************************************************** */
/*
File Name : %M%
File Versi... | 2.296875 | 2 |
2024-11-18T23:11:23.557882+00:00 | 2019-08-12T03:06:38 | 7b289be0a9b0c73a961497cec6dbaa3094858041 | {
"blob_id": "7b289be0a9b0c73a961497cec6dbaa3094858041",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-12T03:06:38",
"content_id": "934fe79fca3f9767dbf4a1b23fde3952f190c814",
"detected_licenses": [
"MIT"
],
"directory_id": "759ed09c99a6f48287dee98c1105af7260fc331d",
"extension": "h"... | stackv2 | // status/status.h
//
#ifndef _STATUS_STATUS_H_
#define _STATUS_STATUS_H_ 1
#define MAX_STATUS_LEN 100
/// status LEDs
///
/// first 4 bits of LED command
///
/// the API to the status server treats these as a separate parameter
#define STAT_LED_AUTO 0x00
#define STAT_LED_DB_UP ... | 2.015625 | 2 |
2024-11-18T23:11:23.929339+00:00 | 2018-05-20T10:23:15 | 935aa79e15f252c801833067ea22e1768279f5bc | {
"blob_id": "935aa79e15f252c801833067ea22e1768279f5bc",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-20T10:23:15",
"content_id": "4df110841e7d13c188e17aabaf3f4f080679bab9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e76b29eb9b4e9ccfdab3a8516c26cf514b40578d",
"extensio... | stackv2 | /* count.c -- 程序调用次数 */
#include <stdio.h>
int count() {
static int count = 0;
return ++count;
}
int main(void)
{
int i;
for (i = 0; i < 10; i++) {
printf("count() called %d times.\n", count());
}
printf("\n---------------------------------------------\n");
return 0;
} | 3.515625 | 4 |
2024-11-18T23:11:23.996853+00:00 | 2021-10-02T04:24:08 | a5faac43d0f0510a91168eae9c5eb783d1777631 | {
"blob_id": "a5faac43d0f0510a91168eae9c5eb783d1777631",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-02T04:24:08",
"content_id": "10036475708e346cccb391d8c7652f17e9dc300d",
"detected_licenses": [
"MIT"
],
"directory_id": "9a662f715d1d5e864e658b71adbc59baa3f98a0f",
"extension": "c",
... | stackv2 | // Create a linked list connected to its adjacent vertices.
#include<stdio.h>
#include<stdlib.h>
struct Next
{
int data;
struct Next* adjacent;
};
struct VertexList
{
struct Next* add;
int node;
struct VertexList*next;
};
struct VertexList * head=NULL;
struct VertexList* createVertex(int item)
{
struct VertexLis... | 4.09375 | 4 |
2024-11-18T23:11:24.340454+00:00 | 2023-08-07T19:18:32 | a8d6631294a4dd0f38de7fd2861d1d1698e5b18e | {
"blob_id": "a8d6631294a4dd0f38de7fd2861d1d1698e5b18e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T19:18:32",
"content_id": "de0c0d39936a927f5250581692bd77711adbf04a",
"detected_licenses": [
"Apache-2.0",
"curl"
],
"directory_id": "e1d9c54e9925e30e388a255b53a93cccad0b94cb",... | stackv2 | #ifndef v2_hpa_scaling_rules_TEST
#define v2_hpa_scaling_rules_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define v2_hpa_scaling_rules_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include "../... | 2.515625 | 3 |
2024-11-18T23:11:24.419260+00:00 | 2019-12-28T14:49:11 | 88ee2596758ddf571760ad4c15c4e0b69195003a | {
"blob_id": "88ee2596758ddf571760ad4c15c4e0b69195003a",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-28T14:49:11",
"content_id": "cc6a8ffc84fd5c518dd68124c0b6a91c02fc0d36",
"detected_licenses": [
"MIT"
],
"directory_id": "d46ead741eedc19a080fbfd3e03af5436abfa1c8",
"extension": "c"... | stackv2 | #include <unistd.h>
#include <signal.h>
#include "lib.h"
#include "queue.h"
#define QUEUE ("sem1")
#define BARBER ("sem2")
#define BARBER_TEST ("sem3")
sem_t* SemQ;
sem_t* SemB;
sem_t* SemT;
struct Queue* Data;
size_t N;
void onExit(int t){
CloseSemaphore(SemQ);
CloseSemaphore(SemB);
CloseSemaphore(SemT... | 2.671875 | 3 |
2024-11-18T23:11:24.517253+00:00 | 2021-07-13T16:07:23 | aa86536d18c3a43c923dc18bc5dfb3adca170ab5 | {
"blob_id": "aa86536d18c3a43c923dc18bc5dfb3adca170ab5",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-13T16:07:23",
"content_id": "974bd9a7af3447dafebd514f8f575a62bd40eb90",
"detected_licenses": [
"MIT"
],
"directory_id": "57099f53605ab3afc78c72f7c6e0e53c973ab9fa",
"extension": "h"... | stackv2 | /**
C Utility for writing out 2D or 3D Unity Texture Assets.
2021 <>< Charles Lohr - this code may be distributed under any of he following
licenses: CC0, MIT/x11, NewBSD licenses. Portions may be copied freely to the
extent allowable by law, no attribution required.
Example usage:
// Execute this with `tcc tes... | 2.234375 | 2 |
2024-11-18T23:11:24.900431+00:00 | 2021-11-21T06:51:27 | 6a348e8c7a97acfe57252daef4d1394a6684d670 | {
"blob_id": "6a348e8c7a97acfe57252daef4d1394a6684d670",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-21T06:51:27",
"content_id": "f781bf0f78ab53ea7c78eef7ddf8453185b28600",
"detected_licenses": [
"MIT"
],
"directory_id": "5292b03998384c0d2bb5858058892d7e45c5365b",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int initialized = 0;
char editbuf[0x100];
int menu(){
puts("Your options are:");
puts("1) Edit Position");
puts("2) Display string");
puts("3) Exit program\n");
puts("What would you like to do?");
int ret;
scanf("%d", &ret);
puts("");
return ret;
... | 3.515625 | 4 |
2024-11-18T23:11:24.988881+00:00 | 2023-06-21T22:55:38 | c89266fe46027b1b229e4d6e5c58705341223f8c | {
"blob_id": "c89266fe46027b1b229e4d6e5c58705341223f8c",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-22T07:07:58",
"content_id": "f497556718630ce93ec9dfd99fe83ac010e8ed17",
"detected_licenses": [
"Unlicense"
],
"directory_id": "cf111b440f33ba9741ff45c60ac33dfade24e2ac",
"extension... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#define STACKSIZE 10
int main (int argc, char **argv)
{
FILE *in; /* input program */
char instr; /* current instruction */
size_t addr; /* current instr. address */
char stack[STACKSIZE]; /* data stack */
int sp; /* stack pointer */
if (argc < 2) /* if no... | 3.578125 | 4 |
2024-11-18T23:11:25.441322+00:00 | 2022-09-05T02:16:19 | f89a1e18f78e15a77ead10018e52cb96ec099392 | {
"blob_id": "f89a1e18f78e15a77ead10018e52cb96ec099392",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-05T02:16:19",
"content_id": "c41001585f778f5b4bbcbf7780e5aa52091f76d5",
"detected_licenses": [
"MIT"
],
"directory_id": "24db6985a016c3e4767c95ca51190e659d0847cd",
"extension": "c"... | stackv2 | // gcc -Wall -O3 -s -o solve solve.c -lz
#include <zlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#define TEAM "burner_herz0g"
#define LENGTH 6
int main()
{
char *s = "the";
char *l = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
int llen = strlen(l);
... | 2.546875 | 3 |
2024-11-18T23:11:25.621819+00:00 | 2012-05-28T10:17:47 | 67fce4b7b1ecdde043c22d31e279afe913fb8407 | {
"blob_id": "67fce4b7b1ecdde043c22d31e279afe913fb8407",
"branch_name": "refs/heads/master",
"committer_date": "2012-05-28T10:17:47",
"content_id": "b1558329f2b609b1b91f70ea6f5c6596080f76f9",
"detected_licenses": [
"ISC"
],
"directory_id": "0206764b80f701eeb54ad8cbf6439c97c9c0657c",
"extension": "c"... | stackv2 | // Ensure your processes are still `going`. A simple ISC licensed
// process supervisor.
//
// Design
// ------
//
// `going` is designed to spawn child processes and respawn them if they
// terminate. Through the magic of POSIX a parent process will be
// delivered a `SIGCHLD` signal when a child process terminates.
/... | 2.203125 | 2 |
2024-11-18T23:36:25.572533+00:00 | 2021-07-07T15:40:00 | 4bc8065e3400531ae1f62f354e0842a3a7fb9582 | {
"blob_id": "4bc8065e3400531ae1f62f354e0842a3a7fb9582",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-07T15:40:00",
"content_id": "132fdb8bdef6237514d3860f337601d8230cade6",
"detected_licenses": [
"MIT"
],
"directory_id": "f2f45cdb1d72643ce170b26abc4493ed2dcfcbd8",
"extension": "c"... | stackv2 | #include "../tun.h"
#include "../log.h"
#include <stdlib.h>
#include <net/if_utun.h>
#include <string.h>
#include <sys/ioctl.h> // ioctl
#include <sys/socket.h>
#include <sys/sys_domain.h>
#include <sys/kern_control.h> // struct socketaddr_ctl
#include <unistd.h>
#include <net/if.h>
int tun_open(struct in6_addr *addr... | 2.4375 | 2 |
2024-11-18T23:36:25.923607+00:00 | 2017-03-02T02:44:57 | cc7728e507de402642d083e3715678870150f4ac | {
"blob_id": "cc7728e507de402642d083e3715678870150f4ac",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-02T02:44:57",
"content_id": "94967f11222e4f9ad883102b0d0d8efaccb4ca27",
"detected_licenses": [
"MIT"
],
"directory_id": "d8c3ad54970bb61754a41fd30c93983700b7e0eb",
"extension": "c"... | stackv2 | /******************************************************************************
* echo_server.c *
* *
* Description: This file contains the C source code for an echo server. The *
... | 2.484375 | 2 |
2024-11-18T23:36:25.982250+00:00 | 2018-06-29T00:31:59 | 4504a546008b817cee72e54917a8e7ba179ef556 | {
"blob_id": "4504a546008b817cee72e54917a8e7ba179ef556",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-29T00:31:59",
"content_id": "b9fda610eabae7f3f43e0a375508d625fc8a3263",
"detected_licenses": [
"MIT"
],
"directory_id": "4b5990e3911024e5a4830d0d69fc32c5f4350325",
"extension": "c"... | stackv2 | /* Jolt Wallet - Open Source Cryptocurrency Hardware Wallet
Copyright (C) 2018 Brian Pugh, James Coxon, Michael Smaili
https://www.joltwallet.com/
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <esp_system.h>
#include "esp_log.h"
#include "sodium.h"
#include "freertos/FreeRTOS.h"
#include... | 2.140625 | 2 |
2024-11-18T23:36:26.165390+00:00 | 2021-10-31T21:45:55 | d2508af8f001f1f44c125848ae8d7968ffed7990 | {
"blob_id": "d2508af8f001f1f44c125848ae8d7968ffed7990",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-31T21:45:55",
"content_id": "0308c32ae3395b45f6cfc2940c0d1bd29f1e67d8",
"detected_licenses": [
"MIT"
],
"directory_id": "d795e3697108f45e5b2be95b80f5d6794c9c7287",
"extension": "c",
... | stackv2 | #include<stdio.h>
#include<string.h>
void main()
{
char str[100],rstr[100];
int j=0;
printf("Enter the string\n");
scanf("%s",str);
for(int i=strlen(str)-1;i>=0;i--)
{
rstr[j]=str[i];
j++;
}
if(strcmp(str,rstr)==0)
{
printf("%s is palindrome",str);
}
e... | 2.875 | 3 |
2024-11-18T23:36:26.239317+00:00 | 2020-10-23T14:53:25 | 6b590e1106a49cd8ffa01c6f4c952223c2b18dee | {
"blob_id": "6b590e1106a49cd8ffa01c6f4c952223c2b18dee",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-23T14:53:25",
"content_id": "e474409e3f1a0680673de1abe8a4978894d01210",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "92e9aeae20113532ceb43cd167c6805e28b40588",
"extensio... | stackv2 | /*
** my_aff_tab.c for in /home/habi/Piscine1/C/Jour02/my_aff_tab
**
** Made by HABI Acal
** Login <habi_a@etna-alternance.net>
**
** Started on Tue Sep 26 09:21:10 2017 HABI Acal
** Last update Tue Sep 26 09:31:49 2017 HABI Acal
*/
void my_putchar(char c);
void my_aff_tab(char str[])
{
int i;
i =... | 2.046875 | 2 |
2024-11-18T23:36:27.628201+00:00 | 2014-03-19T15:12:19 | f1c672c3df0aa6f969114fee11d5c546fbb35404 | {
"blob_id": "f1c672c3df0aa6f969114fee11d5c546fbb35404",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-19T15:12:19",
"content_id": "bb9bdbd63efbacd42fdab1390d9095e2bc6f1242",
"detected_licenses": [
"BSD-4-Clause-UC"
],
"directory_id": "b5ab7091100522c4097cf5323d4a3c5c098a1f93",
"ext... | stackv2 | /*
* Copyright (c) 2009 The Regents of the University of California
* Barret Rhoden <brho@cs.berkeley.edu>
* See LICENSE for details.
*/
#ifdef __SHARC__
#pragma nosharc
#define SINIT(x) x
#endif
#include <arch/mmu.h>
#include <arch/x86.h>
#include <arch/arch.h>
#include <arch/apic.h>
#include <time.h>
#include <... | 2.375 | 2 |
2024-11-18T23:36:27.889664+00:00 | 2014-12-26T15:55:28 | 3a678b8f1915e91698b0b41e048246d5c20d0c27 | {
"blob_id": "3a678b8f1915e91698b0b41e048246d5c20d0c27",
"branch_name": "refs/heads/master",
"committer_date": "2014-12-26T15:55:28",
"content_id": "a99ca6fc98eabc3425519973911c15da3d9d2219",
"detected_licenses": [
"MIT"
],
"directory_id": "1de143a8dc37cdd619cb2bd86f77b5fe9c0ef8fc",
"extension": "c"... | stackv2 | #include "include/fps.h"
//Current and previous frame time
double curTime = 0, prevTime = 0;
int accumulatedFPS = 0, numFrames = 0;
char currentFPS[5];
double calcFPS () {
prevTime = curTime;
curTime = clock();
double deltaTime = (curTime - prevTime) / CLOCKS_PER_SEC;
int intFPS = 1 / deltaTime;
accumulatedFPS +... | 2.734375 | 3 |
2024-11-18T23:36:29.130441+00:00 | 2019-02-03T16:11:09 | cc55c9cb1230d2cf983fdb164b952a91772e8532 | {
"blob_id": "cc55c9cb1230d2cf983fdb164b952a91772e8532",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-03T16:11:09",
"content_id": "4f7cc7ed98a801aa0c0826e14dcef488c6611f4b",
"detected_licenses": [
"MIT"
],
"directory_id": "09d56d44ae66ac9a2b37431ea63ec3065072aced",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdlib.h>
struct node
{
int data;
struct node *next;
}*front=NULL,*rear=NULL;
void enqueue(int d)
{
struct node *newnode;
newnode = (struct node*)malloc(sizeof(struct node));
newnode->data=d;
newnode->next=NULL;
if(front==NULL && rear==NULL)
{
front=newnode;
rear=front;
... | 3.59375 | 4 |
2024-11-18T23:36:29.495593+00:00 | 2017-12-20T19:01:03 | 3541f548e5aa47c0c43f5772806f91bdec5ef93a | {
"blob_id": "3541f548e5aa47c0c43f5772806f91bdec5ef93a",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-20T19:01:03",
"content_id": "7032d2ae829eb5c0e11e827a1ac18331195d2aa4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "49f1fb3497887be93e3852b69ca49d9f1072d265",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int read_words(char* filename, char*** words_) {
FILE *fp = fopen(filename, "r");
char** words = NULL;
int words_len = 0;
while (!feof(fp)) {
char buf[256];
int buf_len = 0;
int ch = 0;
whil... | 2.890625 | 3 |
2024-11-18T23:36:43.975510+00:00 | 2020-10-18T19:11:56 | 62c64bd8b00d7caa9e15be0fe46bec84f8078c53 | {
"blob_id": "62c64bd8b00d7caa9e15be0fe46bec84f8078c53",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-18T19:11:56",
"content_id": "af491a46cb12ef55623366703ad5cb0b3bd2b647",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "db17a4043bcdf8bc76f8231ba0b2d1491177e365",
"extensio... | stackv2 | #include "Primitives.h"
#include "System.h"
#include "System/Console.h"
#include "System/Environment.h"
#include "System/Environment/RawMemory.h"
#include "System/Environment/UART.h"
#include "System/Environment/Screen.h"
#include "System/Environment/Cursor.h"
extern U8 __end;
using namespace System;
using namespace ... | 2.5625 | 3 |
2024-11-18T23:36:44.077137+00:00 | 2017-09-26T00:10:47 | d3ec7677e478267575a5fb2b1829bfd204798889 | {
"blob_id": "d3ec7677e478267575a5fb2b1829bfd204798889",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-26T00:10:47",
"content_id": "10889e21a100058348d605f8d214f9aa451570fd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fabbd793b757b733c364a2eb732ecf8a9b4eeb1f",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include "libcfu/cfustring.c"
#include "libcfu/cfuhash.c"
#include "linked_list.c"
#include "timer.c"
#include "logger.c"
#include "nreq_responder.c"
#include "route_watcher.c"
#include "common.h"
int total_nreqs = 0;
int total_nreps_rev... | 2.140625 | 2 |
2024-11-18T23:36:45.121012+00:00 | 2021-08-19T17:59:19 | 6d114e6481a604127c3965fb5b4fe62fafe6fd3f | {
"blob_id": "6d114e6481a604127c3965fb5b4fe62fafe6fd3f",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-19T17:59:19",
"content_id": "eb32f5096f64428d912604b9a39426cb680589d1",
"detected_licenses": [
"MIT"
],
"directory_id": "d88612bc33620295b17058abc0bd24d0d1a9220b",
"extension": "c"... | stackv2 | #include <helloworld.h>
typedef struct {
double x, y;
} Position;
int main(int argc, char *argv[]) {
/* Create the world, pass arguments for overriding the number of threads,fps
* or for starting the admin dashboard (see flecs.h for details). */
ecs_world_t *world = ecs_init_w_args(argc, argv);
... | 2.84375 | 3 |
2024-11-18T23:36:45.494498+00:00 | 2023-08-24T16:28:44 | 14edd7d968a9978478c143b2f9919bc4c6da8aee | {
"blob_id": "14edd7d968a9978478c143b2f9919bc4c6da8aee",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-24T16:28:44",
"content_id": "15ec6832ed403ea56c8dd88d9aff244541834094",
"detected_licenses": [
"MIT"
],
"directory_id": "7477e692e59a731fe3527e2913c1d812a2d89b7b",
"extension": "c"... | stackv2 | // Copyright 2019 Lawrence Livermore National Security, LLC
// See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: MIT
#include <mpi.h>
#include <string.h>
#include <stdlib.h>
#include "adksys.h"
#if !defined(USE_MPI)
#error Building adksys_mpi without USE_MPI defined
#endif
#define MAX_HOST... | 2.484375 | 2 |
2024-11-18T23:36:45.593506+00:00 | 2020-12-07T11:40:34 | f52a358272f84772efefcdab4e0bf056fb489175 | {
"blob_id": "f52a358272f84772efefcdab4e0bf056fb489175",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-07T11:40:34",
"content_id": "96170f4adb3df708a5d219cfc1fa952450a4e885",
"detected_licenses": [
"MIT"
],
"directory_id": "5fa2019ac1e97426cf0ef1a322f9741703436ada",
"extension": "c",
... | stackv2 | //
// Utility.c
// AudioVideoTrip
//
// Created by fanglei on 2020/11/30.
//
#include "Utility.h"
static bool isRecording = false;
void stop_record(void) {
isRecording = false;
}
AVFormatContext *open_video(void) {
/*
对于 mac
0: 从摄像头输入
1:从桌面输入
*/
AVDictionary *options = NULL;
a... | 2.46875 | 2 |
2024-11-18T23:36:45.843377+00:00 | 2013-08-13T15:45:46 | bb043c71e4393161b4b782bc1fd7078ad76c215b | {
"blob_id": "bb043c71e4393161b4b782bc1fd7078ad76c215b",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-13T15:45:46",
"content_id": "f1301a1092f336d7d3e3051266899f7633ee7fbf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a74386eff6ae865ee69e1637151dd397e1f2c5cd",
"extensio... | stackv2 | /* Copyright 2013 by Adam Sommer <asommer70@gmail.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 2.421875 | 2 |
2024-11-18T23:36:45.917253+00:00 | 2018-08-10T16:14:16 | 85f32d1a231161f49034aefe5158b67420546c07 | {
"blob_id": "85f32d1a231161f49034aefe5158b67420546c07",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-10T16:14:16",
"content_id": "31657c76b4c1f154e8786a01cea7dfd754a68223",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "61f4a626945c8d3441114759054a7e66900d0786",
"extens... | stackv2 | #include "first.h"
#include "array.h"
#include "buffer.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <errno.h>
#include <assert.h>
#include "flyweight.h"
#include "prototype.h"
#define ARRAY_NOT_FOUND ((size_t)(-1))
array *array_init(void) {
array *a;
a = calloc(1, s... | 2.671875 | 3 |
2024-11-18T23:36:46.032176+00:00 | 2021-05-31T13:49:10 | e9e8089a863a5a1f5ca645f784f90a3f6377a0e0 | {
"blob_id": "e9e8089a863a5a1f5ca645f784f90a3f6377a0e0",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-31T13:49:10",
"content_id": "2ee0c53e0a7390a8a02f3bb2e30bfd006ee1b5b8",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4abbbe5aeb9a436bacfcc5eed023123816cf6189",
"extens... | stackv2 | // Copyright 2020-present Open Networking Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | 2.078125 | 2 |
2024-11-18T23:36:46.404011+00:00 | 2021-06-01T20:49:16 | d29aad620b5209c8e0647dc19dff31c7711acadb | {
"blob_id": "d29aad620b5209c8e0647dc19dff31c7711acadb",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-01T20:49:16",
"content_id": "67929351964cc07c810b5bbb41ca598a65853867",
"detected_licenses": [
"MIT"
],
"directory_id": "2f355ae5a4c2cc397d7387b5c73bc4484021336d",
"extension": "c",
... | stackv2 | #include<stdio.h>
#include<stdlib.h>
typedef struct l{
int valor;
struct l *next;
}Elemento;
typedef struct{
Elemento *inicio;
Elemento *fim;
}Fila;
Fila* criaFila(){
Fila *fila = malloc(sizeof(Fila));
fila->inicio = NULL;
fila->fim = NULL;
return fila;
}
void push(Fila *p, int v){
Elemento *novo = malloc(... | 3.84375 | 4 |
2024-11-18T23:36:47.849206+00:00 | 2012-04-21T17:23:21 | 3184bd29449bbec6f8d65d3fb48849d86afdf5dd | {
"blob_id": "3184bd29449bbec6f8d65d3fb48849d86afdf5dd",
"branch_name": "refs/heads/master",
"committer_date": "2012-04-21T17:23:21",
"content_id": "6f71a03315da05f00730dbadeed22c1bd3669171",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dec0dcb967e1bc3c9b93a21f162c553a72a7943e",
"extensio... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <ctype.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include "my.h"
#include "42sh.h"
#include "path.h"
#include "lexer.h"
/*
** Function that gets a quotation
** space size.
*/
int get_quote_size(char *std_i... | 2.59375 | 3 |
2024-11-18T23:36:48.832601+00:00 | 2016-05-10T14:00:02 | 463723ac116fec346c6948c44e6d220e5ce6d63c | {
"blob_id": "463723ac116fec346c6948c44e6d220e5ce6d63c",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-10T14:00:02",
"content_id": "ea4024491efe3a42851346eeac22a4bda8642b6f",
"detected_licenses": [
"MIT"
],
"directory_id": "44a63e164ba15105fd0a8c7f3f7f1c795582820d",
"extension": "c"... | stackv2 | /*
** tools.c for cmp-server in /home/gomel_f/Documents/LecteurBotMusique/ConnectedMusiquePlayer/server
**
** Made by Frédéric GOMEL
** Login <gomel_f@epitech.net>
**
** Started on Wed Apr 20 15:29:31 2016 Frédéric GOMEL
** Last update Wed Apr 20 15:34:19 2016 Frédéric GOMEL
*/
#include "cmp-server.h"
int equal_ch... | 2.421875 | 2 |
2024-11-18T23:36:49.099006+00:00 | 2021-06-29T12:17:54 | 212e0b86018b451700bd424702e511f260f40ff2 | {
"blob_id": "212e0b86018b451700bd424702e511f260f40ff2",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-29T12:17:54",
"content_id": "6b1db6cbca4ecb39d95116bf472e11952329c4b9",
"detected_licenses": [
"MIT"
],
"directory_id": "a981d52e7304ff21fbde73de860717fe288b2a31",
"extension": "c"... | stackv2 | #include "roo.h"
#include "log.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include "interface.h"
static void *json_print(char *fmt, napi_env env, napi_value object, napi_value this){
napi_value JSON;
napi_value global;
NAPI_CALL(env,napi_get_global(env, &global));
n... | 2.328125 | 2 |
2024-11-18T23:36:49.264588+00:00 | 2019-09-23T00:51:16 | 74ba74780ad0de52b4e96d462d6ce5678cb55e5d | {
"blob_id": "74ba74780ad0de52b4e96d462d6ce5678cb55e5d",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-23T00:51:16",
"content_id": "4361c7c3f46f39291d826e50305275f6bafa4907",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "904c15c0d6b19ebd8cdac95fe165a4a0b5bba0f3",
"extensio... | stackv2 | /*
* Copyright 2017 Aaron Barany
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 2.109375 | 2 |
2024-11-18T23:36:49.349886+00:00 | 2023-02-16T11:27:40 | 33a26cb212bb00deac5521c3480775d2fa5e0ee1 | {
"blob_id": "33a26cb212bb00deac5521c3480775d2fa5e0ee1",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "979348383f207efc9cd04818c5822f07573c8be6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright (c) 2017 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __SNTP_PKT_H
#define __SNTP_PKT_H
#include <zephyr/types.h>
#define SNTP_LI_MASK 0xC0
#define SNTP_VN_MASK 0x38
#define SNTP_MODE_MASK 0x07
#define SNTP_LI_SHIFT 6
#define SNTP_VN_SHIFT 3
#define SNTP_MODE_SHIFT 0
... | 2.203125 | 2 |
2024-11-18T23:36:49.705800+00:00 | 2020-12-31T18:47:41 | cdd79159c581fe202e3c188b9f00d8bc0e7a29d0 | {
"blob_id": "cdd79159c581fe202e3c188b9f00d8bc0e7a29d0",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-31T18:47:41",
"content_id": "1aef8468a857dfeb8f46657570931850d822b921",
"detected_licenses": [
"MIT"
],
"directory_id": "eb3561d2e6701fc7ab17dc94745a2a7124644195",
"extension": "c"... | stackv2 | #define NVM 1
#include "ligra.h"
template <class vertex>
struct PR_F {
double* p_curr, *p_next;
vertex* V;
PR_F(double* _p_curr, double* _p_next, vertex* _V) :
p_curr(_p_curr), p_next(_p_next), V(_V) {}
inline bool update(uintE s, uintE d){ //update function applies PageRank equation
p_next[d] += p_cu... | 2.4375 | 2 |
2024-11-18T23:36:49.959985+00:00 | 2022-03-31T08:22:16 | ff8fcc8aa408068cfbd078080ccd923184d9b7d4 | {
"blob_id": "ff8fcc8aa408068cfbd078080ccd923184d9b7d4",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-31T08:22:16",
"content_id": "98f572896dfb34258529c03aa502d7333273cf2b",
"detected_licenses": [
"Unlicense"
],
"directory_id": "397de467115775da05ae98426bca4583711df0c6",
"extension... | stackv2 | /***
*mbstowcs.c - Convert multibyte char string to wide char string.
*
* Copyright (c) 1990-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Convert a multibyte char string into the equivalent wide char string.
*
*******************************************************************************... | 2.75 | 3 |
2024-11-18T23:36:50.226740+00:00 | 2013-11-23T22:39:59 | 5de2dff17fe55c2538838df983a4bca023677113 | {
"blob_id": "5de2dff17fe55c2538838df983a4bca023677113",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-23T22:39:59",
"content_id": "403ad1163195cdd5a3453d6613684f77c59d1358",
"detected_licenses": [
"MIT"
],
"directory_id": "886d15748d39fb27280ffef6df1ca950ad82e41a",
"extension": "c"... | stackv2 | /*************************************************************************************************
*Filename: largestnumberfromthree.c
*Authors: Andrew Lamb
*Last Modified: 24/12/2012
*Description: User inputs three numbers and program outputs largest number
***********************************************************... | 3.796875 | 4 |
2024-11-18T23:36:50.590020+00:00 | 2021-08-24T03:07:31 | 4e14bf2c6c44fda00708bbcff4a034d1cc786f11 | {
"blob_id": "4e14bf2c6c44fda00708bbcff4a034d1cc786f11",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-24T03:07:31",
"content_id": "3810b0fe220335f9b1cadac5912295a1cf6bba99",
"detected_licenses": [
"MIT"
],
"directory_id": "86ac2dbf4dee3301f3a7d7938f6c5c758955cbe5",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <doHeader.h>
#include <binutils.h>
#include <tardefs.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
size_t parseSize(const char* s) {
const char* p = s;
size_t result = 0;
while('0' <= *p && *p <= '9... | 2.59375 | 3 |
2024-11-18T23:36:50.812658+00:00 | 2021-04-29T12:56:13 | 55982ea0c621916f34f6b438a11c3492639bdfab | {
"blob_id": "55982ea0c621916f34f6b438a11c3492639bdfab",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-29T12:56:13",
"content_id": "ddb5d2f45d2ff33de4d9a692e8c92fe76f1940ba",
"detected_licenses": [
"MIT"
],
"directory_id": "8b2c1b057aaf01a6d1c44d4df485e044beffe600",
"extension": "c"... | stackv2 | /** util.c - Utility functions for linked lists.
Copyright (c) 2020 Michael Berry
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 u... | 3.25 | 3 |
2024-11-18T23:36:50.973152+00:00 | 2018-05-27T19:18:41 | d18c46eca0e8015c534f3a9ba0072e319ac353bc | {
"blob_id": "d18c46eca0e8015c534f3a9ba0072e319ac353bc",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-27T19:18:41",
"content_id": "ca304677337c079efe944079e040da5e83f9966e",
"detected_licenses": [
"MIT"
],
"directory_id": "158fc49f552682a600703d508e075ee3b8ea8be1",
"extension": "h"... | stackv2 | #if 0
/// Copyright (c) Titan Robotics Club. All rights reserved.
///
/// <module name="compass.h" />
///
/// <summary>
/// This module contains the library functions for the compass sensor.
/// </summary>
///
/// <remarks>
/// Environment: RobotC for Lego Mindstorms NXT.
/// </remarks>
#endif
#ifndef _COMPASS... | 2.1875 | 2 |
2024-11-18T23:36:51.038315+00:00 | 2021-03-04T22:38:34 | be1870c4a276962ccc04047feae2b58baf2b7a84 | {
"blob_id": "be1870c4a276962ccc04047feae2b58baf2b7a84",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-04T22:38:34",
"content_id": "b34a4e66857ada31daa62dab16a252f4f0b63149",
"detected_licenses": [
"MIT"
],
"directory_id": "87be7baae897ecd356739577af4a1c7c5628b7f8",
"extension": "c"... | stackv2 | #include <testerutils/testerutils.h>
#include <stdio.h>
#include <string.h>
#include <tester/tester.h>
#if defined(_MSC_VER)
# pragma warning(disable : 4996)
#endif
const char *yadsl_tester_help_strings[] = {
"This is the testerutils test module",
"/serialize <string> <file>",
"/deserialize <string> <file>",
"/... | 2.40625 | 2 |
2024-11-18T23:36:51.498057+00:00 | 2023-09-01T11:45:00 | bcd9362479f0a6f82d282a8d44b09a108bd6fef9 | {
"blob_id": "bcd9362479f0a6f82d282a8d44b09a108bd6fef9",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-01T11:45:00",
"content_id": "cab323af560f601a20a35b58b1380dbdb4613510",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c55492b8f14b6f6fd9159c6cb38401970cbba266",
"extensio... | stackv2 | /**
* @brief Example C-based SBF program that moves funds from one account to
* another
*/
#include <solana_sdk.h>
/**
* Number of SolKeyedAccount expected. The program should bail if an
* unexpected number of accounts are passed to the program's entrypoint
*/
#define NUM_KA 3
extern uint64_t entrypoint(const u... | 2.421875 | 2 |
2024-11-18T23:36:51.595361+00:00 | 2023-08-07T00:34:06 | 52f4f79f288b83912579f83e79c8d538a6672c62 | {
"blob_id": "52f4f79f288b83912579f83e79c8d538a6672c62",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T00:34:06",
"content_id": "2628e1f91c889b6e71671ac1d958a5020d4df0d4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7875d9c191db4bbe4d3bafc340035435833a2166",
"extensio... | stackv2 | /*+-------------------------------------------------------------------+*/
/*| <Doc> |*/
/*| <NAME> SKI.H |*/
/*| <AUTHOR> Pamela Cham |*/
/*| <DATE> Septem... | 2.015625 | 2 |
2024-11-18T23:36:52.042275+00:00 | 2019-08-19T21:57:50 | 2ce5b17a014eae129f3b7c62207eac19d03bd527 | {
"blob_id": "2ce5b17a014eae129f3b7c62207eac19d03bd527",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-19T21:57:50",
"content_id": "ae9f54ad971470d7a979521cdd677a78c44150af",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "0fb6ace4598440d1a6b6c81f1d0fe2c573b6df0b",
"extens... | stackv2 | #ifndef __idl4_arch_generic_helpers_h__
#define __idl4_arch_generic_helpers_h__
#ifndef __idl4_have_size_t__
#define __idl4_have_size_t__
#if defined(CONFIG_ARCH_ALPHA)
typedef unsigned long idl4_size_t;
#else
typedef unsigned int idl4_size_t;
#endif
#endif
static inline void idl4_memcpy(void *dest, const void *sr... | 2.171875 | 2 |
2024-11-18T23:36:54.099035+00:00 | 2022-11-07T18:22:04 | 4254ba61ab99d29b3d48c93b3a89a75565516b37 | {
"blob_id": "4254ba61ab99d29b3d48c93b3a89a75565516b37",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-07T18:22:04",
"content_id": "59337ed9a860909d0194deaf687f314a1f3763cd",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "dbf7e924ef78d25e671c2299bcd93e333dc31be7",
"extens... | stackv2 | #include <getopt.h>
#include <signal.h>
#include <unistd.h>
#include <sys/wait.h>
#include "common.h"
#include "exedir.h"
#include "pipe.h"
#include "ui.h"
// Defaults
struct options_t options = {
.start = 0x400000,
.verbose = 0,
.raw = 0,
.allregs = 0,
.savefile = NULL,
.rappel_dir = { 0 }
};
static
void _us... | 2.421875 | 2 |
2024-11-18T23:36:55.428291+00:00 | 2017-07-25T06:43:51 | 05bf35bfdca2a3f4b6d76d5f2b290bbfc7c37cb4 | {
"blob_id": "05bf35bfdca2a3f4b6d76d5f2b290bbfc7c37cb4",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-25T06:43:51",
"content_id": "6ec75e87b1f5e949a105e3d5a69d65011d6a0054",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9c3aba60612553f41bfcb1ae384cf0c21f770d19",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
void try(int);
int pwd = 10;
void try(int x)
{
if (x==pwd)
puts("This\n");
else
puts("That\n");
return;
}
int main()
{
char buf[6] ;
int i;
puts("enter integer");
fgets(buf,sizeof(buf),stdin);
i = atoi(buf);
try(i);
return 0;
}
| 2.796875 | 3 |
2024-11-18T23:36:55.598405+00:00 | 2017-04-27T03:03:05 | 4453dc21ccd155538878b22d04a6d2eddc02bf1e | {
"blob_id": "4453dc21ccd155538878b22d04a6d2eddc02bf1e",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-27T03:03:05",
"content_id": "c19647715bb1b33fe34e22dbeddbade05fd818cd",
"detected_licenses": [
"MIT"
],
"directory_id": "64f6b9a26fd5bb3808f7730e2e6c7b7cd7ade2c7",
"extension": "c"... | stackv2 | #include <apr_general.h>
#include <apr_getopt.h>
#include <apr_strings.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "c4-api.h"
#define MAX_SOURCE_STRINGS 32
int LENGTH_RES = 0 ;
static void usage(void);
static C4Client *setup_c4(apr_pool_t *pool, apr_int16_t port,
... | 2.390625 | 2 |
2024-11-18T23:36:57.895569+00:00 | 2016-10-17T08:32:56 | 1888ad541862796b5694b5d98844da278bdd6c09 | {
"blob_id": "1888ad541862796b5694b5d98844da278bdd6c09",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-17T08:34:26",
"content_id": "ed96da721a4ae8717fdf44c01e650f9e18806012",
"detected_licenses": [
"MIT"
],
"directory_id": "98076c3e8f2c757998f52afc27f7660e544f2a61",
"extension": "c"... | stackv2 | // Extension routines
#include <stdio.h>
#include <poll.h>
#include <fcntl.h>
#include <string.h>
#include <termios.h>
#include <sys/ioctl.h>
#ifdef __APPLE__
#include <stdlib.h>
#include <glob.h>
#endif
#include <unistd.h>
#include "forth.h"
// #define BUFFERED_READ
#ifdef BUFFERED_READ
char buf[100];
char *bufp;
i... | 2.359375 | 2 |
2024-11-18T23:36:58.043031+00:00 | 2019-08-06T04:44:45 | a7c5e1b8dfa59d61b0ef7ec3d3aff9b277c369ea | {
"blob_id": "a7c5e1b8dfa59d61b0ef7ec3d3aff9b277c369ea",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T04:44:45",
"content_id": "ed5d999d2a2608edd49650cfc6a6fa473ed439e7",
"detected_licenses": [
"MIT"
],
"directory_id": "b68286b0228eb3e9d0fe3b89fb351f5d74314e62",
"extension": "c"... | stackv2 | #include <stdio.h>
int main()
{
int matricula, matriculamenor, divi = -1;
float nota = -1, notamenor = 11, soma = 1, media;
while (matricula != 999)
{
if (nota != -1)
{
scanf("%f", ¬a);
}
soma += nota;
if (nota < notamenor && nota != -1)
{
notamenor = nota;
matricul... | 2.890625 | 3 |
2024-11-18T23:36:58.579993+00:00 | 2019-05-20T21:54:06 | 176aa708bd7771845b0f10cb7cc1fb9a59598846 | {
"blob_id": "176aa708bd7771845b0f10cb7cc1fb9a59598846",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-20T21:54:06",
"content_id": "cb78ec76b3eb6b13bf1ce6d5b488a42c4af9b292",
"detected_licenses": [
"MIT"
],
"directory_id": "5057c8a1d875f5a673d05151eb3558a2d5f5dc6b",
"extension": "c"... | stackv2 | /*
* Author : AmirAslan Haghrah
*/
// In this tutorial we use EXT INTERRUPTS to control 0 to 9 counting procedure.
// EXT_INT0 used to pause counting and EXT_INT1 used to continue the counting.
#include<io.h>
#include<delay.h>
int ON = 1;
int i=0;
int a =0;
void main() {
DDRA=0b11111111;
MCUCR=0b00001111;
... | 2.6875 | 3 |
2024-11-18T23:37:00.486622+00:00 | 2016-11-01T00:55:56 | 3ffcfde2c5c8344ad39ab85fc65b7b7964f1b122 | {
"blob_id": "3ffcfde2c5c8344ad39ab85fc65b7b7964f1b122",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-01T00:55:56",
"content_id": "d828783d1a7e954dc4b0817f6ebe787f1d6dafe1",
"detected_licenses": [
"MIT"
],
"directory_id": "e3f0974988c13bca2b8b56caba98ec04a16fbbbd",
"extension": "c"... | stackv2 | //
// 05_输⼊⼀个姓名,判断是否是五虎上将.c
// Day10
//
// Created by tarena on 15/7/10.
// Copyright (c) 2015年 tarena. All rights reserved.
//
#include <stdio.h>
int main()
{
char name[100];
printf("请输入一个名字:");
scanf("%s", name);
char *tiger[5] = {"GuanYu", "ZhangFei", "ZhaoYun", "MaChao", "HuangZhong"};
... | 3.390625 | 3 |
2024-11-18T23:37:00.630389+00:00 | 2020-06-21T13:44:32 | 135002f2101a3d45f63c61033b5a540acd39d8bd | {
"blob_id": "135002f2101a3d45f63c61033b5a540acd39d8bd",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-21T13:44:32",
"content_id": "e92dc08bcf1acb41b431cd5918e55c6ec3f6a502",
"detected_licenses": [
"MIT"
],
"directory_id": "8554c9706a5b62e23b3bbf76ef4892d241163c6b",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <time.h>
#include "layout.h"
#include "mblock.h"
#include "mblock_ops.h"
#include "sblock.h"
#include "sblock_ops.h"
#include "inode.h"
#include "inode_ops.h"
#include "inode_vec.h"
#include "inode_vec_ops.h"
s... | 2.53125 | 3 |
2024-11-18T23:37:01.333207+00:00 | 2020-05-25T10:02:32 | d6ae8a0ae05dfc8a338ecbf5d404c0a4a48d9b76 | {
"blob_id": "d6ae8a0ae05dfc8a338ecbf5d404c0a4a48d9b76",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-25T10:02:32",
"content_id": "1943efae6cf109efa72982e733999f6ee8f6e30e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bf867625709f68b4e765216a168844f11c0c44e4",
"extensio... | stackv2 | #include"Airplanes.h"
#include<stdlib.h>
#include<stdio.h>
#include<stdbool.h>
/// <summary>
/// This Structure is a node of the queue (Linked list) of type Airplane
/// </summary>
typedef struct AirplaneQueue
{
Airplane airplane; //The "Airplane" object of the node of the queue
struct AirplaneQueue* next; //... | 2.4375 | 2 |
2024-11-18T23:37:01.415846+00:00 | 2021-08-22T11:03:40 | fab1c7cbf586e1b2ea5d5ae9582f6d03e09defa5 | {
"blob_id": "fab1c7cbf586e1b2ea5d5ae9582f6d03e09defa5",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-22T11:03:40",
"content_id": "ae9674f9e238749ac4d5111dfa3916932bbcdb2b",
"detected_licenses": [
"ISC"
],
"directory_id": "85fe12e8c5b129b4bbe5c14a449b0d47aa49fda3",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2019 Antti Tiihala
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... | 2.078125 | 2 |
2024-11-18T23:37:01.595825+00:00 | 2021-08-09T20:59:01 | 2da25dcaf7bfb92272ee90d548263aed526ead85 | {
"blob_id": "2da25dcaf7bfb92272ee90d548263aed526ead85",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-09T20:59:01",
"content_id": "b3cd4f61e575c6480e6438863dfe81fd4d6ef523",
"detected_licenses": [
"MIT"
],
"directory_id": "bef5bd3b91af9f3a2340b697d8d752557f39d8d0",
"extension": "h",
... | stackv2 | //###########################################################################
//
// FILE: DSP2833x_SWPrioritizedIsrLevels.h
//
// TITLE: DSP28 Devices Software Prioritized Interrupt Service Routine
// Level definitions.
//
//###########################################################################
// $... | 2.203125 | 2 |
2024-11-18T23:37:02.242183+00:00 | 2019-07-29T18:53:46 | e0dfeeb3b20f9def6ae588b1ea346d535946ba9d | {
"blob_id": "e0dfeeb3b20f9def6ae588b1ea346d535946ba9d",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-29T18:53:46",
"content_id": "a4a4cfd42d1bbef24279bf712d0b8670b336f794",
"detected_licenses": [
"Unlicense"
],
"directory_id": "e88ebffcc0da67aaf9b6a312d74432d827eff1bc",
"extension... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "lib\alocar\LIB_MEM_DOUBLE.h"
#include "lib\matriz\LIB_MATRIX_OPERATIONS.h"
#define NEW_LINE_SINGLE printf("\n")
#define NEW_LINE_DOUBLE printf("\n\n")
#define HEADER_LINE_SINGLE printf("\n============================================================\n")
#define DIVISOR... | 2.890625 | 3 |
2024-11-18T23:37:03.229570+00:00 | 2015-03-16T13:31:23 | 18f6c719938e520350c2183d614a35de4ab24c28 | {
"blob_id": "18f6c719938e520350c2183d614a35de4ab24c28",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-16T13:31:23",
"content_id": "2b4afe0599e79e62ab808bda6156bb3cca7e41da",
"detected_licenses": [
"BSD-3-Clause",
"Apache-2.0"
],
"directory_id": "c44ed9e934c0c24f3e0831b629a6e6458c... | stackv2 |
#include <Python.h>
#include <stddef.h>
/* this block of #ifs should be kept exactly identical between
c/_cffi_backend.c, cffi/vengine_cpy.py, cffi/vengine_gen.py */
#if defined(_MSC_VER)
# include <malloc.h> /* for alloca() */
# if _MSC_VER < 1600 /* MSVC < 2010 */
typedef __int8 int8_t;
typedef __int16... | 2.09375 | 2 |
2024-11-18T23:37:03.300208+00:00 | 2019-10-02T21:30:25 | b29453aff115eb1be21511588a056294cee537f7 | {
"blob_id": "b29453aff115eb1be21511588a056294cee537f7",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-02T21:30:25",
"content_id": "dbc91d3e2ecb2153db55bebf7a168a58c5acfdd8",
"detected_licenses": [
"MIT"
],
"directory_id": "e7835fd7ea78cb6edf590c60a0b24fc5b343e00b",
"extension": "c"... | stackv2 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <pnpbridge.h>
#include "azure_c_shared_utility/azure_base32.h"
#include "azure_c_shared_utility/gballoc.h"
#include "azure_c_shared_utility/xlogging.h"
#inclu... | 2.078125 | 2 |
2024-11-18T23:37:03.670931+00:00 | 2020-06-22T17:40:19 | 4400eae2f0edaae64b547ecff265f383756996d0 | {
"blob_id": "4400eae2f0edaae64b547ecff265f383756996d0",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-22T17:40:19",
"content_id": "82fbbd2547644320362e0f176a9cbf4e6d19cdc5",
"detected_licenses": [
"MIT"
],
"directory_id": "81da5ce803350380165e5bd6436f64d0e99cd277",
"extension": "c"... | stackv2 | #include <stdio.h>
int main(void)
{
int c;
printf("I'm waiting for a char: ");
c = getchar();
printf("I waited for the %d char.\n", c);
return(0);
}
| 2.921875 | 3 |
2024-11-18T23:37:03.999810+00:00 | 2014-03-17T08:34:19 | 01266e49d31867842e538f8af55dfec410927c94 | {
"blob_id": "01266e49d31867842e538f8af55dfec410927c94",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-17T08:49:25",
"content_id": "6202e9af480bfaea5aeb0c23e8ece5ae841cd641",
"detected_licenses": [
"MIT"
],
"directory_id": "6c7fc92b2627710a04de1b75fdcf9be37f1a72fd",
"extension": "h"... | stackv2 | /* The MIT License
Copyright (C) 2012 Zilong Tan (eric.zltan@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights... | 2.359375 | 2 |
2024-11-18T23:37:04.063897+00:00 | 2019-07-21T09:56:15 | bf94deb9456ca2e7e9b6e65d3340d0129a8689d8 | {
"blob_id": "bf94deb9456ca2e7e9b6e65d3340d0129a8689d8",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-21T09:56:15",
"content_id": "96c3d6cdf0912cc53a250ed39dfbac5afcfb3f44",
"detected_licenses": [
"MIT"
],
"directory_id": "7f333d455bcfa082ac1a927f1996a4d2a16c0b3e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "../bmp.h"
#include "bold.xbm"
#include "circuit.xbm"
#include "hand.xbm"
#include "infocom.xbm"
#include "normal.xbm"
#include "small.xbm"
#include "smallinv.xbm"
#include "thick.xbm"
#include "thinsans.xbm"
typedef struct xbm_details {
const char *name;
unsign... | 2.265625 | 2 |
2024-11-18T23:37:04.187388+00:00 | 2020-01-13T10:11:06 | 086dadeb1101f05857238f9b66e958c6319a7ad8 | {
"blob_id": "086dadeb1101f05857238f9b66e958c6319a7ad8",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-13T10:11:06",
"content_id": "75e62ceb7333fbd775eb7ab9b4da738a44466024",
"detected_licenses": [
"MIT"
],
"directory_id": "ac1cea270f65a2b00f92241c1198cd98e9ce3e02",
"extension": "c"... | stackv2 | /**
* @author Neo Xu (neo.xu1990@gmail.com)
* @license The MIT License (MIT)
*
* Copyright (c) 2019 Neo Xu
*
* 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, inc... | 2.109375 | 2 |
2024-11-18T23:37:04.861500+00:00 | 2022-06-19T17:22:36 | da671884240433761d8b1ee1d8b8607dda033366 | {
"blob_id": "da671884240433761d8b1ee1d8b8607dda033366",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-19T17:22:36",
"content_id": "74d109531a2595ece6470c7912f2d67659cc6f61",
"detected_licenses": [
"MIT"
],
"directory_id": "30f7b547514bca847674643de703446f264ec469",
"extension": "h"... | stackv2 | /*
* Copyright (c) 2009-2017 Yannick Garcia <thaddeus.dupont@free.fr>
*
* yImage is free software; you can redistribute it and/or modify
* it under the terms of the GPL license. See LICENSE for details.
*/
/**
* \file yImage.h
* \brief images representation and basic operations. Plus load or save actions.
*
*... | 2.546875 | 3 |
2024-11-18T23:37:04.945689+00:00 | 2018-03-19T08:47:22 | d9432b006c67c10a6d345e0e61e2eea0b0541083 | {
"blob_id": "d9432b006c67c10a6d345e0e61e2eea0b0541083",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-19T08:47:22",
"content_id": "1bc41d073751f071a57661556bb8705e35c3e2ed",
"detected_licenses": [
"Unlicense"
],
"directory_id": "82664a03ad42f059fca1399ca4021f1db8bba884",
"extension... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <linux/fs.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <assert.h>
#include <string.h>
#include <math.h>
#include "mag3110.h"
int MAG3110_DataProcess (int MAG3110_XData,int MAG3110_YData,int MAG3110_... | 2.0625 | 2 |
2024-11-18T23:37:05.511335+00:00 | 2016-09-30T08:40:21 | 17a54b08c67cf7d9b27748810b7318eb3ea63d11 | {
"blob_id": "17a54b08c67cf7d9b27748810b7318eb3ea63d11",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-30T08:40:21",
"content_id": "d38d0fef4420674d25dd7d8b36a78537e6a88989",
"detected_licenses": [
"MIT"
],
"directory_id": "9ebbe2b966b754b5c495519cb16222adcf743a13",
"extension": "c"... | stackv2 | /* ****** Written by Luc Fourtinon
****** Last Modification: 25/05/13
Using the stm32f10x lib needs a configuration. You need to put STM32F10X_LD_VL in
Project\Option for Target\C/C++\Define
The datasheet is needed to find the best option for your project and to know the global
fonctionnement o... | 2.6875 | 3 |
2024-11-18T23:37:05.618838+00:00 | 2023-05-31T23:22:47 | 7c001e122555757b46660cdf3d6a6f3484683a3e | {
"blob_id": "7c001e122555757b46660cdf3d6a6f3484683a3e",
"branch_name": "refs/heads/main",
"committer_date": "2023-05-31T23:22:47",
"content_id": "2a189d293058d5b834a482bd4c05e6699ca5a75b",
"detected_licenses": [
"MIT"
],
"directory_id": "4a727ce379e9d21826895699d09164cdac4836d5",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <time.h>
#define NUM_READERS 20
#define NUM_WRITERS 3
volatile int data = 0;
pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t turn = PTHREAD_COND_INITIALIZER;
unsigned int running_writers = 0;
unsigned int waiti... | 3.3125 | 3 |
2024-11-18T23:37:07.642303+00:00 | 2013-07-19T11:30:54 | 558e88bd0e23434fa8cbf8f1c5700bee0fcf6bc9 | {
"blob_id": "558e88bd0e23434fa8cbf8f1c5700bee0fcf6bc9",
"branch_name": "refs/heads/master",
"committer_date": "2013-07-19T11:30:54",
"content_id": "93353a134b55e2dcb6f0f9042e87334f6b642c07",
"detected_licenses": [
"NCSA"
],
"directory_id": "84a3fad5582fa4e318c0ef07d2deb2efae6f44d3",
"extension": "c... | stackv2 | #include <stdio.h>
int main() {
#pragma omp parallel
{
;
}
int a,b;
#pragma omp parallel private(a) default(shared) private(b)
{ }
#pragma omp master
printf("hello world\n");
for(int i=0;i<10;i++)
#pragma omp single
printf("HELLO again!");
}
| 2.234375 | 2 |
2024-11-18T23:37:07.814573+00:00 | 2021-09-09T16:43:06 | b94b9b21cd875169ee54f5595891c122533b366d | {
"blob_id": "b94b9b21cd875169ee54f5595891c122533b366d",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-09T16:43:06",
"content_id": "400b9a50cc06582bc68b42e8c6823966cbb2a534",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "f8069f807511c33c023dd3240987dba02f91c33e",
"extens... | stackv2 | #ifndef __CTYPE_H__
#define __CTYPE_H__
#include <__macros.h>
extern __CONST unsigned char _ctype[];
#define _U 0x01 /* Uppercase */
#define _L 0x02 /* Lowercase */
#define _N 0x04 /* Digit */
#define _S 0x08 /* Whitespace */
#define _P 0x10 /* Punctuation */
#define _C 0x20 /* Control */
#define _SP 0x40 /* Space *... | 2.578125 | 3 |
2024-11-18T23:37:07.987405+00:00 | 2016-06-19T05:23:11 | 249af3cd67364cff7b1f5d87c98cd12f6b186ada | {
"blob_id": "249af3cd67364cff7b1f5d87c98cd12f6b186ada",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-19T05:23:11",
"content_id": "aaa98f6cdde497b86693388302354f41adc6fcc5",
"detected_licenses": [
"MIT"
],
"directory_id": "d694d0e898441f0de026678de721929b9679a924",
"extension": "h"... | stackv2 | #ifndef PHYSICAL_ALLOCATOR_H
#define PHYSICAL_ALLOCATOR_H
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <contrib/multiboot.h>
#include <libk/kabort.h>
#include <libk/kassert.h>
#include <libk/kmem.h>
#include <libk/kputs.h>
#include <libk/lock.h>
#ifdef ARCH_X86
#include <arch/x86/memlayout.... | 2.1875 | 2 |
2024-11-18T23:37:08.070642+00:00 | 2020-11-20T09:43:26 | db4cc042d4d254028a3201746397d6c1cc0d532d | {
"blob_id": "db4cc042d4d254028a3201746397d6c1cc0d532d",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-20T09:43:26",
"content_id": "7a5b2343bcb53d2a0f28218c71ec9fa3f49aea67",
"detected_licenses": [
"MIT"
],
"directory_id": "e0783998bcf4a446ecbcb929b09da11dc86fd8ab",
"extension": "c"... | stackv2 | #include "unity.h"
#include "EmbeddedUtilities/BitManipulation.h"
// #include "CommunicationModule/Mac802154.h"
#define ADDRESSING_MODE_SHORT_ADDRESS 0b10 // source: "CommunicationModule/Mac802154.h"
#include <memory.h>
void debug(const uint8_t *msg){}
void checkByteValue(uint8_t field, uint8_t field_copy, uint8_t ... | 2.265625 | 2 |
2024-11-18T23:37:11.349031+00:00 | 2021-05-13T22:56:19 | ffe38c98762ceedb2ccbf2756dc6f48f0ca85bc6 | {
"blob_id": "ffe38c98762ceedb2ccbf2756dc6f48f0ca85bc6",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-13T22:56:19",
"content_id": "c2dbf9fcb7b821a147bc92749d0b79c1fd68e2a8",
"detected_licenses": [
"MIT"
],
"directory_id": "2bda3f220e667474bb7e2eb540922a0d9edf2a13",
"extension": "c",
... | stackv2 | /*
Autor (usuario): mynorjrv
Fecha: Sun 21 Mar 2021 04:18:07 PM CST
compilador: gcc (Debian 8.3.0-6) 8.3.0
Para Compilar: gcc -o Alturas Alturas.c
Version: 1.0
librerias: stdio (u otras)
Resumen: Este programa pide "alturas" (numeros), al ingresar
un numero negativo termina y promedia los pbtenidos
y da e... | 3.3125 | 3 |
2024-11-18T23:37:12.276361+00:00 | 2017-04-03T14:04:11 | 84752199053805366ebd8463e61180533bf8471c | {
"blob_id": "84752199053805366ebd8463e61180533bf8471c",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-03T14:04:11",
"content_id": "b4433b2610c39ef3c3e8c022bb500af22fa178e6",
"detected_licenses": [
"MIT"
],
"directory_id": "9d121733df655028f133c08e0d8f040ffd5cb08d",
"extension": "c"... | stackv2 | /*=========================================================
Program : Reverse_Tisigram.c
Deskripsi : Membalikan Tulisan
Nama : REKA ALAMSYAH
Version : 1.0
Tanggal : 23 Maret 2016
Compiler : TDM-GCC 4.9.2 64-bit Release
============================================... | 2.671875 | 3 |
2024-11-18T23:37:12.716271+00:00 | 2019-09-23T09:06:46 | 0427fbd0d8059cb44c8d2b1be0fbeb48e63bfb3b | {
"blob_id": "0427fbd0d8059cb44c8d2b1be0fbeb48e63bfb3b",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-23T09:06:46",
"content_id": "89b41ba56943bba4d915eecc4000cb1ee196ea82",
"detected_licenses": [
"MIT"
],
"directory_id": "ff2966d547c85be6c639e97d9baf354f251c6754",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include <pthread.h>
int number = 10;
pthread_mutex_t mutex;
pthread_cond_t cond;
void *f(void *arg){
while(1){
pthread_mutex_lock(&mutex);
number++;
pthread_mutex_unlock(&mutex);
pthread_mutex_lock(&mutex);
if(number>10000)
... | 3.078125 | 3 |
2024-11-18T23:37:12.841761+00:00 | 2021-08-04T08:00:49 | 8751dd559f1ba56cbcf11ddf44060a22e74b7527 | {
"blob_id": "8751dd559f1ba56cbcf11ddf44060a22e74b7527",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-04T08:00:49",
"content_id": "9f0a5fd4207ee0b660f11f93742758bf6f803bd9",
"detected_licenses": [
"MIT"
],
"directory_id": "3efb1c3437b691118e1b84176c10889109616bb8",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <CDataStructures/slist.h>
CDS_PRIVATE
cds_unary_node_t *_cds_slist_get_node(
cds_slist_t *self,
size_t index
) {
return cds_unary_node_get(self->head, index);
}
CDS_PRIVATE
cds_status_t _cds_slist_push_front(
cds_slist_t *self,
c... | 2.703125 | 3 |
2024-11-18T23:37:13.120201+00:00 | 2020-12-30T23:58:10 | 3ed7a240798e8f45da8d33a2a281027cded2a6c2 | {
"blob_id": "3ed7a240798e8f45da8d33a2a281027cded2a6c2",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-30T23:58:10",
"content_id": "3d9d043e454e007ad87671d01b8988afbfd32200",
"detected_licenses": [
"MIT"
],
"directory_id": "daece476019e6db47d269e10c6195eb71f55f250",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#define MAX 2
struct livro
{
char nome[30];
int ano,paginas;
float valor;
};
int main()
{
struct livro titulo [MAX];
int i;
float soma=0,media;
for(i=0;i<MAX;i++)
{
printf("insira os dados do livro %i\n",i+1);
printf("insira o t... | 3.265625 | 3 |
2024-11-18T23:37:13.227295+00:00 | 2019-08-09T15:14:07 | 051d16187862dbc58592d04f8e963468ece0399f | {
"blob_id": "051d16187862dbc58592d04f8e963468ece0399f",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-09T15:14:07",
"content_id": "148e3f05757400b2bbcd3bad52db5d5c25faef40",
"detected_licenses": [
"MIT"
],
"directory_id": "cfda15e48f061a9535988a4a4349874b49eb9c53",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#pragma warning (disable: 4996)
void main();
void myAddress(); //must mention before hand
void main()
{
myName(); //must rmb to add bracket
myAddress();
printf("thats define a legend");
system("pause");
}
void myName()
{
printf("legend name shall not ... | 2.65625 | 3 |
2024-11-18T23:37:13.312649+00:00 | 2017-03-02T20:57:23 | cadc4de15f51b00c8291d65cca9004585af86ef7 | {
"blob_id": "cadc4de15f51b00c8291d65cca9004585af86ef7",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-02T20:57:23",
"content_id": "4c164cfd14f645b5a2b61d595512fec75fe607d5",
"detected_licenses": [
"MIT"
],
"directory_id": "4f20bf1d395ec8e0dc56aca6addbb03c90a81ab3",
"extension": "h"... | stackv2 | /*
* File : form.h
* Program: tim-tam-tom -- A tic-tac-toe game written in curses
* Notes : Link with -lpanel -lncurses
* Purpose: form that prompts for username - header
* Author : Tommy Lincoln <pajamapants3000@gmail.com>
* License: MIT -- See LICENSE
* Notes : Link with -lform -lncurses
*/
#ifndef GUARD... | 2.46875 | 2 |
2024-11-18T23:37:13.826834+00:00 | 2021-04-21T03:53:11 | 4811fcbe01ee50b754b5ec77b159c920c187607c | {
"blob_id": "4811fcbe01ee50b754b5ec77b159c920c187607c",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-21T03:53:11",
"content_id": "ebcd78725612e368c741b2f5d7ab8acb23f2f57c",
"detected_licenses": [
"MIT"
],
"directory_id": "c566564497c2da3bb53b243f8a6a6529357550c0",
"extension": "c",
... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "stdafx.h"
#include "windows.h"
#include "winsock.h"
// load windows socket
#pragma comment(lib, "wsock32.lib")
// define return message
#define SS_ERROR 1
#define SS_OK 0
void pr(char *string)
{
char buffer[500] = " ";
strcpy(buffer, string);
... | 2.796875 | 3 |
2024-11-18T23:37:14.151284+00:00 | 2019-11-14T13:02:33 | 085824435d4451881112bbf919befd4fd0e17193 | {
"blob_id": "085824435d4451881112bbf919befd4fd0e17193",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-14T13:02:33",
"content_id": "1b93b431696dfd10ef49838502e7724b5896ce54",
"detected_licenses": [
"MIT"
],
"directory_id": "8f1e3d3e5a7c4710e3ee52e928c320150120d9f2",
"extension": "c"... | stackv2 | #include <stdio.h> /*Defines printf*/
/*The main function of fathoms to feet program*/
int main(void){
/*Statement to declare Integer variables*/
int feet, fathoms;
/*Asign values to variables*/
fathoms = 2;
feet = fathoms * 6; /*Calc feet from fathoms*/
printf("There are %d feet in %d fathom... | 3.421875 | 3 |
2024-11-18T23:37:14.709988+00:00 | 2021-09-22T13:40:37 | f1dd2d39e01c6e5e7adc5c3e0320749013eff703 | {
"blob_id": "f1dd2d39e01c6e5e7adc5c3e0320749013eff703",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-22T13:40:37",
"content_id": "839a866d965fe9184ecf2f10db506ab5b8946803",
"detected_licenses": [
"MIT"
],
"directory_id": "1efef9121dc79782d8bec55d29c093eb9897c58b",
"extension": "c"... | stackv2 | #include <stdio.h>
int main(){
FILE *arquivo;
char nome[40], empresa[40];
float fortuna;
int linha = 9;
arquivo = fopen("dados.bin", "rb+");
if(arquivo == NULL)
perror("Erro ao abrir dados.bin");
else{
int tamanho = sizeof(nome) + sizeof(fortuna) + sizeof(empresa);
int position;
fseek(arquivo, taman... | 2.703125 | 3 |
2024-11-18T23:37:15.561118+00:00 | 2016-01-21T18:13:08 | c3fdea964fc50ea01f4f7bcd56639567fb82ab4c | {
"blob_id": "c3fdea964fc50ea01f4f7bcd56639567fb82ab4c",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-23T17:46:54",
"content_id": "fe9b10185c17e320f0099e1f7c102be682d8b790",
"detected_licenses": [
"ISC"
],
"directory_id": "bc8935a021e7e133e417c7cbde935f705f3516e9",
"extension": "c"... | stackv2 | #include "util.h"
#include "robin-backend.h"
#include "sjf-backend.h"
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
OS200_LOCK_NEW(stderr);
OS200_SYNC_NEW(robin);
OS200_SYNC_NEW(sjf);
OS200_SYNC_NEW(result);
int quit;
char *filename;
os200_result result;
void *robin_loop(void *ex... | 2.515625 | 3 |
2024-11-18T23:37:15.877374+00:00 | 2019-02-11T21:25:48 | b09534496f04f0509e33f823aaed86924a0403c6 | {
"blob_id": "b09534496f04f0509e33f823aaed86924a0403c6",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-11T21:25:48",
"content_id": "98cbadff872cd9f4a6da1c8504f348fe31f47e25",
"detected_licenses": [
"BSD-3-Clause",
"Zlib",
"BSD-4-Clause",
"BSD-2-Clause",
"PSF-2.0",
"Pyt... | stackv2 | /*!
* @file powershell.c
* @brief Entry point and intialisation definitions for the Powershell extension
*/
#include "../../common/common.h"
#include "../../DelayLoadMetSrv/DelayLoadMetSrv.h"
// include the Reflectiveloader() function, we end up linking back to the metsrv.dll's Init function
// but this doesnt matt... | 2.359375 | 2 |
2024-11-18T23:59:26.188832+00:00 | 2017-11-29T02:08:36 | 84d08968444515642e1a17a4f16e757df44a2ae9 | {
"blob_id": "84d08968444515642e1a17a4f16e757df44a2ae9",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-29T02:08:36",
"content_id": "f4c84690e67cd6f7ee9ae15d6a6e8fc9542bf921",
"detected_licenses": [
"MIT"
],
"directory_id": "d9adf88fb5e7f6b6e5a1e3263259e69306220e4b",
"extension": "c"... | stackv2 |
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
key_t key;
key = ftok("./",2013);
if (key < 0)
{
perror("ftok");
}
int fd = shmget(key,1024,IPC_CREAT|0666);
if (fd < 0)
{
perror("shmget");
}
printf("the shmid is %d\n",fd);
retur... | 2.359375 | 2 |
2024-11-18T23:59:26.443230+00:00 | 2021-04-08T17:24:07 | 023541fb46e1d95df56ae5930fb4c6d0106c8937 | {
"blob_id": "023541fb46e1d95df56ae5930fb4c6d0106c8937",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-08T17:24:07",
"content_id": "0cb60f5d276d8d8702f4047d90b055b04da305ed",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "fe27d4417ec8d360caf766b4acd10f5eaaffc5db"... | stackv2 | #include "papi_test.h"
int
main( int argc, char **argv )
{
int retval;
long long elapsed_us, elapsed_cyc;
const PAPI_hw_info_t *hw_info;
tests_quiet( argc, argv ); /* Set TESTS_QUIET variable */
retval = PAPI_library_init( PAPI_VER_CURRENT );
if ( retval != PAPI_VER_CURRENT )
test_fail( __FILE__, __LINE__, "... | 2.5 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.