added stringdate 2024-11-18 17:54:19 2024-11-19 03:39:31 | created timestamp[s]date 1970-01-01 00:04:39 2023-09-06 04:41:57 | id stringlengths 40 40 | metadata dict | source stringclasses 1
value | text stringlengths 13 8.04M | score float64 2 4.78 | int_score int64 2 5 |
|---|---|---|---|---|---|---|---|
2024-11-18T22:25:09.753921+00:00 | 2018-10-07T20:58:43 | 3a3b9a31869f0c0b41066582b5ec2ad798557646 | {
"blob_id": "3a3b9a31869f0c0b41066582b5ec2ad798557646",
"branch_name": "refs/heads/master",
"committer_date": "2018-10-07T20:58:43",
"content_id": "5f40155bf239a5bf49efbb546e89554041486e90",
"detected_licenses": [
"MIT"
],
"directory_id": "2dcd1333d8be4b5f81354fe9363ee06fccdb5205",
"extension": "c"... | stackv2 | /** @file
Implementation of the polynomial class
@author Jan Łanecki <jl385826@students.mimuw.edu.pl>
@copyright University of Warsaw, Poland
@date 2017-05-11, 2017-06-18
*/
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "poly.h"
void PolyDestroy(Poly *p) {
if... | 3.046875 | 3 |
2024-11-18T22:25:09.884393+00:00 | 2019-10-14T06:28:25 | 38eacecc1d5423599c4312e0743832fce2854c11 | {
"blob_id": "38eacecc1d5423599c4312e0743832fce2854c11",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-14T06:28:25",
"content_id": "bb66c450ba68bb9a202e22e61ef32eb69adb3bb7",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "be4c8ac930f6264989751d4f91befa3731cc39cc",
"extens... | stackv2 | #include <errno.h>
#include <stdio.h>
#include "assert.h"
#include "thread.h"
#include "irq.h"
#include "bitarithm.h"
#include "sched.h"
#define ENABLE_DEBUG (0)
#include "debug.h"
volatile thread_t *thread_get(kernel_pid_t pid)
{
if (pid_is_valid(pid)) {
return sched_threads[pid];
}
return NULL;... | 2.8125 | 3 |
2024-11-18T22:25:09.961408+00:00 | 2016-12-31T14:59:27 | e1486b20a0b48408b481fd004e1dcd824caf56f5 | {
"blob_id": "e1486b20a0b48408b481fd004e1dcd824caf56f5",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-31T14:59:27",
"content_id": "2bde8579fc5c9abb7bca77bd81e37b959240afb8",
"detected_licenses": [
"MIT"
],
"directory_id": "4d60accab748720bf64efffe8b7fc84d0aa4451a",
"extension": "c"... | stackv2 | #include <event2/event-config.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <event2/event.h>
#include <event2/util.h>
#include <event2/buffer.h>
#include <event2/thread.h>
#include <evthread-internal.h>
... | 2.734375 | 3 |
2024-11-18T22:25:10.034328+00:00 | 2023-08-24T07:58:02 | c21b8fc697dd9594b87a1d30d14879e35478ccea | {
"blob_id": "c21b8fc697dd9594b87a1d30d14879e35478ccea",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-24T07:58:02",
"content_id": "08585a0da7791acfe78dcd7f3f01a7374ab6e4c4",
"detected_licenses": [
"MIT"
],
"directory_id": "cb9ffece95cef31e363b55d9e07e21cc22a446eb",
"extension": "h"... | stackv2 | /*
* Watermelon Script
* Copyright (c) 2022, Keiichi Tabata. All rights reserved.
*/
#ifndef WMS_H
#define WMS_H
#include <stdbool.h>
/*
* Runtime Structure
*/
struct wms_runtime;
/*
* Execution
*/
/* Parse script and get runtime. */
struct wms_runtime *wms_make_runtime(const char *script);
/* Get parse er... | 2.4375 | 2 |
2024-11-18T22:25:10.113961+00:00 | 2021-05-05T23:07:49 | a2a7fd60d4f6d51171a8316b9b41a758131217b8 | {
"blob_id": "a2a7fd60d4f6d51171a8316b9b41a758131217b8",
"branch_name": "refs/heads/master",
"committer_date": "2021-05-07T12:56:53",
"content_id": "27dc6eeded9942479c491b3d3b41279bc52150c6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "270100d25c2a2289ff422342cdcc6fe3ccfab114",
"extens... | stackv2 | #include "flash.h"
#include "string.h"
#include "FreeRTOS.h"
#include "semphr.h"
struct app_flash_s app_flash;
xSemaphoreHandle flash_lock = NULL;
int flash_save()
{
int i;
xSemaphoreTake(flash_lock, portMAX_DELAY);
app_flash.deadbeef = 0xdeadbeef;
FLASH_Unlock();
FLASH_ClearFlag(FLASH_FLAG_BSY | FLASH_FLAG_E... | 2.328125 | 2 |
2024-11-18T22:25:10.211582+00:00 | 2017-02-01T20:47:25 | 6d1ea5b99be871bf6573420aae1ccdd10c6bbd95 | {
"blob_id": "6d1ea5b99be871bf6573420aae1ccdd10c6bbd95",
"branch_name": "refs/heads/master",
"committer_date": "2017-02-01T20:47:25",
"content_id": "f82959443fd2d7936c189aeb8b39a4a7c78f19ff",
"detected_licenses": [
"MIT"
],
"directory_id": "a19bbf35133416748f7b67654cd193890922b633",
"extension": "h"... | stackv2 | #ifndef MAP_H_INCLUDED
#define MAP_H_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#ifndef _VALUE_
#define _VALUE_
typedef void(*free_value)(void**);
typedef void*(*copy_value)(const void*);
typedef int(*compare_value)(const void*, const void*);
#endi... | 2.484375 | 2 |
2024-11-18T22:25:10.344937+00:00 | 2022-11-01T05:29:04 | 7d0aaf923be3e03d777d5d6f476e7972d6cc801a | {
"blob_id": "7d0aaf923be3e03d777d5d6f476e7972d6cc801a",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-01T05:29:04",
"content_id": "2e3c665bdc709fce4490ec21153b929baaaa148d",
"detected_licenses": [
"MIT"
],
"directory_id": "601d283e1cf70ade91c849f13dac482cb8283a61",
"extension": "h"... | stackv2 | #ifndef HD44780_H
#define HD44780_H
#include <stdint.h>
#include <stm8s.h>
#define HD44780_CMD_CLEAR 0x01
/*
* Initialize LCD and corresponding IO pins
*/
void LCD_init();
/*
* Write char to display
*/
void LCD_putc(char c);
/*
* Set LCD cursor
*
* @param col: 0 .. 15
* @param row: 0 .. 1
*/
void LCD_go... | 2.125 | 2 |
2024-11-18T22:25:10.425804+00:00 | 2020-01-30T15:52:16 | 14e1d2e7a81b00df1b9d203ad817aafb223a0dda | {
"blob_id": "14e1d2e7a81b00df1b9d203ad817aafb223a0dda",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-30T15:52:16",
"content_id": "02ada615c3fafe84d85daccf119d9213994e82cc",
"detected_licenses": [
"MIT"
],
"directory_id": "40de3da30239862f11a946166b50438174c2fd4e",
"extension": "c"... | stackv2 | // By Nalle, December 2003. Fortunes ripped from linux's 'fortune'.
#define FORTUNE_DIR "/wizards/nalle/fortune/"
#define BUFFER_SIZE 5000
string *files = ({ "art", "computers", "cookie", "drugs", "love", "magic", "medicine", "men-women", "pets" });
// To check the amount, in shell do -> 'grep "%" men-women | wc -l'... | 2.3125 | 2 |
2024-11-18T22:25:10.541428+00:00 | 2017-06-15T10:23:53 | a19a01669d3713fc299148b60e1d52614acbfa79 | {
"blob_id": "a19a01669d3713fc299148b60e1d52614acbfa79",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-15T10:23:53",
"content_id": "a29e3250c8d543353ba5969f550f156753a141c9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "1432974064ecf6e82da3606f311fb77ec56f5b73",
"extensio... | stackv2 | /*
* $QNXLicenseC:
* Copyright (c) 2012, 2016 QNX Software Systems. All Rights Reserved.
*
* You must obtain a written license from and pay applicable license fees to QNX
* Software Systems before you may reproduce, modify or distribute this software,
* or any work that includes all or part of this software. Fr... | 2.21875 | 2 |
2024-11-18T22:25:10.889931+00:00 | 2016-08-23T15:51:06 | aba0cbbc16729323d83e40e8e28c222a2daf7bf8 | {
"blob_id": "aba0cbbc16729323d83e40e8e28c222a2daf7bf8",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-23T15:51:06",
"content_id": "e9c9ea0710b2ca24dce2b91ee8fc58d16ba117b6",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "560be6d398e9fb92afe281933395019d4332445a",
"extens... | stackv2 | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#ifndef T... | 2.296875 | 2 |
2024-11-18T22:25:10.951244+00:00 | 2023-07-24T07:48:46 | e50743e6ed35be19d85abf7254c2c4c90e272076 | {
"blob_id": "e50743e6ed35be19d85abf7254c2c4c90e272076",
"branch_name": "refs/heads/master",
"committer_date": "2023-07-24T07:48:46",
"content_id": "89ed7606107a54f788bb915cb69aa4a9766da16f",
"detected_licenses": [
"MIT"
],
"directory_id": "71dba066f4baffa86199eae530e32bc0fa8c23e7",
"extension": "c"... | stackv2 | #include "ml_set.h"
#include "minilang.h"
#include "ml_macros.h"
#include <string.h>
#include "ml_sequence.h"
#include "ml_method.h"
#include "ml_object.h"
#undef ML_CATEGORY
#define ML_CATEGORY "set"
ML_TYPE(MLSetT, (MLSequenceT), "set"
// A set of values.
// Values can be of any type supporting hashing and comparis... | 2.484375 | 2 |
2024-11-18T22:25:11.119406+00:00 | 2017-05-11T15:19:14 | e992af7b3a7819411bc4e7f3bbb935e6ad475410 | {
"blob_id": "e992af7b3a7819411bc4e7f3bbb935e6ad475410",
"branch_name": "refs/heads/master",
"committer_date": "2017-05-11T15:19:14",
"content_id": "8cc1b6b5e4b1dd60cb6c653a6e8575f7e833bff7",
"detected_licenses": [
"MIT"
],
"directory_id": "18634178d433cba090737a3ba66c8f2d024158ae",
"extension": "h"... | stackv2 |
#ifndef __TIMER_H__
#define __TIMER_H__
#include "sys/time.h"
void Aux_Error( const char *File, const int Line, const char *Func, const char *Format, ... );
void Aux_Message( FILE *Type, const char *Format, ... );
//-------------------------------------------------------------------------------------------------... | 2.765625 | 3 |
2024-11-18T22:25:11.201387+00:00 | 2021-07-18T10:48:14 | fd0f17a4ac550d2f50db72f66c85982aad325a04 | {
"blob_id": "fd0f17a4ac550d2f50db72f66c85982aad325a04",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-18T10:48:14",
"content_id": "3c0293c33d570bd02d400bbea7fb40b93e56a384",
"detected_licenses": [
"MIT"
],
"directory_id": "772a6d9500c9f5b46485b3412647d24c09c90bfe",
"extension": "c"... | stackv2 | #include <stdio.h> /* for printf() and fprintf() */
#include <sys/socket.h> /* for omnirob_socket(), connect(), send(), and recv() */
#include <arpa/inet.h> /* for omnirob_sockaddr_in and inet_addr() */
#include <stdlib.h> /* for atoi() and exit() */
#include <string.h> /* for memset() */
#include <unistd... | 2.609375 | 3 |
2024-11-18T22:25:12.194881+00:00 | 2015-03-05T06:06:54 | a168286d043967919a2b63de21a7935bdc0c946b | {
"blob_id": "a168286d043967919a2b63de21a7935bdc0c946b",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-05T06:06:54",
"content_id": "86fb036d7add97cd1e077c11856c83d9173e9742",
"detected_licenses": [
"MIT"
],
"directory_id": "70d0d331cb340fd6b674c575fd45698cda55c9a9",
"extension": "h"... | stackv2 | /*
* Copyright (c) 2015 Jason Schmidlapp
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 2.765625 | 3 |
2024-11-18T22:25:12.329451+00:00 | 2019-12-06T07:46:20 | a3e3da6be7cfc4fa5583b5c3cafe43943f681af9 | {
"blob_id": "a3e3da6be7cfc4fa5583b5c3cafe43943f681af9",
"branch_name": "refs/heads/master",
"committer_date": "2019-12-06T07:46:20",
"content_id": "d3ca4b2e5a3f858f409182d160b475385e87602c",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "f874d60e6a9859dcf44f1e4b15b812f99b51ccd5",
"extensio... | stackv2 | #include <runtime.h>
boolean rangemap_insert(rangemap rm, rmnode n)
{
list_foreach(&rm->root, l) {
rmnode curr = struct_from_list(l, rmnode, l);
range i = range_intersection(curr->r, n->r);
if (range_span(i)) {
/* XXX bark for now until we know we have all potential cases handle... | 2.515625 | 3 |
2024-11-18T22:25:12.390059+00:00 | 2021-05-03T21:37:08 | 767674cf9b9c6133611f0f6263ed1cd04128c6e9 | {
"blob_id": "767674cf9b9c6133611f0f6263ed1cd04128c6e9",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-03T21:37:08",
"content_id": "e6ce3d0e069fd334c3943cd2fc723370b70a35a3",
"detected_licenses": [
"MIT"
],
"directory_id": "0eb854888dfd11a9ad0581b6641816e61fc7747d",
"extension": "c",
... | stackv2 | /*
* SHA3 and SHAKE implementation, using an external process_block()
* function (for assembly implementations).
*/
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "sha3.h"
#define process_block do255_sha3_process_block
void process_block(uint64_t *A);
/* see sha3.h */
void
shake_init(shak... | 2.96875 | 3 |
2024-11-18T22:25:13.455710+00:00 | 2023-08-17T16:08:06 | 6ab53d383fe99f3a7d170d653ca231a163b28429 | {
"blob_id": "6ab53d383fe99f3a7d170d653ca231a163b28429",
"branch_name": "refs/heads/main",
"committer_date": "2023-08-17T16:08:06",
"content_id": "6c8e0d8fc9dd77596d61eeaad21bec00ab6bd9cb",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "eecd5e4c50d8b78a769bcc2675250576bed34066",
"extensio... | stackv2 |
/*
Code for manipulating distributed regular arrays in parallel.
*/
#include <petsc/private/dmdaimpl.h> /*I "petscdmda.h" I*/
/*@C
DMDAGetGhostCorners - Returns the global (x,y,z) indices of the lower left
corner and size of the local region, including ghost points.
Not Collective
Input Parameter:
. ... | 2.4375 | 2 |
2024-11-18T22:25:13.694508+00:00 | 2019-08-23T14:11:05 | 7dbbafe08550bf4ea23e5732365ef3f01c7fa793 | {
"blob_id": "7dbbafe08550bf4ea23e5732365ef3f01c7fa793",
"branch_name": "refs/heads/master",
"committer_date": "2019-08-23T14:11:05",
"content_id": "34efb1c172b897f8a40b9924d1a05152870fa1b7",
"detected_licenses": [
"MIT"
],
"directory_id": "edfbbcab98e605b626137a4c0c428be2dd801066",
"extension": "c"... | stackv2 | /* Date 19 Aug 2019
Program - 1
performing various arithmatic operations on two numbers
*/
#include<stdio.h>
int main()
{
float a = 37;
float b = 56;
float c, d, e;
float f;
c = a + b;
d = a - b;
e = a * b;
f = a / b;
printf("Sum = %f \n", c);
printf("Difference = %f \n", d);
printf("Multiplication = %f \... | 4.125 | 4 |
2024-11-18T22:25:13.857350+00:00 | 2023-08-24T13:58:03 | 7ea699493f61bbee052704f1444f3044a5b06896 | {
"blob_id": "7ea699493f61bbee052704f1444f3044a5b06896",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-28T13:02:07",
"content_id": "c636e85d40ccec90f6a9ab1aa19d878064ac2ed9",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a559e75ad2514230753d5e262a16338493a8093d",
"extensio... | stackv2 | /*
* Copyright 2021-2022 Yubico AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 2.15625 | 2 |
2024-11-18T22:25:13.959073+00:00 | 2020-07-01T12:19:34 | 19034cf8492c10df6b3abe031acadbe4cb2c6e1a | {
"blob_id": "19034cf8492c10df6b3abe031acadbe4cb2c6e1a",
"branch_name": "refs/heads/master",
"committer_date": "2020-07-01T12:19:34",
"content_id": "557608c4fb13e2a6b6bf5571b02a12a83239d40a",
"detected_licenses": [
"BSD-3-Clause",
"MIT"
],
"directory_id": "bbf91cfe87a36779afbc43b5392abc0722363870"... | stackv2 |
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "lib6lowpan-includes.h"
#include "ip.h"
#define TO_CHAR(X) (((X) < 10) ? ('0' + (X)) : ('a' + ((X) - 10)))
#define CHAR_VAL(X) (((X) >= '0' && (X) <= '9') ? ((X) - '0') : \
(((X) >= 'A' && (X) <= 'F') ? ((... | 2.546875 | 3 |
2024-11-18T22:25:14.047737+00:00 | 2021-07-24T16:36:21 | 062f50fba2f5bdd07ee635e236ed3a561d20bb83 | {
"blob_id": "062f50fba2f5bdd07ee635e236ed3a561d20bb83",
"branch_name": "refs/heads/master",
"committer_date": "2021-07-24T16:38:59",
"content_id": "259754f1cd39968861f2daf40cdda15def0f2553",
"detected_licenses": [
"MIT"
],
"directory_id": "5cdeef2599433a0c9ae7c5f3310bfb617a7b513a",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
#include <errno.h>
// #include <unistd.h>
#include <stdlib.h>
#if _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#pragma comment(lib, "Ws2_32.lib")
#pragma comment(lib, "wsock32.lib")
#else
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#endif
#include ... | 2.265625 | 2 |
2024-11-18T22:25:14.273773+00:00 | 2016-02-05T16:45:49 | d7daa5c7ef11c615e762e90d8620ef783190fd31 | {
"blob_id": "d7daa5c7ef11c615e762e90d8620ef783190fd31",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-05T16:45:49",
"content_id": "262124327801760c9f725f0c8ab34cdb6b44287f",
"detected_licenses": [
"MIT"
],
"directory_id": "13f253e94f21f0bee9f1dc2b4416921cb3ceffea",
"extension": "c"... | stackv2 | #include "config.h"
#if defined(HAVE_POSIX_MEMALIGN) && !defined(_XOPEN_SOURCE)
#define _XOPEN_SOURCE 600
#endif
#if defined(HAVE_MEMALIGN) || defined (_MSC_VER)
/* MSVC Builds: Required for _aligned_malloc() and _aligned_free() */
#include <malloc.h>
#endif
#ifdef _MSC_VER
/* On Visual Studio, _aligned_malloc() tak... | 2.484375 | 2 |
2024-11-18T22:25:14.476300+00:00 | 2022-09-16T12:06:07 | 789938b69475e701647cdd1078ed8bb9d467bd46 | {
"blob_id": "789938b69475e701647cdd1078ed8bb9d467bd46",
"branch_name": "refs/heads/master",
"committer_date": "2022-09-16T12:06:07",
"content_id": "4e8027e3ad1d2213e6b4ba28c542dcf35068b5bc",
"detected_licenses": [
"MIT"
],
"directory_id": "3b622bd35ba92ba90cf55c4dfd676a739666e4b0",
"extension": "c"... | stackv2 | #include "pynetclr.h"
/* List of functions defined in the module */
static PyMethodDef clr_methods[] = {
{NULL, NULL, 0, NULL} /* Sentinel */
};
PyDoc_STRVAR(clr_module_doc,
"clr facade module to initialize the CLR. It's later "
"replaced by the real clr module. This module has a facade ... | 2.03125 | 2 |
2024-11-18T22:25:14.628634+00:00 | 2015-01-30T21:54:54 | b6471b39e69fb9358601dfab7e0a79c078cb1ae9 | {
"blob_id": "b6471b39e69fb9358601dfab7e0a79c078cb1ae9",
"branch_name": "refs/heads/master",
"committer_date": "2015-01-30T21:54:54",
"content_id": "c0b189f60380812c7dd08fd152617a7517546af4",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "3f6ad439218378507d1bb242d856530b53b1f14c",
"extens... | stackv2 | /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ *
*
* src/main.c
*
* Main entry point to Slice OS
*
* Author: Daniel Kudrow (dkudrow@cs.ucsb.edu)
* Date: March 7 2014
*
* Copyright (c) 2014, Daniel Kudrow
* All rights reserved, see LICENSE.txt for details.
*
* ~~~~~~~~~~~~~~~~~~~~~... | 2.1875 | 2 |
2024-11-18T22:25:14.698752+00:00 | 2018-01-14T17:16:56 | 2662b86e4941614e7f69f043322b6cb7a38dc03e | {
"blob_id": "2662b86e4941614e7f69f043322b6cb7a38dc03e",
"branch_name": "refs/heads/master",
"committer_date": "2018-01-14T17:16:56",
"content_id": "28d3c427c6812c5dc42d4cf46ab7801d592f3bf8",
"detected_licenses": [
"MIT"
],
"directory_id": "ed82f5f62a34173dc6bc1fffc0cddcc82c09459f",
"extension": "c"... | stackv2 | /*
* File: main.c
* Author: aluno
*
* Created on January 4, 2018, 10:36 AM
*/
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv) {
int ch;
//abrir ficheiros
FILE *ficheiro = fopen("ficheiro.dat", "r");
FILE *ficheiroBackup = fopen("ficheiro.bak", "w");
if (ficheiro != N... | 2.78125 | 3 |
2024-11-18T22:25:15.680668+00:00 | 2020-05-14T13:30:03 | dac1047001779bc928c2290e98d415f47509eee1 | {
"blob_id": "dac1047001779bc928c2290e98d415f47509eee1",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-14T13:30:03",
"content_id": "c8d484360dad8d766795bd8a1aa91ad1487723d0",
"detected_licenses": [
"MIT"
],
"directory_id": "4048d7ab1cf0c2bd759696f14fe03edf2d59a17e",
"extension": "c"... | stackv2 | /**
* @file shell.c
* @brief Implementation of the shell object
* Import part of linenoise(https://github.com/antirez/linenoise)
* @author Eggcar
*/
/**
* MIT License
*
* Copyright (c) 2020 Eggcar(eggcar at qq.com or eggcar.luan at gmail.com)
*
* Permission is hereby granted, free of charge, to any perso... | 2.125 | 2 |
2024-11-18T22:25:16.575852+00:00 | 2020-09-05T19:01:28 | 3b7d50ddc8d84696049f208b54fb663fee764134 | {
"blob_id": "3b7d50ddc8d84696049f208b54fb663fee764134",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-05T19:01:28",
"content_id": "063dbc55e2b823d7ea73fe0a2e701fa6f8d15bc5",
"detected_licenses": [
"MIT"
],
"directory_id": "a04463d849a12ec6f5e82b35989e64218a124a30",
"extension": "c"... | stackv2 | #define _GNU_SOURCE
#include "../global.h"
#include "input.h"
#include "retrolab.def.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct SourceFile {
char* filename;
char* source;
} ... | 2.546875 | 3 |
2024-11-18T22:25:17.630864+00:00 | 2022-11-25T14:31:40 | ed2080d7809093341072599605afd2e41cf79295 | {
"blob_id": "ed2080d7809093341072599605afd2e41cf79295",
"branch_name": "refs/heads/main",
"committer_date": "2022-11-25T14:31:40",
"content_id": "934d111c7a1d240a3550087197328324caa7d1c5",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c6bbd226758134f7057e381234b14ab0e5f19410",
"extensio... | stackv2 |
/* input.c - This is the messy mouse section. Responsible for updating
the values in
key_in, key_hit, mouse_button, grid_x, grid_y, uzx, uzy,
are updated every time c_input is called. Macros are taken
care of here by calling the appropriate routines in macro.c.
The mouse coordinates are kept in bot... | 2.21875 | 2 |
2024-11-18T22:25:18.030056+00:00 | 2013-08-17T13:59:22 | 159ab258e6e5a8930ca1a706cd75b2e402d14115 | {
"blob_id": "159ab258e6e5a8930ca1a706cd75b2e402d14115",
"branch_name": "refs/heads/master",
"committer_date": "2013-08-17T13:59:22",
"content_id": "2a1c7beb0b15f803bb04fb28d732ab8efe4b2a1c",
"detected_licenses": [
"MIT"
],
"directory_id": "e896fff489e393865421db3ad9760233805c9385",
"extension": "h"... | stackv2 | /*
* itrace
*
* Trace specific routines header
*
*/
#ifndef ITRACE_TRACE_H
#define ITRACE_TRACE_H
#include <sys/types.h>
#include <sys/user.h>
#include <stdint.h>
#define iprintf(fmt, ...) do { if (tracee.flags & QUIET_MODE) break; printf(fmt, ##__VA_ARGS__); } while(0)
/*
* Possible flags passed to itrace
*... | 2.125 | 2 |
2024-11-18T22:25:18.163439+00:00 | 2021-09-25T20:29:37 | e822289ff77f00dbdbf06e23189fd8d3eb0f6394 | {
"blob_id": "e822289ff77f00dbdbf06e23189fd8d3eb0f6394",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-25T20:29:37",
"content_id": "19882a90db10edbe194fd759dbbcb9e6aa2c253c",
"detected_licenses": [
"MIT"
],
"directory_id": "9548348a33c31b475cf5d6c2b3020e6a7e14de0c",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <string.h>
/*
Faça um programa em C que leia uma string e depois leia um valor inteiro
entre 1 e 50 (faça um laço de repetição que garante esse valor). O valor
inteiro será utilizado como "senha" para "codificar" a string inserida, em uma
implementação rudimentar da chamada "shift cypher" ... | 3.484375 | 3 |
2024-11-18T22:25:18.322454+00:00 | 2015-07-28T10:00:17 | 80687d12b52e9a8d820c01f8c70f43c9ef731508 | {
"blob_id": "80687d12b52e9a8d820c01f8c70f43c9ef731508",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-28T10:00:17",
"content_id": "c37c3f4c4f7df14e5d9db18386ac2530b98a39ac",
"detected_licenses": [
"MIT"
],
"directory_id": "13eebb17e400baec5696aba530d6f251cb69978c",
"extension": "c"... | stackv2 | #include "im-inl.h"
static void _xmpp_conn_handler(xmpp_conn_t *conn, xmpp_conn_event_t status,
const int error, xmpp_stream_error_t *stream_error,
void *userdata);
static void _im_conn_pre_free(im_conn_t *conn);
im_conn_t *im_conn_new(const char *host,... | 2.359375 | 2 |
2024-11-18T22:25:18.380624+00:00 | 2020-06-11T02:40:12 | 0df9b8d2cfb38a2bee4452f4014bac51a94751f0 | {
"blob_id": "0df9b8d2cfb38a2bee4452f4014bac51a94751f0",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-11T02:40:12",
"content_id": "a4d8abf09aa30fe449e04b78aa3719e247818c18",
"detected_licenses": [
"MIT"
],
"directory_id": "4fcd9ea0f6862ef2fe0d2aaf1d812b9d20c1ddcd",
"extension": "c"... | stackv2 | #include <math.h>
#include "algo/array.h"
#include "config.h"
#include "network.h"
#include "util/log.h"
#include "exec.h"
#include "exec/ltg.h"
#define TO_LTG(e) struct exec_ltg_t *ltg = (struct exec_ltg_t *)(e);
/* Comparison function for sorting critical paths from longest to shortest */
static int _cp_cmp(void ... | 2.125 | 2 |
2024-11-18T22:25:18.440511+00:00 | 2015-06-25T09:14:18 | f6be9da9469702f43adc2dbd0370218427838f4f | {
"blob_id": "f6be9da9469702f43adc2dbd0370218427838f4f",
"branch_name": "refs/heads/master",
"committer_date": "2015-06-25T09:14:18",
"content_id": "1b7d4ae29264d278090df8b4d3df3f8fa04ac552",
"detected_licenses": [
"MIT"
],
"directory_id": "8f276f1359b7a82f5f93041178683465451849c8",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "vector.h"
#define max(a,b) (a) > (b) ? (a) : (b)
Vector *
vec_create(int l)
{
Vector *v = malloc(sizeof(Vector));
if (l != 0)
v->body = malloc(sizeof(void *) * l);
v->sz = 0;
v->nalloc = l;
return v;
}
void *
vec_get(Vector *v, int id... | 2.9375 | 3 |
2024-11-18T22:25:18.503870+00:00 | 2018-03-17T03:44:37 | 6859dbb32eb90d15f7c11e27833d382a3f6bfd4a | {
"blob_id": "6859dbb32eb90d15f7c11e27833d382a3f6bfd4a",
"branch_name": "refs/heads/master",
"committer_date": "2018-03-17T03:44:37",
"content_id": "77cf5247d92be2eac84fe4f86481b855cab8ea70",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "bb45db887bc596e949918e8613c62cc1f7cf9e2e",
"extens... | stackv2 | /* ircman.c by David N. Welton <davidw@efn.org> */
/* This is free software under the terms of the GNU GPL */
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
FILE *fd;
FILE *pgr;
char *pager;
int ch;
int boldflag = 0;
int revflag = 0;
int ... | 2.203125 | 2 |
2024-11-18T22:25:18.575071+00:00 | 2019-01-27T20:07:25 | 7baadeb6508646f7a962ca7e675af704ed6298f4 | {
"blob_id": "7baadeb6508646f7a962ca7e675af704ed6298f4",
"branch_name": "refs/heads/master",
"committer_date": "2019-01-27T20:46:01",
"content_id": "b01fe50b02b5d2f562841c01d9fc304863405738",
"detected_licenses": [
"MIT"
],
"directory_id": "cd6ab0f034ffbb6535963174a8601f0d792fe42f",
"extension": "c"... | stackv2 | #include "pagefault.h"
#include "com.h"
#include "ipc.h"
#include "memory-map.h"
#include "threads.h"
#include "util.h"
#include <stddef.h>
#include <stdint.h>
static int check_addr (const void *low, const void *high) {
if ((uint64_t)low > (uint64_t)high) {
return -1;
}
if ((uint64_t)high > LOC_USERZONE_TO... | 2.671875 | 3 |
2024-11-18T22:25:18.632720+00:00 | 2020-08-21T07:14:04 | 47fe4fe7d933625fd28c693b8acf642b9f91cf43 | {
"blob_id": "47fe4fe7d933625fd28c693b8acf642b9f91cf43",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-21T07:14:04",
"content_id": "e207012f18dbac5b5afb42e7f9430b7bf5e5abcd",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "336875f04df30a4c53528b825140b4fa20822d59",
"extensio... | stackv2 | /*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include "string.h"
#include "infra_state.h"
#include "infra_compat.h"
#include "infra_types.h"
#include "infra_defs.h"
#include "infra_string.h"
#include "infra_httpc.h"
#include "infra_sha256.h"
#include "dynreg_internal.h"
#include "d... | 2.15625 | 2 |
2024-11-18T22:25:19.212819+00:00 | 2020-09-27T11:24:36 | 354182753d8089241678b011b79d411153d6b1dc | {
"blob_id": "354182753d8089241678b011b79d411153d6b1dc",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-27T11:24:36",
"content_id": "c2fb1c2e6496dd5b2522804c0438ab32d5621023",
"detected_licenses": [
"MIT"
],
"directory_id": "ed2e817c2ba018b6b281460c5c6aaf8ad7e57088",
"extension": "c"... | stackv2 | // Reading from a file
#include<stdio.h>
int main()
{
FILE *fptr;
int c, stock;
char buffer[200],item[10];
float price;
/* myfile.txt : Inventory \n 100
Widget 0.29 \n End of List */
fptr = fopen("myfile.txt","r");
fgets(buffer,20,fptr); /* read a line */
printf("%s\n",buffer);
fscanf(fptr,"%d %s %f",&stock,i... | 3.359375 | 3 |
2024-11-18T22:25:19.725458+00:00 | 2023-08-25T19:44:29 | 417d9112619adcc294b43b52154362f0cbfea298 | {
"blob_id": "417d9112619adcc294b43b52154362f0cbfea298",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-25T19:44:29",
"content_id": "bd179a38b421aa83d081e350e026feb4fda262b6",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "a4b5d07647547513fbe47f4fd0f8badf08311d72",
"extensio... | stackv2 | /*****************************************************************************
* Name: getline.c
*
* Summary: Demo of getting lines of stdin. See fgline.c for getting lines
* from a file.
*
* Adapted: Thu, 11 Jan 2001 15:28:17 (Bob Heckel -- Steve Summit)
* Modified: Sun 04 Aug 2002 10:46:58 (Bo... | 3.21875 | 3 |
2024-11-18T22:25:20.047410+00:00 | 2017-12-05T21:55:58 | c7cda907e5b4ce3c059882589bfe406991531eb3 | {
"blob_id": "c7cda907e5b4ce3c059882589bfe406991531eb3",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-05T21:55:58",
"content_id": "5c3cbb80884a016db026eb4c621126b355edeefe",
"detected_licenses": [
"MIT"
],
"directory_id": "769f8dc0d8e4703a3beb1b95c4fe441eaa12d9cf",
"extension": "c"... | stackv2 | #include "../include/filtragem.h"
FILE* abrindo_arquivo(char* nome_arquivo){
FILE *fp;
fp = fopen(nome_arquivo, "r");
if(fp == NULL){
printf("Erro ao abrir o arquivo \n\n\n");
exit(0);
}
return fp;
}
int checkLists(char* nome_arquivo,char * mensagem){
char lista[SIZE_LISTA][MAX_STR];
int i=0, saida = 0... | 2.625 | 3 |
2024-11-18T22:25:20.127772+00:00 | 2021-05-24T17:03:31 | 44f0768406f9589225107a8cd4542b38335fbc09 | {
"blob_id": "44f0768406f9589225107a8cd4542b38335fbc09",
"branch_name": "refs/heads/main",
"committer_date": "2021-05-24T17:03:31",
"content_id": "bc201bec67e1141febd73e2ffba80422b476722d",
"detected_licenses": [
"MIT"
],
"directory_id": "66675b849b26e5e9cc5e34a6ce6ffd2b6708a11a",
"extension": "c",
... | stackv2 | #include <math.h>
#include <stdio.h>
int main(){
int n, i;
double sum = 0;
printf("Enter a num: ");
scanf("%d",&n);
// printf("%d",n);
for(i=1; i <= n; ++i){
sum += (double)sqrt(i);
}
printf("O total da soma de todas as raizes ate %d é: %lf", n, sum);
return 0;
} | 3.171875 | 3 |
2024-11-18T22:25:20.262551+00:00 | 2021-10-09T08:45:42 | ee71bdb50a4840e3340fc38e69a2ffa58df9702d | {
"blob_id": "ee71bdb50a4840e3340fc38e69a2ffa58df9702d",
"branch_name": "refs/heads/main",
"committer_date": "2021-10-09T08:45:42",
"content_id": "ecfc6e7f07701e79b9c902dc99eca2b8cff5074e",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "0d51e5c4518dea4de078fde6be7050c31c307582",
"extension"... | stackv2 | /*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-10-08 zhangsz the first version
*/
#include <lpms.h>
/* tickless threshold time */
#ifndef LPMS_TICKLESS_THRESHOLD_TIME
#define LPMS_TICKLESS_THR... | 2.15625 | 2 |
2024-11-18T22:25:20.932380+00:00 | 2019-10-16T09:34:49 | 9f4adc73101bf5f762062ac34e4ccf427ac11e99 | {
"blob_id": "9f4adc73101bf5f762062ac34e4ccf427ac11e99",
"branch_name": "refs/heads/master",
"committer_date": "2019-10-16T09:34:49",
"content_id": "9b819756ab216c04e875a9aef823ad87eb611d84",
"detected_licenses": [
"MIT-Modern-Variant",
"ISC"
],
"directory_id": "8eeb4dc93d55619b20eba6b4fede0729424... | stackv2 | /**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 Thomas L. Quarles
**********/
#include "spice.h"
#include <stdio.h>
#include "util.h"
#include "resdefs.h"
void
RESdestroy(inModel)
GENmodel **inModel;
{
RESmodel **model = (RESmodel **)inModel;
RESinsta... | 2.03125 | 2 |
2024-11-18T22:25:21.102779+00:00 | 2015-10-06T18:56:54 | c0b1222f21c39280f50864f292f6331e9d89c95a | {
"blob_id": "c0b1222f21c39280f50864f292f6331e9d89c95a",
"branch_name": "refs/heads/master",
"committer_date": "2015-10-06T18:56:54",
"content_id": "12a9ea7a6ee0ece99375d87c7fa0fa01ebb7eb7b",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "5b3da96163680f93c84b13087421fa4288a52694",
"extensio... | stackv2 | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: clib/stack.h $ */
/* ... | 2.25 | 2 |
2024-11-18T22:25:21.173710+00:00 | 2020-05-16T12:45:07 | 3c832cae7bf807b80ab7373a73e0af3af06b560a | {
"blob_id": "3c832cae7bf807b80ab7373a73e0af3af06b560a",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-16T12:45:07",
"content_id": "459d9e0c20255ec2f8f4a0757d852e65a0d5c10e",
"detected_licenses": [
"MIT"
],
"directory_id": "256635720b151219c83089c1a9dae925bb2a6339",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include "server.h"
#include "io.h"
#include "cherokee.h"
#include "my_integer.h"
#include "http.h"
#include "response.h"
#include "syntax.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
int create_server_socket(int port)
{
struct ... | 2.28125 | 2 |
2024-11-18T22:25:21.585037+00:00 | 2018-04-28T14:50:19 | 565d5264da209df0e84e564df4de164721b05a74 | {
"blob_id": "565d5264da209df0e84e564df4de164721b05a74",
"branch_name": "refs/heads/master",
"committer_date": "2018-04-28T14:50:19",
"content_id": "85dcde098e241cd149345926020d1a7ddb575967",
"detected_licenses": [
"MIT"
],
"directory_id": "695055eb5962f4051c537044701622346332ac13",
"extension": "c"... | stackv2 | /*
* Copyright (c) 2017 Nicholas Corgan (n.corgan@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include "c_test_common.h"
#include "test-utils.h"
#include <pksav/config.h>
#include <pksav/gen2/save.h>
#include <stdi... | 2.21875 | 2 |
2024-11-18T22:25:21.653606+00:00 | 2017-06-19T10:51:21 | d356bef72da8551fb1ce1f12f7321cd6b6261eb1 | {
"blob_id": "d356bef72da8551fb1ce1f12f7321cd6b6261eb1",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-19T10:57:23",
"content_id": "0eec89f9839d31b6246383784e91f834de2904d3",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "4dd3497a17ce271afc7ba0ac078f1d818012179d",
"extens... | stackv2 | #include "bench_util.h"
#include <stdlib.h>
#include <mqlog.h>
#include <util.h>
int producer_bench(size_t segment_size, size_t num, size_t size) {
unsigned char* block = random_block(size);
if (!block) {
return -1;
}
const char* dir = "/tmp/producer_bench";
delete_directory(dir);
mq... | 2.5 | 2 |
2024-11-18T22:25:21.865455+00:00 | 2014-10-30T18:32:35 | e02b9ea4bb49d73bed5b1fdc659e32bb3566e881 | {
"blob_id": "e02b9ea4bb49d73bed5b1fdc659e32bb3566e881",
"branch_name": "refs/heads/develop",
"committer_date": "2014-10-30T18:32:35",
"content_id": "b2cca9a06d5d4074748a6d64deeedcd1af1e7dc9",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "aeef4d7bab4ca441fbecc2823815e9f94cb4563b",
"exten... | stackv2 | /* ----------------------------------------------------
LISTS.H
----------------------------------------------------
Written by Kevin Ray (c) 1994 Spectrum Holobyte.
---------------------------------------------------- */
#if not defined(__LISTS_H_INCLUDED)
# define __LISTS_H_INCLUDED 1
#include "omni.h... | 2.234375 | 2 |
2024-11-18T22:25:22.016139+00:00 | 2021-03-23T05:51:31 | e0d36e71f696c171743a260ca33cd66784adc7ce | {
"blob_id": "e0d36e71f696c171743a260ca33cd66784adc7ce",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-23T05:51:31",
"content_id": "0df29674a84dff558cff2caee61bfd9d44e5c1f9",
"detected_licenses": [
"MIT"
],
"directory_id": "53fa5359864d818647fad14d4be8c65e44a611b6",
"extension": "h"... | stackv2 | u64
Win32GetPerformanceFrequency()
{
LARGE_INTEGER Result = {};
QueryPerformanceFrequency(&Result);
return Result.QuadPart;
}
u64
Win32GetPerformanceCounter()
{
LARGE_INTEGER Result = {};
QueryPerformanceCounter(&Result);
return Result.QuadPart;
}
inline f32
Win32GetTimeElapsedInMS(u64 BeginCo... | 2.0625 | 2 |
2024-11-18T22:25:23.339785+00:00 | 2019-11-08T21:32:40 | 508db148ee741c8662feb7a2ed115a25a9300849 | {
"blob_id": "508db148ee741c8662feb7a2ed115a25a9300849",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-08T21:32:40",
"content_id": "0e65f82ab618d1eca4ee3a7b4f26262478076fbc",
"detected_licenses": [
"MIT"
],
"directory_id": "e00b0a31da188a2902966a3ac896483f60e4cb9d",
"extension": "c"... | stackv2 | /*
* sQueue.c
*
* Created on: Feb 22, 2018
* Author: hsahu
*/
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <errno.h>
#include "sQueue.h"
struct sQueue* createSQ() {
struct sQueue *sq = (struct sQueue *)malloc(sizeof(struct sQueue));
sq->stack1 = NULL;
sq->stack2 = NULL;
return... | 4.03125 | 4 |
2024-11-18T22:25:23.556578+00:00 | 2018-11-25T18:23:26 | b3616ecda284773b9208de9d805893e111381d50 | {
"blob_id": "b3616ecda284773b9208de9d805893e111381d50",
"branch_name": "refs/heads/master",
"committer_date": "2018-11-25T18:23:26",
"content_id": "65304cd4f5b8319f85c8dbcb50a97b6ca5abac88",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "0d5a82724cf2aed3a33c2732fcbcb14630950651",
"extens... | stackv2 | #include "rl_common.h"
#include "debugnet.h"
#include <stdarg.h>
void debugNetPrintf_(const char* fmt, ...)
{
char buffer[0x800];
va_list arg;
va_start(arg, fmt);
vsnprintf(buffer, sizeof(buffer), fmt, arg);
va_end(arg);
write_log_line(buffer);
fflush(stdout);
}
/**
* Log Level printf for debugnet library
*... | 2.5625 | 3 |
2024-11-18T22:25:23.647097+00:00 | 2021-11-23T06:38:56 | d200f2910a65918f06eeeef7512cd01291476554 | {
"blob_id": "d200f2910a65918f06eeeef7512cd01291476554",
"branch_name": "refs/heads/master",
"committer_date": "2021-11-23T06:38:56",
"content_id": "7be4ef6d27c88b778c161e3a0ede1556c033fdef",
"detected_licenses": [
"MIT"
],
"directory_id": "9f43eca612dd000200ae6a0669709d769c209042",
"extension": "h"... | stackv2 | //
// iOS 跳转网页的四种方法.h
// LSProjectTool
//
// Created by 刘晓龙 on 2021/6/24.
// Copyright © 2021 Link-Start. All rights reserved.
//
#ifndef iOS___________h
#define iOS___________h
iOS 跳转网页的四种方法
跳转界面 push 展示网页
1.Safari :
openURL:自带很多功能 (进度条,刷新,前进,倒退..)就是打开了一个浏览器,跳出自己的应用
2.UIWebView:
没有功能,在当前应用中打开网页,自己去实现某些功能,但不能... | 2.03125 | 2 |
2024-11-18T22:25:23.712583+00:00 | 2015-07-04T07:40:16 | a619f14d3c8c48cb2a0fb0e033545621fe9b7905 | {
"blob_id": "a619f14d3c8c48cb2a0fb0e033545621fe9b7905",
"branch_name": "refs/heads/master",
"committer_date": "2015-07-04T07:40:16",
"content_id": "885bf7a30ebc8fa48eb60071c21a0c7337b0b416",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "11cbf2c204255f982315600f7a03cf3fc285b62c",
"extens... | stackv2 | #include "UnitTestMessages_copied.h"
#include <stdio.h>
/*
* Message Reporting Function
*/
void UnitTestMessages_copied____testing_FAILED(int8_t testID, char *loc)
{
printf("$$FAILED: [1;31m***FAILED***[0m (");
printf("testID=%i",(((int8_t)(testID))));
printf(" @loc %s \n",loc);;
}
/*
* Message Repor... | 2.109375 | 2 |
2024-11-18T22:25:24.213373+00:00 | 2014-11-04T23:15:22 | c9ea0b9cc7f3dbab4d3dfa58e4390f1b5fcd463c | {
"blob_id": "c9ea0b9cc7f3dbab4d3dfa58e4390f1b5fcd463c",
"branch_name": "refs/heads/master",
"committer_date": "2014-11-04T23:15:22",
"content_id": "0d6ed261432da03b3fca05f2d05cd717ae04cebc",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "70214efa2467f6c567b805dc923c0d288bf92733",
"extens... | stackv2 | #include <petsc-private/taoimpl.h> /*I "petsctao.h" I*/
typedef struct {
PetscBool check_gradient;
PetscBool check_hessian;
PetscBool complete_print;
} Tao_Test;
/*
TaoSolve_Test - Tests whether a hand computed Hessian
matches one compute via finite differences.
*/
#undef __FUNCT__
#define __FUNCT_... | 2.1875 | 2 |
2024-11-18T22:25:24.291328+00:00 | 2020-02-10T21:47:42 | aa9a4af6725acf368f13c48e8f1dcf810d9ee799 | {
"blob_id": "aa9a4af6725acf368f13c48e8f1dcf810d9ee799",
"branch_name": "refs/heads/master",
"committer_date": "2020-02-10T21:47:42",
"content_id": "37ce48126c7cd31b24b5aeafd6d421fbd68787cc",
"detected_licenses": [
"MIT"
],
"directory_id": "e69dae40c6396c904026a9dcbf441e9f5941597e",
"extension": "c"... | stackv2 | #include "header.h"
/*Closes App*/
void close_app(UNUSED, AppWidgets *app){
g_free(app);
//Code Before closing comes here... (cleanup)
gtk_main_quit();
}
/*Show FolderPicker Window + close Start Window*/
void gtk_widget_showPicker(UNUSED, AppWidgets *app){
gtk_widget_destroy(app->Start);
gtk_widget_show(app... | 2.046875 | 2 |
2024-11-18T22:25:24.533450+00:00 | 2020-08-27T23:19:18 | 7fe4a53f2c418e4696752a8b9a02673b7ce233de | {
"blob_id": "7fe4a53f2c418e4696752a8b9a02673b7ce233de",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-27T23:19:18",
"content_id": "579eb8d18aeddb5e5f6b0363a33f439d00d51474",
"detected_licenses": [
"MIT"
],
"directory_id": "f8d14654c35bd4a33ea4ce7dfa5d1937e4f6f284",
"extension": "c"... | stackv2 | #include <stdio.h>
/**
* main - runs the all the code
*
* Description: Run puts and print statement
* Return: Return 0 to exit function
*/
int main(void)
{
puts("\"Programming is like building a multilingual puzzle");
return (0);
}
| 2.578125 | 3 |
2024-11-18T22:25:24.873033+00:00 | 2021-06-09T15:19:32 | fa836f85cac0581f84af02e44bc7469699b3975f | {
"blob_id": "fa836f85cac0581f84af02e44bc7469699b3975f",
"branch_name": "refs/heads/main",
"committer_date": "2021-06-09T15:19:32",
"content_id": "9968ba6611e30652f1f0c4b2465c671b46a755de",
"detected_licenses": [
"MIT"
],
"directory_id": "4f517624577db8776979d5bb1816add7bea41190",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "ran_uniform.h"
#define CycleMultiplication 1000
int main(void)
{
int NumberOfCycles,NumberOfInitializationSteps,New,Old,i,j;
double Beta,Sum,Count;
// initialize the random number generator with the system time
Initia... | 3 | 3 |
2024-11-18T22:25:24.943043+00:00 | 2020-09-14T12:38:01 | eed48fd03199efcc467f5bc944e12a72dd806f4f | {
"blob_id": "eed48fd03199efcc467f5bc944e12a72dd806f4f",
"branch_name": "refs/heads/master",
"committer_date": "2020-09-14T12:38:01",
"content_id": "2b442c8a0fbf0d3d48aca8330dc87ed088def68b",
"detected_licenses": [
"MIT"
],
"directory_id": "21da312b3484ffa2890b3318c35a64251aa303e9",
"extension": "c"... | stackv2 | #include "helpers.h"
Images* trainSetReader() {
printf("Loading training set...\n");
char buffer[150];
char *record,*line;
Images* Img = (Images*) malloc(sizeof(Images));
Img->mat = (double*) malloc(IMGS_NUM * IMG_SIZE * sizeof(double));
Img->res = (int*) malloc(IMGS_NUM * sizeof(double));
Img->size = I... | 2.578125 | 3 |
2024-11-18T22:25:25.678406+00:00 | 2016-04-18T01:10:56 | bbf8aed0ee1168ade109c3c5049fec0fe9aee20d | {
"blob_id": "bbf8aed0ee1168ade109c3c5049fec0fe9aee20d",
"branch_name": "refs/heads/master",
"committer_date": "2016-04-18T01:10:56",
"content_id": "9275f4c7b49c5a106e1dd6dca4b9bad98e9a6bca",
"detected_licenses": [
"MIT"
],
"directory_id": "0d4334535ee13461160fa94ec16fab2e73e36eef",
"extension": "c"... | stackv2 | /*
* map.c
*
* Created on: Apr 6, 2016
* Author: astery
*/
#include "map.h"
#include <stdlib.h>
#include "colors.h"
#include "position.h"
void Map_Init(Map *map) {
int i, j;
Tile *tile;
for (i=0; i < MAP_SIZE; i++) {
for (j=0; j < MAP_SIZE; j++) {
tile = &map->tiles[i][j];
// TODO: Tile_Init
... | 2.984375 | 3 |
2024-11-18T22:25:25.846342+00:00 | 2017-12-14T03:13:06 | 3d4f5c253a0e448cbcf5443ac57f1a941133c573 | {
"blob_id": "3d4f5c253a0e448cbcf5443ac57f1a941133c573",
"branch_name": "refs/heads/master",
"committer_date": "2017-12-14T03:13:06",
"content_id": "9c2a1cd07da6bdf943ea1d8f79da92bb484a7679",
"detected_licenses": [
"MIT"
],
"directory_id": "1924644bc1c87e947544b6a930b15d1ddc00be57",
"extension": "c"... | stackv2 | // a program on both local and global variable has same names
#include <stdio.h>
int g = 20;
int main ()
{
int g = 10;
printf ("value of g = %d\n", g);
return 0;
}
| 2.765625 | 3 |
2024-11-18T22:25:26.219015+00:00 | 2016-09-25T16:01:02 | b93efef10b91b589eb55e850bfddb2b12ec7ded2 | {
"blob_id": "b93efef10b91b589eb55e850bfddb2b12ec7ded2",
"branch_name": "refs/heads/master",
"committer_date": "2016-09-25T16:01:02",
"content_id": "20e5a8d6274a66cd51d80f30fe1bf4d7fc2fb9d8",
"detected_licenses": [
"MIT"
],
"directory_id": "cf13a282ff6ae8949f71b21fff50a6d0768da59c",
"extension": "c"... | stackv2 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "plsa.h"
#include "args.h"
#include "docinfo.h"
#include "utils.h"
#include "random.h"
void plsa_reset(plsa *pl)
{
pl->dt = NULL;
pl->dt2 = NULL;
pl->tw = NULL;
pl->tw2 = NULL;
pl->top = NULL;
}
int plsa_initialize(plsa *pl)
... | 2.1875 | 2 |
2024-11-18T22:25:26.409577+00:00 | 2016-02-20T09:59:41 | 0c1ce7fe91d3b80c0087c60d320e3cf8a1f98d66 | {
"blob_id": "0c1ce7fe91d3b80c0087c60d320e3cf8a1f98d66",
"branch_name": "refs/heads/master",
"committer_date": "2016-02-20T09:59:41",
"content_id": "2bb7066e1be43f58db4692a42bf6729c88504ad7",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "34ace2ca7bde7ca3489c886c25a46090cdf607cd",
"extensio... | stackv2 | #include <stdlib.h>
#include "lex.h"
#include "error.h"
#include "parser.h"
#include <stdio.h>
static Expression* new_expression(void){
return (Expression *) malloc (sizeof(Expression));
}
static void free_expression(Expression *expr) {free((void*) expr);}
static int Parse_operator(Operator *oper_p);
static int Par... | 2.796875 | 3 |
2024-11-18T22:25:27.807551+00:00 | 2016-12-31T14:07:42 | 4b835be1e70faad037440dc9d9af20194e7666d3 | {
"blob_id": "4b835be1e70faad037440dc9d9af20194e7666d3",
"branch_name": "refs/heads/master",
"committer_date": "2016-12-31T14:07:42",
"content_id": "1e3a9c4ad155356b3b90ba2b89f018150f544d89",
"detected_licenses": [
"ISC"
],
"directory_id": "f7feafd121a2aa60a37d2f7cd67924f8508a3f9d",
"extension": "c"... | stackv2 | /*
* Molch, an implementation of the axolotl ratchet based on libsodium
*
* ISC License
*
* Copyright (C) 2015-2016 1984not Security GmbH
* Author: Max Bruckner (FSMaxB)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that t... | 2.40625 | 2 |
2024-11-18T22:25:27.974492+00:00 | 2022-01-09T22:46:26 | b11e7f078193c348b6db5df1221fd0dbaafdeba2 | {
"blob_id": "b11e7f078193c348b6db5df1221fd0dbaafdeba2",
"branch_name": "refs/heads/master",
"committer_date": "2022-01-09T22:46:26",
"content_id": "f3671e36f5bedf25539ab281199867efe9fc3396",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "c4492c7ceacd029604dac6f71a797ea7cb81562c",
"extens... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#define V 9
#define INT_MAX 0xffffff
void printSolution(int dist[], int n)
{
printf("Vertex Distance from Source\n");
for (int i = 0; i < V; i++)
printf("%d \t\t %d\n", i, dist[i]);
}
/*
return -1 : No more node left
MIN-HEAP : Find a vertex, which is at a minimum... | 3.359375 | 3 |
2024-11-18T22:25:28.038498+00:00 | 2020-01-17T22:27:57 | 7e9fde05650a7a157fbf61cbcb3f5602083c8fe4 | {
"blob_id": "7e9fde05650a7a157fbf61cbcb3f5602083c8fe4",
"branch_name": "refs/heads/master",
"committer_date": "2020-01-17T22:27:57",
"content_id": "e09044c35eade40ab4a1d1e3f50fc058c21efa4c",
"detected_licenses": [],
"directory_id": "102493c818b3f67bd2034d7de673653881f25280",
"extension": "c",
"filename... | stackv2 | /*
* Copyright (c) 2016-2019 Texas Instruments Incorporated - http://www.ti.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the abov... | 2.390625 | 2 |
2024-11-18T22:25:29.481863+00:00 | 2023-08-30T12:41:33 | e0e5bc0c7d24e2b9818af4b6b6b4e235501cc963 | {
"blob_id": "e0e5bc0c7d24e2b9818af4b6b6b4e235501cc963",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-30T12:41:33",
"content_id": "e606fbcebd281c5b64659d133ba56271573fc66b",
"detected_licenses": [
"MIT"
],
"directory_id": "4aa3252c05a22ac52587758f98ff7b020c54c659",
"extension": "h"... | stackv2 | /*
* Copyright (c) 1992,1993-1995 Argonaut Technologies Limited. All rights reserved.
*
* $Id: token.h 1.2 1998/09/21 14:53:14 johng Exp $
* $Locker: $
*
*/
#ifndef _TOKEN_H_
#define _TOKEN_H_
#ifndef BR_TOKEN_ENUM
#define BR_TOKEN_ENUM 1
#endif
/*
* Tokens are unique 32 bit numbers that are assoicated with a ... | 2.0625 | 2 |
2024-11-18T22:25:29.700067+00:00 | 2020-05-04T16:31:54 | f1d14e2c2d2a5ede41b6ebf9666263fe0af33226 | {
"blob_id": "f1d14e2c2d2a5ede41b6ebf9666263fe0af33226",
"branch_name": "refs/heads/master",
"committer_date": "2020-05-04T16:31:54",
"content_id": "62bfe395fa05ea2f85259a9413d5d53a82d01471",
"detected_licenses": [
"MIT"
],
"directory_id": "e388dc46e41d78403f4e7481eb3fd52f640bd20e",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <string.h>
int main()
{
int i,nbMaj,nbMin,nbBlanc,nbAutre;
i=nbMaj=nbMin=nbBlanc=nbAutre=0;
char chaine[100];
fgets(chaine,100,stdin);
while (chaine[i] != '\0') {
if (chaine[i]>='A' && chaine[i]<='Z')
nbMaj++;
else if (chaine[i]>='a' && chaine... | 3.140625 | 3 |
2024-11-18T22:25:29.903710+00:00 | 2019-09-28T16:05:36 | fa9d01c7c22b07a4140944137bbb4c6f3daaba28 | {
"blob_id": "fa9d01c7c22b07a4140944137bbb4c6f3daaba28",
"branch_name": "refs/heads/master",
"committer_date": "2019-09-28T16:05:36",
"content_id": "ec1f648ba5e203b3d9f7bab20e83d7780387c68c",
"detected_licenses": [
"MIT"
],
"directory_id": "a51a1af9a66078c0a5ce5c4077075a5979e89849",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* terminates1.c :+: :+: :+: ... | 2.203125 | 2 |
2024-11-18T22:25:30.017671+00:00 | 2019-11-13T01:49:47 | 061aa7be1973160f4ca469664876e48beed0e93e | {
"blob_id": "061aa7be1973160f4ca469664876e48beed0e93e",
"branch_name": "refs/heads/master",
"committer_date": "2019-11-13T01:49:47",
"content_id": "0f2c6259e40c3d48c14352d0203bc15ffecd9a40",
"detected_licenses": [
"MIT"
],
"directory_id": "5b2d402406d0d789b9d19ce3c7fb3c581293a5d3",
"extension": "h"... | stackv2 | #ifndef SCAPULA_OS_EXCEPTION_LEVEL_H
#define SCAPULA_OS_EXCEPTION_LEVEL_H
#include <stdint.h>
// get_current_el
//
// Get the current exception level that Scapula OS is currently exceuting at
// Software components should read the current exception level through this
// function because hardware has no way of reporti... | 2.6875 | 3 |
2024-11-18T22:25:30.562340+00:00 | 2021-06-04T17:07:57 | 480d04ac99db8894ff180ed7565b91b3ed288490 | {
"blob_id": "480d04ac99db8894ff180ed7565b91b3ed288490",
"branch_name": "refs/heads/master",
"committer_date": "2021-06-04T17:07:57",
"content_id": "84adbcf806b276d8d0dcf6bbd92fb50d55d940a0",
"detected_licenses": [
"Unlicense"
],
"directory_id": "362838cfb39d9c0240688bf613530abbc8a28947",
"extension... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rt_jtoc_utilits.c :+: :+: :+: ... | 2.265625 | 2 |
2024-11-18T22:25:31.973855+00:00 | 2017-06-16T09:11:02 | 8b8c9295d1b85d22a9d3fc0241476ab790025fd6 | {
"blob_id": "8b8c9295d1b85d22a9d3fc0241476ab790025fd6",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-16T09:11:02",
"content_id": "56d18a3ad825ca4ad8677cf218d7e40a382ecd75",
"detected_licenses": [
"ISC"
],
"directory_id": "81355ff0719b6577a32a2c7f31d8fd2bca7767cf",
"extension": "c"... | stackv2 | /* $Id$ */
/*
* Copyright (c) 2017 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDE... | 2.28125 | 2 |
2024-11-18T22:25:32.257805+00:00 | 2019-05-06T01:44:53 | a98222cddd25b8469db84d095cfce9874866b64d | {
"blob_id": "a98222cddd25b8469db84d095cfce9874866b64d",
"branch_name": "refs/heads/master",
"committer_date": "2019-05-06T01:44:53",
"content_id": "cf09a2e1e3d1d33c020c43b8885c93e8ef9f3645",
"detected_licenses": [
"MIT"
],
"directory_id": "b7e920541e6cef12da3a1f5d53acf49543e61cfb",
"extension": "c"... | stackv2 |
//Copyright (c) 2017 Pratik M Tambe <enthusiasticgeek@gmail.com>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <stdint.h>
// http://www.electroschematics.com/10053/avr-adc/
//Benn Thomsen has a good article on this. This is the basis for the following program. See below.
// Reference... | 2.765625 | 3 |
2024-11-18T22:25:32.343043+00:00 | 2021-03-12T15:06:29 | 1216c005926cc74d88d5e1a67d8605aab53cff1d | {
"blob_id": "1216c005926cc74d88d5e1a67d8605aab53cff1d",
"branch_name": "refs/heads/master",
"committer_date": "2021-03-12T15:06:29",
"content_id": "2922cc9aabf28d455d4e4c402c6f11fe13521cc4",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "00a90405e5185b898ca8cb39082906a2cee5ccc3",
"extensio... | stackv2 | /*
* Copyright (c) 2013 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed... | 2.234375 | 2 |
2024-11-18T22:25:32.420124+00:00 | 2021-04-28T18:36:30 | 8e1cfc219ebfa7976886c662b7af9cd9d14c865c | {
"blob_id": "8e1cfc219ebfa7976886c662b7af9cd9d14c865c",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-28T18:36:30",
"content_id": "44519b5ce81bd12b33bd1937575ff94f2af6b4cc",
"detected_licenses": [
"MIT"
],
"directory_id": "bfa82074cbe9d4f83356087dda364ea5cb127ee2",
"extension": "c",
... | stackv2 | #include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
// Create a union type
union integer {
char c;
short s;
int i;
long b;
};
// main function
int main(){
union integer INT;
printf("Enter a character: ");
scanf("%c", &INT.c);
printf("'%c' printed as a ch... | 3.953125 | 4 |
2024-11-18T22:25:32.582575+00:00 | 2021-04-14T01:40:00 | bc1d280853e09c9534fea3eb27c32d747d99948e | {
"blob_id": "bc1d280853e09c9534fea3eb27c32d747d99948e",
"branch_name": "refs/heads/main",
"committer_date": "2021-04-14T01:40:00",
"content_id": "553bc7cb0655797e54d4ce1b07830eb07edb5caf",
"detected_licenses": [
"MIT"
],
"directory_id": "af582fa4f2283deda4ad20fc20dd37dc54b23d96",
"extension": "c",
... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strmapi.c :+: :+: :+: ... | 2.640625 | 3 |
2024-11-18T22:25:32.898288+00:00 | 2016-10-16T21:30:20 | d99d6b028682ce33d9847de490c1cf3ea63018fd | {
"blob_id": "d99d6b028682ce33d9847de490c1cf3ea63018fd",
"branch_name": "refs/heads/master",
"committer_date": "2016-10-16T21:30:20",
"content_id": "19f060ba22dfc76ca45301ac7252f198061e036e",
"detected_licenses": [
"MIT"
],
"directory_id": "b46abaa87f21e589819d2638cccdf5173aed95c1",
"extension": "c"... | stackv2 | /*
** ar_mngt.c for in /home/soto_a/nmobjdump/src_nm
**
** Made by adam soto
** Login <soto_a@epitech.net>
**
** Started on Fri Feb 26 23:13:28 2016 adam soto
** Last update Sun Feb 28 15:27:48 2016
*/
#include "my_nm.h"
char *get_elf_name(char *name, char *s_tab_name)
{
char *get_name;
int i;
i = 0;
... | 2.40625 | 2 |
2024-11-18T22:25:33.110904+00:00 | 2018-07-03T16:12:12 | 11e16849414d48762755246d28dede369fa76657 | {
"blob_id": "11e16849414d48762755246d28dede369fa76657",
"branch_name": "refs/heads/master",
"committer_date": "2018-07-03T16:12:12",
"content_id": "73cdaa734d9dd1e20540e408a93a6b3e465fdc3f",
"detected_licenses": [
"BSD-3-Clause",
"NCSA",
"MIT"
],
"directory_id": "144fdeec6dec6ed22e702f8902f94... | stackv2 | #include <stdio.h>
#include <math.h>
typedef double (*test_type)(double);
#define SIZE 4
test_type getFunction(int i) {
int val = i % SIZE;
switch (val) {
case 0:
return &log2;
case 1:
return &floor;
case 2:
return &fabs;
case 3:
return &ceil;
}
return 0;
}
int callFunction() {
dou... | 2.953125 | 3 |
2024-11-18T22:25:33.531945+00:00 | 2018-04-23T21:23:41 | 081b43b6f6ab912a26d853a8cd8bd27e6547193a | {
"blob_id": "081b43b6f6ab912a26d853a8cd8bd27e6547193a",
"branch_name": "refs/heads/develop",
"committer_date": "2018-04-23T21:23:41",
"content_id": "70b0b542548226c75afe681ae8e8e34b4027cf34",
"detected_licenses": [
"BSL-1.0"
],
"directory_id": "d8860eb725a51fd0ef814bebfb8abaa8a807996d",
"extension"... | stackv2 | /* *********************************************************************** */
/* *********************************************************************** */
/* Keyword Matching Logic (KMLFUNCS) Program Module */
/* *********************************************************************** */
/*
File Name : %M%
... | 2.296875 | 2 |
2024-11-18T22:25:34.015078+00:00 | 2017-01-09T10:21:29 | ff0fcdcdbce49a1c5d969898ce2fd9334044056a | {
"blob_id": "ff0fcdcdbce49a1c5d969898ce2fd9334044056a",
"branch_name": "refs/heads/master",
"committer_date": "2017-01-09T10:21:29",
"content_id": "5fb80acdd8443e2184203195cbb9fffc1d3f32a9",
"detected_licenses": [
"MIT"
],
"directory_id": "56240fc4712d9d2b3147d9281c0f4cb5ccae216c",
"extension": "c"... | stackv2 | #include <stdlib.h>
#include <stdio.h>
int main(void) {
unsigned int x = 10;
unsigned int y = 1;
unsigned int result;
result = x & y;
printf("x & y = %d\n", result );
result = x | y;
printf("x | y = %d\n", result );
result = x ^ y;
printf("x ^ y = %d\n", result );
//right shift 1 is equivalent... | 3.234375 | 3 |
2024-11-18T22:25:34.096853+00:00 | 2015-03-17T12:40:55 | 08bfc18afdaf0690136c3295b699974fbdf7be56 | {
"blob_id": "08bfc18afdaf0690136c3295b699974fbdf7be56",
"branch_name": "refs/heads/master",
"committer_date": "2015-03-17T12:40:55",
"content_id": "43e2a190daf36e9b2c912f675d1d31e0f689f058",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "06782f75f5157d1e5359c77e1424f4be0941a0ba",
"extens... | stackv2 | #include <stdlib.h>
#include <string.h>
#include "sortedVector.h"
void sortedVectorCreate(sortedVector *vector)
{
vector->size = 0;
vector->capacity = SORTED_VECTOR_INITIAL_CAPACITY;
vector->elements = malloc(sizeof(sortedVectorType)*vector->capacity);
}
void sortedVectorFree(sortedVector *vector)
{
free(vector-... | 3.125 | 3 |
2024-11-18T22:25:34.136189+00:00 | 2016-08-29T08:50:50 | 482a134c96ab7a70d9f8d3faf870a2733bdba005 | {
"blob_id": "482a134c96ab7a70d9f8d3faf870a2733bdba005",
"branch_name": "refs/heads/master",
"committer_date": "2016-08-29T08:50:50",
"content_id": "d83c63a134ac57e9dede0203000274c71833b6e0",
"detected_licenses": [
"BSD-3-Clause"
],
"directory_id": "6f8403b5398b55b34f3be5cbdde3446a179c9c1d",
"extens... | stackv2 | //
// usbmuxd.c
// usbmuxd
//
// Created by Samantha Marshall on 1/25/14.
// Copyright (c) 2014 Samantha Marshall. All rights reserved.
//
#ifndef usbmuxd_usbmuxd_c
#define usbmuxd_usbmuxd_c
#include "usbmuxd.h"
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un... | 2.140625 | 2 |
2024-11-18T22:25:34.204939+00:00 | 2023-08-13T13:58:07 | 7dce91b50a5fe0f92a1e2f176d1e5185160abb1d | {
"blob_id": "7dce91b50a5fe0f92a1e2f176d1e5185160abb1d",
"branch_name": "refs/heads/master",
"committer_date": "2023-08-13T13:58:07",
"content_id": "e7a9109731d178b0c1f97cf09e39c97e62c48b78",
"detected_licenses": [
"CC0-1.0"
],
"directory_id": "7e4eccee4ba976b6694cd944fea75e7835cd1a4b",
"extension":... | stackv2 | /* Test the interaction of sm.h based state machines and the csp
scheduler. This is done using two tasks:
a counter, implemented as a single loop
a processor, implemented as a loop making two calls to a
submachine, with the submachine performing the csp blocking read.
A change was made to separate th... | 3.09375 | 3 |
2024-11-18T22:25:34.699328+00:00 | 2022-04-06T18:13:11 | 116a171ef6fc1cf9ca2d89aecce74b7c2c5d888b | {
"blob_id": "116a171ef6fc1cf9ca2d89aecce74b7c2c5d888b",
"branch_name": "refs/heads/master",
"committer_date": "2022-04-06T18:13:11",
"content_id": "4be5d886315c43009574063a130e3f8f8a7dcfb1",
"detected_licenses": [
"Apache-2.0"
],
"directory_id": "aaee792bb1bab2839b39cb89d30799578e56d36e",
"extensio... | stackv2 | #include "private.h"
#include <wdns.h>
extern bool loadfunc(uint8_t *data, size_t len);
extern bool testfunc(void);
extern void freefunc(void);
static bool
hex_to_int(char hex, uint8_t *val)
{
if (islower((unsigned char) hex))
hex = toupper((unsigned char) hex);
switch (hex) {
case '0':
case '1':
case '2':
... | 2.84375 | 3 |
2024-11-18T22:25:34.817126+00:00 | 2019-06-03T03:13:43 | 10fcca5992158dd9c49e290f22a3fc1ac9df226d | {
"blob_id": "10fcca5992158dd9c49e290f22a3fc1ac9df226d",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-03T03:13:43",
"content_id": "1dcb9f5aa3c45da7a26cf8d92aa3952d8af5ef08",
"detected_licenses": [
"MIT"
],
"directory_id": "4306b991ff12fc02b93ee759b75a1ef0913d3288",
"extension": "c"... | stackv2 | //load the genome file to memery and get the index of PreKey!
#include "head.h"
//#define INFINITY 0x7fffffff
char *file_name=NULL, *gen_buf=NULL;
int **Indexarray=NULL, *IndexarrayNum=NULL, *InitarraySize=NULL; //store the IndexPosition
int isfasta(char * p)
{
int len, i;
len=strlen(p);
for(i=len-1; *(p+i)... | 2.484375 | 2 |
2024-11-18T22:25:34.919502+00:00 | 2019-07-09T15:46:04 | b0bce9bf65f534544057f39042e5f153268056d5 | {
"blob_id": "b0bce9bf65f534544057f39042e5f153268056d5",
"branch_name": "refs/heads/master",
"committer_date": "2019-07-09T15:46:04",
"content_id": "a7dc19b38e8cf0771ebf3bdc66a62a8b9aa0c41b",
"detected_licenses": [
"MIT"
],
"directory_id": "f2916122ee02817233b22ca6205081bc56d3a46a",
"extension": "h"... | stackv2 | #pragma once
#include <inttypes.h>
void *malloc(size_t size);
void *zalloc(size_t size);
void *calloc(size_t nmemb, size_t size);
void *amalloc(size_t len, size_t align);
void *realloc(void *p, size_t size);
void free(void *p);
| 2.078125 | 2 |
2024-11-18T22:25:38.297070+00:00 | 2019-03-28T19:14:22 | e074237321a0a2739660071659c52798345494c8 | {
"blob_id": "e074237321a0a2739660071659c52798345494c8",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-28T19:14:22",
"content_id": "9daee47ff4d2041bc455a37cfbd47dfa36810326",
"detected_licenses": [
"MIT"
],
"directory_id": "325749aab317529bf8ee3b1926f07e056eed5a44",
"extension": "c"... | stackv2 | //
// csmsavetxt.c
// rGWB
//
// Created by Manuel Fernández on 1/11/18.
// Copyright © 2018 Manuel Fernández. All rights reserved.
//
#include "csmsavetxt.h"
#include "csmsave.h"
#include "csmstring.inl"
#ifdef RGWB_STANDALONE_DISTRIBUTABLE
#include "csmassert.inl"
#include "csmmem.inl"
#else
#include "cyass... | 2.484375 | 2 |
2024-11-18T22:25:38.422367+00:00 | 2021-02-14T20:58:56 | fcd58d2cfbb9c09297205a43a18686a618bf8310 | {
"blob_id": "fcd58d2cfbb9c09297205a43a18686a618bf8310",
"branch_name": "refs/heads/master",
"committer_date": "2021-02-14T20:58:56",
"content_id": "7a00856570495048d35a741cb1de0ffdc95fbebf",
"detected_licenses": [
"MIT"
],
"directory_id": "a69d1330f160a42a89ea78ce4b1a494a68ffeeaa",
"extension": "c"... | stackv2 | #include "OneWire.h"
#include "DallasTemperature.h"
#define ONE_WIRE_BUS 5
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
float Celcius=0;
float Fahrenheit=0;
void setup(void)
{
Serial.begin(9600);
sensors.begin();
}
void loop(void)
{
sensors.requestTemperatures();
Celcius=senso... | 2.375 | 2 |
2024-11-18T22:25:38.653157+00:00 | 2017-06-16T16:35:56 | 1f9455062275da5d277c0c3a4d245fe053b28a5d | {
"blob_id": "1f9455062275da5d277c0c3a4d245fe053b28a5d",
"branch_name": "refs/heads/master",
"committer_date": "2017-06-16T16:35:56",
"content_id": "db7100e2d875e5c015a703ddb5d64195a1f94f8a",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "0d3e96843f84f7981dcbec2062cae002232228f9",
"extens... | stackv2 | #include <rawrtc.h>
#include "ice_parameters.h"
/*
* Destructor for an existing ICE parameters instance.
*/
static void rawrtc_ice_parameters_destroy(
void* const arg
) {
struct rawrtc_ice_parameters* const parameters = arg;
// Un-reference
mem_deref(parameters->username_fragment);
mem_deref... | 2.625 | 3 |
2024-11-18T22:25:39.220993+00:00 | 2019-04-23T06:53:09 | 3bbcee2e3e17a576f24d3665ea3cfebfb056d908 | {
"blob_id": "3bbcee2e3e17a576f24d3665ea3cfebfb056d908",
"branch_name": "refs/heads/master",
"committer_date": "2019-04-23T06:53:09",
"content_id": "21e71458a2c3cc34d816ecddba402e7ffdd90b89",
"detected_licenses": [
"MIT"
],
"directory_id": "c73420f06038e6ac9b7ca84a5d292264425a62d6",
"extension": "c"... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_term_utils.c :+: :+: :+: ... | 2.59375 | 3 |
2024-11-18T22:25:39.291317+00:00 | 2021-01-05T02:01:30 | 0a3b83246da14f5d8834a0a4b5c40c08d66b3ce3 | {
"blob_id": "0a3b83246da14f5d8834a0a4b5c40c08d66b3ce3",
"branch_name": "refs/heads/master",
"committer_date": "2021-01-05T02:01:30",
"content_id": "a4d15a912456a8745c98d4296bbbb4eb46a4945e",
"detected_licenses": [
"MIT"
],
"directory_id": "609059bfbb21ecc1f109c2480925cd8aa23d998a",
"extension": "h"... | stackv2 | #ifndef __LCD_H__
#define __LCD_H__
#include <Arduino.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(PCF8574_ADDR_A21_A11_A01, 16, 2); //lcd 객체 선언
int lcdflag = 0;
void UpdateLCDbyRegister(){
int Register = digitalRead(A0);
if(lcdflag == 0 && Register == 1)
lcd.begin();
if(Register == 0){
l... | 2.28125 | 2 |
2024-11-18T22:25:39.524033+00:00 | 2019-06-15T11:02:49 | 2d6b2825c6493585723e6ca429d55b7be1d4d754 | {
"blob_id": "2d6b2825c6493585723e6ca429d55b7be1d4d754",
"branch_name": "refs/heads/master",
"committer_date": "2019-06-15T11:36:58",
"content_id": "56100ea84be66664fe420c6fdcfbd6ee57545776",
"detected_licenses": [
"MIT"
],
"directory_id": "c8390b31f98d53e4b1b95b554d3816b3fd7cb5b6",
"extension": "c"... | stackv2 | #include "helpers.h"
void integer_to_string(s8int *buffer, u32int number) {
if (number == 0) {
buffer[1] = '0';
return;
}
u32int temp_number = number;
s8int buffer_rev[10] = " ";
u32int i = 0;
while (temp_number > 0) {
buffer_rev[i] = '0' + (temp_number % 10);
temp_number /= 10;
i++;
... | 2.765625 | 3 |
2024-11-18T22:25:39.588058+00:00 | 2021-09-06T04:35:18 | 1a2e1cc361169f3cf766a7d5b07caecab61ee1f7 | {
"blob_id": "1a2e1cc361169f3cf766a7d5b07caecab61ee1f7",
"branch_name": "refs/heads/main",
"committer_date": "2021-09-06T04:35:18",
"content_id": "7025d95e3966384032f4ad82741bea38aea385e3",
"detected_licenses": [
"MIT"
],
"directory_id": "2e5625b4c29b81b60953fe57e47c3986a7154b5a",
"extension": "c",
... | stackv2 | //
// Created by Ellen7ions on 2021/9/3.
//
#include "stdlib.h"
#include "stdio.h"
#include "sram.h"
SRAM *get_inst_sram(const char *filename) {
SRAM *inst_sram = (SRAM *) malloc(sizeof(SRAM));
init_inst_sram(inst_sram, filename);
return inst_sram;
}
SRAM *get_data_sram(const char *filename) {
SRAM ... | 2.296875 | 2 |
2024-11-18T22:25:40.045290+00:00 | 2019-03-23T01:35:07 | 7c5083bcbc507d9aa73ee9ddfb90cfcb32918b5d | {
"blob_id": "7c5083bcbc507d9aa73ee9ddfb90cfcb32918b5d",
"branch_name": "refs/heads/master",
"committer_date": "2019-03-23T01:35:07",
"content_id": "0d970ae829fb49f3279edb8e41e7a16383115b15",
"detected_licenses": [
"BSD-2-Clause"
],
"directory_id": "df33f1348277ef3bacda73a99c3fcfa8269e73e4",
"extens... | stackv2 | /**
* Copyright (C) 2017, Hao Hou
* Copyright (C) 2017, Feng Liu
**/
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <errno.h>
#include <constants.h>
#include <error.h>
#include <utils/hash/murmurhash3.h>
#include <pss.h>
#include <... | 2.546875 | 3 |
2024-11-18T22:25:40.110912+00:00 | 2021-03-23T08:58:30 | f1cbebcedba9a15337529beee8c9b636b8dbd093 | {
"blob_id": "f1cbebcedba9a15337529beee8c9b636b8dbd093",
"branch_name": "refs/heads/main",
"committer_date": "2021-03-23T08:58:30",
"content_id": "c0853a42029e8cc1c76cf95e19a5031712630bb8",
"detected_licenses": [
"MIT"
],
"directory_id": "218fbb0029c65465e96811c72fc10aa444c271ef",
"extension": "c",
... | stackv2 | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* remove_quoted_str.c :+: :+: :+: ... | 2.734375 | 3 |
2024-11-18T22:25:40.287992+00:00 | 2022-11-28T21:01:03 | c994111afdf719a296ff9d440b6edbd43b6517f8 | {
"blob_id": "c994111afdf719a296ff9d440b6edbd43b6517f8",
"branch_name": "refs/heads/master",
"committer_date": "2022-11-28T21:01:03",
"content_id": "dc64798e8903d8f4fe62a413c3892a4a38d5d419",
"detected_licenses": [
"MIT"
],
"directory_id": "82751ca8cd84cf2b2fbac850e33c162e9ec77960",
"extension": "h"... | stackv2 | #include "mbed.h"
#include "MODDMA.h"
#include "MODSERIAL.h"
DigitalOut led1(LED1);
DigitalOut led2(LED2);
DigitalOut led3(LED3);
DigitalOut led4(LED4);
MODDMA dma;
MODSERIAL pc(USBTX, USBRX);
// Function prototypes for IRQ callbacks.
// See definitions following main() below.
void dmaTCCallback(void);
void dmaERRCal... | 2.640625 | 3 |
2024-11-18T22:25:40.853600+00:00 | 2020-08-08T13:53:03 | 8f6d50ecd364f8147373303244f289925911f103 | {
"blob_id": "8f6d50ecd364f8147373303244f289925911f103",
"branch_name": "refs/heads/master",
"committer_date": "2020-08-08T13:53:03",
"content_id": "69db9815492334c34ff1dd764ae1e6f787c95cab",
"detected_licenses": [
"MIT"
],
"directory_id": "ac7cfc5e41f300f737539211e7bf579d57fee409",
"extension": "c"... | stackv2 | #include "internal.h"
#include <stdlib.h>
#include <string.h>
void* rc_alloc(void* pointer, int* offset, int size, int alignment, rc_scratch_t* scratch) {
void* ptr;
*offset = (*offset + alignment - 1) & ~(alignment - 1);
if (pointer != 0) {
ptr = (void*)((char*)pointer + *offset);
}
else if (scratch ... | 2.265625 | 2 |
2024-11-18T22:25:40.903754+00:00 | 2020-06-08T08:14:40 | 9260d25b4ce9506e80fdf670a8505615c86d68d7 | {
"blob_id": "9260d25b4ce9506e80fdf670a8505615c86d68d7",
"branch_name": "refs/heads/master",
"committer_date": "2020-06-08T08:14:40",
"content_id": "027b20eebcce3f9d58a39702d4f41a9df8be9b09",
"detected_licenses": [
"MIT"
],
"directory_id": "a5356472796a32f233ad35b85055e15213e46c64",
"extension": "c"... | stackv2 | #include "chipmunk/chipmunk.h"
#include "sokol.h"
#include "free.h"
#include "environment.h"
Environment* NewEnvironment(void)
{
return (Environment*)cpcalloc(1, sizeof(Environment));
}
void InitEnvironment(Environment* environment)
{
/* Create new space and set properties */
cpSpace* space = cpSpaceNew();
cpSpac... | 2.359375 | 2 |
2024-11-18T22:25:41.319910+00:00 | 2021-10-31T05:46:00 | 7e99e12c525fd145c6adc01381b7a56b01081c1d | {
"blob_id": "7e99e12c525fd145c6adc01381b7a56b01081c1d",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-31T05:46:00",
"content_id": "5d69ac5f81ec5de396e7662f9b6202923cd5b057",
"detected_licenses": [
"MIT"
],
"directory_id": "9eac48c3beb78b984c918d86ae72954a73253e0c",
"extension": "c"... | stackv2 | #include <stdio.h>
#include <stdlib.h>
struct queue
{
int value;
struct queue *next;
} * front, *rear, *temp, *fr;
void enqueue(int data)
{
if (rear == NULL)
{
rear = (struct queue *)malloc(sizeof(struct queue));
rear->next = NULL;
rear->value = data;
front = rear;
... | 3.9375 | 4 |
2024-11-18T22:25:41.475212+00:00 | 2020-04-12T08:27:17 | 6a374bab6472789712f31b2b0d0dc8bbc9e21b52 | {
"blob_id": "6a374bab6472789712f31b2b0d0dc8bbc9e21b52",
"branch_name": "refs/heads/master",
"committer_date": "2020-04-12T08:27:17",
"content_id": "b18e519964cbb8e91faf5d0c86337bbfd367b336",
"detected_licenses": [
"MIT"
],
"directory_id": "e9333c8d76b584e5da8fae9dbf937d851c80e887",
"extension": "h"... | stackv2 | /*
* circular_buff.h
*
* Created: 3/21/2019 5:50:45 PM
* Author: mihai
*/
#ifndef CIRCULAR_BUFF_H_
#define CIRCULAR_BUFF_H_
#include <stdint.h>
#include "config/conf_circ_buff.h"
#ifndef NULL
#define NULL ((void*)0)
#endif
struct circ_buff_t {
uint8_t data[CIRC_BUFF_CAPACITY];
uint8_t size;
uint8_t head,... | 2.15625 | 2 |
2024-11-18T22:25:41.546320+00:00 | 2021-10-25T14:55:25 | 8b9f1b76eb6374b1a1fdd89d381253e852c0b0aa | {
"blob_id": "8b9f1b76eb6374b1a1fdd89d381253e852c0b0aa",
"branch_name": "refs/heads/master",
"committer_date": "2021-10-25T14:55:25",
"content_id": "944f7e7099541303c78dbcaaa91303e0f9596110",
"detected_licenses": [
"MIT"
],
"directory_id": "6a1c028ac0ee25b982ee3aaedaeb77f4b3c427e3",
"extension": "c"... | stackv2 | #include "stats.h"
#include "math.h"
struct Stats compute_statistics(const float* numberset, int setlength) {
struct Stats s;
s.average = 0;
s.min = 0;
s.max = 0;
float sum = 0.0;
if((numberset == NULL) || (setlength == 0) || (numberset == 0))
{
s.average = NAN;
s.m... | 2.59375 | 3 |
2024-11-18T22:25:41.746226+00:00 | 2020-10-29T12:55:51 | 6feebace55cbf5170e10345d2820feee3d9c372c | {
"blob_id": "6feebace55cbf5170e10345d2820feee3d9c372c",
"branch_name": "refs/heads/master",
"committer_date": "2020-10-29T12:55:51",
"content_id": "eef37a09e62811d76d8b4363688fd20b08a83419",
"detected_licenses": [
"MIT"
],
"directory_id": "fb1be179b7dbffff127b0e0088e2c097b7af1735",
"extension": "c"... | stackv2 | // SPDX-License-Identifier: GPL-2.0
#define _GNU_SOURCE
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sched.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/bpf.h>
#include <locale.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.... | 2 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.