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:03:46.905461+00:00 | 2019-09-26T05:58:01 | a7bb8ffeecb909099813e553381c2248c1e22137 | {
"blob_id": "a7bb8ffeecb909099813e553381c2248c1e22137",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-26T05:58:01",
"content_id": "cae52c27b95c19ab627156163219e83283680438",
"detected_licenses": [
"MIT"
],
"directory_id": "f90be35b8918acef66d93e44678b4d2f59791eec",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <ctype.h>
void strolower(char * str)
{
// Convert string to upper case
while (*str) {
*str = tolower((unsigned char) *str);
str++;
}
}
int main ()
{
char texto[1024];
gets(texto);
strolower(texto);
puts... | 2.796875 | 3 |
2024-11-18T20:03:46.963320+00:00 | 2021-08-23T13:02:23 | 2e7a9497552f96fd4248322f75160d636dad92dd | {
"blob_id": "2e7a9497552f96fd4248322f75160d636dad92dd",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-23T13:02:23",
"content_id": "b52fbb8bf6f40a2da97950bbce4c897bef767bbf",
"detected_licenses": [
"MIT"
],
"directory_id": "d23d2fdf62f0b72c10b56b1037b0cdf02d58c418",
"extension": "c"... | stackv2 | /*
* yamlBaseTypes
* Simplified YAML interface for C/Fortran
*
* Basic types used by all component APIs.
*
*/
#include "yamlBaseTypes.h"
#ifndef HAVE_STRNCPY
char*
strncpy(
char *dest,
const char *src,
size_t n
)
{
char *outDest = dest;
while ( *src && n-- ) *dest++ ... | 2.375 | 2 |
2024-11-18T20:03:47.081456+00:00 | 2020-07-02T14:04:21 | f4ecd572d608565fe0ab0761fa3c1bc27a851a6f | {
"blob_id": "f4ecd572d608565fe0ab0761fa3c1bc27a851a6f",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-02T14:04:21",
"content_id": "07efba3680d7f27981ee9f642590761282fbc213",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "78c5d387c0988865ea73a202b3594ecdca0859c8",
"extens... | stackv2 | // Copyright 2016 Takashi Toyoshima <toyoshim@gmail.com>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "run68.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#define fprintf(...)
extern voi... | 2.265625 | 2 |
2024-11-18T18:34:53.562840+00:00 | 2022-12-06T10:30:56 | f20813997f686bc80e0bc99dafcd74d87b8c3144 | {
"blob_id": "f20813997f686bc80e0bc99dafcd74d87b8c3144",
"branch_name": "refs/heads/release/v4.2",
"committer_date": "2022-12-06T10:33:43",
"content_id": "bd8bd9be1491e6f779c8c24a16f9ced08e46a635",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "aa48b3e1905fadca72653e60cb1ad758fad7c1d4",
"ex... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "esp_types.h"
#include "esp32s2/clk.h"
#include "esp_log.h"
#include "ccomp_timer.h"
#include "esp_heap_caps.h"
#include "idf_performance.h"
#include "unity.h"
#include "test_utils.h"
#include "mbedtls/sha1.h"
#include "mbedtls/sha256.h"
#include "mbe... | 2.171875 | 2 |
2024-11-18T18:34:53.791521+00:00 | 2018-08-12T02:55:07 | fd0f432fe9bc374a67453f4b3e5edc42a3226699 | {
"blob_id": "fd0f432fe9bc374a67453f4b3e5edc42a3226699",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-12T02:55:07",
"content_id": "0a03ce88bd162c8002f65003044d420953b44c1a",
"detected_licenses": [
"Unlicense"
],
"directory_id": "c44b924d46a78e27f2254b7249df540597ff050d",
"extension... | stackv2 | /*
*
*/
#include <stdint.h>
#include "common.h"
typedef enum {
kLogLevelError, //!< Error level (catastrophic failure)
kLogLevelWarning, //!< Warning level (not catastrophic failure)
kLogLevelInfo, //!< Info level (Letting you know high level what's happening)
kLogLevelDebug //!< Debug level... | 2 | 2 |
2024-11-18T18:34:54.796213+00:00 | 2016-07-20T14:44:52 | 5a683695371475ca9a372e6566f91202b1dd4894 | {
"blob_id": "5a683695371475ca9a372e6566f91202b1dd4894",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-20T14:45:05",
"content_id": "585312cfef442208ddbbce242eb7774ea67f95bd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a5fcb6ec8c7da3056a60bded19514b9dc2d64d0b",
"extensio... | stackv2 | /*
* (c) Copyright 2015 Hewlett Packard Enterprise Development LP
*
* 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 ... | 2.03125 | 2 |
2024-11-18T18:36:13.135324+00:00 | 2020-04-22T13:57:37 | 474d760ad9061686c34ec51b82e7e6d4976a5fc4 | {
"blob_id": "474d760ad9061686c34ec51b82e7e6d4976a5fc4",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-22T13:58:10",
"content_id": "564e4f6a1e7cecbedd00f2600d7793299f399730",
"detected_licenses": [
"TCL"
],
"directory_id": "aced0d05c4606b3af810ebb13965b88b253e9cca",
"extension": "c"... | stackv2 | /*
* imgWindow.c --
*
* A photo image file handler to put the content of a window in a photo.
*
* Author : Jan Nijtmans
*
* $Id: window.c 174 2008-12-01 15:39:10Z nijtmans $
*
*/
/*
* Generic initialization code, parameterized via CPACKAGE and PACKAGE.
*/
#include "init.c"
#include "X11/Xutil.h"
#ifndef _... | 2.046875 | 2 |
2024-11-18T18:46:25.639509+00:00 | 2013-10-26T12:39:27 | 483a368d4085416d1b7317b85bd8e9acd934642c | {
"blob_id": "483a368d4085416d1b7317b85bd8e9acd934642c",
"branch_name": "refs/heads/master",
"committer_date": "2013-10-26T12:40:51",
"content_id": "8d770b38858e91a096e2fe4d1e462b6bfb5ecade",
"detected_licenses": [
"MIT"
],
"directory_id": "83f08d14ae780970bb27c11dc3357d1aa1855be1",
"extension": "h"... | stackv2 |
#ifndef _DATA_H_
#define _DATA_H_
enum RunType{ NORMAL = 0, MAX, MIN, HIDE };
struct KEYDATA
{
bool fCtrl;
bool fShift;
bool fAlt;
TCHAR key[4];
TCHAR exePath[MAX_PATH];
TCHAR szName[MAX_PATH];
TCHAR szParam[MAX_PATH];
RunType showType;
KEYDATA()
{
fCtrl = fShift = fAlt = false;
key[0] = key[1] = key[... | 2.03125 | 2 |
2024-11-18T18:46:25.785408+00:00 | 2018-12-04T04:42:26 | 3719fa3018a3cf2f03266fa0b3b1724a471c49bc | {
"blob_id": "3719fa3018a3cf2f03266fa0b3b1724a471c49bc",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-04T04:42:26",
"content_id": "05d0d8befc1bdb22a512c400825049667c62d2b7",
"detected_licenses": [
"MIT"
],
"directory_id": "2fc2575f92cd88d166ad73d2785488d03eb6a31c",
"extension": "c"... | stackv2 | // #include "gpiolib_addr.h"
// #include "gpiolib_reg.h"
#include <string.h>
#include <stdint.h>
#include <stdio.h> //for the printf() function
#include <fcntl.h>
//#include <linux/watchdog.h> //needed for the watchdog specific constants
#include <unistd.h> //needed for sleep
#include <sys/ioctl.h> //needed for ... | 2.5625 | 3 |
2024-11-18T18:46:25.866473+00:00 | 2016-09-17T07:05:33 | 94c8049df79a6b0784356d81646650c5c25c7543 | {
"blob_id": "94c8049df79a6b0784356d81646650c5c25c7543",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-17T07:05:33",
"content_id": "50eac8a1d29179d3166767e7a6845281b7f8a016",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "6dcf7df72b2fe62e40e2479299cbee2bd1a797e6"... | stackv2 |
// Copyright 2015 Shin'ichi Ichikawa. Released under the MIT license.
#include <efi.h>
#include <efilib.h>
#include "efi_status.h"
#define EFI_OS_INDICATIONS_BOOT_TO_FW_UI 0x0000000000000001
#define true 1
#define false 0
typedef UINT8 bool;
static void init(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE* system_table... | 2.3125 | 2 |
2024-11-18T18:47:49.886182+00:00 | 2018-03-27T21:32:38 | fc3fef13b5de422ba73197760bcf72d937f2587a | {
"blob_id": "fc3fef13b5de422ba73197760bcf72d937f2587a",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-27T21:32:38",
"content_id": "ef0436859520e24fca943557c9cdbbcc26076f46",
"detected_licenses": [
"MIT"
],
"directory_id": "d0257d319d900cfe1f0da567467d2a3b7dde7bd9",
"extension": "c"... | stackv2 |
//#define USE_UV_PLUGIN
#include <stdio.h>
#ifndef USE_UV_PLUGIN
#include <dlfcn.h>
#endif
#include <uv.h>
#include "library.h"
int main(int argc,char**argv)
{
void (*p_init_sample)(const char*);
void (*p_print_sample)();
void (*p_remove_sample)();
#ifndef USE_UV_PLUGIN
void* handle = dlopen("./library.s... | 2.515625 | 3 |
2024-11-18T18:47:50.010183+00:00 | 2020-12-13T14:07:19 | 4da409c9bd657fcf96392510c92f44da1b6f3301 | {
"blob_id": "4da409c9bd657fcf96392510c92f44da1b6f3301",
"branch_name": "refs/heads/main",
"committer_date": "2020-12-13T14:07:19",
"content_id": "e762db2588897b562d53effcac1858b2f9bfdeb7",
"detected_licenses": [
"MIT"
],
"directory_id": "10dcc16d52de164fcd45b328390b281f0f6f2a46",
"extension": "c",
... | stackv2 | #include<stdio.h>
#include<stdlib.h>
int main()
{
FILE *fp1, *fp2, *fp;
char arr1[7][9], arr2[7][9];//declaring 2D arrays to store multiple strings stored in the file
fp1 = fopen("file1.txt", "r");//opening file1.txt in read mode
fp2 = fopen("file2.txt", "r");//opening file2.txt in read mode
//scanning the co... | 3.265625 | 3 |
2024-11-18T18:47:50.226787+00:00 | 2023-07-14T06:36:11 | 967e53a054c7c2d8c9e0af7dd0d1473c80bcd30e | {
"blob_id": "967e53a054c7c2d8c9e0af7dd0d1473c80bcd30e",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-14T06:36:11",
"content_id": "0852cb97cd51b38d14495ae9ea2f9806c1f052ee",
"detected_licenses": [
"MIT"
],
"directory_id": "4df0f970005f816502f910866df88ec7fb20641b",
"extension": "c"... | stackv2 | #include "../qiniu/rs.h"
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
Qiniu_Global_Init(-1);
char *accessKey = getenv("QINIU_ACCESS_KEY");
char *secretKey = getenv("QINIU_SECRET_KEY");
char *bucket = getenv("QINIU_TEST_BUCKET");
Qiniu_Mac mac;
mac.accessKey = acces... | 2.09375 | 2 |
2024-11-18T18:47:50.313536+00:00 | 2019-10-24T22:56:13 | d670357c5ca63a880a0934f21ca15b857b517639 | {
"blob_id": "d670357c5ca63a880a0934f21ca15b857b517639",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-24T22:56:13",
"content_id": "721adcda54dc1574d9fcc84f9647f3288994b98a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "755252d3a329aa47fc963a89566952b4af36a3ac",
"extensio... | stackv2 | /**
* @file lv_test_tabview.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_test_tabview.h"
#if LV_USE_TABVIEW && LV_USE_TESTS
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/*******************... | 2.734375 | 3 |
2024-11-18T19:09:01.901980+00:00 | 2017-05-30T13:34:20 | dfc6db40d2e4394cb3ce149da9656e59fc21c9b7 | {
"blob_id": "dfc6db40d2e4394cb3ce149da9656e59fc21c9b7",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-30T13:34:20",
"content_id": "9650d52ea0e258d0f0d8546d67dfec6a43ceef56",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "792d9f9a9b975e7686b68423227ee914e696d8e9",
"extension":... | stackv2 | #include <stdint.h>
#ifndef ISHAKE_MODULO_ARITHMETICS_H
#define ISHAKE_MODULO_ARITHMETICS_H
/*
* Type definition for a function that performs our group operation.
*/
typedef uint_fast64_t (*group_op)(uint_fast64_t, uint_fast64_t);
/*
* Obtain the addition of a and b modulo 2^64. Overflow ignored.
*/
uint_fast64_... | 2.046875 | 2 |
2024-11-18T19:10:22.375164+00:00 | 2019-02-04T21:16:07 | 95670ddbb489c56583454176522ed89fed1ea409 | {
"blob_id": "95670ddbb489c56583454176522ed89fed1ea409",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-04T21:16:07",
"content_id": "8e50acf22b96c525312ff25835d790d0db77ff71",
"detected_licenses": [
"MIT"
],
"directory_id": "5560363cb3984adeb126d05634453bb7fd496c55",
"extension": "c"... | stackv2 | //
// NVDSP_C.c
// Everapp
//
// Created by Artem on 9/9/18.
// Copyright © 2018 Everappz. All rights reserved.
//
#include "NVDSPC.h"
#include <libkern/OSAtomic.h>
#include <Accelerate/Accelerate.h>
#include <stdio.h>
#include <string.h>
void c_interleave(float *data,float *left,float *right,vDSP_Length length... | 2.390625 | 2 |
2024-11-18T19:10:22.944842+00:00 | 2010-08-29T14:31:36 | 724024ea90af260c7ca12fc3e3dcf7f496d112f0 | {
"blob_id": "724024ea90af260c7ca12fc3e3dcf7f496d112f0",
"branch_name": "refs/heads/master",
"committer_date": "2010-08-29T14:31:36",
"content_id": "2df0d7a8cbb3b8ea652cd373d683d9f28cc30d00",
"detected_licenses": [
"MIT"
],
"directory_id": "5f45c75df7e86c0cd5facf96bbb85c3e30654ca7",
"extension": "c"... | stackv2 |
#include <Python.h>
#include <libxklavier/xklavier.h>
static Display* display;
static XklConfigRec* config;
static XklEngine* engine;
static PyObject*
finalize(PyObject* self, PyObject* args)
{
g_object_unref(G_OBJECT(config));
g_object_unref(G_OBJECT(engine));
if (display != NULL) {
XCloseDisp... | 2.28125 | 2 |
2024-11-18T19:10:23.019155+00:00 | 2019-05-28T10:33:33 | 28ae1e2e87d4faaad8e184c76ec048c646fc1052 | {
"blob_id": "28ae1e2e87d4faaad8e184c76ec048c646fc1052",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-28T10:33:33",
"content_id": "9b0ed1da22df1a885ad2bce3a6550c53842c1e3c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3f46e3237caf39d5a12e3ae2794928ea8f50e954",
"extens... | stackv2 | #ifndef EXAMPLES_DTRSM_UTILS_H
#define EXAMPLES_DTRSM_UTILS_H
static inline int min(int a, int b)
{
return a < b ? a : b;
}
static inline int max(int a, int b)
{
return a > b ? a : b;
}
static inline int iceil(int a, int b)
{
return (a + b - 1) / b;
}
static inline int ifloor(int a, int b)
{
ret... | 2.109375 | 2 |
2024-11-18T19:10:23.128063+00:00 | 2023-05-11T16:19:59 | 45c16bcb730c1e24be95c930787fc5fb9116841b | {
"blob_id": "45c16bcb730c1e24be95c930787fc5fb9116841b",
"branch_name": "refs/heads/master",
"committer_date": "2023-05-11T16:19:59",
"content_id": "f9b263100581e863b53ec38b7ca94bce14249241",
"detected_licenses": [
"MIT"
],
"directory_id": "01ecab2f6eeeff384acae2c4861aa9ad1b3f6861",
"extension": "c"... | stackv2 | /* Jason Luu
April 15, 2011
Loads statistical information (min/max delays, power) onto the pb_graph. */
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "util.h"
#include "arch_types.h"
#include "vpr_types.h"
#include "globals.h"
#include "vpr_utils.h"
#include "pb_type_graph... | 2.296875 | 2 |
2024-11-18T19:10:23.211943+00:00 | 2018-10-08T22:21:11 | 4be4e35459bc96a3601f57ad9728c8515cdd1979 | {
"blob_id": "4be4e35459bc96a3601f57ad9728c8515cdd1979",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-08T22:21:11",
"content_id": "cb2378cf122d53ad98a813fcdec36b83f8f1b58f",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "400f1e936da6a773c6b57408bd39ee3545e2b98b",
"extens... | stackv2 | #if !defined(SOCKETUTILS_HH)
#define SOCKETUTILS_HH
#include <arpa/inet.h>
#include <linux/if_packet.h>
#include <linux/ip.h>
#include <linux/udp.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <netinet/ether.h>
#define DEFAULT_... | 2.421875 | 2 |
2024-11-18T19:11:30.389192+00:00 | 2017-05-12T01:37:21 | 7e7e9b076e11ca379ed1193424967db7d4e8468b | {
"blob_id": "7e7e9b076e11ca379ed1193424967db7d4e8468b",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-12T01:37:21",
"content_id": "ef98404038ac107d32a6716fac21565b612ba454",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bc65ac9caa3db36a119c37dce1edee317fd59cbf",
"extensio... | stackv2 | extern int __VERIFIER_nondet_int();
void main()
{
int x = 0;
int y = 0;
while(__VERIFIER_nondet_int()) {
if(__VERIFIER_nondet_int()) {
x++;
y += 100;
} else if (__VERIFIER_nondet_int()) {
if (x >= 4) {
x++;
y++;
}
if (x < 0) {
y--;
}
}
}
if (!(x < 4 || y > 2)) {
ERROR: goto... | 2.296875 | 2 |
2024-11-18T19:11:30.488666+00:00 | 2016-04-02T21:10:08 | b48a0f91407ef53796c92196a6222b724f18f261 | {
"blob_id": "b48a0f91407ef53796c92196a6222b724f18f261",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-02T21:10:08",
"content_id": "d7fd2aee813aa4ff951bb75fdbaa12b4b5e2de5b",
"detected_licenses": [
"BSD-3-Clause-Open-MPI"
],
"directory_id": "c284914beda9c7ec6abad77269b34cda576b93c5",
... | stackv2 | /*
* devicesInitialization.c
*
* Created on: May 9, 2014
* Author: uriel
*/
#include "devicesInitialization.h"
int createContext(Device* device) {
int status;
device->cprops[0] = CL_CONTEXT_PLATFORM;
device->cprops[1] = (cl_context_properties) device->platform;
device->cprops[2] = 0;
device->context ... | 2.34375 | 2 |
2024-11-18T19:21:44.040723+00:00 | 2023-01-17T11:26:47 | d748dd085571418a05cd651213be793462a8f976 | {
"blob_id": "d748dd085571418a05cd651213be793462a8f976",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-17T11:26:47",
"content_id": "8bb6fedcd730780a538640b4c8a605d7e890d2cb",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "3b1da326ba9877da9bfa00cbfabb261a93dd8f5e",
"extens... | stackv2 | /*
Glidix Shell Utilities
Copyright (c) 2014-2017, Madd Games.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
l... | 2.25 | 2 |
2024-11-18T19:21:44.118806+00:00 | 2021-09-05T18:32:33 | 7670fb162dc867ed0f2e32216a68c75a12f7de81 | {
"blob_id": "7670fb162dc867ed0f2e32216a68c75a12f7de81",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-05T18:32:33",
"content_id": "a21e11dc9255fa5a171cd5e97e04100de0061245",
"detected_licenses": [
"MIT"
],
"directory_id": "0d17adf9bee9305f4c7941bb01b7c9b88424e3d8",
"extension": "c"... | stackv2 | #include "pereader.h"
#include <stdlib.h>
#include <string.h>
static void mem_error(void)
{
perror("pe_parser: memory allocation error.");
exit(EXIT_FAILURE);
}
pe_t *pe_parse(FILE *executable)
{
long int last_position;
pe_coff_header_t *coff_header;
if (!executable)
{
return NULL;
}
coff_header... | 2.90625 | 3 |
2024-11-18T19:23:29.406666+00:00 | 2022-03-10T21:08:40 | 77fef6138bd237f7da86cb454833683b1883fe1a | {
"blob_id": "77fef6138bd237f7da86cb454833683b1883fe1a",
"branch_name": "refs/heads/main",
"committer_date": "2022-03-10T21:08:40",
"content_id": "d84318b43fd969a5d3d3612cd5f51c1f19186a8c",
"detected_licenses": [
"MIT"
],
"directory_id": "d3e4ff2671841b86dd7744efc770e723a233b1da",
"extension": "h",
... | stackv2 | #ifndef __MEMORY_H__
#define __MEMORY_H__
#include "common.h"
#define HW_MEM_SIZE (128 * 1024 * 1024)
extern uint8_t *hw_mem;
/* convert the hardware address in the test program to virtual address in NEMU */
#define hwa_to_va(p) ((void *)(hw_mem + (unsigned)p))
/* convert the virtual address in NEMU to hardware add... | 2.15625 | 2 |
2024-11-18T19:23:29.623991+00:00 | 2017-01-31T23:22:16 | 1220e51fbd478973767d07eb76d3ad233021dbce | {
"blob_id": "1220e51fbd478973767d07eb76d3ad233021dbce",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-31T23:31:35",
"content_id": "5b74aa0dd89018bd8c68fe0bc4454f9fb0320e6d",
"detected_licenses": [
"MIT"
],
"directory_id": "0425b6a25752dffc8b5bcd0e830c5b4eedce6ff5",
"extension": "h"... | stackv2 | #ifndef LISTLIKE_H
#define LISTLIKE_H
#include "stdlib.h"
typedef struct listlike_t {
struct element_t *head;
struct element_t *tail;
size_t length;
} listlike;
typedef struct element_t {
struct element_t *previous;
struct element_t *next;
void *data;
} element;
listlike *listlike_create () {
listlike... | 2.984375 | 3 |
2024-11-18T19:23:30.327253+00:00 | 2017-10-15T23:16:02 | 91531677caea352196f02f2d4963c2b190bbe4f9 | {
"blob_id": "91531677caea352196f02f2d4963c2b190bbe4f9",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-15T23:16:02",
"content_id": "7d2cdd658f01179a52bb7817c0689229e6cdaba7",
"detected_licenses": [
"MIT"
],
"directory_id": "2bad4734c8c77ea2c64191c1602c5cb48d8d99dd",
"extension": "c"... | stackv2 | #include "star.h"
#include <math.h>
#include <stdlib.h>
// TODO: Test whether making this function return a struct (rather than a
// struct pointer) makes a significant performance difference.
struct Vec2d *vec2d_add(float angle1, float length1, float angle2, float length2)
{
float x = sinf(angle1) * length1 + s... | 3.25 | 3 |
2024-11-18T19:23:30.487063+00:00 | 2018-08-20T19:33:19 | 4c96d40dd8f7e751aed6520ea1b9bb46fd7dc762 | {
"blob_id": "4c96d40dd8f7e751aed6520ea1b9bb46fd7dc762",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-20T19:33:19",
"content_id": "2d1068a628609dc4993c394374e03b96d221ed17",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "b35e1a093b5966ed8971c14c4e32c09d7d6ff11e",
"extensio... | stackv2 | /* Copyright (c) 2017 Arrow Electronics, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License 2.0
* which accompanies this distribution, and is available at
* http://apache.org/licenses/LICENSE-2.0
* Contributors: Arrow Electronics, Inc.... | 2.171875 | 2 |
2024-11-18T19:31:55.814343+00:00 | 2021-01-06T13:50:10 | 70c2fd59bccc47b6cbfc06b8c5db6af849c8d954 | {
"blob_id": "70c2fd59bccc47b6cbfc06b8c5db6af849c8d954",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-06T13:50:10",
"content_id": "e7663da881de42e408a789c75a610483fb4e475b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "e0c275c629b13cdcbf8fb6218375362395ca376a",
"extens... | 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(); // FLAME Clock to time operations
/**
* Calculates the maximum absolute difference between two
* matrices. Used to assert the correctness of the algoirthm
* wit... | 2.34375 | 2 |
2024-11-18T19:42:00.199842+00:00 | 2018-02-17T06:33:09 | c3e84d894e305a8afee1db30f17f466fba648f74 | {
"blob_id": "c3e84d894e305a8afee1db30f17f466fba648f74",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-17T06:33:09",
"content_id": "b3b640eb94c3e5103ac34ff68f2d704a373cbe7b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "a277bd2f527a154a0ec78093e8608c386d772e84",
"extens... | stackv2 | /*
* This file is subject to the license agreement located in the file LICENSE
* and cannot be distributed without it. This notice cannot be
* removed or modified.
*/
#include "ocr.h"
#ifndef N
#define N 16
#endif
/**
* DESC: Creates a top-level finish-edt which forks 'N' edts, writing in a
* shared data block.... | 2.484375 | 2 |
2024-11-18T19:42:01.201369+00:00 | 2021-03-05T12:53:32 | 66ffd28f314ac836353594f4f241208ebded19f3 | {
"blob_id": "66ffd28f314ac836353594f4f241208ebded19f3",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-05T12:53:32",
"content_id": "db3d7996804b429f4beb10204ce121642a0c9dab",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "f2fa5418a5d561cd90780ca9e9ffc60d586a8961",
"extens... | stackv2 | // ESP32-C3 BTC ticker by BugerDread
#include <stdio.h>
#include "esp_wifi.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "protocol_examples_common.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#include "freertos/event_groups.h"
#include ... | 2 | 2 |
2024-11-18T19:42:01.364224+00:00 | 2018-12-08T14:54:41 | 123038cbd53f65d62af9bc86bf1073a65b5ff20a | {
"blob_id": "123038cbd53f65d62af9bc86bf1073a65b5ff20a",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-08T14:54:41",
"content_id": "7e0b14e66b8778b5239249d2cb938cd547257f2c",
"detected_licenses": [
"MIT"
],
"directory_id": "09f29131facda4a4edc4ce9ded444b075b57d133",
"extension": "c"... | stackv2 | #include <xc.h>
#include "../headers/uart.h"
#include "../headers/lcd.h"
// Helper macros
#define UART_RECEIVE(A) (A = RC1REG)
#define UART_SEND(A) (TX1REG = A)
// Preprocessor constants
#define UART_BUFFER_SIZE 8
typedef struct {
char buffer[UART_BUFFER_SIZE];
int size;
int head;
int tail;
} UART_b... | 2.828125 | 3 |
2024-11-18T19:42:03.197957+00:00 | 2020-04-28T08:23:19 | 93f6e4ae51d6d9f17a81969848ef5df53a14a129 | {
"blob_id": "93f6e4ae51d6d9f17a81969848ef5df53a14a129",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-28T08:23:19",
"content_id": "8d5ae5d73780404fc25efa67aa8162399ef73f8b",
"detected_licenses": [
"MIT"
],
"directory_id": "02be1e9b0ffc35eb42a81d514ab31a862e0e2155",
"extension": "c"... | stackv2 | #include "kernel_detail.h"
#include "interrupts.h"
#include <collections.h>
#include <kernel/atomic.h>
#include <stdio.h>
atomic_int_t _queue_lock;
static queue_t _keys;
static void irq_1_handler(int irq)
{
(void)irq;
uint8_t status = k_inb(0x64);
uint8_t scan = k_inb(0x60);
if(status & 1)
{... | 2.421875 | 2 |
2024-11-18T19:42:03.328296+00:00 | 2020-10-23T14:53:25 | cd94b7b9378673a619d4a932c294eee3da9b4c3c | {
"blob_id": "cd94b7b9378673a619d4a932c294eee3da9b4c3c",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-23T14:53:25",
"content_id": "b2489f0f4733f4267249f31889419c2f3e8add60",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "92e9aeae20113532ceb43cd167c6805e28b40588",
"extensio... | stackv2 | /*
** main.c for my_ls in /Users/habi_a/Documents/ETNA/C
**
** Made by HABI Açal
** Login <habi_a@etna-alternance.net>
**
** Started on Fri Apr 6 10:02:16 2018 HABI Açal
** Last update Thu Jul 12 16:47:36 2018 HABI Açal
*/
#include <flags.h>
#include <months.h>
#include <my.h>
#include <my_ls.h>
#include <params.h>... | 2.78125 | 3 |
2024-11-18T19:42:03.493791+00:00 | 2022-05-05T22:33:54 | 3a5693359cd1fdeb0c4f5ef046a1c51c62e09f8d | {
"blob_id": "3a5693359cd1fdeb0c4f5ef046a1c51c62e09f8d",
"branch_name": "refs/heads/main",
"committer_date": "2022-05-05T22:33:54",
"content_id": "830b7221c08d21c92d944d855317c9de98619502",
"detected_licenses": [
"MIT"
],
"directory_id": "b6fd3ebe265cc089f76391068f07d2e7ea361e76",
"extension": "c",
... | stackv2 | /*
* $Id: brqsort.c 1.1 1997/12/10 16:41:05 jon Exp $
* $Locker: $
*
* Local quicksort for brender
*
* Based on a public domain verion by Raymond Gardner,
* Englewood CO February 1991
*/
#include "brender.h"
BR_RCS_ID("$Id: brqsort.c 1.1 1997/12/10 16:41:05 jon Exp $")
#if defined(_MSC_VER)
#include <stdlib... | 2.4375 | 2 |
2024-11-18T19:42:03.615900+00:00 | 2016-09-15T15:38:28 | b16307b02248fa2be94837f1a33109d12453f0f1 | {
"blob_id": "b16307b02248fa2be94837f1a33109d12453f0f1",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-15T15:38:28",
"content_id": "30242b110c990193962f29cc043c70de3f1ad9a0",
"detected_licenses": [
"MIT"
],
"directory_id": "6a2673f402e08fb839ed76a1d7c7e5d8bca680df",
"extension": "h"... | stackv2 | #ifndef __HASHMAP_H
#define __HASHMAP_H
#include <math.h>
#include <stdint.h>
#define __ROUND(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
#define INITIAL_SIZE 512
#define BUCKETTHOLD 20
#define THRESHOLD(x) (__ROUND(0.8*x))
#define E_NOKEY = 1 /* The specified key cannot be found. */
#define E_FULL = 2 /* The hashm... | 2.421875 | 2 |
2024-11-18T19:42:03.718886+00:00 | 2020-06-16T20:27:54 | 37355adf7063e9b4113d550ea0e1df47e1bc3edd | {
"blob_id": "37355adf7063e9b4113d550ea0e1df47e1bc3edd",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-16T20:27:54",
"content_id": "238146a73f5f1d8dbd5a5c1c29df5184ce194d64",
"detected_licenses": [
"MIT"
],
"directory_id": "0263eff6bc3140def741aa2c615d486f0b57c9bf",
"extension": "c"... | stackv2 | #include "ush.h"
static char *dollar_change(int len, char **input) {
char *variable = NULL;
if ((*input)[1] == '{' && (*input)[len - 1] == '}') {
variable = mx_strnew(len - 1);
for (int y = 2, x = 0; y < len - 1; y++, x++)
variable[x] = (*input)[y];
variable[len - 3] = '='... | 2.703125 | 3 |
2024-11-18T19:42:04.337907+00:00 | 2013-04-17T18:42:40 | 683c54cba91df736b18b1f1c72498066190d1aeb | {
"blob_id": "683c54cba91df736b18b1f1c72498066190d1aeb",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-17T18:42:40",
"content_id": "92b69de824df940056028f27f7213d6fb193f63c",
"detected_licenses": [
"MIT"
],
"directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef",
"extension": "c"... | stackv2 | /***************************************************************************
video.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "emu.h"
#include "includes/firetrap.h"
/*******************************************... | 2.265625 | 2 |
2024-11-18T19:42:04.951552+00:00 | 2020-11-25T04:39:35 | a1295e2412ad515e49e9893c8865ef40f9551c82 | {
"blob_id": "a1295e2412ad515e49e9893c8865ef40f9551c82",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-25T04:39:35",
"content_id": "06e5e99176dd20d8585484778001cf0ee2ad4063",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7b160ab46a5e1e4cbd0b4a87f566e70453151750",
"extensio... | stackv2 | #include<stdio.h>
#include<stdlib.h>
int main(int argc,char *argv[]){
int j, i = 20;
int valorsoma = 0,valor[i];
double med;
for (j =0; j < i;j++ ){
printf("Digite a um valor");
scanf("%d ",&valor);
valorsoma += valor;
}
med = valorsoma/i;
printf("O resultando da media artmetica ... | 2.703125 | 3 |
2024-11-18T19:42:05.030156+00:00 | 2018-05-02T16:39:27 | aee88d1a639268672758ebc30f1a4e6db61ab391 | {
"blob_id": "aee88d1a639268672758ebc30f1a4e6db61ab391",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-02T16:39:27",
"content_id": "595dba0cf151ee8b04605e3a6f4c8720e275efbd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "809bb6c72a0c08cbc257267dc452e7d77e17f1a6",
"extensio... | stackv2 | /*
Original Code : https://github.com/tuanpmt/esp-request-app by tuanpmt
tuanpmt git hub: https://github.com/tuanpmt
integration of ADC and communication with the Heruku Kaapstone web application : Andrea Fernandes
Andrea Fernandes: https://github.com/andreaneha
*/
#include <string.h>
#include <s... | 2.28125 | 2 |
2024-11-18T19:42:05.281887+00:00 | 2023-07-24T15:23:29 | c688f422a23548a451f7197e219ff5141a940c46 | {
"blob_id": "c688f422a23548a451f7197e219ff5141a940c46",
"branch_name": "refs/heads/devel",
"committer_date": "2023-07-24T15:23:29",
"content_id": "483b4072c643c8446474b6f9957ac13c1d5bb632",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "4a1b388fc7254e7f8fa2b72df9d61999bf7df341",
"extension... | stackv2 | // generated from rosidl_generator_c/resource/idl__functions.c.em
// with input from std_msgs:msg/Float64.idl
// generated code does not contain a copyright notice
#include "std_msgs/msg/detail/float64__functions.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "rcutils/all... | 2.375 | 2 |
2024-11-18T19:42:05.527637+00:00 | 2019-01-26T20:08:57 | 26f5e7168c21e48d0ed324178b0b42199feaf18c | {
"blob_id": "26f5e7168c21e48d0ed324178b0b42199feaf18c",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-26T20:08:57",
"content_id": "be20d1d2c18e77dd0b47551bdeb4c89464e471b1",
"detected_licenses": [
"MIT"
],
"directory_id": "16ce8f9eab7d8d406c8f076fad80da61eb5fb841",
"extension": "c"... | stackv2 | #include "gfp.h"
#include <stdio.h>
#if GFP_NUMBYTES <= 4
int xgcd( int a, int b, int * x, int * y, int * gcd )
{
int q, r;
int u;
int v;
int m, n;
*x = 0;
*y = 1;
u = 1;
v = 0;
while( a != 0 )
{
q = b / a;
r = b % a;
m = *x - u*q;
n = *y - v*q... | 2.796875 | 3 |
2024-11-18T19:42:05.594335+00:00 | 2022-05-21T12:41:11 | b60040929dfd102ce52f59fe7db7d578fe41984e | {
"blob_id": "b60040929dfd102ce52f59fe7db7d578fe41984e",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-21T12:41:11",
"content_id": "107444dd482863a3650b93a8c99b4b5fb9f3beb9",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "0f95a8ade0816586b460c994fc52c057c7f89784",
"extens... | stackv2 | #include "tga.h"
#include <assert.h>
#include <stdio.h>
#include <inttypes.h>
#include <stdint.h>
struct TGAHeader {
int8_t idLen; // 0
int8_t colorMapType; // 1
int8_t imageType; // 2
int16_t firstEntryIndex; // 3
... | 2.765625 | 3 |
2024-11-18T19:42:06.107164+00:00 | 2017-10-19T20:25:09 | 0507e0578f4a66d1541385dbf7cc9bf9da01308a | {
"blob_id": "0507e0578f4a66d1541385dbf7cc9bf9da01308a",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-19T20:25:09",
"content_id": "929b1fede80a6e88d624fb3c24879fc96b027420",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "2d17f9a18606c1de121fb2ac577d65b3e2eb0a6f",
"extens... | stackv2 | /*
* Copyright 2014, NICTA
*
* 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(NICTA_BSD)
*/
/****************************************************************************
*
* ... | 2.234375 | 2 |
2024-11-18T19:42:06.876219+00:00 | 2016-07-05T03:20:43 | a57d2a7029bcc5433e2534596c75bcb4d8819482 | {
"blob_id": "a57d2a7029bcc5433e2534596c75bcb4d8819482",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-13T05:42:48",
"content_id": "4f95891d4f9c6d17fc5011a6e5ef5a7202e28824",
"detected_licenses": [
"MIT"
],
"directory_id": "20d84b29b01093ba2de123d6d126383ee5aa7b97",
"extension": "c"... | stackv2 | #include "stm32f0xx_hal.h"
extern DMA_HandleTypeDef hdma_usart1_tx;
void HAL_MspInit(void) {
__HAL_RCC_SYSCFG_CLK_ENABLE();
HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0);
}
void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c) {
GPIO_InitTypeDef GPIO_InitStruct;
if (hi2c->Instance == I2C1) {
// PB8 -> I2C1_SCL
/... | 2.25 | 2 |
2024-11-18T19:42:07.784681+00:00 | 2019-03-01T05:16:46 | 6648b5d1c62ba77ea2f00f91786d332510cd58e3 | {
"blob_id": "6648b5d1c62ba77ea2f00f91786d332510cd58e3",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-01T05:16:46",
"content_id": "21ca84c61a6ed0f1ead442219785ee43cd87b910",
"detected_licenses": [
"MIT"
],
"directory_id": "5a17a3d150c4773318d397a46878d2fd74c0671f",
"extension": "c"... | stackv2 | // liumang-shenquan.c 流氓神拳
// By Alf, Last Update 2001.11
// 黑虎掏心 雙風貫耳 葉底偷桃 獨劈華山 二郎擔山 拔草尋蛇 猛虎跳澗
inherit SKILL;
mapping *action = ({
([ "action" : "$N沉腰坐馬,左拳護身,右拳直擊,一招「黑虎掏心」,挾着風聲擊向$n的$l",
"force" : 120,
"dodge" : 20,
"parry" : 20,
"lvl" : 0,
"skill_name" : "黑虎掏心",
... | 2.15625 | 2 |
2024-11-18T19:42:07.854431+00:00 | 2013-05-26T08:18:31 | 0227f42856806cc95dbce01891547bf1adce7664 | {
"blob_id": "0227f42856806cc95dbce01891547bf1adce7664",
"branch_name": "refs/heads/master",
"committer_date": "2013-05-26T08:18:31",
"content_id": "9ae8930e6d06c515031cd4302a01c1ddb84d8891",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "e5828fafd308d752b4ee43f7427caf89... | stackv2 | #include <my_global.h>
#include <m_ctype.h>
#include <mysql.h>
#include <sql_common.h>
#include <tcbdb.h>
#include "ms_qs.h"
#include "ms_json.h"
static TCBDB *tdb;
/* 读取队列写入点的值 */
static int httpsqs_read_putpos(const char* httpsqs_input_name)
{
int queue_value = 0;
char *queue_value_tmp;
char queue_name[300] = {... | 2.609375 | 3 |
2024-11-18T19:42:08.586069+00:00 | 2018-03-24T04:57:09 | e14e578644f5aedf6ede9a442ada43896f74c066 | {
"blob_id": "e14e578644f5aedf6ede9a442ada43896f74c066",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-24T04:58:29",
"content_id": "8ea4009b730986e795ccf7be4756665f3700cb04",
"detected_licenses": [
"MIT"
],
"directory_id": "578cbb261f503ac424b7002cfc20f9b4d5d4b356",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "game.h"
#include "scene.h"
#include "dimmer.h"
#include "scenes.h"
Game* currentGamePtr = NULL;
SDL_Window* mainWindowPtr = NULL;
SDL_Renderer* mainRendererPtr = NULL;
Scene currentScene;
Scene* currentScenePtr = NULL;
int init_game(Game* gamePtr, int cmdLineCount, c... | 2.25 | 2 |
2024-11-18T19:42:11.147119+00:00 | 2015-01-23T23:32:26 | 7b29e7f2ade2c1d323059e8ece36633967a81d9e | {
"blob_id": "7b29e7f2ade2c1d323059e8ece36633967a81d9e",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-23T23:32:26",
"content_id": "838a2893dfa8de5930433b49d8217cca5c99661f",
"detected_licenses": [
"MIT"
],
"directory_id": "3747d4da0f5f8d4117c618e0822ef725d64c7914",
"extension": "h"... | stackv2 | #include <stdio.h>
#include <wchar.h>
#define BINFIBO 1458552799L
#define errmsg_buffover() error_printf("Buffer overrun detected!");
#define errmsg_refcountnull() error_printf("Reference counter is zero! This is often because of a gcore_ptr being cast to either a GODS() or a GOSH() type and then released with... | 2.21875 | 2 |
2024-11-18T19:42:12.660525+00:00 | 2016-04-03T17:06:14 | 4390dea4f35c3b68d12e4e50aad13bf92b23ba66 | {
"blob_id": "4390dea4f35c3b68d12e4e50aad13bf92b23ba66",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-03T17:06:14",
"content_id": "3517bc6ce2a7963cff718cf01c10e39a357bab73",
"detected_licenses": [
"MIT"
],
"directory_id": "466dec7b59281445d28d40e0c14ce9132b374ba5",
"extension": "h"... | stackv2 | typedef void QueueCallback(void *data);
struct WorkEntry {
QueueCallback *callback;
void *data;
};
struct Queue {
u32 volatile next_entry_to_write;
u32 volatile next_entry_to_read;
u32 volatile completion_count;
u32 volatile completion_goal;
u16 capacity;
u16 worker_count;
WorkEntry *entries;
S... | 2.78125 | 3 |
2024-11-18T19:42:12.993596+00:00 | 2020-12-03T20:57:39 | e29720f652959b6731c436e970f1b84440e07180 | {
"blob_id": "e29720f652959b6731c436e970f1b84440e07180",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-03T20:57:39",
"content_id": "08cd202a93ed505e4400662e8724d19a147bae97",
"detected_licenses": [
"MIT"
],
"directory_id": "389572c4889f88f94d45ddb6358e0a6448622721",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <locale.h>
void main(){
//Para usar acentos
setlocale(LC_ALL, "");
//Crie um algoritmo que leia 2 notas e mostra o valor absoluto entre elas
float nota1, nota2, resultado;
printf("\nDigite a primeira nota: ");
scanf("%f", ¬a1);
printf("\... | 3.21875 | 3 |
2024-11-18T19:42:13.367931+00:00 | 2018-07-09T08:16:50 | 3e915ededc418efb390f07dcb12279344b04b878 | {
"blob_id": "3e915ededc418efb390f07dcb12279344b04b878",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-09T08:16:50",
"content_id": "dfced5532aeb2cb5d52be119c7f33c0bc8a73b4d",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "fcd16cd86dbd74b4da24a4585ad62912dfb87386",
"extensio... | stackv2 | /* ========================================================================
* Copyright 2012 Chris Moos
*
* 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/li... | 2.703125 | 3 |
2024-11-18T19:42:13.747232+00:00 | 2014-10-02T15:16:21 | 5ff3852169c2152810c7fad0ab0fbe7f2b9da755 | {
"blob_id": "5ff3852169c2152810c7fad0ab0fbe7f2b9da755",
"branch_name": "refs/heads/master",
"committer_date": "2014-10-02T15:16:21",
"content_id": "c219561307e50fdc86517d3781434e80e7344945",
"detected_licenses": [
"MIT"
],
"directory_id": "affbb8327b72a5cf0cd0c0ba82652a4b086e1143",
"extension": "h"... | stackv2 | /**
* \file vector.h
*/
#ifndef HYD_VECTOR_H
#define HYD_VECTOR_H
/**
* \struct hyd_v2
*
* A 2-dimensional vector
*/
struct hyd_v2 {
float x;
float y;
};
/**
* \brief Returns the Dot product of two 2D vectors
*
* \param[in] lhs Left-hand side vector
* \param[in] rhs Right-hand side vector
*
* \return T... | 2.5 | 2 |
2024-11-18T19:42:14.953352+00:00 | 2018-12-08T03:51:02 | 45f010813d85f00b479023a93fcc916471162c34 | {
"blob_id": "45f010813d85f00b479023a93fcc916471162c34",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-08T03:51:02",
"content_id": "8ae9761df53e3443f6fc2307b273918704c3549d",
"detected_licenses": [
"MIT"
],
"directory_id": "9cb11597169f4168434637dcf490221fb310e754",
"extension": "c"... | stackv2 | /**
* The MIT License (MIT)
*
* Copyright (c) 2018 Alexey Ryabov
*
* 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 us... | 2.046875 | 2 |
2024-11-18T19:42:15.018923+00:00 | 2018-01-22T01:28:11 | 4a7c03669ba9acf2d66789b29ad95c759cec5828 | {
"blob_id": "4a7c03669ba9acf2d66789b29ad95c759cec5828",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-22T01:28:11",
"content_id": "a0fb1c3304cf43a7f724226cd6eb6c1b1d1e1eb9",
"detected_licenses": [
"BSD-2-Clause-Views"
],
"directory_id": "8127bffa357a383994055d5dc1aeb7cfdc0b518f",
"... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include <string.h>
int main(int argc, char *argv[], char *env[])
{
puts("\nAutogrow test start...\n");
uint8_t array[0x100000];
memset((void *)array, 0, sizeof(array));
puts("\nAutogrow test end...\n");
return 0;
}
| 2.015625 | 2 |
2024-11-18T19:42:15.238208+00:00 | 2015-08-12T20:20:37 | a4cf6106894f0bb306a5c24e7d40e7887d0c4d9b | {
"blob_id": "a4cf6106894f0bb306a5c24e7d40e7887d0c4d9b",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-12T20:20:37",
"content_id": "757b2f36c392bdbf78e0216d97b3a46aad14722f",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "86f026381e488b879214d22f28b68fb6eb23cd6d",
"extens... | stackv2 | /*
* TPDCORE7.C - core PDB test #7
*
* Source Version: 9.0
* Software Release #: LLNL-CODE-422942
*
*/
#include "cpyright.h"
#include "pdbtfr.h"
#define DATFILE "nat"
#define FLOAT_EQUAL(d1, d2) (PM_value_compare(d1, d2, fptol[0]) == 0)
struct s_st7
{int n;
double *a;};
typedef struct s_st7 st7;
st... | 2.28125 | 2 |
2024-11-18T19:42:20.874665+00:00 | 2014-06-10T20:19:33 | 0bb8290b7e88bf325d83bbc46e66247cf9d06c7e | {
"blob_id": "0bb8290b7e88bf325d83bbc46e66247cf9d06c7e",
"branch_name": "refs/heads/master",
"committer_date": "2014-06-10T20:19:33",
"content_id": "ba35d64dc8a3538b602dba9338578f6335f79679",
"detected_licenses": [
"MIT"
],
"directory_id": "bfe25ed75f78a9a805c87dd46f95132684a730c2",
"extension": "c"... | stackv2 | #include <math.h>
#include <time.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h>
#include <sys/time.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "tower.h"
#include "graphics.h"
#include "map.h"
map_tile_t *initialize_tile(bool pass, int sprite, int x, int y)
{
map_... | 2.6875 | 3 |
2024-11-18T19:42:21.210393+00:00 | 2020-09-07T21:10:25 | 9cdce851fad839fce3da46ae37f80e76c2216aa1 | {
"blob_id": "9cdce851fad839fce3da46ae37f80e76c2216aa1",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-07T21:10:25",
"content_id": "720ee03388d3ad09644890ea8be16fa96ddc6330",
"detected_licenses": [
"MIT"
],
"directory_id": "d66600af0a288569a6206169d8ea5873d595f5a9",
"extension": "c"... | stackv2 |
#include "plugin.h"
#include <stdlib.h>
#include <stdio.h>
#include "raylib.h"
#include "raygui.h"
#include <math.h>
/*
* memView plugin
*
* shows contents of memory
*
* TODO add address input and selector for Ax and Dx offset
*
*/
typedef struct {
bool ddDdone; // D reg dropdown
i... | 2.0625 | 2 |
2024-11-18T19:42:21.348623+00:00 | 2020-06-11T00:05:15 | ee55517f976a7e42f43313fbe418648d6c966e6b | {
"blob_id": "ee55517f976a7e42f43313fbe418648d6c966e6b",
"branch_name": "refs/heads/develop",
"committer_date": "2020-06-11T00:05:15",
"content_id": "045494c195723168734346a8336876f8fa74f3bd",
"detected_licenses": [
"MIT"
],
"directory_id": "84b999048625379d89c60e919a1deca378c79f6e",
"extension": "c... | stackv2 |
#include "DelaunayTable.Geometry.h"
static void LAPACK__dgetrf(
LAPACK_INTEGER m,
LAPACK_INTEGER n,
LAPACK_DOUBLE_PRECISION* a, /// a[lda, n]
LAPACK_INTEGER lda,
LAPACK_INTEGER* ipiv, /// ipiv[(min(m, n))]
LAPACK_... | 2.15625 | 2 |
2024-11-18T19:42:21.671381+00:00 | 2019-11-11T22:31:18 | b283724e42a36ec48729de344656accc656a861f | {
"blob_id": "b283724e42a36ec48729de344656accc656a861f",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-11T22:31:18",
"content_id": "8c05a10ebf9fb1e0797492f04ec1f75d5c2b51cb",
"detected_licenses": [
"MIT"
],
"directory_id": "2ad4a90449656049995195c53a853e243dc3b454",
"extension": "c"... | stackv2 | #include "command.h"
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "menu.h"
#include "../manager/client_manager.h"
#include "../manager/account_manager.h"
#include "../utils/convert.h"
void processCreateClient() {
char *screen[1]={ "Create Client" };
menuPrintWindowCente... | 2.546875 | 3 |
2024-11-18T19:42:22.112133+00:00 | 2019-03-18T22:55:09 | 8c2c2ed696cea253a6130e00eb508f7fa79451ae | {
"blob_id": "8c2c2ed696cea253a6130e00eb508f7fa79451ae",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-18T22:55:09",
"content_id": "dad91d5ca8c49f5c3a01560d1eef9e641329c8eb",
"detected_licenses": [
"BSD-3-Clause-No-Nuclear-Warranty"
],
"directory_id": "5c2477d4a164c1819361ff8b62b62c96... | stackv2 | /* $Id: codb_events.c 259 2004-01-03 06:28:40Z shibuya $ */
/* Copyright 2001 Sun Microsystems, Inc. All rights reserved. */
#include <cce_common.h>
#include <stdlib.h>
#include <string.h>
#include <codb_events.h>
codb_event *
codb_event_new (codb_event_type type, oid_t oid, const char *data)
{
codb_event *event;
... | 2.03125 | 2 |
2024-11-18T19:42:22.483798+00:00 | 2020-03-26T17:59:46 | 09bf652727a6d6a88cae0c87ed1b995472b5868a | {
"blob_id": "09bf652727a6d6a88cae0c87ed1b995472b5868a",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-26T17:59:46",
"content_id": "94a2f3d86a7692c3dccc80db6312367a9c0a4546",
"detected_licenses": [
"MIT"
],
"directory_id": "3bb9ef728ca806ab6e057878958d13e84bb9c0e5",
"extension": "c"... | stackv2 | /*
** EPITECH PROJECT, 2019
** Project C : my_world
** File description:
** Is a terraformer program.
*/
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <SFML/System/Vector2.h>
#include "lib/my_string.h"
#include "lib/my_system.h"
#include "engine/world.h"
#include "config.h"
void get_save(int fd,... | 2.53125 | 3 |
2024-11-18T19:42:23.238793+00:00 | 2021-06-29T02:10:14 | 39b8afb0835275c333b1c26b40889fbbb6ce7f34 | {
"blob_id": "39b8afb0835275c333b1c26b40889fbbb6ce7f34",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-29T02:10:14",
"content_id": "f31682d2538030dc30950767cd7e70c224b1472b",
"detected_licenses": [
"MIT"
],
"directory_id": "61545ffb3d820850e3fd849b1b7c3e2f6e64fbcf",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
void gerarVetor(int vetor[], int tvetor){
int vetorp;
for (vetorp = 0; vetorp < tvetor; vetorp++) {
int num = rand() % 1000;
vetor[vetorp] = num;
}
}
void imprimirMenorValor(int vetor[], int tvetor){
int menorValor = vetor[0], maior... | 3.625 | 4 |
2024-11-18T19:42:24.680978+00:00 | 2017-11-22T01:44:48 | efbd23c7e98bd3f0a84cf8e359a2512116929cf1 | {
"blob_id": "efbd23c7e98bd3f0a84cf8e359a2512116929cf1",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-22T01:44:48",
"content_id": "f31e9b1ed0dd2f81156faa849f7e6dc293880a64",
"detected_licenses": [
"MIT"
],
"directory_id": "fec90483896c061d4ec8bcf5d6f48d9165d71f59",
"extension": "c"... | stackv2 | // 21 march 2015
#define UNICODE
#define _UNICODE
#define STRICT
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#define _WIN32_WINDOWS 0x0600
#include <windows.h>
#include <stdio.h>
HWND button;
BOOL enabled = FALSE;
// MinGW-w64 doesn't seem to have these in its user32.lib
// TODO file bug report
BOOL (*WINAPI pS... | 2.203125 | 2 |
2024-11-18T19:42:24.784889+00:00 | 2021-03-05T23:48:05 | 83aa0ad943e426fefabdd5297e75e2eb671b444e | {
"blob_id": "83aa0ad943e426fefabdd5297e75e2eb671b444e",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-05T23:48:05",
"content_id": "73ceabc21d4dfc28674512e3028606b9d86f9399",
"detected_licenses": [
"MIT"
],
"directory_id": "08d857da788a4f9fc0455e4ed9f7d8bc85255421",
"extension": "c",
... | stackv2 | /* EP2 - MAC0121
Autor: Daniel Silva Lopes da Costa
NUSP: 11302720
Foi implementado um programa em C, onde foram chamadas as bibliotecas Matriz - responsável pela criação, impressão e liberção de espaço das matrizes - neste EP foram usadas três matrizes, a primeira do tipo inteiro com a entrado do usuário, a segunda... | 3.390625 | 3 |
2024-11-18T19:42:24.872413+00:00 | 2020-09-28T05:24:39 | ecb11b66253af48f67c404d1a43adc02ad753a5c | {
"blob_id": "ecb11b66253af48f67c404d1a43adc02ad753a5c",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-28T05:24:39",
"content_id": "b8dc01a76d4c208b277f8c73879f96873d0812c1",
"detected_licenses": [
"Artistic-2.0"
],
"directory_id": "be72d5cd9f0c6cae3f30300ab0f3126e8fd9187f",
"extens... | stackv2 | #include <stdio.h>
#include <string.h>
#define MAX_LINE_LEN 256 // define variables
#define WS " ,.:;!-(){}[]<>?/\\=+\t" // define grammar
typedef struct // initalize
{
int ln;
int wd;
int ch;
} Count;
int
main (int argc, char *argv[]) // call grammar
{
char line[MAX_LINE_LEN], *s;
FILE *fp;
Count count = {... | 3.015625 | 3 |
2024-11-18T19:42:24.969234+00:00 | 2020-01-01T17:24:26 | 0243976f77229023a460572d8ee25b002cb996f2 | {
"blob_id": "0243976f77229023a460572d8ee25b002cb996f2",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-01T20:53:23",
"content_id": "14987a075a4584dc3dc39e232aa8e9f6418d8668",
"detected_licenses": [
"MIT"
],
"directory_id": "744e632cfd9f019ae1e6bca612ddb48de24f2a9b",
"extension": "h"... | stackv2 | #ifndef _SQRL_COMM_H_
#define _SQRL_COMM_H_
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/**@brief SQRL command type. */
typedef enum {
SQRL_CMD_INVALID = 0,
SQRL_CMD_QUERY,
SQRL_CMD_IDENT,
SQRL_CMD_UNLOCK,
} sqrl_cmd_type_t;
/**@brief SQRL com... | 2.203125 | 2 |
2024-11-18T19:42:25.654103+00:00 | 2016-03-08T16:40:58 | c4a42c111f1bb336e007ff8ac37cb2df977a5d71 | {
"blob_id": "c4a42c111f1bb336e007ff8ac37cb2df977a5d71",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-08T16:40:58",
"content_id": "6f8f904b68ebf3a4cd7c5e3cc5ebc175ab554421",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "11608dada1de6be9293b4cf41ef906ce105e2b8c",
"extens... | stackv2 | /*
* Implementation of the BBOB T_asy transformation for variables.
*/
#include <math.h>
#include <assert.h>
#include "coco.h"
#include "coco_problem.c"
typedef struct {
double *x;
double beta;
} transform_vars_asymmetric_data_t;
static void transform_vars_asymmetric_evaluate(coco_problem_t *self, const double... | 2.8125 | 3 |
2024-11-18T19:42:26.020022+00:00 | 2021-01-31T23:58:03 | fdea4b019325960a82b85284f1f9fa880e1613b4 | {
"blob_id": "fdea4b019325960a82b85284f1f9fa880e1613b4",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-31T23:58:03",
"content_id": "ed81db3f7cd295c8860c86630113821125fc208f",
"detected_licenses": [
"MIT"
],
"directory_id": "b31c74c348c8890f8b17eb8f0f10651d3816a911",
"extension": "c"... | stackv2 | /* arch4rtos_ipl_mask.c
* nxRTOS Kernel V0.0.1
* Copyright (C) 2019 or its affiliates. All Rights Reserved.
*
*
* 1 tab == 4 spaces!
*/
/*-----------------------------------------------------------------------------
* Implementation of functions for Interrupt Request Priority Base Mask
* on ARM CM4F.
* The... | 2.328125 | 2 |
2024-11-18T19:42:28.609664+00:00 | 2021-02-28T22:45:49 | 5b68bc687d0599a11d4507f886511795f31fb5a0 | {
"blob_id": "5b68bc687d0599a11d4507f886511795f31fb5a0",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-28T22:45:49",
"content_id": "71df819a7483316656232be5703ea6a8018fa8d4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "609a47369d4dd5190613d8c79c7cd3d1f6d739ec",
"extensio... | stackv2 | #include "JST_list.h"
#include <stdlib.h>
const JST_List JST_List_Zero = { .item = NULL, .next = NULL };
JST_Error JST_List_push_back( JST_List ** first, JST_List ** current, void * data ) {
if(( first == NULL )||( current == NULL )) {
return JST_ERR_NULL_ARGUMENT;
}
if( *first == NULL ) {
*firs... | 2.703125 | 3 |
2024-11-18T19:42:28.663208+00:00 | 2021-08-20T21:42:00 | d801ba393dd45b2b05b6ffab7cf9bdcbb2427128 | {
"blob_id": "d801ba393dd45b2b05b6ffab7cf9bdcbb2427128",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-20T21:42:00",
"content_id": "7a72793f5b0ca58df6448b67afa188a82dc160c3",
"detected_licenses": [
"MIT-Modern-Variant"
],
"directory_id": "d3a0e6bc5983bfbbdeb2d35315e4216d435574ce",
"ex... | stackv2 | #include "syscall.h"
int
main()
{
SpaceId newProc;
OpenFileId input = CONSOLEINPUT;
OpenFileId output = CONSOLEOUTPUT;
char feedback[18] = "PASS!! Reading is ";
char newline[1] = "\n";
char prompt[2], buffer[60];
int i;
prompt[0] = '>';
prompt[1] = '>';
Write(prompt, 2, output);
do {
Read(&buffer[i], 1,... | 2.296875 | 2 |
2024-11-18T19:42:28.746622+00:00 | 2014-02-13T20:37:05 | c89922e1211e9142cb6ffb622415088ddfc0b0c0 | {
"blob_id": "c89922e1211e9142cb6ffb622415088ddfc0b0c0",
"branch_name": "refs/heads/master",
"committer_date": "2014-02-13T20:37:05",
"content_id": "b28abdccb604683f8d28ddd7df9736d1d44c590c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "96d6f42ab0c12aeb6c019dbeab23c40f42e71447",
"extensio... | stackv2 | #include <stdlib.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <SDL/SDL.h>
#define PI 3.14159265358979323846264338327
SDL_Surface *screen;
GLuint textureHandle;
void tri(float x1, float y1, float z1, float tx1, float ty1, float x2, float y2,
float z2, float tx2, float ty2, float x3, float y... | 2.625 | 3 |
2024-11-18T19:42:30.924791+00:00 | 2017-04-05T22:28:02 | 1dc1e96c025d8892b3e908dfc4020472d8c2de75 | {
"blob_id": "1dc1e96c025d8892b3e908dfc4020472d8c2de75",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-05T22:28:02",
"content_id": "c5df8b4fa092d11dc50ab104bc55a88a0c47e739",
"detected_licenses": [
"MIT"
],
"directory_id": "4d30e59282744951b3d3f3b20647a6d4881c69e5",
"extension": "c"... | stackv2 | #ifndef INPUTS_C
#define INPUTS_C
#include "bit.h"
#include "keypad.h"
// ------------------------------------------- ADC Joystick ------------------------------------
//I got the ADC code from: http://maxembedded.com/2011/06/the-adc-of-the-avr/
void adc_init()
{
// AREF = AVcc
ADMUX = (1<<REFS0);
// ADC Enable... | 2.6875 | 3 |
2024-11-18T19:42:31.638530+00:00 | 2018-01-20T18:57:47 | 528d23bfca8baef951241863022bd547954b7030 | {
"blob_id": "528d23bfca8baef951241863022bd547954b7030",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-20T18:57:47",
"content_id": "50d5feec4774dd8007bd8efe3664220457fa2c96",
"detected_licenses": [
"MIT"
],
"directory_id": "31d60f6e9a56179d0a6aa80a3cd47c7a55ac6e8b",
"extension": "c"... | stackv2 | #include "window.h"
#include <stdio.h>
ex_window_t display;
uint8_t ex_keys_down[GLFW_KEY_LAST];
uint8_t ex_buttons_down[GLFW_KEY_LAST];
bool ex_window_init(uint32_t width, uint32_t height, const char *title)
{
// init glfw
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT... | 2.3125 | 2 |
2024-11-18T19:42:31.871285+00:00 | 2021-09-01T22:15:11 | 0391b55bb2d9d2b387c1b4c25ed31983453034ee | {
"blob_id": "0391b55bb2d9d2b387c1b4c25ed31983453034ee",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-01T22:15:11",
"content_id": "29f13ebb2994bcb35e2443615ee6bdc6d768a681",
"detected_licenses": [
"MIT"
],
"directory_id": "fd40bba6f3b0dcf1b0da598c7953051161de81e1",
"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.4375 | 2 |
2024-11-18T19:54:20.478057+00:00 | 2021-05-19T23:41:39 | 7706d9c8ce31be12ac4ecacb693a28926f5ef8c8 | {
"blob_id": "7706d9c8ce31be12ac4ecacb693a28926f5ef8c8",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-19T23:41:39",
"content_id": "5027b7ea3fb2fad69b99e64335961e132a51c3f0",
"detected_licenses": [
"MIT"
],
"directory_id": "a8bd1b8db20511bdf3f4d12584b996deb82dc6c0",
"extension": "c",
... | stackv2 | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "../src/dlist/dlist.h"
static inline void ads_dlist_add_TEST(void) {
ads_dlist_t dlist = {0};
ads_dlist_init(&dlist, NULL);
int t[] = {10, 20, 30, 40, 50, 60, 70, 80, 90};
ads_dlist_node_t* node = NULL;
// check list s... | 3.265625 | 3 |
2024-11-18T19:54:20.548675+00:00 | 2023-08-21T20:35:45 | ff3fc0426e8679998b937d66e829bee5a4ef7b66 | {
"blob_id": "ff3fc0426e8679998b937d66e829bee5a4ef7b66",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-21T20:35:45",
"content_id": "3c56804b7c61bfe891f4ed81ff74a6b5d723b80f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c0070732bcd4acaebc806e9bb969047284d87502",
"extensio... | stackv2 | #ifndef _BIT8_H_
#define _BIT8_H_
// Bitwise helpers
#define BIT0 0x1
#define BIT1 0x2
#define BIT2 0x4
#define BIT3 0x8
#define BIT4 0x10
#define BIT5 0x20
#define BIT6 0x40
#define BIT7 0x80
#define RBIT0(value) ((value) & 0x1)
#define RBIT1(value) (((value) >> 1) & 0x1)
#define RBIT2(value) (((value) >> 2) & 0x1)
... | 2.125 | 2 |
2024-11-18T19:54:20.648518+00:00 | 2022-11-10T07:53:22 | 65c7dce09b01aab869a373e76216ad01a54b7dba | {
"blob_id": "65c7dce09b01aab869a373e76216ad01a54b7dba",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-10T07:53:22",
"content_id": "093ac27c5f5cf16fcd11426bd78460fdca13c882",
"detected_licenses": [
"MIT"
],
"directory_id": "f055bf9d643439c8da2cd3087d3ba65a71d928cf",
"extension": "c"... | stackv2 | /*
* ftdi-bitbang
*
* License: MIT
* Authors: Antti Partanen <aehparta@iki.fi>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#include <time.h>
#include <paths.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <libus... | 2.65625 | 3 |
2024-11-18T20:15:26.618800+00:00 | 2019-07-06T15:02:43 | d91af645ec2a179e6fd66e8f6333c7f2fa5a2a8f | {
"blob_id": "d91af645ec2a179e6fd66e8f6333c7f2fa5a2a8f",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-06T15:02:43",
"content_id": "12e48ed3d25e9fe6777525ccc407ded5f3dbbfca",
"detected_licenses": [
"MIT"
],
"directory_id": "782657935de850ed75b1ca40a5c58f595f489e7a",
"extension": "c"... | stackv2 | #include <stdint.h>
#include "mbMap_typedef.h"
/*
* -----------------------------------------------------------------------------
* Public functions implementation
* -----------------------------------------------------------------------------
*/
void* mbMap_getObj(const mbMap_st* p_map, uint16_t index)
{
ret... | 2.578125 | 3 |
2024-11-18T20:29:46.985632+00:00 | 2017-01-10T00:30:13 | 76ccbeb2fc6fefa17a4e0d5dcb9e06a799c0918e | {
"blob_id": "76ccbeb2fc6fefa17a4e0d5dcb9e06a799c0918e",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-10T00:30:13",
"content_id": "8831ca9bc81dabe214833cba54e950b9b0602ded",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "0f732e2d2ab6134bb4d1caab2c8682e26a346a1a",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <assert.h>
#include <math.h>
#include <mpi.h>
#include "safemalloc.h"
void allgather_only(FILE * output, MPI_Comm comm, int max_mem)
{
int comm_rank = -1, world_rank = -1, comm_size = 0;
MPI_Comm_rank(comm, &comm_rank);
... | 2.8125 | 3 |
2024-11-18T20:29:47.455058+00:00 | 2020-06-29T19:54:30 | 0b3d2501115f3346d89b62562d0b6bb967c3fcb0 | {
"blob_id": "0b3d2501115f3346d89b62562d0b6bb967c3fcb0",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-29T19:54:30",
"content_id": "9c9cc09390beebfc4dba4f4f3e5459d17305451e",
"detected_licenses": [
"MIT"
],
"directory_id": "c167996b12d266bed7ebde3f167c52fcb6eb9db7",
"extension": "h"... | stackv2 | /*++
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
Abstract:
This file contains helpers for using MsQuic.
Environment:
user mode or kernel mode
--*/
#ifndef _MSQUICHELPER_
#define _MSQUICHELPER_
#if _MSC_VER > 1000
#pragma once
#endif
#include <quic_platform.h>
#include <... | 2.0625 | 2 |
2024-11-18T20:39:56.783213+00:00 | 2021-02-11T01:19:13 | e33fc8399a61e79773f2d88d39ed9a50e95b16a8 | {
"blob_id": "e33fc8399a61e79773f2d88d39ed9a50e95b16a8",
"branch_name": "refs/heads/main",
"committer_date": "2021-02-11T01:19:13",
"content_id": "57fde3450438b5d599fe16585e30263bd3cd12a2",
"detected_licenses": [
"MIT"
],
"directory_id": "96fa98845b5313649864209c97800c1c37a58b7d",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include "pico/stdlib.h"
#include "hardware/gpio.h"
#include "dht22-pico.h"
const uint LED_PIN = PICO_DEFAULT_LED_PIN;
const uint DHT_PIN = 15;
void blink() {
sleep_ms(50);
gpio_put(LED_PIN, 1);
sleep_ms(50);
gpio_put(LED_PIN, 0);
}
int main() {
stdio_init_all();
gpio_init(... | 2.75 | 3 |
2024-11-18T20:39:57.191717+00:00 | 2017-02-26T15:49:37 | 0779d01f509e118dcca36871a72908b32804b8bf | {
"blob_id": "0779d01f509e118dcca36871a72908b32804b8bf",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-26T15:49:37",
"content_id": "5650effd344512217edae7065daf1666f73443f4",
"detected_licenses": [
"MIT"
],
"directory_id": "4ff28dd0835fc97e6ddba5fa73fe242b65a2865e",
"extension": "c"... | stackv2 |
// need libx11-dev (on DEBIAN) and libxext-dev
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xlibint.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
#include <X11/extensions/XShm.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <stdio.h>
typedef struct X11ScreenshotContext
{
Display* display;... | 2.328125 | 2 |
2024-11-18T18:36:10.590309+00:00 | 2019-10-02T03:13:19 | 76c3933adb15f70e0ebbf6d6ca7297a093fa9a48 | {
"blob_id": "76c3933adb15f70e0ebbf6d6ca7297a093fa9a48",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-02T03:13:19",
"content_id": "48a6715c8ea0db78f6dd1ff8887ba4f77eb2bc64",
"detected_licenses": [
"Unlicense"
],
"directory_id": "b256539d77d17ced604c8c0b6d34b9ccfe505682",
"extension... | stackv2 | /*
File: geogrid_index.h
Author: Jonathan Beezley <jon.beezley.math@gmail.com>
Date: 1-18-2010
Defines structures used to create geogrid files.
enum Projection -- for supported projections.
struct GeogridIndex -- for meta data which is written to and index file
*/
#ifndef _GEOGRID_INDEX_H_
#... | 2.421875 | 2 |
2024-11-18T18:36:10.689835+00:00 | 2020-11-16T14:48:42 | be0578f13dd93c656bdd11399a1bee24aec6f939 | {
"blob_id": "be0578f13dd93c656bdd11399a1bee24aec6f939",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-16T14:48:42",
"content_id": "ad85dec51b62e1c29dfc330b99498c67ac1818d0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bdae9edab2cd99c0e4bcd7d394e128eb8a5220e7",
"extension"... | stackv2 | /*
*
* str.c
* String
*
*/
#include "str.h"
#include <stdlib.h>
#include <string.h>
char_str_t* char_str_new(void) {
char_str_t* str = malloc(sizeof(char_str_t));
str->len = 0;
str->src = NULL;
return str;
}
char_str_t* char_str_set(char_str_t* str, char* src, uint32_t len) {
char* dest = str->src;
if(str->... | 2.671875 | 3 |
2024-11-18T18:37:37.493078+00:00 | 2023-04-27T19:52:05 | b2f22230824c0a32b77b0c81bc074d2116154401 | {
"blob_id": "b2f22230824c0a32b77b0c81bc074d2116154401",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-27T19:52:05",
"content_id": "4e7377f567cf71030332114194253b39339ff6e4",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "fce2c1d762f0431865d381e4a153db304f159979",
"extens... | stackv2 | /*
* Copyright (c) 2016, Intel Corporation
* All rights reserved.
*
* Author: Jérémy Compostella <jeremy.compostella@intel.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of sou... | 2.015625 | 2 |
2024-11-18T18:37:37.701408+00:00 | 2017-12-31T12:06:28 | ac6f48a4aad329a02fe954c3ffa656f3cdd3a2e0 | {
"blob_id": "ac6f48a4aad329a02fe954c3ffa656f3cdd3a2e0",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-31T12:06:28",
"content_id": "862aa07d5ed3219c1e9f517962f57b37ac43d2c5",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "dd41001a5cd016b20ad1b2ebdfba6ee0e7a4b31f",
"extension":... | stackv2 | #include "clight3d.h"
#include "cobject3d.h"
#include "vectorMath/cmatrix4.h"
#include <stdio.h>
void freeCLight3D(void* obj) {
freeCObject3D(obj);
}
CLight3D* newCLight3D(CMemory* mem) {
CLight3D * ret = cmemory_calloc(mem, 1, sizeof(CLight3D));
ret->parent.parent.cmemory = mem;
ret->parent.parent.funcFree ... | 2.125 | 2 |
2024-11-18T18:46:57.252122+00:00 | 2021-03-10T16:24:13 | 588847ebf642c75c4514b25276d8f67b9e999386 | {
"blob_id": "588847ebf642c75c4514b25276d8f67b9e999386",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-10T16:24:13",
"content_id": "3356890e0f86f8ea6d5b61a684f8a1897b2ec95b",
"detected_licenses": [
"MIT"
],
"directory_id": "bff8ee089554ea885f9038577a4b276674e8eaeb",
"extension": "h",
... | stackv2 | /* hashtable consists of buckets and buckets point to a memory that are stored HTrecords */
#include <unistd.h>
#define ERROR -1
#define NO_ERROR 1
typedef struct Bucket Bucket;
typedef struct HTRecord{
void * value;
char * key;
int counter;
}HTRecord;
typedef struct Bucket{
int records; // counter of rec... | 2.421875 | 2 |
2024-11-18T18:46:57.838259+00:00 | 2020-10-27T22:51:17 | 3d0d82083113da5ff8afeab90194cc66d0c304c7 | {
"blob_id": "3d0d82083113da5ff8afeab90194cc66d0c304c7",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-27T22:51:17",
"content_id": "3bc95d10e004fb10f1079fbb15336d27b0dad5fa",
"detected_licenses": [
"MIT"
],
"directory_id": "df33b92c614439c31a12f6c6e219b30f36171e01",
"extension": "c"... | stackv2 | #include <u.h>
#include <libc.h>
#include <ctype.h>
#include <thread.h>
#include "primitives.h"
#include "conv.h"
#include "rune.h"
#include "ascii.h"
/*
* due to the nature of the decoding algorithm here, the resulting JString is guaranteed to be
* scalar. specifically, all we are doing is casting chars to codeunit... | 2.71875 | 3 |
2024-11-18T19:00:40.250762+00:00 | 2021-06-03T00:06:33 | 1f2cd153ca73fa8a52acf721c8b47214b13976d5 | {
"blob_id": "1f2cd153ca73fa8a52acf721c8b47214b13976d5",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-03T00:06:33",
"content_id": "c70c72b9de8fc00761bb467c3f194e01a304dce6",
"detected_licenses": [
"Unlicense"
],
"directory_id": "161645e907eb717f25bd3cc42805e0767a97d95c",
"extension":... | stackv2 | #include "main.h"
#include "serial.h"
#include "mtos.h"
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*a))
uint8_256buff_t tx; // Creates tx buffer
uint8_256buff_t rx; // Creates rx buffer
Byte SCI_Port_TXRX_Status[2]; // Creates status bytes for 2 ports
void main(void) {
Byte SCI_port;
float... | 2.296875 | 2 |
2024-11-18T19:11:15.985928+00:00 | 2021-11-15T01:51:02 | 8ff949b6cb3c999e45fabd180713cfc4843d33a3 | {
"blob_id": "8ff949b6cb3c999e45fabd180713cfc4843d33a3",
"branch_name": "refs/heads/RTX_NXP_Android601",
"committer_date": "2021-11-15T01:51:02",
"content_id": "9ff73568fcaf24d87eee06bedb203a95a0dd7b17",
"detected_licenses": [
"BSD-3-Clause",
"SGI-B-2.0"
],
"directory_id": "d5bd083dbcacce8cf62ebbd... | stackv2 | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// For SkPMFloat(SkPMColor), we widen our 8 bit components (fix8) to 8-bit components in 32 bits
// (fix8_32), then convert those to floats.
// round() does the opposite, wor... | 2.4375 | 2 |
2024-11-18T19:11:16.088449+00:00 | 2023-09-01T20:08:36 | 7f012c9e2d334e8fcd1fc9cc16583ea7416803e6 | {
"blob_id": "7f012c9e2d334e8fcd1fc9cc16583ea7416803e6",
"branch_name": "refs/heads/main",
"committer_date": "2023-09-01T20:08:36",
"content_id": "278547a956625111361102151bcb6c1378aa4653",
"detected_licenses": [
"BSD-2-Clause",
"BSD-3-Clause"
],
"directory_id": "d84c7df450292867f8c7bb58d150773547... | stackv2 | // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors.
// All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
//
// SPDX-License-Identifier: BSD-2-Clause
//
// This file is part of CEED: http://github.com/ceed
/// @file
/// libCEED QFunctions for di... | 2.171875 | 2 |
2024-11-18T19:11:16.467087+00:00 | 2020-10-13T06:19:31 | 882af30710671a23d6382e66772c9a710a404768 | {
"blob_id": "882af30710671a23d6382e66772c9a710a404768",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-13T06:19:31",
"content_id": "be8f9de02d9073a3c95eb666e4d6a4282db4bf14",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bf195b9d811ffc40650479e9d81a031b0b673602",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h> // atoi()
#include <string.h>
#include <sys/stat.h> // lstat()
#include <sys/file.h>
#include <unistd.h> // access()
#include "alloc-inl.h" // ck_alloc()
#include "types.h"
u8 trace_bits[MAP_SIZE];
u8 virgin_bits[MAP_SIZE];
void read_bitmap(u8* vname, u8* tname) {... | 2.5 | 2 |
2024-11-18T19:33:40.228454+00:00 | 2023-08-12T08:24:27 | 9a143f20d51315cde4d9faf04f00bf248e6ffb79 | {
"blob_id": "9a143f20d51315cde4d9faf04f00bf248e6ffb79",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-12T08:24:27",
"content_id": "c634f83b6e054cd30c7cce524d91788bfa1bafb8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "cbe8756c4068574f2f1cf8f0ce6f11632622eccb",
"extensio... | stackv2 | /*
* Boot installator.
* Author: Serge Vakulenko, <vak@cronyx.ru>
*/
#include <stdio.h>
#include <fcntl.h>
#include <windows.h>
#include <winioctl.h>
#define PartAddr 0x1be /* Offset to partition table */
#define ValidationAddr 0x1fe /* Offset to validation bytes */
#define MAGIC 0xaa55 /* Validation tag *... | 2.453125 | 2 |
2024-11-18T19:33:40.387003+00:00 | 2020-12-28T16:09:47 | 6b1196d0dc185b123c48e3cf238bb2b1a009271a | {
"blob_id": "6b1196d0dc185b123c48e3cf238bb2b1a009271a",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-28T16:09:47",
"content_id": "19e3df6dce21d4f826251a138a061f33aa123bec",
"detected_licenses": [
"MIT"
],
"directory_id": "65188c642b09915ecb1936054e08dd1e2be85210",
"extension": "h"... | stackv2 | #pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
// slice_bytes_v encapsulates a length and pointer
typedef struct slice_bytes_t {
char* v;
size_t len;
//size_t something_random;
} slice_bytes_t;
// slice_bytes encapsulates a slice_bytes_v w... | 2.296875 | 2 |
2024-11-18T19:34:22.005692+00:00 | 2016-07-05T03:06:13 | cbe09e76b5f589810b152ee37edff4cb15a5f28a | {
"blob_id": "cbe09e76b5f589810b152ee37edff4cb15a5f28a",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-05T03:06:15",
"content_id": "18e4b1824d1bc09d81e7a3fde732a68955470285",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "987f1ff050b4079373fa99aacdf0cbf85dd2e5b0",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <stdbool.h>
#include "xgcm_traversal.h"
#include "xgcm_conf.h"
#include "utils.h"
#define dl_printf(...) if (conf.verbose) {printf(__VA_ARGS__);}
#define dfl_printf(...) if (conf.verbose) {fprintf(stderr,__VA_ARGS__);}
extern int optind;
char *CONF... | 2.328125 | 2 |
2024-11-18T19:34:22.147055+00:00 | 2023-08-09T18:19:32 | 9ee1016ecfcb7a9105f0fad0467fc2843b2a807b | {
"blob_id": "9ee1016ecfcb7a9105f0fad0467fc2843b2a807b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-09T18:19:32",
"content_id": "72cfa8987bda348cfffc8874a01b714e9a8013a2",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a4a96286d9860e2661cd7c7f571d42bfa04c86cf",
"extensio... | stackv2 | /*
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
#include <string.h>
#include "protocol_examples_common.h"
#include "example_common_private.h"
#include "esp_event.h"
#include "esp_eth.h"
#if CONFIG_ETH_USE_SPI_ETHERNET
#include "driver/... | 2.046875 | 2 |
2024-11-18T19:35:26.908808+00:00 | 2017-02-27T00:24:56 | f2aaffcaacd25ce4189d455e36187e44450dc5b7 | {
"blob_id": "f2aaffcaacd25ce4189d455e36187e44450dc5b7",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-27T00:26:41",
"content_id": "55d8db759fe234ac8012f77f79ba975a40e3b8e0",
"detected_licenses": [
"MIT"
],
"directory_id": "eeed0634f0478f228e418cbc86e62421b497e4eb",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <string.h>
#include "array_list.h"
ArrayList al_new(size_t item_size) {
return al_new_sized(item_size, 10);
}
ArrayList al_new_sized(size_t item_size, size_t init_capacity) {
return al_prealloc(item_size, malloc(item_size * init_capacity), init_capacity);
}
ArrayList al_prealloc(si... | 3.125 | 3 |
2024-11-18T19:35:27.016278+00:00 | 2023-08-17T13:00:20 | 89b0380df296343f96a94c49c4738f8665c5f9a1 | {
"blob_id": "89b0380df296343f96a94c49c4738f8665c5f9a1",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T07:43:37",
"content_id": "2c23235032f44d9fc8800d4a6f34652e54f669ac",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c9bc99866cfab223c777cfb741083be3e9439d81",
"extens... | stackv2 | /*
* Arm SCP/MCP Software
* Copyright (c) 2015-2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Description:
* PPU v0 driver module
*/
#ifndef MOD_PPU_V0_H
#define MOD_PPU_V0_H
#include <mod_power_domain.h>
#include <stdbool.h>
#include <stdint.h>
/*... | 2.15625 | 2 |
2024-11-18T19:44:31.325011+00:00 | 2020-01-27T17:41:05 | 7e3472a85f1165ab4d78158a4f9ed0fc3fe86edd | {
"blob_id": "7e3472a85f1165ab4d78158a4f9ed0fc3fe86edd",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-27T17:41:05",
"content_id": "fdc44637c9efad75462df5ae9d3616faffde3fcf",
"detected_licenses": [
"MIT"
],
"directory_id": "41b7f7ffd7b490a7fe1f81dca7d24e30535bf439",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#define REQUIRED_ARG_COUNT 2
static long from_position_in_line, to_position_in_line;
static void cut(FILE *input_file)
{
char buffer;
long current_position_in_line = 0;
while (fread(&buffer, sizeof(char), 1, input_file), feof(input_file))
{
if (ferror(in... | 2.984375 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.