language
stringclasses
1 value
code
stringlengths
6
12.3k
avg_line_length
float64
2.79
91
line_count
float64
1
367
lang_specific_parse
stringlengths
60
1.08M
ast_node_count
int64
2
6.81k
num_errors
int64
0
499
universal_schema
stringlengths
799
825k
__index_level_0__
int64
0
81.2k
c
#include "init/initcall.h" #include "bug/debug.h" #include "arch/pit.h" #include "arch/tsc.h" #include "log/log.h" static uint64_t initial; static uint64_t tsc_read() { return rdtsc() - initial; } clock_t tsc_clock = { .name = "tsc", .rating = 7, .freq = 0, .read = tsc_read, }; void tsc_busywai...
24.2
51
(translation_unit) "#include "init/initcall.h"\n#include "bug/debug.h"\n#include "arch/pit.h"\n#include "arch/tsc.h"\n#include "log/log.h"\n\nstatic uint64_t initial;\n\nstatic uint64_t tsc_read() {\n return rdtsc() - initial;\n}\n\nclock_t tsc_clock = {\n .name = "tsc",\n .rating = 7,\n\n .freq = 0,\n ....
470
1
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 24.2, "nodes": 249, "errors": 0, "source_hash": "49d8a2782bd416e2e136a44474224cf71c106891a55f5bae8cf24c767e2999ad", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,400
c
// CTreeCtrlEx // This class extends the CTreeCtrl class. // Date: February 2000 //----------------------------------------------------------------------------------------------------------------- #pragma once class BObject; class BObjects; class CTreeCtrlEx : public CTreeCtrl { // Construction public: CTreeCtr...
36.74
62
(translation_unit) "// CTreeCtrlEx\n// This class extends the CTreeCtrl class.\n// Date: February 2000\n//-----------------------------------------------------------------------------------------------------------------\n\n\n#pragma once\n\n\nclass BObject;\nclass BObjects;\n\n\nclass CTreeCtrlEx : public CTreeCtrl\n{\...
386
8
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 36.74, "nodes": 251, "errors": 0, "source_hash": "6d2bc382cd3b5b621fc713d9c33dc9d1b3dd9e1fc3e14e84ddd2def06a55f3ef", "categorized_nodes": 188}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,401
c
// // CUSViewController.h // CUSLayout // // Created by zhangyu on 14-2-21. // // #import <UIKit/UIKit.h> @interface CUSViewController : UIViewController @end
15.2
10
(translation_unit) "//\n// CUSViewController.h\n// CUSLayout\n//\n// Created by zhangyu on 14-2-21.\n//\n//\n\n#import <UIKit/UIKit.h>\n\n@interface CUSViewController : UIViewController\n\n@end\n" (comment) "//" (comment) "// CUSViewController.h" (comment) "// CUSLayout" (comment) "//" (comment) "// Cre...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 15.2, "nodes": 9, "errors": 0, "source_hash": "8a700888a34dd4a80a0cf7b42091febfa84e20dcc11c4dd81629e8d3562dcf53", "categorized_nodes": 4}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <UIK...
13,402
c
/* * Implementation independent bits of the Floppy driver. * * much of this file is derived from what was originally the Q40 floppy driver. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. ...
23.71
213
(translation_unit) "/*\n * Implementation independent bits of the Floppy driver.\n *\n * much of this file is derived from what was originally the Q40 floppy driver.\n *\n * This file is subject to the terms and conditions of the GNU General Public\n * License. See the file "COPYING" in the main directory of this arch...
1,192
2
{"language": "c", "success": true, "metadata": {"lines": 213, "avg_line_length": 23.71, "nodes": 756, "errors": 0, "source_hash": "f1d67bda9f0be01ac842d00a85834f1a0058454dd3371f3d48d039ff8b29c69a", "categorized_nodes": 499}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,403
c
/** \file cellviews.h * \brief This file defines classes representing various cell views. * * \author <NAME> * \date 2018/07/10 */ #ifndef CBAG_SCHEMATIC_CELLVIEW_INFO_H #define CBAG_SCHEMATIC_CELLVIEW_INFO_H #include <array> #include <string> #include <vector> #include <cbag/common/param_map.h> namespace...
24.58
31
(translation_unit) "/** \file cellviews.h\n * \brief This file defines classes representing various cell views.\n *\n * \author <NAME>\n * \date 2018/07/10\n */\n\n#ifndef CBAG_SCHEMATIC_CELLVIEW_INFO_H\n#define CBAG_SCHEMATIC_CELLVIEW_INFO_H\n\n#include <array>\n#include <string>\n#include <vector>\n\n#include <c...
161
13
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 24.58, "nodes": 104, "errors": 0, "source_hash": "f14a896b12c57abc3fb1c207a736d7a2e5f6dd54a5216edc7759233543935604", "categorized_nodes": 80}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,404
c
//---------------------------------------------------------------------------- //Chiika // //This program is free software; you can redistribute it and/or modify //it under the terms of the GNU General Public License as published by //the Free Software Foundation; either version 2 of the License, or //(at your option) ...
36.26
34
(translation_unit) "//----------------------------------------------------------------------------\n//Chiika\n//\n//This program is free software; you can redistribute it and/or modify\n//it under the terms of the GNU General Public License as published by\n//the Free Software Foundation; either version 2 of the Licens...
113
6
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 36.26, "nodes": 69, "errors": 0, "source_hash": "07535969c589d1a6bba6690885b58db7f10fff0495d8ee86fe95e1f9f5ae46ee", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,405
c
typedef struct { int a; }A;
9.67
3
(translation_unit) "typedef struct {\n int a;\n}A;\n" (type_definition) "typedef struct {\n int a;\n}A;" (typedef) "typedef" (struct_specifier) "struct {\n int a;\n}" (struct) "struct" (field_declaration_list) "{\n int a;\n}" ({) "{" (field_declaration) "int a;" ...
14
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 9.67, "nodes": 8, "errors": 0, "source_hash": "542be54052e096041280d81653ce27396d36a30a03931cbb34c9ae669ca33f05", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "type_definition", "text": "typedef st...
13,406
c
// // NSURL+DJURL.h // CategoryBaseDemo // // Created by Jone on 2017/5/24. // Copyright © 2017年 河南东京Web俱乐部. All rights reserved. // #import <Foundation/Foundation.h> @interface NSURL (DJURL) /** * 返回请求的参数 */ - (NSDictionary *)DJ_queryDictionary; /** * @return URL 返回完成的链接请求 * @param queryDictionary 请求参数 ...
27.62
40
(translation_unit) "//\n// NSURL+DJURL.h\n// CategoryBaseDemo\n//\n// Created by Jone on 2017/5/24.\n// Copyright © 2017年 河南东京Web俱乐部. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface NSURL (DJURL)\n/**\n * 返回请求的参数\n */\n- (NSDictionary *)DJ_queryDictionary;\n\n/**\n * @return URL 返回完成的链...
228
23
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 27.62, "nodes": 150, "errors": 0, "source_hash": "8b73f95340fd3e9b248e625e9c08d10719eeed3470f9a1986f4a7f44697ddf70", "categorized_nodes": 77}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "on/Found...
13,407
c
#ifndef __COMMON_H__ #define __COMMON_H__ // #define DEBUG // #define DIFF_TEST #ifdef __ISA_riscv64__ # define ISA64 #endif #if _SHARE // do not enable these features while building a reference design #undef DIFF_TEST #undef DEBUG #endif /* You will define this macro in PA2 */ #define HAS_IOE #include <stdint.h> ...
19.42
36
(translation_unit) "#ifndef __COMMON_H__\n#define __COMMON_H__\n\n// #define DEBUG\n// #define DIFF_TEST\n\n#ifdef __ISA_riscv64__\n# define ISA64\n#endif\n\n#if _SHARE\n// do not enable these features while building a reference design\n#undef DIFF_TEST\n#undef DEBUG\n#endif\n\n/* You will define this macro in PA2 */\n...
115
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 19.42, "nodes": 101, "errors": 0, "source_hash": "139a9f998a9dda567e77b64f0f796a0fcd5a66e296473d5006f99c9d4aadc9a5", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,408
c
#include <stdio.h> //小技巧:自动计数的枚举类 enum COLOR { RED, YELLOW, GREEN, NumCOLORS //只要在后面跟一个这个,因为下标是3,就能表示前面有3个枚举类型的值 }; int main(int argc, char const *argv[]) { int color = -1; char *ColorNames[NumCOLORS] = {"red", "yellow", "green"}; char *colorName = NULL; printf("输入你喜欢颜色的代码:"); sca...
19.96
25
(translation_unit) "#include <stdio.h>\n\n//小技巧:自动计数的枚举类\n\nenum COLOR\n{\n RED,\n YELLOW,\n GREEN,\n NumCOLORS //只要在后面跟一个这个,因为下标是3,就能表示前面有3个枚举类型的值\n};\n\nint main(int argc, char const *argv[])\n{\n int color = -1;\n char *ColorNames[NumCOLORS] = {"red", "yellow", "green"};\n char *colorName = NULL...
180
0
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 19.96, "nodes": 95, "errors": 0, "source_hash": "b1edb2ad5a90ace61eb6a7a8cc546b75977fcb4f3bfe453670c5cc6fed826f32", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,409
c
// // DFIGL2BaseView.h // DFI // // Created by vanney on 2017/5/11. // Copyright © 2017年 vanney9. All rights reserved. // /*************************************************** * D3 visual base view * * 1. move layer z index when highlight * * 2. add d3 layer ...
33.09
22
(translation_unit) "//\n// DFIGL2BaseView.h\n// DFI\n//\n// Created by vanney on 2017/5/11.\n// Copyright © 2017年 vanney9. All rights reserved.\n//\n\n/***************************************************\n * D3 visual base view *\n * 1. move layer z index when highlight *\n * ...
66
8
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 33.09, "nodes": 38, "errors": 0, "source_hash": "bb19cb6e0f7d2de596aa9145e79227cd10d544275d3ce060437894e507da1a01", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIK...
13,410
c
/************ * device scan program used libudev and evdev. http://www.signal11.us/oss/udev/ ************/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <libgen.h> #include <libudev.h> #if !defined ARRAY_SIZE #define ARRAY_SIZE(x) (sizeof(x) / sizeof( ...
36.82
285
(translation_unit) "/************\n * device scan program used libudev and evdev.\n\n http://www.signal11.us/oss/udev/\n ************/\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <errno.h>\n#include <unistd.h>\n#include <libgen.h>\n\n#include <libudev.h>\n\n#if !defined ARRAY_SIZE\n#define ...
2,101
0
{"language": "c", "success": true, "metadata": {"lines": 285, "avg_line_length": 36.82, "nodes": 1166, "errors": 0, "source_hash": "884ac48a189c73b74c565a25586c5cb13b5fac460ab64fb9f15a693aced7b4ef", "categorized_nodes": 752}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
13,411
c
#pragma once enum ETextureTypes { AlbedoIdx, NumTextureTypes }; enum class EBSDFTypes { Lambertian, Mirror, Glass, Disney, NumBSDFTypes }; struct MaterialTexture { AssetHandle Handle = {}; uint32_t HandleId = UINT32_MAX; Texture* Texture = nullptr; }; struct Material { Material() { for (int& Texture...
24.54
81
(translation_unit) "#pragma once\n\nenum ETextureTypes\n{\n AlbedoIdx,\n NumTextureTypes\n};\n\nenum class EBSDFTypes\n{\n Lambertian,\n Mirror,\n Glass,\n Disney,\n NumBSDFTypes\n};\n\nstruct MaterialTexture\n{\n AssetHandle Handle = {};\n uint32_t HandleId = UINT32_MAX;\n Texture* Texture = nullptr;\n};\n\nstruct M...
510
11
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 24.54, "nodes": 312, "errors": 0, "source_hash": "e9d49b21446f12e0dc48f207feda3c18279f165effb4ff419cb83208f3766a80", "categorized_nodes": 207}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,412
c
#ifndef JWIN_X11_H #define JWIN_X11_H #include <JWin/jwin_platform.h> #ifdef JUTIL_LINUX #define JWIN_CREATE_PROC_EXTERN(_n, _p) extern JWinType_##_n JWin##_n; #define JWIN_CREATE_PROC(_n, _p) JWinType_##_n JWin##_n = (JWinType_##_n) glXGetProcAddressARB((const GLubyte*)#_p); typedef Window XWindow; namespace jwin ...
33.81
101
(ERROR) "#ifndef JWIN_X11_H\n#define JWIN_X11_H\n\n#include <JWin/jwin_platform.h>\n#ifdef JUTIL_LINUX\n\n#define JWIN_CREATE_PROC_EXTERN(_n, _p) extern JWinType_##_n JWin##_n;\n#define JWIN_CREATE_PROC(_n, _p) JWinType_##_n JWin##_n = (JWinType_##_n) glXGetProcAddressARB((const GLubyte*)#_p);\n\ntypedef Window XWindow...
793
19
{"language": "c", "success": true, "metadata": {"lines": 101, "avg_line_length": 33.81, "nodes": 527, "errors": 0, "source_hash": "6e76d1abd758bd7bd78ae81fbf6a787b36e9774b6480ee614154143c429a1ce4", "categorized_nodes": 334}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef JWIN_X11_H\n#def...
13,413
c
/* This file is part of TACS: The Toolkit for the Analysis of Composite Structures, a parallel finite-element code for structural and multidisciplinary design optimization. Copyright (C) 2014 Georgia Tech Research Corporation TACS is licensed under the Apache License, Version 2.0 (the "License"); you may ...
32.28
177
(translation_unit) "/*\n This file is part of TACS: The Toolkit for the Analysis of Composite\n Structures, a parallel finite-element code for structural and\n multidisciplinary design optimization.\n\n Copyright (C) 2014 Georgia Tech Research Corporation\n\n TACS is licensed under the Apache License, Version 2.0 ...
806
7
{"language": "c", "success": true, "metadata": {"lines": 177, "avg_line_length": 32.28, "nodes": 520, "errors": 0, "source_hash": "3d23e030a486be3dd27c3f569bc65cb330356ad36dbc006f95673016323d0936", "categorized_nodes": 282}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,414
c
#ifndef SENG_ARGUMENT_H #define SENG_ARGUMENT_H #include <stdlib.h> #include "common.h" SENGAPIBEGIN /** * \brief Argument Type enum. */ typedef enum argument_type { ARG_TYPE_OPTION, ARG_TYPE_REQUIRED, ARG_TYPE_COMMAND } argument_type; /** * \brief Argument struct. * \sa Argument_Create() * \sa Argument_De...
17.32
40
(translation_unit) "#ifndef SENG_ARGUMENT_H\n#define SENG_ARGUMENT_H\n\n#include <stdlib.h>\n#include "common.h"\n\nSENGAPIBEGIN\n\n/**\n* \brief Argument Type enum.\n*/\ntypedef enum argument_type\n{\n ARG_TYPE_OPTION,\n ARG_TYPE_REQUIRED,\n ARG_TYPE_COMMAND\n} argument_type;\n\n/**\n* \brief Argument struct.\n* \sa ...
97
0
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 17.32, "nodes": 68, "errors": 0, "source_hash": "e1029f6a51279b1f7a570170a05de1d8e633895179cee23c6e7371cce55d333e", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,415
c
#ifndef __BAKEPROJECTORS_TOOL_H__ #define __BAKEPROJECTORS_TOOL_H__ ////////////////////////////////////////////////////////////////////////////////////////////////// // // file: bakeProjectors_tool.cpp // // Author <NAME> (Neill3d) // // // GitHub page - https://github.com/Neill3d/MoPlugs // Licensed under BSD 3-Clau...
35.48
102
(translation_unit) "#ifndef __BAKEPROJECTORS_TOOL_H__\n#define __BAKEPROJECTORS_TOOL_H__\n\n//////////////////////////////////////////////////////////////////////////////////////////////////\n//\n// file: bakeProjectors_tool.cpp\n//\n// Author <NAME> (Neill3d)\n//\n//\n// GitHub page - https://github.com/Neill3d/MoPlug...
672
8
{"language": "c", "success": true, "metadata": {"lines": 102, "avg_line_length": 35.48, "nodes": 454, "errors": 0, "source_hash": "e5eba3cf80e8994af678523c9dd332ded3f144eb23fe246f3b1d50398e827433", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,416
c
#include <stdio.h> #include <stdlib.h> /* */ int *num; int main() { num = (int *) malloc(3 * sizeof(int)); *(num+1) = 88; *(num+2) = 99; printf("\n\n o tamanho de num+1 = %i \n\n", sizeof(*num+1)); printf("O conteudo de num+1 = %i ", *(num+1)); printf("\n\n o tamanho de nun+2 = %i \n\n", sizeof*(num+2));...
24.95
19
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\n/* */\n\nint *num;\n\nint main() {\n \n num = (int *) malloc(3 * sizeof(int));\n *(num+1) = 88;\n *(num+2) = 99;\n \n printf("\n\n o tamanho de num+1 = %i \n\n", sizeof(*num+1));\n printf("O conteudo de num+1 = %i ", *(num+1));\n printf("\n\n o tamanho de...
226
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.95, "nodes": 136, "errors": 0, "source_hash": "cbec2c69019a0d1301ae7a3eecf3db8d43ab90cbdefee32a5f9d3fe5c5f55105", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,417
c
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved #pragma once #include "Interop/RPCs/RPCTypes.h" namespace SpatialGDK { template <typename Payload> class RingBufferSerializer_Schema { public: RingBufferSerializer_Schema(Worker_ComponentId InComponentId, Schema_FieldId InCountFieldId, Schema_Field...
33.66
65
(translation_unit) "// Copyright (c) Improbable Worlds Ltd, All Rights Reserved\n\n#pragma once\n\n#include "Interop/RPCs/RPCTypes.h"\n\nnamespace SpatialGDK\n{\ntemplate <typename Payload>\nclass RingBufferSerializer_Schema\n{\npublic:\n RingBufferSerializer_Schema(Worker_ComponentId InComponentId, Schema_FieldId InCo...
538
17
{"language": "c", "success": true, "metadata": {"lines": 65, "avg_line_length": 33.66, "nodes": 297, "errors": 0, "source_hash": "35bc37a5e75b8fc5bb67d0b23becc8e5398dd1c96b589b91624c7c5a375f45fa", "categorized_nodes": 230}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,418
c
#include "ksz8081rnb.h" #include "main.h" #include <stdio.h> #define RESET_ASSERT_DELAY_US 500UL #define BOOTUP_DELAY_US 100UL void phy_bootstrap() { GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOA_CLK_ENABLE(); /* Initialization of DWT module (cortex-m4)*/ DWT_In...
38.45
44
(translation_unit) "#include "ksz8081rnb.h"\n\n#include "main.h"\n#include <stdio.h>\n#define RESET_ASSERT_DELAY_US 500UL\n#define BOOTUP_DELAY_US 100UL\n\nvoid phy_bootstrap()\n{\n GPIO_InitTypeDef GPIO_InitStruct = {0};\n\n /* GPIO Ports Clock Enable */\n __HAL_RCC_GPIOA_CLK_ENABLE();\n /* Initialization of...
282
0
{"language": "c", "success": true, "metadata": {"lines": 44, "avg_line_length": 38.45, "nodes": 156, "errors": 0, "source_hash": "e2d2a00a30423abb4d28bb8fee592053c786b2c17d38ccc31c702f28a2a423fc", "categorized_nodes": 117}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,419
c
// Copyright 2012 Cloudera, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
39.52
31
(translation_unit) "// Copyright 2012 Cloudera, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the "License");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by ...
207
2
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 39.52, "nodes": 130, "errors": 0, "source_hash": "f34664a2ae9d2dce2f3384554c7b4b7b55e7e1134289c3e726a5e81e6af0deac", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,420
c
#pragma once #ifdef _MSC_VER #ifdef _WINDLL #define DLL1_API __declspec(dllexport) #else #define DLL1_API __declspec(dllimport) #endif #else #define DLL1_API __attribute__((visibility("default"))) #endif extern "C" { DLL1_API void TestDll1Run(); }
18.38
13
(translation_unit) "#pragma once\n\n#ifdef _MSC_VER\n#ifdef _WINDLL\n#define DLL1_API __declspec(dllexport)\n#else\n#define DLL1_API __declspec(dllimport)\n#endif\n#else\n#define DLL1_API __attribute__((visibility("default")))\n#endif\n\nextern "C" {\n DLL1_API void TestDll1Run();\n}\n" (preproc_call) "#pragma onc...
47
1
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 18.38, "nodes": 37, "errors": 0, "source_hash": "20c28754b47a22866d4ccd1af834656de06b9148fd901e4551193ec0cee6a1c8", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,421
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "Fichero.h" #define MAX 100 struct Nodo { char nombre[100]; int puntuacion; }; typedef struct Nodo Nodo; struct FicheroRep { Nodo nodos[MAX]; int n; }; Fichero FicheroCrea () { Fichero aux=malloc(sizeof(struct FicheroRep)); ...
24.21
89
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include "Fichero.h"\n\n#define MAX 100\n\nstruct Nodo\n{\n char nombre[100];\n int puntuacion;\n};\n\ntypedef struct Nodo Nodo;\nstruct FicheroRep\n{\n Nodo nodos[MAX];\n int n;\n};\n\nFichero FicheroCrea ()\n{\n Fichero a...
863
0
{"language": "c", "success": true, "metadata": {"lines": 89, "avg_line_length": 24.21, "nodes": 522, "errors": 0, "source_hash": "eaf390e3f9202eac697b7714381e07a50319dcb8c18dd21e95d708ed1bbc7f13", "categorized_nodes": 400}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,422
c
/* Copyright (c) 2021 <NAME> : <EMAIL> */ /* 归并排序法 */ #include <stdio.h> #include <stdlib.h> static void merge(int v[], int left, int mid, int right); static void test_sort_result(int v[], int n) { int i; printf(" Result"); for (i = 0; i < n - 1; ++i) if (v[i] > v[i + 1]) { printf("..Error."); return;...
16.83
87
(translation_unit) "/* Copyright (c) 2021 <NAME> : <EMAIL> */\n/*\n 归并排序法\n \n*/\n#include <stdio.h>\n#include <stdlib.h>\n\nstatic void merge(int v[], int left, int mid, int right);\nstatic void test_sort_result(int v[], int n)\n{\n int i;\n\n printf(" Result");\n for (i = 0; i < n - 1; ++i)\n if (v[i] > v[i + 1])\n ...
871
0
{"language": "c", "success": true, "metadata": {"lines": 87, "avg_line_length": 16.83, "nodes": 482, "errors": 0, "source_hash": "1ab90cca75179b7773ba291493fabf61e3a95b54ce2ff27a62bc640be81dfc41", "categorized_nodes": 347}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "stdi...
13,423
c
/* ****************************************************************************** * * cfg_op.h * * Hawkview ISP - cfg_op.h module * * Copyright (c) 2015 by Allwinnertech Co., Ltd. http://www.allwinnertech.com * * Version Author Date Description * * 3.0 <NAME> 2015/12/02 ISP Tuning T...
31.16
77
(translation_unit) "/*\n ******************************************************************************\n *\n * cfg_op.h\n *\n * Hawkview ISP - cfg_op.h module\n *\n * Copyright (c) 2015 by Allwinnertech Co., Ltd. http://www.allwinnertech.com\n *\n * Version Author Date Description\n *\n * 3.0 <NA...
550
0
{"language": "c", "success": true, "metadata": {"lines": 77, "avg_line_length": 31.16, "nodes": 427, "errors": 0, "source_hash": "4387eade0a5e5a34432c6441c300682497fe90e662cd44db3b0f3831322e7d53", "categorized_nodes": 256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,424
c
#ifndef DJORO_MESSAGE_H #define DJORO_MESSAGE_H #include <Arduino.h> typedef struct { float temperature; float humidity; uint16_t command; uint16_t battery; } djoro_message_t; #endif
19.7
10
(translation_unit) "#ifndef DJORO_MESSAGE_H\n#define DJORO_MESSAGE_H\n\n#include <Arduino.h>\n\ntypedef struct {\n float temperature;\n float humidity; \n uint16_t command;\n uint16_t battery;\n} djoro_message_t;\n\n#endif\n" (preproc_ifdef) "#ifndef DJORO_MESSAGE_H\n#define DJORO_MESSAGE_H\n\n#inc...
36
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 19.7, "nodes": 27, "errors": 0, "source_hash": "7f61e8af90711e870544d42d2b83cbcdc2e747081d44db0f265736537424b857", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef D...
13,425
c
#define RAND_MAX (1 << 31) int rand(void); void srand(unsigned int);
22
3
(translation_unit) "#define RAND_MAX (1 << 31)\n\nint rand(void);\nvoid srand(unsigned int);\n" (preproc_def) "#define RAND_MAX (1 << 31)\n" (#define) "#define" (identifier) "RAND_MAX" (preproc_arg) "(1 << 31)" (declaration) "int rand(void);" (primitive_type) "int" (function_declarator) "rand(vo...
27
0
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 22.0, "nodes": 20, "errors": 0, "source_hash": "0af11de0f5ca5fbad973a735d8b97186d86102060dd192cb42a16d39c984c9aa", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define RAND...
13,426
c
#ifndef BESTSCORESTABLEDISAPPEARSTATECLASS_H #define BESTSCORESTABLEDISAPPEARSTATECLASS_H #include "StateClass.h" #define BEST_SCORES_TABLE_DISAPPEAR_STATE 37 class BestScoresTableDisappearStateClass : public StateClass { public: BestScoresTableDisappearStateClass(); void Start(class CommonDataClass*...
17.72
25
(translation_unit) "#ifndef BESTSCORESTABLEDISAPPEARSTATECLASS_H \n#define BESTSCORESTABLEDISAPPEARSTATECLASS_H \n \n#include "StateClass.h" \n \n#define BEST_SCORES_TABLE_DISAPPEAR_STATE 37 \n \nclass BestScoresTableDisappearStateClass \n: public StateClass \n{ \npublic: \n BestScoresTableDisappearStateClass(); \n \n ...
90
3
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 17.72, "nodes": 58, "errors": 0, "source_hash": "9c2866bac5ae83b91c70572d1b60af5c666afe792306aad564a1bbb60ebc3c18", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,427
c
#include"stdio.h" #include"math.h" #define tax 3.625 main() { double hwr,payment,tax_reduction; int id,w; printf("Please enter your identification number : \n"); scanf("%d",&id); printf("Please enter the hourly wage rate : \n"); scanf("%lf",&hwr); printf("Please enter the number of hour's worked weekly : \n"); ...
25.79
29
(translation_unit) "#include"stdio.h"\n#include"math.h"\n#define tax 3.625\nmain()\n{\n double hwr,payment,tax_reduction;\n int id,w;\n printf("Please enter your identification number : \n");\n scanf("%d",&id);\n printf("Please enter the hourly wage rate : \n");\n scanf("%lf",&hwr);\n printf("Please enter the number of...
275
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 25.79, "nodes": 140, "errors": 0, "source_hash": "a3712df3e25a6b8fdc94be217a4a8dd3aa8dc835b4ee75425fa401d1403ba549", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,428
c
/* ** my_strlen.c for in /home/belfio_u/PISCINE/rendu/Piscine_C_J04 ** ** Made by <NAME> ** Login <<EMAIL>> ** ** Started on Fri Oct 3 21:15:04 2014 <NAME> ** Last update Sat Oct 4 08:43:47 2014 <NAME> */ int my_strlen(char *str) { int i; i = 0; while (str[i] != '\0') i++; return (i); }
17.12
17
(translation_unit) "/*\n** my_strlen.c for in /home/belfio_u/PISCINE/rendu/Piscine_C_J04\n** \n** Made by <NAME>\n** Login <<EMAIL>>\n** \n** Started on Fri Oct 3 21:15:04 2014 <NAME>\n** Last update Sat Oct 4 08:43:47 2014 <NAME>\n*/\n\nint my_strlen(char *str)\n{\n int i;\n\n i = 0;\n while (str[i] != '\0')\...
55
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 17.12, "nodes": 34, "errors": 0, "source_hash": "d3050e5f34abe347a152de0d715f4f40ceffb5f31d792563d1ba61b26c808e3b", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "in...
13,429
c
/** * Exercitiul 4. * Determinarea daca 3 numere date pot forma un triunghi. */ #include <stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a + b > c && a + c > b && b + c > a) { printf("DA\n"); } else { printf("NU\n"); } return 0; }
17.56
16
(translation_unit) "/**\n * Exercitiul 4.\n * Determinarea daca 3 numere date pot forma un triunghi.\n */\n#include <stdio.h>\n\nint main()\n{\n int a, b, c;\n scanf("%d %d %d", &a, &b, &c);\n\n if (a + b > c && a + c > b && b + c > a) {\n printf("DA\n");\n } else {\n printf("NU\n");\n }\n\...
112
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 17.56, "nodes": 63, "errors": 0, "source_hash": "b45619090610990a49751ca537bdca184e401a185260db08e3acdbfb024efa27", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,430
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/PreferencesUI.framework/PreferencesUI */ @interface PSUIAppCellularUsageCategoryListController : PSListController - (bool)shouldReloadSpecifiersOnResume; - (id)specifier; - (id)specifiers; @end
32.75
8
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/PreferencesUI.framework/PreferencesUI\n */\n\n@interface PSUIAppCellularUsageCategoryListController : PSListController\n\n- (bool)shouldReloadSpecifiersOnResume;\n- (id)specifier;\n- (id)specifiers;\n\n@end\n" (comment) "/...
43
4
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 32.75, "nodes": 25, "errors": 0, "source_hash": "7142dec6aa31d1455029dc8f05d8a9538cee3dd05276b872f9e44a13606c48db", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@interface PSUIAp...
13,431
c
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/CoreDAV.framework/CoreDAV */ @interface CoreDAVItemWithHrefChildItemTolerateBarePayload : CoreDAVItemWithHrefChildItem { CoreDAVHrefItem * _virtualHref; } - (void)dealloc; - (id)description; - (id)href; - (void)setPayload:(id)arg1; @end
27.82
11
(translation_unit) "/* Generated by RuntimeBrowser\n Image: /System/Library/PrivateFrameworks/CoreDAV.framework/CoreDAV\n */\n\n@interface CoreDAVItemWithHrefChildItemTolerateBarePayload : CoreDAVItemWithHrefChildItem {\n CoreDAVHrefItem * _virtualHref;\n}\n\n- (void)dealloc;\n- (id)description;\n- (id)href;\n- (v...
70
6
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 27.82, "nodes": 41, "errors": 0, "source_hash": "57b5a09740cd226c534a1f527ebd83a2e00f8d8e29ab36619bd62d8fd35f91dc", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "@", "parent": nu...
13,432
c
#ifndef GETTID_WRAPPER_H #define GETTID_WRAPPER_H #include <sys/types.h> #include <sys/syscall.h> #define gettid() syscall(__NR_gettid) #endif /* GETTID_WRAPPER_H */
23.14
7
(translation_unit) "#ifndef GETTID_WRAPPER_H\n#define GETTID_WRAPPER_H\n\n#include <sys/types.h>\n#include <sys/syscall.h> \n#define gettid() syscall(__NR_gettid)\n\n\n#endif /* GETTID_WRAPPER_H */\n" (preproc_ifdef) "#ifndef GETTID_WRAPPER_H\n#define GETTID_WRAPPER_H\n\n#include <sys/types.h>\n#include <sys/syscall...
22
0
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 23.14, "nodes": 18, "errors": 0, "source_hash": "c5ea4ed8bd7a31ba61fef48c29f59515d2593c0be099a525dfca091e31bfd219", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef G...
13,433
c
#pragma once #include "pch.h" #include "scene_view.h" namespace mixi { namespace s3r { class SceneViewPoint : public SceneView { public: using Ptr = std::shared_ptr<SceneViewPoint>; SceneViewPoint( const VertexArray* vertexArray_ = nullptr, const Program* program_ = nullptr ); ~Sce...
17.56
27
(translation_unit) "#pragma once\n\n#include "pch.h"\n#include "scene_view.h"\n\nnamespace mixi\n{\nnamespace s3r\n{\n\n\nclass SceneViewPoint : public SceneView\n{\npublic:\n\n using Ptr = std::shared_ptr<SceneViewPoint>;\n\n SceneViewPoint(\n const VertexArray* vertexArray_ = nullptr,\n const Prog...
136
7
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 17.56, "nodes": 82, "errors": 0, "source_hash": "da50fdfef964a046428c662162a3fa8cf6823a7459f7a44cc3b0b7c81d71e6ec", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,434
c
#ifndef AICS_SIMULARIUM_H #define AICS_SIMULARIUM_H #include "agents/agent.h" #include "aws/aws_util.h" #include "simulation.h" #include "model/model.h" #include "simpkg/cytosimpkg.h" #include "simpkg/readdypkg.h" #include "simpkg/simpkg.h" #include "network/cli_client.h" #include "network/connection_manager.h" #in...
29.07
14
(translation_unit) "#ifndef AICS_SIMULARIUM_H\n#define AICS_SIMULARIUM_H\n\n#include "agents/agent.h"\n#include "aws/aws_util.h"\n#include "simulation.h"\n\n#include "model/model.h"\n\n#include "simpkg/cytosimpkg.h"\n#include "simpkg/readdypkg.h"\n#include "simpkg/simpkg.h"\n\n#include "network/cli_client.h"\n#include ...
75
0
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 29.07, "nodes": 40, "errors": 0, "source_hash": "5a290fe0a23f685c56599acef5862564c37b2694c97bcb2c5c860e195547d50b", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,435
c
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2020 Linaro Limited. All rights reserved. * Author: <NAME> <<EMAIL>> */ #ifndef OPENAT2_H #define OPENAT2_H #include <sys/syscall.h> #include <linux/types.h> #include "lapi/syscalls.h" #include "config.h" #ifndef HAVE_OPENAT2 /* * Arguments for ho...
31.34
62
(translation_unit) "// SPDX-License-Identifier: GPL-2.0-or-later\n/*\n * Copyright (c) 2020 Linaro Limited. All rights reserved.\n * Author: <NAME> <<EMAIL>>\n */\n\n#ifndef OPENAT2_H\n#define OPENAT2_H\n\n#include <sys/syscall.h>\n#include <linux/types.h>\n\n#include "lapi/syscalls.h"\n\n#include "config.h"\n\n#ifndef...
235
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 31.34, "nodes": 147, "errors": 0, "source_hash": "62ed62b70226e80f70ddc53781887ff5d96d4a0faa14dded948e956239737672", "categorized_nodes": 101}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,436
c
/** @file LinkDef.h @brief for rootcint $Header$ */ #ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ namespace reconRootData; #pragma link C++ class ReconEvent+; #pragma link C++ class AcdTkrIntersection+; #pragma link C++ class AcdTkr...
35.09
66
(translation_unit) "/** @file LinkDef.h\n @brief for rootcint\n $Header$\n\n*/\n#ifdef __CINT__\n\n#pragma link off all globals;\n#pragma link off all classes;\n#pragma link off all functions;\n\n#pragma link C++ namespace reconRootData;\n#pragma link C++ class ReconEvent+;\n\n#pragma link C++ class AcdTkrIntersecti...
184
0
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 35.09, "nodes": 181, "errors": 0, "source_hash": "17334cfd1e869ff9fc35cc26b6611cb5aeab2979aeff3511663ea94e6e05d6ce", "categorized_nodes": 63}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef ...
13,437
c
/* * "[...] Sincerity (comprising truth-to-experience, honesty towards the self, * and the capacity for human empathy and compassion) is a quality which * resides within the laguage of literature. It isn't a fact or an intention * behind the work [...]" * * - An introduction to Literary and Cultural T...
26.84
96
(translation_unit) "/*\n * "[...] Sincerity (comprising truth-to-experience, honesty towards the self,\n * and the capacity for human empathy and compassion) is a quality which\n * resides within the laguage of literature. It isn't a fact or an intention\n * behind the work [...]"\n *\n * - An introduction ...
726
0
{"language": "c", "success": true, "metadata": {"lines": 96, "avg_line_length": 26.84, "nodes": 378, "errors": 0, "source_hash": "b23a972681464ec732d4568f08f3b7bd59c7fd64f89963cbd136fbf661804269", "categorized_nodes": 248}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,438
c
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ #define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_ #pragma once #include "build/build_config.h" #include ...
40.54
131
(translation_unit) "// Copyright (c) 2011 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_\n#define CONTENT_BROWSER_PLUGIN_PROCESS_HOST_H_\n#pragma once\n\n#include "buil...
872
43
{"language": "c", "success": true, "metadata": {"lines": 131, "avg_line_length": 40.54, "nodes": 537, "errors": 0, "source_hash": "cd17f30e566acb063109a275f48b5ecf6b8de42307e8ed91d264126a04c43503", "categorized_nodes": 365}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,439
c
#ifndef SALES_DATA_H #define SALES_DATA_H #include<string> struct Sales_data { std::string bookNo; unsigned units_sold{0}; double revenue{0.0}; }; using Sales_data = struct Sales_data; #endif
17.55
11
(translation_unit) "#ifndef SALES_DATA_H\n#define SALES_DATA_H\n#include<string>\nstruct Sales_data\n{\n std::string bookNo;\n unsigned units_sold{0};\n double revenue{0.0};\n};\nusing Sales_data = struct Sales_data;\n#endif\n" (preproc_ifdef) "#ifndef SALES_DATA_H\n#define SALES_DATA_H\n#include<string>\nst...
54
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 17.55, "nodes": 35, "errors": 0, "source_hash": "6d27e0410cf7d8b705b541f0d9b0cb489e4ef300c1e342f961c1d8bacebe8f89", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,440
c
/* Original Work Copyright (c) 2018 <NAME> (<EMAIL>) Modified Work Copyright (c) 2020 Microsoft Research 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 limi...
33.97
104
(translation_unit) "/*\nOriginal Work Copyright (c) 2018 <NAME> (<EMAIL>)\nModified Work Copyright (c) 2020 Microsoft Research\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restricti...
889
9
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 33.97, "nodes": 529, "errors": 0, "source_hash": "240b80270ac882a5199dccde3e4cf1bdcd65eabbd571750d2aec41d536d679d7", "categorized_nodes": 353}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,441
c
#import <React/RCTBridgeModule.h> @interface AppleAdsAttribution : NSObject <RCTBridgeModule> @end
32
3
(translation_unit) "#import <React/RCTBridgeModule.h>\n\n@interface AppleAdsAttribution : NSObject <RCTBridgeModule>\n\n@end\n" (preproc_call) "#import <React/RCTBridgeModule.h>\n" (preproc_directive) "#import" (preproc_arg) "<React/RCTBridgeModule.h>" (ERROR) "@interface AppleAdsAttribution : NSObject <RCT...
15
3
{"language": "c", "success": true, "metadata": {"lines": 3, "avg_line_length": 32.0, "nodes": 12, "errors": 0, "source_hash": "62c524abaa8dd35b4fd22538e65e50962e7c25f0e6385c19a4f17423c76ab5dc", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <Rea...
13,442
c
//===- llvm37/Support/Atomic.h - Atomic Operations -----------------*- C++ -*-===// // // The LLVM37 Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------...
34.18
34
(translation_unit) "//===- llvm37/Support/Atomic.h - Atomic Operations -----------------*- C++ -*-===//\n//\n// The LLVM37 Compiler Infrastructure\n//\n// This file is distributed under the University of Illinois Open Source\n// License. See LICENSE.TXT for details.\n//\n//===-----------------------...
173
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 34.18, "nodes": 123, "errors": 0, "source_hash": "8c475718eaea4cdb61548a84b93682977308a317d0a7cf2599e96731f7fe61fe", "categorized_nodes": 89}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,443
c
/* * $OpenBSD: pathnames.h,v 1.1 2003/07/29 20:10:17 millert Exp $ * $DragonFly: src/usr.bin/patch/pathnames.h,v 1.2 2008/08/11 00:04:12 joerg Exp $ * $NetBSD: pathnames.h,v 1.3 2009/05/09 20:15:35 joerg Exp $ */ /* * Placed in the public domain by <NAME> <<EMAIL>> * on July 29, 2003. */ #include <nbcompat/pat...
25.05
19
(translation_unit) "/*\n * $OpenBSD: pathnames.h,v 1.1 2003/07/29 20:10:17 millert Exp $\n * $DragonFly: src/usr.bin/patch/pathnames.h,v 1.2 2008/08/11 00:04:12 joerg Exp $\n * $NetBSD: pathnames.h,v 1.3 2009/05/09 20:15:35 joerg Exp $\n */\n\n/*\n * Placed in the public domain by <NAME> <<EMAIL>>\n * on July 29, 2003....
30
0
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 25.05, "nodes": 27, "errors": 0, "source_hash": "2faca7dd8d0083a0031fd7de8f0a558d2760c5be5f082dcf64bf448b0529dbe8", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,444
c
// // FMDatabaseQueueV2.h // Scarecrow // // Created by duanhongjin on 16/8/25. // Copyright © 2016年 duanhongjin. All rights reserved. // #import <Foundation/Foundation.h> @class FMDatabase; @interface FMDatabaseQueueV2 : NSObject { NSString *_path; dispatch_queue_t _queue; FMDatabase ...
35.73
37
(translation_unit) "//\n// FMDatabaseQueueV2.h\n// Scarecrow\n//\n// Created by duanhongjin on 16/8/25.\n// Copyright © 2016年 duanhongjin. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@class FMDatabase;\n\n@interface FMDatabaseQueueV2 : NSObject {\n NSString *_path;\n dispatch_q...
363
33
{"language": "c", "success": true, "metadata": {"lines": 37, "avg_line_length": 35.73, "nodes": 237, "errors": 0, "source_hash": "ac2a3da479cfb1a7d16389e44cd0e40247f313a51ad064dfad6d132013034e04", "categorized_nodes": 134}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <F...
13,445
c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <sys/select.h> #include <sys/socket.h> #include <netinet/in.h> #include "tor_socket.h" int create_and_bind(unsigned int ip, unsigned short port) { struct sockaddr_in local; int connfd; int val; int...
24.89
123
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n#include <errno.h>\n#include <fcntl.h>\n#include <sys/select.h>\n#include <sys/socket.h>\n#include <netinet/in.h>\n#include "tor_socket.h"\n\nint create_and_bind(unsigned int ip, unsigned short port) {\n struct sockaddr_in local;\n ...
1,032
0
{"language": "c", "success": true, "metadata": {"lines": 123, "avg_line_length": 24.89, "nodes": 630, "errors": 0, "source_hash": "c74b7cf417b2b70f5a1f5c9d43e265fb7a3cf2c4fcbe616e10c78ad22444e677", "categorized_nodes": 463}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,446
c
#pragma once #include <util/generic/vector.h> #include <util/generic/hash_set.h> #include <util/generic/set.h> struct TVectorType { }; struct TSetType { }; template<typename T> struct TContAssignerTraits { typedef TVectorType TTraits; }; template<class Value, class HashFcn, class EqualKey, class Alloc> st...
23.33
92
(translation_unit) "#pragma once\n\n#include <util/generic/vector.h>\n#include <util/generic/hash_set.h>\n#include <util/generic/set.h>\n\nstruct TVectorType\n{\n\n};\n\nstruct TSetType\n{\n\n};\n\ntemplate<typename T>\nstruct TContAssignerTraits\n{\n typedef TVectorType TTraits;\n};\n\ntemplate<class Value, clas...
698
39
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 23.33, "nodes": 451, "errors": 0, "source_hash": "2a17fd3749b822a01485b8bd86f50b81de81dbbef99bcf4836c1a1abfff350ee", "categorized_nodes": 310}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,447
c
// apic_version = 0.6.1 #import "PTModel.h" #import "PTAccountDeactivationApplicationMessage.h" NS_ASSUME_NONNULL_BEGIN @interface PTGetAccountDeactivationApplicationRespMessage : PTModel @property (nonatomic, strong) PTAccountDeactivationApplicationMessage *application; @end NS_ASSUME_NONNULL_END
36.38
8
(translation_unit) "// apic_version = 0.6.1\n#import "PTModel.h"\n#import "PTAccountDeactivationApplicationMessage.h"\nNS_ASSUME_NONNULL_BEGIN\n@interface PTGetAccountDeactivationApplicationRespMessage : PTModel\n@property (nonatomic, strong) PTAccountDeactivationApplicationMessage *application;\n@end\nNS_ASSUME_NONNUL...
42
6
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 36.38, "nodes": 32, "errors": 0, "source_hash": "53f4c7153812c5e601733c5c025d0130cd6ba462f1e70a3913c90e486eff1810", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
13,448
c
#ifndef __COGAPS_SPARSE_VECTOR_H__ #define __COGAPS_SPARSE_VECTOR_H__ #include <stdint.h> #include <vector> class Archive; class Vector; class SparseMatrix; class SparseVector { public: explicit SparseVector(unsigned size); explicit SparseVector(const std::vector<float> &v); explicit Spars...
29.58
36
(translation_unit) "#ifndef __COGAPS_SPARSE_VECTOR_H__ \n#define __COGAPS_SPARSE_VECTOR_H__ \n \n#include <stdint.h> \n#include <vector> \n \nclass Archive; \nclass Vector; \nclass SparseMatrix; \n \nclass SparseVector \n{ \npublic: \n explicit SparseVector(unsigned size); \n explicit SparseVector(const std::vect...
294
19
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 29.58, "nodes": 175, "errors": 0, "source_hash": "80235fbb37ee33c10e32b4d913648c69520928e968b66817a6fb9f56b822cca3", "categorized_nodes": 116}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,449
c
// // FLRuntimeInfo.h // FishLamp // // Created by <NAME> on 10/21/12. // Copyright (c) 2013 GreenTongue Software LLC, <NAME>.. // The FishLamp Framework is released under the MIT License: http://fishlamp.com/license // #import "FishLampCore.h" typedef struct { __unsafe_unretained Class class; SEL sele...
40.22
51
(translation_unit) "//\n// FLRuntimeInfo.h\n// FishLamp\n//\n// Created by <NAME> on 10/21/12.\n// Copyright (c) 2013 GreenTongue Software LLC, <NAME>.. \n// The FishLamp Framework is released under the MIT License: http://fishlamp.com/license \n//\n\n#import "FishLampCore.h"\n\ntypedef struct {\n __unsafe_unre...
430
43
{"language": "c", "success": true, "metadata": {"lines": 51, "avg_line_length": 40.22, "nodes": 270, "errors": 0, "source_hash": "f4bad152db37458bc781724ed005bb392021ce58db5f5f52ebcce4a3735cd1ba", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import...
13,450
c
/******************************************************************************* * *Copyright:fz * *File name: csf_typedef.hpp * *Author:<EMAIL> * *Version: 1.0 * *Date:2018/06/27 * *Description: create (csf_typedef.hpp),重新定义各种数据类型成为csf自已的数据类型 * *Others: * *History: ****************************************************...
19.44
104
(translation_unit) "******************************************************************************\n*\n*Copyright:fz\n*\n*File name: csf_typedef.hpp\n*\n*Author:<EMAIL>\n*\n*Version: 1.0\n*\n*Date:2018/06/27\n*\n*Description: create (csf_typedef.hpp),重新定义各种数据类型成为csf自已的数据类型\n*\n*Others:\n*\n*History:\n******************...
308
1
{"language": "c", "success": true, "metadata": {"lines": 104, "avg_line_length": 19.44, "nodes": 255, "errors": 0, "source_hash": "3c5f82da0321710032b8824590e8910f9b68e825c409cb7c89dbb1d4f2e5763a", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_if", "text": "SF_TYPED...
13,451
c
#ifndef deque_H_X6402 #define deque_H_X6402 #include "list.h" typedef LinkedList Deque; #define New_Deque New_LinkedList #define Deque_destory LinkedList_destory #define Deque_clear LinkedList_clear #define Deque_clear_destory LinkedList_clear_destory #define Deque_push_back LinkedList_push #define Deque_push_front ...
36.19
16
(translation_unit) "#ifndef deque_H_X6402\n#define deque_H_X6402\n#include "list.h"\n\ntypedef LinkedList Deque;\n\n#define New_Deque New_LinkedList\n#define Deque_destory LinkedList_destory\n#define Deque_clear LinkedList_clear\n#define Deque_clear_destory LinkedList_clear_destory\n\n#define Deque_push_back LinkedList...
72
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 36.19, "nodes": 62, "errors": 0, "source_hash": "7ae77dada10c49dc3fc5d170bacacaca1f3ea8b11f52c246e04068d47f4ef0a1", "categorized_nodes": 26}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,452
c
/* * dblink.c * * Functions returning results from a remote database * * Copyright (c) <NAME> <<EMAIL>>, 2001; * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without a written agreement * is hereby granted, provided that the above cop...
27.51
234
(translation_unit) "/*\n * dblink.c\n *\n * Functions returning results from a remote database\n *\n * Copyright (c) <NAME> <<EMAIL>>, 2001;\n *\n * Permission to use, copy, modify, and distribute this software and its\n * documentation for any purpose, without fee, and without a written agreement\n * is hereby granted...
1,646
0
{"language": "c", "success": true, "metadata": {"lines": 234, "avg_line_length": 27.51, "nodes": 952, "errors": 0, "source_hash": "acac927998501d0f7f1ccfb09c342010ea92f09748c9df9c5067144fb19d7583", "categorized_nodes": 670}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,453
c
/* Generated file -- do not edit. */ /** * @file include/sys/time.h */ #ifndef __SYS_TIME_H #define __SYS_TIME_H #include <sys/__types.h> #ifndef __TIME_T #define __TIME_T typedef __time_t time_t; #endif #ifndef __SUSECONDS_T #define __SUSECONDS_T typedef __suseconds_t suseconds_t; #endif #include <sys/select.h...
32.81
42
(translation_unit) "/* Generated file -- do not edit. */\n\n/**\n * @file include/sys/time.h\n */\n#ifndef __SYS_TIME_H\n#define __SYS_TIME_H\n\n\n#include <sys/__types.h>\n\n#ifndef __TIME_T\n#define __TIME_T\ntypedef __time_t time_t;\n#endif\n\n#ifndef __SUSECONDS_T\n#define __SUSECONDS_T\ntypedef __suseconds_t susec...
232
2
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 32.81, "nodes": 172, "errors": 0, "source_hash": "bb04d6c37a280d37465f8ff3a1794ef851aaa6b6cf65cc281c7196b2e7682a21", "categorized_nodes": 110}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,454
c
#include<stdio.h> #include<math.h> main() { double x=90; printf("%lf",sin(x)); }
9.62
8
(translation_unit) "#include<stdio.h>\n#include<math.h>\nmain()\n{\n double x=90;\n \n printf("%lf",sin(x));\n}\n" (preproc_include) "#include<stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include<math.h>\n" (#include) "#include" (system_lib_string) "<math.h>"...
42
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 9.62, "nodes": 23, "errors": 0, "source_hash": "ed2e554d9ad3f7a3a34be9cad5d150675689d0e75cbdcf3e4258b7fff23d187f", "categorized_nodes": 17}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
13,455
c
// // Counter.h // // Created by <NAME> on 2016/09/03. // // #pragma once #include "ofEvents.h" #include "ofAppRunner.h" template<typename T> class Counter { public: using CounterType = T; virtual void reset(){} virtual void count()=0; virtual T get() const=0; }; template<typename T> class CountEveryFrame : p...
18.43
56
(translation_unit) "//\n// Counter.h\n//\n// Created by <NAME> on 2016/09/03.\n//\n//\n\n#pragma once\n\n#include "ofEvents.h"\n#include "ofAppRunner.h"\n\ntemplate<typename T>\nclass Counter\n{\npublic:\n using CounterType = T;\n virtual void reset(){}\n virtual void count()=0;\n virtual T get() const=0;\n};\n\ntemp...
408
23
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 18.43, "nodes": 225, "errors": 0, "source_hash": "549f18f3b51187e45e5c53edfea28d43c3750d13d504f2070dfa509d302519b2", "categorized_nodes": 131}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
13,456
c
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { long long ans1 = 0; long long ans2 = 0; char **grid; char *row; while (scanf("%s", &row) >= 0) { } printf("Answer Part 1: %lld\n", ans1); printf("Answer Part 2: %lld\n", ans2); return 0; }
18.8
15
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\nint main()\n{\n long long ans1 = 0;\n long long ans2 = 0;\n\n char **grid;\n char *row;\n while (scanf("%s", &row) >= 0) {\n\n }\n\n printf("Answer Part 1: %lld\n", ans1);\n printf("Answer Part 2: %lld\n", ans2);...
108
0
{"language": "c", "success": true, "metadata": {"lines": 15, "avg_line_length": 18.8, "nodes": 67, "errors": 0, "source_hash": "02c160a02ef70180529c567ac44b90de8646c5bc189cc641918867bc35c6ca46", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
13,457
c
// // IMWebSocket.h // IMWebSocket // // Created by jfdreamyang on 2019/3/28. // Copyright © 2019 RongCloud. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for IMWebSocket. FOUNDATION_EXPORT double IMWebSocketVersionNumber; //! Project version string for IMWebSocket. FOUNDATION_EXPORT...
37.5
14
(translation_unit) "//\n// IMWebSocket.h\n// IMWebSocket\n//\n// Created by jfdreamyang on 2019/3/28.\n// Copyright © 2019 RongCloud. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for IMWebSocket.\nFOUNDATION_EXPORT double IMWebSocketVersionNumber;\n\n//! Project version string f...
36
1
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 37.5, "nodes": 17, "errors": 0, "source_hash": "3eb7174a7b6ea60b84e54c640a71337d80c3a898c5b7aee0d0813bd2c6bd4ee3", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <UI...
13,458
c
// // DDDownloadDBManager.h // DDDownloaderDemo // // Created by wuqh on 2019/4/10. // Copyright © 2019 吴启晗. All rights reserved. // #import <Foundation/Foundation.h> @class DDDownloadModel; //NS_ASSUME_NONNULL_BEGIN @interface DDDownloadDBManager : NSObject +(instancetype)sharedManager; - (BOOL)insertDownload...
29.42
19
(translation_unit) "//\n// DDDownloadDBManager.h\n// DDDownloaderDemo\n//\n// Created by wuqh on 2019/4/10.\n// Copyright © 2019 吴启晗. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n@class DDDownloadModel;\n\n//NS_ASSUME_NONNULL_BEGIN\n\n@interface DDDownloadDBManager : NSObject\n\n+(instancetype)sha...
122
17
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 29.42, "nodes": 82, "errors": 0, "source_hash": "b46e739a5e278ba04eed46f799e67a781b97a91824adc15e1b7b778a7c67bd35", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": " <Foundat...
13,459
c
#include "drv/hardware_targets.h" #include "usr/user_config.h" #if USER_CONFIG_HARDWARE_TARGET == AMDC_REV_D #include "drv/dac.h" #include "xil_io.h" #include <stdint.h> #include <stdio.h> #define DAC_BASE_ADDR (0x43C60000) void dac_init(void) { printf("DAC:\tInitializing...\n"); // Default Reference divid...
30.92
39
(translation_unit) "#include "drv/hardware_targets.h"\n#include "usr/user_config.h"\n\n#if USER_CONFIG_HARDWARE_TARGET == AMDC_REV_D\n\n#include "drv/dac.h"\n#include "xil_io.h"\n#include <stdint.h>\n#include <stdio.h>\n\n#define DAC_BASE_ADDR (0x43C60000)\n\nvoid dac_init(void)\n{\n printf("DAC:\tInitializing...\n"...
322
0
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 30.92, "nodes": 206, "errors": 0, "source_hash": "df2ac0e3f763bb1ccec13737e06ac35d0a9f87e0e519ca4ffb86808fa9510c3d", "categorized_nodes": 143}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,460
c
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "v1beta2_scale_spec.h" v1beta2_scale_spec_t *v1beta2_scale_spec_create( int replicas ) { v1beta2_scale_spec_t *v1beta2_scale_spec_local_var = malloc(sizeof(v1beta2_scale_spec_t)); if (!v1beta2_scale_spec_local_var) { return NULL...
27.58
53
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include <stdio.h>\n#include "v1beta2_scale_spec.h"\n\n\n\nv1beta2_scale_spec_t *v1beta2_scale_spec_create(\n int replicas\n ) {\n v1beta2_scale_spec_t *v1beta2_scale_spec_local_var = malloc(sizeof(v1beta2_scale_spec_t));\n if (!v1beta2_scale_spec_l...
321
0
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 27.58, "nodes": 193, "errors": 0, "source_hash": "334bf2c45a6a684ed63609fd7011879c63664e2837db60fc332732ff32abc1c8", "categorized_nodes": 127}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,461
c
// // ContactStatus.h // qub // // Created by Nick on 8/14/13. // Copyright (c) 2013 RipStrike. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> @class User; extern NSString * const kConfirmed; extern NSString * const kUserRequested; extern NSString * const kContactRequeste...
30.25
20
(translation_unit) "//\n// ContactStatus.h\n// qub\n//\n// Created by Nick on 8/14/13.\n// Copyright (c) 2013 RipStrike. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <CoreData/CoreData.h>\n\n@class User;\n\nextern NSString * const kConfirmed;\nextern NSString * const kUserRequested;\nexter...
151
22
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 30.25, "nodes": 105, "errors": 0, "source_hash": "9cbf27124b83ea2228384e1f42e81628b18417114404d1a49517ff67a58e1841", "categorized_nodes": 54}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
13,462
c
/* Copyright 2012 <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope tha...
36.97
97
(translation_unit) "/*\nCopyright 2012 <NAME> <<EMAIL>>\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 2 of the License, or\n(at your option) any later version.\n\nThis program is...
157
0
{"language": "c", "success": true, "metadata": {"lines": 97, "avg_line_length": 36.97, "nodes": 111, "errors": 0, "source_hash": "da5b9c154b9bb4a494bd1f9a7fd970239aa05bf2af3b39b7cfef652977786c51", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
13,463
c
#pragma once struct ColorChar{ friend std::ostream& operator<<(std::ostream& os, const ColorChar cc); char color; char character; ColorChar(): color(97), character(' '){}; }; std::ostream& operator<<(std::ostream& os, const ColorChar cc){ os << "\033[0;" << (int)cc.color << 'm' << cc.character; retur...
22.21
14
(translation_unit) "#pragma once\n\nstruct ColorChar{\n friend std::ostream& operator<<(std::ostream& os, const ColorChar cc);\n\n char color;\n char character;\n \n ColorChar():\n color(97),\n character(' '){};\n};\n\nstd::ostream& operator<<(std::ostream& os, const ColorChar cc){\n os << "\033[0;" << (int)cc.color...
132
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 22.21, "nodes": 77, "errors": 0, "source_hash": "55b1fcb732fec559b951f46a93e6b34b3d0838b9aa0e644d8ab07cead0203aed", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,464
c
/* * benchmarks.h * * Created on: Oct 13, 2016 * Author: b */ #ifndef BENCHMARKS_BENCHMARKS_H_ #define BENCHMARKS_BENCHMARKS_H_ #define NB_TESTS 60 #define CHECK_CORRECTNESS 1 #define PRINT_OUTPUT 0 #define SIZE_IS_MULTIPLE_OF_TILE 1 // BARYON_N is used for loop iterators. #define BARYON_N 16 // BARYON...
18.93
56
(translation_unit) "/*\n * benchmarks.h\n *\n * Created on: Oct 13, 2016\n * Author: b\n */\n\n#ifndef BENCHMARKS_BENCHMARKS_H_\n#define BENCHMARKS_BENCHMARKS_H_\n\n\n#define NB_TESTS 60\n#define CHECK_CORRECTNESS 1\n#define PRINT_OUTPUT 0 \n#define SIZE_IS_MULTIPLE_OF_TILE 1\n\n\n// BARYON_N is used for loop ite...
159
0
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 18.93, "nodes": 149, "errors": 0, "source_hash": "3b883d340b221397da5c9de32fcbd397c4db7f1a96dc0533df6c80a2daed4443", "categorized_nodes": 51}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,465
c
#ifndef _S2MM003_FW_H #define _S2MM003_FW_H void s2mm003_firmware_ver_check(struct s2mm003_data *usbpd_data, char *name); int s2mm003_firmware_update(struct s2mm003_data *usbpd_data); #endif
37.2
5
(translation_unit) "#ifndef _S2MM003_FW_H\n#define _S2MM003_FW_H\nvoid s2mm003_firmware_ver_check(struct s2mm003_data *usbpd_data, char *name);\nint s2mm003_firmware_update(struct s2mm003_data *usbpd_data);\n#endif\n" (preproc_ifdef) "#ifndef _S2MM003_FW_H\n#define _S2MM003_FW_H\nvoid s2mm003_firmware_ver_check(struc...
44
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 37.2, "nodes": 36, "errors": 0, "source_hash": "af68092b3025da77073386c3508c5544e53b8ed1c11ce5fc5e25ed424e907dd5", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _S...
13,466
c
#include <string> #include <cstdlib> struct sys { public: std::string m_cwd; std::string m_searchDir; std::uint16_t m_cores; std::uint16_t m_ram; public: sys(); sys(const sys& other) = delete; sys(sys&& other) = delete; private: [[nodiscard]] std::string get_current_dir(); };
16.81
16
(translation_unit) "#include <string>\n#include <cstdlib>\n\nstruct sys\n{\npublic:\n std::string m_cwd;\n std::string m_searchDir;\n std::uint16_t m_cores;\n std::uint16_t m_ram;\n\npublic:\n sys();\n sys(const sys& other) = delete;\n sys(sys&& other) = delete;\n\nprivate:\n [[nodiscard]] std::string get_current_dir()...
111
12
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 16.81, "nodes": 66, "errors": 0, "source_hash": "22944df12984ce4d99c54f1b2e9ef822b8f096d1dd76b51de43ff54dee5f7e32", "categorized_nodes": 45}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,467
c
#import <Foundation/Foundation.h> #import <Flutter/Flutter.h> NS_ASSUME_NONNULL_BEGIN @interface PIUITextFieldDelegate : NSObject <UITextFieldDelegate> - (instancetype)initWithChannel:(FlutterMethodChannel*)channel; @end NS_ASSUME_NONNULL_END
33.71
7
(translation_unit) "#import <Foundation/Foundation.h>\n#import <Flutter/Flutter.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface PIUITextFieldDelegate : NSObject <UITextFieldDelegate>\n\n- (instancetype)initWithChannel:(FlutterMethodChannel*)channel;\n\n@end\n\nNS_ASSUME_NONNULL_END\n" (preproc_call) "#import <Foundation/...
48
5
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 33.71, "nodes": 36, "errors": 0, "source_hash": "b3ebc6f3e77b6eaf5d83beb77695a13097b0a226828e56f9b21c827e3022a79f", "categorized_nodes": 19}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <F...
13,468
c
// // BXBadgeView.h // IrregularTabBar // // Created by JYJ on 16/5/31. // Copyright © 2016年 baobeikeji. All rights reserved. // #import <UIKit/UIKit.h> @interface BXBadgeView : UIButton /** 提醒数字 */ @property (nonatomic, copy) NSString *badgeValue; @end
20.5
12
(translation_unit) "//\n// BXBadgeView.h\n// IrregularTabBar\n//\n// Created by JYJ on 16/5/31.\n// Copyright © 2016年 baobeikeji. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface BXBadgeView : UIButton\n/** 提醒数字 */\n@property (nonatomic, copy) NSString *badgeValue;\n@end\n" (comment) "//" (comm...
37
6
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 20.5, "nodes": 22, "errors": 0, "source_hash": "9a98bfe0de23cdf9729a0559a1330acae75374a61fca26f077817ff8810a1c97", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKi...
13,469
c
// Copyright (c) 2015 fjz13. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. #pragma once #include "MedusaCorePreDeclares.h" #ifdef MEDUSA_SQL #include "Core/String/HeapString.h" #include "SqlDefines.h" MEDUSA_BEGIN; class SqlException :publ...
30.57
23
(translation_unit) "// Copyright (c) 2015 fjz13. All rights reserved.\n// Use of this source code is governed by a MIT-style\n// license that can be found in the LICENSE file.\n#pragma once\n#include "MedusaCorePreDeclares.h"\n#ifdef MEDUSA_SQL\n#include "Core/String/HeapString.h"\n#include "SqlDefines.h"\n\nMEDUSA_BEG...
153
6
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 30.57, "nodes": 80, "errors": 0, "source_hash": "2ec76faa8605a3a8430dad3e817dca7dfbc52f7b0fe2775c36e594e9d280b5b9", "categorized_nodes": 60}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
13,470
c
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. #ifndef QVISREPLICATEWINDOW_H #define QVISREPLICATEWINDOW_H #include <QvisOperatorWindow.h> #in...
31.32
78
(translation_unit) "// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt\n// Project developers. See the top-level LICENSE file for dates and other\n// details. No copyright assignment is required to contribute to VisIt.\n\n#ifndef QVISREPLICATEWINDOW_H\n#define QVISREPLICATEWINDOW_H\n\n#include...
397
9
{"language": "c", "success": true, "metadata": {"lines": 78, "avg_line_length": 31.32, "nodes": 266, "errors": 0, "source_hash": "e6e9efc950ddd7fda2a45401ad6fadc63711414f73a87056fa74aefdd25f53c0", "categorized_nodes": 168}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,471
c
/* * config.h: * * Copyright (c) 2003 Guralp Systems Limited * Author <NAME>, contact <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (...
24.94
54
(translation_unit) "/*\n * config.h:\n *\n * Copyright (c) 2003 Guralp Systems Limited\n * Author <NAME>, contact <<EMAIL>>\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either versi...
74
0
{"language": "c", "success": true, "metadata": {"lines": 54, "avg_line_length": 24.94, "nodes": 52, "errors": 0, "source_hash": "787dd5b67c498ad8d372b4216670c537dd0302468b2b0b6a306bd7e9e5a7186e", "categorized_nodes": 30}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,472
c
// // MasterViewController.h // BitsoExampleApp // // Created by <NAME> on 5/16/16. // Copyright © 2016 Bitso SAPI de CV. All rights reserved. // #import <UIKit/UIKit.h> #import "BitsoAPI.h" @interface BTSMasterViewController : UITableViewController @property (nonatomic, strong) NSString *incomingSegue; @pro...
21.05
19
(translation_unit) "//\n// MasterViewController.h\n// BitsoExampleApp\n//\n// Created by <NAME> on 5/16/16.\n// Copyright © 2016 Bitso SAPI de CV. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "BitsoAPI.h"\n\n\n\n\n@interface BTSMasterViewController : UITableViewController\n\n\n@property (nonatomic, ...
75
14
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 21.05, "nodes": 52, "errors": 0, "source_hash": "0d3448eecd0e3720ee64b74f7c46f7f85d4244fd144af4b090a6b9ed871c032e", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <U...
13,473
c
#ifndef FilterLocator_h #define FilterLocator_h ///////////////////////////////////////////////////////////////////////////// // Possible optimizations: // Cache results till REFRESH_F_TOPOLOGY or REFRESH_F_PLUGIN // Check current focus only once per processing (Refresh/Incoming MIDI) //////////////////////...
30.55
31
(translation_unit) "#ifndef FilterLocator_h \n#define FilterLocator_h \n \n///////////////////////////////////////////////////////////////////////////// \n// Possible optimizations: \n// Cache results till REFRESH_F_TOPOLOGY or REFRESH_F_PLUGIN \n// Check current focus only once per processing (Refresh/Incoming MID...
115
1
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 30.55, "nodes": 70, "errors": 0, "source_hash": "d6354a7c2776487d99065495f9a54751b1478909102308a21f6d61627d119eec", "categorized_nodes": 48}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,474
c
// Copyright (c) 2013 <NAME>. MIT License. http://www.zoolib.org #ifndef __ZooLib_SocketWatcher_h__ #define __ZooLib_SocketWatcher_h__ 1 #include "zconfig.h" #include "zoolib/Callable.h" #include "zoolib/Compat_NonCopyable.h" #include "zoolib/ZThread.h" #include <set> namespace ZooLib { // =======================...
27.71
34
(translation_unit) "// Copyright (c) 2013 <NAME>. MIT License. http://www.zoolib.org\n\n#ifndef __ZooLib_SocketWatcher_h__\n#define __ZooLib_SocketWatcher_h__ 1\n#include "zconfig.h"\n\n#include "zoolib/Callable.h"\n#include "zoolib/Compat_NonCopyable.h"\n\n#include "zoolib/ZThread.h"\n\n#include <set>\n\nnamespace Zoo...
217
8
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 27.71, "nodes": 133, "errors": 0, "source_hash": "70917d116714de8d1b231d57bd88417745fa50fa171b853da5a00e847336afed", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,475
c
// // NSImage+TSCachedDecoding.h // Avocado // // Created by <NAME> on 20160530. // Copyright © 2016 <NAME>. All rights reserved. // #import <Cocoa/Cocoa.h> @interface NSImage (TSCachedDecoding) /** * Forces the receiver to be decoded. This is accomplished by drawing it into * a bitmap context, and returning a...
24.11
19
(translation_unit) "//\n// NSImage+TSCachedDecoding.h\n// Avocado\n//\n// Created by <NAME> on 20160530.\n// Copyright © 2016 <NAME>. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface NSImage (TSCachedDecoding)\n\n/**\n * Forces the receiver to be decoded. This is accomplished by drawing it into\n *...
49
4
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 24.11, "nodes": 24, "errors": 0, "source_hash": "aa2b40c3be9979cf90f4a5bc84561f59614437894a1da5f920e103847de471bd", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <C...
13,476
c
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "MBProgressHUD+NHAdd.h" #import "MBProgressHUD_NHExtend.h" #import "AFHTTPSession.h" #import "AFNetWorkManager.h" #im...
25.22
18
(translation_unit) "#ifdef __OBJC__\n#import <UIKit/UIKit.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern "C"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n#import "MBProgressHUD+NHAdd.h"\n#import "MBProgressHUD_NHExtend.h"\n#import "AFHTTPSession.h...
67
1
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 25.22, "nodes": 57, "errors": 0, "source_hash": "8011910e5a731204f9c4a7022668a80745cd6e74bd7748af080f48c1e99ddbd3", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifdef _...
13,477
c
// Copyright 2017 <NAME> // // 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. // ...
36.39
119
(translation_unit) "// Copyright 2017 <NAME>\n// \n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n// \n// 1. Redistributions of source code must retain the above copyright notice, this\n// list of conditions and the ...
760
24
{"language": "c", "success": true, "metadata": {"lines": 119, "avg_line_length": 36.39, "nodes": 497, "errors": 0, "source_hash": "2c9ea1e6cd78c1a4dd44db9f24e7abc2af966a314b817b441564a20771316751", "categorized_nodes": 300}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
13,478
c
#ifndef PLATFORM_H #define PLATFORM_H #include "config.h" ////////////////////////////////////////////////////////////////////////// class Platform { public: Platform(Config&); bool make(void); private: struct Impl_; Impl_* pimpl_; public: virtual ~Platform(); }; /////////////////////////////...
21.35
17
(translation_unit) "#ifndef PLATFORM_H\n#define PLATFORM_H\n\n#include "config.h"\n\n//////////////////////////////////////////////////////////////////////////\n\nclass Platform\n{\npublic:\n Platform(Config&);\n\n bool make(void);\n\nprivate:\n struct Impl_;\n Impl_* pimpl_;\n\npublic:\n virtual ~Platfo...
77
1
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 21.35, "nodes": 45, "errors": 0, "source_hash": "bbbfe391814849015f2c23b2fb3e738f70471e3d1bf89a9db75391d9fcc98d03", "categorized_nodes": 31}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,479
c
// // EEMultiProxy.h // // A multicast delegate class with thread-safe // // Created by ian<https://github.com/ienho> on 2017/9/9. // Copyright © 2017 ian. All rights reserved. // #import <Foundation/Foundation.h> /// /// All delegate's methods will responds in async thread [default in main thread] /// /// !!! //...
31.51
41
(translation_unit) "//\n// EEMultiProxy.h\n//\n// A multicast delegate class with thread-safe\n//\n// Created by ian<https://github.com/ienho> on 2017/9/9.\n// Copyright © 2017 ian. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n///\n/// All delegate's methods will responds in async thread [defaul...
123
18
{"language": "c", "success": true, "metadata": {"lines": 41, "avg_line_length": 31.51, "nodes": 62, "errors": 0, "source_hash": "e1fe6ac17498e361aa7213fa96854ee40f3e570e6292f0ee950ee79b23fa5351", "categorized_nodes": 32}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <F...
13,480
c
#ifndef HAWKTRACER_POSIX_MAPPED_TRACEPOINT_H #define HAWKTRACER_POSIX_MAPPED_TRACEPOINT_H #include <hawktracer/ht_config.h> #ifdef HT_USE_PTHREADS #include <hawktracer/timeline.h> HT_DECLS_BEGIN HT_API void ht_pthread_mapped_tracepoint_enter(HT_Timeline* timeline, const char* label); HT_API void ht_pthread_mapped...
40.64
14
(translation_unit) "#ifndef HAWKTRACER_POSIX_MAPPED_TRACEPOINT_H\n#define HAWKTRACER_POSIX_MAPPED_TRACEPOINT_H\n\n#include <hawktracer/ht_config.h>\n\n#ifdef HT_USE_PTHREADS\n\n#include <hawktracer/timeline.h>\n\nHT_DECLS_BEGIN\n\nHT_API void ht_pthread_mapped_tracepoint_enter(HT_Timeline* timeline, const char* label);...
91
2
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 40.64, "nodes": 68, "errors": 0, "source_hash": "5288904fe480d68dce9d9df8270f4162412cccc22fda7f1d037314713d36ba26", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,481
c
/** * Copyright (c) 2015 by Contributors */ #ifndef DIFACTO_SGD_SGD_LEARNER_H_ #define DIFACTO_SGD_SGD_LEARNER_H_ #include <string> #include <vector> #include "difacto/learner.h" #include "difacto/loss.h" #include "difacto/store.h" #include "difacto/node_id.h" #include "difacto/reporter.h" #include "./sgd_utils.h" #...
32.77
115
(translation_unit) "/**\n * Copyright (c) 2015 by Contributors\n */\n#ifndef DIFACTO_SGD_SGD_LEARNER_H_\n#define DIFACTO_SGD_SGD_LEARNER_H_\n#include <string>\n#include <vector>\n#include "difacto/learner.h"\n#include "difacto/loss.h"\n#include "difacto/store.h"\n#include "difacto/node_id.h"\n#include "difacto/reporte...
959
46
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 32.77, "nodes": 572, "errors": 0, "source_hash": "5693d1b78703ed5ed467731e92ebe146f8d7601653afc051f3df88f41eeadaef", "categorized_nodes": 372}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
13,482
c
/** * @file MEGAUserList.h * @brief List of MEGAUser objects * * (c) 2013-2014 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules set forth in the Terms of ...
28.39
57
(translation_unit) "/**\n * @file MEGAUserList.h\n * @brief List of MEGAUser objects\n *\n * (c) 2013-2014 by Mega Limited, Auckland, New Zealand\n *\n * This file is part of the MEGA SDK - Client Access Engine.\n *\n * Applications using the MEGA API must present a valid application key\n * and comply with the the rul...
67
7
{"language": "c", "success": true, "metadata": {"lines": 57, "avg_line_length": 28.39, "nodes": 42, "errors": 0, "source_hash": "d8f1d9a5741a12b8fba3191cc0f89f94ee2a874d83ad4ad1d6e7b26af664d13a", "categorized_nodes": 22}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
13,483
c
/* Copyright (c) 2007-2009, Stanford University * 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 ...
31.64
109
(translation_unit) "/* Copyright (c) 2007-2009, Stanford University\n* All rights reserved.\n*\n* Redistribution and use in source and binary forms, with or without\n* modification, are permitted provided that the following conditions are met:\n* * Redistributions of source code must retain the above copyright\n* ...
447
0
{"language": "c", "success": true, "metadata": {"lines": 109, "avg_line_length": 31.64, "nodes": 291, "errors": 0, "source_hash": "ea5d02a48bade891a0d568babeac46b8e3c4a8ccdc29ef974025fe04964ff744", "categorized_nodes": 197}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
13,484
c
/************************************************************************* ** ** GSC-18128-1, "Core Flight Executive Version 6.7" ** ** Copyright (c) 2006-2019 United States Government as represented by ** the Administrator of the National Aeronautics and Space Administration. ** All Rights Reserved...
31.22
92
(translation_unit) "/*************************************************************************\n**\n** GSC-18128-1, "Core Flight Executive Version 6.7"\n**\n** Copyright (c) 2006-2019 United States Government as represented by\n** the Administrator of the National Aeronautics and Space Administration.\n*...
310
0
{"language": "c", "success": true, "metadata": {"lines": 92, "avg_line_length": 31.22, "nodes": 136, "errors": 0, "source_hash": "33141c3f3fd14e3a27812e07b442ce89ba7683bcce91f796d63d89e920c2f997", "categorized_nodes": 97}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,485
c
#include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { unsigned long long var; char *err = NULL; if (argc != 2) { fprintf(stderr, "<%s> int-var\n", argv[0]); return -1; } var = strtoul(argv[1], &err, 16); if (err && (err[0] != '\0')) { fprintf(stderr,...
24.11
18
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n\nint main(int argc, char **argv)\n{\n unsigned long long var;\n char *err = NULL;\n\n if (argc != 2) {\n fprintf(stderr, "<%s> int-var\n", argv[0]);\n return -1;\n }\n\n var = strtoul(argv[1], &err, 16);\n if (err && (err[0] !...
169
0
{"language": "c", "success": true, "metadata": {"lines": 18, "avg_line_length": 24.11, "nodes": 96, "errors": 0, "source_hash": "788fb1d7c5ec6b3695869d5e03aadfd93edfb2dcf8966f398cb191aad329bb86", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
13,486
c
#include <vector> #include <string> #ifndef READING_H #define READING_H using namespace std; void Read_Arguements_of_Main(int argc,char **argv,string* input_file_original,string* input_file_new_space,string* query_file_original,string* query_file_new_space,string* output_file,int* k,int* L); void ReadMNIST(string i...
51.36
11
(translation_unit) "#include <vector>\n#include <string>\n\n#ifndef READING_H\n#define READING_H\n\nusing namespace std;\n\nvoid Read_Arguements_of_Main(int argc,char **argv,string* input_file_original,string* input_file_new_space,string* query_file_original,string* query_file_new_space,string* output_file,int* k,int* ...
185
4
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 51.36, "nodes": 153, "errors": 0, "source_hash": "71762895650d8be6a9216e25be9f11ab41c8653c6b0eabd220e24dd8593c411b", "categorized_nodes": 83}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#incl...
13,487
c
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QMediaPlaylist> #include <QMediaPlayer> #include <QPushButton> #include "videowidget.h" class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void trigger_med...
23.68
31
(translation_unit) "#ifndef MAINWINDOW_H\n#define MAINWINDOW_H\n\n#include <QMainWindow>\n#include <QMediaPlaylist>\n#include <QMediaPlayer>\n#include <QPushButton>\n#include "videowidget.h"\n\n\nclass MainWindow : public QMainWindow\n{\n Q_OBJECT\n\npublic:\n MainWindow(QWidget *parent = 0);\n ~MainWindow();\...
167
5
{"language": "c", "success": true, "metadata": {"lines": 31, "avg_line_length": 23.68, "nodes": 118, "errors": 0, "source_hash": "28b62feec5589923428603909186f4f0b1ca3dd4b1a403eeef959b2a53c8d0e1", "categorized_nodes": 78}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,488
c
#ifndef BUFFER_H #define BUFFER_H #include "defines.h" typedef struct buffer{ buffer * next, * prev; void * buffer_data; unsigned int size; } buffer; buffer * makeBuffer(unsigned int size); void freeBuffer(buffer * buff, bool recursive = false); int getBufferData(buffer * buff, void **data, ...
21.94
16
(translation_unit) "#ifndef BUFFER_H \n#define BUFFER_H \n \n#include "defines.h" \n \ntypedef struct buffer{ \n buffer * next, * prev; \n void * buffer_data; \n unsigned int size; \n} buffer; \n \nbuffer * makeBuffer(unsigned int size); \nvoid freeBuffer(buffer * buff, bool recursive = false); \nint getBuffer...
114
2
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 21.94, "nodes": 85, "errors": 0, "source_hash": "3261642f831ae224977dbef11170c4a0438596a3dff4c101aa9dcefd4d92af03", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
13,489
c
#ifndef VKCONTAINERATTACHMENTS_H #define VKCONTAINERATTACHMENTS_H #include <QJsonArray> #include <QJsonObject> #include <QSharedPointer> #include "vkabstractcontainer.h" class VKContainerAttachments : public VKAbstractContainer { Q_OBJECT public: enum AttachmentsType { PHOTO, VIDEO, ...
34.3
40
(translation_unit) "#ifndef VKCONTAINERATTACHMENTS_H\n#define VKCONTAINERATTACHMENTS_H\n\n#include <QJsonArray>\n#include <QJsonObject>\n#include <QSharedPointer>\n#include "vkabstractcontainer.h"\n\nclass VKContainerAttachments : public VKAbstractContainer\n{\n Q_OBJECT\npublic:\n\n\n enum AttachmentsType {\n ...
310
14
{"language": "c", "success": true, "metadata": {"lines": 40, "avg_line_length": 34.3, "nodes": 216, "errors": 0, "source_hash": "50b672fcae0a6ac0fb31c69172a8f4ca90e8904c9b0fb2f7449f51033ef6113a", "categorized_nodes": 160}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,490
c
#include<stdio.h> int main() { int a=0, b=0; int A[]={5,6,7}; int B[]={3,6,10}; if(A[0]>B[0]) { a=a+1; } else if(A[0]==B[0]) { } else if(A[0]<B[0]) { b=b+1; } if(A[1]>B[1]) { a=a+1; } else if(A[1]==B[1]) { } el...
10.42
50
(translation_unit) "#include<stdio.h>\n\nint main()\n{\n int a=0, b=0;\n int A[]={5,6,7};\n int B[]={3,6,10};\n \n if(A[0]>B[0])\n {\n a=a+1;\n }\n else if(A[0]==B[0]) \n {\n \n }\n else if(A[0]<B[0]) \n {\n b=b+1;\n }\n \n if(A[1]>B[1])\n {\n a=a+1;\n }\n ...
336
0
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 10.42, "nodes": 189, "errors": 0, "source_hash": "59d337ce16c767d1d84873b455be573447f3161fc0defdb697998921cdfc8247", "categorized_nodes": 142}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,491
c
#include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #endif main(int argc, char **argv) { int i, n=200,chunk,a[n],suma=0, chunk_size, dyn, nthreads,intkind; omp_sched_t kind; omp_get_schedule(&kind, &chunk_size); printf("Antes de modificar las variables...\...
30.13
53
(translation_unit) "#include <stdio.h>\n#include <stdlib.h>\n#ifdef _OPENMP\n #include <omp.h>\n#else\n #define omp_get_thread_num() 0\n#endif\nmain(int argc, char **argv) {\n int i, n=200,chunk,a[n],suma=0, chunk_size, dyn, nthreads,intkind;\n omp_sched_t kind;\n \n omp_get_schedule(&kind, &chunk_size);\n printf("Ante...
567
2
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 30.13, "nodes": 315, "errors": 0, "source_hash": "203acc42e777955feeb1b098905a186cf24d1813c72dfc0d372d9b49ba1e6dab", "categorized_nodes": 219}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
13,492
c
#ifndef LIBLEA_VALUE_H #define LIBLEA_VALUE_H 1 #include <liblea/common.h> inline static LeaValue leaValueCreatePtr(LeaType type, void* ptr) { LeaValue v; v = 0; v |= (((uint64_t)type & 0xff) << 1); v |= (((uintptr_t)ptr) << 9); return v; } inline static void* leaValueGetPtr(LeaValue v) { r...
20.78
23
(translation_unit) "#ifndef LIBLEA_VALUE_H\n#define LIBLEA_VALUE_H 1\n\n#include <liblea/common.h>\n\ninline static LeaValue leaValueCreatePtr(LeaType type, void* ptr)\n{\n LeaValue v;\n\n v = 0;\n v |= (((uint64_t)type & 0xff) << 1);\n v |= (((uintptr_t)ptr) << 9);\n\n return v;\n}\n\ninline static void...
181
0
{"language": "c", "success": true, "metadata": {"lines": 23, "avg_line_length": 20.78, "nodes": 114, "errors": 0, "source_hash": "7537e43465044123871d5bb7e9d2c9ffc26d3ed8bf03b74da06570504a03b10b", "categorized_nodes": 82}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
13,493
c
// license:GPL-2.0+ // copyright-holders:<NAME> /***************************************************************************** * * includes/pc1401.h * * Pocket Computer 1401 * ****************************************************************************/ #ifndef MAME_INCLUDES_PC1401_H #define MAME_INCLUDES_PC1401...
30.09
53
(translation_unit) "// license:GPL-2.0+\n// copyright-holders:<NAME>\n/*****************************************************************************\n *\n * includes/pc1401.h\n *\n * Pocket Computer 1401\n *\n ****************************************************************************/\n\n#ifndef MAME_INCLUDES_PC1401_...
502
17
{"language": "c", "success": true, "metadata": {"lines": 53, "avg_line_length": 30.09, "nodes": 266, "errors": 0, "source_hash": "28fb3cfb4073368c472baa7fb8fa51f1d50fae789f10d984dfcd3a7998ee6849", "categorized_nodes": 165}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,494
c
#import <XMLRPC/XMLRPCConnection.h> #import <XMLRPC/XMLRPCConnectionDelegate.h> #import <XMLRPC/XMLRPCConnectionManager.h> #import <XMLRPC/XMLRPCResponse.h> #import <XMLRPC/XMLRPCRequest.h>
37
5
(translation_unit) "#import <XMLRPC/XMLRPCConnection.h>\n#import <XMLRPC/XMLRPCConnectionDelegate.h>\n#import <XMLRPC/XMLRPCConnectionManager.h>\n#import <XMLRPC/XMLRPCResponse.h>\n#import <XMLRPC/XMLRPCRequest.h>\n" (preproc_call) "#import <XMLRPC/XMLRPCConnection.h>\n" (preproc_directive) "#import" (preproc...
16
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 37.0, "nodes": 15, "errors": 0, "source_hash": "71a46bacd1ce851ff890e34517494240b744890c3047cf9792bab453cecb8cd2", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <XML...
13,495
c
// // Asset.h // contentstack // // Created by <NAME> on 19/05/16. // Copyright © 2016 Contentstack. All rights reserved. // #import <Foundation/Foundation.h> #import "ContentstackDefinitions.h" BUILT_ASSUME_NONNULL_BEGIN @class ContentType; @interface Asset : NSObject /**--------------------------------------...
35.64
215
(translation_unit) "//\n// Asset.h\n// contentstack\n//\n// Created by <NAME> on 19/05/16.\n// Copyright © 2016 Contentstack. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "ContentstackDefinitions.h"\n\nBUILT_ASSUME_NONNULL_BEGIN\n\n@class ContentType;\n\n@interface Asset : NSObject\n\n/**-...
501
84
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 35.64, "nodes": 320, "errors": 0, "source_hash": "2386c7128db08b9f5f58456250ab34d056063b3044a95a4105c0f26400199178", "categorized_nodes": 170}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import...
13,496
c
// MemoryPool.h // Copyright 2018/11/7 Robin.Row<EMAIL> // License open source MIT #ifndef MemoryPool_h #define MemoryPool_h #include <string> #include <stdio.h> namespace IPC { class MemoryPool {protected: void* p; bool isAllocator; std::string name; std::string info; void Reset() { p = 0; isAllocator = fa...
16.52
66
(translation_unit) "// MemoryPool.h\n// Copyright 2018/11/7 Robin.Row<EMAIL>\n// License open source MIT\n\n#ifndef MemoryPool_h\n#define MemoryPool_h\n\n#include <string>\n#include <stdio.h>\n\nnamespace IPC {\n\nclass MemoryPool\n{protected:\n void* p;\n bool isAllocator;\n std::string name;\n std::string info;\n voi...
456
10
{"language": "c", "success": true, "metadata": {"lines": 66, "avg_line_length": 16.52, "nodes": 264, "errors": 0, "source_hash": "33aa6da5997dfd875d6be480dc7b276ecde939e3848446d0a0347e54ca24b10f", "categorized_nodes": 177}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
13,497
c
#pragma once #include "defaults.h" #include <util/generic/ptr.h> #include <util/generic/noncopyable.h> #include <new> #if defined(_darwin_) #define Y_DISABLE_THRKEY_OPTIMIZATION #endif #if defined(_arm_) && defined(_linux_) #define Y_DISABLE_THRKEY_OPTIMIZATION #endif #if defined(__GNUC__) && defined(__AN...
31.38
240
(ERROR) "#pragma once\n\n#include "defaults.h"\n\n#include <util/generic/ptr.h>\n#include <util/generic/noncopyable.h>\n\n#include <new>\n\n#if defined(_darwin_)\n #define Y_DISABLE_THRKEY_OPTIMIZATION\n#endif\n\n#if defined(_arm_) && defined(_linux_)\n #define Y_DISABLE_THRKEY_OPTIMIZATION\n#endif\n\n#if defined...
1,348
48
{"language": "c", "success": true, "metadata": {"lines": 240, "avg_line_length": 31.38, "nodes": 827, "errors": 0, "source_hash": "9b5fec94149fbe453edb556f54dcad77dda48cac38e16345f1747b040d49eb29", "categorized_nodes": 493}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "#pragma once\n\n#include...
13,498
c
/* * Copyright © 2017 Embedded Artistry LLC. * License: MIT. See LICENSE file for details. */ #include "string_tests.h" #include <string.h> // Cmocka needs these // clang-format off #include <setjmp.h> #include <stdarg.h> #include <stddef.h> #include <cmocka/cmocka.h> // clang-format on static void memmove_test(v...
21.92
26
(translation_unit) "/*\n * Copyright © 2017 Embedded Artistry LLC.\n * License: MIT. See LICENSE file for details.\n */\n\n#include "string_tests.h"\n#include <string.h>\n\n// Cmocka needs these\n// clang-format off\n#include <setjmp.h>\n#include <stdarg.h>\n#include <stddef.h>\n#include <cmocka/cmocka.h>\n// clang-for...
102
0
{"language": "c", "success": true, "metadata": {"lines": 26, "avg_line_length": 21.92, "nodes": 65, "errors": 0, "source_hash": "c0eba1cef1a0ef4ae68edddea8d735c998003a138593db5db3ddc6659b35fdda", "categorized_nodes": 43}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "includ...
13,499