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-18T20:59:33.943292+00:00 | 2019-08-04T09:00:00 | af84594381bf8fc8adb673a6a5168050462bbca1 | {
"blob_id": "af84594381bf8fc8adb673a6a5168050462bbca1",
"branch_name": "refs/heads/stretch",
"committer_date": "2019-08-04T09:00:00",
"content_id": "7b5af6ec109e1c34aaccba2a688e29bc08d5f0cd",
"detected_licenses": [
"MIT"
],
"directory_id": "d27575426529d7585e160d3dc126bb2f0616f839",
"extension": "c... | stackv2 |
/* ev3_dc.c was generated by yupp 1.1c3
out of ev3_dc.yu-c
*//**
* \file ev3_dc.c (ev3_dc.yu-c)
* \brief EV3 DC Motors.
* \author Vitaly Kravtsov (in4lio@gmail.com)
* \copyright See the LICENSE file.
*/
#define EV3_DC_IMPLEMENT
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "... | 2.109375 | 2 |
2024-11-18T20:59:34.150922+00:00 | 2023-08-16T08:50:33 | bbe18e88483d65f74d6cb883deb9b857f25db76f | {
"blob_id": "bbe18e88483d65f74d6cb883deb9b857f25db76f",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T09:13:27",
"content_id": "35dd7c72ef69c7f740553dbc92bf2637f1ac3e2f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "55540f3e86f1d5d86ef6b5d295a63518e274efe3",
"extensio... | stackv2 | #include <bl808_common.h>
#include "bl_comm_sns.h"
#undef DEBUG_MODULE
#define DEBUG_MODULE 0
bool is_param_valid(int value, int min, int max)
{
if (value > max || value < min) {
return false;
}
return true;
}
void clip_param_range(int *value, int min, int max)
{
if (*value > max) {
... | 2.546875 | 3 |
2024-11-18T20:59:35.801193+00:00 | 2016-01-11T16:22:09 | 387e253de304afa5bc204c126ac41274964c3055 | {
"blob_id": "387e253de304afa5bc204c126ac41274964c3055",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-11T16:22:09",
"content_id": "121a9de366f79092e82ce1daf6b18db809e53670",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0a894bd0ec5dbc77b2a723209eab89910c2e67e0",
"extens... | stackv2 | /*-
* Copyright (c) 2013-2014 The University of Oslo
* Copyright (c) 2016 Dag-Erling Smørgrav
* 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 ret... | 2.15625 | 2 |
2024-11-18T20:59:35.881619+00:00 | 2023-08-17T18:32:25 | d15b538f4307b67bfad5f14dac598f9a49a7db1c | {
"blob_id": "d15b538f4307b67bfad5f14dac598f9a49a7db1c",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T18:32:25",
"content_id": "4fb7edca758bb2ef2398b8f1da53b99bf00e9efb",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b79d3d8e3962eb134351de05b023fc7bd917b823",
"extension"... | stackv2 | /************************************************************************
* NASA Docket No. GSC-18,447-1, and identified as “CFS CFDP (CF)
* Application version 3.0.0”
*
* Copyright (c) 2019 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All ... | 2 | 2 |
2024-11-18T20:59:38.558724+00:00 | 2022-12-14T09:46:01 | c0c48de72a8df70ad8109d79f07a8fe874ff9292 | {
"blob_id": "c0c48de72a8df70ad8109d79f07a8fe874ff9292",
"branch_name": "refs/heads/IVM",
"committer_date": "2022-12-14T09:46:01",
"content_id": "492e5a3b72d04a07cf41e90b3443cb719afecdfa",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "b0521dc4104d9d88746450a083249f06f859bfea",
"extension":... | stackv2 | /*-------------------------------------------------------------------------
*
* thread.c
*
* Prototypes and macros around system calls, used to help make
* threaded libraries reentrant and safe to use from threaded applications.
*
* Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
*
... | 2.421875 | 2 |
2024-11-18T20:59:39.560113+00:00 | 2019-01-04T04:20:14 | 13213426a877e84080636d7d7c30216263212b28 | {
"blob_id": "13213426a877e84080636d7d7c30216263212b28",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-04T04:20:14",
"content_id": "c9a04f8254ea20ea5b7d9cc9fba156bb430c570e",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "27ec839782116c5331831f825d918281ec822914",
"extensio... | stackv2 | /*-------------------------------------------------------------------------
*
* Copyright (c) 2013, Max Planck Institute for Marine Microbiology
*
* This software is released under the PostgreSQL License
*
* Author: Michael Schneider <mschneid@mpi-bremen.de>
*
* IDENTIFICATION
* src/sequence/stats.c
*
*--------------... | 2.3125 | 2 |
2024-11-18T20:59:39.694628+00:00 | 2020-06-20T22:50:31 | 601523c14a4afb3dde914df2ff83918cbceaf2d3 | {
"blob_id": "601523c14a4afb3dde914df2ff83918cbceaf2d3",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-20T22:50:31",
"content_id": "7c9f22a047a187daaa3c97b6e01fed3d05ea6aab",
"detected_licenses": [
"MIT"
],
"directory_id": "86d6c6e763b9ab8e1af9c599aea9d51e01e5c475",
"extension": "c"... | stackv2 | /// @file ui.c
/// @brief A Rotary encoder UI
/// Heres the basics of how this works.
/// Setting the Clock
/// 1. Hold the button for 3s. The H and M needles go to zero.
/// Heres
/// Attempt #2. Build this so that it's somewhat like ladder logic.
/// That includes concepts like relays that are true once per seco... | 2.53125 | 3 |
2024-11-18T20:59:42.602209+00:00 | 2019-06-19T15:26:58 | a75b72bca1ceade8a79662fc62f3ef11d40474c2 | {
"blob_id": "a75b72bca1ceade8a79662fc62f3ef11d40474c2",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-19T15:26:58",
"content_id": "cce617fcb42f2f7d05c06ecb3a22501a33773dce",
"detected_licenses": [
"MIT"
],
"directory_id": "8dcaba4dd3e59c61281649c9fe6c8f3adb21e7ec",
"extension": "c"... | stackv2 |
#include <windows.h>
#include <time.h>
#include <GL/gl.h>
LRESULT CALLBACK WndProc (HWND hWnd, UINT message,
WPARAM wParam, LPARAM lParam);
void EnableOpenGL (HWND hWnd, HDC *hDC, HGLRC *hRC);
void DisableOpenGL (HWND hWnd, HDC hDC, HGLRC hRC);
int W;
int H;
const int RND = 3; // -a-b-g-r
const unsigned int BACK... | 2.1875 | 2 |
2024-11-18T20:59:42.765468+00:00 | 2009-07-13T11:34:48 | f2f23fc79daa26eaf95b3bc033f99d07fa413b32 | {
"blob_id": "f2f23fc79daa26eaf95b3bc033f99d07fa413b32",
"branch_name": "refs/heads/master",
"committer_date": "2009-07-13T11:34:48",
"content_id": "b71b1a14e1f54a4d1eabb9d014725f4fd38c1119",
"detected_licenses": [
"BSD-4-Clause-UC",
"BSD-3-Clause"
],
"directory_id": "9c1809d9bce24eed3698e7f968254... | stackv2 | /*
* Copyright (c) 1992-1998 Michael A. Cooper.
* This software may be freely used and distributed provided it is not
* sold for profit or used in part or in whole for commercial gain
* without prior written agreement, and the author is credited
* appropriately.
*/
/*
* This is an rcmd() replacement originally b... | 2.34375 | 2 |
2024-11-18T20:59:43.132531+00:00 | 2017-03-07T17:10:11 | 1169e37b99ef4b22388ae7859d6fd7e028cf71f7 | {
"blob_id": "1169e37b99ef4b22388ae7859d6fd7e028cf71f7",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-07T17:10:11",
"content_id": "feba0ef8e51e35bd70b7b77653fffe4a84ab9bd8",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a16626795991f319ddf928863b29b3be5d86d609",
"extens... | stackv2 |
/*************************************************************************
* OneWireHandler.c
*
* Ver Date Name Description
* PA0 2006-11-24 AGY Created.
* PA1 2007-10-15 AGY Changed so that 1-w handling only on request from client
* PA3 2014-01-10 AGY Added OWFS file system, r... | 2.234375 | 2 |
2024-11-18T20:59:43.608024+00:00 | 2017-08-02T19:06:41 | b060f1110543b1d550bae3e84ecc259a33bc2b3d | {
"blob_id": "b060f1110543b1d550bae3e84ecc259a33bc2b3d",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-02T19:06:41",
"content_id": "fe509ec04d45821ae1489e06fb4e3e3630b33b3b",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "de88c846ebf46a437004b5349fc3aebf08... | stackv2 | /*
* Copyright (c) 2012-2016 by Farsight Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 2.046875 | 2 |
2024-11-18T20:59:43.681602+00:00 | 2020-01-22T16:42:25 | 689520c792815e29b38fb06d552b0f352b2251ae | {
"blob_id": "689520c792815e29b38fb06d552b0f352b2251ae",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-22T16:42:25",
"content_id": "c630450cca913814ff1575d841a30a3d13eb2ed1",
"detected_licenses": [
"MIT"
],
"directory_id": "7f183d8371bbd9bff8dde344a39c1c6e2b0d3cf5",
"extension": "c"... | stackv2 | #include "krr/graphics/terrain.h"
#include "krr/graphics/terrain_shader3d.h"
#include "krr/graphics/objloader.h"
#include "krr/graphics/texture.h"
#include <stdlib.h>
#include "krr/foundation/log.h"
#include "krr/foundation/mem.h"
#define MIN_TERRAIN_HEIGHT -50
#define MAX_TERRAIN_HEIGHT 100
static void init_defaults... | 2.171875 | 2 |
2024-11-18T20:59:44.206038+00:00 | 2023-08-31T16:20:55 | b7298fe57900acece7b7b6c151463d8df2c4683c | {
"blob_id": "b7298fe57900acece7b7b6c151463d8df2c4683c",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T16:20:55",
"content_id": "d5267b32a2470657f07fb884687cc9fbb15b1251",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "99bdb3251fecee538e0630f15f6574054dfc1468",
"extensio... | stackv2 | /*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-11-28 WangXiaoyao the first version
*/
#ifndef __TLB_H__
#define __TLB_H__
#include <rtthread.h>
#include <stddef.h>
#include <stdint.h>
#include "mm... | 2.28125 | 2 |
2024-11-18T20:59:45.001485+00:00 | 2021-10-16T03:37:36 | 8f89f9dcb03b34c0e1f841430e83d04869cb9467 | {
"blob_id": "8f89f9dcb03b34c0e1f841430e83d04869cb9467",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-16T03:42:32",
"content_id": "a42460f66e9153a5b9d5bf11bf4c817838a66f8e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "86bd47c750bc2f8e250f0e9af8a51cc8653db086",
"extens... | stackv2 | /*
Copyright (c) 2019, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#i... | 2.203125 | 2 |
2024-11-18T20:59:45.345375+00:00 | 2017-06-28T21:18:34 | eab39e79febba6d5b876294493fa256cd7ddbade | {
"blob_id": "eab39e79febba6d5b876294493fa256cd7ddbade",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-28T21:18:34",
"content_id": "7ac87096a46c6c5141314f6de203b887a9ea69f1",
"detected_licenses": [
"Unlicense"
],
"directory_id": "8620cf94bb76be433c608b663704b2bc1b4561a8",
"extension... | stackv2 | #include "input.h"
extern uint8_t running;
extern int follow;
extern int nbodies;
const uint8_t *KEYS;
void keyboard_input() {
SDL_Event event;
while (SDL_PollEvent(&event)) {
switch (event.type) {
case SDL_QUIT:
running = 0;
break;
case SDL_MOUSEBUTTONDOWN:
follow += 1;
if(follow > nbodies... | 2.15625 | 2 |
2024-11-18T20:59:45.424785+00:00 | 2019-04-13T06:30:18 | 99ce2405c994ec0850c1879735e169d8e9c6dd69 | {
"blob_id": "99ce2405c994ec0850c1879735e169d8e9c6dd69",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-13T06:30:41",
"content_id": "36c44fc43b16c89f7159ebf1965e51acd87689df",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "8b7d5f47d08c0e74f3f3d1a0c558a3bd34128ea3",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <gmp.h>
// arrays to be populated by each thread
mpz_t *best_numbers;
unsigned int *best_levels;
// mutex for printing thread info
pthread_mutex_t print_mutex = PTHREAD_MUTEX_INITIALIZER;
// argument structure for explore_range function
typedef str... | 2.953125 | 3 |
2024-11-18T20:59:45.507492+00:00 | 2017-11-03T11:31:18 | cdd46238f1e3588aa49d75e852f5f1c79021da38 | {
"blob_id": "cdd46238f1e3588aa49d75e852f5f1c79021da38",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-03T11:31:18",
"content_id": "11224f291de7199a48e15c0e0a3f39dfa4552b02",
"detected_licenses": [
"MIT"
],
"directory_id": "d514636c43099f00a264da7846fcee5842468429",
"extension": "h"... | stackv2 | #ifndef LAMBY_PAINTY_H
#define LAMBY_PAINTY_H
#pragma comment( lib, "opengl32.lib")
#pragma comment( lib, "glu32.lib")
#include <GL/gl.h>
#include "stdlib.h"
#include "gaussy.h"
struct Painty
{
float* vs;
float* angles;
V2* sincos;
int count;
int subdiv;
int angle_subdiv;
GLuint listName;
float* getBuffer(i... | 2.296875 | 2 |
2024-11-18T20:59:46.013917+00:00 | 2019-12-13T06:12:01 | 239d308765e6c33743335121925cce0723b51b39 | {
"blob_id": "239d308765e6c33743335121925cce0723b51b39",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-14T06:59:19",
"content_id": "e44c702afd8cdaf4544d6d1238c58291091fe5c9",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "40f37449be5a7dd03ff7a260fcf3866e60072f3f",
"extens... | stackv2 | /*
* Copyright 2019, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... | 2.109375 | 2 |
2024-11-18T20:59:46.454745+00:00 | 2021-03-29T07:25:31 | a39b3acc7f48a0abf443334cd28f199dca313ad5 | {
"blob_id": "a39b3acc7f48a0abf443334cd28f199dca313ad5",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-29T07:25:31",
"content_id": "0035e71e62d461dedd8728c0198c46b515e9ab6b",
"detected_licenses": [
"MIT"
],
"directory_id": "8f071007e0e4215fccd552503be3f14470a3555d",
"extension": "c",
... | stackv2 | /**
***************************************************************************************
* @file ADT74x0.c
* @brief This file provides code to use temperature sensors Analog ADT7410 and ADT7420
* @author Axel Chabot
***************************************************************************************
*... | 2.5 | 2 |
2024-11-18T21:50:41.298153+00:00 | 2023-02-16T11:27:40 | 83ca6fcf8a8908a2343cf6d1fe040bf9c010bba7 | {
"blob_id": "83ca6fcf8a8908a2343cf6d1fe040bf9c010bba7",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "87c5166b77d5c44b56d816a437670e06ce34129c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright (c) 2021 Google Inc
*
* SPDX-License-Identifier: Apache-2.0
*/
#define DT_DRV_COMPAT nuvoton_npcx_bbram
#include <zephyr/drivers/bbram.h>
#include <errno.h>
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(bbram, CONFIG_BBRAM_LOG_LEVEL);
/** Device config */
struct... | 2.421875 | 2 |
2024-11-18T21:50:41.470699+00:00 | 2018-08-23T06:17:32 | 2c47e9b4b8b78790aade34d4268dbd6c9ae44f3e | {
"blob_id": "2c47e9b4b8b78790aade34d4268dbd6c9ae44f3e",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-23T06:24:56",
"content_id": "6a23218d3a5031b17468b0dae298eb17c44075d2",
"detected_licenses": [
"MIT"
],
"directory_id": "57b740e49f4aa702b555f4e90efed4a0ba25b213",
"extension": "c"... | stackv2 | package "package_import";
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include "../deps/hash/hash.h"
export {
#include <stdbool.h>
}
import Package from "./package.module.c";
import pkg_export from "./export.module.c";
build depends "../deps/hash/hash.c";
export typedef struct {
char ... | 2.078125 | 2 |
2024-11-18T21:50:41.563304+00:00 | 2021-12-28T17:16:11 | 20c5830670fb08b3d7dfad947b01bab47ecd1c56 | {
"blob_id": "20c5830670fb08b3d7dfad947b01bab47ecd1c56",
"branch_name": "refs/heads/master",
"committer_date": "2021-12-28T17:16:11",
"content_id": "8a34cb04d37804ed48452c5b35ba5552d45be941",
"detected_licenses": [
"MIT"
],
"directory_id": "91b3fdc75d4f0c45508b55d5618f72721067b2b9",
"extension": "c"... | stackv2 | #include "lib.h"
#include <stdlib.h>
#include <string.h>
// ===============================================================
// ========= Forward declaration of availible functions ==========
// ===============================================================
prime_numbers_t __prime_numbers;
prime_numbers_range_t __p... | 2.796875 | 3 |
2024-11-18T21:50:42.104516+00:00 | 2021-08-18T21:36:08 | 44c4f8ed8c88bb03b36e6e9bddd5d95bcff0adc6 | {
"blob_id": "44c4f8ed8c88bb03b36e6e9bddd5d95bcff0adc6",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-18T21:36:08",
"content_id": "0951a8ad85f41a13e4f93d687a9f26c93ca0f0f8",
"detected_licenses": [
"Unlicense"
],
"directory_id": "934c4ee8a9a57a22ea4f02c6c5f72dd59c6fb201",
"extension":... | stackv2 | #include<stdio.h>
#include<math.h>
/**
* Alcuin Sequence
* Formula: a(n) = round(n^2/12) – floor(n/4)*floor((n+2)/4)
* Example: 0, 0, 0, 1, 0, 1, 1, 2, 1, 3, 2, 4, 3, 5, 4, 7 ...
*/
// Algorithm for calculating Alcuin numbers
int Alcuin(int n)
{
double _n = n, val;
val = round((_n * _n) / 12)
... | 3.890625 | 4 |
2024-11-18T21:50:42.754177+00:00 | 2020-11-19T17:37:39 | 1562c1b2c66a9529bc4703913bf33c92ffcca278 | {
"blob_id": "1562c1b2c66a9529bc4703913bf33c92ffcca278",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-19T17:37:39",
"content_id": "99fbf795e81c896601921dc7419431e4d7073969",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "4f26239e80fb4849380852ff3de3340ea0620477",
"extension":... | stackv2 | #ifndef __HEADER__
#define __HEADER__
#include <pthread.h>
typedef int Elem;
typedef struct Stack {
Elem * dati; // puntatore ad un vettore dinamico di elementi
int dim; // dimensione dello Stack
int testa;
pthread_mutex_t m;
pthread_cond_t ok_push;
pthread_cond_t ok_pop;
} Stack;
void StackInit(Stack * s, i... | 2.6875 | 3 |
2024-11-18T21:50:42.834926+00:00 | 2021-10-26T16:58:35 | 43304b89b6e9e85c7f2e8a59919c68dc29abab7e | {
"blob_id": "43304b89b6e9e85c7f2e8a59919c68dc29abab7e",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-26T16:58:35",
"content_id": "137d0b3442891c94cf8948642acd85a52b560aef",
"detected_licenses": [
"Apache-2.0",
"BSD-2-Clause"
],
"directory_id": "b7b93d229126414f54aa1c0d449626088d... | stackv2 | #ifndef NT_SOCKET_H_
#define NT_SOCKET_H_
#include <stdint.h>
#include <netinet/in.h>
#include <pthread.h>
#include <stdbool.h>
#include "nts_epoll_inner.h"
#ifdef __cplusplus
extern "C"
{
#endif
/*----------------------------------------------------------------------------*/
/**
* Definitions for the shm commu... | 2.078125 | 2 |
2024-11-18T21:50:43.192049+00:00 | 2021-03-27T06:02:26 | 4cfde829b9adf45fc47095e21105dcba78817ee7 | {
"blob_id": "4cfde829b9adf45fc47095e21105dcba78817ee7",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-27T06:02:26",
"content_id": "dce8523881e5181b8f85a5533d26e7ea6e65a5ac",
"detected_licenses": [
"MIT"
],
"directory_id": "bb6c2eaaf97ce428e56ce0a03b4c19d8056dc4ec",
"extension": "c"... | stackv2 | #include <hl.chars.format.h>
#include <hl.macro.vargs.h>
enum e_arg_type
{
et_arg_invalid,
et_arg_i, //int (s32)
et_arg_ui,
et_arg_l, //long long (s64)
et_arg_ul,
et_arg_t, // siged register type: st
et_arg_ut, //unsiged register type: t
et_arg_x,
et_arg_p,
et_arg_e,
et_arg_f,
et_arg_ff, //double: ... | 2.53125 | 3 |
2024-11-18T21:50:45.940923+00:00 | 2023-08-16T03:56:28 | 91cce4029f609ac88e60fccb668edeb9a6fbcc3a | {
"blob_id": "91cce4029f609ac88e60fccb668edeb9a6fbcc3a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-16T03:56:28",
"content_id": "92c7d3d169fa354378926c0236f6b8f5439700dc",
"detected_licenses": [
"MIT"
],
"directory_id": "72f6d3ad72b2a4a9b6c5f93c5d1b744e2940b884",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include "ksort.h"
KSORT_INIT_GENERIC(int)
int main(int argc, char *argv[])
{
int i, N = 10000000;
int *array, x;
clock_t t1, t2;
if (argc > 1) N = atoi(argv[1]);
array = (int*)malloc(sizeof(int) * N);
srand48(11);
for (i = 0; i < N;... | 2.765625 | 3 |
2024-11-18T21:50:46.016856+00:00 | 2023-08-22T15:47:23 | 90729d2f2d050ed83a61940af4a630c4e08240cd | {
"blob_id": "90729d2f2d050ed83a61940af4a630c4e08240cd",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-22T15:47:23",
"content_id": "2bdf0203eeaf12e1d1dcafcde916de9fd5b1d76a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "d2a6d92c0d1a846e14b958792a35bfd70571c464",
"extens... | stackv2 | /* Copyright (c) 2017-2019, The University of Oxford. See LICENSE file. */
/* Launch 1 thread block with 512 (or max number of) threads.
* Shared memory size is num_threads * 2 * sizeof(T). */
#define OSKAR_PREFIX_SUM_GPU(NAME, T) KERNEL(NAME) (const int num_elements,\
GLOBAL_IN(T, in), GLOBAL_OUT(T, out) LOC... | 2.453125 | 2 |
2024-11-18T21:50:46.488273+00:00 | 2015-05-27T14:11:08 | 5edb4f259270c15f573d9dff02128c48472b2652 | {
"blob_id": "5edb4f259270c15f573d9dff02128c48472b2652",
"branch_name": "refs/heads/master",
"committer_date": "2015-05-27T14:11:08",
"content_id": "292bc2123d4dea8d707939c4e6bbc6ecf38ca985",
"detected_licenses": [
"MIT"
],
"directory_id": "4cdfd397a12d847d95545c0d5ef972d024867b17",
"extension": "c"... | stackv2 | #include <klingklang/base.h>
#include <klingklang/input.h>
#include <klingklang/util.h>
/**
* Currently no plans to use any other decoders besides libav, so this isn't
* as modular as the device interface. Also you aren't supposed to access
* the fields of kk_input_t structs outside of this file, that's why the
* ... | 2.296875 | 2 |
2024-11-18T21:50:46.678713+00:00 | 2010-12-05T07:29:02 | bfa89cb2b177f96bd0b2111eedb4f7f3b833521f | {
"blob_id": "bfa89cb2b177f96bd0b2111eedb4f7f3b833521f",
"branch_name": "refs/heads/master",
"committer_date": "2010-12-05T07:29:02",
"content_id": "4c1a3066d8bb3997063e05267d9664782be91aa9",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "d418ee4fc1cea6246e8611b7b162abb03d0cd010",
"... | stackv2 | /* testnetsyscalls.c
* Tests network syscalls.
*/
#ifndef NETWORK
/* #define NETWORK */
#endif
#include "syscall.h"
void LockTest()
{
int lockIndex;
PrintOut("------------------------------------------\n", 43);
PrintOut("Testing Lock\n", 13);
PrintOut("------------------------------------------\n", ... | 2.96875 | 3 |
2024-11-18T21:50:46.769603+00:00 | 2021-11-25T22:27:12 | cc4ebd89cf8852d86380128de14bc51f1143fee6 | {
"blob_id": "cc4ebd89cf8852d86380128de14bc51f1143fee6",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-25T22:27:12",
"content_id": "d27a09de7a185d9521e18c805268fc599880a464",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bade93cbfc1f25160dfbe9493bfa83f853326475",
"extens... | stackv2 | /*
* libc/stdio/_fgetb.c
* C Standard I/O Library internals.
* Buffered input: read a buffer.
*/
#include <stdio.h>
#include <errno.h>
extern int _fputt();
int
_fgetb(fp) register FILE *fp;
{
register int n, oerrno;
if (fflush(fp))
return EOF;
if (stdout->_pt==&_fputt) /* special kludge */
fflush(stdout)... | 2.5625 | 3 |
2024-11-18T21:50:46.912607+00:00 | 2020-11-12T21:05:53 | de658c82dfe58b21285064042dddabed5e64f76a | {
"blob_id": "de658c82dfe58b21285064042dddabed5e64f76a",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-12T21:05:53",
"content_id": "0f62c2518a479bdf916635fee97cc8b7c02104c5",
"detected_licenses": [
"MIT"
],
"directory_id": "bf41d6629faaf34192a159f1e12d50656fbd8d10",
"extension": "c"... | stackv2 | /*AULA 10 - EXS1 - Calcular polinomio*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main () {
int k, j, i, g;
float x;
float SOMA = 0.0;
float* vetor;
vetor = (float*) malloc((g + 1)*sizeof(float)); // ALOCAR DINAMICAMENTE
//printf("Digite o grau do polinomio:\n");
scanf("%d", &g);
//... | 3.484375 | 3 |
2024-11-18T21:50:48.005813+00:00 | 2022-02-01T17:50:31 | 467d7df43b03d9079d001524d6764cde3b76b344 | {
"blob_id": "467d7df43b03d9079d001524d6764cde3b76b344",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-01T17:50:31",
"content_id": "2ecc57a37074959d25ba6a5cf4ef31764fb14755",
"detected_licenses": [
"NCSA"
],
"directory_id": "2898fa4f2ad766afa0495a837f59fe95daa081a7",
"extension": "c... | stackv2 | #include <stdalign.h>
#include <assert.h>
struct S {
int a;
char b;
alignas(char) char c;
alignas(int) char d;
alignas(long int) char e;
alignas(long long int) char f;
alignas(float) char g;
alignas(double) char h;
} s;
struct {
... | 2.8125 | 3 |
2024-11-18T21:50:48.199894+00:00 | 2020-04-28T10:12:37 | a837e2c5ff4fb93870a90faa92c5e57746de527b | {
"blob_id": "a837e2c5ff4fb93870a90faa92c5e57746de527b",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-28T10:12:37",
"content_id": "33c82ff0c0a4b865368fa3f39c2a6b38331fe465",
"detected_licenses": [
"MIT"
],
"directory_id": "2906f6d70cb5a9e464b97e7e6136a5caee2c8a53",
"extension": "c"... | stackv2 | /*
* C compiler
* ==========
*
* This compiler may be redistributed as long there is no
* commercial interest. The compiler must not be redistributed
* without its full sources. This notice must stay intact.
*/
/*****************************************************************************/
#include "config.h"
... | 2.15625 | 2 |
2024-11-18T21:50:48.268810+00:00 | 2017-05-10T09:50:21 | 4af013a08240ec044183de1b02bc77a8230addb5 | {
"blob_id": "4af013a08240ec044183de1b02bc77a8230addb5",
"branch_name": "refs/heads/arm",
"committer_date": "2017-05-10T14:22:48",
"content_id": "8905fd28f96b26c7d5a405e105f71dfa063c9287",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6af50a4b5b928211880dd9f1c6ce92c2afea828b",
"extension":... | stackv2 | /*
* Copyright (c) 2016 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Abstraction layer for x86 interrupt controllers
*
* Most x86 just support APIC. However we are starting to see design
* variants such as MVIC or APICs with reduced feature sets. This
* interface p... | 2.03125 | 2 |
2024-11-18T21:50:49.011615+00:00 | 2017-04-06T03:52:50 | 153432ad5138f5928ea838edb0f79bc4f4db47c0 | {
"blob_id": "153432ad5138f5928ea838edb0f79bc4f4db47c0",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-06T03:52:50",
"content_id": "ada1b7901b0cda553c5bc70d41e0f13272b300e3",
"detected_licenses": [
"MIT"
],
"directory_id": "908df9b8d477ce983b373cd5f2673702e988f3b5",
"extension": "h"... | stackv2 | /**
* @file grok.h
*/
#ifndef _GROK_H_
#define _GROK_H_
#define _GNU_SOURCE
#include <stdio.h>
#include "tree.h"
// We need to define PCRE_STATIC so PCRE doesn't __declspec(dllexport) and mangle all the method names
#define PCRE_STATIC
#include <pcre.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#i... | 2.140625 | 2 |
2024-11-18T21:50:49.142704+00:00 | 2015-02-05T02:34:25 | 137dc915ebddf626236ffc9c60e6c16abfa72401 | {
"blob_id": "137dc915ebddf626236ffc9c60e6c16abfa72401",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-05T02:34:25",
"content_id": "83b891af643b6bcdc2e0a0822b559f631827fc1b",
"detected_licenses": [
"MIT"
],
"directory_id": "71154c8dd85509b502fbb8f6f3949dc6b1b55b86",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <termios.h>
int main(int argc,char *argv[]){
struct termios info;
int fd;
if(argc != 2
|| (fd = open(argv[1],O_RDONLY)) <0
|| tcgetattr(fd,&info) != 0){
perror(NULL);
exi... | 2.453125 | 2 |
2024-11-18T21:50:49.402439+00:00 | 2017-04-12T21:15:26 | cf9970499eec2400fb7f59d4af32591fdf5ad654 | {
"blob_id": "cf9970499eec2400fb7f59d4af32591fdf5ad654",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-12T21:15:26",
"content_id": "c446ab6c594197ae6d1b3836f7bfcc6937a1d583",
"detected_licenses": [
"MIT"
],
"directory_id": "3278a5ca89b56f6c3c12699a37bbecd6567f5dca",
"extension": "c"... | stackv2 | /* server.c
General TCP socket handling, not instrument specific
*/
#include "server.h"
#define DEBUG
int create_tcp_socket(int port)
{
#ifdef DEBUG
printf("create_tcp_socket()\n");
#endif
struct sockaddr_in addr;
int sd;
/*--- create socket ---*/
sd = socket(PF_INET, SOCK_STREAM, 0);
if ( sd < 0 )
perro... | 2.609375 | 3 |
2024-11-18T21:50:49.503197+00:00 | 2023-05-17T17:31:26 | 36603419b223c0687460b6716fb2b536bc9ba4fa | {
"blob_id": "36603419b223c0687460b6716fb2b536bc9ba4fa",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-17T17:31:26",
"content_id": "a8ee8cf3d7a7a4a1d30eb8e1a9dd5447678c94c8",
"detected_licenses": [
"MIT"
],
"directory_id": "5f24074e7f1da263968bb33fcce2301a559e92f1",
"extension": "h"... | stackv2 | /* util.h: useful functions used by different programs */
#ifndef ALLNET_UTIL_H
#define ALLNET_UTIL_H
#include <sys/time.h>
#include <sys/socket.h>
#include "allnet_log.h"
/* print up to max of the count characters in the buffer.
* desc is printed first unless it is null
* a newline is printed after if print_eol
... | 2.46875 | 2 |
2024-11-18T21:50:50.160396+00:00 | 2021-03-17T23:07:59 | 2ed46f4ecbcc1f42e8e49a87e428107b9b406b9b | {
"blob_id": "2ed46f4ecbcc1f42e8e49a87e428107b9b406b9b",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-17T23:07:59",
"content_id": "12bd5d477a90e1a71b3d3979eab763c7d15f7eba",
"detected_licenses": [
"MIT"
],
"directory_id": "5e9947063f5fe4907989ec7f24ce3d5452fecd29",
"extension": "c"... | stackv2 | #include "main.h"
void debug(conjunto_t *CJT) {
if (DEBUG) {
printCJT(CJT);
printf("\n Ancoras: %hu,0 <-> %hu,0 -> Pontos: %hu\n", CJT->Xa, CJT->Xb, CJT->ncoords);
}
}
conjunto_t *create() {
conjunto_t *CJT = (conjunto_t*) malloc(sizeof(conjunto_t));
if (!CJT) return NULL;
CJT->hea... | 2.828125 | 3 |
2024-11-18T21:50:50.307168+00:00 | 2017-02-15T09:00:51 | 4e549770b882df4a8f50b324185ad6b25b0697f6 | {
"blob_id": "4e549770b882df4a8f50b324185ad6b25b0697f6",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-15T09:00:51",
"content_id": "8ddf33268e39870cddd8a3d66a5bef0dc8545906",
"detected_licenses": [
"MIT"
],
"directory_id": "af625dbbd35b052f2494c127bdfac82cb546dd37",
"extension": "h"... | stackv2 | #ifndef DHT_h
#define DHT_h
#if ARDUINO < 100
#include <WProgram.h>
#include <pins_arduino.h> // fix for broken pre 1.0 version - TODO TEST
#else
#include <Arduino.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define DHT11 1
#define DHT22 2
#define DHTLIB_OK 0
#define DHTLIB_ERROR_CHECKSUM ... | 2.109375 | 2 |
2024-11-18T21:50:50.838868+00:00 | 2015-07-31T14:00:46 | 2e0253081903b7da2c44502a9f571eeb9993bc1d | {
"blob_id": "2e0253081903b7da2c44502a9f571eeb9993bc1d",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-31T14:00:46",
"content_id": "cc09b8b85d6f3892bd6bb9a80af54833b1348b36",
"detected_licenses": [
"MIT"
],
"directory_id": "2588b274b01c23dbad14f47dba666935b381721c",
"extension": "c"... | stackv2 | #include "MultiCount.h"
#include <pebble.h>
#include "localization.h"
#include "addWindow.h"
#include "aboutWindow.h"
#include "errorWindow.h"
#define activateReordering() \
states.reordering = true; \
counterIdToReorder = counters[menu_layer_get_selected_index(sMenu).row]; \
window_set_click_config_provider(sWind... | 2.09375 | 2 |
2024-11-18T21:50:51.252164+00:00 | 2018-03-23T14:39:40 | b96ed649a73f469108f206d2dfe33bcb8b78643c | {
"blob_id": "b96ed649a73f469108f206d2dfe33bcb8b78643c",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-23T14:39:40",
"content_id": "4f08f1f8a6a34e9a3c8c8b29fb84b9b0eb90d314",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "53d877355fbf228712b1614c651744e0aef60899",
"extensio... | stackv2 | #include<stdio.h>
#include<stdlib.h>
float**initial(int row, int col)
{
float **a,*b,x=0;
int i,flag=1;
a = (float **) malloc(row * sizeof(float *)); //r rows
for(i = flag-1; i < col; i++)
{ if(x==0)
{
b = (float*)malloc(col*sizeof(float));
a[i]=b; //cols for i th row
}
}
return a;
}
float**mova(flo... | 3.203125 | 3 |
2024-11-18T21:50:51.492063+00:00 | 2023-01-18T07:01:50 | 7f8e65537a6af91ea9acdb6fb88cfd0fe76c35a9 | {
"blob_id": "7f8e65537a6af91ea9acdb6fb88cfd0fe76c35a9",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-18T07:01:50",
"content_id": "af3530a72ea2adbfd64faabacaceb9b0bddfc010",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "038c41d5de796104f310a80894d20a170002237c",
"extens... | stackv2 | /*
* UFPort_deprecated.c
*
* Created on: 2017. 8. 24.
* Author: jej
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <uem_common.h>
#include <UFPort.h>
int PORT_INITIALIZE(int nTaskId, char *pszPortName)
{
int nChannelId = INVALID_CHANNEL_ID;
uem_result result = ERR_UEM_UNKNOWN;
result =... | 2.09375 | 2 |
2024-11-18T21:50:52.047458+00:00 | 2015-01-15T11:39:14 | 9f3760811029eaecd4b9f91c78907f4592a3acbc | {
"blob_id": "9f3760811029eaecd4b9f91c78907f4592a3acbc",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-15T11:39:14",
"content_id": "76657a3ebfa78323597a2754ee3b537144547ed4",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7c6fce2cf48c36841130499e8f5aced4464671d9",
"extens... | stackv2 | #ifndef _GPIO_
#define _GPIO_
#include "types.h"
#include "memorymap.h"
typedef enum {
INPUT = 0,
OUTPUT
} every_gpio_direction;
typedef enum {
NONE = 0x00,
PULL_DOWN = 0x08,
PULL_UP = 0x10,
REPEAT = 0x18
} every_gpio_pull_mode;
typedef enum {
HYSTERESIS_OFF = 0x00,
HYSTERESIS_ON = 0x20
} every_gpio_hyster... | 2.578125 | 3 |
2024-11-18T21:50:53.286960+00:00 | 2018-03-28T21:16:06 | 1f219839e58954a9a6b1a99326a3f81eb0c06b57 | {
"blob_id": "1f219839e58954a9a6b1a99326a3f81eb0c06b57",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-28T21:16:06",
"content_id": "61c802e33f0469371e2ebf1e660182681d9df2ec",
"detected_licenses": [
"MIT"
],
"directory_id": "97b2366c9f372782aa17b1e20276423f40c1cd88",
"extension": "h"... | stackv2 | /*
* Copyright (c) 2017 Richard Braun.
* Copyright (c) 2017 Jerko Lenstra.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rig... | 2.09375 | 2 |
2024-11-18T21:50:53.513682+00:00 | 2017-09-23T00:20:39 | 986c4b978964f2a674574cc92d56d4d1db3400a4 | {
"blob_id": "986c4b978964f2a674574cc92d56d4d1db3400a4",
"branch_name": "refs/heads/master",
"committer_date": "2017-09-23T00:20:39",
"content_id": "27a5061ac8a6e47a562fb2495c5638820a66163b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f373848b08b785dbe904307362350e0a6a64fa00",
"extensio... | stackv2 | #include "header.h"
static void createDaemon(){
pid_t pid;
pid = fork(); //fork from parent
if(pid < 0){
perror("fork error");
exit(-1);
}
if(pid > 0){
exit(0); //terminate parent
}
//on success child process becomes session leader.
if(setsid() < 0){
exit(-1);
}
//handle the signals and i... | 3.09375 | 3 |
2024-11-18T21:50:53.580770+00:00 | 2020-11-27T22:26:12 | 94fd48f92091cb0ac2954e3c0dcabfe4ca967ced | {
"blob_id": "94fd48f92091cb0ac2954e3c0dcabfe4ca967ced",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-27T22:26:12",
"content_id": "171e725b6ce4db9254db4b02114451f3c4dcc06d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "24abb3010b6826f5f184fe044bcf76453730af41",
"extension"... | stackv2 | // ##--------------------------------pi parallel file------------------------------------
// ## Copyright (C) 2020 by
// ## Belinda Brown Ramírez
// ## timna.brown@ucr.ac.cr
// ## Pi Parallel
// ##-----------------------------------------------------------------------------
// ########## IMPORTING PACKAGES ######... | 3.015625 | 3 |
2024-11-18T21:50:54.027026+00:00 | 2021-03-27T02:50:44 | 44678f0ef127d4a26addc54a2fab1eb1b6eecba3 | {
"blob_id": "44678f0ef127d4a26addc54a2fab1eb1b6eecba3",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-27T02:50:44",
"content_id": "a3c39983195b566db6560fa418f2f940afbbe5a3",
"detected_licenses": [
"MIT"
],
"directory_id": "1743e0607f6ae0110f7b71e711515af39ffea545",
"extension": "c"... | stackv2 |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "src/jsonpath/lexer.h"
#include "src/jsonpath/parser.h"
#include "php_jsonpath.h"
#include "zend_operators.h"
#include <stdbool.h>
#include "zend_exceptions.h"
#include <ext/spl/spl_exceptions... | 2 | 2 |
2024-11-18T21:50:54.086406+00:00 | 2020-09-04T10:35:50 | a998c200b4200ac8d1ddba87df52286bfc3d75d0 | {
"blob_id": "a998c200b4200ac8d1ddba87df52286bfc3d75d0",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-04T10:35:50",
"content_id": "98eaed070382a7e1ae6875440689ce9d8b429690",
"detected_licenses": [
"MIT"
],
"directory_id": "dbf9fdfe2cf4af130ccfbef3d939bde05a5e6b94",
"extension": "c"... | stackv2 | #include <X11/XKBlib.h>
#include <X11/keysym.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
typedef struct Client {
struct Client *next, *previous;
Window window;
} Client;
int main(int argc, char *argv[]) {
XEvent event;
Display *display = XOpenDisplay(0);
int screen = DefaultScreen(display);
C... | 2.21875 | 2 |
2024-11-18T21:50:54.164930+00:00 | 2023-08-18T10:23:24 | f481a2e54011e7eabf74e8b953a68663ce263c2b | {
"blob_id": "f481a2e54011e7eabf74e8b953a68663ce263c2b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-18T10:23:24",
"content_id": "5c8bd82b130e069c39c3f402a375236b5afa89f8",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7ffcd38a2382f905c3d4494cf61aca930aea9cec",
"extens... | stackv2 | /**
* @file cmd_feature.c
* @author Michal Vasko <mvasko@cesnet.cz>
* @author Adam Piecek <piecek@cesnet.cz>
* @brief 'feature' command of the libyang's yanglint tool.
*
* Copyright (c) 2015-2023 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use thi... | 2.203125 | 2 |
2024-11-18T21:50:54.265484+00:00 | 2023-01-01T22:25:49 | 391539f1791abb0d16becdf508eeb19064b3bfda | {
"blob_id": "391539f1791abb0d16becdf508eeb19064b3bfda",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-01T22:29:44",
"content_id": "78ae1b062b14cb48d496b960733e9d02bf261244",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "5a2c5bd9a1e8dd77bdbcecde65ea53efee4f9ad7",
"extens... | stackv2 | /*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright 2019-2021, Marcin Ślusarz <marcin.slusarz@gmail.com>
*/
#include <assert.h>
#include <getopt.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sqlite3.h>
#include "parse.h"
#include "utils.h"
#include "usr-grp.h"
... | 2.390625 | 2 |
2024-11-18T21:50:54.436258+00:00 | 2016-12-10T17:43:04 | 6c7ed08038ff572d4cdb0ac79e51ca7666ed904a | {
"blob_id": "6c7ed08038ff572d4cdb0ac79e51ca7666ed904a",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-10T17:43:04",
"content_id": "81eb548a0aaebafd46458a9fbca16f8f92966e66",
"detected_licenses": [
"MIT"
],
"directory_id": "d314ed83db89a664e81aa72390a889be2958af92",
"extension": "c"... | stackv2 | /*
The MIT License (MIT)
Copyright (c) 2014 Zachary Seguin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, c... | 2.046875 | 2 |
2024-11-18T21:50:54.495417+00:00 | 2018-12-21T05:16:01 | 9e21aeb7828ab298742fd8789b47328a6cfc203c | {
"blob_id": "9e21aeb7828ab298742fd8789b47328a6cfc203c",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-21T05:16:01",
"content_id": "e0a271675e55a3afc7e99d162dfa6a13eeef1e27",
"detected_licenses": [
"MIT"
],
"directory_id": "85a6eee49f2371e10fd192855c1484686efb3508",
"extension": "c"... | stackv2 | /*
Database "manufactory_1" contains tables:
manufacturers
products
*/
#ifndef MANUFACTORY_1
#define MANUFACTORY_1
struct T_manufacturers {
double code;
char name[16];
char headquarter[12];
char founder[7];
double revenue;
};
struct T_products {
double code;
char name[16];
double price;
double manufacture... | 2.390625 | 2 |
2024-11-18T21:50:54.574925+00:00 | 2022-10-14T13:26:56 | 78648ae527905525656ab663407a0b1260a705ee | {
"blob_id": "78648ae527905525656ab663407a0b1260a705ee",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-14T13:26:56",
"content_id": "810cf8f8acb6e13578854a068b00da23be2cb374",
"detected_licenses": [
"ISC"
],
"directory_id": "ea0d96fc7f025c287ac767960ffddc9025065536",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2014, 2016, 2020 Scott Bennett <scottb@fastmail.com>
*
* 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 PROVID... | 2.546875 | 3 |
2024-11-18T21:50:54.653929+00:00 | 2021-01-24T20:25:28 | 5e5be68e2fbbdeb9780b557e976deab17951aa94 | {
"blob_id": "5e5be68e2fbbdeb9780b557e976deab17951aa94",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-24T20:25:28",
"content_id": "18f099a0342f623f57da247f738f4c54d8196a6a",
"detected_licenses": [
"Unlicense"
],
"directory_id": "f7b245336d9f5893da315d567882bc13c4823c1f",
"extension... | stackv2 | /*
* Name: MicroEMACS
* Search commands.
* Version: 30
* Last edit: 14-Feb-86
* By: rex::conroy, rex::ellison
* decvax!decwrl!dec-rhea!dec-rex!conroy
* ...!dec-vox!ellison
*
* The functions in this file implement the
* search commands (both plain and incremental searches
* are support... | 2.640625 | 3 |
2024-11-18T21:50:56.523589+00:00 | 2019-12-11T06:03:05 | 7a839a2b3a41e8291788e4c555bf48a5741fc537 | {
"blob_id": "7a839a2b3a41e8291788e4c555bf48a5741fc537",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-11T06:03:05",
"content_id": "39752f8e830af034c34645fc2382cb5e03ca8058",
"detected_licenses": [
"MIT"
],
"directory_id": "eedd898a105f6ab9c333a041322fb96f864c7530",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "process.h"
#include "macros.h"
#include "list.h"
#include "memory.h"
#define STR_BUFFER_SIZE 250
/* instructions */
typedef struct {
INSTR_ENUM type;
int cycles;
int mutex;
list ... | 2.75 | 3 |
2024-11-18T21:50:56.597623+00:00 | 2018-10-28T15:38:33 | 6f79412963a894f88a7722d89c8bb230fdaf2142 | {
"blob_id": "6f79412963a894f88a7722d89c8bb230fdaf2142",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-28T15:49:34",
"content_id": "bfb31d262926f10af219b3c4baffbe02547429b2",
"detected_licenses": [
"BSD-4-Clause-UC"
],
"directory_id": "757ca059076f117453ab2246f97b14e483638994",
"ext... | stackv2 | #include <inc/lib.h>
#include <inc/error.h>
#include <inc/rpc.h>
#include <lwip/sockets.h>
#include <lwip/inet.h>
// Implement remote procedure call server side.
// The PRC is built on top of network driver and its TCP/IP
// protocol stack. It unmarshalls user input arguments from
// network packets and invoke the act... | 2.75 | 3 |
2024-11-18T21:50:56.683711+00:00 | 2016-02-06T19:25:01 | 8afa89e070c132e9635d45c5cafb1aad1bef1f10 | {
"blob_id": "8afa89e070c132e9635d45c5cafb1aad1bef1f10",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-06T19:25:12",
"content_id": "977ee6d486371928546c819375305034b7670ffd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6e5c964bb8bbfd6795e296b6937ad9e857d306ec",
"extensio... | stackv2 | /** @file sw_aes.h
*
* The file contains declarations for using the software implementation of AES
*
*/
/*
Copyright 2015, 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 a... | 2.328125 | 2 |
2024-11-18T21:50:56.765854+00:00 | 2018-03-12T19:50:33 | b5dda0f67331b071f84aa2c35b7b38dadc8c3c29 | {
"blob_id": "b5dda0f67331b071f84aa2c35b7b38dadc8c3c29",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-12T19:50:33",
"content_id": "e38ee07a9c13b25e17d65dee9195d42ff2edb4d9",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "bf9974aece29d92186c3ea9af2c2798c19fd9c20",
"extens... | stackv2 | #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include "circbuf.h"
#include "audio.h"
#define AUDIO_BUFFER_SIZE 48000
int n_channels;
circbuf_t **channel_buffers;
jack_client_t *jack_client;
jack_port_t **ports_in;
jack_nframes_t audio_srate;
const char *cname;
static int audio_srate_change_cb(jack_nfr... | 2.703125 | 3 |
2024-11-18T21:50:56.832410+00:00 | 2019-07-20T11:40:57 | f709abf13df948e0051bcb0265300973388ec5d7 | {
"blob_id": "f709abf13df948e0051bcb0265300973388ec5d7",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-20T11:49:11",
"content_id": "4af9f2112058f0b2cee03088183a3f0e96bd3a29",
"detected_licenses": [
"Artistic-2.0"
],
"directory_id": "c6c142f46daba7ab31f7a9a233fefbf56f5e1473",
"extens... | stackv2 | #include <proto/dos.h>
#include <proto/exec.h>
#include <proto/graphics.h>
#include <exec/execbase.h>
#include <graphics/gfxbase.h>
#include "std/exception.h"
#include "system/display.h"
#include "system/input.h"
#include "startup.h"
int __nocommandline = 1;
extern EffectT Effect;
static bool SystemCheck() {
boo... | 2.265625 | 2 |
2024-11-18T21:50:57.607007+00:00 | 2020-10-26T19:37:45 | c893b73a51f73daadcd7f3f546d8c26c83a8cae5 | {
"blob_id": "c893b73a51f73daadcd7f3f546d8c26c83a8cae5",
"branch_name": "refs/heads/main",
"committer_date": "2020-10-26T19:37:45",
"content_id": "e16e75cc282b7198975b98ce5a546faa054b39f0",
"detected_licenses": [
"MIT"
],
"directory_id": "03027cc6821a6fa80e563e6ef7761f0f38449719",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
struct date
{
int d, m, y;
};
struct employee
{
char empcode[6];
char empname[20];
struct date join_date;
float salary;
};
void display(char *);
void add_info(char *, char *, struct date, float);
void s... | 3.125 | 3 |
2024-11-18T21:50:57.677495+00:00 | 2018-12-24T20:13:12 | f455ee6401bde2d857c34103288f90bf0d2e9bac | {
"blob_id": "f455ee6401bde2d857c34103288f90bf0d2e9bac",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-24T20:13:12",
"content_id": "833a73b2977dcf69e36d2d467eb5dd3edcfb3e0f",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "74d1855a9b8a5bb745f9ce8fe10dc613894185b8",
"extens... | stackv2 | /***********************************************************************
* イベント処理 (システム依存)
*
* 詳細は、 event.h 参照
************************************************************************/
#include <gdk/gdkkeysyms.h>
#include "quasi88.h"
#include "getconf.h"
#include "keyboard.h"
#include "event.h"
int gtksys_get... | 2.265625 | 2 |
2024-11-18T21:50:57.739102+00:00 | 2018-12-21T20:39:07 | 5b372d00170510942a1025a9c087bd3ee77379bd | {
"blob_id": "5b372d00170510942a1025a9c087bd3ee77379bd",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-21T20:39:07",
"content_id": "7c5c42bb29f34d270f266958b4ab360a94708c26",
"detected_licenses": [
"Unlicense"
],
"directory_id": "c98a0e6657fb47f98a0e778b43d697425b5cac2d",
"extension... | stackv2 | #include <stdio.h>
#include "utils.h"
// Predefined number of rows and columns
const int MAX_ROWS = 2;
const int MAX_COLUMNS = 2;
void showMatrix(int matrix[MAX_ROWS][MAX_COLUMNS]) {
for (int i = 0; i < MAX_ROWS; i++) {
showArray(matrix[i], MAX_COLUMNS);
}
printf("\n");
}
/**
* Calculate product... | 3.59375 | 4 |
2024-11-18T21:50:57.805337+00:00 | 2019-03-12T20:45:24 | ca1423a313bcf2b727a9152f2d0a737fb0752ed6 | {
"blob_id": "ca1423a313bcf2b727a9152f2d0a737fb0752ed6",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-12T20:45:24",
"content_id": "e9bc125204dbfbb552688519c10cb0d36b0a4097",
"detected_licenses": [
"MIT"
],
"directory_id": "df5869afc3be0acf686755367628da4bbcfb467a",
"extension": "c"... | stackv2 | #include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <semaphore.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include <unistd.h>
#define ROUNDS 500
#define HORSES 1000
#define handle_error(msg) \
do \
{ \
... | 2.703125 | 3 |
2024-11-18T21:50:57.878596+00:00 | 2020-11-26T12:58:25 | 50611494ed8e47483935d40db10d659ef5aca898 | {
"blob_id": "50611494ed8e47483935d40db10d659ef5aca898",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-26T12:58:25",
"content_id": "4863054ff3fc7f10b59e8fd05e5f448b8212707c",
"detected_licenses": [
"MIT"
],
"directory_id": "fd4a8744e35b37b6b7c740065047b0d7b8e46222",
"extension": "c"... | stackv2 | #include <stdio.h>
int digital_root(int n)
{
/* Implementa aqui tu funcion */
return 42;
}
typedef struct
{
int N, Expected;
} TestCase;
#define TEST_COUNT 9
int main()
{
TestCase tests[TEST_COUNT] = {
{16, 7},
{942, 6},
{132189, 6},
{493193, 2},
{167346, 9},
... | 3.453125 | 3 |
2024-11-18T21:50:57.949114+00:00 | 2023-09-03T08:13:23 | 9c94b789a931910c08a68c5a85669230d9e0f87f | {
"blob_id": "9c94b789a931910c08a68c5a85669230d9e0f87f",
"branch_name": "refs/heads/main",
"committer_date": "2023-09-03T08:13:23",
"content_id": "710a32bcda339493bddf8b2f9ecc3acca7fc989d",
"detected_licenses": [
"MIT"
],
"directory_id": "fb0f9abad373cd635c2635bbdf491ea0f32da5ff",
"extension": "c",
... | stackv2 | #if defined(_MSC_VER) && defined(_DEBUG)
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#endif
#include <eglib/test/test.h>
#include <containers/dn-list.h>
#ifdef _CRTDBG_MAP_ALLOC
static _CrtMemState dn_list_memory_start_snapshot;
static _CrtMemState dn_list_memory_end_snapshot;
static _CrtMemSta... | 2.140625 | 2 |
2024-11-18T21:50:58.083770+00:00 | 2021-05-17T19:14:08 | 3bcac450d74da4ba6fb94a7afe54ae4a4b32a38d | {
"blob_id": "3bcac450d74da4ba6fb94a7afe54ae4a4b32a38d",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-17T19:14:08",
"content_id": "a6d639901ded0f792dc1d2c44335e8c079511f06",
"detected_licenses": [
"MIT"
],
"directory_id": "53ebe1af68515d2ff676dbbc6de0bbe18dce7060",
"extension": "c",
... | stackv2 | /*
MIT License
Copyright (c) 2021 Marcin Borowicz <marcinbor85@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy... | 2.28125 | 2 |
2024-11-18T21:50:58.214682+00:00 | 2020-01-31T14:29:45 | 1b384bdf1fb3127e86f231895aa0f74f367761be | {
"blob_id": "1b384bdf1fb3127e86f231895aa0f74f367761be",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-31T14:40:52",
"content_id": "5262aee2ea18d9a12ad0d164952a13487cae1edb",
"detected_licenses": [
"MIT"
],
"directory_id": "ea8e054eb55aeea5a63cac6cd9c73e7aa4e91083",
"extension": "c"... | stackv2 | #include <string.h>
#include "str-array.h"
#include "utils.h"
#define BUFF_SLOP 8
static void **str_array_detach_internal(struct str_array *str_a, size_t *len, int data);
void str_array_init(struct str_array *str_a)
{
*str_a = (struct str_array){ NULL, 0, 0, 0 };
}
void str_array_grow(struct str_array *str_a, si... | 2.859375 | 3 |
2024-11-18T21:50:58.873126+00:00 | 2018-08-30T13:35:33 | e037b1aa3343e28f7f569ed6b53b33b12111274f | {
"blob_id": "e037b1aa3343e28f7f569ed6b53b33b12111274f",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-30T13:35:33",
"content_id": "49caeb96b2333e60d59e36b81233ce2efaffb752",
"detected_licenses": [
"MIT"
],
"directory_id": "e63834ba45f374d25f8b4f85b03baa5cf3d3b062",
"extension": "c"... | stackv2 | #include "data_structures.h"
int is_resource_produced(State *state, int type) {
int typeBit = 1 << type;
return state->producedResources & typeBit;
}
void enable_resource_production(State *state, int type) {
int typeBit = 1 << type;
state->producedResources = state->producedResources | typeBit;
} | 2.125 | 2 |
2024-11-18T21:50:59.126338+00:00 | 2019-11-07T02:52:53 | 3ec14b983ed9b544b8644fec589e5c9a6d240eb3 | {
"blob_id": "3ec14b983ed9b544b8644fec589e5c9a6d240eb3",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-07T02:52:53",
"content_id": "99531b741f7c3c19c7c3156b844d8cbef824cc19",
"detected_licenses": [
"MIT"
],
"directory_id": "f689278d91c4eaf9c06a1631a58be52204ef6526",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "../servidor/includes/connector.h"
#include "../servidor/includes/req_methods.h"
#include "../servidor/models/includes/funcionario.h"
#include "../servidor/models/includes/forneced... | 2.828125 | 3 |
2024-11-18T21:51:00.837278+00:00 | 2016-10-16T23:32:28 | 1da1d6c5ed1a5789740c4915ed1b4d0166d74393 | {
"blob_id": "1da1d6c5ed1a5789740c4915ed1b4d0166d74393",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-16T23:32:28",
"content_id": "477c42b91eaee853f78a6c0dc4b00729712899db",
"detected_licenses": [
"MIT"
],
"directory_id": "8b4f780bc42bb717c8c0cb59d1ff31b39b7a0922",
"extension": "c"... | stackv2 | /*
** CSocketFunctions.c for Zappy in /home/oliva/_workspace_zappy/ai_client/Zappy/CSocketSrc/src
**
** Made by Clement Oliva
** Login <oliva@epitech.net>
**
** Started on Tue Jun 21 17:32:52 2016 Clement Oliva
** Last update Sun Jun 26 21:41:26 2016
*/
#include "CSocket.h"
PyObject *pyCSocket_new(PyTypeObject ... | 2.03125 | 2 |
2024-11-18T21:51:00.970397+00:00 | 2013-05-03T15:45:40 | 7465321a81e9cc8e984e59885b36603a5929033c | {
"blob_id": "7465321a81e9cc8e984e59885b36603a5929033c",
"branch_name": "refs/heads/master",
"committer_date": "2013-05-03T15:45:40",
"content_id": "60bbd1fa3596035fe93502f774326bac41e54ebf",
"detected_licenses": [
"MIT"
],
"directory_id": "2ece19adf0440078074cd2e5c0bea8eb8028ad6d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <caml/mlvalues.h>
#include <caml/callback.h>
#include <caml/memory.h>
#include <caml/alloc.h>
#include <string.h>
int main(int eargc, char **argv) {
caml_startup(argv);
value *makeFoo1 = caml_named_value("makeFoo1");
value *makeFoo2 = caml_named_value("makeFoo2");
value *makeFoo3 ... | 2.53125 | 3 |
2024-11-18T21:51:01.056967+00:00 | 2020-08-24T10:10:55 | 010896823078ea0153bd210849310e99dbf70fb6 | {
"blob_id": "010896823078ea0153bd210849310e99dbf70fb6",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-24T10:10:55",
"content_id": "1e9a76bee01dd3ba17b65e1813bd57b1bc221dac",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "37122bd1ca647ebb66334dbee5f62bd86f948006",
"extensio... | stackv2 | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
void nativeStringMatching(char *s, char*p) {
int sLen = strlen(s);
int pLen = strlen(p);
int i=0;
while(i < sLen - pLen + 1) {
int j=0;
int k=i;
while(j < pLen) {
if(*(s+k) == *(p+j)) {
if(k == sLen) {
break;
}
k++;
j++;
} els... | 3.140625 | 3 |
2024-11-18T21:51:01.138387+00:00 | 2018-04-01T17:39:20 | d247c9b75565adf50cc4534e94ed858110715403 | {
"blob_id": "d247c9b75565adf50cc4534e94ed858110715403",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-01T17:39:20",
"content_id": "ebfb87d32db2003ef3f76b6062588e72128d3e3e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c9db11e8456402427b7e85607f70270bb1556085",
"extens... | stackv2 | #include <device.h>
#include <stdbool.h>
#define SERIAL true
#define MATRIX_ROWS 8
#define MATRIX_COLS 8
#define OFF 0x00
#define RED 0x01
#define GREEN 0x02
#define YELLOW 0x03
#define BLUE 0x04
#define MAGENTA 0x05
#define CYAN 0x06
#define WHITE 0x07
void matrix_illuminate ( uint8 row , u... | 2.28125 | 2 |
2024-11-18T21:51:02.059588+00:00 | 2020-07-20T20:55:42 | abc66312f7960720ceeb4bd07b8ef2b600259e82 | {
"blob_id": "abc66312f7960720ceeb4bd07b8ef2b600259e82",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-20T20:55:42",
"content_id": "e7d10512e11698d13cacc12a04381c4bb51bc800",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "abaaf71ff5bc40151e9e1110fced2d5de87e0f26",
"extens... | stackv2 | #include <stdint.h>
// FORCEDINLINE definition from spectector-clang/13.c
#define MASK(x, size) (x & (size - 1))
uint32_t publicarray_size = 16;
uint8_t publicarray[16];
uint8_t publicarray2[512 * 256];
// The attacker's goal in all of these examples is to learn any of the secret data in secretarray
uint32_t secreta... | 2.609375 | 3 |
2024-11-18T21:51:02.145194+00:00 | 2021-04-21T13:18:34 | ac0168e666c23136f64e501b8aa285333a797b0a | {
"blob_id": "ac0168e666c23136f64e501b8aa285333a797b0a",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-21T13:18:34",
"content_id": "8d5d34fb7746a5443ffc7305ceb98a36c4c15c14",
"detected_licenses": [
"MIT"
],
"directory_id": "fb345f91ec5a1b88f294a32faf0b3a96ef22565c",
"extension": "h"... | stackv2 | /*
* The original code was developed by pminkov from the following repo
* https://github.com/pminkov/threadpool
*
* I reformatted the code according to my coding style and made some tweaks.
* pminkov's code was not licensed, but should be acknowledged.
*
* Copyright (C) 2021 Edward LEI <edward_lei72@hotmail.com... | 2.65625 | 3 |
2024-11-18T21:51:02.218552+00:00 | 2019-06-14T07:36:15 | ee9bbbd4c6bc464431a773e90a44bc6555af7f15 | {
"blob_id": "ee9bbbd4c6bc464431a773e90a44bc6555af7f15",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-14T07:36:15",
"content_id": "a47054ff8a55cb018a1b5dec672c1988711a6d72",
"detected_licenses": [
"MIT"
],
"directory_id": "59a66f6837b8dc93420fe3eac6f80eedcb7a066f",
"extension": "c"... | stackv2 | /*
* File: main.c
* Author: Ale
*
* Created on 24 gennaio 2019, 15.37
*/
#pragma config FOSC = HS // Oscillator Selection bits (HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKOUT and RA7/OSC1/CLKIN)
#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled)
#pragma config PWR... | 2.578125 | 3 |
2024-11-18T21:51:02.410055+00:00 | 2016-08-22T09:56:13 | 842dd219c3e223f1d041838223f822f9f0056afc | {
"blob_id": "842dd219c3e223f1d041838223f822f9f0056afc",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-22T09:56:13",
"content_id": "c7e423dcfb866b54a40316fc60df59af8005f305",
"detected_licenses": [
"MIT"
],
"directory_id": "94a99e0154a77a46a2f44e9ad2f8951aa4bc0a2b",
"extension": "c"... | stackv2 | /*Q5 - Lab 09/04/2013 - on sheet
Kieran Hogan - DT228/1*/
#include <stdio.h>
#include <string.h>
/*Declare structure template*/
struct city_data
{
char city_name[21];
int city_population;
int annual_rainfall;
int annual_sunshine;
};
struct city_data city_1, city_2;
int main(void)
{
/*Enter city_1s d... | 3.140625 | 3 |
2024-11-18T21:51:02.983698+00:00 | 2020-04-18T00:22:14 | 5e6245df90632b4f9d53c57f659aacb25e9591f5 | {
"blob_id": "5e6245df90632b4f9d53c57f659aacb25e9591f5",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-18T00:22:14",
"content_id": "e885fe1029291482bcf4220d20d79d321a4f933a",
"detected_licenses": [
"MIT"
],
"directory_id": "2ee4c423423536be349fa5738dbca0c5c91a9f7b",
"extension": "c"... | stackv2 | /*! @file PetscCreatePointList.c
@brief Create list of computational points.
@author Debojyoti Ghosh
*/
#ifdef with_petsc
#include <stdlib.h>
#include <stdio.h>
#include <arrayfunctions.h>
#include <mpivars.h>
#include <hypar.h>
#include <petscinterface.h>
/*!
Create a list of computational points: This is... | 2.796875 | 3 |
2024-11-18T21:51:03.129735+00:00 | 2022-05-06T15:23:44 | 23605d6724ad5b809f50632b8ce62f7d2b4e55b9 | {
"blob_id": "23605d6724ad5b809f50632b8ce62f7d2b4e55b9",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-06T15:23:44",
"content_id": "f43db2b0763039adb1fb1a84a530a323710c5b5a",
"detected_licenses": [],
"directory_id": "3a7b20d44b002eb7748cc797c5e210a5d575a0b8",
"extension": "c",
"filename... | stackv2 | // Copyright (C) 2020-2020 Michael Kuyper. All rights reserved.
//
// This file is subject to the terms and conditions defined in file 'LICENSE',
// which is part of this source code package.
#include "lmic.h"
#include "peripherals.h"
#include "svcdefs.h" // for type-checking hook functions
// Check prerequisistes an... | 2.203125 | 2 |
2024-11-18T21:51:03.819711+00:00 | 2020-04-17T02:29:53 | ace05e11d590f0013546acf10f9682531f10b8b3 | {
"blob_id": "ace05e11d590f0013546acf10f9682531f10b8b3",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-17T02:29:53",
"content_id": "41386d809d608b038670af780e1368e9ec3d66b2",
"detected_licenses": [
"MIT"
],
"directory_id": "48d6e8ff0febb4dbb45acb5520ae042492649c75",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
/*
entradas:
3
4
5
*/
int main()
{
double a, b, c, a1, a2, a3;
printf("Digite o 1o lado do triangulo: ");
scanf("%lf", &a);
printf("Digite o 2o lado do triangulo: ");
scanf("%lf", &b);
printf("Digite o 3o lado do triangulo: ");
scan... | 3.453125 | 3 |
2024-11-18T21:51:03.930030+00:00 | 2023-05-25T08:57:05 | 2a74d3e2cbbd55eaf3727e8da7a71bebe04f7e83 | {
"blob_id": "2a74d3e2cbbd55eaf3727e8da7a71bebe04f7e83",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-25T21:47:26",
"content_id": "72ffaa2422afe41534b034ef2e4eacdad18586a0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "57bf287d6afe5789a695e643a19e4e1652dbb9c4",
"extens... | stackv2 | /* SPDX-License-Identifier: BSD-3-Clause */
/*****************************************************************************
* Copyright 2019, Fraunhofer Institute for Secure Information Technology SIT.
* All rights reserved.
****************************************************************************/
/**
* @file c... | 2.125 | 2 |
2024-11-18T21:51:04.086129+00:00 | 2021-04-02T16:32:44 | 814fab25c6692f9808c7a393e8340ee938b7bb38 | {
"blob_id": "814fab25c6692f9808c7a393e8340ee938b7bb38",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-02T16:32:44",
"content_id": "5063bdb3893b150904197326b9450e2b3a685204",
"detected_licenses": [
"MIT"
],
"directory_id": "647ebed104cea381d07a3106b48345d6319874bf",
"extension": "h"... | stackv2 | // This file has been automatically generated by goFB and should not be edited by hand
// Compiler written by Hammond Pearce and available at github.com/kiwih/goFB
// This file represents the interface of Function Block Pass
#ifndef PASS_H_
#define PASS_H_
#include "fbtypes.h"
//This is a BFB, so we need an enum typ... | 2.140625 | 2 |
2024-11-18T21:51:04.167638+00:00 | 2021-09-21T17:57:59 | 19ac0e49a745dc9f3ec7f8b60d82b7e3f98449e8 | {
"blob_id": "19ac0e49a745dc9f3ec7f8b60d82b7e3f98449e8",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-21T17:57:59",
"content_id": "69e7260b67ac0f2c0e722923126902b80a8e12d5",
"detected_licenses": [
"MIT"
],
"directory_id": "d879f7a64023810e8c013a1f04a8b3707c14523a",
"extension": "c",
... | stackv2 | #include<Util/string.h>
#include<Drivers/Screen.h>
#include<Drivers/Keyboard.h>
void calc_init(){
printW("\nEnter First Number: ");
int fn = parseInt(input());
printW("\nEnter Second Number: ");
int sn = parseInt(input());
printW("\nEnter the valid operator: ");
char ae;
int runningC = 1;
while(runningC... | 2.71875 | 3 |
2024-11-18T21:51:04.321186+00:00 | 2018-06-17T13:09:52 | 5f353eab36a46dc95dba49e8b5b7ea3db7eb5b99 | {
"blob_id": "5f353eab36a46dc95dba49e8b5b7ea3db7eb5b99",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-17T13:09:52",
"content_id": "c51e12067be7e2952f728af2324b53fc662102b3",
"detected_licenses": [
"MIT"
],
"directory_id": "c3a5e1a790d90526ed5e37248115812488ae3913",
"extension": "c"... | stackv2 | #include <xbee_config.h>
#include <types.h>
#include <rx_cluster_callback.h>
#ifdef ENABLE_XBEE_HANDLE_RX
int xbee_transparent_rx(const wpan_envelope_t FAR *envelope, void FAR *context)
{
char addrbuf[ADDR64_STRING_LENGTH];
puts("Received Simple Frame");
puts("---------------------");
sys_watchdog_reset();
print... | 2.4375 | 2 |
2024-11-18T21:51:11.561594+00:00 | 2019-11-04T01:30:55 | 005a7dd17ac3ab214f287a24e9727370220e3048 | {
"blob_id": "005a7dd17ac3ab214f287a24e9727370220e3048",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-04T01:30:55",
"content_id": "a453db3c5d20e6d2df1d210f071185ad40a0970c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1059d2de9b68bde65d5c12b6185b681bd952f8fa",
"extensio... | stackv2 | #include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <redland.h>
#include "./rdf_canon.h"
int main(int argc, char* argv[]) {
CAN_Context* ctx = CAN_context_new();
librdf_uri* uri;
unsigned char* string;
uri = librdf_new_uri_from_filename(ctx->wor... | 2.34375 | 2 |
2024-11-18T21:51:11.653460+00:00 | 2023-01-30T08:58:11 | c92b7ed827b1958abe8fb1752b6573259c48ec6c | {
"blob_id": "c92b7ed827b1958abe8fb1752b6573259c48ec6c",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-30T08:58:11",
"content_id": "f3f300ac97268e71107c11f85f06303e0499b4cc",
"detected_licenses": [
"MIT"
],
"directory_id": "29093bde0c0b3c471ea0c17d3ee4048f078a2f65",
"extension": "c"... | stackv2 | /**************************************************************************
* *
* SPRINT: Simple Parallel R INTerface *
* Copyright © 2008-2011 The University of Edinburgh *
* ... | 2.34375 | 2 |
2024-11-18T21:51:11.980431+00:00 | 2020-05-31T11:14:20 | 5aebaa00c40268d5526fbea3d8600f27e6562ede | {
"blob_id": "5aebaa00c40268d5526fbea3d8600f27e6562ede",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-31T11:14:20",
"content_id": "eabc869b64b9db0a8ce41c2024b0a362bd4f7488",
"detected_licenses": [
"MIT"
],
"directory_id": "487d57df956279dd29c18e8fa8c9b9fa1546d659",
"extension": "c"... | stackv2 | //
// Created by St on 2019-03-26.
//
#include "Consultation.h"
#include "../data/TablePurchaseRecord.h"
#include "../data/TableMountings.h"
#include "../data/TableSellingRecord.h"
#include "../data/DataManager.h"
#include <stdbool.h>
//查询某种配件的进货/销售信息
int comparePurchaseRecord(const void *a, const void *b) {
tim... | 2.28125 | 2 |
2024-11-18T21:51:12.026795+00:00 | 2020-12-14T05:07:17 | 10bacbd24e4db2ad9c1b569f7b4b731a95fe66d4 | {
"blob_id": "10bacbd24e4db2ad9c1b569f7b4b731a95fe66d4",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-14T05:07:17",
"content_id": "1aaac91bdaaea7df21ff678ed79ca4e32aa4d8ee",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "38025d4fe012bfda909b9babccdcfb2f20dbe478",
"extension": "... | stackv2 | #include <time.h>
#include <string.h>
#include <stdio.h>
struct datestruct{
int weekday; //day of the week
int monthday; //day of the month
int month; //the month
int year; // year
};
struct datestruct getNext(struct datestruct myd){
struct datestruct n;
n.weekday=(myd.weekday +1) % 7;
n.year=myd.year;
i... | 2.9375 | 3 |
2024-11-18T21:51:12.255191+00:00 | 2013-11-06T23:13:03 | 21be64788f78fe64cf0f8b2eca89114e02170e20 | {
"blob_id": "21be64788f78fe64cf0f8b2eca89114e02170e20",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-06T23:13:03",
"content_id": "ff7d6a04e8357037b99413a85d14adc2aa601d12",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4f635e7a72e59c8f557fe298e08224b2691b1d7a",
"extens... | stackv2 | #include "jfile.h"
Errcode write_gulp(char *name, void *buf, long size)
/* Write out a file of known size all at once returns Ecode */
{
Jfile f;
if((f = pj_create(name,JWRITEONLY))==JNONE)
goto io_error;
if (pj_write(f, buf, size) < size)
{
pj_close(f);
pj_delete(name);
goto io_error;
}
pj_close(f);
re... | 2.3125 | 2 |
2024-11-18T21:51:12.577890+00:00 | 2021-02-09T18:45:44 | de24a8d4aef114cb86c7ba8b7bb89e781a86ddb9 | {
"blob_id": "de24a8d4aef114cb86c7ba8b7bb89e781a86ddb9",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-09T18:45:44",
"content_id": "0de223e16764ea1aef4e301292af11d67f256acf",
"detected_licenses": [
"MIT"
],
"directory_id": "d24bf597c3f3f6575a2cfc9abaefa6fc0fd204fb",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
void somaReferencia(int *n) {
*n += 1;
}
int main(void){
int x = 5;
somaReferencia(&x);
printf("Depois da funcao: %d\n", x); // O valor retornado será 5 + 1, por se tratar de um ponteiro como parâmetro.
system("pause");
return 0;
} | 3.375 | 3 |
2024-11-18T21:51:14.124367+00:00 | 2015-10-23T16:51:59 | ffb64559b4813143673a61e9d6371843f5e0bb55 | {
"blob_id": "ffb64559b4813143673a61e9d6371843f5e0bb55",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-23T16:51:59",
"content_id": "86f63d949902d7fab2984d3acf16955c2472a056",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "711e468a2b511790820253283a989cc6884b9a35",
"extens... | stackv2 | /*
* This function has to set the bits needed to count different domains
* In particular: PAPI_DOM_USER, PAPI_DOM_KERNEL PAPI_DOM_OTHER
* By default return PAPI_EINVAL if none of those are specified
* and PAPI_OK with success
* PAPI_DOM_USER is only user context is counted
* PAPI_DOM_KERNEL is only the Kernel/O... | 2.421875 | 2 |
2024-11-18T21:51:15.232941+00:00 | 2021-07-17T09:19:11 | 13fffbd1b1f1295cd64a9e47fef646748000641c | {
"blob_id": "13fffbd1b1f1295cd64a9e47fef646748000641c",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-17T09:19:11",
"content_id": "337cd281f476869b6e7732e205b8ffb0492b9449",
"detected_licenses": [
"MIT"
],
"directory_id": "f8d05dd96ae48f57616bb3d0614b8ac601d1baa8",
"extension": "c"... | stackv2 | /**
* @file print.c
* @author Ivan Viviani
* @copyright Copyright (c) 2020
*/
#include "ziround.h"
void print_warning(const char* warn, ...) {
printf("\n\nWARNING: ");
va_list args;
va_start(args, warn);
vprintf(warn, args);
va_end(args);
fflush(NULL);
}
void print_error(const char* err, ...) {
printf("\n... | 2.515625 | 3 |
2024-11-18T21:51:15.882479+00:00 | 2023-01-10T18:44:00 | 36d3a8eb2a00c3c04a18c7d6fdc2482e329f19c0 | {
"blob_id": "36d3a8eb2a00c3c04a18c7d6fdc2482e329f19c0",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-10T18:44:00",
"content_id": "eee5cf8a67b51c729115c29353bf37b09023ca19",
"detected_licenses": [
"MIT"
],
"directory_id": "1f8ddf8df9bd01c4c3cc5eb9f5622ec732f4f09a",
"extension": "c"... | stackv2 | /*
* Mathlib : A C Library of Special Functions
* Copyright (C) 1998-2012 Ross Ihaka and the R Core team.
*
* This program 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 2 of the Lic... | 2.28125 | 2 |
2024-11-18T21:51:49.223616+00:00 | 2021-05-27T14:17:43 | dc2598fceb451cdb2cbb51eea359679446af8429 | {
"blob_id": "dc2598fceb451cdb2cbb51eea359679446af8429",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-01T20:41:31",
"content_id": "ba7bcf98d90d5e7a3ffa46469173cc1731aca33e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "07ba368d71420f84de0cff20fc2a8cdde5b2e993",
"extensio... | stackv2 | /*
* Copyright (c) 2019 Linaro Limited.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <kernel.h>
#include <sys/__assert.h>
#include "pm_policy.h"
#include <ti/devices/cc13x2_cc26x2/driverlib/sys_ctrl.h>
#include <ti/drivers/Power.h>
#include <ti/drivers/power/PowerCC26X2.h>
#include <t... | 2.234375 | 2 |
2024-11-18T21:51:49.589861+00:00 | 2017-10-18T09:54:02 | a8f2fe229288f4f1d0711319f970ee160c478d23 | {
"blob_id": "a8f2fe229288f4f1d0711319f970ee160c478d23",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-18T09:54:02",
"content_id": "c41aa9c61ca8392fea720d53cabe0fc16ff6e682",
"detected_licenses": [
"MIT"
],
"directory_id": "75e4f4bcef478a9122cad9be1a5f88b1005fd8d0",
"extension": "c"... | stackv2 | /*
* Copyright 1995-2017 Caplin Systems Ltd
*/
#include <jni.h>
#include <time.h>
#include "nanotime.h"
#ifdef WIN
#include <Windows.h>
typedef int clockid_t;
#define CLOCK_REALTIME 0
#define exp7 10000000i64 //1E+7
#define exp9 1000000000i64 //1E+9
#define w2ux 116444736000000000i64 ... | 2.53125 | 3 |
2024-11-18T21:51:50.693624+00:00 | 2015-06-14T17:03:51 | 360775d50bc717f39b10bb8aaf99bd128b48c541 | {
"blob_id": "360775d50bc717f39b10bb8aaf99bd128b48c541",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-14T17:03:51",
"content_id": "5f93fa84d99d7b0264cd3e96150338d1f1f16934",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "6586c597ee5d77f8698b3b630c5a3de8cfb6a5e9",
"extens... | stackv2 | #include <assert.h>
#include <stdio.h>
#include <string.h>
#include "spellutil.h"
static void
test_list_init()
{
spell_list_node *n = NULL;
printf("[PASSED] test_list_init\n");
spell_list_free(&n, NULL);
}
static void
test_list_add_one()
{
int j = 20;
spell_list_node *n = NULL;
int status = s... | 2.859375 | 3 |
2024-11-18T21:51:51.109042+00:00 | 2021-10-07T03:50:20 | d89ac20f2791ee1ed09dfe30c9c1edcc59cfe0a4 | {
"blob_id": "d89ac20f2791ee1ed09dfe30c9c1edcc59cfe0a4",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-07T03:50:20",
"content_id": "7a3a56d518c63ec5ab8034041c9b0bb546db8bb4",
"detected_licenses": [
"MIT"
],
"directory_id": "623a64c16ff7e39eb5dc3cdd63d33581c665c029",
"extension": "c",
... | stackv2 | #include "bal_compiler.h"
#include "parser/file_handler.h"
#include "parser/lexer.h"
// compiler flags
#define DEBUG 0x01 // 0b00000001
#define OPTIMIZE 0x02 // 0b00000010
#define TRANS_U 0x04 // 0b00000100
#define NEW_NAME 0x08 // 0b00001000
#define WARNINGS 0x10 // 0b00010000
stati... | 2.5 | 2 |
2024-11-18T21:51:51.342131+00:00 | 2023-08-11T13:02:43 | 8c85dae89dd99f4c118c4f3fb90165f850e1aba0 | {
"blob_id": "8c85dae89dd99f4c118c4f3fb90165f850e1aba0",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T13:02:43",
"content_id": "674ec8a43502da29508eb546ceef198e3c18cce2",
"detected_licenses": [
"MIT"
],
"directory_id": "751d837b8a4445877bb2f0d1e97ce41cd39ce1bd",
"extension": "c"... | stackv2 | /*
Your task is to find the sum of all integer numbers lying between 1 and N inclusive.
Input
The input consists of a single integer N that is not greater than 10000 by it's absolute value.
Output
Write a single integer number that is the sum of all integer numbers lying between 1 and N inclusive.
*/
#include <a... | 3.75 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.