added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T22:41:37.293685+00:00 | 2012-12-15T07:39:42 | c0b7840779b434d45b57344e9281cd5753dd6021 | {
"blob_id": "c0b7840779b434d45b57344e9281cd5753dd6021",
"branch_name": "refs/heads/master",
"committer_date": "2012-12-15T07:39:42",
"content_id": "4e8b2426216c389b0495aa0a0b586a6f1a9a0bf9",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "5766d4212823dd6d6c7fb32bc12c4292... | stackv2 | #include <assert.h>
#include <stdio.h>
#include "ray2.h"
void kmRay2Fill(kmRay2* ray, kmScalar px, kmScalar py, kmScalar vx, kmScalar vy) {
ray->start.x = px;
ray->start.y = py;
ray->dir.x = vx;
ray->dir.y = vy;
}
kmBool kmRay2IntersectLineSegment(const kmRay2* ray, const kmVec2* p1, const kmVec2*... | 2.9375 | 3 |
2024-11-18T22:41:37.368743+00:00 | 2019-08-25T13:29:36 | 43c0953067eabab8ab0434ff5254ba32afe79faa | {
"blob_id": "43c0953067eabab8ab0434ff5254ba32afe79faa",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-25T13:29:36",
"content_id": "e996530f4ceeee27cd0d6d947f35b79148c203d7",
"detected_licenses": [
"ISC"
],
"directory_id": "768d553fc96b57a963569e7f23f1f1da619d1424",
"extension": "c"... | stackv2 | /* single producer, multiple consumer queue which throws away
enqueued data instead of blocking producer indefinitely if
consumers fall behind.
Compile:
clang -o spmc_lossy spmc_lossy.c -Os -g -Wall -Wextra -std=c99 -lpthread
Run:
./spmc_lossy create
and then run, possibly simultaneously:
... | 2.890625 | 3 |
2024-11-18T22:41:37.932596+00:00 | 2018-04-06T20:30:51 | b4cc043c3bb19ef673b349c8775b54965bd45576 | {
"blob_id": "b4cc043c3bb19ef673b349c8775b54965bd45576",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-06T20:30:51",
"content_id": "0f74be6a8c290266f661d59430f3018b932a1e0f",
"detected_licenses": [
"MIT"
],
"directory_id": "040e84dd431b7f7969c4877ea8b2b50f45fa89ff",
"extension": "c"... | stackv2 | #include "wordTreeInterface.h"
#include "symbolTableInterface.h"
/*
* This use-case of the symbol Table API is going to work on the following
* problem.
*
* 1) Read-in a huge amount of text
* 2) Each word is the key of the symbol
* 3) The value is the number of times it has occurred so far.
* 4) Print out the mo... | 2.875 | 3 |
2024-11-18T22:41:38.126211+00:00 | 2023-09-02T14:55:31 | 477024f567129f998cfa883c0a17367a55c189c1 | {
"blob_id": "477024f567129f998cfa883c0a17367a55c189c1",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T14:55:31",
"content_id": "be3dcf86c1f895c0980160f53402761541754b00",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8838eb997879add5759b6dfb23f9a646464e53ca",
"extens... | stackv2 | /**
* @file
* @brief File descriptor (fd) abstraction over FILE *
* @details Provide POSIX kernel support to operate with flides (int)
* instead of FILE *
* @date 06.09.11
* @author Anton Kozlov
*/
#include <assert.h>
#include <errno.h>
#include <sys/uio.h>
#include <fs/kfile.h>
#include <kernel/task/resource... | 2.546875 | 3 |
2024-11-18T22:41:38.987540+00:00 | 2023-03-23T05:16:23 | ca921cd366d2f28ff3515d50ab38c3cee067622b | {
"blob_id": "ca921cd366d2f28ff3515d50ab38c3cee067622b",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-27T14:18:46",
"content_id": "9fb79e1831a260f4db20213ca581907c0bae91b2",
"detected_licenses": [],
"directory_id": "3ef2bbccf5b44055169135f52a216c3f78dd9c8c",
"extension": "c",
"filename... | stackv2 | /*----------------------------------------------------------------------
*
* pgquarrel -- comparing database schemas
*
* privileges.c
* Generate GRANT / REVOKE commands
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* GRANT ON TABLE
* GRANT (columns) ON TABLE
* GRANT ON SEQUENCE
* GRANT ON DOMAIN
*... | 2.484375 | 2 |
2024-11-18T22:41:39.046520+00:00 | 2020-11-04T09:34:47 | 02a52fa10a3da396efa626d6e6c502aaa1c2bed2 | {
"blob_id": "02a52fa10a3da396efa626d6e6c502aaa1c2bed2",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-04T09:34:47",
"content_id": "17a39bfbefc4adb731d6b5b58f07c5ca7902d162",
"detected_licenses": [
"MIT"
],
"directory_id": "a47ed5f231d6cd0cf05199850ba6c7c0f856b5ab",
"extension": "c",
... | stackv2 | /**
* Name : sender.c
* Author : Qu Xiangjun
* Version : 2.0
* Date : 2020-10-8
* Description : Ethernet frame receiver test
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
# include "receive... | 2.375 | 2 |
2024-11-18T22:41:39.121422+00:00 | 2023-07-19T13:11:57 | be0f77ee91f30f7694423d47a887fc3ea684522d | {
"blob_id": "be0f77ee91f30f7694423d47a887fc3ea684522d",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-21T13:11:19",
"content_id": "a713877670e4c4a4d1f2d6a96953fd72b441a1f7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8900ebfaa4d04a7feead3eef03c35430637da50e",
"extensio... | stackv2 | /*
* Copyright (C) 2018 Microchip Technology Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/*! This file contains two functions for reading BMP files to Cairo image surfaces.
*
* All prototypes are defined in cairo_bmp.h All functions and their parameters
* and return values are describe... | 2.546875 | 3 |
2024-11-18T22:41:41.656130+00:00 | 2020-01-27T17:41:05 | 7383332fe551f3fc39fa7a4a203cef36b2c8d21c | {
"blob_id": "7383332fe551f3fc39fa7a4a203cef36b2c8d21c",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-27T17:41:05",
"content_id": "9e3e04d02e30af82d094f9c3617caaa6ef38af84",
"detected_licenses": [
"MIT"
],
"directory_id": "41b7f7ffd7b490a7fe1f81dca7d24e30535bf439",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define ARG_COUNT 1
int main(int argc, char* argv[]) {
if (argc < ARG_COUNT + 1) {
char error[] = "Incorrect number of arguments.";
write(STDOUT_FILENO, error, strlen(error));
return EXIT_FAILURE;
}
int i;
... | 2.640625 | 3 |
2024-11-18T22:41:41.743183+00:00 | 2016-02-10T18:59:15 | 6309ce3e94a096a5605040796ebe28bd62c1b1a4 | {
"blob_id": "6309ce3e94a096a5605040796ebe28bd62c1b1a4",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-10T18:59:15",
"content_id": "ac5853fe6e1fdde49907d8f101247ba3e6bc234e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "17ff491d1d5fb388c93e14a7c1ab2515f784bbb6",
"extens... | stackv2 | // Copyright 2016 Adrien Descamps
// Distributed under BSD 3-Clause License
// This program demonstrate how to convert a YUV420p image (raw format) to RGB (ppm format)
// You need to know the source image resolution, because it is not included in a raw yuv file
#include "yuv_rgb.h"
#include <stdint.h>
#include <stdi... | 2.4375 | 2 |
2024-11-18T22:41:42.573860+00:00 | 2019-06-03T19:32:33 | a5330fc0ef336025dc0b03d5b59c56fbd97358ff | {
"blob_id": "a5330fc0ef336025dc0b03d5b59c56fbd97358ff",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-03T19:32:33",
"content_id": "3fbaff0611ee9bab018426c7e73012c58d35ca94",
"detected_licenses": [
"MIT"
],
"directory_id": "301f166eefd55156b7c63c2b422b6296cad04969",
"extension": "c"... | stackv2 |
//islower test
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
int main(int argc, char const *argv[])
{
char znak;
scanf( "%c", & znak );
if( islower( znak ) )
printf( "Wprowadziles mala litere alfabetu i jest to: %c\n", znak );
return 0;
}
| 2.6875 | 3 |
2024-11-18T22:41:42.661931+00:00 | 2021-04-16T10:00:43 | 22482057ad450b9cacd648882579e6a027d06080 | {
"blob_id": "22482057ad450b9cacd648882579e6a027d06080",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-16T10:00:43",
"content_id": "e93f3dacee234dd512b147ff0c706874a94d737f",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "7efa42e5af8cfb00d65066cb06f400bdf7c62ebe",
"extension": "... | stackv2 | /**
* @file Test_CBank.c
* @author {Aditya} ({gautamaditya99@gmail.com})
* @brief
* @version 0.1
* @date 2021-04-16
*
* @copyright Copyright (c) 2021
*
*/
#include "../inc/CBank_Header.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../unity/unity.h"
int i, j;
int main_exit;
struct... | 2.515625 | 3 |
2024-11-18T22:41:42.756820+00:00 | 2021-02-09T07:27:57 | 9bc631f8b7d745eac4cf23cb8d4f24363e7e4aa1 | {
"blob_id": "9bc631f8b7d745eac4cf23cb8d4f24363e7e4aa1",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-09T07:27:57",
"content_id": "b6b26cd143bd5bd5ace816339c712aad7063ddd5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a99152c4e3bf3518f6c9f809cb845af3e2c7c324",
"extension"... | stackv2 | //1.1 Write a program to input a floating number and show that number with two decimal points.
#include<stdio.h>
main(){
float n;
printf("enter number: "); scanf("%f",&n);
printf("The number is %.2f",n);
}
/*enter number: 28.022233
The number is 28.02*/
| 3.515625 | 4 |
2024-11-18T22:41:43.037198+00:00 | 2015-09-10T12:21:47 | 813f8177ef404badaa27f5a14ce52ca1f2d18a32 | {
"blob_id": "813f8177ef404badaa27f5a14ce52ca1f2d18a32",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-10T12:21:47",
"content_id": "f6c36f338ff62add9d7e5c550f1fea1ae5589df1",
"detected_licenses": [
"MIT"
],
"directory_id": "520bf7676a04d8a2d379bb11292c864a631dd59d",
"extension": "c"... | stackv2 | #include "../testlib/main_test.c"
#include <errno.h>
/* char * __cdecl _strnset (char *s, int ch, size_t n).
Flow-graph:
(1) Set all characters in string s to value of ch, until s'
nil-character or n-th character is reached.
Tests:
Test for s == NULL.
Test for valid s and ch != 0.
Test for valid s and... | 2.59375 | 3 |
2024-11-18T22:41:46.533415+00:00 | 2018-08-03T05:31:13 | f3228307a69caab9c97ff57d9c6886b3e8e659c6 | {
"blob_id": "f3228307a69caab9c97ff57d9c6886b3e8e659c6",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-03T05:31:13",
"content_id": "7f2f5f2c81897b6e1196acee1a8de9c489b16c76",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fe67d31392ef586095301d70259782713056f481",
"extensio... | stackv2 | /*
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 2.171875 | 2 |
2024-11-18T23:07:30.776252+00:00 | 2023-08-09T14:46:20 | ff071aa18cec6797a8a05fae607addb488487dc4 | {
"blob_id": "ff071aa18cec6797a8a05fae607addb488487dc4",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-09T14:48:44",
"content_id": "63367d7272e005799ead7459fde86f636329668b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b8c024cabc0cd248201ceaa365e209ae2ada30fb",
"extension"... | stackv2 | /*
* Copyright (c) 2023 Antmicro
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/ztest.h>
#include <zephyr/fs/fs.h>
#include <zephyr/fs/ext2.h>
#include "utils.h"
#include "../../common/test_fs_util.h"
uint32_t calculate_blocks(uint32_t freeb, uint32_t B)
{
uint32_t blocks = 0;
if (freeb <= 12) {
... | 2.734375 | 3 |
2024-11-18T23:07:30.854491+00:00 | 2016-07-24T01:38:09 | 9bff34d5ba35c7a95bc98820a45721a58a177c0f | {
"blob_id": "9bff34d5ba35c7a95bc98820a45721a58a177c0f",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-24T01:38:09",
"content_id": "ef08ef4a4adc6cd83d341fa0d48962d951671f93",
"detected_licenses": [
"MIT"
],
"directory_id": "93eb6647faed950796dd1ad65308cbdb06ab98aa",
"extension": "c"... | stackv2 | #include <stdio.h>
void entab (int n);
int main ()
{
entab(8);
return 0;
}
void entab (int n)
{
int column, blanks, c;
column = blanks = 0;
while ((c = getchar()) != EOF) {
if (c == ' ')
blanks++;
else if (c == '\t')
blanks = blanks + n - (column + blanks) % n;
else {
while (bla... | 3.328125 | 3 |
2024-11-18T23:07:33.907076+00:00 | 2023-05-05T20:35:12 | a819653f0e76f3042c5706ad1f8e6b24a03196f2 | {
"blob_id": "a819653f0e76f3042c5706ad1f8e6b24a03196f2",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-05T20:35:12",
"content_id": "bfe8893dc83c59c01955689eb3a810ff02dde92d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b3f7944ef581e8f4e3dc0a230007c09a93fc79f4",
"extensio... | stackv2 | /* Copyright 2017 Jonathan Realmuto
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 2.1875 | 2 |
2024-11-18T23:07:33.964793+00:00 | 2021-08-24T08:54:33 | b667240cc0aec93567ab202e409769b00f5c6e6d | {
"blob_id": "b667240cc0aec93567ab202e409769b00f5c6e6d",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-24T08:54:33",
"content_id": "259ccf76757af5f5c552dde7098f0c95a870ce34",
"detected_licenses": [
"MIT"
],
"directory_id": "11d1d15a6a200cd721183e3aeda1f13384b566af",
"extension": "c"... | stackv2 |
//12.02.2019
//murat öner
//advence c and system programgim: homework 2
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <ctype.h>
#define buffer_size 1023
int main(int argc, char *argv[])
{
int ch;
int tflag = 0, hflag = 0, Hflag = 0, uflag = 0, lflag = 0;
in... | 2.875 | 3 |
2024-11-18T23:07:34.558265+00:00 | 2017-11-27T11:48:18 | 67b8e021dc875a46cfe67e0a019cfaafcc02c310 | {
"blob_id": "67b8e021dc875a46cfe67e0a019cfaafcc02c310",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-27T11:48:18",
"content_id": "72e70000d351e18670309660a3b7fad4046eb0ca",
"detected_licenses": [
"MIT"
],
"directory_id": "6c20fe263a624e75da8e87efc129a59a128e3357",
"extension": "c"... | stackv2 | // Parts of this file are from the newlib sources, issued under GPL.
// Copyright (c) 2014 Liviu Ionescu
// Copyright (c) 2016 Vitaly Kravtsov
int errno;
void *__dso_handle __attribute__ ((weak));
#include <errno.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/times.h>
#include "MDR32F9Qx_config.h"
#incl... | 2.109375 | 2 |
2024-11-18T23:07:34.992405+00:00 | 2020-10-24T18:57:50 | d514be80fcc0d21e1c238555cfb2771b6741d31d | {
"blob_id": "d514be80fcc0d21e1c238555cfb2771b6741d31d",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-24T18:57:50",
"content_id": "9a361f6c7920a24754b7b90570c1169f948cef0a",
"detected_licenses": [
"MIT"
],
"directory_id": "5341e5f3d2752592c17828cbdbc4f24be643677d",
"extension": "h"... | stackv2 | #ifndef CGEN_H
#define CGEN_H
/*
String streams are handy for using standard C-library
functions to produce formatted strings.
*/
typedef struct sstream
{
char *buffer;
size_t bufsize;
FILE* stream;
} sstream;
void ssopen(sstream* S);
char* ssvalue(sstream* S);
void ssclose(sstream* S);
/*
This function take... | 2.0625 | 2 |
2024-11-18T23:07:37.667461+00:00 | 2013-08-21T21:31:53 | 9e8dfbfce54e25498a794455a33b4bfd8217b864 | {
"blob_id": "9e8dfbfce54e25498a794455a33b4bfd8217b864",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-21T21:31:53",
"content_id": "e17a5b2002f502d1eacce649992858aeeebd8d38",
"detected_licenses": [
"MIT"
],
"directory_id": "8f6f674f61a4046a834c1b5d3cfd1548864fcd44",
"extension": "h"... | stackv2 | #ifndef _DOF_FP_H_
#define _DOF_FP_H_
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#include <windows.h>
#endif
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>
#include <glt/glt.h>
typedef struct
{
int xres, yres;
TTexture *tid_screen; // Textura del viewpo... | 2.03125 | 2 |
2024-11-18T23:07:37.828446+00:00 | 2019-05-11T08:02:45 | 02bf13d7c5945a5ddc3c9a691c7d798201241f92 | {
"blob_id": "02bf13d7c5945a5ddc3c9a691c7d798201241f92",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-11T08:02:45",
"content_id": "f1071e04285977ea5cb434dc4b60445572a769d1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "61be38ee4b6643028202a32898117ffa1185150b",
"extensio... | stackv2 | #include<stdio.h>
#include<malloc.h>
#include<time.h>
#include<stdlib.h>
/**
* 迷宫
* */
typedef struct maze{
int* maze;
unsigned int row;
unsigned int column;
unsigned int start;
unsigned int end;
void (*print)(struct maze *);
void (*generate)(struct maze *, unsigned int);
void (*save)... | 2.46875 | 2 |
2024-11-18T23:07:38.044306+00:00 | 2022-06-21T07:56:24 | deae324b1612bb3e03726a25048aee3263c36551 | {
"blob_id": "deae324b1612bb3e03726a25048aee3263c36551",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-21T07:56:24",
"content_id": "8070f8bb8aad37a77e9f80a18f13c49233742562",
"detected_licenses": [
"MIT"
],
"directory_id": "1029fb700c0237cfb15d123150ab36ebd896f036",
"extension": "c"... | stackv2 | #include "rbcp.h"
/* MY_SOCKET */
static int udp_socket(void)
{
int sockfd;
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
if (sockfd < 0) {
warn("socket(AF_INET, SOCK_DGRAM, 0)");
return -1;
}
struct timeval tm_out = { 2, 0 }; /* timeout 2 seconds */
if (setsockopt(sockfd, SOL_SOCKE... | 2.515625 | 3 |
2024-11-18T23:07:38.583905+00:00 | 2017-04-03T02:22:34 | c25ada49fcecf9e33d0a1ff3c31b47fb16841264 | {
"blob_id": "c25ada49fcecf9e33d0a1ff3c31b47fb16841264",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-03T02:23:48",
"content_id": "3f114a270bad87a30c419829a45e2256a1060558",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7e511f88696a0ba7ff51812af2f5844741d220b3",
"extens... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
struct node* gen_primes(const int max);
struct node** gen_factors(const int max, struct node* primes);
int relative_prime(int n, int d, struct node** factors);
struct node {
int value;
struct node* next;
};
int main(int argc, char** argv) {
const... | 3.328125 | 3 |
2024-11-18T23:07:39.031534+00:00 | 2017-12-10T03:32:45 | 54055395271e20a275f4caae4c0cd7959b08a209 | {
"blob_id": "54055395271e20a275f4caae4c0cd7959b08a209",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-10T03:32:45",
"content_id": "c71ac12681ac26266b0554ba058ce71204b0a187",
"detected_licenses": [
"MIT"
],
"directory_id": "dde5cc67488308628eafce3bef6636600998d93e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include "repo.h"
struct repo {
int repofd;
struct repo_package *packages;
};
static struct repo_package *package_lookup(struct repo *repo, const char *pkg);
static void package_destroy(struc... | 2.640625 | 3 |
2024-11-18T23:07:39.198316+00:00 | 2019-12-24T11:42:08 | 68511753e358d48889a6ffcdea3a3cbe64803cc9 | {
"blob_id": "68511753e358d48889a6ffcdea3a3cbe64803cc9",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-24T11:42:08",
"content_id": "be2a375f5c6edb645bdc6108117ce4b1a5f633a7",
"detected_licenses": [
"MIT"
],
"directory_id": "614d24b76d8c9679c91dccefd16a8defff98ef99",
"extension": "c"... | stackv2 |
#include "usart.h"
#include "stm32f10x.h"
#include <stdio.h>
/**
* @brief USARTx时钟初始化函数
* @param None
* @retval None
*/
static void USART1_RCC_Configuration(void)
{
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA |
RCC_APB2Periph_USART1 | RCC_APB2Periph_AFIO, ENABLE);
}
/**
* @brief USART的GPIO初始化... | 2.9375 | 3 |
2024-11-18T23:07:39.359283+00:00 | 2018-10-08T02:03:43 | 8d3a748980925dc1908afd26098f096b7570b288 | {
"blob_id": "8d3a748980925dc1908afd26098f096b7570b288",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-09T02:45:53",
"content_id": "e84767d3b1264e3eb48ab31a31ab82c3bd569cfa",
"detected_licenses": [
"MIT"
],
"directory_id": "e0b181ba95bf4691394d969fa3c01322212a57b0",
"extension": "c"... | stackv2 | #include "libc/signal.h"
#include <errno.h>
#include "libc/cdefs.h"
// FIXME: sigaddset, sigdelset & sigismember:
// use macro to manipulate the sigset
int sigismember(const sigset_t * set, int sig)
{
size_t w, b;
unsigned long res;
if (__unlikely(!valid_signal(sig))) {
errno = EINVAL;
return -1;
}
... | 2.40625 | 2 |
2024-11-18T23:07:39.470890+00:00 | 2016-01-16T19:56:24 | ea99f920edd5c9e22a118b7f03a6a0ae7a008b93 | {
"blob_id": "ea99f920edd5c9e22a118b7f03a6a0ae7a008b93",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-16T19:56:24",
"content_id": "9b5c2e4a4d124e2ef68768930504fac98fa46c42",
"detected_licenses": [
"MIT"
],
"directory_id": "d1a6dac5b482249857bf5f8671c155dac032fb67",
"extension": "h"... | stackv2 | #ifndef SET87_HEADERS
#define SET87_HEADERS
typedef struct iNode {
int data;
struct iNode *next;
} iNode;
// Binary Tree definitions
typedef struct bNode {
int key_value;
struct bNode *left;
struct bNode *right;
} bNode;
void destroy_tree( bNode *leaf ) {
if( leaf != 0 ) {
destroy_... | 3.171875 | 3 |
2024-11-18T23:07:39.657476+00:00 | 2021-06-01T04:16:58 | 1bf9194936f332e6ceb4e0817f61152a08ede75c | {
"blob_id": "1bf9194936f332e6ceb4e0817f61152a08ede75c",
"branch_name": "refs/heads/dev",
"committer_date": "2021-06-01T04:16:58",
"content_id": "4264bd4bd736faaa185c835ba0508209869c3541",
"detected_licenses": [
"MIT"
],
"directory_id": "ca3dcd87527733a201d1d142059fd5d52919f8a2",
"extension": "c",
... | stackv2 | /* netmap!! */
#define NETMAP_WITH_LIBS
#include<net/netmap_user.h>
/* default, printf, etc */
#include<stdio.h>
/* uint32_t */
#include<stdint.h>
/* htons, htonl, etc */
#include<netinet/in.h>
/* signal stuff */
#include<signal.h>
/* pollfd */
#include<sys/poll.h>
#include "../libs/common.h"
#include "../libs/netmap... | 2.359375 | 2 |
2024-11-18T23:07:40.696947+00:00 | 2023-04-08T22:17:15 | 161151dbebd2f833a2d16fa50e9cdbf4fb0a59e9 | {
"blob_id": "161151dbebd2f833a2d16fa50e9cdbf4fb0a59e9",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-08T22:17:15",
"content_id": "7ca7cdac2b846c9b7097e08dd73900beb75626be",
"detected_licenses": [
"MIT"
],
"directory_id": "759671bc82c8c3f5b5e43b24593e038befbb839e",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include "bugcheck.h"
#include "xmalloc.h"
#include "test2.h"
static int maxlen = 100;
static int* hist = NULL;
int test2_start(test_param_t* param)
{
param->maxlen = maxlen;
param->seed = 1;
hist = (int*)xcalloc(maxlen + 1, sizeof(int));
fo... | 2.578125 | 3 |
2024-11-18T23:07:41.774795+00:00 | 2021-03-18T22:24:52 | 2b93b8811a93cf5fad3b68e1cb05c03dd1db347e | {
"blob_id": "2b93b8811a93cf5fad3b68e1cb05c03dd1db347e",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-18T22:24:52",
"content_id": "060d7a87d61873143087edb28f763d486b8a7573",
"detected_licenses": [
"MIT"
],
"directory_id": "6647c76d6173c3a4745723b2f7f4b67ff98746d8",
"extension": "c"... | stackv2 | /*
* PROJECT: BadApp
* LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: CriticalSection bugs
* COPYRIGHT: Copyright 2018 Mark Jansen (mark.jansen@reactos.org)
*/
#include "stdafx.h"
HANDLE BADAPP_EXPORT CSHeap(void)
{
return GetProcessHeap();
}
LPCRITICAL_SECTION BADAPP_EXPORT CreateAndInit... | 2.703125 | 3 |
2024-11-18T23:07:41.910236+00:00 | 2019-11-13T18:21:43 | a503c52853b280cb8a52e3f84268ed68b3f049b4 | {
"blob_id": "a503c52853b280cb8a52e3f84268ed68b3f049b4",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-13T18:21:43",
"content_id": "50cfac2b2933e312783d7f56f1824aee01f79184",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3f0e4130ae309b5e2ed34ceaff3860de171a8ddd",
"extens... | stackv2 | #ifndef WBT_H
#define WBT_H
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#define WBT_ALPHA 0.288
#define WBT_EPSILON 0.005
#include "lib/stack/stack.h"
typedef struct wbt wbt_t;
typedef struct wbt_node wbt_node_t;
typedef size_t (*key_length_fn_t)(const void *key);
extern wbt_t ... | 2.125 | 2 |
2024-11-18T23:07:42.059148+00:00 | 2021-03-25T15:20:56 | d54c1d105b4408a0be317869dd1f21041df3c20f | {
"blob_id": "d54c1d105b4408a0be317869dd1f21041df3c20f",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-25T15:20:56",
"content_id": "d1d734787e9090318cc56763ea05e0f2986dabc0",
"detected_licenses": [
"MIT"
],
"directory_id": "2fe44c0a132cb742f58faea6dc5851688b9bfa3d",
"extension": "h"... | stackv2 | //*****************************************************************************
//
// comp_d.h - Driver for the COMP_D Module.
//
//*****************************************************************************
#ifndef __MSP430WARE_COMP_D_H__
#define __MSP430WARE_COMP_D_H__
#include "inc/hw_memmap.h"
#ifdef __MSP430_... | 2.171875 | 2 |
2024-11-18T23:07:42.558375+00:00 | 2015-06-02T00:31:39 | 13e94e9186e80c7508d9d1605c8262d409e5eafb | {
"blob_id": "13e94e9186e80c7508d9d1605c8262d409e5eafb",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-02T00:31:39",
"content_id": "01226d3153ed217e27e835c2a7f88c40f4fc7f94",
"detected_licenses": [
"MIT"
],
"directory_id": "cadbf011eda8b84c4a602139a01945cae7dcf5fd",
"extension": "c"... | stackv2 | #include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <regex.h>
#include "macros.h"
char* write_section(char* arg) {
char* open = "<p><p><strong><em>";
char* close = "</em></strong>";
char* out = malloc(strlen(open) + strlen(arg) + strlen(close) + 1);
strcpy(out, ope... | 2.28125 | 2 |
2024-11-18T23:07:42.896217+00:00 | 2023-08-07T19:18:32 | 69b155315968bfef123c5151c2b24a3f9badcd8a | {
"blob_id": "69b155315968bfef123c5151c2b24a3f9badcd8a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T19:18:32",
"content_id": "e4b0e5aef0c91c29d06b683f13f224d670c71b3a",
"detected_licenses": [
"curl",
"Apache-2.0"
],
"directory_id": "e1d9c54e9925e30e388a255b53a93cccad0b94cb",... | stackv2 | #ifndef v1beta1_self_subject_review_status_TEST
#define v1beta1_self_subject_review_status_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define v1beta1_self_subject_review_status_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#include <string.h>
#include <s... | 2.46875 | 2 |
2024-11-18T23:07:44.194794+00:00 | 2019-11-08T17:43:08 | 6f7fc20b56edaeff00e36aed2d7ac892565076ff | {
"blob_id": "6f7fc20b56edaeff00e36aed2d7ac892565076ff",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-08T17:43:08",
"content_id": "b9b44ed12e7d7f3057335a25252af0e699ffb5a8",
"detected_licenses": [
"MIT"
],
"directory_id": "1c6f6b41535d24008cf3c9a677420eb784883118",
"extension": "h"... | stackv2 | //items and dependency tabel
#define Y \
/*X(<ITEM NAME>, <DEP 1>,<DEP 1 AMOUNT>, <DEP 2>,<DEP 2 AMOUNT>, ... )*/\
X(Teleporter, Advanced_Component,2, Mithril_Block,1, Basic_Combination,2 ,Core,1 , Mese_Crystal,2, Advanced_Combination,1)\
X(Advanced_Component, Silver_Ingot,2, Diamond,1, Mese_Crystal,2, Basic_Compon... | 2.328125 | 2 |
2024-11-18T23:07:44.816055+00:00 | 2019-04-10T11:15:13 | 0a13c028990b5835b93f83d7ca52b6b9d9c0b159 | {
"blob_id": "0a13c028990b5835b93f83d7ca52b6b9d9c0b159",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-10T11:15:13",
"content_id": "7573db7b636f8b9e2ce7811dbc963290c680b710",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f66e2ad3fc0f8c88278c0997b156f5c6c8f77f28",
"extensio... | stackv2 | /*
============================================================================
Author : Ztiany
Description : 认知指针的类型,内容来自 http://blog.csdn.net/soonfly/article/details/51131141
============================================================================
*/
int void main() {
definePointer();
}
static ... | 3.5625 | 4 |
2024-11-18T23:07:44.976235+00:00 | 2019-11-22T11:42:24 | 9b044b5a2eb8c8da13046336e1ac0c7ed73416fc | {
"blob_id": "9b044b5a2eb8c8da13046336e1ac0c7ed73416fc",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-22T11:42:24",
"content_id": "e4a1103f63214f17fa55465689b776d3006c7040",
"detected_licenses": [
"MIT"
],
"directory_id": "a85a7226383ebcd83bfa0bddc6cdb61f07ec8591",
"extension": "c"... | stackv2 | /******************************************************
* @brief 主文件 *
* @file main.c *
* @author 毕家钦 *
* @version v1.0 *
* @date 2019年11月21日 ... | 2.640625 | 3 |
2024-11-18T23:07:45.182486+00:00 | 2022-03-01T22:33:16 | 21172e96115b50ce9de8e682c95673046c953662 | {
"blob_id": "21172e96115b50ce9de8e682c95673046c953662",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-12T17:03:27",
"content_id": "ddaf4b3de9747caae3dc3e5a11f65f118bbecf06",
"detected_licenses": [
"MIT"
],
"directory_id": "c7308b6f7534ec1d08d02ff7882020636f42a2cb",
"extension": "c"... | stackv2 | // align of p is 8:
// RUN: %ucc -fsyntax-only %s
#define assert_align(var, n) \
_Static_assert(_Alignof(var) == n, #var " alignment not " #n)
char _Alignas(void *) p;
assert_align(p, 8);
// shouldn't error about subsequent smaller alignments
_Alignas(8) _Alignas(32) __attribute((aligned)) _Alignas(4) int x;
main... | 2.6875 | 3 |
2024-11-18T23:07:45.477030+00:00 | 2019-10-18T12:52:47 | 80ec6745243467b825456fb1a1f4e7571cf799d3 | {
"blob_id": "80ec6745243467b825456fb1a1f4e7571cf799d3",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-18T12:52:47",
"content_id": "75c8a1e389d3dbf061cfc72e1927aad632c3bac3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bd5d92953c0a027587da7cb7667307d42731f13e",
"extens... | stackv2 | /*
* BSD 3-Clause License
*
* Copyright (c) 2019, Antony Jr.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice... | 2.359375 | 2 |
2024-11-18T23:07:45.538602+00:00 | 2019-05-27T16:35:00 | a75c2846ca5bc1b224bf1f9cbf1b641e111a7fb4 | {
"blob_id": "a75c2846ca5bc1b224bf1f9cbf1b641e111a7fb4",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-27T16:35:00",
"content_id": "0dac7f3b3fc06811f711438faaefb9109bc25878",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1401be640c8dbb63b832abb74e6115d2489ebc93",
"extens... | stackv2 | //
// cblas_sger.c
// COBLAS
//
// Copyright (c) 2013-2018 University of Colorado Denver. All rights reserved.
//
#include <coblas.h>
void cblas_sger(CBLAS_ORDER order, int m, int n, float alpha, float *x, int incx, float *y, int incy, float *A, int ldA)
{
if((order!=CblasRowMajor)&&(order!=CblasColMajor))
... | 2.203125 | 2 |
2024-11-18T23:07:48.077890+00:00 | 2019-06-25T17:40:48 | 0d870716cb3b57582518d3d8c41844f2b4558de4 | {
"blob_id": "0d870716cb3b57582518d3d8c41844f2b4558de4",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-25T17:40:48",
"content_id": "72969a1f8a8d8d015e4064a69dff34872589a26d",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "f05a9518e28af049dd2358f8ba87e3b86fd49868",
"extens... | stackv2 | #include "system_includes.h"
#include "mobcal_state_struct.h"
#include "mobcal_get_filenames.h"
int mobcal_get_filenames(int argc, char **argv,
char *filenames, int filename_limit) {
/*
Get the names of the parameters file (parameters.in),
atomtype parameters file (atomtype_parameters.in),
mfj file (*... | 2.171875 | 2 |
2024-11-18T23:07:48.857236+00:00 | 2021-06-29T16:35:44 | 631482e0973d8de051328861db90657484950c32 | {
"blob_id": "631482e0973d8de051328861db90657484950c32",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-29T16:35:44",
"content_id": "4485a180bef82233219d29ed1e6ac92dd6b9fde7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fc7d5b988d885bd3a5ca89296a04aa900e23c497",
"extension"... | stackv2 | /* mbed Microcontroller Library
* Copyright (c) 2018-2018 ARM Limited
*
* 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 re... | 2.046875 | 2 |
2024-11-18T23:07:48.930222+00:00 | 2021-03-13T17:34:55 | 41f9f2f999014c9f05d8118ee734b60ae170d4c3 | {
"blob_id": "41f9f2f999014c9f05d8118ee734b60ae170d4c3",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-13T17:34:55",
"content_id": "e0b685816608438267f78a9e16ea13d8f603a558",
"detected_licenses": [
"MIT"
],
"directory_id": "18e7edc3027c0ae769c3a82488f2141010366271",
"extension": "c",
... | stackv2 | #include "MemoryFileTest.h"
static byte hash_(ulong u) {
byte b[16];
union {
ulong u;
byte b[8];
} converter;
converter.u = u;
md5_bytes(8, converter.b, b);
return b[0];
}
static void check_(MemoryFile *mf) {
ulong size;
ulong u;
size = memory_file_get_size(mf);
memory_file_rewind(mf);
... | 2.453125 | 2 |
2024-11-18T23:07:49.010397+00:00 | 2021-10-28T15:56:21 | ebcb4beaf63927945247385a169d2fc73427aae9 | {
"blob_id": "ebcb4beaf63927945247385a169d2fc73427aae9",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-28T15:56:21",
"content_id": "d9eb7ccf0f09a60190169b32a1784fc00b515905",
"detected_licenses": [
"ISC"
],
"directory_id": "5371d3bd4239169a947565067e6acafe3acf024d",
"extension": "c",
... | stackv2 | // handling several simple children
#include <err.h>
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
void
perform_computation(int i)
{
// XXX this works because the message is small enough, so it
// does not get "interleaved... | 2.984375 | 3 |
2024-11-18T23:07:49.062376+00:00 | 2020-08-14T21:47:55 | 655c2aee7d1432f07f805312c3a587a40e2f28a0 | {
"blob_id": "655c2aee7d1432f07f805312c3a587a40e2f28a0",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-14T21:47:55",
"content_id": "6db3ab59d8e62915cb302825724a648f3846e1dd",
"detected_licenses": [
"MIT"
],
"directory_id": "792fff817ad38788ed183b0b3f1a96c75bf17896",
"extension": "c"... | stackv2 | #include <stdio.h>
int main() {
//Programa que calcula a distância entre dois pontos (x2-x1)²+(y²-y1)²
float x1,x2,y1,y2,subtrair,subtrair2,distancia,multiplica,multiplica2;
scanf("%f",&x1);
scanf("%f",&y1);
scanf("%f",&x2);
scanf("%f",&y2);
subtrair=x2-x1;
subtrair2=y2-y1;
multiplica=subtrair*subtrair;
multiplica2=... | 3.234375 | 3 |
2024-11-18T23:07:50.133849+00:00 | 2014-09-27T18:53:56 | 36112ad7380c60f3bf9f22b52e7dc9c49cab32ab | {
"blob_id": "36112ad7380c60f3bf9f22b52e7dc9c49cab32ab",
"branch_name": "refs/heads/master",
"committer_date": "2014-09-27T18:53:56",
"content_id": "47198931f4216722192e23c71e1839317903c836",
"detected_licenses": [
"Unlicense"
],
"directory_id": "a8ae345cd61e4bd595f9b9d173fab773498f125f",
"extension... | stackv2 | /*----------------------------------------------------------------------------
* Name: toolset.c
* Purpose: LPC1768 Low level tool functions
* Note(s):
*----------------------------------------------------------------------------
* Author Blokhin Y
* Copyright (c) Systelen 2012
*------------------------------... | 2.078125 | 2 |
2024-11-18T23:07:53.902105+00:00 | 2021-06-18T15:55:22 | c35061a8ea0da1f00c78f78dcefe081fc4423c61 | {
"blob_id": "c35061a8ea0da1f00c78f78dcefe081fc4423c61",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-18T15:55:22",
"content_id": "2311405b4df1879dbfb75ae6b171c5acde9c354a",
"detected_licenses": [
"MIT"
],
"directory_id": "130b341c0cba330f683d8ea6162091ed3c2f529b",
"extension": "c"... | stackv2 | /******************** (C) COPYRIGHT 2011 **************************************
* File Name : adctherm_cal.c
* Hackee : deh
* Date First Issued : 08/10/2011
* Board : STM32F103VxT6_pod_mm
* Description : Convert thermistor adc reading to degree C * 100
*************************... | 2.453125 | 2 |
2024-11-18T23:07:54.295698+00:00 | 2019-10-23T15:35:45 | 2bb7e506b9fc366dafd7045d6667675ebce3c963 | {
"blob_id": "2bb7e506b9fc366dafd7045d6667675ebce3c963",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-23T15:35:45",
"content_id": "1fc0331c0f1418e68f639f8645796e3cfb318bf7",
"detected_licenses": [
"MIT"
],
"directory_id": "0a0041339062f3843554d5c32c80727a01f48b54",
"extension": "c"... | stackv2 | //=============================================================================
// FILE:
// input_for_cc.c
//
// DESCRIPTION:
// Sample input file for CallCounter analysis. Some function casts exhibit
// UB (clang will warn about it)- use this file for analysis and
// experimenting only.
//
// ... | 2.65625 | 3 |
2024-11-18T23:07:54.578810+00:00 | 2023-04-23T11:12:08 | 19c07d9eb3519efcae4c3e9cf610b59ab120ee67 | {
"blob_id": "19c07d9eb3519efcae4c3e9cf610b59ab120ee67",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-23T11:12:08",
"content_id": "23023aad731d4288190b98aa3d28eded8c3f537b",
"detected_licenses": [
"MIT"
],
"directory_id": "544e7cd6e6ade047bdc9e73d4727a30230bbd7f4",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#define CNFG_IMPLEMENTATION
#include "rawdraw_sf.h"
int gwidth;
int gheight;
int firstframe = 1;
int maxframe;
int * framenos;
void initframes( const unsigned char * frame, int linesize )
{
int x, y;
firstframe = 0;
printf( "First f... | 2.21875 | 2 |
2024-11-18T23:07:54.996628+00:00 | 2016-09-20T10:11:22 | ce54c77536b4f995b430c5a904f1848f5107e5c7 | {
"blob_id": "ce54c77536b4f995b430c5a904f1848f5107e5c7",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-20T10:11:22",
"content_id": "505b25c233a7dee93aff3d032db5edb8f87dfcf7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7f5937c840ea0a0a33270040b15b1ec882422c87",
"extensio... | stackv2 | #include <legible.h>
int length; // how many lines fit on a page of this item?
int num_pages; // how many pages in this item?
int current_page; // what page is this item open to?
struct page_struct {
struct page_contents_struct *contents;
} *pages;
int query_is_legible() { return 1; }
int query_length() { ... | 2.578125 | 3 |
2024-11-18T23:07:55.177550+00:00 | 2021-07-17T00:45:50 | 4f028f2c4cbcf834d5c1b100eeac1597d2d88c1b | {
"blob_id": "4f028f2c4cbcf834d5c1b100eeac1597d2d88c1b",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-17T00:45:50",
"content_id": "c0c695c295f813c515e92ae52384c4ed4b1fb3ef",
"detected_licenses": [
"MIT"
],
"directory_id": "9e21849c93c52185dd2225c07c0256b4e80fda10",
"extension": "c",
... | stackv2 | //
// Created by Meng Lv on 2021/5/23.
//
#include "JLX12864_2.c"
// 模式0_0
void mode0_0(uint8_t* v_passin[], uint8_t* t_passin[], uint8_t* f_passin[]){
// clear_screen();
display_GB2312_string(1, 1, "电压:", 0);
display_GB2312_string(1, 41, v_passin[0], 0);
display_GB2312_string(1, 49, ".", 0);
disp... | 2.140625 | 2 |
2024-11-18T23:07:58.065041+00:00 | 2015-10-04T23:00:26 | 46884d3db3a15d687c897e71d95f490ebcb3ea4f | {
"blob_id": "46884d3db3a15d687c897e71d95f490ebcb3ea4f",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-04T23:00:26",
"content_id": "b143781c4dc2dc11c5ab0e361ca95ecccdf3f92e",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "57b8e0ec7e8794050c43c0945a62a7525c7c3e60",
"... | stackv2 | /* CreateProc.c
This is Negative test Case
Here a Process Creater Proc Creates various locks & CVs
Then it execs executable IllegalUser which tries to attempt to use these locks & CV which does not belong to it
Please note since IDs or handlers for locks & CV are nothing but ... | 2.609375 | 3 |
2024-11-18T23:07:58.163426+00:00 | 2016-11-03T19:08:01 | 866a224c18ab4a596f37bf5846265f7f232827d7 | {
"blob_id": "866a224c18ab4a596f37bf5846265f7f232827d7",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-03T19:08:01",
"content_id": "a2c3211589bfd9c20d0682c7eca1590f0e08ac39",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e0a32c9689f75a6f3ced8e2f1d639450154fea59",
"extensio... | stackv2 | // Ensure that this header file is only included once
#ifndef ADDITIONAL_MATH_FUNCTIONS
#define ADDITIONAL_MATH_FUNCTIONS
// Define a macro for max, min, abs and sign functions and PI
#ifndef max
#define max(a,b) (((a) > (b)) ? (a):(b))
#endif
#ifndef min
#define min(a,b) (((a) < (b)) ? (a):(b))
#endif
... | 2.21875 | 2 |
2024-11-18T23:07:58.247720+00:00 | 2019-09-23T13:24:32 | 548e0f13227229e95fe545ee62001348e2325f00 | {
"blob_id": "548e0f13227229e95fe545ee62001348e2325f00",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-23T13:24:32",
"content_id": "9722df36bd7903bc772e822a3bac404816e0f048",
"detected_licenses": [
"MIT"
],
"directory_id": "8a8ef1c24f9dc9b4e403b0fa1f9d1663f5cd3a9e",
"extension": "c"... | stackv2 | #include "header.h"
char *mx_strchr(const char *s, int c) {
char *str;
str = (char*)s;
while(*str != c) {
if (*str == '\0')
return NULL;
str++;
}
return str;
}
| 2.140625 | 2 |
2024-11-18T23:07:58.450741+00:00 | 2021-08-28T11:30:29 | 44aa0eece83f057a339de89412eb8b4abecfe3eb | {
"blob_id": "44aa0eece83f057a339de89412eb8b4abecfe3eb",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-28T11:30:29",
"content_id": "d97ee1d416640a88bca1ded50d8cbb3848227341",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7cfd63648d2359003bdfd985bc7bfbf2801a396b",
"extensio... | stackv2 | /* algo8-1.c 边界标识法。实现算法8.1的程序 */
#include "../ch1/c1.h"
#include "c8-1.h"
#define MAX 1000 /* 可利用空间的大小(以WORD的字节数为单位) */
#define e 10 /* 块的最小尺寸-1(以WORD的字节数为单位) */
Space AllocBoundTag(Space *pav, int n) /* 算法8.1(首次拟合法) */
{ /* 若有不小于n的空闲块,则分配相应的存储块,并返回其首地址;否则返回NULL */
/* 若分配后可利用空间表不空,则pav指向表中刚分配过的结点的后继结点 */
Space p, f... | 3.078125 | 3 |
2024-11-18T23:07:58.512228+00:00 | 2020-01-04T01:35:57 | 418692e6dc8ba844a8cf75b2454dda49a6212606 | {
"blob_id": "418692e6dc8ba844a8cf75b2454dda49a6212606",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-04T01:35:57",
"content_id": "5f0f1e4b12ddafa9dfbb9a6e80ae4af98769a944",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "c7253ff8a83a0369e7c21804cebdb270fa1f170a",
"extens... | stackv2 | #include <ncurses.h>
int main(void)
{
WINDOW *p;
initscr();
p = newpad(50,100); /* create a new pad */
if( p == NULL )
{
endwin();
puts("Unable to create new pad");
return(1);
}
waddstr(p,"This is pad data");
addstr("New pad created\n");
prefresh(p,0,0,12,0,13,40);
printw("Pad y data is %d.\n",p-... | 2.421875 | 2 |
2024-11-18T23:07:58.587088+00:00 | 2019-08-06T14:24:54 | 163d2e6a56723f0912e1ebe4171b0d066e0d934f | {
"blob_id": "163d2e6a56723f0912e1ebe4171b0d066e0d934f",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T14:24:54",
"content_id": "74e8e2390ef8638fa2478bf858ddf46277572744",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "021a3ccdcb91d84629f1de7343981b572840b169",
"extens... | stackv2 | /*
This is the equivalent of MATLAB's fread() only on sockets instead of
binary files.
*/
#include <petscsys.h>
#include <../src/sys/classes/viewer/impls/socket/socket.h>
#include <mex.h>
PetscErrorCode PetscBinaryRead(int,void *p,int,int*,PetscDataType);
#define PETSC_MEX_ERROR(a) {fprintf(stdout,"sread: %s... | 2.375 | 2 |
2024-11-18T23:07:59.122896+00:00 | 2019-04-14T16:32:58 | e416a993fb47a7bedb228502994334c5dbae46f3 | {
"blob_id": "e416a993fb47a7bedb228502994334c5dbae46f3",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-14T16:32:58",
"content_id": "daac23f8663c0dd6e42cd16f1bea776ff4fd51c7",
"detected_licenses": [
"MIT"
],
"directory_id": "2b5f510aa7bef241ced10941c76c8bd2a6344c42",
"extension": "c"... | stackv2 | #include <string.h>
#include <assert.h>
#include "include/util/time.h"
#include "include/util/stats.h"
#include "include/private/flecs.h"
/* -- Global array parameters -- */
const ecs_array_params_t table_arr_params = {
.element_size = sizeof(ecs_table_t)
};
const ecs_array_params_t handle_arr_params = {
.e... | 2.390625 | 2 |
2024-11-18T23:07:59.650343+00:00 | 2021-05-14T13:45:25 | e2c80e99eca558bf36cb2b0c93ff0509fa6a6be8 | {
"blob_id": "e2c80e99eca558bf36cb2b0c93ff0509fa6a6be8",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-14T13:45:25",
"content_id": "bca578b53b1cdac63decbfcc9f3408702da5d2bf",
"detected_licenses": [
"MIT"
],
"directory_id": "b2998fb296aa03ac5f445178f57fbe911748e3e8",
"extension": "c",
... | stackv2 | /* Hello World 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.h>
#... | 2.5 | 2 |
2024-11-18T23:07:59.744345+00:00 | 2021-10-31T16:16:24 | 602c94f825687ad8d3c119f241a64c9e4bb52542 | {
"blob_id": "602c94f825687ad8d3c119f241a64c9e4bb52542",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-31T16:16:24",
"content_id": "1a77e01f3a3bc095faeccf6afb2cdf39fbf6da72",
"detected_licenses": [
"MIT"
],
"directory_id": "7201ec2ce435774c24b3ddddbd6c4af603eca8c6",
"extension": "c",
... | stackv2 | #include<stdio.h>
#include<conio.h>
main()
{
int ms, ps, nop, np, rempages, i, j, x, y, pa, offset;
int s[10], fno[10][20];
clrscr();
printf("\nEnter the memory size -- ");
scanf("%d",&ms);
printf("\nEnter the page size -- ");
scanf("%d",&ps);
nop = ms/... | 3.109375 | 3 |
2024-11-18T23:08:00.413055+00:00 | 2014-10-28T16:27:49 | 353462ff6dde84ddb7632182e3f2ae4e3375c32e | {
"blob_id": "353462ff6dde84ddb7632182e3f2ae4e3375c32e",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-28T16:27:49",
"content_id": "f638d03e6b2f5bc35b59619fd839bc2971097f98",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "cd2f08c8b8a1786e15bbf58368466837774e56f9",
"extens... | stackv2 | /* mpi.h
* Copyright (C) 2001-2012 Farooq Mela. All rights reserved.
*
* Arbitrary precision integer functions. */
#ifndef _MPI_H_
#define _MPI_H_
#include <stdio.h>
#include "mp.h"
#include "mp_internal.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
mp_digit* digits; /* Digits of number. */... | 2.328125 | 2 |
2024-11-18T23:08:00.480770+00:00 | 2021-05-04T13:20:36 | 97b6cda315a386c64a1b17bcea5ac1edea5d9fbc | {
"blob_id": "97b6cda315a386c64a1b17bcea5ac1edea5d9fbc",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-04T13:20:36",
"content_id": "10d7da1fdf085cc4907704678cf00d015421a6c8",
"detected_licenses": [
"MIT"
],
"directory_id": "7cbf3d383ae1f9f5e653b71932c1f76ed42c8436",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include "../cthread.h"
typedef struct nums
{
int a;
int b;
} nums;
int res;
void *add(void *args)
{
nums *num = (nums *)args;
sleep(1);
res = num->a + num->b;
sleep(1);
cthread_exit(&res);
}
int main()
{
cthread_init();
int i = 4;
nums ... | 3.390625 | 3 |
2024-11-18T23:08:00.604379+00:00 | 2020-07-04T14:17:31 | 1cd401d500bb9ca0475f2972ea93c7a788cf2cca | {
"blob_id": "1cd401d500bb9ca0475f2972ea93c7a788cf2cca",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-04T14:17:31",
"content_id": "c15adfe5f21f01ea583cba2ca0d03b7a5205f3a7",
"detected_licenses": [
"MIT"
],
"directory_id": "ea8152e9e4532c2a84f46680764e23e67d5313a6",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<stdlib.h>
// Function returns an integer, takes an array of integers and an integer that
// its the size of the array. Function calculates the product of the smallest
// and biggest integers in the array
int prodminmax(int arr[], int n);
int main() {
int i, n, *arr, product;
scanf... | 4.15625 | 4 |
2024-11-18T23:08:00.683305+00:00 | 2018-01-17T08:13:50 | 11e834f1186a11c39eed8040a890ee444e630021 | {
"blob_id": "11e834f1186a11c39eed8040a890ee444e630021",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-17T08:13:50",
"content_id": "ee4104c5521fa25a25a3a3c2c46d2d61abc398b1",
"detected_licenses": [
"MIT"
],
"directory_id": "dbbe8fabaca0584035dbf21ed2691b775607acb4",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdint.h>
#include "checksum.h"
void testcrc32() {
printf("==========\ntestcrc32\n");
// uint8_t input[] = {0x31, 0xFF, 0xFF, 0xFF};
// uint8_t input[] = {0x41, 0x42, 0x43, 0x44};
// uint8_t input[] = {'a', 'a', 'a', 'a'};
// uint8_t input[] = {0x00, 0x00, 0x00, 0x00};
uint8_t input[] =... | 2.671875 | 3 |
2024-11-18T23:08:02.339505+00:00 | 2018-10-25T11:21:33 | 7bce18ce25c31b4f81f0d1f65a3f3a0c65c13d7f | {
"blob_id": "7bce18ce25c31b4f81f0d1f65a3f3a0c65c13d7f",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-25T11:21:33",
"content_id": "f7117b2e17961e225ec48a491c718f630e3eda45",
"detected_licenses": [
"Unlicense"
],
"directory_id": "667ca20a4f60d0b122dfee0c99242f5d4bc79c9a",
"extension... | stackv2 | #include "drawing.h"
#include "mysdl.h"
static uchar* bg;
static uchar* pixels;
static int bufferSize;
void drawPixel(Coord coord, uchar r, uchar g, uchar b) {
// The whole thing is stored as a *sequential array*.
// Can specify byte values in hex, too. e.g. 0xff
int x = coord.x;
int y = coord.y;
... | 2.953125 | 3 |
2024-11-18T23:08:03.374275+00:00 | 2023-08-15T12:51:41 | 44026f993db03de8f1514b909ac8a66e2f7ee8a9 | {
"blob_id": "44026f993db03de8f1514b909ac8a66e2f7ee8a9",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-15T12:51:41",
"content_id": "a6b3c0af47eaf292824ab6e41b3124f9dbbe1879",
"detected_licenses": [
"MIT",
"BSD-2-Clause"
],
"directory_id": "a66c41243e165d0f605009c90853ca66fb650a8f"... | stackv2 | /* The MIT License (MIT)
*
* Copyright (c) 2018 Monetra Technologies, LLC.
*
* 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 righ... | 2.125 | 2 |
2024-11-18T23:08:03.866489+00:00 | 2020-12-22T08:16:33 | 6fc3344b26873ce89ccbbbb4ee453de7f85d5130 | {
"blob_id": "6fc3344b26873ce89ccbbbb4ee453de7f85d5130",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-22T08:16:33",
"content_id": "1b45daf84980382c094e26ccf64b59ebb692877e",
"detected_licenses": [
"MIT"
],
"directory_id": "af5850be0fb15371974a5f763bbb04ffb146fa49",
"extension": "c"... | stackv2 | #include <stdio.h>
#define Qty 10
#define FestivalOffer 2
#define DiscountCoupon 5
#define Kindle 2
int main()
{
int discount;
float price, totalAmount, afterDisc, afterFDisc;
printf("Enter price of a book ");
scanf("%f", &price);
#if Qty >= 10
discount=15;
#elif Qty >=5
discount=10;
#else
discount=5... | 3.015625 | 3 |
2024-11-18T23:08:05.059464+00:00 | 2014-04-05T16:20:39 | e55a2756399c3a65dfbc75249a041f077020ea7c | {
"blob_id": "e55a2756399c3a65dfbc75249a041f077020ea7c",
"branch_name": "refs/heads/master",
"committer_date": "2014-04-05T16:20:39",
"content_id": "36817678be33a11262b73697fecfab5c9fc2655c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "05de9613e323d3e62a60f147706e74c606863ba6",
"extens... | stackv2 | /** \file main.c
*
* \brief Entry point of kernel.
*
* This file is licensed as described by the file LICENCE.
*/
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h> // for definition of NULL
#include "stm32f4xx.h"
#include "kernel/kernel.h"
#include "userspace/userspace_lib.h" // for definition of... | 2.828125 | 3 |
2024-11-18T23:20:22.212800+00:00 | 2019-08-23T19:43:10 | faf0e0d6efc2aa94ca3fc37b3d48cc9154ef8d69 | {
"blob_id": "faf0e0d6efc2aa94ca3fc37b3d48cc9154ef8d69",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-23T19:43:10",
"content_id": "219a550a0538adf41df2517aba37096ed340bd1f",
"detected_licenses": [
"MIT"
],
"directory_id": "2435e487e805e96926a10652d7b5ff00b34ae8ed",
"extension": "h"... | stackv2 | /***************************************************************************************************
* @file saw_gen.h
*
* @brief Saw waveform generation module (header)
*
* @licence MIT License
*
* Copyright (c) 2019 Jeremie Leclere
*
* Permission is hereby granted, free of charge, to any person obtaining a c... | 2.046875 | 2 |
2024-11-18T23:20:22.379924+00:00 | 2023-08-16T03:56:28 | 4605eb131efd55a400b1c8f115f6b5c405720d1f | {
"blob_id": "4605eb131efd55a400b1c8f115f6b5c405720d1f",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T03:56:28",
"content_id": "52171e9b0e565383fea40dbfb5035166cabecb97",
"detected_licenses": [
"MIT"
],
"directory_id": "72f6d3ad72b2a4a9b6c5f93c5d1b744e2940b884",
"extension": "h"... | stackv2 | /**
** @file mruby/throw.h - mruby exception throwing handler
**
** See Copyright Notice in mruby.h
*/
#ifndef MRB_THROW_H
#define MRB_THROW_H
#if defined(MRB_USE_CXX_ABI)
# if !defined(__cplusplus)
# error Trying to use C++ exception handling in C code
# endif
#endif
#if defined(MRB_USE_CXX_EXCEPTION)
# if define... | 2 | 2 |
2024-11-18T23:20:23.765604+00:00 | 2021-09-29T16:19:33 | 40a5ef1e2b66238c03acd3c828b4e6d8f90d2ee1 | {
"blob_id": "40a5ef1e2b66238c03acd3c828b4e6d8f90d2ee1",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-29T16:19:33",
"content_id": "2f95cff88cae7714e54c8f54abdd3bcb1f854396",
"detected_licenses": [
"MIT"
],
"directory_id": "4ee346e1f3c51cea63939ed897e6d9aec255ceaa",
"extension": "h",
... | stackv2 | /*
* timer.h
*
* Created on: Jul 9, 2021
* Author: Krzysiek
*/
#ifndef INC_TIMER_H_
#define INC_TIMER_H_
#include "stdint.h"
typedef struct TimeStamp
{
uint32_t timeOut;
struct TimeStamp * next;
void (*Handler)(void);
}TimeStamp_type;
//typedef struct TimeStamp2
//{
// uint32_t timeOut;
// struct TimeS... | 2.109375 | 2 |
2024-11-18T23:20:24.290619+00:00 | 2023-07-21T15:58:54 | f93ead44add369aac01b42192e3bc1c90cefb961 | {
"blob_id": "f93ead44add369aac01b42192e3bc1c90cefb961",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-21T15:58:54",
"content_id": "07d3feae2668bac13c85e3daa170765ce98bcc3b",
"detected_licenses": [
"MIT"
],
"directory_id": "5f86fc385c7dcfcb5b166cdea7c8b13057b8bb5f",
"extension": "c"... | stackv2 | // Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <openenclave/host.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/error.h>
#include <openenclave/internal/tests.h>
#include <stdio.h>
#include <stdlib.h>
#include "ocall_create_u.h"
oe_result_t host_c... | 2.609375 | 3 |
2024-11-18T23:20:24.367909+00:00 | 2021-06-09T19:31:25 | 6f784efc874a979ae5fadff94213b4a3277aba57 | {
"blob_id": "6f784efc874a979ae5fadff94213b4a3277aba57",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-09T19:31:25",
"content_id": "44232436af4ff692ba118419b4e3b2afd5ac92c6",
"detected_licenses": [
"MIT"
],
"directory_id": "306cb20c854a3c91fa63904ff26a7f254ccf7f0e",
"extension": "h"... | stackv2 | #ifndef SHARED_LIST_H
#define SHARED_LIST_H
#include <stddef.h>
#include "func_types.h"
typedef struct list {
void* head;
struct list* tail;
} list_t;
typedef struct list2 {
void* val;
struct list2* next;
struct list2* prev;
} list2_t;
list_t* new_list(void* head, list_t* tail);
list_t* cut_head... | 2.03125 | 2 |
2024-11-18T23:20:25.135082+00:00 | 2014-01-06T09:11:22 | bf2d20576f6885365936da64745725296ed36485 | {
"blob_id": "bf2d20576f6885365936da64745725296ed36485",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-06T09:11:22",
"content_id": "1abbb276f9557344f03fb907b805324da23b3e7f",
"detected_licenses": [
"MIT"
],
"directory_id": "e1f8e05eafef4e150f361997e58875314b203d00",
"extension": "c"... | stackv2 | /*
* string.c
*
* Copyright (c) 2013-2014 skdltmxn <supershop@naver.com>
*
* This file contains code related with string operations
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "types.h"
#include "util.h"
#include "resource.h"
/*
* Creates a new string
*
* Callee is responsi... | 3.046875 | 3 |
2024-11-18T23:20:26.504417+00:00 | 2023-03-29T01:11:21 | 4343cbea7a987ee770a242f12dd0f126c2ac557f | {
"blob_id": "4343cbea7a987ee770a242f12dd0f126c2ac557f",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-29T01:11:21",
"content_id": "267f81d342b59ea377ee538b4ae5cb11420b7f72",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "02147e3367d4a8aa3a40df188dc815ef3c734952",
"extens... | stackv2 | /* grow.c -- grow an array */
#include <assert.h>
#include <stdlib.h>
#ifdef FORTIFY
#include "fortify/fortify.h"
#endif
#include "utils/array.h"
#include "utils/barith.h"
/* used, need, minimum - specified as number of elements (not bytes) */
int array_grow(void **pblock,
size_t elemsize,
... | 3.09375 | 3 |
2024-11-18T23:20:26.645414+00:00 | 2020-09-17T18:45:32 | cb3276951d8f3931d49921735a72c5e78be68c93 | {
"blob_id": "cb3276951d8f3931d49921735a72c5e78be68c93",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-17T18:45:32",
"content_id": "1903e19e275c45d4629608dd083491b38d8be8b8",
"detected_licenses": [
"MIT"
],
"directory_id": "7178c222e80e93eb6d8314935e5188d8d14236e2",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <errno.h>
#include <time.h>
#include <sys/wait.h>
#include <pthread.h>
#include "server.h"
int main(int argc, char *argv[]) {
char *port;... | 2.625 | 3 |
2024-11-18T23:20:27.164799+00:00 | 2018-07-01T12:00:59 | d6c0afd4423a0752c0d3368e250f73795b224d0d | {
"blob_id": "d6c0afd4423a0752c0d3368e250f73795b224d0d",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-04T20:03:40",
"content_id": "22426f0dc14a2894813912cde6c13b41a8fc0b3a",
"detected_licenses": [
"MIT"
],
"directory_id": "98dc2e346fb0a3ceacaee0b7447982ee567ccd7c",
"extension": "h"... | stackv2 | #pragma once
#pragma function(memcpy)
inline void *memcpy(void *dest, const void *src, size_t count)
{
char *dest8 = static_cast<char *>(dest);
const char *src8 = static_cast<const char *>(src);
while (count--)
*dest8++ = *src8++;
return dest;
}
#pragma function(wcslen)
inline size_t wcslen(const wchar_t* strin... | 2.484375 | 2 |
2024-11-18T23:20:27.721875+00:00 | 2019-03-01T05:16:46 | 6a1e7b4981feb9aca8c3e3379e9407db892eada3 | {
"blob_id": "6a1e7b4981feb9aca8c3e3379e9407db892eada3",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-01T05:16:46",
"content_id": "961786ec181cec53ede73b6d9b5c167fb8578f7b",
"detected_licenses": [
"MIT"
],
"directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f",
"extension": "c"... | stackv2 | inherit SKILL;
mapping *action = ({
([ "action":"$N一式「順水推舟」,$N手中$w指向自己左胸口,劍柄斜斜向右外,緩緩划向$n的$l",
"force" : 85,
"dodge" : 35,
"parry" : 35,
"attack": 31,
"damage": 23,
"lvl" : 0,
"skill_name" : "順水推舟",
"damage_type":"刺傷"
]),
([ "action":"$N身形微... | 2.03125 | 2 |
2024-11-18T23:31:25.059859+00:00 | 2017-09-13T05:18:18 | 3192b633bb6c27b4d0ea2825cd75379f0e8fb85d | {
"blob_id": "3192b633bb6c27b4d0ea2825cd75379f0e8fb85d",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-13T05:18:18",
"content_id": "67d0115e3db3bd8ecdf8ce60f86545c6ec04b768",
"detected_licenses": [
"MIT"
],
"directory_id": "f5227dc6a6b5c240b52af1ac6d9686b873e15a9d",
"extension": "c"... | stackv2 | /******************************************************************************
* FILE: log.c *
* AUTHOR: Ryan Rozanski *
* CREATED: 4/30/17 *
... | 2.890625 | 3 |
2024-11-18T23:31:25.347281+00:00 | 2015-03-06T13:21:07 | 67b12bd7c4a6d892a49d51e74e2a948e0adf1235 | {
"blob_id": "67b12bd7c4a6d892a49d51e74e2a948e0adf1235",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-06T13:21:07",
"content_id": "dd0e9ee0ea4a2ad75a74911c0d50e94be4724b31",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a886feb76097fe2ed60c62bb5a407e351a098f36",
"extens... | stackv2 | #pragma once
#ifndef __UC_CHECK__
#error "Use uc.h header"
#endif
#ifdef __UC_INLINE__
static inline size_t uc_strlen(const char * s) {
const char * end = s;
while(*end) {
end++;
}
return end - s;
}
static inline int uc_strcmp(const char * s1, const char * s2) {
if(s1 == s2) {
re... | 2.53125 | 3 |
2024-11-18T23:31:25.424727+00:00 | 2023-09-01T09:39:17 | 2a81cd536ca6a0b4d79dc3508a23f81c5abebaf3 | {
"blob_id": "2a81cd536ca6a0b4d79dc3508a23f81c5abebaf3",
"branch_name": "refs/heads/main",
"committer_date": "2023-09-01T09:39:17",
"content_id": "7c95fe21834ae999c921cd5651cead3b0d9daa4b",
"detected_licenses": [
"MIT"
],
"directory_id": "ba653665db82cbd3f101aff22b03a5788bce3592",
"extension": "c",
... | stackv2 |
#include <stdio.h>
#include <malloc.h>
int main() {
void *p = malloc(16);
printf("%p\n", p);
free(p);
return 0;
} | 2.421875 | 2 |
2024-11-18T23:31:25.588359+00:00 | 2020-09-13T01:04:02 | 1b1b83f95621063c4f31712b29681436d77e9f10 | {
"blob_id": "1b1b83f95621063c4f31712b29681436d77e9f10",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-11T03:10:57",
"content_id": "e9759d08e24dd85743442ff748b87ddd09c513da",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8bb9ce4979098720c654171dbcce3897e81b7ada",
"extensio... | stackv2 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright (C) 2020,2021 IBM Corp. */
#ifndef SHMAPPER_INTERFACE_H
#define SHMAPPER_INTERFACE_H
#include "set.h"
#include "shmap.h"
#include <stdbool.h>
typedef struct {
const char *interface;
} shmapper_interface_t;
#define shmapper_interface(x) ((shmapper_interface_t){... | 2 | 2 |
2024-11-18T23:31:26.054415+00:00 | 2019-09-23T02:13:12 | ac974051480485388ce04b18eb844280d2a18f64 | {
"blob_id": "ac974051480485388ce04b18eb844280d2a18f64",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-23T02:13:12",
"content_id": "2e3a21b3e12a824decfe6d4f02672cdecaa2be50",
"detected_licenses": [
"MIT"
],
"directory_id": "d4a7508dc5071dc2af22273266a77f8747c75a43",
"extension": "c"... | stackv2 | /*
============================================================================
Name : EjemploScan.c
Author : Frank
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
#include <... | 3.1875 | 3 |
2024-11-18T23:31:26.293275+00:00 | 2018-06-09T22:48:46 | eb1ff2c9cff16a979b33d997a967e47c9fdabdbd | {
"blob_id": "eb1ff2c9cff16a979b33d997a967e47c9fdabdbd",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-09T22:48:46",
"content_id": "8f850b974611869cb1c8a4d03d2707eefb9d6229",
"detected_licenses": [
"MIT"
],
"directory_id": "0f600da8e18ed5a1e4d3c4afac54fcef8d9a82a6",
"extension": "h"... | stackv2 | //
// Created by gravypod on 9/26/17.
//
#ifndef ENGINE_CALLBACKS_H
#define ENGINE_CALLBACKS_H
#include <GLFW/glfw3.h>
void on_screen_resize(GLFWwindow *window, int width, int height);
void on_key_press(GLFWwindow* window, int key, int scancode, int action, int mods);
void on_mouse_click(GLFWwindow *window, int butt... | 2.078125 | 2 |
2024-11-18T23:31:28.098234+00:00 | 2017-03-17T23:44:18 | 22a3148f1eb4d21a6c61ba328c94619a2d8eb893 | {
"blob_id": "22a3148f1eb4d21a6c61ba328c94619a2d8eb893",
"branch_name": "refs/heads/dev",
"committer_date": "2017-03-17T23:44:18",
"content_id": "bfe254826b805d3d322c93d63f313d5858aa57a9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4247599948557d0e98312ffe12c4a546ebd62dad",
"extension":... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* father.c :+: :+: :+: ... | 2.34375 | 2 |
2024-11-18T23:31:28.185167+00:00 | 2017-10-30T20:03:17 | b1276d8871f519d057a0b5a8cee0a426fe7cca6a | {
"blob_id": "b1276d8871f519d057a0b5a8cee0a426fe7cca6a",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-30T20:03:17",
"content_id": "6b48036a0f9f70fcadbfbd1bd485e8442e5add65",
"detected_licenses": [
"MIT"
],
"directory_id": "33b8fbee6a3d0d5c0f03faccd757c9e8e96a0059",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <Eina.h>
#include "net.h"
#include "protocol.h"
#include "packet.h"
#include "sql.h"
#include "hashing.h"
#include "account.h"
/*
* Packet ID: 0x5A
* Packet Name: sid_resetpassword
*
* Direction: Client to Server
* Used By: Diablo II, Diablo II ... | 2.53125 | 3 |
2024-11-18T23:31:28.258500+00:00 | 2016-12-23T14:12:11 | ed183db9c90fcc34869125691ec99e2c19f231fd | {
"blob_id": "ed183db9c90fcc34869125691ec99e2c19f231fd",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-23T14:25:22",
"content_id": "04e381014eff0f9bc59b9d2adf076afcae41e0a6",
"detected_licenses": [
"MIT"
],
"directory_id": "cb74314c2026774d16339befd6d815d458402b58",
"extension": "c"... | stackv2 | #include "ft81x.h"
#include "ft81x_graphics_engine.h"
#include "ft81x_co_processor.h"
#include "ft81x/platforms/platform.h"
#include <stdlib.h>
#include <string.h>
// ----------------------------------------------------------------------------
// Local functions
// ----------------------------------------------------... | 2.65625 | 3 |
2024-11-18T23:31:28.914404+00:00 | 2019-06-30T18:04:45 | 2e9139c03407f21973a124d3c8e3155b228b9e19 | {
"blob_id": "2e9139c03407f21973a124d3c8e3155b228b9e19",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-30T18:04:45",
"content_id": "bb1f2f88d7cf8ed542321d10d5774ee224515f7f",
"detected_licenses": [
"MIT"
],
"directory_id": "9dc64942807f0fd572837fbf22974043a302170d",
"extension": "h"... | stackv2 | #ifndef BTREE_H
# define BTREE_H
# include <stddef.h>
# define TRAVERSE_PREFIX 0
# define TRAVERSE_INFIX 1
# define TRAVERSE_POSTFIX 2
/*
** t_data MUST be a pointer type
*/
typedef int t_key;
typedef void *t_data;
# define DEFAULTKEY 0
/*
** A compare function must behave like the '<' operator
** intcompare... | 2.4375 | 2 |
2024-11-18T23:31:28.987816+00:00 | 2023-08-11T04:11:38 | 320388ccb0290589eab8fdfad6db30acef807d62 | {
"blob_id": "320388ccb0290589eab8fdfad6db30acef807d62",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-12T14:51:58",
"content_id": "bd20ae2f93b27c102481bdb4502d867302dea245",
"detected_licenses": [
"ISC"
],
"directory_id": "131b6d5381fc3bb4403682135b77f9bce91e79f1",
"extension": "h"... | stackv2 | /**
* @file uevent.h
* @brief User-mode event synchronization primitive.
* @author plutoo
* @copyright libnx Authors
*/
#pragma once
#include "wait.h"
typedef struct UEvent UEvent;
/// User-mode event object.
struct UEvent {
Waitable waitable;
bool signal;
bool auto_clear;
};
/// Creates a waiter fo... | 2.609375 | 3 |
2024-11-18T23:31:29.342777+00:00 | 2022-01-31T04:10:41 | 684d3f7f0aa9667e386c59d5e59c9f17afa81c6a | {
"blob_id": "684d3f7f0aa9667e386c59d5e59c9f17afa81c6a",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-31T04:10:41",
"content_id": "03bee15f0bf3cbc5f501f2841273185953bbe4b3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1738b2c905038fc70a147af089169ff35a78f21b",
"extens... | stackv2 | #include <stdio.h>
#include <mpi.h>
int main()
{
int size;
int rank;
MPI_Init(NULL,NULL);
MPI_Comm_size(MPI_COMM_WORLD, &size);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
// calculating the number of iterations that each process will execute
int range = (20/size);
// calculating the start and end value of... | 3.296875 | 3 |
2024-11-18T23:31:29.433343+00:00 | 2021-04-13T12:37:49 | 3e73946290141d8c10e100951589f2f5bc7b5a67 | {
"blob_id": "3e73946290141d8c10e100951589f2f5bc7b5a67",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-13T12:37:49",
"content_id": "c6cda70ce6100bcb0b3cb743fd30c4472723baa5",
"detected_licenses": [
"MIT"
],
"directory_id": "0abe204b8b82e9c701c82526ea6833ca462e5a16",
"extension": "h"... | stackv2 | #ifndef SDCARD_MP3_H
#define SDCARD_MP3_H
/*
Starts the task in the mp3 player so the mp3 can work with queue's
(Call this function if you want to work with queue's)
-Parameter: NULL
*/
void mp3_task(void*);
/*
Stops the task in the mp3 player
(After calling this function, the mp3 cannot work with queue's anymore)
*... | 2.1875 | 2 |
2024-11-18T23:31:29.985457+00:00 | 2021-02-17T23:18:14 | 6e297861e4aaae91d23112dede45884a1490dfab | {
"blob_id": "6e297861e4aaae91d23112dede45884a1490dfab",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-17T23:18:14",
"content_id": "1edcbd9faf5fc725dde0b9a04b7ec552b65c8cd2",
"detected_licenses": [
"MIT"
],
"directory_id": "606da533ba61f99fdf4ab568d1a315a2f9733fe1",
"extension": "c"... | stackv2 | #include <unistd.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "bitmap.h"
#include "varray.h"
#include "image.h"
varray_decl(pixel_t)
varray_defn(pixel_t);
typedef struct {
int scale;
SDL_Rect translation;
} view_t;
typedef... | 2.640625 | 3 |
2024-11-18T23:31:30.309228+00:00 | 2022-10-08T12:53:58 | e80589d4dd5d38ff61ebbb0929446fea456e1e77 | {
"blob_id": "e80589d4dd5d38ff61ebbb0929446fea456e1e77",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-08T12:53:58",
"content_id": "c0f60b97c44326938109dc410165a559a827945d",
"detected_licenses": [
"MIT"
],
"directory_id": "cdbc0478f7d630d7c7bbbd7cfce2499f0fe4689b",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
typedef struct circularSLL{
int data;
struct circularSLL *next;
} node;
// Creates and crturns the head of a new CLL
// Time Complexity: O(1)
node *createCLL(int ele)
{
node *head = (node *)malloc(sizeof(node));
head->data = ele;
head->next = head;
prin... | 3.859375 | 4 |
2024-11-18T23:31:30.422707+00:00 | 2020-07-05T19:35:42 | 88d3c92109a19397b2f63e75225750c0fe7c7cb8 | {
"blob_id": "88d3c92109a19397b2f63e75225750c0fe7c7cb8",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-05T19:35:42",
"content_id": "2d0237accfb3fe43e167dbc9c64dba6d6c02a0b7",
"detected_licenses": [
"MIT"
],
"directory_id": "ebecfb046fa4183c08c67ae61fe958be5fae8172",
"extension": "h"... | stackv2 | /*
defaults.h
SuperCalc
Created by C0deH4cker on 11/12/13.
Copyright (c) 2013 C0deH4cker. All rights reserved.
*/
#ifndef SC_DEFAULTS_H
#define SC_DEFAULTS_H
#include <stdbool.h>
#include <stdlib.h>
#include "context.h"
#include "generic.h"
#include "value.h"
#include "arglist.h"
#include "error.h"
#defin... | 2.046875 | 2 |
2024-11-18T23:31:30.551996+00:00 | 2020-07-01T14:02:01 | 49139c4b3be9785357a1ca7e0ccda1f386c32e2a | {
"blob_id": "49139c4b3be9785357a1ca7e0ccda1f386c32e2a",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-01T14:02:01",
"content_id": "3e1a42116647a3997be048947134589db2d7ca48",
"detected_licenses": [
"MIT"
],
"directory_id": "9e38b1cf6e99bb6a2ad337fb2b27a903a10633d5",
"extension": "h"... | stackv2 | #define TASK_CAPACITY 64
#define TASK_STACK_SIZE 4096
#define QUEUE_EMPTY(q) (q.tail == q.head)
#define QUEUE_FULL(q) ((q.tail + 1) % TASK_CAPACITY == q.head)
#define QUEUE_POP(q) (q.head = (q.head + 1) % TASK_CAPACITY)
#define QUEUE_PUSH(q) (q.tail = (q.tail + 1) % TASK_CAPACITY)
#define QUEUE... | 2.125 | 2 |
2024-11-18T23:31:30.877740+00:00 | 2020-05-04T19:28:37 | 2ee5d299ce88f9e82a38e585d7910521080bee72 | {
"blob_id": "2ee5d299ce88f9e82a38e585d7910521080bee72",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-04T19:28:37",
"content_id": "65a4e7854301dc1385020e4b5ae5fb0b643cb922",
"detected_licenses": [
"MIT"
],
"directory_id": "33da4f40e401f168114fdf42b78eeac14ed499cc",
"extension": "c"... | stackv2 | #if defined(WIN32) || defined(__WIN32__) || defined(_WIN32)
#pragma warning (disable : 4100)
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "teamspeak/public_errors.h"
#include "teamspeak/public_definitions.h"
#include "ts3_functions.h"
#include "plugin.h"
static struct... | 2.15625 | 2 |
2024-11-18T23:31:30.963371+00:00 | 2023-06-17T17:46:23 | 52792dabf52bd7ae75d129c47ade07732834a639 | {
"blob_id": "52792dabf52bd7ae75d129c47ade07732834a639",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-11T12:25:31",
"content_id": "6afddab72d9b9928daf7bd1c904baa2c932a228c",
"detected_licenses": [
"Unlicense"
],
"directory_id": "01ace0f357a25a895df67b2fe60020a9e9713766",
"extension... | stackv2 | #include "libdstr/libdstr.h"
#include "libduv/libduv.h"
#include "libhttp/libhttp.h"
#include "test/test_utils.h"
static derr_t E = {0};
static bool finished = false;
static rstream_i *base;
static bool force_no_detach = false;
static bool try_detach(limit_rstream_t *l){
(void)l;
if(force_no_detach){
... | 2.4375 | 2 |
2024-11-18T23:31:31.027379+00:00 | 2016-04-05T15:04:04 | 23dfae3117004e315afd7d3097e5e7a56e693e39 | {
"blob_id": "23dfae3117004e315afd7d3097e5e7a56e693e39",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-05T15:04:04",
"content_id": "45834bb7e034582acd674a7d0598e73aaf4b16a8",
"detected_licenses": [
"ISC"
],
"directory_id": "892a9f506180c03979c8f714854aca467c33b02e",
"extension": "c"... | stackv2 | //*****************************************************************************
//
// pwm_break_out_if.c
//
// This implements the driver for PCA9685 16 x 12 bit PWM board
//
// Copyright (c) 2015 Brandon To, Minh Mai, and Yuzhou Liu
// This code is licensed under BSD license (see LICENSE.txt for details)
//
// This so... | 2.328125 | 2 |
2024-11-18T23:31:31.145120+00:00 | 2021-07-20T17:43:03 | 72ae26ab0fb5e0ceaa36a3938a39b1057501fb9d | {
"blob_id": "72ae26ab0fb5e0ceaa36a3938a39b1057501fb9d",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-20T17:43:03",
"content_id": "2f3d715bd3a2611cfd426b306ac8c637e071604c",
"detected_licenses": [
"MIT"
],
"directory_id": "84fdbeb0374ac7d6b3f493b5ce6f6b26b175f988",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
struct library
{
int num;
char author[50];
char title[50];
int issued;
}b[100];
void add(int i,int n)
{
for(;i<n;i++)
{
printf("\n");
printf("Enter accession number : ");
scanf("%d",&b[i].num);
printf("Enter author of book :... | 3.359375 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.