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-18T21:54:15.004229+00:00 | 2017-02-25T21:32:38 | 405212b132d6418aca7f0416add6272df2cecb34 | {
"blob_id": "405212b132d6418aca7f0416add6272df2cecb34",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-25T21:32:38",
"content_id": "214ca0c961d1de45737a1e114de8d91efb082963",
"detected_licenses": [
"MIT"
],
"directory_id": "5820fe96fac8ff69aec4a0aa60a52d3c4f206fe0",
"extension": "c"... | stackv2 | #include <math.h>
#include "viewpick.h"
#define EPSILON 0.0000001
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#define DTOR(deg) ((M_PI/180)*(deg))
#define DOT(A,B) ((A)[0]*(B)[0] + (A)[1]*(B)[1] + (A)[2]*(B)[2])
#define CROSS(U,V,UxV) ((UxV)[0] = (U)[1]*(V)[2] - (U)[2]*(V)[1],\
... | 2.5625 | 3 |
2024-11-18T21:54:15.644930+00:00 | 2018-05-04T02:17:15 | 124d4e58187ed328bdb23b4d4335b038b6c12d00 | {
"blob_id": "124d4e58187ed328bdb23b4d4335b038b6c12d00",
"branch_name": "refs/heads/master",
"committer_date": "2018-05-04T02:17:15",
"content_id": "5a91b09a6e4e5cbd33220a82137e79d819111bab",
"detected_licenses": [
"MIT"
],
"directory_id": "abfe96fb249ba17bd2e64873018323845e2a0c1e",
"extension": "c"... | stackv2 | /*
** Lua-Allegro Allegro wrapper
*/
#include "lprefix.h"
#include <stdio.h>
#include <stdlib.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include <allegro.h>
#include "wrapper.h"
/*
* ALLEGRO stuff
*
*/
int screenX = 800, screenY = 600;
int run_flag = 1;
int key_event = 0, mouse_event = 0;
in... | 2.09375 | 2 |
2024-11-18T21:54:15.817419+00:00 | 2017-03-13T17:25:59 | cbb033a74ded30f88a7dd45f3bcc62437c9329ee | {
"blob_id": "cbb033a74ded30f88a7dd45f3bcc62437c9329ee",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-13T17:25:59",
"content_id": "aa5edf14f3f6de41f53f0ce51f96bc58ce084b55",
"detected_licenses": [
"MIT"
],
"directory_id": "34fb4759fece16154194b7cf674cdd6099789970",
"extension": "c"... | stackv2 | #include "cmd-fun.h"
/* Usr Include */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cpu_utils.h"
#include "cmsis_os.h"
#include "cjson.h"
/* CLI Command Structure define */
static const CLI_Command_Definition_t CLI_Definition_All[] = {
{
"hello",
"\r\nhello:\r\n Hello World\r\n\r\n",
... | 2.203125 | 2 |
2024-11-18T21:54:15.907541+00:00 | 2020-03-06T19:32:56 | 75f5e1a6972184deadec599e5244d0b9c842861e | {
"blob_id": "75f5e1a6972184deadec599e5244d0b9c842861e",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-06T19:32:56",
"content_id": "45ffa408ba071a354a6ced977a7f09f80e69d927",
"detected_licenses": [
"MIT"
],
"directory_id": "80d57414c3c6734997d5001a0b406bd403e11e96",
"extension": "c"... | stackv2 | /*
# clove
#
# Copyright (C) 2019 Muresan Vlad
#
# This project is free software; you can redistribute it and/or modify it
# under the terms of the MIT license. See LICENSE.md for details.
*/
#include "joystick.h"
#include "../include/joystick.h"
#include "../3rdparty/FH/src/value.h"
/*
* TODO:
* Finish t... | 2.125 | 2 |
2024-11-18T21:54:17.154676+00:00 | 2019-11-05T13:07:35 | 1963fd4c0323cd9c6fa53832ba41fb5fb20e93bd | {
"blob_id": "1963fd4c0323cd9c6fa53832ba41fb5fb20e93bd",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-05T13:07:35",
"content_id": "6b48fe604d30761e515c2ce47bfee37d29593538",
"detected_licenses": [
"MIT"
],
"directory_id": "ce92e1157a24359ff80fb2b7627505ba1bdc3f68",
"extension": "c"... | stackv2 | void ShellSort(ElementType *arr, int *increment, int len_arr, int len_increment)//这里假定increment数组是按从大到小的顺序
{
for (int i = 0; i < len_increment; i++)
{
for (int incre = increment[i], j = 0; j < len_arr - incre; j++)
{
for (int k = j + incre; k < len_arr; k += incre)
{
if (arr[k - incre] < arr[k])
sw... | 2.828125 | 3 |
2024-11-18T21:54:17.943012+00:00 | 2019-10-27T12:54:45 | be3abd26aca0670089e56e672feefa5d030ea7df | {
"blob_id": "be3abd26aca0670089e56e672feefa5d030ea7df",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-27T12:54:45",
"content_id": "9a1f463685d38aeb29cd5fb06fef15aa5e5f599f",
"detected_licenses": [
"MIT"
],
"directory_id": "3c9c7a579d12b21b85960c0bbb147e4670a4e6c5",
"extension": "c"... | stackv2 | #include <Uefi.h>
#include <Library/UefiApplicationEntryPoint.h>
#include <Library/UefiLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/BaseMemoryLib.h>
#include <Protocol/GraphicsOutput.h>
#include <Protocol/SimpleTextInEx.h>
#include <Protocol/SimpleFileS... | 2.3125 | 2 |
2024-11-18T21:54:18.038880+00:00 | 2015-07-02T13:39:35 | d56c717ebc93f5c44ec47de5fd940ac9e8f1887a | {
"blob_id": "d56c717ebc93f5c44ec47de5fd940ac9e8f1887a",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-02T14:38:34",
"content_id": "5e2b3e5dba36bec0fbd48d2adabf4c215894b0a9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "8a7df233bce3737d7f440e12cb63c59a4c2f8bb7",
"extensio... | stackv2 | /* Copyright 2015 Samsung Electronics Co., Ltd.
*
* 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 la... | 2.203125 | 2 |
2024-11-18T21:54:18.093404+00:00 | 2015-11-07T17:01:26 | edfa5736c85a6d0999a9f095d08266580738c9b0 | {
"blob_id": "edfa5736c85a6d0999a9f095d08266580738c9b0",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-07T17:01:26",
"content_id": "d4340aa63996129f2f6fe25143e03e0abde5107f",
"detected_licenses": [
"MIT"
],
"directory_id": "9e7e3de6f30fc07ae4f7f8bfb508419bb4f0cdac",
"extension": "c"... | stackv2 | #include "lexer.h"
#include <malloc.h>
#include "e8core/utf/tables.h"
static char u8_delimiters[60] = ",./<>?;':\"[]{}\\|=+-)(*&^%$#@!`~";
static char u8_rus_small[200] = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя";
static char u8_rus_large[200] = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ";
static e8_uchar delimiters[60];
static e8_... | 2.203125 | 2 |
2024-11-18T21:54:19.002381+00:00 | 2021-08-22T16:57:31 | 3315f4ab0b8b3ef91bbef90cf5eef0357d3e8fa5 | {
"blob_id": "3315f4ab0b8b3ef91bbef90cf5eef0357d3e8fa5",
"branch_name": "refs/heads/master",
"committer_date": "2021-09-26T16:58:16",
"content_id": "100bedf284f1896384ea2e2dff24f304a2f768ea",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "30adece44d4b2be3ded5ddc9dbaa419b39fd5079",
"extension":... | stackv2 | #ifndef ROMU_H
#define ROMU_H
#include <stdint.h>
#include <stddef.h>
#include <string.h>
typedef struct prng_state {
uint64_t state[3];
} prng_state;
#define ROTL(a,n) (((a) << (n)) | ((a) >> (64 - (n))))
// Writes a 64-bit little endian integer to dst
static inline void prng_write_le64(void *dst, uint64_t val) {... | 2.921875 | 3 |
2024-11-18T21:54:19.277282+00:00 | 2023-08-17T16:08:06 | 998a65368d0ffdd1efb454c76240d9f1047ef55d | {
"blob_id": "998a65368d0ffdd1efb454c76240d9f1047ef55d",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T16:08:06",
"content_id": "4c6898614896f1b08e48a9bfb8359ba184572c4b",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066",
"extensio... | stackv2 | static char help[] = "Working out corner cases of the ASM preconditioner.\n\n";
#include <petscksp.h>
int main(int argc, char **args)
{
KSP ksp;
PC pc;
Mat A;
Vec u, x, b;
PetscReal error;
PetscMPIInt rank, size, sized;
PetscInt M = 8, N = 8, m, n, rstart, rend, r;
... | 2.15625 | 2 |
2024-11-18T21:54:19.670801+00:00 | 2020-07-29T19:42:15 | 5e83e718e1d35f37529770827bca534e3f6ccf82 | {
"blob_id": "5e83e718e1d35f37529770827bca534e3f6ccf82",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-29T19:42:15",
"content_id": "abf024127d4904f1b9ba58a9f2be8f1385f79c42",
"detected_licenses": [
"curl"
],
"directory_id": "93fa8ba477a8ee5b721f387b3c888b92d61ac825",
"extension": "c... | stackv2 | #include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include "AdhocqueryAPI.h"
#define MAX_BUFFER_LENGTH 4096
#define intToStr(dst, src) \
do {\
char dst[256];\
snprintf(dst, 256, "%ld", (long int)(src));\
}while(0)
// Check the status of an ad hoc query execution
//
// Allows the user to check wh... | 2.28125 | 2 |
2024-11-18T21:54:22.493133+00:00 | 2020-09-19T16:24:56 | eaea8bde799592a4dfbdc8cb98e706335c938c1f | {
"blob_id": "eaea8bde799592a4dfbdc8cb98e706335c938c1f",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-19T16:24:56",
"content_id": "d34ac003d562be311e0b365de69e02d2a0d73ad2",
"detected_licenses": [
"MIT"
],
"directory_id": "07e17a58accb57c976506ca60d9c3f4a627bfe0c",
"extension": "c"... | stackv2 | #define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "stb_image.h"
#include "stb_image_resize.h"
#include "surface.h"
#include <assert.h>
surface_t *surface_image_load(char const *filename, int w, int h)
{
int iw, ih, channels_in_file;
char *image = stbi_load(filename, &iw, &ih, &c... | 2.390625 | 2 |
2024-11-18T21:54:22.592013+00:00 | 2019-02-05T15:12:29 | 3045052a7b93dcfee5c6cd27eb67c3f7a1ebb9f5 | {
"blob_id": "3045052a7b93dcfee5c6cd27eb67c3f7a1ebb9f5",
"branch_name": "refs/heads/master",
"committer_date": "2019-02-05T15:12:29",
"content_id": "3f8de8df2604885a8c2cc0f755d3c3aedd974821",
"detected_licenses": [
"MIT"
],
"directory_id": "74e87668838c99fe1ce9257c53e06a93a826cf9b",
"extension": "c"... | stackv2 | #include <stm32f4xx_hal.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <board_driver/uart.h>
#include <board_driver/can.h>
#include <board_driver/obdii.h>
#include <shield_driver/dashboard/TLC59116.h>
#define RPM_TIMEOUT 1000
#define THROTTLE_POSITION_TIMEOUT 5
uint32_t ... | 2.640625 | 3 |
2024-11-18T21:54:23.899821+00:00 | 2021-03-31T11:03:14 | 40c8e00794e09564d77aa6bbce3470831a1315e5 | {
"blob_id": "40c8e00794e09564d77aa6bbce3470831a1315e5",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-31T11:03:14",
"content_id": "836a308b16c98a68332349f9abf8d02c7a1d31a5",
"detected_licenses": [
"MIT"
],
"directory_id": "c4be8c506588e32a1127cdcb2249916c4fbe5cea",
"extension": "h"... | stackv2 |
#include <stdint.h>
#include "scarv/scarv.h"
#ifndef __LIBSCARV_SPARX_COMMON_H
#define __LIBSCARV_SPARX_COMMON_H
#define SPARX_SWAP(x, y) tmp = x; x = y; y = tmp
#if ( LIBSCARV_CONF_ARCH == LIBSCARV_CONF_ARCH_RISCV_XCRYPTO )
#include "scarv/share/xcrypto_intrinsics.h"
#define SPARX_ROTL(x, n) ((uint16_t)_xc_pror... | 2.15625 | 2 |
2024-11-18T21:54:24.481287+00:00 | 2020-06-01T01:06:31 | 8c6eb7fd12180f48d28fe6124b0e705526114724 | {
"blob_id": "8c6eb7fd12180f48d28fe6124b0e705526114724",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-01T01:06:31",
"content_id": "a8dce64588e09a3e1c776bcff0f2684f26526430",
"detected_licenses": [
"MIT"
],
"directory_id": "4694c14b86cf5a264e0bd7c69b55e8185bb6cb63",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
void tree ( )
{
printf ("\n ID = [%d] I'm the root parent. \n", getpid());
if (fork()!=0)
{
if (fork()==0)
{
printf ("\n ID = [%d] My parent is %d. \n", getpid(), getppid());
if (fork ()==0)
{
printf ("\n ID = ... | 2.71875 | 3 |
2024-11-18T21:54:24.610720+00:00 | 2019-10-16T09:34:49 | d513259ceaf1d7822c05090e3b34c3eea8a1648b | {
"blob_id": "d513259ceaf1d7822c05090e3b34c3eea8a1648b",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-16T09:34:49",
"content_id": "068f3d2068910590ab79dbdb1232f288f2504700",
"detected_licenses": [
"ISC"
],
"directory_id": "8eeb4dc93d55619b20eba6b4fede07294240a856",
"extension": "c"... | stackv2 | /*
* ISC License
*
* Copyright (C) 1982-2018 by
* T.G.R. van Leuken
* J. Liedorp
* S. de Graaf
* Delft University of Technology
*
* 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 per... | 2.140625 | 2 |
2024-11-18T21:54:25.665315+00:00 | 2014-02-16T05:51:05 | 122e394969f61743a819231b1e4c9c3ad96a4f09 | {
"blob_id": "122e394969f61743a819231b1e4c9c3ad96a4f09",
"branch_name": "refs/heads/master",
"committer_date": "2014-02-16T05:51:05",
"content_id": "f14a5271de9d2ee4149225e365f7e208ade3b669",
"detected_licenses": [
"MIT"
],
"directory_id": "db7a53c937bb7f4700ef7c3d4ffbd92fe26420fc",
"extension": "c"... | stackv2 |
/**
*
* Axxel - Acl memory caching
*
* Copyright (c) 2013 Axxel Team
*
* Use and distribution licensed under the MIT license.
* See the LICENSE file for full text.
*
* Authors: Andres Gutierrez <andres@phalconphp.com>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#includ... | 2.125 | 2 |
2024-11-18T21:54:26.184812+00:00 | 2016-03-22T13:04:45 | 0f687af481243db5cec267229bba456d29645309 | {
"blob_id": "0f687af481243db5cec267229bba456d29645309",
"branch_name": "refs/heads/master",
"committer_date": "2016-03-22T13:04:45",
"content_id": "1218927c06ac0f60bf8ab71864da4b49b019bb6b",
"detected_licenses": [
"MIT"
],
"directory_id": "ae97534eb8cb98f0cb476978e6fc076c637ae16d",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print2.c :+: :+: :+: ... | 2.5625 | 3 |
2024-11-18T21:54:26.281567+00:00 | 2021-10-22T09:41:16 | d6dfe1d6c347f73218cd43b4e7bd02244401981b | {
"blob_id": "d6dfe1d6c347f73218cd43b4e7bd02244401981b",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-22T09:41:16",
"content_id": "dc8204aaeb7de8528054fb4ec1cd972bb0f92156",
"detected_licenses": [
"MIT"
],
"directory_id": "70d5e35cf9d2c1a304fe3bf54fd05129cad686f2",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define MAX_OF_N 128
double g(double x);
double h(double x);
double trap(double a, double b, double n, double f(double x));
int main()
{
double a1 = 0,
b1 = 3.14159,
a2 = -2,
b2 = 2,
n = 2, u;
/*Her regner... | 3.640625 | 4 |
2024-11-18T21:54:26.536216+00:00 | 2015-11-11T06:15:36 | 4c5be82be40b0b9c2299028702043bdac0346725 | {
"blob_id": "4c5be82be40b0b9c2299028702043bdac0346725",
"branch_name": "refs/heads/master",
"committer_date": "2015-11-11T06:15:36",
"content_id": "1accde831fea0a48b7938281cb99954d008a155f",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "b2e7dff81cda896bfa5d743da32309b6c69de358",
"extens... | stackv2 | /*
* Copyright (C) 1989-2015, Craig E. Kolb
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list ... | 2.078125 | 2 |
2024-11-18T21:54:26.597202+00:00 | 2013-04-17T18:42:40 | 76104c994f1960594838e70e70a63014b4d0da1c | {
"blob_id": "76104c994f1960594838e70e70a63014b4d0da1c",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-17T18:42:40",
"content_id": "63a432857044b91c509246a65915d87443dbe432",
"detected_licenses": [
"MIT"
],
"directory_id": "bb108c3ea7d235e6fee0575181b5988e6b6a64ef",
"extension": "c"... | stackv2 | /***************************************************************************
x2212.c
Xicor X2212 256 x 4 bit Nonvolatile Static RAM.
***************************************************************************/
#include "emu.h"
#include "machine/x2212.h"
//**************************************************... | 2.265625 | 2 |
2024-11-18T21:54:27.118294+00:00 | 2023-09-01T02:41:42 | 548b19d9cbed2316b26d3e6453712ffcd46a1ace | {
"blob_id": "548b19d9cbed2316b26d3e6453712ffcd46a1ace",
"branch_name": "refs/heads/master",
"committer_date": "2023-09-01T02:41:42",
"content_id": "38be12fc0010d7b830cc22d60c69a5892c95fd23",
"detected_licenses": [
"MIT"
],
"directory_id": "461619a84c6617ceaf2b7913ef58c99ff32c0fb5",
"extension": "c"... | stackv2 | /* ヘッダファイルのインクルード */
#include <stdio.h> /* 標準入出力 */
/* 構造体struct_flagsの定義 */
struct struct_flags{
unsigned char is_adult: 1; /* 大人かどうか(1bit). */
unsigned char is_male: 1; /* 男かどうか(1bit). */
unsigned char is_sportsman: 1; /* スポーツマンかどうか(1bit). */
unsigned char is_artist: 1; /* アーティストかどうか(1bit). */
unsigned cha... | 3.234375 | 3 |
2024-11-18T21:54:27.218271+00:00 | 2021-11-25T22:27:12 | a1f18cd6e7d600b88119ae0cde2ff460a7966d37 | {
"blob_id": "a1f18cd6e7d600b88119ae0cde2ff460a7966d37",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-25T22:27:12",
"content_id": "307865746ff03088281209236e50462ee85504e9",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bade93cbfc1f25160dfbe9493bfa83f853326475",
"extens... | stackv2 | /*
* hpprint.c
* 12/13/90
* Print a file for the hp daemon.
* This is nontrivial for two reasons.
* First, the device might be a serial line,
* so this needs to worry about getting the mode bits right.
* Second, "hpr foo" should expand tabs in foo,
* but "hpr -f 1 font" should not muck with the binary font bits... | 2.78125 | 3 |
2024-11-18T21:54:27.431726+00:00 | 2023-07-21T03:41:00 | 5f4f413b45b601d72aa17490e64eaaacad5a618c | {
"blob_id": "5f4f413b45b601d72aa17490e64eaaacad5a618c",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-21T03:41:00",
"content_id": "f6c4f00954f8019bd1064d850526d7919ee95106",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "20965ad00f94bab92a9d18c6e0990eb2... | stackv2 | /*
Copyright (c) 2015, Plume Design Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 2.109375 | 2 |
2024-11-18T21:54:27.593097+00:00 | 2020-11-19T12:00:59 | b217724b9d1932ca148eccb44be54cbe48b5f3ed | {
"blob_id": "b217724b9d1932ca148eccb44be54cbe48b5f3ed",
"branch_name": "refs/heads/master",
"committer_date": "2020-11-19T12:00:59",
"content_id": "4b48b11f9e6cf5928f656f5d97cb193d501912c1",
"detected_licenses": [
"MIT"
],
"directory_id": "b6c9c45da253e624d1a2947a2d8df715dd23f062",
"extension": "c"... | stackv2 | #include <sys/types.h>
#include <pthread.h>
#include <semaphore.h>
#include <fcntl.h>
#include "process_request.h"
#include "request_queue.h"
#include "constants.h"
#include "e_counter.h"
bool server_shutdown = false;
static pthread_t e_counters[MAX_BANK_OFFICES];
static pthread_mutex_t e_counter_lock;
int active_e... | 2.65625 | 3 |
2024-11-18T21:54:27.791425+00:00 | 2023-08-30T14:29:46 | c8b6dcce39b9b6481eb6c6baf1b95605c95cf90d | {
"blob_id": "c8b6dcce39b9b6481eb6c6baf1b95605c95cf90d",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-30T14:29:46",
"content_id": "75b495d1f9cf2d597d07649a87df31ad3a299445",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "859c788fd71f099700f4bad3b9f5f21abc2b3521",
"extensio... | stackv2 | void
eval_print(struct atom *p1)
{
p1 = cdr(p1);
while (iscons(p1)) {
push(car(p1));
push(car(p1));
evalf();
print_result();
p1 = cdr(p1);
}
push_symbol(NIL);
}
void
print_result(void)
{
struct atom *p1, *p2;
p2 = pop(); // result
p1 = pop(); // input
if (p2 == symbol(NIL))
return;
if (annotate... | 2.109375 | 2 |
2024-11-18T21:54:28.091621+00:00 | 2021-03-17T07:29:19 | a673b45b6e55b7a93cd372c774644c123b8c166d | {
"blob_id": "a673b45b6e55b7a93cd372c774644c123b8c166d",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-17T07:29:19",
"content_id": "44882a3abae25170fcabe2c856f426e35e089f7e",
"detected_licenses": [
"Apache-2.0",
"curl"
],
"directory_id": "546018757d22ae76154b87335db68e1cfabfedcb",... | stackv2 | #ifndef io_k8s_api_core_v1_resource_field_selector_TEST
#define io_k8s_api_core_v1_resource_field_selector_TEST
// the following is to include only the main from the first c file
#ifndef TEST_MAIN
#define TEST_MAIN
#define io_k8s_api_core_v1_resource_field_selector_MAIN
#endif // TEST_MAIN
#include <stdlib.h>
#includ... | 2.46875 | 2 |
2024-11-18T21:54:28.264809+00:00 | 2022-10-16T18:44:41 | 113eacff710da25b0af15827569e56f4587db098 | {
"blob_id": "113eacff710da25b0af15827569e56f4587db098",
"branch_name": "refs/heads/research",
"committer_date": "2022-10-16T18:44:41",
"content_id": "e46850aef2c2f96ea28d5e21e97bd1ca2351bb63",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "4674b8088ffdf55905d44995f08a07... | stackv2 | /*
* wlantest - IEEE 802.11 protocol monitoring and testing tool
* Copyright (c) 2010-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "... | 2.15625 | 2 |
2024-11-18T21:54:28.639272+00:00 | 2021-04-16T11:42:27 | 1bdf0baa6b0e4f18d2f0b91a46203985c7b3e895 | {
"blob_id": "1bdf0baa6b0e4f18d2f0b91a46203985c7b3e895",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-16T11:42:27",
"content_id": "f34e8fe0df284b2bb79af5170fc67fb02627effe",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "bd4ab066f1351663942a21f8390192f9d5f3e33a",
"extension": "... | stackv2 | #include "header.h"
void inputDet()
{
/* editing the name */
while(1)
{
printf("Name: ");
fflush(stdin);
scanf("%[^\n]",&list.name);
if(!isalpha(list.name))
break;
else
printf("......Enter a valid name..... | 2.5625 | 3 |
2024-11-18T21:54:29.395210+00:00 | 2018-06-12T15:41:19 | c5fbccbd620de661b39ac61141d11c338f821efe | {
"blob_id": "c5fbccbd620de661b39ac61141d11c338f821efe",
"branch_name": "refs/heads/master",
"committer_date": "2018-06-12T15:41:19",
"content_id": "6e349b2a7a2e308eb5f8645983db1a65db8f2aa7",
"detected_licenses": [
"MIT"
],
"directory_id": "be952408b3eee5df0c73d10aca4174420cf58080",
"extension": "h"... | stackv2 | #pragma once
// Equihash solver
// Copyright (c) 2016-2016 John Tromp
#include "../blake2/blake2.h"
#ifdef __APPLE__
#include "osx_barrier.h"
#include <machine/endian.h>
#include <libkern/OSByteOrder.h>
#define htole32(x) OSSwapHostToLittleInt32(x)
#else
#include <boost/endian/endian.hpp>
#include "pthreads/pthread.h... | 2.015625 | 2 |
2024-11-18T21:54:29.740048+00:00 | 2020-05-08T17:52:25 | 2205fa6c3aed0cb680e31a8b1ba79c9013f090be | {
"blob_id": "2205fa6c3aed0cb680e31a8b1ba79c9013f090be",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-08T17:52:25",
"content_id": "b38f28a918bd52dbf3d26560a88f8c5c43322718",
"detected_licenses": [
"MIT"
],
"directory_id": "5b547c2580c1a36cefbda95120e8ee84148ada9b",
"extension": "h"... | stackv2 | /*
* connect6.h
*
* Created on: Apr 28, 2020
* Author: VIPIN
*/
#ifndef SRC_CONNECT6_H_
#define SRC_CONNECT6_H_
#include "xil_types.h"
#include "xuartps.h"
#define boardXSize 19
#define boardYSize 19
#define gridSize 50
#define pointerSize 16
#define emptyCell 0
#define playerCell 1
#define fpgaCell 2
... | 2.125 | 2 |
2024-11-18T21:54:29.824418+00:00 | 2013-06-23T20:03:08 | 2ec484bdd7347543a22c3eb6cc29174c1c9a0e0c | {
"blob_id": "2ec484bdd7347543a22c3eb6cc29174c1c9a0e0c",
"branch_name": "refs/heads/master",
"committer_date": "2013-06-23T20:03:08",
"content_id": "1615bc25142daee780c2fd77c766686149ded135",
"detected_licenses": [
"MIT"
],
"directory_id": "7345484f09307e855cbce649c794b110647ac661",
"extension": "c"... | stackv2 | #include <alloca.h>
#include <alsa/asoundlib.h>
typedef union {
int i;
unsigned int ui;
float f;
const void *v;
} Arg;
#include "volume.h"
static const char alsachannel[] = "Master";
static const char alsacard[] = "default";
snd_mixer_t *handle;
snd_mixer_selem_id_t *sid;
snd_mixer_elem_t *getelem(const char *... | 2.5 | 2 |
2024-11-18T21:54:29.910931+00:00 | 2018-07-17T18:59:10 | 54c5d3156e09be1b6a1828b766bee2ffb5ebcdaa | {
"blob_id": "54c5d3156e09be1b6a1828b766bee2ffb5ebcdaa",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-17T18:59:10",
"content_id": "fa3a3a976b267424f2f97c321ecff825d3fdeea0",
"detected_licenses": [
"MIT"
],
"directory_id": "9b1542bf25ae5bbd24f1fe23ecdf1e77eabde345",
"extension": "c"... | stackv2 | /*
* sensor.c
*
* Created on: 19.05.2018
* Author: HP 8560w
*/
#include "sensor.h"
static void Sensor_GPIO_Config(void);
static void Sensor_ADC_Config(void);
int abc;
uint16_t Sensor_GetSensorValue(void) {
while (ADC_GetFlagStatus(Sensor_ADC, ADC_FLAG_EOC) == RESET) {
;
}
return abc=ADC_Ge... | 2.25 | 2 |
2024-11-18T21:54:30.572551+00:00 | 2021-05-10T03:12:43 | e9d3b1921783531382133223aaaba044b60644c0 | {
"blob_id": "e9d3b1921783531382133223aaaba044b60644c0",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-10T03:12:43",
"content_id": "d5b512c98d2c64450a4ef29cbcd0daabfed4e23a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f54cf9d12599c6c86b3458c96e83dcbcedf12f01",
"extension"... | stackv2 | #include "queue.h"
#include <stdlib.h>
#define MAXQSIZE 100
struct queueCDT
{
queueElementT *data;
int front;
int rear;
};
queueADT newQueue(void)
{
queueADT queue;
queue = (queueADT)malloc(sizeof(struct queueCDT));
queue->data = (queueElementT *)malloc(MAXQSIZE * sizeof(queueElementT));
queue->front = 0;
que... | 3.140625 | 3 |
2024-11-18T21:54:30.717245+00:00 | 2017-06-26T20:44:29 | 712a6f172a8b8ae93bf9d90dde052afe7b1beb8a | {
"blob_id": "712a6f172a8b8ae93bf9d90dde052afe7b1beb8a",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-26T20:44:29",
"content_id": "e58e12ae18177ae3de592bbea5c010440c3e4349",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "495297373dbc0d044f873553ef37a0381c91d75e",
"extens... | stackv2 | /*
* OpenBOR - http://www.LavaLit.com
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in OpenBOR root for details.
*
* Copyright (c) 2004 - 2011 OpenBOR Team
*/
#ifndef PALETTE_H
#define PALETTE_H
#include "globals.h"
#define gammacorrect... | 2.15625 | 2 |
2024-11-18T21:54:35.710928+00:00 | 2020-03-03T08:23:30 | f370bcc8d2452ec39318190ce4be7e55dd0c1760 | {
"blob_id": "f370bcc8d2452ec39318190ce4be7e55dd0c1760",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-03T08:23:30",
"content_id": "fd4b7a18fe5a6cce0a6e8f5e44d0b0eae0d6830e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0ae6db55d520ee67a8600c8f8f6e232b2daccc9d",
"extensio... | stackv2 | #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
// http://docs.python.jp/3/howto/cporting.html
#include <Python.h>
#include "numpy/arrayobject.h"
#include <stdint.h>
//#include "ikamatcher_c.h"
#include "ikamatcher2_neon_hal.h"
struct module_state {
PyObject *error;
};
#define GETSTATE(m) ((struct module_sta... | 2.015625 | 2 |
2024-11-18T21:54:35.771792+00:00 | 2017-03-09T15:28:53 | 7cb200ad780a6ee9df698395ad4c05d6198c2eb2 | {
"blob_id": "7cb200ad780a6ee9df698395ad4c05d6198c2eb2",
"branch_name": "refs/heads/master",
"committer_date": "2017-03-09T15:28:53",
"content_id": "108adf7d387041d82e55a63046edec054a40de04",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "c114242c99718f2072e8e88496baa1bf7ac0d3ad",
"extensio... | stackv2 | /*
* =====================================================================================
*
* Filename: main.c
*
* Description: the main part of the programe
*
* Version: 1.0
* Created: 2017年02月1日 19时02分39秒
* Revision: none
* Compiler: gcc
*
* Author: Ni Zh... | 2.453125 | 2 |
2024-11-18T21:54:36.316524+00:00 | 2015-07-20T15:08:12 | 1882ef0b80b4dcd791297c40c8d233834308cea6 | {
"blob_id": "1882ef0b80b4dcd791297c40c8d233834308cea6",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-20T15:08:12",
"content_id": "26dcb14676ffa5c609c26f71aa8e8e94bd52ee20",
"detected_licenses": [
"MIT"
],
"directory_id": "c42242e27f1b9f2bed47ac6dc13795ad9af2ed1c",
"extension": "c"... | stackv2 | /********************************************************
*
* brain.fabduino.c
*
* Alejandro Escario Méndez
* 03/05/2015
* MIT license
*********************************************************/
#include <avr/io.h>
#include <util/delay.h>
#include <util/twi.h>
#include "../lib/network/serial.h"
#define output... | 2.59375 | 3 |
2024-11-18T21:54:36.442449+00:00 | 2021-04-28T19:11:00 | 8cac8772327a3c93c9864bb87ff791ec1283b730 | {
"blob_id": "8cac8772327a3c93c9864bb87ff791ec1283b730",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-30T11:16:44",
"content_id": "d08ec38760c718c1d136167b0cb8ff0c4ec56956",
"detected_licenses": [
"MIT"
],
"directory_id": "4c1b7766c94087555a62a7a684c98f791054a9fc",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2012, 2013 Erik Faye-Lund
* Copyright (c) 2013 Avionic Design GmbH
* Copyright (c) 2013 Thierry Reding
* Copyright (c) 2017 Dmitry Osipenko
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
... | 2.015625 | 2 |
2024-11-18T21:54:36.792030+00:00 | 2016-01-31T17:56:59 | c84ce2721bb8da1610165155227e098adf297e7a | {
"blob_id": "c84ce2721bb8da1610165155227e098adf297e7a",
"branch_name": "refs/heads/master",
"committer_date": "2016-01-31T17:56:59",
"content_id": "f24789c47cdd9493671e023220c963dcaf1e315f",
"detected_licenses": [
"MIT"
],
"directory_id": "fb3a7c5f9b67687e75fcf0bb86483810387b9514",
"extension": "c"... | stackv2 | #include <windows.h>
#include "../front.h"
static void render(HWND hwnd)
{
int i, j;
int w, h;
int w2;
unsigned char* p;
unsigned char* q;
BITMAPINFOHEADER bmih = {0};
HDC hdc;
HBITMAP hdib;
VOID* pdib;
PAINTSTRUCT ps;
w = front_width();
h = front_height();
w2 = w * 3;
/* every line should ... | 2.078125 | 2 |
2024-11-18T21:54:36.870013+00:00 | 2019-05-24T10:04:34 | f44997f0f91e3cd22d674f9f68cddcaf49b1cdd7 | {
"blob_id": "f44997f0f91e3cd22d674f9f68cddcaf49b1cdd7",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-24T10:04:34",
"content_id": "121a0e81e263fcf50880b90bb557269fc4906e73",
"detected_licenses": [
"PHP-3.01"
],
"directory_id": "1cee76a5a43dd5e25fc4ea73338ee5dca34f0bcc",
"extension"... | stackv2 | /*
* Copyright (c) 1991, 1992, 1993 Brad Eacker,
* (Music, Intuition, Software, and Computers)
* All Rights Reserved
*/
#include <stdio.h>
#include <fcntl.h>
#include "dbf.h"
#include "dbf_ndx.h"
/*
* get the ndx header for this file
*/
ndx_header_t *ndx_get_header(int fd)
{
dndx_header_t *dp;
n... | 2.484375 | 2 |
2024-11-18T21:54:37.696081+00:00 | 2016-07-12T10:41:24 | 2cdaa7bc9e1842e356c48da4c75531fc3b6c120e | {
"blob_id": "2cdaa7bc9e1842e356c48da4c75531fc3b6c120e",
"branch_name": "refs/heads/master",
"committer_date": "2016-07-12T10:41:24",
"content_id": "5388e983ceb849cc5e9f6cf005097ff1740f8517",
"detected_licenses": [
"Unlicense"
],
"directory_id": "d3a0ccccbf8e17758f44370a50941f984e25e4d1",
"extension... | stackv2 | /*******************************************************************************************
程序名: LED流水灯
编写人: 花花雪
编写时间: 2016 年 7月6 日
硬件支持:AT89S52
接口说明:
修改日志:
NO.1
/*******************************************************************************************
//说明 :延时控制LED灯亮灭
*****************************************... | 2.03125 | 2 |
2024-11-18T21:54:38.052524+00:00 | 2021-12-19T22:30:27 | 26a1da2231959ee1ec543b675b05a61f5c463038 | {
"blob_id": "26a1da2231959ee1ec543b675b05a61f5c463038",
"branch_name": "refs/heads/master",
"committer_date": "2021-12-19T22:30:27",
"content_id": "5168a715669394f3a5694c62492bbdb348750dc7",
"detected_licenses": [
"MIT"
],
"directory_id": "5cb82fe6e185ee59a01c1ea4a801ad62768c7fe1",
"extension": "c"... | stackv2 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <stdio.h>
#include <stdlib.h>
#include "iot_configs.h"
#include "sample.h"
#include <AzureIoTHub.h>
#include <AzureIoTProtocol_MQTT.h>
DEFINE_ENUM_STRINGS(DE... | 2.375 | 2 |
2024-11-18T21:54:39.978177+00:00 | 2020-07-03T12:14:16 | fd1133b1591dd9b0ad1fb838c64bf0db827ae687 | {
"blob_id": "fd1133b1591dd9b0ad1fb838c64bf0db827ae687",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-03T12:14:16",
"content_id": "8fc369649d3fb64494940608c76b0aa539588891",
"detected_licenses": [
"MIT"
],
"directory_id": "92cc325496a4c3b3fb4bddbd17d7db56c9e94d9a",
"extension": "c"... | stackv2 | //
// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
// file was obtained (LICENSE.txt). A copy of the license may also be
// found online at https://opensource.org/licens... | 2.15625 | 2 |
2024-11-18T21:54:41.698676+00:00 | 2017-12-12T06:38:46 | f1346853b4e291bb820861e92b494a4bb385c06e | {
"blob_id": "f1346853b4e291bb820861e92b494a4bb385c06e",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-12T06:38:46",
"content_id": "17573cdcd185c24701fc6386f8d238bbc8a62100",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "821845575a1c86ec875b1d938c61e2fdc6ab57e5",
"extensio... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "npk.h"
#define APP_NAME "unnpk"
#define APP_VERSION "0.0.1jinx1"
#define APP_DEVELOPER "karin"
#define APP_RELEASE "2017.12.06"
/*
* https://github.com/YJBeetle/unnpk
*/
int main(int argc, char *argv[])
{
if (argc == 1)
{
printf("%s is a extractor for npk file of... | 2.15625 | 2 |
2024-11-18T22:08:29.891031+00:00 | 2023-08-22T07:27:39 | c590d3fe15273b85b6ad4ea36296983824d57f6a | {
"blob_id": "c590d3fe15273b85b6ad4ea36296983824d57f6a",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-22T07:27:39",
"content_id": "5205a589a734b342e9b9ecec4ee63d8cb4fc4228",
"detected_licenses": [
"MIT"
],
"directory_id": "e1670823d073195e75000d72f6c85c1a033f1837",
"extension": "c"... | stackv2 |
#include "sis_net.node.h"
#include "sis_json.h"
#include "sis_math.h"
#include "sis_obj.h"
#include "os_str.h"
/////////////////////////////////////////////////
// s_sis_net_mem_node
/////////////////////////////////////////////////
s_sis_net_mem_node *sis_net_mem_node_create(size_t size_)
{
s_sis_net_mem_node *no... | 2.125 | 2 |
2024-11-18T22:08:30.895602+00:00 | 2023-02-16T11:27:40 | 6d379fac09babebec6bb5405f78e746d7cbf2074 | {
"blob_id": "6d379fac09babebec6bb5405f78e746d7cbf2074",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "9ce0d94b3635f33b36fe595726c7b4ba45edc187",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright (c) 2019 Foundries.io
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Source material for IPSO Accelerometer object (3313):
* http://www.openmobilealliance.org/tech/profiles/lwm2m/3313.xml
*/
#define LOG_MODULE_NAME net_ipso_accel
#define LOG_LEVEL CONFIG_LWM2M_LOG_LEVEL
#include <zephyr/loggin... | 2.09375 | 2 |
2024-11-18T22:08:30.977526+00:00 | 2017-10-14T15:40:19 | e4b30921d8ee75be1a7f20cc6a97e13d617d899c | {
"blob_id": "e4b30921d8ee75be1a7f20cc6a97e13d617d899c",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-14T15:40:19",
"content_id": "1c67defd7e0dce82c276affd81b91cc83a62e9d7",
"detected_licenses": [
"MIT"
],
"directory_id": "cdb5db495377874e480dc7e43c253719fa9887d1",
"extension": "h"... | stackv2 | //
// YKIndicatorBaseLib.h
// YKKline
//
// Created by nethanhan on 2017/6/5.
// Copyright © 2017年 nethanhan. All rights reserved.
//
#ifndef YKIndicatorBaseLib_h
#define YKIndicatorBaseLib_h
#include <stdio.h>
/**
计算ma值
@param value 初始数据数组
@param length 初始数据数组长度
@param m 参数m值
@param ma 存储ma值的数组
*/
void ... | 2.015625 | 2 |
2024-11-18T22:08:31.408292+00:00 | 2019-06-13T20:04:52 | b9d9b69f34fce4f9e0f221144d971220df74bac9 | {
"blob_id": "b9d9b69f34fce4f9e0f221144d971220df74bac9",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-13T20:04:52",
"content_id": "13188bbf73864613cae7acf6aba48fede261113c",
"detected_licenses": [
"MIT"
],
"directory_id": "7ab43c4f5b8fe4669b14914f3015e07b950ff275",
"extension": "c"... | stackv2 | /*
* Algorithm : Bucket Sort
* Time-Complexity : O(n)
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define NARRAY 8 /* array size */
#define NBUCKET 5 /* bucket size */
#define INTERVAL 10 /* bucket range */
struct Node
{
int data;
struct Node *next;
};
void BucketSort(int arr[]);
struct No... | 4.09375 | 4 |
2024-11-18T22:08:31.575216+00:00 | 2018-08-22T03:24:36 | 35ab42c75f80e05b4db5c5388498afd192503c9e | {
"blob_id": "35ab42c75f80e05b4db5c5388498afd192503c9e",
"branch_name": "refs/heads/master",
"committer_date": "2018-08-22T03:24:36",
"content_id": "0852bc6ecc2ca42b5eadb1d73e35eb78a2457260",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "06a50cfded23b760d5b2a5ae7d5c4761ae2d4dc8",
"extensio... | stackv2 | /* C implementation of adjacency matrix based graph ADT */
/* A more modern and reusable implementation */
#ifndef _MATRIXGRAPH_H
#define _MATRIXGRAPH_H
#define MaxVertexNum 100
#define INFINITY 65535
typedef int Vertex; // subfix to represent vertex
typedef int Weight; /... | 2.28125 | 2 |
2024-11-18T22:08:31.698173+00:00 | 2015-08-01T16:29:13 | 3673af0ec7ec93c73c8680b6961e755809e6292e | {
"blob_id": "3673af0ec7ec93c73c8680b6961e755809e6292e",
"branch_name": "refs/heads/master",
"committer_date": "2015-08-01T16:29:13",
"content_id": "591addc936f4540c047b14ccec4b72988ccefff9",
"detected_licenses": [
"MIT"
],
"directory_id": "9df87cf106bcc88028a007c979c19a8e54f9a14d",
"extension": "c"... | stackv2 | #include "../def.h"
#pragma strict_types
inherit MASTER_ROOM;
void create_object(void);
void create_object(void)
{
set_short("An open area in front of the eerie castle");
set_long("You come out of the forest and enter an open area in front " +
"of the castle. The road goes back down the side of t... | 2.328125 | 2 |
2024-11-18T22:08:31.787285+00:00 | 2020-07-24T17:36:01 | 7aa824ea964aa239520280d774fe6a05accb4175 | {
"blob_id": "7aa824ea964aa239520280d774fe6a05accb4175",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-29T18:51:52",
"content_id": "a475c6e3a3a75cb48a6d2a8fffcf38f6edf6614e",
"detected_licenses": [
"ISC"
],
"directory_id": "8ffec1d3088724dca7e4f08ba5065637ed3a3cc4",
"extension": "c"... | stackv2 | /**
* Routines, which help to dump to stdout various NTFS structures
*
* Copyright (c) 2015-2016, Sergey Ryazanov <ryazanov.s.a@gmail.com>
*
* 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 t... | 2.203125 | 2 |
2024-11-18T22:08:32.233623+00:00 | 2020-03-30T13:35:42 | e8f65c349524acbc38bbc460f2dd6779ca00fd98 | {
"blob_id": "e8f65c349524acbc38bbc460f2dd6779ca00fd98",
"branch_name": "refs/heads/master",
"committer_date": "2020-03-30T13:35:42",
"content_id": "c0f0144f57c30140bb62ee3e01cde918de512898",
"detected_licenses": [
"MIT"
],
"directory_id": "edd884cd9c1bb2b691f0e0f13cd16c25afb418b3",
"extension": "c"... | stackv2 | /*
================================================================================
Name : 1043.c
Author : Abrantes Araújo Silva Filho
: abrantesasf@gmail.com
: https://www.abrantes.pro.br
Description : URI Online Judge: Problems & Contests
: https://www.urionlinejudge.... | 3.390625 | 3 |
2024-11-18T22:08:32.379092+00:00 | 2023-02-28T15:06:32 | a12572da694b470cac12518eca33c78687919bd9 | {
"blob_id": "a12572da694b470cac12518eca33c78687919bd9",
"branch_name": "refs/heads/master",
"committer_date": "2023-02-28T15:06:32",
"content_id": "ec8320a87dc34fc643594690138bb5b0e4c51c46",
"detected_licenses": [
"MIT",
"Apache-2.0"
],
"directory_id": "120c112ce63daaa939438e0b6f9390634af0f7ae",
... | stackv2 | /* SPDX-License-Identifier: Apache-2.0 OR MIT
*
* SPDX-FileCopyrightText: Copyright 2015 Micron Technology, Inc.
*/
/* The condvar subsystem is an abstraction of the pthread condition
* variable APIs that provide the same general semantics in both user
* and kernel space.
*
* Note that this implementation lever... | 2.546875 | 3 |
2024-11-18T22:08:32.465077+00:00 | 2020-07-14T06:30:07 | 910bda58b6af528e5ad983ec75d450ab100616b9 | {
"blob_id": "910bda58b6af528e5ad983ec75d450ab100616b9",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-14T06:30:07",
"content_id": "ddc5aa78e7721304ce1bac5b797e845b0295e5c5",
"detected_licenses": [
"MIT"
],
"directory_id": "027a6436d41230e66674066cb2be3250cda411ab",
"extension": "h"... | stackv2 | #ifndef _CAR_INFO_H
#define _CAR_INFO_H
#include "common.h"
//--------------角速度结构体---------------//
typedef struct
{
// y轴前后角速度
float y;
// z轴左右
float z;
}Omega;
//--------------车速结构体---------------//
typedef struct
{
int16 left;
int16 right;
int16 average;
int16 left_right_diff; // 左... | 2.203125 | 2 |
2024-11-18T22:08:43.698995+00:00 | 2020-01-20T08:44:58 | a5026eeb8a273e8d34b15b4e03c31deff155b1b6 | {
"blob_id": "a5026eeb8a273e8d34b15b4e03c31deff155b1b6",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-20T08:44:58",
"content_id": "1e1c58a1b2cdccf9e8caf5ad9b6eb486ac309d30",
"detected_licenses": [
"MIT"
],
"directory_id": "204259c42ee4fe0e9eb2c2284235204429e8e969",
"extension": "c"... | stackv2 | /*
const : constant의 약자 : 상수 -> 변하지 않는 수
*/
#include <stdio.h>
int add(const int a, const int b) {
// a = 50;
// b = 60;
return a + b;
}
int main_const(void) {
int num = 10; // 변수
num = 20; // 값을 변경 가능
const int count = 20; // 상수로 간주
// count = 30; // 상수이므로 변경 불가능 -> 에러
int num2 = 40;
int sum = add(num, num2... | 3.125 | 3 |
2024-11-18T22:08:43.754327+00:00 | 2017-08-03T08:39:43 | 01b5e73fa0bd1493125a4f56780c0719f3422b59 | {
"blob_id": "01b5e73fa0bd1493125a4f56780c0719f3422b59",
"branch_name": "refs/heads/master",
"committer_date": "2017-08-03T08:39:43",
"content_id": "e7ce79816de1bc3ffad339df4fc93afee09b43b2",
"detected_licenses": [
"MIT"
],
"directory_id": "8700fa500c760a8049c65df590632783cd64940a",
"extension": "c"... | stackv2 | #include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
static int alloc_size;
static char *memory;
void segv_handler (int signal_number)
{
printf ("memory accessed!\n");
mprotect (memory, alloc_size, PROT_R... | 3.078125 | 3 |
2024-11-18T22:08:47.285046+00:00 | 2019-04-10T14:42:36 | 6e3285d58c3789bb5ced326071c28f23107ebb11 | {
"blob_id": "6e3285d58c3789bb5ced326071c28f23107ebb11",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-10T14:42:36",
"content_id": "112e6c294f0ea59f8acbb67c206b08d0041ca822",
"detected_licenses": [
"MIT"
],
"directory_id": "924c23b0a9409da6742b1781c4363b2dc19ba729",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_des_feistel_function.c :+: :+: :+: ... | 2.5 | 2 |
2024-11-18T22:08:47.407480+00:00 | 2019-01-17T07:44:26 | acb3f3a07dbf2a677b34898f7c8ed92be1a3caff | {
"blob_id": "acb3f3a07dbf2a677b34898f7c8ed92be1a3caff",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-17T07:44:26",
"content_id": "11fa1744ba1ff6ec659b4e78d3b6f3628006f3e7",
"detected_licenses": [
"MIT"
],
"directory_id": "72794b65dd0111946c03cfa481fe957d1199da9a",
"extension": "c"... | stackv2 | /* 9-10(b)-12-13-20.26.c -- µÚ¾ÅÕµÚÊ®Ìâ(b) */
#include <stdio.h>
#include <stdlib.h>
#include "binary_heap.h"
int main (void) ;
int new_dijkstra (const Adjacenty_List * padj, const Hash_Table * const pht, const int start) ;
int main (void)
{
Adjacenty_List adj ;
Hash_Table ht ;
int capacity = 5 ;
Initialize_H (... | 3.0625 | 3 |
2024-11-18T22:08:47.676580+00:00 | 2023-02-16T11:27:40 | 11d1d72de45960bb6612a8ff51d49c15820557c4 | {
"blob_id": "11d1d72de45960bb6612a8ff51d49c15820557c4",
"branch_name": "refs/heads/main",
"committer_date": "2023-02-16T14:59:16",
"content_id": "d00c3b580b14e559d9e1199de270031a78169e7f",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e8302c75d770d1608b317d6af5c483bbad6c0493",
"extension"... | stackv2 | /*
* Copyright (c) 2022, Gerson Fernando Budke <nandojve@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/drivers/pinctrl.h>
#include <soc_gpio.h>
/** Utility macro that expands to the GPIO port address if it exists */
#define SAM_PORT_ADDR_OR_NONE(nodelabel) \
IF_ENABLED(DT_NODE_EXISTS... | 2.53125 | 3 |
2024-11-18T22:08:47.791693+00:00 | 2023-08-30T23:07:48 | 29f8356c79013343f913edfcae175e99e2a054bb | {
"blob_id": "29f8356c79013343f913edfcae175e99e2a054bb",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T23:07:48",
"content_id": "a0149a0d5eb72a31bdadc1c8089cc9530270b190",
"detected_licenses": [
"PostgreSQL"
],
"directory_id": "8a51a96f61699f0318315ccc89cef39f6866f2b5",
"extensio... | stackv2 | /*-------------------------------------------------------------------------
*
* dict_simple.c
* Simple dictionary: just lowercase and check for stopword
*
* Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
*
*
* IDENTIFICATION
* src/backend/tsearch/dict_simple.c
*
*-------------------... | 2.609375 | 3 |
2024-11-18T22:08:47.968616+00:00 | 2018-09-28T06:12:43 | 017870a950aca29e39abd0dfe9cefbe64c8b4813 | {
"blob_id": "017870a950aca29e39abd0dfe9cefbe64c8b4813",
"branch_name": "refs/heads/master",
"committer_date": "2018-09-28T06:12:43",
"content_id": "c3ca011438e623d00baa185ad7450dd8f4f02c8b",
"detected_licenses": [
"MIT"
],
"directory_id": "d6c537df666f8c5f5a8d2e45af141e7dd4778c62",
"extension": "h"... | stackv2 | #define GET_ARRAY_LEN(array, len){len = (sizeof(array)/sizeof(array[0]));}
int* bubble_sort(int* ARRAY, int LENGTH);
int* insert_sort(int* ARRAY, int LENGTH);
int* swap_sort(int* ARRAY, int LENGTH);
int* heap_sort(int* ARRAY, int LENGTH);
int* fuck_sort(int* ARRAY, int LENGTH);
| 2.09375 | 2 |
2024-11-18T22:08:49.062615+00:00 | 2021-05-03T01:33:11 | 1cbfb013ea486d7d82fdc32cf38ea6c86e2352c5 | {
"blob_id": "1cbfb013ea486d7d82fdc32cf38ea6c86e2352c5",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-03T01:33:11",
"content_id": "d50a974c49694e8dd226035b651de5d241ae9a32",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "87c2b3b746e97b2442b6fbfc3845e88e27130a75",
"extens... | stackv2 | #ifndef __ARCH_OPENRISC_COMMON_INCLUDE_SYSENTER_H__
#define __ARCH_OPENRISC_COMMON_INCLUDE_SYSENTER_H__
#include "common/include/inttypes.h"
static inline int sysenter(ulong num, ulong p1, ulong p2, ulong p3,
ulong *r1, ulong *r2)
{
register ulong o0 __asm__ ("r11");
register ulon... | 2.265625 | 2 |
2024-11-18T22:08:49.401748+00:00 | 2023-08-09T20:04:53 | 1e575f6925d61f83431b6d165f866a11772408b6 | {
"blob_id": "1e575f6925d61f83431b6d165f866a11772408b6",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-09T20:04:53",
"content_id": "bedb4fab78600970acec1c2022a895b7973cc371",
"detected_licenses": [
"MIT"
],
"directory_id": "420227858a6ac3d4364c95f5321d370b373ded5e",
"extension": "c",
... | stackv2 | #include <stdio.h>
int maior(int idade)
{
if (idade >= 18) {
return 1;
}
else {
return 0;
}
}
int main ()
{
int idade, herois;
int ingresso = 10;
printf("Qual a sua idade? ");
scanf("%d", &idade);
printf("Prefere (1) Marvel, (2) DC ou (3) Nao tenho preferencia. (... | 3.671875 | 4 |
2024-11-18T22:08:49.905758+00:00 | 2021-08-08T15:14:26 | 4b26733310380568d6c55228afbfff31cd1395b0 | {
"blob_id": "4b26733310380568d6c55228afbfff31cd1395b0",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-08T15:14:26",
"content_id": "4ac8d21f0ce9ce5fd2ede8df1a50a41f05aae0ff",
"detected_licenses": [
"MIT"
],
"directory_id": "951794506ca0eac05c488234224ee4ad68ee5a8b",
"extension": "c",
... | stackv2 | #include "parser.h"
#include "lexer.h"
#include "variable.h"
#include <stdio.h>
#include <stdlib.h>
static Token parse_expression(void);
static void parse_variable_decl(void);
void parse_tokens(void){
Token *t;
Token exp_result;
Variable *var;
if(show_next_token(&t)){ // this is the first token we get, so there ... | 3.015625 | 3 |
2024-11-18T22:08:50.123763+00:00 | 2017-04-24T15:25:36 | 9a5922dcfb81f9a3813a412458ef6de53cfa9298 | {
"blob_id": "9a5922dcfb81f9a3813a412458ef6de53cfa9298",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-24T15:25:36",
"content_id": "708fcb1a6980949b72f49ccb5726a9b79f52fed7",
"detected_licenses": [
"MIT"
],
"directory_id": "928de0a6c72a506e040cf5791a43269eefa47615",
"extension": "h"... | stackv2 | /**
* alint.h
* A library for storing and manipulating arbitrarily large
* integers (ALInts)
*
* <insert appropriate FOSS license>
*/
#ifndef __ALINT_H__
#define __ALINT_H__
// +-------------+---------------------------------------------------
// | Definitions |
// +-------------+
/**
* Store all ALInt ... | 2.890625 | 3 |
2024-11-18T22:08:51.228911+00:00 | 2016-06-14T07:53:15 | 990bf11b494c3294f657e014540184de702bfb6a | {
"blob_id": "990bf11b494c3294f657e014540184de702bfb6a",
"branch_name": "refs/heads/master",
"committer_date": "2016-06-14T07:53:15",
"content_id": "021c07d1cae52ae8fd3417b906a5d56962a47d92",
"detected_licenses": [
"MIT"
],
"directory_id": "d2abdfc2be9929fd1dca6fa442dd51444a1fc654",
"extension": "h"... | stackv2 | #ifndef INC__TT_PRIVATE_H__
#define INC__TT_PRIVATE_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stddef.h>
#include "tt_sys.h"
#include "tt_list.h"
#include "tt_memory_pool.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Public functions and structures */
/* Limitation:... | 2.171875 | 2 |
2024-11-18T22:08:52.462506+00:00 | 2018-10-03T15:12:58 | 4ca4973bbdf770c3de64be47b78cad0bba39eb87 | {
"blob_id": "4ca4973bbdf770c3de64be47b78cad0bba39eb87",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-03T15:12:58",
"content_id": "cb4bac8e16a23b8d6c2f7407c7ee5d932e5b6b73",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c2a861dff7aa0a218fa438620bfd7e1427a56e19",
"extens... | stackv2 | /**
* @addtogroup Interrupts-and-Syscalls
* @{
* @file s_print.c
* @author Menna Essa
* @date Thursday 25/10/2012
* @brief The actual printf procedure -to be implemented- .
* @name Print procedure .
* @{
*
*/
#include <types.h>
#include <arch/x86/x86.h>
#include <syscalls/syscalls.h>
/**
*@fn int32_t sys_pr... | 2.515625 | 3 |
2024-11-18T22:08:52.811620+00:00 | 2021-10-12T09:52:01 | 7af2af3ffb8bc56e2ee0a7a822a8c94d9c40b2eb | {
"blob_id": "7af2af3ffb8bc56e2ee0a7a822a8c94d9c40b2eb",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-12T09:52:01",
"content_id": "781ec75678dd3215173588b8cebed702f5b12d48",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "a286f8fb47496ed0e21e32dc422f778afbcc24bb",
"extens... | stackv2 | /*
* This program loads the given file of the following format:
* sec nsec\n
* sec nsec\n
*
* exmaple:
* 1 82923993
* -1 -593929029
*
* and prints total count of nanoseconds in the following format:
* 1082923993
* -1593929029
*
* Contiki NTP Client can print in the input format using serial communication.
... | 2.984375 | 3 |
2024-11-18T22:08:53.278865+00:00 | 2021-09-13T08:28:22 | 04806cbbd9f15379b82450cbb1eea971b6f70857 | {
"blob_id": "04806cbbd9f15379b82450cbb1eea971b6f70857",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-13T08:28:22",
"content_id": "e24a78a60666744f7d59dedc0509bde88b65c042",
"detected_licenses": [
"MIT"
],
"directory_id": "f3995f23672e727b122951186366ef5691d0ada8",
"extension": "c",
... | stackv2 | #include <stdio.h>
int main() {
char nomeCarro[30];
float precoFab, impostos, revendedor, precoFinal;
printf("Digite o nome do carro: ");
scanf("%s", nomeCarro);
printf("Informe o preco de fabrica do carro: ");
scanf("%f", &precoFab);
impostos = precoFab * 45 / 100.0;
revendedor = precoFab * 28 / 100.0;
p... | 3.21875 | 3 |
2024-11-18T22:08:53.382862+00:00 | 2013-04-15T00:27:15 | 96734c6ef5adec143986e281674e4b2ff2341375 | {
"blob_id": "96734c6ef5adec143986e281674e4b2ff2341375",
"branch_name": "refs/heads/master",
"committer_date": "2013-04-15T00:27:15",
"content_id": "1f5ab0a10c66b9dd013a54caf2abab93c9b9efeb",
"detected_licenses": [
"MIT"
],
"directory_id": "c6ac5b8e7d2f57fd2ac82c8acdaefdfae698589a",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2010 Colorado State University
*
* 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, mo... | 2.1875 | 2 |
2024-11-18T22:08:53.465471+00:00 | 2017-02-16T13:13:55 | dfcfdc507300f7c669308242b67386df9d102675 | {
"blob_id": "dfcfdc507300f7c669308242b67386df9d102675",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-16T13:13:55",
"content_id": "364446a37bb2199a9c8821f53234bd4bc3c3db72",
"detected_licenses": [
"MIT"
],
"directory_id": "2cd4da4aa12b1a1bea4f60285e676c8b65ff7df9",
"extension": "h"... | stackv2 | /* Projet C - Sujet JPEG */
#ifndef __TIFF_H__
#define __TIFF_H__
#include <stdint.h>
#include <stdio.h>
/* Structure permettant de stocker les informations nécessaire à
* l'écriture des données de l'image dans un fichier TIFF. */
struct tiff_file_desc;
/* Initialisation du fichier TIFF résultat, avec les paramètr... | 2.53125 | 3 |
2024-11-18T22:08:53.523932+00:00 | 2018-10-20T13:39:46 | f7c7670b0b769e1a248cbf56e6cb7bd08dcf4b06 | {
"blob_id": "f7c7670b0b769e1a248cbf56e6cb7bd08dcf4b06",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-20T13:39:46",
"content_id": "d3c7cc2927c41d09ee33857c0a76ae4c5a459274",
"detected_licenses": [
"Unlicense"
],
"directory_id": "394ff61413035e7b099a62ab8daedd119568a2c9",
"extension... | stackv2 | #include<stdio.h>
void accept(int [5][5],int ,int );
void display(int [5][5],int,int);
void add(int[5][5],int [5][5],int,int,int,int);
void mul(int[5][5],int [5][5],int,int,int,int);
void tran(int [5][5],int,int);
void sp(int [5][5],int,int);
void main() {
int a[5][5],b[5][5],r1,c1,r2,c2,n;
do {
printf("enter 1 fo... | 3.53125 | 4 |
2024-11-18T22:08:53.879664+00:00 | 2016-04-08T19:16:58 | 7b77b102754b2b17b86e4c023621834228c31382 | {
"blob_id": "7b77b102754b2b17b86e4c023621834228c31382",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-08T19:16:58",
"content_id": "250d866c407ba17a6569d61e6138a93015c79560",
"detected_licenses": [
"MIT"
],
"directory_id": "406cfa4afa04fb54002ab44968281c5122c64182",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define SIZE_DECK 52
#define SIZE_HAND 5
#define NUM_SUITS 4
#define NUM_VALUES 13
const char* const suitNames[NUM_SUITS] = {"Hearts", "Diamonds", "Clubs", "Spades"};
const char* const valueNames[NUM_VALUES] = {"Ace", "Two", "Three", "Four", "Five", "Six",
... | 3.203125 | 3 |
2024-11-18T22:08:54.562689+00:00 | 2019-06-13T02:44:40 | 78a063aa2c6bd02815a0818199dda018da8ca589 | {
"blob_id": "78a063aa2c6bd02815a0818199dda018da8ca589",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-13T02:44:40",
"content_id": "7f86a528eb10a7d42747afcc31eb6a0933080d14",
"detected_licenses": [
"BSD-3-Clause",
"BSD-2-Clause"
],
"directory_id": "6a36f2b473c63e1b6c3392140e188e26... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include <linux/limits.h>
#include <stdint.h>
#include <assert.h>
#include <errno.h>
#include <sys/time.h>
#include <string.h>
#include "fpga_ddr_rw_interface.h"
#include "memory_manager.h"
#define THREAD_NUM_MAX (64)
unsigned int result... | 2.34375 | 2 |
2024-11-18T22:08:54.649417+00:00 | 2019-09-12T20:09:04 | a2f8f971566cf9ff791976f40fc5b6f713f8b188 | {
"blob_id": "a2f8f971566cf9ff791976f40fc5b6f713f8b188",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-12T20:09:04",
"content_id": "98f71e8fefd641de94eb33e19be80c5595305daa",
"detected_licenses": [
"MIT"
],
"directory_id": "5e2224556c68bacf6b8e7d638be8d9c5981a1811",
"extension": "c"... | stackv2 | /*
* Created by: Matthew Lourenco
* Created on: June 25th, 2019
* This program is a terminal calculator.
*
*/
#include <stdio.h>
#include <string.h>
#include "quadf.h"
char* EMPTY_LINE = ">> ";
char* COMMAND_LIST = ""
"-------------------------------------------------------------\n"
"Commands:\n"
"+ 'add' ... | 3.328125 | 3 |
2024-11-18T22:08:55.486743+00:00 | 2016-08-14T05:34:16 | b0248f5aec21c27c34d4266f4e4d2d862246ed23 | {
"blob_id": "b0248f5aec21c27c34d4266f4e4d2d862246ed23",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-14T05:34:16",
"content_id": "95943f3ab31a266d91a1c6199d1ecbb46a1f64f5",
"detected_licenses": [
"Unlicense"
],
"directory_id": "41f5f6f98ffcc80d4006f5e5bf06c7ecc82b0848",
"extension... | stackv2 | /*
* Ferriel Lisandro B. Melarpis
* 2012-01065
* CMSC 125 ST-8L
* Exer 7 Shared Memory
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <unistd.h>
#define MY_KEY 1234
#define N 5
int main(){
key_t key = MY_KEY;
int segment_id; /* shared-memory... | 3.28125 | 3 |
2024-11-18T22:08:55.905545+00:00 | 2017-10-06T06:42:34 | 5b372d5895b600a41b6694c030fa5cf903fa6eaa | {
"blob_id": "5b372d5895b600a41b6694c030fa5cf903fa6eaa",
"branch_name": "refs/heads/master",
"committer_date": "2017-10-06T06:42:34",
"content_id": "86ecc67a55a0bdbd0abc321f450bd67fc16427f4",
"detected_licenses": [
"MIT"
],
"directory_id": "48efeffbc3c3cc4918a1d4917327bc424b24f16b",
"extension": "c"... | stackv2 | #include "screen.h"
// TODO: the double pointer and the dereference is a bit messy,
// try to refactor if possible or at least clean up
void init_window(SDL_Window **window, SDL_Renderer **renderer, SDL_Texture **texture) {
(*window) = SDL_CreateWindow(
"CHIP-8", // window label
... | 2.734375 | 3 |
2024-11-18T22:08:57.181574+00:00 | 2022-08-30T09:20:06 | f8900e1a3ce7b9bf950cabdb19480dac43516e89 | {
"blob_id": "f8900e1a3ce7b9bf950cabdb19480dac43516e89",
"branch_name": "refs/heads/master",
"committer_date": "2022-08-30T09:20:06",
"content_id": "1e0b06eb0873a4a7838e66cded3a2ed72c7c961c",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "578a154fcdbebf1bb54f03d56edf85791e48ab3b",
"extens... | stackv2 | #ifndef __KVT_H
#define __KVT_H
#include <stdint.h>
#include <stdio.h>
#include <mavl.h>
#include "mavltypes.h"
#include "bstr.h"
/**
* @addtogroup ALGOS
* @{
*/
/**
* @defgroup KTV KTV Store (Key-Type-Value-Store)
* @{
*/
//#define CW_KTV_MAX_KEY_LEN 1024
typedef struct cw_Cfg cw_Cfg_t;
/**
* @struct ... | 2.328125 | 2 |
2024-11-18T22:09:00.813051+00:00 | 2018-12-14T18:32:02 | ce2828a5f86882b76392d107056005c91b89db1b | {
"blob_id": "ce2828a5f86882b76392d107056005c91b89db1b",
"branch_name": "refs/heads/master",
"committer_date": "2018-12-14T18:32:02",
"content_id": "cc1b9fe93ec9bd7880dfbae9c1a0b3de3b616bbb",
"detected_licenses": [
"MIT"
],
"directory_id": "ad7bb494fa13c9d23c263ebed2e4d7a23a0b477e",
"extension": "c"... | stackv2 | #include<stdio.h>
void push(int[],int,int);
int pop(int[],int);
int top= -1;
int main(){
int value,n,i,a[5];
printf("Enter 1 for push: \n");
printf("Enter 2 for pop: \n");
printf("Enter 3 for display: \n");
printf("Enter 4 for exit: \n");
scanf("%d",&n);
while(n!=4){
switch(n){
c... | 3.5625 | 4 |
2024-11-18T22:09:01.138558+00:00 | 2019-12-07T19:04:27 | 40c1be51b36105d3cc37c7ce2685893e2c09b5c0 | {
"blob_id": "40c1be51b36105d3cc37c7ce2685893e2c09b5c0",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-07T19:04:27",
"content_id": "db882d97a3f55ddddfe3f3dbc72a987cbc9f0aaa",
"detected_licenses": [
"MIT"
],
"directory_id": "27ca196c9f0769b36a7e70c2d93ab9d138f6ddb0",
"extension": "c"... | stackv2 | //
// sandbox/fecsoft_conv_test.c
//
// This script simulates soft vs. hard decoding of convolutional codes.
//
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <complex.h>
#include <time.h>
#include <getopt.h>
#include "liquid.internal.h"
#define OUTPUT_FILENAME "fecsoft_conv_test.m"
void usage()... | 2.359375 | 2 |
2024-11-18T22:09:01.529808+00:00 | 2023-04-16T15:10:41 | 7a1ee093818876bad078649d6fe321be8e5e61b7 | {
"blob_id": "7a1ee093818876bad078649d6fe321be8e5e61b7",
"branch_name": "refs/heads/master",
"committer_date": "2023-04-16T15:10:41",
"content_id": "2d4351131b61b20c965fb9529cbf0352062cb14a",
"detected_licenses": [
"MIT"
],
"directory_id": "66748c5786cbf83ecab841ec62d365d0c8f4397e",
"extension": "h"... | stackv2 | /***************************************************************************************
* A small demo for the ytGraph function set
* Platform: Arduino / ESP
*
* Armin Pressler 2021
* https://github.com/ArminPP/ytGraph
*
*
*
* MIT License
*
* Changelog:
* v0.5 initial version (28-Feb-2021)
********... | 2.109375 | 2 |
2024-11-18T22:21:07.701655+00:00 | 2023-08-25T15:50:04 | 2c6df91b93ccfe028aa61278b905c320c81fa206 | {
"blob_id": "2c6df91b93ccfe028aa61278b905c320c81fa206",
"branch_name": "refs/heads/develop",
"committer_date": "2023-09-01T11:13:12",
"content_id": "adbc7118330c5d31ff80917fbcca593ad15b2551",
"detected_licenses": [
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
],
"directory_id": "3dac298c4132d69b96ab... | stackv2 | /* read_refname.c -- showcases the htslib api usage
Copyright (C) 2023 Genome Research Ltd.
Author: Vasudeva Sarma <vasudeva.sarma@sanger.ac.uk>
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 ... | 2.578125 | 3 |
2024-11-18T22:21:08.395700+00:00 | 2009-02-03T09:26:17 | 531ba3397656f2d46bca5a22429df98f70d618a8 | {
"blob_id": "531ba3397656f2d46bca5a22429df98f70d618a8",
"branch_name": "refs/heads/master",
"committer_date": "2009-02-03T09:26:17",
"content_id": "ba591622dff1cc1c3723ab31170d7489ef7794c3",
"detected_licenses": [
"MIT"
],
"directory_id": "79086a8fa3e61db5b6bf4079101276994ae69598",
"extension": "c"... | stackv2 | /* MiniWebSvr - A small webserver
Copyright (c) 2009 Nickolas Antonie Grigoriadis
E-Mail: grigi_ at users.sourceforge.net
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 witho... | 2.125 | 2 |
2024-11-18T22:21:08.485903+00:00 | 2020-04-21T07:55:47 | 719ffff85f7a4d0843f032337011c5f0ec0b70b4 | {
"blob_id": "719ffff85f7a4d0843f032337011c5f0ec0b70b4",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-21T07:55:47",
"content_id": "c457d40866e3d01d9cb62bc165821c61e24ffbfe",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "e618c0d5f4d49471bc1e6cce6e539ec4cfd7d2a9",
"extensio... | stackv2 | /*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundl... | 2.25 | 2 |
2024-11-18T22:21:08.556303+00:00 | 2022-01-03T15:43:59 | 27c8ada207b37c79e76558625712612347408cf6 | {
"blob_id": "27c8ada207b37c79e76558625712612347408cf6",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-03T15:43:59",
"content_id": "41c0c11daffcb5c085b56835023fdf204fa679de",
"detected_licenses": [
"MIT"
],
"directory_id": "2ea1bb6999f7c71c1be8f8317f7e63327648c517",
"extension": "h"... | stackv2 | // RFM12B driver definitions
// 2009-02-09 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#ifndef RF12_h
#define RF12_h
#include <stdint.h>
// version 1 did not include the group code in the crc
// version 2 does include the group code in the crc
#define RF12_VERSION 2
#define rf12_grp rf1... | 2.15625 | 2 |
2024-11-18T22:21:08.630595+00:00 | 2017-01-07T15:03:47 | 91187c5ec9383bf405507276a63bb67f63fde6a2 | {
"blob_id": "91187c5ec9383bf405507276a63bb67f63fde6a2",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-07T15:03:47",
"content_id": "d4e50df188e1fe751e81006fad932e9639d74c7b",
"detected_licenses": [
"Artistic-2.0"
],
"directory_id": "2d09ab4553bd388ffd4c254d8f60b727ddefc51e",
"extens... | stackv2 | #include "blitter.h"
UWORD FirstWordMask[16] = {
0xFFFF, 0x7FFF, 0x3FFF, 0x1FFF, 0x0FFF, 0x07FF, 0x03FF, 0x01FF,
0x00FF, 0x007F, 0x003F, 0x001F, 0x000F, 0x0007, 0x0003, 0x0001
};
UWORD LastWordMask[16] = {
0xFFFF, 0x8000, 0xC000, 0xE000, 0xF000, 0xF800, 0xFC00, 0xFE00,
0xFF00, 0xFF80, 0xFFC0, 0xFFE0, 0xFFF0, ... | 2.15625 | 2 |
2024-11-18T22:21:09.532785+00:00 | 2023-08-27T19:18:57 | c8c1eca29c19bb73ada53da7aaba839f28e1dcaa | {
"blob_id": "c8c1eca29c19bb73ada53da7aaba839f28e1dcaa",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-27T19:18:57",
"content_id": "3e41be879708775bc21e31079279411e0b5308f0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "76f7459a09acb9be2d52407132f5ff8955627da2",
"extens... | stackv2 | /*
BLIS
An object-based framework for developing high-performance BLAS-like
libraries.
Copyright (C) 2016 - 2019, Advanced Micro Devices, Inc.
Copyright (C) 2018, The University of Texas at Austin
Redistribution and use in source and binary forms, with or without
modification, are permitted prov... | 2.03125 | 2 |
2024-11-18T22:21:09.600029+00:00 | 2017-04-22T22:18:01 | e0caf89c436d07620a19a5ff063896572a94b937 | {
"blob_id": "e0caf89c436d07620a19a5ff063896572a94b937",
"branch_name": "refs/heads/master",
"committer_date": "2017-04-22T22:18:01",
"content_id": "08d9c2c683e6bbd49e3fb6b94a778565f872a29a",
"detected_licenses": [
"MIT"
],
"directory_id": "9ef741cf37257dc4946a9852e9500b30764c531a",
"extension": "c"... | stackv2 | /* Fondement Michtam
* Copyright (C) 2011 Xavier Lacroix
*
* 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 License, or
* (at your option) any later version.
... | 2.125 | 2 |
2024-11-18T22:21:10.006889+00:00 | 2021-01-24T04:50:56 | 412a8a55900a16da4620dbb46452454d2c56dbcd | {
"blob_id": "412a8a55900a16da4620dbb46452454d2c56dbcd",
"branch_name": "refs/heads/main",
"committer_date": "2021-01-24T04:50:56",
"content_id": "c64f21f1b600f3029a0cb36989d067bcd514e6e9",
"detected_licenses": [
"MIT"
],
"directory_id": "f937c019dc6ffeb77e63fce6cf1fd42e43d81ea1",
"extension": "c",
... | stackv2 | #include "lv_auto_event.h"
static void lv_auto_event_task_handler(lv_task_t* task)
{
lv_auto_event_t* ae = (lv_auto_event_t*)(task->user_data);
lv_event_send(
*(ae->auto_event_data[ae->run_index].obj_p),
ae->auto_event_data[ae->run_index].event,
ae->auto_event_data[ae->run_index].user_... | 2.40625 | 2 |
2024-11-18T22:21:10.069924+00:00 | 2021-05-01T17:11:27 | 54e0b2bb7bd72db54c5b6a8b7153adaa8cadb294 | {
"blob_id": "54e0b2bb7bd72db54c5b6a8b7153adaa8cadb294",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-01T17:11:27",
"content_id": "48e9a4b90e871caeef3f8d3204c24fa4e106b0d9",
"detected_licenses": [
"MIT"
],
"directory_id": "e429f4922900ecac877c50f4c31f43f60d13218f",
"extension": "h",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <math.h>
#include <stdbool.h>
#pragma warning(disable:4996)
typedef uint16_t WORD;
typedef uint32_t DWORD;
typedef int32_t LONG;
// https://docs.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-bitmapfileheader
typedef struc... | 2.59375 | 3 |
2024-11-18T22:21:10.582182+00:00 | 2017-12-26T13:38:19 | d56edbc9223939bdb2b142e6e3fcaae86de22f72 | {
"blob_id": "d56edbc9223939bdb2b142e6e3fcaae86de22f72",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-26T13:41:25",
"content_id": "c6df961db3078584de33824ea96ce37c3998ca67",
"detected_licenses": [
"MIT"
],
"directory_id": "2fa9584baf8e9d7808241fb0274acc5f1f0ff0e9",
"extension": "c"... | stackv2 | #include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <stdint.h>
#include "mcp4921.h"
#include "uart.h"
#include "midi.h"
#include "settings.h"
#include "notemem.h"
#include "turing.h"
#include "mode.h"
#include "mode_prio.h"
#include "mode_midilearn.h"
#include "mode_turing.h"
#include "const... | 2.625 | 3 |
2024-11-18T22:21:10.656188+00:00 | 2022-04-24T14:29:53 | 3bd3a5273cbb63540d6a9cb1821f8cbf4d8fae20 | {
"blob_id": "3bd3a5273cbb63540d6a9cb1821f8cbf4d8fae20",
"branch_name": "refs/heads/master",
"committer_date": "2022-04-24T14:29:53",
"content_id": "893bc20ff7a83fee240693755ae60ff03179aa17",
"detected_licenses": [
"MIT"
],
"directory_id": "b4fd8411012fabcfb3dcf8126b62d36045bd506b",
"extension": "c"... | stackv2 | #include <Python.h>
#include "quickxorhash.h"
typedef struct {
PyObject_HEAD
qxhash *_hash;
} quickxorhashObject;
static PyObject *
quickxorhash_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
quickxorhashObject *self;
self = (quickxorhashObject *) type->tp_alloc(type, 0);
if (self != NU... | 2.421875 | 2 |
2024-11-18T22:21:10.741700+00:00 | 2021-08-02T02:22:48 | 24b72c25605c2fd4b229bee2ff1e108aafc02c04 | {
"blob_id": "24b72c25605c2fd4b229bee2ff1e108aafc02c04",
"branch_name": "refs/heads/main",
"committer_date": "2021-08-02T02:22:48",
"content_id": "6ad665580984e3bc7e327a35c5c312e8bb6f4668",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "126a3930c647af64274afe7c531beeb8295a1300",
"extension"... | stackv2 | #include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define SHM_SIZE 0x100
int main()
{
int fd = shm_open("xxw_shm", O_RDONLY, 0666);
ftruncate(fd, SHM_SIZE);
char *p = mmap(NULL, SHM_SIZE, PROT_READ, MAP_SHARED, fd, 0);
p... | 2.40625 | 2 |
2024-11-18T22:21:10.843500+00:00 | 2021-02-26T05:12:54 | 9725cbe5d9207780e153730822011a2ae05179ea | {
"blob_id": "9725cbe5d9207780e153730822011a2ae05179ea",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-26T05:12:54",
"content_id": "9e01e876a29940e3e360b8e0b84f31b57d8c632a",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "7050ec74bd55ca1f98ddc0584e742b3415593784",
"extensio... | stackv2 | #ifdef __cplusplus
extern "C" {
#endif
#include "native_console.h"
static str_t* args_to_str(var_t* args) {
str_t* ret = str_new("");
str_t* str = str_new("");
uint32_t sz = var_array_size(args);
uint32_t i;
for(i=0; i<sz; ++i) {
node_t* n = var_array_get(args, i);
if(n != NULL) {
var_to_str(n->var, str);... | 2.46875 | 2 |
2024-11-18T22:21:10.893795+00:00 | 2017-12-01T10:14:22 | b7d1962891a60977dac73209e511fc3a92760d4d | {
"blob_id": "b7d1962891a60977dac73209e511fc3a92760d4d",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-01T10:15:36",
"content_id": "52abfefc2a6627edc08d769d9a5a2bc1f3479f8c",
"detected_licenses": [
"MIT"
],
"directory_id": "154c695846d99439455c580911a4cab002abb1b3",
"extension": "c"... | stackv2 |
#include "unicode.h"
#include <assert.h>
#include <inttypes.h>
#include <stdio.h>
static void utf8_code_point_iterate(utf8 *s) {
uint8_t *p;
size_t l1;
int l2;
bool b;
uint32_t cp;
p = s->p;
l1 = s->len;
while (true) {
b = utf8_next_uint32_len(p, &l2);
assert(b);
assert(l2 <= l1);
b... | 3.234375 | 3 |
2024-11-18T22:21:10.969818+00:00 | 2021-07-08T11:19:55 | ad9a04cc21c65e1c08869208ae05885b47168bc8 | {
"blob_id": "ad9a04cc21c65e1c08869208ae05885b47168bc8",
"branch_name": "refs/heads/main",
"committer_date": "2021-07-08T11:19:55",
"content_id": "5f3860f6dbf5ebeb60d868ec5513a4f35d9c95d6",
"detected_licenses": [
"MIT"
],
"directory_id": "9b28c8cf948e12ec6566c2420eb9860b58569339",
"extension": "c",
... | stackv2 | //Find the character in first string that is present at minimum index in second string
#include <stdio.h>
#include <limits.h>
int length(char s[]){
int n=0;
for(int i=0;s[i]!='\0';i++){
n++;
}
return n;
}
void findMinIndex(char s2[],char s1[],int n2,int n1){
int min_index=INT_MAX;
for(in... | 3.796875 | 4 |
2024-11-18T22:21:11.089990+00:00 | 2021-05-31T21:14:38 | dec76739f0f235ab62df77b652be6b8d26b80241 | {
"blob_id": "dec76739f0f235ab62df77b652be6b8d26b80241",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-31T21:14:38",
"content_id": "02b7bec8ab8155716ca68b2eaf3c37ac7072c164",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "4040636895172b5a275a451ae8926676bbe1529d",
"extensio... | stackv2 | /*
* Copyright (c) 2008-2010 Stefan Krah. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... | 2.09375 | 2 |
2024-11-18T22:21:11.179518+00:00 | 2021-03-05T14:21:15 | 49b9526bfb3fd85261062b53bf2dad7d7f68a786 | {
"blob_id": "49b9526bfb3fd85261062b53bf2dad7d7f68a786",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-05T14:21:15",
"content_id": "0f342afdbd1934bd47eeb6bf66a89b1fcbaa12d5",
"detected_licenses": [
"MIT"
],
"directory_id": "cf3e0c50628597a77d8ab3bf1db5c56ffbf764b6",
"extension": "c",
... | stackv2 | /* Use the static specifier */
#include <stdio.h>
int add_two(int x, int y){
// int counter = 1;
static int counter = 1;
printf("This is the function call of %d,\n", counter++);
return (x + y);
}
int main(){
int i, j;
for (i=0, j=5; i<5; i++, j--)
printf("the addition of %d and %d is %d.\n\n"... | 3.5 | 4 |
2024-11-18T22:21:12.510112+00:00 | 2018-11-04T07:57:08 | be5d7b343a92bd4e9d7f7c572f84799001129bcf | {
"blob_id": "be5d7b343a92bd4e9d7f7c572f84799001129bcf",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-04T07:57:08",
"content_id": "c9a1b998f382e64620606e86b964837f49800793",
"detected_licenses": [
"MIT"
],
"directory_id": "17cff0324e1202ae3ded55f4342092fe17e6f505",
"extension": "c"... | stackv2 | /*Write a program to validate the SSN number given by US authority.
If any one condition is failed then need to throw the error
1. The number should contains at least 2 even numbers
2. The number should be divisible by 2 or even number
3. The 2nd, 4th digit must not be divisible by 5
4. The sume of 5th & 1st digit sh... | 3.640625 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.