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-18T19:57:32.895836+00:00 | 2017-04-08T10:05:07 | efce7125ce837b1d521751116c0e534524319a4a | {
"blob_id": "efce7125ce837b1d521751116c0e534524319a4a",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-08T10:05:07",
"content_id": "63b8eda69fde0830dab21797f6bca573c7e59d1a",
"detected_licenses": [
"MIT"
],
"directory_id": "d522f8217753bbc982450b8c7a8124c55b6480ee",
"extension": "c"... | stackv2 | #include "../Headers/OpgaveB2.h"
#include "../Headers/Wait.h"
#include <asf.h>
/*
* OpgaveB2.c
*
* Created: 9-3-2017 12:32:44
* Author: Stefan
*/
void OpgaveB2(){
DDRF = 0x00; // set PORTF for input (ADC)
DDRA = 0xFF; // set PORTA for output
ADMUX = 0b01000011; // AREF=VCC, not left adjusted, cha... | 2.28125 | 2 |
2024-11-18T19:57:33.144556+00:00 | 2023-08-31T05:17:33 | 08370063fa56c42e6649782b76215b6124018454 | {
"blob_id": "08370063fa56c42e6649782b76215b6124018454",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-31T05:17:33",
"content_id": "454795ce25fddfec2405729dd16bb925e196d700",
"detected_licenses": [
"Apache-2.0",
"MIT"
],
"directory_id": "58fe7cb3949dd1930e709696659a0296500b64a6",
... | stackv2 | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... | 2.234375 | 2 |
2024-11-18T19:58:09.106089+00:00 | 2020-07-29T19:42:15 | 74ba1977b69fc9e9c28d5250837fb6021d19d6fd | {
"blob_id": "74ba1977b69fc9e9c28d5250837fb6021d19d6fd",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-29T19:42:15",
"content_id": "55c70b670705eb407baa5f3c8058937b87469f94",
"detected_licenses": [
"curl"
],
"directory_id": "93fa8ba477a8ee5b721f387b3c888b92d61ac825",
"extension": "c... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "ServiceassignmentAPI.h"
#define MAX_BUFFER_LENGTH 4096
#define intToStr(dst, src) \
do {\
char dst[256];\
snprintf(dst, 256, "%ld", (long int)(src));\
}while(0)
// Enable a service in a specific location
//
// Allows the user to enable ... | 2.328125 | 2 |
2024-11-18T19:58:09.357430+00:00 | 2019-07-10T00:18:21 | ae4b4e5ad14f90e5dffdbe9cdb1ec4cbe089fcee | {
"blob_id": "ae4b4e5ad14f90e5dffdbe9cdb1ec4cbe089fcee",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-10T00:18:21",
"content_id": "41ed9a7ce987ba48288b6754e092c91f81869c6f",
"detected_licenses": [
"MIT"
],
"directory_id": "b2a2576ce307a1ec4c823f750bdbdc33201fd326",
"extension": "c"... | stackv2 | /*
* unit_set.c
*
* Unit tests for the set implementation. For test declarations, see
* unit_set.h.
*/
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include "constants.h"
#include "macros.h"
#include "set.h"
#include "list.h"
#include "unit_set.h"
/* Initialisation */
bool te... | 2.625 | 3 |
2024-11-18T19:59:55.425237+00:00 | 2021-08-16T10:36:44 | 384e670ff673ccff697a56b8146c758436691763 | {
"blob_id": "384e670ff673ccff697a56b8146c758436691763",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-16T10:36:44",
"content_id": "dfae55a008892d9d2e56b7571f61a3bcc58b58e2",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "7dd670253193b1119055f75c6c79c07cecffe210",
"extensio... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "util.h"
int datread(char *fn, float *sp, char *namesp, int *numch, int idimsp);
int rmsread(char *fn, float *sp, char *namesp, int *numch, int idimsp);
int sptread(char *fn, float *sp, char *namesp, int *numch, int idimsp);
/* =... | 2.09375 | 2 |
2024-11-18T19:59:55.641114+00:00 | 2023-08-27T20:08:08 | 910ef2d600d16b979cb74a93df3aaedb2448d916 | {
"blob_id": "910ef2d600d16b979cb74a93df3aaedb2448d916",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-27T20:08:08",
"content_id": "dfc6bcedf8aaa1ebc47439c1fb53941e6a034568",
"detected_licenses": [
"MIT"
],
"directory_id": "1af43c4ba32d78c60f007a4d068136ce575d917f",
"extension": "h"... | stackv2 | /**
******************************************************************************
* @file usb_prop.h
* @author MCD Application Team
* @version V4.0.0
* @date 21-January-2013
* @brief All processing related to Virtual COM Port Demo (Endpoint 0)
*****************************************************************... | 2.046875 | 2 |
2024-11-18T20:07:42.500404+00:00 | 2017-07-05T18:15:46 | b3546c9580f39ef8afd77e782d3119582261b382 | {
"blob_id": "b3546c9580f39ef8afd77e782d3119582261b382",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-05T18:15:46",
"content_id": "be7bda2c9f8ffe4fc5c70980f39bdc45fad38779",
"detected_licenses": [
"MIT"
],
"directory_id": "2aee28d649a68c98bface7f0b69aeeaf9c477160",
"extension": "c"... | stackv2 | #define _DEFAULT_SOURCE
#define _GNU_SOURCE
#include <errno.h>
#include <ctype.h>
#include <stdio.h>
#include <syslog.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <sys/uio.h>
int sd_journal_printv( int priority, const char *format, va_list ap ){
vsyslog( priority, form... | 2.578125 | 3 |
2024-11-18T20:07:42.673860+00:00 | 2018-05-31T14:53:30 | 308617a2ed7d89c45d028841917a6b79902177a2 | {
"blob_id": "308617a2ed7d89c45d028841917a6b79902177a2",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-31T14:53:30",
"content_id": "856a1e4ab0cb18768929c34fa5d326beb15741bf",
"detected_licenses": [
"MIT"
],
"directory_id": "de15ff1e99947bf6f04ca9a6b2b89050349e121a",
"extension": "c"... | stackv2 | /* includes */
#include "main.h"
/**
* @brief Aanroepen van de juiste functie a.d.h.v. de input van de gebruiker
* @param Geen
* @Note Functies zijn afkomstig uit de EE-API library
* @retval Geen
*/
void gebruiker_input_verwerking()
{
switch (gebruiker_input.command)
{
case LIJN:
/* DEBUG voor gebruikersi... | 2 | 2 |
2024-11-18T20:07:43.655922+00:00 | 2023-08-29T19:12:09 | 2ffbc0a97d34c66092320fc3187119fa2ce284eb | {
"blob_id": "2ffbc0a97d34c66092320fc3187119fa2ce284eb",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T19:12:09",
"content_id": "483c681d246fc0d432201159870d70a12aec56b8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7f49001b258dd1000e6d99e5a2ff595aadb58e53",
"extensio... | stackv2 | /*
Support for struct data type in ADLB
*/
#ifndef __XLB_DATA_STRUCTS_H
#define __XLB_DATA_STRUCTS_H
#include "adlb-defs.h"
#include "adlb_types.h"
#include "data.h"
#include "notifications.h"
/*
Type of a struct field.
Need extra type info because we might need to initialize the data
item, e.g. if a subscr... | 2.328125 | 2 |
2024-11-18T20:19:15.644488+00:00 | 2019-12-21T06:52:09 | c3fecad6acf3926374c79af6bcb0a815c0ebf75f | {
"blob_id": "c3fecad6acf3926374c79af6bcb0a815c0ebf75f",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-21T06:52:09",
"content_id": "ee6328776420a26816e22b6f0f718b3610fbc9ae",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4f0214e6aed47fe0e02cd7c9db1883c3d357da63",
"extensio... | stackv2 | #include "BitMatrix.h"
#include "qrcode.h"
#define bitsMask 0x1f
#define logBits 5
void new_BitMatrix(struct BitMatrix *matrix, int dimension)
{
matrix->width = dimension;
matrix->height = dimension;
matrix->rowSize = dimension >> logBits;
if ((dimension & 0x1f) != 0)
{
matrix->rowSize++;
}
matrix->bitSize =... | 3.015625 | 3 |
2024-11-18T20:19:16.019696+00:00 | 2015-06-21T09:43:31 | d5a4f7f2c4b5725249aef65be58a37eb23e02ca4 | {
"blob_id": "d5a4f7f2c4b5725249aef65be58a37eb23e02ca4",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-21T09:43:31",
"content_id": "eda65b3326dd5563a7c3c1e01d3105c4b973e81d",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7b6e2984c27a5f89145f146748054ea37b0b21b3",
"extens... | stackv2 | /*
*
* Arduino Sketch to communicate with the Syma S107 IR Helicopter.
* Author: Vivin Suresh Paliath
*
* This code has been adapted from the code available at the following URL:
*
* https://sites.google.com/site/spirixcode/code/kodek.txt?attredirects=0
*
* The original author is Jim Hamilton AKA "Aqualung"... | 2.3125 | 2 |
2024-11-18T20:40:51.189144+00:00 | 2021-03-29T13:24:51 | b7d241429fcf318542555e3fedfbc112079f4574 | {
"blob_id": "b7d241429fcf318542555e3fedfbc112079f4574",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-29T13:24:51",
"content_id": "c530ad5b6c0930e8d1e9df5b5c6599ba53840a4e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f74c2837174d18aec692b7c341dfd58d2ccc3549",
"extension"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
//enum data tipi
enum hafta{ Pazartesi = 1 ,Sali , Carsamba , Persembe ,Cuma, Cumartesi,Pazar };
int main()
{
enum hafta bugun;
printf("Gun gir:");
scanf("%d",&bugun);
int yarin = bugun + 1;
printf("Gun: %d \n", bugun);
////////////////////////////////... | 2.796875 | 3 |
2024-11-18T20:40:53.878186+00:00 | 2021-04-08T17:24:07 | 6f3472e0944499572103c50ea0f497f23ab79164 | {
"blob_id": "6f3472e0944499572103c50ea0f497f23ab79164",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-08T17:24:07",
"content_id": "70ae24feb0d9879e63bb5f1d69e85834afcc3f7e",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "fe27d4417ec8d360caf766b4acd10f5eaaffc5db"... | stackv2 | /*
* File: disable_component.c
* Author: Vince Weaver
* vweaver1@eecs.utk.edu
*/
/*
This tests the functionality of PAPI_disable_component()
*/
#include "papi_test.h"
int
main( int argc, char **argv )
{
int retval;
const PAPI_component_info_t* cmpinfo;
int numcmp, cid, active_compon... | 2.65625 | 3 |
2024-11-18T18:36:19.123842+00:00 | 2023-08-11T17:19:13 | 627dd79cdd89c40b99b709ccaec73ab1a2e3aba7 | {
"blob_id": "627dd79cdd89c40b99b709ccaec73ab1a2e3aba7",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-11T17:19:13",
"content_id": "d7df64e27080fa937e0919de4fac92b89844b96c",
"detected_licenses": [
"MIT"
],
"directory_id": "382c5c64e7f179a345ad267806824099d7986d64",
"extension": "c"... | stackv2 | /* catplot.c
*
* Usage: catplot fitsfile xycatfile ([setup_filename])
*
* Description: Plots a FITS file as a greyscale plot and then marks
* the positions of the objects detected by SExtractor.
*
* To compile use the appropriate makefile in this directory.
*
* Revision history
* 29May2004 CD... | 2.6875 | 3 |
2024-11-18T18:36:19.638444+00:00 | 2015-07-02T17:16:15 | 9e79cf72410714ab038f4d4ed2acebe002251e42 | {
"blob_id": "9e79cf72410714ab038f4d4ed2acebe002251e42",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-02T17:16:15",
"content_id": "e9ac0dab263386a97beb809ccd68d38c819b3e6e",
"detected_licenses": [
"MIT"
],
"directory_id": "b1ea6f1b868e4e3de5833e6bbbdd6db2c082828f",
"extension": "c"... | stackv2 |
#include <de4/de4.h>
#include "state.h"
#include "prop.h"
#include <stdlib.h>
#include <stdio.h>
#include <omp.h>
#define BADPROP(id) (id == DE4_BADID || !(id & PROP_VALID_FLAG))
#define BADENTITY(id) (id == DE4_BADID)
// looks up the id of the given named property
de4_Id de4_propertyid(de4_State * D, const char * ... | 2.328125 | 2 |
2024-11-18T18:36:19.702913+00:00 | 2015-06-24T10:31:07 | d1712e9efc63310de0f549dd516dc21b00bfb01c | {
"blob_id": "d1712e9efc63310de0f549dd516dc21b00bfb01c",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-24T10:31:07",
"content_id": "1a32487835de3898230179aff6fdf734dc8269b4",
"detected_licenses": [
"MIT"
],
"directory_id": "12cca99db1fbf779fffa1ca573d3c28b4e1ed660",
"extension": "h"... | stackv2 | /*
Copyright (c) 2015
vurtun <polygone@gmx.net>
MIT licence
GUI
-----------------------
This two file provide both the interface and implementation for a bloat free
minimal state immediate mode graphical user interface toolkit. The Toolkit
does not have any library or runtine dependenci... | 2.0625 | 2 |
2024-11-18T18:36:21.474353+00:00 | 2019-10-14T16:52:49 | a7b93a58598a7bdb7abed6f7c05a098a49b908df | {
"blob_id": "a7b93a58598a7bdb7abed6f7c05a098a49b908df",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-14T16:52:49",
"content_id": "a8ea255a961c7acdad12ff64247cd38b20da1411",
"detected_licenses": [
"MIT"
],
"directory_id": "1a4f6e2a67d677ddd118359140766df734b54c02",
"extension": "h"... | stackv2 | /* ************************************************************************** */
/* */
/* :::::::: */
/* color.h :+: :+: ... | 2.21875 | 2 |
2024-11-18T18:36:21.704595+00:00 | 2021-09-29T04:28:26 | f0a3175afd4b1c88717a758a42232d1bae955332 | {
"blob_id": "f0a3175afd4b1c88717a758a42232d1bae955332",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-29T04:28:26",
"content_id": "e8929793f02bcc56a7be4c6ba7a785fe77765b0b",
"detected_licenses": [
"MIT"
],
"directory_id": "4223adaf667d3f76c8bcfb7b66638f7c492f2778",
"extension": "c",
... | stackv2 | #include "sys.h"
#include "delay.h"
#include "usart.h"
#include "stdio.h"
#include "CCS811.h"
extern ccs811_measurement_t CCS;
int main(void)
{
u8 st1 = 0;
delay_init();
Uart1_init(115200);
CCS811Init();
app_Start();
delay_ms(150);
while(1)
{
st1 = CCS811_ReadOneByte(0x00);
switch(st1)
{
case 0x90:
... | 2.28125 | 2 |
2024-11-18T18:37:42.680264+00:00 | 2021-09-25T20:27:18 | c55e551f6164168bcc825cbfb22990b1c0de92f4 | {
"blob_id": "c55e551f6164168bcc825cbfb22990b1c0de92f4",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-25T20:27:18",
"content_id": "44225da800b0d18ee0e40d9e435c433e89b13b00",
"detected_licenses": [
"MIT"
],
"directory_id": "476edbbee45389301555d591d4d2414a796d516b",
"extension": "h"... | stackv2 | // --------------------------------------------------------------------------------
// LIBCLIFS - TIAGO MELO JUCA (2021) |
// --------------------------------------------------------------------------------
// This library is for studying purposes only - please don't take it... | 2.296875 | 2 |
2024-11-18T18:37:43.080283+00:00 | 2020-12-05T22:06:54 | bd91030e6deb588fb325ddf51c6b67b5c4b04a72 | {
"blob_id": "bd91030e6deb588fb325ddf51c6b67b5c4b04a72",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-05T22:06:54",
"content_id": "1902b44e726803cca7c1d7ae88436e181fecbd5a",
"detected_licenses": [
"MIT"
],
"directory_id": "0eb9b3c073a28e6a94c46ce1c136df4c776ee29a",
"extension": "c"... | stackv2 | //
// Queue.c
//
// stdlib provides malloc and free
#include <stdlib.h>
// stdbool defines bool
#include <stdbool.h>
// asserts are used for checking that the queue exists
#include <assert.h>
// calls the queue supports are included for consistency checking
#include "Queue.h"
// the queue uses a linked list to implem... | 3.359375 | 3 |
2024-11-18T18:37:43.257246+00:00 | 2021-03-23T14:43:29 | 2f08e684d0ce217fcf587eccb7785708068c1c43 | {
"blob_id": "2f08e684d0ce217fcf587eccb7785708068c1c43",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-23T14:43:29",
"content_id": "354f580a4c68f1e56cf790fe209ce429ebfbda0b",
"detected_licenses": [
"MIT"
],
"directory_id": "1f2efd445d88a14f48856051cea7cb1ff3c28b20",
"extension": "c",
... | stackv2 | /*
!-----------------------------------------------------------------------
! Author: Ruud van der Pas, Sun Microsystems
!
! Copyright: Sun Microsystems, All rights reserved, Un-authorized
! distribution not permitted
!-----------------------------------------------------------------------
*/
#i... | 2.125 | 2 |
2024-11-18T18:37:43.335034+00:00 | 2018-06-24T01:18:30 | a13dbfc60688f93d74317b11f322a7d51838f047 | {
"blob_id": "a13dbfc60688f93d74317b11f322a7d51838f047",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-24T01:18:30",
"content_id": "883945c3f5595677d5b036447027fccefb03be91",
"detected_licenses": [
"Unlicense"
],
"directory_id": "2e10a55bcc27421c2ce00bac67d62ca3ae7a43be",
"extension... | stackv2 | //
// gcommon.h
// GCommon
//
// Created by David Coen on 2011 05 29
// Copyright Pleasure seeking morons 2011. All rights reserved.
//
#ifndef _gcommon_H_
#define _gcommon_H_
///////////////////////////////////////////////////////
//typedef
typedef void GVOID; //excessive, not really a type?
typedef bool GBOO... | 2.015625 | 2 |
2024-11-18T18:37:43.430155+00:00 | 2017-06-22T15:41:03 | ff2fbcb06b34392a122b52e7fef71427dd7a27c5 | {
"blob_id": "ff2fbcb06b34392a122b52e7fef71427dd7a27c5",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-22T15:41:03",
"content_id": "5f7a68ee4b828475d1f578e59dd1ca6f8c8955c5",
"detected_licenses": [
"MIT"
],
"directory_id": "22cc20c6001c921b2a9476e41b41f1362d48cfc8",
"extension": "c"... | stackv2 | #include "mem_pool.h"
#include "edefs.h"
#include "xv6/defs.h"
#define BLOCK_POINTER_NUMBER 4
#define BLOCK_BYTE_NUMBER 1
#define SIZE_OF_BLOCK (sizeof(struct memblock))
void pool_init(struct mem_pool *pool, byte *m, uint s)
{
acquire(&pool->lock);
pool->mem = m;
pool->size = s;
memlist firstfree = ... | 2.640625 | 3 |
2024-11-18T18:38:24.346083+00:00 | 2021-03-14T20:29:54 | b7d83c0dc6027493e29250804a6d8ebe5a0b36c5 | {
"blob_id": "b7d83c0dc6027493e29250804a6d8ebe5a0b36c5",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-14T20:29:54",
"content_id": "5a68ce8625eb2d40150f40094c6adb1b5251464f",
"detected_licenses": [
"MIT"
],
"directory_id": "ec53de34881276a7bd5348f1f550483347cd5db4",
"extension": "c",
... | stackv2 | /*******************************************************************************
*
* crc8_j1850.c - CRC8-SAE-J1850 implementation
*
* Copyright (c) 2020 Basil Hussain
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | 2.328125 | 2 |
2024-11-18T18:38:27.745715+00:00 | 2020-01-19T09:46:46 | 5cf36ee4410339068300688bd7d8474398446665 | {
"blob_id": "5cf36ee4410339068300688bd7d8474398446665",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-19T09:46:46",
"content_id": "f68d62b7b02fa696e03f5d1bd3c556be10a31c8c",
"detected_licenses": [
"MIT"
],
"directory_id": "214984d5aa91cf6662be44ce6c5849cdfcc67c35",
"extension": "c"... | stackv2 | #include "hello.h"
#include "graphics.h"
#include "math.h"
#include "hankaku.h"
#include "input_devices.h"
typedef struct MouseDecoder {
uint8_t buf[3];
int8_t index;
mouse_state_t decoded;
} mouse_decoder_t;
static mouse_decoder_t _mouse_decoder = {0};
static void wait_keyboard_controller... | 2.5 | 2 |
2024-11-18T18:38:27.896013+00:00 | 2020-06-26T12:36:36 | 9d3c0c91632ec36d7341a70335ec26864468f1a5 | {
"blob_id": "9d3c0c91632ec36d7341a70335ec26864468f1a5",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-26T12:36:36",
"content_id": "d26975474cbebbc6e39ea21a8e7dee03904f4e37",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "780dd01e385ee622f3220f2ffcb00f785dbbfb49",
"extensio... | stackv2 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2020 Martin Jäger / Libre Solar
*/
#include <kernel.h>
#include <device.h>
#include <init.h>
#include <drivers/pinmux.h>
#include <sys/sys_io.h>
#include <pinmux/stm32/pinmux_stm32.h>
static const struct pin_config pinconf[] = {
{STM32_PIN_PA9, STM32G4X... | 2.125 | 2 |
2024-11-18T19:14:07.969827+00:00 | 2019-01-31T14:43:22 | 8a6e781914ccc8065a3515d2f199bbfdaec497bc | {
"blob_id": "8a6e781914ccc8065a3515d2f199bbfdaec497bc",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-31T14:43:22",
"content_id": "96d0886ed9f7245c0c69497330001179b08f71f7",
"detected_licenses": [
"MIT"
],
"directory_id": "d4281f427fbb35c3b4d97a4a70f1a99409d3a3a3",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "snn.h"
#include "snn_act_funcs.h"
#include "snn_matrix.h"
int weights_create(snn_t *snn);
int weights_destroy(snn_t *snn);
int layers_create(snn_t *snn);
int layers_destroy(snn_t *snn);
int delta_create(snn_t *snn);
int delta_destroy(snn_t *snn);
voi... | 2.703125 | 3 |
2024-11-18T19:14:08.100069+00:00 | 2018-07-13T05:54:40 | e97886c8353e7186316bdc409bcd90faad4790c9 | {
"blob_id": "e97886c8353e7186316bdc409bcd90faad4790c9",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-13T05:54:40",
"content_id": "ae4d9663c58e8d523139200db3ca841f5bac0082",
"detected_licenses": [
"MIT"
],
"directory_id": "c8dcdc8f2099349c2e6257fc737a1df4490843f5",
"extension": "c"... | stackv2 | #include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <avr/io.h>
#include <util/delay.h>
#include <util/atomic.h>
#include "librscs_config.h"
#include "../error.h"
#include "../dht22.h"
struct rscs_dht22_t {
volatile uint8_t * PORTREG, * PINREG, * DDRREG;
uint8_t PIN;
uint8_t signal_time; //У кажд... | 2.59375 | 3 |
2024-11-18T19:14:08.211832+00:00 | 2020-07-08T09:07:17 | 14f9c0b87d89a6682270236ca60e8264944f6084 | {
"blob_id": "14f9c0b87d89a6682270236ca60e8264944f6084",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-08T09:07:17",
"content_id": "d7a8880fcdae2d79569d1bff492d12af3ae347d7",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "d5116aa01f81217ee95fb5ecbee9bb5047b7865e",
"extens... | stackv2 | /*
* Copyright (c) 2018 Jie Zheng
*/
#ifndef _PSEUDO_TERMINAL
#define _PSEUDO_TERMINAL
#include <lib/include/types.h>
#include <filesystem/include/vfs.h>
#include <filesystem/include/file.h>
#include <filesystem/include/filesystem.h>
#include <kernel/include/wait_queue.h>
#include <lib/include/ring.h>
#define PTTY_R... | 2.0625 | 2 |
2024-11-18T19:14:08.378468+00:00 | 2016-01-13T06:22:27 | 8fd3628b758d881a0abc08c0addb9b919e32b1b2 | {
"blob_id": "8fd3628b758d881a0abc08c0addb9b919e32b1b2",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-13T06:22:27",
"content_id": "a7a188317cd62a9ea09042cd48cf6008eb4e1871",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "863b3ea4ada39f9f9a3e5cefb38115c1922810b1",
"extensio... | stackv2 | #include "vsoc.h"
void activeChat(int sC, char *currentUser, const char *room)
{
bool run = true;
char mesg[TEXT_LEN], actionUser[LONG_LEN];
sprintf(actionUser, ">%s", currentUser);
dbSendMsgToRoom(actionUser, room, "");
while (run)
{
memset(actionUser, 0, LONG_LEN);
memset(mesg, 0, TEXT_LEN);
safePrefR... | 2.09375 | 2 |
2024-11-18T19:14:08.477033+00:00 | 2022-11-23T22:11:58 | 8d1001fc2549bc8cd1bab033d1fc63a76f0e7fcf | {
"blob_id": "8d1001fc2549bc8cd1bab033d1fc63a76f0e7fcf",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-23T22:11:58",
"content_id": "7b61fa6291e50adb2be263b9c3ebecaf56a9a834",
"detected_licenses": [
"MIT"
],
"directory_id": "14e74a98a91ae3d88c2adb02f52c2e91f07f282d",
"extension": "c"... | stackv2 | #line 2 "scanner.c"
#line 4 "scanner.c"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 35
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
/* First, we deal wi... | 2.171875 | 2 |
2024-11-18T19:38:42.053646+00:00 | 2017-04-13T20:08:04 | 1c02fdb6baa1e10141258886f6a772e77c0cc2c0 | {
"blob_id": "1c02fdb6baa1e10141258886f6a772e77c0cc2c0",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-13T20:08:04",
"content_id": "55ab01fcc6c46c4a1a61bb34b69f4bd5cf7a6ad1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "223418be6fd5aa5a75e6ca0bf0b59702a6dfa6d4",
"extens... | stackv2 | /* ttsc1.c : Demonstrates latency of use of IA64_rdtsc.h's IA64_s_ns_since_start() vs. using clock_gettime(CLOCK_MONOTONIC_RAW)
*/
#define _GNU_SOURCE
#include <features.h>
#include <sys/types.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdbool.h>
#include <time.h>
#include <sys/stat.h>
#include <unistd.h>
#... | 2.109375 | 2 |
2024-11-18T19:38:42.477667+00:00 | 2023-08-31T02:16:24 | c8fb3e08b2ca499144f13a0f9b4afb084331e991 | {
"blob_id": "c8fb3e08b2ca499144f13a0f9b4afb084331e991",
"branch_name": "refs/heads/vlm_master",
"committer_date": "2023-08-31T02:16:24",
"content_id": "db010729e8831e2cd026828c616c934ac445e087",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "853f3da12f4c0c5b4c5584e71537e4a81458bcce",
"ex... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include "asn1_ref.h"
#include "asn1_buffer.h"
#include "asn1_namespace.h"
static void (*_add_standard_namespaces_cb)(asn1_namespace_t *);
void
asn1_namespace_add_standard_namespaces_callback(
void (*cb)(asn1_namesp... | 2.359375 | 2 |
2024-11-18T19:39:53.599062+00:00 | 2020-03-02T15:40:54 | 1c75b8db4657650219418a11e22f77f6f6133d54 | {
"blob_id": "1c75b8db4657650219418a11e22f77f6f6133d54",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-02T15:40:54",
"content_id": "98975fccdc5d929fdff8f1c37ec3bb9e061dd7c1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "68100fae5eea70f839b9796dd9c8b91482a36ce5",
"extensio... | stackv2 | /* This file is the part of the STM32 secure bootloader
*
* Copyright ©2016 Dmitry Filimonchuk <dmitrystu[at]gmail[dot]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://w... | 2.453125 | 2 |
2024-11-18T19:39:53.673925+00:00 | 2017-01-13T20:11:56 | 63f169f8fa5db4f2bbe0f46cf290077299fb9890 | {
"blob_id": "63f169f8fa5db4f2bbe0f46cf290077299fb9890",
"branch_name": "refs/heads/develop",
"committer_date": "2017-01-13T20:11:56",
"content_id": "19c3e0f0e9dd3d15c577f8877810238bb387e28f",
"detected_licenses": [
"MIT"
],
"directory_id": "0bb25b299497596033b17192ece360bd540b410f",
"extension": "h... | stackv2 | /**
* @file
* @copyright 2015 opencxa.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 2.046875 | 2 |
2024-11-18T19:39:53.766316+00:00 | 2021-07-27T16:17:10 | 345c57ff8874e23669a495b7a79a4ee3e0fac677 | {
"blob_id": "345c57ff8874e23669a495b7a79a4ee3e0fac677",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-27T16:17:10",
"content_id": "90dadb7a14cc5158e1e85546948ee0f0be5e18ba",
"detected_licenses": [
"MIT"
],
"directory_id": "383956491739c8679a178c9ddab0ab63231f59f7",
"extension": "c"... | stackv2 | #include <limits.h>
#include "array.h"
int get_index_of(const int numbers[], const size_t element_count, const int num)
{
size_t i = 0;
if (num == INT_MIN) {
return -1;
}
for (i = 0; i < element_count; ++i) {
if (numbers[i] == num) {
return i;
}
}
retu... | 3.40625 | 3 |
2024-11-18T19:39:55.499465+00:00 | 2013-11-07T20:01:29 | c1f4852085d805ecc6c340ebda495149e21df3dc | {
"blob_id": "c1f4852085d805ecc6c340ebda495149e21df3dc",
"branch_name": "refs/heads/master",
"committer_date": "2013-11-07T20:01:29",
"content_id": "3e91e1cff762cd55b1a2b031e2e6fa0b3ad60ded",
"detected_licenses": [],
"directory_id": "f184770c3c0da399b6f991129100aa0b7f32ff03",
"extension": "c",
"filename... | stackv2 | /*
* Copyright 1999-2006 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 2.171875 | 2 |
2024-11-18T19:51:59.007805+00:00 | 2016-09-21T13:18:53 | 79cc2eddf7a756ccea7aa1d11ddd47f78292a7f6 | {
"blob_id": "79cc2eddf7a756ccea7aa1d11ddd47f78292a7f6",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-21T13:18:53",
"content_id": "16b04e313f05d531c89470d0e8cbed057210ce0e",
"detected_licenses": [
"MIT"
],
"directory_id": "e5d08e7deb38c8e6778a0d853f6883989d05ad8c",
"extension": "h"... | stackv2 | #ifndef _CSLOWLOG_H_
#define _CSLOWLOG_H_
#if !defined(_XOPEN_SOURCE) && !defined(_POSIX_C_SOURCE)
#define _XOPEN_SOURCE 600
#endif
#include <unistd.h>
#if !defined(_POSIX_TIMERS) || (_POSIX_TIMERS <= 0)
#error Posix timers are not supported on this system
#endif
#include <stdio.h>
#include <time.h>
#include <stdarg... | 2.671875 | 3 |
2024-11-18T19:51:59.170079+00:00 | 2023-07-21T15:58:54 | 588823ef22029ed66c31385422addba122621e9f | {
"blob_id": "588823ef22029ed66c31385422addba122621e9f",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-21T15:58:54",
"content_id": "ff11d460e1d809bea0173de3ea0449d29629b593",
"detected_licenses": [
"MIT"
],
"directory_id": "5f86fc385c7dcfcb5b166cdea7c8b13057b8bb5f",
"extension": "c"... | stackv2 | // Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include "exception.h"
#include <openenclave/host.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/trace.h>
#include <stdio.h>
#include "asmdefs.h"
#include "enclave.h"
#include "vdso.h"
/**
* Relevant definit... | 2.328125 | 2 |
2024-11-18T20:12:17.420646+00:00 | 2017-01-25T00:23:57 | 513aaed7201f6718b543d7a0b1e791253b83a638 | {
"blob_id": "513aaed7201f6718b543d7a0b1e791253b83a638",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-25T00:23:57",
"content_id": "25d71bf8bebbfa6ba345abee6f8fddaced26f162",
"detected_licenses": [
"MIT"
],
"directory_id": "58e01af64d550a2abebc9b5b22c694e5a0c50c16",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#pragma warning(disable : 4996)
// Read before you start:
// Do not modify any part of this program that you are given. Doing so may cause you to fail automated test cases.
// You are given a partially complete program. Your job is to complete the functions in order for this pr... | 3.1875 | 3 |
2024-11-18T20:12:17.626320+00:00 | 2016-05-11T22:50:11 | 7b29f3b64d4c2a271f4808b6ff3520f5e99e8cef | {
"blob_id": "7b29f3b64d4c2a271f4808b6ff3520f5e99e8cef",
"branch_name": "refs/heads/master",
"committer_date": "2016-05-11T22:50:11",
"content_id": "9734e1df9b0f30666b3b0b8c11ce9601131ea811",
"detected_licenses": [
"MIT"
],
"directory_id": "2de584eafa3bcace58b706ebdb93af0931f5e445",
"extension": "h"... | stackv2 | /* Author: Steve Gunn
* Licence: This work is licensed under the Creative Commons Attribution License.
* View this license at http://creativecommons.org/about/licenses/
*
*
* - Jan 2015 Modified for LaFortuna (Rev A, black edition) [KPZ]
*/
#include <avr/io.h>
#include <stdint.h>
#include "svgrgb5... | 2.40625 | 2 |
2024-11-18T20:13:49.096702+00:00 | 2021-01-16T04:16:04 | cfa6a5d458e501002da3ab02826b33d2bfe28356 | {
"blob_id": "cfa6a5d458e501002da3ab02826b33d2bfe28356",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-16T04:16:04",
"content_id": "40aa446ecd40b1f233c6c7ad57feb5d3458fa19e",
"detected_licenses": [
"MIT"
],
"directory_id": "290e600e0d82142e81ec2fa518a965f29a13ff11",
"extension": "c"... | stackv2 | #include <stdio.h>
#define IN 1 //inside a word
#define OUT 2 //outside a word
int recurse(int nl, int nw, int nc) ;
int main() {
int c, nl, nw, nc, state;
state = OUT;
nl = nw = nc = 0;
while ((c = getchar()) != '\t') {//note that using tab in place of EOF
++nc;
if (c == '\n') {
... | 3.171875 | 3 |
2024-11-18T20:25:45.263914+00:00 | 2015-12-11T11:51:11 | 49a26c8c6234148bf86f47f0cfb7a10b59ac5ecd | {
"blob_id": "49a26c8c6234148bf86f47f0cfb7a10b59ac5ecd",
"branch_name": "refs/heads/master",
"committer_date": "2015-12-11T11:51:11",
"content_id": "5ca9f356cbcd73533df0875602c3459e635e3837",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "edbd4f8f29417765cb472601a6274e393814d21f",
"extens... | stackv2 | /*
* Copyright (c) 2015, Daan Pape
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list ... | 2.046875 | 2 |
2024-11-18T20:25:45.335117+00:00 | 2019-07-17T07:30:36 | 0ba79925fc817added9ec24623d0fc001cbe2095 | {
"blob_id": "0ba79925fc817added9ec24623d0fc001cbe2095",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-17T07:30:36",
"content_id": "764c53b96dd537a4f778c139bf5838b920ebda98",
"detected_licenses": [
"MIT"
],
"directory_id": "1d87958027223b65301b2b367057cb429ae9fc7f",
"extension": "h"... | stackv2 | #ifndef TEST_H
#define TEST_H
#include"addresslist.h"
//----------------------------------------------------------------------------------------------
//以下是测试,可以考虑加个测试类
//测试create函数
void new_address_book_test()
{
address_book = create();
cout<<"加个人"<<endl;
add_person(address_book);
cout<<"通讯录";
show_add... | 2.5 | 2 |
2024-11-18T20:26:16.394554+00:00 | 2018-09-17T13:51:48 | ceddf5239e4ca6a37d931a449867b457bf91d414 | {
"blob_id": "ceddf5239e4ca6a37d931a449867b457bf91d414",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-17T13:51:48",
"content_id": "efc6daac09506dbb57036c92d87001f22767426d",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4a3613977511162f1a610c93b8ea0d3fa690c313",
"extens... | stackv2 | /**
* $Id: ketamamodule.h 23 2007-07-13 01:32:00Z toxik $
*
* License: See ../LICENSE or
* svn://svn.audioscrobbler.net/misc/ketama/LICENSE
*/
#ifndef _PYKETAMA_H
#define _PYKETAMA_H
#include <Python.h>
#include <ketama.h>
/* Common idiom goes to macro, that's it. */
#define PY_DEF(name, self, args) static PyO... | 2.109375 | 2 |
2024-11-18T20:37:13.754873+00:00 | 2023-08-03T22:35:37 | 2a205f698124d627a8436b3bb1635e56930b9110 | {
"blob_id": "2a205f698124d627a8436b3bb1635e56930b9110",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-03T22:35:37",
"content_id": "b046ff1a823080b8cda2fb73cf8503448291a72f",
"detected_licenses": [
"Linux-OpenIB"
],
"directory_id": "9bfd61f3ceaf77129b8c7b8441f1c129b2ecc3ea",
"extens... | stackv2 | /******************************************************************************\
* alps_dl.c - Alps specific functions for the daemon launcher.
*
* Copyright 2014-2020 Hewlett Packard Enterprise Development LP.
* SPDX-License-Identifier: Linux-OpenIB
****************************************************************... | 2.390625 | 2 |
2024-11-18T20:37:13.989592+00:00 | 2021-08-21T11:29:30 | 470c48c1fda1bbad26be7829d5e0478f83212ca5 | {
"blob_id": "470c48c1fda1bbad26be7829d5e0478f83212ca5",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-21T11:29:30",
"content_id": "36b4bd167b9249ca30d09cff3fcdcaaa28a5eef1",
"detected_licenses": [
"MIT"
],
"directory_id": "8fcf6e477f70eccecf00ad3c0947d88d2c76c8e9",
"extension": "c"... | stackv2 | //pxcall.c
//Entry points for system-calls
//Bryan E. Topp <betopp@betopp.com> 2021
#include "px.h"
//Actual system-call triggers, for each number of parameters, defined in syscall.asm
extern uint64_t _pxcall0(uint64_t call);
extern uint64_t _pxcall1(uint64_t call, uint64_t p1);
extern uint64_t _pxcall2(uint64_t call... | 2.359375 | 2 |
2024-11-18T20:37:14.126229+00:00 | 2022-06-13T10:16:22 | a3a55a70b6dd4b6b30da8dfb087674e2e4588205 | {
"blob_id": "a3a55a70b6dd4b6b30da8dfb087674e2e4588205",
"branch_name": "refs/heads/master",
"committer_date": "2022-06-13T10:16:22",
"content_id": "0ad30754fe8738deb10ba78d98820008987defe2",
"detected_licenses": [
"MIT"
],
"directory_id": "8f0b3cd34cce2dabe57f08c78e6b08b33f4e78bb",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* png_to_array.c :+: :+: :+: ... | 2.390625 | 2 |
2024-11-18T20:46:44.086295+00:00 | 2021-01-24T00:43:05 | 15035574a0cb18d76218493611d5de2d542cab26 | {
"blob_id": "15035574a0cb18d76218493611d5de2d542cab26",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-24T00:43:05",
"content_id": "939daf6bc54e0e6eb1149ac0a0ec1b18f11ec533",
"detected_licenses": [
"MIT"
],
"directory_id": "e9ddf45110a834f36b96edf4ccc6d6172e6769ea",
"extension": "h"... | stackv2 | /*
* File : Rcc.h
* Remark : Macro to access Reset and Clock Control controller on chip.
* Fow now this is STM32F10XXX chipset.
*
*/
#ifndef RCC_H
#define RCC_H
#include "..\Type.h"
#include "..\Bit.h"
#ifdef __cplusplus
extern "C" {
#endif
#define RCC_HSI_CLOCK 8000000UL
#define RCC_HSE_CLOCK ... | 2.171875 | 2 |
2024-11-18T18:58:30.752086+00:00 | 2020-08-05T01:44:26 | e0b73008405f69deee0353dc4d2423695a93ac42 | {
"blob_id": "e0b73008405f69deee0353dc4d2423695a93ac42",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-05T01:44:26",
"content_id": "47f0edc9a981d53dd09ec0ec4e8067c07839bc90",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "565507688be07671ad20c22af2240359fa021cfe",
"extensio... | stackv2 | #include "testutil.h"
static void print_param(parameter_node_t * param, int level)
{
if(!param) return;
parameter_node_t * child;
char fmt[64];
//cwmp_log_debug("name: %s, type: %s, level: %d\n", param->name, cwmp_get_type_string(param->type), level);
int i=0;
sprintf(fmt, "|%%-%d\s%%s", level*4);
... | 2.28125 | 2 |
2024-11-18T18:58:30.860019+00:00 | 2010-02-16T08:07:06 | 4fa022cb5c197389ed94b5527686d23f9ac907a2 | {
"blob_id": "4fa022cb5c197389ed94b5527686d23f9ac907a2",
"branch_name": "refs/heads/master",
"committer_date": "2010-02-16T08:07:06",
"content_id": "73578e6892c3a4d704045909e522228b77d10fea",
"detected_licenses": [
"Zlib"
],
"directory_id": "b45fcecff2f06bfd484b8ac12d12d5c2adb54a76",
"extension": "c... | stackv2 | /* ast.c
* Copyright (C) 2007-2008 Joel de Vahl.
* For conditions of distribution and use, see copyright notice in LICENSE
*/
#include "ast.h"
#include "hash.h"
#include "object.h"
#include "str.h"
#include "state.h"
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
void AST_init(stru... | 2.34375 | 2 |
2024-11-18T19:25:16.480982+00:00 | 2021-08-08T03:17:35 | e891e9f281df56c25c3cb58f106a424bee770f4e | {
"blob_id": "e891e9f281df56c25c3cb58f106a424bee770f4e",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-08T03:17:35",
"content_id": "1179a906d1a85c3e69a324a167843250642a11ba",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "adfda3643a99f69da49bccbd8e0afcc98fde2741",
"extensio... | stackv2 | #include <stdio.h>
#include <board.h>
#include <sg_counter.h>
static u32 OsTickCount;
static u32 OsTickCount_us;
#define ENABLE_UPTIME_PRINTS 1
#define TEMPORARY_WORKAROUND 1
#define ONE_MSEC_IN_NANO_SEC (1000000)
int OsComputeUpTime(void);
int OsHandleCounters(void);
u32 GetOsTickCnt(void) {
return OsTickCount... | 2.90625 | 3 |
2024-11-18T19:25:16.559445+00:00 | 2021-08-07T17:12:09 | 9fc549b20742ec6b294ada1e1b2ba2508f0fb5c6 | {
"blob_id": "9fc549b20742ec6b294ada1e1b2ba2508f0fb5c6",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-07T17:12:09",
"content_id": "e36cbbb5361faf38a2dc489dca9d811186221dde",
"detected_licenses": [
"MIT"
],
"directory_id": "cbc265ef35541dc6f669fc3a1d6c45d30cc0a301",
"extension": "c",
... | stackv2 | /*
* Exemplo de implementação de Lista Sequencial Ordenada em C - Utilizando sentinela
* Kelvin S. do Prado - 2015
*/
#include <stdio.h>
#define MAX 10
#define ERRO -1
typedef int TIPOCHAVE; // Define um nome TIPOCHAVE para um tipo inteiro
typedef struct{
TIPOCHAVE chave;
}REGISTRO;
typedef struct{
REGISTRO A[MA... | 3.921875 | 4 |
2024-11-18T19:25:16.677864+00:00 | 2020-06-17T00:52:19 | 2d75e610c6abd94bb73457c1e009180791a89e82 | {
"blob_id": "2d75e610c6abd94bb73457c1e009180791a89e82",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-17T00:52:19",
"content_id": "e71c2c2ff97fb2f5bbd0b0e5dbdb804a41dcb75f",
"detected_licenses": [
"MIT"
],
"directory_id": "20af59fadeacfadba09773a5d8a2e121109d2fdc",
"extension": "c"... | stackv2 | /*Programa de adivinhação*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h> // para utilizar a funcao rand eh necessario incluir esta biblioteca
main()
{
int magico;
int palpite;
srand(time(NULL)); //inicializacao necessaria para a funcao rand.
magico = rand()%10 + 1;
//printf("%d ", magico);
print... | 3.515625 | 4 |
2024-11-18T19:25:42.908717+00:00 | 2015-02-20T01:08:23 | 9d29c3a200fa10d7b43a8dc4adb319818e35d526 | {
"blob_id": "9d29c3a200fa10d7b43a8dc4adb319818e35d526",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-20T01:08:23",
"content_id": "a78007db57af97ccec16904236c8bb314e6f0cda",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "af467da373f347998e2e37720f426300a21d58b0",
"extension":... | stackv2 | #pragma config(Hubs, S1, HTMotor, none, none, none)
#pragma config(Sensor, S2, Light, sensorCOLORFULL)
#pragma config(Motor, mtr_S1_C1_1, Left, tmotorTetrix, openLoop, reversed, encoder)
#pragma config(Motor, mtr_S1_C1_2, Right, tmotorTetrix, openLoop, encoder)
//*!!Cod... | 2.0625 | 2 |
2024-11-18T19:25:42.977030+00:00 | 2016-08-17T06:05:32 | da5d2ffcf6635b8be709c289f50c44a6f19d51df | {
"blob_id": "da5d2ffcf6635b8be709c289f50c44a6f19d51df",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-17T06:05:32",
"content_id": "e449df9ba0c723a5820b5522ecb8d56003de3867",
"detected_licenses": [
"MIT"
],
"directory_id": "4d15ea3593698946040e136e84fc1eb294eee810",
"extension": "h"... | stackv2 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
/** @file gateway_ll.h
* @brief Library that allows a user to create and configure a gateway.
*
* @details Gateway LL is the lower level library that allows a develop... | 2.28125 | 2 |
2024-11-18T19:25:43.542227+00:00 | 2014-03-23T13:48:48 | 01093b30d64d8b9adba2d2590552dc6a5f6b3258 | {
"blob_id": "01093b30d64d8b9adba2d2590552dc6a5f6b3258",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-23T13:48:48",
"content_id": "07dd45edcf713587f2f412d01f3364879e7c0291",
"detected_licenses": [
"MIT"
],
"directory_id": "2897b29a04eee3a98d18de088e09fbd15904c2ea",
"extension": "c"... | stackv2 | /*
** simple_inter.c for Here function call by split_inter ! in /Users/lifely/Developer/project/VSHsvn/branches/my_readline/new/bind
**
** Made by julien di-marco
** Login <di-mar_j@epitech.net>
**
** Started on Thu May 6 01:19:16 2010 julien di-marco
** Last update Sun May 23 03:22:07 2010 julien di-marco
*/
#i... | 2.390625 | 2 |
2024-11-18T19:25:43.599785+00:00 | 2021-04-18T23:28:42 | 2c547da913c6b82a3f7b573d50a5e43a06ddcebb | {
"blob_id": "2c547da913c6b82a3f7b573d50a5e43a06ddcebb",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-18T23:28:42",
"content_id": "0b7f68539e4243e6b2a21d3a6eaa3be0cbd5b024",
"detected_licenses": [
"MIT"
],
"directory_id": "a89b28bd5a9517fefaa2ecbc8814070d44d62d05",
"extension": "c"... | stackv2 | /**
* @file clkhandler.c
*/
/* Embedded Xinu, Copyright (C) 2009, 2013. All rights reserved. */
#include <stddef.h>
#include <queue.h>
#include <clock.h>
#include <thread.h>
#include <platform.h>
#if RTCLOCK
void wakeup(void);
int resched(void);
/**
* @ingroup timer
*
* Interrupt handler function for the ... | 2.515625 | 3 |
2024-11-18T19:25:43.687836+00:00 | 2019-11-23T05:55:47 | e7fcb7ad81554fcd692d8bef9d0ffc7207693968 | {
"blob_id": "e7fcb7ad81554fcd692d8bef9d0ffc7207693968",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-23T05:55:47",
"content_id": "ebd3f580a35f84352f5eb1bd7aa3bb0bde65dc4a",
"detected_licenses": [
"MIT"
],
"directory_id": "6d95387a05b357c582c4b64270bd94a74c21e51d",
"extension": "c"... | stackv2 | ///////////////// SOFTWARE ENGINEERING ASSIGNMENT /////////////////
// Write a C program to find out most frequently occurring number from a given set of //
// possitive numbers ( value ranging from 1 to 100) //
// @author: Mohitesh Ch Agarwal ... | 3.65625 | 4 |
2024-11-18T19:26:33.536670+00:00 | 2020-07-25T12:28:12 | 55a0b1e2ff82136ce25513095da7f99a9167309a | {
"blob_id": "55a0b1e2ff82136ce25513095da7f99a9167309a",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-25T12:28:12",
"content_id": "bb14c255b5a016d77abfec70453cad3dcbb8ec42",
"detected_licenses": [
"MIT"
],
"directory_id": "4ba70f7992a7b8fb66f3afb6471e596f3f76fc88",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <limits.h>
int main() {
printf("%u\n", UINT_MAX);
printf("INT_MIN=%d\n", INT_MIN);
printf("INT_MAX=%d\n",INT_MAX);
unsigned char a = 200;
signed char b = a;
signed char c = -56;
unsigned char d = c;
printf("%d %d %d %d\n", a, b, c, d);
int e = -1u;
... | 2.546875 | 3 |
2024-11-18T19:26:33.628337+00:00 | 2021-03-27T06:08:55 | 620d12685c05b66a042bda5475e85096a4cec988 | {
"blob_id": "620d12685c05b66a042bda5475e85096a4cec988",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-27T06:08:55",
"content_id": "3f4d1daec5eabb16eb9fa5c6c4fe2ebd573d3522",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "834cd422a7ee36c31118941ded8e0fbdbdb6a492",
"extension"... | stackv2 | /**
******************************************************************************
* @file dbg_trace.c
* @author MCD Application Team
* @brief This file contains the Interface with BLE Drivers functions.
******************************************************************************
* @attention
*
... | 2.25 | 2 |
2024-11-18T19:26:33.818467+00:00 | 2023-09-01T08:20:15 | d7e912dfbbd7f70d32e3d18c33403e470f57a149 | {
"blob_id": "d7e912dfbbd7f70d32e3d18c33403e470f57a149",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-01T08:21:05",
"content_id": "6f55f0de53417679805302e602460751c4975b40",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "820b6af9fd43b270749224bb278e5f714f655ac9",
"extens... | stackv2 | /*
* Copyright(C) 1999-2020 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* See packages/seacas/LICENSE for details
*/
/***************************************************... | 2.125 | 2 |
2024-11-18T19:27:15.027570+00:00 | 2021-01-30T20:36:45 | 3b6abdb0d61d728f92b54e7380c82da51d7827f1 | {
"blob_id": "3b6abdb0d61d728f92b54e7380c82da51d7827f1",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-30T20:36:45",
"content_id": "44748e1111c8a9fc106460954e32dacc13b1e777",
"detected_licenses": [
"MIT"
],
"directory_id": "acd3d2e88833db880ffcd49b0b841b4d3cd5ee06",
"extension": "c"... | stackv2 | #include <stdio.h>
int main() {
FILE* fp;
FILE* fp2;
FILE* fp3;
FILE* fp4;
fp = fopen("test/test.txt", "w");
fp2 = fopen("test/test2.txt", "w");
fp3 = fopen("../test3.txt", "w");
fp4 = fopen("test/test4.txt", "w");
fprintf(fp, "This is a first file\n");
fprintf(fp2, "This is a second file\n");
f... | 2.5 | 2 |
2024-11-18T19:27:15.254213+00:00 | 2023-08-29T11:30:11 | 7291de39541fb3bb1e16679282d205af58b1633e | {
"blob_id": "7291de39541fb3bb1e16679282d205af58b1633e",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-29T11:30:11",
"content_id": "c8839f365488d05d5be8a7a673ca5c5a882f2733",
"detected_licenses": [
"BSD-3-Clause",
"BSD-4-Clause-UC"
],
"directory_id": "07664200f77c4d87baf972e367e77... | stackv2 | /*
** PUT CHARACTER
**
** This routine just calls putchar normally, unless the character
** to be printed is a control character, in which case the octal
** equivalent is printed out. Note that tab, newline, and so
** forth are considered to be control characters.
**
** Parameters:
** ch -- the character to print.
*... | 2.59375 | 3 |
2024-11-18T19:27:15.387021+00:00 | 2020-05-04T21:10:03 | 36073a0a70754ffb9c9f4cf2b8a6fb2a37b36c17 | {
"blob_id": "36073a0a70754ffb9c9f4cf2b8a6fb2a37b36c17",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-04T21:10:03",
"content_id": "2597fcf1712eaf29e61214a8741fcadb1cfce2b2",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1345f5094610b5a7c555326a18babf246cc72707",
"extens... | stackv2 | # include <stdio.h>
# include <float.h>
# include "nbadpix.h"
/* B_SINGLEGROUP - Process one group from the input list.
*
*
*
*
* Revision history:
* ----------------
* 05 Aug 96 - Implementation (IB)
*
*/
int b_singleGroup (IRAFPointer list, char *mask, Counter *cou, Image *img,
... | 2.4375 | 2 |
2024-11-18T19:49:02.666097+00:00 | 2021-10-02T14:57:54 | 6010cc9a10177192c54edf2aee22b8d3e61fa19d | {
"blob_id": "6010cc9a10177192c54edf2aee22b8d3e61fa19d",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-02T14:57:54",
"content_id": "142d049052b8f870927473f9b671a94058a2466d",
"detected_licenses": [
"MIT"
],
"directory_id": "5e381364c2ab31ff3618369085afffba6caa8edb",
"extension": "c"... | stackv2 | // Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2020 - 2021 by Apex.AI Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 2.265625 | 2 |
2024-11-18T19:49:02.762170+00:00 | 2019-12-03T09:38:56 | 0bfaa98ee4e2bf44ac040042645dd6b44ebd46cd | {
"blob_id": "0bfaa98ee4e2bf44ac040042645dd6b44ebd46cd",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-03T09:38:56",
"content_id": "ff821ae034fa168ccbb927cb076ef34e4663544a",
"detected_licenses": [
"MIT"
],
"directory_id": "12abb84df7fe97f3bcd4fec4c579e61762dd2ac9",
"extension": "h"... | stackv2 | /**
* @file
* @copyright defined in wasm/LICENSE
*/
#pragma once
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @addtogroup transaction_c Transaction API
* @ingroup c_api
* @brief Defines C API for sending transactions and inline actions
*
* @details Deferred transactions will not be process... | 2.171875 | 2 |
2024-11-18T19:49:22.575993+00:00 | 2023-04-01T06:12:34 | 089e857e9f893749e294918467ca204ec4114dfa | {
"blob_id": "089e857e9f893749e294918467ca204ec4114dfa",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-01T06:12:34",
"content_id": "0fb6d1493a2fba486cb3043fb299e2c49ae62d5e",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "74eeac4d154eb733973a4c2376a5748505db7b66"... | stackv2 | #include <sys/socket.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <getopt.h>
#include <pthread.h>
#include <inttypes.h>
#include <sys/errno.h>
#include <signal.h>
#include <sys/queue.h>
#include <inttypes.h>
... | 2.234375 | 2 |
2024-11-18T19:49:22.959949+00:00 | 2022-10-08T17:37:09 | 33f7f3778b19b5fa72087dadd24e808f6e34fd9b | {
"blob_id": "33f7f3778b19b5fa72087dadd24e808f6e34fd9b",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-08T17:37:09",
"content_id": "9e5459532a9c8250054f0ee81fd987d81cb053ab",
"detected_licenses": [
"ISC"
],
"directory_id": "c4b4d7e65d5931e4e7836149cd0696f02b24b6dc",
"extension": "c"... | stackv2 | // The Snipe editor is free and open source, see licence.txt.
#include "theme.h"
#include "style.h"
#include "setting.h"
#include "file.h"
#include "string.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
// A colour holds RGBA data.
struct colour { unsigned char r, g, b, a; };
// A th... | 2.84375 | 3 |
2024-11-18T19:49:40.175562+00:00 | 2020-07-27T07:02:04 | 5605b677e67e4a589c84cbd63f354f341d198914 | {
"blob_id": "5605b677e67e4a589c84cbd63f354f341d198914",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-27T07:02:04",
"content_id": "3ee062ad599a59a2314561fe0699489a23c4a54d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "36e11d2c7c45b556f8338029bcfde58a032ba6d4",
"extensio... | stackv2 | /**
\file dpfj_compression.h
\copyright (c) 2012 DigitalPersona, Inc
\brief U.are.U SDK Image Compression API
Data types and functions for compression.
\version 2.0.0
*/
#ifndef __DPFJ_COMPRESSION_H__
#define __DPFJ_COMPRESSION_H__
#include <dpfj.h>
/**
\brief Compression or decompression operation is in progres... | 2.09375 | 2 |
2024-11-18T19:49:41.838850+00:00 | 2021-06-02T02:00:29 | 3c4c15281a95e86b2f58d2f3b2b3c35d71fcccf9 | {
"blob_id": "3c4c15281a95e86b2f58d2f3b2b3c35d71fcccf9",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-02T02:00:29",
"content_id": "fb7a1dc56c253d3b14b56d1758f119ef676217cf",
"detected_licenses": [
"MIT"
],
"directory_id": "9efc2b09e77472e42b0d2d01fd32e58d0745cf6a",
"extension": "c"... | stackv2 | // Copyright 2021-2021 The jdh99 Authors. All rights reserved.
// 管道操作
// Authors: jdh99 <jdh821@163.com>
#include "tziotpipe.h"
#include "tziot.h"
#include "tziotconfig.h"
#include "tziotstandardlayer.h"
#include "tzlist.h"
#include "tzmalloc.h"
#include "lagan.h"
#include "tzbox.h"
#include "tzaccess.h"
#include "t... | 2.453125 | 2 |
2024-11-18T19:49:41.913679+00:00 | 2015-09-19T11:42:51 | 4a3f9c1914ade141dab926807a17a5a44906c102 | {
"blob_id": "4a3f9c1914ade141dab926807a17a5a44906c102",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-19T11:42:51",
"content_id": "939527397c17c50b1861dccdeb34eaa63e3ecb2a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d7d3e71895c02a7a9af0960a0c7f16d9e804a816",
"extensio... | stackv2 | #include <stdio.h>
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include "pref.h"
static signed long long new_page(struct pref__obj *const p, char **page_pp);
static signed long long new_page(struct pref__obj *const p, char **page_pp)
{
*page_pp = mmbuf__alloc(p->ref_file, PAGE... | 2.484375 | 2 |
2024-11-18T20:01:21.397002+00:00 | 2023-07-24T14:03:20 | f56ee001cf1aabbe159b858d6f6dc67a45333f39 | {
"blob_id": "f56ee001cf1aabbe159b858d6f6dc67a45333f39",
"branch_name": "refs/heads/main",
"committer_date": "2023-07-28T12:22:38",
"content_id": "e9a93a17442daf22add97ce9a67bd578011aba33",
"detected_licenses": [
"MIT",
"Apache-2.0"
],
"directory_id": "1fd7c3c65b68eb2516a75ef28166d8c187e03746",
... | stackv2 | /* --------------------------------------------------------------------------
* Copyright (c) 2013-2022 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
*... | 2 | 2 |
2024-11-18T20:01:21.584100+00:00 | 2018-11-10T21:54:07 | b1e77c43ee32de96223878c2a3b860eaea1aa00b | {
"blob_id": "b1e77c43ee32de96223878c2a3b860eaea1aa00b",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-10T21:54:07",
"content_id": "1d07148531e7031354af17cdd90ffdbb7522ecdf",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "151b24446ff8ce967b1a02d117d77419709e7d68",
"extens... | stackv2 | /* output a string to a string, and return a pointer to the
end of the string. */
#include <stdio.h>
char *sputs (str, s)
char *str, *s;
{
while (*s++ = *str++);
return (--s);
}
| 2.5 | 2 |
2024-11-18T20:12:32.086109+00:00 | 2021-04-02T21:18:59 | 093ba02e16ae7c98d00993592b6f56c896c1df48 | {
"blob_id": "093ba02e16ae7c98d00993592b6f56c896c1df48",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-02T21:18:59",
"content_id": "f40046ad078d32af16c32aa6e8ee51d59db14acb",
"detected_licenses": [
"Unlicense"
],
"directory_id": "9dc3a2fd16cb071d4e1b0f5bf085a11f7a289167",
"extension":... | stackv2 |
/**
* Arlindo Tavares Varela
* Bataille navale
* 04.03.2021
* 23.03.2021
* version 1.0
* *23.03 15h
*/
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <stdbool.h>
#include <time.h>
#define AFFICHAGE_OBJETS {' ','B','X','O','C'}
#define DEBUG 0 // Changer à 1 pour afficher aussi les bateau... | 2.96875 | 3 |
2024-11-18T20:12:32.143947+00:00 | 2023-04-26T15:39:25 | 43baf1c835bc0fc2c750d10e8d69cf41a38e5eb5 | {
"blob_id": "43baf1c835bc0fc2c750d10e8d69cf41a38e5eb5",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-26T15:39:25",
"content_id": "cb3282989054eaabefe8a9b5117612690a840525",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f231fd7cb34b042a91addf2e96468cc08ab785e3",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#define dabs( x ) ( (x) < 0 ? -(x) : x )
double FLA_Clock(); // This is a routine for extracting elapsed
// time borrowed from the libflame library
/* MaxAbsDiff computes the maximum absolute difference over all
... | 2.53125 | 3 |
2024-11-18T20:25:27.611661+00:00 | 2018-08-06T19:42:15 | 894ceac6ecd00f6754052e787bdc440b7a48c153 | {
"blob_id": "894ceac6ecd00f6754052e787bdc440b7a48c153",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-06T19:42:15",
"content_id": "6c44366d1ea27a33cef04d9be2d7e367fe00c5d6",
"detected_licenses": [
"MIT"
],
"directory_id": "8e3080e60ef0b299c12dd3244631676deb8bd62d",
"extension": "c"... | stackv2 | /*
Name - Nikhil Ranjan Nayak
Regd No - 1641012040
Desc - Min and max heap implementation
*/
#include <stdio.h>
#include <stdlib.h>
int leftchild(int);
int rightchild(int);
int parent(int);
void minheap(int[], int[], int);
void maxheap(int[], int[], int);
void display(int[], int);
void heap_insert(int[], int, int*, int... | 3.6875 | 4 |
2024-11-18T20:25:27.737247+00:00 | 2023-04-07T22:19:18 | 12732c90832816c951ed144fad0a91ce2b62e911 | {
"blob_id": "12732c90832816c951ed144fad0a91ce2b62e911",
"branch_name": "refs/heads/main",
"committer_date": "2023-04-07T22:19:18",
"content_id": "27a97b260c43393b3a2feb199d995e1a77084f23",
"detected_licenses": [],
"directory_id": "3cd3872acbc8b1a79a70b89b2fd58a171e7adc82",
"extension": "c",
"filename":... | stackv2 | /*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | 2.21875 | 2 |
2024-11-18T20:38:20.406039+00:00 | 2023-07-21T02:37:01 | c7cf4502557df6336e2c5bf51b307d90eee85aff | {
"blob_id": "c7cf4502557df6336e2c5bf51b307d90eee85aff",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-21T02:37:01",
"content_id": "7f7ccd1d8c9a8841318e2dd23b6a3a8050f495c6",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "2f5f8be3a1886cdad4e9c1b84723fa439c4baae6",
"extens... | stackv2 | /*
Serialisers and de-serialisers for various structures.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "utils.h"
#include "errorlog.h"
#include "question_types.h"
#include "survey.h"
#include "serialisers.h"
// #366, set retVal condition to < 0
#define REPORT_IF_FAILED() ... | 3 | 3 |
2024-11-18T20:38:20.536269+00:00 | 2023-08-07T00:34:06 | fa0a0c5c5ae40e45243f95bde61d20ae36d5af58 | {
"blob_id": "fa0a0c5c5ae40e45243f95bde61d20ae36d5af58",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-07T00:34:06",
"content_id": "a255b7cd16d137dbd9cc274b0dbcc5bb11a0f1e0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7875d9c191db4bbe4d3bafc340035435833a2166",
"extensio... | stackv2 | #include "defs.h"
/*
.page
.cen general purpose copy routine
hopefully this will replaced with an assembly program
on those machines that support block move instructions */
hword ccopy(a,b,len)
byte *a, *b;
hword len;
{ hword i, found;
found = 0;
i = 0;
if( len > 0){
for (i=0;i<len;i++){
... | 2.203125 | 2 |
2024-11-18T20:39:07.032116+00:00 | 2020-05-01T01:47:31 | 88bb81ef46a6705ddc57ee834a1e32ddbe9a08b9 | {
"blob_id": "88bb81ef46a6705ddc57ee834a1e32ddbe9a08b9",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-01T01:47:31",
"content_id": "f90df909ea711e3bbad26bacab2940bf93fa7775",
"detected_licenses": [
"MIT"
],
"directory_id": "7e4c241f4b89de1c1aab30cdc1599eb57ebcbf7f",
"extension": "c"... | stackv2 | /*
* =====================================================================================
*
* Filename: hw7.c
*
* Description:
*
* Version: 1.0
* Created: 03/26/2020 06:28:44 PM
* Revision: none
* Compiler: gcc
*
* Author: Ethan Rooney (), ethan.f.rooney@p... | 2.390625 | 2 |
2024-11-18T20:39:07.780932+00:00 | 2018-06-05T07:45:53 | 61ee4a24685c2ca42eb319aadb58e66a998dcf22 | {
"blob_id": "61ee4a24685c2ca42eb319aadb58e66a998dcf22",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-05T07:45:53",
"content_id": "aa310df9ae11bac49a51ef48f72d29baac52eca1",
"detected_licenses": [
"MIT"
],
"directory_id": "0057987be09eab0f49bfcaaa6ffc10d4805490d2",
"extension": "h"... | stackv2 | /* 1986BE3_UDP
__ ____ ___ __ ___ ___ __ __
| |\/| | )| | ) / |( ( )( ( ) / / \ \_/
|_| |_|_/ |_| \__|_| /_/ (_(_)(_)_)__/_/ \
*//**
* \file lan.h
* \brief UDP, ARP and ping for 1986BE3.
* \author Vitaly Kravtsov (in4lio@gmail.com)
* \copyright See the LICENSE file.
*/
#ifnd... | 2.453125 | 2 |
2024-11-18T20:39:08.130214+00:00 | 2022-11-25T14:31:40 | 8867c1eae7458134d118bcb2c5730b0158df628d | {
"blob_id": "8867c1eae7458134d118bcb2c5730b0158df628d",
"branch_name": "refs/heads/main",
"committer_date": "2022-11-25T14:31:40",
"content_id": "95c457e3f6c2b67fee15241d9defc9e701bfe33b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c6bbd226758134f7057e381234b14ab0e5f19410",
"extensio... | stackv2 | /* onepal.c - A routine to force all the frames of a FLIC to a reasonable
intermediate palette that is the same for all frames */
#include "jimk.h"
#include "auto.h"
#include "errcodes.h"
#include "flx.h"
#include "palmenu.h"
#define MAXC (21000)
static int ccount;
static int add_clist(UBYTE *uses, Rgb3 *clist, ... | 2.265625 | 2 |
2024-11-18T20:49:59.513040+00:00 | 2020-03-05T06:31:26 | 8b9706b15d23c3820424516e0d7fc16c37954249 | {
"blob_id": "8b9706b15d23c3820424516e0d7fc16c37954249",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-05T06:31:26",
"content_id": "c660726a282b162ed4669c3bf4e32a6460b886a3",
"detected_licenses": [
"MIT"
],
"directory_id": "99ff8e570e082e20917be8a66e14403f3f63a94b",
"extension": "c"... | stackv2 | // SDL2 Hello, World!
// This should display a white screen for 2 seconds
// compile with: clang++ main.cpp -o hello_sdl2 -lSDL2
// run with: ./hello_sdl2
#include <SDL2/SDL.h>
#include <stdio.h>
#include <stdbool.h>
#include "gui.h"
#undef main
int main(int argc, char* args[])
{
Gui * gui_ptr = gui_init();
... | 2.625 | 3 |
2024-11-18T20:49:59.864554+00:00 | 2022-08-03T03:25:07 | 2f9ed28b351082f7f0ad401de79134b24a52a9d7 | {
"blob_id": "2f9ed28b351082f7f0ad401de79134b24a52a9d7",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-03T03:25:07",
"content_id": "8dc062476921f027230c3f433082402d8ea450bc",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "084f426279e775884ecef4ff4b0b1bdfef902d09",
"extensio... | stackv2 | /*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* CLIPS Version 6.40 01/06/16 */
/* */
/* ... | 2 | 2 |
2024-11-18T20:50:00.094832+00:00 | 2015-02-04T16:13:54 | 04b6ce78ac4c63dd99ff07da508497d7ebe6c823 | {
"blob_id": "04b6ce78ac4c63dd99ff07da508497d7ebe6c823",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-04T16:13:54",
"content_id": "e3aa3bc9bd3dca3a0aca70fc7f952812c29b17a9",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "7d3351b43dbe67adda847539341fa9c104ae07e3",
"extens... | stackv2 | //
// contacts.h
// telepathy
//
// Created by jl777 on 10/13/14.
// Copyright (c) 2014 jl777. MIT License.
//
#ifndef libtest_contacts_h
#define libtest_contacts_h
void create_telepathy_entry(struct contact_info *contact,int32_t sequenceid);
struct contact_info *find_handle(char *handle)
{
return((struct co... | 2.09375 | 2 |
2024-11-18T18:39:42.807120+00:00 | 2019-11-02T17:38:25 | b80c8ab84ff23e72d5bd2a3e56d1a76b34bb6efa | {
"blob_id": "b80c8ab84ff23e72d5bd2a3e56d1a76b34bb6efa",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-02T17:38:25",
"content_id": "2f131d236511b8d3e406958555aee61b9582b9c4",
"detected_licenses": [
"MIT"
],
"directory_id": "8bdcbcb2cada0ab7e133a575d49bc8d72e20244a",
"extension": "c"... | stackv2 | #include "Couleur.h"
#include <windows.h>
void Color(int couleurDuTexte,int couleurDeFond) // fonction d'affichage de couleurs
{
HANDLE H=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(H,couleurDeFond*16+couleurDuTexte);
}
| 2.140625 | 2 |
2024-11-18T18:39:43.044715+00:00 | 2015-02-28T04:22:57 | 76312155becaf08a00ab26c5e8f851ab9b4b2999 | {
"blob_id": "76312155becaf08a00ab26c5e8f851ab9b4b2999",
"branch_name": "refs/heads/master",
"committer_date": "2015-02-28T04:22:57",
"content_id": "5aaebe99fbe765b72705aa1388cd7e95e83efbf8",
"detected_licenses": [
"MIT"
],
"directory_id": "6acdb48790c5e8ff2028309474a61228a0a7a22d",
"extension": "c"... | stackv2 | #include "numbers.h"
#include <stddef.h>
#include <string.h>
/* macros may be evil, but dear god, they are necessary for anything even
* slightly resembling "acceptable" code here
* LINGUA ANGLICA DELENDA EST
* HERE BE DRAGONS
*/
#define MATCH(str, val) \
if (!strncmp(str, expr_buf, sizeof(str) - 1)) { \
retur... | 2.625 | 3 |
2024-11-18T18:39:43.219821+00:00 | 2021-12-21T14:27:09 | 9014dd863ca54a3e78a5ce03a99b76af7711ce8a | {
"blob_id": "9014dd863ca54a3e78a5ce03a99b76af7711ce8a",
"branch_name": "refs/heads/master",
"committer_date": "2021-12-21T14:27:09",
"content_id": "785118796eff37ffce9f824cdb717f3bcf0ebc61",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "fead6fdd7f26bf55bb224a1d340b2c3897bf6bda",
"extens... | stackv2 | /*! \file
3D grey level morphology.
\par Reference:
P. Maragos, R.W. Schafer (1990):
"Morphological Systems for multidimensional signal processing",
Proc. of the IEEE, Vol. 78, No. 4, pp. 690--709.
\par Author:
Gabriele Lohmann, MPI-CBS
*/
#include <viaio/VImage.h>
#include <viaio/Vlib.h>
#include <stdio.h>... | 2.71875 | 3 |
2024-11-18T18:39:43.643690+00:00 | 2022-10-11T18:08:34 | d33e19429df2e07fe996b239683e2039e67c0622 | {
"blob_id": "d33e19429df2e07fe996b239683e2039e67c0622",
"branch_name": "refs/heads/master",
"committer_date": "2022-10-11T18:08:34",
"content_id": "3b5c8936ae71a90c638dcbc85f42d769065d7d40",
"detected_licenses": [
"MIT"
],
"directory_id": "a934c4bbb2c1b70ae6ae0a3487a5ec3d3ee3050a",
"extension": "c"... | stackv2 | #include<stdio.h>
#include<conio.h>
#include<string.h>
#define EndOfWord word[i] == ' ' || word[i] == ','\
|| word[i] == '.' || word[i] == '\n'
int countword(FILE*);
void count4words(FILE*);
main()
{
FILE *fp;
fp = fopen("trial.txt", "r");
if (fp == NULL)
{
puts("\nCan't open the file.");
exit(1);
}
int ... | 3.25 | 3 |
2024-11-18T18:39:43.804101+00:00 | 2019-02-11T21:25:48 | edae174296b3e8df740895d15df0ff08f5f01ba5 | {
"blob_id": "edae174296b3e8df740895d15df0ff08f5f01ba5",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-11T21:25:48",
"content_id": "be289fd957e9cd2780a4f62971d9bdc3a854f746",
"detected_licenses": [
"BSD-3-Clause",
"PSF-2.0",
"Python-2.0",
"Zlib",
"BSD-4-Clause",
"BSD-2... | stackv2 | #include "metsrv.h"
#include "win\server_pivot.h"
// see ReflectiveLoader.c...
extern HINSTANCE hAppInstance;
PLIST gExtensionList = NULL;
DWORD request_core_enumextcmd(Remote* remote, Packet* packet);
DWORD request_core_machine_id(Remote* remote, Packet* packet);
DWORD request_core_get_session_guid(Remote* remote, ... | 2.140625 | 2 |
2024-11-18T18:39:43.880519+00:00 | 2021-10-18T09:54:58 | 4d8819ed45f1fbc0197031dd19fe65008289f378 | {
"blob_id": "4d8819ed45f1fbc0197031dd19fe65008289f378",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-18T09:54:58",
"content_id": "fdcaf46cd5d48adeddafeee33a98fd954a2b6f48",
"detected_licenses": [
"MIT"
],
"directory_id": "b1f7b54161dbeebea764d11fcaaf8cacaa30f4e1",
"extension": "c",
... | stackv2 | #include "libmx.h"
char *mx_strndup(const char *s1, size_t n) {
char *arr_dst = NULL;
if (mx_strlen(s1) < (int)n) arr_dst = mx_strnew(mx_strlen(s1));
else arr_dst = mx_strnew(n);
if (arr_dst == NULL) return NULL;
return mx_strncpy(arr_dst, s1, n);
}
| 2.453125 | 2 |
2024-11-18T18:39:43.979529+00:00 | 2015-01-27T16:59:40 | ff0e75aebe21cf5452f3a96dec4ceadbd5527700 | {
"blob_id": "ff0e75aebe21cf5452f3a96dec4ceadbd5527700",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-27T16:59:40",
"content_id": "e6b42231d49240f5b289eefbd6d3453cf7b94eff",
"detected_licenses": [
"ICU"
],
"directory_id": "0641d87fac176bab11c613e64050330246569e5c",
"extension": "c"... | stackv2 | /*
*******************************************************************************
*
* Copyright (C) 2000-2001, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
* file name: decmn.c
* encoding: US... | 2.28125 | 2 |
2024-11-18T18:39:44.983091+00:00 | 2019-06-01T13:28:10 | 52c1ce95a0929efc4dc19bbf5fc140e927960cb6 | {
"blob_id": "52c1ce95a0929efc4dc19bbf5fc140e927960cb6",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-01T13:28:10",
"content_id": "5100cf9adc02b0dde7b4b807988d533809186754",
"detected_licenses": [
"MIT"
],
"directory_id": "e398a585764f16511a70d0ef33a3b61da0733b69",
"extension": "c"... | stackv2 | /*
* UNIMODEM "Fakemodem" controllerless driver illustrative example
*
* (C) 2000 Microsoft Corporation
* All Rights Reserved
*
* The code in this module simply supports the very basic AT command parser.
* This code should be completely replaced with the actual code to support
* your controllerless modem.
*/
... | 2.0625 | 2 |
2024-11-18T18:39:45.268148+00:00 | 2018-02-11T16:29:09 | 71750b3fffa2a2c990c34358df35f5802ea33b68 | {
"blob_id": "71750b3fffa2a2c990c34358df35f5802ea33b68",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-11T16:29:09",
"content_id": "0b467e3b2fa1554fdaf928b835614c00022ecb97",
"detected_licenses": [
"MIT"
],
"directory_id": "b26a59d78f7409ab0d047c7ef397c0b7117e4588",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* take_input.c :+: :+: :+: ... | 2.421875 | 2 |
2024-11-18T18:39:46.006832+00:00 | 2019-12-03T02:11:01 | b30c7e963610adbd2544744da5dd2fe2978bb29f | {
"blob_id": "b30c7e963610adbd2544744da5dd2fe2978bb29f",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-03T02:11:01",
"content_id": "c4cfa4de09346028f91c44e8d814d46c24f3a33d",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "7411cd277968dab5237f5779e7a4fd9b81b26a22",
"extensio... | stackv2 | #include "vint.h"
#include "vtype.h"
PG_FUNCTION_INFO_V1(vint8inc_any);
PG_FUNCTION_INFO_V1(vint4_sum);
PG_FUNCTION_INFO_V1(vint8inc);
Datum vint8inc_any(PG_FUNCTION_ARGS)
{
int64 result;
int64 arg;
int i;
char **entries;
vtype *batch;
Datum *transVal;
int32 groupOffset = PG_GETARG_INT32(1);
if (grou... | 2.5625 | 3 |
2024-11-18T18:39:46.077631+00:00 | 2023-04-26T00:26:52 | 84fb52fc8212fa0ce6bfdd4dc98e4687ef919b7e | {
"blob_id": "84fb52fc8212fa0ce6bfdd4dc98e4687ef919b7e",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-26T00:26:52",
"content_id": "bed02624a38e495a6f6c88ea7258299078b1f6d8",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "413f74522fcf3276d271ae9241a7eb9168ee49db",
"extens... | stackv2 | // -----------------------------------------------------------------------------
//
// "00_AccelGraph"
//
// -----------------------------------------------------------------------------
// Copyright (c) 2014-2019 All rights reserved
// -----------------------------------------------------------------------------
... | 2.578125 | 3 |
2024-11-18T18:39:46.169858+00:00 | 2021-01-05T19:17:42 | aa1b19d277efc4abef2ffd7d3c8e838447ca831f | {
"blob_id": "aa1b19d277efc4abef2ffd7d3c8e838447ca831f",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-05T19:17:42",
"content_id": "d7022a682cd06091ace7567c6bdae29280daffd2",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c43c6c2951181722e42b8559e8e0624276a59f8e",
"extens... | stackv2 | #include "gn_bb.h"
#include "gn_fn.h"
#include "gn_clo.h"
#include "gn_debug.h"
BBTable GN_(allBBs);
BBInfo *GN_(lastBB);
ULong GN_(bbExecutions);
ULong GN_(bbSeen);
//-------------------------------------------------------------------------------------------------
/** Helper function definitions **/
static inline... | 2.125 | 2 |
2024-11-18T18:39:46.567945+00:00 | 2023-08-19T09:34:23 | fa22101ba7fc231ccf2dff6c503ac17e4e58a460 | {
"blob_id": "fa22101ba7fc231ccf2dff6c503ac17e4e58a460",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-19T09:34:23",
"content_id": "ef1f66f9fd5354498f25740769416ea72a5e1dbc",
"detected_licenses": [
"MIT"
],
"directory_id": "b65dd6deca2b0c8fe4fd6175b73f03e25495c9a8",
"extension": "h"... | stackv2 | extern char *
fc_solve_compact_allocator_alloc(
fcs_compact_allocator_t * allocator,
int how_much
);
extern void fc_solve_compact_allocator_release(fcs_compact_allocator_t * allocator);
extern void fc_solve_compact_allocator_foreach(
fcs_compact_allocator_t * allocator,
int dat... | 2.265625 | 2 |
2024-11-18T18:39:47.284232+00:00 | 2023-05-24T13:16:10 | 2d18c2f6f8d1c51fe3d143d89ba5dfff614640f7 | {
"blob_id": "2d18c2f6f8d1c51fe3d143d89ba5dfff614640f7",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-24T13:16:10",
"content_id": "747c44acfd9ff23be11ff87a7a852f4421c40ae4",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "d732064f481a678f0b6610a9dbf0d7fdebad68a7",
"extens... | stackv2 | #ifndef AXI_QPSK_RX_DEC__H
#define AXI_QPSK_RX_DEC__H
#ifdef __cplusplus
extern "C" {
#endif
/***************************** Include Files *********************************/
#ifndef __linux__
#include "xil_types.h"
#include "xil_assert.h"
#include "xstatus.h"
#include "xil_io.h"
#else
#include <stdint.h>
#include <asser... | 2.125 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.