added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T22:12:30.215799+00:00 | 2023-07-16T19:36:18 | fc7302338c910bd4ff3851d2036e7569d72fa466 | {
"blob_id": "fc7302338c910bd4ff3851d2036e7569d72fa466",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-16T19:36:18",
"content_id": "a499c27511f00ea90365adc8a95d231e32b3499b",
"detected_licenses": [
"MIT"
],
"directory_id": "eef10ec813dfdc2c7b7dcbfd6ffc9800f5723bfe",
"extension": "h"... | stackv2 | /* Copyright (c) Kyrylo Polezhaiev and contributors. All rights reserved.
Released under the MIT license. See LICENSE file in the project root for full license information. */
#ifndef __LESHAPE_H__
#define __LESHAPE_H__
#include <stdint.h>
#include <stdbool.h>
#include <le/lemacros.h>
LE_BEGIN_DECLS
typedef stru... | 2.1875 | 2 |
2024-11-18T22:12:30.397318+00:00 | 2022-03-01T22:33:16 | be14fe93083860b7b7c76e558fcf7d5f5fc10211 | {
"blob_id": "be14fe93083860b7b7c76e558fcf7d5f5fc10211",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-12T17:03:27",
"content_id": "c8496902f10ebfeec3f6f0bb0ba5c5ad1bed02b8",
"detected_licenses": [
"MIT"
],
"directory_id": "c7308b6f7534ec1d08d02ff7882020636f42a2cb",
"extension": "c"... | stackv2 | // RUN: %check %s -std=c89
typedef int x; // CHECK: note: other definition here
typedef int x; // CHECK: warning: typedef 'x' redefinition is a C11 extension
enum
{
A,
B, // CHECK: warning: trailing comma in enum definition
};
struct
{
struct
{
int i;
}; // CHECK: /warning: unnamed member 'struct <.*>' is a C... | 2.640625 | 3 |
2024-11-18T22:12:30.997046+00:00 | 2018-10-08T09:50:04 | a94b2b0b905ec0809975a4fc2500283c3cfcdb11 | {
"blob_id": "a94b2b0b905ec0809975a4fc2500283c3cfcdb11",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-08T09:50:04",
"content_id": "6c3aa01928c0375714a15f01ea27925c638aa104",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "bd4d34f9aeca3fcb465abd5b5b277e5f739fad12",
"extensio... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* show_alloc_data.c :+: :+: :+: ... | 2.75 | 3 |
2024-11-18T22:12:31.107031+00:00 | 2017-05-03T18:09:26 | d54806d0004a78ebc5fd699e8a302daa92340b6f | {
"blob_id": "d54806d0004a78ebc5fd699e8a302daa92340b6f",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-03T18:09:26",
"content_id": "d39bb468ffc8c259491757b25be4341ba7255005",
"detected_licenses": [
"MIT"
],
"directory_id": "0f2494c9016417da80eb7988a4b833afc644a36d",
"extension": "h"... | stackv2 | ////////////////////////////////////////////////////////////////////////////////
// Use the row-major as prefered way to index the thread array
////////////////////////////////////////////////////////////////////////////////
#define ROW_MAJOR_IDX
/////////////////////////////////////////////////////////////////////////... | 2.1875 | 2 |
2024-11-18T22:12:31.418083+00:00 | 2021-09-16T10:25:14 | f254df5c02aefefedd64d2282dd5624c27735a76 | {
"blob_id": "f254df5c02aefefedd64d2282dd5624c27735a76",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-16T10:25:14",
"content_id": "b3e0e5389df2441ef2a109703b350223d3994bfe",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "6d78df767e2ef3391f3aaf3b4984e5e3acdd47bd",
"extension"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "header/Stack.h"
int main (int argc, char **argv) {
/**
* creating 2 independent stacks at the same time
*/
//preparations
DATA numbers[] = {5, 8, 10, 20, 31, 57, 45, 73, 32, 31, 3, 7, 9, 99};
DATA symbols[] = {'(', '[', '{', '}', ']', ')'};
... | 2.96875 | 3 |
2024-11-18T22:12:33.167821+00:00 | 2020-05-25T06:32:38 | 8fa4dc2edfe218825ecc9f3608ee3b8326fc2b96 | {
"blob_id": "8fa4dc2edfe218825ecc9f3608ee3b8326fc2b96",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-25T06:32:38",
"content_id": "6e7ba3087ce6092ea1ccf5f4d4448de3595dec33",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "655196384fce509e1779075158d241454913370f",
"extensio... | stackv2 | /* ***************************************************************************
*
* Copyright 2020 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | 2.1875 | 2 |
2024-11-18T22:12:36.182340+00:00 | 2020-03-24T13:24:54 | 2f6887bb282e7f664bef36731035ccf7bce9cee7 | {
"blob_id": "2f6887bb282e7f664bef36731035ccf7bce9cee7",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-24T13:24:54",
"content_id": "4511091272ebf3685c408907c2bb712607466000",
"detected_licenses": [
"MIT"
],
"directory_id": "e58c3c7281a612d3a1d4cd6e06fa7fb4ce67a5b4",
"extension": "c"... | stackv2 | /*-----------------------------------------------------------------------*
* filename - scroll.c
*
* function(s)
* __scroll - scrolls the specified window in text mode
*-----------------------------------------------------------------------*/
/*
* C/C++ Run Time Library - Version 10.0
*
* Copy... | 2.453125 | 2 |
2024-11-18T22:12:36.604815+00:00 | 2016-04-01T13:57:40 | f375e6779575a44578609a6a7bcc697a4c709aea | {
"blob_id": "f375e6779575a44578609a6a7bcc697a4c709aea",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-01T13:57:40",
"content_id": "1377e779c04ce268c957099b370f55191405d6e9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "9c295a64d0142f20db86b6d1b0dbeafd53209bc5",
"extensio... | stackv2 | /*! \file conv.h
\brief Header file for convolution of signals.
*/
#ifndef __CONV_H__
#define __CONV_H__
#include <cpcommon.h>
#include "csignal_error_codes.h"
/*! \fn csignal_error_code convolve (
USIZE in_signal_one_length,
FLOAT64* in_signal_one,
USIZE ... | 2.75 | 3 |
2024-11-18T22:12:38.181097+00:00 | 2016-02-02T08:02:43 | 4079caea6d381a75d2029de212afb2b9c3cab4a5 | {
"blob_id": "4079caea6d381a75d2029de212afb2b9c3cab4a5",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-02T08:02:43",
"content_id": "4f545f0bff36840c310579c7c17701d30b771077",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c0e2fc2049cdb611b44af8c3a656d2cd64b3b62b",
"extensio... | stackv2 | /* http_fetcher.c - HTTP handling functions
HTTP Fetcher
Copyright (C) 2001, 2003, 2004 Lyle Hanson (lhanson@users.sourceforge.net)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; eith... | 2.375 | 2 |
2024-11-18T22:12:38.321737+00:00 | 2011-05-29T06:31:29 | dad11e927f544623584da8782b114e45f1e924ec | {
"blob_id": "dad11e927f544623584da8782b114e45f1e924ec",
"branch_name": "refs/heads/master",
"committer_date": "2011-05-29T06:31:29",
"content_id": "9edb88e91b601ad4f50640ec77d2f059e0dd809c",
"detected_licenses": [
"ISC"
],
"directory_id": "8e2f9d145432977dc351db9b4fd90f0ce5fb3609",
"extension": "c"... | stackv2 | #include <PCSpeaker.h>
#include <Time.h>
void PCSpeaker_setFrequency(u32 frequency)
{
u32 temp = 1193180 / frequency;
Kernel_outportb(0x43, 0xB6);
Kernel_outportb(0x42, temp);
Kernel_outportb(0x42, temp >> 8);
}
void PCSpeaker_start()
{
u32 state = Kernel_inportb(0x61);
if (state != (state | ... | 2.453125 | 2 |
2024-11-18T22:12:38.868407+00:00 | 2021-06-08T16:20:14 | 62365a10d86ce61a0d8c8ead0541d50f81bc640a | {
"blob_id": "62365a10d86ce61a0d8c8ead0541d50f81bc640a",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-08T16:20:14",
"content_id": "6fbb4cd932a60d06f26510416b48d9bebb0c4f44",
"detected_licenses": [
"MIT"
],
"directory_id": "ff131478d0df65b243f5c6c91d6628a0773966e2",
"extension": "c"... | stackv2 | /*
* test_stddemo.c
*
* Created on: Apr 18, 2021
* Author: r
*/
// =============================================================================
// Includes
#include "test_stddemo.h"
#include "mu_platform.h"
#include <stdbool.h>
#include <stdio.h>
// =======================================================... | 2.765625 | 3 |
2024-11-18T22:12:39.049855+00:00 | 2017-11-06T17:32:33 | 468ecf92fed0620fd6d94390394f9bfe3ac62e02 | {
"blob_id": "468ecf92fed0620fd6d94390394f9bfe3ac62e02",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-16T21:04:03",
"content_id": "3ada7a4f53760f9448c7efccbef3ed6291592521",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "655692921502bc96dac131c70e8383ee40151205",
"extensio... | stackv2 | /* client.c */
/*
* Copyright (c) 2017 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#if defined(CONFIG_NET_DEBUG_APP)
#define SYS_LOG_DOMAIN "net/app"
#define NET_SYS_LOG_LEVEL SYS_LOG_LEVEL_DEBUG
#define NET_LOG_ENABLED 1
#endif
#include <zephyr.h>
#include <string.h>
#include <errno.h>
#includ... | 2.140625 | 2 |
2024-11-18T22:12:39.226774+00:00 | 2022-04-15T09:08:35 | 2c3db847fd6f117aa1107a8ac29b851f0f9b0ddb | {
"blob_id": "2c3db847fd6f117aa1107a8ac29b851f0f9b0ddb",
"branch_name": "refs/heads/master",
"committer_date": "2022-04-15T09:08:35",
"content_id": "380d8f8d923b13f9d6d85b51a30b5cfe73f35801",
"detected_licenses": [
"MIT"
],
"directory_id": "7e1f97967b73f6e5ef028d910ee798925b788a67",
"extension": "c"... | stackv2 | #include <linux/rbtree.h>
#include <linux/string.h>
#include "kn_common.h"
MODULE_LICENSE("Dual BSD/GPL");
struct student
{
int id;
char* name;
struct rb_node node;
};
static void insert_student(struct student*, struct rb_root*);
static void remove_student(struct student*, struct rb_root*);
static int display_stu... | 2.984375 | 3 |
2024-11-18T22:12:40.263660+00:00 | 2017-11-16T06:40:04 | 4a4b5ac8175d5f8f27858e353860bbf688d6d3f8 | {
"blob_id": "4a4b5ac8175d5f8f27858e353860bbf688d6d3f8",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-16T06:40:04",
"content_id": "d8cd3da1f2e32ca61c6191ec40ddbed5e9d2a5e2",
"detected_licenses": [
"Unlicense"
],
"directory_id": "76257303554778b6e928b88a92a391878dfece82",
"extension... | stackv2 | /**
* Exercise 1-9, page 21
* Упражнение 1.9, страница 33
*
* Write a program to copy its input to its output, replacing each string of one or
* more blanks by a single blank.
*
* Напишите программу для копирования входного потока в выходной с заменой каждой
* строки, состоящей из одного или нескольких пробело... | 3.3125 | 3 |
2024-11-18T22:12:43.060189+00:00 | 2019-04-30T20:06:17 | b224feb826b81530e2a358a669ecd6d228bd4f51 | {
"blob_id": "b224feb826b81530e2a358a669ecd6d228bd4f51",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-30T20:06:17",
"content_id": "e55b2418100af38a9068bc2a46c2a69a7b989f87",
"detected_licenses": [
"MIT"
],
"directory_id": "f797a8e4f57bb2c54c37d1573f008413804b2b6c",
"extension": "c"... | stackv2 | #include "usart.h"
int usart(void) {
static char str[] = "Hello world";
int i;
for (i = 0; str[i] != 0; i++) {
usart_send_blocking(USART2, str[i]);
}
usart_send_blocking(USART2, '\r');
usart_send_blocking(USART2, '\n');
return 0;
}
| 2.484375 | 2 |
2024-11-18T22:12:43.218834+00:00 | 2014-04-23T12:08:44 | 3cb119bf9ab87bfc05d820e3ea07fe8eb7c6c6e6 | {
"blob_id": "3cb119bf9ab87bfc05d820e3ea07fe8eb7c6c6e6",
"branch_name": "refs/heads/master",
"committer_date": "2014-04-23T12:08:44",
"content_id": "21a99647cfe319c809c719bfeb9a5e285aa876c5",
"detected_licenses": [
"MIT"
],
"directory_id": "c5f916d7d55cdf698d0addee66611748693128d3",
"extension": "h"... | stackv2 | #ifndef COMMON_H
#define COMMON_H
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MASTER 0
typedef enum {
ADD_LINE /*Indicates that the next message contains a line of text*/,
ADD_WORD /*Indicates that the next message contains a word that should be inserted in the dictionary*/... | 2.296875 | 2 |
2024-11-18T22:12:43.367898+00:00 | 2020-09-19T21:47:19 | 6b7a4b63e6cc07e951c5b9e93d2919581e28512d | {
"blob_id": "6b7a4b63e6cc07e951c5b9e93d2919581e28512d",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-19T21:47:19",
"content_id": "2852ee4b7a3e60e476b0ef6811e478f5504dba7c",
"detected_licenses": [
"MIT"
],
"directory_id": "f732d415b027c9983b044b2d093bdc6cd5246855",
"extension": "c"... | stackv2 | #include "shell_utils.h"
/* EXPORTED FUNCTIONS */
void shu_unknown_command(char* command) {
char *message;
asprintf(&message, "unknown command %s", command);
log_error_del_ctx(message, strdup("SHELL"));
}
void shu_unknown_argument(char *command, char* argument, bool write) {
if (write) {
char... | 2.5625 | 3 |
2024-11-18T22:12:43.453993+00:00 | 2016-04-16T15:00:42 | 9bd5c199b221fe34206214139700ed266a8fa1a1 | {
"blob_id": "9bd5c199b221fe34206214139700ed266a8fa1a1",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-16T15:00:42",
"content_id": "6d95072329fb34c05b717d78f07a8cc6f71eb354",
"detected_licenses": [
"MIT"
],
"directory_id": "74de85e151cdafc40acf3066865b6e74f617d6be",
"extension": "c"... | stackv2 | #include "lisp.h"
#define I(x) St_Intern(x)
static void validate_bindings(StObject args)
{
if (ST_NULLP(args))
{
return;
}
if (!St_ListP(args))
{
St_Error("let: malformed bindings");
}
ST_FOREACH(p, args) {
StObject b = ST_CAR(p);
if (!ST_PAIRP(b) || St_Le... | 2.34375 | 2 |
2024-11-18T22:12:43.602537+00:00 | 2021-05-15T13:06:01 | cc3076eb7778775abb1ed754391f8287c9f9c1d8 | {
"blob_id": "cc3076eb7778775abb1ed754391f8287c9f9c1d8",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-15T13:06:01",
"content_id": "e73f888933492208b8ee51fa2373feb7e1ffd550",
"detected_licenses": [
"MIT"
],
"directory_id": "868050fb2c9c602a4ccedabbf06d3505f0c013ae",
"extension": "c",
... | stackv2 | #define _GNU_SOURCE
#include <errno.h>
#include <sched.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <unistd.h>
typedef struct {
int argc;
char **argv;
} child_config_t;
const size_t STACK_SIZE = 1024 * 1024;
int child(void *arg) {
child_config... | 2.71875 | 3 |
2024-11-18T22:12:44.058628+00:00 | 2013-12-24T04:12:53 | c0abfba36b36bdc21e570c80c127238a76fd0e35 | {
"blob_id": "c0abfba36b36bdc21e570c80c127238a76fd0e35",
"branch_name": "refs/heads/master",
"committer_date": "2013-12-24T04:12:53",
"content_id": "ca3d4beddd612ca29e13b41c2ca4c43238a88a55",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "49e3ce58acc6a9dcbb6cf0b1997763bfee7a6237",
"extensio... | stackv2 | /*
Copyright 2013 Marc-André Dufresne
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | 2.421875 | 2 |
2024-11-18T22:12:44.512466+00:00 | 2020-01-24T16:20:51 | bf9526af9663e82343a007ce5084677f20b90565 | {
"blob_id": "bf9526af9663e82343a007ce5084677f20b90565",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-24T16:20:51",
"content_id": "9adb12d8ca0412f9e97446c45905326107b0c7a7",
"detected_licenses": [
"MIT"
],
"directory_id": "6f297f08962f7a020e7245377a41f7d0d3054a38",
"extension": "h"... | stackv2 | /*
** EPITECH PROJECT, 2019
** my
** File description:
** my
*/
#ifndef MY_H_
#define MY_H_
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
typedef struct s_max
{
int co;
} t_max;
void my_putchar(char c);
int my_isneg(int... | 2.421875 | 2 |
2024-11-18T22:12:45.737200+00:00 | 2021-03-31T14:24:42 | 15d154b3db718536f2c2c80369c522cfcd267bbc | {
"blob_id": "15d154b3db718536f2c2c80369c522cfcd267bbc",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-31T14:24:42",
"content_id": "cc7dafb1c84d2a4fe9c1d48502f5d3245430c55d",
"detected_licenses": [
"MIT"
],
"directory_id": "5b622992f09ffe18eefab8f0b7f962c19091fd82",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
void print_complement_for(int x) {
int data = 1 << 31;
for (int i = 1; i <= 32; i++) {
printf("%d", (x & data ? 1 : 0));
x <<= 1;
if (i % 4 == 0)
printf(" ");
}
}
void print_complement_while(int x) {
int data = 1 << 31;
int i = 1;
while (i <= 32) {
printf("%d... | 3.390625 | 3 |
2024-11-18T22:12:45.804318+00:00 | 2018-05-28T08:36:34 | 5918e891b875ce4d6440e4a334ac94224e7e7359 | {
"blob_id": "5918e891b875ce4d6440e4a334ac94224e7e7359",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-28T08:36:34",
"content_id": "a05a0995291938280de7419c16f49d66612ad131",
"detected_licenses": [
"MIT"
],
"directory_id": "5d2f6c05e7f67dda7212a12462524bbd13b7d242",
"extension": "c"... | stackv2 | #include "abel_jacobi.h"
#define m1(i,j) fmpz_mat_entry(m1,i,j)
#define m2(i,j) fmpz_mat_entry(m2,i,j)
int main() {
slong g;
flint_rand_t state;
flint_printf("symplectic_reduction...");
fflush(stdout);
flint_randinit(state);
for (g = 2; g < 30; g++)
{
fmpz_mat_t m1, m... | 2.53125 | 3 |
2024-11-18T22:12:45.875559+00:00 | 2016-11-27T02:47:34 | ac2717521e8319380e854bef78f9408e1dbe23b0 | {
"blob_id": "ac2717521e8319380e854bef78f9408e1dbe23b0",
"branch_name": "refs/heads/master",
"committer_date": "2016-11-27T02:47:34",
"content_id": "5530dca51218e3812d267436a5f600f6727aa7da",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f720369e167889b8c65fb5c9f9ded80a8378a200",
"extens... | stackv2 | /*
A destroyed 'attr' attributes object can be reinitialized using
hthread_mutexattr_init(); the results of referencing an 'attr' object after
it has been destroyed are undefined.
*/
#include <hthread.h>
#include <stdlib.h>
#include <stdio.h>
#include "hthreadtest.h"
#define EXPECTED_RESULT SUCCESS
void *... | 3.140625 | 3 |
2024-11-18T22:12:46.112591+00:00 | 2021-06-28T20:03:07 | 7128e439caba17fe21ce3a0283be0911d9da086a | {
"blob_id": "7128e439caba17fe21ce3a0283be0911d9da086a",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-28T20:03:07",
"content_id": "9a592913dc0bdd514fe99079d63e7ddb956fb4bb",
"detected_licenses": [
"MIT"
],
"directory_id": "e821bf51bb244191243179888a1082067ae5c0f7",
"extension": "c"... | stackv2 | /*
* Author: Abdullah Almarzouq (an36@pdx.edu)
* 5/22/20
*
* hw5.c: This program works as a userspace driver that reads
* and modifies the LEDCTL register to turn the LEDs on
* and off. It accesses the LEDCTL register by memory
* mapping the e1000 driver.
*
* Note: All of the functions were supplied by ledm... | 2.75 | 3 |
2024-11-18T22:12:46.959626+00:00 | 2023-04-14T15:22:30 | e37ee1bc7ed264bcf20bc62b626e091de68022fb | {
"blob_id": "e37ee1bc7ed264bcf20bc62b626e091de68022fb",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-14T15:22:30",
"content_id": "0d087b2d13b98d22f66922ce98b9f7506f7dd1b7",
"detected_licenses": [
"MIT"
],
"directory_id": "288281ea9d5c6344706f267731d9798d527d71d3",
"extension": "h"... | stackv2 | /*
Header with all necessary Cipherfix infrastructure.
Used for reducing the example boilerplate.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <time.h>
#define CLOCK CLOCK_MONOTONIC
#include "cipherfix.h"
// Functions that each example must define.
v... | 3.03125 | 3 |
2024-11-18T22:12:47.550611+00:00 | 2021-09-25T13:59:07 | 7fd397223caf224c2f8cb46588199233626c8588 | {
"blob_id": "7fd397223caf224c2f8cb46588199233626c8588",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-25T13:59:07",
"content_id": "73bb199dac0d05c9559861949b7531cfd17ca420",
"detected_licenses": [
"MIT"
],
"directory_id": "f781665295628fe2ffec39451ac319f5a42f1008",
"extension": "h",
... | stackv2 | #pragma once
#include <stdbool.h>
#include <stdlib.h>
#define LIST_INIT_CAP 20 /* default cap */
#define LIST_GROW_RATE 2.0 /* default grow rate */
/* Types */
typedef struct List List;
/* constructors */
#define list_new(ty) list_with_cap(sizeof(ty), LIST_INIT_CAP, LIST_GROW_RATE)
List *list_with_cap(const size_t i... | 2.890625 | 3 |
2024-11-18T22:12:48.287046+00:00 | 2019-07-14T14:53:35 | 5708663db10b8a5aa51fd265f0f5b733b6611700 | {
"blob_id": "5708663db10b8a5aa51fd265f0f5b733b6611700",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-14T14:53:35",
"content_id": "b51570f67a78f55d665e7a6b324c5980a335193e",
"detected_licenses": [
"MIT"
],
"directory_id": "2714801ba2aa42451c47efeae5e7ceebab669e22",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include "psyrender.h"
Object* Object_Plane_new(double z) {
Object_Plane* p = (Object_Plane*) malloc(sizeof(Object_Plane));
p->func = object_plane_func_table;
p->point = (Point) {0, 0, z};
p->norm = (Vector) {0, 0, 1};
p->mat = Material_new_default();
re... | 2.453125 | 2 |
2024-11-18T22:12:48.474239+00:00 | 2016-03-26T19:29:55 | 8fa22539aeb87d996a5d796c432f4f9d123ecc57 | {
"blob_id": "8fa22539aeb87d996a5d796c432f4f9d123ecc57",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-26T19:29:55",
"content_id": "f557d008b2f12f2367e95fc7fc78dfdb9cd8bc3e",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "2ca78b20e1133c2f9427cc727ccd5f2ab7251d86",
"extens... | stackv2 | #include "swap.c"
int get_value(List *list, int n)
{
int i;
for(i=0; i<n; i++)
list = list->next;
return list->value;
}
void Merge(List **head, int low, int high)
{
int combined[10000],i,j;
int k = 0, mid = (low+high)/2;
List *list;
list = *head;
for(i=low, j=mid+1; i<=mid || j... | 3.09375 | 3 |
2024-11-18T22:12:53.180661+00:00 | 2018-09-14T01:44:31 | 124be02fa8a259c01812512f9968dc9b735c1c60 | {
"blob_id": "124be02fa8a259c01812512f9968dc9b735c1c60",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-14T01:44:31",
"content_id": "3d019cb0ca0ed04b04a12fbd4c3aa42caaed2c2e",
"detected_licenses": [
"MIT"
],
"directory_id": "d2125231b7f6253cd27d120f152fefa9232d0fd6",
"extension": "c"... | stackv2 | #include <stdio.h>
/*
6. Implemente a função com o cabeçalho
void calcula(float l, float *area, float *perimetro);
que recebe o lado l de um quadrado e retorna a sua área e perímetro.
*/
void calcula(float l, float *area, float *perimetro){
*area = l*l;
*perimetro = l*4;
}
int main(int argc, char **argv){
float a... | 3.71875 | 4 |
2024-11-18T22:12:53.626207+00:00 | 2019-10-18T21:57:39 | ab9e1391781be801fdfea1a63cc2013344a62782 | {
"blob_id": "ab9e1391781be801fdfea1a63cc2013344a62782",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-18T21:57:39",
"content_id": "91c3fd05a932bfb4f631352bb3f4e0a52771542b",
"detected_licenses": [
"MIT"
],
"directory_id": "40c2090984838c150b873747767f0cde46d38471",
"extension": "c"... | stackv2 | /*
JTSK-320112
Problem 1.5
Digdarshan Kunwar
d.kunwar@jacobs-university.de
*/
#include <stdio.h>
int main(int argc, char **argv)
{
unsigned char input, copy;
int counter;
scanf("%c", &input);
copy = input;
printf("The decimal representation is: %d\n", input);
printf("The backwards binary re... | 3.421875 | 3 |
2024-11-18T22:12:53.711813+00:00 | 2015-10-31T00:46:40 | 81778323e2e43f9d22495c5790ed18e71b72284e | {
"blob_id": "81778323e2e43f9d22495c5790ed18e71b72284e",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-31T00:46:40",
"content_id": "17afa8fb4be864138cc80d9d09bbe1448a31975a",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "88d6b4aa5f95ce48ae7bb698fc5ed0f7e33b5ce5",
"extens... | stackv2 | /***************************************************************************//**
@file types.c
@author Stephen Brennan
@date Created Thursday, 22 October 2015
@brief Type objects for all standard lisp types.
@copyright Copyright (c) 2015, Stephen Brennan. Released under t... | 2.34375 | 2 |
2024-11-18T22:12:53.964038+00:00 | 2023-08-31T14:51:12 | 9c631de532346e39ae885c1d1b7b31d4596b9cb9 | {
"blob_id": "9c631de532346e39ae885c1d1b7b31d4596b9cb9",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-31T14:51:12",
"content_id": "602b81f661742fa19d9c24aa9c7a0b8f331b80ed",
"detected_licenses": [],
"directory_id": "9de0cec678bc4a3bec2b4adabef9f39ff5b4afac",
"extension": "c",
"filename... | stackv2 | AliAnalysisTask* AddTaskLeadingPt(
Bool_t AnalysisMC = kFALSE,
Float_t ptleadingCut = 0.5,
Int_t typerun =0, // 0 for pp and 1 for Pb-Pb or pPb
TString type ="ESD",
UInt_t kTriggerInt = AliVEvent::kMB, //for pPb kINT7, for pp or PbPb kMB
//UInt_t kTriggerInt = AliVEvent::kINT7, //LHC11c
Bool_t ispileupre... | 2.078125 | 2 |
2024-11-18T22:12:54.080396+00:00 | 2021-11-09T15:13:14 | 83b6a208faed9d3a33d8598311e1fbc4254810ed | {
"blob_id": "83b6a208faed9d3a33d8598311e1fbc4254810ed",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-09T15:13:14",
"content_id": "1fa558bba100f9b73df5fa35dd92731eaa73dc43",
"detected_licenses": [
"MIT"
],
"directory_id": "d5d4a050413ac580325ce4a03fd5041638e17154",
"extension": "h"... | stackv2 | #include "stdio.h"
#include "string.h"
#include "limits.h"
#include "stdlib.h"
#define IDENT_TABLE_MAX 100 /* 标识符表长度 */
#define IDENT_LEN 20 /* 每个标识符最大长度 */
#define LEV_MAX 10
#define CONST_MAX 2147483647 /* 常量最大值 */
#define STACK_SIZE 500
int level = 0;
int table_index = 0;
int data_allocation_index = 0;
int nu... | 3.140625 | 3 |
2024-11-18T22:12:54.702940+00:00 | 2021-04-30T20:51:37 | 80402be9acc02096881e9a581755ee5a54898630 | {
"blob_id": "80402be9acc02096881e9a581755ee5a54898630",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-30T20:51:37",
"content_id": "584408ac42e8d556e6e347d8504270b4b1c0ec26",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "dbbb854973720549b681703b45c45ab13eb54e8d",
"extension"... | stackv2 | /*
* This is a steganography file in C for PPM files, has the same functionalities as steg.c, but instead of hiding
* a message, it hides an image. To encode, the user needs to enter 3 arguments after ‘e’, container image, secret
* image and output image. To decode, the user need to enter 2 arguments after ‘d’, enc... | 2.875 | 3 |
2024-11-18T22:12:55.471882+00:00 | 2023-08-13T07:00:15 | 2c7e0b3dbe1e499ef6dd0abfa43388b65179a746 | {
"blob_id": "2c7e0b3dbe1e499ef6dd0abfa43388b65179a746",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T07:00:15",
"content_id": "989d413ad1a443ea59219c29e4694e07509f000e",
"detected_licenses": [
"MIT"
],
"directory_id": "2266eb133fc3121daf0aa7f4560626b46b94afe0",
"extension": "c"... | stackv2 | // endlog.c
// created by doing
inherit F_CLEAN_UP;
int main(object me, string arg)
{
string wiz_status;
if (!SECURITY_D->valid_grant(me, "(arch)"))
return 0;
if (!arg)
return notify_fail("请你指明一个玩家。\n");
wiz_status = SECURITY_D->get_status(me);
seteuid(getuid());
if (EXAMI... | 2.1875 | 2 |
2024-11-18T22:12:55.541706+00:00 | 2020-05-11T08:57:38 | 1333c8c0270f6f7fb40793a080f39a98d72d56fb | {
"blob_id": "1333c8c0270f6f7fb40793a080f39a98d72d56fb",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-11T08:57:38",
"content_id": "452da63600e09b2fca28a7f21b8b642e6869dae6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c77858e229c6dc245372825f47d86c41a7f8404b",
"extensio... | stackv2 | /*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include "rwble.h"
#include "reg_blecore.h"
//#include "BK_reg_Protocol.h"
#include "ke_mem.h"
#include "ke_event.h"
#include "compiler.h"
#include "cli.h"
#... | 2.140625 | 2 |
2024-11-18T22:12:55.915569+00:00 | 2023-01-23T23:56:11 | 472b95d89c53dd93c4d5ed65f5030aa5f186757b | {
"blob_id": "472b95d89c53dd93c4d5ed65f5030aa5f186757b",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-23T23:56:11",
"content_id": "ff2494ff118ee69973ebdbff7feb0361e80175cf",
"detected_licenses": [
"MIT"
],
"directory_id": "b3c31b711b27814af55deb6e656b1f304b889985",
"extension": "c"... | stackv2 | /* vim: set noet ts=4 sw=4 sts=4 ft=c:
*
* Copyright (C) 2011, 2012, 2013 James McLaughlin et al.
* Copyright (C) 2012-2022 Darkwire Software.
* All rights reserved.
*
* liblacewing and Lacewing Relay/Blue source code are available under MIT license.
* https://opensource.org/licenses/mit-license.php
*/
#include... | 2.140625 | 2 |
2024-11-18T22:12:56.753454+00:00 | 2023-02-04T04:26:21 | ec8a56f05adbdb35165208bb4299b229e4f4be61 | {
"blob_id": "ec8a56f05adbdb35165208bb4299b229e4f4be61",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-04T04:26:21",
"content_id": "8f5bceb2465ab50de525953ce048a6061ab75122",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "227ff4e065049c47b394418216c75a168ed0b18a",
"extens... | stackv2 | /**
* @file mk_dict.c (convert dict.txt -> dict.xdb)
* @author Hightman Mar
* @editor set number ; syntax on ; set autoindent ; set tabstop=4 (vim)
* $Id$
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "xtree.h"
#include "xdb.h"
#include "xdict.h"
#include "charset.h"
#include <unistd.h>
#include <... | 2.390625 | 2 |
2024-11-18T22:12:56.837149+00:00 | 2021-10-05T21:14:09 | 9d476f833856782945335ea31136aad696decde7 | {
"blob_id": "9d476f833856782945335ea31136aad696decde7",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-05T21:14:09",
"content_id": "4b3424aea9d2c67229f737c3a2fc08d327b04dd6",
"detected_licenses": [
"MIT"
],
"directory_id": "3ffdcb26a06565f68f565cdec3ceba8ade73573a",
"extension": "c"... | stackv2 | #include <limits.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include "utils.h"
#include "mem.h"
#include "quadr.h"
#include "gencode.h"
#define INIT_LOCS 2048
#define INIT_STACK 1024
static stack_elem_t *stack;
static int stack_size; // the number of bytes the stack currently
... | 2.203125 | 2 |
2024-11-18T22:12:56.928256+00:00 | 2019-07-14T14:53:35 | bf34172f1d2efd3a054d28112d2c9afac9d0dc6d | {
"blob_id": "bf34172f1d2efd3a054d28112d2c9afac9d0dc6d",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-14T14:53:35",
"content_id": "1e8d5b592cc5ad594fcbfa33b41bfb4e380a11fb",
"detected_licenses": [
"MIT"
],
"directory_id": "2714801ba2aa42451c47efeae5e7ceebab669e22",
"extension": "h"... | stackv2 | /**
*
* .. c:type: Canvas_Mem
*
* .. todo:: Document Mem Canvas
*
*/
#ifndef _PSY_CANVAS_MEM
#define _PSY_CANVAS_MEM
typedef struct {
CANVAS_HEADER
Color* image;
unsigned int next_row;
} Canvas_Mem;
Canvas* Canvas_Mem_new(unsigned int width, unsigned int height);
bool Canvas_Mem_start(Canvas* canva... | 2.046875 | 2 |
2024-11-18T22:12:57.026804+00:00 | 2020-11-07T05:37:48 | e2ba264338432888164c819fb1ec1a669cc5deaa | {
"blob_id": "e2ba264338432888164c819fb1ec1a669cc5deaa",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-07T05:37:48",
"content_id": "16389720c43268ff7119009964a16d155f1702b1",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "2836a3137b70eaa621bf1154131650cbde5155a8",
"extens... | stackv2 | #include <stdio.h>
void main()
{
int c;
int count = 0;
while((c = getchar()) != EOF)
if(c == '\n')
count++;
printf("%d\n", count);
} | 2.8125 | 3 |
2024-11-18T22:12:57.269104+00:00 | 2021-10-17T00:49:03 | be9eb7c91af3fe12c1bedd3d569bd97780cc62e0 | {
"blob_id": "be9eb7c91af3fe12c1bedd3d569bd97780cc62e0",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-17T00:49:03",
"content_id": "6dfb22a80d5b43d084473520c09e360c71543659",
"detected_licenses": [
"MIT"
],
"directory_id": "aaa4eb09ebb66b51f471ebceb39c2a8e7a22e50a",
"extension": "c",
... | stackv2 | //Escreva um algoritmo que leia um vetor de tamanho n (informado pelo usuário) e escreva a soma de todos os elementos de índice par.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main()
{
int n, soma, i;
printf("\nDigite o tamanho do seu vetor: \n");
scanf("%d", &n);
int vetor[n];
... | 4 | 4 |
2024-11-18T22:12:57.392922+00:00 | 2015-11-25T21:37:56 | 3419d92fd5a5d82275f26cf995c010e2ccf45228 | {
"blob_id": "3419d92fd5a5d82275f26cf995c010e2ccf45228",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-25T21:37:56",
"content_id": "856473f53415e105b849354a23031f7774390759",
"detected_licenses": [
"AML"
],
"directory_id": "914ea903edeab093d72c1915662ad6e7037792ec",
"extension": "c"... | stackv2 | /*
cc -g -o modewhacker -framework CoreGraphics modewhacker.c
*/
#include <ApplicationServices/ApplicationServices.h>
#include <stdlib.h>
#include <unistd.h>
static int numberForKey( CFDictionaryRef desc, CFStringRef key )
{
CFNumberRef value;
int num = 0;
if ( (value = CFDictionaryGetValue(desc, key)) =... | 3.015625 | 3 |
2024-11-18T22:12:57.565950+00:00 | 2019-07-21T01:02:33 | 72854ed626fedf0ee307990689b607ae0dbe22ee | {
"blob_id": "72854ed626fedf0ee307990689b607ae0dbe22ee",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-21T01:02:33",
"content_id": "02d14367b8a9a94c6795728fe0c6887c17e5be74",
"detected_licenses": [
"MIT"
],
"directory_id": "d0f2a76f1c235e25f31b6fde48b70f38022712f2",
"extension": "c"... | stackv2 | /*
显示程序上一次运行时的日期和时间
*/
#include <time.h>
#include <stdio.h>
char data_file[] = "datetime.dat";
/*取得并显示上一次运行时的日期和时间*/
void get_data(void) {
FILE *fp;
if ((fp = fopen(data_file, "r")) == NULL) {
printf("本程序第一次运行\n");
} else {
int year, month, day, h, m, s;
fscanf(fp, "%d%d%d%d%... | 3.4375 | 3 |
2024-11-18T22:12:57.657008+00:00 | 2022-08-23T11:39:21 | 2281946c776186d7a108a9b9d192dc15dc5e448d | {
"blob_id": "2281946c776186d7a108a9b9d192dc15dc5e448d",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-23T11:39:21",
"content_id": "8413df6a689403a87fa684bf50fd6d342756ea99",
"detected_licenses": [
"MIT"
],
"directory_id": "f0daff9d5cf8b9c82e4e3608575677446a0853f0",
"extension": "c"... | stackv2 | #include "power.h"
#include "freertos/FreeRTOS.h"
#include "esp_system.h"
#include "esp_event.h"
#include <driver/adc.h>
#include <esp_sleep.h>
#include "esp_adc_cal.h"
#include "gamepad.h"
#include "pin_definitions.h"
static esp_adc_cal_characteristics_t characteristics;
static bool input_battery_initialized = false... | 2.21875 | 2 |
2024-11-18T22:12:57.728687+00:00 | 2016-04-19T03:31:47 | 56604ce52d2e601fd2b45bbd28497c4f365f7fe0 | {
"blob_id": "56604ce52d2e601fd2b45bbd28497c4f365f7fe0",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-19T03:31:47",
"content_id": "977ba56e67ce896bf6d38419f8907dca5249b81b",
"detected_licenses": [
"Unlicense"
],
"directory_id": "746ce13305c233ff604f3530815e29c8f6f515a3",
"extension... | stackv2 | /*
./DRIVERSRC/8042/8042.C
*/
#include "8042.H"
#include "../TIMER.H"
#include <STDIO.H>
void sendCommand(uint8_t data);
uint8_t getStatus(void);
void sendDevice(uint8_t data);
uint8_t getDevice(void);
bool readWait(void);
bool writeWait(void);
/*
LOCAL DATA
*/
enum _8042_Commands
{
_8042_READBYTE = 0x20, //+0-1F
... | 2.203125 | 2 |
2024-11-18T22:12:58.200210+00:00 | 2012-08-09T07:47:01 | db0e7fab0c7c5df164e13bb0fa625611d29911bb | {
"blob_id": "db0e7fab0c7c5df164e13bb0fa625611d29911bb",
"branch_name": "refs/heads/master",
"committer_date": "2012-08-09T07:47:01",
"content_id": "2b66e3bc8e9c136c709317c06dbdf7c50baa8242",
"detected_licenses": [
"MIT"
],
"directory_id": "6b6e19cb8b0ae8ec47cdadd2d7ba53c52e06d769",
"extension": "c"... | stackv2 | #include "ParameterList.h"
/*
Creates a new parameter list object
PRE: queue is a valid queue pointer.
POST: Returns a new parameter list object that acts on the
the queue of strings on success,
NULL otherwise (memory allocation failure)
*/
ParameterList* PL_create(Queue* q)
{
ParameterList* this = malloc(size... | 2.828125 | 3 |
2024-11-18T22:12:58.261573+00:00 | 2023-07-26T13:12:28 | ad48539acf0ecd872a3bf37197a24dd3bb149760 | {
"blob_id": "ad48539acf0ecd872a3bf37197a24dd3bb149760",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-26T13:12:28",
"content_id": "fbea2edf7f8e7b828f8b09c6a5290aefed41644b",
"detected_licenses": [
"MIT"
],
"directory_id": "2bc6796d6c2d44b3f1d5d3ee13980fbcc79f5c66",
"extension": "h"... | stackv2 | #ifndef __IMAGE_H__
#define __IMAGE_H__
#include "types.h"
/**
* Bitmap image type
* data is a list of size width*height, of RGB colors
*/
typedef struct {
u16 width, height;
u32 *data;
} Image;
void saveAsPPM(Image ppm, const char *path);
Image loadFromPPM(const char *path);
/**
* Creates a new image, f... | 2.109375 | 2 |
2024-11-18T22:12:58.632854+00:00 | 2016-02-19T05:34:41 | 5b0c79452ca3c42653b2bae96445d9fda6afa0cc | {
"blob_id": "5b0c79452ca3c42653b2bae96445d9fda6afa0cc",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-19T05:34:41",
"content_id": "6024518bb61c9f507e22630352d8b50723acb787",
"detected_licenses": [
"MIT"
],
"directory_id": "4505d0070bdd38a83c7bcf938547209815d30ee6",
"extension": "h"... | stackv2 | //
// SPMemoryReclamation.h
// Peter Zhivkov.
//
// Created by Peter Zhivkov on 14/02/2014.
// Copyright (c) 2014 Peter Zhivkov. All rights reserved.
//
#ifndef PZ_SPMemoryReclamation_h
#define PZ_SPMemoryReclamation_h
#include "SPCPrimitives.h"
/**
* A fixed-size lock-free memory reclamation scheme adapted... | 2.53125 | 3 |
2024-11-18T22:12:59.163183+00:00 | 2019-08-25T15:39:29 | f7abff31ac250ce321820f1720076ac09ae4eb2c | {
"blob_id": "f7abff31ac250ce321820f1720076ac09ae4eb2c",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-25T15:39:29",
"content_id": "f8bb835bfd011d146bc7962b13b17fc152de39ae",
"detected_licenses": [
"MIT"
],
"directory_id": "5ae998dd2e7442afe87ada209760699d3568a98e",
"extension": "c"... | stackv2 | /** network_basics.c */
/**
* 下面首先介绍两个重要的数据类型: sockaddr 和 sockaddr_in, 这两个结构类型都是用来保存 socket 信息的,如下所示:
struct sockaddr
{
unsigned short sa_family; // 协议族
char sa_data[14]; // 14 字节的协议地址,包含该socket 的IP 地址和端口号。
};
struct sockaddr_in
{
short int sa_family;
... | 2.8125 | 3 |
2024-11-18T22:12:59.557078+00:00 | 2011-02-18T03:36:08 | 2d3e5b4a20a8817bdd3bc667ec1b26bb0429524d | {
"blob_id": "2d3e5b4a20a8817bdd3bc667ec1b26bb0429524d",
"branch_name": "refs/heads/master",
"committer_date": "2011-02-18T03:36:08",
"content_id": "3a9356cdbba8fddd63b5ed3a5db694d243cb9771",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "1be8064fe8e30835f016d253f85780dcb0aecf83",
"extens... | stackv2 |
/*
* Copyright (C) Igor Sysoev
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#if (NGX_TEST_BUILD_SOLARIS_SENDFILEV)
/* Solaris declarations */
typedef struct sendfilevec {
int sfv_fd;
u_int sfv_flag;
off_t sfv_off;
size_t sfv_len;
} sendfilevec_t;
#define SFV... | 2.25 | 2 |
2024-11-18T22:13:01.345042+00:00 | 2023-04-07T22:19:18 | 6f02e1d0115499ef36bf1437248d5602408e9bea | {
"blob_id": "6f02e1d0115499ef36bf1437248d5602408e9bea",
"branch_name": "refs/heads/main",
"committer_date": "2023-04-07T22:19:18",
"content_id": "be9614a3584540888cc546f5805f7a32f8d11671",
"detected_licenses": [],
"directory_id": "3cd3872acbc8b1a79a70b89b2fd58a171e7adc82",
"extension": "c",
"filename":... | stackv2 | /*
* Copyright (c) 2017 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | 2.109375 | 2 |
2024-11-18T22:13:02.399894+00:00 | 2013-09-06T01:46:01 | c6a572aeb082f7f3f7f037479011331fd8517133 | {
"blob_id": "c6a572aeb082f7f3f7f037479011331fd8517133",
"branch_name": "refs/heads/master",
"committer_date": "2013-09-06T01:46:01",
"content_id": "f6769b387eb67af147f0505965980444b8d5f045",
"detected_licenses": [
"Unlicense"
],
"directory_id": "050c29b872c7fc48ba85fdfc227493eaf2a57d55",
"extension... | stackv2 | #include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int is_palindrome(char* string);
int main(int argc, char **argv)
{
char buffer[7];
int i, j, product;
int max_palindrome = 0;
for (i = 100; i < 1000; i++)
{
for (j = 100; j < 1000; j++)
{
product = i * ... | 3.28125 | 3 |
2024-11-18T22:13:04.064334+00:00 | 2023-07-21T14:21:05 | e330b885c28c95fa8b47b70b8477daf8620f45c7 | {
"blob_id": "e330b885c28c95fa8b47b70b8477daf8620f45c7",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-21T14:21:05",
"content_id": "f4b042ffdbfdf4bd11f7e7c56f2ba8862e69ed14",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "3ba46dd96580963d36c117055f3e3b5bf90256c4",
"extensio... | stackv2 | /*!
* \file cs_trace_source.h
* \brief CS Access API - generic functionality relating to trace sources
*
* \copyright Copyright (C) ARM Limited, 2014. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... | 2.09375 | 2 |
2024-11-18T22:13:10.312265+00:00 | 2017-08-03T08:39:43 | 8cc469521ee0ef4208d42df301857e2934745dc2 | {
"blob_id": "8cc469521ee0ef4208d42df301857e2934745dc2",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-03T08:39:43",
"content_id": "00ca76f1fcae63cbbb0835a800632621bb6c892c",
"detected_licenses": [
"MIT"
],
"directory_id": "8700fa500c760a8049c65df590632783cd64940a",
"extension": "c"... | stackv2 | #include <8052.h>
#define NOP __asm \
nop \
__endasm
#define THREENOPS NOP; \
NOP; \
NOP
void delay(int millisecond)
{
while (millisecond--) {
int n = 70;
while (n--) {
THREENOPS;
}
}
}
void main(void)
{
P1 = 0x02;
while (1) {
delay(1000);
P1 = ~P1;... | 2.125 | 2 |
2024-11-18T22:13:10.557716+00:00 | 2022-12-04T09:55:11 | 3feb248c61e96781a5942cfbd011ce0a7973fec0 | {
"blob_id": "3feb248c61e96781a5942cfbd011ce0a7973fec0",
"branch_name": "refs/heads/master",
"committer_date": "2022-12-04T09:55:11",
"content_id": "826e87e1201b9967898a3a3018cd4276848777b1",
"detected_licenses": [
"Unlicense"
],
"directory_id": "5f792140b853f40e3c7be559c2a412d7b8296c96",
"extension... | stackv2 | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <openssl/md5.h>
#define ENOUGH ((CHAR_BIT * sizeof(int) - 1) / 3 + 2)
#define PREFIX "00000"
#define PASSWORD_LENGTH 8
char *
str2md5(const char *str, int length) {
int n;
MD5_CTX c;
unsigned char digest[16];
char ... | 3.15625 | 3 |
2024-11-18T22:13:11.161370+00:00 | 2018-07-25T21:54:01 | 754811458dca6c29b3b2887163f186a4444da7bf | {
"blob_id": "754811458dca6c29b3b2887163f186a4444da7bf",
"branch_name": "refs/heads/devel",
"committer_date": "2018-07-25T21:54:01",
"content_id": "e1e82172c07b98cb468e570b024a46d0d7d1fc68",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "67f62674ad3aa8950e990001deed2e17007744f6",
"extension... | stackv2 | /**
* @file TimerPacketSink.h
* @author Ambroz Bizjak <ambrop7@gmail.com>
*
* @section LICENSE
*
* 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 copyrigh... | 2.0625 | 2 |
2024-11-18T22:13:11.389616+00:00 | 2014-11-19T20:48:33 | b0f55e99ef1fb2c736db1e543545a27dc5c27c43 | {
"blob_id": "b0f55e99ef1fb2c736db1e543545a27dc5c27c43",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-19T20:48:33",
"content_id": "689b4ec90aef5f56fde124b6c87b6217486d194e",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "deca6241bfc3caba87be9731f12b279347e50c24",
"extens... | stackv2 | /*
Looks for locks to specific files
Only handles executables and dlls
TODO :: Support for any file type
.Written by Ray Donnelly in 2014.
.Licensed under CC0 (and anything.
.else you need to license it under).
.No warranties whatsoever.
.email: <mingw.android@gmail.com>.
*/
#define WIN32_MEA... | 2.328125 | 2 |
2024-11-18T22:13:11.562398+00:00 | 2019-01-03T11:52:19 | 96b3c8ba23656a59fa9d6d12740805faaebc2b64 | {
"blob_id": "96b3c8ba23656a59fa9d6d12740805faaebc2b64",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-03T11:52:19",
"content_id": "ac9d01d22661c3aaeb694c0784cccea9855f6697",
"detected_licenses": [
"Zlib"
],
"directory_id": "953b3746a8966beff953a5c76591741b83b20c38",
"extension": "c... | stackv2 | #include "dynamicArray.h"
#include "task.h"
#include <stdio.h>
int main() {
struct DynamicArray* myHeap = dyNew(10);
dyHeapAdd(myHeap, 30, taskCompare);
dyPrint(myHeap, taskPrint);
dyHeapAdd(myHeap, 20, taskCompare);
dyPrint(myHeap, taskPrint);
dyHeapAdd(myHeap, 50, taskCompare);
dyPrint(myHeap, taskPrint);
... | 2.5625 | 3 |
2024-11-18T22:13:11.738221+00:00 | 2013-10-23T21:38:41 | 96a2c1334571d990cecf5fe0d4dc4251d6183032 | {
"blob_id": "96a2c1334571d990cecf5fe0d4dc4251d6183032",
"branch_name": "refs/heads/master",
"committer_date": "2013-10-23T21:38:41",
"content_id": "39e0c11364807e91fc70665b575519c3bffe9138",
"detected_licenses": [
"MIT"
],
"directory_id": "ebf44857fbeccf89407884ee69f8e4c38ea4e575",
"extension": "c"... | stackv2 | //
// config.c
// pwnat2
//
// Created by Ethan Reesor on 10/22/13.
// Copyright (c) 2013 Ethan. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <stdint.h>
#include <limits.h>
#include "common.h"
int config(int argc, const char * argv[], int num_vars, struct config_var... | 2.28125 | 2 |
2024-11-18T22:13:12.178915+00:00 | 2015-11-03T06:20:30 | 3489ad54c71e6940d6a831892796e63f192f8304 | {
"blob_id": "3489ad54c71e6940d6a831892796e63f192f8304",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-03T06:20:30",
"content_id": "d1051a1a830a71c01d5f99e53259e2c2f809bb1c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "49f98a0e22e2df2932e144038fbe5828b735e678",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "phonebook_orig.h"
/* original version */
entry *findName(char lastname[], entry *pHead, entry **ht)
{
while (pHead != NULL) {
if (strcasecmp(lastname, pHead->lastName) == 0)
return pHead;
pHead = pH... | 2.859375 | 3 |
2024-11-18T22:13:12.519223+00:00 | 2017-11-20T08:37:45 | 2461c55f63a67e0d787479361760cd86de57fca0 | {
"blob_id": "2461c55f63a67e0d787479361760cd86de57fca0",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-20T08:37:45",
"content_id": "f6f6b247b12908ca013e463a5ab2f2c58d98ff72",
"detected_licenses": [
"MIT"
],
"directory_id": "2ebe6bb3440966ea4df8431b917bde4a92706ebe",
"extension": "c"... | stackv2 | /*
* SR2D1_0V3_MCU_S1 -- Service robot 2In1 servo driver
* (C)2016 Kinco Electric (Shenzhen) Ltd. -- All rights reserved
*/
#include "includes.h"
//SPI3
INT16U SPI3_DMA_RD_Buff[16];
INT16U SPI3_DMA_TD_Buff[16];
INT16U SPI3_DMA_RD_Buff2[16];
INT16U SPI3_DMA_TD_Buff2[16];
void SPI3_Init(void)
{
DMA_InitTypeDef... | 2.03125 | 2 |
2024-11-18T22:13:15.994767+00:00 | 2018-11-17T20:46:53 | de659e44f92a15db0a7de492730f9450a6764fad | {
"blob_id": "de659e44f92a15db0a7de492730f9450a6764fad",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-17T20:46:53",
"content_id": "2035f1a5e7027f2e3c5756eea793052550bc8739",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "75b391b3fc6fa89f01ebc0b3399a53e1f629c391",
"extensio... | stackv2 | #include "eass.h"
#include "agent.h"
int __stdcall EASS_OpenSession(char *szUtente, char *szTelefono, char *szCliente)
{
int iRet;
EASS_MsgOpenSession msgOut;
memset(&msgOut, 0, sizeof(msgOut));
strcpy(msgOut.szHostName, ECOM_GetMyName());
strcpy(msgOut.szHostIP, ECOM_GetMy... | 2.265625 | 2 |
2024-11-18T22:13:16.209722+00:00 | 2019-08-08T22:53:04 | a2e43d36dbcccb7aa3b6e6e6a67baf9777a6c744 | {
"blob_id": "a2e43d36dbcccb7aa3b6e6e6a67baf9777a6c744",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-08T22:53:04",
"content_id": "96e6b66e7a82d2fe8e72339a6f9cf3628b64abdd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1f527ab60b436f4d6306b35ffab6466ca5c18860",
"extensio... | stackv2 | /*
* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | 2.3125 | 2 |
2024-11-18T22:13:16.286282+00:00 | 2023-01-10T18:44:00 | 158ea4cb5491b12d89deaeaf1eb0a53e1b6d346f | {
"blob_id": "158ea4cb5491b12d89deaeaf1eb0a53e1b6d346f",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-10T18:44:00",
"content_id": "a57687b33b348fc9f0a54b1d8b9fa571142e8ca5",
"detected_licenses": [
"MIT"
],
"directory_id": "1f8ddf8df9bd01c4c3cc5eb9f5622ec732f4f09a",
"extension": "c"... | stackv2 | /*
* Mathlib : A C Library of Special Functions
* Copyright (C) 1998-2012 Ross Ihaka and the R Core team.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Lic... | 2.375 | 2 |
2024-11-18T22:13:18.715018+00:00 | 2016-12-13T02:14:17 | bd86d75c978f5bab5fcca6af012ec6eb39cc21d3 | {
"blob_id": "bd86d75c978f5bab5fcca6af012ec6eb39cc21d3",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-13T02:14:17",
"content_id": "1081024a44e26b51a4ab782180d6a64ffc0c699d",
"detected_licenses": [
"MIT"
],
"directory_id": "64ba1fb68e1bdab4f31ab3c03a1dfe238431da56",
"extension": "c"... | stackv2 | /*********************************************************
*row store btree的key相关操作
*********************************************************/
#include "wt_internal.h"
static void __inmem_row_leaf_slots(uint8_t* , uint32_t, uint32_t, uint32_t);
/*在内存中实例化page中row中的key对象*/
int __wt_row_leaf_keys(WT_SESSION_IMPL* sessio... | 2.34375 | 2 |
2024-11-18T22:13:18.786841+00:00 | 2017-07-09T21:55:02 | 2cd48ff2f5e15d2b1d50f09647ffdec936b3e068 | {
"blob_id": "2cd48ff2f5e15d2b1d50f09647ffdec936b3e068",
"branch_name": "refs/heads/master",
"committer_date": "2017-07-09T21:55:02",
"content_id": "61766451a86420434a11aab5d980ce41f7659e70",
"detected_licenses": [
"MIT"
],
"directory_id": "99dbc21cbfc1477f9211dc7e1c15a7a545f30dd9",
"extension": "c"... | stackv2 | char buf = 0; /* buffer for ungetch */
int getch(void) /* get a (possibly pushed back) character */
{
int c;
if (buf != 0) {
c = buf;
buf = 0;
return c;
}
return getchar();
}
void ungetch(int c) /* push character back on input */
{
if (buf != 0)
printf("ungetch: ... | 2.890625 | 3 |
2024-11-18T22:13:18.964689+00:00 | 2021-08-15T02:52:31 | a4b8a916d650d2c32a492cfa3efc4d2f200e1daa | {
"blob_id": "a4b8a916d650d2c32a492cfa3efc4d2f200e1daa",
"branch_name": "refs/heads/master",
"committer_date": "2021-08-15T02:52:31",
"content_id": "47a37b62128c8df1015f54feffc778ac3fbc5ad4",
"detected_licenses": [
"MIT"
],
"directory_id": "a52fada4edd4eb12b8b99bf312d8a0a97cff1f23",
"extension": "h"... | stackv2 | void QuickSort(int *A, int p, int r);
int Partition(int *A, int p, int r);
void Swap(int *A, int i, int j); | 2.140625 | 2 |
2024-11-18T22:13:21.681277+00:00 | 2021-09-24T05:02:38 | 10dff6326fb0c6f99a927103d8862d7d39732e2c | {
"blob_id": "10dff6326fb0c6f99a927103d8862d7d39732e2c",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-24T05:02:38",
"content_id": "3f81a2604ff8757b65bdbc349d384ce1a5b1b5da",
"detected_licenses": [
"MIT"
],
"directory_id": "ad60498395c4e3ad361ef6f3535780fb7ac84f78",
"extension": "c"... | stackv2 | #include "vector.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Vector *vector_new(const size_type size)
{
Vector *v;
if (size < 0)
{
return NULL;
}
v = (Vector *)calloc(1, sizeof(Vector));
if (!v)
{
printf("Failed to allocate vector!\n");
return NULL;
... | 3.25 | 3 |
2024-11-18T22:13:21.751703+00:00 | 2020-12-04T13:51:40 | 053634ce49602138a9785236bd648dac1183c3f5 | {
"blob_id": "053634ce49602138a9785236bd648dac1183c3f5",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-04T14:10:02",
"content_id": "081a6bfd2b705e82f7e117d77142c9a8a29eddfc",
"detected_licenses": [
"MIT"
],
"directory_id": "393da5abd67f38fba8ee23a1bbdc6852c196edf2",
"extension": "c"... | stackv2 | #define _POSIX_C_SOURCE 200112L
#include <assert.h>
#include <stdlib.h>
#include <time.h>
#include <wayland-server-core.h>
#include <wlr/backend/libinput.h>
#include <wlr/config.h>
#include <wlr/types/wlr_cursor.h>
#include <wlr/util/log.h>
#include <wlr/xcursor.h>
#if WLR_HAS_XWAYLAND
#include <wlr/xwayland.h>
#endif
... | 2.171875 | 2 |
2024-11-18T22:13:22.107736+00:00 | 2021-05-07T18:36:26 | 1749b815d6870d7b57a5215fc96204d13ba4dfd1 | {
"blob_id": "1749b815d6870d7b57a5215fc96204d13ba4dfd1",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-07T18:36:26",
"content_id": "bf14ee80ab688717f60f042edca4db80b56763fd",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f",
"extens... | stackv2 | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | 2.484375 | 2 |
2024-11-18T22:13:28.139531+00:00 | 2019-11-28T09:54:28 | dfdbb9713da163a1059aa054c6de7601f7a50f8f | {
"blob_id": "dfdbb9713da163a1059aa054c6de7601f7a50f8f",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-28T09:54:28",
"content_id": "e6c85687bd18b458fda1b31075a0648ff47046c2",
"detected_licenses": [
"MIT"
],
"directory_id": "1f9c6400485e1e284e0c9dbad9cea2ff897cb899",
"extension": "c"... | stackv2 | /* fcopy.c - fast copy between two file specs
*
* 09-Dec-1986 bw Added DOS 5 support
* 30-Oct-1987 bw Change 'DOS5' to 'OS2'
* 13-May-1989 wc use sopen for sourcefile. For System Languages Testing.
* also include share.h, and io.h.
*
*/
#define INCL_DOSFILEMGR
#if defined (OS2)
#includ... | 2.15625 | 2 |
2024-11-18T22:13:28.425186+00:00 | 2020-08-13T11:03:55 | e8bba55d7aabce439027455deb0e65b50e4e0c92 | {
"blob_id": "e8bba55d7aabce439027455deb0e65b50e4e0c92",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-13T11:03:55",
"content_id": "3646b7ff238835cd2de87e18f5618b0781a95e15",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "76af6b48e0fa176032dfdd0e1ccf0e582c27c94d",
"extensio... | stackv2 | /*
* Copyright (c) 2016 Ericsson AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 2.21875 | 2 |
2024-11-18T22:13:28.628839+00:00 | 2018-01-14T17:16:56 | 70869222abfd2656b40453c5ab4baef6d4dba2cd | {
"blob_id": "70869222abfd2656b40453c5ab4baef6d4dba2cd",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-14T17:16:56",
"content_id": "7be33ab150c3775436dcb870dc927fe5d23f4cb5",
"detected_licenses": [
"MIT"
],
"directory_id": "ed82f5f62a34173dc6bc1fffc0cddcc82c09459f",
"extension": "c"... | stackv2 | /*
* File: main.c
* Author: aluno
*
* Created on December 21, 2017, 11:45 AM
*/
#include <stdio.h>
#include <stdlib.h>
void somar(int num1, int num2, long *resultado){
*resultado = num1 + num2;
}
int main(int argc, char** argv) {
int num1, num2;
long resultado = 0, *r = NULL;
r = &resultado;... | 3.484375 | 3 |
2024-11-18T22:13:29.067509+00:00 | 2023-09-02T22:30:44 | ddb1d169f59ff72abca8659cfeefafb0739ca3b2 | {
"blob_id": "ddb1d169f59ff72abca8659cfeefafb0739ca3b2",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-02T22:30:44",
"content_id": "c0d75c2ec2c58f0cac5a518b2e9c69995a182002",
"detected_licenses": [
"Zlib"
],
"directory_id": "83372fce92c9088ee5c1e1c13bc67385a3b02a36",
"extension": "c... | stackv2 | /* Note:
** This is just a sample piece of code that shows how to use some structs -
** it may not even run.
*/
#include <geos.h>
static const void myTab = {
0xd020, (char)2,
(char)0, (char)2,
0x4000, (char)5,
(char)0, (char)1, (char)2, (char)3, (char)4,
0x0000
};
in... | 2.234375 | 2 |
2024-11-18T22:13:29.146829+00:00 | 2023-05-31T23:22:47 | 57ac3776ddd1a8683151350efd43a861c1075be2 | {
"blob_id": "57ac3776ddd1a8683151350efd43a861c1075be2",
"branch_name": "refs/heads/main",
"committer_date": "2023-05-31T23:22:47",
"content_id": "8d84053b7843ddfb0354cefd3440dfb6763a4545",
"detected_licenses": [
"MIT"
],
"directory_id": "4a727ce379e9d21826895699d09164cdac4836d5",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#include "file.h"
void setup_for_processing() {
printf("file processor starting up\n");
sleep(3);
printf("file processor ready\n");
}
void process_file(char* filename... | 2.859375 | 3 |
2024-11-18T22:13:29.883448+00:00 | 2023-01-18T09:24:10 | 2ef9b35aa04ad31137d934bf3ae4e388dcfa95cd | {
"blob_id": "2ef9b35aa04ad31137d934bf3ae4e388dcfa95cd",
"branch_name": "refs/heads/master",
"committer_date": "2023-01-18T09:24:10",
"content_id": "f9e3f386e02debf3cb43f210f095bebafc153170",
"detected_licenses": [
"MIT"
],
"directory_id": "0b3e580a6bb504b105d882cbdbd6962518dc480e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
void init_randomgen(int seed) { srand((unsigned int)seed); }
int randomgen(int lower, int upper) {
int low_num = 0;
int hi_num = 0;
if (lower < upper) {
low_num = lower;
hi_num = upper + 1; // include upper in output
} else {
low_num = upper + 1; // include ... | 2.8125 | 3 |
2024-11-18T22:13:30.329944+00:00 | 2021-04-27T08:23:38 | 4ea3536a6a34679f05fa5b69c861e37eb95375f5 | {
"blob_id": "4ea3536a6a34679f05fa5b69c861e37eb95375f5",
"branch_name": "refs/heads/master",
"committer_date": "2021-04-27T08:23:38",
"content_id": "1598fc60c929685f06dea8993a1c18e79aaa59a0",
"detected_licenses": [
"MIT"
],
"directory_id": "459599c82d6511adf47b73bb59a1065ff977fa73",
"extension": "h"... | stackv2 | /*
* websocket.h
*
* Created on: Jul 1, 2019
* Author: kz
*/
#ifndef MAIN_WEBSOCKET_H_
#define MAIN_WEBSOCKET_H_
#include <stdint.h>
#include "lwip/api.h"
#include "freertos/queue.h"
#include "common.h"
typedef void *ws_handler_t;
/** \brief Opcode according to RFC 6455*/
typedef enum {
WS_OP_CON = 0x0... | 2.203125 | 2 |
2024-11-18T22:13:30.819588+00:00 | 2018-06-19T08:04:14 | 02bb72191b81bf490d55219b919c4ce4b6b26c09 | {
"blob_id": "02bb72191b81bf490d55219b919c4ce4b6b26c09",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-19T08:04:14",
"content_id": "a74c8857ec294897f4a62902bd9df4fde1898d12",
"detected_licenses": [
"MIT"
],
"directory_id": "f07eaadcfeebfbde0bc2d633fe2e94aba9aa70b4",
"extension": "c"... | stackv2 | #include <arpa/inet.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <iron/mem.h>
#include <iron/log.h>
#include <iron/types.h>
#include <iron/process.h>
#include "udpc.h"
#include "udpc_utils.h"
#include "service_descriptor.h"
#include "udp.h"
#include "ssl.h"
#include <pth... | 2.234375 | 2 |
2024-11-18T22:13:30.880941+00:00 | 2021-07-04T14:51:14 | a5a11c1ed98b76ffbaff6afa17e3d2ef5bc576a3 | {
"blob_id": "a5a11c1ed98b76ffbaff6afa17e3d2ef5bc576a3",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-04T14:51:14",
"content_id": "5f239a8a25b9b9889180ac4c1fed0b23a63a14db",
"detected_licenses": [
"LPPL-1.3c"
],
"directory_id": "c9bb302b8f3baac44535778bb12547c879ba04b1",
"extension... | stackv2 | void sample_encrypt_setup
(encrypt_ctx *ctx,
const unsigned char *key)
{
int i, j, k;
unsigned char *m, T[256];
m = ctx->m;
for(i = 0 ; i < 256; i++, k++)
{
// Secret Dependent Memory Access
m[i] = Table[key[k] % 256];
// Secret Dependent Control... | 2.015625 | 2 |
2024-11-18T22:13:31.522647+00:00 | 2023-08-24T08:38:57 | 97672ce9fa00cf0803ab0a80a7075eb1e6db7797 | {
"blob_id": "97672ce9fa00cf0803ab0a80a7075eb1e6db7797",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-24T08:49:52",
"content_id": "6a21494a9f6d542435c7c700a22befb1bea489c7",
"detected_licenses": [
"MIT"
],
"directory_id": "30c2631ed046d7662476b94fb7f5286c47377f60",
"extension": "c"... | stackv2 | /**
* @file table_graph.c
* @brief Data structure to speed up table transitions.
*
* The table graph is used to speed up finding tables in add/remove operations.
* For example, if component C is added to an entity in table [A, B], the entity
* must be moved to table [A, B, C]. The graph speeds this process up wi... | 3.109375 | 3 |
2024-11-18T22:13:31.749799+00:00 | 2021-06-17T07:40:31 | da95de7f8bde4aec4aa0e98f48ac4362748f48b2 | {
"blob_id": "da95de7f8bde4aec4aa0e98f48ac4362748f48b2",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-17T07:40:31",
"content_id": "472b1a938314584c4921395cef69688750ddb393",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "0195b03c8e5cabed0d77905d4532d3e6ec018890",
"extens... | stackv2 | #include "hardware/interp.h"
#include "tmds_encode.h"
#include "hardware/gpio.h"
#include "hardware/sync.h"
static const uint32_t __scratch_x("tmds_table") tmds_table[] = {
#include "tmds_table.h"
};
// Fullres table is bandwidth-critical, so gets one copy for each scratch
// memory. There is a third copy which can g... | 2.203125 | 2 |
2024-11-18T22:13:32.572168+00:00 | 2020-06-18T17:52:43 | 4df3d145b199e283e5ecfbd83df337288d8e2a27 | {
"blob_id": "4df3d145b199e283e5ecfbd83df337288d8e2a27",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-18T17:52:43",
"content_id": "bc139f3a928303241ffed83dffcb7aa6950aa339",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "b5ed410b8d8ec7b6f1db4ca7c45476702400fcdc",
"extens... | stackv2 | #define FUSE_USE_VERSION 33
#include <stdio.h>
#include <fuse.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <string.h>
#include <fnmatch.h>
#include "x11fs.h"
#include "win_xcb.h"
#include "config.h"
//Pull out the id of a window from a path
static int get_winid(const char *path)
{
unsigned... | 2.625 | 3 |
2024-11-18T22:13:32.649951+00:00 | 2017-11-10T15:24:59 | 80299c551c7091cf6a01f949a0fc16ee048cc3a8 | {
"blob_id": "80299c551c7091cf6a01f949a0fc16ee048cc3a8",
"branch_name": "refs/heads/master",
"committer_date": "2017-11-10T15:24:59",
"content_id": "b825a6cba08bcfbcd66b211c331759ec491e1158",
"detected_licenses": [
"MIT"
],
"directory_id": "99b49b374bc607b655d0405103f928a59dbb4354",
"extension": "c"... | stackv2 | /*Closest Points
Crisis at Byte Town!
There have been 100000 (of course, in base 2) instances of bank robberies in the past month! That is, more than one robbery in a day in average and the Byte Town Police Department (BTPD) is dumb founded. Chef, the honorable President of Byte Town, has pledged to solve the problem ... | 2.71875 | 3 |
2024-11-18T22:13:32.738813+00:00 | 2017-12-08T04:51:40 | 6ed368f559d37f21588f3e03ed48fc9c9df52420 | {
"blob_id": "6ed368f559d37f21588f3e03ed48fc9c9df52420",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-08T04:51:40",
"content_id": "96b24a311657732f443c6f5ea3f7b7686e3d8272",
"detected_licenses": [
"MIT"
],
"directory_id": "c664625cc7751459e519c80c7d118a60b6306dce",
"extension": "c"... | stackv2 | #include <string.h>
#include "macros.h"
#include "gbainterrupt.h"
#include "gbagraphics.h"
ARM void vblankintrwait_isr() {
// Acknowledge we have handled the interrupt.
REG_IF = IE_VBLANK_INTERRUPT;
REG_IFBIOS |= IE_VBLANK_INTERRUPT;
}
void register_vblank_isr() {
// Store the main ISR.
REG_ISR_MA... | 2.046875 | 2 |
2024-11-18T22:13:33.105442+00:00 | 2023-09-03T13:09:44 | 499b3a58d35193b5e3cd6dfa2afbac758248543d | {
"blob_id": "499b3a58d35193b5e3cd6dfa2afbac758248543d",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-03T13:09:44",
"content_id": "fba84d53769d502d9631f6f66ddba2ebbc63db5c",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "f21ddc1d9fcec88bf844bcc2c67b287b06156530",
"extens... | stackv2 | /**
* @file net/if.c Network interface code
*
* Copyright (C) 2010 Creytiv.com
*/
#include <re_types.h>
#include <re_fmt.h>
#include <re_mbuf.h>
#include <re_sa.h>
#include <re_net.h>
#define DEBUG_MODULE "netif"
#define DEBUG_LEVEL 5
#include <re_dbg.h>
/** Interface address entry */
struct ifentry {
int af;... | 2.734375 | 3 |
2024-11-18T22:13:33.165276+00:00 | 2020-11-12T01:40:48 | 8111964c8db704199c2dbfc8d8981c52ccf5cf71 | {
"blob_id": "8111964c8db704199c2dbfc8d8981c52ccf5cf71",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-12T01:40:48",
"content_id": "5157f6eed683a93e4b22d03461f4f0894d7570a1",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "57eba9063c7e90877207c3ccff9316ccd4ef2527",
"extens... | stackv2 | /* $Id: tty.c,v 1.11 2014/11/08 03:10:45 phil Exp $ */
/*
* tty mode, echo
* Win32 version
* started 1/28/98 -phil
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H defined */
#include <stdio.h>
#include <windows.h>
#include <io.h>
#ifdef __GNUC__
#include <malloc.h>
#endif
#include "h.h"
#in... | 2.484375 | 2 |
2024-11-18T22:13:37.224812+00:00 | 2018-01-30T16:02:50 | bbe28ef772d7c5fcad8cc1f7532753bb6fe3e619 | {
"blob_id": "bbe28ef772d7c5fcad8cc1f7532753bb6fe3e619",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-30T16:02:50",
"content_id": "7b433e7b0227cb7332c2df202733a6e9ded2191c",
"detected_licenses": [
"MIT"
],
"directory_id": "1289309f5f4b858534c9614de0485a0d8911228e",
"extension": "c"... | stackv2 | /*
* zdev - Modify and display the persistent configuration of devices
*
* Copyright IBM Corp. 2016, 2017
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include ... | 2.375 | 2 |
2024-11-18T22:13:37.329050+00:00 | 2021-06-28T08:12:41 | d500d74e94c346d612afb2752919ef2d9b5e1b45 | {
"blob_id": "d500d74e94c346d612afb2752919ef2d9b5e1b45",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-28T08:12:41",
"content_id": "d8f83b0116cb29682569aa894b02c12e66c071a5",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "ddda55fcfc84ac5cd78cfc5c336a3df0b9096157",
"extensio... | stackv2 | /**
***********************************************************************************************************************
* Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the ... | 2.125 | 2 |
2024-11-18T22:13:37.807755+00:00 | 2023-02-25T05:26:46 | e1614b6818f10f7366ab3545cb37352058beca86 | {
"blob_id": "e1614b6818f10f7366ab3545cb37352058beca86",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-25T05:26:46",
"content_id": "36d13c94c70c45256df53262d07c1dde2d323acd",
"detected_licenses": [
"MIT"
],
"directory_id": "809e68f6581a8c9099fb435c3603699c06d6b62c",
"extension": "h"... | stackv2 | //***************************************************************************************
// DXTrace.h by X_Jun(MKXJun) (C) 2018-2022 All Rights Reserved.
// Licensed under the MIT License.
//
// DirectX错误追踪
// DirectX Error Tracing.
//**********************************************************************************... | 2.140625 | 2 |
2024-11-18T22:13:37.950532+00:00 | 2015-06-04T10:07:25 | dfd94f347defb0cd52b118b7f833123704951e46 | {
"blob_id": "dfd94f347defb0cd52b118b7f833123704951e46",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-04T10:07:25",
"content_id": "a33f2ea34d9bfd5dd26768a2d0aff757fa874cf5",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "68a8ce50c25be63d0886eace9c9f0e6ad4da8920",
"extens... | stackv2 | #ifndef BVH_NODE_DEFINE_H
#define BVH_NODE_DEFINE_H
#include "Vector3.h"
#define BVHNODE_BYTES 32
#ifndef BSP_ARRAY_TREE_NODE_DEF
#define BSP_ARRAY_TREE_NODE_DEF
typedef union BSPArrayTreeNode_t {
struct { // inner node
unsigned int children;
unsigned int children2;
Vector3 min;
Vector3 max;
};
struct { //... | 2.125 | 2 |
2024-11-18T22:13:38.915506+00:00 | 2022-02-15T01:29:59 | 629169c1604319fa56dd3f3a5861f36b7d471cf0 | {
"blob_id": "629169c1604319fa56dd3f3a5861f36b7d471cf0",
"branch_name": "refs/heads/master",
"committer_date": "2022-02-15T01:29:59",
"content_id": "bbfda5eaa97735bfe801044c3254ba4a84a9541e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7dadcd39742e45f202feb92fc32a22a67859f53a",
"extensio... | stackv2 | /*---------------------------------------------------------------------------
Copyright 2020-2021, Microsoft Research, Daan Leijen.
This is free software; you can redistribute it and/or modify it under the
terms of the Apache License, Version 2.0. A copy of the License can be
found in the LICENSE file at the r... | 2.28125 | 2 |
2024-11-18T22:13:39.101122+00:00 | 2020-12-14T16:00:25 | 64c8e9ca5b8ec9fe24f24b9f70a10fbef84face5 | {
"blob_id": "64c8e9ca5b8ec9fe24f24b9f70a10fbef84face5",
"branch_name": "refs/heads/master",
"committer_date": "2020-12-14T16:00:25",
"content_id": "c891ab4f280db6bac2527c46fe3ae96246293f3b",
"detected_licenses": [
"MIT"
],
"directory_id": "04bfc85692c5da3eb3f365c2121eea699d649113",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <string.h>
#include "../rdata.h"
#include "test_buffer.h"
#include "test_buffer_io.h"
int rt_open_handler(const char *path, void *io_ctx) {
return 0;
}
int rt_close_handler(void *io_ctx) {
return 0;
}
rdata_off_t rt_seek_handler(rdata_off_t offset,
rdata_io_flags_t when... | 2.359375 | 2 |
2024-11-18T22:13:39.485656+00:00 | 2016-12-30T19:22:02 | 449b5d9ddb75f8cb56f9ae8590c17a85e273677d | {
"blob_id": "449b5d9ddb75f8cb56f9ae8590c17a85e273677d",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-30T19:22:02",
"content_id": "e82427cc3afc53166f54dec8f730e7215f4e4c1b",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "1034555b8beb176279c51479c22470904c4cbbf1",
"extens... | stackv2 | //
// Created by svalov on 8/17/16.
//
#include <moarRouting.h>
#include <moarRoutingPrivate.h>
#include <moarChannelRouting.h>
#include <moarRoutingStoredPacket.h>
#include <moarRoutingStoredPacketFunc.h>
#include <funcResults.h>
#include <stdlib.h>
#include <memory.h>
#include <moarCommons.h>
// отчистка пакета
in... | 2.34375 | 2 |
2024-11-18T22:13:39.663268+00:00 | 2020-05-09T14:12:19 | f931702e292eb96281f9f3ea1b540152d90cee84 | {
"blob_id": "f931702e292eb96281f9f3ea1b540152d90cee84",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-09T14:12:19",
"content_id": "6827eda371e406edcd38af9546b28992406cf7a3",
"detected_licenses": [
"MIT"
],
"directory_id": "603163ee1abf769bbd77848db949fc84ed88b673",
"extension": "c"... | stackv2 | #include <stdio.h>
int main(void)
{
char cArray[10] = {"Herbert"};
char *cPtr = cArray;
printf("\nAdress of pointer: %p\n", cPtr);
printf("First adress of array: %p\n", &cArray[0]);
printf("\nPointer points to: %c\n", *cPtr);
printf("First element of the array is: %c\n", cArray[0]);
} | 3.421875 | 3 |
2024-11-18T22:13:39.746789+00:00 | 2021-09-09T18:24:52 | dcd1d0c975c1934114fdb9cace8f57c5326ec18f | {
"blob_id": "dcd1d0c975c1934114fdb9cace8f57c5326ec18f",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-09T18:24:52",
"content_id": "10db82dd291eb41c7bda8d2387d33eaf62c60c6e",
"detected_licenses": [
"MIT"
],
"directory_id": "b15afcecb91e090ffcb503e377077ea73cbc2446",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <string.h>
#ifdef CONWAY_PIXEL
#include "pixel.h"
#endif
#define BOARD_WIDTH 50
#define BOARD_HEIGHT 50
#define BOARD_SIZE (BOARD_WIDTH * BOARD_HEIGHT)
#define BOARD_SET(x, y) board[((y)*BOARD_WIDTH) + (x)] = 1
#define BOARD_UNSET(x, y) board[((y)*BOARD_WIDTH) + (x)] = 0
#define BOARD_TOG... | 2.75 | 3 |
2024-11-18T22:13:40.310215+00:00 | 2023-07-21T15:58:54 | 4d67b54e062c006aa2d18cfb0f4e8398251780bc | {
"blob_id": "4d67b54e062c006aa2d18cfb0f4e8398251780bc",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-21T15:58:54",
"content_id": "679eb115cac034e803a27f16e52119fe7c9e8458",
"detected_licenses": [
"MIT"
],
"directory_id": "5f86fc385c7dcfcb5b166cdea7c8b13057b8bb5f",
"extension": "h"... | stackv2 | // Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#ifndef _OE_INTERNAL_TYPES_H
#define _OE_INTERNAL_TYPES_H
#include <openenclave/bits/types.h>
#include <openenclave/internal/defs.h>
/*
**==============================================================================
**
** Verify size... | 2.640625 | 3 |
2024-11-18T22:13:40.392007+00:00 | 2019-06-14T00:07:17 | bd4e140b33901836bbd968d58292553ef6c25803 | {
"blob_id": "bd4e140b33901836bbd968d58292553ef6c25803",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-14T00:07:17",
"content_id": "f5f296b62b5ab56327799c88827d6e0692201575",
"detected_licenses": [
"MIT"
],
"directory_id": "70d911b2365fdfe96beed149b95ab815722ab025",
"extension": "c"... | stackv2 | #include <mpi.h>
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
// DADOS COMPARTILHADOS
int m1[SIZE][SIZE], m2[SIZE][SIZE], mres[SIZE][SIZE];
int l1, c1, l2, c2, lres, cres;
int inicializa_matriz(int i, int j, int k);
int multiplica_matriz(int i, int j, int k, int offset, int step_size);
int valida_multiplic... | 2.34375 | 2 |
2024-11-18T22:13:40.784263+00:00 | 2021-09-13T21:23:00 | ff48b1153543d60f715c1b7737c0b0b477ac53dc | {
"blob_id": "ff48b1153543d60f715c1b7737c0b0b477ac53dc",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-13T21:23:00",
"content_id": "c10f7e690c6cfc92605be55e0614d30bf1c74ad0",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0b600fe68cc64779710950952d3d8bed1d3ef809",
"extensio... | stackv2 | // generated from rosidl_generator_c/resource/idl__functions.c.em
// with input from rosapi:srv/NodeDetails.idl
// generated code does not contain a copyright notice
#include "rosapi/srv/detail/node_details__functions.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
// Include direc... | 2.21875 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.