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 <stdio.h> extern long long int fact(long long int i); int main() { long long int n; while (scanf("%lld", &n) == 1) printf("%lld\n", fact(n)); return 0; }
18.22
9
(translation_unit) "#include <stdio.h>\n\nextern long long int fact(long long int i);\n\nint main()\n{\n long long int n;\n while (scanf("%lld", &n) == 1)\n printf("%lld\n", fact(n));\n return 0;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (decl...
84
0
{"language": "c", "success": true, "metadata": {"lines": 9, "avg_line_length": 18.22, "nodes": 52, "errors": 0, "source_hash": "4df156a94b0c0b8f6dc5a97cd63b05cc104def8633ae614dc2f6bcfd56ebf463", "categorized_nodes": 34}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#includ...
1,900
c
#include <linux/module.h> #include <linux/kernel.h> #include <linux/init.h> #include <asm/siginfo.h> //siginfo #include <linux/debugfs.h> #include <linux/sched.h> #include <linux/uaccess.h> #include <linux/signal.h> #include <linux/lkm.h> #define SIG_NEW 35 // Signal that describe new process being created #define MA...
25.34
76
(translation_unit) "#include <linux/module.h>\n#include <linux/kernel.h>\n#include <linux/init.h>\n#include <asm/siginfo.h> //siginfo\n#include <linux/debugfs.h>\n#include <linux/sched.h>\n#include <linux/uaccess.h>\n#include <linux/signal.h>\n#include <linux/lkm.h>\n\n#define SIG_NEW 35 // Signal that describe new pr...
579
3
{"language": "c", "success": true, "metadata": {"lines": 76, "avg_line_length": 25.34, "nodes": 358, "errors": 0, "source_hash": "27cfd2ab2d6e7e5a89d9fb1d5ce6c8590a69337d06e86c38e9da812bb5ea90ff", "categorized_nodes": 256}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,901
c
/* File : portfolio_4_transcost.c Copyright : Copyright (c) MOSEK ApS, Denmark. All rights reserved. Description : Implements a basic portfolio optimization model with fixed setup costs and transaction costs as a mixed-integer problem. */ #include <math.h> #include <stdio.h> ...
35.22
180
(translation_unit) "/*\n File : portfolio_4_transcost.c\n\n Copyright : Copyright (c) MOSEK ApS, Denmark. All rights reserved.\n\n Description : Implements a basic portfolio optimization model\n with fixed setup costs and transaction costs\n as a mixed-integer problem.\n */\n#include...
2,202
1
{"language": "c", "success": true, "metadata": {"lines": 180, "avg_line_length": 35.22, "nodes": 1316, "errors": 0, "source_hash": "ab6b34f4415cd2071633c4a082ff8d7225814583f54e3bef5d87e354d85dbd2f", "categorized_nodes": 981}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,902
c
//Pionniers du TJ, benissiez-moi par votre Esprits Saints! #pragma once #include <deque> #include <random> #include "BaseData.h" #define maxint 1000000 #define inf 1e100 namespace pdata{ extern std::mt19937 gen; extern std::uniform_int_distribution<int> unidis; extern std::uniform_real_distribution<double> unidisf; ...
24.56
27
(translation_unit) "//Pionniers du TJ, benissiez-moi par votre Esprits Saints!\n#pragma once\n#include <deque>\n#include <random>\n#include "BaseData.h"\n#define maxint 1000000\n#define inf 1e100\nnamespace pdata{\n extern std::mt19937 gen;\n extern std::uniform_int_distribution<int> unidis;\n extern std::uniform_real_...
228
3
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 24.56, "nodes": 159, "errors": 0, "source_hash": "c12a5ca733f451be04fbefd91d39602c37de70d027910d4b3c2ffdd4267fa4ec", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,903
c
#include <stdio.h> #include <ctype.h> int main(int argc, char *argv[]) { if (argc != 2) { puts("Please specify a file name"); return 1; } FILE *f = fopen(argv[1], "rt"); if (f == NULL) { perror("main"); return 2; } int lines = 0; int chrs = 0; int c; int first = 1; puts(argv[1]);...
16.06
36
(translation_unit) "#include <stdio.h>\n#include <ctype.h>\n\n\nint main(int argc, char *argv[])\n{\n if (argc != 2) {\n puts("Please specify a file name");\n return 1;\n }\n\n FILE *f = fopen(argv[1], "rt");\n if (f == NULL) {\n perror("main");\n return 2;\n }\n\n int lines = 0;\n int chrs = 0;\n i...
282
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 16.06, "nodes": 162, "errors": 0, "source_hash": "7facd8d157b39385734950b9a2a9b50af00d01e052cac3a262ef2d16cdebaa82", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,904
c
/** * The MIT License (MIT) * * Copyright (c) 2015-2016 MUSE / Inria * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
30.89
225
(translation_unit) "/**\n* The MIT License (MIT)\n*\n* Copyright (c) 2015-2016 MUSE / Inria\n*\n* Permission is hereby granted, free of charge, to any person obtaining a copy\n* of this software and associated documentation files (the "Software"), to deal\n* in the Software without restriction, including without limita...
1,242
8
{"language": "c", "success": true, "metadata": {"lines": 225, "avg_line_length": 30.89, "nodes": 808, "errors": 0, "source_hash": "16c237e1456a58e94d6d73c1462c81bb9d1968af93b9dd1f66adf4f38068b3cb", "categorized_nodes": 604}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,905
c
/* * File: receive-structures.h * Author: D8bauxit8 * * Created on April 6, 2020, 4:30 PM */ #ifndef LOW_RESOURCE_PROTOCOL_RECEIVE_STRUCTURES_H #define LOW_RESOURCE_PROTOCOL_RECEIVE_STRUCTURES_H #ifdef __cplusplus extern "C" { #endif #include "../session-provider.h" // Status flow // 1. In receiving //...
26.47
34
(translation_unit) "/*\n * File: receive-structures.h\n * Author: D8bauxit8\n *\n * Created on April 6, 2020, 4:30 PM\n */\n\n#ifndef LOW_RESOURCE_PROTOCOL_RECEIVE_STRUCTURES_H\n#define LOW_RESOURCE_PROTOCOL_RECEIVE_STRUCTURES_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n#include "../session-provider.h"\n\n...
118
0
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 26.47, "nodes": 87, "errors": 0, "source_hash": "038d54cdb1345d820b283db6db6a00a796122f739411daedee64353624d41f9e", "categorized_nodes": 55}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,906
c
//Leia o valor do dólar e um valor em dólar, calcule e escreva o equivalente em real (R$). #include <stdio.h> int main(){ float v_dolar, dolar, real; printf("informe o valor do dolar: "); scanf("%f",&v_dolar); printf("informe o valor em dolar que deseja converter: "); scanf("%f",&dolar); real += (v_dolar...
29.54
13
(translation_unit) "//Leia o valor do dólar e um valor em dólar, calcule e escreva o equivalente em real (R$).\n\n\n#include <stdio.h>\n\nint main(){\n float v_dolar, dolar, real;\n printf("informe o valor do dolar: ");\n scanf("%f",&v_dolar);\n printf("informe o valor em dolar que deseja converter: ");\n scanf("%...
104
0
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 29.54, "nodes": 48, "errors": 0, "source_hash": "f0477976047c50cbf0ef46752f6ddb777bcc561881dd6a2467a950869c266146", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "nclude...
1,907
c
// // ImageDataModel.h // JoeYenItunesRSS // // Created by Yenchiayu on 2016/1/5. // Copyright © 2016年 顏嘉佑(Joe). All rights reserved. // #import <Foundation/Foundation.h> @interface ImageDataModel : NSObject +(void)saveImageToTemp:(NSData*)imageDownload imageUrl:(NSURL*)imageUrl; +(BOOL)isImageExist:(NSURL*)image...
27.54
13
(translation_unit) "//\n// ImageDataModel.h\n// JoeYenItunesRSS\n//\n// Created by Yenchiayu on 2016/1/5.\n// Copyright © 2016年 顏嘉佑(Joe). All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface ImageDataModel : NSObject\n+(void)saveImageToTemp:(NSData*)imageDownload imageUrl:(NSURL*)imageUrl;\n+...
87
12
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 27.54, "nodes": 53, "errors": 0, "source_hash": "0cb31a9b6d62f4a692badbbd193fcd4110ba1b2d965b96b772ecf26d86b77680", "categorized_nodes": 29}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "Foundatio...
1,908
c
/* * Copyright (c) 2021 <NAME> * Copyright (c) 2015-2016, <NAME> * This file is part of DSiWifi and is distributed under the MIT license. * See dsiwifi_license.txt for terms of use. */ #ifndef _WIFI_CARD_H #define _WIFI_CARD_H #include "common.h" #include "wifi_sdio.h" // 3DS //#define REG_SDIO_BASE ((void*)0x...
27.18
129
(translation_unit) "/*\n * Copyright (c) 2021 <NAME>\n * Copyright (c) 2015-2016, <NAME>\n * This file is part of DSiWifi and is distributed under the MIT license.\n * See dsiwifi_license.txt for terms of use.\n */\n\n#ifndef _WIFI_CARD_H\n#define _WIFI_CARD_H\n\n#include "common.h"\n\n#include "wifi_sdio.h"\n\n// 3DS\...
869
0
{"language": "c", "success": true, "metadata": {"lines": 129, "avg_line_length": 27.18, "nodes": 606, "errors": 0, "source_hash": "e7dca80aa2b20b121f89e0bef2a16791c3d5b39dc8b378ff337448cba0d60dbc", "categorized_nodes": 447}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,909
c
#include <std.h> inherit ROOM; void create() { ::create(); set_property("light",1); set_property("indoors",1); set_property("no sticks",1); set_terrain(BUILT_TUNNEL); set_travel(DIRT_ROAD); set_short("Gateway to the Abyss"); set_long( @KAYLA You are moving through the core of darkness....
24.72
25
(translation_unit) "#include <std.h>\n\ninherit ROOM;\n\nvoid create() {\n ::create();\n set_property("light",1);\n set_property("indoors",1);\n set_property("no sticks",1);\n set_terrain(BUILT_TUNNEL);\n set_travel(DIRT_ROAD);\n set_short("Gateway to the Abyss");\n set_long(\n@KAYLA\nYou are mo...
236
7
{"language": "c", "success": true, "metadata": {"lines": 25, "avg_line_length": 24.72, "nodes": 143, "errors": 0, "source_hash": "364e39a4f32d93774ef07bb65116fd132bf8b1fda0aa9e9573da718b0ad117b1", "categorized_nodes": 108}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,910
c
#include <stdlib.h> #include <string.h> #include "disemvowel.h" char* disemvowel(char* str) { //Declaring variables int i; int j; bool isVowel = 0; int spot = 0; int len = strlen(str); char* toReturn; int vowelCount = 0; //Array to hold vowel characters to check for char vowels[11] = {'a','A','e'...
25.54
48
(translation_unit) "#include <stdlib.h>\n#include <string.h>\n#include "disemvowel.h"\n\nchar* disemvowel(char* str) {\n //Declaring variables\n int i;\n int j;\n bool isVowel = 0;\n int spot = 0;\n int len = strlen(str);\n char* toReturn;\n int vowelCount = 0;\n \n //Array to hold vowel characters to check fo...
377
0
{"language": "c", "success": true, "metadata": {"lines": 48, "avg_line_length": 25.54, "nodes": 242, "errors": 0, "source_hash": "713a725723bb3049cc2ece20473e8119a7f515adff01320487860fab575c4a3b", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,911
c
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "Core.h" #include "CoreUObject.h" #include "Engine.h" #include "UnrealEd.h"
28.2
5
(translation_unit) "// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.\n\n#include "Core.h"\n#include "CoreUObject.h"\n#include "Engine.h"\n#include "UnrealEd.h"" (comment) "// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved." (preproc_include) "#include "Core.h"\n" (#include) "#include" ...
26
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 28.2, "nodes": 12, "errors": 0, "source_hash": "9118f0cc91725f9f37d43d116cdefb9f01bcfd26b27bbef227d47b3bedf93d6d", "categorized_nodes": 12}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
1,912
c
// // STKVASTMeasure.h // StackOpenMeasure // // Created by <NAME> on 1/30/20. // Copyright © 2020 Appodeal. All rights reserved. // #import <StackOpenMeasure/STKMeasureEventProtocol.h> #import <StackOpenMeasure/STKMeasureBuilderProtocol.h> #import <StackOpenMeasure/STKMeasureViewContextProtocol.h> NS_ASSUME_NON...
36.19
21
(translation_unit) "//\n// STKVASTMeasure.h\n// StackOpenMeasure\n//\n// Created by <NAME> on 1/30/20.\n// Copyright © 2020 Appodeal. All rights reserved.\n//\n\n#import <StackOpenMeasure/STKMeasureEventProtocol.h>\n#import <StackOpenMeasure/STKMeasureBuilderProtocol.h>\n#import <StackOpenMeasure/STKMeasureViewCont...
151
15
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 36.19, "nodes": 97, "errors": 0, "source_hash": "0d07877e1f0f6aa886a6d9bbe46122bbd3457cf3df4b68485674a38b180aaa7c", "categorized_nodes": 57}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "import <S...
1,913
c
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 5.01.0164 */ /* at Thu May 06 09:22:30 1999 */ /* Compiler settings for D:\Projects\SDWComponents\SDWConnector.idl: Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext error checks: allocation r...
32.54
133
(translation_unit) "/* this ALWAYS GENERATED file contains the definitions for the interfaces */\n\n\n/* File created by MIDL compiler version 5.01.0164 */\n/* at Thu May 06 09:22:30 1999\n */\n/* Compiler settings for D:\Projects\SDWComponents\SDWConnector.idl:\n Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext\n ...
597
34
{"language": "c", "success": true, "metadata": {"lines": 133, "avg_line_length": 32.54, "nodes": 431, "errors": 0, "source_hash": "0a32994d9ad771adcec793fd6c90c89e872cd83c433fcad6e496e8e5a6e2f925", "categorized_nodes": 268}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,914
c
/* * This definitions of the PIC16LF707 MCU. * * This file is part of the GNU PIC library for SDCC, originally * created by <NAME> <<EMAIL>> 2016. * * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:22:57 UTC. * * SDCC is licensed under the GNU Public license (GPL) v2. Note that * this lic...
35.68
158
(translation_unit) "/*\n * This definitions of the PIC16LF707 MCU.\n *\n * This file is part of the GNU PIC library for SDCC, originally\n * created by <NAME> <<EMAIL>> 2016.\n *\n * This file is generated automatically by the cinc2h.pl, 2016-04-13 17:22:57 UTC.\n *\n * SDCC is licensed under the GNU Public license (GP...
1,702
0
{"language": "c", "success": true, "metadata": {"lines": 158, "avg_line_length": 35.68, "nodes": 1034, "errors": 0, "source_hash": "2ef32f846ef45e2878306bac550fba2465af4a56ea47639d3ec0dba811c07044", "categorized_nodes": 851}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,915
c
/* * ===================================================================================== * * Filename: fib3.c * * Description: * * Version: 0.1 * Created: 03/20/14 10:31:08 * Revision: none * Compiler: Clang * * Author: <NAME> (mwp), <EMAIL> * Organiza...
29.26
74
(translation_unit) "/*\n * =====================================================================================\n *\n * Filename: fib3.c\n *\n * Description: \n *\n * Version: 0.1\n * Created: 03/20/14 10:31:08\n * Revision: none\n * Compiler: Clang\n *\n * Author: <NA...
735
0
{"language": "c", "success": true, "metadata": {"lines": 74, "avg_line_length": 29.26, "nodes": 474, "errors": 0, "source_hash": "2257f62ceeb1f00554623fdb676b4935780d20ae5751b32e6d94422e9795aeaa", "categorized_nodes": 331}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,916
c
#ifndef SERIAL_WIRE_HANDLER #define SERIAL_WIRE_HANDLER #include "WireHandler.h" class SerialWireHandler : public WireHandler { public: bool inputEvent(InputEvent* event, KeyboardState* kbState); }; #endif
21.9
10
(translation_unit) "#ifndef SERIAL_WIRE_HANDLER \n#define SERIAL_WIRE_HANDLER \n#include "WireHandler.h" \n \nclass SerialWireHandler : public WireHandler { \n public: \n bool inputEvent(InputEvent* event, KeyboardState* kbState); \n}; \n \n#endif" (preproc_ifdef) "#ifndef SERIAL_WIRE_HANDLER \n#define SERI...
48
1
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.9, "nodes": 30, "errors": 0, "source_hash": "3e79ccffb47863ee4f89d98b14c3e2dfb5607ceb984dac3d6cefcd924af7cb46", "categorized_nodes": 20}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef S...
1,917
c
/** BSD 3-Clause License This file is part of the code accompanying the paper Gradient-SDF: A Semi-Implicit Surface Representation for 3D Reconstruction by <NAME>*, <NAME>*, <NAME>, and <NAME> (* denotes equal contribution). Copyright (c) 2021, <NAME> and <NAME>. All rights reserved. Redistribution and use in source...
46.36
73
(translation_unit) "/**\nBSD 3-Clause License\n\nThis file is part of the code accompanying the paper\nGradient-SDF: A Semi-Implicit Surface Representation for 3D Reconstruction\nby <NAME>*, <NAME>*, <NAME>, and <NAME> (* denotes equal contribution).\n\nCopyright (c) 2021, <NAME> and <NAME>.\nAll rights reserved.\n\nRe...
436
17
{"language": "c", "success": true, "metadata": {"lines": 73, "avg_line_length": 46.36, "nodes": 278, "errors": 0, "source_hash": "87f884389c93d19154fb5e0f3480ed447251b6e131f6bdfb34cf7d39854f1e30", "categorized_nodes": 184}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,918
c
#ifndef MJOLNIR_BUDO_H #define MJOLNIR_BUDO_H /* close combat ranks based on karate belts */ #define MJOLNIR_WHITE_RANK 0 #define MJOLNIR_YELLOW_RANK 1 #define MJOLNIR_ORANGE_RANK 2 #define MJOLNIR_GREEN_RANK 3 #define MJOLNIR_BLUE_RANK 4 #define MJOLNIR_PURPLE_RANK 5 #define MJOLNIR_RED_RA...
39.86
22
(translation_unit) "#ifndef MJOLNIR_BUDO_H\n#define MJOLNIR_BUDO_H\n\n/* close combat ranks based on karate belts */\n#define MJOLNIR_WHITE_RANK 0\n#define MJOLNIR_YELLOW_RANK 1\n#define MJOLNIR_ORANGE_RANK 2\n#define MJOLNIR_GREEN_RANK 3\n#define MJOLNIR_BLUE_RANK 4\n#define MJOLNIR_PURPLE_RANK...
94
0
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 39.86, "nodes": 75, "errors": 0, "source_hash": "6d61cf6e315d805ce5b0161ae8ad156f044bb5baf6d6d9e8ab6f7f1beca67092", "categorized_nodes": 38}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,919
c
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX_SPECIAL_SIZE 16 #define MAX_LINE_SIZE 4096 #ifdef __SPE_ARRAY #define MAX_SPECIALS 2048 char all_specials[MAX_SPECIALS][MAX_SPECIAL_SIZE]; #endif struct spetree { struct spetree* next[256]; char value[MAX_SPECIAL_SIZE]; char target[MA...
26.61
280
(translation_unit) "#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\n#define MAX_SPECIAL_SIZE 16\n#define MAX_LINE_SIZE 4096\n\n#ifdef __SPE_ARRAY\n#define MAX_SPECIALS 2048\nchar all_specials[MAX_SPECIALS][MAX_SPECIAL_SIZE];\n#endif\n\nstruct spetree\n{\n struct spetree* next[256];\n char value[MA...
2,714
0
{"language": "c", "success": true, "metadata": {"lines": 280, "avg_line_length": 26.61, "nodes": 1470, "errors": 0, "source_hash": "35b435457f0dd455d53a5ebe07613a6e00ad04ff60b719411b7ff5ba3a665ee5", "categorized_nodes": 897}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,920
c
#pragma once #include <tinyxml.h> #include <KYEngine/Optimizations/OptimizedMeshData.h> #include <KYEngine/Private/Resources/GroupedMeshItem.h> #include <KYEngine/Private/Resources/GroupedMeshRepeatItem.h> #include <KYEngine/Private/Resources/MeshResource.h> #include <KYEngine/Utility/Vector4.h> #include <string> #...
31
46
(translation_unit) "#pragma once\n\n#include <tinyxml.h>\n\n#include <KYEngine/Optimizations/OptimizedMeshData.h>\n#include <KYEngine/Private/Resources/GroupedMeshItem.h>\n#include <KYEngine/Private/Resources/GroupedMeshRepeatItem.h>\n#include <KYEngine/Private/Resources/MeshResource.h>\n#include <KYEngine/Utility/Vect...
364
16
{"language": "c", "success": true, "metadata": {"lines": 46, "avg_line_length": 31.0, "nodes": 214, "errors": 0, "source_hash": "4739e8d498fb610eda16a9900e7ce5e1ccedc0aa959daf3d0ed70845531e415b", "categorized_nodes": 146}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,921
c
#ifndef BWA_FLOW_PIPELINE_H #define BWA_FLOW_PIPELINE_H #include <boost/thread/mutex.hpp> #include <glog/logging.h> #include <list> #include <unordered_map> #include "BamFileBuffer.h" #include "bwa/bwamem.h" #include "bwa/bntseq.h" #include "kflow/Pipeline.h" #include "kflow/MapStage.h" #include "kflow/MapPartitionSt...
27.6
210
(translation_unit) "#ifndef BWA_FLOW_PIPELINE_H\n#define BWA_FLOW_PIPELINE_H\n\n#include <boost/thread/mutex.hpp>\n#include <glog/logging.h>\n#include <list>\n#include <unordered_map>\n\n#include "BamFileBuffer.h"\n#include "bwa/bwamem.h"\n#include "bwa/bntseq.h"\n#include "kflow/Pipeline.h"\n#include "kflow/MapStage.h...
1,651
116
{"language": "c", "success": true, "metadata": {"lines": 210, "avg_line_length": 27.6, "nodes": 963, "errors": 0, "source_hash": "02a1f7d7bde937d38c70927c4bcbf97807e5c6f5d0acad5b65608a81ee9e3645", "categorized_nodes": 625}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef BWA_FL...
1,922
c
/************************************************************************************************************************/ /* This file contains the inclusions and definitions needed for test functions or mocks*/ /********************************************************************************************************...
33.67
36
(translation_unit) "/************************************************************************************************************************/ \n/* This file contains the inclusions and definitions needed for test functions or mocks*/ \n/**********************************************************************************...
99
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 33.67, "nodes": 61, "errors": 0, "source_hash": "e9794fbb57c83f5f8e7b464bcab8219e70f52bd28919fcd6c0745a012e12fb78", "categorized_nodes": 42}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,923
c
/*- * Copyright (c) 2003-2006, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list...
25.7
199
(translation_unit) "/*-\n * Copyright (c) 2003-2006, <NAME> <<EMAIL>>\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\n * are met:\n * 1. Redistributions of source code must retain the above copyri...
1,501
0
{"language": "c", "success": true, "metadata": {"lines": 199, "avg_line_length": 25.7, "nodes": 936, "errors": 0, "source_hash": "92ad9aa74ed64af8a3f850a106db6d63f4e9981d82765060a556c6292a7b28c2", "categorized_nodes": 696}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,924
c
/* * Copyright 2008 Search Solution Corporation * Copyright 2016 CUBRID Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-...
26.03
194
(translation_unit) "/*\n * Copyright 2008 Search Solution Corporation\n * Copyright 2016 CUBRID Corporation\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....
895
0
{"language": "c", "success": true, "metadata": {"lines": 194, "avg_line_length": 26.03, "nodes": 567, "errors": 0, "source_hash": "f6f0efe4948964867be428259a75b499949b730bea93d47e414e6ae7f6d30fdb", "categorized_nodes": 350}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#ident...
1,925
c
#ifndef HPB_SUBSCRIPTION_TEST_H_INCLUDED_ #define HPB_SUBSCRIPTION_TEST_H_INCLUDED_ #include <CUnit/Basic.h> #include "hype_pub_sub/hpb_subscription.h" void hpb_subscription_test(); #endif /* HPB_SUBSCRIPTION_TEST_H_INCLUDED_ */
37.17
6
(translation_unit) "#ifndef HPB_SUBSCRIPTION_TEST_H_INCLUDED_\n#define HPB_SUBSCRIPTION_TEST_H_INCLUDED_\n\n#include <CUnit/Basic.h>\n\n#include "hype_pub_sub/hpb_subscription.h"\n\nvoid hpb_subscription_test();\n\n#endif /* HPB_SUBSCRIPTION_TEST_H_INCLUDED_ */\n" (preproc_ifdef) "#ifndef HPB_SUBSCRIPTION_TEST_H_INCL...
26
0
{"language": "c", "success": true, "metadata": {"lines": 6, "avg_line_length": 37.17, "nodes": 18, "errors": 0, "source_hash": "ed1918887b3724e930ad6be0bb888e1aed77dad9d6fd9da100e85096836732e7", "categorized_nodes": 14}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef H...
1,926
c
/// Copyright (c) <NAME> #pragma once #pragma warning(disable : 4201) #include <cstddef> namespace math { template <typename T> struct vector2_t { static const vector2_t zero; static const vector2_t up; static const vector2_t right; static const vector2_t ones; union { struct { T x, y; ...
20.54
184
(ERROR) "/// Copyright (c) <NAME>\n\n#pragma once\n#pragma warning(disable : 4201)\n\n#include <cstddef>\n\nnamespace math\n{\n template <typename T>\n struct vector2_t\n {\n static const vector2_t zero;\n static const vector2_t up;\n static const vector2_t right;\n static const vector2_t ones;\n\n union\n {\n ...
1,470
111
{"language": "c", "success": true, "metadata": {"lines": 184, "avg_line_length": 20.54, "nodes": 938, "errors": 0, "source_hash": "b7dcbd4ce6f87ba5a16498d8984c8758f92ebd0493550575d2bbf07b46077cd5", "categorized_nodes": 629}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "/// Copyright (c) <NAME>...
1,927
c
/* * timer.h * * Created on: 5 Feb 2020 * Author: frenoy */ #ifndef TIMER_H_ #define TIMER_H_ #include "fsl_gpt.h" #define TIMER_GPT GPT2 void Timer_Init(); void Timer_DelayMs(uint16_t delay_time); void Timer_DelayUs(uint16_t delay_time); void Timer_StartCapture(); uint32_t Timer_StopCapture(); #endif /...
19.56
16
(translation_unit) "/*\n * timer.h\n *\n * Created on: 5 Feb 2020\n * Author: frenoy\n */\n\n#ifndef TIMER_H_\n#define TIMER_H_\n\n#include "fsl_gpt.h"\n\n#define TIMER_GPT GPT2\n\nvoid Timer_Init();\nvoid Timer_DelayMs(uint16_t delay_time);\nvoid Timer_DelayUs(uint16_t delay_time);\nvoid Timer_StartCapture();\nu...
66
0
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 19.56, "nodes": 45, "errors": 0, "source_hash": "e4b46aab5f2dba5ce1123d5d4ea3f556620ac8dde45dfeb5608c30fe746a9599", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,928
c
/* hci_ecc.h - HCI ECC emulation */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ void bt_hci_ecc_init(void); int bt_hci_ecc_send(struct net_buf *buf); u8_t *bt_ecc_private_key_get(void); void bt_ecc_private_key_set(u8_t *pri_key);
26.5
10
(translation_unit) "/* hci_ecc.h - HCI ECC emulation */\n\n/*\n * Copyright (c) 2016 Intel Corporation\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nvoid bt_hci_ecc_init(void);\nint bt_hci_ecc_send(struct net_buf *buf);\nu8_t *bt_ecc_private_key_get(void);\nvoid bt_ecc_private_key_set(u8_t *pri_key);\n" (commen...
53
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 26.5, "nodes": 38, "errors": 0, "source_hash": "ccec2e683575efd3fed81d4258380ec8b310e48e996c3f613164a526252d3bd7", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "void bt_hci...
1,929
c
////////////////////////////////////////////////////////////////////////////// // This file is part of 'SLAC Firmware Standard Library'. // It is subject to the license terms in the LICENSE.txt file found in the // top-level directory of this distribution and at: // https://confluence.slac.stanford.edu/display/ppa...
37.78
27
(translation_unit) "//////////////////////////////////////////////////////////////////////////////\n// This file is part of 'SLAC Firmware Standard Library'.\n// It is subject to the license terms in the LICENSE.txt file found in the \n// top-level directory of this distribution and at: \n// https://confluence.slac....
106
0
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 37.78, "nodes": 69, "errors": 0, "source_hash": "2d940409e0acb91ef24ddb6f7ce15f56441b4135f7ce15ee7451c0f5d4281600", "categorized_nodes": 47}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,930
c
#ifndef _LOCALES_H #define _LOCALES_H #include <flutter_embedder.h> struct locale; struct locales; struct concurrent_pointer_set; struct locale *locale_new(const char *language, const char *territory, const char *codeset, const char *modifier); void locale_destroy(struct locale *locale); const FlutterLocale *local...
53.52
21
(translation_unit) "#ifndef _LOCALES_H\n#define _LOCALES_H\n\n#include <flutter_embedder.h>\n\nstruct locale;\nstruct locales;\nstruct concurrent_pointer_set;\n\nstruct locale *locale_new(const char *language, const char *territory, const char *codeset, const char *modifier);\n\nvoid locale_destroy(struct locale *local...
313
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 53.52, "nodes": 235, "errors": 0, "source_hash": "f6f34c49cc43760f7237abc52717fc03ce52a3ebf913beb1a7215cb851b7be18", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,931
c
#pragma once #include <string> #include "noncopyable.h" #include <set> #ifdef _WIN32 #include "string_util.h" #include <Windows.h> #else #include <dlfcn.h> #include <elf.h> #include <link.h> #endif namespace ttl { class dynlib : public noncopyable { public: #ifdef _WIN32 typedef HMODULE native_handle_t; #else t...
29.15
190
(translation_unit) "#pragma once\n#include <string>\n#include "noncopyable.h"\n#include <set>\n#ifdef _WIN32\n#include "string_util.h"\n#include <Windows.h>\n#else\n#include <dlfcn.h>\n#include <elf.h>\n#include <link.h>\n#endif\n\n\nnamespace ttl {\n class dynlib : public noncopyable {\n public:\n#ifdef _WIN32\n type...
2,009
47
{"language": "c", "success": true, "metadata": {"lines": 190, "avg_line_length": 29.15, "nodes": 1243, "errors": 0, "source_hash": "f0b66efcf763786c71d370582a5949905108ceee9cbd784e2663f9e9cfaa7f7b", "categorized_nodes": 825}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#prag...
1,932
c
/* * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope...
23.74
237
(translation_unit) "/*\n * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.\n *\n * This program is free software; you can redistribute it and/or modify it\n * under the terms and conditions of the GNU General Public License,\n * version 2, as published by the Free Software Foundation.\n *\n * This program...
1,776
4
{"language": "c", "success": true, "metadata": {"lines": 237, "avg_line_length": 23.74, "nodes": 1112, "errors": 0, "source_hash": "01d82a09240d4ab3db9c3e01cda5538dae2a535d972207ad833097041715cea4", "categorized_nodes": 761}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#i...
1,933
c
#include "dataStructures.h" #include <stdio.h> #include <stdlib.h> void** Alloc2DArr(int x, int y, int typeSize) { void **arr = malloc(x * sizeof(void*)); int allocSize = y * x * typeSize; char* arr2 = malloc(allocSize); if (arr == NULL || arr2 == NULL) { printf("2Darray alloc error"); ...
24.5
20
(translation_unit) "#include "dataStructures.h"\n\n#include <stdio.h>\n#include <stdlib.h>\n\nvoid** Alloc2DArr(int x, int y, int typeSize) {\n void **arr = malloc(x * sizeof(void*));\n int allocSize = y * x * typeSize;\n char* arr2 = malloc(allocSize);\n if (arr == NULL || arr2 == NULL) {\n printf("...
215
0
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 24.5, "nodes": 146, "errors": 0, "source_hash": "3914374f4f08087cf90fff210bfb83212fca092337259147d4fad5981996364b", "categorized_nodes": 86}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,934
c
/** * \file * * \brief TWIHS Slave Example for SAM. * * Copyright (c) 2013-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met...
34.89
250
(translation_unit) "/**\n * \file\n *\n * \brief TWIHS Slave Example for SAM.\n *\n * Copyright (c) 2013-2014 Atmel Corporation. All rights reserved.\n *\n * \asf_license_start\n *\n * \page License\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that ...
954
0
{"language": "c", "success": true, "metadata": {"lines": 250, "avg_line_length": 34.89, "nodes": 535, "errors": 0, "source_hash": "d77a40d88d8c75df7c5d03706ec568de61eeb2f65348fe69d17e1a577bd34bd5", "categorized_nodes": 414}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,935
c
#include <stdio.h> #include "tests.h" int main(){ DO_TESTS; }
11.6
5
(translation_unit) "#include <stdio.h>\n#include "tests.h"\n\nint main(){\n DO_TESTS;\n}\n" (preproc_include) "#include <stdio.h>\n" (#include) "#include" (system_lib_string) "<stdio.h>" (preproc_include) "#include "tests.h"\n" (#include) "#include" (string_literal) ""tests.h"" (") """ (...
23
0
{"language": "c", "success": true, "metadata": {"lines": 5, "avg_line_length": 11.6, "nodes": 12, "errors": 0, "source_hash": "c6eb301aed978eb985e64708ca32cd2fe201302330eec802325efc8e3e1aa83e", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include...
1,936
c
#pragma once #include "Utils.h" class Transform { public: Vec3 m_position; Vec3 m_rotation; Vec3 m_scale; Transform() : m_position(0.0f, 0.0f, 0.0f), m_rotation(0.0f, 0.0f, 0.0f), m_scale(1.0f, 1.0f, 1.0f) {} ~Transform() {} };
20.18
11
(translation_unit) "#pragma once\n\n#include "Utils.h"\n\nclass Transform\n{\npublic:\n Vec3 m_position;\n Vec3 m_rotation;\n Vec3 m_scale;\n\n Transform() : m_position(0.0f, 0.0f, 0.0f), m_rotation(0.0f, 0.0f, 0.0f), m_scale(1.0f, 1.0f, 1.0f) {}\n ~Transform() {}\n};" (preproc_call) "#pragma once\n" (preproc_dir...
91
1
{"language": "c", "success": true, "metadata": {"lines": 11, "avg_line_length": 20.18, "nodes": 47, "errors": 0, "source_hash": "b3f1b2719eb54f13d4541b17da182ecf6186fdc72ebc4692245f4fece5178990", "categorized_nodes": 37}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,937
c
/* * Note: this file originally auto-generated by mib2c using * $ * * $Id:$ */ #ifndef WIFIBSSACCESSTABLE_OIDS_H #define WIFIBSSACCESSTABLE_OIDS_H #ifdef __cplusplus extern "C" { #endif /* column number definitions for table wifiBssAccessTable */ #define WIFIBSSACCESSTABLE_OID 1,3,6,1,4,1,4413,2,2...
31.76
42
(translation_unit) "/*\n * Note: this file originally auto-generated by mib2c using\n * $\n *\n * $Id:$\n */\n#ifndef WIFIBSSACCESSTABLE_OIDS_H\n#define WIFIBSSACCESSTABLE_OIDS_H\n\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n\n/* column number definitions for table wifiBssAccessTable */\n#define WIFIBSSACCESSTABLE_OI...
76
0
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 31.76, "nodes": 64, "errors": 0, "source_hash": "a6bc978de4271889165c4fc017b254d3da947b2f7fdcf7ddff3e439dfcda9187", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,938
c
#ifndef SCENE_H #define SCENE_H #include "Entity.h" #include "SubSystem.h" #include "EntityManager.h" #include "ComponentManager.h" #include <vector> #include <unordered_map> #include "component/MeshComponent.h" #include "component/SkyComponent.h" #include "component/UIComponent.h" #include "component/SpriteComponent...
29.64
140
(translation_unit) "#ifndef SCENE_H\n#define SCENE_H\n\n#include "Entity.h"\n#include "SubSystem.h"\n#include "EntityManager.h"\n#include "ComponentManager.h"\n#include <vector>\n#include <unordered_map>\n\n#include "component/MeshComponent.h"\n#include "component/SkyComponent.h"\n#include "component/UIComponent.h"\n#i...
1,150
30
{"language": "c", "success": true, "metadata": {"lines": 140, "avg_line_length": 29.64, "nodes": 746, "errors": 0, "source_hash": "ba188394d19ff087bf091181d62bc522d5d451127e1214a32edf4016987c9d67", "categorized_nodes": 554}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,939
c
#ifndef PREEXIST #define PREEXIST #include <vector> #include "Event.h" class CellNode; class Detection; class IdleState; class Tree; // Event associated with cells that are present in the first image. class Preexist: Event { public: // Creates a preexist event (arc) between a start-IdleState and a Detection. Preex...
36.45
22
(translation_unit) "#ifndef PREEXIST\n#define PREEXIST\n\n#include <vector>\n#include "Event.h"\n\nclass CellNode;\nclass Detection;\nclass IdleState;\nclass Tree;\n\n// Event associated with cells that are present in the first image.\nclass Preexist: Event {\npublic:\n // Creates a preexist event (arc) between a start...
148
6
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 36.45, "nodes": 96, "errors": 0, "source_hash": "9e0d20119dbcbf9654b89cd7182aa5fa5b592c86dc13cb175dbb896d69e78d81", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,940
c
#include "func.h" int main() { char* r; char* s; int n = 0; r = replace_line("abcdf", "c", "ccc"); s = "abcccdf"; if(strcmp(s, r) == 0) n++; free(r); if(n == 1) printf("Test #1 passed.\n"); r = replace_line("abcdf", "", "ccc"); if(r == ...
16.27
81
(translation_unit) "#include "func.h" \n \nint main() \n{ \n char* r; \n char* s; \n int n = 0; \n \n \n \n r = replace_line("abcdf", "c", "ccc"); \n s = "abcccdf"; \n if(strcmp(s, r) == 0) \n n++; \n \n free(r); \n \n if(n == 1) \n printf("Test #1 passed.\n"); \n \n r = replace...
607
0
{"language": "c", "success": true, "metadata": {"lines": 81, "avg_line_length": 16.27, "nodes": 296, "errors": 0, "source_hash": "48210756a115ef209e1e74570d8b04f854039bcb15414ac282da4bbc95e54213", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,941
c
// // Created by camir on 8/31/2021. // #ifndef LIBFT_FT_STRLEN_H #define LIBFT_FT_STRLEN_H int ft_strlen(const char * str); #endif //LIBFT_FT_STRLEN_H
15.4
10
(translation_unit) "// \n// Created by camir on 8/31/2021. \n// \n \n#ifndef LIBFT_FT_STRLEN_H \n#define LIBFT_FT_STRLEN_H \n \nint ft_strlen(const char * str); \n \n#endif //LIBFT_FT_STRLEN_H \n" (comment) "// " (comment) "// Created by camir on 8/31/2021. " (comment) "// " (preproc_ifdef) "#ifndef LIBFT_FT_ST...
27
0
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 15.4, "nodes": 17, "errors": 0, "source_hash": "d2da6125f2f19a9fe559450f6fc7a7b903f373f896887ceab001354be4e592d7", "categorized_nodes": 10}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef L...
1,942
c
#pragma once namespace DCSynths { enum class EnvelopeState { Idle = 0, Attack, Decay, Sustain, Release }; class ADSR { public: ADSR(); ~ADSR(); void Start(); void Release(); void SetEnvelope(int attackSamples, int decaySamples, double sustainLevel, int releaseSamples); double GetLevel...
14.93
29
(translation_unit) "#pragma once\n\nnamespace DCSynths\n{\n enum class EnvelopeState\n {\n Idle = 0,\n Attack,\n Decay,\n Sustain,\n Release\n };\n\n class ADSR\n {\n public:\n ADSR();\n\n ~ADSR();\n\n void Start();\n\n void Release();\n\n void SetEnvelope(int attackSamples, int decaySamples, double sustainLe...
139
0
{"language": "c", "success": true, "metadata": {"lines": 29, "avg_line_length": 14.93, "nodes": 84, "errors": 0, "source_hash": "b9af23bc975d66cb4aa23c6a3c5a8ea0b0730fb140e6195886435ef25c6347a9", "categorized_nodes": 59}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,943
c
/*! \file bcmbd_fwm_validator.c * * Functions of validator of Firmware Management. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ #include <bsl/bsl.h> #incl...
23.63
30
(translation_unit) "/*! \file bcmbd_fwm_validator.c\n *\n * Functions of validator of Firmware Management.\n */\n/*\n * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.\n * \n * Copyright 2007-2020 Broadcom Inc. All rights reserved.\n */...
69
0
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 23.63, "nodes": 47, "errors": 0, "source_hash": "8e1281538f1f4f556c62d8847e14103505986a17435d347ca87acdf52d09d585", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inclu...
1,944
c
// // SyFileManager.h // DaJiaCore // // Created by zhengxiaofeng on 13-12-1. // Copyright (c) 2013年 zhengxiaofeng. All rights reserved. // #import <Foundation/Foundation.h> @interface SyFileManager : NSObject + (SyFileManager *)defaultManager; + (NSString *)createFullPath:(NSString *)aPath; + (NSString *)record...
22.32
120
(ERROR) "//\n// SyFileManager.h\n// DaJiaCore\n//\n// Created by zhengxiaofeng on 13-12-1.\n// Copyright (c) 2013年 zhengxiaofeng. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\n@interface SyFileManager : NSObject\n\n+ (SyFileManager *)defaultManager;\n+ (NSString *)createFullPath:(NSString *)aPath...
386
15
{"language": "c", "success": true, "metadata": {"lines": 120, "avg_line_length": 22.32, "nodes": 204, "errors": 0, "source_hash": "2703fb34350b855c466fddced7e1a105ab0f54eb0244baf695eeef1653880d42", "categorized_nodes": 121}, "ast": {"root": "ERROR", "nodes": [{"id": 0, "type": "ERROR", "text": "//\n// SyFileManager.h\...
1,945
c
/* infcodes.c -- process literals and length/distance pairs * Copyright (C) 1995-1998 <NAME> * For conditions of distribution and use, see copyright notice in zlib.h file modified by <NAME> (2003) */ /* zdelta: * * modified: * enum inflate_codes_mode * inflate_codes_new * inf...
29.35
345
(translation_unit) "/* infcodes.c -- process literals and length/distance pairs\n * Copyright (C) 1995-1998 <NAME>\n * For conditions of distribution and use, see copyright notice in zlib.h \n \n file modified by <NAME> (2003)\n */\n\n/* zdelta:\n *\n * modified: \n * enum inflate_codes_mode\n * in...
2,608
35
{"language": "c", "success": true, "metadata": {"lines": 345, "avg_line_length": 29.35, "nodes": 1621, "errors": 0, "source_hash": "aa97e84f59d0367d8c97cea812e7add4c3d1e426cf706c7df289d5bd7d590462", "categorized_nodes": 1280}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#...
1,946
c
#ifndef DisplayItem_h #define DisplayItem_h #include <Arduino.h> class DisplayItem { public: enum Type { TEXT, NUMBER }; Type type; uint8_t number; char shortName[4]; String text; bool selectable; bool dirty = true; }; #endi...
17.71
17
(translation_unit) "#ifndef DisplayItem_h\n#define DisplayItem_h\n\n#include <Arduino.h>\n\nclass DisplayItem {\n public:\n enum Type {\n TEXT,\n NUMBER\n };\n\n Type type;\n uint8_t number;\n char shortName[4];\n String text;\n bool selectable;\...
67
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 17.71, "nodes": 46, "errors": 0, "source_hash": "c1572d52a8c820da782591e7d87b8fbf0e326c0b31c3f93f39e41e669a4295d5", "categorized_nodes": 35}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,947
c
/* * GStreamer * Copyright (C) <2010-2015> <NAME> <<EMAIL>> * * Dodge - saturation video effect. * Based on Pete Warden's FreeFrame plugin with the same name. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), ...
33.98
218
(translation_unit) "/*\n * GStreamer\n * Copyright (C) <2010-2015> <NAME> <<EMAIL>>\n *\n * Dodge - saturation video effect.\n * Based on Pete Warden's FreeFrame plugin with the same name.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentat...
1,136
0
{"language": "c", "success": true, "metadata": {"lines": 218, "avg_line_length": 33.98, "nodes": 713, "errors": 0, "source_hash": "099a57dc1c3b2e82b92e60246909c66264b382d5f875a64b7e413369ec5f2c58", "categorized_nodes": 507}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifde...
1,948
c
/* ADOBE SYSTEMS INCORPORATED Copyright 1994 - 2008 Adobe Macromedia Software LLC All Rights Reserved NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. If you have received this file from a source other than Adobe, then y...
21.01
86
(translation_unit) "/*\nADOBE SYSTEMS INCORPORATED\nCopyright 1994 - 2008 Adobe Macromedia Software LLC\nAll Rights Reserved\n\nNOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the \nterms of the Adobe license agreement accompanying it. If you have received this file from a \nsour...
418
10
{"language": "c", "success": true, "metadata": {"lines": 86, "avg_line_length": 21.01, "nodes": 233, "errors": 0, "source_hash": "997defee33624b7b42f3cb09ae93f7f7bdd4f35f8db4619514fa66e666c42a76", "categorized_nodes": 166}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,949
c
#ifndef RED_TEXT_RENDERING_IFONTLAYOUTSOURCE_H #define RED_TEXT_RENDERING_IFONTLAYOUTSOURCE_H #include <Red/Text/Rendering/Rendering.h> #include <Red/Text/Rendering/RawFontTextureAtlas.h> #include <Red/Util/IRefCounted.h> #include <stdint.h> namespace Red { namespace Text { namespace Rendering { c...
24.06
50
(translation_unit) "#ifndef RED_TEXT_RENDERING_IFONTLAYOUTSOURCE_H\n#define RED_TEXT_RENDERING_IFONTLAYOUTSOURCE_H\n\n#include <Red/Text/Rendering/Rendering.h>\n#include <Red/Text/Rendering/RawFontTextureAtlas.h>\n\n#include <Red/Util/IRefCounted.h>\n\n#include <stdint.h>\n\nnamespace Red\n{\n \n namespace Text\n {\n ...
245
14
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 24.06, "nodes": 165, "errors": 0, "source_hash": "e5f56608e9d1514471590b7749c1dcb0d10af70c46cf82ccc592727d3de42fd9", "categorized_nodes": 114}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,950
c
$NetBSD: patch-camlibs_ax203_jpeg__memsrcdest.c,v 1.1 2016/02/04 11:57:50 wiz Exp $ Fix build with jpeg-9b. --- camlibs/ax203/jpeg_memsrcdest.c.orig 2012-12-13 08:49:31.000000000 +0000 +++ camlibs/ax203/jpeg_memsrcdest.c @@ -143,7 +143,7 @@ term_source (j_decompress_ptr cinfo) */ GLOBAL(void) -jpeg_mem_src (j_dec...
35.62
13
(translation_unit) "$NetBSD: patch-camlibs_ax203_jpeg__memsrcdest.c,v 1.1 2016/02/04 11:57:50 wiz Exp $\n\nFix build with jpeg-9b.\n\n--- camlibs/ax203/jpeg_memsrcdest.c.orig 2012-12-13 08:49:31.000000000 +0000\n+++ camlibs/ax203/jpeg_memsrcdest.c\n@@ -143,7 +143,7 @@ term_source (j_decompress_ptr cinfo)\n */\n \n GLOB...
167
15
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 35.62, "nodes": 134, "errors": 0, "source_hash": "904ff2c18282d8544f62e487984bfd8f1ef1e57912994ce447042e9c350abcef", "categorized_nodes": 90}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "labeled_statement", "text": "$Ne...
1,951
c
// Complete the mergeLists function below. /* * For your reference: * * SinglyLinkedListNode { * int data; * SinglyLinkedListNode* next; * }; * */ SinglyLinkedListNode* mergeLists(SinglyLinkedListNode* head1, SinglyLinkedListNode* head2) { SinglyLinkedListNode* p=NULL; if(head1==NULL) retu...
19.03
30
(translation_unit) "// Complete the mergeLists function below.\n\n/*\n * For your reference:\n *\n * SinglyLinkedListNode {\n * int data;\n * SinglyLinkedListNode* next;\n * };\n *\n */\nSinglyLinkedListNode* mergeLists(SinglyLinkedListNode* head1, SinglyLinkedListNode* head2) {\n SinglyLinkedListNode* p=NUL...
150
1
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 19.03, "nodes": 95, "errors": 0, "source_hash": "fd1ff5fdae80a8554d87e455bd20e53810ee62fe3bda3de543fc1258fd5e3007", "categorized_nodes": 64}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "Si...
1,952
c
// // ZQAlbumCell.h // PhotoAlbum // // Created by ZhouQian on 16/6/24. // Copyright © 2016年 ZhouQian. All rights reserved. // #import <UIKit/UIKit.h> #import "ZQPhotoModel.h" #import "Typedefs.h" static CGFloat kLineSpacing = 2; #define kAlbumCellWidth (kTPScreenWidth - kLineSpacing*3)/4 #define kAlbumCellThumbW...
32.03
30
(translation_unit) "//\n// ZQAlbumCell.h\n// PhotoAlbum\n//\n// Created by ZhouQian on 16/6/24.\n// Copyright © 2016年 ZhouQian. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import "ZQPhotoModel.h"\n#import "Typedefs.h"\n\nstatic CGFloat kLineSpacing = 2;\n#define kAlbumCellWidth (kTPScreenWidth - kLineSpac...
248
37
{"language": "c", "success": true, "metadata": {"lines": 30, "avg_line_length": 32.03, "nodes": 176, "errors": 0, "source_hash": "6ab6af0088ef956cde40351f4bdf431d2fdd79eb340c567ee02988ec7799e69d", "categorized_nodes": 99}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UI...
1,953
c
#ifndef GAMEOBJECT_H #define GAMEOBJECT_H #include <vector> #include <string> #include "maths\Vector3.h" #include "Mesh.h" #include "Shader.h" #include "BoxCollider.h" namespace wicked { class BoxCollider; class GameObject { public: bool isDestroy; std::string tag; maths::Vector3 position; Mesh mesh; Sh...
19.03
34
(translation_unit) "#ifndef GAMEOBJECT_H\n#define GAMEOBJECT_H\n\n#include <vector>\n#include <string>\n#include "maths\Vector3.h"\n#include "Mesh.h"\n#include "Shader.h"\n#include "BoxCollider.h"\n\nnamespace wicked\n{\n class BoxCollider;\n class GameObject\n {\n public:\n bool isDestroy;\n std::string tag;\n math...
192
9
{"language": "c", "success": true, "metadata": {"lines": 34, "avg_line_length": 19.03, "nodes": 115, "errors": 0, "source_hash": "f237d97d449805379574b2ab12906eaa6f9bd80ed9edc0a9013a8847df2d7ed2", "categorized_nodes": 87}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,954
c
#pragma once class Texture { public: Texture(); void Init(unsigned char* data, int w, int h, unsigned int internalFormat = 0x1908, unsigned int format = 0x1908); void Bind() const; void Unbind() const; void CleanUp(); inline unsigned int GetID() const { return m_textureID; } inline unsigned int GetWidth() ...
27.29
17
(translation_unit) "#pragma once\n\nclass Texture\n{\npublic:\n Texture();\n\n void Init(unsigned char* data, int w, int h, unsigned int internalFormat = 0x1908, unsigned int format = 0x1908);\n \n void Bind() const;\n void Unbind() const;\n\n void CleanUp();\n\n inline unsigned int GetID() const { return m_textureID; ...
168
7
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 27.29, "nodes": 101, "errors": 0, "source_hash": "4b09888d1cb3c9cbb1c1739b9b1efc3df31c867789d324529613c797a453babe", "categorized_nodes": 56}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma ...
1,955
c
/** * @author <NAME> <<EMAIL>> * @date August 17, 2016 */ #ifndef PROCS_SEGMENTATIONCOLOUROBJECT_H #define PROCS_SEGMENTATIONCOLOUROBJECT_H #include <opencv2/core/types.hpp> namespace procs { /** * This class represents the objects found by the segmentation colour algorithm. */ class SegmentationColourObject { ...
21.71
42
(translation_unit) "/**\n * @author <NAME> <<EMAIL>>\n * @date August 17, 2016\n */\n\n#ifndef PROCS_SEGMENTATIONCOLOUROBJECT_H\n#define PROCS_SEGMENTATIONCOLOUROBJECT_H\n\n#include <opencv2/core/types.hpp>\n\nnamespace procs\n{\n/**\n * This class represents the objects found by the segmentation colour algorithm.\n */...
160
9
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 21.71, "nodes": 82, "errors": 0, "source_hash": "6ebe88e110a36b9be012682412c1cb2082f28fea09e54e1cf1805a7f84bb786b", "categorized_nodes": 62}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,956
c
/*******************************************************************\ Module: Goto Programs Author: <NAME>, <EMAIL> \*******************************************************************/ /// \file /// Goto Programs Author: <NAME>, <EMAIL> #ifndef CPROVER_GOTO_PROGRAMS_REBUILD_GOTO_START_FUNCTION_H #define CPROVER_GO...
35.56
39
(translation_unit) "/*******************************************************************\\n Module: Goto Programs\n Author: <NAME>, <EMAIL>\n\*******************************************************************/\n\n/// \file\n/// Goto Programs Author: <NAME>, <EMAIL>\n\n#ifndef CPROVER_GOTO_PROGRAMS_REBUILD_GOTO_START_F...
165
8
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 35.56, "nodes": 100, "errors": 0, "source_hash": "a512d5160a5bd8ff8d73287bf2e66e21b58f23d848bdb360ddb640a3abd48d79", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,957
c
/* * Light.h * * Created on: Oct 23, 2014 * Author: e1949817 */ #ifndef LIGHT_H_ #define LIGHT_H_ #include "Color.h" #include "Vec3.h" class Light{ private: Vec3 position; Color color; public: Light(){ this->position = Vec3(0.0, 0.0, 0.0); this->color = Color(); } Ligh...
18.07
28
(translation_unit) "/*\n * Light.h\n *\n * Created on: Oct 23, 2014\n * Author: e1949817\n */\n\n#ifndef LIGHT_H_\n#define LIGHT_H_\n#include "Color.h"\n#include "Vec3.h"\n\nclass Light{\nprivate:\n Vec3 position;\n Color color;\n\npublic:\n Light(){\n this->position = Vec3(0.0, 0.0, 0.0);\n ...
151
2
{"language": "c", "success": true, "metadata": {"lines": 28, "avg_line_length": 18.07, "nodes": 84, "errors": 0, "source_hash": "6bc40850b73f33f5a4bd372f6f743d7690826dbd5972194aebcca317f8b1b2c1", "categorized_nodes": 68}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,958
c
/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #pragma on...
32.83
52
(translation_unit) "/**\n * Copyright (c) 2014-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same ...
314
0
{"language": "c", "success": true, "metadata": {"lines": 52, "avg_line_length": 32.83, "nodes": 188, "errors": 0, "source_hash": "6c2a4f8a852e0fd109f2bb82d9f05d90fa9f0ab211ecac79808b9238a2300556", "categorized_nodes": 152}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,959
c
// // ICMTeamPresence.h // // // Created by <NAME> on 19/01/2016. // Copyright (c) 2016 Intercom. All rights reserved. // #import <Foundation/Foundation.h> #import "ICMSafeNetworkModel.h" @class ICMParticipant; static NSString *const kICMTeamPresenceUpdated = @"ICMTeamPresenceUpdated"; @interface ICMTeamPresence...
38.41
22
(translation_unit) "//\n// ICMTeamPresence.h\n//\n//\n// Created by <NAME> on 19/01/2016.\n// Copyright (c) 2016 Intercom. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import "ICMSafeNetworkModel.h"\n\n@class ICMParticipant;\n\nstatic NSString *const kICMTeamPresenceUpdated = @"ICMTeamPresenceUpda...
197
37
{"language": "c", "success": true, "metadata": {"lines": 22, "avg_line_length": 38.41, "nodes": 137, "errors": 0, "source_hash": "9ce337faa2e59399418f693b433e6c405efb0541374eb037a6d78c234de7d2d3", "categorized_nodes": 65}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import ...
1,960
c
/** @file BlkCat -- UEFI Block Device Concatenator Driver Copyright (C) 2018 <NAME>. All rights reserved. https://github.com/rcpao/BlkCat <NAME> <rcpao+BlkCatEfi(at)gmail.com> Apache License 2.0 **/ /* --------------------------------------------------------------------------- pr-cfg-normal.h This file is copied...
40.71
17
(translation_unit) "/** @file\nBlkCat -- UEFI Block Device Concatenator Driver\nCopyright (C) 2018 <NAME>. All rights reserved.\n\nhttps://github.com/rcpao/BlkCat\n\n<NAME> <rcpao+BlkCatEfi(at)gmail.com>\n\nApache License 2.0\n\n**/\n\n/* ---------------------------------------------------------------------------\npr-...
14
0
{"language": "c", "success": true, "metadata": {"lines": 17, "avg_line_length": 40.71, "nodes": 8, "errors": 0, "source_hash": "f9ab3ff1a3a641a9d9ac79b7a49e35c3e908c54cf989025722c397261afe57ed", "categorized_nodes": 2}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define DEFA...
1,961
c
// // DDCashlessCustomizationAdditionVC.h // DDCashlessUI // // Created by <NAME> on 12/03/2020. // #import "DDCashlessBaseVC.h" #import "DDModels.h" NS_ASSUME_NONNULL_BEGIN @interface DDCashlessCustomizationAdditionVC : DDCashlessBaseVC @property (nonatomic, strong) DDCashlessItemM *product; @end NS_ASSUME_NONNU...
23.92
13
(translation_unit) "//\n// DDCashlessCustomizationAdditionVC.h\n// DDCashlessUI\n//\n// Created by <NAME> on 12/03/2020.\n//\n\n#import "DDCashlessBaseVC.h"\n#import "DDModels.h"\nNS_ASSUME_NONNULL_BEGIN\n\n@interface DDCashlessCustomizationAdditionVC : DDCashlessBaseVC\n@property (nonatomic, strong) DDCashlessItemM...
47
6
{"language": "c", "success": true, "metadata": {"lines": 13, "avg_line_length": 23.92, "nodes": 32, "errors": 0, "source_hash": "d73bcb363590ca21d80224547c2d06d4a7bd0eda79ed42492d94179a34cdd7f9", "categorized_nodes": 18}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \...
1,962
c
/*========================================================================= Program: Visualization Toolkit Module: vtk1DTransferFunctionChooser.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distr...
38.58
85
(translation_unit) "/*=========================================================================\n\n Program: Visualization Toolkit\n Module: vtk1DTransferFunctionChooser.h\n\n Copyright (c) <NAME>, <NAME>, <NAME>\n All rights reserved.\n See Copyright.txt or http://www.kitware.com/Copyright.htm for details.\n...
420
11
{"language": "c", "success": true, "metadata": {"lines": 85, "avg_line_length": 38.58, "nodes": 245, "errors": 0, "source_hash": "0168ac43c38fce39127a3054a0f2d060114b4740447a9a81490d9d5f5b5f4d38", "categorized_nodes": 167}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,963
c
// // ListMap.h // // Library: Foundation // Package: Hashing // Module: ListMap // // Definition of the ListMap class. // // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef Foundation_ListMap_INCLUDED #define Foundation_ListMa...
21.94
228
(translation_unit) "//\n// ListMap.h\n//\n// Library: Foundation\n// Package: Hashing\n// Module: ListMap\n//\n// Definition of the ListMap class.\n//\n// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.\n// and Contributors.\n//\n// SPDX-License-Identifier: BSL-1.0\n//\n\n\n#ifndef Foundation_ListMa...
1,347
48
{"language": "c", "success": true, "metadata": {"lines": 228, "avg_line_length": 21.94, "nodes": 734, "errors": 0, "source_hash": "8cedf10ee5fbbe2de2dbf98cc688f2c6aa302e196e5f64575eaa36789bbcc948", "categorized_nodes": 531}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,964
c
#pragma once /* Fast Efficient Fixed-Size Memory Pool, No Loops and No Overhead <NAME> School of Computer Science Newcastle University Newcastle, United Kingdom, <EMAIL> Copyright (c) IARIA, 2012. ISBN: 978-1-61208-222-6 2020-11-25 <EMAIL> adapted for use */ #include <new.h> namespace kenwright { class pool ...
19.97
105
(translation_unit) "#pragma once\n/*\n\nFast Efficient Fixed-Size Memory Pool, No Loops and No Overhead\n\n<NAME>\nSchool of Computer Science\nNewcastle University\nNewcastle, United Kingdom,\n<EMAIL>\n\nCopyright (c) IARIA, 2012. ISBN: 978-1-61208-222-6\n\n2020-11-25 <EMAIL> adapted for use \n*/\n\n#include <new.h>\...
538
5
{"language": "c", "success": true, "metadata": {"lines": 105, "avg_line_length": 19.97, "nodes": 323, "errors": 0, "source_hash": "7f38b3f3769e8210d6e6c8f05bc2b3ff8b243a59878d9e95675f98564aa3b4a0", "categorized_nodes": 203}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,965
c
#pragma once #include <pthread.h> #include <list> #include <ctime> #include <iostream> #include <deque> #include "../rover_util/task.h" #include "../rover_util/utils.h" #include <RTIMULib.h> enum TurnSideDirection { Left, Right, Center }; class NineAxisSensor : public TaskBase { private: struct timespec mLastUpd...
24.6
42
(translation_unit) "ragma once\n#include <pthread.h>\n#include <list>\n#include <ctime>\n#include <iostream>\n#include <deque>\n#include "../rover_util/task.h"\n#include "../rover_util/utils.h"\n#include <RTIMULib.h>\n\nenum TurnSideDirection {\n Left,\n Right,\n Center\n};\n\nclass NineAxisSensor : public TaskBase\n{\...
285
14
{"language": "c", "success": true, "metadata": {"lines": 42, "avg_line_length": 24.6, "nodes": 193, "errors": 0, "source_hash": "16a19db04b3dbb515496df4ac35a856b17553fcecb5280b5790be2a715a915bd", "categorized_nodes": 145}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma on...
1,966
c
// printf.c: (05/09/21, RD) // experiments (extended from printf/main.c) #include "stdio.h" #include "errno.h" #include "string.h" #include "unistd.h" int main(int argc, char **argv) { int n = printf("ABCDEFX %s\n", "Done"); int e = errno; printf("n = %d\n", n); puts(strerror(e)); puts("Hello World!"); putchar...
24.72
36
(translation_unit) "// printf.c: (05/09/21, RD)\n// experiments (extended from printf/main.c)\n\n#include "stdio.h"\n#include "errno.h"\n#include "string.h"\n#include "unistd.h"\n\nint main(int argc, char **argv) {\n int n = printf("ABCDEFX %s\n", "Done");\n int e = errno;\n printf("n = %d\n", n);\n puts(strerror(e));\...
372
0
{"language": "c", "success": true, "metadata": {"lines": 36, "avg_line_length": 24.72, "nodes": 197, "errors": 0, "source_hash": "348caf1532a136512668a076cacb75a91a84a363c9f12735350b62ce4c18437a", "categorized_nodes": 120}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,967
c
#ifndef __quat_multiply__ #define __quat_multiply__ #include "type.h" /** * Multiplies two quat's * * @param {quat} out the receiving quaternion * @param {quat} a the first operand * @param {quat} b the second operand * @returns {quat} out */ quat quat_multiply (quat out, quat a, quat b) { float ax = a[0], a...
28.57
21
(translation_unit) "#ifndef __quat_multiply__\n#define __quat_multiply__\n\n#include "type.h"\n\n/**\n * Multiplies two quat's\n *\n * @param {quat} out the receiving quaternion\n * @param {quat} a the first operand\n * @param {quat} b the second operand\n * @returns {quat} out\n */\nquat quat_multiply (quat out, quat ...
238
0
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 28.57, "nodes": 184, "errors": 0, "source_hash": "059288564426cede29887792314c415458bfab5733be8b44cd415400ab4e3bb6", "categorized_nodes": 132}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,968
c
/* Functions to handle symmetry operatons and equivalent atom detection Spacegroups taken from http://it.iucr.org/A/ added by <NAME>, 11/11/11 */ vector <XYZ> GetEquivalentPositions(int spacegroup,XYZ *pt); bool IsUniqueVertex(XYZ *p, ATOM_NETWORK &cell); int get_sym_ID(string s);
40.14
7
(translation_unit) "/* Functions to handle symmetry operatons and equivalent atom detection\n\n Spacegroups taken from http://it.iucr.org/A/\n\n added by <NAME>, 11/11/11\n\n*/\n\nvector <XYZ> GetEquivalentPositions(int spacegroup,XYZ *pt);\nbool IsUniqueVertex(XYZ *p, ATOM_NETWORK &cell);\nint get_sym_ID(string s)...
55
2
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 40.14, "nodes": 39, "errors": 0, "source_hash": "f9f59d4db751834078488a572fef49efc67012c6d8ebbc3053b85555257794a8", "categorized_nodes": 27}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "update_expression", "text": "vecto...
1,969
c
#include <sys/poll.h>
21
1
(translation_unit) "#include <sys/poll.h> \n" (preproc_include) "#include <sys/poll.h> \n" (#include) "#include" (system_lib_string) "<sys/poll.h>"
4
0
{"language": "c", "success": true, "metadata": {"lines": 1, "avg_line_length": 21.0, "nodes": 3, "errors": 0, "source_hash": "b6ebc2692e69f5a70e09e48a08941f8800d6a96e28eaa17728f64d284aa567de", "categorized_nodes": 3}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#include <...
1,970
c
/* Copyright 2021 <NAME> <<EMAIL>> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL ...
33.77
62
(translation_unit) "/*\n Copyright 2021 <NAME> <<EMAIL>>\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted, provided that the above\n copyright notice and this permission notice appear in all copies.\n\n THIS SOFTWARE IS PROVIDED "AS IS" AN...
418
0
{"language": "c", "success": true, "metadata": {"lines": 62, "avg_line_length": 33.77, "nodes": 241, "errors": 0, "source_hash": "a5b7f8983d8f75d40d95f76e418e304c373130199c38631d182e686b674b7cbe", "categorized_nodes": 176}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#undef ...
1,971
c
// // cvTracker.h // multiIPCameTracker // // Created by <NAME> on 9/1/15. // // #ifndef __multiIPCameTracker__cvTracker__ #define __multiIPCameTracker__cvTracker__ #include "ofMain.h" #include "Constants.h" #include "ofxOpenCv.h" #include "ofxOpticalFlowLK.h" #include "ofxOsc.h" #define HOST "localhost" #define P...
25.07
45
(translation_unit) "//\n// cvTracker.h\n// multiIPCameTracker\n//\n// Created by <NAME> on 9/1/15.\n//\n//\n\n#ifndef __multiIPCameTracker__cvTracker__\n#define __multiIPCameTracker__cvTracker__\n\n#include "ofMain.h"\n#include "Constants.h"\n#include "ofxOpenCv.h"\n#include "ofxOpticalFlowLK.h"\n#include "ofxOsc.h"...
235
1
{"language": "c", "success": true, "metadata": {"lines": 45, "avg_line_length": 25.07, "nodes": 161, "errors": 0, "source_hash": "e69290a1cbc75b88a54c1e6df7036547d8273d6bfb33e4c58aa7ca07eb224e01", "categorized_nodes": 124}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,972
c
// Copyright 2017 The Chromium OS 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 IMAGELOADER_HELPER_PROCESS_RECEIVER_H_ #define IMAGELOADER_HELPER_PROCESS_RECEIVER_H_ #include <base/files/scoped_file.h> #include <base/messa...
41.79
39
(translation_unit) "// Copyright 2017 The Chromium OS 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 IMAGELOADER_HELPER_PROCESS_RECEIVER_H_\n#define IMAGELOADER_HELPER_PROCESS_RECEIVER_H_\n\n#include <base/files/scoped_f...
235
12
{"language": "c", "success": true, "metadata": {"lines": 39, "avg_line_length": 41.79, "nodes": 136, "errors": 0, "source_hash": "0ec459c4ff77135f83bbdd02fb1fcc51bec43b4fe37535fb5bf98b14c24cee49", "categorized_nodes": 100}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnde...
1,973
c
#ifndef PROCES_H #define PROCES_H #include <cfloat> #include <iostream> using namespace std; struct Proces { unsigned int ID; unsigned int R, P, Q; unsigned int suma, grupa; float iloraz; Proces(unsigned int id = -1, unsigned int r = -1, unsigned int p = -1, unsigned int q = -1) : ID(id), R(r), P(...
21.71
24
(translation_unit) "#ifndef PROCES_H\n#define PROCES_H\n#include <cfloat>\n#include <iostream>\nusing namespace std;\n\nstruct Proces {\n unsigned int ID;\n unsigned int R, P, Q;\n unsigned int suma, grupa;\n float iloraz;\n\n Proces(unsigned int id = -1, unsigned int r = -1, unsigned int p = -1, unsigne...
181
11
{"language": "c", "success": true, "metadata": {"lines": 24, "avg_line_length": 21.71, "nodes": 128, "errors": 0, "source_hash": "fa00ddf2a50f5231ecfc51c581e98d22daacbd648f5592eca4589851f692e277", "categorized_nodes": 81}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,974
c
#ifndef PHYSICMATERIALCONVERTER_H #define PHYSICMATERIALCONVERTER_H #include <converter.h> #include "resources/physicmaterial.h" class PhysicMaterialImportSettings : public IConverterSettings { public: PhysicMaterialImportSettings(); }; class PhysicMaterialConverter : public IConverter { private: QStringLis...
39.12
16
(translation_unit) "#ifndef PHYSICMATERIALCONVERTER_H\n#define PHYSICMATERIALCONVERTER_H\n\n#include <converter.h>\n\n#include "resources/physicmaterial.h"\n\nclass PhysicMaterialImportSettings : public IConverterSettings {\npublic:\n PhysicMaterialImportSettings();\n};\n\nclass PhysicMaterialConverter : public ICon...
124
6
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 39.12, "nodes": 60, "errors": 0, "source_hash": "e1c4520554cd1d814953fa5d11e0d9245c3575542ab944844e2c86f45cc46a3f", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef ...
1,975
c
/* * UD3 * * Copyright (c) 2018 <NAME> * Copyright (c) 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to *...
30.3
159
(translation_unit) "/*\n * UD3\n *\n * Copyright (c) 2018 <NAME>\n * Copyright (c) 2015 <NAME>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the "Software"), to deal in\n * the Software without restriction, including without...
622
0
{"language": "c", "success": true, "metadata": {"lines": 159, "avg_line_length": 30.3, "nodes": 328, "errors": 0, "source_hash": "2ab3750090c471e9a322d37f87dea9919ebb6a33b3b7e2a020803ebd51f94db8", "categorized_nodes": 239}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,976
c
#ifndef LAGER_COMMON_SPHERICAL_COORDINATES_H #define LAGER_COMMON_SPHERICAL_COORDINATES_H #include <math.h> /** * Structure that describes spherical coordinates, consisting of a theta * (polar) angle and a phi (azimuthal) angle. * * Code based on: * http://stackoverflow.com/questions/17016175/c-unordered-map-usi...
28.52
56
(translation_unit) "#ifndef LAGER_COMMON_SPHERICAL_COORDINATES_H\n#define LAGER_COMMON_SPHERICAL_COORDINATES_H\n\n#include <math.h>\n\n/**\n * Structure that describes spherical coordinates, consisting of a theta\n * (polar) angle and a phi (azimuthal) angle.\n *\n * Code based on:\n * http://stackoverflow.com/question...
204
11
{"language": "c", "success": true, "metadata": {"lines": 56, "avg_line_length": 28.52, "nodes": 118, "errors": 0, "source_hash": "08a65935e0ee4b5cf9683c777fed04e723c9375f8685e9050598da6fed7b2460", "categorized_nodes": 84}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef...
1,977
c
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "IMessageContext.h" #include "IMessageBridge.h" #include "IMessageBus.h" #include "IMessageTransport.h" #include "IMessagingModule.h" /** * Implements a message bridge builder. */ class FMessageBridgeBuilde...
24.43
115
(translation_unit) "// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.\n\n#pragma once\n\n#include "CoreMinimal.h"\n#include "IMessageContext.h"\n#include "IMessageBridge.h"\n#include "IMessageBus.h"\n#include "IMessageTransport.h"\n#include "IMessagingModule.h"\n\n\n/**\n * Implements a message bridge builde...
550
21
{"language": "c", "success": true, "metadata": {"lines": 115, "avg_line_length": 24.43, "nodes": 293, "errors": 0, "source_hash": "58a152cdeafa54f5f2aecd19543f7d9a742ace930f723bc0d45156e2cacb0763", "categorized_nodes": 209}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,978
c
// Graph Engine // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // #pragma once #include <os/os.h> #include <Trinity/String.h> namespace Trinity { namespace IO { namespace Path { ...
37.18
176
(translation_unit) "// Graph Engine\n// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.\n//\n#pragma once\n#include <os/os.h>\n#include <Trinity/String.h>\nnamespace Trinity\n{\n namespace IO\n {\n names...
1,377
39
{"language": "c", "success": true, "metadata": {"lines": 176, "avg_line_length": 37.18, "nodes": 793, "errors": 0, "source_hash": "545f1f1495fdd379eaf2cd636103cb1c6adfac315399ab06ea0f5fee34570917", "categorized_nodes": 568}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragm...
1,979
c
#include "util.h" #define DATA_SIZE 20 int input_data1[DATA_SIZE] = { 267, 952, 229, 800, 337, 584, 944, 643, 902, 368, 241, 489, 913, 328, 826, 313, 933, 592, 985, 388 }; int input_data2[DATA_SIZE] = { 584, 989, 62, 271, 985, 853, 403, 788, 346, 531, 517, 222, 559, 461, 908, 241, 775, 358, 255, 332 }; int ver...
22.34
47
(translation_unit) "#include "util.h"\n\n#define DATA_SIZE 20\n\nint input_data1[DATA_SIZE] = \n{\n 267, 952, 229, 800, 337, 584, 944, 643, 902, 368, 241, 489, 913, 328, 826, 313, 933, 592, 985, 388\n};\n\nint input_data2[DATA_SIZE] = \n{\n 584, 989, 62, 271, 985, 853, 403, 788, 346, 531, 517, 222, 559, 461, 908, 241,...
420
0
{"language": "c", "success": true, "metadata": {"lines": 47, "avg_line_length": 22.34, "nodes": 249, "errors": 0, "source_hash": "0deb95b1c24386e7c83c24e991f3c41bef1bfefd99391d2078f891ce9f22781a", "categorized_nodes": 189}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,980
c
// // FSPDateEntryViewController.h // FireSnoop // // Created by <NAME> on 3/17/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @class FSPData; @interface FSPDateEntryViewController : UIViewController - (instancetype)initWithDataEntry:(FSPData *)dataEntry; @end
24
12
(translation_unit) "//\n// FSPDateEntryViewController.h\n// FireSnoop\n//\n// Created by <NAME> on 3/17/15.\n// Copyright (c) 2015 <NAME>. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@class FSPData;\n\n@interface FSPDateEntryViewController : UIViewController\n\n- (instancetype)initWithDataEntry:(FSPData ...
46
7
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 24.0, "nodes": 24, "errors": 0, "source_hash": "c5b1149dc33e884903eb6398832a63f2fb8b9b34012ae1936431980dd610c358", "categorized_nodes": 13}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <U...
1,981
c
/* Copyright (C) 2003-2008 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ /* Kernel module implementing an ip+port hash set */ #include <linux/module.h> #...
27.75
167
(translation_unit) "/* Copyright (C) 2003-2008 <NAME> <<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 version 2 as\n * published by the Free Software Foundation.\n */\n\n/* Kernel module implementing an ip+port hash set */\n...
1,321
9
{"language": "c", "success": true, "metadata": {"lines": 167, "avg_line_length": 27.75, "nodes": 869, "errors": 0, "source_hash": "8f0ca44560857c2d3b3095e12547c2303e960d969b0683a0aa8a933ae23c6e60", "categorized_nodes": 662}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#in...
1,982
c
// // LBSMMessageController.h // LBStoreMall // // Created by yunmei on 2017/9/22. // Copyright © 2017年 liubo. All rights reserved. // #import <UIKit/UIKit.h> @interface LBSMMessageController : UIViewController @end
21
10
(translation_unit) "//\n// LBSMMessageController.h\n// LBStoreMall\n//\n// Created by yunmei on 2017/9/22.\n// Copyright © 2017年 liubo. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface LBSMMessageController : UIViewController\n\n@end\n" (comment) "//" (comment) "// LBSMMessageController.h" (...
19
3
{"language": "c", "success": true, "metadata": {"lines": 10, "avg_line_length": 21.0, "nodes": 10, "errors": 0, "source_hash": "42680644c2947516251920caaa7a8519113a9650780308223046e127a47bdc2f", "categorized_nodes": 5}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "port <UIKit...
1,983
c
int func2a(void) { return 2; }
7.25
4
(translation_unit) "int func2a(void)\n{\n return 2;\n}\n" (function_definition) "int func2a(void)\n{\n return 2;\n}" (primitive_type) "int" (function_declarator) "func2a(void)" (identifier) "func2a" (parameter_list) "(void)" (() "(" (parameter_declaration) "void" (primi...
17
0
{"language": "c", "success": true, "metadata": {"lines": 4, "avg_line_length": 7.25, "nodes": 9, "errors": 0, "source_hash": "8595b79caae06b6d33c61c138491918c9365a1fa60b00d81b1b7cb3e580fd4df", "categorized_nodes": 6}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "function_definition", "text": "int fu...
1,984
c
#pragma once #include <tchar.h> #include <Windows.h> #if !defined(EXTERN_C) #if defined(__cplusplus) #define EXTERN_C extern "C" #else #define EXTERN_C extern #endif #endif struct POWSAVT_DLG_PARAM { HINSTANCE Instance; HWND Parent; }; typedef struct POWSAVT_DLG_PARAM POWSAVT_DLG_PARAM; EXTER...
16.71
21
(translation_unit) "ragma once \n \n#include <tchar.h> \n#include <Windows.h> \n \n#if !defined(EXTERN_C) \n#if defined(__cplusplus) \n#define EXTERN_C extern "C" \n#else \n#define EXTERN_C extern \n#endif \n#endif \n \nstruct POWSAVT_DLG_PARAM \n{ \n HINSTANCE Instance; \n HWND Parent; \n}; \ntypedef struct POWSAVT_DL...
77
1
{"language": "c", "success": true, "metadata": {"lines": 21, "avg_line_length": 16.71, "nodes": 61, "errors": 0, "source_hash": "2c9115abff369e1a8b6ba78d6a302d4fd31ea1c8b4b012f367389764201b6587", "categorized_nodes": 41}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "ragma onc...
1,985
c
/*++ /* NAME /* imapd_chat 3h /* SUMMARY /* SMTP server request/response support /* SYNOPSIS /* #include <imapd.h> /* #include <imapd_chat.h> /* DESCRIPTION /* .nf /* * External interface. */ extern void imapd_chat_reset(IMAPD_STATE *); extern void imapd_chat_query(IMAPD_STATE *); extern void PRINTFLIKE(2, 3) ima...
20.96
27
(translation_unit) "/*++\n/* NAME\n/* imapd_chat 3h\n/* SUMMARY\n/* SMTP server request/response support\n/* SYNOPSIS\n/* #include <imapd.h>\n/* #include <imapd_chat.h>\n/* DESCRIPTION\n/* .nf\n\n /*\n * External interface.\n */\nextern void imapd_chat_reset(IMAPD_STATE *);\nextern void imapd_chat_query(IMAPD_STATE *...
78
4
{"language": "c", "success": true, "metadata": {"lines": 27, "avg_line_length": 20.96, "nodes": 57, "errors": 0, "source_hash": "b59c044a833279447ed21eb9774aada82209533aa3499d8e75a933cebb7c747b", "categorized_nodes": 28}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "declaration", "text": "extern voi...
1,986
c
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "NSCoding.h" @interface SpriteMsgPushCommonModel : NSObject <NSCoding> { int _type; int _showPlace; int _priority; } + (id)createModelWithType:...
30.8
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.\n//\n\n#import "NSObject.h"\n\n#import "NSCoding.h"\n\n@interface SpriteMsgPushCommonModel : NSObject <NSCoding>\n{\n int _type;\n int _showPlace;\n int _prior...
151
18
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 30.8, "nodes": 94, "errors": 0, "source_hash": "f7535a295fa235a003f70028bcdf32458bbdffc543825e0dd0ebf7d79dcbb572", "categorized_nodes": 53}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
1,987
c
#import "MFHandler.h" @interface SBBrightnessController +(id)sharedBrightnessController; -(void)_setBrightnessLevel:(float)arg1 showHUD:(BOOL)arg2; @end @interface MFBrightnessHandler : MFHandler @end
27.71
7
(translation_unit) "#import "MFHandler.h"\n\n@interface SBBrightnessController\n+(id)sharedBrightnessController;\n-(void)_setBrightnessLevel:(float)arg1 showHUD:(BOOL)arg2;\n@end\n\n@interface MFBrightnessHandler : MFHandler\n@end" (preproc_call) "#import "MFHandler.h"\n" (preproc_directive) "#import" (prepro...
60
10
{"language": "c", "success": true, "metadata": {"lines": 7, "avg_line_length": 27.71, "nodes": 40, "errors": 0, "source_hash": "4ba16e6c2e404d7cf2565bdeec54ef523937c95635b9477ca5c3c9a38c2d42b8", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
1,988
c
/* * Samsung EXYNOS FIMC-IS (Imaging Subsystem) driver * * Copyright (C) 2014 Samsung Electronics Co., Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef FIMC_I...
36.98
192
(translation_unit) "/*\n * Samsung EXYNOS FIMC-IS (Imaging Subsystem) driver\n *\n * Copyright (C) 2014 Samsung Electronics Co., Ltd.\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 version 2 as\n * published by the Free Software Foun...
1,666
3
{"language": "c", "success": true, "metadata": {"lines": 192, "avg_line_length": 36.98, "nodes": 1270, "errors": 0, "source_hash": "e59f1bef101b676701681ade113d575f6cc70dcdd06236924548f5d33533c1e1", "categorized_nodes": 871}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifn...
1,989
c
#pragma once #include "../../../Core/Application/Generic/CEConsole.h" #include "../../../Core/Threading/Platform/Mutex.h" #include "../../../Windows/Windows.h" class CEWindowsConsole : public CEConsole { public: CEWindowsConsole(); ~CEWindowsConsole(); virtual void Print(const std::string& Message) overr...
31.16
19
(translation_unit) "#pragma once\n#include "../../../Core/Application/Generic/CEConsole.h"\n#include "../../../Core/Threading/Platform/Mutex.h"\n\n#include "../../../Windows/Windows.h"\n\nclass CEWindowsConsole : public CEConsole\n{\npublic:\n CEWindowsConsole();\n ~CEWindowsConsole();\n\n virtual void Print(c...
143
8
{"language": "c", "success": true, "metadata": {"lines": 19, "avg_line_length": 31.16, "nodes": 85, "errors": 0, "source_hash": "082bf2cb00150e2907729e536f56d68eb04026c368d4ec8a869f5cf9d93d9866", "categorized_nodes": 66}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,990
c
#pragma once #include <cstdint> #include <array> namespace noise { // Store the state of the noise functions (RNG) struct NoiseState { }; namespace perlin { struct State { std::array<uint8_t, 512> p; }; void Initialize(State* state, uint32_t seed); // x, y, z are non-uniform floats float Noise(Stat...
22.31
16
(translation_unit) "#pragma once\n#include <cstdint>\n#include <array>\n\nnamespace noise {\n // Store the state of the noise functions (RNG)\n struct NoiseState {\n\n };\n\n namespace perlin {\n struct State {\n std::array<uint8_t, 512> p;\n };\n\n void Initialize(State* state, uint32_t seed);\n // x, y, z are n...
103
5
{"language": "c", "success": true, "metadata": {"lines": 16, "avg_line_length": 22.31, "nodes": 69, "errors": 0, "source_hash": "8accc1dd5b0e1ed09e49d67b85100edf8ae5e32780c4e7e90a79766259176e2a", "categorized_nodes": 46}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma o...
1,991
c
/* Copyright (c) 2014-2015 <NAME>. All rights reserved. * License: This code is licensed under a 3-clause BSD license. See * the file named "LICENSE" for a full copy of the license. */ /** @file Tracks multiple positions and orientations using VRPN and * draws a small model at each of the locations. * * @author ...
36.5
242
(translation_unit) "/* Copyright (c) 2014-2015 <NAME>. All rights reserved.\n * License: This code is licensed under a 3-clause BSD license. See\n * the file named "LICENSE" for a full copy of the license.\n */\n\n/** @file Tracks multiple positions and orientations using VRPN and\n * draws a small model at each of the...
1,756
0
{"language": "c", "success": true, "metadata": {"lines": 242, "avg_line_length": 36.5, "nodes": 937, "errors": 0, "source_hash": "f33c1308571eed13804e6429594014d864035180b1b4f3e2fef6aad4c3ce365d", "categorized_nodes": 656}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_include", "text": "#inc...
1,992
c
// // DTSignupViewController.h // Parkly // // Created by <NAME> on 3/9/14. // Copyright (c) 2014 DevTeam14. All rights reserved. // #import <UIKit/UIKit.h> @protocol DTSignupViewControllerDelegate <NSObject> -(void)dismissSignupViewController; @end @interface DTSignupViewController : UIViewController <UITextF...
28.07
14
(translation_unit) "//\n// DTSignupViewController.h\n// Parkly\n//\n// Created by <NAME> on 3/9/14.\n// Copyright (c) 2014 DevTeam14. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@protocol DTSignupViewControllerDelegate <NSObject>\n\n-(void)dismissSignupViewController;\n\n@end\n\n@interface DTSignupViewCo...
69
10
{"language": "c", "success": true, "metadata": {"lines": 14, "avg_line_length": 28.07, "nodes": 46, "errors": 0, "source_hash": "abe4f8391bd8c456eb2f7213e1e4a08956134517b7901b72b670410bd7b48428", "categorized_nodes": 23}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import <...
1,993
c
#ifndef QTEACHER_H #define QTEACHER_H #include <QApplication> class QTeacherApp : public QApplication { Q_OBJECT public: explicit QTeacherApp(int argc, char* argv[]); signals: public slots: }; #endif // QTEACHER_H
17.5
12
(translation_unit) "#ifndef QTEACHER_H\n#define QTEACHER_H\n\n#include <QApplication>\n\nclass QTeacherApp : public QApplication\n{\n Q_OBJECT\npublic:\n explicit QTeacherApp(int argc, char* argv[]);\n\nsignals:\n\npublic slots:\n\n};\n\n#endif // QTEACHER_H\n" (ERROR) "#ifndef QTEACHER_H\n#define QTEACHER_H\n\...
54
4
{"language": "c", "success": true, "metadata": {"lines": 12, "avg_line_length": 17.5, "nodes": 35, "errors": 0, "source_hash": "84583fd9363ae024b55aacd58edd333444dc4f189dddae36557ef83d963008d6", "categorized_nodes": 21}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "ERROR", "text": "#ifndef QTEACHER_...
1,994
c
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "NBPluginBase.h" @class PSDScene; @interface Plugin4PageContentLog : NBPluginBase { PSDScene *_weakScene; } + (void)swizzleCla...
29.7
20
(translation_unit) "//\n// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).\n//\n// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.\n//\n\n#import "NBPluginBase.h"\n\n@class PSDScene;\n\n@interface Plugin4PageContentLog : NBPluginBase\n{\n PSDScene *_...
152
13
{"language": "c", "success": true, "metadata": {"lines": 20, "avg_line_length": 29.7, "nodes": 90, "errors": 0, "source_hash": "7ed0450788711741014f2fe21dac03738d0c09bbbccb1a30bea8a656138c5c0f", "categorized_nodes": 50}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#import \"...
1,995
c
// Device driver for the MCP9800 12 bit I2C temperature sensor // KL 20-01-2012 // Include #define USE_AND_OR #include "GenericTypeDefs.h" #include "Peripherals/myI2C.h" #include "Peripherals/TEMP MCP9800.h" // User defines for rate ant address #define LOCAL_I2C_RATE ((OSCCONbits.COSC==1)? 72 : 18) /*200kH...
29.17
83
(translation_unit) "// Device driver for the MCP9800 12 bit I2C temperature sensor \n// KL 20-01-2012 \n \n// Include \n#define USE_AND_OR \n#include "GenericTypeDefs.h" \n#include "Peripherals/myI2C.h" \n#include "Peripherals/TEMP MCP9800.h" \n// User defines for rate ant address \n#define LOCAL_I2C_RATE ((OSCCONbit...
454
0
{"language": "c", "success": true, "metadata": {"lines": 83, "avg_line_length": 29.17, "nodes": 263, "errors": 0, "source_hash": "660d3f9af9c2259a9b8797136f069bbb4f93e6880fd68c9e1fb3d43debc0e564", "categorized_nodes": 162}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_def", "text": "#define ...
1,996
c
/*++ Copyright (C) 1997 Cisco Systems, Inc. All Rights Reserved. Module Name: oakrpc.h Abstract: This module contains the definitions requires for the ISAKMP/Oakley RPC interface. Author: <NAME> (v-dpiper) Facility: ISAKMP/Oakley Revision History: --*/ #ifndef __OAKRPC ...
21.41
215
(translation_unit) "/*++ \n \nCopyright (C) 1997 Cisco Systems, Inc. All Rights Reserved. \n \nModule Name: \n \n oakrpc.h \n \nAbstract: \n \n This module contains the definitions requires for the \n ISAKMP/Oakley RPC interface. \n \nAuthor: \n \n <NAME> (v-dpiper) \n \nFacility: \n \n ISAKMP/Oakley \n \nRev...
668
0
{"language": "c", "success": true, "metadata": {"lines": 215, "avg_line_length": 21.41, "nodes": 507, "errors": 0, "source_hash": "6099c52482eabc593e1f445b6e2ae1242dfcccf8fefb13bc558cc32bbba5438f", "categorized_nodes": 332}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifnd...
1,997
c
#ifndef __PERIDOT_HOSTBRIDGE_H__ #define __PERIDOT_HOSTBRIDGE_H__ #include "peridot_swi.h" #define PERIDOT_HOSTBRIDGE_INSTANCE(name, state) \ PERIDOT_SWI_INSTANCE(name, state) #define PERIDOT_HOSTBRIDGE_INIT(name, state) \ PERIDOT_SWI_INIT(name, state) #endif /* __PERIDOT_HOSTBRIDGE_H__ */
35.88
8
(translation_unit) "#ifndef __PERIDOT_HOSTBRIDGE_H__\n#define __PERIDOT_HOSTBRIDGE_H__\n\n#include "peridot_swi.h"\n\n#define PERIDOT_HOSTBRIDGE_INSTANCE(name, state) \\n PERIDOT_SWI_INSTANCE(name, state)\n\n#define PERIDOT_HOSTBRIDGE_INIT(name, state) \\n PERIDOT_SWI_INIT(name, state)\n\n#endif /* __PERIDOT_HOSTBRID...
35
0
{"language": "c", "success": true, "metadata": {"lines": 8, "avg_line_length": 35.88, "nodes": 24, "errors": 0, "source_hash": "8852f0509635164efcdda638a4aaf74d987a5a94e61cf8bf8de28a0aab9741ca", "categorized_nodes": 16}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_ifdef", "text": "#ifndef _...
1,998
c
#pragma once #include <memory> #include <cstddef> #include <cstdlib> #include <cstring> namespace Phantom { class Buffer { public: Buffer() : m_pData(nullptr), m_szSize(0) {} Buffer(size_t size, size_t alignment = 4) : m_szSize(size) { m_pData = reinterpret_cast<uint8_t*>(new uint8_t[size]); }...
34.42
50
(translation_unit) "#pragma once\n#include <memory>\n#include <cstddef>\n#include <cstdlib>\n#include <cstring>\n\nnamespace Phantom {\n class Buffer {\n public:\n Buffer() : m_pData(nullptr), m_szSize(0) {}\n\n Buffer(size_t size, size_t alignment = 4) : m_szSize(size) { m_pData = reinterpret_cast<...
542
18
{"language": "c", "success": true, "metadata": {"lines": 50, "avg_line_length": 34.42, "nodes": 315, "errors": 0, "source_hash": "42847a1da5befeac49ab8279b997406c9b550ca5eb89ec0997cfd1d029fee42d", "categorized_nodes": 218}, "ast": {"root": "translation_unit", "nodes": [{"id": 0, "type": "preproc_call", "text": "#pragma...
1,999