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:24:56.477455+00:00
2023-06-30T10:44:39
a785d8ad1380ad5542be9cc6d6e47f47ae7dc9b6
{ "blob_id": "a785d8ad1380ad5542be9cc6d6e47f47ae7dc9b6", "branch_name": "refs/heads/master", "committer_date": "2023-06-30T10:44:39", "content_id": "81aabf5e17e5e3941aaef5273797447fead3b237", "detected_licenses": [ "Unlicense" ], "directory_id": "3369d545aaed04a66bdc6debfbd569799d4d9848", "extension...
stackv2
#include <stdio.h> #include <stdlib.h> short areDigitsDifferent(unsigned int const num) { unsigned int tNum = num; unsigned short usedDigits[8]; for (unsigned int i = 0 ; i < 9; ++i) { unsigned int const digit = tNum % 10; for (unsigned int j = 0; j < i; ++j) if (usedDigits[j] == digit) ret...
3.375
3
2024-11-18T21:24:56.605936+00:00
2013-12-27T15:00:57
160483b45e479a1e2d7cfd86678f751e8ee38917
{ "blob_id": "160483b45e479a1e2d7cfd86678f751e8ee38917", "branch_name": "refs/heads/master", "committer_date": "2013-12-27T15:00:57", "content_id": "2cf5d9ab05a68ca57da0b0cc7b1f4efebd1cb10c", "detected_licenses": [ "MIT" ], "directory_id": "013c03a25d27aa8e8ff5c197219cdd3ae88f4647", "extension": "c"...
stackv2
/** * \file * <!-- * This file is part of osal - OS abstraction layer. * * * Copyright 2009-2013 Phillip Yeager * * * \brief Timer interface * * This module provides time delay functionality for osal * * \author Phillip Yeager <monstermoto@yahoo.com> */ #include "osal_free/osal.h" #include "osal_free/osa...
2.25
2
2024-11-18T21:24:56.731493+00:00
2023-08-04T12:40:00
f8e4290431de129dc52549d3db7a43f0c4d11c22
{ "blob_id": "f8e4290431de129dc52549d3db7a43f0c4d11c22", "branch_name": "refs/heads/master", "committer_date": "2023-08-04T12:40:00", "content_id": "8ad994aebf3405ad14ac0f6628f2039a5fa0a6e4", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "5e4913b3d7b6dfd9f35d9e5f24486bb6b6145125", "extens...
stackv2
/** * @file * * @brief * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include "validation.h" /* * Lookup for a key which any of its @p where components matches the * @p regex regular expression. * * TODO: Does not work (no example, no test case) * * @deprecated Does not work...
2.34375
2
2024-11-18T21:24:56.960926+00:00
2014-11-06T02:08:50
e76775c8ecf61799901aa468f2ff8623a9988761
{ "blob_id": "e76775c8ecf61799901aa468f2ff8623a9988761", "branch_name": "refs/heads/master", "committer_date": "2014-11-06T02:08:50", "content_id": "5251fe8de5d090e0e8c044beb4e689ed1121aba7", "detected_licenses": [ "MIT" ], "directory_id": "2c78dd5689695a688f0acf83b28d21adb79ca12d", "extension": "c"...
stackv2
#include "mobilereminder.h" ssize_t mySendTo(int socket, char* buffer, size_t length, int flag, struct sockaddr *address, socklen_t len) { if (sendToFlag%2 == 0) { #ifdef Debug printf("Sending %s\r\n", buffer); #endif sendToFlag++; return sendto(socket, buffer, length, flag, address, len); } #ifdef De...
2.421875
2
2024-11-18T21:24:57.017530+00:00
2019-12-04T21:47:59
3fb03084d2deb76deaf12be59c79a71c2d872ab4
{ "blob_id": "3fb03084d2deb76deaf12be59c79a71c2d872ab4", "branch_name": "refs/heads/master", "committer_date": "2019-12-04T21:47:59", "content_id": "007d314689f26aa421e61b5d4daa6912b7c18a88", "detected_licenses": [ "MIT" ], "directory_id": "b649f2846b776d22b5b230aae5dd847cffab250c", "extension": "c"...
stackv2
/* rx.c: Serial reception in canonical mode. Copyright (c) 2016 Walter Fetter Lages <w.fetter@ieee.org> 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 Lice...
2.5625
3
2024-11-18T21:25:01.003190+00:00
2020-06-19T21:56:00
ceba75110571eb2713ce4ddd88f1897009fd21e7
{ "blob_id": "ceba75110571eb2713ce4ddd88f1897009fd21e7", "branch_name": "refs/heads/master", "committer_date": "2020-06-19T21:56:00", "content_id": "411ca8258b18adb0570bbfdb8a6e2b1cc4965714", "detected_licenses": [ "MIT" ], "directory_id": "da029d258ed3e0806e77847d07833a31b58049e3", "extension": "c"...
stackv2
/* C/C++ program for Memoized version for nth Fibonacci number */ #include <stdio.h> #include <time.h> #define NIL -1 #define MAX 100 long lookup[MAX]; /* Function to initialize NIL values in lookup table */ void _initialize(int n) { int i; for (i = 0; i <= n; i++) lookup[i] = NIL; } /* function for nth Fib...
3.65625
4
2024-11-18T21:25:01.090770+00:00
2012-03-06T01:36:30
0aab44a392f2dd9e5285f541c4c43d4594ee5b96
{ "blob_id": "0aab44a392f2dd9e5285f541c4c43d4594ee5b96", "branch_name": "refs/heads/master", "committer_date": "2012-03-06T01:36:30", "content_id": "2eeb8a5f055e841cf764505ae670cdd46014d90b", "detected_licenses": [ "MIT" ], "directory_id": "347c336a6395295a650ce9c8b785cdd7aefb1119", "extension": "c"...
stackv2
#include <psyc.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <lib.h> uint8_t verbose; int test_update (const char *buf, size_t buflen, const char *r_idx, size_t r_idxlen, char r_oper, const char *r_typ, size_t r_typlen, const char *r_val, size_t r_vallen) { char *idx = m...
2.703125
3
2024-11-18T21:25:01.465886+00:00
2018-05-27T19:30:02
cfee819a27d452cfd6cf71d3d06e1bbda16a31e0
{ "blob_id": "cfee819a27d452cfd6cf71d3d06e1bbda16a31e0", "branch_name": "refs/heads/master", "committer_date": "2018-05-27T19:30:02", "content_id": "e0651b9a6d092de7f82c8b5c8115b83694986253", "detected_licenses": [ "MIT" ], "directory_id": "a8157af58435d2308c07e04a3dc61f3bf49d955b", "extension": "c"...
stackv2
/** Correct behavior: LCD Screen will display: x/2 <= y */ task main() { ubyte x = 10; ubyte y = 20; if ((ubyte)(x/2) > y) { nxtDisplayTextLine(0, "x/2 > y"); } else { nxtDisplayTextLine(0, "x/2 <= y"); } }
2.828125
3
2024-11-18T21:25:01.879089+00:00
2017-10-31T16:51:09
380058ea810a2a6ba082dabc2e46e3fe50c38d9d
{ "blob_id": "380058ea810a2a6ba082dabc2e46e3fe50c38d9d", "branch_name": "refs/heads/master", "committer_date": "2017-10-31T16:51:09", "content_id": "08177ac8103fa1f9905a7dae9254b47d1b18192d", "detected_licenses": [ "MIT" ], "directory_id": "4e87f0f44dd3c1ad87d4d29ad5076c45fa940484", "extension": "h"...
stackv2
/* * Energy and performance measurement utility functions * * Author: Mikael Hirki <mikael.hirki@gmail.com> * * Copyright (c) 2015 Helsinki Institute of Physics * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"...
2.109375
2
2024-11-18T21:25:02.120220+00:00
2020-02-27T14:51:48
39ca272d167f67b774c959678328a38fe66754b3
{ "blob_id": "39ca272d167f67b774c959678328a38fe66754b3", "branch_name": "refs/heads/master", "committer_date": "2020-02-27T14:51:48", "content_id": "eb00069ebbd95c50051f9f1d6a5b9a44790592f2", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d4c74a8001451840f3efb87f15856cdb9d5e9eb6", "extensio...
stackv2
// MBED OS #include "cmsis_os2.h" #include "gap_common.h" #include "mbed_wait_api.h" #define BUFFER_SIZE 4 #define TARGET_SLAVE 0 #define I3C 0 #define I2C 1 #define TOC 0 #define ROC 1 #define TID 1 #define REGULAR_CMD 0 #define IMM_...
2.265625
2
2024-11-18T21:25:02.202381+00:00
2022-05-27T02:38:02
3382012aedb1d9f608c081f45a1d71cc90b3a31a
{ "blob_id": "3382012aedb1d9f608c081f45a1d71cc90b3a31a", "branch_name": "refs/heads/master", "committer_date": "2022-05-27T02:38:02", "content_id": "91de697c474aed8a5bce2f2e54b47d27928bfc8e", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "0c52bfe54cf5c4ae8989276112b1bfb8adca0efe", "extens...
stackv2
#ifndef __EVTHREAD_H_ #define __EVTHREAD_H_ #include <corothread/cthread.h> #include <corothread/stacks.h> #include <sys/socket.h> #include <sys/types.h> #include <cutils/dlist.h> #include <nutils/addrutil.h> #include <event.h> // --------------------------------------------------------------------------- /** * ...
2.125
2
2024-11-18T21:25:02.364467+00:00
2021-05-19T13:29:39
24946f7d91fe22d20eed921f0a520cca6debcbe8
{ "blob_id": "24946f7d91fe22d20eed921f0a520cca6debcbe8", "branch_name": "refs/heads/master", "committer_date": "2021-05-19T13:29:39", "content_id": "eff3dfbbfaa8238721d9dc8c7463d68bfa5e9c3c", "detected_licenses": [ "Apache-2.0" ], "directory_id": "2b0b3f5c4ac479ca8e679b588c6ec8f930da5586", "extensio...
stackv2
// to compile under Mac, use the following command // gcc HelloOpenGL.c -framework GLUT -framework OpenGL -framework Cocoa -o HelloOpenGL #ifdef _WIN32 //define something for Windows (32-bit and 64-bit, this part is common) #include <gl/freeglut.h> // For windows #ifdef _WIN64 //define something for Windows...
2.234375
2
2024-11-18T21:25:03.965295+00:00
2021-02-04T16:07:02
cf60abaf9130ef908ed3fc3068b742a476866f40
{ "blob_id": "cf60abaf9130ef908ed3fc3068b742a476866f40", "branch_name": "refs/heads/master", "committer_date": "2021-02-04T16:07:02", "content_id": "abda9e2171ab8df7098300a929ddc0dc82324c53", "detected_licenses": [ "NTP" ], "directory_id": "f283c79b532fe09e61272e5648693ce7fae159bf", "extension": "c"...
stackv2
/* * authkeys.c - routines to manage the storage of authentication keys */ #include <stdio.h> #include "ntp_types.h" #include "ntp_fp.h" #include "ntp_string.h" #include "ntp_malloc.h" #include "ntp_stdlib.h" /* * Structure to store keys in in the hash table. */ struct savekey { struct savekey *next; union { ...
2.609375
3
2024-11-18T21:25:04.113915+00:00
2018-06-08T04:17:05
5f8c804320e224b46b1040908d3b0f6caf44499a
{ "blob_id": "5f8c804320e224b46b1040908d3b0f6caf44499a", "branch_name": "refs/heads/master", "committer_date": "2018-06-08T04:17:05", "content_id": "aee32e6e2aa71650f550a866b120a5a5ae9a8bb8", "detected_licenses": [ "MIT" ], "directory_id": "351fe6e47b1edc4fa8b9333340ba914299fa1b64", "extension": "c"...
stackv2
/***/static char *moduleID="convert 1.0 (c)1988 S. Savitzky";/***/ /*********************************************************************\ ** ** F I L E C O N V E R S I O N ** ** Here is where we do all conversion of X disk representations ** to in-core and PC formats. ** ** Contains: ** various utilities ** ...
2.09375
2
2024-11-18T21:25:04.491494+00:00
2018-12-28T11:52:47
f68c7c21e3ccc6b40d3ab72543a3959411775c88
{ "blob_id": "f68c7c21e3ccc6b40d3ab72543a3959411775c88", "branch_name": "refs/heads/master", "committer_date": "2018-12-28T11:53:15", "content_id": "fafbc12633255279f5e64fe55cb4448e53b8ad8c", "detected_licenses": [ "MIT" ], "directory_id": "2a51033caebbd8d970e55c97fc97e7ae800ae386", "extension": "c"...
stackv2
/* * Window XCreateSimpleWindow( * Display *display, Window parent, * int x, int y, * unsigned int width, unsigned int height, * unsigned int border_width, unsigned long border, * unsigned long background); */ #include "tips.h" void tips_XCreateSimpleWindow(void) { TIPS_HEAD; ...
2.421875
2
2024-11-18T21:25:04.994186+00:00
2021-06-27T08:13:25
260af329bcd266cd6e5af121e0fd7601ae03563b
{ "blob_id": "260af329bcd266cd6e5af121e0fd7601ae03563b", "branch_name": "refs/heads/master", "committer_date": "2021-06-27T08:13:25", "content_id": "87eb9a19b6abd3215183f812321e74e6ac032079", "detected_licenses": [ "MIT" ], "directory_id": "4299e324438eba4e18188f68a2051c37244ddc51", "extension": "c"...
stackv2
#include "types.h" #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { if(argc <= 2) { printf(1, "format: chmod pathname mode\n"); exit(); } chmod(argv[1], atoi(argv[2])); exit(); }
2.15625
2
2024-11-18T21:25:05.060615+00:00
2020-06-16T20:27:54
1e26bed8f3e2f60b8e1746a47bc8f1d0fdae31c7
{ "blob_id": "1e26bed8f3e2f60b8e1746a47bc8f1d0fdae31c7", "branch_name": "refs/heads/master", "committer_date": "2020-06-16T20:27:54", "content_id": "893d1e21eb556b4a5d28a7f38f7626b6d0d12ad1", "detected_licenses": [ "MIT" ], "directory_id": "0263eff6bc3140def741aa2c615d486f0b57c9bf", "extension": "c"...
stackv2
#include "ush.h" static void child_not_builtin(int *ret_val, char **input, char *command_p) { DIR *dp = NULL; extern char **environ; if ((dp = opendir(command_p)) != NULL) { fprintf(stderr, "ush: %s: is a directory\n", input[0]); *ret_val = 1; closedir(dp); } else if (mx_fi...
2.421875
2
2024-11-18T21:25:07.462605+00:00
2018-08-16T22:18:58
496215c084ff66e31bad73becee3fe614b3f312a
{ "blob_id": "496215c084ff66e31bad73becee3fe614b3f312a", "branch_name": "refs/heads/master", "committer_date": "2018-08-16T22:18:58", "content_id": "d497c63284ead3cb3d7ec9d750b0bcb93a1fce16", "detected_licenses": [ "ISC" ], "directory_id": "23f7f7805c9877ae7e64c86c473aaf968eb8bef8", "extension": "c"...
stackv2
/* * Copyright (C) 2012 Felix Fietkau <nbd@openwrt.org> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AN...
2.4375
2
2024-11-18T21:25:07.694140+00:00
2022-12-11T09:32:29
1f32da5fbfb3da8fc6a76c2f1746c881019f4aa9
{ "blob_id": "1f32da5fbfb3da8fc6a76c2f1746c881019f4aa9", "branch_name": "refs/heads/master", "committer_date": "2022-12-11T09:32:29", "content_id": "88675ebf3bcfba6935d31cc8615723a3fb9263f7", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "9b79f685b4e311718eefa9a35cb7b15ba2ae4938", "extens...
stackv2
/*! @copyright (c) 2017-2022 King Abdullah University of Science and * Technology (KAUST). All rights reserved. * * STARS-H is a software package, provided by King Abdullah * University of Science and Technology (KAUST) * * @file include/starsh-electrodynamics.h * @version 0.3.1...
2.03125
2
2024-11-18T21:25:07.871863+00:00
2014-11-27T00:31:16
b1fa89b03cb7b375858d390b929ea22a951dbd5e
{ "blob_id": "b1fa89b03cb7b375858d390b929ea22a951dbd5e", "branch_name": "refs/heads/master", "committer_date": "2014-11-27T00:31:16", "content_id": "ca775a9d5caf74e183113679025339e2aacee7f6", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "f8c61dec448da9a1b9365eeee089d72d591c5b7c", "extens...
stackv2
/* * Anmap.c -- * * This file contains the main program for "Anmap", which uses the * Tcl command language. * * Anmap is Copyright (c) 1984-1994 * Paul Alexander, MRAO, Cambridge, UK * * Tcl/Tk is Copyright (c) 1990-1993 * The Regents of the University of California. * All rights ...
2.4375
2
2024-11-18T21:25:08.277606+00:00
2017-07-19T22:18:19
b4fc6f93e488b007d60c735dbdce32a86d3a9c62
{ "blob_id": "b4fc6f93e488b007d60c735dbdce32a86d3a9c62", "branch_name": "refs/heads/staging", "committer_date": "2017-08-12T17:52:59", "content_id": "275775f53c3fa847a5f80891d0efc651a5d4bb26", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "b5a0924febc4abfdd5f237fa964b763c8cffff01", "exten...
stackv2
/* * @file UBLOX6_GPS.h * @author Serj Babayan * @created April 23, 2017, 2:07 PM */ #include "UBLOX6_GPS.h" #include "../Utilities/NMEAParser.h" #include "../../Common/Interfaces/UART.h" #include "../Peripherals/GPS.h" #include "../../Common/Utilities/Logger.h" #include "../../Common/Clock/Timer.h" #include <stdb...
2.40625
2
2024-11-18T21:25:08.434589+00:00
2019-07-23T12:56:07
a3a85d7cdba2d0ea93dcd36acb9b2c6c6e2d359a
{ "blob_id": "a3a85d7cdba2d0ea93dcd36acb9b2c6c6e2d359a", "branch_name": "refs/heads/master", "committer_date": "2019-07-23T12:56:07", "content_id": "534d8b4ed2edd0d6c65436145969ca4906ff9dcc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "297d646f5dfac95afae504653d7751c8717408b6", "extensio...
stackv2
#include "parser.h" #include <stdio.h> #include <stdlib.h> #include "common.h" #include "utils.h" #include "unicodeUtf8.h" #include "class.h" #include <string.h> #include <ctype.h> struct KeywordToken { char* keyword; uint8_t length; TokenType token; }; // keyword structure // 关键字表 struct KeywordToken ke...
2.71875
3
2024-11-18T21:25:08.630683+00:00
2020-11-11T22:22:04
a5ce9864771bd26d80c524aa1605344b540c7c3c
{ "blob_id": "a5ce9864771bd26d80c524aa1605344b540c7c3c", "branch_name": "refs/heads/main", "committer_date": "2020-11-11T22:22:04", "content_id": "520fa4c379f6f916d6df2c93f9cc968620686a33", "detected_licenses": [ "Apache-2.0" ], "directory_id": "cee94373a74706a683b6470591faf6b95beac900", "extension"...
stackv2
/* bitonic.c This file contains two different implementations of the bitonic sort recursive version : rec imperative version : impBitonicSort() The bitonic sort is also known as Batcher Sort. For a reference of the algorithm, see the article titled Sorting networks and their applications...
3.125
3
2024-11-18T21:25:09.002484+00:00
2018-04-17T01:20:41
08a6037389fdcec20bc0fa2ee1f7b13b5cef97db
{ "blob_id": "08a6037389fdcec20bc0fa2ee1f7b13b5cef97db", "branch_name": "refs/heads/master", "committer_date": "2018-04-17T01:20:41", "content_id": "9b0ee3cd6c8e8fadc34add1469da94366c02eef7", "detected_licenses": [ "MIT" ], "directory_id": "f420ab3cd5eecbec3ddfe1450ff4c9abe7f91cf0", "extension": "h"...
stackv2
// // answer.h // 02_Criando_Um_Driver // // Created by Cristopher Freitas on 2/26/18. // Copyright © 2018 Cristopher Freitas. All rights reserved. // #ifndef answer_h #define answer_h #include <stdio.h> #include "types.h" #include "accelerometer.h" /* Operations bytecode */ #define ADDRESS 0xE3 #define READ_OP...
2.21875
2
2024-11-18T21:25:09.230396+00:00
2022-10-08T12:53:58
cb7ec1335d2c831fc8864b00ee8f7c457e7e781c
{ "blob_id": "cb7ec1335d2c831fc8864b00ee8f7c457e7e781c", "branch_name": "refs/heads/master", "committer_date": "2022-10-08T12:53:58", "content_id": "7d58cc4365ca4b7398e903cf27669aad00ba8155", "detected_licenses": [ "MIT" ], "directory_id": "cdbc0478f7d630d7c7bbbd7cfce2499f0fe4689b", "extension": "c"...
stackv2
/*Program to find the prefix sum of a array. Prefix sum is a method of dynamic programming to compute the value in O(n) operation one time and then use addition and subtraction to find other desired value in O(1) Example of one such problem is range sum. If you are required to answer multiple queries on the sum of ...
4.34375
4
2024-11-18T21:25:10.898407+00:00
2015-02-02T16:08:37
932f4b454f36e3ae88749df5a64f914908469807
{ "blob_id": "932f4b454f36e3ae88749df5a64f914908469807", "branch_name": "refs/heads/master", "committer_date": "2015-02-02T16:08:37", "content_id": "2bb1764c8ded11db7242b1187c072fa6958efe6a", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "edc1f8ec01de357a4d72f6d0f6b407afb6189b29", "extens...
stackv2
/* * guiEditBox.c * * Created on: 18 янв. 2015 г. * Author: Andrey Fursov */ #include "gui.h" void defaultEditBoxInit(GUI_EDIT_BOX * pEditBox, uint16_t x, uint16_t y, uint16_t width, uint16_t height) { int i; pEditBox->wmObj.xPos = x; pEditBox->wmObj.yPos = y; pEditBox->wmObj.Width = width; pEd...
2.59375
3
2024-11-18T21:25:11.548101+00:00
2020-12-03T06:35:18
cbf356f19bcef59b3d75785429f8bd105881f8be
{ "blob_id": "cbf356f19bcef59b3d75785429f8bd105881f8be", "branch_name": "refs/heads/master", "committer_date": "2020-12-03T06:35:18", "content_id": "3145047ebfa5d2779535b0290ae8afc8aab25b5d", "detected_licenses": [ "CC0-1.0", "MIT" ], "directory_id": "96f72457cfbc15f467a2217f911858494d5d54a2", "...
stackv2
#ifndef __STRING_H__ #define __STRING_H__ #include <types.h> size_t strlen(const char *s); char *strncpy(char *dst, const char *src, size_t num); int strcmp(const char *s1, const char *s2); int strncmp(const char *s1, const char *s2, size_t len); char *strstr(const char *haystack, const char *needle); char *strchr(co...
2.109375
2
2024-11-18T21:25:11.893378+00:00
2016-08-28T02:24:38
d0f010a1e93405ef87c1db7a143b2d3e8da0b29f
{ "blob_id": "d0f010a1e93405ef87c1db7a143b2d3e8da0b29f", "branch_name": "refs/heads/master", "committer_date": "2016-08-28T02:24:38", "content_id": "1a5da1658035a19feec98911396f489878a7a7a8", "detected_licenses": [ "Apache-2.0" ], "directory_id": "daa4d03ac00000c14f565ed8f065a29ff6bacd3e", "extensio...
stackv2
#include "unity.h" #include "binarysearch.h" /* * Use Unity for unit tests of binary search algorithm */ void test_search_should_return_neg_when_empty_array(void) { int test[] = {}; TEST_ASSERT_EQUAL_INT(-1, binary_search(test, 0, 0, 3)); } void test_search_should_return_neg_when_key_not_found_greater(void) { i...
2.71875
3
2024-11-18T21:25:12.495005+00:00
2018-11-23T13:57:40
1971fcaad3445b645a9c955f52639ab9bfd59972
{ "blob_id": "1971fcaad3445b645a9c955f52639ab9bfd59972", "branch_name": "refs/heads/master", "committer_date": "2018-11-23T13:57:40", "content_id": "eae2be79d0c62fc96a01aeff6debf8af6fec0eec", "detected_licenses": [ "MIT" ], "directory_id": "04e0d5d5cfec3927d4fc367c03393ad434a1db84", "extension": "c"...
stackv2
#include "types.h" #include "x86.h" #include "defs.h" #include "date.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" int sys_fork(void) { return fork(); } int sys_exit(void) { exit(); return 0; // not reached } int sys_wait(void) { return wait(); } int sys_kill(void) { int...
2.640625
3
2024-11-18T21:25:13.054427+00:00
2023-08-30T05:36:57
0c9cdfceddf3b0f4965e4e147ade4c52d9ff57d7
{ "blob_id": "0c9cdfceddf3b0f4965e4e147ade4c52d9ff57d7", "branch_name": "refs/heads/master", "committer_date": "2023-08-30T05:36:57", "content_id": "637e52b54ef694fb1a3c07a301968feb4ebe06af", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "bfb49b61aeca694f7c5d15de1df3e397ec3e8247", "extens...
stackv2
/* module : leql.c version : 1.2 date : 08/23/23 */ #ifndef LEQL_C #define LEQL_C /** OK 2250 <=\0leql : DDA X Y -> B Either both X and Y are numeric or both are strings or symbols. Tests whether X less than or equal to Y. Also supports float. */ void leql_(pEnv env) { Node first, second, nod...
2.375
2
2024-11-18T21:25:13.461297+00:00
2020-03-12T04:43:55
374b4067942245d24c18df59d388b390f4aa64fb
{ "blob_id": "374b4067942245d24c18df59d388b390f4aa64fb", "branch_name": "refs/heads/master", "committer_date": "2020-03-12T04:43:55", "content_id": "867cf16bc196fe7d09f03a4de0def858469d0da0", "detected_licenses": [ "MIT" ], "directory_id": "2a7b7bd81c96f7d2e48aa2e3d6ca3a5eebb9b4b7", "extension": "h"...
stackv2
/* ********************************************************************************************************* * * 模块名称 : elf文件解析模块 * 文件名称 : elf_file.h * 说 明 : 头文件 * ********************************************************************************************************* */ #ifndef __ELF_FILE_H_ #define __EL...
2.15625
2
2024-11-18T21:25:13.820246+00:00
2013-09-06T17:45:21
51946d48ccca33cfb82ede83b41f85a0beb5675a
{ "blob_id": "51946d48ccca33cfb82ede83b41f85a0beb5675a", "branch_name": "refs/heads/master", "committer_date": "2013-09-06T17:45:21", "content_id": "71683013ee0d137763d77c62f43edffcc4bac622", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "177391f6cc294e07939204cfbe0fde77e34f6179", "extens...
stackv2
#ifdef __linux__ #include "netif.h" #include <stdio.h> #include <string.h> #include <net/if.h> #include <sys/ioctl.h> #include <netinet/in.h> #include <arpa/inet.h> #include <net/if_arp.h> #include <net/route.h> #include <netinet/ether.h> #include <errno.h> #include <unistd.h> #include <ruby.h> static int socket_ope...
2.375
2
2024-11-18T21:25:14.126712+00:00
2023-06-15T17:21:16
ef466145e26d710b47364f4164f2fd17e2aab8b5
{ "blob_id": "ef466145e26d710b47364f4164f2fd17e2aab8b5", "branch_name": "refs/heads/main", "committer_date": "2023-06-15T17:21:16", "content_id": "92378c4b9660516255377d2819f72d5eff77afda", "detected_licenses": [ "MIT" ], "directory_id": "8a51dd6b6daab42d70d3d7d0cfa05544ae898df9", "extension": "h", ...
stackv2
/* SPDX-License-Identifier: LGPL-2.1 OR MIT */ /* * stdlib function definitions for NOLIBC * Copyright (C) 2017-2021 Willy Tarreau <w@1wt.eu> */ #ifndef _NOLIBC_STDLIB_H #define _NOLIBC_STDLIB_H #include "std.h" #include "arch.h" #include "types.h" #include "sys.h" #include "string.h" struct nolibc_heap { size_t...
2.578125
3
2024-11-18T21:25:14.192039+00:00
2023-07-17T23:25:32
5dade2974670965351eec89796d99c374e3eb423
{ "blob_id": "5dade2974670965351eec89796d99c374e3eb423", "branch_name": "refs/heads/main", "committer_date": "2023-07-17T23:25:32", "content_id": "6d06747066fcffeada55d44e74a16d8f3184561a", "detected_licenses": [ "MIT" ], "directory_id": "4ac5de343b368c5220325658b1fc78f2fba10575", "extension": "c", ...
stackv2
#include "state.h" #include "likely.h" #include "list.h" #include "lprob.h" struct imm_abc const *imm_state_abc(struct imm_state const *x) { return x->abc; } unsigned imm_state_id(struct imm_state const *x) { return x->id; } unsigned imm_state_idx(struct imm_state const *x) { return x->idx; } float imm_state_lpro...
2.140625
2
2024-11-18T21:25:14.573201+00:00
2017-05-02T16:21:23
5420fda8541fe5b6d0851c52768ac821ae56d0e6
{ "blob_id": "5420fda8541fe5b6d0851c52768ac821ae56d0e6", "branch_name": "refs/heads/master", "committer_date": "2017-05-02T16:21:23", "content_id": "8c8532db85ac37292ed0922baf035081ea441166", "detected_licenses": [ "MIT" ], "directory_id": "f4454915f7b1531d6d258c952bf4d23fcd9b8796", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdbool.h> #include <sys/socket.h> #include <netdb.h> #include <fcntl.h> #include <errno.h> #include <assert.h> #include "socket.h" #include "irc.h" #include "common.h" int sock_connect(const char *address, const char *port) { int retval, sock = -1...
2.65625
3
2024-11-18T21:25:14.639746+00:00
2023-08-29T09:48:59
7db4f4240d7eebe54361379cb62b71ebb72dfc25
{ "blob_id": "7db4f4240d7eebe54361379cb62b71ebb72dfc25", "branch_name": "refs/heads/master", "committer_date": "2023-08-29T09:48:59", "content_id": "b66eccd085c536318195f50b6e810e3d87b7a683", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fef5296397f9b950a11455e880a919537390aea0", "extensio...
stackv2
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
2.078125
2
2024-11-18T21:25:15.036441+00:00
2019-02-08T21:03:23
6c0155c652aab164b2082fec26817fb64c412ad6
{ "blob_id": "6c0155c652aab164b2082fec26817fb64c412ad6", "branch_name": "refs/heads/master", "committer_date": "2019-02-08T21:03:23", "content_id": "b416196ffeca0338f66b2f9a86138c6dcf3687d9", "detected_licenses": [ "BSD-2-Clause", "BSD-3-Clause" ], "directory_id": "e6dee5b94c5155c54ae27610dad93aad...
stackv2
/* scas.c - config file assembler for Soarer's Keyboard Converter. */ #include "token.h" #include "hid_tokens.h" #include "macro_tokens.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <errno.h> #define SETTINGS_VERSION_MAJOR 1 #define SETTINGS_VERSION_MINOR 1 #define COMMEN...
2.28125
2
2024-11-18T21:35:35.657374+00:00
2019-08-06T14:24:54
c5b7660a7d389330ecd58332efb2ed8dfd70b939
{ "blob_id": "c5b7660a7d389330ecd58332efb2ed8dfd70b939", "branch_name": "refs/heads/master", "committer_date": "2019-08-06T14:24:54", "content_id": "2b4fcfa59027524549223728211d42d20a2b4115", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "021a3ccdcb91d84629f1de7343981b572840b169", "extens...
stackv2
static char help[] = "Test AO with on IS with 0 entries - contributed by Ethan Coon <ecoon@lanl.gov>, Apr 2011.\n\n"; #include <petscsys.h> #include <petscao.h> int main(int argc,char **argv) { PetscErrorCode ierr; AO ao; PetscInt *localvert=NULL, nlocal; PetscMPIInt rank; ierr = Pets...
2.234375
2
2024-11-18T21:35:35.862384+00:00
2020-06-03T06:46:40
d20598227e87b1228d97b678e656b48eeaa28259
{ "blob_id": "d20598227e87b1228d97b678e656b48eeaa28259", "branch_name": "refs/heads/master", "committer_date": "2020-06-03T06:46:40", "content_id": "48b660d5ad98fe9e6c438a248bf2bddaef05342c", "detected_licenses": [ "MIT" ], "directory_id": "3e9072ed49bcf2e628417a63d729ea8d7033a051", "extension": "c"...
stackv2
/*************************************************************************** * * * DynELA Project * * * * (c) Copy...
2.28125
2
2024-11-18T21:35:35.943556+00:00
2019-03-09T04:57:17
f2dc4987e501b03e176212544189c9ceb87f9c96
{ "blob_id": "f2dc4987e501b03e176212544189c9ceb87f9c96", "branch_name": "refs/heads/master", "committer_date": "2019-03-09T04:57:17", "content_id": "13801dac8f3ebeb749d582eb70cf6ebfefeaaf05", "detected_licenses": [ "MIT" ], "directory_id": "65ba9a8e33c86e6524073a7d816b5b63d206bdc6", "extension": "c"...
stackv2
#include"../driver.h" #define FIND_NO_WAIT_FILE_WINDOW -1 int search_read_block(int file_window_id,int logic_address, int sleep_semaphore,int read_only_flag,int *root_block_id) { int bn,bbn,ret_val,wait_queue; int search_file_window_id,search_logic_address; struct memory_block *b; struct file_window *f; for(;;){...
2.203125
2
2024-11-18T21:35:36.309078+00:00
2021-11-17T09:53:23
ed4dd7ddc0685883aadb8a8153dd79ff20c96ed3
{ "blob_id": "ed4dd7ddc0685883aadb8a8153dd79ff20c96ed3", "branch_name": "refs/heads/master", "committer_date": "2021-11-17T09:53:23", "content_id": "d369d558beab03480b0ffd7764b7c5cc4768bb0e", "detected_licenses": [ "MIT" ], "directory_id": "9bf8a79a7b12145dbbc1f6a03aeea998fe5a5237", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "q.h" #define NUM 10 queue_t *obj; static int _index; char EXPECT_OUTPUT[NUM][100]; char REAL_OUTPUT[NUM][100]; int INPUT(char *buf, int size) { int retval = 0; if (-1 != msg_put_buf(obj, buf, size)) { retval = 1; memcpy(&E...
2.828125
3
2024-11-18T21:35:36.428877+00:00
2021-04-15T06:15:54
f4aa0ff648f2de8625925d9133628448228e4eef
{ "blob_id": "f4aa0ff648f2de8625925d9133628448228e4eef", "branch_name": "refs/heads/master", "committer_date": "2021-04-15T06:15:54", "content_id": "e808afd722faf64edd10d4b444e02251ee1766c7", "detected_licenses": [ "MIT" ], "directory_id": "0e7a8fc6ebd306adc4c204169ceb99a72e9fde45", "extension": "c"...
stackv2
#include "min_max.h" void getMinMaxAndDemean (double *data, uint64_t dataSize, double *min, double *max, double *minDemean, double *maxDemean, double mean) { *min = *max = data[0]; uint64_t i; for (i = 1; i < dataSize; i++) { if (*min > data[i]) { *min = da...
2.3125
2
2024-11-18T21:35:39.699028+00:00
2017-12-26T09:54:46
11da15be885f439001f263cbba34d45d88887338
{ "blob_id": "11da15be885f439001f263cbba34d45d88887338", "branch_name": "refs/heads/master", "committer_date": "2017-12-26T09:54:46", "content_id": "23791a8a5af0726b4415dae6f2fc4609891c3ba8", "detected_licenses": [ "MIT" ], "directory_id": "e30ab20b7c352a8d657d23c1d7a6c19bc25be06d", "extension": "c"...
stackv2
// // Created by 李泽钧 on 2017/10/5. // #include <argparse.h> #include <glib.h> #include <conn.h> #include <gmime/gmime.h> #include "common.h" static const char *const usage[] = { "simple-mail send [options]", "simple-mail recv [options]", NULL, }; #define DESCRIPTION_STR "\nsimple-mail 有 发送(SMTP) 和 接收(POP3) 邮件的功能。\n...
2.59375
3
2024-11-18T21:35:39.863065+00:00
2021-07-19T12:55:46
2d46216de37712b9a8e2d5215e9f28cfb685a256
{ "blob_id": "2d46216de37712b9a8e2d5215e9f28cfb685a256", "branch_name": "refs/heads/master", "committer_date": "2021-07-19T12:55:46", "content_id": "a5c7709a938bc82efc37fdc5ca97410726ffd8aa", "detected_licenses": [ "MIT" ], "directory_id": "8fb9cd16c1cd769c25dadb246d8a2757a891f331", "extension": "c"...
stackv2
#include "FlashMemory_head.h" void Flash_write(FILE* Flash_memory, int write_place, char* write_data) { int ws = (write_place * SS); // 지정한 섹터를 가르키기 위한 값 int file_end = 0; char read_data[SS]; bool OverWrite = false; Flash_memory = fopen("Flash_Memory.txt","r+"); //파일을 읽기/쓰기 모드로 연다. if (Flash_memory == NULL) ...
3.109375
3
2024-11-18T21:35:40.095880+00:00
2017-08-13T00:25:36
1682770546b70863bdaefb0fe51582daeff47e1d
{ "blob_id": "1682770546b70863bdaefb0fe51582daeff47e1d", "branch_name": "refs/heads/master", "committer_date": "2017-08-13T00:25:36", "content_id": "79f958562dd09efadb4c246487ef622b6033bfdd", "detected_licenses": [ "MIT" ], "directory_id": "9965db3e756d044006040af673da12a70a50efe4", "extension": "h"...
stackv2
#ifndef ZIO_LIST_H_INCLUDED #define ZIO_LIST_H_INCLUDED #include <stdlib.h> #include <string.h> #define _NOMAIN_ //necessary to avoid multiple definitions of "debug" from con_interaction #include "zio-con.h" #undef _NOMAIN_ typedef struct kostring { size_t length; size_t allocated_length; size_t block_b...
2.59375
3
2024-11-18T21:35:40.522427+00:00
2022-07-21T15:03:47
d055ee9571c8c5864225919cb755e9d0aa9ea226
{ "blob_id": "d055ee9571c8c5864225919cb755e9d0aa9ea226", "branch_name": "refs/heads/master", "committer_date": "2022-07-21T15:03:47", "content_id": "af4dea470245f5afd3adafb053903c9fd0272cc1", "detected_licenses": [ "MIT" ], "directory_id": "37ae3d9a47783fcf0c954be46280d5da447ff10e", "extension": "h"...
stackv2
/* * MAX6675.h * * Created on: 25.05.2019 * Author: Admin * * // SPI * NSS - PA4 (General purpose output push-pull) * SCK - PA5 (Alternate function push-pull) * MISO - PA6 (Input floating / Input pull-up) * MOSI - PA7 (Alternate function push-pull) * * // BitBang * SCK - PB13 (...
2.40625
2
2024-11-18T21:36:00.077866+00:00
2021-01-21T02:05:03
5840b7d6fee947f938287781eeb650ea15e4a755
{ "blob_id": "5840b7d6fee947f938287781eeb650ea15e4a755", "branch_name": "refs/heads/main", "committer_date": "2021-01-21T02:05:03", "content_id": "c7025827715c1739ac1dab9525cab1409fbdd1c3", "detected_licenses": [ "MIT" ], "directory_id": "97b95252e3197aa3da33ce4ec37756ab97401abc", "extension": "c", ...
stackv2
// // sort.c // kit-elevator-simulation // // Created by Shumpei Kawaguchi on 2020/12/11. // Copyright (c) 2020 Shumpei Kawaguchi. All rights reserved. // #include "sort.h" void sort_array(double *array, int length) { for (int i = 0; i < length - 1; i++) { double min = array[i]; int k = i; for (int...
2.609375
3
2024-11-18T21:36:00.157897+00:00
2018-03-12T07:53:05
3b33ab09db8edd3ffec0ff93bcdf6fc52beedeac
{ "blob_id": "3b33ab09db8edd3ffec0ff93bcdf6fc52beedeac", "branch_name": "refs/heads/master", "committer_date": "2018-03-12T07:53:05", "content_id": "d6a68c5ea20bb36ab13fcae21b580555635d35cc", "detected_licenses": [ "MIT" ], "directory_id": "3177b2317fad5f2b0798a802c23f11dcd04004c0", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include "gmem.h" #define UNUSED_ARG(x) (void) (x) int gmem_unused = 0; #if defined(GMEM_CHECK) && GMEM_CHECK >= 1 long gmem_new = 0; long gmem_del = 0; static int gmem_inited = 0; void gmem_init() { if (gmem_inited) { return; } atexit(gmem_fini); gmem_inited =...
2.515625
3
2024-11-18T21:36:00.456233+00:00
2023-02-20T06:48:40
8a9083955fbc07317689dedc4fc24beeb564d202
{ "blob_id": "8a9083955fbc07317689dedc4fc24beeb564d202", "branch_name": "refs/heads/master", "committer_date": "2023-02-20T06:48:40", "content_id": "0b329ea3ad1b8679c11fa457e19611b9aa1b9767", "detected_licenses": [ "MIT" ], "directory_id": "087a96579f3af731057ffc2e5d54e9220bb4d38e", "extension": "c"...
stackv2
/* MIT License Copyright (c) 2018-2019, Alexey Dynda 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, c...
2.203125
2
2024-11-18T21:36:00.536499+00:00
2022-08-10T04:24:32
7f8819fd647cfcff3177a0f758365ca817607e7c
{ "blob_id": "7f8819fd647cfcff3177a0f758365ca817607e7c", "branch_name": "refs/heads/main", "committer_date": "2023-08-09T00:21:36", "content_id": "9950e0180cd2ae16752f061ce3e57ddc3f8d1966", "detected_licenses": [ "MIT" ], "directory_id": "3448fd9bb9c0e6b3b3d2899c028fdefc8870bf15", "extension": "h", ...
stackv2
#ifndef DICTIONARY_H #define DICTIONARY_H #include <stdint.h> #include "util.h" typedef struct tagTDictionaryEntry { struct tagTString *key; struct tagTCell *value; } DictionaryEntry; typedef struct tagTDictionary { int64_t len; int64_t max; int refount; struct tagTDictionaryEntry *data; } Di...
2
2
2024-11-18T21:36:00.857602+00:00
2020-04-02T04:11:30
c544088570ac087c308a47074b10170340d202fb
{ "blob_id": "c544088570ac087c308a47074b10170340d202fb", "branch_name": "refs/heads/master", "committer_date": "2020-04-02T04:11:30", "content_id": "64b3629f3298d8680f7c4ddb0f74d4cf9c9f944a", "detected_licenses": [ "MIT" ], "directory_id": "a5339f2dbb1d0b0a16ed9ab4b3df00b50bd1afd1", "extension": "h"...
stackv2
#ifndef __GF2D_DRAW_H__ #define __GF2D_DRAW_H__ #include <SDL.h> #include "gfc_vector.h" typedef struct { SDL_Point * pointList; int count; int size; }PointL; /** * @brief draw a pixel to the current rendering context * @param pixel the screen position to draw at * @param color the color to draw with */ v...
2.421875
2
2024-11-18T21:36:00.960736+00:00
2022-11-24T06:28:20
9febc17735afc77f823ccb96009d1bfa6ca0d74e
{ "blob_id": "9febc17735afc77f823ccb96009d1bfa6ca0d74e", "branch_name": "refs/heads/master", "committer_date": "2022-11-24T06:28:20", "content_id": "7e107472de86c2a52173bd5983e7a183ee637bef", "detected_licenses": [ "MIT" ], "directory_id": "6b04fef7c48a7d6041bee93957311989ced54dfe", "extension": "c"...
stackv2
#include "mkl.h" /* BLAS */ MKL_Complex8 cdotc_(const MKL_INT *n, const MKL_Complex8 *x, const MKL_INT *incx, const MKL_Complex8 *y, const MKL_INT *incy) { MKL_Complex8 res; cdotc(&res, n, x, incx, y, incy); return res; } MKL_Complex8 cdotu_(const MKL_INT *n, const MKL_Complex8 *...
2.3125
2
2024-11-18T21:36:01.203557+00:00
2016-11-07T16:34:11
18b16bcc1f8d7ee6fe89599f3f905b6eae207189
{ "blob_id": "18b16bcc1f8d7ee6fe89599f3f905b6eae207189", "branch_name": "refs/heads/master", "committer_date": "2016-11-07T16:34:11", "content_id": "114126a6a219505e861cdff8c79fd69f3f4bf4ad", "detected_licenses": [ "MIT" ], "directory_id": "cf2e0b9949b5f33221cb4d842fd470ecd83f69b9", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* free_dep.c :+: :+: :+: ...
2.21875
2
2024-11-18T21:36:01.528235+00:00
2023-06-29T17:43:47
d316d55e9aaf29739d5694cf82328e160cfca254
{ "blob_id": "d316d55e9aaf29739d5694cf82328e160cfca254", "branch_name": "refs/heads/develop", "committer_date": "2023-06-29T17:43:47", "content_id": "d1b861c7c3ef23b7dd7aa392e635691e02c6b417", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8359b8bd05e99dd10bd7a410913da94a8f841179", "exten...
stackv2
/* * Copyright (c) 2009, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * Written by Adam Moody <moody20@llnl.gov>. * LLNL-CODE-411039. * All rights reserved. * This file is part of The Scalable Checkpoint / Restart (SCR) library. * For details, see https://s...
2.0625
2
2024-11-18T21:36:01.797922+00:00
2017-06-23T00:52:27
a7ae66cf400dca1560a5a1703a5538c1f89d89e7
{ "blob_id": "a7ae66cf400dca1560a5a1703a5538c1f89d89e7", "branch_name": "refs/heads/master", "committer_date": "2017-06-23T00:52:27", "content_id": "a6c0eccc7a838e61c5094b9b202ab2250615a2dd", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "e42eca5b3ef4122bda7c42b81cc803554f6166d2", "extens...
stackv2
// ATMEL Microcontroller Software Support - Colorado Springs, CO - // ---------------------------------------------------------------------------- // DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF // ME...
2.171875
2
2024-11-18T21:36:01.899524+00:00
2022-04-06T18:13:11
7a13846ab458df08db8cf360aaf3bbd46b6d9207
{ "blob_id": "7a13846ab458df08db8cf360aaf3bbd46b6d9207", "branch_name": "refs/heads/master", "committer_date": "2022-04-06T18:13:11", "content_id": "67faf5773971b55d686a8f2c069493c9b164188a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "aaee792bb1bab2839b39cb89d30799578e56d36e", "extensio...
stackv2
/* * Copyright (c) 2009-2010, 2012 by Farsight Security, Inc. * * 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...
2.03125
2
2024-11-18T21:36:01.979769+00:00
2021-01-12T13:19:55
e4c9e0869cca9b9e478aa70f64e5f279ce907804
{ "blob_id": "e4c9e0869cca9b9e478aa70f64e5f279ce907804", "branch_name": "refs/heads/master", "committer_date": "2021-01-12T13:19:55", "content_id": "aa5ac6d490827820b6dd4052acc881dd600c5125", "detected_licenses": [ "MIT" ], "directory_id": "39b92f4f878576cfdc1cb3e0e632d9ed57e44599", "extension": "c"...
stackv2
/************************************************************************** * 名称: prog.c * 作者: 吴同 * 学号: 3170104848 * 功能: 1、父进程创建子进程p1和p2,p1创建子进程p3 * 2、每个进程打印自己的信息,包括名称,pid,ppid * 3、p1和p2之间实现通信,p3调用ls -l *************************************...
3.046875
3
2024-11-18T21:36:02.316963+00:00
2012-09-10T15:48:35
6aa9b51b76c01893d2b4ea8b56f82913e688cf79
{ "blob_id": "6aa9b51b76c01893d2b4ea8b56f82913e688cf79", "branch_name": "refs/heads/master", "committer_date": "2012-09-10T15:48:35", "content_id": "ad304069fb6780c58214ae2fec3ee3320eee43e9", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "ec8ab943a4c35f5f65d30daf6928ae08363d8791", "extens...
stackv2
#include "e_mod_move_shared_types.h" #include "e_mod_move_debug.h" #include "e_mod_move.h" /* local subsystem functions */ static void _e_mod_move_cb_control_object_del(void *data, Evas *e, Evas_Object *obj, void *event_info __UNUSED__); /* externally accessible functions */ EINTERN E_Move_Control_Object * e_mod_move...
2.0625
2
2024-11-18T21:36:03.238551+00:00
2023-08-08T09:39:15
8c25d4922a0af540a600dc4292c5d69ce15db89c
{ "blob_id": "8c25d4922a0af540a600dc4292c5d69ce15db89c", "branch_name": "refs/heads/master", "committer_date": "2023-08-08T09:39:15", "content_id": "b0cbe48b3e9d2c48a8bd9e5aa91f8430c8b20ff5", "detected_licenses": [ "ISC" ], "directory_id": "f8cc1dd4b1378490386def2e0571561fab10b275", "extension": "c"...
stackv2
/* ISC license. */ #include <sys/stat.h> #include <errno.h> #include <skalibs/allreadwrite.h> #include <skalibs/djbunix.h> int writenclose_unsafe5 (int fd, char const *s, size_t len, devino *devino, unsigned int options) { if (allwrite(fd, s, len) < len) return 0 ; if (options & 1 && fd_sync(fd) == -1 && errno !...
2.140625
2
2024-11-18T21:36:03.349026+00:00
2019-01-22T22:15:53
7c67488d5f32cbe86f12870cf6496fd822c0e377
{ "blob_id": "7c67488d5f32cbe86f12870cf6496fd822c0e377", "branch_name": "refs/heads/master", "committer_date": "2019-01-22T22:15:53", "content_id": "61ca7445e1b65d974249341b684198c001b9cec3", "detected_licenses": [ "MIT" ], "directory_id": "8381958626b574b25035fdf34fc58368019be0a3", "extension": "c"...
stackv2
static unsigned int s = 1; unsigned int pseudorandom(unsigned int seed) { seed += s << 4; seed *= 1103515245; seed += 12345; seed = (unsigned int) (seed / 65536) % 2048; return seed; } void set_seed(unsigned int seed) { s = seed; }
2.21875
2
2024-11-18T21:36:03.498849+00:00
2019-01-06T17:21:50
d050623c9e213820c238b3746c75e03e92b7bb1c
{ "blob_id": "d050623c9e213820c238b3746c75e03e92b7bb1c", "branch_name": "refs/heads/master", "committer_date": "2019-01-06T17:21:50", "content_id": "42901c539762f84dd293d11882c3553a8eef9bf4", "detected_licenses": [ "NCSA" ], "directory_id": "971c5ae1d87cdfbb97723485c3d76c17395b82b0", "extension": "c...
stackv2
#include <stdio.h> #include "demo11_bigdata.h" int printdata(void) { int i; unsigned int sum = 0; for(i = 0; i < sizeof(readdata)/sizeof(readdata[0]); i++) { if(readdata[i] != NULL) { //printf("readdata[%d] = %p => 0x%06X\n", i, readdata[i], *(readdata[i])); ...
2.546875
3
2024-11-18T21:36:04.150400+00:00
2021-03-05T20:21:39
91ee202123515b1d399b2134b45f472a93547d8e
{ "blob_id": "91ee202123515b1d399b2134b45f472a93547d8e", "branch_name": "refs/heads/master", "committer_date": "2021-03-05T20:21:39", "content_id": "48f30146830ae75ca11d66c5ac84e6d72a27740f", "detected_licenses": [ "MIT" ], "directory_id": "3a0f9f87d807e9aa33b87568b0829edd92da4ef3", "extension": "c"...
stackv2
/* e_dma_message_test.c Copyright (C) 2012 Adapteva, Inc. Contributed by Wenlin Song <wsong@wpi.edu> 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 3 of the License, or (at your opti...
2.328125
2
2024-11-18T21:36:04.292041+00:00
2023-04-02T05:01:06
29a77abf52fd87ed654d154ac039dd344d7070f0
{ "blob_id": "29a77abf52fd87ed654d154ac039dd344d7070f0", "branch_name": "refs/heads/master", "committer_date": "2023-04-12T11:10:39", "content_id": "9ff71f020846d407d3c7bf309bce73e7fd8cfb8a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9f275713fcb7930ddd22aa14123d1e3bb8da793d", "extensio...
stackv2
/* * Copyright (c) 2023 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <stddef.h> #include <stdint.h> #include <string.h> #include <zephyr/kernel.h> #include <zephyr/sys/printk.h> #include "bs_types.h" #include "bs_tracing.h" #include "bstests.h" #include <zephyr/logging/log.h> LO...
2.078125
2
2024-11-18T21:36:04.532113+00:00
2019-07-10T13:07:06
69c677ca3aa16e4ebfe3dbeb5a8f94a4db773deb
{ "blob_id": "69c677ca3aa16e4ebfe3dbeb5a8f94a4db773deb", "branch_name": "refs/heads/master", "committer_date": "2019-07-10T13:07:06", "content_id": "884e3c55fadef10b54fcadf610398ccd48f44b86", "detected_licenses": [ "Apache-2.0", "BSD-3-Clause" ], "directory_id": "f83ef53177180ebfeb5a3e230aa29794f5...
stackv2
#include "tests.h" #include <signal.h> int main(void) { stack_t ss = { .ss_sp = (void *) 0xbaadf00d, .ss_flags = SS_DISABLE, .ss_size = 0xdeadbeef }; if (sigaltstack(&ss, (stack_t *) 0)) perror_msg_and_skip("sigaltstack"); return 0; }
2
2
2024-11-18T21:36:04.674717+00:00
2019-06-03T19:32:33
58e69a691245be98689205fe5f7d569023a78d9d
{ "blob_id": "58e69a691245be98689205fe5f7d569023a78d9d", "branch_name": "refs/heads/master", "committer_date": "2019-06-03T19:32:33", "content_id": "9ea8b11f73cf586d544e8742d0568ee401a171e1", "detected_licenses": [ "MIT" ], "directory_id": "301f166eefd55156b7c63c2b422b6296cad04969", "extension": "c"...
stackv2
#include <stdio.h> int main() { char input[64]; /* 63 characters plus null */ printf("Instructions: "); fgets(input,64,stdin); puts("Thank you! Here are your instructions:"); puts(input); return(0); }
2.796875
3
2024-11-18T21:36:04.978827+00:00
2018-01-16T18:13:32
6e2c606e52e7a6c19d000448e4173e58534dfd0c
{ "blob_id": "6e2c606e52e7a6c19d000448e4173e58534dfd0c", "branch_name": "refs/heads/master", "committer_date": "2018-01-16T18:13:43", "content_id": "288a9f1d9a20ad19dc8323ba1dd30aa8813d5702", "detected_licenses": [ "CC0-1.0" ], "directory_id": "77d8651f412541da2751bde0646a902fb4f8b970", "extension":...
stackv2
#include <err.h> #include <fcntl.h> #include <unistd.h> int main(int argc, char *argv[]) { if (argc != 2) { errx(1, "Usage: %s FILE", argv[0]); } int fd = open(argv[1], O_WRONLY | O_APPEND); if (fd == -1) { err(1, "open"); } if (lseek(fd, 0, SEEK_SET) == -1) { err(1, "lseek"); } /* When O_APPEND is sp...
2.921875
3
2024-11-18T21:36:05.146991+00:00
2022-12-08T09:25:47
b93438aaa0d6f45305edb31ae72fd4d3e1f360d3
{ "blob_id": "b93438aaa0d6f45305edb31ae72fd4d3e1f360d3", "branch_name": "refs/heads/master", "committer_date": "2022-12-08T09:25:47", "content_id": "d6ecdc41751ce1b84ca3b2cb3c90e92f78c21062", "detected_licenses": [ "MIT" ], "directory_id": "15d3ad153d7896b9ac7fb09bbd000b6a71a1b8ad", "extension": "c"...
stackv2
/* * fault_test.c * * Created on: 2016/12/25 * Author: Armink */ #include <stdio.h> void fault_test_by_unalign(void) { volatile int * SCB_CCR = (volatile int *) 0xE000ED14; // SCB->CCR volatile int * p; volatile int value; *SCB_CCR |= (1 << 3); /* bit3: UNALIGN_TRP. */ p = (int *) 0x0...
2.921875
3
2024-11-18T21:36:05.237992+00:00
2017-03-08T10:46:17
3f480b594b1f7f0a43799127be3a3b8d66dce900
{ "blob_id": "3f480b594b1f7f0a43799127be3a3b8d66dce900", "branch_name": "refs/heads/master", "committer_date": "2017-03-08T10:46:17", "content_id": "a3da50c1a60551e82376703af29abfd5e7f5b4d1", "detected_licenses": [ "MIT" ], "directory_id": "9cd3a3448e511cf6c907b19bee33a9b0fa24d67d", "extension": "c"...
stackv2
#include "Game.h" void Game::Casting() { TheBoard->Spell(); } void Game::setDifficulty() { char i; cout << " Please select the difficulty of the computer" << endl; cout << " 1. Easy" << endl; cout << " 2. Medium" << endl; cout << " 3. Hard" << endl; cout << " Option: "; cin >> i; while ((i != '1') && (...
2.703125
3
2024-11-18T21:36:05.380946+00:00
2017-02-28T17:00:00
5c79afac790a845ac0969b935620b27f4c80a035
{ "blob_id": "5c79afac790a845ac0969b935620b27f4c80a035", "branch_name": "refs/heads/master", "committer_date": "2017-02-28T17:00:00", "content_id": "39813b7482c865157165579fe89d72d4a3aad232", "detected_licenses": [ "MIT" ], "directory_id": "9f0854986c9f1b8aadc32f86a09a716116935220", "extension": "h"...
stackv2
// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" struct ImGuiTextFilter { struct TextRange { const char* b; const char* e; TextRange() { b = e = NULL; } TextRange(const char* _b, const char* _e) { b = _b; e = _e; } const char* begin() const { return b; } const char* end() const ...
2.046875
2
2024-11-18T21:36:05.563027+00:00
2017-05-10T23:31:12
1e7b7d784018cfccd31acf1831def32b103ee6c7
{ "blob_id": "1e7b7d784018cfccd31acf1831def32b103ee6c7", "branch_name": "refs/heads/master", "committer_date": "2017-05-10T23:31:12", "content_id": "7ed8db4abddd1d52e8b3735c13cabe71e93c433f", "detected_licenses": [ "BSD-4-Clause-UC" ], "directory_id": "772722d908f40b1c7efce90c2342dd94fe7edba2", "ext...
stackv2
#include <inc/mmu.h> #include <inc/x86.h> #include <inc/assert.h> #include <kern/memory_manager.h> #include <kern/trap.h> #include <kern/console.h> #include <kern/command_prompt.h> #include <kern/user_environment.h> #include <kern/file_manager.h> #include <kern/syscall.h> #include <kern/sched.h> #include <kern/kclock.h...
2
2
2024-11-18T21:36:05.696265+00:00
2023-09-03T08:13:23
5a22fdda0cc702a505a0a749aa872feba982ccad
{ "blob_id": "5a22fdda0cc702a505a0a749aa872feba982ccad", "branch_name": "refs/heads/main", "committer_date": "2023-09-03T08:13:23", "content_id": "59d1c5a083b30988712dfc98213df32ac7bdc1b6", "detected_licenses": [ "MIT" ], "directory_id": "fb0f9abad373cd635c2635bbdf491ea0f32da5ff", "extension": "c", ...
stackv2
/* libunwind - a platform-independent unwind library Copyright (C) 2003 Hewlett-Packard Co Contributed by David Mosberger-Tang <davidm@hpl.hp.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwa...
2.125
2
2024-11-18T21:36:06.062795+00:00
2023-07-14T19:09:39
2ae60f4097b9fe59689840983ba2c36b21e0abce
{ "blob_id": "2ae60f4097b9fe59689840983ba2c36b21e0abce", "branch_name": "refs/heads/master", "committer_date": "2023-07-14T19:09:39", "content_id": "366b286237b6ea6091814ac4957d03e9e586b064", "detected_licenses": [ "Unlicense" ], "directory_id": "806cea741521256ff625184d9359c2e0ef56a7d0", "extension...
stackv2
/* Python.h should always be first */ #include <Python.h> #include <string.h> #include "grdel.h" #include "cferbind.h" #include "cairoCFerBind.h" #include "pyqtcairoCFerBind.h" /* * Make the viewer visible. * * Returns one if successful. If an error occurs, grdelerrmsg * is assigned an appropriate error message ...
2.40625
2
2024-11-18T21:36:06.392959+00:00
2021-10-07T18:07:00
1215041b20018fe7447ec968b02b345d4f946a3a
{ "blob_id": "1215041b20018fe7447ec968b02b345d4f946a3a", "branch_name": "refs/heads/master", "committer_date": "2021-10-07T18:07:00", "content_id": "6da916453cdfb4528751985b38e0019fbb240373", "detected_licenses": [ "MIT" ], "directory_id": "ef2314811f877d266fb2bb8cf002bf3d7cea68eb", "extension": "c"...
stackv2
// LICENSE NOTICE ================================================================================== /** * netzhaut - Web Browser Engine * Copyright (C) 2020 The netzhaut Authors * Published under MIT */ // INCLUDE ========================================================================================= #include...
2.15625
2
2024-11-18T21:36:07.284846+00:00
2021-10-07T04:05:51
f3db2d9f35dc82b2f5e2f8b199e0753160200e5b
{ "blob_id": "f3db2d9f35dc82b2f5e2f8b199e0753160200e5b", "branch_name": "refs/heads/master", "committer_date": "2021-10-07T04:05:51", "content_id": "3429d804987c8a5866ab44154b7581a759922477", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "0b954171d8b030a5cec80a6ffeee131e6494c6aa", "extens...
stackv2
#include "spdk/stdinc.h" #include "spdk/nvme.h" #include "spdk/vmd.h" #include "spdk/env.h" #include "sys/time.h" #include <termio.h> #include <unistd.h> static struct ctrlr_entry *g_controllers = NULL; static struct ns_entry *g_namespaces = NULL; struct ctrlr_entry { struct spdk_nvme_ctrlr *ctrlr; struct ctrlr_ent...
2.671875
3
2024-11-18T21:36:07.474787+00:00
2021-03-01T03:40:30
cf7b6392aca57d0ffec1d27e5ebb743d264b8a4a
{ "blob_id": "cf7b6392aca57d0ffec1d27e5ebb743d264b8a4a", "branch_name": "refs/heads/master", "committer_date": "2021-03-01T03:40:30", "content_id": "c03507922175a87821aad735c24a614787cf1c61", "detected_licenses": [ "MIT" ], "directory_id": "7fa19a7d6f6200d353eb4d5195ede301bd360a9c", "extension": "c"...
stackv2
#include <stdio.h> #include <limits.h> #include <errno.h> #include <string.h> #include <xlib/xerr.h> #include <xlib/xfmt.h> #include <xlib/xstream.h> #include <xlib/xprint.h> static inline double _xprint_rounding(uint8_t digit) { switch(digit) { case 0: return 0.5; case 1: return 0.05; ...
2.453125
2
2024-11-18T21:36:07.557559+00:00
2019-08-30T07:26:01
a843b143df74546215edbc4b5cbd9ec9c8dec342
{ "blob_id": "a843b143df74546215edbc4b5cbd9ec9c8dec342", "branch_name": "refs/heads/master", "committer_date": "2019-08-30T07:26:01", "content_id": "de281b0e62b623ec38e8a524c75abe071ac8ebe1", "detected_licenses": [ "MIT" ], "directory_id": "a0f55e31c92c31832fbe074038f07b8f8726425b", "extension": "c"...
stackv2
#include <stdio.h> #define FORMAT "%d\n%s\n%f\n%f\n%f\n" struct student { int num; char name[20]; float score[3]; }stu={1234,"Li Lin",67.5,89,78.6}; int main() { void print(struct student *); print(&stu); return 0; } void print(struct student *p) { printf(FORMAT,p->num,p->name,p->score[0...
3.03125
3
2024-11-18T21:36:07.617164+00:00
2021-07-02T13:29:48
da0f6132f1c36b106d315059581c60e0520e8547
{ "blob_id": "da0f6132f1c36b106d315059581c60e0520e8547", "branch_name": "refs/heads/master", "committer_date": "2021-07-02T13:29:48", "content_id": "6126cbf88b847b25010d84a6ca59a8412a953ec1", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "f76e6fcd7afd050c3cf4089947d3601cb6d67996", "extens...
stackv2
/* * Test example for multiplex functionality, originally * provided by Timothy Kaiser, SDSC. It was modified to fit the * PAPI test suite by Nils Smeds, <smeds@pdc.kth.se>. * * This example verifies the adding and removal of multiplexed * events in an event set. */ #include <stdio.h> #include <stdlib.h> #inclu...
2.375
2
2024-11-18T21:36:07.706338+00:00
2019-03-17T15:32:44
11b7901e5096784ab0921c7a0a1aed2be76b9c1b
{ "blob_id": "11b7901e5096784ab0921c7a0a1aed2be76b9c1b", "branch_name": "refs/heads/master", "committer_date": "2019-03-17T15:32:44", "content_id": "ef2321d13b2450b3eccc32d7fb8f397615312323", "detected_licenses": [], "directory_id": "90d464e05c3954f687afe50dad90f6cfa3e409d1", "extension": "c", "filename...
stackv2
#include <onnc/Runtime/operator/and.h> #include <stdint.h> #include <stdbool.h> void ONNC_RUNTIME_and_float( void * restrict onnc_runtime_context ,const float * restrict input_A ,int32_t input_A_ndim, const int32_t * restrict input_A_dims ,const float * restrict input_B ,int32_t input_B_ndim, const int32_t ...
2.40625
2
2024-11-18T21:36:07.823543+00:00
2018-08-22T20:34:53
480ed0582874f7c35368652c34eddd0407d30945
{ "blob_id": "480ed0582874f7c35368652c34eddd0407d30945", "branch_name": "refs/heads/master", "committer_date": "2018-08-22T20:34:53", "content_id": "fd2affcf5060fb19cb03f700e633dca8bc4d59ed", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "8ee782ea7cc7a5c28ce3eaf494315b25628e81b9", "extens...
stackv2
static char help[] = "Parallel HDF5 Vec Viewing.\n\n"; /*T Concepts: vectors^viewing Concepts: viewers^hdf5 Processors: n T*/ #include <petscvec.h> #include <petscviewerhdf5.h> int main(int argc,char **argv) { Vec x1, x2, y1, y2, y3, y4; PetscViewer viewer; PetscMPIInt rank; PetscIn...
2.21875
2
2024-11-18T21:36:08.249229+00:00
2022-11-09T23:50:16
ff50bfa8b360a1bd419cdbbfc915516108866c15
{ "blob_id": "ff50bfa8b360a1bd419cdbbfc915516108866c15", "branch_name": "refs/heads/main", "committer_date": "2022-11-09T23:50:16", "content_id": "6f15b870ed872b478c3326bee77eec10bd4c31fe", "detected_licenses": [ "MIT" ], "directory_id": "a9580591d7c6b58df4cd39d2b96d49a2e445964a", "extension": "c", ...
stackv2
#include "color.h" #include "header.h" #include "bootpack.h" extern struct FIFO8 keyfifo, mousefifo; void enable_mouse(void); void init_keyboard(void); void init_gdt_idt2(void); void bootmain(void) { struct BOOTINFO *binfo = (struct BOOTINFO *)0x0ff0; char s[40], mcursor[256], keybuf[32]; int mx, my, i; init_gd...
2.484375
2
2024-11-18T21:36:08.671901+00:00
2017-11-06T04:00:58
1f697eca514d6ae0ae95d57665b7390219a638e6
{ "blob_id": "1f697eca514d6ae0ae95d57665b7390219a638e6", "branch_name": "refs/heads/master", "committer_date": "2017-11-06T04:00:58", "content_id": "347a9be0876f80db1c2954706a5c5c2c7efefb35", "detected_licenses": [ "MIT" ], "directory_id": "4da0d6333a8eea03ed4dc4112e749ec0446d2355", "extension": "c"...
stackv2
/* * Copyright (c) 2017 Jackson Gable * * This file is released under the MIT License. */ #include <stdlib.h> #include "LinkedList.h" typedef struct node Node; struct node { void *element; Node *next; }; int size = 0; //Pointer to first node in the list Node *HEAD = NULL; //Traverses the list to the n...
3.65625
4
2024-11-18T21:36:09.004087+00:00
2023-04-05T16:38:18
0043172f1662d14d2f3f3ae9bea2b1f4a48f2f45
{ "blob_id": "0043172f1662d14d2f3f3ae9bea2b1f4a48f2f45", "branch_name": "refs/heads/master", "committer_date": "2023-04-05T16:38:18", "content_id": "304b74ba6ba21fdcef14d1a4f8a9a6a6d82051cd", "detected_licenses": [ "MIT" ], "directory_id": "e2990cde74213c8858d1b56adb64fa7e479ec7bc", "extension": "h"...
stackv2
/** * stack_link.h 2014-05-16 * anonymouse(anonymouse@email) * * Copyright (C) 2000-2014 All Right Reserved * * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FO...
2.109375
2
2024-11-18T21:36:09.630013+00:00
2023-08-17T18:27:32
1d5ebe9ca315cfce49876287f020bd31a30e94fe
{ "blob_id": "1d5ebe9ca315cfce49876287f020bd31a30e94fe", "branch_name": "refs/heads/devel", "committer_date": "2023-08-17T18:27:32", "content_id": "51a36b0178d6985a0cf82fb663c7cae889e32d27", "detected_licenses": [ "BSL-1.0" ], "directory_id": "5cf1805e46595535f2e95687f530344b2bb3d2c2", "extension": ...
stackv2
/* Ppmd7Enc.c -- PPMdH Encoder 2010-03-12 : Igor Pavlov : Public domain This code is based on PPMd var.H (2001): Dmitry Shkarin : Public domain */ #include "Ppmd7.h" #define kTopValue (1 << 24) void Ppmd7z_RangeEnc_Init(CPpmd7z_RangeEnc *p) { p->Low = 0; p->Range = 0xFFFFFFFF; p->Cache = 0; p->CacheSize = 1;...
2.078125
2
2024-11-18T21:36:10.274848+00:00
2021-07-10T14:47:11
da2983bd75a5760163121da29d2b5178271f0761
{ "blob_id": "da2983bd75a5760163121da29d2b5178271f0761", "branch_name": "refs/heads/main", "committer_date": "2021-07-10T14:47:11", "content_id": "f8450e0391edf2ad006f81097f545a4aa180ce7f", "detected_licenses": [ "MIT" ], "directory_id": "0dbfd31e4ae6916a34dcd022f0033839dff75217", "extension": "h", ...
stackv2
/* * publicfuc.h * * Created on: 2009-11-5 * Author: letian */ #ifndef PUBLICFUC_H_ #define PUBLICFUC_H_ #include <QtWidgets/QLineEdit> #include <QtWidgets/QCheckBox> #include <stdio.h> #include "DemoPublic.h" #ifndef HPR_OK #define HPR_OK 0 #endif #ifndef HPR_ERROR #define HPR_ERROR -1 #endif #ifndef I...
2.03125
2
2024-11-18T21:36:11.053391+00:00
2021-10-06T02:32:10
decc0443817a18daa5b95044950191955003ca4f
{ "blob_id": "decc0443817a18daa5b95044950191955003ca4f", "branch_name": "refs/heads/master", "committer_date": "2021-10-06T02:32:10", "content_id": "13d31158c35ce9b0df14a50f7b66871bbe07d6df", "detected_licenses": [ "MIT" ], "directory_id": "1dea4de77a836c2513f5bd15979c0f7b47e1a01a", "extension": "h"...
stackv2
#ifndef MYCLIB_STACK_H #define MYCLIB_STACK_H #include<stdio.h> #define STACK_DATA_MAX 100 typedef struct{ int top; int data[STACK_DATA_MAX]; }Stack; void stack_init(Stack *); int stack_full(Stack *); int stack_empty(Stack *); void stack_push(Stack *, int); int stack_pop(Stack *); #endif //MYCLIB_STACK...
2
2
2024-11-18T21:36:11.379035+00:00
2021-11-08T00:45:16
ef2cb80dcc30c2d17aff1e6798e4d904ee21bafd
{ "blob_id": "ef2cb80dcc30c2d17aff1e6798e4d904ee21bafd", "branch_name": "refs/heads/main", "committer_date": "2021-11-08T00:45:16", "content_id": "f048932ee0d4d626c84755847cb77166f94d4553", "detected_licenses": [ "MIT" ], "directory_id": "fad766c2c8ff9a2cb6b57c36f40388633fb943e6", "extension": "h", ...
stackv2
/** * This library has made to work with points in a bidimensional cartesian plane. * * Funções: * eclidians_distace(Point a, Point b) * autor: @namelew * created_at: 22/03/2021 * last_modified: 22/03/2021 */ /** * Basic structere of a point in a bidimensional cartesian plane. When, x is the * coordinate o...
2.734375
3
2024-11-18T21:36:12.200839+00:00
2014-09-28T11:32:36
4d6b638768847da7d85571154b9a160f556aadd3
{ "blob_id": "4d6b638768847da7d85571154b9a160f556aadd3", "branch_name": "refs/heads/master", "committer_date": "2014-09-28T11:32:36", "content_id": "2ebeac890ac1f3a449e9a48439a6f8b539f735df", "detected_licenses": [ "MIT" ], "directory_id": "110314b7a4fd31b7bd42671c67a7ee1400fce9f9", "extension": "h"...
stackv2
#ifndef _PRECISIONTYPE_ #define _PRECISIONTYPE_ /** *File: precisionType.h *Description: this class is used to introduce a name into the programs. the main aim is to have a central control of the precision by a given application. the application uses objects of many classes which contain data. the type ...
2.296875
2
2024-11-18T22:01:53.443703+00:00
2014-09-09T22:57:51
4061fece47b8eed4537283b35305ff41316e4811
{ "blob_id": "4061fece47b8eed4537283b35305ff41316e4811", "branch_name": "refs/heads/master", "committer_date": "2014-09-09T22:57:51", "content_id": "cba0148e8b8c1decc2574179d269e7463e65b648", "detected_licenses": [ "MIT" ], "directory_id": "9ba45c6be618890ea56ddd9ad6da4f73869a035d", "extension": "c"...
stackv2
// // Originally, most of logics in this source code is : // // Copyright 2013 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.a...
2.078125
2
2024-11-18T22:01:54.264530+00:00
2017-05-17T10:27:37
90f6d44ef42233263dd278b4dd92ad69de418f72
{ "blob_id": "90f6d44ef42233263dd278b4dd92ad69de418f72", "branch_name": "refs/heads/master", "committer_date": "2017-05-17T10:27:37", "content_id": "2cc53f82f32b0b0c37a059157c12f0bf2a1eff54", "detected_licenses": [ "MIT" ], "directory_id": "fae0e13fd61cd69a52c6b31152f65c28b564ffec", "extension": "c"...
stackv2
#include<stdio.h> #include "campovski.h" int main() { char* sieve = eratosthenes(1000001); // generate huge sieve int count = 0; // count of primes int i; // we will need i outside the loop for (i = 2; i < 1000001; i++) { if (!sieve[i]...
3.109375
3
2024-11-18T22:01:54.458525+00:00
2023-06-26T18:43:39
52320d7ad179b0724b6c3d060a1ddb9af90fc21d
{ "blob_id": "52320d7ad179b0724b6c3d060a1ddb9af90fc21d", "branch_name": "refs/heads/master", "committer_date": "2023-06-26T18:43:39", "content_id": "9ef04fc1b12fe16a7a9f545d9093fa87d30f4818", "detected_licenses": [ "MIT" ], "directory_id": "f8a05e9979d87574d270239b9326ab74fdd9d3c2", "extension": "c"...
stackv2
//########################################################################### // // FILE: gpio.c // // TITLE: C28x GPIO driver. // //########################################################################### // $Copyright: // Copyright (C) 2022 Texas Instruments Incorporated - http://www.ti.com // // Redistribution...
2.109375
2
2024-11-18T22:01:54.627564+00:00
2019-02-26T14:23:03
e72df902e206ee7884cfff9931be57f49a4db08c
{ "blob_id": "e72df902e206ee7884cfff9931be57f49a4db08c", "branch_name": "refs/heads/master", "committer_date": "2019-02-26T14:23:03", "content_id": "35540d82a5ddad3032feba06c3a65db469205aef", "detected_licenses": [ "MIT" ], "directory_id": "d22e5b6a4cbcb18178c859cdf0fcf3b6847a122b", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* vm_st.c :+: :+: :+: ...
2.453125
2
2024-11-18T22:01:55.024626+00:00
2023-08-09T18:19:32
3dfba0d83a0f41936d5a78e1f67e43f934a8af86
{ "blob_id": "3dfba0d83a0f41936d5a78e1f67e43f934a8af86", "branch_name": "refs/heads/master", "committer_date": "2023-08-09T18:19:32", "content_id": "00686d2b0b3c5d203b31cf31adaeda6ff97e7811", "detected_licenses": [ "Apache-2.0" ], "directory_id": "a4a96286d9860e2661cd7c7f571d42bfa04c86cf", "extensio...
stackv2
/* * SPDX-FileCopyrightText: 2018-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <stdio.h> #include <assert.h> #include "hal/sha_hal.h" #include "hal/sha_types.h" #include "soc/soc_caps.h" #include "esp_log.h" #include <mbedtls/sha1.h> #include <mb...
2.25
2
2024-11-18T22:01:55.341038+00:00
2023-07-16T16:04:41
e38c905d217d15b177569c8ff85a394e4dbf8683
{ "blob_id": "e38c905d217d15b177569c8ff85a394e4dbf8683", "branch_name": "refs/heads/main", "committer_date": "2023-07-16T16:04:41", "content_id": "a7765a6c651d0d2b1d976d6bfece3273c79dc54c", "detected_licenses": [ "MIT" ], "directory_id": "78ab48e3b8ea4ea6c5561b27996c16922b9c9606", "extension": "c", ...
stackv2
/* * cat with an offset */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <unistd.h> FILE * xfopen(const char *path, const char *mode); int main(int argc, char **argv) { FILE *fp = xfopen(argc > 1 ? argv[1] : "-", "r"); off_t offset = argc > 2 ? strtoul(argv[2], NULL, 0) :...
3.0625
3
2024-11-18T22:01:55.519628+00:00
2013-07-24T16:50:38
6c86402e6686510237a9bc71db197d8eaeeb5b30
{ "blob_id": "6c86402e6686510237a9bc71db197d8eaeeb5b30", "branch_name": "refs/heads/master", "committer_date": "2013-07-24T16:50:38", "content_id": "9d6111add64f8d47d4051030eb1cccb6bc1fcd01", "detected_licenses": [ "MIT" ], "directory_id": "e80b64d2abc3f43b7d0af91eb2aa200bd064305d", "extension": "c"...
stackv2
#include <stddef.h> void sodium_memxor(unsigned char *out, unsigned char *buf1, unsigned char *buf2, size_t size) { size_t i; for(i = 0; i < size; i++) out[i] = buf1[i] ^ buf2[i]; } void sodium_memput(unsigned char *out, unsigned char *in, size_t offset, size_t size) { size_t i; for (i = 0; i < size; i++) { o...
2.375
2
2024-11-18T22:01:55.591190+00:00
2015-09-12T02:59:04
d00e7b38468bdc0850f1d1d1e816bd945d306e99
{ "blob_id": "d00e7b38468bdc0850f1d1d1e816bd945d306e99", "branch_name": "refs/heads/master", "committer_date": "2015-09-12T02:59:04", "content_id": "8e83a58e697a5bdb24e1aa1f458f88f568dc6408", "detected_licenses": [ "MIT" ], "directory_id": "0750dbe59ac38a94070cfd5320e21a640a79e5fa", "extension": "h"...
stackv2
/* * Copyright (c) 2011 Sergey Kolotsey. * This file if part of expat-dom library. * See the file COPYING for copying permission. */ #ifndef __EXPAT_DOM_INCLUDED #define __EXPAT_DOM_INCLUDED #include <stdio.h> /** * @file expat-dom.h * Expat-dom library for creating DOM struct * @ingroup expat-dom * @defgro...
2.40625
2
2024-11-18T22:01:55.902094+00:00
2016-11-03T08:13:22
94d473bc01b00b45338e6ad60548aa85ce3522ec
{ "blob_id": "94d473bc01b00b45338e6ad60548aa85ce3522ec", "branch_name": "refs/heads/master", "committer_date": "2016-11-03T08:13:22", "content_id": "4f27c82508b7176fec984a3ab60fdfc7e3f553d8", "detected_licenses": [ "MIT" ], "directory_id": "e06ea7bef18b445fda9618a53739a6e41efa6ff0", "extension": "h"...
stackv2
//// Function that populates the board with corressponding values //// if Default the board is populated with 8 values and one zero value //// else, the board is populated with the user inputted values taken //// from the tokens vector void populateBoard(vector < vector<int> > &Board, bool defaultBoard, int vSize, in...
3.046875
3
2024-11-18T22:27:06.789261+00:00
2020-06-16T06:28:46
48e7434b0786c692751ac76eb66d2574655562f2
{ "blob_id": "48e7434b0786c692751ac76eb66d2574655562f2", "branch_name": "refs/heads/master", "committer_date": "2020-06-16T06:28:46", "content_id": "7cf7e216a0bb927ed8a8d470365666769afae5b9", "detected_licenses": [ "MIT" ], "directory_id": "d23420295ad7e9313766880fa61978a5c00e57a1", "extension": "c"...
stackv2
#define llistlib_c #define LUA_LIB #include "lprefix.h" #include "lua.h" #include "lauxlib.h" #include "lualib.h" #include "lobject.h" #include "lapi.h" #include "lgc.h" #include "llist.h" /* 将TValue值压入栈 */ void lua_push(lua_State *L, TValue *t) { lua_lock(L); setobj2s(L, L->top, t); api_incr_top(L); ...
2.3125
2
2024-11-18T22:27:06.946153+00:00
2023-08-27T05:12:43
a350e533e25a263c09d2860404e19ad06822b7e6
{ "blob_id": "a350e533e25a263c09d2860404e19ad06822b7e6", "branch_name": "refs/heads/master", "committer_date": "2023-08-27T05:12:43", "content_id": "e5fe5394a094d59b4a50939e7ded7d5fcb236cbf", "detected_licenses": [ "MIT" ], "directory_id": "c8785278ccc04221bc4f618acfb6a639b452d13f", "extension": "c"...
stackv2
/** * Print Hello world according to the command line. */ #include <stdio.h> #include <string.h> #ifdef __FRAMAC__ /** * Frama-C 20140301 doesn't assume anything about main arguments. * Let's build an initial stack which is writable, with dummy parameters. * Another way of doing this may consist in declaring exte...
3.453125
3
2024-11-18T22:27:10.042484+00:00
2019-05-07T21:01:24
ba71c9abfb03a0eaeebd7c944579ae8d44409231
{ "blob_id": "ba71c9abfb03a0eaeebd7c944579ae8d44409231", "branch_name": "refs/heads/master", "committer_date": "2019-05-07T21:01:24", "content_id": "d26ebff8bfa3bc6a431c5f7a7144db5bc716aaa2", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "8b0231925099f101f21b12df18d1b3c42097343f", "extens...
stackv2
#include <jni.h> #include <stdlib.h> #include <string.h> #include <vulkan/vulkan.h> jlong jniPointerToLong(const void* p); void* jniLongToPointer(jlong l); jlong jniFunctionPointerToLong(PFN_vkVoidFunction p); PFN_vkVoidFunction jniLongToFunctionPointer(jlong l); void jniThrowException(JNIEnv* env, const char* message...
2.171875
2
2024-11-18T22:27:10.127384+00:00
2018-06-26T17:12:08
e9b5f46ab69bea4cd4603a54d0aaacdbd02edeac
{ "blob_id": "e9b5f46ab69bea4cd4603a54d0aaacdbd02edeac", "branch_name": "refs/heads/master", "committer_date": "2018-06-26T17:12:08", "content_id": "61931b992984384cf57554dff8436a4d9a165348", "detected_licenses": [ "MIT" ], "directory_id": "aa9ba2c48c06fff974280f119d68c2935749f910", "extension": "c"...
stackv2
#include "parallel.h" int main(int argc, char *argv[]) { double t1, t2; int my_rank; int proc_n; MPI_Status status; int i; alg = QSORT; MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD, &my_rank); MPI_Comm_size(MPI_COMM_WORLD, &proc_n); t1 = MPI_Wtime(); if (my_rank == 0) { int array[ARRAY_SIZ...
2.78125
3