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-19T01:01:21.378270+00:00 | 2023-08-22T11:30:19 | 932c967e85afb8b645bb1e56ca7097439781d3b2 | {
"blob_id": "932c967e85afb8b645bb1e56ca7097439781d3b2",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-22T11:30:19",
"content_id": "558ac64311cec683fc889aba680d75cd27ce03b0",
"detected_licenses": [
"BSD-3-Clause",
"ISC",
"BSD-2-Clause"
],
"directory_id": "d53b3727b12818d992a66... | stackv2 | /*
* Copyright (c) 2002-2008 Chris Cappuccio <chris@nmedia.net>
* Copyright (c) 2023 Stefan Sperling <stsp@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice a... | 2.015625 | 2 |
2024-11-19T01:01:21.445763+00:00 | 2023-02-06T19:13:47 | 3f411e06cce1018069adce637efcc0697197c04f | {
"blob_id": "3f411e06cce1018069adce637efcc0697197c04f",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-06T19:13:47",
"content_id": "73add8db1dfe8edc6d8a94cabc7bbe0110042718",
"detected_licenses": [
"MIT"
],
"directory_id": "951708999ab2f394416d8f3cc07898d9fbb24689",
"extension": "c"... | stackv2 | #include "os.h"
#include <bio.h>
#include <libsec.h>
enum{ ThumbTab = 1<<10 };
static Thumbprint*
tablehead(uchar *hash, Thumbprint *table)
{
return &table[((hash[0]<<8) + hash[1]) & (ThumbTab-1)];
}
void
freeThumbprints(Thumbprint *table)
{
Thumbprint *hd, *p, *q;
if(table == nil)
return;
for(hd = table; hd ... | 2.3125 | 2 |
2024-11-19T01:01:24.845916+00:00 | 2018-01-18T16:11:48 | 21c567c14e0bcde358ac902e3049697c0a8f1bf2 | {
"blob_id": "21c567c14e0bcde358ac902e3049697c0a8f1bf2",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-18T16:11:48",
"content_id": "c477fe08b9079907bcf0f139709ccbd0c133a6b1",
"detected_licenses": [
"MIT"
],
"directory_id": "c5138b004e95b2d733ac377c45968d1e1b97cee4",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* parsing.c :+: :+: :+: ... | 2.59375 | 3 |
2024-11-19T01:01:24.964118+00:00 | 2017-12-03T14:04:48 | 065769538b9e116ba215fbaea50fd290f78397f8 | {
"blob_id": "065769538b9e116ba215fbaea50fd290f78397f8",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-03T14:04:48",
"content_id": "09c5e77625b0e48b44677472ad959fec7d470ac2",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1fb8d1e17422216cc0bff7ae73c249be0232085e",
"extens... | stackv2 | /**
* @file test/video.c Baresip selftest -- video
*
* Copyright (C) 2010 - 2017 Creytiv.com
*/
#include <re.h>
#include <baresip.h>
#include "test.h"
#define DEBUG_MODULE "video"
#define DEBUG_LEVEL 5
#include <re_dbg.h>
int test_video(void)
{
int err = 0;
/* test with framerate of zero */
ASSERT_EQ(0, v... | 2.046875 | 2 |
2024-11-19T01:01:25.514140+00:00 | 2020-08-13T09:28:25 | bf9a5e1e8623616718a94c731ff6e81f348b72fb | {
"blob_id": "bf9a5e1e8623616718a94c731ff6e81f348b72fb",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-21T14:08:27",
"content_id": "f608038ff5f8d7a688c4f90160615e992870dd52",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "bb94644b44fb9f069d2ef25a235b85a40f94755b",
"extens... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "util.h"
#include "../src/rlite/page_key.h"
#include "../src/rlite/rlite.h"
#include "../src/rlite/type_zset.h"
static int expect_key(rlite *db, unsigned char *key, int64_t keylen, char type, int64_t page)
{
unsigned char type2;
int64_t page2;
int ... | 2.34375 | 2 |
2024-11-19T01:01:25.721095+00:00 | 2016-03-16T22:47:30 | b3fd0f8d3de50d439076e25eb7bb2143219df056 | {
"blob_id": "b3fd0f8d3de50d439076e25eb7bb2143219df056",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-16T22:47:30",
"content_id": "460e2a1ed86da914d7b869151f5c0ad2aa53025b",
"detected_licenses": [
"ISC"
],
"directory_id": "740d508619043f804c23ecdc6ca89da439a0d0e4",
"extension": "c"... | stackv2 | /*********************************************************************
* Functions for reading and switching between color sensors
********************************************************************/
#include "colorsensors.h"
void selector_init(void)
{
i2c_start(CHANNEL_WRITE);
i2c_write(0x08);
i2c_sto... | 2.890625 | 3 |
2024-11-19T01:01:26.321092+00:00 | 2023-08-07T20:22:46 | 7f7914424d645c56c4523b92984d9beb232246d2 | {
"blob_id": "7f7914424d645c56c4523b92984d9beb232246d2",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-07T20:22:46",
"content_id": "364ac3449369e82ce465e61d28cd0d44bff1eeef",
"detected_licenses": [
"Zlib"
],
"directory_id": "d9ea45dbc964799991b9191ae620d2f150652a3d",
"extension": "h",... | stackv2 | #include <kinc/backend/Windows.h>
#include <kinc/system.h>
#include <kinc/window.h>
#include <kinc/input/mouse.h>
void kinc_internal_mouse_lock(int window) {
kinc_mouse_hide();
HWND handle = kinc_windows_window_handle(window);
SetCapture(handle);
RECT rect;
GetWindowRect(handle, &rect);
ClipCursor(&rect);
}
vo... | 2.40625 | 2 |
2024-11-19T01:01:27.605877+00:00 | 2016-12-10T20:04:36 | 123d6b1bad3569d0e0f1aa5964d3de24e4b2209f | {
"blob_id": "123d6b1bad3569d0e0f1aa5964d3de24e4b2209f",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-10T20:04:36",
"content_id": "03440f0eac5dacd63fac7b934d2bbd110a2e6066",
"detected_licenses": [
"MIT"
],
"directory_id": "b742d31131988d63987ae20d50a0f127a21d9cc0",
"extension": "c"... | stackv2 | /*
* cd354mp.c
*
* Roadstar CD-354MP face plate demo
*
* Author: Kestutis Bivainis
*/
#include "stm32f10x_conf.h"
#include "cd354mp.h"
#include "delay.h"
#include "font.h"
__align(4) uint8_t display_data[20];
static PIN pins[]={
{{CLK_Pin,CLK_Speed,CLK_Mode},CLK_Port,CLK_Bus},
{{DO_Pin,DO_Speed,DO_Mode}... | 2.34375 | 2 |
2024-11-19T01:01:27.679303+00:00 | 2017-02-13T00:57:41 | fa388e2517eda67edf7fb658f6ad800a3a20d2d4 | {
"blob_id": "fa388e2517eda67edf7fb658f6ad800a3a20d2d4",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-13T00:57:41",
"content_id": "cc601abe819d547fa966cb96067e37e78a278590",
"detected_licenses": [
"MIT"
],
"directory_id": "050b0903ebee631ddb23f3d3bcfbc0ec4cb1b879",
"extension": "h"... | stackv2 | /* Copyright (c) 2011 Lee Nau
* Released under MIT License (see LICENSE file) */
#ifndef SEQS_H
#define SEQS_H
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <sys/stat.h>
#include <sys/mman.h> // mmap
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
// constan... | 2.203125 | 2 |
2024-11-19T01:01:27.811317+00:00 | 2017-05-15T15:24:08 | dec789de1aecf8731afd9f04ac5ec9184fbd66c1 | {
"blob_id": "dec789de1aecf8731afd9f04ac5ec9184fbd66c1",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-15T15:24:08",
"content_id": "36854ce9ba4c297f647f6f9b2d2286689fee3edc",
"detected_licenses": [
"MIT"
],
"directory_id": "11a0fc45ec0228982a9b1b3ab27706a8299455e4",
"extension": "h"... | stackv2 | #pragma once
#include "operations.h"
#define STACK_SIZE 4096
struct val_stack {
int top;
struct val b[STACK_SIZE];
};
void init_val_stack(struct val_stack * s);
struct val *push_val(struct val_stack *s);
struct val *pop_val(struct val_stack *s);
void push_int(struct val_stack *s, int i);
void push_val_copy(st... | 2.125 | 2 |
2024-11-19T01:01:28.125147+00:00 | 2021-06-22T15:06:57 | 9fd5745dbeb1529ad1547309c99a917581b1a873 | {
"blob_id": "9fd5745dbeb1529ad1547309c99a917581b1a873",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-22T15:06:57",
"content_id": "8c1e5e3993919d478396c3639ca9993e39799f65",
"detected_licenses": [
"MIT"
],
"directory_id": "e3bf6961505743c3afffaf27c01de467aa22d0bf",
"extension": "h"... | stackv2 | #ifndef _FILES_H
#define _FILES_H
#include "util/util.h"
#include "util/list.h"
/** An elementary struct for a buffer, containing its size and the data. */
typedef struct {
size_t size;
void* buf;
} size_n_buf_t;
/** Taken a path to a file (absolute or relative),
* strips away everything but the basename an... | 2.484375 | 2 |
2024-11-19T01:01:28.314999+00:00 | 2023-04-13T16:39:51 | ca6c93af0f9334cff87f64fd485346827f5a5073 | {
"blob_id": "ca6c93af0f9334cff87f64fd485346827f5a5073",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-13T16:39:51",
"content_id": "b9950ac3f14b553147c33890f48b4d49441aac8c",
"detected_licenses": [
"MIT"
],
"directory_id": "915634196aaf5e34a7f4bef7b0d98ecafb40acc2",
"extension": "h"... | stackv2 | /***************************************************************************
*
* Copyright (C) 2007 - 2012, Rogvall Invest AB, <tony@rogvall.se>
*
* This software is licensed as described in the file COPYRIGHT, which
* you should have received as part of this distribution. The terms
* are also available at http:/... | 2.03125 | 2 |
2024-11-19T01:01:28.541223+00:00 | 2020-02-04T20:06:57 | 3318a3fd19ebafd3fa50ed47e7db389e0f49207e | {
"blob_id": "3318a3fd19ebafd3fa50ed47e7db389e0f49207e",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-04T20:06:57",
"content_id": "f22f6c9caf0ec8e5c46890b0aef8134ed81b692c",
"detected_licenses": [
"MIT"
],
"directory_id": "c5c71d44ae35aabbcfc63b2ba5faee9796542832",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
5) Declare duas strings com capacidade para 20 caracteres. Leia a primeira string. Em seguida,
copie o texto da primeira para a segunda string. Imprima no final o conte˙do das duas strings.
*/
int main(int argc, char *argv[]) {
char s1[20];
char s2[20];
... | 2.96875 | 3 |
2024-11-19T01:01:28.643687+00:00 | 2020-10-15T03:42:08 | b5e9eb79a4da2eb576b3591668f271802de6b851 | {
"blob_id": "b5e9eb79a4da2eb576b3591668f271802de6b851",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-15T03:42:08",
"content_id": "87c5323175161d0256805201539b3c13b99d1481",
"detected_licenses": [
"MIT"
],
"directory_id": "13735b74c63f27001ef14446c1a962b5b89644e8",
"extension": "c"... | stackv2 | #include <stdio.h>
int main(void) {
/* Lets start with an array of chars, also known as a string */
char phrase[] = "Life is like a box of chocolates";
// printf("char using array syntax: %c\n", phrase[6]);
// printf("char using pointer syntax: %c\n", *(phrase + 6));
char * myFirstCharPtr = phrase ... | 4.1875 | 4 |
2024-11-19T01:01:28.776632+00:00 | 2021-04-28T18:56:22 | bea5bf65b12b06fc1087398b81ef5d85a49bb074 | {
"blob_id": "bea5bf65b12b06fc1087398b81ef5d85a49bb074",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-28T18:56:22",
"content_id": "7ce3b5dc655df26024f0f2bc62b962d73cab8e20",
"detected_licenses": [
"Apache-2.0",
"MIT"
],
"directory_id": "cf3ab1cf98a85616bd9a761a360ee9a8646d0c4d",
... | stackv2 | /*
* Copyright 2021 Benjamin Edgington
*
* 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 agr... | 2.640625 | 3 |
2024-11-19T01:01:28.916398+00:00 | 2020-10-05T16:26:48 | 8fec0b6e022b0ed1a3ac8786dc18ad46535184e1 | {
"blob_id": "8fec0b6e022b0ed1a3ac8786dc18ad46535184e1",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-05T16:26:48",
"content_id": "b7ef6c30aff47c0d448ae635d2087941996534f0",
"detected_licenses": [
"MIT"
],
"directory_id": "e20f597ec1280d29214e94459af7408ab7b5fdf9",
"extension": "c"... | stackv2 | #include <stdio.h>
#define MAX_ITEMS 10
double balanceUp (double balance, double amount)
{
double at;
if (amount >= 0)
{
at = balance + amount;
return at;
}
else
{
printf("Error");
return 0;
}
}
double balanceDown(double balance, double amount)
{
double at;
if (amount >= 0)
{
at = balance - amount;... | 3.28125 | 3 |
2024-11-19T01:01:29.162806+00:00 | 2021-05-25T17:40:13 | b55e699bf8d19cff9a7810a166db71004074894e | {
"blob_id": "b55e699bf8d19cff9a7810a166db71004074894e",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-25T17:40:13",
"content_id": "0f09dbeddeee1411672e710d75892646b7df1093",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9dd63737483cae14ff0b90fde23652b4a8d98c7c",
"extensio... | stackv2 | #pragma once
#include <stdbool.h>
struct HashTable;
// This function creates table
struct HashTable* createHashTable();
// This function adds value to the table
void addValueToTable(struct HashTable* table, char* value);
// This function checks if value in the table or not
bool tableContainsValue(struct HashTable* ... | 2.25 | 2 |
2024-11-19T01:01:29.608807+00:00 | 2019-08-06T14:24:54 | c4e8668c96f9e3964ba0d4334be8bdb5fc2c5437 | {
"blob_id": "c4e8668c96f9e3964ba0d4334be8bdb5fc2c5437",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-06T14:24:54",
"content_id": "c9c98d0a7d5cc18594d669d3305e29a279a5878a",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "021a3ccdcb91d84629f1de7343981b572840b169",
"extens... | stackv2 |
/*
Defines the abstract operations on AO (application orderings)
*/
#include <../src/vec/is/ao/aoimpl.h> /*I "petscao.h" I*/
/* Logging support */
PetscClassId AO_CLASSID;
PetscLogEvent AO_PetscToApplication, AO_ApplicationToPetsc;
/*@C
AOView - Displays an application ordering.
Collective on AO
... | 2.15625 | 2 |
2024-11-19T01:01:29.852614+00:00 | 2017-11-30T13:00:59 | ce9958d8c7a5ea28ee830b6f5e769864be65dcb4 | {
"blob_id": "ce9958d8c7a5ea28ee830b6f5e769864be65dcb4",
"branch_name": "refs/heads/master",
"committer_date": "2018-02-19T08:54:39",
"content_id": "4c72ff084a8a116e65d1a3b0b1091c3da1c87de3",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "fe6f1f3a5056fc8353e54edc6a28e5cd52e9a9d3",
"extens... | stackv2 | #ifndef NODES_H
#define NODES_H
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
/* length of strings containing APP ID */
#define AIDL 50
/* struct used to manage applications status */
typedef struct rn_manager_node {
char application_id[AIDL]; /* ASPIRE Application... | 2.203125 | 2 |
2024-11-19T01:01:29.937535+00:00 | 2020-09-07T05:06:17 | 64336af28c57a22f6ea672f355bfb683d3de16b6 | {
"blob_id": "64336af28c57a22f6ea672f355bfb683d3de16b6",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-07T05:06:17",
"content_id": "4b02cda0479a8e643f585052f810841172a8eeeb",
"detected_licenses": [
"MIT"
],
"directory_id": "a127a42e6596d1afbcb3f7db55156750bfd61343",
"extension": "c"... | stackv2 |
#include <stdint.h>
extern void GPIOA_Init(void);
extern void ADC1_Init(void);
extern uint32_t ADC1_Read(void);
extern void Led_Control(void);
uint32_t sensorVal;
int main(){
GPIOA_Init();
ADC1_Init();
while(1){
sensorVal = ADC1_Read();
Led_Control();
}
}
| 2.15625 | 2 |
2024-11-19T01:01:30.036491+00:00 | 2018-06-08T02:50:29 | 0b4106f70c27583df29719571aa2f0f4084e3f39 | {
"blob_id": "0b4106f70c27583df29719571aa2f0f4084e3f39",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-08T02:50:29",
"content_id": "a43e47438a3737d591a7cb5aa43bba49869b0a86",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6945b15e24f9cb9ea247a766f6bfb55c6451c610",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <sys/select.h>
#include "ra.h"
#include "ratlv.h"
#include "sockutils.h"
#include "misc.h"
#include "raopt.h"
/*
<问题单号> ... | 2.09375 | 2 |
2024-11-19T01:01:30.617766+00:00 | 2022-05-25T19:03:28 | 85458b5065f09cb105a3b1d60930bdd3a4726fb9 | {
"blob_id": "85458b5065f09cb105a3b1d60930bdd3a4726fb9",
"branch_name": "refs/heads/master",
"committer_date": "2022-05-26T18:25:11",
"content_id": "f1627fa4b12b1771cd1658da85be2a08ea56a9a5",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "a1cdc45c2f7628a618fb4849d09705808ae72c69"... | stackv2 | /*
* Copyright 2010, Lloyd Hilaiel.
*
* 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 of conditions and the follow... | 2.453125 | 2 |
2024-11-19T01:01:31.235553+00:00 | 2023-07-05T16:22:11 | 3a99d7364b0115ca66d4a5aca9f73361e5af6568 | {
"blob_id": "3a99d7364b0115ca66d4a5aca9f73361e5af6568",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-05T16:22:11",
"content_id": "fe71923dbbadbdb97378b047a0f822f80a977749",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9467e2502183e843a67736800199e31674b1d8f6",
"extensio... | stackv2 | /**
* \file
* ConsoleDriver internal calls for Unix systems.
*
* Author:
* Gonzalo Paniagua Javier (gonzalo@ximian.com)
*
* Copyright (C) 2005-2009 Novell, Inc. (http://www.novell.com)
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#include <config.h>
#i... | 2.03125 | 2 |
2024-11-19T01:01:31.349407+00:00 | 2019-10-18T17:18:59 | 3d615ced125c2dc6128f061a958920fe28e16248 | {
"blob_id": "3d615ced125c2dc6128f061a958920fe28e16248",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-18T17:18:59",
"content_id": "bd7df130ac9e130c32d75703593a35b75cd63992",
"detected_licenses": [
"MIT"
],
"directory_id": "675139490f7580610ef346a5c77102af7fa0ebe5",
"extension": "c"... | stackv2 | #include<avr/io.h>
#include<util/delay.h>
void init_adc()
{
ADCSRA=ADCSRA|(0b00000001<<ADEN);
ADCSRA=ADCSRA|(0b00000111);
ADMUX=ADMUX|(0b00000001<<REFS0);
}
unsigned int read_adc(int p)
{
ADMUX=ADMUX|p;
ADCSRA=ADCSRA|0b00000001<<ADSC;
while((ADCSRA & 0b00000001<<ADIF)==0);
ADCSRA=ADCSRA|0b00000001<<ADIF;
return... | 2.5 | 2 |
2024-11-19T01:01:32.022372+00:00 | 2020-08-17T19:39:58 | 66556dff3d704ea91809a1757ed27b5d31d5bc37 | {
"blob_id": "66556dff3d704ea91809a1757ed27b5d31d5bc37",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-17T19:39:58",
"content_id": "acbb1fdf9f92dcb31b71486b6b9243b940f90ff6",
"detected_licenses": [
"MIT"
],
"directory_id": "a78b4255c76bb1e292c17c86a50816473dfd6006",
"extension": "h"... | stackv2 | #include <limits.h>
#define INT_MIN (-INT_MAX -1)
/** int minimum **/
/***
is the minimum value representable as a TYPE(int).
***/
/*
VALUE_MIN(-32767)
POSIX_SPECIFIC(>= issue 5): MIN: -2147483647
*/
/*
STDC(1)
*/
| 2.25 | 2 |
2024-11-19T01:01:32.316340+00:00 | 2020-01-15T15:39:18 | 690e3e172058f950a9b6a734740b31939a05f5bb | {
"blob_id": "690e3e172058f950a9b6a734740b31939a05f5bb",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-15T15:39:18",
"content_id": "9fe13c825f20e31d4d766bdfa96f237921d1461d",
"detected_licenses": [
"MIT"
],
"directory_id": "bcf879bc9832bedf004ae86d49c9f8cdff145dbc",
"extension": "c"... | stackv2 | // - Modified version of `vctrs::vec_compare()`
// - We don't care about `NA`s because the index is not allowed to have any
#include "slide-vctrs.h"
#include "compare.h"
#include <vctrs.h>
#include <strings.h>
static void stop_not_comparable(SEXP x, SEXP y, const char* message) {
Rf_errorcall(R_NilValue, "`x` and `... | 2.484375 | 2 |
2024-11-19T01:01:32.440234+00:00 | 2021-09-01T04:27:58 | 1a19b2a59e945aaeb94cd8fcce363733d9caca27 | {
"blob_id": "1a19b2a59e945aaeb94cd8fcce363733d9caca27",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-01T05:28:03",
"content_id": "0828829afb2a6c20fd4e610efe43365babd8509e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d41ed191fa747241677195fe00eeaff71886e6f9",
"extensio... | stackv2 | /*
* Project: cmdrecplay
* Version: 1.1
* Copyright: (C) 2014-2017 Dr.Sc.KAWAMOTO,Takuji (Ext)
* Create: 2014/05/02 11:08:33 JST
*/
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <dirent.h>
#include <assert.h>
#include <sys/stat.h>
#include "config.h"
#include "RecPattern.h"
#include "Regex... | 2.15625 | 2 |
2024-11-19T01:01:32.796392+00:00 | 2012-04-21T17:23:21 | 9955829f0deebe61c8667623d7a9077c025e2ae3 | {
"blob_id": "9955829f0deebe61c8667623d7a9077c025e2ae3",
"branch_name": "refs/heads/master",
"committer_date": "2012-04-21T17:23:21",
"content_id": "ab66167cdc09621a831cf632ab084ba128dd280f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dec0dcb967e1bc3c9b93a21f162c553a72a7943e",
"extensio... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <dirent.h>
#include <string.h>
#include <unistd.h>
#include "42sh.h"
static int verif_manage_red(t_lexelem **stpt)
{
if ((*stpt)->type == AND && (*stpt)->next != NULL)
(*stpt) = (*stpt)->next;
if ((*stpt)->type != WORD && (*stpt)->type != DQUOTE &&
(*stpt)... | 2.578125 | 3 |
2024-11-19T01:01:32.919264+00:00 | 2019-06-13T14:02:25 | 323ca917ae70c2752fdf7bd1b27b60f15f07725c | {
"blob_id": "323ca917ae70c2752fdf7bd1b27b60f15f07725c",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-13T14:02:25",
"content_id": "a6a04522b0a2d1ad51455b5a460c7ec34cb534d4",
"detected_licenses": [
"MIT"
],
"directory_id": "bdafa3a7ce4392f424d115709fbf170fe6e7349c",
"extension": "c"... | stackv2 | /*
*
* ProEdit MP Multi-platform Programming Editor
* Designed/Developed/Produced by Adrian Michaud
*
* MIT License
*
* Copyright (c) 2019 Adrian Michaud
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... | 2.109375 | 2 |
2024-11-19T01:01:39.614856+00:00 | 2020-10-17T20:42:49 | d3e010ea83b0b5ed6f154eca401fbbd35af11987 | {
"blob_id": "d3e010ea83b0b5ed6f154eca401fbbd35af11987",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-17T21:23:56",
"content_id": "3103fea325a646a77bada0ff2e84b25b0084a4a8",
"detected_licenses": [
"MIT"
],
"directory_id": "adaef83f3709693f460367b9a62d95a008ad6d41",
"extension": "c"... | stackv2 | /* Copyright (C) StrawberryHacker */
#include "flash.h"
#include "hardware.h"
#include "serial.h"
void flash_set_access_cycles(u8 access_cycles) {
u32 reg = FLASH->FMR;
reg &= ~(0xF << 8);
reg |= (((access_cycles - 1) & 0xF) << 8);
FLASH->FMR = reg;
}
/*
* Performs an erase-write operation on a page... | 2.828125 | 3 |
2024-11-19T01:01:40.319561+00:00 | 2017-10-29T20:30:47 | 9afd4d2a3c2e5e384f155715498ffb14781ad81c | {
"blob_id": "9afd4d2a3c2e5e384f155715498ffb14781ad81c",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-29T20:30:47",
"content_id": "a2f5889a48de17c8f2e094be10e69f17205b8853",
"detected_licenses": [
"MIT"
],
"directory_id": "c77b68055ae8b6810d0dd0ca4ca94917f025ce36",
"extension": "c"... | stackv2 | /* Note: All malloc() objects or anything on the heap is phrase-aligned.
Objects on the stack are word-aligned. */
#include "tyrian.h"
#include <stdbool.h>
extern uint32_t gpu_register_dump[32];
char skunkoutput[256];
bool GPU_loaded = false;
op_stop_object *make_stopobj() {
op_stop_object *stopobj = calloc(... | 2.328125 | 2 |
2024-11-19T01:01:41.200264+00:00 | 2017-10-05T18:24:25 | df616d664823f578b8e4570ec7f04df181bc7f74 | {
"blob_id": "df616d664823f578b8e4570ec7f04df181bc7f74",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-05T18:24:25",
"content_id": "1d035675240ff5161ebc3d2693e77ec45f1dde8e",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "2c8317f9b74c33bd355b866f6df70c39097396f1",
"extens... | stackv2 | /**
@page text-rendering Text Rendering
@section simple Simple text rendering
The following complete example creates a window that displays "Hello, World" centered vertically and horizontally:
@code
...
label_t * label = label_new( "Hello, world", "Times New Roman", 36,
window_w... | 2.234375 | 2 |
2024-11-19T01:01:41.259428+00:00 | 2016-04-16T11:01:34 | 8fced895a934c55677816dcc742b524b35401d5c | {
"blob_id": "8fced895a934c55677816dcc742b524b35401d5c",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-16T11:01:34",
"content_id": "a310ad9447a14bfe09a458b67ad24f2747ec52b2",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "8d6bb00d12538f52f618d5a8e55ea945e89ba52d",
"extension":... | stackv2 | #pragma once
struct node_struct
{
struct node_struct * esq;
struct node_struct * dir;
int valor;
};
typedef struct node_struct node;
struct tree_struct
{
struct node_struct * raiz;
};
typedef struct tree_struct tree;
void liberar_memoria_impl ( node * node_ptr );
void liberar_memoria ( tree * tree_ptr );
tre... | 2.1875 | 2 |
2024-11-19T01:01:41.393128+00:00 | 2017-11-13T22:18:07 | 6fa8ef3b634d344e22d13142ba59d55730c85adc | {
"blob_id": "6fa8ef3b634d344e22d13142ba59d55730c85adc",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-13T22:18:07",
"content_id": "1fa86ffb0edb1187bddfca6a5a84f847b3c7dbea",
"detected_licenses": [
"ISC"
],
"directory_id": "90d097692e9295eb12779f079393a727798182a0",
"extension": "c"... | stackv2 | #include <string.h>
#include <switch.h>
static Handle g_hidServiceSession = INVALID_HANDLE;
static Handle g_hidIAppletResource = INVALID_HANDLE;
static SharedMemory g_hidSharedmem;
static Result _hidCreateAppletResource(Handle sessionhandle, Handle* handle_out, u64 AppletResourceUserId);
static Result _hidGetSharedMe... | 2.265625 | 2 |
2024-11-19T01:01:41.459629+00:00 | 2019-10-28T03:52:53 | 72ef2535d2f7c574b3f4025efe6cfd07edda951a | {
"blob_id": "72ef2535d2f7c574b3f4025efe6cfd07edda951a",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-28T03:52:53",
"content_id": "2c19fa3a8c2c2e6f10adf43d6b2de253b1abb374",
"detected_licenses": [
"MIT"
],
"directory_id": "f40846513e5195c5962a3dcc118aef04e90491d9",
"extension": "c"... | stackv2 | // WAP to print values of variable and thier addresses.
#include <stdio.h>
void main()
{
int rollno = 1;
float marks = 100;
double fees = 10000;
printf("Value of roll no : %d \n", rollno);
printf("Address of rollno: %d \n", &rollno);
printf("Value of marks : %f \n", marks);
printf("Addr... | 3.28125 | 3 |
2024-11-19T01:01:41.658047+00:00 | 2022-02-10T20:21:26 | a2e7a94574b695dd59e591ba5b06bab737d063f1 | {
"blob_id": "a2e7a94574b695dd59e591ba5b06bab737d063f1",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-10T20:21:26",
"content_id": "5ce3cbc3b09cdd854e4e40680e0e9250cf5ebc14",
"detected_licenses": [
"MIT"
],
"directory_id": "6245a585ab339ed209ee961b074d43ae8b59bc0c",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXLINE 1000
typedef struct lligada {
int valor;
struct lligada *prox;
} *LInt;
// 1
int length(LInt l) {
if(l == NULL) return 0;
else return (1 + length(l->prox));
}
// 2
void freeL(LInt l) {
while(l) {
LInt temp = l;
... | 3.1875 | 3 |
2024-11-19T01:01:42.025724+00:00 | 2023-08-28T04:11:27 | 114f69d549303999b19a1c439c8159ddf91e253b | {
"blob_id": "114f69d549303999b19a1c439c8159ddf91e253b",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T04:11:27",
"content_id": "320e30ea249e9f68f8dd1225ed7152514cb4addc",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "dda61c0050579ee53efb31ed3c79b95d2f18c370",
"extens... | stackv2 | // Copyright (C) 2019, 2023 Björn A. Lindqvist <bjourne@gmail.com>
#include <string.h>
#include "common.h"
#include "vector.h"
var_vector *
var_vec_init(size_t capacity, size_t el_size) {
var_vector *me = malloc(sizeof(var_vector));
me->array = malloc(el_size * capacity);
me->capacity = capacity;
me->u... | 3.015625 | 3 |
2024-11-19T01:01:42.090035+00:00 | 2018-06-07T00:55:07 | 30555c3cc43189cf74dd9fd1e14c55cf1138a22b | {
"blob_id": "30555c3cc43189cf74dd9fd1e14c55cf1138a22b",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-07T00:55:07",
"content_id": "623a6bfe362c8ca2904b82a30b6cb949f83c1157",
"detected_licenses": [
"MIT"
],
"directory_id": "719f4b508cec26e33f2e65aa0d55f409605bb38e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef void (*FUNC)(void*);
//change _array to _._array
//change _string to _.string
void* __array_array(int size)
{
void *ret = malloc(size*8 + sizeof(int))+sizeof(int);
((int*)ret)[-1] = size;
return ret;
}
void** __array_new(long int *aSize, int dim, ... | 2.9375 | 3 |
2024-11-19T01:01:42.210699+00:00 | 2018-11-24T16:59:52 | 0cdbde026184c614467f7787ac96206636e3ea10 | {
"blob_id": "0cdbde026184c614467f7787ac96206636e3ea10",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-24T16:59:52",
"content_id": "0cdf6d40959713d46ab58d6cc67d25acae8274c1",
"detected_licenses": [
"MIT"
],
"directory_id": "888a5fb122bb12e795f86f7346e0eb4ab822248b",
"extension": "c"... | stackv2 | #include "uncurl/uncurl.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "net.h"
#include "tls.h"
#include "http.h"
#include "ws.h"
#if defined(__WINDOWS__)
#include <winsock2.h>
#define strdup(a) _strdup(a)
#else
#include <arpa/inet.h>
#endif
#define LEN_IP4 16
#def... | 2.15625 | 2 |
2024-11-19T01:01:42.896746+00:00 | 2019-07-10T13:07:06 | 34d2098c6c72b1e4826e632104c5f589b915e4e2 | {
"blob_id": "34d2098c6c72b1e4826e632104c5f589b915e4e2",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-10T13:07:06",
"content_id": "9bab80262ce544e6b982f646e8dac4be83f8ef86",
"detected_licenses": [
"Apache-2.0",
"BSD-3-Clause"
],
"directory_id": "f83ef53177180ebfeb5a3e230aa29794f5... | stackv2 | /* Generated by ./xlat/gen.sh from ./xlat/routing_table_ids.in; do not edit. */
#include "gcc_compat.h"
#include "static_assert.h"
#if defined(RT_TABLE_UNSPEC) || (defined(HAVE_DECL_RT_TABLE_UNSPEC) && HAVE_DECL_RT_TABLE_UNSPEC)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((RT_TABLE_UNSPEC) == (0), "RT_TABLE_U... | 2.046875 | 2 |
2024-11-19T01:01:42.980270+00:00 | 2020-02-28T12:39:10 | 369944e2dcb3e17b8a6fee2dc2bae454522d353f | {
"blob_id": "369944e2dcb3e17b8a6fee2dc2bae454522d353f",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-28T12:39:10",
"content_id": "df082869d8a315827db0816e3c48ad0df287dee8",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "da3f79236626ccd0bab6cd002dd5cc4ca567a99e",
"extensio... | stackv2 | #ifdef RL_MPFR
real_t *r_init_array(int count)
{
int i;
real_t *a;
a = calloc(count, sizeof(real_t));
for (i=0; i < count; i++)
r_init(a[i]);
return a;
}
void r_zero_array(real_t *a, int count)
{
int i;
for (i=0; i < count; i++)
r_setd(a[i], 0.);
}
void r_free_array(real_t **a, int count)
{
int i;
... | 2.5 | 2 |
2024-11-19T01:01:43.433651+00:00 | 2019-11-29T06:11:15 | a5e90a18ecbe0eba2061b3a1764ad028cf2a190d | {
"blob_id": "a5e90a18ecbe0eba2061b3a1764ad028cf2a190d",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-29T06:11:15",
"content_id": "2b3889f2ac87f400d0ae4ad88193211e89618218",
"detected_licenses": [
"MIT"
],
"directory_id": "d00f423eb05bdf97ed5d479218827ad4f6f60128",
"extension": "c"... | stackv2 | /*
Slave
*/
//define the clock frequency of the micro controller for the delay to work correctly, 16Mhz
//==================================SERIAL TX START
#define F_CPU 16000000UL
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <string.h>
//=====================TX START============... | 3.015625 | 3 |
2024-11-19T01:01:43.493866+00:00 | 2019-09-05T11:59:29 | 760751751c06e309316e930610d89900b1bb2c0d | {
"blob_id": "760751751c06e309316e930610d89900b1bb2c0d",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-05T11:59:29",
"content_id": "458b6bdf3daddf55d13eb34e716bcc1b93fddbc7",
"detected_licenses": [
"MIT"
],
"directory_id": "ae18c969e61f573021cd6eed444987e40bf6b6a5",
"extension": "c"... | stackv2 | #include "volume-dwt.h"
#include <assert.h> // assert
#include "dwt-simple.h"
#include "libdwt.h"
#include "system.h" // dwt_util_memcpy_stride_s, dwt_util_alloc_aligned_ex_reliably
#include "dwt-sym.h" // cdf97_2f_dl_4x4_s
#include "inline.h" // dwt_cdf97_*_s coefficients, is_pow2
#include <stdint.h> // intptr_t
#incl... | 2.109375 | 2 |
2024-11-19T01:01:43.597092+00:00 | 2014-03-11T20:19:14 | d84ca64fec8197c7a763d59ad382e38a69e84a5a | {
"blob_id": "d84ca64fec8197c7a763d59ad382e38a69e84a5a",
"branch_name": "refs/heads/master",
"committer_date": "2014-03-11T20:19:14",
"content_id": "6e8281205385efef4520500f8f0943f42abcbe58",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "291b2f8a5ad2e61c3eb072451b8630a0c1585ac5",
"extens... | stackv2 | /*************************************************************************
* Author: Kai Ren
* Created Time: 2012-05-30 15:03:58
* File Name: ./metadb_insert_test.c
* Description:
************************************************************************/
#include "operations.h"
#include <time.h>
#include <assert.h>
#in... | 2.09375 | 2 |
2024-11-19T01:01:43.690421+00:00 | 2020-07-17T19:50:46 | 76dc4942b24c4d68ceee5dc65b0ef4840e9a6434 | {
"blob_id": "76dc4942b24c4d68ceee5dc65b0ef4840e9a6434",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-17T19:50:46",
"content_id": "64175eeae6a7ee233188dd137eef724fc24de5a9",
"detected_licenses": [
"MIT"
],
"directory_id": "c842ef107a4dbc26aa0166712c8cc3a3756a1bf9",
"extension": "c"... | stackv2 | //
// Need to clone the library package before:
// git clone https://github.com/RiddleAndCode/ATAES132
//
// Compile with
// gcc -g aes_tst.c -o aes_tst -I ../include/ ../build/src/libataes.a
//
// If library with debug is needed, compile with
// cd build
// cmake -DCMAKE_BUILD_TYPE=Debug ..
//
#include "... | 2.46875 | 2 |
2024-11-19T01:01:43.927823+00:00 | 2021-02-20T17:44:23 | 4c340b5054c5c698c3c32cb3992a52520954a659 | {
"blob_id": "4c340b5054c5c698c3c32cb3992a52520954a659",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-20T17:44:23",
"content_id": "47e13c76d81a92afc88b6ac40ae753f81f3bd724",
"detected_licenses": [
"MIT"
],
"directory_id": "d8cfcebbf801563d0b08dd1f5b492775d468b5f9",
"extension": "h"... | stackv2 | /** @file sds011.h
* SDS011 raw sensor library for the ESP-IDF.
*/
#ifndef _SDS011_H
#define _SDS011_H
#include "sds011_structs.h"
#include <esp_types.h>
#include "driver/gpio.h"
#include "driver/uart.h"
#include "freertos/FreeRTOS.h"
typedef enum {
/* No error occured. */
SDS011_OK = 0,
/* Another operati... | 2.28125 | 2 |
2024-11-19T01:01:44.034149+00:00 | 2018-12-13T07:37:39 | 2e863cf0209c6f2e917d1b268f84da0956e7ec9e | {
"blob_id": "2e863cf0209c6f2e917d1b268f84da0956e7ec9e",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-13T07:37:49",
"content_id": "2241d748b22b6461bdcce429a250e82bb7f217a5",
"detected_licenses": [
"MIT"
],
"directory_id": "f6da5c301a75ef2c549da0fc196c69442e87fb6a",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <assert.h>
#include <time.h>
#include "spec.h"
#include "input.h"
#include "mss.h"
int main(int argc, char *argv[]) {
if (argc != 3) {
fprintf(stderr, "expected 2 arguments\n");
return -1;
}
// get input filename and read input
int size;
int *data = read_input(argv[1], &size);
... | 2.765625 | 3 |
2024-11-18T23:10:54.774222+00:00 | 2023-03-21T23:49:44 | 124b3c0cae932387a34ce35703ac05f4900f1542 | {
"blob_id": "124b3c0cae932387a34ce35703ac05f4900f1542",
"branch_name": "refs/heads/master",
"committer_date": "2023-03-21T23:49:44",
"content_id": "01b0d25ff9bbfb2a1e09b4549511bbddb889a29b",
"detected_licenses": [
"MIT"
],
"directory_id": "b452bbb87214f174122f425f6f98f4c3890c3cca",
"extension": "c"... | stackv2 | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.... | 2.140625 | 2 |
2024-11-18T23:10:55.404629+00:00 | 2020-11-18T20:40:13 | 5fcd27886ce92c8cad5bbdb14eee131767722e1d | {
"blob_id": "5fcd27886ce92c8cad5bbdb14eee131767722e1d",
"branch_name": "refs/heads/main",
"committer_date": "2020-11-18T20:40:13",
"content_id": "c7bc6b5278b0f3fe636f49772fa03d715253e550",
"detected_licenses": [
"MIT"
],
"directory_id": "3f3514b33a558cfe1e23e73e97bb2622fb61d1af",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <conio.h>
#include <windows.h>
CRITICAL_SECTION cs;
DWORD WINAPI print(LPVOID param);
DWORD WINAPI print1(LPVOID param);
DWORD WINAPI print2(LPVOID param);
DWORD WINAPI print3(LPVOID param);
HANDLE hSemaphores[3];
#define SAFE_DELETE_HANDLE(a) if(a){CloseHandle(a);}
int main()
{
DWORD p... | 3 | 3 |
2024-11-18T23:10:55.726204+00:00 | 2015-06-06T00:05:04 | 9fea5878990d1bd5ab43539a135ec315a86b9a60 | {
"blob_id": "9fea5878990d1bd5ab43539a135ec315a86b9a60",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-06T01:51:24",
"content_id": "af50a38b8c8c5f357554e5e1c329b06dfe62f2d4",
"detected_licenses": [
"MIT"
],
"directory_id": "77e9f53b6cf2080ef5dbe6ae8ad0bb3679db68f1",
"extension": "c"... | stackv2 | #include <avr/interrupt.h>
#include <avr/io.h>
#include "defs.h"
// define the maximum of callback functions (max is 8)
#define MAX_CALLBACKS 2
// Prescaler: valid values are: 1, 8, 64, 256, 1024
// change this also where the timer is enabled
#define PRESCALER 256
#ifndef F_CPU
# error "ERROR: F_CPU not defined"
... | 2.984375 | 3 |
2024-11-18T23:10:55.996160+00:00 | 2021-03-18T15:26:27 | b0cfc7b18d9405d1911edd70091bfb567d0addfb | {
"blob_id": "b0cfc7b18d9405d1911edd70091bfb567d0addfb",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-18T15:26:27",
"content_id": "3b6b52fc7c5aecb312bc7ea13904fd9be70e5638",
"detected_licenses": [
"MIT"
],
"directory_id": "15f87f8fb5cb369f1ec9f3d84acc5e8514bddb52",
"extension": "c"... | stackv2 | /*
** EPITECH PROJECT, 2018
** executor
** File description:
** executor
*/
#include "42sh.h"
char *get_full_path(char *path, char *name)
{
char *str = malloc(my_strlen(path) + my_strlen(name) + 2);
int j = 0;
for (int i = 0; i < my_strlen(path); i++)
str[j++] = path[i];
if (str[j - 1] != '/')
str[j++] = '/'... | 2.828125 | 3 |
2024-11-18T23:10:56.235036+00:00 | 2016-03-19T23:27:42 | 277258d61d3824e3d62ce6fb3bbf2ec6e4cda500 | {
"blob_id": "277258d61d3824e3d62ce6fb3bbf2ec6e4cda500",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-19T23:27:42",
"content_id": "92ece6cd070675527df1c7f4a190a636dec0eb0d",
"detected_licenses": [
"MIT"
],
"directory_id": "6730acda422315460a3b8c88ad7faf7002ff2b96",
"extension": "h"... | stackv2 | /**
* (c) 2016 The LV1RE Project.
* Released under MIT license. Read LICENSE for more details.
*/
#pragma once
#include "common/types.h"
// Clock types
enum {
L1GPU_DEVICE_CLOCK_ID_INVALID = 0,
L1GPU_DEVICE_CLOCK_ID_NVCLK = 1, // nvclk
L1GPU_DEVICE_CLOCK_ID_GEOM_CLKSHADER_C... | 2.171875 | 2 |
2024-11-18T23:10:56.303283+00:00 | 2020-06-13T20:29:41 | ec90e3d20bb7c7940b7f0bc543496b7c4c53840a | {
"blob_id": "ec90e3d20bb7c7940b7f0bc543496b7c4c53840a",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-13T20:29:41",
"content_id": "971e12f943155c1035a374d7a2d5e260d7c8322d",
"detected_licenses": [
"MIT"
],
"directory_id": "3a2c0623d6859191cb91fecf5987ea36809542e8",
"extension": "c"... | stackv2 | /// MentOS, The Mentoring Operating system project
/// @file dirent.c
/// @brief Functions used to manage directories.
/// @copyright (c) 2019 This file is distributed under the MIT License.
/// See LICENSE.md for details.
#include "dirent.h"
#include "string.h"
#include "vfs.h"
#include "kheap.h"
#incl... | 2.703125 | 3 |
2024-11-18T23:10:56.386344+00:00 | 2016-08-08T04:10:35 | f28555fd2739d86d3e0abc1845ec2226164b8467 | {
"blob_id": "f28555fd2739d86d3e0abc1845ec2226164b8467",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-08T04:10:35",
"content_id": "b9e1bf3141ab9add3c6c94fdacf0c5ce990ec155",
"detected_licenses": [
"MIT"
],
"directory_id": "53e984a1825eaa54f5e63ed4f944de29a6eea0dc",
"extension": "h"... | stackv2 | /******************************************************************************
* Copyright (C) 2009 Zhang Lei. All rights reserved.
*
* 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... | 2.296875 | 2 |
2024-11-18T23:10:56.481116+00:00 | 2019-11-18T10:54:07 | 9a9c3f173d246b1a4882255803b81373c0e45ff2 | {
"blob_id": "9a9c3f173d246b1a4882255803b81373c0e45ff2",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-18T10:54:07",
"content_id": "e9f07cd1d9f8dfc359c283e7aa9c4fd186cdf652",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "05ccdc8a0d4f3166669994e12ab5c4b5dd614465",
"extens... | stackv2 | /* $Id: //depot/blt/lib/libc/string.c#4 $
**
** Copyright 1998 Brian J. Swetland
** 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 c... | 2.21875 | 2 |
2024-11-18T23:10:56.580762+00:00 | 2021-03-25T15:30:44 | 48c270d3b8628879fe1cf7545c0cfc4c792efbf5 | {
"blob_id": "48c270d3b8628879fe1cf7545c0cfc4c792efbf5",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-25T15:31:23",
"content_id": "fda006ab5fcfeabe1a5b91d6b9579d50421c854c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "5d5143404c17ffc8b68170bb267de0c283b1c8a2",
"extens... | stackv2 | /*-
* Copyright (c) 2017--2018, 2020 Robert Clausecker. 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... | 2.265625 | 2 |
2024-11-18T23:10:57.924084+00:00 | 2023-08-20T16:43:36 | e5e282397aecf41eedc17dcc7c940709e2d9947a | {
"blob_id": "e5e282397aecf41eedc17dcc7c940709e2d9947a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-20T16:43:36",
"content_id": "71a84798901094286511e78d9bedbce2cb7cc7f7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "d275aa0eed3d1e8640d89029f3a1467463909e6b",
"extensio... | stackv2 | // EVMC: Ethereum Client-VM Connector API.
// Copyright 2019 The EVMC Authors.
// Licensed under the Apache License, Version 2.0.
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "host.h"
static JavaVM* jvm;
int evmc_java_set_jvm(JNIEnv* jenv)
{
return (*jenv)->GetJavaVM(jenv, &jvm);
}
stat... | 2.0625 | 2 |
2024-11-18T23:10:58.249675+00:00 | 2016-06-13T11:03:16 | 28667c18a453196f36ef0ca901a302301b721256 | {
"blob_id": "28667c18a453196f36ef0ca901a302301b721256",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-13T11:03:16",
"content_id": "163cc2b327a0e7300953c5a3d99cee70f1bf2f8f",
"detected_licenses": [
"ISC"
],
"directory_id": "9d6859da50a88598ecdeb64b08c54c65a6197115",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2014 CNRS/LAAS
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... | 2.171875 | 2 |
2024-11-18T23:10:58.710342+00:00 | 2018-05-13T12:36:05 | 1da09657e2fc9c9fcbb329bc9396c5f13cec6bd5 | {
"blob_id": "1da09657e2fc9c9fcbb329bc9396c5f13cec6bd5",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-13T12:36:05",
"content_id": "eaa7598ae8c7a136e13c4261f20a9572999fa0c4",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "3bcd1ab70fbb8e5b56a80ce31038aaff3c212603",
"extens... | stackv2 |
#include "HQSTcpService.h"
// 创建PCB
void TcpServiceCreate(TcpServiceHQSPCBIP_t *namePcbIP)
{
struct tcp_pcb *pcb;
namePcbIP->namePcb = tcp_new(); //创建PCB
if (namePcbIP->namePcb)
{
tcp_setprio(namePcbIP->namePcb , TCP_PRIO_MIN); //设置优先及
tcp_bind(namePcbIP->namePcb, IP_ADDR_ANY, namePcbIP->local_port); //绑定本地... | 2.5 | 2 |
2024-11-18T23:10:59.055351+00:00 | 2021-10-31T01:45:27 | 358640589b1d5e21ffb2895149911196b6c02598 | {
"blob_id": "358640589b1d5e21ffb2895149911196b6c02598",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-31T01:45:27",
"content_id": "aaaf9101713e25fc1b151534a07edd2504b066c5",
"detected_licenses": [
"MIT"
],
"directory_id": "7c1e47fa1d2b41150474ae596da0a88e6931ff5d",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "Esoteric_Fun_Miscellaneous.h"
// Worst case performance O(n**2.709) or O(n**(log 3 / log 1.5))
// Best case performance O(n**2.709) or O(n**(log 3 / log 1.5))
// Average case performance O(n**2.709) or O(n**(log 3 / log 1.5))
void StoogeSort(long int array[], int i,... | 3.359375 | 3 |
2024-11-18T23:10:59.216191+00:00 | 2021-08-06T17:21:01 | e98f2b8a41099f77873875032db3bd119af1885a | {
"blob_id": "e98f2b8a41099f77873875032db3bd119af1885a",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-06T17:21:01",
"content_id": "d440b90a4e2f392aa4db1069f12ea7fa081e2599",
"detected_licenses": [
"MIT"
],
"directory_id": "fa89b9d6192facde3991d6f8f2eab168b1e35fcb",
"extension": "c",
... | stackv2 | /* qsort for an array of pointers
the behaviour of the algorithm is similar
to that basic version that works with int, floats
and related types
the main difference is that the comparison
between the middle element of partison and the
other partision elems is done by using strcmp, since
we a... | 3.671875 | 4 |
2024-11-18T23:10:59.414959+00:00 | 2020-12-10T15:03:46 | 25985333242353b5d6c4f3bcbac80fcde6eeedad | {
"blob_id": "25985333242353b5d6c4f3bcbac80fcde6eeedad",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-10T15:03:46",
"content_id": "bc2d743d8c90444e41824eba818a0d50e75e3a8d",
"detected_licenses": [
"MIT"
],
"directory_id": "6892eaeedd0b36c9b2faaf54f1b0935af7ea2bed",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* check_commands.c :+: :+: :+: ... | 2.484375 | 2 |
2024-11-18T23:10:59.540564+00:00 | 2022-01-07T12:45:56 | 4ae7aeb2421065106920fb495803bc0ecb6bda7d | {
"blob_id": "4ae7aeb2421065106920fb495803bc0ecb6bda7d",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-07T12:45:56",
"content_id": "5cbe6bd1121262d96ee04228e6858fa9b091990b",
"detected_licenses": [
"MIT"
],
"directory_id": "0ffee91efd45c4f44fe9c8e240dcfef6c5a57266",
"extension": "c"... | stackv2 | /*
* Created by Tarachand verma on 01/04/14.
*
*/
#include <xml_core.h>
#include <expat.h>
#include <stdio.h>
#include <string.h>
#include <token_utils.h>
#include "apr_strings.h"
#define BUFFSIZE 8192
#ifdef XML_LARGE_SIZE
#if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
#define XML_FMT_INT_MOD "I64"
#else
... | 2.296875 | 2 |
2024-11-18T23:10:59.748794+00:00 | 2022-03-12T03:16:16 | 76b9dc3193aab615859bbf37092406a7d79d3d6c | {
"blob_id": "76b9dc3193aab615859bbf37092406a7d79d3d6c",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-12T03:16:16",
"content_id": "4a9011892dd961dad4c28af33253c2112512a246",
"detected_licenses": [
"MIT"
],
"directory_id": "e912c5622fb8d5867cf7bf760d53871e79534310",
"extension": "c"... | stackv2 | #include "ping.h"
#include <stdint.h>
#include "bootloader_can.h"
#include "bootloader_datagram_defs.h"
#include "can_datagram.h"
#include "config.h"
#include "dispatcher.h"
// response config datagram setup
static uint8_t s_board_id;
static CanDatagramTxConfig s_response_config = {
.dgram_type = BOOTLOADER_DATAGR... | 2.03125 | 2 |
2024-11-18T23:10:59.934657+00:00 | 2022-07-02T11:17:44 | 0a35ea62373ff968761d3bb5c359560b342f6b3a | {
"blob_id": "0a35ea62373ff968761d3bb5c359560b342f6b3a",
"branch_name": "refs/heads/master",
"committer_date": "2022-07-02T11:17:44",
"content_id": "dbc42ac51928a7a3607041c8bb5cecb290efaf96",
"detected_licenses": [
"Unlicense"
],
"directory_id": "03b2c80dbc41e904b167d504666e27d798da5447",
"extension... | stackv2 | #include "eval_stack.c"
#include "array.h"
#include "bignum.h"
#include "callname.h"
#include "character.h"
#include "clos.h"
#include "code.h"
#include "common.h"
#include "condition.h"
#include "constant.h"
#include "copy.h"
#include "degrade.h"
#include "ratio.h"
#include "reader.h"
#include "package.h"
#include "pa... | 2.0625 | 2 |
2024-11-18T23:11:00.075435+00:00 | 2017-05-25T11:35:27 | 4d138a657b3ec7eafead2f3819b31f095981e66e | {
"blob_id": "4d138a657b3ec7eafead2f3819b31f095981e66e",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-25T11:35:27",
"content_id": "7b7e95c2940288c6d30adfc9c18238285909b82e",
"detected_licenses": [
"MIT"
],
"directory_id": "f294b1ad756ef2b07d4def66f2ff9e8f02454a20",
"extension": "c"... | stackv2 | /*
* The MIT License (MIT)
*
* Copyright (c) <2017> <Stephan Gatzka>
*
* 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 t... | 2.203125 | 2 |
2024-11-18T23:11:00.226468+00:00 | 2023-07-16T12:49:50 | 6b32b7e17bc1b373e2e1c79e3c7d4c34b45334a5 | {
"blob_id": "6b32b7e17bc1b373e2e1c79e3c7d4c34b45334a5",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-16T12:50:51",
"content_id": "583bd59d89209722bc40c58fc8e39d5ac27adcc0",
"detected_licenses": [
"CC0-1.0",
"MIT"
],
"directory_id": "ab89913eb597c6bb90cf15f87e7b95dff80d7d39",
"... | stackv2 | // SPDX-License-Identifier: MIT
//
// Copyright (c) 2008-2011, 2019, 2022 Antonio Niño Díaz
//
// This file is part of Nitro Engine
#ifndef NE_GENERAL_H__
#define NE_GENERAL_H__
#include <nds.h>
#include "NEMain.h"
/// @file NEGeneral.h
/// @brief Init 3D mode and process functions.
/// @defgroup general_utils ... | 2.375 | 2 |
2024-11-18T23:11:00.578652+00:00 | 2019-10-16T10:06:08 | 4789188bc1e64c8bb7aa4168ad0f9f8b42b86c3d | {
"blob_id": "4789188bc1e64c8bb7aa4168ad0f9f8b42b86c3d",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-16T10:06:08",
"content_id": "1d92d623831b71b789e0bdd0b4d4c65824f86806",
"detected_licenses": [
"MIT"
],
"directory_id": "0a713b9d8bd452c53103ecad96d5ecb4ba32ada8",
"extension": "c"... | stackv2 | #include <stdio.h>
#include "get_opt.h"
#include "util.h"
#include "lexer.h"
#include "parser.h"
#include "compiler.h"
#include "vm.h"
#include "foreach.h"
int printerror(char *msg, int return_value)
{
fprintf(stderr, "ERROR: %s\n", msg);
return (return_value);
}
void *syntax_error(char *msg)
{
if (msg)
fpr... | 2.828125 | 3 |
2024-11-18T23:11:00.668585+00:00 | 2018-09-24T07:09:51 | 71b1f239d273f78888e7543b54ffddcb2198a5b4 | {
"blob_id": "71b1f239d273f78888e7543b54ffddcb2198a5b4",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-24T07:09:51",
"content_id": "e82e6b104b8d4f0cc3a8c9ce5eea4b674bffaf07",
"detected_licenses": [
"MIT"
],
"directory_id": "669e68e76f4faed7ce0b3fb9673c9ae7138ff135",
"extension": "c"... | stackv2 | /******************** Copyright wisearm.com *********************************
* File Name : Gap.cpp
* Author : 吴创明(aleyn.wu)
* Version : V1.0.1
* Create Date : 2010-09-16
* Last Update : 2016-01-12
* Description : GAP firmware library.
*************************************... | 2.171875 | 2 |
2024-11-18T23:11:00.760662+00:00 | 2016-08-17T21:32:21 | 1e05d3ebb87a68b03c820af241ae2c40c8073f11 | {
"blob_id": "1e05d3ebb87a68b03c820af241ae2c40c8073f11",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-18T17:12:30",
"content_id": "47d8dedac5986c0da834a46b0663d927990fa9a4",
"detected_licenses": [
"MIT",
"BSD-3-Clause"
],
"directory_id": "b0a4a2a8532d934f9d69dad010ce7372d27ad37d"... | stackv2 | #include <ddk/device.h>
#include <ddk/driver.h>
#include <ddk/binding.h>
#include <ddk/protocol/usb-bus.h>
#include <ddk/protocol/usb-hci.h>
#include <stdlib.h>
#include <string.h>
#include "generic-hub.h"
#include "usb-device.h"
#include "usb-private.h"
typedef struct usb_bus {
mx_device_t device;
// device... | 2.171875 | 2 |
2024-11-18T23:11:02.271439+00:00 | 2020-08-27T13:28:25 | 5c01bf18d1249a77cdac7dce0e52fdd0bfe6bd13 | {
"blob_id": "5c01bf18d1249a77cdac7dce0e52fdd0bfe6bd13",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-27T13:28:25",
"content_id": "a281e18f3f8018633339b99395189b8e51266b9d",
"detected_licenses": [
"MIT"
],
"directory_id": "e2e66ca71a08a6b9ee83b95aa125cecae0decf8e",
"extension": "c"... | stackv2 | #include <fcntl.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include "midi_parser.h"
bool addNode(NoteList *list, Note *data)
{
if (!data)
return (false);
for (; list->note && list->next; list = list->next);
if (list->note) {
list->next = malloc(sizeof(... | 2.71875 | 3 |
2024-11-18T23:11:03.056012+00:00 | 2015-08-13T02:28:22 | 9824ce15568f690dc20f47d6f133320640aa7de2 | {
"blob_id": "9824ce15568f690dc20f47d6f133320640aa7de2",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-13T02:28:22",
"content_id": "768c97891b2279065c757e81d4558006cbb68336",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "75f99d43e179876d51844fb992b46fae... | stackv2 | /*
* $Id$
*
Copyright (c) 2006-2014 Chung, Hyung-Hwan. 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
notic... | 2.046875 | 2 |
2024-11-18T23:11:03.121539+00:00 | 2023-01-19T06:59:58 | 8cd9753e9a6233e76209eeb17e5b10838911f915 | {
"blob_id": "8cd9753e9a6233e76209eeb17e5b10838911f915",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-19T06:59:58",
"content_id": "819de1c04d4262eb0cf06560d9e820b1883cf545",
"detected_licenses": [
"MIT"
],
"directory_id": "06a10b6d4309e52dfe1d1ad5c2db512b98a46417",
"extension": "h"... | stackv2 |
/* The MIT License
Copyright (c) 2020 by ggetchev
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, modify... | 2.140625 | 2 |
2024-11-18T23:11:03.194159+00:00 | 2019-05-09T05:30:48 | b75067c9be27b4d82d24d8e746fb4b2b258b1a18 | {
"blob_id": "b75067c9be27b4d82d24d8e746fb4b2b258b1a18",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-09T05:30:48",
"content_id": "610ea63cfbb5404923f85c26c054a16b811d4f66",
"detected_licenses": [
"MIT"
],
"directory_id": "da6ce15446b555a70a5ac5a7521b55da087c0d9b",
"extension": "c"... | stackv2 | //
// rpc_service.c
// xdag
//
// Created by Rui Xie on 3/29/18.
// Copyright © 2018 xrdavies. All rights reserved.
//
#include "rpc_service.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#if !defined(_WIN32) && !defined(_WIN64)
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
#includ... | 2.09375 | 2 |
2024-11-18T23:11:05.286354+00:00 | 2014-08-16T13:50:22 | e0e1972b675a160da4c77e1459790c0533146df2 | {
"blob_id": "e0e1972b675a160da4c77e1459790c0533146df2",
"branch_name": "refs/heads/master",
"committer_date": "2014-08-16T13:50:22",
"content_id": "2de8a71424fe66563ed9ffc0dcd8b4633549a01d",
"detected_licenses": [
"MIT"
],
"directory_id": "616d75bdf1faff9d519bd027d2649b216124f197",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <ctype.h>
#include <err.h>
#include "config.h"
#include "utils.h"
#include "list.h"
#define LINE_SIZE 1024
#define COMMENT_DELIMITER '#'
typedef enum {
VARIABLES,
NETWORKS,
CLIENTS
} config_context_t;
ty... | 2.25 | 2 |
2024-11-18T23:11:05.452081+00:00 | 2021-07-28T15:28:26 | 67ddcd6388a74bbde61f44de782c5dd58196f332 | {
"blob_id": "67ddcd6388a74bbde61f44de782c5dd58196f332",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-28T15:28:26",
"content_id": "e5a3cf13d229220e653c76cca81610acf09514cf",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "63baa72eacddc957d9d7ba9c7fd91e94079351f8",
"extens... | stackv2 | /**
* Copyright (C) Mellanox Technologies Ltd. 2001-2018. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#ifndef UCS_PROFILE_ON_H_
#define UCS_PROFILE_ON_H_
#include "profile_defs.h"
#include <ucs/sys/compiler_def.h>
#include <ucs/sys/preprocessor.h>
#include <ucs/config/global_opts.h>
BEGIN_C_DECLS
/**... | 2.203125 | 2 |
2024-11-18T23:11:05.705971+00:00 | 2023-04-21T14:49:33 | ec6ac5584de1967fc6b87be7580a0b289c055e6c | {
"blob_id": "ec6ac5584de1967fc6b87be7580a0b289c055e6c",
"branch_name": "refs/heads/main",
"committer_date": "2023-04-21T14:49:33",
"content_id": "62aed0a18f19ab5aa4f8ea1ee0432d5514f98d40",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8215df22b1ac8ce054f78f81ba55c1ad1f2c1a9f",
"extension"... | stackv2 | // Copyright 2021 Google LLC.
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 2.3125 | 2 |
2024-11-18T23:11:05.901215+00:00 | 2023-04-16T13:33:31 | 0330f3af6c515f598e8e287fff08d51785125924 | {
"blob_id": "0330f3af6c515f598e8e287fff08d51785125924",
"branch_name": "refs/heads/main",
"committer_date": "2023-04-16T13:33:31",
"content_id": "68a1446710e9ba8ef251ded4a2bb55538cef4f31",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "869e1cee7b2d74565848697eec65d28c6219e57d",
"extensio... | stackv2 | /*
* Copyright 2018 Jonathan Dieter <jdieter@gmail.com>
*
* 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 of conditions... | 2.421875 | 2 |
2024-11-18T23:11:06.032120+00:00 | 2019-01-28T05:26:07 | e4cd72bdd3711d089d24e10e89b3af697de61ebd | {
"blob_id": "e4cd72bdd3711d089d24e10e89b3af697de61ebd",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-28T05:26:07",
"content_id": "543259d1e1ad57f7c9be78b223b4b6f0421fbe3a",
"detected_licenses": [
"MIT"
],
"directory_id": "e3302c2f36ec77379dcb2bdda42beac25579b13e",
"extension": "h"... | stackv2 | #ifndef MATRIX_H
#define MATRIX_H
#include <stdbool.h>//type definition for bool
#include <stdlib.h>//#define NULL and malloc
#include <assert.h>//assertions
#include <stdint.h>
typedef uint8_t Uint8;//a character will be an unsigned 8 bit integer
/*
Matrix is a 2-D, dynamically allocated character(Uint8) array
As o... | 3.0625 | 3 |
2024-11-18T23:11:06.090993+00:00 | 2021-05-31T05:40:59 | 695599852e6a71e36ddc3f7b1e57b0cf188e6afd | {
"blob_id": "695599852e6a71e36ddc3f7b1e57b0cf188e6afd",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-31T07:34:23",
"content_id": "010cc0b60d8b4c01bf3e78e61048aa58f3149fd6",
"detected_licenses": [
"MIT"
],
"directory_id": "731fc2ed9f830901cf1ae3482dccfdc4185734dc",
"extension": "c",
... | stackv2 | //
// IUT de Nice / Departement informatique / Projet tuteuré
// Annee 2008_2009 -
//
// Projet Booble - Fonction strupr
//
// But de cette fonction : Portabilité Macintosh
//
//
// Auteurs : FOUCO Charles, SOUQUET Leo, BOOS Gael et HULIN Cédric
//
#include "boogle.h"
void strupr(char chaine[7])
{
int i... | 2.5 | 2 |
2024-11-18T23:11:06.470182+00:00 | 2021-12-08T20:30:08 | a67b8d31eeb6941894e080237b1e9a047493b764 | {
"blob_id": "a67b8d31eeb6941894e080237b1e9a047493b764",
"branch_name": "refs/heads/develop",
"committer_date": "2021-12-08T20:30:08",
"content_id": "2b755a07d53911ea1743c8f4ba8feb2d8cbadcba",
"detected_licenses": [
"MIT"
],
"directory_id": "904a121225c10c3853404619bb772e65a5265f0d",
"extension": "h... | stackv2 | /*
* private.h logging private definitions
*
* Copyright (C) 2000-2002, 2004, Jason L. Shiffer <jshiffer@zerotao.com>. All Rights Reserved.
* See file COPYING for details.
*
* $Id: zt_log_private.h,v 1.2 2003/06/09 13:42:12 jshiffer Exp $
*
*/
/* Private interface to log
* You should NOT access this d... | 2.046875 | 2 |
2024-11-18T23:11:06.558445+00:00 | 2020-05-11T12:19:51 | 84c32a1a333673c18170a47541571e48ef0f9b63 | {
"blob_id": "84c32a1a333673c18170a47541571e48ef0f9b63",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-11T12:19:51",
"content_id": "8629d6adccdbf4063d356cb6cfbf5c34a9494a01",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9e405df712dc5fdb29fb3bf023fe2ac45ddf61df",
"extensio... | stackv2 | /*
* @Author: cpu_code
* @Date: 2020-05-06 19:53:46
* @LastEditTime: 2020-05-06 20:37:14
* @FilePath: \linux_network\UNIX_net\tcp\tcp_cli.c
* @Gitee: https://gitee.com/cpu_code
* @CSDN: https://blog.csdn.net/qq_44226094
*/
#include "unp.h"
/**
* @function: TCP回射客户
* @parameter:
* @return:
* success:
... | 2.65625 | 3 |
2024-11-18T23:11:06.667260+00:00 | 2015-01-29T07:56:43 | 5f1285014b002c7082465f3e84be970ceda60702 | {
"blob_id": "5f1285014b002c7082465f3e84be970ceda60702",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-29T07:56:43",
"content_id": "bf7ae7ad7e0238bb548afbc2e62b427c1b05dc24",
"detected_licenses": [
"NCSA"
],
"directory_id": "78b8d1f419adebdef1b0da4d4a4fd45e1c453953",
"extension": "c... | stackv2 | /*
* =====================================================================================
*
* Filename: abort.c
*
* Description:
*
* Version: 1.0
* Created: 2014年02月08日 20时38分14秒
* Revision: none
* Compiler: gcc
*
* Author: Xiao Qixue (XQX), xiaoqixue_1@16... | 2.3125 | 2 |
2024-11-18T23:11:07.297031+00:00 | 2020-12-30T20:26:36 | 0a80ef017eea99e08d100ca5ec1dabee0d4b60ae | {
"blob_id": "0a80ef017eea99e08d100ca5ec1dabee0d4b60ae",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-30T20:26:36",
"content_id": "8badd5e5f4151f6b8eff9eea17b9aa2e8748d814",
"detected_licenses": [
"MIT"
],
"directory_id": "4f42db903b7ec3b217ccc52075bba445acc33eea",
"extension": "c"... | stackv2 | #include "mex.h"
#include "matrix.h"
/* compile with -largeArrayDims flag */
/* to use "mwSize", need matrix.h, but doesn't work for R2006a */
/* So, use the following definitions instead: */
#ifndef mwSize
#define mwSize size_t
#endif
#ifndef mwIndex
#define mwIndex size_t /* should make it compatible w/ 64... | 2.375 | 2 |
2024-11-18T23:11:07.806707+00:00 | 2020-07-20T09:42:36 | 5a39a5b32c1c3a7c6e8abcbc070930d8cef6832b | {
"blob_id": "5a39a5b32c1c3a7c6e8abcbc070930d8cef6832b",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-20T09:42:36",
"content_id": "214558c956ba9d488eaffcf8df5b90a6a555b76b",
"detected_licenses": [
"MIT"
],
"directory_id": "484555cca3f0431f9cdc35705f049a4627b293b5",
"extension": "c"... | stackv2 | /*
* Filename: student/student.h
* Author: AivenLi
* Copyright 2019-2020 Aiven.Li All rights reserved.
*
* 声明:
* 1. 本软件的所有内容仅供个人学习,不保证内容的正确性。通过使用本软件
* 随之而来的风险与作者无关。当使用本软件时,代表你已接受作者的免费声明等条款。
* 2. 未经作者允许,不可用作商业用途,否则后果自负。
*/
#include "student.h"
#include "../input/myinput.h"
#include <stdio.h>
#include ... | 2.546875 | 3 |
2024-11-18T23:11:07.868723+00:00 | 2018-01-31T01:42:37 | 764bf413b904fe6557b429bea1e3bfb602c4a921 | {
"blob_id": "764bf413b904fe6557b429bea1e3bfb602c4a921",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-31T01:42:37",
"content_id": "26e6ef175b0771d40907667d4c2a84b5442c04ff",
"detected_licenses": [
"MIT"
],
"directory_id": "e054e6e7eb5bf0df1242078ebf5293edb2dd79ad",
"extension": "c"... | stackv2 | // Room: /d/city/jitan.c
inherit ROOM;
void create()
{
set("short", "祭壇");
set("long", @LONG
這是一片寬闊的小廣場,廣場的中間是皇家的祭壇(altar),每年
朝廷慶祝豐收或祈禱的重大典禮都在這裏舉行,皇上、皇后和文武百
官能上祭壇,其他人只能從旁邊繞過去。除了禁衛軍的官兵和宮裏的
雜役偶爾出入外,很少有人來往。往南是紫禁城的神武門,北面是一
個非常熱鬧的十字路口。
LONG
);
set("exits", ([
"south" : "/d/city/shenwumen",
"north" : "/d/city/stree... | 2.375 | 2 |
2024-11-18T23:11:08.187235+00:00 | 2017-02-11T10:09:23 | 4ecc47eaf05577a27a33b1a70db0263572b61391 | {
"blob_id": "4ecc47eaf05577a27a33b1a70db0263572b61391",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-11T10:09:23",
"content_id": "16ca3b018a84343b24869073322ef79da88a1a1a",
"detected_licenses": [
"MIT"
],
"directory_id": "9b3d4e886ce5f46cbac93b5da56b8c54f32a8a28",
"extension": "c"... | stackv2 | // Cameron Coats / Group 3
// EN0627 / NXP Car
//
// Periodic Interrupt Timer Driver
#include "MKL25Z4.h"
#include "PITDriver.h"
extern void startImageCapture(void);
void initPIT(){
// Disable all interrupts before configuring
__disable_irq();
// Disable IRQ 22 (PIT)
NVIC->ICER[0] = 1 << 22;
// Enab... | 2.265625 | 2 |
2024-11-18T23:11:08.265734+00:00 | 2023-02-23T13:08:52 | 865c3268b7caa9bad2bbaff66ab63f74d022ea5f | {
"blob_id": "865c3268b7caa9bad2bbaff66ab63f74d022ea5f",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-23T13:08:52",
"content_id": "673e019dffa84f4a5d0e3ad5636f2ba5841401ea",
"detected_licenses": [
"MIT"
],
"directory_id": "722c0a166c811e66a4a77f6cd985e0ecf5140123",
"extension": "c"... | stackv2 | /*------------------------------------------------------------------
* wcscat_s.c
*
* September 2017, Reini Urban
*
* Copyright (c) 2017 by Reini Urban
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* file... | 2.109375 | 2 |
2024-11-18T23:11:08.623058+00:00 | 2022-03-07T15:05:12 | 1678a022e0ab9342dcac9a278d05c74466b7b914 | {
"blob_id": "1678a022e0ab9342dcac9a278d05c74466b7b914",
"branch_name": "refs/heads/master",
"committer_date": "2022-03-07T15:05:12",
"content_id": "fb5109f8d3635fa11b982de19c70d375e9308957",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e7ec7b412b00db400227521d961d92d092c38ca0",
"extensio... | stackv2 | /*
* gensym.c --- LFE `gensym' hack.
*
* Copyright (c) 2018 Paul Ward <asmodai@gmail.com>
*
* Author: Paul Ward <asmodai@gmail.com>
* Maintainer: Paul Ward <asmodai@gmail.com>
* Created: 09 Jan 2018 00:27:52
*/
/* {{{ License: */
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* yo... | 2.109375 | 2 |
2024-11-18T23:11:10.649688+00:00 | 2019-05-12T21:40:24 | 342be96e8aaee3f1d7235b2827751c68c33b208a | {
"blob_id": "342be96e8aaee3f1d7235b2827751c68c33b208a",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-12T21:40:24",
"content_id": "71d4a8a7ca26995bda05687c5189f4110b75b1e9",
"detected_licenses": [
"MIT"
],
"directory_id": "29a5fbccfae929a0ff06767100d2587210f80b15",
"extension": "c"... | stackv2 | #define FUSE_USE_VERSION 29
#include <fuse.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdio.h>
#include <sys/types.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <signal.h>
#ifndef _MSC_VER
#include <unistd.h>
#endif
#include "logging.h"
#include "config.h"
#incl... | 2.140625 | 2 |
2024-11-18T23:11:15.250671+00:00 | 2021-06-30T14:34:17 | 908548d1ca2550ada21b1ab326a6a82e47b9b26b | {
"blob_id": "908548d1ca2550ada21b1ab326a6a82e47b9b26b",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-30T14:34:17",
"content_id": "133866aba6d5572fc7ad3c32b0a0dcc2cec3ba18",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0777f1e60ff8792e506589ce4ddab4bb23d5be3b",
"extens... | stackv2 | #include "melissa_output.h"
#include <netcdf.h>
#include <unistd.h>
// for debugging:
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef __DEBUG // TODO: check if this is the correct debug symbol
#define D(x ...) printf("++++++++:"); printf(x); printf(" %s:%d\n", __FILE__, __LINE__)
#else
#define D(..... | 2.21875 | 2 |
2024-11-18T23:11:15.369840+00:00 | 2021-02-24T20:12:47 | a80175a45e52dd70844fbe4f9decaafc7d437661 | {
"blob_id": "a80175a45e52dd70844fbe4f9decaafc7d437661",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-24T20:12:47",
"content_id": "f9bcb38b8def5df0a755ec7b755df3a34482f4d2",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "2fff83d018d0b022bab9797c7fb13711b1d9accf",
"extension":... | stackv2 | #include <cmath>
#include <ctime>
#include <cstdlib>
#include <sstream>
#include <libtensor/core/allocator.h>
#include <libtensor/dense_tensor/dense_tensor.h>
#include <libtensor/dense_tensor/dense_tensor_ctrl.h>
#include <libtensor/dense_tensor/tod_select.h>
#include <libtensor/dense_tensor/impl/tod_select_impl.h>
#in... | 2.375 | 2 |
2024-11-18T23:11:15.836032+00:00 | 2019-05-23T18:08:47 | 83c610f01dca777f47853f71465535aae69969aa | {
"blob_id": "83c610f01dca777f47853f71465535aae69969aa",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-23T18:08:47",
"content_id": "76cc961f27ad23b48f7a08da69d9633b509a86ca",
"detected_licenses": [
"MIT"
],
"directory_id": "4d729276441236430df2d500ef0f0f7961d9ae6d",
"extension": "h"... | stackv2 | #ifndef SIECBRAMEK_LOGICAL_CIRCUIT_H
#define SIECBRAMEK_LOGICAL_CIRCUIT_H
#include "node.h"
struct logical_circuit_t {
int output_id;
Node* nodes;
};
typedef struct logical_circuit_t Logical_circuit;
struct input_state_t {
int input_id;
int input_value;
struct input_state_t *next;
};
typedef stru... | 2.25 | 2 |
2024-11-18T23:11:16.115906+00:00 | 2021-04-21T02:56:33 | 349ca36b84fe6cd382507398365f19a443b2776f | {
"blob_id": "349ca36b84fe6cd382507398365f19a443b2776f",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-21T02:56:33",
"content_id": "64375b040664f1bc45c1192ad948b481606fce80",
"detected_licenses": [
"MIT"
],
"directory_id": "558505f54712171fb5abe4577588029737fda66e",
"extension": "c",
... | stackv2 | #include "ftp_client_helper_function.h"
bool verify_ip_address(char *ip_address_or_hostname){
struct sockaddr_in sa;
int result = inet_pton(PF_INET, ip_address_or_hostname, &(sa.sin_addr));
return result != 0;
}
//returns an array
char** string_splitter(char *string_to_be_split, const char delimiter){
char ... | 2.90625 | 3 |
2024-11-18T23:11:16.345754+00:00 | 2023-08-17T21:51:22 | e14842aa6047ef82a32086676cdd6cb4fcf00b92 | {
"blob_id": "e14842aa6047ef82a32086676cdd6cb4fcf00b92",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-17T21:51:22",
"content_id": "97eb2089102755b03f98c62f698103e42f0a7be6",
"detected_licenses": [
"MIT"
],
"directory_id": "80f3b23dce2738ff296d938a16b9f5bc8a7773f2",
"extension": "c"... | stackv2 | /* Função : Exemplo do uso de pilhas
/ Autor : Edkallenn
/ Data : 12/06/2012
/ Observações: Pilha como vetor
*/
#include <stdio.h>
#include <stdlib.h>
#define TAM 50 // número máximo de elementos
struct pilha {
int n; // vet[n]: primeira posição livre do vetor
float vet[TAM]; // vet[n-1]: topo da ... | 3.75 | 4 |
2024-11-18T23:11:16.414417+00:00 | 2015-09-07T22:22:50 | a813215bf9b9b1a495316748e9156e99878b5211 | {
"blob_id": "a813215bf9b9b1a495316748e9156e99878b5211",
"branch_name": "refs/heads/master",
"committer_date": "2015-09-07T22:26:51",
"content_id": "7aef348c25d2eecb351cfa781cf22825b6730b52",
"detected_licenses": [
"MIT"
],
"directory_id": "fb943a84f50251fc0353c053e25d3c84b997b16c",
"extension": "c"... | stackv2 | /*********************************************************************
*
* 17.11.09
*
* Bertrand CHAZOT
*
************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "lecture.h"
void lecture(int argc, char *argv[], Sommet **somme... | 3.0625 | 3 |
2024-11-18T23:11:17.203459+00:00 | 2019-03-17T06:34:32 | 79edd5d7900b9e569e0fc96b5a85faeccf6b7e80 | {
"blob_id": "79edd5d7900b9e569e0fc96b5a85faeccf6b7e80",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-17T06:34:32",
"content_id": "d75663172b274bb25a62994e6fc37484cbb475d9",
"detected_licenses": [
"ISC",
"BSD-3-Clause",
"MIT"
],
"directory_id": "b7b252e0cc2692578d5062e8f40c47... | stackv2 | /*
Copyright (c) 2017, Michael J Welsh
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANT... | 2.375 | 2 |
2024-11-18T23:11:17.390558+00:00 | 2021-06-18T06:05:55 | 2f54b4b77286f6d4f0d30b40805aa64f65db0a07 | {
"blob_id": "2f54b4b77286f6d4f0d30b40805aa64f65db0a07",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-18T06:05:55",
"content_id": "36fe365690f65df13b863508a64f51118d949f62",
"detected_licenses": [
"MIT"
],
"directory_id": "4df2a977fd060182743469dc85eaa8cc81ebe1a1",
"extension": "h",
... | stackv2 | // ***************************************************************************
// **
// ** Board definitions for RCScooter
// **
// ** for the PIC182420
// **
// ** by Adam Pierce <adam@siliconsparrow.com>
// ** 7-Jun-2021
// **
// ***************************************************************************
#ifnd... | 2.09375 | 2 |
2024-11-18T23:11:17.455518+00:00 | 2020-03-12T12:24:44 | 87af8828c41f15a494c0c489ddd6dc9165c8ed22 | {
"blob_id": "87af8828c41f15a494c0c489ddd6dc9165c8ed22",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-12T12:24:44",
"content_id": "d343bf937a5f691dc8cd85faf656049795051a18",
"detected_licenses": [
"MIT"
],
"directory_id": "81cd6997e428d4887c3db408a334b6b2e072a235",
"extension": "c"... | stackv2 | /**
* Message Decoding, UVa213
*
* 编码可以记录在一张解码表中,码字长度不超过7因此只需256个表项
* 解码表的索引和码字间的映射关系是:长为k的码字前有2^k-2项,内部有序
* 注意全1对应的项是结束符
* 另一个问题是编码串可能分布在不同行,需要编写函数特别处理
**/
#include<stdio.h>
#include<string.h>
#define maxm 256
char code[maxm];
char readChar() {
char c;
while ((c=getchar()) == '\n' || c == '\r' || c =... | 3.359375 | 3 |
2024-11-18T23:11:17.714109+00:00 | 2018-05-11T04:08:56 | bdbdbd7364dcac4dfb301c39287f3d0d8df15ff0 | {
"blob_id": "bdbdbd7364dcac4dfb301c39287f3d0d8df15ff0",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-11T04:08:56",
"content_id": "6e21323b775a5360c71f1f995babff169375625f",
"detected_licenses": [
"Unlicense"
],
"directory_id": "0203dd561bfc8eb3ecde51dc49829e132ac518ab",
"extension... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
/* Global variable declarations */
// Define type of item of node
typedef int ItemType;
// Define type of node
typedef struct node Node;
// Define structure called stack
typedef struct {
Node *TOS;
} Stack;
// Declare structure call... | 3.8125 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.