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:28:04.593350+00:00 | 2015-07-20T15:08:12 | 91b27978a14b85bed74da32d8372b516a337118f | {
"blob_id": "91b27978a14b85bed74da32d8372b516a337118f",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-20T15:08:12",
"content_id": "57d2e5254931533a9836336e2566f74d0f8407a0",
"detected_licenses": [
"MIT"
],
"directory_id": "c42242e27f1b9f2bed47ac6dc13795ad9af2ed1c",
"extension": "c"... | stackv2 | /********************************************************
*
* sensors.fabduino.c
*
* Sensor shield v1
* 9600 baud FTDI interface
*
* Alejandro Escario Méndez
* 14/04/2015
*
* (c) Massachusetts Institute of Technology 2015
* Permission granted for experimental and personal use;
* license for commercial ... | 2.234375 | 2 |
2024-11-18T22:28:04.779088+00:00 | 2019-11-28T09:54:28 | f59aa4ec05d782af3e87322df44626e430ad4b75 | {
"blob_id": "f59aa4ec05d782af3e87322df44626e430ad4b75",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-28T09:54:28",
"content_id": "0d83aa181e34fe317d166243da0a33371289b6b3",
"detected_licenses": [
"MIT"
],
"directory_id": "1f9c6400485e1e284e0c9dbad9cea2ff897cb899",
"extension": "c"... | stackv2 | ;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1983 - 1991
; * All Rights Reserved.
; */
#include "dos.h" /* AN000 */
#include "fdisk.h" ... | 2.296875 | 2 |
2024-11-18T22:28:05.714849+00:00 | 2020-03-03T06:37:31 | 20c9eb6f4d39ce4a771fae3440181c19b2235c5b | {
"blob_id": "20c9eb6f4d39ce4a771fae3440181c19b2235c5b",
"branch_name": "refs/heads/main",
"committer_date": "2020-03-03T06:37:31",
"content_id": "cf0e6b986116bf90ca16e227ac407afb555924c5",
"detected_licenses": [
"MIT"
],
"directory_id": "1d27f2ee842b661c04a9cfa60f9e1bbe7eb5286c",
"extension": "c",
... | stackv2 | /*
This program counts the number of bytes in a C source file. ... | 3.28125 | 3 |
2024-11-18T22:28:06.614153+00:00 | 2021-06-19T19:17:12 | 0b9388b82652d0f8d3befaaf3825b2196bd51fee | {
"blob_id": "0b9388b82652d0f8d3befaaf3825b2196bd51fee",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-19T19:17:12",
"content_id": "ed3b80bd0620fc1c046fa442aa3919ba809e33d4",
"detected_licenses": [
"MIT"
],
"directory_id": "8ee385f74502594e676573c999d2718f493a5a0f",
"extension": "c"... | stackv2 | // THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT MODIFY
// BY HAND!!
//
// Generated by lcm-gen
#include <string.h>
#include "lcmtypes/lcmtypes_environment_t.h"
static int __lcmtypes_environment_t_hash_computed;
static uint64_t __lcmtypes_environment_t_hash;
uint64_t __lcmtypes_environment_t_hash_recursive(const ... | 2.265625 | 2 |
2024-11-18T22:28:07.242607+00:00 | 2020-08-18T18:02:51 | 35838b02bb47f2221d6dbec2f097744bf93c12b4 | {
"blob_id": "35838b02bb47f2221d6dbec2f097744bf93c12b4",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-18T18:02:51",
"content_id": "2224634f0ea636740de7b0895ec6738decb4293d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e9074200d6d659f766ec16e37bfa8f649d864049",
"extens... | stackv2 | /*
This file is part of ParTI!.
ParTI! 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, either version 3 of
the License, or (at your option) any later version.
ParTI! is distributed... | 2.25 | 2 |
2024-11-18T22:28:07.327137+00:00 | 2018-09-06T18:31:27 | 5c2e7d8fb0ddd35e628008b7cb11b37dbbb51416 | {
"blob_id": "5c2e7d8fb0ddd35e628008b7cb11b37dbbb51416",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-06T18:31:27",
"content_id": "a785f3385b18a45892f3015ea2d318f9e894aba1",
"detected_licenses": [
"MIT"
],
"directory_id": "81fb993b34e456032bcd01c0b2fa0370d8834f75",
"extension": "c"... | stackv2 | /*
* Print amortization schedule for fixed-rate mortgage
*
* Usage:
*
* a.out principal APR [term [month year] ]
*
* principal: amount borrowed ($)
* APR: annual percentage rate
* term: term of mortgage (years); default = 30 (see TERM_YEARS)
* month: month (1-12) of first payment
* year: yea... | 2.953125 | 3 |
2024-11-18T22:28:10.407091+00:00 | 2020-03-05T13:03:09 | e49a4ea2f84f6adca29dc9d754621bebbccf3919 | {
"blob_id": "e49a4ea2f84f6adca29dc9d754621bebbccf3919",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-05T13:03:09",
"content_id": "6900dfdd1d33ba440ba18705681a70d7ea6baef4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "71a80e77f775875cb07cbb014f6a06e5d69a209f",
"extensio... | stackv2 | #define _BSD_SOURCE
#define _XOPEN_SOURCE
#include <unistd.h>
#include <limits.h>
#include <pwd.h>
#include <errno.h>
// #include <shadow.h>
#include "../tlpi.h"
struct spwd {
char *sp_pwdp;
};
struct spwd *getspnam(const char *name) {
struct spwd *s = malloc(sizeof(struct spwd));
s->sp_pwdp = "123456";
return s;... | 2.75 | 3 |
2024-11-18T22:28:10.736502+00:00 | 2021-06-27T21:26:40 | d22bf851d82b3395cb642fd2d374de50222cd9b4 | {
"blob_id": "d22bf851d82b3395cb642fd2d374de50222cd9b4",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-27T21:26:40",
"content_id": "8a83adb083557a242935627f76d9196e78a57a31",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ae55d437c757e9c564a756ad586573dc89297880",
"extension"... | stackv2 | /**
Program v0.0
@author Henrique Augusto Rodrigues
@version 1.0
@date
*/
// lista de dependencias
#include <stdio.h> // para entradas e saida
#include <stddef.h> // para definicoes basicas
#include <stdlib.h> // para a biblioteca padrao
#include <string.h> // para cadeias de caracteres
#include <... | 3.375 | 3 |
2024-11-18T22:28:11.265393+00:00 | 2019-07-15T01:10:05 | 564701d5a67fd475541eb188f2e64d00472ded0a | {
"blob_id": "564701d5a67fd475541eb188f2e64d00472ded0a",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-15T01:10:05",
"content_id": "13b689655fc98baff58590d3b3d968b297eead54",
"detected_licenses": [
"MIT"
],
"directory_id": "e6df703d7d722d101f158aefdc6271d90873c1cf",
"extension": "h"... | stackv2 | #ifndef PILHA_H
#define PILHA_H
#define TIPO char
#define ERRO -1
typedef struct no NO;
typedef struct pilha PILHA;
PILHA *pilha_criar();
void pilha_apagar(PILHA **P);
int pilha_vazia(PILHA *P);
NO *pilha_topo(PILHA *P);
int pilha_tamanho(PILHA *P);
void pilha_empilhar(PILHA *P, int x, int y);
NO *pilha_desempilhar... | 2.078125 | 2 |
2024-11-18T22:28:12.303241+00:00 | 2021-11-08T07:30:49 | 9aa91e253dd7a68dc2a78740502c96411adf534f | {
"blob_id": "9aa91e253dd7a68dc2a78740502c96411adf534f",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-08T07:30:49",
"content_id": "11c93dc9bfd44057fb4db5497da8b537ff9a52c2",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "70eb465d43d3242a08b642ebd4729691d554746f",
"extensio... | stackv2 | #include <stdio.h>
float ohm_law(float u, float r);
float series(int ra, int rb);
float parallel(int ra, int rb);
float parallel_three(float ra, float rb ,float rc);
float ohm_law(float u, float r)
{
float i;
i = u/r;
return i;
}
float series(int ra, int rb)
{
float rs = (float)ra + (float)rb;
return rs;
}
floa... | 3.234375 | 3 |
2024-11-18T22:28:12.629977+00:00 | 2020-03-18T13:37:39 | abaad96a1d9aad62b4c56ae1cb3b2dbfcddb7934 | {
"blob_id": "abaad96a1d9aad62b4c56ae1cb3b2dbfcddb7934",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-18T13:37:39",
"content_id": "dcfb0eca895c86df0c694f8b9c60ce7a357e307d",
"detected_licenses": [
"MIT"
],
"directory_id": "10f7a62f7cb40d83042c4dee923b9a0f26881e93",
"extension": "c"... | stackv2 | #define _IR_C
#include "pins.h"
#include "IR.h"
struct time_and_date SetTime;
bit ir_finish = 0; //Ir flag if recieved data, set to 1, else set to 0.
unsigned char ir_data[4]; //Data buffer since there are 4 bytes need to be recieved.
const uint8 code ir_map[][2] = { //???????PC??????
{0x45,0x00}, {0x46,0x00}, {0... | 2.34375 | 2 |
2024-11-18T22:28:12.727793+00:00 | 2020-02-19T08:14:42 | 03f614ba7dc5fd3c8d856e8b5c38559a599e8254 | {
"blob_id": "03f614ba7dc5fd3c8d856e8b5c38559a599e8254",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-19T08:14:42",
"content_id": "90fa25405828a82694d9789f9a0b759de42f6ed5",
"detected_licenses": [
"MIT"
],
"directory_id": "539b482cf16246cc524a87db6a159ebaebf2ea7d",
"extension": "h"... | stackv2 | #ifndef __FAT_ENTRY_H_INCLUDED__
#define __FAT_ENTRY_H_INCLUDED__
#include "fs.h"
#include <stdint.h>
#include <time.h>
#define ENTRY_ATTR_READ_ONLY ((uint8_t) 0x01)
#define ENTRY_ATTR_HIDDEN ((uint8_t) 0x02)
#define ENTRY_ATTR_SYSTEM ((uint8_t) 0x04)
#define ENTRY_ATTR_VOLUMNE_ID ((uint8_t) 0x08)
#define ENTRY_ATTR... | 2.09375 | 2 |
2024-11-18T22:28:13.082894+00:00 | 2021-08-09T20:59:01 | 0820f9f6da235ac9fbd83fe04f967a204c68de10 | {
"blob_id": "0820f9f6da235ac9fbd83fe04f967a204c68de10",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-09T20:59:01",
"content_id": "9a94be031c2af2149bdb9abeeb7393832680f276",
"detected_licenses": [
"MIT"
],
"directory_id": "bef5bd3b91af9f3a2340b697d8d752557f39d8d0",
"extension": "h",
... | stackv2 | /* =================================================================================
File name: PARK.H
===================================================================================*/
#ifndef __PARK_H__
#define __PARK_H__
typedef struct { _iq Alpha; // Input: stationary d-axis stator variable
... | 2.25 | 2 |
2024-11-18T22:28:13.213555+00:00 | 2017-08-30T07:36:30 | ac778cfb18fb618e56a6464da05341f515f36483 | {
"blob_id": "ac778cfb18fb618e56a6464da05341f515f36483",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-30T07:36:30",
"content_id": "8fd3df05e4c73c93effc20e7f81771ae66fbf961",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "f9183ee2638ea9246398864001e7e71cc6f9a4da",
"extens... | stackv2 | // =============================================================================
// <verbatim/sse2.c>
//
// Skip through USON verbatim string faster using SSE2.
//
// Copyright Kristian Garnét.
// -----------------------------------------------------------------------------
if (true)
{
const xi128 vt = _mm_set1_epi8... | 2.484375 | 2 |
2024-11-18T22:28:13.654312+00:00 | 2015-07-04T21:27:04 | 3a6a0992370e2fbb592e615e99adaa4331fb5860 | {
"blob_id": "3a6a0992370e2fbb592e615e99adaa4331fb5860",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-04T21:27:04",
"content_id": "561887888959788aa80388e0cfbbe728a3a08f36",
"detected_licenses": [
"MIT",
"Zlib"
],
"directory_id": "dbd0322ace48e1a3ce494fcdc17c6afc70d3e347",
"ext... | stackv2 | #ifndef __vec4_lerp__
#define __vec4_lerp__
#include "type.h"
/**
* Performs a linear interpolation between two vec4's
*
* @param {vec4} out the receiving vector
* @param {vec4} a the first operand
* @param {vec4} b the second operand
* @param {Number} t interpolation amount between the two inputs
* @returns {... | 2.734375 | 3 |
2024-11-18T22:28:13.854903+00:00 | 2021-08-19T08:20:06 | 4d32e0ce4f5989cf5718eee5301108279ff89383 | {
"blob_id": "4d32e0ce4f5989cf5718eee5301108279ff89383",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-19T08:20:23",
"content_id": "3620d30cd39f6271d911f5f01f386c9bc09c5e47",
"detected_licenses": [
"MIT"
],
"directory_id": "af4081a47f41f90bcafa80a42793da7350e2181a",
"extension": "h",
... | stackv2 |
typedef enum { PROC, Z, NIL } val_ty_t;
typedef enum { PRIMOP, CLO } proc_ty_t;
typedef enum { PLUS, TIMES, MINUS, DIVIDE, EQNP } primop_ty_t;
struct _val_t *v;
struct _clo_t *c;
typedef struct _vallist_t {
struct _val_t *v;
struct _vallist_t *next;
} vallist_t;
typedef struct _proc_t {
proc_ty_t proc_type;
... | 2.296875 | 2 |
2024-11-18T22:28:14.027072+00:00 | 2014-10-23T19:19:02 | 29cafc65112a031bda74d0d21ad294a120f7d02c | {
"blob_id": "29cafc65112a031bda74d0d21ad294a120f7d02c",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-23T19:19:02",
"content_id": "baa55ff6df97ea771f861aded4b9d33a42648406",
"detected_licenses": [
"MIT"
],
"directory_id": "94c0a4616a7ebc5f38cde0f9e783deafd7b7c9f0",
"extension": "h"... | stackv2 | #ifndef PUTTY_PUTTY_H
#define PUTTY_PUTTY_H
#include <stdio.h> /* for FILENAME_MAX */
#include "network.h"
#define PUTTY_REG_POS "Software\\SimonTatham\\PuTTY"
#define PUTTY_REG_PARENT "Software\\SimonTatham"
#define PUTTY_REG_PARENT_CHILD "PuTTY"
#define PUTTY_REG_GPARENT "Software"
#define PUTTY_REG_GPAREN... | 2.15625 | 2 |
2024-11-18T22:28:21.004632+00:00 | 2020-12-08T19:00:16 | 7249e7f54d4dbc90161c8cf8195ec0cdef2b4083 | {
"blob_id": "7249e7f54d4dbc90161c8cf8195ec0cdef2b4083",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-08T19:00:16",
"content_id": "f2cbcb5868997d1ca3a628993f87a0a3d16b3ea2",
"detected_licenses": [
"MIT"
],
"directory_id": "6cb68416e953f3e533050e633d240ad69360256d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <locale.h>
#include <stdlib.h>
#define TAM 10
#define DADOS 9
void calculaSalario(double[]);
void tesouraria(double[], int[]);
int main(void)
{
setlocale(LC_ALL,"");
double salario[TAM];
int frequencia[DADOS] = {0}, indice;
printf("\t\t<<<<<PROGAMA QUE CALCULA COMISSÕES DE VENDAS>... | 2.875 | 3 |
2024-11-18T22:28:21.128245+00:00 | 2021-03-04T16:47:28 | 06969a91adb354b48a0414b80111563c72e9c12b | {
"blob_id": "06969a91adb354b48a0414b80111563c72e9c12b",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-04T16:47:28",
"content_id": "292859464ab81ba5b46b4939c792ba6722a8460c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4b908cefd6ba4e07372b886ac78b13c30961a1d7",
"extens... | stackv2 | // Copyright 2019 AES WBC Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "aunit.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdarg.h>
#include <math.h>
#include <string.h>
#include "aes.h"
#inc... | 2.46875 | 2 |
2024-11-18T22:28:21.229159+00:00 | 2017-07-13T07:22:42 | 680d8121638cdd3d86b6df6016ffad1aa8d5349b | {
"blob_id": "680d8121638cdd3d86b6df6016ffad1aa8d5349b",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-13T07:22:42",
"content_id": "ca77cf3162bdb07a3ac24d57232ea3d8a9ba9422",
"detected_licenses": [
"BSD-3-Clause",
"Apache-2.0"
],
"directory_id": "731a56b8501d9994ddde3a6f7e7be6fc2f... | stackv2 | /** $Id: find.h 4738 2014-07-03 00:55:39Z dchassin $
Copyright (C) 2008 Battelle Memorial Institute
@file find.h
@addtogroup find
**/
#ifndef _FIND_H
#define _FIND_H
#include <stdarg.h>
#include <stdlib.h>
#include "object.h"
#include "match.h"
#include "convert.h"
struct s_object_list;
/* the values are import... | 2.28125 | 2 |
2024-11-18T22:28:24.178172+00:00 | 2023-02-16T11:27:40 | 85c85d0ae8aabf1b6044176de213c9528056f819 | {
"blob_id": "85c85d0ae8aabf1b6044176de213c9528056f819",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "5d3bb286810ae1773abdb474a26adf0fafd1e6da",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright (c) 2021 Microchip Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT microchip_xec_bbram
#include <zephyr/drivers/bbram.h>
#include <errno.h>
#include <soc.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(bbram, CONFIG_BBRAM_LOG_LEVEL);
/** D... | 2.265625 | 2 |
2024-11-18T22:28:24.876944+00:00 | 2023-08-02T07:26:01 | 63480a1c5708318d20940a73c9407e5f3d080c37 | {
"blob_id": "63480a1c5708318d20940a73c9407e5f3d080c37",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-02T07:26:01",
"content_id": "35dd9dcbdcb7d0a03a4e7a596dee03ec45e8e72a",
"detected_licenses": [
"BSD-2-Clause",
"MIT"
],
"directory_id": "ea401c3e792a50364fe11f7cea0f35f99e8f4bde"... | stackv2 | #ifndef __KLB_IMAGE_COMMON_H__
#define __KLB_IMAGE_COMMON_H__
typedef float float32_t;
typedef double float64_t;
#define KLB_DATA_DIMS (5) //our images at the most have 5 dimensions: x,y,z, c, t
#define KLB_METADATA_SIZE (256) //number of bytes in metadata
#define KLB_DEFAULT_HEADER_VERSION (2) //def
// Following m... | 2.125 | 2 |
2024-11-18T22:28:25.005074+00:00 | 2017-03-28T11:05:39 | 44e1e813065f05bf0584a0ce307e460364921705 | {
"blob_id": "44e1e813065f05bf0584a0ce307e460364921705",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-28T11:05:39",
"content_id": "87a5a1ac237078cb6cfdf188f61a322014cd4db9",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7b527872e9ea4555e168618610a98185a43c7995",
"extens... | stackv2 | /*
* Copyright (c) 2016, Technische Universität Dresden, Germany
* 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... | 2.03125 | 2 |
2024-11-18T22:28:25.069547+00:00 | 2018-01-25T17:56:58 | 3d8eb1cc4abd83e12987d4a4308cd69ef4fb417c | {
"blob_id": "3d8eb1cc4abd83e12987d4a4308cd69ef4fb417c",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-25T17:56:58",
"content_id": "fb4e2f6f92e25879f51bb4fdc8dd8bfcb586f31f",
"detected_licenses": [
"Unlicense"
],
"directory_id": "ad8463d92149abd70b197fc5a62845207d07adf4",
"extension... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* job/launch.c :+: :+: :+: ... | 2.359375 | 2 |
2024-11-18T22:28:27.321505+00:00 | 2021-09-02T13:37:37 | 9fcc9018a9c2a80fd1e78176a9db4a0862a8406d | {
"blob_id": "9fcc9018a9c2a80fd1e78176a9db4a0862a8406d",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-02T13:37:37",
"content_id": "85beb1b975579770e7d95aa7dc43b84906f32549",
"detected_licenses": [
"MIT"
],
"directory_id": "2046a7766e525753d225c7a3b516c5c1d1890bf9",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
struct fila
{
int dados;
struct fila *prox;
};
int enfileirar(struct fila **inicio, struct fila **fim, int v)
{
struct fila *novo = (struct fila *)malloc(sizeof(struct fila));
if (novo != NULL)
{
novo->dados = v;
novo->prox = NULL;
if (*inicio == N... | 3.359375 | 3 |
2024-11-18T22:28:27.397823+00:00 | 2013-08-15T15:14:48 | a053129c9c3e379ecb6293c5fd95ee3ddc4dcd5e | {
"blob_id": "a053129c9c3e379ecb6293c5fd95ee3ddc4dcd5e",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-15T15:14:48",
"content_id": "e9427a23ed332062d05cb36b2fe8be25f2bc28f5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a2848268e98104791a8e930a97efd881f63e6617",
"extensio... | stackv2 | /* Copyright (C) 2006-2012 Opersys inc., All rights reserved. */
#include "mail.h"
#include "kmod.h"
#include "utils.h"
#include "kbuffer.h"
/* This function returns the packaging type string that must be placed after the
* Kryptiva marker.
*/
char * mail_get_pkg_type_str(int pkg_type) {
switch (pkg_type) {
ca... | 2.4375 | 2 |
2024-11-18T22:28:27.679609+00:00 | 2016-09-06T09:09:19 | b5533a421aadcace06496aef55a387ac45b2873a | {
"blob_id": "b5533a421aadcace06496aef55a387ac45b2873a",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-06T09:09:19",
"content_id": "d24154d4445c228dd0577c93798412f365303f2c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "854a2ab8f607265759b7d9cb0211dc451be6e469",
"extensio... | stackv2 | /**
* passwdentry.c
* show how to use GtkEntry for password entering.
*/
#include <gtk/gtk.h>
int main( int argc, char **argv ) {
gtk_init( &argc, &argv );
GtkWidget *window = gtk_window_new( GTK_WINDOW_TOPLEVEL );
gtk_window_set_title( GTK_WINDOW( window ), "Passworkd Entry" );
gtk_container_set_border_wid... | 2.5625 | 3 |
2024-11-18T22:28:27.768527+00:00 | 2020-03-11T20:26:41 | bcbb2d22250db33e18a217bfb8a62e2a14d3e6ae | {
"blob_id": "bcbb2d22250db33e18a217bfb8a62e2a14d3e6ae",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-11T20:26:41",
"content_id": "b71a409f45412a6421d30aa684248112e69e5b6f",
"detected_licenses": [
"MIT"
],
"directory_id": "eba6583d4431fa594e8bd8ea36291bf09ae2a4e5",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <pthread.h>
#include <SDL2/SDL.h>
#include "cycle.h"
#include "machine.h"
#include "../emulator/timer/timer.h"
#include "../emulator/emulator.h"
#include "../emulator/display/window.h"
#include "../emulator/display/machine.h"
unsigned char fontset[80] =... | 2.1875 | 2 |
2024-11-18T22:28:27.856144+00:00 | 2021-02-01T18:17:02 | b4cc6ecefbb3ec613931aa57e872ac2920fe0f01 | {
"blob_id": "b4cc6ecefbb3ec613931aa57e872ac2920fe0f01",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-01T18:17:02",
"content_id": "ddd75861a5c545c45de43464384b424c915eb0ee",
"detected_licenses": [
"MIT"
],
"directory_id": "5612d52db18da4e21a8e313dc33038da1c062e0a",
"extension": "c",
... | stackv2 | // TRABALHO PRÁTICO 4 DE ORGANIZAÇÃO DE COMPUTADORES I - CCF 252
// Professor: José Augusto M. Nacif
// Membros:
// Matheus da Silva Alves (2649);
// Victor Hugo R. dos Santos (3510);
#include "header.h"
//============================== QUICK SORT ==============================
// Algoritmo disponibilizado pelo si... | 3 | 3 |
2024-11-18T22:28:28.206762+00:00 | 2020-04-26T22:07:31 | f42d3c97a8e919a60d23e98b222198aff3d12a6f | {
"blob_id": "f42d3c97a8e919a60d23e98b222198aff3d12a6f",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-26T22:07:31",
"content_id": "35c5561a3201e4eee8f293e96bda717e3fb458fc",
"detected_licenses": [
"MIT"
],
"directory_id": "915becaab33366685998bccb9335c885fe3914d8",
"extension": "h"... | stackv2 | /*******************************************************************************
* MIT License
*
* Copyright (c) 2019 Basile Fourcade
*
* 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 ... | 2.25 | 2 |
2024-11-18T22:28:28.757193+00:00 | 2014-08-01T21:43:45 | 481bc8be8a8b68368bfa32913c1bdeb051adffff | {
"blob_id": "481bc8be8a8b68368bfa32913c1bdeb051adffff",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-01T21:43:45",
"content_id": "b2e2ab484fe39f663ec9574eb9b99931bea22a11",
"detected_licenses": [
"MIT"
],
"directory_id": "2fffd615e9ba9dd3554dacf03adbe15aca344704",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "tree.h"
int getMin(int a, int b)
{
if (a <= b)
return (a);
return (b);
}
char *strsub(char const *s1, unsigned int start, size_t len)
{
size_t slen;
char *p_s1;
char *p_ret;
char *ret;
slen = strlen(s1);
if (((start + len) > slen))
... | 2.765625 | 3 |
2024-11-18T22:28:28.837523+00:00 | 2012-04-18T22:32:57 | b3ecb188e7b155b218155846649971e63b7beebc | {
"blob_id": "b3ecb188e7b155b218155846649971e63b7beebc",
"branch_name": "refs/heads/master",
"committer_date": "2012-04-18T22:32:57",
"content_id": "55d8c8981587db6d291df2d451b416ef93c2237e",
"detected_licenses": [
"Ruby",
"BSD-2-Clause"
],
"directory_id": "3da9d66751dd1c89f6ac45c1208d049ef3c8456e... | stackv2 | #include "ruby.h"
#include "extconf.h"
/* begin code from ruby's ext/curses/curses.c */
#if defined(HAVE_NCURSES_H)
# include <ncurses.h>
#elif defined(HAVE_NCURSES_CURSES_H)
# include <ncurses/curses.h>
#elif defined(HAVE_CURSES_COLR_CURSES_H)
# ifdef HAVE_STDARG_PROTOTYPES
# include <stdarg.h>
# else
# include <va... | 2.390625 | 2 |
2024-11-18T22:28:28.995349+00:00 | 2022-03-31T08:22:16 | 8cdb919beacfd0ba6148b91632ce2edb6c8a2c92 | {
"blob_id": "8cdb919beacfd0ba6148b91632ce2edb6c8a2c92",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-31T08:22:16",
"content_id": "64b2b3db571f57452cf96f901829cdbcee6602ac",
"detected_licenses": [
"Unlicense"
],
"directory_id": "397de467115775da05ae98426bca4583711df0c6",
"extension... | stackv2 | /***
*creat.c - create a new file or truncate existing file
*
* Copyright (c) 1989-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* defines _creat() - create new file
*
*******************************************************************************/
#include <cruntime.h>
#include <io.h>
#inc... | 2.71875 | 3 |
2024-11-18T22:28:29.179031+00:00 | 2021-08-07T09:45:25 | 8bdefb49c81acb6202fc35a417cd3d79a69c1047 | {
"blob_id": "8bdefb49c81acb6202fc35a417cd3d79a69c1047",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-07T09:45:25",
"content_id": "e40e92f3d49fc4c96807d96ba3c5b7bd76e2a7f2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "858747b5d61f7b0bc3c51a3d85a4f7d42194366c",
"extensio... | stackv2 | #ifndef SAM9G20_COMMON_FRAMNOOS_H_
#define SAM9G20_COMMON_FRAMNOOS_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "../At91SpiDriver.h"
/**
* This module allows use of the CY15B104QI FRAM device on the iOBC without FreeRTOS. No block
* protection implemented for now. These functions are not thread-safe! Use a O... | 2.109375 | 2 |
2024-11-18T22:28:30.663099+00:00 | 2017-04-27T09:47:58 | 1c84d04a1b176cd996685fd95f1ace631f2bfc7e | {
"blob_id": "1c84d04a1b176cd996685fd95f1ace631f2bfc7e",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-27T09:47:58",
"content_id": "168d4182e4a72716a6c049127ce3719dab842e1f",
"detected_licenses": [
"MIT"
],
"directory_id": "5306fb95423ea2cb804cb55cf891900494a326f2",
"extension": "c"... | stackv2 | #include "methods.h"
void init_tree(tree *tr)
{
tr->root = NULL;
}
void init_node(node *temp)
{
temp->left = NULL;
temp->right = NULL;
temp->par = NULL;
}
void init_root(tree *tr)
{
node *temp = (node*)malloc(sizeof(node));
init_node(temp);
tr->root = temp;
}
int is_left(node *nod)
{
... | 3.25 | 3 |
2024-11-18T22:28:31.637044+00:00 | 2018-03-20T20:33:35 | e820c722c7d8aab57f2eed0fcc727bb81dfe2c83 | {
"blob_id": "e820c722c7d8aab57f2eed0fcc727bb81dfe2c83",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-20T20:33:35",
"content_id": "07591262eb78c4aa650df3b1752b888c9198778b",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "6ee9941951bc0f49400bc8a54cbc1c0e... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <sys/time.h>
#include <arm_neon.h>
#define SIZE 1000000
#define FILE_NAME "input.txt"
long neon_iteration;
float32_t mul(float *source, float *weight);
void create_input(int size);
static long diff_in_us(struct timespec t1, struct... | 2.578125 | 3 |
2024-11-18T22:28:32.100530+00:00 | 2019-08-07T01:16:48 | 64be628d5422eaeeac8af5baed1ee93c6f5ccf84 | {
"blob_id": "64be628d5422eaeeac8af5baed1ee93c6f5ccf84",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-07T01:16:48",
"content_id": "76bf5118f08367b308217ce9457cbfd1b56f7db5",
"detected_licenses": [
"MIT"
],
"directory_id": "63a54bc72b5860fa51117334b80c4e8e027258dd",
"extension": "c"... | stackv2 | /*
** one_dash.c for opt_get in /home/duclos_r/Tek-1/Colle/opt_get/tmp
**
** Made by Rémi Duclos
** Login <duclos_r@epitech.net>
**
** Started on Mon May 25 17:12:00 2015 Rémi Duclos
** Last update Mon May 25 18:52:55 2015 Rémi Duclos
*/
#include "opt_get.h"
int one_dash(const char *format, t_opt *opt)
{
t_opt... | 2.71875 | 3 |
2024-11-18T22:28:32.307614+00:00 | 2019-12-10T03:38:31 | 4cc4a01246aa22a89a989f2aaa65a7879d99f3d2 | {
"blob_id": "4cc4a01246aa22a89a989f2aaa65a7879d99f3d2",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-10T03:38:31",
"content_id": "90910bdd6873e637f5af15d73074b0bcaaf360e5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6cb80214c1335356bf64a2477985428b8379f030",
"extensio... | stackv2 | /*
Host program for testing of DSP functions in PAL DSP lib
This program is prepared to call one or several Epiphany cores to run the test.
*/
#include <utest.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <math.h>
#include <pal.h>
#include <common.h>
... | 2.375 | 2 |
2024-11-18T22:28:33.053151+00:00 | 2013-11-24T02:10:30 | d231cdd1ccba87a39661f5354e1aa579b68c5659 | {
"blob_id": "d231cdd1ccba87a39661f5354e1aa579b68c5659",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-24T02:10:30",
"content_id": "b483d0df8aaa69b944b39e5541c032b32635e742",
"detected_licenses": [
"MIT"
],
"directory_id": "499055e6c27871264743a1089a37576ecfbd1f90",
"extension": "c"... | stackv2 | #include "stack.h"
void push(stack *st, STACKTYPE n) {
if(st->len == STACKLEN) {
fprintf(stderr, "stack overflow\n");
return;
}
st->arr[st->len] = n;
st->len++;
}
STACKTYPE pop(stack *st) {
if(st->len == 0)
return (item) {0};
st->len--;
STACKTYPE n = st->arr[st->l... | 2.75 | 3 |
2024-11-18T22:28:33.128981+00:00 | 2021-06-16T22:15:57 | ff1f730eb494886b8f19b6b128ec6130d6791626 | {
"blob_id": "ff1f730eb494886b8f19b6b128ec6130d6791626",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-16T22:39:18",
"content_id": "96f2d71abf4ed29ab63191a5acaf3e65fb144452",
"detected_licenses": [
"MIT"
],
"directory_id": "c20b4689d45a7302fd93b1bd32cf1a4d04073313",
"extension": "c"... | stackv2 | #include <fudge.h>
#include <abi.h>
static unsigned int ticks;
static unsigned int counter;
static void onmain(struct channel *channel, unsigned int source, void *mdata, unsigned int msize)
{
struct message_header header;
struct message_data data;
file_link(FILE_G0);
while (channel_polldescriptorev... | 2.140625 | 2 |
2024-11-18T22:28:33.412768+00:00 | 2018-12-09T13:04:11 | fe77d3d842ed328fabb32541039b723e9b7b021f | {
"blob_id": "fe77d3d842ed328fabb32541039b723e9b7b021f",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-09T13:04:11",
"content_id": "5959b0b605ef45ddffbc5f1b1865a55383d7b664",
"detected_licenses": [
"MIT"
],
"directory_id": "e2636e9e6198c6857056879732b1ceab4eea1b57",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "linking/word_index1.c"
int main(int argc, char const *argv[])
{
int number;
char ans;
printf("DICTIONARY CONTENT:\n");
//Dictonary elements are:
printf("1.Able 2.Attach\n");
printf("3.Back 4.Baggage\n" );
printf("5.city 6.clean\n" );
printf("7.Dentist 8.Dark\n" );
printf("9.Enemy ... | 2.65625 | 3 |
2024-11-18T22:28:33.478868+00:00 | 2014-01-26T19:20:20 | 10e10cbbb0a09ae4b0d1107341dd563d1aab71e4 | {
"blob_id": "10e10cbbb0a09ae4b0d1107341dd563d1aab71e4",
"branch_name": "refs/heads/master",
"committer_date": "2014-01-26T19:20:20",
"content_id": "12be83e2f6904b1037b22cdbea3d359b3ee8c203",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "87cbf350e374d18068f2480c4206bc0906f83041",
"extens... | stackv2 | /***********************************************************************
* scas, Copyright (c) 2012-2013, Maximilian Burke
* This file is distributed under the FreeBSD license.
* See LICENSE for details.
***********************************************************************/
#include <string.h>
#include <unistd.... | 2.421875 | 2 |
2024-11-18T22:28:33.605044+00:00 | 2015-04-17T17:56:20 | d8a79efc0440c8600c9d38a19af9d03b6761d228 | {
"blob_id": "d8a79efc0440c8600c9d38a19af9d03b6761d228",
"branch_name": "refs/heads/master",
"committer_date": "2015-04-17T17:56:20",
"content_id": "59020f711521a1c32b1ca9f2158f81f1c2bb4328",
"detected_licenses": [
"ISC",
"BSD-3-Clause"
],
"directory_id": "66bdc05e3e7e0a2069cbf59a8dad1fdf7a52caef"... | stackv2 | /*====================================================================*
*
* symbol.h -
*
* these are our favorite definitions and declarations; they are used
* throughout our software for clarity and consistency; learn to love
* them and make them your own;
*
*. Motley Tools by Charles Maier
*: modi... | 2.078125 | 2 |
2024-11-18T22:28:33.668414+00:00 | 2021-06-07T06:45:56 | 193554da3ee072b5561f777367784e1c4de73188 | {
"blob_id": "193554da3ee072b5561f777367784e1c4de73188",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-07T06:45:56",
"content_id": "2c73892b25651800d48f14b9edbfaceaf3ce2258",
"detected_licenses": [
"MIT"
],
"directory_id": "e1472ae74da2a5dade36dd2185253846b3f45671",
"extension": "c"... | stackv2 | // Example Program for Implementation of Recursion:
#include <stdio.h>
#include <string.h>
recursion(int count)
{
if(count < 10)
{
recursion(count + 1);
}
}
void main()
{
int a = 0;
recursion(0);
}
| 2.875 | 3 |
2024-11-18T22:28:33.758563+00:00 | 2022-07-07T10:50:50 | 7a5f7625fdf57d9409736f9b11b14bf00bbd532a | {
"blob_id": "7a5f7625fdf57d9409736f9b11b14bf00bbd532a",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-07T10:50:50",
"content_id": "e2d497fc4d4e76b53b88d6e0eb520b97113639de",
"detected_licenses": [
"MIT"
],
"directory_id": "722de743eb8884a6b42caf1a723e2ce0a39af065",
"extension": "h"... | stackv2 | #ifndef EXT2_DRIVER_
#define EXT2_DRIVER_
#include <fs/fs.h>
#include <stddef.h>
#include <stdint.h>
/* Structure definitions: */
/**
* EXT2 super block structure as defined in
* https://www.nongnu.org/ext2-doc/ext2.html#superblock
* and
* https://wiki.osdev.org/Ext2
*/
typedef struct
{
uint32_t total_inodes;... | 2.078125 | 2 |
2024-11-18T22:28:33.848543+00:00 | 2021-03-19T12:16:20 | 020bc3dd1b203431f5dd5cba77aca2730f52f65d | {
"blob_id": "020bc3dd1b203431f5dd5cba77aca2730f52f65d",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-19T12:16:20",
"content_id": "6d8876d22882c0dc370f0b21ea807c81de7602be",
"detected_licenses": [
"MIT"
],
"directory_id": "7cd2c969be3145b617050222213af8f143041d2c",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <string.h>
int main(void)
{
int rabnud = 5;
int weeks = 1;
while (rabnud < 150)
{
printf("At %d weeks, Rabnub has %4d friends \n", weeks, rabnud);
rabnud = 2 * (rabnud-weeks++);
}
printf("\nDone!\n");
return 0;
} | 2.71875 | 3 |
2024-11-18T22:28:34.252223+00:00 | 2020-08-18T06:56:36 | 3c0efe37c9fe8880ae5867308c24abb49feafcd4 | {
"blob_id": "3c0efe37c9fe8880ae5867308c24abb49feafcd4",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-18T06:56:36",
"content_id": "e0ac48cf2f22a289ca0d204bbc8d6a993bcaf5af",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f7cb41fe0859d80574e412f51280376c8e3c9e0f",
"extensio... | stackv2 | /*
* =====================================================================================
*
* Filename: tcp_server.c
*
* Description: tcp server
*
* Version: 1.0
* Created: 05/12/2019 09:10:37
* Revision: none
* Compiler: gcc/g++
*
* Author: bbxyard (Brian)... | 2.4375 | 2 |
2024-11-18T22:28:34.350588+00:00 | 2013-04-17T18:42:40 | 2b642a517e840f86fff94f1443535943e6b66fa7 | {
"blob_id": "2b642a517e840f86fff94f1443535943e6b66fa7",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-17T18:42:40",
"content_id": "f9485c18f88abd8997682dab30d86239063f1b5c",
"detected_licenses": [
"MIT"
],
"directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef",
"extension": "c"... | stackv2 | /* Data East Backfire!
Backfire!
inputs are incomplete (p2 side.., alt control modes etc.)
there may still be some problems with the 156 co-processor, but it seems to be mostly correct
set 2 defaults to wheel controls, so until they're mapped you must change back to joystick in test mode
*/
#defin... | 2.125 | 2 |
2024-11-18T22:28:34.441208+00:00 | 2021-06-17T13:16:47 | 33425cd9612238900a35409ad6575d51915a9070 | {
"blob_id": "33425cd9612238900a35409ad6575d51915a9070",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-17T13:16:47",
"content_id": "458ce5d59eba52a621d55e97eb6aa740e3a5d443",
"detected_licenses": [
"MIT"
],
"directory_id": "74842fd9fa12b311bc46e5c69954fec1babbc572",
"extension": "c",
... | stackv2 | /*
a-unzip: A unix utility that unzips files zippped using a-zip
which uses a simple RLE method to zip files.
It processes 5 bytes at a time of which the first 4 bytes correspond to the frequency of the
character stored as the 5th byte.
*/
#include <stdint.h> // for uint32_t and uint8_t
#include <stdio.h>
#include ... | 3.1875 | 3 |
2024-11-18T22:28:34.696403+00:00 | 2020-04-02T13:57:15 | abfc056b4272e783ca70e0c99a17c8f1e207a2a3 | {
"blob_id": "abfc056b4272e783ca70e0c99a17c8f1e207a2a3",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-02T13:57:15",
"content_id": "8d0ac277657a8f00904643334bf9995a37250d93",
"detected_licenses": [
"MIT"
],
"directory_id": "380c4561d7d380c1528044ebb70da7d716806d2b",
"extension": "c"... | stackv2 | #include "string.h"
int main(void) {
char a[] = "aaaabaaaa";
char *res = strchr(a, 'b');
if(!res) {
return 128;
}
return res - a;
}
| 2.21875 | 2 |
2024-11-18T22:28:36.398450+00:00 | 2019-12-23T18:25:55 | eff592eb446f1efd62ca62cc33f1538cea6944a6 | {
"blob_id": "eff592eb446f1efd62ca62cc33f1538cea6944a6",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-23T18:25:55",
"content_id": "0dff28c1de3eb880ba59c8d3183923a674dfed8e",
"detected_licenses": [
"MIT"
],
"directory_id": "a3cd9bacd83ee6d92fe180856941706c535983bd",
"extension": "c"... | stackv2 | /* dzug.c CVE-2012-3524 PoC (C) 2012 Sebastian Krahmer
*
* Trivial non-dbus root exploit. (Yes, it is 2012!)
*
* The underlying bug (insecure getenv() by default) has been
* reported ages ago, but nobody really cared. Unless you have an
* exploit...
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.... | 2.15625 | 2 |
2024-11-18T22:28:36.518363+00:00 | 2017-09-27T17:39:41 | efceb6ae859218c5d3d4cb981c7767020e67f3d1 | {
"blob_id": "efceb6ae859218c5d3d4cb981c7767020e67f3d1",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-27T17:39:41",
"content_id": "06194db90412a043b68d1d8a8edd86abdef92767",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0bfa6dc9403a5f8d5e3f02e2c22768cce6dd1fed",
"extens... | stackv2 | #include "MSTK_private.h"
/* */
/* Collapse an edge */
/* All elements connected to this edge will be collapsed/deleted and */
/* entities that become overlapping will be merged ... | 2.25 | 2 |
2024-11-18T22:28:39.899009+00:00 | 2021-07-08T03:53:10 | 3344bace20b8ed22b125ed34b796d06e1591f030 | {
"blob_id": "3344bace20b8ed22b125ed34b796d06e1591f030",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-08T03:53:10",
"content_id": "0bca180e6526b7359158b96e0c11307de83d7e5f",
"detected_licenses": [
"ISC"
],
"directory_id": "030f22e56914f5766f408fd83e85d835aebc4d73",
"extension": "c"... | stackv2 | /*
Copyright 2019-2020 Michael Fisher <mfisher@kushview.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED ... | 2.015625 | 2 |
2024-11-18T22:28:40.059818+00:00 | 2016-04-05T02:43:34 | 4682c1736d438d47d2aeae996738d398113e1013 | {
"blob_id": "4682c1736d438d47d2aeae996738d398113e1013",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-05T02:43:34",
"content_id": "9c935407874cf232514f59c99e3f49a8108e145a",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "440f016b8e8614f641eccc72b03e4d31cc60ea51",
"extension":... | stackv2 | #include <stdio.h>
#include <errno.h>
#include "cbind.h"
typedef struct {
int data;
} MyData;
int addFromMyData(MyData *data, int add) {
return data->data + add;
}
int main(void) {
MyData dat;
dat.data = 15;
int (*boundFn)(int) = cbind(&dat, &addFromMyData);
if (!boundFn) {
printf("cbind() failed: %d\n", er... | 3.015625 | 3 |
2024-11-18T22:28:40.670773+00:00 | 2017-04-30T19:52:52 | ba8f6cfc23342b01804eec386bc9920b8dbb0440 | {
"blob_id": "ba8f6cfc23342b01804eec386bc9920b8dbb0440",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-30T19:52:52",
"content_id": "9676679b2c3f7b5a5bc3ed20a42cbc0e25e7e4f3",
"detected_licenses": [
"MIT"
],
"directory_id": "ee70881b4b72238dd86054a396841f05d73fe03b",
"extension": "c"... | stackv2 | #include "life.h"
//Reads from the file generated by the MPI program and displays the slides using the curses library
int main() {
FILE *fp;
//Create a buffer for cells
cell *buf;
buf = (cell *)calloc(ROWNUM*COLNUM, sizeof(cell));
void display(WINDOW *, cell *, int );
//Child window
WINDOW *win;
//Init... | 2.734375 | 3 |
2024-11-18T22:28:41.003686+00:00 | 2018-10-30T07:06:23 | fefed55d4af4227e816d9faa124b822ee84b9faf | {
"blob_id": "fefed55d4af4227e816d9faa124b822ee84b9faf",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-30T07:06:23",
"content_id": "fbe36d6be625adcd26c8e315aeef712ee83806bc",
"detected_licenses": [
"MIT"
],
"directory_id": "2cfdb96fab636cf71f75ab0eca96cd5ec9e729db",
"extension": "c"... | stackv2 | #include "../btree.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PTR(x) (&(x))
#define VPTR(x) ((void*)(&(x)))
#define deref(x) (*(x))
#define ZEROINIT(x) memset(&(x),0,sizeof(x))
#define PCHILD(x,n) (deref(x)->childs[n])
typedef unsigned int ui;
typedef int (*comper)(void*,ui,void*,ui);
qBTr... | 2.5 | 2 |
2024-11-18T22:28:41.603956+00:00 | 2022-01-13T05:22:34 | 72d0f57ab129302eab50350f6d0a511641890759 | {
"blob_id": "72d0f57ab129302eab50350f6d0a511641890759",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-13T05:22:34",
"content_id": "54d0d4435a942c9b9588c1b53ad32a3b31eda97f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "cc14c6dd1de2fe6ebafa086554c76932f4ca81b2",
"extensio... | stackv2 | /*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-08-15 misonyo first implementation.
*/
/*
* 程序清单:这是一个 SPI 设备使用例程
* 例程导出了 spi_w25q_sample 命令到控制终端
* 命令调用格式:spi_w25q_sample spi10
* 命令解释:命令第二个参数... | 2.5625 | 3 |
2024-11-18T22:28:41.743493+00:00 | 2013-11-18T12:20:37 | f33c0d009ab0fd54a2244e2723bdce6eab23d315 | {
"blob_id": "f33c0d009ab0fd54a2244e2723bdce6eab23d315",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-18T12:20:37",
"content_id": "6cfecd1c9c7723fe94d3a5089c6f16724a33c88d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c955394e3f7810b7da90d04f2feb0987bd49ab34",
"extensio... | stackv2 | /*
* create.c
*
* Copyright © 2005, 2006 Sami Tolvanen <sami@ngim.org>
*/
#include "common.h"
#include "base.h"
int ngim_create_directory(const char *name, apr_fileperms_t perms,
int setperms, apr_pool_t *pool)
{
apr_status_t status;
apr_finfo_t info;
die_assert(name);
die_assert(pool);
if (APR_FAIL(sta... | 2.4375 | 2 |
2024-11-18T22:28:41.895672+00:00 | 2023-02-16T11:27:40 | e59a47832a8534ef86ca36aa5f4deb754410aee7 | {
"blob_id": "e59a47832a8534ef86ca36aa5f4deb754410aee7",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "7352e40b728fdd0e1ec284cdfd788ec5cf9459f1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright (c) 2020 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/drivers/sensor.h>
#include <stdio.h>
#include <zephyr/sys/util.h>
#ifdef CONFIG_LSM6DSL_TRIGGER
static int lsm6dsl_trig_cnt;
static void lsm6dsl_trigger_han... | 2.734375 | 3 |
2024-11-18T22:28:42.748277+00:00 | 2017-12-26T09:46:27 | ffd8c5adbf34f8d11b9c7f909d32d476dba6fe8b | {
"blob_id": "ffd8c5adbf34f8d11b9c7f909d32d476dba6fe8b",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-26T09:46:27",
"content_id": "ef5fd615b0ddeaf0afe4b8448f83ce6edf9f1be3",
"detected_licenses": [
"MIT"
],
"directory_id": "6c686851c0683c989afe0a0b93d839e354e4b085",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <sys/mman.h>
int main(void) {
char *p;
int ret;
p = mmap(NULL, 512*1024, PROT_READ|PROT_WRITE,
MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
if (p == MAP_FAILED)
perror ("mmap");
strcpy(p, "HELLO");
printf("%s\n", p);
ret = munmap(p, 512*1024);
if (ret)
perror... | 2.53125 | 3 |
2024-11-18T22:28:42.864031+00:00 | 2021-07-28T15:22:39 | e1c0f0c567d880035d02aa2338688678e3ae8b96 | {
"blob_id": "e1c0f0c567d880035d02aa2338688678e3ae8b96",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-28T15:22:39",
"content_id": "3ad6a343cad64bb26768eb9cad182c28ec92400c",
"detected_licenses": [
"MIT"
],
"directory_id": "fb4cbac6101422c0f7da71d36c9ebaec44abf671",
"extension": "h",
... | stackv2 | #ifndef AHRS_H
#define AHRS_H
#include "AHRS_MiddleWare.h"
/**
* @brief 根据加速度的数据,磁力计的数据进行四元数初始化
* @param[in] 需要初始化的四元数数组
* @param[in] 用于初始化的加速度计,(x,y,z)不为空 单位 m/s2
* @param[in] 用于初始化的磁力计计,(x,y,z)不为空 单位 uT
* @retval 返回空
*/
extern void AHRS_init(fp32 quat[4], const fp32 acce... | 2.203125 | 2 |
2024-11-18T22:28:43.025634+00:00 | 2021-05-31T01:44:18 | bbf3b34acb1ff418ef0553acde4fedd738cfdecb | {
"blob_id": "bbf3b34acb1ff418ef0553acde4fedd738cfdecb",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-31T01:44:18",
"content_id": "5f97926ee965e410bfeb6b64395cd7e394a0fa14",
"detected_licenses": [
"MIT"
],
"directory_id": "2cfd714eb9634d5fdfcdad488ba0cbbb27327c0b",
"extension": "h"... | stackv2 | // Hàm này dùng khi chọn một từ ở mục đề xuất của searchEntry
// Sau đó đặt từ đó vào searchEntry.
gboolean match_selected_for_search(GtkEntryCompletion *completion, GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
{
gchar *word; // Khởi tạo biến word
gtk_tree_model_get(... | 3 | 3 |
2024-11-18T22:28:43.380228+00:00 | 2016-08-15T14:52:32 | 99b9e87b313aa8b80e3cd96d0358f0e9c3200995 | {
"blob_id": "99b9e87b313aa8b80e3cd96d0358f0e9c3200995",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-15T14:52:32",
"content_id": "c20212b840598ac3147c5c5585b3d81f5e03c8a7",
"detected_licenses": [
"MIT",
"BSD-4-Clause-UC",
"BSD-3-Clause"
],
"directory_id": "05af5311d334bec940... | stackv2 | #include <stdio.h>
#include <unistd.h>
int rename(const char *old, const char *new)
{
int err;
err= link(old, new);
if (err==-1) return(-1);
return(unlink(old));
}
| 2.25 | 2 |
2024-11-18T22:28:43.623536+00:00 | 2019-08-29T17:47:01 | e96158ad217da4453688d3e99959c3dc356d3b6d | {
"blob_id": "e96158ad217da4453688d3e99959c3dc356d3b6d",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-29T17:47:01",
"content_id": "e8b4837834b6be74223050f54ab4ba2c29622fc7",
"detected_licenses": [
"MIT"
],
"directory_id": "09753be2b96606dbf5937a534659d935c0251d58",
"extension": "c"... | stackv2 | /*
* main.c
*
* Created on: Aug 29, 2019
* Author: Daniel Mårtensson
*/
#include <stdio.h>
#include "Blas/f2c.h"
#include "Blas/blasFunctions.h"
#include <time.h>
int main(){
/*
* Notice that BLAS uses transpose matrices as default.
*/
// Transpose matrix A'
real A[4*3]={-0.0941, 0.5298, 0.1350,... | 2.84375 | 3 |
2024-11-18T22:28:44.109828+00:00 | 2019-11-28T09:54:28 | 9e8ddf4ea164a1b7944bbf4cf83cffa7a921e0ed | {
"blob_id": "9e8ddf4ea164a1b7944bbf4cf83cffa7a921e0ed",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-28T09:54:28",
"content_id": "66e3d71e27efe502107e50783baba31c431bf3c5",
"detected_licenses": [
"MIT"
],
"directory_id": "1f9c6400485e1e284e0c9dbad9cea2ff897cb899",
"extension": "c"... | stackv2 | /* getattr - return attribute for a directory entry
*
* 09-Dec-1986 bw Added DOS 5 support
* 30-Oct-1987 bw Change 'DOS5' to 'OS2'
*
*/
#if defined(OS2)
#include <os2.h>
#include <string.h>
#else
#include <dos.h>
#endif
#include "..\h\tools.h"
int getattr (pname)
char *pname;
{
#if defined(NT) || defined(OS2)
... | 2.21875 | 2 |
2024-11-18T22:28:44.190464+00:00 | 2020-12-19T18:15:05 | af8cfb5e6282a6980466d736375cd9cf6b5108ff | {
"blob_id": "af8cfb5e6282a6980466d736375cd9cf6b5108ff",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-19T18:15:05",
"content_id": "579756cca0f958fe48d8c05291f472b61d038c5e",
"detected_licenses": [
"MIT"
],
"directory_id": "98ae753a57c438029f3485ad87e7e1c951557c17",
"extension": "c"... | stackv2 | #include "type.h"
#include "container.h"
#include "membercontainer.h"
#include "util.h"
#include <stdlib.h>
#include <string.h>
Type *new_type(TypeKind kind) {
Type *type = calloc(1, sizeof(Type));
type->kind = kind;
return type;
}
bool type_is_primitive(Type *type) {
switch (type->kind) {
case TYPE_VOID:
... | 2.828125 | 3 |
2024-11-18T22:28:44.310932+00:00 | 2021-01-16T16:49:05 | ed9c10e69513ff81f222d97186e0daf34a26b2fd | {
"blob_id": "ed9c10e69513ff81f222d97186e0daf34a26b2fd",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-16T16:49:05",
"content_id": "cfe8c6a310ff38b8bdeb4267c9f6aeb82b717d3d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0dc9edbd47f22a64062809340b775aa3f683cb3c",
"extensio... | stackv2 | /**
******************************************************************************
* @file xpd_rcc_cc.h
* @author Benedek Kupper
* @version 0.3
* @date 2018-01-28
* @brief STM32 eXtensible Peripheral Drivers RCC Core Clocks Module
*
* Copyright (c) 2018 Benedek Kupper
*
* Licensed under the... | 2.125 | 2 |
2024-11-18T22:28:44.987768+00:00 | 2023-01-09T11:30:42 | ec8fb05b736bd3ddf3353d7fb727f48804590f48 | {
"blob_id": "ec8fb05b736bd3ddf3353d7fb727f48804590f48",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-09T15:00:17",
"content_id": "164ae3fb3a1900683487f45d5f940f09a0c8f834",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "5b08fc7957a5dad091b26a0ec3f0be18dbd85f19",
"extens... | stackv2 | /* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2017, Intel Corporation
* All rights reserved.
*/
#include <errno.h>
#include <fcntl.h>
#include <gio/gunixinputstream.h>
#include <gio/gunixoutputstream.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/so... | 2.640625 | 3 |
2024-11-18T22:28:45.119916+00:00 | 2015-08-22T14:42:09 | 0015e2b0448ae468ad6e5d395c46419c8c9b081b | {
"blob_id": "0015e2b0448ae468ad6e5d395c46419c8c9b081b",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-22T14:42:09",
"content_id": "b939f20d115437f10ea46eb6d60b62858863a15d",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "71e0bc8ec202b62bb3ad178105254bb7b21e53e2",
"extens... | stackv2 | #ifndef __PARSER_H__
#define __PARSER_H__
#include <stdbool.h>
#include "vm.h"
/**
Source position information
*/
typedef struct
{
uint32_t lineNo;
uint32_t colNo;
} srcpos_t;
/**
Input stream, character/token stream for parsing functions
*/
typedef struct
{
/// Internal string (hosted heap)
string... | 2.359375 | 2 |
2024-11-18T22:28:46.945515+00:00 | 2023-08-30T05:21:33 | f72ecb930eea515cdba721a8613b6115304998fb | {
"blob_id": "f72ecb930eea515cdba721a8613b6115304998fb",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T05:21:33",
"content_id": "29d486de8631739cc3f4042373bd570f7c209989",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3b1223e5259c580cbf107d1f45960d9f08aff27f",
"extens... | stackv2 | /*!
@file
@ingroup ansi
@brief ansi command - Frontend for ansi.sys. Allows user to turn ANSI
processing on or off.
(c) osFree Project 2002-2008, <http://www.osFree.org>
for licence see licence.txt in root directory, or project website
@author JMA (jma@jma.se)
*/
#define... | 2.46875 | 2 |
2024-11-18T22:28:47.020919+00:00 | 2015-03-28T09:17:50 | 4cb6e7f4659d5610a71e1eb856aaa938a793e765 | {
"blob_id": "4cb6e7f4659d5610a71e1eb856aaa938a793e765",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-28T09:17:50",
"content_id": "f41a98547a480303f40269992a3f6fc8b430e1e0",
"detected_licenses": [
"MIT"
],
"directory_id": "074a48e4c5094b92397623fd2f83f1827ba0da32",
"extension": "c"... | stackv2 | /*
* pipetest.c
*
* Simple program to test pipe system call. Note that
* you will have to write "produce" and "consume". Produce writes
* output and consume reads it.
*/
#include <syscall.h>
int
main()
{
Exec("../test/produce", 0, 0, 2);
Exec("../test/consume", 0, 0, 6);
Exec("../test/consume", 0... | 2.265625 | 2 |
2024-11-18T22:28:47.170307+00:00 | 2015-05-07T04:09:11 | 4b8b1cc10b75ba6716608e0573e310f3c1f21438 | {
"blob_id": "4b8b1cc10b75ba6716608e0573e310f3c1f21438",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-07T04:09:11",
"content_id": "17caf8ac80e6c7c18752ff2f894a67fa6a11e0cb",
"detected_licenses": [
"NCSA"
],
"directory_id": "c733a63822c129587978b8fea7388f6d7bbe28c1",
"extension": "c... | stackv2 | #include "Profiling.h"
#include "tree.h"
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#define malloc0(sz) memset(malloc(sz),0,sz)
#define SLG_SPEED_UP 1 // only trap at first time
typedef struct addr_map_v {
void* ptr;
int32_t idx;
RB_ENTRY(addr_map_v) e... | 2.34375 | 2 |
2024-11-18T22:28:47.658281+00:00 | 2017-07-12T15:02:10 | 964db021bb7f51a5e9ce216d52db13757af7f5cd | {
"blob_id": "964db021bb7f51a5e9ce216d52db13757af7f5cd",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-12T15:02:10",
"content_id": "c2459a158a83b08e63a97f9b54fadae09f107c08",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9a9f87245db42aa5cbceb3bcfa6d5fef36297ea7",
"extensio... | stackv2 | #include <malloc.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <getopt.h>
#include <arpa/inet.h>
#include "mdbx.h"
enum error_codes {
ERR_ENV_OPEN = 1, /* Error opening env */
ERR_LMDB, /* Internal LMDB error */
ERR_INPUT, /* Inva... | 2.71875 | 3 |
2024-11-18T22:28:47.833609+00:00 | 2021-06-28T22:44:09 | f93620614bad73eef3e03ba779587272b6edd1b0 | {
"blob_id": "f93620614bad73eef3e03ba779587272b6edd1b0",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-28T22:44:09",
"content_id": "468fb8ec7ee58456b94e673ae5aefe8e407da145",
"detected_licenses": [
"MIT"
],
"directory_id": "4f6bc1bd617bb6123c03677d520c4d6068b9fe4d",
"extension": "c"... | stackv2 | #include "stdio.h"
int factor(int a, int b){ //注意,a大于等于b
if (a%b==0) return b;
return factor(b,a%b);
}
int main(void){
int a,b;
printf ("输入需要求最大公约数的两整数:\n");
scanf ("%d %d", &a,&b);
if (a>=b) printf("%d\n", factor(a,b));
else printf("%d\n", factor(b,a));
return 0;
}
| 3.078125 | 3 |
2024-11-18T22:28:51.205930+00:00 | 2014-07-31T22:44:59 | 5c24215fb140093daffd1f62e5af99631c5d2581 | {
"blob_id": "5c24215fb140093daffd1f62e5af99631c5d2581",
"branch_name": "refs/heads/master",
"committer_date": "2014-07-31T22:44:59",
"content_id": "0a6a8574ccbf271be6a1b16b8eda6644a3e9976c",
"detected_licenses": [
"MIT"
],
"directory_id": "869a9a78bd4f9ecc01005bfae35c30350c3d1f53",
"extension": "h"... | stackv2 |
#ifndef _JIMI_THREAD_DEF_H_
#define _JIMI_THREAD_DEF_H_
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#include <jimi/core/jimi_def.h>
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
NS_JIMI_BEGIN
NS_JIMI_SYSTEM_BEGIN
#define HANDLE_IS_VALID(X... | 2 | 2 |
2024-11-18T22:28:51.293558+00:00 | 2018-03-17T05:53:05 | 8d063b7c7aca8458db195d093520dbcf3190f67f | {
"blob_id": "8d063b7c7aca8458db195d093520dbcf3190f67f",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-17T05:53:05",
"content_id": "c6d2cdd9a8f3704c194417b86161cb53cfdb3706",
"detected_licenses": [
"MIT"
],
"directory_id": "9e9852d6c994702f3bb9a0ff9677fa6cf8927afc",
"extension": "h"... | stackv2 |
#include <linux/limits.h>
#include "node.h"
#ifndef _DIR_H
#define _DIR_H
#define DIRENT_SIZE sizeof(struct direntry)
#define MAX_DIRENTRY 14
struct direntry {
char name[256]; //assume PATH_MAX is 256
ino_t node_num;
int next; //stores 0 or 1 indicating if there is a file or directory in the same level
};... | 2.140625 | 2 |
2024-11-18T22:28:51.976139+00:00 | 2017-12-18T04:54:47 | a5de9570fbd1f88210c30980123ea758beb58206 | {
"blob_id": "a5de9570fbd1f88210c30980123ea758beb58206",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-18T04:55:21",
"content_id": "0df77b9448692c436eac451b41ed3d7af4303670",
"detected_licenses": [
"MIT"
],
"directory_id": "2dfad4fa99cf531c99db7d3ba8c1d189e983ba4a",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <sys/socket.h>
#include <unistd.h>
#include <memory.h>
#include <stdlib.h>
#include <errno.h>
#include <stdint.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <resolv.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#inclu... | 2.171875 | 2 |
2024-11-18T22:28:52.136558+00:00 | 2022-09-11T16:32:50 | 1f9cb413c4f27f849ae591c8ca35888308f3a706 | {
"blob_id": "1f9cb413c4f27f849ae591c8ca35888308f3a706",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-11T16:32:50",
"content_id": "40f5d08bbcd0b3ec190f565281e4de4d9a4cbd04",
"detected_licenses": [
"MIT"
],
"directory_id": "b427b4af4986c69c039b70fedff3a634b6525a08",
"extension": "h"... | stackv2 | /**
** dynamem.h
**
** String library with dynamic memory handling
** https://github.com/heinyx/dynamem
**
** Author: Dipl.-Ing. Thomas Heiny, Wolfsburg, Germany
** Version: 04.10.2020
**
**/
#ifndef _DYNAMEM_H
#define _DYNAMEM_H
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
... | 3.046875 | 3 |
2024-11-18T22:28:52.492548+00:00 | 2023-06-23T10:11:23 | d26c3a3c7fc39ec6418fb75fc57c95be4746f23f | {
"blob_id": "d26c3a3c7fc39ec6418fb75fc57c95be4746f23f",
"branch_name": "refs/heads/main",
"committer_date": "2023-06-23T10:11:23",
"content_id": "21cc4d678911e941c013ec6145b7978a3e178468",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "803898f95f34521f4fc08ff42534888367ff4028",
"extensio... | stackv2 | #include "geminc.h"
#include "gemprm.h"
void ctb_prod ( char *wheel, char *subset, int maxsub, int *nsub,
char subout[][5], char descr[][41], int kbit[],
int klin[], int krot[], int kind[], int krsv[],
int *iret )
/************************************************************************
* ctb_prod *
... | 2.234375 | 2 |
2024-11-18T22:28:52.698057+00:00 | 2019-07-15T03:13:21 | eeda25ceae9f31e15f20593d484760095c677f43 | {
"blob_id": "eeda25ceae9f31e15f20593d484760095c677f43",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-15T03:13:21",
"content_id": "d8d431e78eec4ad4086282e580209379e6c953ab",
"detected_licenses": [
"MIT"
],
"directory_id": "ed458163d1385ee9c95a38671754c8ccd2bacf89",
"extension": "h"... | stackv2 | /*
MeshVertex.h
Written by Matthew Fisher
MeshVertex Represents a single vertex in a mesh structure.
*/
struct MeshVertex
{
MeshVertex() {}
explicit MeshVertex(const Vec3f &_Pos)
{
Pos = _Pos;
Normal = Vec3f::Origin;
Color = RGBColor::White;
TexCoord = Vec2f::Origin;
}
... | 2.65625 | 3 |
2024-11-18T22:28:52.768163+00:00 | 2022-07-03T19:58:06 | 4f212f1e1f5fdc7e1a358619d89f7b53fcecdc43 | {
"blob_id": "4f212f1e1f5fdc7e1a358619d89f7b53fcecdc43",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-03T19:58:06",
"content_id": "3a6ae2345d8f834241acb0e437c75c357849ca21",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "449dbc9c7d26de12588ac27c4628ce75da0629c6",
"extens... | stackv2 | #ifndef __profile_onboard__
#define __profile_onboard__
#include "opencv2/core/utility.hpp"
#include <cstdio>
#define get_ticks cv::getTickCount
#define get_freq cv::getTickFrequency
struct Profile
{
cv::String name;
int64 t; // accumulated time
int64 c; // function calls
double d_t;
do... | 2.140625 | 2 |
2024-11-18T22:28:52.949058+00:00 | 2020-09-20T04:29:09 | 98b0d8d7ec50ef3122de4cf4d9e51e756cf906b5 | {
"blob_id": "98b0d8d7ec50ef3122de4cf4d9e51e756cf906b5",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-20T04:47:54",
"content_id": "cd83f90b86aec238d82d5c20e8ce19ec1b7ddc91",
"detected_licenses": [
"MIT"
],
"directory_id": "dbc205e4a195a711623e58b1d8ffeb1c291ec9a8",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
// TODO: Thread function.
void* thread_func(void *arg){
printf("Thread's pid: %d\n", getpid());
printf("Thread's ppid: %d\n", getppid());
pthread_exit(NULL);
}
int main() {
pthread_t threads[10];
int count... | 3.234375 | 3 |
2024-11-18T22:28:53.417065+00:00 | 2019-12-13T09:52:20 | 82a4ed4b700a31901a450bf5b8f464b59a3ebb3b | {
"blob_id": "82a4ed4b700a31901a450bf5b8f464b59a3ebb3b",
"branch_name": "refs/heads/goodix",
"committer_date": "2019-12-13T09:52:20",
"content_id": "994ac4af4f05ecb89ecc1abf18bd2b8ca77b8b19",
"detected_licenses": [
"MIT"
],
"directory_id": "5352d588fe1db000fe54bb3bb442ca34aa4419e6",
"extension": "h"... | stackv2 | /**
****************************************************************************************
*
* @file app_qspi.h
* @author BLE Driver Team
* @brief Header file containing functions prototypes of QSPI app library.
*
****************************************************************************************
*... | 2.03125 | 2 |
2024-11-18T22:28:53.502216+00:00 | 2023-08-30T17:01:15 | d155ec4bee308e786fa57b9ba79290f5522eec70 | {
"blob_id": "d155ec4bee308e786fa57b9ba79290f5522eec70",
"branch_name": "refs/heads/development",
"committer_date": "2023-08-30T17:01:15",
"content_id": "b0c29887798c190c7f0431219a08f58eb9a0cad9",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "8cad8abc1ea14bcc0080f52594b... | stackv2 |
#ifndef AMREX_BLASSERT_H_
#define AMREX_BLASSERT_H_
#include <AMReX_Config.H>
#include <AMReX.H>
#ifdef AMREX_ASSERT
#undef AMREX_ASSERT
#endif
#ifdef BL_ASSERT
#undef BL_ASSERT
#endif
#if !defined(AMREX_DEBUG) && !defined(AMREX_USE_ASSERTION)
/*
The macro AMREX_ASSERT(EX) is a debugging macro, used to test the... | 2.078125 | 2 |
2024-11-18T22:28:53.605207+00:00 | 2014-08-18T14:54:55 | bb88af4e99c905be29ebbb5d23a5fededb3cd87e | {
"blob_id": "bb88af4e99c905be29ebbb5d23a5fededb3cd87e",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-18T14:54:55",
"content_id": "f08e24954c4596ff53f0f75303978fe969f3c679",
"detected_licenses": [
"Zlib"
],
"directory_id": "1c55fa881fff9fb47af0464e978c6f2881a324f1",
"extension": "c... | stackv2 | /*
* This source file is part of the "Ax c library"
*
* The zlib/libpng License
* Copyright (c) 2012 F.Bavent <me@axfab.net>
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
* the use of this soft... | 2.125 | 2 |
2024-11-18T22:28:54.351875+00:00 | 2020-08-10T19:08:38 | a41824f27198922f1b05b0f30418c9aa6371ee9a | {
"blob_id": "a41824f27198922f1b05b0f30418c9aa6371ee9a",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-10T19:08:38",
"content_id": "b2715ce633809e97346c7ff878281e27d013e5d0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "29bb3d9009439dbaf93916d0fd1d3a7d24868aaa",
"extensio... | stackv2 | /*
Copyright (c) 2014-2017, Shay Gal-On
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 and the ... | 2.484375 | 2 |
2024-11-18T22:28:55.049436+00:00 | 2020-04-04T11:01:25 | 9d03bc410e25bfd2365cb779a6ee1eba190a03f0 | {
"blob_id": "9d03bc410e25bfd2365cb779a6ee1eba190a03f0",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-04T11:01:25",
"content_id": "6a1ad8cba1826055172471e63f7cb2a1a67d5e58",
"detected_licenses": [
"MIT"
],
"directory_id": "14bde5e7d13413ba9d41dd7eb39f6dc9616f283c",
"extension": "c"... | stackv2 | #include "logger.h"
void logger(esp_log_level_t level, const char *TAG, int line, const char *func, const char *fmt, ...)
{
char log_print_buffer[BUFFER_SIZE];
memset(log_print_buffer, '\0', BUFFER_SIZE);
sprintf(log_print_buffer, "%s (%s:%d) ", TAG, func, line);
va_list args;
va_start(args, fmt);
... | 2.375 | 2 |
2024-11-18T22:28:55.139747+00:00 | 2022-12-29T07:29:09 | 34e5c2b3acd64a6b7d76f8ad6f1d5e4804752b48 | {
"blob_id": "34e5c2b3acd64a6b7d76f8ad6f1d5e4804752b48",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-29T07:29:09",
"content_id": "de3e17c359e589408396cf83c6bca36374af285d",
"detected_licenses": [
"MIT"
],
"directory_id": "2c1317eeb4684761b7af5dbafa49c06d3a53d38c",
"extension": "c"... | stackv2 | #include <Python.h>
#include <structmember.h>
/*
Persistent/Immutable/Functional vector and helper types.
Please note that they are anything but immutable at this level since
there is a whole lot of reference counting going on. That's the way
CPython works though and the GIL makes them appear immutable.
To the prog... | 2.265625 | 2 |
2024-11-18T22:28:55.806581+00:00 | 2021-10-19T04:36:48 | 0257bfd0185b8314c6149a766a16d5f62948e988 | {
"blob_id": "0257bfd0185b8314c6149a766a16d5f62948e988",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-19T04:36:48",
"content_id": "4b5e3cd17033797163e61c287e0ee6fc7a9acce0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "27a87f65a8cf5f3fb0638b1eb913d2dbee6c6a93",
"extensio... | stackv2 | /**
******************************************************************************
* @file FIREWALL/FIREWALL_VolatileData_Executable/Src/main.c
* @author MCD Application Team
* @brief This sample code shows how to use STM32L4xx FIREWALL HAL API
* to protect an executable volatile data segment... | 2.203125 | 2 |
2024-11-18T22:28:55.892604+00:00 | 2014-10-21T22:17:48 | df8d7faf0b8ddd938646a1999502f3bb17a66740 | {
"blob_id": "df8d7faf0b8ddd938646a1999502f3bb17a66740",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-21T22:17:48",
"content_id": "6bed3a27fe8c71e9654fcaa38390e5ca48767cc1",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "ee9764a8e1e06e1ddc7aa051b82f130f... | stackv2 | /*
* Test Gear library test application
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "testgear/testgear.h"
#define TIMEOUT 1000 // ms
#define LOOPS 1
// Available tests
#define DUMMY_TEST
//#define FB_TEST
//#define SHELL_TEST
//#define AUDIO_TEST
// Test specific settings
#define FB_DEL... | 2.515625 | 3 |
2024-11-18T22:28:56.230099+00:00 | 2021-11-15T17:17:28 | ad83751d464a769b4500f02c125c26d061cfb276 | {
"blob_id": "ad83751d464a769b4500f02c125c26d061cfb276",
"branch_name": "refs/heads/main",
"committer_date": "2021-11-15T17:17:28",
"content_id": "4e108c1253e1cda03874b9cf137658e2c915555e",
"detected_licenses": [
"MIT"
],
"directory_id": "2463fab5e98964e3ecf1b9da5f3bf2ed391b1f6e",
"extension": "c",
... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: ... | 2.90625 | 3 |
2024-11-18T22:28:56.307991+00:00 | 2021-04-29T02:11:46 | f56736669a19566ea9fcf9a5719fefaa1fd71e39 | {
"blob_id": "f56736669a19566ea9fcf9a5719fefaa1fd71e39",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-29T02:11:46",
"content_id": "5fa74a478eaf53c937ced4ae80e7b87de9724e8c",
"detected_licenses": [
"MIT"
],
"directory_id": "ba6529f0c5143d3758e575c5c2ca546f81454ca8",
"extension": "h"... | stackv2 |
// this is an include guard. It ensures that, if this header is included more
// than once, duplicate declarations are prevented.
#ifndef THREAD_HELPER_H
#define THREAD_HELPER_H
// define and declare different types, depending on the operating system
#ifdef _WIN32
// Declarations compatible with Windows Threads
#incl... | 2.796875 | 3 |
2024-11-18T22:28:56.700336+00:00 | 2023-08-13T07:00:15 | 38c611a4a74e9226bff26d3962c46cc8b032687b | {
"blob_id": "38c611a4a74e9226bff26d3962c46cc8b032687b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T07:00:15",
"content_id": "ec085fefab71be5a06212ce183b3dd012ccbc5b8",
"detected_licenses": [
"MIT"
],
"directory_id": "2266eb133fc3121daf0aa7f4560626b46b94afe0",
"extension": "c"... | stackv2 | // /clone/board/chatroom_b.c
inherit BULLETIN_BOARD;
void create()
{
set_name("聊天室留言板", ({ "board" }));
set("long", "大家都来灌灌水,一起说废话。\n" );
set("capacity", 100);
// not setup now
// I will call setup after set from me
}
void set_from_me(object me, object chatroom)
{
if (query("board_id"))
... | 2.375 | 2 |
2024-11-18T22:28:57.363006+00:00 | 2023-06-12T12:58:22 | 67b3eece62cb0631c569f6c5b27bf5cb59a16dd2 | {
"blob_id": "67b3eece62cb0631c569f6c5b27bf5cb59a16dd2",
"branch_name": "refs/heads/master",
"committer_date": "2023-06-12T12:58:22",
"content_id": "3f8aac1eb9b891d93c24bf75b7fbfca99d2fb525",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ea7cb6ba74377b67aef7dff7788cc4ec292df684",
"extensio... | stackv2 | /*
* Copyright 2023 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 2.046875 | 2 |
2024-11-18T22:40:18.490104+00:00 | 2017-07-30T06:56:55 | a87e5d9bc6b6246e5ac3dc0c2e72dd02f4cebd3c | {
"blob_id": "a87e5d9bc6b6246e5ac3dc0c2e72dd02f4cebd3c",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-30T06:56:55",
"content_id": "4a8181d6d8fc7680cc8be34449c7855d42c4f69c",
"detected_licenses": [
"MIT"
],
"directory_id": "8da15f21a6dbaace7ed402e35d28961b0da15289",
"extension": "h"... | stackv2 | #ifndef WINDOW_H
#define WINDOW_H
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <inttypes.h>
#include "glimgui.h"
typedef struct {
GLFWwindow *window;
float mouse_x, mouse_y;
} window_t;
extern window_t display;
extern uint8_t keys_down[GLFW_KEY_LAST];
extern uint8_t buttons_down[GLF... | 2.03125 | 2 |
2024-11-18T22:40:22.363773+00:00 | 2023-08-31T09:55:14 | a9d59b46f17a3590bb2f2267946e0af6594f9580 | {
"blob_id": "a9d59b46f17a3590bb2f2267946e0af6594f9580",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T22:02:14",
"content_id": "d945a4a86f5a6e35e5a6e5ad3c29956a9935b3fa",
"detected_licenses": [
"MIT"
],
"directory_id": "70ffcb065027032a399f44b9ec91e7b61d73583d",
"extension": "c"... | stackv2 | #include <ccan/intmap/intmap.c>
#include <ccan/tap/tap.h>
#include <stdio.h>
#define NUM 1000
typedef UINTMAP(unsigned int *) umap;
typedef SINTMAP(int *) smap;
static bool uint_iterate_check(intmap_index_t i, unsigned int *v, int64_t *prev)
{
if ((int64_t)i <= *prev)
return false;
if (*v != i)
return false;
... | 2.8125 | 3 |
2024-11-18T22:40:22.425460+00:00 | 2015-02-22T18:42:49 | e391f9258d99fa4f812fa0e179375aecf2760370 | {
"blob_id": "e391f9258d99fa4f812fa0e179375aecf2760370",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-22T18:42:49",
"content_id": "eb8efc804a7948c6bfe11f69fab0f9c6229663e3",
"detected_licenses": [
"MIT"
],
"directory_id": "fa6f48b5908f6d21fff092b76220c1d70baa3d24",
"extension": "c"... | stackv2 | #include "Bfs/Driver.h"
#include "Problem.h"
int
main()
{
DriverParams* driverParams;
DriverState* initialState;
DriverState* finalState;
driverParams = DriverParamsAlloc(stdin,"driverParams");
initialState = DriverStateAlloc(driverParams);
DriverParamsPrint(driverParams,"driverParams",0);
DriverS... | 2.15625 | 2 |
2024-11-18T22:40:22.766412+00:00 | 2021-10-13T09:21:29 | 7924a9158d4505d4d17dc2c36b428b15a540971b | {
"blob_id": "7924a9158d4505d4d17dc2c36b428b15a540971b",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-13T09:21:29",
"content_id": "5a5455eb67a768b190127b85b08c2fbdf67d287e",
"detected_licenses": [
"Unlicense"
],
"directory_id": "e54fe85db08c335b47f28a8ed7aa2f9cc96f8ed1",
"extension":... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "../OpenSimplex2F/OpenSimplex2F.h"
#define SIZE 512
#define OFF_X 2048
#define OFF_Y 2048
#define OFF_Z 2048
#define FREQ1 1.0
#define FREQ2 2.0
#define FREQ4 4.0
#define FREQ8 8.0
#define FREQ16 16.0
#define FREQ32 32.0
#define OCT1 0.9
#define OCT2 ... | 2.5 | 2 |
2024-11-18T22:40:22.864669+00:00 | 2018-11-18T16:22:57 | 56b4b55f2024be8a264df030cfce849ac3421725 | {
"blob_id": "56b4b55f2024be8a264df030cfce849ac3421725",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-18T16:22:57",
"content_id": "0ec3d4fce90f41ecfafad5cb8a97802392e303d4",
"detected_licenses": [
"MIT"
],
"directory_id": "162ec11036bc744aa4ee5d86ee5d95cb9804e333",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <winternl.h>
#define STATUS_INFO_LENGTH_MISMATCH 0xc0000004
typedef ULONG
(WINAPI *tNTQSI) (
SYSTEM_INFORMATION_CLASS SystemInformationClass,
PVOID SystemInformation,
ULONG SystemInformationLength,
PULONG ReturnLength); // ULONG *ReturnLength
... | 2.390625 | 2 |
2024-11-18T22:40:22.922298+00:00 | 2014-02-25T21:46:01 | 735a784e3630fe84903c5cacd11230545ef70e79 | {
"blob_id": "735a784e3630fe84903c5cacd11230545ef70e79",
"branch_name": "refs/heads/master",
"committer_date": "2014-02-25T21:46:41",
"content_id": "e0f2cc65bfc6e02ca051665618997a08faa0aaf4",
"detected_licenses": [
"MIT"
],
"directory_id": "831933bf044a027b2c60cb8b14b0826ad6fcaa2e",
"extension": "c"... | stackv2 | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include "accent.h"
#include "wordfun.h"
static int
cmp_char(const void *a, const void *b)
{
const char *aa = (char *)a;
const char *bb = (char *)b;
return *aa - *bb;
}
int
canon_sort(char *dst, char *str, int ex... | 2.4375 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.