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:06:30.156628+00:00 | 2021-10-07T15:38:46 | 31bd7bd6bbc010b5c4fee59facd8d5407ccbdc70 | {
"blob_id": "31bd7bd6bbc010b5c4fee59facd8d5407ccbdc70",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-07T15:38:46",
"content_id": "436c0f3c903cace2cb18b02ba2a2b9e401e0561a",
"detected_licenses": [
"MIT"
],
"directory_id": "030cfbae63830019e66c518279b1b75de5fa8a55",
"extension": "c"... | stackv2 | /* The MIT License (MIT)
Copyright (c) 2014-2015 almasaeed2010
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation the rights to use, co... | 2.3125 | 2 |
2024-11-18T22:06:30.220509+00:00 | 2016-10-25T04:45:37 | a5819e1cae5a8d17c23e30c2548fb651e2ec6ee6 | {
"blob_id": "a5819e1cae5a8d17c23e30c2548fb651e2ec6ee6",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-25T04:45:37",
"content_id": "177c24b1221a86fc9c2904d27730d951ed494dc3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1fcad2d6a350ffc512662712ff83a61b6f4099c4",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <gio/gio.h>
#include "capi_iotbus_gpio.h"
#include "capi_iotbus_i2c.h"
#include "capi_iotbus_pwm.h"
#include "capi_iotbus_error.h"
#include "iotbus_dbus.h"
//static GDBusNodeInfo *introspection_data = NULL;
GDBusConnection *gpio_connection = NULL;
GDBusConnection *i2c_co... | 2.015625 | 2 |
2024-11-18T22:06:30.793720+00:00 | 2017-05-24T14:24:00 | f93a7de0d341b1fe4702d01d99d3da7b3ae5125e | {
"blob_id": "f93a7de0d341b1fe4702d01d99d3da7b3ae5125e",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-24T14:24:00",
"content_id": "08e63a78c3db094e2763cfe00352ec9a15df72a8",
"detected_licenses": [
"MIT"
],
"directory_id": "ff3b97b033043c79993625ead41c1616768274c7",
"extension": "c"... | stackv2 | #include <linux/module.h>
#include <linux/init.h>
#include <linux/proc_fs.h>
#include <asm/uaccess.h>
#include <linux/slab.h>
int MAXMSG = 10;
int len=0, temp;
char *msg;
struct proc_dir_entry *entry;
struct proc_dir_entry *my_dir;
ssize_t read_proc(struct file *filp, char *buf, size_t count, loff_t *offp)
{
// c... | 2.765625 | 3 |
2024-11-18T22:06:30.844450+00:00 | 2019-02-10T14:58:54 | d58417e2a3b43655ca2415f9b7ea711c865cea47 | {
"blob_id": "d58417e2a3b43655ca2415f9b7ea711c865cea47",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-10T14:58:54",
"content_id": "35619588ede7f879355bf3aaf792d5e377aa17da",
"detected_licenses": [
"MIT"
],
"directory_id": "06f8210e0e7d3efbb1db6ef1cb4a37ffd1622587",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "Dict.h"
char *random_string(long maxsize, long minsize)
{
long size = arc4random()%(maxsize-minsize) + minsize;
char *str = NEW(char, size);
str[size-1] = 0;
for(long i = size-1; i--;)
{
str[i] = arc4random()%127+1;
}
return str;
}
long rlen(long number, lo... | 2.9375 | 3 |
2024-11-18T22:06:33.566696+00:00 | 2012-02-27T06:51:15 | cba2f9c3fdd2e4017b743dc0f3d1b3c702b48f99 | {
"blob_id": "cba2f9c3fdd2e4017b743dc0f3d1b3c702b48f99",
"branch_name": "refs/heads/master",
"committer_date": "2012-02-27T06:51:15",
"content_id": "c76b7f8533c732e16c93c3d952ed4628e2b8139b",
"detected_licenses": [
"MIT"
],
"directory_id": "1c2e739f0bc631d510da91e5eaba8dd31a0fc601",
"extension": "c"... | stackv2 | #include "vga.h"
void cursor_init( cursor_t* c )
{
c->x = 0;
c->y = 0;
}
uint8_t* _get_vram_pointer()
{
return (uint8_t*)0xb8000;
}
void vga_out_line( const char* src, cursor_t* cursor, VGA_COLOR color )
{
uint8_t* const dest = _get_vram_pointer();
for( unsigned int i = 0; src[i] != 0; ++i )
{
unsign... | 2.390625 | 2 |
2024-11-18T22:06:33.646771+00:00 | 2018-03-28T16:51:40 | 69e9c1272fe5be2fb3fc0c5cf62890db04e11bbc | {
"blob_id": "69e9c1272fe5be2fb3fc0c5cf62890db04e11bbc",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-28T16:51:40",
"content_id": "f2f178071a9f921e425b6df995ee92cf0fc6ca16",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7286bf8a222f155a075059f2f8b4afc67daa3bab",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
int trace(char **args){
int argcount = 3;
int rowA = atoi(args[1]);
int colA = atoi(args[2]);
printf("%d\n",rowA);
printf("%d\n",colA);
int mA[rowA][colA];
//matrixMaker(args,mA,rowA,... | 2.765625 | 3 |
2024-11-18T22:06:34.734140+00:00 | 2019-12-20T18:56:51 | 82e8628dfd7b9d468b72d0a5aa3ce01211cec45c | {
"blob_id": "82e8628dfd7b9d468b72d0a5aa3ce01211cec45c",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-20T18:56:51",
"content_id": "7263db038afd23b2ef0a720db34e866c56e85fcc",
"detected_licenses": [
"MIT"
],
"directory_id": "1efc7f40dc7e37e72a1c6c16bcbe9b735aa610a2",
"extension": "c"... | stackv2 | #include <stdbool.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include <applibs/log.h>
#include <applibs/gpio.h>
// This method is based on the offical Visual Studio "Azure Sphere Blink Sample".
// In additon to the origin, this sample will iterate through all three LEDs of the
// MT3620 Azure Sphere... | 2.859375 | 3 |
2024-11-18T22:06:34.962628+00:00 | 2015-10-28T13:51:15 | 17111808a8fdab51a5b7be0099a7e68735f18c35 | {
"blob_id": "17111808a8fdab51a5b7be0099a7e68735f18c35",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-28T13:51:15",
"content_id": "a7dd8bc6251accabf80cbc281d0c772b0e7e18b8",
"detected_licenses": [
"MIT"
],
"directory_id": "84315e67a83bce9f6a60f7af4f42838456dfd0b2",
"extension": "c"... | stackv2 | //hard to think.
//看了discuss才知道要建立一个pre node.
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* struct ListNode *next;
* };
*/
struct ListNode* reverseBetween(struct ListNode* head, int m, int n) {
struct ListNode* cur;
struct ListNode* h;
struct ListNode* next;
str... | 3.140625 | 3 |
2024-11-18T22:06:35.498684+00:00 | 2016-04-12T12:38:26 | c6c5bb8afa04923d6f2dc96c399c3d6d1abd6204 | {
"blob_id": "c6c5bb8afa04923d6f2dc96c399c3d6d1abd6204",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-12T12:38:26",
"content_id": "8486154c5e8adfeadc2d896a7e6036c39f77c43b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4334dc157a94cb6adb249f334a56861984af57f8",
"extens... | stackv2 | /*
** STUNTrace
*/
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
/* #include <netinet/ip6.h> */
/* #include <netinet/icmp6.h> */
#include <arpa/inet.h>
... | 2.046875 | 2 |
2024-11-18T22:06:37.156071+00:00 | 2020-03-11T17:17:31 | 489f9986e7419cc160bf1d6c5c43c1dcd3a25153 | {
"blob_id": "489f9986e7419cc160bf1d6c5c43c1dcd3a25153",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-11T17:17:31",
"content_id": "7bd5f5937598ef3c7e978321bed738f4fd3de560",
"detected_licenses": [
"MIT"
],
"directory_id": "2961417e4edb606fb8dc68ef9bcda8baab4ef48f",
"extension": "c"... | stackv2 | /*
* An memcpy() in C which does not use the FPU registers, as the default does.
*/
#include <string.h>
#include <stdint.h>
#ifndef SIMPLE_MEMCPY
#define SIMPLE_MEMCPY ( 0 )
#endif
#ifndef SIMPLE_MEMSET
#define SIMPLE_MEMSET ( 0 )
#endif
#if( SIMPLE_MEMCPY != 0 )
void *memcpy( void *pvDest, const void *pvSource... | 2.890625 | 3 |
2024-11-18T22:06:37.746295+00:00 | 2023-08-14T01:22:41 | d28744b76ca0225fe8341ef35a9236ab3f68647b | {
"blob_id": "d28744b76ca0225fe8341ef35a9236ab3f68647b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-14T01:22:41",
"content_id": "9d5f1ccd5da202b3fa50cb6fc1f77de06430c3ad",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "21398f93e869699e6bbd73bf2346f538b2b368e9",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <omp.h>
#include "./main.h"
#include "./util/graphics/graphics.h"
#include "./util/graphics/resize.h"
#include "./util/timer/timer.h"
int main(int argc, char* argv []) {
// time
long long time0;
long long time1;
long long time2;
long long ti... | 2.4375 | 2 |
2024-11-18T22:06:38.313707+00:00 | 2014-10-06T20:30:26 | 07d25aece3d9245ff38701492b4dafc172361661 | {
"blob_id": "07d25aece3d9245ff38701492b4dafc172361661",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-06T20:30:26",
"content_id": "fb37f20ea703ec9b4fb7561b726a06689f10ad36",
"detected_licenses": [
"MIT"
],
"directory_id": "ffd209c788795bb1399bb5651bd8485984ed8469",
"extension": "c"... | stackv2 | #include <assert.h>
#include "zmq.h"
#include "rbkit_message_aggregator.h"
static msgpack_sbuffer * sbuf;
static void* message_array;
static size_t used_memsize;
static size_t total_capacity;
static size_t no_of_messages;
static int has_enough_space_for(size_t size) {
return ((total_capacity - used_memsize) >= size... | 2.546875 | 3 |
2024-11-18T22:06:38.400274+00:00 | 2019-11-06T15:32:59 | e1d221442ef4c3b60fa1a912aaedf2a93731c2c6 | {
"blob_id": "e1d221442ef4c3b60fa1a912aaedf2a93731c2c6",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-06T15:32:59",
"content_id": "6342b613622849daca170b559d1772af7077a1b3",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9f74f22d1ed6ae77b82f2154cacf25b9c73c9938",
"extensio... | stackv2 | /* CP16_59.C */
/* Sending output to Printer */
#include<stdio.h>
void main()
{
char *text ;
printf("Enter your text : ") ;
scanf("%[^\n]", text);
fprintf(stdprn, text) ;
}
| 2.5 | 2 |
2024-11-18T22:06:38.564936+00:00 | 2023-06-06T15:22:16 | d1671da3df4d423d059943231ffbd680de0e242a | {
"blob_id": "d1671da3df4d423d059943231ffbd680de0e242a",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-06T15:22:16",
"content_id": "14a970646d3fa53c5657de331fab37fd2a0ccc61",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "0ba2e5061577f6286ff9265ef1df9aca96769445",
"extension":... | stackv2 | #include <stdio.h>
#include <stdlib.h>
void mainchoices()
{
printf("\n\nAvailable choices are.\n\n");
printf("1: \tTo change the value of the array.\n");
printf("2: \tTo delete an element from the array.\n");
printf("3: \tTo search for an element in the array\n");
printf("4: \tTo print the array.\n");
printf("5:... | 3.96875 | 4 |
2024-11-18T22:06:38.753566+00:00 | 2021-06-22T00:29:05 | e7eb46d1ef116031c124e8ab46eb6a03cef8d066 | {
"blob_id": "e7eb46d1ef116031c124e8ab46eb6a03cef8d066",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-22T00:29:05",
"content_id": "6c9773f69df4edf4ec1d0d42595de03c8a0814aa",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "3172993df086f819825cc2a87108115b942cef59",
"extens... | stackv2 | /*************************************************************************
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
... | 2.40625 | 2 |
2024-11-18T22:06:38.813267+00:00 | 2020-01-30T15:52:16 | 0498b478dc50ce30880e5783dcc4e9e502dd1982 | {
"blob_id": "0498b478dc50ce30880e5783dcc4e9e502dd1982",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-30T15:52:16",
"content_id": "b418152a68f7ff838bd6ef04e08501e51b2aee0f",
"detected_licenses": [
"MIT"
],
"directory_id": "40de3da30239862f11a946166b50438174c2fd4e",
"extension": "c"... | stackv2 | inherit "room/room";
string str;
object monster;
int i;
reset(arg) {
i = random(15);
str = "";
switch(i) {
case 0..2: str = "/wizards/rag/elf/monsters/hare"; break;
case 3..5: str = "/wizards/rag/elf/monsters/snake"; break;
case 6..7: str = "/wizards/rag/elf/monsters/fo... | 2.125 | 2 |
2024-11-18T22:06:39.218215+00:00 | 2019-09-07T14:01:09 | 4eadb9bea06820bd65867ae7e01779190bec95bd | {
"blob_id": "4eadb9bea06820bd65867ae7e01779190bec95bd",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-07T14:01:09",
"content_id": "2db6832093603c7c30664c364118a1e922bcc471",
"detected_licenses": [
"MIT"
],
"directory_id": "9fac48d8ee728d829f4580a8875c2f2f67dd9f60",
"extension": "h"... | stackv2 | /*******************************************************************************
* Ledger Ethereum App
* (c) 2016-2019 Ledger
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... | 2.296875 | 2 |
2024-11-18T22:06:39.453628+00:00 | 2020-02-19T20:42:13 | 58e0cbe9fce33ac69f5961d0770e63b1b48a87ad | {
"blob_id": "58e0cbe9fce33ac69f5961d0770e63b1b48a87ad",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-19T20:42:13",
"content_id": "4a2d5a9fc32c7bdd20c2b633cc1216fdddc0b565",
"detected_licenses": [
"MIT"
],
"directory_id": "ff08a16a7fac7a2306df3f829a5531294c76c1bd",
"extension": "c"... | stackv2 | /*
** EPITECH PROJECT, 2019
** my_str_isalpha
** File description:
** Function that verify that the string have only letters
*/
#include "my.h"
int my_str_isalpha(char const *str)
{
int len = my_strlen(str);
if (len == 0)
return (1);
for (int i = 0; i < len; i++) {
if (!my_char_isalpha(st... | 2.984375 | 3 |
2024-11-18T22:06:39.759906+00:00 | 2020-12-04T12:53:54 | c242d314979a80bcc7c00feec6c95972d5b90e4b | {
"blob_id": "c242d314979a80bcc7c00feec6c95972d5b90e4b",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-04T12:53:54",
"content_id": "6b019312a03d5ac83be884a40fe813d29609d819",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "38883668b7523f604de67e9fa375d4b3731f7b27",
"extensio... | stackv2 | /******************************************************************************
* @brief 独立按键管理
*
* Copyright (c) 2017~2020, <morro_luo@163.com>
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2017-08-10 Morro Initial version
*********************... | 2.171875 | 2 |
2024-11-18T22:06:39.836216+00:00 | 2022-10-21T16:56:37 | c5f1c11cb9940789dcaa33c3afcdf6813832005d | {
"blob_id": "c5f1c11cb9940789dcaa33c3afcdf6813832005d",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-21T16:56:37",
"content_id": "c1e752db2f0463f31af0b7125e7b2a5628e9e3f6",
"detected_licenses": [
"MIT"
],
"directory_id": "c1e4b60768bec3d18a02f2fa04e8153363c0da03",
"extension": "tx... | stackv2 | #include <stdio.h>
void letter_freq(const char word[], int freq[]){
const int caseDiff = 32; // declares the difference between the cases
const int startNum = 65; // start number
int a = 0;
int numLetters = 0;
for (int a = 0; a<26; a++){ // initializes all letters to be a count of 0
freq[... | 3.390625 | 3 |
2024-11-18T22:06:41.587418+00:00 | 2021-11-01T16:18:09 | ae6ab90e6218664f7214719ee62073d3b6df49fe | {
"blob_id": "ae6ab90e6218664f7214719ee62073d3b6df49fe",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-01T16:18:59",
"content_id": "5513da697ca5beb4048dc8b1f2c8b8ff5928a66e",
"detected_licenses": [
"MIT"
],
"directory_id": "c575c8bfdc4b73429db457561f242debb4c06484",
"extension": "c"... | stackv2 | #ifdef FL_DEBUG
#include "base.h"
#include "internal.h"
global AllocationTable debug_allocation_table_global = {.count = 0,
.capacity = FL_DEBUG_MAX_ALLOCATIONS,
.entries = {0}};
void
debug_allocation_r... | 2.765625 | 3 |
2024-11-18T22:06:44.291099+00:00 | 2023-09-02T15:16:12 | ea3f17d3d0507c787a3262e5a6773c34c8a9f640 | {
"blob_id": "ea3f17d3d0507c787a3262e5a6773c34c8a9f640",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T15:16:12",
"content_id": "97dc08cdc56ed758d355ab1b25a41ea9caab5711",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "9ceacf33fd96913cac7ef15492c126d96cae6911",
"extens... | stackv2 | /* $OpenBSD: tib.h,v 1.9 2022/12/27 07:44:56 jmc Exp $ */
/*
* Copyright (c) 2011,2014 Philip Guenther <guenther@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission not... | 2.125 | 2 |
2024-11-18T22:06:45.234305+00:00 | 2017-08-18T10:53:24 | ab2266beae35c582720147bcc9bfce6a8e501c85 | {
"blob_id": "ab2266beae35c582720147bcc9bfce6a8e501c85",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-18T10:53:24",
"content_id": "62f79cc1263128c149a90dd12331965b2221d522",
"detected_licenses": [
"MIT"
],
"directory_id": "656d7e8dac07838e92dfe9f361de888635a75eba",
"extension": "c"... | stackv2 | # include <ft_p.h>
void ft_handle_request(char *line, int connfd)
{
char **argv;
/*
** get command line by splitting string
*/
if ((argv = ft_get_argv(line)))
{
/*
** check if a built in function
*/
if (ft_strequ(argv[0], "pwd"))
ft_pwd(connfd);
else if (ft_strequ(argv[0], "cd"))
ft_cd(connfd, ... | 2.203125 | 2 |
2024-11-18T22:06:45.530670+00:00 | 2021-02-26T14:14:27 | 4b174c2424b41b47b68c2d02794a693fb6acc4bb | {
"blob_id": "4b174c2424b41b47b68c2d02794a693fb6acc4bb",
"branch_name": "refs/heads/plume/dev",
"committer_date": "2021-03-01T15:44:14",
"content_id": "a61ab77fc65b75e165573640c177898466e8bbd3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "008060072ef30e7ee7920e92e32cce337d85030d",
"ext... | stackv2 | /*
**************************************************************************
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*
* 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 an... | 2.015625 | 2 |
2024-11-18T22:19:15.021455+00:00 | 2021-06-06T08:17:05 | fbe4799e788679bc91f76f1c71c488b8f34ff41a | {
"blob_id": "fbe4799e788679bc91f76f1c71c488b8f34ff41a",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-06T08:17:05",
"content_id": "1a845caa1a212700e2d3d7259421333dbbb4e56d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "145406d2c3c319987b3245cf0e06a24191e995a5",
"extensio... | stackv2 | #include "ia.h"
#include "delais.h"
#include "errors.h"
#include "protocole.h"
#include "traces.h"
#include "utils.h"
#include <limits.h> // PATH_MAX
#include <stdlib.h> // malloc, rand
#include <string.h> // memset
#include <unistd.h> // close
#define ORDINATEUR "ordinateur"
typedef Etat_torpille Tentatives[CO... | 2.390625 | 2 |
2024-11-18T22:19:15.381236+00:00 | 2018-12-21T20:39:07 | 981d28b5e77a89f521fb6baa34785d8d5c885e3f | {
"blob_id": "981d28b5e77a89f521fb6baa34785d8d5c885e3f",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-21T20:39:07",
"content_id": "30180f9ecd99db49247512908e7d14aa471c4162",
"detected_licenses": [
"Unlicense"
],
"directory_id": "c98a0e6657fb47f98a0e778b43d697425b5cac2d",
"extension... | stackv2 | #include <stdio.h>
#include "utils.h"
void showNumberRepresentation(const int number, int base)
{
switch (base)
{
case 8:
printf("Octal number: %o\n", number);
break;
case 16:
printf("Hexadecimal number: %x\n", number);
break;
default:
... | 3.421875 | 3 |
2024-11-18T22:19:17.928725+00:00 | 2021-07-11T08:02:20 | 2d9468ff7c16515fca853dfaf9dc51ec8020af2b | {
"blob_id": "2d9468ff7c16515fca853dfaf9dc51ec8020af2b",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-11T08:02:20",
"content_id": "0c9283a78db8da5daed1fe766f4b84b0dd63674f",
"detected_licenses": [
"MIT"
],
"directory_id": "cbda67feabc78095bf66564c3a18ab2d436b2de8",
"extension": "c"... | stackv2 | /* 猜拳游戏(其一)*/
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int human; /* 玩家的手势 */
int comp; /* 计算机的手势 */
int judge; /* 胜负 */
int retry; /* 再来一次?*/
srand(time(NULL)); /* 设定随机数种子 */
printf("猜拳游戏开始!!\n");
do {
comp = rand() % 3; /* 用随机数生成计算机的手势(0~2)*/
printf("\n\... | 3.71875 | 4 |
2024-11-18T22:19:17.980347+00:00 | 2017-02-19T03:54:46 | fe7890bd18229693c375555b55ab722bc83281f3 | {
"blob_id": "fe7890bd18229693c375555b55ab722bc83281f3",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-19T03:54:46",
"content_id": "2f3c5955a1fccfa56f3486f913427c0a07220135",
"detected_licenses": [
"MIT"
],
"directory_id": "1071222c0b6c4f1d420fd8cf6b714d27b318b3ec",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
#include <allegro5/keyboard.h>
#define FPS 30.0
#define CANTMOV 5
enum KEYS{
UP, // 0
DOWN, // 1
LEFT, // 2
RIGHT, // 3
//--------------------MIO
X //4
//--------------------MIO
};
... | 2.421875 | 2 |
2024-11-18T22:19:18.049558+00:00 | 2017-12-10T12:55:18 | 5521b431528d36d16266ffa87e0d27026feb1da5 | {
"blob_id": "5521b431528d36d16266ffa87e0d27026feb1da5",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-10T12:55:18",
"content_id": "32bb029ca72f8ebb154abec0050fd03cf69a9a10",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "7995a24763a0f17e7cedb7c10721ac6b8beb38ec",
"... | stackv2 | /**CFile****************************************************************
FileName [abcMiter.c]
SystemName [ABC: Logic synthesis and verification
system.]
PackageName [Network and node package.]
Synopsis [Procedures to derive the miter of two
circuits.]
Author [Alan Mishchenko]
Affiliation ... | 2.328125 | 2 |
2024-11-18T22:19:18.576716+00:00 | 2010-05-23T03:52:17 | b400143bb166370d88ef96e5438cb8c15ca63e26 | {
"blob_id": "b400143bb166370d88ef96e5438cb8c15ca63e26",
"branch_name": "refs/heads/master",
"committer_date": "2010-05-23T03:52:17",
"content_id": "287859b8e162277cdb06b4ad4295b86ae9c712ed",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7304e8f6b0402f3858981795e97a0b26e77a8bd2",
"extens... | stackv2 | /*
* part.c: the PART command
*
* Copyright 2002 the Ithildin Project.
* See the COPYING file for more information on licensing and use.
*/
#include <ithildin/stand.h>
#include "ircd.h"
IDSTRING(rcsid, "$Id: part.c 579 2005-08-21 06:38:18Z wd $");
MODULE_REGISTER("$Rev: 579 $");
/*
@DEPENDENCIES@: ircd
*/
/*... | 2.1875 | 2 |
2024-11-18T22:19:18.779889+00:00 | 2020-12-11T01:34:17 | 56dfee990b90257820e442edf20ed6bdc3a023b3 | {
"blob_id": "56dfee990b90257820e442edf20ed6bdc3a023b3",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-11T01:34:17",
"content_id": "a8253fa11ad54ca53900a33cb0d02dd3ace780db",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8103d44be5a832f5051854fdae43b05667ef9a5a",
"extension"... | stackv2 | #include "ab32vg1_hal.h"
#include "ab32vg1_ll_sdio.h"
#ifdef HAL_SD_MODULE_ENABLED
#include <stdbool.h>
#define HAL_LOG(...) hal_printf(__VA_ARGS__)
/************************* LL ************************************/
#define CK8E BIT(11) //在命令/数据包后加上8CLK
#define CBUSY BIT(10) ... | 2.203125 | 2 |
2024-11-18T22:19:18.973780+00:00 | 2021-02-25T03:19:14 | efa36402d7438e547aaed8b4f45b91a40823449d | {
"blob_id": "efa36402d7438e547aaed8b4f45b91a40823449d",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-25T03:19:14",
"content_id": "2c1a557c6a7dd17969ad6ba59a52a933cded3632",
"detected_licenses": [
"MIT"
],
"directory_id": "ba9d087dcf498aa6db247299bcbba5aa722ab2db",
"extension": "h"... | stackv2 | #ifndef _HASH_MAP_API_
#define _HASH_MAP_API_
/************************
CORE LIBARIES
************************/
#include "LinkedListAPI.h"
/************************
CORE OBJECTS
************************/
/**
* Node for the HashMap
**/
typedef struct hashNode {
int key;
Node *data;
} HashNode;
... | 2.421875 | 2 |
2024-11-18T22:19:19.113708+00:00 | 2023-07-25T03:05:49 | 2985f040285e1ed520dec2f88c2cc1faea913ffa | {
"blob_id": "2985f040285e1ed520dec2f88c2cc1faea913ffa",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-25T03:05:49",
"content_id": "60463b432a9a77069425270efad77cd904c0a1c3",
"detected_licenses": [
"MIT"
],
"directory_id": "6630d32f9a40c704a327d8fbf546f9cc94d50ff1",
"extension": "c"... | stackv2 | /* lua-ev.c
* author: xjdrew
* date: 2014-07-13
*/
#include <assert.h>
#include <stdio.h>
#include "levent.h"
#include "ev.h"
#define LOOP_METATABLE "loop_metatable"
#define WATCHER_METATABLE(type) "watcher_" #type "_metatable"
#define LOG printf
#define METATABLE_BUILDER_NAME(type) create_metatable_##type
#defi... | 2.390625 | 2 |
2024-11-18T22:19:19.212095+00:00 | 2022-08-28T17:02:52 | d04744f1e574799347007d4fd8f1c9ab1b08209f | {
"blob_id": "d04744f1e574799347007d4fd8f1c9ab1b08209f",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-28T17:02:52",
"content_id": "0c9ecdf872a742cf8e07d10c16f2347735a245c5",
"detected_licenses": [
"Unlicense",
"MIT"
],
"directory_id": "58cb1fdf75bee8475a65a7b1da3893b258d4fdab",
... | stackv2 | #ifdef __ANDROID__
# include <android/api-level.h>
#endif
#if defined _WIN32
# include <windows.h>
# include <wincrypt.h>
#elif defined __linux__ || defined __ANDROID_API__
# include <sys/syscall.h>
# include <unistd.h>
#endif
#include "qc.h"
#include <stdint.h>
#include <stdlib.h>
qc_result qc_rnd_init(qc... | 2.078125 | 2 |
2024-11-18T22:19:19.282516+00:00 | 2021-05-06T12:38:39 | 556ba1869f726b5f7e764bae8bb2d7e972cbfe19 | {
"blob_id": "556ba1869f726b5f7e764bae8bb2d7e972cbfe19",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-06T12:38:39",
"content_id": "79154d7ee058cd467ca5e3522237115b0d6588b5",
"detected_licenses": [
"BSD-3-Clause",
"Apache-2.0"
],
"directory_id": "439e42e6567769f4ff2517c2dd85672610... | stackv2 | /*
* Copyright (c) 2018-2020, Arm Limited. All rights reserved.
* Copyright (c) 2020, Cypress Semiconductor Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include "tfm_plat_nv_counters.h"
#include <limits.h>
#include <stddef.h>
#include "Driver_Flash.h"
#include "flash_layout.... | 2.53125 | 3 |
2024-11-18T22:19:19.364881+00:00 | 2017-05-18T19:07:59 | 136d198b37c0d3e5f0a23b3209ae0ec66605ced1 | {
"blob_id": "136d198b37c0d3e5f0a23b3209ae0ec66605ced1",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-18T19:07:59",
"content_id": "13a1dfa747581d2115437bead568f573ce3709fd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7d5491e282804867dcbed13bdcdbe4448f9120dd",
"extensio... | stackv2 | #include <dirent.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
static struct option const long_opts[] = {
{"all", no_argument, NULL, 'A'},
{"help", no_argument, NULL, 'h'},
{"version", no_argument, NULL, 'v'},
... | 2.078125 | 2 |
2024-11-18T22:19:19.888239+00:00 | 2017-06-08T14:19:49 | 257f474a15ac46758bbd3ae2158170066cc336b9 | {
"blob_id": "257f474a15ac46758bbd3ae2158170066cc336b9",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-08T14:19:49",
"content_id": "863e57171afc7efefef37c7009a743838b4f0ece",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d8340ebbfeac0cf96a9273f4824689f00196981c",
"extensio... | stackv2 | /*
* sig_and_wai_sem.c
*
* Created on: Nov 27, 2015
* Author: liyixiao
*/
#include "kernel/kernel_impl.h"
#include "kernel/check.h"
#include "kernel/task.h"
#include "kernel/semaphore.h"
#include "kernel/mp.h"
#include "kernel/wait.h"
// From 'kernel/semaphore.c'
#define INDEX_SEM(semid) ((uint_t)((semid) ... | 2.15625 | 2 |
2024-11-18T22:19:19.976182+00:00 | 2018-05-23T06:55:18 | 5a66cb3d6500a6bca5b87a74326b344401ff17e2 | {
"blob_id": "5a66cb3d6500a6bca5b87a74326b344401ff17e2",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-23T06:55:18",
"content_id": "125805f0f285e1d2f33eb7a0c45fba0c447e90eb",
"detected_licenses": [
"MIT"
],
"directory_id": "2bc3398063fd7251c46a2d93d2e301cd063befcd",
"extension": "c"... | stackv2 | // 标准描述长度示例 |
// 幻境内物品 迷题型(包括学习技能的类型)
// by naihe 2002-10-23 于茂名
// 本物件只作为学习技能型的物品使用。 21:42 02-10-28 by naihe
// naihe 05-9-7 9:15 v1.7 继续调整。
#include <ansi.h>
inherit ITEM;
string *names=({
HIW"呼风之石"NOR,
MAG"唤雨之石"NOR,
HIC"落雷之石"NOR,
HIG"引电之石"NOR,
... | 2.203125 | 2 |
2024-11-18T22:19:20.386473+00:00 | 2021-08-24T12:53:09 | 1cf8730d845860caeda70144625b1d3ac006be3f | {
"blob_id": "1cf8730d845860caeda70144625b1d3ac006be3f",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-24T12:53:09",
"content_id": "7dc2bffa31155dbf72e1e8a6e396f21f5ef2bd1a",
"detected_licenses": [
"MIT"
],
"directory_id": "18dc1ddc554cd13e775abcd59c2b5568987f64c3",
"extension": "c",
... | stackv2 | // Using 4Mhz for Low Power
// ATtiny25V/45V/85V: 0 – 4 MHz @ 1.8 - 5.5V
#define F_CPU 16500000UL
#include <avr/io.h>
#include <util/delay.h>
// https://www.engbedded.com/fusecalc/
// Calculation of Prescaler
// 38Khz IR = 38000 Hz
// 4Mhz CPU = 4000000 Hz
// 4000000 / (1 * 38000) - 1 = 104
// In case... | 2.90625 | 3 |
2024-11-18T22:19:24.057339+00:00 | 2023-08-18T12:54:06 | 276c6a63ea26e5bf484c17c372271e9c8760f874 | {
"blob_id": "276c6a63ea26e5bf484c17c372271e9c8760f874",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T12:54:06",
"content_id": "bb06a3916c971db59860d02a543e6629172f4d01",
"detected_licenses": [
"MIT"
],
"directory_id": "22446075c2e71ef96b4a4777fe966714ac96b405",
"extension": "c"... | stackv2 | /*!
* @file main.c
* @brief TDC 2 Click example
*
* # Description
* This library contains API for TDC 2 Click driver.
* The library initializes and defines the SPI bus drivers to
* write and read data from registers, as well as the default
* configuration for a reading time between two STOP signals.
*
* Th... | 2.65625 | 3 |
2024-11-18T22:19:24.380961+00:00 | 2020-10-31T22:09:28 | 66c88453e160d4ebf4e451c32ac192f71740e8f1 | {
"blob_id": "66c88453e160d4ebf4e451c32ac192f71740e8f1",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-31T22:09:28",
"content_id": "78ac54dfb8e2ab68711dc088aa473e84ae8d92c3",
"detected_licenses": [
"MIT"
],
"directory_id": "15f83e2ccde6ae17512a6b4b5609b3cca4871384",
"extension": "c"... | stackv2 | #include "shared.h"
static void swizzle_char_array(
Py_ssize_t c_size, sint8 *c_offs_sint8s,
Py_ssize_t x_size, sint8 *x_offs_sint8s,
Py_ssize_t y_size, sint8 *y_offs_sint8s,
Py_ssize_t z_size, sint8 *z_offs_sint8s,
Py_ssize_t swizz_size, sint8 *swizz_arr_sint8s,
Py_ssize_t unswizz_size, sint... | 2.140625 | 2 |
2024-11-18T22:19:24.799734+00:00 | 2016-07-01T01:33:32 | 040ded32ff610c914f0691725e9c4e498b48494e | {
"blob_id": "040ded32ff610c914f0691725e9c4e498b48494e",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-01T01:33:32",
"content_id": "c3065ee31edf2095d35a4219aa42a252b3b827ab",
"detected_licenses": [
"MIT"
],
"directory_id": "92af3ca59974e9d6f3cbf4e70d25ac274524e0d3",
"extension": "h"... | stackv2 | /**
Configuration of the system
Edit this file to change various settings such as the pin numbers for
buttons, detectors and so
*/
#ifndef FOOSBALLINO_CONFIG_H
#define FOOSBALLINO_CONFIG_H
// The default number of maximum goals for both teams
#define DEFAULT_MAX_SCORE 10 // goals
// The delay during whi... | 2.40625 | 2 |
2024-11-18T22:19:24.861067+00:00 | 2018-06-22T14:43:04 | 622cbc6e5c958a4e68d8c859fab4199c00a36694 | {
"blob_id": "622cbc6e5c958a4e68d8c859fab4199c00a36694",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-22T14:43:04",
"content_id": "df1ff5d11c18ab1fad8cbf70c54975efbeee233f",
"detected_licenses": [
"MIT"
],
"directory_id": "24330e90a8d92e1f15fd2b4eba7afeec2f9adc26",
"extension": "c"... | stackv2 | #include "peripheral.h"
#include <linux/miscdevice.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <linux/init.h>
#include <linux/platform_device.h>
/************************************************************************
*
* OLED dr... | 2.328125 | 2 |
2024-11-18T22:19:25.041476+00:00 | 2017-04-29T06:17:24 | 33b463ab4462f043314f49d10b15926030a7279c | {
"blob_id": "33b463ab4462f043314f49d10b15926030a7279c",
"branch_name": "refs/heads/lab-general",
"committer_date": "2017-04-29T06:17:24",
"content_id": "f3ea5f0a3d43ef1fceb130954fcce55582b2604f",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b725ba18b99398ce8459b8877691135e0cdf4d51",
"e... | stackv2 | /***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... | 2.15625 | 2 |
2024-11-18T22:19:25.608523+00:00 | 2018-09-26T03:14:59 | 7b200f60c5440e579abfdf7352a92a5990221031 | {
"blob_id": "7b200f60c5440e579abfdf7352a92a5990221031",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-26T03:14:59",
"content_id": "9e7016c03fab03619ba4fa649dad45eb28d5c8db",
"detected_licenses": [
"MIT"
],
"directory_id": "09b6f5f8e5e76b1fff8f5b8d8d92bacba0177e64",
"extension": "c"... | stackv2 | #include <stdio.h>
int main()
{
FILE *fp = fopen("def.txt", "wb+");
char *str = "lnj\0it666";
// fputs是以文本文件的形式存储, 存储的是ASCII
// 注意点: 如果利用fputs写入字符串, 遇到\0会停止写入
// fputs(str, fp);
// 注意点: 在二进制中是没有\n \0这些概念的, 写入的时候不会受到\0 \n的影响
fwrite(str, 9, 1, fp);
return 0;
}
| 2.75 | 3 |
2024-11-18T22:19:26.829689+00:00 | 2019-11-16T06:36:57 | e41c061f0321b22c213b0efa0b4eee958c11760a | {
"blob_id": "e41c061f0321b22c213b0efa0b4eee958c11760a",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-16T06:36:57",
"content_id": "280cbfbdf34a422135c05fe2987a24bf5ecab843",
"detected_licenses": [
"MIT"
],
"directory_id": "be80b1873c0ba8738f8c68b141d38c3e9f6ae5e1",
"extension": "c"... | stackv2 | #include "tim.h"
//------------------------------------------------------------------
void TIM3_Int_Init(u16 arr,u16 psc)
{
TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure;
// NVIC_InitTypeDef NVIC_InitStructure;
RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3, ENABLE); //时钟使能
//定时器TIM3初始化
TIM_TimeBaseStructure.TI... | 2.28125 | 2 |
2024-11-18T22:19:26.976803+00:00 | 2023-02-25T11:24:08 | b09a11ddaa21ffa084d3b24f739051c85c5db10a | {
"blob_id": "b09a11ddaa21ffa084d3b24f739051c85c5db10a",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-25T11:24:08",
"content_id": "dff67b0ed1b072c66e7ccd67b60dd045f785b5fe",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e67e31593e6fb0ac516e6b9c2bedd37183deda8f",
"extensio... | stackv2 | #include "bigint.h"
#include "strops.h"
#include "testlib.h"
local void testToFromString(void);
local void testBIntNew(void);
void
bintTestSuite()
{
init();
TEST(testToFromString);
TEST(testBIntNew);
fini();
}
local void testCanonical(char *nText);
local void
testToFromString()
{
testCanonical("0");
testCanoni... | 2.453125 | 2 |
2024-11-18T22:19:27.265159+00:00 | 2020-04-15T20:58:21 | 1643b0558d216e4d3161973e685092aa0fb61f33 | {
"blob_id": "1643b0558d216e4d3161973e685092aa0fb61f33",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-15T20:58:21",
"content_id": "9b1c9ca02da356f690d51a1992a099c1bcf38ac0",
"detected_licenses": [
"MIT"
],
"directory_id": "ebc700cb11b49d5319544d3f7bbc8882250a8e5a",
"extension": "c"... | stackv2 | ////////////////////////////////////////////////////////////////////////////////
// main.c
////////////////////////////////////////////////////////////////////////////////
//
// IN PACKAGE: Software Platform examples
//
// COPYRIGHT: Copyright (c) 2008, Altium
//
// DESCRIPTION: This example ... | 2.375 | 2 |
2024-11-18T22:19:29.199504+00:00 | 2023-08-28T04:11:27 | 7b8247d082693a85dd4e520f8c4766aff4a76fa7 | {
"blob_id": "7b8247d082693a85dd4e520f8c4766aff4a76fa7",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T04:11:27",
"content_id": "80efd03f2d9c0a3740d27e9c5ec7f6de9af72bdf",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "dda61c0050579ee53efb31ed3c79b95d2f18c370",
"extens... | stackv2 | // Copyright (C) 2019, 2023 Björn A. Lindqvist <bjourne@gmail.com>
#include <ctype.h>
#include <string.h>
#include "datatypes/bits.h"
#include "datatypes/vector.h"
#include "linalg/linalg-io.h"
#include "file3d/file3d.h"
typedef union {
int i;
float f;
ptr p;
} int_or_float;
static bool
str_is_empty(cons... | 2.453125 | 2 |
2024-11-18T22:19:30.597084+00:00 | 2017-12-07T03:27:10 | 36cc224aa08fc2c18dfd1f8aedb74616da8919dd | {
"blob_id": "36cc224aa08fc2c18dfd1f8aedb74616da8919dd",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-07T03:27:10",
"content_id": "2891247134583278e674c5fcb448c7299c1cfafd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "424bfa9f6420b46d855fb62d0aeaacb2c3d2c974",
"extensio... | stackv2 | source: http://www.securityfocus.com/bid/6240/info
A remotely exploitable heap corruption vulnerability has been reported for WSMP3.
Due to insufficient bounds checking of user-supplied input, it is possible for a remote attacker to corrupt heap memory. By corrupting allocated memory headers, it is possible to redi... | 2.140625 | 2 |
2024-11-18T22:19:30.668320+00:00 | 2020-08-29T14:32:22 | 072639fa5626b626d47e6d108cf4bf1754c6e251 | {
"blob_id": "072639fa5626b626d47e6d108cf4bf1754c6e251",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-29T14:32:22",
"content_id": "df2d7f5976da5950bff9759afe7256278084df8c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "b278d6a71e59245fbe7f3ecf6912f4ed890b13ca",
"extens... | stackv2 | /*
** EPITECH PROJECT, 2019
** move_rect
** File description:
** contains all rect movements
*/
#include "include/my.h"
int get_skin_3(all_t *all)
{
all->perso->limit_rect_perso = all->perso->rct_perso.width * 3;
all->perso->txt_perso[0] = sfTexture_createFromFile(
"sprite/perso3_left.png", NULL);
... | 2.28125 | 2 |
2024-11-18T22:19:30.748974+00:00 | 2020-01-24T16:19:53 | 476f3354096affec9fa4142de9af30342efd0fcd | {
"blob_id": "476f3354096affec9fa4142de9af30342efd0fcd",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-24T16:19:53",
"content_id": "fd210794ecf1fe4fe6edb063038885e5f33d4d08",
"detected_licenses": [
"MIT"
],
"directory_id": "e715dbf838ff20f7a6e1b48d9fe8e5b84cdaf0c2",
"extension": "c"... | stackv2 | /*
** EPITECH PROJECT, 2019
** set_draw
** File description:
** set_draw
*/
#include "my.h"
void set_pa(int size_actu_2, val_t *j, int y)
{
pa(j);
if (size_actu_2 != y+1) {
j->buffer[j->buffer_int] = 'p';
j->buffer_int++;
j->buffer[j->buffer_int] = 'a';
j->buffer_int++;
... | 2.609375 | 3 |
2024-11-18T22:19:30.849434+00:00 | 2014-02-01T17:19:03 | 4a00934bf400581aa19ec17e633a37f87768c0a8 | {
"blob_id": "4a00934bf400581aa19ec17e633a37f87768c0a8",
"branch_name": "refs/heads/master",
"committer_date": "2014-02-01T17:19:03",
"content_id": "b98b47af4223593a2d139d7629a400c1c70a12a3",
"detected_licenses": [
"MIT"
],
"directory_id": "7685d9fd6a2a9f2ea1b2fd833f4a0e4a63321c8a",
"extension": "h"... | stackv2 | #ifndef ___FILL_FS_NODE_H
#define ___FILL_FS_NODE_H
#include <string.h>
__inline__ static void fill_fs_node (
fs_node_t node,
char * name,
u32 flags,
u32 inode,
u32 impl,
u32 size,
fs_node_t * ptr,
read_function_t read,
write_function_t write,
open_funct... | 2.34375 | 2 |
2024-11-18T22:19:30.915969+00:00 | 2019-12-18T21:12:41 | 9c00a8fac33d72a0cd458c03d38c67ee41f401a2 | {
"blob_id": "9c00a8fac33d72a0cd458c03d38c67ee41f401a2",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-18T21:23:48",
"content_id": "5dd70d4db9337483a23250944c852a78d2b60da0",
"detected_licenses": [
"MIT"
],
"directory_id": "05d28cbc3d6df188c78580b378c826336efea750",
"extension": "c"... | stackv2 | /*
* uart.c
*
* Created on: Nov. 16, 2019
* Author: Andres Rogelio Cordoba
*
* Vast majority of the code was taken from the example
* provided by the maker to initialize the UART interface.
*
*
*/
#include "../Drivers/uart.h"
RINGBUFF_T txring, rxring;
uint8_t rxbuff[UART_RRB_SIZE], txbuff[U... | 2.546875 | 3 |
2024-11-18T22:19:31.114435+00:00 | 2011-10-27T09:36:13 | 19b5a1673c76b9765eaceba2839a930fa6b40918 | {
"blob_id": "19b5a1673c76b9765eaceba2839a930fa6b40918",
"branch_name": "refs/heads/master",
"committer_date": "2011-10-27T09:36:13",
"content_id": "cf140ec8a0c1ba78e5bc3c6d182c226ef16f84e5",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "18750b124aad096a964d5656c5241ae2cd741862",
"extens... | stackv2 | /**
* Copyright 2011 Roy van Dam <roy@8bit.cx>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
... | 2.265625 | 2 |
2024-11-18T22:19:31.516488+00:00 | 2021-05-26T09:40:54 | 195a1fb2cf3d9d327755567fc73c5f7ce9abf2b7 | {
"blob_id": "195a1fb2cf3d9d327755567fc73c5f7ce9abf2b7",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-26T09:40:54",
"content_id": "476c14edf4495ee8dddcdd0e9589cef18e26c5bf",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "cbf8d1025b6c96fa0f52d8cb3f45384b4f1ce1da",
"extensio... | stackv2 |
#define LOG_TAG "misc_rw"
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <utils/Log.h>
#include <sys/stat.h>
#include <sys/types.h>
static const char *MISC_DEVICE = "/dev/block/by-name/misc";
#define LOGE(...) fprintf(stderr, "E:" __VA_ARGS__)
/* Bootloader Message
*/
struct bootloader_messag... | 2.25 | 2 |
2024-11-18T22:19:31.585857+00:00 | 2022-08-04T22:49:38 | 5ab69928e0a1d71d604be7d519d519da9e69fa99 | {
"blob_id": "5ab69928e0a1d71d604be7d519d519da9e69fa99",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-04T22:49:38",
"content_id": "2989f18e09edf111629589951cf07ed6e810bad4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "198776b40bcd18cbd7bb8350183915d096844d54",
"extensio... | stackv2 | // Copyright (c) 2016-2018, Intel Corporation.
// ZJS includes
#include "zjs_i2c_handler.h"
#include "zjs_common.h"
// The Arduino 101 has two I2C busses, but I2C_SS_1 isn't connected to anything.
// So we have disabled the ability to connect to it, to avoid user confusion
#ifdef CONFIG_BOARD_ARDUINO_101_SSS
#define ... | 2.375 | 2 |
2024-11-18T22:19:31.815123+00:00 | 2015-03-23T08:36:39 | 12e05bf8b0b9cfccb6ac731b48a521df155c2288 | {
"blob_id": "12e05bf8b0b9cfccb6ac731b48a521df155c2288",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-23T08:36:39",
"content_id": "61d6040dbb601d86758a3b9347f02b92d16f8c67",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "481ca00adad918853ae56901557b34f3e4dcaa22",
"extensio... | stackv2 | #include <linux/init.h>
#include <linux/module.h>
#include <linux/timer.h>
struct timer_list mytimer;
static void timer_handler(unsigned long data)
{
mod_timer(&mytimer, jiffies + HZ);
printk("current jiffies is %ld\n", jiffies);
}
static int __init mytimer_init(void)
{
printk("mytimer init\n");
init_timer(&myti... | 2.265625 | 2 |
2024-11-18T22:19:32.167428+00:00 | 2013-08-11T19:10:09 | ddc9b8153e18e43f9c6a81f1841265fb2bcfc34f | {
"blob_id": "ddc9b8153e18e43f9c6a81f1841265fb2bcfc34f",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-11T19:10:09",
"content_id": "e9fc416ab790e45635c1a51802eecc9256c94737",
"detected_licenses": [
"MIT"
],
"directory_id": "f4d58e5471b29666dfaa38a98feec620f00798d9",
"extension": "c"... | stackv2 | /* Generated from /home/cmaxwell/chopstix/src/lib/libchopstix/chopstix.asn1 */
/* Do not edit */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <errno.h>
#include <chopstix_asn1.h>
#include <asn1_err.h>
#include <der.h>
#include <parse_units.h>
#define BACK if (e) return e; p -=... | 2.109375 | 2 |
2024-11-18T22:19:32.344935+00:00 | 2014-11-29T16:42:25 | 3d7f8b28553a0d507a598944fab3c433668b0ed0 | {
"blob_id": "3d7f8b28553a0d507a598944fab3c433668b0ed0",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-29T16:42:48",
"content_id": "f56a2b384c43ed877320984424946e66fbb5f2eb",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1babb3b9c359aa73a6684262d4eab6ca8e6c6d41",
"extens... | stackv2 |
#ifndef _GTKUNDO_
#define _GTKUNDO_
#define UNDOCLS_BGNDCOLOR 1
#define UNDOCLS_LOCK 100
#define UNDOCLS_UNLOCK 101
#define UNDOCLS_ATTRIBS 102
#define UNDOCLS_TOTOP 103
#define UNDOCLS_TOBOTTOM 104
#define UNDOCLS_CREATE 105
#define UNDOCLS_MOVE ... | 2.03125 | 2 |
2024-11-18T22:19:32.496245+00:00 | 2018-04-23T21:23:41 | 582b871f985ab0ba451d8ed77c63a81fb801f62e | {
"blob_id": "582b871f985ab0ba451d8ed77c63a81fb801f62e",
"branch_name": "refs/heads/develop",
"committer_date": "2018-04-23T21:23:41",
"content_id": "ad08deca4ccaedea842ec028357dd7521c4501a5",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d",
"extension"... | stackv2 | /* *********************************************************************** */
/* *********************************************************************** */
/* Data Type Alignment (DTA) Functions Library Source Module */
/* *********************************************************************** */
/*
File Name : ... | 2 | 2 |
2024-11-18T22:19:33.526037+00:00 | 2023-07-29T00:38:27 | 46c95c551d01120fa3b2f0897820bcfed229d6b7 | {
"blob_id": "46c95c551d01120fa3b2f0897820bcfed229d6b7",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-29T00:38:27",
"content_id": "3d37d253ff8cc823d4d5633fde18794514e4ca43",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "d5add0361e35f2d86a23a40338fb96e5... | stackv2 | /* $Id$ */
/* Copyright (c) 2013-2018 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS System libc */
/* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redis... | 2.046875 | 2 |
2024-11-18T22:19:34.136261+00:00 | 2015-07-07T22:10:21 | a28598a04c82b9c785544745c56120a9198c3816 | {
"blob_id": "a28598a04c82b9c785544745c56120a9198c3816",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-07T22:10:21",
"content_id": "66df60581285ad70bd4c255e38e7ad83f0317a02",
"detected_licenses": [
"MIT"
],
"directory_id": "885f5c11428d2796a3ed2e8274695b1bebd72d40",
"extension": "c"... | stackv2 | void calcMax(int *keys, double *values, int *numKeys, int *numValues, double *ans)
{
for(int i=0; i<*numValues; i++){
if (values[i]>ans[keys[i]-1])
{
ans[keys[i]-1] = values[i];
}
}
}
| 2.328125 | 2 |
2024-11-18T22:19:34.255050+00:00 | 2017-12-25T01:42:57 | fa2c3390c7219c7155f34a737b8c6fb504c0d9a3 | {
"blob_id": "fa2c3390c7219c7155f34a737b8c6fb504c0d9a3",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-25T01:42:57",
"content_id": "a09be30b2595aa9a7f59b14876aaff9983c4d50b",
"detected_licenses": [
"Unlicense"
],
"directory_id": "34ccf24e3433720bb9ba1712918d969bdf15318d",
"extension... | stackv2 | #include "Common.h"
#include "Debug.h"
#include "Memory.h"
#include "TableProc.h"
#include "Wrappers.h"
#include <stdlib.h>
#include <string.h>
///////////////////////////////////////////////////////////////////////////////
void tblClose(void **tbl, tblsch *sch)
{
if (tbl) for (size_t i = 0; i < sch->colschcnt; ... | 2.46875 | 2 |
2024-11-18T22:19:34.965213+00:00 | 2017-11-16T16:09:06 | 9ffe98cb5c0427d6a50256d2050a198323b292bb | {
"blob_id": "9ffe98cb5c0427d6a50256d2050a198323b292bb",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-16T16:09:06",
"content_id": "d1c3ed2943ca74492e75532e60f7baa6a4086ecf",
"detected_licenses": [
"MIT"
],
"directory_id": "2a2e9db76a458a6b984d1679ce870cd067509709",
"extension": "c"... | stackv2 | /**
* @file lv_draw_rbasic.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_draw_rbasic.h"
#include "lv_conf.h"
#include "hal/disp/disp.h"
#include "misc/gfx/font.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
*******... | 2.9375 | 3 |
2024-11-18T22:19:35.127755+00:00 | 2021-01-18T04:39:59 | 12cb9a8be7d5331a12244b3ceb8ae3d3869da9d9 | {
"blob_id": "12cb9a8be7d5331a12244b3ceb8ae3d3869da9d9",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-18T04:39:59",
"content_id": "deea520f06d85c95a2e694cff56c0c7284d32d8d",
"detected_licenses": [
"MIT"
],
"directory_id": "7274aebbb177113a0b1548550f5b0a91d3650183",
"extension": "h"... | stackv2 | #ifndef foodaemonloghfoo
#define foodaemonloghfoo
/***
This file is part of libdaemon.
Copyright 2003-2008 Lennart Poettering
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 re... | 2.140625 | 2 |
2024-11-18T22:19:35.261579+00:00 | 2022-03-03T05:12:26 | 53aefdfed852003e97229796987d91e5d22ce706 | {
"blob_id": "53aefdfed852003e97229796987d91e5d22ce706",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-03T05:12:26",
"content_id": "2e2d5260756115248afe5f3210a83c6d3804de9e",
"detected_licenses": [
"MIT"
],
"directory_id": "5d248db80d0056067211bdbd1169c9df37d8b314",
"extension": "c"... | stackv2 | //
// Latest edit by TeeKee on 2017/7/23.
//
#include <errno.h>
#include "http.h"
static const char* get_file_type(const char *type);
static void parse_uri(char *uri, int length, char *filename, char *query);
static void do_error(int fd, char *cause, char *err_num, char *short_msg, char *long_msg);
static void serve_... | 2.359375 | 2 |
2024-11-18T22:19:35.395527+00:00 | 2023-08-27T19:14:02 | ce2ee12207d9b5c5c16076bd3d07addf250341ed | {
"blob_id": "ce2ee12207d9b5c5c16076bd3d07addf250341ed",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-27T19:14:02",
"content_id": "97f45e42d0d08e37a22408a854d0754e58050390",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7c857119fe1505b1d80d6e62969661c06dc1a2f4",
"extens... | stackv2 | /** @file
Functions implementation for Bus Specific Driver Override protoocl.
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The ... | 2.046875 | 2 |
2024-11-18T22:19:35.467395+00:00 | 2023-04-03T13:40:26 | b77c94fdd3364a384d1178ea979bea7478b3bdb2 | {
"blob_id": "b77c94fdd3364a384d1178ea979bea7478b3bdb2",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-03T13:40:26",
"content_id": "99765a84dce28c101d98a9ab2f8a735dcfe823b3",
"detected_licenses": [
"MIT"
],
"directory_id": "7e8cd86aa7ac4fb21fb472b460e95357f0e71eff",
"extension": "c"... | stackv2 | #include "board.h"
#include "ui.h"
#include "devices.h"
#include "dev_keyboard.h"
#include "dev_encoder.h"
#include <getstring.h>
#include <pico/stdio.h>
#include <stdio.h>
#include <pico/time.h>
#include <keyboard.h>
#include "main_loop.h"
const unsigned char KeyboardMap[][1] = {
{KEYBOARD_EVENT_F4},
{KEYBOAR... | 2.5625 | 3 |
2024-11-18T22:19:35.552080+00:00 | 2023-08-29T11:30:11 | e247ce64cd28a6e71d373c9ecbc60582d4523c17 | {
"blob_id": "e247ce64cd28a6e71d373c9ecbc60582d4523c17",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T11:30:11",
"content_id": "a685a05c586cb339c4a58597d099297048df9940",
"detected_licenses": [
"BSD-3-Clause",
"BSD-4-Clause-UC"
],
"directory_id": "07664200f77c4d87baf972e367e77... | stackv2 | #
# include <stdio.h>
# include "constants.h"
# include "globals.h"
/*
** STRING -- processes a string constant
** Strings are kept internally exactly as their external
** appearance, except for the outermost '"'.
** A string may be at most MAXSTRING characters
** long, and may have escaped newlines.
**
** Parameter... | 2.40625 | 2 |
2024-11-18T22:19:35.840560+00:00 | 2020-10-10T11:02:50 | 823244a6fd74d05e83a22f99283ce6c904a0380d | {
"blob_id": "823244a6fd74d05e83a22f99283ce6c904a0380d",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-10T11:02:50",
"content_id": "b1197d1747da5fb4f7243620a20914a0d5fbb547",
"detected_licenses": [
"MIT"
],
"directory_id": "cff4e613a2435b607bd49e4192dc84985efe4f54",
"extension": "c"... | stackv2 | /*
** commands.c for commands in /home/pereni_j/Rendu/BocalEmblem/Path of Radiance
**
** Made by joseph pereniguez
** Login <pereni_j@epitech.net>
**
** Started on Sat May 16 11:56:46 2015 joseph pereniguez
** Last update Sun May 17 21:11:26 2015 Jade Kadri
*/
#include "playradiance.h"
int count_elem... | 2.4375 | 2 |
2024-11-18T22:19:36.586561+00:00 | 2015-04-15T16:14:09 | 576d0f7d21cc655bf2cc29b6ed6fbf7dc4f64bc6 | {
"blob_id": "576d0f7d21cc655bf2cc29b6ed6fbf7dc4f64bc6",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-15T16:14:09",
"content_id": "f89a197d0cd656df5ac3816793c12fdf76811385",
"detected_licenses": [
"MIT"
],
"directory_id": "5d480d958611313bf6cff4e32a6a857947cdcece",
"extension": "c"... | stackv2 | // 7 april 2015
#include "uipriv_windows.h"
struct button {
void (*onClicked)(uiControl *, void *);
void *onClickedData;
};
static BOOL onWM_COMMAND(uiControl *c, WORD code, LRESULT *lResult)
{
struct button *b = (struct button *) (c->data);
if (code != BN_CLICKED)
return FALSE;
(*(b->onClicked))(c, b->onClic... | 2.421875 | 2 |
2024-11-18T22:19:36.827867+00:00 | 2012-03-30T21:33:03 | e2c897ce747bcb4133b54adbdff0a75a7f21742c | {
"blob_id": "e2c897ce747bcb4133b54adbdff0a75a7f21742c",
"branch_name": "refs/heads/master",
"committer_date": "2012-03-30T21:33:03",
"content_id": "2802cffb12fa3682b00645ac356dc3dc08072fb7",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4813a8ab144a62c386f0cd0b32c987e784c54bd9",
"extens... | stackv2 | #include <sysinit.h>
#include "basic/basic.h"
#include "lcd/backlight.h"
#include "lcd/render.h"
#include "lcd/display.h"
#include "lcd/allfonts.h"
#define BITSET_X (RESX+2)
#define BITSET_Y (RESY+2)
#define BITSET_SIZE (BITSET_X*BITSET_Y)
#include "cbitset.h"
typedef uint8_t uchar;
unsigned char rnd1();
void dr... | 2.515625 | 3 |
2024-11-18T22:19:36.918944+00:00 | 2017-01-25T17:31:34 | 04fa7addec8944c468509ccfd1b51cddb1961bd9 | {
"blob_id": "04fa7addec8944c468509ccfd1b51cddb1961bd9",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-25T17:31:34",
"content_id": "d0f9fdc2da2189e99181f7f8648e9d2d1927a91c",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "a2ef9a1ebbdaafad5065632cefd42891c47bb08c",
"extension":... | stackv2 | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <mpi.h>
#ifdef _OPENMP
#include <omp.h>
#endif
double compute_pi(long n, int seed);
int main(int argc, char *argv[]) {
int rank, size, seed;
long n;
double pi, global_pi;
MPI_Init(NULL, NULL);
MPI_Comm_rank(MPI... | 2.96875 | 3 |
2024-11-18T22:19:37.113764+00:00 | 2019-07-13T07:36:53 | f8f5d3a8976fed6068e4e9e924733a7534e094eb | {
"blob_id": "f8f5d3a8976fed6068e4e9e924733a7534e094eb",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-13T07:36:53",
"content_id": "26d9a303dbdf401fb11b76cc961e38253b183d6a",
"detected_licenses": [
"MIT"
],
"directory_id": "c1cccf8fbcbdaaad746c8627c9ea616e897bba59",
"extension": "c"... | stackv2 | #include "libmini.h"
typedef void (*proc_t)();
static jmp_buf jb;
#define FUNBODY(m, from) { write(1, m, strlen(m)); longjmp(jb, from); }
void a() FUNBODY("This is function a().\n", 1);
void b() FUNBODY("This is function b().\n", 2);
void c() FUNBODY("This is function c().\n", 3);
void d() FUNBODY("This is function ... | 2.34375 | 2 |
2024-11-18T22:19:37.194611+00:00 | 2021-01-04T00:42:46 | 1d01b5101813eee60093639dcd5af7962934376a | {
"blob_id": "1d01b5101813eee60093639dcd5af7962934376a",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-04T00:42:46",
"content_id": "229bcd3e7a439580f1f1fdeff73bb0131f6bbdb0",
"detected_licenses": [
"MIT"
],
"directory_id": "88479ca82ddf77bdce4142771ec6eb8eb988824a",
"extension": "c"... | stackv2 | #include "window.h"
#include "user.h"
// add include with handlers
int onWindowClickHandler(WINDOW* window, int x, int y){
for(int i = 0; i < window->num_regions; i++){
if (window->regions[i].clickable == 1){
// check if clicked on this particular region
//fix
if ((x > w... | 2.171875 | 2 |
2024-11-18T22:19:37.522243+00:00 | 2023-07-12T07:38:29 | 178bb4d01e78c9a2aea09ef227416e13b1d5dddd | {
"blob_id": "178bb4d01e78c9a2aea09ef227416e13b1d5dddd",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-12T07:38:29",
"content_id": "cc1708bcbb19b44744e6874cafd44c0e382c783e",
"detected_licenses": [
"MIT"
],
"directory_id": "52c8ed39b32ccc7c0673278c1adea3638797c9ff",
"extension": "c"... | stackv2 | /*
* cache-v7.c
*
* Copyright(c) 2007-2023 Jianjun Jiang <8192542@qq.com>
* Official site: http://xboot.org
* Mobile phone: +86-18665388956
* QQ: 8192542
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... | 2 | 2 |
2024-11-18T22:19:37.803638+00:00 | 2019-08-06T14:24:54 | f9c828a0142eff98e85dc5e6f1d7de930e8dd2fc | {
"blob_id": "f9c828a0142eff98e85dc5e6f1d7de930e8dd2fc",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T14:24:54",
"content_id": "13a3bbc2526f7edc2540fc2a1a156d6a67f840f4",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "021a3ccdcb91d84629f1de7343981b572840b169",
"extens... | stackv2 |
static char help[] = "Compares BLAS dots on different machines. Input\n\
arguments are\n\
-n <length> : local vector length\n\n";
#include <petscvec.h>
int main(int argc,char **argv)
{
PetscErrorCode ierr;
PetscInt n = 15,i;
PetscScalar v;
Vec x,y;
ierr = PetscInitialize(&argc,&argv... | 2.6875 | 3 |
2024-11-18T22:19:37.907987+00:00 | 2018-07-30T02:51:58 | 34ebf91ead662262ee1073db3b84f44967937e7f | {
"blob_id": "34ebf91ead662262ee1073db3b84f44967937e7f",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-30T02:51:58",
"content_id": "41bd9f5bac88c484c0b61b1ad6a0d6f8fb8fb453",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "729e5aa4102bb4760e9c28b4215b455d3b4bff3d",
"extensio... | stackv2 | #define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
#include <sys/socket.h>
#include <sys/sysinfo.h>
#include <sys/types.h>
#include <uni... | 2.28125 | 2 |
2024-11-18T22:19:37.971905+00:00 | 2020-12-11T13:21:56 | 3f55753daf0ef52f43629c80d573fe0be7327153 | {
"blob_id": "3f55753daf0ef52f43629c80d573fe0be7327153",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-11T13:21:56",
"content_id": "f057d19319388b5b318c6bffbc0c52fea0f75c48",
"detected_licenses": [
"MIT"
],
"directory_id": "af9732a4489966b8b971dc6aef2bc63b04fbef1d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdarg.h>
#include <stdint.h>
#include <smd-internal.h>
#pragma GCC diagnostic ignored "-Wdouble-promotion"
#define use_type_ptr(t) (t->type < SMD_TYPE_PRIMITIVE_END || (t->type == SMD_TYPE_EXTENT && t->specifi... | 2.578125 | 3 |
2024-11-18T22:19:38.084101+00:00 | 2020-04-26T13:15:36 | 4ccc5ad64073e080eef831f081975e88d1d0f395 | {
"blob_id": "4ccc5ad64073e080eef831f081975e88d1d0f395",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-26T13:15:36",
"content_id": "fb41dae1e72d968d1480a19b3e3678f94e05906e",
"detected_licenses": [
"MIT"
],
"directory_id": "d2aea1ad0baa7131c9e6c3621442e5b8270104b8",
"extension": "c"... | stackv2 | #define LIBJSON_IMPLEMENTATION
#define MP_IMPLEMENTATION
#define MP_CHECK_FULL
#include "magpie.h"
#include "libjson.h"
#include <stdio.h>
#include <stdlib.h>
char* names[] = {"Emma", "Olivia", "Ava", "Isabella", "Sophia", "Charlotte", "Mia", "Amelia",
"Harper", "Evelyn", "Abigail", "Emily", "Elizabeth", "Mil... | 2.4375 | 2 |
2024-11-18T22:19:39.535157+00:00 | 2021-12-23T16:26:38 | 482e83e966bf1bef8831e2ba169759c38962c6ad | {
"blob_id": "482e83e966bf1bef8831e2ba169759c38962c6ad",
"branch_name": "refs/heads/master",
"committer_date": "2021-12-23T16:26:38",
"content_id": "cecd328dbf7e659038a54f1c2cb6d20e2e69a975",
"detected_licenses": [
"MIT"
],
"directory_id": "8b2717f67c5933ad510cc90527ec599806103322",
"extension": "h"... | stackv2 | // Copyright: 2016-2021 Twinleaf LLC
// Author: gilberto@tersatech.com
// License: MIT
// API providing send/recv interface to communicate with sensors seamlessly
// over all the supported protocols.
// In general, if errors occur that are not related to non-blocking I/O the
// mode of recovery is to close the descrip... | 2.359375 | 2 |
2024-11-18T22:19:39.673597+00:00 | 2017-04-17T09:37:08 | fa609bad160934aebf40db5637de095bbff79e8e | {
"blob_id": "fa609bad160934aebf40db5637de095bbff79e8e",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-17T09:37:08",
"content_id": "b48429e25512cec1d19e54193031f7e1e81d2a2c",
"detected_licenses": [
"Unlicense"
],
"directory_id": "3322e065a1c00f57711ee2514f0bb9648f982f83",
"extension... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <arpa/inet.h>
#include "aes.h"
#define bufsize 1024
//#define port 5566
//char in_key[17]="asd... | 2.515625 | 3 |
2024-11-18T22:19:39.747386+00:00 | 2019-07-10T20:31:58 | 90bdcdd7d50221ad17d273e1571f4094725cbb72 | {
"blob_id": "90bdcdd7d50221ad17d273e1571f4094725cbb72",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-10T20:31:58",
"content_id": "77aca17da25611b72af4bf590dc8d7aa97205282",
"detected_licenses": [
"MIT"
],
"directory_id": "781642512e426a037c41f84e945ae399ef3cf7c7",
"extension": "c"... | stackv2 |
/****************************** testing.c ***********************************
Student Name: Marshall Aaron Asch
Date: March 28, 2017
Tast harness for the library
****************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include... | 2.953125 | 3 |
2024-11-18T22:19:39.916038+00:00 | 2015-08-17T22:21:14 | 80a2ab8e97c4847944997ebc24e70c4f30608a5c | {
"blob_id": "80a2ab8e97c4847944997ebc24e70c4f30608a5c",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-17T22:21:14",
"content_id": "9c58953600102e7efcaab6e679c30cbe5c353381",
"detected_licenses": [
"MIT"
],
"directory_id": "785a0668030b80a7ef5626d52ca0327c806f256b",
"extension": "c"... | stackv2 | /* Program uses recursion to find the max number in a given array
* of size 'N'. Array can hold negative numbers and size can be
* 1 or 0. No Global variables allowed
* This project is licensed under the terms of the MIT license.
* Copyright (c) 2015 Balaji Ravindran
*/
#include <stdio.h>
#include <stdlib.h>
int ... | 3.796875 | 4 |
2024-11-18T22:19:40.254589+00:00 | 2022-12-22T00:52:35 | dc663e06c54b25f5a1c0e0403d84c57853ada5e3 | {
"blob_id": "dc663e06c54b25f5a1c0e0403d84c57853ada5e3",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-22T00:52:35",
"content_id": "a6f0114d12777d7ca9a2faa24b98bc49a0e2a87e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "9e27698a1b2442d9480046573e1df54467b855b7",
"extens... | stackv2 | #ifndef _RNO_G_PROGRAMMER_H
#define _RNO_G_PROGRAMMER_H
/*Check if this is a programmer command. (This just searches for a #PRG prefix )
* Returns 1 if it is, 0 if not */
int programmer_check_command(const char * cmd);
/* Enter programmer mode, with the command, and the io device.
* Returns 0 if we entered succ... | 2.03125 | 2 |
2024-11-18T22:19:40.331611+00:00 | 2019-07-18T14:55:18 | 2c88501eb36395981b4dbe5986bbd163294d2da5 | {
"blob_id": "2c88501eb36395981b4dbe5986bbd163294d2da5",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-18T14:55:18",
"content_id": "b452e04f9cfa93ca0cece21de1f544bc36d4ab14",
"detected_licenses": [
"MIT"
],
"directory_id": "b272dbfa0739510986e387620fee53a1501ebbc8",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "util.h"
typedef struct {
int data;
double priority;
int dir;
int step;
double dist;
} HeapType;
typedef struct {
HeapType *data;
int *list;//用来存储元素对应位置的地址表
int n;
int MaxSize;
} Heap;
Heap *InitHeap(int MaxSize);... | 3.25 | 3 |
2024-11-18T22:19:40.891529+00:00 | 2023-08-25T17:07:42 | a876053507f11f748409cdce44770f9029d29fd9 | {
"blob_id": "a876053507f11f748409cdce44770f9029d29fd9",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-25T17:07:42",
"content_id": "b8c48c7f7602f39cf4c72ef15f5b3604786d438a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e842372699fbba5e42708fc18de4cc775377e5d0",
"extensio... | stackv2 | /*
* sync.c
*
* Copyright 2012 Google, Inc
*
* 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.0625 | 2 |
2024-11-18T22:19:46.386396+00:00 | 2023-08-12T07:52:03 | b23b6cb6e996dcc81b75a9e8a095085404145c9b | {
"blob_id": "b23b6cb6e996dcc81b75a9e8a095085404145c9b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-12T13:24:08",
"content_id": "62da9b1711fa17f50bb55e0249bf4bcb93a0fcde",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1a0276218c8a103c9a76409e510df5b5690f44e5",
"extensio... | stackv2 | /**
* WinPR: Windows Portable Runtime
* Time Zone
*
* Copyright 2012 Marc-Andre Moreau <marcandre.moreau@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://ww... | 2.25 | 2 |
2024-11-18T22:19:46.871115+00:00 | 2020-11-20T00:43:40 | ab51e8427ef001eb4bf305f38cd26e2e0e0b8154 | {
"blob_id": "ab51e8427ef001eb4bf305f38cd26e2e0e0b8154",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-20T00:43:40",
"content_id": "31127452a57e44f127574d473402959eff9bce8a",
"detected_licenses": [
"MIT"
],
"directory_id": "43a7543fe98a17d01219da2d1d1f6cd71148bad0",
"extension": "c",
... | stackv2 |
int searchInsert(int* nums, int numsSize, int target){
int i;
for (i = 0; i < numsSize && target > nums[i]; i++)
;
return i;
}
| 2.46875 | 2 |
2024-11-18T22:19:46.947642+00:00 | 2020-10-09T05:56:13 | 109b034e58ae3ee218f7e8850a28d21f3a42f027 | {
"blob_id": "109b034e58ae3ee218f7e8850a28d21f3a42f027",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-09T05:56:13",
"content_id": "9bf493501e0c7f4898adfb2a51e8415b327d949e",
"detected_licenses": [
"MIT"
],
"directory_id": "a5ac39b916ced4ed80385f310b792c4d14d09b74",
"extension": "c"... | stackv2 |
/***************************************************
* Module name: main.c
*
* Copyright 2020 Company CDAC(T)
* All Rights Reserved.
*
* The information contained herein is confidential
* property of Company. The user, copying, transfer or
* disclosure of such information is prohibited except
* by express written ag... | 2.421875 | 2 |
2024-11-18T22:19:47.021760+00:00 | 2016-01-20T23:23:46 | a5fb0df2beb62a3edb67a1828a20ce17c5ebe5a0 | {
"blob_id": "a5fb0df2beb62a3edb67a1828a20ce17c5ebe5a0",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-20T23:23:46",
"content_id": "6bfced577c4bf71dd6d654325ab8ff866278d7f8",
"detected_licenses": [
"MIT"
],
"directory_id": "1788fa0ff4cfd6612f723b0512f80dc43ffd5e6f",
"extension": "c"... | stackv2 | /** Jason Luu
* Test program for logger
*/
#include "log.h"
int main(void) {
int x = 10, y = 20;
float a = 1.5f, b = -2.01f;
log_print_info("Testing logger\n\n");
log_print_info("Output separate strings: %s %s\n", "pass", "[PASS]");
log_print_info("Output two integers: x = %d y = %d\n", x, y);
log_print_warni... | 3.078125 | 3 |
2024-11-18T22:19:47.414591+00:00 | 2022-11-03T17:26:08 | e82e398de1435bf0bbff68f7efec0fde71b4b25c | {
"blob_id": "e82e398de1435bf0bbff68f7efec0fde71b4b25c",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-03T17:26:08",
"content_id": "6c81a33c24243e8504b1352de06ce549fd9850de",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ea804c3c477a6fd63c5e63a59269faeeaffa7a81",
"extens... | stackv2 | /**
* Copyright (C) 2017 Felix Wang
*
* Simulation Tool for Asynchrnous Cortical Streams (stacs)
*/
#ifndef __STACS_TYPEDEFS_H__
#define __STACS_TYPEDEFS_H__
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
typedef float real4;
typedef double real8;
typedef long double real10;
typedef int64_t id... | 2 | 2 |
2024-11-18T22:19:47.547833+00:00 | 2020-04-14T11:30:34 | 49acdb898d7276ef18c111ddd65bd3714e3e36bd | {
"blob_id": "49acdb898d7276ef18c111ddd65bd3714e3e36bd",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-14T11:30:34",
"content_id": "7c924d173620093e4755e51b998efe764ba72a56",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "c5dd53a17a44af2680afdbe42a03005334202604",
"extens... | stackv2 | /*
* heartbleed-divert quick and dirty mitigation trick for openbsd servers
* when the TLS heartbeat negotiation is detected (0x1801:0x1803) the packet is
* not re-injected into the system.
* No daemon support since this is quick-n-dirty and you have to patch your
* servers.
* suggested way of running this is ... | 2.265625 | 2 |
2024-11-18T22:19:48.199177+00:00 | 2018-04-14T19:10:22 | e7cd14577f0f6d820cdcd366fc9c4446bd90ca63 | {
"blob_id": "e7cd14577f0f6d820cdcd366fc9c4446bd90ca63",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-14T19:10:22",
"content_id": "fdc061a1eb83bfadb60a669f702693a445f36b15",
"detected_licenses": [
"MIT"
],
"directory_id": "e171c6bd75a9b52142afa21eed470c31a66854b3",
"extension": "c"... | stackv2 | #include "Hash.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
unsigned int hashval = 0;
Hash *newHash(unsigned int size)
{
Hash *ht = (Hash *)malloc(sizeof(*ht));
ht->size = size;
ht->data = (char **)malloc(sizeof(char *) * size);
ht->insert = insert;
ht->remove = remove;
ht->find = find;
... | 3.328125 | 3 |
2024-11-18T22:19:48.313456+00:00 | 2020-03-29T01:58:00 | 85da21710e1a621f22b0d0ddeae411b8c4c7f9bf | {
"blob_id": "85da21710e1a621f22b0d0ddeae411b8c4c7f9bf",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-29T01:58:00",
"content_id": "34fcd4e7b2f008fc737c6d19fc982dfef9dd25a9",
"detected_licenses": [
"MIT"
],
"directory_id": "a69dc2221025e2562623a87a93f4a5b4bafbd239",
"extension": "h"... | stackv2 | /**
* Tiny BinaryXML parser library
*
* Richard Boldiš <richard@boldis.dev>
* https://github.com/Richardds
*
*/
#ifndef __BXML_H
#define __BXML_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <stdint.h>
#define FOURCC(a,b,c,d) ((uint32_t)(((a)<<24) | ((b)<<16) | ((c)... | 2.453125 | 2 |
2024-11-18T22:19:48.487204+00:00 | 2023-09-01T05:44:44 | 3f7b1f60b821bf8c4749bddbece5f3381c940801 | {
"blob_id": "3f7b1f60b821bf8c4749bddbece5f3381c940801",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-01T05:44:44",
"content_id": "90740bb324e92f54f3cf4ec24e436a148e47563a",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "237946a53f07ee919d1da50c7bebfb95... | stackv2 | #include <stdio.h>
#include <errno.h>
#include <sys/param.h>
#include <sys/ucred.h>
#include <sys/mount.h>
#include <stdlib.h>
#include <string.h>
char *find_type(int t);
char *expand_flags(int f);
int main(void)
{
struct statfs *mntlist;
int n, i;
n = getmntinfo(&mntlist, MNT_NOWAIT);
if (n < 0) {
fprintf(stderr, ... | 2.34375 | 2 |
2024-11-18T22:29:40.053400+00:00 | 2017-01-13T20:11:56 | e2290eab418da5f0b986a80f4c191dbcd389f7ee | {
"blob_id": "e2290eab418da5f0b986a80f4c191dbcd389f7ee",
"branch_name": "refs/heads/develop",
"committer_date": "2017-01-13T20:11:56",
"content_id": "da00623ff3f2135fbd8c2c6155c488784c77b252",
"detected_licenses": [
"MIT"
],
"directory_id": "0bb25b299497596033b17192ece360bd540b410f",
"extension": "h... | stackv2 | /**
* @file
*
* @copyright 2015 opencxa.org
*
* 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... | 2.015625 | 2 |
2024-11-18T22:29:40.307144+00:00 | 2018-08-17T16:41:36 | e6f5fa612ec4ffcae84236843a73e8d8f162506f | {
"blob_id": "e6f5fa612ec4ffcae84236843a73e8d8f162506f",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-17T16:41:36",
"content_id": "5f9bb53d02343dd7ca2f7cc9c0d793fa2f7a79f6",
"detected_licenses": [
"MIT"
],
"directory_id": "aa59bf96b1644bd5ff55c370ce278042c53e004b",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sacak-lcp.h"
#include "experiments/external/malloc_count.h" //memory counter
int main(int argc, char *argv[]){
printf("sizeof(int_t) = %zu bytes\n", sizeof(int_t));
unsigned char *Text;
// intput data
if(argc==2){
Text = malloc((strlen(argv[... | 2.703125 | 3 |
2024-11-18T22:29:40.382405+00:00 | 2019-08-24T21:53:15 | 77dc14421ae051c7f42e479e34a3ef03196c289a | {
"blob_id": "77dc14421ae051c7f42e479e34a3ef03196c289a",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-24T21:53:15",
"content_id": "4f2ef728aa86f3f6067610b5679eee72b5fbb448",
"detected_licenses": [
"MIT"
],
"directory_id": "002421eef7a82858ceb1bd272d1adc7773e04b84",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "grafo.h"
#include "lista.h"
#include "utils.h"
#include "tarjam.h"
#include "visitar.h"
#include "inicializar.h"
#include "destruir.h"
// Devuelve un vértice no visitado aún
// a partir del arreglo de visitados.
char* obtener_vertice(bool* visita... | 2.78125 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.