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:28:17.496392+00:00
2021-06-20T22:42:29
cb462a13efc36d0c6fd8910284b2587830a8676a
{ "blob_id": "cb462a13efc36d0c6fd8910284b2587830a8676a", "branch_name": "refs/heads/master", "committer_date": "2021-06-20T22:42:29", "content_id": "d35094753f7b09bb77af39a3838e4fc0822b10bf", "detected_licenses": [ "MIT" ], "directory_id": "d87f9e9d55b36ec1e97687bc0ee6999b6fe44b70", "extension": "h"...
stackv2
#ifndef TEXTO_H #define TEXTO_H /* Este módulo define um Texto, permitindo exibir textos no arquivo svg. Possui como propriedades seu identificador, coordenadas espaciais e para alterar sua visualização no arquivo svg cores de borda e preenchimento. Suas propriedades são: id: Identificador do texto. x: Coorde...
2.78125
3
2024-11-18T21:28:17.746723+00:00
2021-11-10T08:35:04
43c6c53e11aa0f3a6fc66da2e1964f71cdaec32a
{ "blob_id": "43c6c53e11aa0f3a6fc66da2e1964f71cdaec32a", "branch_name": "refs/heads/master", "committer_date": "2021-11-10T08:35:04", "content_id": "55b17ca30f204b863b77fb1ac56eac8761173244", "detected_licenses": [ "MIT" ], "directory_id": "7152b3c381bfe8ed13d0b62e6c35db36bc6291a3", "extension": "c"...
stackv2
#include "battery.h" #include "util/loop.h" #include "util/logger.h" #include "util/debug.h" static float _voltage; static float _current; static float _comsumed_current; static float _remain_time_sec; int battery_init() { LOG("Initiating Battery measurement.\n"); _voltage = 0; _current = 0; _co...
2.265625
2
2024-11-18T22:09:25.473190+00:00
2021-01-13T16:30:06
649e81f1ea84240ae8608fa2035a11269ef6659a
{ "blob_id": "649e81f1ea84240ae8608fa2035a11269ef6659a", "branch_name": "refs/heads/main", "committer_date": "2021-01-13T16:30:06", "content_id": "9888786c0e2959aeee85da1eca23768f3eeba259", "detected_licenses": [ "MIT" ], "directory_id": "78c10b52ad45b69c1d6485adb66076d0b5af053e", "extension": "h", ...
stackv2
/** * Functions for calculating intersection. * * @author Alexander Noddings <b7029792@ncl.ac.uk> */ #pragma once #include "Piece.h" #include "Circle.h" #include "Square.h" // do intersect between shapes bool do_intersect(const Circle circle, const Square square); bool do_intersect(const Square square, const Circ...
2.578125
3
2024-11-18T22:09:26.064812+00:00
2023-08-31T16:38:00
8d86925a14fe7163a468775f535c8753ee73f08e
{ "blob_id": "8d86925a14fe7163a468775f535c8753ee73f08e", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T16:38:00", "content_id": "d3e2bba4cdf816110115aee45aaa2451fad8efc5", "detected_licenses": [ "BSD-2-Clause", "BSD-2-Clause-Patent" ], "directory_id": "1efd2de8bf77ec00eb2fcaf57...
stackv2
/* SPDX-License-Identifier: BSD-3-Clause */ /* Copyright 2015-2021, Intel Corporation */ /* * heap.h -- internal definitions for heap */ #ifndef __DAOS_COMMON_HEAP_H #define __DAOS_COMMON_HEAP_H 1 #include <stddef.h> #include <stdint.h> #include "memblock.h" #include "bucket.h" #include "memops.h" #include "pallo...
2.015625
2
2024-11-18T22:09:26.397081+00:00
2017-09-26T09:48:33
ed441ee05686033b4bac1c3549d316a78fafdd5b
{ "blob_id": "ed441ee05686033b4bac1c3549d316a78fafdd5b", "branch_name": "refs/heads/master", "committer_date": "2017-09-26T09:48:33", "content_id": "fc3038ece113379bbb8647740d60298a64cde92b", "detected_licenses": [ "MIT" ], "directory_id": "f223bc46490f2d0a3cf2ffc4fe149c754833ac48", "extension": "h"...
stackv2
/* ** graph.h for in /home/puente_t/rendu/CPE/CPE_2015_Lemin ** ** Made by Timothée Puentes ** Login <puente_t@epitech.net> ** ** Started on Mon Apr 18 12:00:52 2016 Timothée Puentes ** Last update Tue Apr 19 16:26:42 2016 Vincent Florian */ #ifndef GRAPH_H_ # define GRAPH_H_ # define SUCCESS 0 # define ERR 1 # d...
2.09375
2
2024-11-18T22:09:26.482913+00:00
2021-05-25T20:02:44
1dc19676a8e5d3d48ae0019f5e95ea30e27f6e70
{ "blob_id": "1dc19676a8e5d3d48ae0019f5e95ea30e27f6e70", "branch_name": "refs/heads/main", "committer_date": "2021-05-25T20:02:44", "content_id": "1cf0d6922e1ade0783cfda28c7df14447c5092cf", "detected_licenses": [ "MIT" ], "directory_id": "c216d89c418e998513d0bccbe308f46be9222dd4", "extension": "c", ...
stackv2
#include <stdio.h> #include <math.h> int convert_binary_to_decimal(long long n); long long convert_decimal_to_binary(int n); int main(void) { long long b_num; int result = 0; int n = 0; printf("Enter a binary number: "); scanf("%d", &b_num); result = convert_binary_to_decimal(b_num); pri...
3.65625
4
2024-11-18T22:09:26.590216+00:00
2017-09-18T08:51:19
997dab05d74527d033a541390a3e82ce6cf454c7
{ "blob_id": "997dab05d74527d033a541390a3e82ce6cf454c7", "branch_name": "refs/heads/master", "committer_date": "2017-09-18T08:51:19", "content_id": "1a781c4337be435705d4667bf4c19bcc2b7e47dc", "detected_licenses": [ "MIT" ], "directory_id": "838601059adbd0976e30cf4e2f9d621799d83639", "extension": "c"...
stackv2
#include <pololu/3pi.h> #include <avr/pgmspace.h> #include "bargraph.h" #include "maze-solve.h" const char welcome_line1[] PROGMEM = " Pololu"; const char welcome_line2[] PROGMEM = "3\xf7 Robot"; const char demo_name_line1[] PROGMEM = "Maze"; const char demo_name_line2[] PROGMEM = "solver"; const char welcome[]...
2.359375
2
2024-11-18T22:09:26.816915+00:00
2018-04-10T20:18:18
b1bf27ea1c71a56d0b8e9a932d12931a304e7c3e
{ "blob_id": "b1bf27ea1c71a56d0b8e9a932d12931a304e7c3e", "branch_name": "refs/heads/master", "committer_date": "2018-04-10T20:18:18", "content_id": "4e95c4304cbf73a91c2b68368a77a8f1527ce3fa", "detected_licenses": [ "CC0-1.0" ], "directory_id": "7720da671230f902fe39e900fe78f013f6313fc1", "extension":...
stackv2
#ifndef MEMORY_H_ #define MEMORY_H_ #include "sized_types.h" #include <cstdlib> // Note from Andrew Dawson: This is all part of an interface I normally use for // memory. It's not relevant to these tests, so here they're replaced with stubs // that just use calloc and free. struct Heap { int placeholder; }; #d...
2.140625
2
2024-11-18T22:09:26.896306+00:00
2022-08-16T07:57:44
06264aab4434e5cdbee7798ec2d3931c90b2cb9a
{ "blob_id": "06264aab4434e5cdbee7798ec2d3931c90b2cb9a", "branch_name": "refs/heads/master", "committer_date": "2022-08-16T07:57:44", "content_id": "3184b66f3c998cfcb785d59477cced6c151c6f9b", "detected_licenses": [ "MIT" ], "directory_id": "c72645b35d51c9ff23daa7d859bf80104c349efb", "extension": "c"...
stackv2
int findLonelyPixel(char** picture, int pictureSize, int* pictureColSize) { int *row_single_cols = (int *)malloc(sizeof(int) * pictureSize); int *col_single_rows = (int *)malloc(sizeof(int) * (*pictureColSize)); for (size_t i = 0; i < pictureSize; i ++) { row_single_cols[i] = -1; } for (size...
2.65625
3
2024-11-18T22:09:27.031067+00:00
2019-01-03T22:10:42
6ba7b68809c630a00890f8d4086036dac6deae6d
{ "blob_id": "6ba7b68809c630a00890f8d4086036dac6deae6d", "branch_name": "refs/heads/main", "committer_date": "2019-01-03T22:10:42", "content_id": "f3cb9398707c69f162279ca6ee8542b30eeff214", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "1a3d9fda52c764cdb2988f79d13861ae7151ca25", "extensio...
stackv2
#ifndef SMART_POINTER_COMMON_TESTS_H #define SMART_POINTER_COMMON_TESTS_H #include <Utils/Containers/FixedArray.h> #include <gtest/gtest.h> #define DECLARE_DEFAULT_CONSTRUCTOR_SHOULD_SET_THE_POINTER_TO_NULLPTR(pointerClass) \ _DECLARE_DEFAULT_CONSTRUCTOR_SHOULD_SET_THE_POINTER_TO_NULLPTR(pointerClass, int, eleme...
2.796875
3
2024-11-18T22:09:27.100247+00:00
2015-03-16T01:59:56
394625b95ba51f13c324ec9791b293bb898b232d
{ "blob_id": "394625b95ba51f13c324ec9791b293bb898b232d", "branch_name": "refs/heads/master", "committer_date": "2015-03-16T01:59:56", "content_id": "469399d1f9f777959804898e56427c8ca5121320", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "468193fe78db697e67cae41a358fcbaa0927090e", "extens...
stackv2
/* * Copyright (c) 2015, Daniel Taylor * 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 above copyright * notice, this list of c...
2.21875
2
2024-11-18T22:09:27.335798+00:00
2022-08-10T20:28:43
6f95ea507cd88717abb91b4af359c1e655bc4a2e
{ "blob_id": "6f95ea507cd88717abb91b4af359c1e655bc4a2e", "branch_name": "refs/heads/main", "committer_date": "2022-11-18T03:33:05", "content_id": "98a1d8143b3499f2db0fd5188c27b32950704680", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "c7f3db94cc3d69cd9a2ae24aa3c69cd767b28672", "extensio...
stackv2
#include <RuntimeInterface.h> #include <mpi.h> #include <stdio.h> int isCompatible(MPI_Datatype mpi_type, typeart_builtin_type recorded_type) { // This comparison is not exhaustive and is only used for this simple demo switch (recorded_type) { case TYPEART_INT8: return mpi_type == MPI_CHAR || mpi_type ==...
2.453125
2
2024-11-18T22:09:27.845151+00:00
2020-03-11T12:08:36
c4977602e87f7f6222941d823f02c893f3c07a23
{ "blob_id": "c4977602e87f7f6222941d823f02c893f3c07a23", "branch_name": "refs/heads/master", "committer_date": "2020-03-11T12:08:36", "content_id": "df6ffcab57c3d0521443a3080744257a493d6a89", "detected_licenses": [ "MIT" ], "directory_id": "10bf15efa69c3dc7be72b93c8edf6444e784388f", "extension": "c"...
stackv2
#include "../includes/visual.h" #include "../includes/push_swap.h" void ft_handle_error(void) { ft_putstr("Error\n"); exit(0); } void ft_handle_error_lst(t_list *stack_a, t_list *stack_b) { if (stack_a) ft_clear_stack(stack_a); if (stack_b) ft_clear_stack(stack_b); ft_putstr("Error\n"); exit(0); } void del...
2.25
2
2024-11-18T22:09:27.904265+00:00
2020-12-02T18:56:05
5266375338fd4a93042fd564a3441bd16ef80d21
{ "blob_id": "5266375338fd4a93042fd564a3441bd16ef80d21", "branch_name": "refs/heads/main", "committer_date": "2020-12-02T18:56:05", "content_id": "911003c40c8cd65d4469afaf66544e22148d4f18", "detected_licenses": [ "MIT" ], "directory_id": "be39206892f53feadd34056c3e00cf07ac1f2721", "extension": "c", ...
stackv2
#include<stdio.h> #include<stdlib.h> int main (void) { int maior, segundo_maior, num, count=3; printf("Digite um numero:"); scanf("%d", &maior); printf("Digite um numero:"); scanf("%d", &num); if(maior > num) segundo_maior = num; else { ...
3.1875
3
2024-11-18T22:09:32.315592+00:00
2016-05-02T17:57:11
a3f589877da183d6c6d48dad1ba5afe00493cf10
{ "blob_id": "a3f589877da183d6c6d48dad1ba5afe00493cf10", "branch_name": "refs/heads/master", "committer_date": "2016-05-02T17:57:11", "content_id": "23d65c76a986da909881dbba2b8d638704a7db92", "detected_licenses": [ "Apache-2.0" ], "directory_id": "141ae904ff93303a8153c7f6bb083ea7068cb97e", "extensio...
stackv2
/** * Predmet: IFJ / IAL * Projekt: Implementace interpretu jazyka PHP13 * Varianta: a/1/I * Soubor: parser.c * * Popis: * * * Datum: 28.11.2013 * * Autori: Frantisek Kolacek <xkolac12@stud.fit.vutbr.cz> * Stodulka Daniel * Hermann Lukas * Tran Manh Hoang */ #inc...
2.640625
3
2024-11-18T22:09:32.394586+00:00
2018-07-20T10:03:23
dd28f5836a9de2eb7aa33c924fa04b088181b23c
{ "blob_id": "dd28f5836a9de2eb7aa33c924fa04b088181b23c", "branch_name": "refs/heads/master", "committer_date": "2018-07-20T10:03:23", "content_id": "56cb97d7229653004c5b2a1cebaa744a0894858e", "detected_licenses": [ "Apache-2.0" ], "directory_id": "fde5cbb16880e4ba79ce93fe48ab26be6234878b", "extensio...
stackv2
/* Program COILS version 2.1 */ /* written by J.Lupas, 22 JUN 1993 */ /* edited on 15 JAN 1994 */ /* revised and corrected 4 APR 1994 */ /* incorporates the option to use either the old MTK chart or the new MTIDK chart AND the choice of weighting positions a & d more (2.5 times) */ /* 4 output op...
2.234375
2
2024-11-18T22:09:32.715430+00:00
2017-03-16T08:03:58
ff84dd08bd2a87884a3acac4d5543201f4251f60
{ "blob_id": "ff84dd08bd2a87884a3acac4d5543201f4251f60", "branch_name": "refs/heads/master", "committer_date": "2017-03-16T08:03:58", "content_id": "60735db41fadfe9f417160b9ac88998f572e0ff0", "detected_licenses": [ "MIT" ], "directory_id": "d8518db1927579cccd81e0d24661fe47f41b5b53", "extension": "c"...
stackv2
#include<stdio.h> #define MAX_LINE 50 int get_line(char *line, int limit); void copy(char *to, char *from); int main(void){ int len, max, prev_len; char s[MAX_LINE], l[MAX_LINE], t[MAX_LINE]; max = prev_len = 0; while((len = get_line(s, MAX_LINE)) > 0){ if(prev_len + len > max){ max = prev_len + ...
3.40625
3
2024-11-18T22:09:32.781730+00:00
2019-04-25T01:53:30
0d69072a432665652e34599480c57a4ef6914847
{ "blob_id": "0d69072a432665652e34599480c57a4ef6914847", "branch_name": "refs/heads/master", "committer_date": "2019-04-25T01:53:30", "content_id": "813f0a270c6c56c57c5592fe51706d40aefe8b76", "detected_licenses": [ "Apache-2.0" ], "directory_id": "c5bdcb5bd09f39f7514e202a449a95b1787a9d95", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #define RC 4 typedef enum boleano {true = 1, false = 0} bool; bool matrizMagica(int **A, int N); void main(){ printf("A matriz:\n\n"); //Inicia uma matriz genérica int A[RC][RC] = { {1,1,1,1}, {1,1,1,1}, {1,1,1,1}, {1,1,1,1} }; ...
3.65625
4
2024-11-18T22:09:32.846192+00:00
2020-10-01T09:06:09
62933865af59cecb637cd3021db3124f223070ca
{ "blob_id": "62933865af59cecb637cd3021db3124f223070ca", "branch_name": "refs/heads/master", "committer_date": "2020-10-01T09:06:09", "content_id": "527f83776e86428c5e283b76211291445ae7b4f9", "detected_licenses": [ "Apache-2.0", "BSD-3-Clause" ], "directory_id": "1eb656349200f69daed8869ea33991c768...
stackv2
/* Copyright (c) 2000-2007 by Nicolas Devillard. * Copyright (x) 2009 by Tim Post <tinkertim@gmail.com> * MIT License * * 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 restricti...
2.234375
2
2024-11-18T22:09:34.062430+00:00
2017-12-04T17:59:50
609ab6f89fc4eef0973c354292c6df7d0903a3ed
{ "blob_id": "609ab6f89fc4eef0973c354292c6df7d0903a3ed", "branch_name": "refs/heads/master", "committer_date": "2017-12-04T17:59:50", "content_id": "2ea5dff12fa9a9b32d3528b728e206d75fb6c626", "detected_licenses": [ "MIT" ], "directory_id": "f28a6c8e41150b9c4d0c853019fe11dd73fb0e99", "extension": "h"...
stackv2
/* * File: help.h * Author: Alfredo * * Created on 4 de febrero de 2014, 02:02 PM */ #ifndef HELP_H #define HELP_H #include <stdio.h> #define MAX_LINE 80 char line[MAX_LINE]; void GenerateHelp() { FILE *f=fopen("HELP","w"); if(f) { fprintf(f,"********************* AYUDA DEL DICCIONARIO D...
2.265625
2
2024-11-18T22:09:34.124687+00:00
2020-12-20T20:16:09
71ebf7b8de08a27e048c19551fa1dd59d2dfa4b4
{ "blob_id": "71ebf7b8de08a27e048c19551fa1dd59d2dfa4b4", "branch_name": "refs/heads/master", "committer_date": "2020-12-20T20:16:09", "content_id": "29330f5df07970b27648f8af126571d4b7442bd2", "detected_licenses": [ "MIT" ], "directory_id": "f7be76d576b043ddcc08d693de01dfddb390348a", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include "t2.h" #ifdef VALGRIND #define NITER 1 #else #define NITER 5000000 #endif // ---------------------------------------------------- // Funcion que entrega el tiempo transcurrido desde el lanzamiento del // programa en milisegundo...
2.8125
3
2024-11-18T22:09:34.565895+00:00
2021-09-17T12:18:45
7e7d331603eceb19b4b9d3bdfa207e8e31e47f05
{ "blob_id": "7e7d331603eceb19b4b9d3bdfa207e8e31e47f05", "branch_name": "refs/heads/main", "committer_date": "2021-09-17T12:18:45", "content_id": "9e72a4b259390c6ba16be9926f46f8f5d9910d45", "detected_licenses": [ "MIT" ], "directory_id": "e9247e5482342e6fdfb581bc2ea4a87516d89373", "extension": "h", ...
stackv2
#ifndef EP2_CATEGORIAS_H #define EP2_CATEGORIAS_H #define MAX_OPERADORES 7 #define MAX_CATEGORIAS 14 typedef enum listaCategorias { /* 7 operadores aritmeticos */ OPER_EXPONENCIACAO /* "^", 0 */ ,OPER_RESTO_DIVISAO /* "%", 1 */ ,OPER_MULTIPLICACAO /* "*", 2 */ ,OPER_DIVISAO /* "/",...
2
2
2024-11-18T22:09:35.488472+00:00
2017-09-29T18:11:47
a20ac49a6beeab9ab5b381a40da9a5123d4f88f8
{ "blob_id": "a20ac49a6beeab9ab5b381a40da9a5123d4f88f8", "branch_name": "refs/heads/master", "committer_date": "2017-09-29T18:11:47", "content_id": "6f668ba31a8b5f37d23a50607a1d9518fcb6ebbf", "detected_licenses": [ "MIT" ], "directory_id": "c8680091ab8376b149ab2d86bf3eb8641726bd36", "extension": "c"...
stackv2
/* bitwise operators */ /* c has six operators that are special to bitwise operations that can only be used with integers (char, long, short, int; unsigned or signed) & == bitwise AND; | == bitwise inclusive OR; ^ == bitwise exclusive OR; << == left shift >> == right shift ~ == one's complement (unary) */ /* & can ...
3.359375
3
2024-11-18T22:09:35.573525+00:00
2020-04-24T23:20:40
0522838d3b892f479be78547f00e6950cf09a309
{ "blob_id": "0522838d3b892f479be78547f00e6950cf09a309", "branch_name": "refs/heads/master", "committer_date": "2020-04-24T23:20:40", "content_id": "8c89df698ad56c60f744f3af24daaeea0bf11e33", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "48c2d779adc3ec016b996d1bb03c5f9b2605bb3f", "extens...
stackv2
#include <stdio.h> #include <string.h> #include "simeck.h" int main(void){ uint32_t key[]={0x03020100,0x0b0a0908,0x13121110,0x1b1a1918}; uint32_t txt[]={0x20646e75,0x656b696c}; uint32_t res[]={0x5f7ab7ed,0x45ce6902}; int equ; simeck(key,txt); printf("Simeck64/128 %08x %08x\n", txt[...
2.484375
2
2024-11-18T22:09:35.701926+00:00
2018-05-28T01:40:09
81635b81a52159db798512c294444d94a9646942
{ "blob_id": "81635b81a52159db798512c294444d94a9646942", "branch_name": "refs/heads/master", "committer_date": "2018-05-28T01:40:09", "content_id": "38ffbe8c11a229f532932d9748304329a1fd2dfa", "detected_licenses": [ "MIT" ], "directory_id": "8b2fbd4b6e80745e8c69bc38eae1f068ced7990c", "extension": "c"...
stackv2
/* * main.c - Simulacao de carga de trabalho para escalonamento de processos * * Autor: Marcelo Moreno * Projeto: Trabalho Pratico I - Sistemas Operacionais * Organizacao: Universidade Federal de Juiz de Fora * Departamento: Dep. Ciencia da Computacao * * => NAO MODIFIQUE ESTE ARQUIVO <= * */ #include <stdio.h> ...
2.890625
3
2024-11-18T22:09:35.810245+00:00
2020-10-01T09:06:09
5b617fe84ed1bb2a69cb3e3f2237a982c2a877f4
{ "blob_id": "5b617fe84ed1bb2a69cb3e3f2237a982c2a877f4", "branch_name": "refs/heads/master", "committer_date": "2020-10-01T09:06:09", "content_id": "46df3653aa6f5003a9e257d3a58297b49b0cd8d4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1eb656349200f69daed8869ea33991c7680e55e0", "extensio...
stackv2
/* * This file is part of the DAC distribution (https://github.com/xainag/frost) * Copyright (c) 2020 IOTA Stiftung * * 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, version 3. * * This ...
2.421875
2
2024-11-18T22:09:35.963235+00:00
2014-09-15T21:34:19
7eb0822db50b79a5c7d8f18da5461fc348ee9242
{ "blob_id": "7eb0822db50b79a5c7d8f18da5461fc348ee9242", "branch_name": "refs/heads/master", "committer_date": "2014-09-15T21:34:19", "content_id": "4c20798841b20a28c0e560d7779c0de0c01d114e", "detected_licenses": [ "MIT" ], "directory_id": "4f6cff849b557ae5e42415101b5007a415fb408a", "extension": "c"...
stackv2
/* The MIT License (MIT) Copyright (c) 2014 Karol Farbiś 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, ...
2.75
3
2024-11-18T22:09:36.052019+00:00
2020-07-12T17:50:17
2d999339ef4f048af5685e3d548711b1284dd793
{ "blob_id": "2d999339ef4f048af5685e3d548711b1284dd793", "branch_name": "refs/heads/master", "committer_date": "2020-07-12T17:50:17", "content_id": "b0aeca9f3eed63c19db9635a133c5bc80a7f7fe9", "detected_licenses": [ "MIT" ], "directory_id": "565e30acd3576ba1b61790cfe6f7b6eb957fc72f", "extension": "c"...
stackv2
#include "tss.h" #include "segment.h" #include "registers.h" #include <string.h> #include <xbook/task.h> /* tss对象 */ tss_t tss; tss_t *get_tss() { return &tss; } void update_tss_info(unsigned long task_addr) { // 更新tss.esp0的值为任务的内核栈顶 tss.esp0 = (unsigned long)(task_addr + TASK_KSTACK_SIZE); } void init_tss() { ...
2.125
2
2024-11-18T22:09:36.562699+00:00
2020-03-04T12:58:18
a33613c8767123f7e828901cdf20068f71727d78
{ "blob_id": "a33613c8767123f7e828901cdf20068f71727d78", "branch_name": "refs/heads/master", "committer_date": "2020-03-04T12:58:18", "content_id": "0a11e2a1961a39356b86103976c3cd9bf30b82c0", "detected_licenses": [ "MIT" ], "directory_id": "5e55d7b3a1b9d8ac5e91baaaec844a31b5f79573", "extension": "c"...
stackv2
//JUEGO DE LAS TRES EN RAYA #include "stdio.h" void funcion1(int a); void funcion2(int *a); void saltoLinea(); void display(int x); int main(int argc, char const *argv[]) { int a1 = 0; int a2 = 0; float salto = '\n'; funcion1(a1); funcion2(&a2); display(a1); saltoLinea(); display(a...
3.5
4
2024-11-18T22:09:38.075179+00:00
2021-12-06T11:37:59
e708e66d88fa37bc53f9b3a7f2e21f5dd50a7cd5
{ "blob_id": "e708e66d88fa37bc53f9b3a7f2e21f5dd50a7cd5", "branch_name": "refs/heads/master", "committer_date": "2021-12-06T11:37:59", "content_id": "0081781b9b24451fb1763bd882aa0066a4dd68d2", "detected_licenses": [ "MIT" ], "directory_id": "55368cb4c9d5fec97deaec8db38e9956c9e98435", "extension": "c"...
stackv2
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_ldtoa_base.c :+: :+: :+: ...
2.625
3
2024-11-18T22:09:38.753767+00:00
2018-09-10T01:26:10
c4b4f3223d2938e0e75cfc5a7979a3f0134ee189
{ "blob_id": "c4b4f3223d2938e0e75cfc5a7979a3f0134ee189", "branch_name": "refs/heads/master", "committer_date": "2018-09-10T01:26:10", "content_id": "1b844d1f5efc331a90701c77383e06db8875eee2", "detected_licenses": [ "MIT" ], "directory_id": "2b3944f69b98e430eb7bbe3c9dbac82d5b3bb3b1", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> int main(int argc ,char *argv[]) { unsigned int short port = 8080; if(argc > 1) { port = atoi(argv[1]); } int sockfd; sockfd = socket(AF_...
2.765625
3
2024-11-18T22:09:38.846965+00:00
2022-01-07T17:31:19
1fec89e542e70873eaf2b8c58a59c5759a4268ec
{ "blob_id": "1fec89e542e70873eaf2b8c58a59c5759a4268ec", "branch_name": "refs/heads/master", "committer_date": "2022-01-07T17:31:19", "content_id": "6710392a7652407c71338745631fd1728e176080", "detected_licenses": [ "MIT" ], "directory_id": "186cc5875110c58b51100e16ef59c5389822ada0", "extension": "c"...
stackv2
#include <float.h> #include <limits.h> #include <stdio.h> int main() { int a = 1; unsigned int b = 1u; float c = 1.0f; double d = 1.0; char e = 42; printf("Variable a: %lu\n", sizeof(a)); printf("Variable b: %lu\n", sizeof(b)); printf("Variable c: %lu\n", sizeof(c)); printf("Variab...
2.921875
3
2024-11-18T22:09:39.572368+00:00
2021-05-25T17:40:13
34c92f958bc19cbfd3e5125e0a56645a4e93f53e
{ "blob_id": "34c92f958bc19cbfd3e5125e0a56645a4e93f53e", "branch_name": "refs/heads/master", "committer_date": "2021-05-25T17:40:13", "content_id": "323780e8b58f6e52f59d0c2235f383321c9c5e7a", "detected_licenses": [ "Apache-2.0" ], "directory_id": "9dd63737483cae14ff0b90fde23652b4a8d98c7c", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include "AVLTree.h" bool functionsWorking() { struct Tree* tree = createTree(); addValue(tree, "11", "right"); addValue(tree, "12", "root"); addValue(tree, "13", "left"); if (strcmp(getValue(tree, "12"), "root") != 0) { deleteTre...
3.390625
3
2024-11-18T22:09:41.669053+00:00
2021-05-26T01:20:57
26a59a369d72bf06615dbf3283703cf2d6ebf611
{ "blob_id": "26a59a369d72bf06615dbf3283703cf2d6ebf611", "branch_name": "refs/heads/main", "committer_date": "2021-05-26T01:20:57", "content_id": "b65111bbc328a46796ad6fa703ca09531669e6ee", "detected_licenses": [ "MIT" ], "directory_id": "8c208dae8ecffd1d52c53d246cef8471f441e88e", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> int somaCubos(int num); int somaCubos(int num){ if(num == 1){ return 1; }else{ return (num * num * num) + somaCubos(num - 1); } } int main(int argc, char *argv[]){ int n; scanf("%d", &n); printf("%d", somaCubos(n)); return 0; }
3.125
3
2024-11-18T22:09:42.348854+00:00
2016-06-02T00:11:27
b903c4a59951e01c4228c5aa7672369501cba882
{ "blob_id": "b903c4a59951e01c4228c5aa7672369501cba882", "branch_name": "refs/heads/master", "committer_date": "2016-06-02T00:11:27", "content_id": "a59a8f94ba921b5118946bf27fb51f9c418e5c85", "detected_licenses": [ "MIT" ], "directory_id": "5a8fd1519755593a750165935936e858a77a8579", "extension": "c"...
stackv2
#include "../libstr.h" #include <stdio.h> int main(int argc, char const *argv[]) { char str[] = "Hello World"; int W = indexOf('W',str); if(W > 0){ const char* substring = substr(str, W, strlen(str) -1 ); /* => World */ printf("%s\n",substring); } char* str1 = (char*)"Hello World";...
3.140625
3
2024-11-18T22:09:43.239533+00:00
2013-08-19T23:18:03
48817bed567a28532708c68004866cadaba4e0a8
{ "blob_id": "48817bed567a28532708c68004866cadaba4e0a8", "branch_name": "refs/heads/master", "committer_date": "2013-08-19T23:18:03", "content_id": "54eaed4892857471167b71687b8f7f51d608cdeb", "detected_licenses": [ "MIT" ], "directory_id": "88b897880bc84381d41c635b754a73964c891b96", "extension": "c"...
stackv2
/* * Copyright (C) 2012, 2013 * Dale Weiler * Wolfgang Bumiller * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights t...
2.140625
2
2024-11-18T22:09:43.791947+00:00
2019-08-12T19:53:50
db7c976b060f3a8754ef3fa2b532b9f000e4927e
{ "blob_id": "db7c976b060f3a8754ef3fa2b532b9f000e4927e", "branch_name": "refs/heads/master", "committer_date": "2019-08-12T19:53:50", "content_id": "d30b8d0d10963cac98c99f7a6b416d73bbbddd31", "detected_licenses": [ "Apache-2.0" ], "directory_id": "b6fe81dfe1fc44f31618c448b37c4001503ce7d1", "extensio...
stackv2
#include<stdio.h> #include<stdlib.h> int main() { int n,i; scanf("%d",&n); char *string=(char*)malloc(n*sizeof(char)); scanf("%s",string); int q; scanf("%d",&q); int *queries=(int*)malloc(q*sizeof(int)); for(i=0;i<q;i++) { scanf("%d",&queries[i]); } int count=0; int querynumber; char alphabet; int a; for(a=0;a<q;a++) ...
2.578125
3
2024-11-18T22:09:43.955066+00:00
2023-08-23T03:45:56
e9438b5b4e805f848a40f4272c579427b451e2a8
{ "blob_id": "e9438b5b4e805f848a40f4272c579427b451e2a8", "branch_name": "refs/heads/master", "committer_date": "2023-08-23T03:45:56", "content_id": "7f55a8b01e861825f8215fa0c30bffcd1cd3ed62", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d9322e797c881a28c8f517178880b5c008994f6c", "extensio...
stackv2
/** @file * Copyright (c) 2019, Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * 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://ww...
2.03125
2
2024-11-18T22:09:44.233373+00:00
2018-09-19T17:40:29
324ab62681c8c0adba98aa074de11f2d65cacc24
{ "blob_id": "324ab62681c8c0adba98aa074de11f2d65cacc24", "branch_name": "refs/heads/master", "committer_date": "2018-09-19T17:40:29", "content_id": "32a2b63aa3dc34c7c0356985106e8d5dc253f64b", "detected_licenses": [ "MIT" ], "directory_id": "17ce54614b589161e397cb399696630704c9286c", "extension": "c"...
stackv2
/* * simple_loop_computer.c * * Created on: Jul 25, 2017 * Author: koldar */ #include "simple_loops_computer.h" #include <stdbool.h> #include "scc.h" #include "heap.h" #include "stack.h" #include "dynamic_array.h" #include "log.h" typedef HT node_list_ht; typedef dynamic_1D_array bool_array; typedef Stack...
2.53125
3
2024-11-18T22:09:51.442425+00:00
2018-12-12T19:34:58
485f3fcbeff757efa0271edb7ce2963be50a9b13
{ "blob_id": "485f3fcbeff757efa0271edb7ce2963be50a9b13", "branch_name": "refs/heads/master", "committer_date": "2018-12-12T19:34:58", "content_id": "6dbe478f118097e2da7f78da14da967c7fb9a3a7", "detected_licenses": [ "MIT" ], "directory_id": "205798618411cd76c20bb2af66a6b9a5208f111c", "extension": "h"...
stackv2
#ifndef TP2_EJ3REQUIRED_H_ #define TP2_EJ3REQUIRED_H_ #include "sc_types.h" #include "TP2_Ej3.h" #ifdef __cplusplus extern "C" { #endif /*! \file This header defines prototypes for all functions that are required by the state machine implementation. This is a state machine uses time events which require access to...
2.3125
2
2024-11-18T22:09:51.641415+00:00
2020-02-01T15:18:36
b31b2106d59b03ded9ed06a0dfba731f81d75d54
{ "blob_id": "b31b2106d59b03ded9ed06a0dfba731f81d75d54", "branch_name": "refs/heads/master", "committer_date": "2020-02-01T15:18:36", "content_id": "20df31068de87b065fd0449fa896da4e6de2a8b0", "detected_licenses": [ "Apache-2.0" ], "directory_id": "dc875bef0f5dc634973d60df30e243cf46ef89d2", "extensio...
stackv2
#include <linux/watchdog.h> #include "watchdog.h" int __watchdog_fd = -1; /*********************************************************************/ /* * ini_watchdog * 使能看门狗 * * @param * unsigned int time 喂狗超时时间 * * @return unsigned int * 成功: IOT_SUCCEESE * ...
2.5
2
2024-11-18T22:09:51.790290+00:00
2017-01-30T23:56:51
9e88742e3f501e3eefc45b80436e2cd99c3f355d
{ "blob_id": "9e88742e3f501e3eefc45b80436e2cd99c3f355d", "branch_name": "refs/heads/master", "committer_date": "2017-01-30T23:56:51", "content_id": "320a7a3ae61eba94b11a43a755a95ce844b7bb01", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "f8ce0493db3f2bde39e27afb0c5db5995e16e19f", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <locale.h> int main(){ setlocale(LC_ALL,"ptb"); FILE *arq1,*arq2,*arqConcat; char nome1[50],nome2[50],c; printf("Programa para concatenar o conteúdo de 2 Arquivos-Textos dados em um novo arquivo, com nome dado pelo usuário\n"); printf("Digit...
3.265625
3
2024-11-18T22:09:52.321657+00:00
2023-08-18T10:48:30
9727faafe3827a6e01af7dd1bb368c22e3db71e8
{ "blob_id": "9727faafe3827a6e01af7dd1bb368c22e3db71e8", "branch_name": "refs/heads/master", "committer_date": "2023-08-18T10:48:30", "content_id": "0a07f17710ddb85558e42331d410cba9a557a4e4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e8b04bef9aa1ac8e2c109dd315f133c8f4d28ae6", "extensio...
stackv2
#include <ode/ode.h> #include <plugins/physics.h> static int BODIES_COUNT = 6; static dBodyID *bodies = NULL; void webots_physics_init() { int i = 0; bodies = malloc(BODIES_COUNT * sizeof(dBodyID)); char name[32]; for (i = 0; i < BODIES_COUNT; ++i) { sprintf(name, "END_POINT_SOLID_%d", i + 1); bodies[...
2.421875
2
2024-11-18T22:09:52.451145+00:00
2019-06-19T10:36:44
a93f4ef64bb3ef073b6774a40fe13482b7c067ab
{ "blob_id": "a93f4ef64bb3ef073b6774a40fe13482b7c067ab", "branch_name": "refs/heads/master", "committer_date": "2019-06-19T10:36:44", "content_id": "69d53746f52b26a57ef10b6d0ba6576743f641e4", "detected_licenses": [ "Apache-2.0" ], "directory_id": "594b35b05fc3825ba52f0bc86a7073bdeb355684", "extensio...
stackv2
#include "nv_list.h" #include "crc32.h" #include "stdlib.h" uint8_t nv_buf[4096]; /* ** */ void nvlist_clear(nv_list *list) { uint32_t addr = 0; uint32_t page = list->max * list->index_size / list->page_size; if ((list->max * list->index_size) % list->page_size != 0) { page = list->max * list-...
2.671875
3
2024-11-18T22:09:52.701419+00:00
2018-12-11T21:58:55
2c93f3bc2f94dc9cadabcc68fe4f05b73b93410c
{ "blob_id": "2c93f3bc2f94dc9cadabcc68fe4f05b73b93410c", "branch_name": "refs/heads/master", "committer_date": "2018-12-11T21:58:55", "content_id": "9cd75bccc618c83ff70b99d038a7bff001c1a692", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "db3195bbe3a52fd2688f6c8b62342a60167613dc", "extens...
stackv2
/* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in b...
2.359375
2
2024-11-18T22:09:52.925440+00:00
2017-04-30T02:29:17
4588985a77b99a6cfa3e53daea22e22c5166978a
{ "blob_id": "4588985a77b99a6cfa3e53daea22e22c5166978a", "branch_name": "refs/heads/master", "committer_date": "2017-04-30T02:29:17", "content_id": "ab4f5b4a2f15955558d73a72082127131f93a4bf", "detected_licenses": [ "MIT" ], "directory_id": "38ce2ded8af2a4f3fb43afd18f45d235d026850d", "extension": "c"...
stackv2
/* MSTran MS Translate to other formats Copyright 1995 by Michael L. Connolly All Rights Reserved December 20, 2001 */ #include "ms.h" #include "msenum.h" #include "mslimit.h" #include "msdefault.h" #include "msstruct.h" #include "msglobal.h" #include "msfunction.h" int mstran (struct msscene *ms, F...
2.15625
2
2024-11-18T22:09:53.547847+00:00
2014-12-02T13:27:08
5e3af8a80742b29eff9d49b62918cdcaeb8c2576
{ "blob_id": "5e3af8a80742b29eff9d49b62918cdcaeb8c2576", "branch_name": "refs/heads/master", "committer_date": "2014-12-02T13:27:08", "content_id": "0481901746b15efbb2897d6c02f05ac88f3b3a19", "detected_licenses": [ "Apache-2.0" ], "directory_id": "e67dd9c8292725e024bf66073b285d36c81bfb8e", "extensio...
stackv2
#ifndef STACK_H_INCLUDED #define STACK_H_INCLUDED typedef struct stack_node { int value; struct stack_node *prev; } stack_node; typedef struct stack { int size; stack_node *top; } stack; typedef int boolean; #define TRUE 1 #define FALSE 0 #define NMAX 1000 stack* stack_create(); void stack_push(sta...
2.171875
2
2024-11-18T22:09:55.045228+00:00
2020-08-07T01:51:16
e35300df6c3307ca6f41191324b38b3d37c18c81
{ "blob_id": "e35300df6c3307ca6f41191324b38b3d37c18c81", "branch_name": "refs/heads/master", "committer_date": "2020-08-07T01:51:16", "content_id": "36d2aa1310b2336db2e7c36c99812d9aeb5a09fb", "detected_licenses": [ "MIT" ], "directory_id": "feb08986f99162d579f3350bd1d2663b188d1496", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> int main() { float custoF, custoC; printf("Qual o custo de fabrica do seu novo carro? "); scanf("%f", &custoF); if(custoF <= 28000) { custoC = custoF + (custoF*0.05); printf("O custo do consumidor com a aplicacao de impostos no seu carro e de: R...
3.0625
3
2024-11-18T22:09:55.166209+00:00
2020-06-22T03:38:25
32de4040dc9311eddfb65ceb3cd3c6fd852f17b8
{ "blob_id": "32de4040dc9311eddfb65ceb3cd3c6fd852f17b8", "branch_name": "refs/heads/master", "committer_date": "2020-06-22T03:38:25", "content_id": "2ffea1491da22886a70dcc5bd1e1dbdec1eba98d", "detected_licenses": [ "MIT" ], "directory_id": "5c6b88c3954b4dde11e70f7abe644414cd81f0b1", "extension": "c"...
stackv2
#include <sl.h> #include "push.h" #include "file.h" #include "batch.h" WCHAR* BatchFileName; VOID GetBatchFile( PUSH_GAME* Game, WCHAR* Buffer ) { WCHAR *dot; WCHAR batchFile[260]; String_Copy(batchFile, L"cache\\"); String_Concatenate(batchFile, Game->Name); dot = String_FindLastChar(batchFile,...
2.25
2
2024-11-18T22:09:55.662309+00:00
2023-07-07T18:18:01
2ecd48082c0116ed37e31561ea6f035b26b81f09
{ "blob_id": "2ecd48082c0116ed37e31561ea6f035b26b81f09", "branch_name": "refs/heads/master", "committer_date": "2023-07-07T18:20:16", "content_id": "903741f9f026774a0bca35030ecef4a3f7a9dd01", "detected_licenses": [ "Zlib" ], "directory_id": "9c4ec01e04f7b0a1d213e1060c6b0a008dde7cbd", "extension": "c...
stackv2
/***************************************************************************//** * @file main.c * @brief This project demonstrates the oversampling quadrature decoder mode of * the pulse counter peripheral. The program will request an interrupt whenever * the quadrature decoder detects a change in direction or a co...
2.109375
2
2024-11-18T22:09:55.799103+00:00
2018-03-30T20:09:32
b4f8f2d6edd22ff33bf8491807ab4508e297082d
{ "blob_id": "b4f8f2d6edd22ff33bf8491807ab4508e297082d", "branch_name": "refs/heads/master", "committer_date": "2018-03-30T20:09:32", "content_id": "d1ae22bd43053fa0f2e58c9d742755ba991b18f7", "detected_licenses": [ "MIT" ], "directory_id": "973de2d119ff849844deeb55f99fc8d8f6796573", "extension": "c"...
stackv2
#include "dio.h" char * dish_readline(char ** history, int num_history, struct termios saved) { char buf[256]; memset(buf, 0, 256); int iter=0, miter=0, x=0, y=0; get_cursor(&x, &y); int arrow_key = 0; int hiter = num_history; char c = 1; while (c && c != EOF && c != '\n' && c != '\r') { if (iscntrl(c)) { ...
2.703125
3
2024-11-18T22:09:55.921811+00:00
2021-10-06T12:49:28
a04ee1442e8682962cd71474ecb8a0006027887d
{ "blob_id": "a04ee1442e8682962cd71474ecb8a0006027887d", "branch_name": "refs/heads/main", "committer_date": "2021-10-06T12:49:28", "content_id": "25f865fc2e19592bf468cf8c42f14829a80aa631", "detected_licenses": [ "CC0-1.0" ], "directory_id": "9a1db4ea1fc49606ea95b924f46ebf1436d94c38", "extension": "...
stackv2
// The tracepoint requires kernel CONFIG_FTRACE_SYSCALLS to be set. #include <stdio.h> #include <string.h> #include <signal.h> #include <errno.h> #include <sys/resource.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include "connect_kern.skel.h" #define MAX_LENGTH 16 struct bpf_msg { ...
2.359375
2
2024-11-18T22:09:56.643325+00:00
2021-10-11T08:36:10
5459874d06197c8b7a29c009080f6dcc1e50291d
{ "blob_id": "5459874d06197c8b7a29c009080f6dcc1e50291d", "branch_name": "refs/heads/main", "committer_date": "2021-10-11T08:36:10", "content_id": "352a9b059f84f57ac2c429d74ac42cbb93f693fb", "detected_licenses": [ "MIT" ], "directory_id": "2a21910f94ab2272d5dbfd58d7f8992ae4bb25ea", "extension": "c", ...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #define STB_DS_IMPLEMENTATION #include "stb_ds.h" #define DELIM "," double determinant( double const * const * const matrix, int const dim ); void setup( FILE * * const file_p, char const * const path, int * const dim_p, dou...
2.890625
3
2024-11-18T22:09:56.810042+00:00
2023-08-13T10:00:00
915dba0789412bef306a8e1d7e82b323c4473638
{ "blob_id": "915dba0789412bef306a8e1d7e82b323c4473638", "branch_name": "refs/heads/master", "committer_date": "2023-08-13T10:00:00", "content_id": "44dc0b6bff6c713fa88362420febd6e4bed60f46", "detected_licenses": [ "MIT" ], "directory_id": "0cc343d927d5db6693006018986715c43acab961", "extension": "c"...
stackv2
#include "debug.h" #include "general.h" #include "item.h" void debug_print(const char *message) //@ requires [?f]string(message, ?cs); //@ ensures [f]string(message, cs); { #ifdef DEBUG printf("<DEBUG>%s\n", message); #endif } void print_buffer(const char *buffer, int size) //@ requires [?f]crypto_chars(?ki...
2.609375
3
2024-11-18T22:09:58.282955+00:00
2021-09-27T12:59:47
36d0c743eaf34cbf6cad765bc7d13fa607425909
{ "blob_id": "36d0c743eaf34cbf6cad765bc7d13fa607425909", "branch_name": "refs/heads/master", "committer_date": "2021-09-28T08:42:54", "content_id": "ce8528163b0b85b0a4f1c60cda68c1a5bcd320e5", "detected_licenses": [ "MIT" ], "directory_id": "f05c7fad226f0c657fa2a39328eeb93a58151b53", "extension": "c"...
stackv2
/* * Description: * History: yang@haipo.me, 2016/03/27, create */ # include <stdlib.h> # include <string.h> # include <stdarg.h> # include <errno.h> # include "ut_log.h" # include "ut_redis.h" static void append_node(redis_sentinel_t *context, redis_sentinel_node *node) { if (context->list == NULL) { ...
2.703125
3
2024-11-18T22:09:58.613742+00:00
2018-11-10T21:54:07
78f33ba8efa8ece041a5c9b32b2e996b7a58ae0a
{ "blob_id": "78f33ba8efa8ece041a5c9b32b2e996b7a58ae0a", "branch_name": "refs/heads/master", "committer_date": "2018-11-10T21:54:07", "content_id": "3a14dd68e4027010426636ce7e80d192ccc598b9", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "151b24446ff8ce967b1a02d117d77419709e7d68", "extens...
stackv2
/* hexarg -- parse hexadecimal integer argument * * Usage: i = hexarg (ptr,brk,prompt,min,max,default) * unsigned int i,min,max,default; * char **ptr,*brk,*prompt; * * Will attempt to parse an argument from the string pointed to * by "ptr", incrementing ptr to point to the next arg. If * an arg i...
2.96875
3
2024-11-18T22:09:58.944804+00:00
2016-02-16T18:18:26
44589260cae901ebeda04f250f8db990acbea79f
{ "blob_id": "44589260cae901ebeda04f250f8db990acbea79f", "branch_name": "refs/heads/master", "committer_date": "2016-02-16T18:18:26", "content_id": "7fcfb4148e9842e0e053f6c43d37ab34404cf039", "detected_licenses": [ "MIT" ], "directory_id": "e02adcda7a1d00dd303b21b4a8e18e6c86b0c639", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include "../lib.h" int main(void) { float32 x0 = string_to_float32("-32"); float32 x1 = string_to_float32("-0"); float32 x2 = string_to_float32("0"); float32 x3 = string_to_float32("32"); printf("%f\n", (float) x0); printf("%f\n", (float) x1); print...
2.21875
2
2024-11-18T22:09:59.139172+00:00
2023-08-19T04:53:58
c53b2edb699a2a28bae9adbac22b99605fec4fab
{ "blob_id": "c53b2edb699a2a28bae9adbac22b99605fec4fab", "branch_name": "refs/heads/master", "committer_date": "2023-08-19T04:53:58", "content_id": "4c72c15f92370ad603bd9b565a5b38393cb93fa2", "detected_licenses": [ "MIT" ], "directory_id": "f8fe6eec5dc1200a112a13dcd2102af4fccf2417", "extension": "c"...
stackv2
/*! * \file MonolithHydraulicDiameter.h * \brief Auxillary kernel to calculate the hydraulic diameter for the monolith * \details This file is responsible for calculating the hydraulic diameter for * the monolith. This value may not be used on its own, but will likely * be used in ...
2.28125
2
2024-11-18T22:09:59.425759+00:00
2018-07-01T20:42:58
dd6460bcce1e7e408b531451d0ef8bd182169582
{ "blob_id": "dd6460bcce1e7e408b531451d0ef8bd182169582", "branch_name": "refs/heads/master", "committer_date": "2018-07-01T20:42:58", "content_id": "9cf7b326573d18aaae8250578c51944a349127c5", "detected_licenses": [ "Apache-2.0" ], "directory_id": "6a8079bf90e0d73f375e75ec2eb1da24170b1122", "extensio...
stackv2
/** mystruct.c * @author Mike Ciaraldi */ #include <string.h> #include <stdlib.h> #include <stdio.h> #include "mystruct.h" #define THIS_YR 2018 // Macro for current year (max value for random years) // Helper function prototypes int randInt(int max); char *randStr(int length); char randChar(); /** Allocates an Em...
3.765625
4
2024-11-18T22:09:59.586095+00:00
2021-07-27T08:53:05
30fbc3e9d0fda28f24cafc2b656caf9f7dea2c77
{ "blob_id": "30fbc3e9d0fda28f24cafc2b656caf9f7dea2c77", "branch_name": "refs/heads/master", "committer_date": "2021-07-27T08:53:05", "content_id": "e836d0e2a14a42067132a9fabc26227abc0e6cad", "detected_licenses": [ "MIT" ], "directory_id": "1afb46aea37d8473e68148cffb918b902ad94cf6", "extension": "h"...
stackv2
#ifndef TINYLISP_STACK_H #define TINYLISP_STACK_H #include "object.h" #define LISP_MAX_STACK_SIZE 128 typedef struct LispStackFrame_ *LispStackFrame; typedef struct LispStack_ *LispStack; struct LispStackFrame_ { int size, capacity; char** keys; LispObject* vals; }; LispStackFrame lisp_stackframe_new(); void li...
2.203125
2
2024-11-18T22:10:00.593777+00:00
2022-10-11T06:03:30
04b9c0813337d46b449a6291891db4909b094796
{ "blob_id": "04b9c0813337d46b449a6291891db4909b094796", "branch_name": "refs/heads/master", "committer_date": "2022-10-11T06:03:30", "content_id": "00b3c8ecb8ba02a769fe00911e0ee7292b46cedf", "detected_licenses": [ "MIT" ], "directory_id": "a3fa9abd8fdac2fa62dc8fbfd27dd371f81ec922", "extension": "h"...
stackv2
/* * Copyright(c) 2019 Xilinx, Inc. All rights reserved. * * BSD LICENSE * * 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 above copyright * notice, t...
2.0625
2
2024-11-18T22:10:05.139543+00:00
2018-02-16T05:16:05
ad3bd3c99d8d92d60e3a0f8abd3703c63849dc0e
{ "blob_id": "ad3bd3c99d8d92d60e3a0f8abd3703c63849dc0e", "branch_name": "refs/heads/master", "committer_date": "2018-02-16T05:16:05", "content_id": "debe845a138a6f178ca9a9c2fc835c016dd5c359", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1768527a8b033a4fd9d1ea7b155cdc5910d5f9de", "extensio...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "tbsr.h" char *tbsr_encrypt (char *word, char *key) { char *result = (char *)malloc(sizeof(char) * 100); if(result == NULL) { fprintf(stderr, "Error allocating string!\n"); return NULL; } else { strcpy(result, word); } return result; } ...
2.359375
2
2024-11-18T22:10:05.250395+00:00
2019-02-26T14:47:02
e97e53d07055c54b4f370265508566ca42d8b839
{ "blob_id": "e97e53d07055c54b4f370265508566ca42d8b839", "branch_name": "refs/heads/master", "committer_date": "2019-02-26T14:47:02", "content_id": "70582a574b6f120a4a3293fdb809834c2e6c9561", "detected_licenses": [ "MIT" ], "directory_id": "a0d0e16e6b8af86d04e05ead726e996d39dde823", "extension": "c"...
stackv2
#include <stdio.h> #include "idl_export.h" /* prototype for IDL_Load */ int IDL_Load( void ); /* * Define message codes and their corresponding printf(3) format * strings. Note that message codes start at zero and each one is * one less that the previous one. Codes must be monotonic and * contiguous. */ stat...
2.453125
2
2024-11-18T22:10:05.517924+00:00
2017-05-04T19:21:43
584086f8988c1fc613987fd5cb1d9c2fe4491f88
{ "blob_id": "584086f8988c1fc613987fd5cb1d9c2fe4491f88", "branch_name": "refs/heads/master", "committer_date": "2017-05-04T19:21:43", "content_id": "a56432c4600166586af2da5809a3ccd824db53cc", "detected_licenses": [ "Apache-2.0" ], "directory_id": "d68dade96a08a1c29d277b7cf9ee5268a99e90ac", "extensio...
stackv2
#include "parse_osm.h" int main() { osm_map_t* map = osm_parse(stdin); unsigned i; for (i=0; i<dyn_size(map->nodes); i++) { osm_node_t* node = dyn_get(map->nodes, i); printf("%lu (%lf, %lf)", node->id, node->lat, node->lon); unsigned j=0; for (j=0; j<dyn_size(node->tags); j+...
2.59375
3
2024-11-18T22:10:06.363427+00:00
2018-04-16T19:37:10
f8b4c0abc0a6848739a71f2079cad7be1e27800a
{ "blob_id": "f8b4c0abc0a6848739a71f2079cad7be1e27800a", "branch_name": "refs/heads/master", "committer_date": "2018-04-16T19:37:10", "content_id": "253b3ab785aed9cbc5b6b0cd3e35f03a85d589ac", "detected_licenses": [ "MIT" ], "directory_id": "dca4fcbaf2c1e6d06da68ad76008c888744d10f4", "extension": "c"...
stackv2
// --------------------------------------------------------------------------- // This file contains the "main()" function of the microcontroller. // --------------------------------------------------------------------------- #include <config.h> #include <sysinit.h> #include <queue.h> #include <num_conv.h> #include <...
2.53125
3
2024-11-18T22:36:55.318732+00:00
2017-02-10T10:40:36
702e60b4646915d9d1da3ff2c5ef4d88bc11ead4
{ "blob_id": "702e60b4646915d9d1da3ff2c5ef4d88bc11ead4", "branch_name": "refs/heads/master", "committer_date": "2017-02-10T10:40:36", "content_id": "9900ee5acb4e43cfb02ca84ab8fedac726f9379b", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "0b582aaa5f49717b9b71d3a0b1c0e3186b910673", "extens...
stackv2
//=================================================================== // File Name : 2440lib.c // Function : TQ2410 PLL,Uart, LED, Port Init // Version : 1.0 //=================================================================== #include "def.h" #include "option.h" #include "2440addr.h" #include "2440lib.h" #include...
2.171875
2
2024-11-18T22:36:55.378980+00:00
2019-10-02T21:30:25
5bad3dcfe2c5901c13c20d4b911fc148af750adb
{ "blob_id": "5bad3dcfe2c5901c13c20d4b911fc148af750adb", "branch_name": "refs/heads/master", "committer_date": "2019-10-02T21:30:25", "content_id": "a7d07135ec02c1483d584781a02f051251b5e436", "detected_licenses": [ "MIT" ], "directory_id": "e7835fd7ea78cb6edf590c60a0b24fc5b343e00b", "extension": "h"...
stackv2
#pragma once #ifdef __cplusplus extern "C" { #endif typedef enum ModbusDataType { NUMERIC, FLAG, STRING, HEXSTRING, INVALID } ModbusDataType; typedef enum EntityType { CoilStatus = 0, InputStatus = 1, InputRegister = 3, HoldingRegister = 4 } EntityType; typedef enum FunctionCodeType { ReadCoils = 1, ReadI...
2
2
2024-11-18T22:36:55.457828+00:00
2021-09-08T05:57:32
dfccb90423092c0f4830be66dc4e190545d20ac4
{ "blob_id": "dfccb90423092c0f4830be66dc4e190545d20ac4", "branch_name": "refs/heads/master", "committer_date": "2021-09-08T05:57:32", "content_id": "e962266a992ef2cd5462a9aea8ff8e87f805e662", "detected_licenses": [ "MIT" ], "directory_id": "05dcfa3fbf8cd95f94f1af14a068d28e1129e1d5", "extension": "c"...
stackv2
#include "encryption.h" /** * Encrypts file using crypto secret box from libsodium */ int encrypt(const char *target_file, const char *source_file, const unsigned char key[crypto_secretstream_xchacha20poly1305_KEYBYTES]) { unsigned char buf_in[CHUNK_SIZE]; unsigned char buf_out[CHUNK_SIZE + cry...
2.25
2
2024-11-18T22:36:55.734472+00:00
2019-08-24T19:03:48
b6f9e9a52c205187357152bbad087227553dadb2
{ "blob_id": "b6f9e9a52c205187357152bbad087227553dadb2", "branch_name": "refs/heads/master", "committer_date": "2019-08-24T19:03:48", "content_id": "55685f7780d12609be17335bdf0f36413bf7ad84", "detected_licenses": [ "MIT" ], "directory_id": "278fe7b839774d07ba74604fc2c907ec7148a424", "extension": "c"...
stackv2
#include <stdio.h> int main(void) { FILE * file = fopen("binary","r+b"); unsigned char opcode = 0x74; fseek(file,0x6a1,SEEK_SET); fwrite(&opcode,sizeof(opcode),1,file); fclose(file); return 0; }
2.0625
2
2024-11-18T22:36:55.805360+00:00
2021-01-11T04:01:03
e120bc493fe2a84217ed4ac690632d1ea44e9784
{ "blob_id": "e120bc493fe2a84217ed4ac690632d1ea44e9784", "branch_name": "refs/heads/master", "committer_date": "2021-01-11T04:01:03", "content_id": "4d312ecf7e74cd23d71c552693b6da1dadc74469", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "f4109a281e5171675a65711e7edcf4873bc7fbac", "extens...
stackv2
#include "common.h" double elapsed[NUM_TIMERS], start[NUM_TIMERS]; #ifdef __C2CUDA__ extern void init_matrix_dev(const int nodes, const int degree, const int* num_degrees, const int algo); extern void finalize_matrix_dev(); extern void matrix_op(const int nodes, const int degree, const int* restrict adjacency, ...
2.296875
2
2024-11-18T22:36:56.222203+00:00
2019-07-05T20:40:56
38108ca2cf6987f3e3201bb753d2633758bc84cb
{ "blob_id": "38108ca2cf6987f3e3201bb753d2633758bc84cb", "branch_name": "refs/heads/master", "committer_date": "2019-07-05T20:40:56", "content_id": "f6b8a29bdbb00dc4cb3637726ee409d95516276c", "detected_licenses": [ "MIT" ], "directory_id": "228e8e60648165e03e53f28d4b3f2545763edc0e", "extension": "h"...
stackv2
// File name: ExtremeC_examples_chapter4_3.h // Description: The header file which exposes public attributes and behavior functions // related to a list object. As you see, the attribute structure does not // disclose any of its members. #ifndef EXTREME_C_EXAMPLES_CHAPTER_4_3_H #define EXTREM...
2.1875
2
2024-11-18T22:36:56.461462+00:00
2021-06-02T18:57:18
b987a2f9e6ab3b020387488cd7fb0b87f19a2294
{ "blob_id": "b987a2f9e6ab3b020387488cd7fb0b87f19a2294", "branch_name": "refs/heads/main", "committer_date": "2021-06-02T18:57:18", "content_id": "33dbe76c86a41db89c902a5438679db5060cd268", "detected_licenses": [ "Unlicense" ], "directory_id": "d023d5d3f7204443fd5583be4d57562262c7bff1", "extension":...
stackv2
#ifndef __IRC_ARRAY_H #define __IRC_ARRAY_H #include "irc_base.h" #include <malloc.h> #include <string.h> #include <stdarg.h> typedef struct { void **data; ul_t size; } Array; Array array(ul_t size, ...) { void **arr = malloc(sizeof(void *) * size); va_list vlist; va_start(vlist, size); for...
2.515625
3
2024-11-18T22:36:56.787805+00:00
2022-11-05T17:46:59
4cc0522751eff1c749a2f58c9a1a355d17e413e2
{ "blob_id": "4cc0522751eff1c749a2f58c9a1a355d17e413e2", "branch_name": "refs/heads/master", "committer_date": "2022-11-05T17:46:59", "content_id": "b81848aa45c33aa206f55ca33578940949df24b7", "detected_licenses": [ "MIT" ], "directory_id": "c07d5913ecf3a23e5ba5b7fb1ed5f39550a86e96", "extension": "c"...
stackv2
/* > runsub.exe [/-B] [/-S | /-R] [/-O] [/R ROOT-DIR] [/T TIMEWAIT-SEC] [/TM TIMEWAIT-MILLIS] TARGET /-B ... 実行するプログラムの終了を待たずに次へ進む。 /-S ... サブディレクトリを無視する。 /-R ... 検索のルートディレクトリを無視する。 /-O ... Ignore obj Debug ROOT-DIR ... 検索のルートディレクトリを指定する。デフォ = 実行時のカレント ...
2.5625
3
2024-11-18T22:36:57.266371+00:00
2021-02-24T18:27:44
6c01cebac26a7ea7cc60babad14666e464961c0b
{ "blob_id": "6c01cebac26a7ea7cc60babad14666e464961c0b", "branch_name": "refs/heads/master", "committer_date": "2021-02-24T18:27:44", "content_id": "780f45aa33f53e5bf46c236686be2d3dee691521", "detected_licenses": [ "MIT" ], "directory_id": "36eb942ec11fe9ab1d7a868badaa27e96f464e53", "extension": "c"...
stackv2
#include<stdio.h> // declaring the recursive function int isPrime(int, int); int main() { printf("\n\n\t\tStudytonight - Best place to learn\n\n\n"); int num, prime; printf("Enter a positive number to check if Prime: "); scanf("%d", &num); prime = isPrime(num, num/2); if(prime == 1) { ...
3.734375
4
2024-11-18T22:36:57.393240+00:00
2023-08-22T17:23:00
44fd3cee484212d8d4ad586dea8924399b672b2c
{ "blob_id": "44fd3cee484212d8d4ad586dea8924399b672b2c", "branch_name": "refs/heads/master", "committer_date": "2023-08-22T17:23:46", "content_id": "7b0cefadbc7512ec0199b543f6b2cc61fe32b949", "detected_licenses": [ "MIT" ], "directory_id": "3a4f120f3211a1482b8ba826f4922fa741c5586e", "extension": "c"...
stackv2
/******************************************************************************/ /* */ /* PmodGPS.c -- Driver definitions for the PmodGPS */ /* ...
2.125
2
2024-11-18T22:36:57.467416+00:00
2017-05-26T07:02:23
0748d78dca5306fbb715fc4919400e4110374775
{ "blob_id": "0748d78dca5306fbb715fc4919400e4110374775", "branch_name": "refs/heads/master", "committer_date": "2017-05-26T07:02:23", "content_id": "06b9be7e66fccb6a82248d443761e7b6c7f6d342", "detected_licenses": [ "MIT-Modern-Variant" ], "directory_id": "765ae811f637a81bc040b34ceb14d9ac72763479", "...
stackv2
/* halt_child.c * Simple program to test that child processes can't halt the machine. * * NOTE: for some reason, user programs with global data structures * sometimes haven't worked in the Nachos environment. So be careful * out there! One option is to allocate data structures as * automatics within a proc...
2.59375
3
2024-11-18T22:36:57.741196+00:00
2020-07-21T23:49:55
824ef03d5804bd8da8e69b3ce80e0dc000253616
{ "blob_id": "824ef03d5804bd8da8e69b3ce80e0dc000253616", "branch_name": "refs/heads/master", "committer_date": "2020-07-21T23:49:55", "content_id": "333fb6e8d8ad3e44964b593e51b53e04ed688de5", "detected_licenses": [ "MIT" ], "directory_id": "548a2372a1387ec91f62c1b02f09942cf08bf3ef", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <getopt.h> #include "lib42.h" #define HELP "Usage: 42 [OPTION]...\n" \ "Returns the answer to the ultimate question of life.\n\n" \ " -s, --stdout Prints the answer to stdout.\n" \ ...
2.609375
3
2024-11-18T22:36:57.908143+00:00
2022-11-05T17:46:59
72aaae5dfb0db98d5c877082a178611bd9bce564
{ "blob_id": "72aaae5dfb0db98d5c877082a178611bd9bce564", "branch_name": "refs/heads/master", "committer_date": "2022-11-05T17:46:59", "content_id": "6815037f0b0ae96bd64b882ca3bccd8befa5354c", "detected_licenses": [ "MIT" ], "directory_id": "c07d5913ecf3a23e5ba5b7fb1ed5f39550a86e96", "extension": "c"...
stackv2
/* rept.exe [/F] [/I] [/P 置き換え前パターン 置き換え後パターン]... 入力ファイル 出力ファイル */ #include "C:\Factory\Common\all.h" static autoList_t *FindPtns; static autoList_t *DestPtns; static int ForceMode; static int IgnoreCaseFlag; static void RepText_Main(char *rFile, char *wFile) { char *text = readText_b(rFile); char *findPtn; uint...
2.734375
3
2024-11-18T22:36:58.030004+00:00
2023-09-01T08:20:15
ba0eaa5646998370bbc9755e405b65655a6a5868
{ "blob_id": "ba0eaa5646998370bbc9755e405b65655a6a5868", "branch_name": "refs/heads/master", "committer_date": "2023-09-01T08:21:05", "content_id": "ac3f804717945aea4189979158d4b7c8f2aa594d", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "820b6af9fd43b270749224bb278e5f714f655ac9", "extens...
stackv2
/* * Copyright(C) 1999-2020 National Technology & Engineering Solutions * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with * NTESS, the U.S. Government retains certain rights in this software. * * See packages/seacas/LICENSE for details */ /***************************************************...
2.09375
2
2024-11-18T22:36:58.536652+00:00
2023-07-12T18:56:26
de3dfbb98f93593708ccf45ba5e73c97c456b537
{ "blob_id": "de3dfbb98f93593708ccf45ba5e73c97c456b537", "branch_name": "refs/heads/main", "committer_date": "2023-07-12T18:56:26", "content_id": "2ce28d6ffe3eb0d2313a9983e16bc85b42248a30", "detected_licenses": [ "MIT" ], "directory_id": "1bd90f1d200b381a5ff3aaeaad3ef7426ee15253", "extension": "c", ...
stackv2
/* Using ESP32 MCPWM to control a DRV8833 DC Motor Control IC (And those compatible with its "two PWM pins per motor" control scheme.) Reference: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/mcpwm.html Portions copied from Espressif MCPWM sample code https://github.com/espres...
2.234375
2
2024-11-18T22:36:58.627473+00:00
2022-01-31T04:36:44
a4822db879141b64706152c2f431a6ec85b1c3da
{ "blob_id": "a4822db879141b64706152c2f431a6ec85b1c3da", "branch_name": "refs/heads/master", "committer_date": "2022-01-31T04:36:44", "content_id": "404482331a8d859fb306056d3c45e42c1b080fc2", "detected_licenses": [ "MIT" ], "directory_id": "e1c02087e71617b1bdfb6ed8f139a35f0e8ce9c7", "extension": "c"...
stackv2
/* This app waits some time for a button press, * lights an led if button is pressed down. */ #include <bcm2835.h> #include <stdio.h> #define BTN 17 // or like: RPI_GPIO_P1_12 #define LED 4 // // get voltage level of pin to ground (is connected or not) #define pin_level bcm2835_gpio_lev(BTN) int main() { if (!bcm...
3.21875
3
2024-11-18T22:36:58.706257+00:00
2020-03-20T04:50:03
48eae8513d705595506ff626df31c4441d6c8336
{ "blob_id": "48eae8513d705595506ff626df31c4441d6c8336", "branch_name": "refs/heads/master", "committer_date": "2020-03-20T04:50:03", "content_id": "cf826aa051074fbded11e54cf9171b8a27090c45", "detected_licenses": [ "Apache-2.0" ], "directory_id": "1f5660e858391e05944c57cfb221f7f555904bcc", "extensio...
stackv2
#include <stdio.h> #include <cs50.h> // Ask the user their name, and then say hello to them int main(void) { string usersName = get_string("What is your name? "); printf("hello, %s\n", usersName); }
2.75
3
2024-11-18T22:36:58.884313+00:00
2019-04-12T06:13:01
d315be4e6cb9019aa77a0460b9c4d9cec2a860e1
{ "blob_id": "d315be4e6cb9019aa77a0460b9c4d9cec2a860e1", "branch_name": "refs/heads/master", "committer_date": "2019-04-12T06:13:01", "content_id": "3d63852adb72ceca1893e8be07040374297cf050", "detected_licenses": [ "MIT" ], "directory_id": "4765bd42b54320e5afe84bdb0f9fb0987972deb4", "extension": "c"...
stackv2
// A packer that executes a second (embedded) ELF // // Copyright (c) 2018 Alexandre-Xavier Labonté-Lamoureux // // 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, inclu...
2.75
3
2024-11-18T22:36:58.958034+00:00
2021-09-29T00:05:16
dc250602e9e5622135f92d194c5f4d60c0fee6af
{ "blob_id": "dc250602e9e5622135f92d194c5f4d60c0fee6af", "branch_name": "refs/heads/0616325", "committer_date": "2021-09-29T00:05:16", "content_id": "47f593b56bb1ee6b4692706f9b8350cddfec6524", "detected_licenses": [ "MIT" ], "directory_id": "0efc0abd0a2b7cce926db7913a6940bd91441ff8", "extension": "h...
stackv2
#ifndef VFS_H #define VFS_H #include <stddef.h> #include "util.h" // super block for a file system typedef struct super_block { cdl_list sb_list; // sb list of fs struct dentry *root; // root dentry of this sb struct dentry *mnt_p; // dentry this sb mount on } super_block; // unique typedef struct ino...
2.390625
2
2024-11-18T22:36:59.013106+00:00
2016-04-11T14:48:23
86d29e4f826b276788c6254da1b4919e3e973688
{ "blob_id": "86d29e4f826b276788c6254da1b4919e3e973688", "branch_name": "refs/heads/master", "committer_date": "2016-04-11T14:48:23", "content_id": "ec3b941748a83f4fdf99b43d8a1d45aea0ed1c90", "detected_licenses": [ "BSD-3-Clause", "BSD-2-Clause" ], "directory_id": "7d73e72c7bc57278c5fd6cfea3ea5418...
stackv2
#include "buffer.h" #include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> ssize_t writing_hook(server_pt srv, int fd, void *data, size_t len) { char prefix[5] = "hook-"; size_t totalLen = len + strlen(prefix) + 1; char *encryptData = malloc( totalLen ); strcpy( encryptData, pre...
2.75
3
2024-11-18T22:36:59.651747+00:00
2015-12-08T01:14:34
44fb371dfc9c948da029e7d10ecf1021025c0e0b
{ "blob_id": "44fb371dfc9c948da029e7d10ecf1021025c0e0b", "branch_name": "refs/heads/master", "committer_date": "2015-12-08T01:14:34", "content_id": "4f812a7c19d5b2e7a04acff0d563b9c25b1ff86c", "detected_licenses": [ "MIT" ], "directory_id": "d6f778a94209554b89f31fee6ab0e34c51963661", "extension": "h"...
stackv2
#ifndef CHLORINE2 #define CHLORINE2 #include <sys/time.h> #include <pthread.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <stdarg.h> #include <string.h> #ifndef CHLORINE_NO_COLORS #define __CL_RESET "\x1B[0m" #define __CL_BOLD "\x1B[1m" #define __CL_UL "\x1B[4m" #define...
2.109375
2
2024-11-18T22:36:59.706765+00:00
2022-12-04T16:09:53
999781692b1fed70f1aa2c7b5d03543d452807cb
{ "blob_id": "999781692b1fed70f1aa2c7b5d03543d452807cb", "branch_name": "refs/heads/master", "committer_date": "2023-06-23T10:31:16", "content_id": "292940a89da3bbb080f698bd244a7317c078b886", "detected_licenses": [ "MIT" ], "directory_id": "4d7da853a34ac4371bf48d516b2a183a789afe63", "extension": "h"...
stackv2
#ifndef _SWAYIDLE_LOG_H #define _SWAYIDLE_LOG_H #include <stdarg.h> #include <string.h> #include <errno.h> enum log_importance { LOG_SILENT = 0, LOG_ERROR = 1, LOG_INFO = 2, LOG_DEBUG = 3, LOG_IMPORTANCE_LAST, }; void swayidle_log_init(enum log_importance verbosity); #ifdef __GNUC__ #define _ATT...
2
2
2024-11-18T22:36:59.922884+00:00
2018-06-22T08:13:56
3c339fdf26c66b81700ae5847275a63e545472c5
{ "blob_id": "3c339fdf26c66b81700ae5847275a63e545472c5", "branch_name": "refs/heads/master", "committer_date": "2018-06-22T08:13:56", "content_id": "dc29bf425b40bd9370d10519c8992dd09a5d5f4e", "detected_licenses": [ "MIT" ], "directory_id": "b095b03fed35257501500b8dc440e637fc9961d2", "extension": "c"...
stackv2
#include "usbd_msc_mem.h" #include "usb_conf.h" #include "w25qxx.h" //最大支持的设备数,2个 #define STORAGE_LUN_NBR 0 ////////////////////////////自己定义的一个标记USB状态的寄存器/////////////////// //bit0:表示电脑正在向SD卡写入数据 //bit1:表示电脑正从SD卡读出数据 //bit2:SD卡写数据错误标志位 //bit3:SD卡读数据错误标志位 //bit4:1,表示电脑有轮询操作(表明连接还保持着) vu8 USB_STATUS_REG=0; ///////////...
2.328125
2
2024-11-18T22:37:00.368219+00:00
2021-01-29T07:09:02
ec404f5d8de4a8c5bbb45628a6afefca2e557bf2
{ "blob_id": "ec404f5d8de4a8c5bbb45628a6afefca2e557bf2", "branch_name": "refs/heads/master", "committer_date": "2021-01-29T07:09:02", "content_id": "e495140ad3fc0621677c0f800711644ad2088d37", "detected_licenses": [ "MIT" ], "directory_id": "d223f5f893c4173256eb8b94336f02ad2757459d", "extension": "c"...
stackv2
/* Complete the function, marks_summation(int* marks, char gender, int number_of_students) which returns the total sum of: 1. marks of boys if gender = b 2. marks of girls if gender = g The locked code stub reads the elements of marks along with gender. Then, it calls the function marks_summation(marks, gender, num...
4.03125
4
2024-11-18T22:37:00.813786+00:00
2015-02-06T09:02:37
8c072d2931b1eaf21fb8cc7691f738f9a4df4f4d
{ "blob_id": "8c072d2931b1eaf21fb8cc7691f738f9a4df4f4d", "branch_name": "refs/heads/master", "committer_date": "2015-02-06T09:02:37", "content_id": "09428f2b26385333cc8aaa17b33475044a685c32", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "94d94af4917e337355cceb81251cd4e10e0bc077", "extens...
stackv2
/*********************************************************/ /* This source code copyright (c) 1991-2001, Aaron Giles */ /* See the Read Me file for licensing information. */ /* Contact email: mac@aarongiles.com */ /*********************************************************/ #if THINK_C #includ...
2.03125
2
2024-11-18T22:37:00.995834+00:00
2017-02-01T18:22:23
52627430201bb9ab49f0a5425862039ca5a8f5ca
{ "blob_id": "52627430201bb9ab49f0a5425862039ca5a8f5ca", "branch_name": "refs/heads/master", "committer_date": "2017-02-01T18:22:23", "content_id": "23fe7a27a12828557caa71af686734e1a7eb5556", "detected_licenses": [ "MIT" ], "directory_id": "17629b76f4c97052ff5cbfae38405aa350613492", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #define MAX_LEN 10 int main(int argc, char** argv) { if (argc < 3) exit(1); int count_files = atoi(argv[1]), count_num = atoi(argv[2]), offset = 1; char count_num_str[MAX_LEN]; sprintf(count_num_str, "%d", count_num); for (int i ...
2.375
2
2024-11-18T22:37:01.095498+00:00
2017-01-19T02:02:50
89c880a823596f992dd012e26094c131e6d92a8c
{ "blob_id": "89c880a823596f992dd012e26094c131e6d92a8c", "branch_name": "refs/heads/master", "committer_date": "2017-01-19T02:02:50", "content_id": "cb28bf5e7a2ebb393a851cd78d982f1a1d3aebf7", "detected_licenses": [ "PostgreSQL", "BSD-2-Clause" ], "directory_id": "4d5f2cdc0b7120f74ba6f357b21dac063e...
stackv2
/* pg_logger: stdin-to-syslog gateway for postgresql. * * Copyright 2001 by Nathan Myers <ncm@nospam.cantrip.org> * This software is distributed free of charge with no warranty of any kind. * You have permission to make copies for any purpose, provided that (1) * this copyright notice is retained unchanged, and (2...
2.453125
2
2024-11-18T22:37:02.058716+00:00
2019-05-10T11:47:18
e9aec6c0f81666851bdc49310b9d2c586e8e5f49
{ "blob_id": "e9aec6c0f81666851bdc49310b9d2c586e8e5f49", "branch_name": "refs/heads/master", "committer_date": "2019-11-07T14:44:27", "content_id": "2bbf0e76a709d8df02e5f3bf943b0a7873c1b14d", "detected_licenses": [ "MIT" ], "directory_id": "cc4068055b4b1dd359641cf8b54a6d3e6fe7d2f3", "extension": "c"...
stackv2
#include <kcapi.h> #include <time.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define TEST_COUNT 5 #define SECONDS 1 int test=0; int test_async(uint8_t key_length,const char* ciphername){ //init handle struct kcapi_handle *handle1; if(kcapi_cipher_init(&handle1,ciphername,KCAPI_INIT_AI...
2.59375
3
2024-11-18T22:37:02.284040+00:00
2023-08-31T11:13:23
4e526fed68baf2cf02ecc7afcddd469a6d3458d6
{ "blob_id": "4e526fed68baf2cf02ecc7afcddd469a6d3458d6", "branch_name": "refs/heads/master", "committer_date": "2023-08-31T11:13:23", "content_id": "33cfec6d8bf9179a52cdfb2aa1e7452caebd5fe7", "detected_licenses": [ "MIT" ], "directory_id": "549270020f6c8724e2ef1b12e38d11b025579f8d", "extension": "c"...
stackv2
#include <stdint.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #ifndef LIBDWARF_NEW_STRUCTURE #include "dwarf.h" #include "libdwarf.h" #else #include "libdwarf/libdwarf.h" #endif void example1(Dwarf_Die somedie) { Dwarf_Debug dbg = 0; Dwarf_Signed atcount; Dwarf_Attribute *atli...
2.109375
2
2024-11-18T22:37:02.406887+00:00
2020-06-28T17:18:49
06c585f53df16bb5fb0554bf7ee03a2a76f57bbc
{ "blob_id": "06c585f53df16bb5fb0554bf7ee03a2a76f57bbc", "branch_name": "refs/heads/master", "committer_date": "2020-06-28T17:18:49", "content_id": "acc4fae9c532b555433201627ac7735f8db0e86b", "detected_licenses": [ "MIT" ], "directory_id": "75f10d4042ea53b419d2df1a7f568b93144de294", "extension": "c"...
stackv2
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <keystone/keystone.h> #include <unicorn/unicorn.h> #include "emu.h" #include <capstone/capstone.h> #define ADDRESS 0x1000000 csh handle; static void hook_code64(uc_engine ...
2.34375
2
2024-11-18T22:37:02.538433+00:00
2013-09-23T20:10:32
4a7cc36f2c2fcb6ba9539caca017fa12aa764eac
{ "blob_id": "4a7cc36f2c2fcb6ba9539caca017fa12aa764eac", "branch_name": "refs/heads/master", "committer_date": "2013-09-23T20:10:32", "content_id": "192881e43a593e94df6aec861c3db65dee5d98fb", "detected_licenses": [ "BSD-2-Clause" ], "directory_id": "4ecd9ef08adb9e5d35db012d14a3a8399376d050", "extens...
stackv2
#include "socketcan.h" #include "printd.h" #include <string.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <poll.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <net/if.h> #include <linux/can.h> #include <linux/can/raw.h> /* #ifndef AF_CAN #define AF_CAN PF_CA...
2.46875
2
2024-11-18T22:37:02.603174+00:00
2016-05-18T19:42:46
f71ea97816a7a8cf1aabdbdd0174dda881da8e53
{ "blob_id": "f71ea97816a7a8cf1aabdbdd0174dda881da8e53", "branch_name": "refs/heads/master", "committer_date": "2016-05-18T19:42:46", "content_id": "048236994a32f08e694b7aa30e9d448ea33df4d4", "detected_licenses": [ "MIT" ], "directory_id": "de6604045fb627b86b6bb03c9f99fc69ed01a954", "extension": "c"...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ksu_common.h> extern void ora_month(sqlite3_context * context, int argc, sqlite3_value ** argv) { char *arg1; int y; int m; if (ksu_prm_ok(context, ar...
2
2
2024-11-18T22:37:02.659019+00:00
2017-03-11T11:09:43
751c0cdc29dfd588e6a6e25f46422dc945e88c9b
{ "blob_id": "751c0cdc29dfd588e6a6e25f46422dc945e88c9b", "branch_name": "refs/heads/master", "committer_date": "2017-03-11T11:09:43", "content_id": "8dbb0a69c5993302ff1dfb769e710d874cfc2a24", "detected_licenses": [ "MIT" ], "directory_id": "838a078bd8b496af74f849914542ac57f7dd4e33", "extension": "c"...
stackv2
#include "WCTrieTree.h" /* macro definition */ #define MAX_CHARACTER_NUMBER (26) /* struct definition */ struct WCTrieNode { char character; struct WCTrieNode * child[MAX_CHARACTER_NUMBER]; WCIndex * index; }; struct WCTrieTree { struct WCTrieNode * root; int count; int unique; }; /* turn ch...
3.3125
3
2024-11-18T22:37:03.414772+00:00
2017-04-20T10:17:49
b2dc43f5e666cb5fc090e1ef667d98133345c6c1
{ "blob_id": "b2dc43f5e666cb5fc090e1ef667d98133345c6c1", "branch_name": "refs/heads/master", "committer_date": "2017-04-20T10:17:49", "content_id": "a47e6dc19dda4cecd58f91c49df4f0c77dd25c92", "detected_licenses": [ "Apache-2.0" ], "directory_id": "ebd585fdafb22d31fcd6d04b209f81e88d1a2083", "extensio...
stackv2
/****************************************************************************** ----------------------------------------------------------------------------- Copyright (c) 2011-2012 QUALCOMM Technologies Incorporated. All Rights Reserved. QUALCOMM Proprietary and Confidential. ----------------------------------...
2.125
2
2024-11-18T22:37:03.485272+00:00
2013-01-11T06:42:12
df578fdb5d81b76e5b5765d3611b6be0de2bb7e5
{ "blob_id": "df578fdb5d81b76e5b5765d3611b6be0de2bb7e5", "branch_name": "refs/heads/master", "committer_date": "2013-01-11T06:42:12", "content_id": "1cd50331748fec87b8d2265ea6705247d823f4a0", "detected_licenses": [ "BSD-3-Clause" ], "directory_id": "f44869b9ff34f4c57905080ff1c25e25f3b63892", "extens...
stackv2
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <discodb.h> static void read_pairs(FILE *in, struct ddb_cons *db) { char *key; char *value; uint32_t lc = 0; while(fscanf(in, "%as %as\n", &key, &value) == 2){ struct ddb_entry key_e = {.data = key, .length = strlen(key)}; ...
3.03125
3