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-18T21:19:27.016371+00:00 | 2017-02-06T23:05:10 | 293778ca4964b4f41b940899af3e17030cd57889 | {
"blob_id": "293778ca4964b4f41b940899af3e17030cd57889",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-06T23:05:10",
"content_id": "f014c2342478df4b65e39a2e2e13ea4da4cc4aa8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3716cdd68062f8df8d3b00175b07e1c029f099c8",
"extensio... | stackv2 | #include <stdarg.h>
#include <cimplog.h>
#define LEVEL_ERROR 0
#define LEVEL_INFO 1
#define LEVEL_DEBUG 2
#define MSG_BUF_SIZE 4096
#ifdef CIMP_LOGGER
#define WdmpError(...) cimplog_error("WDMP-C", __VA_ARGS__)
#define WdmpInfo(...) cimplog_info("WDMP-C", __VA_ARGS__)
#define WdmpPrint(...) cimplog_debug("WDMP-C",... | 2.46875 | 2 |
2024-11-18T21:19:28.012337+00:00 | 2019-12-14T13:18:35 | cad2084f4981cb8f31a84478630c5b1c2f50fdd4 | {
"blob_id": "cad2084f4981cb8f31a84478630c5b1c2f50fdd4",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-14T13:18:35",
"content_id": "c554232275b9fb6a5c7841de87a8ca5cf450b2c0",
"detected_licenses": [
"MIT"
],
"directory_id": "2b4620564fb2d60c996edfdfea570949607ba7e2",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#define MAXVAL 1000000
int father[MAXVAL];
int nodes[MAXVAL];
struct pair {
int nodeVal;
int distFromYou;
} encountered[1001];
int ascend(int val) {
if (!father[val]) return 0;
return 1 + ascend(father[val]);
}
int main() {
char s[10];
int sSize;
do {
scanf("%s",... | 3.09375 | 3 |
2024-11-18T21:19:29.363725+00:00 | 2017-01-03T20:08:37 | ae66eee08dbb9ee9db376e63dc0cd953dc5ade35 | {
"blob_id": "ae66eee08dbb9ee9db376e63dc0cd953dc5ade35",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-03T20:08:37",
"content_id": "3abb051b866d2e3e60119b0571e403da9a082152",
"detected_licenses": [
"MIT"
],
"directory_id": "1260328edbb4fb58cb2652005974ef7fd832184d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define FIELD_MAX_LENGTH 30
typedef struct Enterprise {
unsigned id;
char name[FIELD_MAX_LENGTH],
grad;
double salery;
} Enterprise;
Enterprise* make_enterprise(char name[], char grad, double salery) {
Enterprise* e = (Enterprise*) m... | 2.765625 | 3 |
2024-11-18T21:19:29.765115+00:00 | 2021-05-02T05:45:42 | ae1e2d1c3b1c44753ba288e89c911c1ed6491881 | {
"blob_id": "ae1e2d1c3b1c44753ba288e89c911c1ed6491881",
"branch_name": "refs/heads/UG",
"committer_date": "2021-05-02T05:45:42",
"content_id": "74ffade270dc5e6e7fd9a5e3b89f88d2ba3c8459",
"detected_licenses": [
"MIT"
],
"directory_id": "83b664aa43698a61d1958b6e1cc44326086c65b0",
"extension": "c",
... | stackv2 | /*
In ordinary chess, the pieces are only of two colors, black and white. In our version of chess, we are including new pieces with unique movements. One of the most powerful pieces in this version is the red knight.
The board is a grid of size . Each cell is identified with a pair of coordinates , where is the row nu... | 3.5625 | 4 |
2024-11-18T21:19:29.812010+00:00 | 2018-09-06T12:08:12 | 6ce495b29975759f4fd0b8b8084f4d0569cad70d | {
"blob_id": "6ce495b29975759f4fd0b8b8084f4d0569cad70d",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-06T12:08:12",
"content_id": "a49380adda1e58145e2e5bc25a8d62b09a1526fd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "80d8e2f02434343c5bb281706ec45ffb983bae96",
"extensio... | stackv2 | #include <stdio.h>
#include <string.h>
#define maxSize 50
void addTask(char &titles[maxSize], char &todos[maxSize], int &count) {
printf("\nOk, type the task title: ");
scanf("%s", &titles[count]);
printf("\nType a description for her: ");
scanf("%s", &todos[count]);
count++;
}
void listTasks(char... | 3.40625 | 3 |
2024-11-18T21:19:29.926533+00:00 | 2021-08-13T01:55:34 | 07bd76746b175fb6e4b81da90d6ffe827ff7ba16 | {
"blob_id": "07bd76746b175fb6e4b81da90d6ffe827ff7ba16",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-13T01:55:34",
"content_id": "5f36d2b122727d09b9d3d8563f629d86bd173882",
"detected_licenses": [
"MIT"
],
"directory_id": "54a33569a772835c8e49c0ec75c96644bb3f8132",
"extension": "h"... | stackv2 | #ifndef __CHECK_H__
#define __CHECK_H__
#include "esp_log.h"
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Tag used on ESP_LOG* macros.
*/
static const char *MCP320X_TAG = "mcp320x";
/**
* @brief Macro that forces a method to return a value
* based on a failed condition.
*
* @param condition Co... | 2.453125 | 2 |
2024-11-18T21:19:30.013358+00:00 | 2021-04-11T04:02:30 | b8990e4db817af97a3572a87c99070a4260b79a9 | {
"blob_id": "b8990e4db817af97a3572a87c99070a4260b79a9",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-11T04:02:30",
"content_id": "16585ca3c881a806d343e0957e41dd18c717c3a5",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0fbeec732c0b94f14bacb74647d9b9f5207e1e95",
"extens... | stackv2 | //
// Created by TYTY on 2020-08-08 008.
//
#include "utils.h"
inline void helper_recurrent(u32* cur, u32* pre, u32 mul) {
u32 tmp = mul * *cur + *pre;
*pre = *cur;
*cur = tmp;
}
// rationalize number into fraction using continue fraction
void Rationalize(double number, u32* num, u32* den, u32 max) {
u32 num... | 3.046875 | 3 |
2024-11-18T21:19:30.460171+00:00 | 2020-03-21T17:59:39 | dadc0546bfe606b4197411eb2df6ce2b74e253dc | {
"blob_id": "dadc0546bfe606b4197411eb2df6ce2b74e253dc",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-21T17:59:39",
"content_id": "b4a91dd217efa52204a40b9ed2777cf3b50f3456",
"detected_licenses": [
"Unlicense"
],
"directory_id": "c5d28dd25fca2f21c9fc73c654d6dcf94fa96692",
"extension... | stackv2 | #ifndef INCLUDE_SOCKET_LIB
#define INCLUDE_SOCKET_LIB 1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
/* See http://stackoverflow.com/questions/12765743/getaddrinfo-on-win32 */
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <winsock2.h>
#include... | 2.578125 | 3 |
2024-11-18T21:19:30.612422+00:00 | 2016-12-28T18:16:58 | 68ffa3e5f9f4aa9f87f256eeb40bc4e0f558be17 | {
"blob_id": "68ffa3e5f9f4aa9f87f256eeb40bc4e0f558be17",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-28T18:16:58",
"content_id": "eafd7a9c7a60a5c17b5f3847d27c9051803e3369",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "ae7ec837eb954d7be7878f367aa7afb70d1a3897"... | stackv2 | /* MD5 DLL header file, (c) 1994 Andrew Brown */
/* modified and ported to Win32 by Kirchhoff Consulting */
#ifndef __MD5_H__
#define __MD5_H__
#ifndef DWORD
#define DWORD unsigned __int32
#endif
#ifndef BYTE
#define BYTE unsigned char
#endif
#ifndef LPBYTE
#define LPBYTE BYTE*
#endif
void MD5(const LPBYTE data,int... | 2.125 | 2 |
2024-11-18T21:19:30.803857+00:00 | 2019-12-28T11:22:32 | 60c0ade7a937eb71f5b65646da81544267cbaa83 | {
"blob_id": "60c0ade7a937eb71f5b65646da81544267cbaa83",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-28T11:22:32",
"content_id": "984338284debff0d8a6ad961f652d71943297e94",
"detected_licenses": [
"MIT"
],
"directory_id": "1673c6df69c93452eb1ff5a5f06e2cf7b84158c4",
"extension": "h"... | stackv2 | #define STB_DS_IMPLEMENTATION
#include "lib/stb_ds.h"
/*
stb_ds.h:
Source: https://github.com/nothings/stb/blob/master/stb_ds.h
Docs: http://nothings.org/stb_ds
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXCHAR 10000
char* * read_lines(const char* fname)
{
char* *lines = NULL; //... | 2.484375 | 2 |
2024-11-18T21:19:31.185200+00:00 | 2023-08-28T17:04:44 | e23dbf145f2bc9df31cc12ae6a48259f13891e5c | {
"blob_id": "e23dbf145f2bc9df31cc12ae6a48259f13891e5c",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T17:07:16",
"content_id": "494ae486305fbf3797b990c6429b94c7ebabcbc7",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7309a4d3579a04eecef51cb20238530ddfdd02ac",
"extens... | stackv2 | #include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define NS 8 // number of segment
struct timeval tv;
#define mytime(time) do{ \
gettimeofday(&tv,NULL); \
time=(unsigned long)(tv.tv_sec*1000000+tv.tv_usec); \
}while(0)
int main(int argc, char** argv)
{... | 2.734375 | 3 |
2024-11-18T21:19:31.663455+00:00 | 2016-03-16T07:46:05 | 2b99dfc6b1508cf136e45dfb96dec5ef35ccd26a | {
"blob_id": "2b99dfc6b1508cf136e45dfb96dec5ef35ccd26a",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-16T07:46:05",
"content_id": "f978996e35f8f7aab753d133a5d24a246002b0cf",
"detected_licenses": [
"MIT"
],
"directory_id": "3e4f9c2856564e2314cb71d07909891d1b740e6a",
"extension": "h"... | stackv2 | /*
* (C) 2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
*... | 2.015625 | 2 |
2024-11-18T21:19:33.021166+00:00 | 2021-11-05T23:13:00 | 04ef27341b4f326cb7ed120944af2dd4cbcdd6ef | {
"blob_id": "04ef27341b4f326cb7ed120944af2dd4cbcdd6ef",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-05T23:13:00",
"content_id": "9579700b633f6f9bf47b6378e465b060526ce5a5",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "62cf9edf9e1d5d63c23120d5bb05a1178d86541b",
"extens... | stackv2 | // THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
/*
* Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _HARDWARE_STRUCTS_WATCHDOG_H
#define _HARDWARE_STRUCTS_WATCHDOG_H
#include "hardware/address_mapped.h"
#include "hardware/regs/watchdog.h"
// Ref... | 2.265625 | 2 |
2024-11-18T21:19:33.840278+00:00 | 2020-02-24T13:05:00 | c88bdd00cb2909502d4627408bfcb3b6e44c472c | {
"blob_id": "c88bdd00cb2909502d4627408bfcb3b6e44c472c",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-24T13:05:00",
"content_id": "d8ddf8d2271f9fe257e917ccbbb72005197286d7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "2601caee7c6e60456521d67b7b26855423669f10",
"extensio... | stackv2 | #include <algorithm>
#include <CGAL/Random.h>
#if BOX_D_BOX_D_BATCH_TRACE_EXECUTION
# include <CEP/intersection/Indentation.h>
# define RECURSE_ENTER ++indent;
# define RECURSE_LEAVE --indent;
#else
# define RECURSE_ENTER
# define RECURSE_LEAVE
#endif
namespace CEP {
namespace intersection {
// Whe... | 2.1875 | 2 |
2024-11-18T21:19:34.054355+00:00 | 2021-06-29T02:10:14 | fd021f3cf1de0a5f41bb5f79ee54d5d129730637 | {
"blob_id": "fd021f3cf1de0a5f41bb5f79ee54d5d129730637",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-29T02:10:14",
"content_id": "3a4f69c25d2862bbf88f2e5f460cfaf92ff674fa",
"detected_licenses": [
"MIT"
],
"directory_id": "61545ffb3d820850e3fd849b1b7c3e2f6e64fbcf",
"extension": "c",
... | stackv2 | #include <iostream>
#include <time.h>
#include <stdlib.h>
using namespace std;
int main(){
srand( (unsigned)time(NULL) );
int a;
float b, c;
for(a = 1; a <= 5; a++){
cout << "\nDigite sua opção para jogar\n 0 = Pedra\n 1 = Papel\n 2 = Tesoura" << endl;
cin >> b;
c = (rand() % 10... | 2.8125 | 3 |
2024-11-18T21:46:43.061010+00:00 | 2018-09-02T18:56:49 | d7ab498f40411921d86a52e2ee95be1dfa1e1b80 | {
"blob_id": "d7ab498f40411921d86a52e2ee95be1dfa1e1b80",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-02T18:56:49",
"content_id": "ff5a49013f79a74557fc02eac875bca07bec85b6",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "99cf6d1e45ccd4f86da6a89fe4163fb6b92f7414",
"extens... | stackv2 | #pragma once
typedef struct RB_DATA
{
//Буфер, в котором храняться данные.
uint8_t* buffer;
//Количество элементов в буфере.
uint16_t size;
//Максимально возможное количество элементов в буфере.
uint16_t capacity;
uint16_t read_pos;
uint16_t write_pos;
} RB_DATA;
void rb_init(RB_DA... | 2.453125 | 2 |
2024-11-18T21:46:43.204138+00:00 | 2015-02-23T16:05:34 | f4431437bf2e129c2ba55045f34b95c1591205aa | {
"blob_id": "f4431437bf2e129c2ba55045f34b95c1591205aa",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-23T16:05:34",
"content_id": "271408f29e5b83b0aac21c4555824a727adf47a4",
"detected_licenses": [
"Zlib"
],
"directory_id": "4e48385aa557e2f704296f63ed474c22ae94533b",
"extension": "h... | stackv2 | /*
svc.h _ Syscall wrappers.
*/
#pragma once
typedef enum {
MEMOP_FREE =1, // Free heap
MEMOP_ALLOC=3, // Allocate heap
MEMOP_MAP =4, // Mirror mapping
MEMOP_UNMAP=5, // Mirror unmapping
MEMOP_PROT =6, // Change protection
MEMOP_FREE_LINEAR =0x10001, // Free linear heap
MEMOP_ALLOC_LINEAR=0x10003 // Alloc... | 2.15625 | 2 |
2024-11-18T21:46:43.512945+00:00 | 2020-10-20T19:44:54 | 35c1be12ebf4826e32d338d817278c3b2acbd1f9 | {
"blob_id": "35c1be12ebf4826e32d338d817278c3b2acbd1f9",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-20T19:44:54",
"content_id": "dfe8db417d6b4e8a8a4ce20d39662f3f3754539e",
"detected_licenses": [
"MIT"
],
"directory_id": "11b6bf957f3c2b1cf08c217014bb7f69ec713d8f",
"extension": "h"... | stackv2 | //*****************************************************************************
//
// TimerAB.h - Driver for the TIMER A & B Modules. Based on TI's MSP430Ware.
//
//*****************************************************************************
#ifndef MSP430_TIMER_AB__H
#define MSP430_TIMER_AB__H
// These defines let... | 2.125 | 2 |
2024-11-18T21:46:43.654733+00:00 | 2020-04-01T20:05:02 | c05645a9f16818c9be1c75df3f6474575d496053 | {
"blob_id": "c05645a9f16818c9be1c75df3f6474575d496053",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-01T20:15:48",
"content_id": "7bf48e097eb457697294c9b5a06169077aec8600",
"detected_licenses": [
"MIT"
],
"directory_id": "2056375c5c30e253c758193e124adf528c3a4593",
"extension": "c"... | stackv2 | #include "cogscenemanager.h"
#include "cogscene.h"
#include "coggc.h"
#include "cogrendersystem.h"
#include "cogrenderer.h"
static struct {
CogHash(CogScene) scenes;
CogScene activeScene;
CogCleanupPool pool;
} __cog_scene_manager__;
void CogSceneManagerInit(void) {
__cog_scene_manager__.act... | 2.46875 | 2 |
2024-11-18T21:46:43.964114+00:00 | 2015-11-29T16:45:04 | 6c01b815646600a80d801897398f7b51de70a9a6 | {
"blob_id": "6c01b815646600a80d801897398f7b51de70a9a6",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-29T16:45:04",
"content_id": "db5259e75112f567ebb2dd3ded9d48a77d71fc63",
"detected_licenses": [
"MIT"
],
"directory_id": "b637646597e9eb202d28bcdfb8294e53b8dc2c40",
"extension": "c"... | stackv2 | /* In C, it is not mandatory to declare functions. If not declared,
* the compiler will not check for the datatype of the
* arguments/return variable. If the function definition is
* available at the time of linking, the executable will be
* generated. To test this behavior, compile the below code with a
* standar... | 3.0625 | 3 |
2024-11-18T21:46:44.734036+00:00 | 2019-03-27T17:08:39 | 37daffa77be43740048fbbfbcb4fe3e7451e9358 | {
"blob_id": "37daffa77be43740048fbbfbcb4fe3e7451e9358",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-27T17:08:39",
"content_id": "16d4f1acd6000cc8167fab9d4f1fddad62648529",
"detected_licenses": [
"MIT"
],
"directory_id": "2a749cdd8cd1822f81d9e57eb4097f4842066a72",
"extension": "c"... | stackv2 | // selection.c
#include <stdbool.h>
#include "sort.h"
void selection_sort(ssize_t *tab, size_t size)
{
size_t min_idx = 0;
for (size_t idx = 0; idx < size; idx++) {
min_idx = idx;
for (size_t i = idx + 1; i < size; i++)
if (tab[i] < tab[min_idx])
min_idx = i;
SWAP(tab[idx], tab[min_idx]... | 2.59375 | 3 |
2024-11-18T21:46:46.669345+00:00 | 2016-06-10T19:46:40 | 25cc8931312b5f3b160cca4c96c8b9dd61307245 | {
"blob_id": "25cc8931312b5f3b160cca4c96c8b9dd61307245",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-02T15:53:59",
"content_id": "0fcc33e30ce0aa022fdcb90ed971677f2788e911",
"detected_licenses": [
"MIT"
],
"directory_id": "f9a04279d9df0ecd1c2d7c972c26514b785f4a94",
"extension": "h"... | stackv2 | #ifndef VUI_MEM_H
#define VUI_MEM_H
#ifdef __cplusplus
extern "C"
{
#endif
#include <stdlib.h>
#if __GNUC__
#define typeof __typeof__
#define VUI_MEM_HAS_TYPEOF
#endif
static inline void* vui_malloc(size_t size)
{
void* ptr = malloc(size);
if (ptr == NULL)
{
abort();
}
return ptr;
}
#define vui_new(type)... | 2.265625 | 2 |
2024-11-18T21:46:47.063391+00:00 | 2022-06-12T06:20:45 | 9c3e81a5744328f776513432e3670599fc53baaf | {
"blob_id": "9c3e81a5744328f776513432e3670599fc53baaf",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-12T06:20:45",
"content_id": "03ebe86d447a847b8c375ce1d171b676a6aa981b",
"detected_licenses": [
"MIT"
],
"directory_id": "080de5d0e4a84821eb6d636f645cf92a92348048",
"extension": "h"... | stackv2 | #include "stm32f10x.h"
#include "stm32f10x_i2c.h"
#include "hal_i2c.h"
#include "stdio.h"
#include "utils.h"
#define AT24CX_ADDR 0x50
/* 从AT24CXX的指定地址开始读出一个字节 */
uint8_t AT24CXX_ReadByte(uint8_t ReadAddr);
/* */
/**
* @brief 向AT24CXX的指定地址开始写入一个字节
* @param WriteAddr:E2PROM中偏移地址
* @param Data:写入的数据
* @retval None
*... | 2.1875 | 2 |
2024-11-18T21:46:49.712499+00:00 | 2019-10-04T17:41:05 | b4660daaedecbc28bab5a3fe72891fea9e3bd31d | {
"blob_id": "b4660daaedecbc28bab5a3fe72891fea9e3bd31d",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-04T17:41:05",
"content_id": "7d0790e054e90fc31917c6f0759c964f0131899f",
"detected_licenses": [
"MIT"
],
"directory_id": "f6b91c939a59100ebdf864db7111a3cabdff5167",
"extension": "c"... | stackv2 |
#include "common.h"
#include "x86_codegen.h"
#include "x86_intrinsics.h"
#include "x86_data.h"
#include "x86_stack_frame.h"
#include "x86_regalloc.h"
static function_desc *_curr_codegen_func = NULL;
static void _evaluate_nested_expression(expression *expr, x86_operand *res);
int x86_codegen_alloc_pseudoreg(x86_o... | 2.359375 | 2 |
2024-11-18T21:46:50.084224+00:00 | 2023-04-20T16:21:09 | f047526c7531c704567d0dbce1095c1d84d58b7a | {
"blob_id": "f047526c7531c704567d0dbce1095c1d84d58b7a",
"branch_name": "refs/heads/develop",
"committer_date": "2023-04-20T16:21:09",
"content_id": "bdecf635dc1cf355f8deae6424504926b40a75a8",
"detected_licenses": [
"MIT"
],
"directory_id": "074275a1e75dcd65c623094fe9fd35a5dae09be8",
"extension": "h... | stackv2 | /**
* @file boundary_type.h
* @details The boundaryType enum.
* @date January 10, 2015
* @author William Boyd, MIT, Course 22 (wboyd@mit.edu)
*/
#ifndef BOUNDARY_TYPE_H_
#define BOUNDARY_TYPE_H_
/**
* @enum boundaryType
* @brief The types of boundary conditions supported by OpenMOC for Surfaces.
*/
enum bound... | 2.09375 | 2 |
2024-11-18T21:46:51.086285+00:00 | 2017-12-31T06:15:12 | 445f7267d6d41ab36b0d05c36b3facda460552ce | {
"blob_id": "445f7267d6d41ab36b0d05c36b3facda460552ce",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-31T06:15:12",
"content_id": "5deba497e576cdc2c45325d69a65f3e049d76c8e",
"detected_licenses": [
"MIT"
],
"directory_id": "4dde57659f3f240855b91cb538b12e5a19785648",
"extension": "c"... | stackv2 | // SPDX-License-Identifier: MIT
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h> /* access/symlink */
#include <sys/stat.h> /* lstat */
#include "write.h"
static void clear_filename(struct write_context *ctx)
{
memset(ctx->filename, '\0', UARTLO... | 2.859375 | 3 |
2024-11-18T21:46:51.181699+00:00 | 2022-05-21T03:56:49 | f08db758b81508c3bf6776043c06d02a1134e64c | {
"blob_id": "f08db758b81508c3bf6776043c06d02a1134e64c",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-21T03:56:49",
"content_id": "99405e06314bf3a8a7cde38f00209251da11659a",
"detected_licenses": [
"MIT"
],
"directory_id": "2074e3fc5555db28dfd8138475826145cc26a5fc",
"extension": "h"... | stackv2 | #ifndef _RECEIVEMAIL_H_
#define _RECEIVEMAIL_H_
#include "tools.h"
int watch_inbox(){
//连接服务器,参数,服务器地址,ip地址,端口号
if(connectHost(IMAP_SERVER, IMAP_IP, IMAP_PORT)<0){
return -1;
}
//登录
char ch[1024];
char name[100];
char passwd[100];
getNamePasswd(name,passwd);
sprintf(ch, "a001 LOGI... | 2.296875 | 2 |
2024-11-18T21:46:51.829524+00:00 | 2020-06-08T01:40:16 | c87afcb0186de4f6c9a4b7d13878b26d72e52a09 | {
"blob_id": "c87afcb0186de4f6c9a4b7d13878b26d72e52a09",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-08T01:40:16",
"content_id": "f37d88b357379d0d871767659d682bc56300c76f",
"detected_licenses": [
"MIT"
],
"directory_id": "6730df00dc939b24c45ffea377e21e00de1757cd",
"extension": "h"... | stackv2 | #pragma once
#include <c_types.h>
#include "IPAddress.h"
struct stepper_command_packet {
unsigned short port;
char opcode;
uint8_t queue;
signed int step_num;
unsigned short step_rate;
uint8_t motor_id;
stepper_command_packet()
{
}
stepper_command_packet(uint8_t* data)
{... | 2.03125 | 2 |
2024-11-18T21:46:52.407233+00:00 | 2019-04-16T12:42:31 | 6f5a9ac8a96b1021d8e990fdf7acf09d5af2a1d0 | {
"blob_id": "6f5a9ac8a96b1021d8e990fdf7acf09d5af2a1d0",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-16T12:42:31",
"content_id": "6803c142d4017f8aafd8a7d035984cb1e7170cc4",
"detected_licenses": [
"MIT"
],
"directory_id": "e1f8050196ce92a5310c47c543f5a10313869fe5",
"extension": "c"... | stackv2 | #include "../../firmware.h"
#include "../../test.h"
/* Test inputs */
const uint8_t crc_test_1[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, ... | 2.15625 | 2 |
2024-11-18T21:46:52.707277+00:00 | 2020-10-27T15:55:35 | 90d47dc00d1279940da76b96e802153b2c5ee23d | {
"blob_id": "90d47dc00d1279940da76b96e802153b2c5ee23d",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-27T15:55:35",
"content_id": "512ad2191e4ceeee506db37f81030684eded2bdd",
"detected_licenses": [
"MIT"
],
"directory_id": "6051309308a94d65e887721cd56eb2273354fe7f",
"extension": "c",
... | stackv2 | #include <linux/init.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/i2c.h>
#include <linux/of_platform.h>
/*** このデバイスに関する情報 ***/
MODULE_LICENSE("Dual BSD/GPL");
#define DRIVER_NAME "MyDevice" /* /proc/devices等で表示されるデバイス名 */
/* このデバイスドライバで取り... | 2.1875 | 2 |
2024-11-18T21:46:53.035817+00:00 | 2019-07-17T06:16:36 | 840bcf12a3b154558702e0d9e8d1f0a11fdf4b07 | {
"blob_id": "840bcf12a3b154558702e0d9e8d1f0a11fdf4b07",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-17T06:16:36",
"content_id": "fbe64c999453d937452558ac496378021a09e34f",
"detected_licenses": [
"MIT"
],
"directory_id": "71718298dfa45639d3f325b7fd89c0e5cda83d24",
"extension": "c"... | stackv2 | /**
* 静态链表
* 用数组描述的链表
*/
#include <stdio.h>
#define MAXSIZE 1000
#define OK 1
#define ERROR 0
#define TRUE 1
#define FALSE 0
typedef int ElemType;
typedef int Status;
typedef struct
{
ElemType data;
int cur; // 游标(Cursor),为0表示无指向
} Component, StaticLinkList[MAXSIZE];
Status InitList(StaticLinkList space)
{
i... | 3.328125 | 3 |
2024-11-18T21:46:54.142223+00:00 | 2023-08-17T16:08:06 | 7b08592691dc31e44c0a8924b62bfe1066411676 | {
"blob_id": "7b08592691dc31e44c0a8924b62bfe1066411676",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T16:08:06",
"content_id": "a558106a1162e8545b178a455f291dd47d546a34",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066",
"extensio... | stackv2 |
/* genrcm.f -- translated by f2c (version 19931217).*/
#include <petscsys.h>
#include <petsc/private/matorderimpl.h>
/*****************************************************************/
/*****************************************************************/
/********* GENRCM ..... GENERAL REVERSE CUTHILL MCKEE ******... | 2.3125 | 2 |
2024-11-18T21:46:54.346624+00:00 | 2014-04-03T17:17:22 | 2d52081893eaee4836b961e4dd43f676caea2159 | {
"blob_id": "2d52081893eaee4836b961e4dd43f676caea2159",
"branch_name": "refs/heads/master",
"committer_date": "2014-04-03T17:17:22",
"content_id": "1ded7106633674b139556bfa3a7b28209d996741",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "d1c40ebb4f6f92afed20858248ff829d97386a40",
"... | stackv2 | #include "syscall.h"
int main() {
PutString("Veuillez saisir un nombre : \n");
int nombre = GetInt();
PutString("Your number +100 = ");
PutInt(nombre+100);
PutChar('\n');
Halt();
return 0;
}
| 2.3125 | 2 |
2024-11-18T21:46:54.522317+00:00 | 2015-05-15T08:06:17 | 29169b0f3ca30fa1e9b635f9d8de26a859a80303 | {
"blob_id": "29169b0f3ca30fa1e9b635f9d8de26a859a80303",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-15T08:06:17",
"content_id": "08b7664d05980182dc1137635061455c132614b2",
"detected_licenses": [
"NCSA"
],
"directory_id": "0703984183ca342d0277787ae4e26ec137fd48ca",
"extension": "c... | stackv2 | /*
* Performs many different string operations to ensure all different operators perform.
* Tests to make sure klee_assert and klee_assume work with the new features.
*/
#include <klee/klee.h>
char* cmp_str (char *a, char *b) {
if (strcmp(a, b) == 0)
return a;
else if (strcmp(a,b) > 0)
return a;
else... | 2.625 | 3 |
2024-11-18T21:46:54.891305+00:00 | 2023-07-08T09:56:44 | 5483e9be7c45293bec940449bf6ee9ae0ab16c18 | {
"blob_id": "5483e9be7c45293bec940449bf6ee9ae0ab16c18",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-08T09:56:44",
"content_id": "f429948ea85284e20c75a89e662dfdb475a31fb5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f62ddee2dcadcae0e90f969be513b04e16dabf58",
"extension"... | stackv2 | /*
* Narrow character string functions
*
* Copyright (C) ${copyright}, ${authors}
*
* Refer to AUTHORS for acknowledgements.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, eit... | 2.234375 | 2 |
2024-11-18T21:46:55.136684+00:00 | 2023-01-03T22:58:14 | 143548b1b899b256b9e6186eb35265817f6e24ef | {
"blob_id": "143548b1b899b256b9e6186eb35265817f6e24ef",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-03T22:58:14",
"content_id": "c18c60e534fdb09e42bd48b210982d23650f7780",
"detected_licenses": [
"MIT"
],
"directory_id": "942ca1c822a197d4b409bc50e6f46392343281c5",
"extension": "c"... | stackv2 | /*
* Author: Jon Trulson <jtrulson@ics.com>
* Copyright (c) 2016 Intel Corporation.
*
* Based on UPM C++ drivers originally developed by:
* Author: Yevgeniy Kiveisha <yevgeniy.kiveisha@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
*... | 2.046875 | 2 |
2024-11-18T21:46:55.193162+00:00 | 2018-12-19T13:15:37 | c015d313bfdc20fef71a062c880234009aa210e6 | {
"blob_id": "c015d313bfdc20fef71a062c880234009aa210e6",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-19T13:15:37",
"content_id": "5d8bb092baecd097bdd194d5a561017a50e784f7",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "cd903facec5ea630b0f8c6f7d46859a1f792c03f",
"extensio... | stackv2 | #include <stdlib.h>
#include "PMVTG_CString.h"
#include "PMVTG_Table.h"
#include "PMVTG_Column.h"
#include "PMVTG_Config.h"
// INIT TABLE
void initTable(Table *table) {
int i;
*table = (Table) malloc (sizeof(struct s_Table));
(*table)->name = NULL;
(*table)->nCols = 0;
(*table)->cols = (struct s_Column**) mall... | 2.921875 | 3 |
2024-11-18T21:46:55.698406+00:00 | 2015-02-28T22:34:20 | 5eeda314deb12db7a239b44086e63eba92f59d20 | {
"blob_id": "5eeda314deb12db7a239b44086e63eba92f59d20",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-28T22:34:20",
"content_id": "db7f7c932cc901f3e7da341d40d62ca82aab1f38",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3d877daa96f841a5b7b3140f81b8fe82f6c4a246",
"extens... | stackv2 | /*
* network.c -- handles stuff dealing with connecting and name resolving
*
* Written by Jeremy Nelson in 1995
* See the COPYRIGHT file or do /help ircii copyright
* $Id: network.c,v 1.2 2001/07/08 21:33:55 edwards Exp $
*/
#define SET_SOURCE_SOCKET
#include "teknap.h"
#include "struct.h"
#include "cdns.h"
#inc... | 2.21875 | 2 |
2024-11-18T21:46:55.986897+00:00 | 2018-06-21T15:18:20 | 4a5c83ea41d13f22e5a0e378a89ffe11ffca44e5 | {
"blob_id": "4a5c83ea41d13f22e5a0e378a89ffe11ffca44e5",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-21T15:18:20",
"content_id": "937c8c68d0c436223949ac6008368dce46e12f30",
"detected_licenses": [
"MIT"
],
"directory_id": "9e4ee3ed8b591bc79c21c426139c1de96bb10f7c",
"extension": "h"... | stackv2 | #if !defined(LOGOUT_H)
#define LOGOUT_H
#include <stdio.h>
#include <stdarg.h>
#ifdef _WINDOWS
#include <process.h>
#endif
extern FILE* logstr;
#ifdef _WINDOWS
#include <direct.h>
#define GetCurrentDir _getcwd
#else
#include <unistd.h>
#define GetCurrentDir getcwd
#endif
inline char* GET_LO... | 2.484375 | 2 |
2024-11-18T21:46:56.090687+00:00 | 2019-04-28T14:54:34 | ab4efef1e468b46e608aa723aa21cdeaa3db2074 | {
"blob_id": "ab4efef1e468b46e608aa723aa21cdeaa3db2074",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-28T14:54:34",
"content_id": "d489fb792e4c84b2c973736c8508d39029567845",
"detected_licenses": [
"MIT"
],
"directory_id": "0c24494e4ebacd2a2421a3d17e13fc794ee9f95e",
"extension": "c"... | stackv2 | /* Editor : MUSIC5TAND
LATEST MODIFIED DATE : 2019-04-28
I want some macarons. */
#include "lib/m5shell.h"
int run_cd(char *args[]){
if(args[1] != NULL){
if(!strcmp(args[1],"..")){ /* command line : cd .. */
chdir("..");
return 0;
... | 2.109375 | 2 |
2024-11-18T21:46:56.497358+00:00 | 2021-02-08T00:07:39 | c43e51f0639287d1dc956f09da95e7c77c4caa51 | {
"blob_id": "c43e51f0639287d1dc956f09da95e7c77c4caa51",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-08T00:07:39",
"content_id": "c957e70d78a192f3e2deeb5d70a0cd42100a6394",
"detected_licenses": [
"MIT"
],
"directory_id": "327285f8a356ef4048cb89bafcb2b5775bdb432c",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "orka-utils.h"
#include "jsmn.h"
#include "json-scanf.h"
#if 0
static char * print_token(jsmntype_t t) {
switch(t) {
case JSMN_UNDEFINED: return "undefined";
case JSMN_OBJECT: return "object";
case JSMN_ARRAY: return "array";
case ... | 2.171875 | 2 |
2024-11-18T21:46:56.597533+00:00 | 2020-04-15T20:58:21 | ac7d07359a35746bde131284007264cfa8725602 | {
"blob_id": "ac7d07359a35746bde131284007264cfa8725602",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-15T20:58:21",
"content_id": "3efc18a9845809154f975f9696080fc3dee827a9",
"detected_licenses": [
"MIT"
],
"directory_id": "ebc700cb11b49d5319544d3f7bbc8882250a8e5a",
"extension": "c"... | stackv2 | #include <math.h>
#include <stdlib.h>
#include <stdint.h>
#include <devices.h>
#include <audio.h>
#include <drv_led.h>
#include <led_info.h>
#include "IIR.h"
#define PI 3.1415926535897932384626433832795
#define AUDIO_BUF_SIZE 512
#define FSAMPLE 44100
#define BASS_Hz 64
#d... | 2.03125 | 2 |
2024-11-18T21:46:57.732571+00:00 | 2019-08-23T10:01:53 | cc0f041b82208197a597744cdd942016cab16f60 | {
"blob_id": "cc0f041b82208197a597744cdd942016cab16f60",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-23T10:01:53",
"content_id": "bbbbe9a839c66699b8224dc381be1424012a85a2",
"detected_licenses": [
"MIT"
],
"directory_id": "a5f060919b31cee33839b1235cbe14e763adba68",
"extension": "c"... | stackv2 | /**
******************************************************************************
* @file bsp_key.c
* @author fire
* @version V1.0
* @date 2013-xx-xx
* @brief 按键应用bsp(扫描模式)
******************************************************************************
* @attention
*
* 实验平台:秉火 F103-MINI STM... | 2.59375 | 3 |
2024-11-18T21:46:57.811923+00:00 | 2013-06-05T08:47:20 | 2c37179308901dcfe179ebe2c8cc71fa179893d4 | {
"blob_id": "2c37179308901dcfe179ebe2c8cc71fa179893d4",
"branch_name": "refs/heads/master",
"committer_date": "2013-06-05T08:47:20",
"content_id": "0a6cfd78bcfe35dfd583f4ce31c049db36762488",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "26602c0e4a788f6553f774fa85961dcfeebea2f8",
"extensio... | stackv2 | /*
Copyright (c) Members of the EGEE Collaboration. 2004-2010.
See http://www.eu-egee.org/partners for details on the copyright holders.
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://w... | 2.015625 | 2 |
2024-11-18T21:46:58.298707+00:00 | 2021-11-16T14:14:30 | 241d236ce83cd03c608e7d183b4f42ccda3ad4aa | {
"blob_id": "241d236ce83cd03c608e7d183b4f42ccda3ad4aa",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-16T14:14:30",
"content_id": "7a416b92693ba63f848babfde47b3d975067c9e4",
"detected_licenses": [
"MIT"
],
"directory_id": "a95396392907bb2f5af395fd893db23f3ce2b987",
"extension": "c"... | stackv2 | /***********************
* Tom Ben-Dor
*
* 01
* ex5
***********************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define PRINT_ERROR_IF(cond, msg) if (cond) {puts(msg); return;}
#define MAX_CLASSES 5
#define STUDENT_NAME_MAX_LENGTH 20
#define COURSE_TITLE_MAX_LENGTH 30
#defin... | 3.421875 | 3 |
2024-11-18T21:46:58.458324+00:00 | 2016-10-16T12:31:00 | 0754f3f5fe903e7f6555951d016ddaecf87924d2 | {
"blob_id": "0754f3f5fe903e7f6555951d016ddaecf87924d2",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-16T12:31:00",
"content_id": "bcd802b0319a31da38286f7f03714f8e80030985",
"detected_licenses": [
"MIT"
],
"directory_id": "5888565a8bbb64ea6e0f1ae58404be96cc61137a",
"extension": "c"... | stackv2 | /*****************************************************************************
* File Name: bond_pair.c
* Author: Ludvig Sundström
* Description:
* Creation Date: 30-07-2015
*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#i... | 2.609375 | 3 |
2024-11-18T21:46:58.960158+00:00 | 2021-10-25T11:00:54 | 213ad1f78182d0195860b2d6b103c41371beee93 | {
"blob_id": "213ad1f78182d0195860b2d6b103c41371beee93",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-25T11:00:54",
"content_id": "659dfa58c6d09549f6d9295354cef612a83bf8c9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7701e62e2250af8534d0aba47b1313419d4e022e",
"extensio... | stackv2 | #include <fuzzy/drivers/display/vga/graphics.h>
#include <fuzzy/kernel/process/process.h>
#include <fuzzy/memmgr/layout.h>
#include <fuzzy/memmgr/tables/gdt.h>
#include <fuzzy/real_mode/client.h>
#include <stddef.h>
int graphics_set_mode(uint8_t video_mode) {
// https://en.wikipedia.org/wiki/INT_10H
int eax =... | 2.109375 | 2 |
2024-11-18T21:47:00.234973+00:00 | 2020-01-07T14:49:14 | e57987345ffa34aca5796df02765e016ecedd237 | {
"blob_id": "e57987345ffa34aca5796df02765e016ecedd237",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-07T14:49:14",
"content_id": "ad9ffd2840df37d0c02da52837e78122e4d683c4",
"detected_licenses": [
"MIT"
],
"directory_id": "0f0f3aea6b4fef0f34932c98a0d2e0ee8ff638ce",
"extension": "c"... | stackv2 | #include "sources.h"
void withdraw(void)
{
FILE *fp;
time_t t;
time(&t);
char ch[512] = "\0" , amt[20] = "\0" , acc_no[17] = "\0" , ht[200] = "\0";
char str[34] = {"Account Number: "};
char newValue[100] = {"Balance: "};
int count=0,withdrawAmt = 0;
float bal = 0.0;
system("c... | 2.890625 | 3 |
2024-11-18T21:47:00.337897+00:00 | 2019-12-10T08:40:56 | ca89218666bb3aca5545dbcb48b878167db25787 | {
"blob_id": "ca89218666bb3aca5545dbcb48b878167db25787",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-10T08:40:56",
"content_id": "9cd6c0ec739d60b0e621392b990197d0c90626b8",
"detected_licenses": [
"MIT"
],
"directory_id": "cae9da059e0d6e634ebb7fd2a4866f7964dee284",
"extension": "c"... | stackv2 | #include <util.h>
#include <connection.h>
#include <service.h>
#include <host_gecko.h>
#include <stdlib.h>
int service_add(struct service_list_t* list, struct gecko_msg_gatt_service_evt_t* evt)
{
uint16_t uuid;
struct service_t* service;
uuid = to_uuid16(&evt->uuid);
service = service_find_by_uuid(lis... | 2.1875 | 2 |
2024-11-18T21:47:00.985074+00:00 | 2017-01-24T16:37:03 | d0051abcab52d2518d6c36a8477add3f16ae3d72 | {
"blob_id": "d0051abcab52d2518d6c36a8477add3f16ae3d72",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-24T16:37:03",
"content_id": "99f0e537ede0d5712185b9731aa416442dd0f569",
"detected_licenses": [
"Unlicense"
],
"directory_id": "0edb64dc28d775a4c20bd34690359ec75758e82f",
"extension... | stackv2 |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "vector.h"
// returns the scalar multiplication r*v
Vector2D vec2D_mul(double r, Vector2D v) {
Vector2D w = {r * v.x, r * v.y};
return w;
}
// returns the addition a+b
Vector2D vec2D_add(Vector2D a, Vector2D b) {
Vector2D c = {a.x + b.x, a.y + b.y... | 3.234375 | 3 |
2024-11-18T21:47:01.147732+00:00 | 2016-08-28T22:11:23 | f209c680cf09de19402d35106dfd882f48d39ff3 | {
"blob_id": "f209c680cf09de19402d35106dfd882f48d39ff3",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-28T22:11:23",
"content_id": "9229f85f12e1720ae3dc7a3e412266a760abeb1d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "63bbb8dd2c9c9fac9f4b87f1bdc7f1bfce26a926",
"extensio... | stackv2 | /*
* Copyright 2011 Scott MacDonald
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2.078125 | 2 |
2024-11-18T21:47:01.647940+00:00 | 2018-11-25T08:06:31 | 77176c1ac550c3764a0e0e4a188d24f5ad661191 | {
"blob_id": "77176c1ac550c3764a0e0e4a188d24f5ad661191",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-25T08:06:31",
"content_id": "3a73a559857491e380d402f416081f241d2d0c08",
"detected_licenses": [
"MIT"
],
"directory_id": "8d277083f7733b318f412d0f321eef3b67add10f",
"extension": "h"... | stackv2 | /**
* @author Zheng-Ling Lai <jamesljlster@gmail.com>
* @file ann.h
**/
#ifndef __ANN_H__
#define __ANN_H__
/**
* \~English
* Return value definitions of ANN library.
*
* \~Chinese-Traditional
* ANN 函式庫回傳值定義
*/
enum ANN_RETUEN_VALUE
{
ANN_NO_ERROR = 0, /*!< No error occured while running called function. ... | 2.25 | 2 |
2024-11-18T21:47:01.769144+00:00 | 2013-12-08T18:24:49 | 1ba8b317f16e9e2a54cc17e0e27fd0e0622f9972 | {
"blob_id": "1ba8b317f16e9e2a54cc17e0e27fd0e0622f9972",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-08T18:24:49",
"content_id": "dec87cb50c6ab5ece0dcae1cad7cd6a22e3dcd89",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4ab8f96702676df4bfa953fdb51cd12c13087fc9",
"extens... | stackv2 | /* Copyright (c) 2011-2013, Take Vos
* 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,
* this list of conditions... | 2.078125 | 2 |
2024-11-18T21:47:02.728096+00:00 | 2015-06-26T04:03:12 | 61a1bb7a06cc9da086f98d7581f74f0c27ed347f | {
"blob_id": "61a1bb7a06cc9da086f98d7581f74f0c27ed347f",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-26T04:03:12",
"content_id": "5b3aded4dd8c09ed3ffebb7b95fae4637fc89fea",
"detected_licenses": [
"MIT"
],
"directory_id": "b52392ced760e84c3690ab8f27e00ede38454ba2",
"extension": "c"... | stackv2 | //
// read.c
// Text Adventure Game
//
// Created by Johnny Wellington dos Santos on 6/1/15.
// Copyright (c) 2015 Johnny Wellington dos Santos. All rights reserved.
//
#include "story.h"
void open_story(char *filename){
story.file_pointer= fopen(filename, "r");
if(story.file_pointer == NULL){
pr... | 2.890625 | 3 |
2024-11-18T21:47:02.926946+00:00 | 2023-03-02T11:43:13 | 2bc2f4b281fa17b1bf48c616fcca91efd93dbb73 | {
"blob_id": "2bc2f4b281fa17b1bf48c616fcca91efd93dbb73",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-02T11:43:13",
"content_id": "11757841ee9496013c63a8fe42f833a366c7a2a1",
"detected_licenses": [
"MIT"
],
"directory_id": "06aada736a45513b3522bc96056a5d5428f0b804",
"extension": "c"... | stackv2 | /*
// ngx_stream_mruby_connection.c - ngx_mruby mruby module
//
// See Copyright Notice in ngx_http_mruby_module.c
*/
#include "ngx_stream_mruby_connection.h"
#include "ngx_stream_mruby_module.h"
#include <ngx_stream.h>
#include <mruby/class.h>
#include <mruby/data.h>
#include <mruby/string.h>
typedef struct {
m... | 2.234375 | 2 |
2024-11-18T21:47:03.381927+00:00 | 2023-08-15T20:39:28 | 65af8b507802f70dec2618988edb122157e8fc92 | {
"blob_id": "65af8b507802f70dec2618988edb122157e8fc92",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-15T20:39:28",
"content_id": "56165648baaaa4686b9bc1493b948e40a362b0c9",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "003b08dc74bc0bd60af20e29e1328eabd7f44b52",
"extensio... | stackv2 | /*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
#include <math.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "os-features.h"
#include "healpix.h"
#include "mathutil.h"
#include "starutil.h"
#include "keywords.h"
#include "p... | 2.734375 | 3 |
2024-11-18T21:47:04.086280+00:00 | 2020-02-20T14:33:08 | cc703f2b70d437872eb14628162e33fc374abae6 | {
"blob_id": "cc703f2b70d437872eb14628162e33fc374abae6",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-20T14:33:08",
"content_id": "667355490b68de3c48a45973f7784baf66ddb723",
"detected_licenses": [
"MIT"
],
"directory_id": "08a32cad4e779ad6aab05acafc36cbc9507bc598",
"extension": "c"... | stackv2 | #include "find_control_graph.h"
#include "func_string.h"
#include <string.h>
static error_t find_size_of_block(char **strings, int count, int *result);
static error_t connect_conditions(char **strings, int count, graph_vertice_t *graph);
static error_t connect_cycles(char **strings, int count, graph_vertice_t *graph);... | 2.5 | 2 |
2024-11-18T21:47:05.454830+00:00 | 2016-08-07T05:50:34 | 47bd6f48779ea587d55ae3b51a64da0d4aa2cb23 | {
"blob_id": "47bd6f48779ea587d55ae3b51a64da0d4aa2cb23",
"branch_name": "refs/heads/swift-v2016.04",
"committer_date": "2016-08-07T05:50:34",
"content_id": "bf7e14a993eb6dacba51c282e2949f9f7d0d34d7",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "be9697af7224ff2dac1deab8... | stackv2 | /* This is a sample demonstration application that showcases usage of remoteproc
and rpmsg APIs on the remote core. This application is meant to run on the remote CPU
running baremetal code. This applicationr receives two matrices from the master,
multiplies them and returns the result to the master core. */
#includ... | 2.640625 | 3 |
2024-11-18T21:47:06.361148+00:00 | 2021-08-10T12:37:12 | 6bd3cda44c4035cc9b19d3954d0d9d2f8801a177 | {
"blob_id": "6bd3cda44c4035cc9b19d3954d0d9d2f8801a177",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-10T12:37:12",
"content_id": "b5148bd100f14321e6c745fcb1bc047c6d68ff37",
"detected_licenses": [
"MIT"
],
"directory_id": "3cde69c3a152dc4aa6cce4030ddccf2b74b50eea",
"extension": "c"... | stackv2 | /*
@module lvgl
@summary LVGL图像库
@version 1.0
@date 2021.06.01
*/
#include "luat_base.h"
#include "lvgl.h"
#include "luat_lvgl.h"
#include "luat_malloc.h"
int luat_lv_btnmatrix_set_map(lua_State *L) {
LV_DEBUG("CALL lv_btnmatrix_set_map");
lv_obj_t* btnm = (lv_obj_t*)lua_touserdata(L, 1);
char **map;
... | 2.234375 | 2 |
2024-11-18T21:47:06.520010+00:00 | 2023-02-16T11:27:40 | c11f53a88d6dbb209fd53aee69c4b2b6b4801e50 | {
"blob_id": "c11f53a88d6dbb209fd53aee69c4b2b6b4801e50",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "7c7357e4c221cf5c670a737a9f1597ef4230071e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright 2021 The Chromium OS Authors
* Copyright 2021 Grinn
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT ti_ina230
#include "ina230.h"
#include "ina23x_common.h"
#include <zephyr/logging/log.h>
#include <zephyr/drivers/sensor.h>
LOG_MODULE_REGISTER(INA230, CONFIG_SENSOR_LOG_LEVEL);
... | 2.46875 | 2 |
2024-11-18T21:47:06.871104+00:00 | 2023-08-23T17:09:22 | b128c9d115f0550faf67cc0be72b0486bb65642b | {
"blob_id": "b128c9d115f0550faf67cc0be72b0486bb65642b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-23T17:09:22",
"content_id": "310e99920c62e7ad93673e0de6f434c2faff4aa5",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "b4995c17067e4c16e287b4d0d454a9437ed38751",
"extens... | stackv2 |
/*
* Copyright (C) NGINX, Inc.
*/
#include <njs_main.h>
#include <njs_lexer_tables.h>
njs_inline int
njs_lexer_keyword_hash(const u_char *key, size_t size, size_t table_size)
{
return ((((key[0] * key[size - 1]) + size) % table_size) + 0x01);
}
njs_inline const njs_lexer_keyword_entry_t *
njs_lexer_keyword... | 2.453125 | 2 |
2024-11-18T21:47:07.467064+00:00 | 2023-08-17T16:08:06 | b80d51964f165e9a875f9990fd6c70460835d0b4 | {
"blob_id": "b80d51964f165e9a875f9990fd6c70460835d0b4",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T16:08:06",
"content_id": "d31b8966a8cdc61ebf563ce69d41eaeaf081086b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066",
"extensio... | stackv2 | #include "water.h"
#include <string.h>
#include <ctype.h>
PetscErrorCode PumpHeadCurveResidual(SNES snes, Vec X, Vec F, void *ctx)
{
const PetscScalar *x;
PetscScalar *f;
Pump *pump = (Pump *)ctx;
PetscScalar *head = pump->headcurve.head, *flow = pump->headcurve.flow;
PetscInt ... | 2.390625 | 2 |
2024-11-18T21:47:07.533017+00:00 | 2023-08-12T15:50:31 | 5ce163ec0e3d7969e004396e629f6a6b1102488c | {
"blob_id": "5ce163ec0e3d7969e004396e629f6a6b1102488c",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-12T15:50:31",
"content_id": "12c172d8a1cff681aca553aa46d67611f725fcaf",
"detected_licenses": [
"MIT"
],
"directory_id": "37583ad8f2a31ea5f1cbb38ddaa54a2b4c04ce37",
"extension": "c"... | stackv2 | #include <bgbccc.h>
int BGBCC_SHX_EmitIndexAddImm16(BGBCC_SHX_Context *ctx, int imm)
{
int i, n, o;
for(i=0; i<ctx->const_ns16; i++)
{
if((ctx->const_s16tab[i]==imm) &&
!(ctx->const_s16tab_rlc[i]))
{
n=ctx->nofs_s16tab++;
o=BGBCC_SHX_EmitGetOffs(ctx);
ctx->ofs_s16tab[n]=o;
ctx->idx_s16tab[n]=i;... | 2.359375 | 2 |
2024-11-18T21:47:07.603733+00:00 | 2021-02-11T00:16:01 | c251f82b76e4b251f4bd54ea43248b26a381c861 | {
"blob_id": "c251f82b76e4b251f4bd54ea43248b26a381c861",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-11T00:16:01",
"content_id": "51d1ddb48ca32797629043c7e5f197641c4ea5dc",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "ac5f5e9debe26a162a05562f7e818fb66d5555ef",
"extens... | stackv2 | #include "app.h"
// 12.0625 + 3.9375 = 16.0 for TEXT_FONT
void
emit_text(char *buf, int len, int color)
{
int i;
double d, h, w;
struct display *p;
p = malloc(sizeof (struct display) + len);
if (p == NULL)
malloc_kaput();
p->len = len;
memcpy(p->buf, buf, len);
h = get_ascent(TEXT_FONT) + 1.0;
d = get... | 2.453125 | 2 |
2024-11-18T21:47:07.775019+00:00 | 2021-01-06T12:54:27 | b751564a2483f9ab1f5e1810aab055407fc716bc | {
"blob_id": "b751564a2483f9ab1f5e1810aab055407fc716bc",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-06T12:54:27",
"content_id": "8a194ec357d61100bef265145400dad7094ddb29",
"detected_licenses": [
"MIT"
],
"directory_id": "c4445bff94ede280043fa632cded377c41416172",
"extension": "h"... | stackv2 | /**
User input events that are passed to simulation.
*/
#ifndef ASTEROIDS_EVENTS_H
#define ASTEROIDS_EVENTS_H
#include <stdbool.h>
/// Only object that is controlled by the player is space ship. We consider
/// input events to be "sticky". Ship fires all time while key is down.
struct input_events {
bool ship_lef... | 2.078125 | 2 |
2024-11-18T21:47:08.063956+00:00 | 2020-07-10T19:49:00 | 40cb3105471cad0759f8a5a094be3d531339484c | {
"blob_id": "40cb3105471cad0759f8a5a094be3d531339484c",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-10T19:49:00",
"content_id": "d95eab4b27c19904c9f10e1c0fc4fbd323e703be",
"detected_licenses": [
"MIT"
],
"directory_id": "4ff93a49636994f488d46a0cef1cc3919806540e",
"extension": "c"... | stackv2 | #include "ChaosVmAth.h"
#include "lcrypto.h"
#include "Support.h"
/*
* 全局变量
*/
PCHAOSVMATH g_pChaosVmAth = NULL;
/*
* 内部使用函数
*/
__void __INTERNAL_FUNC__ ChaosVmAthSetFileAddressToProcedureList(__memory pMem, PCHAOSVMATH_CONFIGURE pConfigure);//设置文件地址给要保护的函数,在全部要保护的函数选定以后调用
PCHAOSVMP_PROCEDURE __INTERNAL_FUNC__ Ch... | 2.15625 | 2 |
2024-11-18T21:47:08.337163+00:00 | 2015-12-02T21:42:30 | bbd8b4e88feb008920fd9d5c2ca058bf2d69688d | {
"blob_id": "bbd8b4e88feb008920fd9d5c2ca058bf2d69688d",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-02T21:42:30",
"content_id": "d662b53f9ff59a9131c453c19e9d6779b6ebf6ce",
"detected_licenses": [
"MIT"
],
"directory_id": "97b470b259e889609194b3274c1fbdc6d1905703",
"extension": "c"... | stackv2 | /*
* Find the maximum consecutive subsequence sum in an N x N matrix filled with a Lagged Fibonacci random number generator
*/
#include <stdio.h>
#include <stdlib.h>
#include "utils.h"
#include "random.h"
static int ** allocate_random_matrix (int);
static int find_maximum (int **, int);
static int find_maximum_row ... | 3.578125 | 4 |
2024-11-18T21:47:08.420259+00:00 | 2021-09-30T05:30:19 | a5f1743f73e14e141ed5b45290ca7acb56799b75 | {
"blob_id": "a5f1743f73e14e141ed5b45290ca7acb56799b75",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-30T05:30:19",
"content_id": "046e05c9770694ac310adb7f1e36304ab0d88bec",
"detected_licenses": [
"MIT"
],
"directory_id": "5690fa4f964809c67d13d866b1d89ebf8960bb13",
"extension": "c"... | stackv2 | #include "parser.h"
#define TMP_BUFFER_SIZE 32
char* getTime(){
time_t rawtime;
struct tm * timeinfo;
time ( &rawtime );
timeinfo = localtime ( &rawtime );
return asctime(timeinfo);
}
void double_print(char *s, FILE* log){
printf("%s\n", s);
fprintf(log, "%s\n", s);
}
int server_parser(c... | 2.390625 | 2 |
2024-11-18T21:47:08.507418+00:00 | 2020-11-07T14:38:04 | a7a3d75af46102cef4f22afedb08e9cab7ab94e2 | {
"blob_id": "a7a3d75af46102cef4f22afedb08e9cab7ab94e2",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-07T14:38:04",
"content_id": "da6bfcb919b6083addecde6f6eb1256579bbb248",
"detected_licenses": [
"MIT"
],
"directory_id": "b884b5834f84739b8b01e09c8211954d2570ce87",
"extension": "c"... | stackv2 | #include "all.h"
/* printbuf.c S187a */
struct Printbuf {
char *chars; // start of the buffer
char *limit; // marks one past end of buffer
char *next; // where next character will be buffered
// invariants: all are non-NULL
// chars <= next <= limit
// if chars <= p <... | 3.046875 | 3 |
2024-11-18T21:47:09.074217+00:00 | 2014-03-31T02:47:30 | b0dfcc3b7fbec17ead9bb12f481a4e8f073ea283 | {
"blob_id": "b0dfcc3b7fbec17ead9bb12f481a4e8f073ea283",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-31T02:47:30",
"content_id": "411c083f0e47d56aa2252297a2cba75c07488f2b",
"detected_licenses": [
"MIT"
],
"directory_id": "c4cc63cd8fb44a22a0945c9d7ad71ba8405779f3",
"extension": "c"... | stackv2 | /*
** add_ctor.c for zappy_bibicy in /home/lefevr_u/GIT/zappy/Zappy/Server
**
** Made by ulric lefevre
** Login <lefevr_u@epitech.net>
**
** Started on Sat Jun 23 20:25:14 2012 ulric lefevre
** Last update Sat Jun 23 20:25:14 2012 ulric lefevre
*/
#include "iter.h"
#include "c_lists.h"
void list_push_back_ctor(... | 2.234375 | 2 |
2024-11-18T21:47:09.362205+00:00 | 2021-02-15T20:40:54 | ece945b9aea6394bb3d3043a4d086e20fb114dbc | {
"blob_id": "ece945b9aea6394bb3d3043a4d086e20fb114dbc",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-15T20:40:54",
"content_id": "33621742e357d9ead0cfb9056ca3a3a53c678ba7",
"detected_licenses": [
"MIT"
],
"directory_id": "d35868429434c58c90a333e24df5591e255ace98",
"extension": "h"... | stackv2 | #pragma once
#include <stdint.h>
#include <stdio.h>
#ifndef _OV_FILE_H_
#include "XiphTypes.h"
#endif
// This is a barebones implementation of Ogg Vorbis based on the specs at xiph.org
// This doesn't decode PCM samples. It only reads vorbis packets for their blocksize.
enum err;
typedef struct vorbis_state vorbis_st... | 2.03125 | 2 |
2024-11-18T21:47:10.113858+00:00 | 2020-12-02T14:40:16 | 0460f0222e51a1ebadd9d8b0e4061c6ba074ed86 | {
"blob_id": "0460f0222e51a1ebadd9d8b0e4061c6ba074ed86",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-02T14:40:16",
"content_id": "e4ed21c85320da2b65af521d5823a88fbb4ee7c7",
"detected_licenses": [
"MIT"
],
"directory_id": "ad3632ae06d205ba4ff55208de5c2b4281dee51e",
"extension": "c",
... | stackv2 | #include<cs50.h>
#include<stdio.h>
/**
* chat.c
*
* This is a program that mimics social interaction with a user.
*
* @author Ken Loomis (https://github.com/kjloomis/cs50x_lecturecode)
*/
int main ( void )
{
string name, eyeColor;
int age, computerAge;
printf ( "Hello, my name is Ken.\n" );
name... | 3.21875 | 3 |
2024-11-18T21:47:10.162299+00:00 | 2020-10-07T02:01:33 | c453665dbeb941148026989d85ad4caa3b6a4918 | {
"blob_id": "c453665dbeb941148026989d85ad4caa3b6a4918",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-07T02:01:33",
"content_id": "7a38b306aad14839549a85902f7fd90980976cb8",
"detected_licenses": [
"MIT"
],
"directory_id": "cf937306fcc329492d7c6306ce1281ecfc9c87e1",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
// Written by Armin Rigo. Thank you Armin!
// Together with parse.py, converts a .tm2 file to a .c file (which will simulate much faster). Can be run with the command "python parse.py squaresaresmall.tm2 > tm.i && gcc -O2 tm.c"
#define LARGE_AMOUNT (6L*1024*1024*1024) // 6 ... | 2.671875 | 3 |
2024-11-18T21:47:10.755534+00:00 | 2023-03-10T18:06:47 | 12dfd875fd917f4e62824bb0c97fa2ea60d8df84 | {
"blob_id": "12dfd875fd917f4e62824bb0c97fa2ea60d8df84",
"branch_name": "refs/heads/main",
"committer_date": "2023-03-10T18:06:47",
"content_id": "a7c5a5b369197de98b02fd689b66fb0614adae23",
"detected_licenses": [
"Apache-2.0",
"MIT"
],
"directory_id": "a2b9a5c04db1f069fdf2471660f0fb388aa25314",
... | stackv2 | // Compile me from ../
// gcc example/test.c libtree.a -I include/ -lm
//
#include "../include/index.h"
// #include "index.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ENTRIES 6822
#define SEARCH_ENTRIES 1957
struct Rect rects[] = {
{0, 0, 2, 2}, // xmin, ymin, xmax, ymax (for 2 dimensional... | 2.671875 | 3 |
2024-11-18T21:47:12.145972+00:00 | 2015-01-23T01:36:42 | 75799927f792ed9d11abe1e3931f2c2e8d0edc38 | {
"blob_id": "75799927f792ed9d11abe1e3931f2c2e8d0edc38",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-23T01:36:42",
"content_id": "64fdf3dfe40025b6ae7dff565c9faf482d211185",
"detected_licenses": [
"MIT"
],
"directory_id": "2357f32ba327b0fa894498b4e7602d6f954b29b5",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include "map.h"
int hash_int(int key) {
key = ~key + (key << 15);
key = key ^ (key >> 12);
key = key + (key << 2);
key = key ^ (key >> 4);
key = key * 2057;
key = key ^ (key >> 16);
return key;
}
int hash(int x, int y, int z) {
x = hash_int(x);
y = hash_int(y);... | 2.921875 | 3 |
2024-11-18T21:47:12.312956+00:00 | 2015-11-03T01:37:58 | 77fae00c36d8b83b541e70d56f4bf061e27a49bb | {
"blob_id": "77fae00c36d8b83b541e70d56f4bf061e27a49bb",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-03T01:37:58",
"content_id": "877b988c9766835acc439d87efb86dd10f72dba4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "11b0129e8863f865b857c2a67f402ab0b2736aa7",
"extensio... | stackv2 | /**
******************************************************************************
* @file TIM4_TimeBase\main.c
* @author MCD Application Team
* @version V2.0.1
* @date 18-November-2011
* @brief This file contains the main function for TIM4 Time Base Configuration example.
******************... | 2.5 | 2 |
2024-11-18T21:47:12.478863+00:00 | 2021-08-17T10:01:26 | 7bdc381b5eb0fc359f27c5f52914ed3e4e3393bc | {
"blob_id": "7bdc381b5eb0fc359f27c5f52914ed3e4e3393bc",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-17T10:01:26",
"content_id": "10e8a7635e49bb7ac07c043481d8b1353e662882",
"detected_licenses": [
"MIT"
],
"directory_id": "754629931513757fa9a3c7fea3e2991a56b2e616",
"extension": "c"... | stackv2 | #include "redismodule.h"
#include "cdefs.h"
#include "funmap.h"
#include "selva.h"
#include "errors.h"
#include "hierarchy.h"
#include "selva_lang.h"
#include "selva_object.h"
#include "traversal.h"
/*
* Note that only the merge args supported by the query syntax needs to be
* listed here. Specifically MERGE_STRATEG... | 2.078125 | 2 |
2024-11-18T21:47:12.596896+00:00 | 2015-07-21T07:52:56 | eb41275239173dd5e460e371231dcbeb83dbea1a | {
"blob_id": "eb41275239173dd5e460e371231dcbeb83dbea1a",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-21T07:52:56",
"content_id": "838b84647086d6f989f970573a52b25ad39eea83",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "3b8b51267a245c28f9215fe5829770ef1141cced",
"extens... | stackv2 |
/*
* sham database
* sphia.org
*
* Copyright (c) Dmitry Simonenko
* BSD License
*/
#include <libsr.h>
#include <libsv.h>
#include <libsd.h>
#include <libsi.h>
static inline sibranch*
si_branchcreate(si *index, sr *r, sdc *c, sinode *parent, svindex *vindex, uint64_t vlsn)
{
svmerge vmerge;
sv_mergeinit(&vmerg... | 2.1875 | 2 |
2024-11-18T21:47:12.699485+00:00 | 2020-10-30T12:34:41 | 6c987863e8711e87f9a235bedfad9e7404fdd365 | {
"blob_id": "6c987863e8711e87f9a235bedfad9e7404fdd365",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-30T12:34:41",
"content_id": "8e54a4ba2766c83f54406320bd366256e4817c29",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d731e02ac400f2d3650f23583b0ec1ceb56bbc65",
"extension":... | stackv2 | #include<stdio.h>
#include<string.h>
struct mdt{
char lab[10];
char opc[10];
char oper[10];
}d[10];
void main(){
char label[10],opcode[10],operand[10],newlabel[10],newoperand[10];
char macroname[10];
int i,lines;
FILE *f1,*f2,*f3;
f1 = fopen("MACIN.txt","r");
f2 = fopen("MACOUT.t... | 2.640625 | 3 |
2024-11-18T21:47:12.803050+00:00 | 2017-07-28T03:06:11 | f53c6845bbf4b5d6ac895ff56edf499e3884c787 | {
"blob_id": "f53c6845bbf4b5d6ac895ff56edf499e3884c787",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-28T03:06:11",
"content_id": "1080fd898819401d98ce2e976cd4d4a7e1beed27",
"detected_licenses": [
"Unlicense"
],
"directory_id": "252e233d23aa7f0967d75afc3354b808f0df934b",
"extension... | stackv2 | #include <kos.h>
#include <lwip/lwip.h>
KOS_INIT_FLAGS(INIT_DEFAULT | INIT_NET);
int main(int argc, char **argv) {
file_t d;
dirent_t *de;
cont_btn_callback(0, CONT_START, (cont_btn_callback_t)arch_exit);
lwip_init_dcload();
printf("this is a test of dcload-lwIP\n");
d = fs_open("/pc", O_R... | 2.296875 | 2 |
2024-11-18T21:47:12.862635+00:00 | 2013-09-20T11:29:41 | dc177bb3a1323625b0fa56e029ab922d0b5543ea | {
"blob_id": "dc177bb3a1323625b0fa56e029ab922d0b5543ea",
"branch_name": "refs/heads/master",
"committer_date": "2013-09-20T11:29:41",
"content_id": "3490e83a46c4b165a5064ab72c8670beab819bcc",
"detected_licenses": [
"ISC",
"BSD-2-Clause"
],
"directory_id": "9e6a2966d43be65157700d6a4f2fc19bd7558e95"... | stackv2 | /*
* Copyright (c) 2010 Jochen Fabricius <jfab@berlios.de>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AN... | 2.421875 | 2 |
2024-11-18T21:47:12.936371+00:00 | 2021-11-15T01:51:02 | b074f477c8896d848b160150fd356db85492d00a | {
"blob_id": "b074f477c8896d848b160150fd356db85492d00a",
"branch_name": "refs/heads/RTX_NXP_Android601",
"committer_date": "2021-11-15T01:51:02",
"content_id": "91f084e79a5910569e4d4630a3e5486dd83ac971",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d5bd083dbcacce8cf62ebbd73c77c14c8247e057",... | stackv2 | /******************************************************************************
*
* Copyright (C) 2014 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://ww... | 2.40625 | 2 |
2024-11-18T21:47:13.046732+00:00 | 2021-03-23T05:06:46 | f579546fe38b7f8195fe02c38e1001215595dc8a | {
"blob_id": "f579546fe38b7f8195fe02c38e1001215595dc8a",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-23T05:06:46",
"content_id": "71b3453ecf8576c525ad0dc2fbba0d617323543b",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "77b6f9906d8b13160d9cb66481ec5537f410e2ec",
"extension": "... | stackv2 | #include <stdlib.h>
typedef struct dynamicString {
char *string;
int length;
char firstChar;
char lastChar;
} dstring;
dstring new_dstring(char *str);
int dstrlen(dstring ds);
void dstrrev(dstring *dstr);
int dstrcat(dstring *dest, dstring *source);
int dstrcatr(dstring *dest, char *source);
voi... | 2.328125 | 2 |
2024-11-18T21:47:13.456435+00:00 | 2021-04-28T10:22:19 | cb62f3db8c2c8d8e9feffae0fb37f54a3f460a81 | {
"blob_id": "cb62f3db8c2c8d8e9feffae0fb37f54a3f460a81",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-28T10:22:19",
"content_id": "d7366edadf9e83134b58e2f9d162a58468f35046",
"detected_licenses": [
"MIT"
],
"directory_id": "c2fb6846d5b932928854cfd194d95c79c723f04c",
"extension": "c"... | stackv2 | /* Write a program to print the even numbers within a given number.*/
#include <stdio.h>
main()
{
int i,n;
printf("\nENTER A NUMBER: ");
scanf("%d",&n);
printf("\nEVEN NUMBERS BETWEEN 1 AND %d ARE: \n",n);
for(i=2;i<=n;i+=2)
{
printf("%d ",i);
}
}
| 3.796875 | 4 |
2024-11-18T21:47:14.430665+00:00 | 2022-03-10T23:41:40 | 64582dcea58d427a00d0ca8721da1b5cda37593b | {
"blob_id": "64582dcea58d427a00d0ca8721da1b5cda37593b",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-10T23:41:40",
"content_id": "1ece050ab52da3a8cc6a6ff6dadd30f931abb533",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "ae54dfe1f30858f7f549f4ff8d0a45412fb2ffc3",
"extens... | stackv2 | /*
Copyright (c) 1997-2022, John M. Boyer
All rights reserved.
See the LICENSE.TXT file for licensing information.
*/
#define GRAPHDFSUTILS_C
#include "graph.h"
extern void _ClearVertexVisitedFlags(graphP theGraph, int);
/********************************************************************
gp_CreateDFSTree
Assign... | 2.546875 | 3 |
2024-11-18T21:47:14.508288+00:00 | 2021-07-28T22:33:13 | d6840179c951fef4cf2311163bb2393c00cae93f | {
"blob_id": "d6840179c951fef4cf2311163bb2393c00cae93f",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-28T22:33:13",
"content_id": "0a37a2260f6ee5a0400a40eabb380c74fe8ae169",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b036ae43ab8beb18ef4059a3e528ff9b848c9147",
"extens... | stackv2 | #include "run_analysis.h"
#define EACH_FLUID_NUM_DOUBLE (2)
void run_analysis(double * buf_blk, int block_size, int lp, double *sum_vx, double *sum_vy){
char * buffer = (char *)buf_blk;
//int check = *(int *)(buffer);
double vx, vy;
double vx_prime, vy_prime;
double mean_vx=0, mean_vy=0;
int i, j;
int... | 2.359375 | 2 |
2024-11-18T21:47:14.669278+00:00 | 2021-04-16T11:07:24 | 39f5e86cad49895c6517cf356b9432f682f7e527 | {
"blob_id": "39f5e86cad49895c6517cf356b9432f682f7e527",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-16T11:07:24",
"content_id": "8539765c93c19d89ff6500dfbdf0f468ae70790c",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "37e27c762120ca74492990d9494e3fd1d2b043b2",
"extension": "... | stackv2 | #include "hangman_operations.h"
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
int chances=0;
/**
* @brief This is to update the word as per the guess of the user
*
* @param temp_word A word to update the progress and blanks to indicate the status of the letter
* @param word The word t... | 3.453125 | 3 |
2024-11-18T21:47:15.577372+00:00 | 2021-09-19T18:47:19 | 1c07b227f244327dc6179a70aa9b3dff560f0cce | {
"blob_id": "1c07b227f244327dc6179a70aa9b3dff560f0cce",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-19T18:47:19",
"content_id": "e8767c77f79967592e9b6b039ddf6e337af5f840",
"detected_licenses": [
"MIT"
],
"directory_id": "baf0f22fedfcdffc0619c7311de473860979bcfb",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
void izbaci_neparne(long* niz, unsigned* duzina);
int main(){
long *niz;
unsigned n;
unsigned i;
scanf("%u", &n);
if ((niz = malloc(n*sizeof(long))) == NULL){
printf("Greska u alokaciji memorije.\n");
exit(1);
}
for (i=0; i<n; i++) ... | 2.875 | 3 |
2024-11-18T21:47:15.719895+00:00 | 2018-01-24T07:41:46 | 4ce94726eebfa24faa4fa7c9ce617fc43e29dfd0 | {
"blob_id": "4ce94726eebfa24faa4fa7c9ce617fc43e29dfd0",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-24T07:41:46",
"content_id": "e289f580d9be6cf662bf46549c3bb6464ca4d93a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ea73f3d52a11ecb559161f66b6a719822b95106b",
"extensio... | stackv2 | /*
* "Copyright [2016] qihoo"
*/
#ifndef CLIENT_INCLUDE_ZP_CLIENT_C_H_
#define CLIENT_INCLUDE_ZP_CLIENT_C_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef struct zp_status_t zp_status_t;
typedef struct zp_option_t zp_option_t;
typedef struct zp_client_t zp_client_t;
typedef struct zp_node_t z... | 2.0625 | 2 |
2024-11-18T21:47:19.834142+00:00 | 2022-07-23T08:54:06 | 11d62536190895434c2dea0da578049298b8e212 | {
"blob_id": "11d62536190895434c2dea0da578049298b8e212",
"branch_name": "refs/heads/main",
"committer_date": "2022-07-26T17:57:49",
"content_id": "d28f9d4af699cb261670c9ad99c74e7957cfd409",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "48ad898318b3f588726b086b91a4b5f4f5cce2a5",
"extension"... | stackv2 | /*
* Copyright (c) 2021 Linaro Limited
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/zephyr.h>
#include <zephyr/logging/log_ctrl.h>
#include <zephyr/logging/log.h>
#include <psa/update.h>
#include "tfm_ns_interface.h"
extern uint8_t _binary_update_image_bin_start[];
extern uint8_t _binary_update_im... | 2.546875 | 3 |
2024-11-18T22:28:07.188171+00:00 | 2021-05-31T05:23:52 | 0f4d90bf386510733b32c03cd1065a1c6b0733ea | {
"blob_id": "0f4d90bf386510733b32c03cd1065a1c6b0733ea",
"branch_name": "refs/heads/develop",
"committer_date": "2021-05-31T05:23:52",
"content_id": "ae09849b5a2480344ebd320b6633ef0310198079",
"detected_licenses": [
"MIT",
"Apache-2.0"
],
"directory_id": "d2d9ebc032f26f54b08ac3f35e3777e3a3ef68f6",... | stackv2 | /*==========================================================
* Copyright 2020 QuickLogic Corporation
*
* 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/licens... | 2.09375 | 2 |
2024-11-18T22:28:07.306608+00:00 | 2016-09-14T15:53:21 | 70a4698aa2a1c17eb44a9e386e0f9e6a76b76b29 | {
"blob_id": "70a4698aa2a1c17eb44a9e386e0f9e6a76b76b29",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-14T15:53:21",
"content_id": "aebf94228a4e9333f0465a237c0d7b6d8951b430",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4112266f5190070ee892e198ff8b25acb613ab28",
"extens... | stackv2 | /*
* mempool.c
*
* Created on: 2015/04/08
* Author: Yoshio
*/
#include "mempool.h"
#include <unistd.h>
#include <string.h>
// TODO: Must debug before using!
#include "../system/peripheral/usart.h"
#include "../util/usart_util.h"
bool mm_create_pool(uint32_t seg_size, uint32_t seg_count, mm_pool_t* new_poo... | 2.6875 | 3 |
2024-11-18T22:28:07.378030+00:00 | 2021-04-25T10:34:46 | 0af7c7615a383f6f43857e97528c30a3cf5065c5 | {
"blob_id": "0af7c7615a383f6f43857e97528c30a3cf5065c5",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-25T10:34:46",
"content_id": "939ca7d7307a4037239296daf38e6ec0720ceb0a",
"detected_licenses": [
"MIT"
],
"directory_id": "93e4e62ffbf5cd7550280284882b139d67c42111",
"extension": "h",
... | stackv2 | #ifndef HEX_HASHMAP_H
#define HEX_HASHMAP_H
#include "vector.h"
typedef struct hex_hashmap_list {
char *name;
void *value;
struct hex_hashmap_list *next;
} hex_hashmap_list_t;
typedef struct hex_hashmap {
hex_hashmap_list_t *items[16];
} hex_hashmap_t;
// Loop over all items in the hashmap, only use the va... | 2.53125 | 3 |
2024-11-18T22:28:07.593094+00:00 | 2023-07-11T23:06:35 | be83930785e290288e2958fd273f69fa765376e5 | {
"blob_id": "be83930785e290288e2958fd273f69fa765376e5",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-11T23:06:35",
"content_id": "2598f16a7c94f7ac3d5defa1ed2902a296191976",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "26bc498c752e59b3954113ca856e5807364c135e",
"extensio... | stackv2 | /**************************** QCFC ******************************* QCFC
** Corrected dynamic pressure (fuselage) (mb)
Input:
qcf - raw dynamic pressure, fuselage mounted
Output:
qcfc - corrected dynamic pressure, fuselage
Include:
pcorf - dynamic pressure correction, fuselage
*/
#include "nimbus.h"
#i... | 2.046875 | 2 |
2024-11-18T22:28:07.872962+00:00 | 2015-12-16T09:24:38 | 7bc8bed2e92a8ce5fcd81e539528d14c3b84ed5b | {
"blob_id": "7bc8bed2e92a8ce5fcd81e539528d14c3b84ed5b",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-16T09:24:38",
"content_id": "10b4f5ef5dddcd15c2afc74b8e089147049a64a4",
"detected_licenses": [
"MIT"
],
"directory_id": "c5764b81fcf4426de6a21648abde609cab0cc41f",
"extension": "c"... | stackv2 | #include "ybc.h"
static int go_get_item_and_value(struct ybc *const cache,
struct ybc_item *const item, struct ybc_value *const value,
const struct ybc_key *const key)
{
const int rv = ybc_item_get(cache, item, key);
if (rv == 0) {
return 0;
}
ybc_item_get_value(item, value);
return rv;
}
static... | 2.203125 | 2 |
2024-11-18T22:28:08.040586+00:00 | 2021-07-08T13:09:53 | feced3989073af56e64b44d2ebfc95be0cecdbaf | {
"blob_id": "feced3989073af56e64b44d2ebfc95be0cecdbaf",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-08T13:09:53",
"content_id": "a860f892085287109c7868f8972c9a7e360da326",
"detected_licenses": [
"MIT"
],
"directory_id": "0fca408aed9cc1d66797ddb2275ff86da8fdbad1",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "structures.h"
#include "octreeOps.h"
//this flag culls cube faces that are completely obscured by other faces. Much smaller stl on highly contiguous models, at the expense of computation time
#define OCTREE_WRITE_CULL
#define TRIA... | 2.59375 | 3 |
2024-11-18T22:28:08.321572+00:00 | 2018-02-17T06:33:09 | bcb5773012fd4d5b040d8dfc4e31f3cae6b068f1 | {
"blob_id": "bcb5773012fd4d5b040d8dfc4e31f3cae6b068f1",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-17T06:33:09",
"content_id": "8618c4960d6dec3b27fda3f4a19a5df4c2916cda",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a277bd2f527a154a0ec78093e8608c386d772e84",
"extens... | stackv2 | /*
* This file is subject to the license agreement located in the file LICENSE
* and cannot be distributed without it. This notice cannot be
* removed or modified.
*/
#include "ocr.h"
/**
* DESC: Test runtime checks paramv is NULL if paramc is EDT_PARAM_DEF => 0
*/
ocrGuid_t terminateEdt(u32 paramc, u64* par... | 2.1875 | 2 |
2024-11-18T22:28:08.654090+00:00 | 2021-08-05T03:32:56 | 8e8003e3f90f7b74839e2f6ddc3b5f6492f2dc92 | {
"blob_id": "8e8003e3f90f7b74839e2f6ddc3b5f6492f2dc92",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-05T03:32:56",
"content_id": "afd43dd49b38201ebd7654f3db0a74d6fea344c3",
"detected_licenses": [
"MIT"
],
"directory_id": "25bbd9a8b0dcb02fdcffc021bbd609fe3cf592c2",
"extension": "c"... | stackv2 | #include "usart3.h"
#include "delay.h"
extern int res;
float pos_x=0;
float pos_y=0;
float zangle=0;
float xangle=0;
float yangle=0;
float w_z=0;
#if EN_USART3_RX //如果使能了接收
//串口1中断服务程序
//注意,读取USARTx->SR能避免莫名其妙的错误
u8 USART3_RX_BUF[USART3_REC_LEN]; //接收缓冲,最大USART3_REC_LEN个字节.
//接收状态
//bit15, 接收完成标志
//bit14, ... | 2.46875 | 2 |
2024-11-18T22:28:08.719867+00:00 | 2019-12-08T11:11:29 | b426e4dfc1751d59fab6be7a66d38986a204ff95 | {
"blob_id": "b426e4dfc1751d59fab6be7a66d38986a204ff95",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-08T11:11:29",
"content_id": "74ef8745e2b17134deff4d6bf28e3758b52d3cf9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bf869d4ffdfa71e269705829545e86554c389578",
"extensio... | stackv2 | /*
Status.c
Functions for logging program status to the serial port, to
be used for debugging pruposes etc.
2008-03-21, P.Harvey-Smith.
*/
#include <avr/interrupt.h>
#include <stdio.h>
#include <ctype.h>
#include "terminalcodes.h"
#include "status.h"
#ifdef SERIAL_STATUS
static int StdioSerial_TxByte0(char... | 2.71875 | 3 |
2024-11-18T22:28:08.809758+00:00 | 2020-03-12T00:53:56 | 860335a773b3f9aa3c0df4d1ce7fb7b50e58b68e | {
"blob_id": "860335a773b3f9aa3c0df4d1ce7fb7b50e58b68e",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-12T00:53:56",
"content_id": "b38703610566717845e53a001ff137cfa6c16a31",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "60588ebe9d07395ead5abb4fa7766e2552428457",
"extensio... | stackv2 | #include<stdio.h>
#include<string.h>
struct Person {//表结构
char name[100];
int age;
};
//void input(struct Person p) {//fail
// printf("In subfunction input:&p=%x",&p);
// scanf("%s%d", &p.name, &p.age);
//}
void input(struct Person *p) {
//scanf("%s%d", &(*p).name, &(*p).age);//ok but ugly
scan... | 3.203125 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.